:root {
  --paper: #f8f7f3;
  --surface: #ffffff;
  --ink: #16221c;
  --muted: #5c6b61;
  --brand: #2f6b51;
  --brand-deep: #245640;
  --pale: #e2efe7;
  --line: #d9dfda;
  --gold: #f4cf8a;
  --lavender: #eadff2;
  --danger-bg: #fff0ed;
  --danger: #9b3d2f;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 750; }
.brand-mark { position: relative; display: inline-block; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 15px; background: var(--brand); }
.brand-mark i { position: absolute; display: block; border-radius: 999px; background: white; }
.brand-mark i:nth-child(1) { width: 18px; height: 18px; left: 10px; top: 21px; }
.brand-mark i:nth-child(2) { width: 20px; height: 20px; left: 20px; top: 13px; }
.brand-mark i:nth-child(3) { width: 11px; height: 11px; left: 27px; top: 24px; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(520px, 54%) 1fr; }
.auth-story { position: relative; min-height: 100vh; overflow: hidden; padding: 56px 7vw; background: var(--pale); }
.story-copy { position: relative; z-index: 2; max-width: 590px; margin-top: 14vh; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 13px; font-weight: 750; letter-spacing: .04em; }
.story-copy h1 { margin: 0 0 24px; font-size: clamp(46px, 5vw, 68px); line-height: 1.12; letter-spacing: -.045em; }
.story-copy > p:not(.eyebrow) { max-width: 560px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.story-copy ul { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 15px; }
.story-copy li::before { content: "✓"; margin-right: 10px; color: var(--brand); font-weight: 800; }
.story-orbit { position: absolute; right: -130px; bottom: -180px; width: 560px; height: 560px; border: 95px solid var(--gold); border-radius: 50%; background: var(--brand); }
.story-orbit span { position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 92px; transform: translateY(-6px); }

.auth-panel-wrap { display: grid; place-items: center; padding: 50px; }
.auth-card { width: min(100%, 430px); padding: 44px 42px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 20px 60px rgba(28, 45, 36, .08); }
.mobile-brand { display: none; }
.auth-card h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.auth-intro { margin: 8px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-back-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: 12px; color: var(--brand-deep); font-size: 13px; font-weight: 750; }
.auth-card label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.auth-card input[type="text"], .auth-card input[type="password"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cfd7d1; border-radius: 10px; outline: none; color: var(--ink); background: white; transition: border-color .18s, box-shadow .18s; }
.auth-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 81, .13); }
.password-field { position: relative; }
.password-field input { padding-right: 64px !important; }
.password-toggle { position: absolute; right: 8px; top: 2px; min-width: 44px; height: 44px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--brand); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.primary-button { width: 100%; height: 48px; margin-top: 26px; border: 0; border-radius: 11px; color: white; background: var(--brand); cursor: pointer; font-weight: 750; }
.primary-button:hover { background: var(--brand-deep); }
.form-error { margin: 18px 0 4px; padding: 12px 14px; border-radius: 10px; color: var(--danger); background: var(--danger-bg); font-size: 13px; }
.invite-note { margin: 22px 0 0; text-align: center; color: var(--brand); font-size: 13px; font-weight: 700; }
.privacy-note { margin: 70px 0 0; text-align: center; color: var(--muted); font-size: 11px; }

