:root{
  --bg:#FBF8F2;
  --surface:#FFFFFF;
  --surface-soft:#FCEFD7;
  --ink:#171F3D;
  --muted:#4B5478;
  --line:rgba(11,35,88,.14);
  --navy:#0C2358;
  --navy-deep:#071A45;
  --gold:#E8A63D;
  --gold-ink:#96600A;
  --gold-soft:#FCEFD7;
  --blue:#2F63D6; --blue-soft:#E6EDFB;
  --violet:#7452D9; --violet-soft:#ECE6FB;
  --green:#2F8F5B; --green-soft:#E4F5EA;
  --red:#C43B33; --red-strong:#7A211C; --red-soft:#FBE7E4;
  --shadow:0 16px 45px rgba(7,26,69,.10);
  --shadow-lg:0 22px 60px rgba(7,26,69,.16);
  --radius-lg:24px;--radius-md:19px;--radius-sm:15px;
  --display:'Fraunces',Georgia,serif;
  --body:'Public Sans',ui-rounded,"SF Pro Rounded","Segoe UI",system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:var(--body)}
body{min-height:100vh;min-height:100dvh;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;box-shadow:0 0 0 5px rgba(7,26,69,.28);border-radius:8px}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

.app-shell{width:100%;min-height:100vh;min-height:100dvh;background:var(--bg)}
.screen{width:min(100%,760px);margin:0 auto;min-height:100vh;min-height:100dvh;padding:calc(20px + env(safe-area-inset-top)) 20px calc(38px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:13px}

.app-top{display:flex;align-items:center;gap:12px;margin-bottom:5px}
.brand-icon{width:52px;height:52px;border-radius:16px;object-fit:cover;box-shadow:0 6px 16px rgba(7,26,69,.22);flex:0 0 auto}
.brand-copy{min-width:0;flex:1}
.brand-name{display:block;font-family:var(--display);font-size:18px;line-height:1.1;font-weight:600;color:var(--ink)}
.brand-sub{display:block;font-size:12px;font-weight:800;letter-spacing:1.55px;color:var(--gold-ink);margin-top:3px}
.top-action{border:1.5px solid var(--line);background:var(--surface);color:var(--navy-deep);border-radius:14px;min-width:48px;height:48px;padding:0;display:grid;place-items:center}
.top-action svg{width:22px;height:22px}

.lang-row{display:flex;gap:6px;justify-content:flex-end;margin:-2px 0 3px}
.lang-btn{border:0;background:transparent;color:#7A8399;font-weight:800;font-size:12px;padding:6px 9px;border-radius:9px}
.lang-btn.active{background:var(--gold-soft);color:var(--gold-ink)}

.eyebrow{font-size:13px;font-weight:800;color:var(--gold-ink);text-transform:uppercase;letter-spacing:1.2px;margin-top:4px}
h1{font-family:var(--display);font-size:34px;line-height:1.1;letter-spacing:-.3px;margin:0;font-weight:600;color:var(--ink)}
.subtitle{font-size:17px;line-height:1.55;color:var(--muted);margin:0 0 3px;max-width:660px}

.dark-card{background:var(--navy-deep);color:white;border-radius:var(--radius-lg);padding:22px;box-shadow:var(--shadow-lg);position:relative;overflow:hidden}
.dark-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:999px;background:rgba(232,166,61,.14);right:-70px;top:-80px}
.dark-card .mini{font-size:12px;text-transform:uppercase;letter-spacing:1px;font-weight:800;color:var(--gold)}
.dark-card h2{font-family:var(--display);font-size:24px;line-height:1.2;margin:6px 0 6px;font-weight:600;position:relative;z-index:1}
.dark-card p{font-size:15px;line-height:1.5;margin:0;color:rgba(255,255,255,.82);position:relative;z-index:1}
.dark-meta{display:flex;align-items:center;gap:9px;margin-top:16px;font-size:13px;font-weight:700;color:#fff;position:relative;z-index:1}
.status-dot{width:10px;height:10px;border-radius:999px;background:#4ADE80;box-shadow:0 0 0 5px rgba(74,222,128,.18);animation:cc-breathe 2.4s ease-in-out infinite}
@keyframes cc-breathe{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.5);opacity:.6}}

.section-label{font-family:var(--display);font-size:20px;font-weight:600;margin:7px 0 0;color:var(--ink)}
.card-list{display:grid;gap:12px}
.action-card{width:100%;border:1.5px solid var(--line);background:var(--surface);border-radius:var(--radius-md);padding:17px;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:14px;text-align:left;box-shadow:0 5px 18px rgba(7,26,69,.05);color:var(--ink);transition:transform .14s ease,box-shadow .14s ease}
.action-card:active{transform:scale(.985)}
.action-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;font-size:15px;font-weight:800}
.action-icon svg{width:30px;height:30px}
.icon-green{background:var(--green-soft);color:var(--green)}
.icon-blue{background:var(--blue-soft);color:var(--blue)}
.icon-amber{background:var(--gold-soft);color:var(--gold-ink)}
.icon-purple{background:var(--violet-soft);color:var(--violet)}
.action-copy{min-width:0}
.action-title{display:block;font-size:19px;line-height:1.25;font-weight:700;color:var(--ink)}
.action-desc{display:block;font-size:14px;line-height:1.4;color:var(--muted);margin-top:4px}
.action-badge{align-self:flex-start;background:var(--gold-soft);color:var(--gold-ink);font-size:12px;font-weight:800;border-radius:999px;padding:7px 10px;white-space:nowrap}
.chevron{font-size:26px;color:#A9AFC4;font-weight:700;align-self:center}

.sos-card{background:var(--red-strong);border-color:transparent;color:#fff;box-shadow:0 12px 30px rgba(122,33,28,.24)}
.sos-card .action-icon{background:rgba(255,255,255,.16);color:#fff;font-size:16px;letter-spacing:.5px}
.sos-card .action-title{color:#fff}
.sos-card .action-desc{color:#F6D3D0}
.sos-card .chevron{color:#F6D3D0}

.form-card,.white-card{background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius-md);padding:18px;box-shadow:0 8px 26px rgba(7,26,69,.06)}
.form-card{display:grid;gap:14px}
.field{display:grid;gap:7px}
.field label{font-size:14px;font-weight:700;color:var(--ink)}
.input-wrap{position:relative}
.field input{width:100%;height:56px;border:1.5px solid #D9DFEC;background:#FDFCFA;border-radius:15px;padding:0 16px;color:var(--ink);font-size:17px;outline:none}
.field input:focus{border-color:var(--navy-deep);box-shadow:0 0 0 4px rgba(7,26,69,.10)}
.eye-btn{position:absolute;right:7px;top:7px;width:42px;height:42px;border:0;background:transparent;border-radius:12px;color:var(--muted);font-size:20px;display:grid;place-items:center}
.eye-btn svg{width:22px;height:22px}

.primary-btn,.secondary-btn,.google-btn,.bio-btn{min-height:56px;border-radius:999px;border:0;padding:0 18px;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px}
.primary-btn{background:var(--gold);color:var(--navy-deep);box-shadow:0 10px 24px rgba(232,166,61,.35)}
.secondary-btn{background:var(--gold-soft);color:var(--gold-ink)}
.google-btn{background:#fff;color:#333;border:1.5px solid var(--line)}
.google-mark{font-size:20px;color:#4285F4;font-weight:800}
.bio-btn{background:var(--blue-soft);color:var(--blue)}
.bio-btn + .google-btn{margin-top:-2px}
.divider{display:flex;align-items:center;gap:12px;color:#8A93AC;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}
.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}
.check-row{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px;font-weight:600}
.check-row input{width:20px;height:20px;accent-color:var(--navy-deep)}
.link-btn{border:0;background:transparent;padding:5px 0;color:var(--gold-ink);font-size:14px;font-weight:700;text-align:left}
.form-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.notice{border-radius:15px;padding:13px 14px;font-size:14px;line-height:1.45;font-weight:600;background:var(--gold-soft);color:var(--gold-ink)}
.notice.error{background:var(--red-soft);color:#8A2019}
.notice.success{background:var(--green-soft);color:#1F6B44}

.back-row{display:flex;align-items:center;gap:10px;margin-bottom:1px}
.back-btn{width:48px;height:48px;border:1.5px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);font-size:25px;font-weight:700;display:grid;place-items:center}
.detail-title{font-family:var(--display);font-size:30px;margin:0;font-weight:600;letter-spacing:-.3px}
.detail-desc{font-size:16px;line-height:1.5;color:var(--muted);margin:-4px 0 2px}

.item-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #EFEBE0}
.item-row:last-child{border-bottom:0}
.item-main{min-width:0}
.item-name{font-size:17px;font-weight:700;color:var(--ink)}
.item-meta{font-size:14px;color:var(--muted);margin-top:3px}
.item-time{font-size:17px;font-weight:800;color:var(--ink)}

.big-ok{min-height:78px;width:100%;border:0;border-radius:22px;background:var(--green-soft);color:#1F6B44;font-size:23px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:12px}
.big-ok svg{width:26px;height:26px}
.inline-ico{display:inline-flex;width:18px;height:18px;flex-shrink:0}

.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #EFEBE0}
.settings-row:last-child{border-bottom:0}
.settings-label{font-size:16px;font-weight:700}
.settings-desc{font-size:13px;color:var(--muted);margin-top:3px}
.toggle{width:52px;height:30px;border-radius:999px;background:#D7DBE8;border:0;padding:3px;display:flex;justify-content:flex-start;transition:.2s}
.toggle.on{background:var(--navy-deep);justify-content:flex-end}
.toggle:after{content:"";width:24px;height:24px;border-radius:999px;background:white;box-shadow:0 2px 6px rgba(0,0,0,.15)}

.bottom-note{font-size:12px;line-height:1.5;color:#8A93AC;text-align:center;margin-top:auto;padding-top:7px}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(30px);opacity:0;background:var(--navy-deep);color:white;font-weight:700;padding:14px 18px;border-radius:14px;box-shadow:0 16px 40px rgba(7,26,69,.35);transition:.22s;z-index:40;max-width:min(90vw,480px);text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.hidden{display:none!important}

@media(min-width:860px){
  body{background:#F0EBDE}
  .app-shell{padding:26px}
  .screen{min-height:calc(100dvh - 52px);background:var(--bg);border-radius:30px;box-shadow:0 26px 80px rgba(7,26,69,.16);padding:30px 34px 38px;overflow:auto}
  .action-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(7,26,69,.09)}
  h1{font-size:39px}
  .card-list.two-col{grid-template-columns:1fr 1fr}
}
@media(max-width:390px){
  .screen{padding-left:16px;padding-right:16px}
  h1{font-size:31px}
  .action-card{grid-template-columns:52px 1fr auto;padding:15px;gap:11px}
  .action-icon{width:52px;height:52px}
  .action-icon svg{width:25px;height:25px}
  .action-title{font-size:18px}
  .action-badge{font-size:11px;padding:6px 8px}
}

.large-text h1{font-size:40px}
.large-text .subtitle{font-size:19px}
.large-text .action-title{font-size:22px}
.large-text .action-desc{font-size:16px}
.large-text .field input{font-size:19px}
.large-text .primary-btn,.large-text .google-btn,.large-text .bio-btn,.large-text .secondary-btn{font-size:19px;min-height:62px}
.large-text .item-name,.large-text .item-time{font-size:19px}
.large-text .settings-label{font-size:18px}
.large-text .detail-title{font-size:33px}

/* Help, settings and appearance */
.icon-help{background:#EAF3F5;color:#247285}
.theme-quick{width:48px;height:48px;border:1.5px solid var(--line);background:var(--surface);color:var(--navy-deep);border-radius:999px;display:grid;place-items:center;padding:0;box-shadow:0 5px 16px rgba(7,26,69,.06)}
.theme-quick span{font-size:22px;line-height:1}
.settings-block{padding:4px 0 17px;border-bottom:1px solid #EFEBE0}
.theme-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.theme-choice{min-height:82px;border:1.5px solid var(--line);background:var(--surface);border-radius:18px;color:var(--ink);font-weight:800;display:flex;align-items:center;justify-content:center;gap:11px;padding:10px}
.theme-choice.active{border-color:var(--gold);box-shadow:0 0 0 3px rgba(232,166,61,.18)}
.theme-orb{width:42px;height:42px;border-radius:999px;display:grid;place-items:center;font-size:22px;box-shadow:inset 0 0 0 1px rgba(7,26,69,.08)}
.theme-orb.sun{background:#FFF0B8;color:#9C6504}.theme-orb.moon{background:#19284C;color:#EAF0FF}
.help-link-btn svg{width:22px;height:22px}
.signout-btn{min-height:58px;border-radius:18px;border:1.5px solid rgba(196,59,51,.28);background:var(--red-soft);color:#8A2019;font-size:17px;font-weight:800;padding:0 18px}
.help-search{height:58px;border:1.5px solid var(--line);background:var(--surface);border-radius:18px;display:flex;align-items:center;gap:10px;padding:0 16px;box-shadow:0 5px 18px rgba(7,26,69,.05)}
.help-search-icon{font-size:25px;color:var(--muted);line-height:1}
.help-search input{border:0;outline:0;background:transparent;color:var(--ink);font-size:17px;width:100%;height:100%}
.help-search input::placeholder{color:#8A93AC}
.help-list{display:grid;gap:11px}
.help-card{background:var(--surface);border:1.5px solid var(--line);border-radius:19px;padding:17px;display:grid;grid-template-columns:38px 1fr;gap:13px;box-shadow:0 5px 18px rgba(7,26,69,.045)}
.help-number{width:38px;height:38px;border-radius:12px;background:var(--gold-soft);color:var(--gold-ink);display:grid;place-items:center;font-weight:900}
.help-card h2{font-family:var(--body);font-size:17px;line-height:1.3;margin:1px 0 5px;color:var(--ink)}
.help-card p{font-size:15px;line-height:1.55;color:var(--muted);margin:0}
.help-empty{background:var(--surface);border:1.5px dashed var(--line);border-radius:18px;padding:24px;text-align:center;color:var(--muted);font-weight:700}

body.theme-dark{
  color-scheme:dark;
  --bg:#0E1423;--surface:#171F31;--surface-soft:#263047;--ink:#F7F8FC;--muted:#B8C1D6;--line:rgba(232,237,249,.13);--navy:#91B5FF;--navy-deep:#10192D;--gold:#F3B957;--gold-ink:#FFD990;--gold-soft:#302918;--blue:#8AB1FF;--blue-soft:#1C2B4D;--violet:#B5A3FF;--violet-soft:#2C254A;--green:#7FD4A5;--green-soft:#183B2A;--red:#FF8378;--red-strong:#8E2E29;--red-soft:#3D201F;
}
body.theme-dark{background:#090E19}
body.theme-dark .screen{background:var(--bg)}
body.theme-dark .field input{background:#101727;border-color:#33405C;color:var(--ink)}
body.theme-dark .google-btn,body.theme-dark .back-btn{background:var(--surface);color:var(--ink)}
body.theme-dark .settings-row,body.theme-dark .settings-block,body.theme-dark .item-row{border-color:#2B344A}
body.theme-dark .help-search input::placeholder{color:#7F8AA3}
body.theme-dark .signout-btn{color:#FFC1BC}
body.theme-dark .dark-card{background:#18233C}
body.theme-dark .theme-choice.active{box-shadow:0 0 0 3px rgba(243,185,87,.16)}
@media(min-width:860px){body.theme-dark{background:#080D17}}
.large-text .help-card h2{font-size:20px}.large-text .help-card p{font-size:17px}.large-text .help-search input{font-size:19px}.large-text .signout-btn{font-size:19px;min-height:62px}

.first-access-note{margin:18px 0 10px;padding:14px 16px;border-radius:16px;background:var(--soft);color:var(--text);font-size:14px;line-height:1.45}.create-account-btn{width:100%;margin-bottom:8px}.input-wrap input{padding-right:56px}
