:root {
    color-scheme: light;
    --ink: #172126;
    --muted: #657178;
    --surface: #ffffff;
    --soft: #f3f6f4;
    --line: #dfe6e2;
    --brand: #136a4f;
    --brand-strong: #0b4d39;
    --accent: #d9f2e7;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f5faf7 0, #fff 360px);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}
.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: var(--brand);
}
.topbar-actions { display: flex; gap: 8px; }
main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 80px;
}
.hero {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: end;
    padding: 70px 0 52px;
}
h1, h2, p { margin-top: 0; }
h1 {
    max-width: 800px;
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: .99;
    letter-spacing: -.055em;
}
h2 {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -.03em;
}
.hero-copy {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.6;
}
.eyebrow {
    margin-bottom: 10px;
    color: var(--brand);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.balance-card {
    display: grid;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 50px rgba(25, 75, 56, .08);
}
.balance-card span, .balance-card small { color: var(--muted); }
.balance-card strong { font-size: 2rem; letter-spacing: -.04em; }

.assistant-shell, .orders {
    margin-bottom: 28px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(18, 44, 34, .06);
}
.assistant-heading, .section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.steps {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.steps li {
    padding: 7px 10px;
    border-radius: 99px;
    color: var(--muted);
    background: var(--soft);
    font-size: .75rem;
}
.steps .active { color: var(--brand-strong); background: var(--accent); }
fieldset {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}
legend, .field > span {
    display: block;
    margin-bottom: 10px;
    font-weight: 750;
}
.option-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.option-grid label {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.field { display: block; margin-bottom: 22px; }
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
input, textarea, select {
    width: 100%;
    border: 1px solid #cbd6d0;
    border-radius: 13px;
    padding: 13px 14px;
    color: var(--ink);
    background: white;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus {
    outline: 3px solid rgba(19, 106, 79, .16);
    border-color: var(--brand);
}
.notice {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--brand-strong);
    background: var(--accent);
    line-height: 1.45;
}
.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}
.primary, .secondary {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
}
.primary { color: white; background: var(--brand); }
.primary:hover { background: var(--brand-strong); }
.secondary { color: var(--brand-strong); background: var(--accent); }
.empty-state {
    padding: 28px;
    border: 1px dashed #bdcbc4;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}
.order-list { display: grid; gap: 12px; }
.order-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.order-card small, .muted { color: var(--muted); }
dialog {
    width: min(480px, calc(100% - 24px));
    padding: 0;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .25);
}
dialog::backdrop { background: rgba(10, 25, 19, .54); }
.dialog-card { position: relative; padding: 30px; }
.close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
}
.consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    margin: 4px 0 22px;
    color: var(--muted);
    line-height: 1.45;
}
.consent input { width: 18px; margin-top: 2px; }

@media (max-width: 780px) {
    .hero { grid-template-columns: 1fr; padding-top: 44px; }
    .option-grid { grid-template-columns: 1fr 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .assistant-heading { display: block; }
    .steps { overflow-x: auto; padding-bottom: 8px; }
}

@media (max-width: 480px) {
    .topbar { padding-inline: 16px; }
    .assistant-shell, .orders { padding: 22px 18px; border-radius: 22px; }
    .option-grid { grid-template-columns: 1fr; }
    .actions { align-items: stretch; flex-direction: column; }
}
