/* RHF Brand Palette & Gradient Design System
 * Primary palette: Red #CE2232, Green #219E4A, Blue #0974B0, Yellow #FFE004
 * Complementary neutrals: Deep Navy #0B2545, Slate #475569, Border #E2E8F0, Surface #FFFFFF
 */
:root {
  --brand-red: #CE2232;
  --brand-green: #219E4A;
  --brand-blue: #0974B0;
  --brand-yellow: #FFE004;
  --navy: #0B2545;
  --navy-deep: #071A33;
  --slate: #475569;
  --surface-line: #E2E8F0;
  --brand-gradient: linear-gradient(135deg, #0974B0 0%, #219E4A 52%, #FFE004 82%, #CE2232 100%);
  --brand-gradient-rtl: linear-gradient(270deg, #0974B0 0%, #219E4A 48%, #FFE004 78%, #CE2232 100%);
}

.launcher-page {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 90% -80px, #0974B012, transparent 70%),
    radial-gradient(760px 380px at 10% 10%, #219E4A0d, transparent 65%),
    #F4F7FB;
  color: var(--navy);
}

/* Brand mark image badges */
.brand-logo-box {
  background: linear-gradient(145deg, #0B2545 0%, #09355E 100%);
  border: 1px solid #ffffff2b;
  border-radius: 13px;
  display: grid;
  place-items: center;
  padding: 6px;
  box-shadow: 0 8px 20px #0B254524;
  flex-shrink: 0;
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-logo-lg {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  padding: 11px;
  box-shadow: 0 16px 36px #0B254529;
}

/* =========================================
   LOGIN SPLIT VIEW
   ========================================= */
.launcher-page .login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(380px, 0.95fr);
  background: #F4F7FB;
}

.launcher-page .login-brand {
  position: relative;
  overflow: hidden;
  padding: 6vh 5.5vw 4.5vh;
  background: linear-gradient(148deg, #071932 0%, #0B2545 38%, #0A4D7C 72%, #0974B0 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.launcher-page .login-brand::after {
  content: '';
  position: absolute;
  inset-inline-end: -190px;
  bottom: -210px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid #ffffff14;
  box-shadow:
    0 0 0 54px #219E4A0d,
    0 0 0 112px #0974B00c,
    0 0 0 170px #FFE00406;
  pointer-events: none;
}

.brand-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
}

.brand-glow-blue {
  width: 340px;
  height: 340px;
  top: -110px;
  inset-inline-start: -80px;
  background: #0974B045;
}

.brand-glow-green {
  width: 320px;
  height: 320px;
  bottom: -120px;
  inset-inline-end: -60px;
  background: #219E4A36;
}

.brand-ribbon {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--brand-gradient-rtl);
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  margin-block: auto;
  padding-block: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  padding: 10px 14px 10px 18px;
  border-radius: 18px;
  background: #ffffff12;
  border: 1px solid #ffffff24;
  backdrop-filter: blur(10px);
}

.brand-plaque {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  padding: 7px;
  box-shadow: 0 8px 18px #07193238;
  flex-shrink: 0;
}

.brand-plaque img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-titles strong {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.brand-titles small {
  font-size: 11px;
  color: #B4D4EA;
  margin-top: 2px;
}

.launcher-page .login-brand .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff14;
  border: 1px solid #ffffff22;
  color: #E0F2FE;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 18px;
}

.launcher-page .login-brand h1 {
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.95;
  font-weight: 800;
  max-width: 500px;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.brand-tagline {
  color: #D4E8F7;
  font-size: 12.5px;
  line-height: 2;
  max-width: 460px;
  margin: 0;
}

.brand-tagline span {
  margin-inline: 8px;
  color: #FFE004;
  opacity: 0.85;
}

.identity-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.pillar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #0719325c;
  border: 1px solid #ffffff1c;
  font-size: 11px;
  color: #EBF5FC;
}

.pillar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pillar-blue i { background: #38BDF8; box-shadow: 0 0 0 3px #0974B044; }
.pillar-green i { background: #4ADE80; box-shadow: 0 0 0 3px #219E4A44; }
.pillar-red i { background: #F87171; box-shadow: 0 0 0 3px #CE223244; }
.pillar-yellow i { background: #FFE004; box-shadow: 0 0 0 3px #FFE00438; }

.product-motif {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.product-motif span {
  height: 6px;
  border-radius: 99px;
}

.product-motif span:nth-child(1) { width: 52px; background: #0974B0; box-shadow: inset 0 0 0 1px #ffffff45; }
.product-motif span:nth-child(2) { width: 32px; background: #219E4A; }
.product-motif span:nth-child(3) { width: 20px; background: #CE2232; }
.product-motif span:nth-child(4) { width: 14px; background: #FFE004; }

.launcher-page .brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #ffffff1a;
  font-size: 11px;
  color: #B4D4EA;
}

.launcher-page .brand-foot span[dir="ltr"] {
  letter-spacing: 2.5px;
  font-weight: 600;
  color: #E2F1FC;
}

/* Login form side */
.launcher-page .login-side {
  display: grid;
  place-items: center;
  padding: 36px 28px;
  background:
    radial-gradient(540px 420px at 15% 20%, #0974B010, transparent 70%),
    radial-gradient(500px 400px at 85% 85%, #219E4A0d, transparent 70%),
    #F4F7FB;
}

.launcher-page .login-card {
  position: relative;
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #DCE6F0;
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow:
    0 24px 60px #0B254512,
    0 4px 16px #0974B00a;
}

.login-card-band {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--brand-gradient-rtl);
}

.login-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.login-mobile-brand .brand-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  padding: 5px;
}

.login-mobile-brand strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.2;
}

.login-mobile-brand small {
  display: block;
  font-size: 10px;
  color: var(--slate);
}

.launcher-page .login-card .eyebrow {
  color: #0974B0;
  font-weight: 600;
  font-size: 11px;
}

.launcher-page .login-card h2 {
  font-size: 27px;
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0 6px;
}

.launcher-page .login-card > p {
  color: var(--slate);
  font-size: 12px;
  margin: 0 0 22px;
}

.login-card > label {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.launcher-page .login-card input {
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1.5px solid #D5E1EC;
  border-radius: 12px;
  background: #FAFBFD;
  color: var(--navy);
  font-size: 13px;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}

.launcher-page .login-card input:focus,
.launcher-page .launcher-tools input:focus {
  background: #FFFFFF;
  border-color: #0974B0;
  outline: none;
  box-shadow: 0 0 0 4px #0974B01a;
}

.launcher-page input:focus-visible {
  outline: none;
}

.launcher-page button:focus-visible,
.launcher-page a:focus-visible {
  outline: 3px solid #0974B066;
  outline-offset: 2px;
}

.password-field {
  position: relative;
  margin-top: 7px;
}

.launcher-page .login-card .password-field input {
  margin-top: 0;
  padding: 12px 76px 12px 14px;
  text-align: left;
  direction: ltr;
}

.password-field button {
  position: absolute;
  right: 8px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EAF4FB;
  color: #075C8C;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 0 11px;
  transition: background-color .15s, color .15s;
}

.password-field button:hover {
  background: #D9ECF8;
  color: #0B2545;
}

.caps-hint {
  display: inline-block;
  margin-top: 8px;
  color: #8A6413;
  background: #FFF9CF;
  padding: 3px 8px;
  border-radius: 6px;
}

.login-card > .form-error {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 16px 0 0;
  color: #A91C2A;
  font-size: 11.5px;
}

.login-card > .form-error:empty {
  display: none;
}

.login-card #sign-in {
  width: 100%;
  margin-top: 22px;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #0974B0 0%, #075889 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px #0974B030;
  transition: transform .15s, box-shadow .15s, filter .15s;
}

.login-card #sign-in:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px #0974B03d;
  filter: brightness(1.04);
}

.login-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform .18s;
}

.login-card #sign-in:hover .login-arrow {
  transform: translateX(-4px);
}

.login-support {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--slate);
  font-size: 11px;
}

.login-color-line {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.login-color-line i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
}

.login-color-line i:nth-child(1) { background: #CE2232; }
.login-color-line i:nth-child(2) { background: #219E4A; }
.login-color-line i:nth-child(3) { background: #0974B0; }
.login-color-line i:nth-child(4) { background: #FFE004; }

/* =========================================
   APP LAUNCHER WORKSPACE
   ========================================= */
.launcher-top-strip {
  height: 3px;
  width: 100%;
  background: var(--brand-gradient-rtl);
}

.launcher-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffffeb;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-line);
}

.launcher-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.launcher-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 6px;
}

.launcher-brand-text strong {
  color: #0974B0;
  font-weight: 800;
  margin-inline-end: 4px;
  letter-spacing: 0.4px;
}

.launcher-brand small {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--slate);
}

.launcher-account {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 12px;
  border-radius: 13px;
  border: 1px solid #E2E8F0;
  background: #FAFBFD;
  text-align: start;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.account-trigger:hover {
  border-color: #0974B0;
  background: #F0F7FC;
  box-shadow: 0 4px 12px #0974B014;
}

.account-meta b {
  display: block;
  font-size: 12px;
  color: var(--navy);
}

.account-meta small {
  display: block;
  font-size: 10px;
  color: var(--slate);
}

.account-pill-label {
  font-size: 11px;
  font-weight: 700;
  color: #075987;
  background: #EAF4FB;
  padding: 3px 8px;
  border-radius: 7px;
  margin-inline-start: 2px;
}

#sign-out {
  margin-inline-start: 6px;
  border-radius: 10px;
  border-color: #D7E2EC;
}

#sign-out:hover:not(:disabled) {
  border-color: #CE223255;
  background: #FFF2F3;
  color: #CE2232;
}

.launcher-account .avatar,
.account-dialog .avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0974B0 0%, #219E4A 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 14px #0974B024;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.account-dialog .avatar-lg {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 20px;
}

.launcher-main {
  margin-inline: auto;
  padding: 32px 0 36px;
  max-width: 1180px;
  width: calc(100% - 56px);
  min-height: calc(100dvh - 154px);
}

/* Welcome Hero Banner */
.welcome-panel {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 32px 36px;
  border-radius: 22px;
  background: linear-gradient(132deg, #0B2545 0%, #094D7A 46%, #0974B0 78%, #108A6E 100%);
  border: 1px solid #0B254518;
  box-shadow: 0 20px 44px #0B254524;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
  color: #FFFFFF;
}

.welcome-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
}

.welcome-glow-blue {
  width: 260px;
  height: 260px;
  top: -110px;
  inset-inline-start: -40px;
  background: #38BDF82e;
}

.welcome-glow-green {
  width: 240px;
  height: 240px;
  bottom: -110px;
  inset-inline-end: 18%;
  background: #219E4A3b;
}

.welcome-road-arc {
  position: absolute;
  inset-inline-end: -70px;
  bottom: -95px;
  width: 300px;
  height: 210px;
  border-radius: 50%;
  border: 12px solid #ffffff12;
  border-top-color: #FFE00455;
  border-inline-start-color: #CE223255;
  pointer-events: none;
}

.welcome-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-xl {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff28 0%, #ffffff14 100%);
  border: 2px solid #ffffff42;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 26px #0719323a;
}

.welcome-copy {
  position: relative;
  z-index: 1;
}

.welcome-panel .eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff18;
  color: #E0F2FE;
  font-size: 10.5px;
  margin-bottom: 10px;
}

.welcome-panel h1 {
  font-size: 29px;
  font-weight: 800;
  color: #FFFFFF;
}

.welcome-panel p {
  color: #D4E8F7;
  font-size: 12.5px;
  margin-top: 8px;
}

.welcome-calendar {
  position: relative;
  z-index: 1;
  text-align: end;
  padding: 14px 18px;
  border-radius: 16px;
  background: #ffffff14;
  border: 1px solid #ffffff29;
  backdrop-filter: blur(10px);
  min-width: 196px;
}

.welcome-calendar span {
  font-size: 11px;
  color: #D4E8F7;
}

.welcome-calendar b {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;
}

.welcome-calendar b span {
  font-size: 22px;
  font-weight: 800;
  color: #FFE004;
  margin-inline-end: 5px;
}

.welcome-decoration {
  position: absolute;
  top: -32px;
  left: 195px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  transform: rotate(-18deg);
  opacity: 0.16;
  pointer-events: none;
}

.welcome-decoration i {
  height: 76px;
  width: 76px;
  border-radius: 18px;
}

.welcome-decoration i:nth-child(1) { background: #CE2232; }
.welcome-decoration i:nth-child(2) { background: #219E4A; }
.welcome-decoration i:nth-child(3) { background: #0974B0; }
.welcome-decoration i:nth-child(4) { background: #FFE004; }

/* Tools & Section Header */
.launcher-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.launcher-section-heading h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

.launcher-section-heading p {
  font-size: 11.5px;
  color: var(--slate);
  margin-top: 4px;
}

.launcher-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.launcher-search-wrap {
  position: relative;
}

.launcher-search-wrap .search-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #64748B;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.launcher-tools input {
  width: 245px;
  padding: 10px 14px;
  padding-inline-start: 36px;
  background: #FFFFFF;
  border: 1px solid #D8E2EC;
  border-radius: 11px;
}

.launcher-tools input:focus {
  border-color: #0974B0;
  box-shadow: 0 0 0 3px #0974B018;
}

/* Product Cards */
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  --accent: #0974B0;
  --accent-deep: #075987;
  --tint: #EAF4FB;
  --card-grad: linear-gradient(135deg, #0974B0 0%, #38BDF8 100%);
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  padding: 26px 24px 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px #0B254508;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--card-grad);
  opacity: 0.9;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #C4D6E6;
  box-shadow: 0 18px 36px #0B254516;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.product-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--tint) 0%, #ffffff 100%);
  border: 1px solid var(--symbol-border, #CBE3F4);
  color: var(--accent);
  box-shadow: 0 8px 18px var(--symbol-shadow, #0974B022);
}

.product-symbol svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-status {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate);
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 4px 10px;
}

.product-status.ready {
  background: #ECFDF3;
  border-color: #BBF7D0;
  color: #166534;
}

.product-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.product-card > p {
  min-height: 48px;
  font-size: 11.5px;
  color: var(--slate);
  line-height: 1.95;
  flex: 1;
}

.product-launch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  margin-inline: -24px;
  padding: 15px 24px;
  border-top: 1px solid #EDF2F7;
  background: linear-gradient(180deg, #FAFCFE 0%, #F4F8FC 100%);
  color: var(--accent-deep);
  width: calc(100% + 48px);
  font-size: 12px;
  font-weight: 700;
  text-align: start;
  transition: background .18s ease, color .18s ease;
}

.product-card:hover .product-launch:not(:disabled) {
  background: linear-gradient(135deg, var(--tint) 0%, #FFFFFF 100%);
}

.product-launch span {
  font-size: 19px;
  color: var(--accent);
  transition: transform .18s;
}

.product-launch:hover:not(:disabled) span {
  transform: translateX(-5px);
}

.product-launch:disabled {
  opacity: 1;
  color: #7D8E9E;
  background: #F8FAFC;
}

.product-launch:disabled span {
  color: #B4C0CC;
}

.color-red {
  --accent: #CE2232;
  --accent-deep: #A91C2A;
  --tint: #FDEEEF;
  --symbol-border: #F8CED3;
  --symbol-shadow: #CE223221;
  --card-grad: linear-gradient(135deg, #CE2232 0%, #F97316 100%);
}

.color-green {
  --accent: #219E4A;
  --accent-deep: #176D33;
  --tint: #ECF9F0;
  --symbol-border: #C3EBCE;
  --symbol-shadow: #219E4A21;
  --card-grad: linear-gradient(135deg, #219E4A 0%, #0974B0 100%);
}

.color-blue {
  --accent: #0974B0;
  --accent-deep: #075987;
  --tint: #EAF4FB;
  --symbol-border: #C4E0F3;
  --symbol-shadow: #0974B021;
  --card-grad: linear-gradient(135deg, #0974B0 0%, #219E4A 100%);
}

.color-yellow {
  --accent: #B45309;
  --accent-deep: #854D0E;
  --tint: #FEF9C3;
  --symbol-border: #FDE047;
  --symbol-shadow: #FFE00433;
  --card-grad: linear-gradient(135deg, #FFE004 0%, #F59E0B 100%);
}

.launcher-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-top: 26px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--surface-line);
  color: var(--slate);
  font-size: 11px;
}

.note-symbol {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #166534;
  background: #DCFCE7;
  font-weight: 700;
  flex-shrink: 0;
}

.launcher-footer {
  max-width: 1180px;
  margin: auto;
  width: calc(100% - 56px);
  padding: 16px 0 24px;
  border-top: 1px solid var(--surface-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10.5px;
  color: var(--slate);
}

.palette-dots {
  display: flex;
  gap: 6px;
}

.palette-dots i {
  width: 10px;
  height: 6px;
  border-radius: 99px;
}

.palette-dots i:nth-child(1) { background: #CE2232; }
.palette-dots i:nth-child(2) { background: #219E4A; }
.palette-dots i:nth-child(3) { background: #0974B0; }
.palette-dots i:nth-child(4) { background: #FFE004; }

.launcher-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  border-radius: 12px;
  color: #A91C2A;
  font-size: 11.5px;
  margin-bottom: 20px;
}

.launcher-empty {
  text-align: center;
  border: 1px dashed #CBD5E1;
  border-radius: 18px;
  padding: 56px 20px;
  background: #FFFFFF;
}

.empty-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #0B2545;
  display: inline-grid;
  place-items: center;
  padding: 9px;
  margin-bottom: 12px;
}

.empty-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.launcher-empty h3 {
  margin: 6px 0;
  font-size: 16px;
  color: var(--navy);
}

.launcher-empty p {
  font-size: 12px;
  color: var(--slate);
}

/* Boot & Recovery States */
.boot-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}

/* Universal Gateway Popup Notification Stack */
.gateway-popups {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(460px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.gateway-toast {
  --toast-accent: #0974B0;
  --toast-tint: #EAF4FB;
  --toast-border: #C4E0F3;
  --toast-grad: linear-gradient(270deg, #0974B0 0%, #38BDF8 100%);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px 14px;
  border-radius: 16px;
  background: #fffffffa;
  backdrop-filter: blur(12px);
  border: 1px solid var(--toast-border);
  box-shadow:
    0 20px 44px #0B254524,
    0 4px 12px #0B254510;
  animation: toastIn .22s ease-out;
}

.gateway-toast::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--toast-grad);
}

.gateway-toast.is-error {
  --toast-accent: #CE2232;
  --toast-tint: #FDEEEF;
  --toast-border: #FECDD3;
  --toast-grad: linear-gradient(270deg, #CE2232 0%, #F97316 100%);
}

.gateway-toast.is-success {
  --toast-accent: #219E4A;
  --toast-tint: #ECFDF3;
  --toast-border: #BBF7D0;
  --toast-grad: linear-gradient(270deg, #219E4A 0%, #0974B0 100%);
}

.gateway-toast.is-warning {
  --toast-accent: #B45309;
  --toast-tint: #FEF9C3;
  --toast-border: #FDE047;
  --toast-grad: linear-gradient(270deg, #FFE004 0%, #F59E0B 100%);
}

.gateway-toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--toast-tint);
  color: var(--toast-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.gateway-toast-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gateway-toast-body {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.gateway-toast-body strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}

.gateway-toast-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #334155;
}

.gateway-toast-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gateway-toast-action {
  background: var(--toast-tint);
  color: var(--toast-accent);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
}

.gateway-toast-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: #64748B;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.gateway-toast-close:hover {
  background: #F1F5F9;
  color: var(--navy);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.boot-state,
.recovery-panel {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(600px 360px at 50% 30%, #0974B014, transparent 70%),
    #F4F7FB;
}

.boot-state p,
.recovery-panel p {
  color: var(--slate);
  font-size: 12.5px;
}

.recovery-panel h1 {
  font-size: 24px;
  color: var(--navy);
}

.loader {
  height: 26px;
  width: 26px;
  border: 3px solid #D8E9F4;
  border-top-color: #0974B0;
  border-inline-end-color: #219E4A;
  border-radius: 50%;
  animation: turn .8s linear infinite;
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .launcher-page .login-page {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-decoration {
    left: 140px;
  }
  .launcher-header {
    padding-inline: 24px;
  }
}

@media (max-width: 760px) {
  .launcher-page .login-page {
    grid-template-columns: 1fr;
  }
  .launcher-page .login-brand {
    display: none;
  }
  .login-mobile-brand {
    display: flex;
  }
  .launcher-page .login-side {
    padding: 24px 16px;
    align-content: center;
  }
  .launcher-page .login-card {
    padding: 28px 22px 24px;
    border-radius: 18px;
  }
  .launcher-header {
    height: auto;
    min-height: 70px;
    padding: 12px 16px;
    gap: 10px;
  }
  .launcher-brand {
    font-size: 14px;
    gap: 9px;
  }
  .launcher-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .launcher-brand small {
    font-size: 9px;
  }
  .account-meta {
    display: none;
  }
  .account-trigger {
    padding: 4px 6px 4px 9px;
    gap: 7px;
  }
  .account-trigger .avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 12px;
  }
  #sign-out {
    margin: 0;
    font-size: 11px;
  }
  .launcher-main {
    width: calc(100% - 28px);
    padding-top: 20px;
  }
  .welcome-panel {
    padding: 22px 20px;
    min-height: 0;
    display: block;
    margin-bottom: 24px;
    border-radius: 18px;
  }
  .welcome-identity {
    gap: 12px;
  }
  .avatar-xl {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 18px;
  }
  .welcome-panel h1 {
    font-size: 22px;
  }
  .welcome-calendar {
    text-align: start;
    margin-top: 16px;
    min-width: 0;
    padding: 12px 14px;
  }
  .welcome-decoration {
    left: auto;
    inset-inline-end: -26px;
    top: -20px;
    opacity: 0.1;
  }
  .welcome-road-arc {
    opacity: 0.1;
  }
  .launcher-section-heading {
    display: block;
  }
  .launcher-tools {
    margin-top: 14px;
  }
  .launcher-search-wrap {
    flex: 1;
    min-width: 0;
  }
  .launcher-tools input {
    width: 100%;
    min-width: 0;
  }
  .launcher-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-card {
    padding: 22px 20px 0;
  }
  .product-launch {
    margin-inline: -20px;
    padding-inline: 20px;
    width: calc(100% + 40px);
  }
  .product-card > p {
    min-height: 0;
  }
  .launcher-note {
    align-items: flex-start;
  }
  .launcher-footer {
    width: calc(100% - 28px);
    font-size: 9.5px;
  }
  .launcher-footer > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Account Modal (Profile, Password & Active Sessions) */
.account-dialog {
  max-width: 620px;
  width: calc(100% - 28px);
  border-radius: 20px;
  border: 1px solid #DCE6F0;
  padding: 0;
  box-shadow: 0 28px 80px #0B25452b;
}

.account-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--surface-line);
  background: #F8FAFC;
}

.account-tab {
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.account-tab:hover {
  color: var(--navy);
}

.account-tab.is-active {
  background: #FFFFFF;
  color: #0974B0;
  border-bottom-color: #0974B0;
}

.account-dialog-body {
  padding: 22px 24px 24px;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F0F7FC 0%, #F7FAF8 100%);
  border: 1px solid #DCE8F2;
  margin-bottom: 16px;
}

.account-hero-text {
  flex: 1;
  min-width: 0;
}

.account-hero-text strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
}

.account-hero-text small {
  display: block;
  font-size: 11px;
  color: var(--slate);
  margin-top: 2px;
}

.account-role-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #E2E8F0;
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.account-role-badge.is-admin {
  background: #FFF9CF;
  color: #766300;
}

.profile-readonly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-readonly-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid var(--surface-line);
}

.profile-readonly-item span {
  display: block;
  font-size: 10px;
  color: var(--slate);
}

.profile-readonly-item strong {
  display: block;
  font-size: 12px;
  color: var(--navy);
  margin-top: 3px;
}

.account-note {
  padding: 10px 13px;
  border-radius: 10px;
  background: #F2F7FB;
  border: 1px solid #DFEAF3;
  color: #475569;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.account-note.is-warning {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-field > span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.account-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D5E1EC;
  border-radius: 10px;
  background: #FAFBFD;
  color: var(--navy);
  font-size: 12.5px;
}

.account-field .password-field {
  margin-top: 0;
}

.account-field .password-field input {
  padding: 10px 72px 10px 12px;
}

.account-field small {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--slate);
}

.account-form-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--surface-line);
}

.sessions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.sessions-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 48dvh;
  overflow: auto;
}

.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--surface-line);
  background: #FFFFFF;
}

.session-card.is-current {
  border-color: #9DD6AD;
  background: #F6FBF7;
}

.session-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.session-head strong {
  font-size: 12.5px;
  color: var(--navy);
}

.session-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #F1F5F9;
  color: var(--slate);
}

.session-badge.is-current {
  background: #DCFCE7;
  color: #166534;
}

.session-info small {
  display: block;
  font-size: 10.5px;
  color: var(--slate);
}

.session-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.session-app-chip {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: #EAF4FB;
  color: #075987;
}

.session-revoke-btn:hover:not(:disabled) {
  border-color: #CE223255;
  background: #FFF2F3;
  color: #CE2232;
}

@media (max-width: 760px) {
  .account-tabs {
    padding-inline: 14px;
    overflow-x: auto;
  }
  .account-dialog-body {
    padding: 16px;
  }
  .profile-readonly-grid {
    grid-template-columns: 1fr;
  }
  .session-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Birthday Celebration Modal */
.hbd-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 480px;
  width: calc(100% - 28px);
  overflow: visible;
}

.hbd-dialog::backdrop {
  background: #0719328a;
  backdrop-filter: blur(5px);
}

.hbd-confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
}

.hbd-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid #DCE6F0;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 30px 90px #07193245;
  animation: hbdPop .34s cubic-bezier(.22, 1, .36, 1);
}

.hbd-ribbon {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 5px;
  background: var(--brand-gradient-rtl);
}

.hbd-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE00438 0%, #0974B018 55%, transparent 75%);
  pointer-events: none;
}

.hbd-avatar-ring {
  position: relative;
  margin: 0 auto 14px;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0974B0 0%, #219E4A 100%);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 3px #FFE004aa, 0 14px 30px #0974B02e;
}

.hbd-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFF9CF 0%, #EAF4FB 100%);
  border: 1px solid #FDE047;
  color: #854D0E;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hbd-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}

.hbd-message {
  color: #334155;
  font-size: 13px;
  line-height: 2;
  margin: 0 0 18px;
}

.hbd-signature {
  padding: 10px 14px;
  border-radius: 10px;
  background: #F4F8FC;
  border: 1px solid #E2ECF5;
  color: #075987;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hbd-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #0974B0 0%, #219E4A 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px #0974B02e;
}

.hbd-btn:hover {
  filter: brightness(1.05);
}

@keyframes hbdPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
