:root {
  color-scheme: dark;
  --portal-bg: #050b15;
  --portal-surface: #0a1524;
  --portal-surface-raised: #0e1c2e;
  --portal-line: #1d3550;
  --portal-line-soft: #17283a;
  --portal-text: #f3f7fc;
  --portal-muted: #9aaabd;
  --portal-blue: #54c4ff;
  --portal-blue-bright: #087cf4;
  --portal-cyan: #19d3ff;
  --portal-purple: #a77bff;
  --portal-ok: #54d6b2;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
.mb-account-portal {
  margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; color: var(--portal-text);
  background: radial-gradient(ellipse at 76% -8%, #10418055, transparent 38%), #050b15;
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.mb-account-portal a { color: inherit; }
.mb-account-portal button, .mb-account-portal input, .mb-account-portal textarea { font: inherit; }
.mb-account-portal button, .mb-account-portal a { -webkit-tap-highlight-color: transparent; }
.mb-account-portal [hidden] { display: none !important; }
.portal-root { min-height: 100vh; min-height: 100dvh; }
.portal-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.portal-shell[hidden], .auth-view[hidden], .portal-view[hidden] { display: none !important; }

.brand-lockup { display: flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.brand-lockup img { display: block; width: 46px; height: 46px; object-fit: contain; }
.brand-lockup strong { display: block; letter-spacing: .14em; font-size: 14px; line-height: 1.3; }
.brand-lockup small { color: var(--portal-blue); font-size: 10px; letter-spacing: .2em; }
.eyebrow, .card-kicker { color: #91a9c4; letter-spacing: .16em; font-size: 10px; font-weight: 750; }
.nav-caption { margin: 22px 12px 10px; color: #8297b0; letter-spacing: .16em; font-size: 10px; font-weight: 750; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 26px 16px 18px; display: flex; flex-direction: column; background: linear-gradient(180deg, #081321, #07101b); border-right: 1px solid var(--portal-line-soft); }
.sidebar > .brand-lockup { padding: 0 8px 23px; }
.portal-nav { display: grid; gap: 5px; }
.portal-nav a { position: relative; min-height: 45px; padding: 9px 10px; display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; color: #bdc9d7; font-size: 13px; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.portal-nav a:hover { color: #fff; background: #13243a; }
.portal-nav a[aria-current="page"] { color: #f5faff; background: linear-gradient(100deg, #0e3970, #102944); border-color: #2867a9; box-shadow: inset 3px 0 0 var(--portal-blue); }
.nav-icon { width: 20px; flex: 0 0 20px; text-align: center; color: var(--portal-blue); font-size: 18px; line-height: 1; }
.nav-status { margin-left: auto; color: #8293a8; font-size: 9px; white-space: nowrap; }
.sidebar-bottom { display: grid; gap: 6px; margin-top: auto; padding: 15px 8px 0; border-top: 1px solid var(--portal-line-soft); }
.sidebar-store-link, .sidebar-logout { display: block; border: 0; padding: 8px 3px; color: #b5c2d1; background: transparent; text-align: left; font-size: 12px; text-decoration: none; cursor: pointer; }
.sidebar-store-link:hover, .sidebar-logout:hover { color: #fff; }
.portal-content { min-width: 0; padding: 0 clamp(22px, 4vw, 58px); display: flex; flex-direction: column; }
.portal-topbar { min-height: 82px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--portal-line-soft); }
.topbar-context { margin: 4px 0 0; color: var(--portal-muted); font-size: 12px; }
.topbar-user { display: flex; align-items: center; gap: 11px; font-size: 12px; color: #e2ebf6; }
.notifications-pending { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #26394d; border-radius: 9px; color: #9db1c6; background: #0b1724; }
.notifications-pending svg { width: 15px; height: 15px; fill: none; stroke: #82cfff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notifications-pending small { font-size: 9px; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; color: #dbeeff; background: linear-gradient(145deg, #1f5794, #273366 70%, #4d337a); border: 1px solid #5aa9f088; border-radius: 50%; font-weight: 700; letter-spacing: .04em; }
.avatar-small { width: 38px; height: 38px; font-size: 11px; }
.avatar-large { width: 68px; height: 68px; font-size: 19px; box-shadow: 0 0 30px #238ad52a; }
.mobile-portal-nav { display: none; }
.portal-status { min-height: 20px; margin: 12px 0 0; color: var(--portal-muted); font-size: 12px; }
.portal-status:empty { display: none; }
.portal-main { flex: 1; padding: 27px 0 50px; }
.page-heading { margin: 0 0 24px; }
.page-heading h1, .auth-card h2 { margin: 7px 0 6px; font-size: clamp(27px, 3vw, 38px); line-height: 1.16; letter-spacing: -.035em; }
.page-heading p, .muted { margin: 0; color: var(--portal-muted); }

.dashboard-hero {
  position: relative; min-height: 218px; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  padding: 28px clamp(22px, 4vw, 42px); border: 1px solid #244a73; border-radius: 18px;
  background: radial-gradient(ellipse at 78% 48%, #0b75d566, transparent 32%), linear-gradient(110deg, #0d2440, #0a1526 65%, #0e1730);
  box-shadow: 0 20px 55px #0004;
}
.dashboard-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 48%, #040b1722 100%); }
.dashboard-hero-copy { position: relative; z-index: 1; max-width: 620px; }
.dashboard-hero h1 { margin: 8px 0; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.045em; line-height: 1.1; }
.dashboard-hero h1 span { color: #87d5ff; }
.dashboard-hero p { max-width: 480px; margin: 0 0 17px; color: #b2c4d8; font-size: 13px; }
.dashboard-hero-art { position: relative; z-index: 1; width: 200px; height: 170px; flex: 0 0 200px; display: grid; place-items: center; }
.dashboard-hero-art img { position: relative; z-index: 2; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 0 22px #148cf5a0); mix-blend-mode: screen; }
.hero-orbit { position: absolute; border: 1px solid #4db8ff55; border-radius: 50%; transform: rotate(-20deg); }
.hero-orbit-one { width: 185px; height: 76px; }
.hero-orbit-two { width: 142px; height: 142px; border-color: #9574ff3d; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border-radius: 10px; font-weight: 650; font-size: 13px; text-decoration: none; cursor: pointer; transition: transform .18s ease, filter .18s ease, background-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }
.button-primary { color: #03111e; border: 1px solid #6dc7ff; background: linear-gradient(110deg, #39baff, #448bff); box-shadow: 0 8px 22px #087cf433; }
.button-primary:hover { filter: brightness(1.08); }
.button-outline { color: #d9f2ff; border: 1px solid #4387bf; background: #0b1c30a8; }
.button-outline:hover { background: #12365a; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.summary-card { min-width: 0; min-height: 133px; position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px; border: 1px solid #1c3854; border-radius: 14px; background: linear-gradient(150deg, #0c1b2d, #091421); box-shadow: 0 12px 28px #0003; }
.summary-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; font-size: 18px; }
.icon-blue { color: #73c8ff; background: #0b3c67; border: 1px solid #1a6199; }
.icon-green { color: #6ee1c6; background: #0b3f3a; border: 1px solid #1d7463; }
.icon-cyan { color: #6ce3f4; background: #103b4b; border: 1px solid #1d6479; }
.icon-violet { color: #bd9bff; background: #302457; border: 1px solid #6549a2; }
.summary-card > div { min-width: 0; display: grid; gap: 3px; padding-right: 15px; }
.summary-card .card-kicker { font-size: 9px; letter-spacing: .1em; }
.summary-card strong { font-size: 25px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary-card small { color: #91a5ba; font-size: 10px; line-height: 1.35; }
.summary-card > a { position: absolute; right: 13px; bottom: 12px; width: 30px; height: 30px; display: grid; place-items: center; color: #84d5ff; border: 1px solid #284a6a; border-radius: 9px; text-decoration: none; background: #0c2137; }
.summary-card > a:hover { color: white; border-color: var(--portal-blue); }
.summary-soon { position: absolute; right: 10px; bottom: 12px; color: #a9b7c8; font-size: 9px; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(230px, .82fr); gap: 14px; align-items: stretch; }
.activity-card, .profile-card, .coming-card, .assistant-card { border: 1px solid var(--portal-line); border-radius: 16px; background: linear-gradient(145deg, #0d1a2a, #091421 72%); box-shadow: 0 14px 42px #0208132a; }
.activity-card { min-width: 0; padding: 19px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--portal-line-soft); }
.section-heading h2 { margin: 3px 0 0; font-size: 18px; }
.activity-state { margin: 19px 2px; color: #9eb0c4; font-size: 12px; }
.activity-state[data-state="error"] { color: #ffc1bc; }
.activity-state[data-state="empty"] { padding: 27px 14px; text-align: center; border: 1px dashed #2a4059; border-radius: 11px; background: #081321; }
.recent-orders-list { display: grid; }
.recent-order { display: flex; justify-content: space-between; gap: 15px; padding: 14px 3px; border-bottom: 1px solid #17283a; }
.recent-order:last-child { border-bottom: 0; }
.recent-order-copy, .recent-order-detail { min-width: 0; display: grid; align-content: center; gap: 4px; }
.recent-order-copy strong { overflow-wrap: anywhere; font-size: 12px; }
.recent-order-copy small, .recent-order-detail small { color: #8397ad; font-size: 10px; overflow-wrap: anywhere; }
.recent-order-detail { justify-items: end; text-align: right; }
.recent-order-detail > strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.status-chip { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border: 1px solid #66522b; border-radius: 999px; color: #f4d58e; background: #44331370; font-size: 9px; white-space: nowrap; }
.status-chip.is-paid { color: #91e8d0; border-color: #276b5c; background: #10433670; }
.assistant-card { position: relative; overflow: hidden; min-height: 230px; padding: 22px; background: radial-gradient(ellipse at 95% 2%, #51409866, transparent 45%), linear-gradient(145deg, #121d37, #0a1423 72%); }
.assistant-orb { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; color: white; border: 1px solid #7169d4; border-radius: 15px; background: linear-gradient(145deg, #5854d7, #293e9a); box-shadow: 0 0 30px #5750d755; font-size: 20px; }
.assistant-card h2 { margin: 7px 0; font-size: 18px; }
.assistant-card p { margin: 0 0 17px; color: #aab9ce; font-size: 12px; }
.assistant-card .button { width: 100%; }
.phase-note { margin: 13px 2px; color: #8192a7; font-size: 10px; }
.profile-card { padding: 24px; }
.profile-identity { display: flex; align-items: center; gap: 16px; padding-bottom: 21px; border-bottom: 1px solid var(--portal-line-soft); }
.profile-identity h2 { margin: 2px 0 0; font-size: 20px; }
.profile-identity p { margin: 0 0 4px; color: var(--portal-muted); overflow-wrap: anywhere; }
.identity-provider { color: #a9b9cb; font-size: 11px; }
.profile-form { max-width: 760px; padding-top: 20px; }
.form-section-title h3 { margin: 0; font-size: 16px; }
.form-section-title p { margin: 3px 0 17px; color: var(--portal-muted); font-size: 12px; }
.profile-form label, .auth-form label { display: block; margin: 12px 0 6px; color: #d5dfeb; font-size: 12px; font-weight: 600; }
.profile-form input, .profile-form textarea, .auth-form input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #30465e; border-radius: 9px; outline: none; color: var(--portal-text); background: #071321; }
.profile-form textarea { min-height: 78px; resize: vertical; }
.profile-form input:focus, .profile-form textarea:focus, .auth-form input:focus { border-color: var(--portal-blue); box-shadow: 0 0 0 3px #50b7ff22; }
.profile-form input[readonly] { color: #9cabbd; background: #0c1826; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-actions { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-feedback { min-height: 20px; margin: 0; color: #a9bed3; font-size: 12px; }
.form-feedback[data-state="error"] { color: #ffb1ac; }
.form-feedback[data-state="success"] { color: #8fe4ca; }
.coming-card { max-width: 740px; min-height: 300px; margin: 32px auto; padding: clamp(24px, 5vw, 48px); text-align: center; background: radial-gradient(ellipse at 50% 0, #173d624c, transparent 62%), #0b1725; }
.coming-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 20px; color: var(--portal-blue); border: 1px solid #38618a; border-radius: 15px; background: #10243a; font-size: 25px; }
.coming-card h1 { margin: 7px 0; font-size: clamp(26px, 4vw, 36px); }
.coming-card p { max-width: 520px; margin: 8px auto 19px; color: var(--portal-muted); }
.coming-label { display: inline-block; margin-top: 4px; padding: 5px 10px; border: 1px solid #31465e; border-radius: 999px; color: #b9c9da; font-size: 11px; }
.portal-footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--portal-line-soft); color: #788ba1; font-size: 10px; }

.auth-view { min-height: 100vh; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); display: grid; place-items: center; }
.auth-layout { width: min(100%, 1460px); min-height: min(850px, calc(100dvh - 48px)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr); overflow: hidden; border: 1px solid #1b3450; border-radius: 22px; background: #07101d; box-shadow: 0 35px 100px #0008; }
.auth-story { position: relative; min-width: 0; min-height: 690px; display: flex; flex-direction: column; overflow: hidden; padding: clamp(28px, 4.2vw, 64px); background: radial-gradient(ellipse at 20% 5%, #13498066, transparent 42%), linear-gradient(145deg, #071421, #08111d 66%, #0c1730); }
.auth-story::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #07111a0b 24%, #07111a25 54%, #06101de8 100%); }
.auth-brand, .story-copy, .story-footer, .visual-caption { position: relative; z-index: 2; }
.auth-brand img { width: 55px; height: 55px; filter: drop-shadow(0 0 13px #1d9aff62); mix-blend-mode: normal; }
.auth-brand strong { font-size: 17px; letter-spacing: .16em; }
.auth-brand small { font-size: 10px; letter-spacing: .24em; }
.story-copy { width: min(100%, 610px); margin: clamp(55px, 8vh, 94px) 0 0; }
.story-overline { display: flex; align-items: center; gap: 9px; color: #9cc8e7; letter-spacing: .17em; font-size: 10px; font-weight: 700; }
.story-overline > span, .visual-pulse { width: 7px; height: 7px; border-radius: 50%; background: #22c5ff; box-shadow: 0 0 13px #20baff; }
.story-copy h1 { margin: 14px 0 13px; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.045em; line-height: 1.08; }
.story-copy h1 em { color: #70caff; font-style: normal; text-shadow: 0 0 30px #008cff35; }
.story-copy > p { max-width: 490px; margin: 0; color: #a9bbce; font-size: 14px; }
.story-benefits { display: grid; gap: 13px; padding: 0; margin: 24px 0 0; list-style: none; }
.story-benefits li { display: flex; align-items: center; gap: 12px; }
.benefit-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #1c6195; border-radius: 11px; color: #7bd2ff; background: linear-gradient(145deg, #10375a, #0a1d32); font-size: 17px; }
.story-benefits strong, .story-benefits small { display: block; }
.story-benefits strong { color: #e8f3ff; font-size: 12px; }
.story-benefits small { margin-top: 1px; color: #91a5bb; font-size: 10px; }
.auth-visual { position: absolute; z-index: 0; inset: auto 0 0; height: 48%; overflow: hidden; }
.auth-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; opacity: .72; filter: saturate(.95); }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #07111a7d, transparent 85%), linear-gradient(180deg, #07111a 0%, #07111a12 30%, #07111a66); }
.visual-caption { position: absolute; right: clamp(25px, 4vw, 60px); bottom: 28px; display: flex; align-items: center; gap: 9px; color: #c7dbee; letter-spacing: .14em; font-size: 9px; }
.visual-pulse { width: 6px; height: 6px; }
.story-footer { margin: auto 0 0; padding-top: 24px; color: #95aec7; letter-spacing: .22em; font-size: 9px; }
.story-footer span { padding: 0 7px; color: #21b9ff; }
.auth-side { min-width: 0; display: grid; align-content: center; justify-items: center; padding: clamp(24px, 4vw, 55px); background: radial-gradient(ellipse at 100% 0, #0d3b6b31, transparent 44%), linear-gradient(145deg, #091624, #070e18 70%); }
.auth-card { width: min(100%, 500px); padding: clamp(26px, 3vw, 42px); border: 1px solid #243e59; border-radius: 18px; background: linear-gradient(145deg, #0e1d2e, #0a1522 72%); box-shadow: 0 28px 80px #0007, inset 0 1px #ffffff08; }
.auth-card > .eyebrow { display: block; }
.auth-back-top { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px; color: #95b3ce !important; font-size: 11px; text-decoration: none; }
.auth-back-top:hover { color: #fff !important; }
.auth-card h2 { margin-top: 9px; font-size: clamp(28px, 3vw, 35px); }
.auth-card > .muted { max-width: 370px; margin-bottom: 21px; font-size: 13px; }
.auth-checking { margin: 18px 0; color: #aac2d9; font-size: 12px; }
.notice { margin: 14px 0; padding: 11px 12px; border: 1px solid #8c6842; border-radius: 9px; color: #f2d4ac; background: #39281755; font-size: 12px; }
.button-google { width: 100%; min-height: 58px; justify-content: flex-start; gap: 13px; padding-inline: 15px; color: #f1f6fd; border: 1px solid #36516f; background: linear-gradient(100deg, #142b43, #102136); }
.button-google:hover { border-color: #4a91c2; background: #18334f; }
.google-g { display: block; width: 27px; height: 27px; flex: 0 0 27px; }
.button-google > span:nth-child(2) { display: grid; gap: 1px; text-align: left; font-size: 13px; }
.button-google small { color: #91a8c0; font-size: 10px; font-weight: 400; }
.button-google.is-preview-disabled { cursor: not-allowed; opacity: .8; filter: saturate(.82); }
.button-google.is-preview-disabled:hover { border-color: #46739a; background: linear-gradient(105deg, #f8fbff, #e6f2ff); }
.button-arrow { margin-left: auto; color: #9ecfff; font-size: 17px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; color: #8598ad; font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #26384d; }
.auth-form .button { width: 100%; margin-top: 17px; }
.auth-form .form-feedback { margin: 9px 0 0; }
.auth-form input::placeholder { color: #60758b; }
.auth-reset-link { display: inline-block; margin: 13px 0 0; padding: 0; border: 0; color: #80cbff; background: none; font-size: 11px; text-decoration: none; cursor: pointer; }
.auth-reset-link:hover { color: #d3efff; text-decoration: underline; }
.reset-request-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #22364b; }
.reset-copy { color: #aab9ca; font-size: 12px; }
.reset-request-form .auth-reset-link { display: block; margin-top: 14px; }
.auth-security { margin-top: 24px; padding-top: 17px; border-top: 1px solid #213349; color: #8fa1b5; font-size: 10px; text-align: center; }
.auth-security span { margin-right: 5px; color: #59c8ff; }
.back-link { color: #9bcfff; font-size: 12px; text-decoration: none; }
.auth-back-mobile { display: none; }
.auth-side-note { margin: 18px 0 0; color: #7f91a6; font-size: 10px; text-align: center; }
.auth-side-note a { color: #9bcfff; text-decoration: none; }
.auth-side-note a:hover { text-decoration: underline; }
.mb-account-portal :focus-visible { outline: 2px solid #72caff; outline-offset: 3px; }

@media (max-width: 1080px) {
  .portal-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .portal-content { padding-inline: 25px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-lower-grid { grid-template-columns: minmax(0, 1.4fr) minmax(210px, .8fr); }
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(370px, .88fr); }
  .auth-story { padding: 34px; }
  .story-copy { margin-top: 7vh; }
}
@media (max-width: 820px) {
  .auth-view { align-items: start; padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .auth-layout { min-height: 0; display: flex; flex-direction: column; border-radius: 18px; }
  .auth-story { min-height: 465px; padding: 28px clamp(22px, 6vw, 42px); }
  .story-copy { margin-top: 36px; }
  .story-copy h1 { font-size: clamp(32px, 6vw, 46px); }
  .story-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .story-benefits li { align-items: flex-start; }
  .story-benefits small { max-width: 170px; }
  .auth-visual { height: 43%; }
  .story-footer { margin-top: 32px; }
  .auth-side { padding: 25px clamp(18px, 8vw, 60px) 32px; }
  .auth-card { max-width: 560px; }
  .auth-back-mobile { display: none; }
  .auth-side-note { margin-top: 14px; }
  .portal-shell { display: flex; flex-direction: column; }
  .sidebar { position: static; height: auto; padding: max(12px, env(safe-area-inset-top)) 16px 0; border-right: 0; border-bottom: 1px solid var(--portal-line-soft); }
  .sidebar > .brand-lockup { padding: 2px 2px 13px; }
  .sidebar > .nav-caption, .sidebar > .portal-nav { display: none; }
  .sidebar-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 0; padding: 9px 2px max(9px, env(safe-area-inset-bottom)); border-top: 0; }
  .mobile-portal-nav { display: block; position: sticky; top: 0; z-index: 4; padding: 9px 15px; background: #07101df2; border-bottom: 1px solid var(--portal-line-soft); }
  .mobile-nav-items { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #385579 transparent; padding: 0 1px 3px; }
  .mobile-nav-items a { flex: 0 0 auto; min-height: 42px; padding: 8px 12px; gap: 7px; border-color: #1b2d42; background: #0d1928; font-size: 11px; }
  .mobile-nav-items a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--portal-blue); }
  .mobile-nav-items .nav-icon { width: auto; flex-basis: auto; font-size: 15px; }
  .mobile-nav-items .nav-status { display: none; }
  .portal-content { padding-inline: 18px; }
  .portal-topbar { min-height: 68px; }
  .topbar-context { max-width: 250px; font-size: 11px; }
  .portal-main { padding-top: 21px; }
}
@media (max-width: 560px) {
  .auth-story { min-height: 410px; padding: 22px 19px; }
  .auth-brand img { width: 45px; height: 45px; }
  .auth-brand strong { font-size: 14px; }
  .auth-brand small { font-size: 9px; }
  .story-copy { margin-top: 28px; }
  .story-copy h1 { max-width: 360px; font-size: clamp(29px, 8vw, 38px); }
  .story-copy > p { font-size: 12px; }
  .story-benefits { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .story-benefits li:nth-child(2) { display: none; }
  .story-benefits small { max-width: none; }
  .benefit-icon { width: 33px; height: 33px; flex-basis: 33px; }
  .auth-visual { height: 38%; }
  .story-footer { padding-top: 20px; font-size: 8px; letter-spacing: .16em; }
  .visual-caption { right: 17px; bottom: 16px; font-size: 7px; }
  .auth-side { padding: 18px 15px 25px; }
  .auth-card { padding: 24px 20px; border-radius: 15px; }
  .auth-back-top { margin-bottom: 23px; }
  .auth-card h2 { font-size: 29px; }
  .auth-back-mobile { display: inline-block; margin-top: 15px; }
  .auth-side-note { max-width: 290px; line-height: 1.5; }
  .portal-content { padding-inline: 14px; }
  .topbar-user { gap: 8px; font-size: 11px; }
  .notifications-pending { padding: 5px; }
  .notifications-pending small { display: none; }
  .topbar-context { max-width: 220px; }
  .dashboard-hero { min-height: 190px; padding: 22px 18px; }
  .dashboard-hero h1 { font-size: 31px; }
  .dashboard-hero p { max-width: 260px; font-size: 11px; }
  .dashboard-hero-art { position: absolute; right: -50px; opacity: .34; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .summary-card { min-height: 123px; display: block; padding: 12px; }
  .summary-icon { width: 32px; height: 32px; margin-bottom: 8px; font-size: 15px; }
  .summary-card > div { padding-right: 0; }
  .summary-card .card-kicker { font-size: 8px; }
  .summary-card strong { font-size: 22px; }
  .summary-card small { max-width: 130px; font-size: 9px; }
  .summary-card > a { width: 26px; height: 26px; right: 8px; bottom: 9px; }
  .summary-soon { right: 8px; bottom: 9px; font-size: 8px; }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .activity-card { padding: 15px 12px; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-link { max-width: 105px; text-align: right; font-size: 10px; }
  .section-heading h2 { font-size: 16px; }
  .recent-order { gap: 7px; }
  .recent-order-detail .status-chip { white-space: normal; text-align: center; }
  .assistant-card { min-height: 0; }
  .welcome-card { flex-wrap: wrap; padding: 17px; gap: 13px; }
  .welcome-card .session-pill { margin-left: 79px; }
  .profile-card { padding: 17px; }
  .profile-identity { align-items: flex-start; gap: 12px; }
  .avatar-large { width: 56px; height: 56px; font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .portal-footer { flex-direction: column; gap: 4px; }
}
@media (max-width: 360px) {
  .auth-story { min-height: 430px; padding-inline: 16px; }
  .story-copy h1 { font-size: 29px; }
  .auth-side { padding-inline: 11px; }
  .auth-card { padding-inline: 16px; }
  .portal-content { padding-inline: 11px; }
  .summary-card { padding: 10px 8px; }
  .summary-card .card-kicker { letter-spacing: .04em; font-size: 7px; }
  .section-heading { flex-direction: column; }
  .section-heading .text-link { max-width: none; text-align: left; }
}
@media (max-width: 560px) and (max-height: 700px) {
  .auth-story { min-height: 300px; padding-block: 17px; }
  .story-copy { margin-top: 16px; }
  .story-copy h1 { margin-block: 8px; font-size: 27px; }
  .story-copy > p, .story-benefits, .story-footer { display: none; }
  .auth-visual { height: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Phase 1.1 refinement: six truthful portal benefits and a lighter mobile-first login. */
.auth-layout { isolation: isolate; }
.auth-story { min-height: 710px; background-image: radial-gradient(ellipse at 17% 8%, #1368a940, transparent 42%), linear-gradient(145deg, #071421, #08111d 66%, #0c1730); }
.auth-story::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .34; background: radial-gradient(ellipse at 18% 34%, #087cf42b, transparent 40%), linear-gradient(120deg, transparent 55%, #38aaff0a); }
.story-copy { margin-top: clamp(38px, 5.5vh, 66px); }
.story-copy h1 { font-size: clamp(36px, 3.8vw, 49px); }
.story-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.story-benefits li { position: relative; min-width: 0; min-height: 82px; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; align-items: center; column-gap: 9px; row-gap: 5px; padding: 10px 9px; border: 1px solid #244867b8; border-radius: 12px; background: linear-gradient(145deg, #061426d9, #071321d9); box-shadow: inset 0 1px #ffffff08, 0 9px 26px #0002; transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.story-benefits li:hover { transform: translateY(-2px); border-color: #3d8bc0; background-color: #0a1c30; }
.benefit-icon { width: 30px; height: 30px; flex-basis: 30px; grid-column: 1; grid-row: 1; border-radius: 9px; font-size: 15px; box-shadow: 0 0 18px #087cf423; }
.story-benefits li > span:nth-child(2) { min-width: 0; grid-column: 2; grid-row: 1; align-self: start; }
.story-benefits strong { font-size: 11px; line-height: 1.25; }
.story-benefits small { margin-top: 4px; font-size: 9px; line-height: 1.35; }
.benefit-state { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 2px; color: #91a5bb; font-size: 8px; line-height: 1; letter-spacing: .04em; }
.benefit-state.is-live { color: #75d9c1; }
.auth-story, .auth-card { animation: portal-arrive .55s cubic-bezier(.2,.75,.25,1) both; }
.auth-card { animation-delay: .08s; border-color: #29527a; box-shadow: 0 28px 80px #0007, 0 0 40px #087cf414, inset 0 1px #ffffff0a; }
.button-google { min-height: 62px; border-color: #46739a; background: linear-gradient(105deg, #f8fbff, #e6f2ff); color: #11263c; box-shadow: 0 9px 25px #087cf422; }
.button-google:hover { border-color: #8ccfff; background: #fff; }
.button-google small { color: #516981; }
.notice[data-state="info"] { border-color: #28649a; color: #c5e4ff; background: #0d31504d; }
.auth-card h2 { letter-spacing: -.035em; }
.auth-side { background: radial-gradient(ellipse at 100% 0, #0d3b6b3d, transparent 44%), linear-gradient(145deg, #081421, #060d17 70%); }
@keyframes portal-arrive { from { opacity: 0; transform: translateY(9px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1080px) {
  .story-copy { margin-top: 35px; }
  .story-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-story { min-height: 760px; }
}
@media (max-width: 820px) {
  .auth-layout { flex-direction: column; }
  .auth-side { order: -1; }
  .auth-story { order: 1; min-height: 0; padding: 23px clamp(20px, 5vw, 38px) 25px; }
  .story-copy { margin-top: 23px; }
  .story-copy h1 { font-size: clamp(30px, 5.4vw, 42px); }
  .story-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .story-benefits li { min-height: 78px; padding: 9px 8px; }
  .auth-visual { display: none; }
  .story-footer { margin-top: 20px; }
}
@media (max-width: 560px) {
  .auth-view { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .auth-side { padding: 16px 12px 12px; }
  .auth-card { padding: 22px 19px; }
  .auth-back-top { margin-bottom: 18px; }
  .auth-card h2 { margin-bottom: 6px; }
  .auth-card > .muted { margin-bottom: 16px; }
  .auth-story { padding: 22px 18px 20px; }
  .auth-brand img { width: 43px; height: 43px; }
  .story-copy { margin-top: 20px; }
  .story-copy h1 { margin: 10px 0 8px; font-size: clamp(28px, 7.8vw, 35px); }
  .story-copy > p { max-width: 420px; font-size: 12px; }
  .story-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
  .story-benefits li { display: grid; }
  .story-benefits li:nth-child(2) { display: grid; }
  .story-benefits li { min-height: 76px; grid-template-columns: 25px minmax(0, 1fr); column-gap: 7px; padding: 8px 7px; }
  .benefit-icon { width: 25px; height: 25px; font-size: 13px; }
  .story-benefits strong { font-size: 10px; }
  .story-benefits small { margin-top: 3px; font-size: 8px; }
  .benefit-state { font-size: 7px; }
  .story-footer { margin-top: 15px; padding-top: 8px; }
  .auth-back-mobile { display: none; }
  .auth-side-note { margin-top: 10px; }
}
@media (max-width: 360px) {
  .auth-story { padding-inline: 14px; }
  .story-benefits li { min-height: 82px; grid-template-columns: 22px minmax(0, 1fr); column-gap: 6px; padding-inline: 6px; }
  .benefit-icon { width: 22px; height: 22px; }
  .story-benefits strong { font-size: 9px; }
  .story-benefits small { font-size: 7px; }
}
@media (max-width: 560px) and (max-height: 700px) {
  .auth-story { min-height: 0; padding-block: 16px; }
  .story-copy { margin-top: 14px; }
  .story-copy h1 { font-size: 26px; }
  .story-copy > p, .story-footer { display: none; }
  .story-benefits { display: grid; margin-top: 10px; }
  .story-benefits li { display: grid; }
  .auth-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-story, .auth-card { animation: none; }
  .story-benefits li { transition: none; }
}

/* Cinematic login polish: reuse the approved lightweight gaming-room image, with the portal above it. */
.auth-view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}
.auth-view::before,
.auth-view::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.auth-view::before {
  background-image: url("assets/mmh-gaming-room-hero.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  transform: scale(1.015);
}
.auth-view::after {
  z-index: -1;
  background:
    linear-gradient(90deg, #050b1661 0%, #06101e30 36%, #06101e18 62%, #050b164b 100%),
    linear-gradient(180deg, #050b1629 0%, transparent 34%, #050b1655 100%);
}
.auth-layout {
  position: relative;
  border-color: #76bded38;
  background: #06101d15;
  box-shadow: 0 34px 100px #0009, inset 0 1px #d5efff14;
  backdrop-filter: none;
}
.auth-story {
  background: linear-gradient(110deg, #06111c68, #0713212e 72%, #07132108);
}
.auth-brand {
  position: absolute;
  top: clamp(28px, 4.2vw, 64px);
  left: clamp(28px, 4.2vw, 64px);
  z-index: 5;
}
.story-copy { margin-top: clamp(100px, 11vh, 124px); }
.auth-story::after {
  background: linear-gradient(90deg, #06101d45, #06101d12 70%, transparent),
    linear-gradient(180deg, #06101d12 0%, transparent 60%, #06101d52 100%);
}
.auth-story::before {
  opacity: .2;
  background: radial-gradient(ellipse at 15% 14%, #087cf43d, transparent 45%),
    linear-gradient(125deg, #a5ddff08, transparent 50%, #38aaff0b);
}
.auth-visual { display: none; }
.auth-side {
  background: linear-gradient(135deg, #07142620, #07101d38);
  backdrop-filter: blur(1px);
}
.auth-card {
  border-color: #7fc5f14a;
  background: linear-gradient(145deg, #07192bc9, #081522cc 74%);
  box-shadow: 0 30px 88px #0009, 0 0 34px #078ef21a, inset 0 1px #e3f4ff16;
  backdrop-filter: blur(22px) saturate(132%);
}
.story-benefits li {
  border-color: #65b9f260;
  background: linear-gradient(145deg, #07182b9c, #07142398 76%);
  box-shadow: inset 0 1px #e5f6ff13, 0 12px 28px #0005, 0 0 18px #168be815;
  backdrop-filter: blur(16px) saturate(135%);
  transition: transform .24s cubic-bezier(.2,.75,.25,1), border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
}
.story-benefits li:hover {
  transform: translateY(-3px);
  border-color: #7bd0ffb8;
  background: linear-gradient(145deg, #0d2943c9, #081a2bc4 76%);
  box-shadow: inset 0 1px #fff2, 0 17px 34px #0006, 0 0 23px #168be82b;
}
.benefit-icon {
  border-color: #58baff85;
  background: linear-gradient(145deg, #0e3960e8, #071c33eb);
  box-shadow: inset 0 1px #ffffff18, 0 0 17px #087cf433;
}
.auth-card h2 { text-shadow: 0 2px 22px #8dd8ff20; }
.button-google,
.auth-form .button-primary {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.button-google:not(.is-preview-disabled):hover,
.auth-form .button-primary:hover { transform: translateY(-1px); box-shadow: 0 13px 30px #087cf438; }
.button-google:focus-visible,
.auth-form .button:focus-visible,
.auth-back-top:focus-visible,
.auth-reset-link:focus-visible { outline: 3px solid #78d3ff; outline-offset: 3px; }

@media (max-width: 820px) {
  .auth-view::before { background-position: 72% center; }
  .auth-view::after {
    background: linear-gradient(180deg, #040a156e 0%, #06101d3d 42%, #040a157d 100%),
      linear-gradient(90deg, #06101d25, transparent 65%, #06101d2e);
  }
  .auth-layout { background: #06101d10; }
  .auth-brand {
    position: relative;
    top: auto;
    left: auto;
    order: -1;
    align-self: flex-start;
    margin: 12px 18px 0;
  }
  .auth-side { order: 0; }
  .auth-story { order: 1; }
  .auth-story { background: linear-gradient(180deg, #06101d27, #06101d45); }
  .auth-side { background: linear-gradient(180deg, #07142633, #07101d1a); }
  .auth-card { background: linear-gradient(145deg, #07192bdd, #081522df 74%); }
}
@media (max-width: 560px) {
  .auth-view { overflow: clip; }
  .auth-view::before { background-position: 75% center; }
  .story-benefits li { background: linear-gradient(145deg, #07182bab, #071423a8 76%); }
}
@media (prefers-reduced-motion: reduce) {
  .story-benefits li,
  .button-google,
  .auth-form .button-primary { transition: none; }
  .story-benefits li:hover,
  .button-google:not(.is-preview-disabled):hover,
  .auth-form .button-primary:hover { transform: none; }
}

/* Premium V2: compact, thumb-friendly mobile navigation without a horizontal tab strip. */
.mobile-nav-primary,
.mobile-nav-sheet { display: none; }
.sales-orders-list { display: grid; gap: 14px; }
.sales-orders-list .account-order { display: grid; gap: 15px; min-width: 0; padding: clamp(16px, 2.5vw, 22px); border: 1px solid #294867; border-radius: 16px; background: linear-gradient(145deg, #0d1e30e8, #091421e8); box-shadow: 0 12px 30px #02071130; }
.sales-orders-list .account-order > div:first-child { display: grid; gap: 6px; min-width: 0; }
.sales-orders-list .account-order strong { color: #eff7ff; }
.sales-orders-list .account-order small { color: #aabbd0; line-height: 1.5; overflow-wrap: anywhere; }
.sales-order-tracking { display: grid; gap: 7px; padding: 12px 14px; border-left: 2px solid #1b9deb; border-radius: 0 10px 10px 0; background: #081321b0; }
.sales-order-timeline { display: grid; gap: 10px; margin: 8px 0 0; padding-left: 20px; color: #b5c6d9; }
.sales-order-timeline li { display: grid; gap: 3px; }
.account-order-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.account-order-actions .button { min-height: 42px; }
.activity-state[data-state="error"] { color: #ffc4c4; }
.activity-state[data-state="empty"] { color: #b4c5d8; }
.sales-linked-accounts { scroll-margin-top: 24px; }

@media (max-width: 820px) {
  .portal-shell { min-height: 100dvh; }
  .mobile-portal-nav { position: fixed; z-index: 20; inset: auto 0 0; display: flex; align-items: stretch; gap: 8px; padding: 9px max(12px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid #24405d; border-bottom: 0; background: #07101df2; box-shadow: 0 -12px 34px #01061175; backdrop-filter: blur(18px); }
  .mobile-nav-primary { display: grid; flex: 1 1 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; overflow: visible; padding: 0; }
  .mobile-nav-primary a { display: grid; align-content: center; justify-items: center; gap: 3px; min-width: 0; min-height: 48px; padding: 5px 3px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #9fb2c7; text-decoration: none; font-size: 10px; line-height: 1.1; text-align: center; }
  .mobile-nav-primary a[aria-current="page"] { color: #f4f9ff; border-color: #276697; background: linear-gradient(145deg, #113b60, #10243a); box-shadow: inset 0 0 0 1px #57c4ff17; }
  .mobile-nav-primary .nav-icon { width: auto; flex-basis: auto; font-size: 17px; }
  .mobile-nav-primary .nav-status { display: none; }
  .mobile-nav-more { flex: 0 0 62px; min-height: 48px; border: 1px solid #294867; border-radius: 11px; background: #0d1b2b; color: #e6f2ff; font: inherit; font-size: 11px; }
  .mobile-nav-more:focus-visible,
  .mobile-nav-primary a:focus-visible { outline: 3px solid #71d2ff; outline-offset: 2px; }
  .mobile-nav-sheet:not([hidden]) { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: calc(100% + 9px); left: max(12px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: min(55dvh, 360px); overflow-y: auto; padding: 12px; border: 1px solid #2a4e70; border-radius: 16px; background: #081421f7; box-shadow: 0 18px 55px #0009; backdrop-filter: blur(18px); }
  .mobile-nav-sheet a { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 46px; padding: 9px 11px; border: 1px solid #1e354d; border-radius: 10px; background: #0d1a29; color: #c4d2e2; text-decoration: none; font-size: 12px; }
  .mobile-nav-sheet a[aria-current="page"] { color: #f7fbff; border-color: #278ed0; background: #10365a; }
  .mobile-nav-sheet .nav-status { display: none; }
  .portal-content { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .portal-footer { padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 8px)); }
  .portal-topbar { position: relative; }
  .portal-main { overflow-x: clip; }
  .portal-view, .profile-card, .activity-card, .summary-card { min-width: 0; }
  .sales-orders-list .account-order-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-orders-list .account-order-actions .button { width: 100%; padding-inline: 9px; font-size: 11px; }
}
@media (max-width: 420px) {
  .mobile-nav-more { flex-basis: 55px; }
  .mobile-nav-primary a { font-size: 9px; }
  .mobile-nav-sheet:not([hidden]) { grid-template-columns: 1fr; }
  .topbar-user-name { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sales-orders-list .account-order-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-primary a,
  .mobile-nav-more,
  .mobile-nav-sheet { scroll-behavior: auto; transition: none !important; }
}

/* Premium V3: denser dashboard hierarchy, collapsible desktop navigation and data-backed activity. */
.portal-shell { transition: grid-template-columns .22s ease; }
.sidebar-collapse-toggle,
.sidebar-gemini-link { min-height: 40px; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; color: #a9bfd4; background: transparent; font: inherit; font-size: 12px; text-align: left; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.sidebar-collapse-toggle:hover,
.sidebar-gemini-link:hover { color: #eff9ff; border-color: #24496b; background: #102239; }
.sidebar-collapse-toggle > span:first-child,
.sidebar-gemini-link > span:first-child { width: 20px; flex: 0 0 20px; color: var(--portal-blue); text-align: center; font-size: 17px; }
.sidebar-collapse-toggle { margin: 0 0 8px; }
.sidebar-gemini-link { color: #d6eaff; border-color: #254c72; background: linear-gradient(100deg, #102b48, #101a31); }
.sidebar-bottom { gap: 5px; }
.sidebar-store-link, .sidebar-logout { display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 8px 10px; border-radius: 9px; }
.sidebar-logout { width: 100%; }
.sidebar-store-link > span:first-child, .sidebar-logout > span:first-child { width: 20px; flex: 0 0 20px; color: #83cfff; text-align: center; font-size: 16px; }
.nav-label { min-width: 0; }
.portal-shell.is-sidebar-collapsed { grid-template-columns: 80px minmax(0, 1fr); }
.is-sidebar-collapsed .sidebar { padding-inline: 10px; }
.is-sidebar-collapsed .sidebar > .brand-lockup { width: 100%; justify-content: center; padding-inline: 0; }
.is-sidebar-collapsed .sidebar > .brand-lockup > span,
.is-sidebar-collapsed .nav-caption,
.is-sidebar-collapsed .sidebar .nav-label,
.is-sidebar-collapsed .sidebar .nav-status { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.is-sidebar-collapsed .sidebar-collapse-toggle,
.is-sidebar-collapsed .sidebar-gemini-link,
.is-sidebar-collapsed .sidebar-store-link,
.is-sidebar-collapsed .sidebar-logout,
.is-sidebar-collapsed .portal-nav a { justify-content: center; padding-inline: 6px; }
.is-sidebar-collapsed .portal-nav a { min-height: 46px; }
.is-sidebar-collapsed .sidebar-collapse-toggle > span:first-child { transform: rotate(180deg); }
.dashboard-hero { min-height: 236px; background: radial-gradient(ellipse at 82% 45%, #108be35c, transparent 36%), radial-gradient(ellipse at 12% 110%, #087cf42a, transparent 42%), linear-gradient(112deg, #0c2340, #0b1729 64%, #0e1932); }
.dashboard-hero::before { content: ""; position: absolute; inset: auto -5% -72% 40%; height: 220px; border: 1px solid #4bbaff1c; border-radius: 50%; box-shadow: 0 0 0 22px #4bbaff08, 0 0 0 44px #4bbaff05; pointer-events: none; }
.dashboard-hero h1 { font-size: clamp(34px, 4vw, 48px); }
.summary-grid { gap: 14px; margin-block: 19px; }
.summary-card { min-height: 148px; padding: 18px 16px; background: linear-gradient(145deg, #0e2135, #091522 78%); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.summary-card:hover { transform: translateY(-2px); border-color: #2d6b9d; box-shadow: 0 17px 34px #02071155; }
.summary-card strong { font-size: clamp(28px, 2.8vw, 36px); letter-spacing: -.035em; }
.summary-card .card-kicker { font-size: 10px; }
.summary-card small { font-size: 11px; }
.activity-card { background: linear-gradient(145deg, #0c1b2b, #081321 80%); }
.recent-order.is-latest { position: relative; margin: 10px 0 4px; padding: 17px; border: 1px solid #2b689b; border-radius: 13px; background: radial-gradient(ellipse at 0 0, #0a80d729, transparent 58%), #0b1b2b; box-shadow: inset 0 0 24px #087cf40c; }
.recent-order-kicker { color: #79cbff; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.recent-order.is-latest .recent-order-copy strong { font-size: 14px; }
.recent-order.is-latest .recent-order-detail > strong { font-size: 15px; }
.notifications-pending { position: relative; min-width: 38px; min-height: 38px; justify-content: center; text-decoration: none; transition: border-color .16s ease, background-color .16s ease; }
.notifications-pending:hover { border-color: #3680b4; background: #10243a; }
.notifications-pending [data-notification-count]:not([hidden]) { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border: 1px solid #07101d; border-radius: 999px; color: #06121e; background: #5bcaff; font-size: 9px; font-weight: 800; }
.portal-notifications-list { display: grid; gap: 11px; max-width: 1000px; }
.portal-notification-card { min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 17px; border: 1px solid #1e3b58; border-radius: 14px; background: linear-gradient(145deg, #0d1d2e, #091522); }
.notification-event-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #286a9a; border-radius: 12px; color: #8bd8ff; background: #0c3453; }
.portal-notification-card > div { min-width: 0; display: grid; gap: 5px; }
.portal-notification-card strong { color: #edf7ff; text-transform: capitalize; }
.portal-notification-card p { margin: 0; color: #c0cee0; font-size: 13px; overflow-wrap: anywhere; }
.portal-notification-card small, .portal-notification-card time { color: #8fa4bb; font-size: 11px; }
.gemini-drawer { width: min(440px, calc(100vw - 24px)); max-width: none; max-height: min(80dvh, 540px); margin: auto 0 auto auto; padding: 23px; border: 1px solid #3977a6; border-right: 0; border-radius: 18px 0 0 18px; color: var(--portal-text); background: linear-gradient(155deg, #102641f5, #071320f7 70%); box-shadow: -22px 0 70px #0008, 0 0 40px #087cf426; }
.gemini-drawer::backdrop { background: #0207129c; backdrop-filter: blur(4px); }
.gemini-drawer[open] { animation: gemini-drawer-in .2s ease-out both; }
.gemini-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.gemini-drawer-head .assistant-orb { margin-bottom: 14px; }
.gemini-drawer h2 { margin: 7px 0; font-size: 24px; }
.gemini-drawer > p { margin: 13px 0 20px; color: #b5c8dc; font-size: 13px; line-height: 1.65; }
.gemini-drawer .button { width: 100%; }
.gemini-drawer-close { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #345879; border-radius: 11px; color: #d9efff; background: #0b1d2e; font-size: 24px; cursor: pointer; }
.gemini-drawer-close:hover { border-color: #69c9ff; background: #123455; }
@keyframes gemini-drawer-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1080px) and (min-width: 821px) {
  .portal-shell.is-sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .portal-shell, .portal-shell.is-sidebar-collapsed { display: flex; flex-direction: column; }
  .sidebar-collapse-toggle, .sidebar-gemini-link { display: none; }
  .sidebar-bottom { gap: 10px; }
  .sidebar-store-link, .sidebar-logout { min-height: 40px; padding-inline: 7px; }
  .dashboard-hero { min-height: 210px; }
  .summary-card { min-height: 140px; }
  .portal-notification-card { grid-template-columns: 36px minmax(0, 1fr); gap: 11px; }
  .portal-notification-card time { grid-column: 2; }
  .gemini-drawer { width: min(100%, 440px); max-height: min(76dvh, 540px); margin: auto 0 0 auto; border-right: 1px solid #3977a6; border-bottom: 0; border-radius: 18px 18px 0 0; }
}
@media (max-width: 560px) {
  .summary-card { min-height: 132px; padding: 13px 11px; }
  .summary-card strong { font-size: 27px; }
  .recent-order.is-latest { margin-inline: -4px; padding: 13px 11px; }
  .recent-order.is-latest .recent-order-copy strong { font-size: 12px; }
  .portal-notification-card { padding: 13px; }
  .gemini-drawer { padding: 20px 17px max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .portal-shell, .sidebar-collapse-toggle, .sidebar-gemini-link, .summary-card, .notifications-pending { transition: none !important; }
  .summary-card:hover { transform: none; }
  .gemini-drawer[open] { animation: none; }
}