.daypic-family-auth-page { background: #f3eee4; }
.daypic-family-auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(440px, 1.08fr) minmax(420px, .92fr); color: #1c241f; background: #f3eee4; }
.daypic-family-auth-story { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 8vh 8vw 7vh; border-right: 1px solid #d8d0c3; background: #1f3128; color: #fffdf8; }
.daypic-family-auth-story .eyebrow { color: #f0a08d; }
.daypic-family-auth-story h1 { max-width: 650px; margin: 24vh 0 20px; font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 6vw, 78px); line-height: 1.02; letter-spacing: -.055em; font-weight: 500; }
.daypic-family-auth-story p:not(.eyebrow) { max-width: 530px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.75; }
.daypic-family-auth-note { font-size: 12px !important; letter-spacing: .04em; }
.daypic-family-auth-panel { display: grid; place-items: center; padding: 48px; }
.daypic-family-auth-card { width: min(100%, 430px); padding: 40px; border: 1px solid #d8d0c3; background: #fbf8f1; box-shadow: 0 18px 48px rgba(37,44,39,.1); }
.daypic-family-auth-card h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 35px; line-height: 1.1; letter-spacing: -.04em; font-weight: 500; }
.daypic-family-auth-card label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.daypic-family-auth-card input[type="text"], .daypic-family-auth-card input[type="password"] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #cfc7ba; border-radius: 0; outline: none; color: #1c241f; background: #fffdf8; }
.daypic-family-auth-card input:focus { border-color: #1f3128; box-shadow: 0 0 0 3px rgba(31,49,40,.12); }
.daypic-family-auth-card .primary-button { border-radius: 0; background: #1f3128; }
.daypic-family-auth-card .primary-button:hover { background: #2c4538; }
.daypic-family-auth-card .privacy-note { margin-top: 48px; }

.portal-page { overflow-x: hidden; background: #f7f6f1; }
.portal-screen {
  --portal-accent: #286749;
  --portal-accent-deep: #173a2a;
  --portal-orb: #bbd7cf;
  --portal-orb-soft: #e7d7ad;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: 0 max(26px, calc((100vw - 1296px) / 2)) 42px;
  background: #f7f6f1;
}
.portal-screen.theme-travel { --portal-accent: #8a572d; --portal-accent-deep: #51351f; --portal-orb: #dda670; --portal-orb-soft: #a9d6d3; }
.portal-screen.theme-xhs { --portal-accent: #684c76; --portal-accent-deep: #473052; --portal-orb: #c8acd2; --portal-orb-soft: #b7ddd0; }
.portal-screen.theme-life { --portal-accent: #4f7658; --portal-accent-deep: #304c37; --portal-orb: #b8d1ad; --portal-orb-soft: #d8e6d4; }
.portal-screen.theme-daypic { --portal-accent: #b65f4d; --portal-accent-deep: #1f3128; --portal-orb: #e6b8aa; --portal-orb-soft: #d9e0d6; }
.portal-screen.theme-benefits { --portal-accent: #8d6846; --portal-accent-deep: #27483c; --portal-orb: #e2b082; --portal-orb-soft: #dce8d9; }
.portal-screen.theme-preview { --portal-accent: #426b82; --portal-accent-deep: #29485b; --portal-orb: #b5d3df; --portal-orb-soft: #d3e4ec; }
.portal-screen.theme-commerce { --portal-accent: #855f2e; --portal-accent-deep: #49371f; --portal-orb: #dfc389; --portal-orb-soft: #b7d8ce; }
.portal-screen::before,
.portal-screen::after { content: ""; position: absolute; z-index: -2; border-radius: 999px; pointer-events: none; }
.portal-screen::before { width: 680px; height: 680px; right: -170px; top: -330px; opacity: .92; background: radial-gradient(circle at 45% 42%, var(--portal-orb) 0 26%, color-mix(in srgb, var(--portal-orb), white 22%) 27% 47%, transparent 69%); }
.portal-screen::after { width: 470px; height: 470px; left: -260px; bottom: -270px; opacity: .7; background: radial-gradient(circle, var(--portal-orb-soft) 0 34%, transparent 70%); }
.portal-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .28; background-image: radial-gradient(rgba(20,34,25,.13) .6px, transparent .7px); background-size: 7px 7px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.portal-topbar { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.portal-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.portal-mark { position: relative; width: 38px; height: 38px; overflow: hidden; flex: 0 0 38px; border-radius: 13px; background: #173a2a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.portal-mark::before, .portal-mark::after { content: ""; position: absolute; border-radius: 50%; background: #eff7f1; }
.portal-mark::before { width: 19px; height: 19px; left: 7px; top: 16px; }
.portal-mark::after { width: 19px; height: 19px; left: 16px; top: 9px; }
.portal-account-wrap { display: flex; align-items: center; gap: 8px; }
.portal-app-link { display: inline-grid; min-height: 44px; place-items: center; padding: 0 14px; border: 1px solid rgba(29,51,39,.09); border-radius: 999px; color: #314b3e; background: rgba(255,255,255,.52); font-size: 11px; font-weight: 800; }
.portal-account { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 6px 5px 14px; border: 1px solid rgba(29,51,39,.11); border-radius: 999px; background: rgba(255,255,255,.58); backdrop-filter: blur(16px); font-size: 12px; font-weight: 750; }
.portal-account b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--portal-accent-deep); font-size: 12px; }
.portal-account.is-login b { width: auto; min-width: 50px; padding: 0 12px; border-radius: 999px; }
.portal-account-wrap form { margin: 0; }
.portal-logout { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(29,51,39,.09); border-radius: 999px; color: #53645a; background: rgba(255,255,255,.45); cursor: pointer; font-size: 11px; font-weight: 700; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(310px, .78fr); gap: 26px; min-height: calc(100svh - 138px); }
.portal-focus { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 620px; padding: 42px; border: 1px solid rgba(255,255,255,.55); border-radius: 30px; background: rgba(255,255,255,.38); backdrop-filter: blur(26px); box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 20px 60px rgba(31,46,37,.05); }
.portal-focus::after { content: ""; position: absolute; width: 250px; height: 250px; right: -60px; bottom: -90px; border: 38px solid rgba(255,255,255,.32); border-radius: 50%; }
.portal-meta { display: flex; align-items: center; gap: 10px; color: #385145; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-meta i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--portal-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--portal-accent), transparent 88%); }
.portal-meta small { margin-left: auto; color: #68776e; font-size: 9px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.portal-focus-copy { max-width: 650px; margin-top: 86px; }
.portal-focus-copy h1 { margin: 0 0 18px; font-size: clamp(42px, 4.3vw, 62px); line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.portal-focus-copy p { max-width: 560px; margin: 0; color: #405248; font-size: 15px; line-height: 1.72; }
.portal-focus-foot { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.portal-primary { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 19px; border-radius: 14px; color: white; background: var(--portal-accent-deep); box-shadow: 0 12px 28px color-mix(in srgb, var(--portal-accent-deep), transparent 75%); font-size: 13px; font-weight: 800; }
.portal-primary span { font-size: 17px; }
.portal-metric { text-align: right; }
.portal-metric strong { display: block; font-size: 42px; line-height: 1; letter-spacing: -.06em; }
.portal-metric small { color: #53645a; font-size: 11px; }
.portal-side { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; min-height: 0; }
.portal-side-title { display: flex; align-items: flex-end; justify-content: space-between; padding: 3px 2px 0; }
.portal-side-title h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.portal-side-title span { color: #52635a; font-size: 11px; }
.portal-tools { display: grid; align-content: start; gap: 12px; }
.portal-tool { position: relative; overflow: hidden; display: grid; grid-template-columns: 45px minmax(0, 1fr) 28px; align-items: center; gap: 13px; min-height: 96px; padding: 14px 16px; border: 1px solid rgba(29,51,39,.09); border-radius: 20px; background: rgba(255,255,255,.64); backdrop-filter: blur(18px); box-shadow: 0 12px 30px rgba(31,46,37,.05); }
.portal-tool.is-active { background: rgba(255,255,255,.86); box-shadow: 0 16px 34px rgba(31,46,37,.09); }
.portal-tool.is-disabled { opacity: .62; }
.portal-tool-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: white; background: #203a2e; font-size: 13px; font-weight: 900; }
.portal-tool-icon.kind-travel { color: #543c18; background: #efcf8f; font-size: 20px; }
.portal-tool-icon.kind-xhs { color: #563b62; background: #dfcce5; font-size: 20px; }
.portal-tool-icon.kind-life { color: #36533d; background: #d8e6d4; font-size: 17px; }
.portal-tool-icon.kind-daypic { color: #fffaf2; background: #1f3128; font-size: 17px; }
.portal-tool-icon.kind-benefits { color: #27483c; background: #e8dcc8; font-size: 17px; }
.portal-tool-icon.kind-preview { color: #29485b; background: #d3e4ec; font-size: 17px; }
.portal-tool-copy { min-width: 0; }
.portal-tool-copy strong, .portal-tool-copy small { display: block; }
.portal-tool-copy strong { margin-bottom: 5px; font-size: 14px; }
.portal-tool-copy small { overflow: hidden; color: #5b6a61; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.portal-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--portal-accent); background: color-mix(in srgb, var(--portal-accent), transparent 90%); font-size: 15px; }
.portal-privacy { align-self: end; margin: 0; padding: 15px 17px; border-radius: 18px; color: #4d6055; background: rgba(244,245,239,.68); font-size: 11px; line-height: 1.55; }
.portal-header { width: min(1296px, calc(100% - 48px)); height: 96px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.small-button { display: inline-grid; min-height: 44px; place-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; font-size: 13px; font-weight: 750; }
.dashboard-main { width: min(1296px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 52px; }
.access-denied-card { max-width: 680px; margin: 8vh auto 0; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 20px 60px rgba(28, 45, 36, .08); }
.access-denied-card h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.access-denied-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.primary-link { display: inline-grid; min-height: 44px; place-items: center; margin-top: 18px; padding: 0 18px; border-radius: 11px; color: white; background: var(--brand); font-size: 14px; font-weight: 750; }

.app-download-page { min-height: 100svh; overflow-x: hidden; background: linear-gradient(145deg, #f4f7f2 0%, #f8f4ed 54%, #eef4f0 100%); }
.app-download-main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 64px; }
.app-download-hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 46px; border: 1px solid rgba(38,73,56,.1); border-radius: 30px; background: rgba(255,255,255,.68); box-shadow: 0 22px 70px rgba(28,45,36,.07); }
.app-download-hero h1 { margin: 0 0 14px; font-size: clamp(44px, 7vw, 76px); line-height: .98; letter-spacing: -.06em; }
.app-download-hero p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.app-platforms { display: grid; grid-template-columns: repeat(2, auto); gap: 8px; flex: 0 0 auto; }
.app-platforms span { min-height: 38px; display: grid; place-items: center; padding: 0 13px; border-radius: 999px; color: #2c4f3d; background: #e4eee7; font-size: 11px; font-weight: 800; }
.app-install-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }
.app-install-card { min-height: 350px; padding: 32px; border: 1px solid rgba(38,73,56,.1); border-radius: 26px; background: rgba(255,255,255,.74); }
.app-install-card.is-primary { color: #f5fbf7; background: #1f3c2e; }
.app-install-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-device-mark { font-size: 13px; font-weight: 850; letter-spacing: .02em; }
.app-status { min-height: 34px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; color: #294538; background: #dfe9e2; font-size: 11px; font-weight: 800; }
.app-status.is-ready { color: #173525; background: #bfe1c9; }
.app-status.is-expired { color: #6d2f26; background: #f1cbc4; }
.app-install-card h2 { margin: 44px 0 12px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.04em; }
.app-install-card > p:not(.eyebrow):not(.app-expiry) { margin: 0; color: #596b61; line-height: 1.65; }
.app-install-card.is-primary > p:not(.app-expiry) { color: #cbd8d0; }
.app-download-button { width: 100%; min-height: 52px; display: grid; place-items: center; margin-top: 42px; border-radius: 14px; color: #173525; background: #f0d29c; font-size: 14px; font-weight: 850; }
.app-download-button.is-disabled { color: #8d9b93; background: #dfe5e1; cursor: not-allowed; }
.app-expiry { margin: 14px 0 0; color: #b9c8bf; font-size: 11px; line-height: 1.6; }
.app-install-steps { display: grid; gap: 19px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: app-step; }
.app-install-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 0 12px; counter-increment: app-step; }
.app-install-steps li::before { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); content: counter(app-step); font-size: 11px; font-weight: 850; }
.app-install-steps strong { font-size: 14px; }
.app-install-steps span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.app-distribution-note { margin-top: 18px; padding: 24px 28px; border: 1px solid #e1d4bd; border-radius: 20px; background: #fff8e9; }
.app-distribution-note strong { font-size: 14px; }
.app-distribution-note p { margin: 7px 0 0; color: #685b46; font-size: 12px; line-height: 1.65; }

@media (max-width: 840px) {
  .auth-shell { display: block; }
  .auth-story { display: none; }
  .auth-panel-wrap { position: relative; min-height: 100svh; overflow: hidden; align-items: start; padding: 28px 24px 44px; }
  .auth-panel-wrap::before { content: ""; position: absolute; width: 330px; height: 330px; right: -150px; top: -150px; border-radius: 50%; background: #dcebe2; }
  .auth-card { position: relative; z-index: 1; width: 100%; max-width: 430px; margin-top: 18px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .mobile-brand { display: inline-flex; margin-bottom: 74px; }
  .auth-card h2 { font-size: 30px; }
  .privacy-note { margin-top: 74px; }
  .daypic-family-auth-shell { display: block; }
  .daypic-family-auth-story { min-height: 245px; padding: 34px 24px 28px; border-right: 0; }
  .daypic-family-auth-story h1 { max-width: 330px; margin: 54px 0 12px; font-size: 40px; }
  .daypic-family-auth-story p:not(.eyebrow):not(.daypic-family-auth-note) { display: none; }
  .daypic-family-auth-note { max-width: 310px !important; }
  .daypic-family-auth-panel { display: block; padding: 28px 20px 48px; }
  .daypic-family-auth-card { width: 100%; max-width: 430px; margin: 0 auto; padding: 28px 22px; }
  .daypic-family-auth-card h2 { font-size: 31px; }
  .daypic-family-auth-card .privacy-note { margin-top: 44px; }
  .portal-screen { padding: 0 20px 26px; }
  .portal-screen::before { width: 440px; height: 440px; right: -185px; top: -185px; }
  .portal-screen::after { width: 330px; height: 330px; left: -190px; bottom: -190px; }
  .portal-topbar { height: 78px; }
  .portal-brand { font-size: 14px; }
  .portal-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .portal-account { min-height: 44px; padding: 4px; border: 0; background: rgba(255,255,255,.48); }
  .portal-account > span { display: none; }
  .portal-account b { width: 33px; height: 33px; }
  .portal-account.is-login b { width: auto; min-width: 52px; padding-inline: 12px; }
  .portal-app-link { min-width: 44px; padding: 0 10px; font-size: 0; }
  .portal-app-link::after { content: "App"; font-size: 11px; }
  .portal-logout { min-height: 44px; padding: 0 10px; font-size: 10px; }
  .portal-layout { display: block; min-height: 0; }
  .portal-focus { min-height: 365px; padding: 26px 24px; border-radius: 27px; }
  .portal-meta { gap: 8px; font-size: 10px; }
  .portal-meta small { position: absolute; left: 24px; top: 49px; }
  .portal-focus-copy { margin-top: 58px; }
  .portal-focus-copy h1 { margin-bottom: 13px; font-size: 37px; line-height: 1.07; }
  .portal-focus-copy p { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.62; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .portal-focus-foot { align-items: center; }
  .portal-primary { min-height: 44px; padding: 0 16px; }
  .portal-metric strong { font-size: 34px; }
  .portal-side { display: block; }
  .portal-side-title { margin: 25px 2px 13px; }
  .portal-side-title h2 { font-size: 18px; }
  .portal-tools { gap: 10px; }
  .portal-tool { grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 12px; min-height: 79px; padding: 11px 13px; border-radius: 18px; }
  .portal-tool-icon { width: 42px; height: 42px; border-radius: 13px; }
  .portal-privacy { display: none; }
  .portal-header { width: min(100% - 32px, 520px); height: 82px; }
  .portal-header .brand span:last-child { display: none; }
  .dashboard-main { width: min(100% - 32px, 520px); padding-top: 18px; }
  .app-download-header { width: min(100% - 32px, 560px); }
  .app-download-main { width: min(100% - 32px, 560px); padding-top: 6px; }
  .app-download-hero { display: block; padding: 30px 24px; border-radius: 25px; }
  .app-download-hero h1 { font-size: 46px; }
  .app-download-hero p:not(.eyebrow) { font-size: 14px; }
  .app-platforms { grid-template-columns: repeat(4, 1fr); margin-top: 26px; }
  .app-platforms span { min-height: 36px; padding: 0 8px; }
  .app-install-grid { display: block; }
  .app-install-card { min-height: 0; margin-top: 14px; padding: 25px 22px; border-radius: 23px; }
  .app-install-card h2 { margin-top: 35px; }
  .app-download-button { min-height: 50px; margin-top: 32px; }
  .app-distribution-note { padding: 21px 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .portal-tool, .portal-primary, .primary-button, .portal-app-link, .app-download-button { transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
  .portal-tool:hover, .portal-primary:hover, .portal-app-link:hover, .app-download-button:hover { transform: translateY(-1px); }
}
