:root { color-scheme: light; --navy:#152f4a; --blue:#2c78a6; --teal:#1f8a70; --sky:#dceef7; --paper:#f5f8fa; --ink:#18313f; --muted:#667985; --line:#d6e0e8; }
* { box-sizing: border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100vh; background:linear-gradient(155deg,#e7f3f8 0%,#fbfcfa 48%,#edf3f8 100%); color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.42; background:radial-gradient(ellipse at 12% 8%,#ffffff 0 8%,transparent 9%),radial-gradient(ellipse at 87% 20%,#ffffff 0 7%,transparent 8%),radial-gradient(#2c78a61c 1px,transparent 1px); background-size:auto,auto,24px 24px; }
.site-footer { display:flex; justify-content:center; flex-wrap:wrap; gap:10px 22px; margin-top:28px; color:var(--muted); font-size:14px; }
.site-footer a { color:inherit; text-underline-offset:3px; }
.site-footer a:hover,.site-footer a:focus-visible { color:var(--blue); }
.marketing-page main { width:min(1160px,calc(100% - 36px)); padding-top:28px; }
.marketing-nav { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand-link { display:flex; align-items:center; gap:12px; color:var(--navy); text-decoration:none; font-family:Georgia,serif; font-size:25px; }
.brand-link .mark { width:48px; height:48px; }
.brand-link strong span { color:var(--teal); }
.marketing-hero { display:grid; grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr); gap:68px; align-items:center; min-height:680px; padding:72px 0; }
.marketing-hero h1 { max-width:720px; font-size:clamp(50px,6.6vw,82px); line-height:.98; letter-spacing:-.035em; }
.hero-lead { max-width:650px; margin:24px 0 0; color:var(--muted); font-size:20px; line-height:1.65; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:22px; margin-top:30px; }
.text-link { color:var(--blue); font-weight:800; text-underline-offset:4px; }
.hero-note { margin:18px 0 0; color:var(--muted); font-size:13px; }
.flight-preview { position:relative; padding:24px; border:1px solid #cbdce7; border-radius:34px; background:#f9fbfcdb; box-shadow:0 28px 70px #17324d22; transform:rotate(1.2deg); }
.flight-preview::before { content:""; position:absolute; inset:-14px 24px 14px -14px; z-index:-1; border-radius:34px; background:linear-gradient(145deg,#d8edf5,#eaf5ef); }
.preview-top { display:flex; justify-content:space-between; align-items:center; padding:0 4px 18px; color:var(--navy); font-weight:850; }
.preview-top span:last-child { color:var(--teal); font-size:13px; }
.preview-metrics { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px; }
.preview-metrics div { padding:18px; border-radius:20px; background:var(--sky); text-align:center; }
.preview-metrics small { display:block; margin-bottom:6px; color:var(--muted); font-weight:750; }
.preview-metrics strong { color:var(--navy); font-size:25px; }
.flight-preview article { margin-top:10px; padding:17px 18px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.flight-preview article strong { color:var(--teal); }
.flight-preview article p { margin:7px 0; color:var(--ink); font-weight:750; }
.flight-preview article span { color:var(--muted); font-size:13px; }
.marketing-section { padding:80px 0; }
.marketing-section>h2 { max-width:680px; margin-top:8px; font-family:Georgia,serif; font-size:42px; line-height:1.08; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px; }
.feature-grid article { padding:28px; border-top:3px solid var(--teal); border-radius:0 0 22px 22px; background:#ffffffb8; }
.feature-grid article>span { color:var(--teal); font-size:12px; font-weight:900; letter-spacing:.14em; }
.feature-grid h3 { margin:20px 0 8px; color:var(--navy); font-size:21px; }
.feature-grid p { margin:0; color:var(--muted); line-height:1.6; }
.trust-section { display:grid; grid-template-columns:.8fr 1.2fr; gap:55px; padding:42px; }
.trust-section h2,.final-cta h2 { margin:8px 0 0; font-family:Georgia,serif; color:var(--navy); font-size:40px; }
.trust-points { display:grid; gap:18px; }
.trust-points p { display:grid; grid-template-columns:150px 1fr; gap:16px; margin:0; padding-bottom:18px; border-bottom:1px solid var(--line); }
.trust-points p:last-child { padding-bottom:0; border:0; }
.trust-points strong { color:var(--navy); }
.trust-points span { color:var(--muted); line-height:1.5; }
.final-cta { padding:110px 20px 70px; text-align:center; }
.final-cta h2 { margin-bottom:26px; font-size:48px; }
.marketing-footer { padding-top:28px; border-top:1px solid var(--line); }
.policy-document { width:min(780px,100%); margin:72px auto 40px; padding:54px 60px; border:1px solid var(--line); border-radius:28px; background:#fffffff0; box-shadow:0 24px 64px #17324d14; }
.policy-document header { display:block; margin:0 0 38px; }
.policy-document h1 { margin-top:8px; font-size:54px; }
.policy-updated { margin:14px 0 0; color:var(--muted); font-size:14px; }
.policy-document h2 { margin:42px 0 12px; font-family:Georgia,serif; font-size:29px; }
.policy-document h3 { margin:25px 0 8px; color:var(--navy); font-size:18px; }
.policy-document p,.policy-document li { color:#465d6b; font-size:16px; line-height:1.75; }
.policy-document ul { padding-left:22px; }
.policy-document a { color:var(--blue); text-underline-offset:3px; }
@media (max-width:900px) { .marketing-hero{grid-template-columns:1fr;gap:46px;min-height:auto}.flight-preview{max-width:620px;transform:none}.feature-grid{grid-template-columns:1fr}.trust-section{grid-template-columns:1fr}.marketing-section{padding:60px 0} }
@media (max-width:620px) { .marketing-page main{padding-top:18px}.marketing-nav .button{padding:11px 15px}.marketing-hero{padding:62px 0 48px}.marketing-hero h1{font-size:48px}.hero-lead{font-size:17px}.flight-preview{padding:15px;border-radius:24px}.preview-metrics{grid-template-columns:1fr}.trust-section{padding:28px 22px}.trust-points p{grid-template-columns:1fr;gap:5px}.final-cta{padding:80px 8px 48px}.final-cta h2{font-size:38px}.policy-document{margin-top:48px;padding:34px 22px;border-radius:22px}.policy-document h1{font-size:42px} }
main { position:relative; width:min(1180px,calc(100% - 32px)); margin:0 auto; padding:56px 0 80px; }
header { display:flex; gap:20px; align-items:center; margin-bottom:34px; }
.account-bar { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:20px; padding:14px 18px; }
.account-actions { display:flex; align-items:center; gap:8px; }
.status-dot { display:inline-block; width:9px; height:9px; margin-right:8px; border-radius:50%; background:var(--teal); }
.saved-label { flex-direction:row; align-items:center; white-space:nowrap; }
.saved-label select { min-width:180px; }
.compact-button { padding:11px 14px; }
.save-icon { display:none; flex:0 0 auto; width:19px; height:19px; color:#fff; }
.save-icon svg { display:block; width:100%; height:100%; fill:currentColor; }
.save-spinner { border:2px solid #ffffff75; border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
.is-saving .save-lock,.is-saved .save-lock { display:none; }
.is-saving .save-spinner,.is-saved .save-check { display:inline-block; }
.secondary.is-saving { background:var(--blue); color:#fff; }
.secondary.is-saved { background:var(--teal); color:#fff; }
.secondary.is-offline { background:#8a5a00; color:#fff; }
.floating-save { position:fixed; right:max(20px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom)); z-index:90; background:var(--blue); color:#fff; box-shadow:0 12px 30px #17324d38; }
.mark { display:block; width:68px; height:68px; flex:0 0 auto; filter:drop-shadow(0 14px 15px #152f4a25); }
.eyebrow,.step { margin:0 0 6px; color:var(--teal); font-weight:800; font-size:12px; letter-spacing:.16em; }
h1 { margin:0; font-family:Georgia,serif; color:var(--navy); font-size:52px; line-height:.95; }
h1 span { color:var(--teal); }
h2 { margin:0; color:var(--navy); font-size:24px; }
.subtitle,.hint { margin:8px 0 0; color:var(--muted); }
.card { background:#fffffff2; border:1px solid #fff; border-radius:22px; box-shadow:0 18px 50px #17324d16; }
.form-section { margin-bottom:20px; padding:28px 30px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.field-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.field-grid.compact { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
label { display:flex; flex-direction:column; gap:7px; color:var(--muted); font-size:13px; font-weight:700; }
input,select { width:100%; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); padding:11px 12px; font:inherit; outline:none; }
input:focus,select:focus { border-color:var(--teal); box-shadow:0 0 0 3px #1f8a7018; }
small { color:var(--muted); font-weight:500; }
.month-picker { grid-column:1/-1; margin:0; padding:14px; border:1px solid var(--line); border-radius:12px; }
.month-picker legend { padding:0 6px; color:var(--muted); font-size:13px; font-weight:700; }
.month-help { margin:0 0 10px; color:var(--muted); font-size:12px; }
.month-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.month-grid label { flex-direction:row; align-items:center; justify-content:center; gap:6px; padding:8px; border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; }
.month-grid input { width:auto; }
.repeater { display:grid; gap:14px; }
.entry { padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--paper); transition:padding .18s ease; }
.entry-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.entry-toggle { display:flex; flex:1; align-items:center; gap:10px; min-width:0; padding:4px 0; border-radius:8px; background:transparent; color:var(--navy); text-align:left; }
.entry-toggle:hover { transform:none; filter:none; color:var(--teal); }
.entry-title { overflow:hidden; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.entry-chevron { font-size:18px; transition:transform .18s ease; }
.entry.collapsed { padding:11px 16px; background:#fff; }
.entry.collapsed .entry-head { margin-bottom:0; }
.entry.collapsed .entry-body { display:none; }
.entry.collapsed .entry-chevron { transform:rotate(-90deg); }
.entry h3 { margin:0; color:var(--navy); }
.check-label { align-self:end; min-height:43px; flex-direction:row; align-items:center; }
.check-label input { width:auto; }
.ghost { padding:7px 10px; color:var(--muted); background:transparent; }
.submit-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px 4px 30px; }
.actions { display:flex; gap:10px; }
button,.button { border:0; border-radius:12px; padding:13px 18px; background:var(--teal); color:#fff; font:inherit; font-weight:750; cursor:pointer; text-decoration:none; transition:.18s ease; }
button:hover,.button:hover { transform:translateY(-1px); filter:brightness(.96); }
button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.secondary { background:#e8f2f8; color:var(--blue); }
.progress,.error { margin-top:20px; padding:20px 24px; }
.progress { display:flex; align-items:center; gap:16px; }
.progress p { margin:4px 0 0; color:var(--muted); }
.spinner { width:28px; height:28px; border:3px solid #d7ebe6; border-top-color:var(--teal); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.generation-overlay { position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:24px; background:#102b43b8; backdrop-filter:blur(7px); }
.launch-window { width:min(520px,100%); padding:34px; overflow:hidden; border:1px solid #ffffffb8; border-radius:24px; background:#fbfdfd; box-shadow:0 30px 90px #0c223c66; text-align:center; }
.launch-window h2 { margin-bottom:8px; font-size:28px; }
.launch-window>p:last-of-type { margin:0; color:var(--muted); }
.launch-route { position:relative; height:64px; margin:-4px 0 10px; border-bottom:2px dashed #9cc8db; }
.launch-route::after { content:""; position:absolute; right:0; bottom:-5px; width:9px; height:9px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 5px #1f8a701a; }
.launch-plane { position:absolute; left:0; bottom:8px; color:var(--blue); font-size:30px; animation:takeoff 2.2s ease-in-out infinite; }
.launch-progress { height:8px; margin-top:24px; overflow:hidden; border-radius:99px; background:var(--sky); }
.launch-progress span { display:block; width:42%; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--blue),var(--teal)); animation:flight-progress 1.45s ease-in-out infinite; }
@keyframes takeoff { 0%{left:0;transform:translateY(0) rotate(-8deg)} 55%{transform:translateY(-14px) rotate(-12deg)} 100%{left:calc(100% - 34px);transform:translateY(-22px) rotate(-10deg)} }
@keyframes flight-progress { 0%{transform:translateX(-110%)} 100%{transform:translateX(340%)} }
.workbook-generating { overflow:hidden; }
@media (prefers-reduced-motion:reduce) { .launch-plane,.launch-progress span,.spinner{animation:none}.launch-plane{left:calc(50% - 15px);transform:translateY(-12px)} }
.error { border-color:#efc4bf; color:#8d2d23; background:#fff6f5; }
.error ul { margin-bottom:0; }
.notice { border-color:#a8dacd; color:#176b3a; background:#eaf7f1; }
#result { margin-top:38px; }
.result-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:16px; }
.viewer { border-radius:18px; }
.viewer-bar { position:sticky; top:0; z-index:3; display:flex; align-items:center; gap:12px; background:#edf5f7; }
.tabs { flex:1; display:flex; gap:8px; overflow:auto; padding:8px 2px 12px; scrollbar-width:thin; }
.tabs button { flex:0 0 auto; padding:9px 14px; background:#fff; color:var(--muted); border:1px solid var(--line); }
.tabs button.active { background:var(--navy); color:#fff; border-color:var(--navy); }
.sheet-frame { position:relative; overflow:auto; min-height:440px; padding:14px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 18px 50px #17324d16; }
.sheet-canvas { position:relative; width:max(100%,1000px); }
.sheet-frame img { display:block; width:100%; height:auto; }
.preview-image { position:relative; }
.summary-help { position:absolute; inset:0; z-index:3; pointer-events:none; }
.summary-help[hidden] { display:none; }
.help-tip { position:absolute; top:47%; pointer-events:auto; }
.scheduled-tip { left:31%; }
.due-tip { left:47.3%; }
.help-tip button { display:grid; place-items:center; width:19px; height:19px; padding:0; border:0; border-radius:50%; background:var(--blue); color:#fff; font-family:Georgia,serif; font-size:12px; font-weight:700; line-height:1; box-shadow:0 1px 3px #17324d30; }
.help-bubble { position:absolute; z-index:8; top:calc(100% + 8px); left:0; width:min(290px,calc(100vw - 48px)); padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#17324d; color:#fff; box-shadow:0 8px 24px rgba(23,50,77,.2); font-size:13px; line-height:1.4; opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .15s ease,transform .15s ease,visibility .15s; }
.help-tip:hover .help-bubble,.help-tip button:focus-visible + .help-bubble,.help-tip.open .help-bubble { opacity:1; visibility:visible; transform:translateY(0); }
.viewer-control { position:sticky; top:10px; left:0; z-index:4; display:flex; justify-content:flex-end; height:0; padding-right:2px; pointer-events:none; }
.viewer-toggle { flex:0 0 auto; display:grid; width:36px; height:36px; place-items:center; padding:0; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--navy); box-shadow:0 6px 18px #17324d20; pointer-events:auto; }
.viewer-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.viewer-collapse { flex:0 0 auto; display:grid; width:42px; height:42px; place-items:center; padding:0; border-radius:11px; background:var(--navy); color:#fff; }
.viewer-collapse svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.viewer.fullscreen { position:fixed; inset:0; z-index:100; display:flex; flex-direction:column; padding:0 18px 18px; border-radius:0; background:#edf5f7; }
.viewer.fullscreen .viewer-bar { padding-top:12px; }
.viewer.fullscreen .viewer-control { display:none; }
.viewer.fullscreen .sheet-frame { flex:1; min-height:0; border-radius:14px; }
.viewer.fullscreen .sheet-canvas { width:max(100%,1200px); }
.period-details { display:grid; gap:10px; padding:0 24px 24px; background:#fff; }
.period-details[hidden] { display:none; }
.period-card { border:1px solid var(--line); border-radius:12px; background:#f8fbfd; overflow:hidden; }
.period-toggle { position:relative; display:grid; grid-template-columns:120px 1fr; gap:8px 18px; width:100%; padding:14px 54px 14px 16px; border:0; border-radius:0; background:transparent; color:var(--ink); text-align:left; }
.period-date { grid-row:1/4; color:var(--teal); font-size:16px; font-weight:800; }
.period-toggle strong { font-size:14px; }
.period-toggle em { color:var(--amber-text,#8a5a00); font-size:13px; font-style:normal; font-weight:700; }
.period-symbol { position:absolute; top:10px; right:16px; color:var(--blue); font-size:30px; font-weight:500; line-height:1; }
.period-activity { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; padding:4px 16px 18px; border-top:1px solid var(--line); }
.period-activity h4 { margin:12px 0 6px; color:var(--navy); }
.period-activity ul { margin:0; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.45; }
body.viewer-open { overflow:hidden; }
@media (max-width:900px) { .field-grid,.field-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:620px) { main{padding-top:30px} h1{font-size:42px}.field-grid,.field-grid.compact{grid-template-columns:1fr}.month-grid{grid-template-columns:repeat(3,1fr)}.section-heading,.submit-row,.result-heading,.account-bar{align-items:start;flex-direction:column}.account-actions,.actions{flex-wrap:wrap}.sheet-frame{min-height:320px}.form-section{padding:22px 18px}.floating-save{display:flex;align-items:center;gap:8px;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));width:auto;min-width:48px;height:48px;padding:0 15px;border-radius:24px;overflow:hidden}.floating-save .save-lock{display:inline-block;fill:currentColor}.floating-save.is-saving .save-lock,.floating-save.is-saved .save-lock{display:none}.floating-save .save-label{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;transition:max-width .24s ease,opacity .18s ease}.floating-save:hover .save-label,.floating-save:focus-visible .save-label,.floating-save.mobile-expanded .save-label,.floating-save.is-saving .save-label,.floating-save.is-saved .save-label,.floating-save.is-offline .save-label{max-width:190px;opacity:1} }

.auth-page main { width:min(520px,calc(100% - 32px)); }
.auth-card { padding:30px; }
.auth-tabs { display:flex; gap:8px; margin-bottom:22px; }
.auth-tabs button { flex:1; background:#e8f2f8; color:var(--blue); }
.auth-tabs button.active { background:var(--navy); color:#fff; }
.auth-form { display:grid; gap:16px; }
.auth-form .button { width:100%; }
.account-terms { margin:14px 0 0; color:var(--muted); text-align:center; font-size:13px; line-height:1.45; }
.account-terms a { color:var(--blue); text-underline-offset:3px; }
.auth-note { margin:18px 0 0; color:var(--muted); text-align:center; font-size:13px; }
.google-button { display:block; padding:13px 18px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#fff; text-align:center; font-weight:750; text-decoration:none; }
.google-button.disabled { pointer-events:none; color:var(--muted); background:var(--paper); }
.or-divider { display:flex; align-items:center; gap:12px; margin:20px 0; color:var(--muted); font-size:12px; }
.or-divider::before,.or-divider::after { content:""; height:1px; flex:1; background:var(--line); }
.plans-page { width:min(980px,calc(100% - 32px)); }
.manager-card { padding:28px 30px; }
.manager-heading,.plan-row { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.manager-heading { margin-bottom:18px; }
.manager-message { min-height:24px; margin-bottom:8px; color:var(--teal); font-size:14px; font-weight:700; }
.manager-message.manager-error { color:#a43c32; }
.workbook-versions { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin-top:8px; font-size:13px; }
.version-link { color:var(--blue); text-underline-offset:3px; }
.plan-list { display:grid; gap:10px; }
.plan-row { padding:16px 18px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.plan-row h3 { margin:0 0 4px; color:var(--navy); }
.plan-row p { margin:0; color:var(--muted); font-size:13px; }
.danger-button { background:#fff0ee; color:#a43c32; }
.empty-plans { padding:32px; border:1px dashed var(--line); border-radius:14px; color:var(--muted); text-align:center; }
@media (max-width:700px) { .manager-heading,.plan-row{align-items:flex-start;flex-direction:column}.plan-row .actions{width:100%;flex-wrap:wrap}.manager-card{padding:22px 18px} }
