:root { --blue:#24568a; --blue-dark:#183d63; --orange:#d97818; --orange-soft:#fff2e3; --ink:#172d42; --copy:#526172; --line:#d7e1ea; --paper:#f4f7fa; --white:#fff; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif; font-size:16px; line-height:1.5; }
.wrap { width:min(1220px,calc(100% - 48px)); margin:auto; }
.header { background:var(--white); border-bottom:1px solid var(--line); }
.header-inner { min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { color:var(--blue); text-decoration:none; font-weight:750; font-size:1.1rem; }
.demo-label { color:#854606; background:var(--orange-soft); padding:6px 10px; border-radius:6px; font-size:.875rem; font-weight:650; }
.intro { display:flex; justify-content:space-between; align-items:center; gap:24px; padding-top:42px; }
.eyebrow { margin:0 0 8px; color:var(--blue); font-size:.875rem; font-weight:700; }
h1 { font-size:clamp(2rem,3.4vw,2.65rem); line-height:1.12; letter-spacing:-.045em; margin:0 0 12px; }
h2 { margin:0 0 18px; font-size:1.2rem; line-height:1.3; }
h3 { font-size:1rem; margin:24px 0 12px; }
p { margin:0; }
.intro p:last-child,.storage-note,.muted { color:var(--copy); }
.storage-note { font-size:.875rem; margin:19px 0 24px; }
.workspace { display:grid; grid-template-columns:345px minmax(0,1fr); gap:24px; align-items:start; }
.sidebar { display:grid; gap:20px; }
.card { background:var(--white); border:1px solid var(--line); border-radius:12px; padding:24px; }
label { display:block; font-size:.875rem; font-weight:650; margin:16px 0 6px; }
input { width:100%; min-height:44px; padding:10px 12px; color:var(--ink); font:inherit; background:white; border:1px solid #aebfcc; border-radius:6px; }
input:focus-visible,button:focus-visible,a:focus-visible { outline:3px solid #eea859; outline-offset:3px; }
.check { display:flex; gap:10px; align-items:center; font-weight:500; margin:17px 0; }
.check input { width:18px; min-height:18px; margin:0; accent-color:var(--blue); }
.muted { font-size:.875rem; }
.estimate { display:flex; justify-content:space-between; gap:12px; align-items:center; margin:22px 0; border-top:1px solid var(--line); padding-top:18px; }
.estimate strong { font-size:1.4rem; color:var(--blue); white-space:nowrap; }
.button { min-height:44px; border-radius:6px; font:inherit; font-size:.875rem; font-weight:700; cursor:pointer; padding:10px 15px; border:1px solid var(--blue); background:var(--blue); color:white; }
.button:hover { background:var(--blue-dark); }
.button.secondary { background:white; color:var(--blue); }
.button.secondary:hover { background:#edf4fb; }
.button.orange { background:var(--orange); border-color:var(--orange); color:#172d42; }
.button.orange:hover { background:#ef9439; }
.button:disabled { opacity:.55; cursor:default; }
.wide { width:100%; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.section-title h2 { margin-bottom:12px; }
.budget-list { display:grid; gap:9px; }
.budget-choice { width:100%; text-align:left; padding:12px; border:1px solid var(--line); border-radius:7px; background:white; color:var(--ink); font:inherit; cursor:pointer; }
.budget-choice[aria-pressed="true"] { border-color:var(--blue); background:#edf4fb; }
.budget-choice strong,.budget-choice span { display:block; }
.budget-choice span { font-size:.875rem; margin-top:3px; color:var(--copy); }
.detail { padding:30px; }
.detail-top { display:flex; gap:20px; justify-content:space-between; align-items:start; }
.detail-top h2 { font-size:1.7rem; letter-spacing:-.035em; margin:6px 0 8px; }
.status { display:inline-block; font-size:.875rem; font-weight:700; background:#edf4fb; color:var(--blue-dark); padding:5px 9px; border-radius:5px; white-space:nowrap; }
.status.accepted { color:#23633b; background:#eaf5ed; }
.status.closed { color:#5a5e68; background:#eef0f2; }
table { width:100%; border-collapse:collapse; margin-top:25px; }
th,td { padding:13px 4px; border-bottom:1px solid var(--line); text-align:left; }
th { font-weight:600; color:var(--copy); font-size:.875rem; }
td:last-child,th:last-child { text-align:right; white-space:nowrap; }
tfoot th,tfoot td { color:var(--ink); font-size:1.18rem; }
.actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.action-note { font-size:.875rem; color:var(--copy); margin-top:12px; }
.next-form { display:grid; grid-template-columns:minmax(0,1fr) 160px auto; align-items:end; gap:12px; }
.next-form label { margin-top:0; }
.history { list-style:none; padding:0; margin:0; }
.history li { padding:12px 0; border-bottom:1px solid var(--line); }
.history time { display:block; font-size:.82rem; color:var(--copy); margin-bottom:3px; }
.feedback { background:#edf4fb; color:var(--blue-dark); padding:12px 16px; border:1px solid var(--line); border-radius:8px; margin-bottom:20px; }
.feedback.error { background:#fff0eb; color:#8a2819; border-color:#e9b8a8; }
.storage-retry { margin-bottom:20px; }
.footer { font-size:.875rem; color:var(--copy); padding-block:30px; }
@media(max-width:900px) { .workspace { grid-template-columns:300px minmax(0,1fr); gap:16px; } .card,.detail { padding:20px; } .next-form { grid-template-columns:1fr; gap:12px; } }
@media(max-width:680px) { .wrap { width:calc(100% - 32px); } .intro { display:block; padding-top:28px; } .intro .button { margin-top:18px; } .workspace { grid-template-columns:1fr; } .detail-top { flex-direction:column; gap:10px; } .header-inner { align-items:start; flex-direction:column; padding-block:14px; gap:8px; } }
