:root{--emerald-deep:#0a2e1a;--emerald-mid:#166534;--emerald-soft:#2d6a4f;--gold-deep:#a07828;--gold-mid:#c8a850;--gold-light:#e8c96a;--ivory:#fdfaf2;--card-border:#e4dec8;--text-dark:#0a2e1a;--text-mid:#3d5c44;--text-muted:#6b8070;--rust:#b8492f;--rust-light:#f5e3dd;--sage-light:#d8f0de;--white:#fff}*{box-sizing:border-box}html,body,#root{min-height:100vh;margin:0;padding:0}body{background:var(--ivory);color:var(--text-dark);-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}.serif{font-family:Georgia,Cambria,Times New Roman,serif}.muted{color:var(--text-muted)}input,select,button,textarea{font-family:inherit}input[type=text],input[type=email],input[type=password],select,textarea{border:1.5px solid var(--card-border);background:var(--white);width:100%;color:var(--text-dark);appearance:none;border-radius:10px;outline:none;padding:.85rem 1rem;font-size:16px;transition:border-color .15s}input:focus,select:focus,textarea:focus{border-color:var(--gold-mid)}select{background-image:url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"9\" viewBox=\"0 0 14 9\"><path d=\"M1 1l6 6 6-6\" stroke=\"%233D5C44\" stroke-width=\"1.6\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>");background-position:right 1rem center;background-repeat:no-repeat;padding-right:2.5rem}button.primary{background:linear-gradient(135deg, var(--gold-deep), var(--gold-light));width:100%;color:var(--emerald-deep);cursor:pointer;border:none;border-radius:10px;padding:1rem;font-size:16px;font-weight:700;transition:transform .1s,box-shadow .15s}button.primary:hover{box-shadow:0 4px 14px #a0782859}button.primary:active{transform:scale(.98)}button.primary:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}button.secondary{border:1.5px solid var(--card-border);background:var(--white);width:100%;color:var(--text-dark);cursor:pointer;border-radius:10px;padding:.9rem;font-size:15px;font-weight:600}button.link{color:var(--gold-deep);cursor:pointer;text-underline-offset:2px;background:0 0;border:none;padding:.5rem 0;font-size:14px;font-weight:600;text-decoration:underline}.badge{background:linear-gradient(135deg, var(--gold-deep), var(--gold-light));color:var(--emerald-deep);letter-spacing:.06em;text-transform:uppercase;border-radius:20px;align-items:center;gap:8px;margin-bottom:1rem;padding:.4rem 1rem;font-size:12px;font-weight:700;display:inline-flex}.title-lg{color:var(--emerald-deep);margin:0 0 .5rem;font-size:28px;font-weight:700}.field-label{color:var(--text-mid);margin-bottom:.5rem;font-size:13.5px;font-weight:700;display:block}.error-text{color:var(--rust);margin:.25rem 0 1rem;font-size:13.5px;font-weight:600}.card{background:var(--white);border:1.5px solid var(--card-border);border-radius:16px;padding:1.5rem;box-shadow:0 2px 12px #0a2e1a0f}.fade-in{animation:.4s forwards fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.fade-in{animation:none}}.auth-screen{background:var(--ivory);justify-content:center;align-items:center;min-height:100vh;padding:1.5rem;display:flex}.auth-card{background:var(--white);border:1.5px solid var(--card-border);border-radius:16px;width:100%;max-width:420px;padding:2rem 1.75rem;box-shadow:0 2px 12px #0a2e1a0f}.app-shell{flex-direction:column;min-height:100vh;display:flex}.top-nav{background:var(--emerald-deep);color:var(--white);justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.top-nav .nav-title{font-family:Georgia,serif;font-size:18px;font-weight:700}.top-nav button.link{color:var(--gold-light);text-decoration:none}.tab-bar{background:var(--white);border-bottom:1.5px solid var(--card-border);padding:0 .5rem;display:flex;overflow-x:auto}.tab-bar button{cursor:pointer;color:var(--text-muted);white-space:nowrap;background:0 0;border:none;border-bottom:2.5px solid #0000;padding:.9rem 1rem;font-size:13.5px;font-weight:600}.tab-bar button.active{color:var(--emerald-deep);border-bottom-color:var(--gold-mid)}.page-content{flex:1;width:100%;max-width:720px;margin:0 auto;padding:1.5rem 1.25rem 5rem}.insight-box{color:var(--emerald-deep);background:#fdf0cb;border-radius:12px;align-items:flex-start;gap:.6rem;padding:1rem 1.25rem;font-size:13.5px;line-height:1.55;display:flex}.insight-box .spark{flex-shrink:0;font-size:16px;line-height:1}.skeleton{background:linear-gradient(90deg, var(--card-border) 25%, #f0ecd9 50%, var(--card-border) 75%);background-size:200% 100%;border-radius:6px;animation:1.4s infinite shimmer}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.chat-fab{background:linear-gradient(135deg, var(--gold-deep), var(--gold-light));cursor:pointer;z-index:50;border:none;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;font-size:24px;display:flex;position:fixed;bottom:1.5rem;right:1.5rem;box-shadow:0 4px 16px #0a2e1a40}.chat-panel{background:var(--white);z-index:100;flex-direction:column;width:100%;max-width:420px;display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-4px 0 24px #00000026}.chat-header{background:var(--emerald-deep);color:var(--white);justify-content:space-between;align-items:center;padding:1.25rem;display:flex}.chat-messages{flex-direction:column;flex:1;gap:.75rem;padding:1.25rem;display:flex;overflow-y:auto}.chat-bubble{border-radius:14px;max-width:85%;padding:.7rem 1rem;font-size:14px;line-height:1.5}.chat-bubble.user{background:var(--emerald-deep);color:var(--white);align-self:flex-end}.chat-bubble.assistant{background:var(--sage-light);color:var(--text-dark);align-self:flex-start}.chat-input-row{border-top:1.5px solid var(--card-border);gap:.5rem;padding:1rem;display:flex}.chat-input-row input{flex:1}.chat-input-row button{background:var(--gold-mid);cursor:pointer;border:none;border-radius:10px;flex-shrink:0;width:44px;font-size:18px}.chat-backdrop{z-index:90;background:#0a2e1a59;position:fixed;inset:0}.reorder-btn{cursor:pointer;color:var(--text-muted);background:0 0;border:none;justify-content:center;align-items:center;width:18px;height:13px;padding:1px;font-size:9px;line-height:1;display:flex}.reorder-btn:hover:not(:disabled){color:var(--gold-deep)}.reorder-btn:disabled{opacity:.25;cursor:not-allowed}.suggestion-card{background:var(--white);border:1.5px dashed var(--gold-mid);border-radius:10px;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.6rem;padding:.8rem 1rem;display:flex}.suggestion-card .info{flex:1}.suggestion-card .name{color:var(--text-dark);margin:0 0 2px;font-size:14px;font-weight:700}.suggestion-card .reason{color:var(--text-muted);margin:0;font-size:12px;line-height:1.4}.suggestion-card button{background:var(--sage-light);color:var(--emerald-mid);cursor:pointer;white-space:nowrap;border:none;border-radius:8px;flex-shrink:0;padding:.45rem .8rem;font-size:12.5px;font-weight:700}.lifestyle-pill{background:var(--sage-light);color:var(--emerald-mid);border-radius:10px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;font-weight:700;display:inline-flex}.ai-suggest-badge{border:1px solid var(--gold-mid);color:var(--gold-deep);cursor:pointer;background:#fdf0cb;border-radius:20px;align-items:center;gap:5px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.ai-suggest-badge .spark{font-size:12px}.ai-suggest-badge .apply-hint{color:var(--text-muted);border-left:1px solid var(--gold-mid);margin-left:2px;padding-left:5px;font-size:10.5px;font-weight:600}.info-toggle{cursor:pointer;opacity:.7;background:0 0;border:none;padding:2px 4px;font-size:13px}.info-toggle:hover{opacity:1}.suggestion-explanation{color:var(--text-muted);margin:.35rem 0 0;padding-left:.1rem;font-size:11.5px;line-height:1.45}img.emoji{vertical-align:-.1em;width:1em;height:1em;margin:0 .25em 0 0;display:inline-block}.info-icon-btn{cursor:pointer;color:var(--gold-deep);opacity:.85;background:0 0;border:none;padding:0 3px;font-size:14px;line-height:1}.info-icon-btn:hover{opacity:1}.info-popover{z-index:60;background:var(--white);border:1.5px solid var(--card-border);border-radius:12px;width:280px;max-width:85vw;padding:.9rem 1rem;font-size:12.5px;line-height:1.5;position:absolute;top:22px;left:0;box-shadow:0 8px 24px #0a2e1a2e}.info-popover-title{color:var(--text-dark);margin:0 0 .6rem;font-size:13px;font-weight:700}.info-popover-steps{margin-bottom:.5rem}.info-popover-step{border-bottom:1px dashed var(--card-border);justify-content:space-between;gap:.5rem;padding:.3rem 0;font-size:12px;display:flex}.info-popover-step:last-child{border-bottom:none;font-weight:700}.step-label{color:var(--text-muted)}.step-value{color:var(--text-dark);white-space:nowrap;font-weight:600}.info-popover-note{color:var(--text-muted);margin:.5rem 0;font-size:11.5px;font-style:italic}.info-popover-source{border-top:1px solid var(--card-border);color:var(--gold-deep);margin-top:.5rem;padding-top:.5rem;font-size:11.5px;font-weight:600;text-decoration:none;display:block}.info-popover-source:hover{text-decoration:underline}.mode-toggle{background:var(--ivory);border:1.5px solid var(--card-border);border-radius:12px;margin-bottom:1.25rem;padding:4px;display:flex}.mode-toggle button{cursor:pointer;color:var(--text-muted);background:0 0;border:none;border-radius:9px;flex:1;padding:.65rem;font-size:13.5px;font-weight:700}.mode-toggle button.active{background:var(--white);color:var(--emerald-deep);box-shadow:0 1px 4px #0a2e1a1a}.source-tag{color:#c9ddc9;align-items:center;gap:4px;margin-top:.4rem;font-size:11.5px;display:inline-flex}.source-tag a{color:#c9ddc9;text-decoration:underline}.source-tag.fallback-warning{color:var(--gold-light)}.w4-section{border-bottom:1px solid var(--card-border);padding:1rem 0}.w4-section:last-child{border-bottom:none}.w4-section-title{color:var(--gold-deep);text-transform:uppercase;letter-spacing:.03em;align-items:center;gap:6px;margin:0 0 .6rem;font-size:12px;font-weight:700;display:flex}.w4-filing-options{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.w4-filing-option{border:1.5px solid var(--card-border);text-align:center;cursor:pointer;color:var(--text-mid);background:var(--white);border-radius:10px;padding:.7rem;font-size:13px;font-weight:600}.w4-filing-option.selected{border-color:var(--gold-mid);color:var(--emerald-deep);background:#fdf0cb}.w4-field-row{justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem 0;display:flex}.w4-field-row label{color:var(--text-mid);flex:1;font-size:13.5px}.w4-field-row input{text-align:right;width:90px;padding:.5rem .6rem}.match-found-pill{background:var(--sage-light);color:var(--emerald-mid);border-radius:10px;align-items:center;gap:5px;margin-top:.4rem;padding:3px 9px;font-size:11.5px;font-weight:700;display:inline-flex}.match-not-found-pill{color:#8b5a1a;background:#fdeedc;border-radius:10px;align-items:center;gap:5px;margin-top:.4rem;padding:3px 9px;font-size:11.5px;font-weight:700;display:inline-flex}
