:root {
    --ink: #17252d;
    --muted: #65747c;
    --paper: #f4f1e9;
    --card: #fffdf8;
    --line: #dedbd1;
    --teal: #0b7d72;
    --teal-dark: #075e57;
    --lime: #d9f277;
    --navy: #132d35;
    --shadow: 0 24px 60px rgba(23, 37, 45, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 288px 1fr; }
.sidebar {
    position: sticky; top: 0; height: 100vh; padding: 30px 22px;
    display: flex; flex-direction: column;
    color: white; background: var(--navy);
}
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; padding: 0 8px; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    color: var(--navy); background: var(--lime); font: 800 22px Manrope;
}
.brand b { display: block; font: 800 20px Manrope; letter-spacing: -.5px; }
.brand small, .nav-item small, .sidebar-note small { display: block; color: #9fb1b5; }
nav { margin-top: 50px; }
.eyebrow { margin: 0 10px 14px; color: #7f969b; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-item {
    width: 100%; min-height: 68px; display: flex; align-items: center; gap: 13px;
    margin: 4px 0; padding: 10px 12px; text-align: left; border: 0; border-radius: 12px;
    color: #dce5e6; background: transparent; transition: .2s ease;
}
.nav-item i {
    width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center;
    border: 1px solid #476069; border-radius: 9px; color: #9db0b4; font: 700 10px Manrope; font-style: normal;
}
.nav-item span { font-weight: 600; }
.nav-item small { margin-top: 3px; font-size: 11px; font-weight: 400; }
.nav-item:hover:not(:disabled), .nav-item.active { background: rgba(255,255,255,.08); }
.nav-item.active i { color: var(--navy); border-color: var(--lime); background: var(--lime); }
.nav-item:disabled { cursor: not-allowed; opacity: .35; }
.sidebar-note {
    margin-top: auto; padding: 17px; display: flex; gap: 10px; border: 1px solid #36515a;
    border-radius: 13px; background: rgba(255,255,255,.035); font-size: 12px;
}
.sidebar-note small { margin-top: 4px; }
.status-dot { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,242,119,.12); }
main { min-width: 0; }
.topbar {
    height: 76px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw; border-bottom: 1px solid var(--line); background: rgba(244,241,233,.9); backdrop-filter: blur(14px);
}
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb b { color: var(--ink); }
.reset-button, .copy-button {
    padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; font-weight: 600; font-size: 12px;
}
.menu-button { display: none; border: 0; background: transparent; font-size: 20px; }
.workspace { width: min(1050px, calc(100% - 10vw)); margin: 0 auto; padding: 64px 0 100px; }
.hero { display: grid; grid-template-columns: 1fr 260px; gap: 50px; align-items: end; margin-bottom: 44px; }
.pill, .step-label {
    display: inline-block; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
}
.pill { padding: 8px 12px; border: 1px solid #a9cfc8; border-radius: 99px; }
h1 { max-width: 700px; margin: 20px 0 13px; font: 800 clamp(37px, 5vw, 66px)/1.02 Manrope; letter-spacing: -3px; }
h1 em { color: var(--teal); font-style: normal; }
.hero > div > p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.7; }
.progress-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.35); }
.progress-card > span, .progress-card small { color: var(--muted); font-size: 11px; }
.progress-card strong { float: right; font: 700 13px Manrope; }
.progress-track { height: 5px; margin: 17px 0 10px; overflow: hidden; border-radius: 99px; background: #d7d6cf; }
.progress-track i { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .35s ease; }
.panel {
    padding: 34px; border: 1px solid var(--line); border-radius: 20px;
    background: var(--card); box-shadow: var(--shadow);
}
.panel-heading, .result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
h2 { margin: 7px 0 0; font: 700 24px Manrope; letter-spacing: -.7px; }
.required-note { color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; margin: 30px 0; }
label { display: grid; gap: 8px; color: #405159; font-size: 12px; font-weight: 700; }
label.wide { grid-column: 1 / -1; }
input, select, textarea {
    width: 100%; padding: 14px 15px; border: 1px solid #d5d5ce; border-radius: 10px;
    outline: none; color: var(--ink); background: #fff; font-weight: 400; resize: vertical;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,125,114,.1); }
.primary-button {
    min-width: 245px; height: 50px; display: flex; align-items: center; justify-content: space-between;
    gap: 30px; padding: 0 8px 0 18px; border: 0; border-radius: 11px; color: white; background: var(--teal); font-weight: 700;
}
.primary-button b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--lime); font-size: 18px; }
.primary-button:hover { background: var(--teal-dark); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.action-panel { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.action-panel p { color: var(--muted); margin: 9px 0 0; }
.action-panel label { grid-column: 1 / -1; }
.results { margin-top: 40px; scroll-margin-top: 30px; }
.result-heading { margin-bottom: 18px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.result-card {
    min-height: 145px; display: grid; grid-template-columns: 36px 1fr; gap: 13px; padding: 24px;
    border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,248,.75);
}
.result-card.featured { border-color: #9bc6bf; background: #e8f3ef; }
.result-number { color: #93a0a5; font: 700 11px Manrope; }
.result-card small { color: var(--teal); font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.result-card p { margin: 9px 0 0; line-height: 1.6; }
.nested p { display: grid; gap: 3px; }
.nested b { text-transform: capitalize; }
.thinking { padding: 20px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.thinking i { width: 15px; height: 15px; border: 2px solid #b7cbc7; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 14px 18px; border-radius: 11px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; }
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 40; width: 288px; transform: translateX(-100%); transition: transform .25s ease; }
    .menu-open .sidebar { transform: translateX(0); }
    .menu-button { display: block; }
    .topbar { padding: 0 24px; }
    .workspace { width: calc(100% - 48px); padding-top: 40px; }
    .hero { grid-template-columns: 1fr; gap: 24px; }
    .progress-card { max-width: 340px; }
}

@media (max-width: 600px) {
    .workspace { width: calc(100% - 28px); }
    .topbar { padding: 0 14px; }
    .breadcrumb { display: none; }
    h1 { letter-spacing: -2px; }
    .panel { padding: 23px 18px; border-radius: 15px; }
    .form-grid, .result-grid { grid-template-columns: 1fr; }
    label.wide { grid-column: auto; }
    .action-panel { grid-template-columns: 1fr; align-items: stretch; }
    .primary-button { width: 100%; min-width: 0; }
    .required-note { display: none; }
}
