:root {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif;
  color: #1d2530;
  background: #f4f6fa;
  --ink: #1d2530;
  --muted: #697383;
  --surface: #fff;
  --line: #e3e7ee;
  --accent: #236fda;
  --accent-soft: #eaf2ff;
  --safe: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f4f6fa; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9fc3fb; outline-offset: 2px; }
.shell { max-width: 760px; min-height: 100dvh; margin: auto; padding-bottom: calc(94px + var(--safe)); overflow: hidden; }
.topbar { height: 72px; padding: calc(env(safe-area-inset-top) + 13px) 20px 8px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 21px; font-weight: 850; letter-spacing: -.055em; color: var(--accent); }
.brand span { color: var(--ink); }
.header-action, .back { height: 44px; min-width: 44px; padding: 0 12px; border-radius: 13px; background: transparent; color: var(--ink); font-weight: 750; font-size: 16px; }
.header-action:hover, .back:hover { background: #e9edf4; }
.prototype-switch { display: flex; gap: 3px; padding: 4px; border-radius: 12px; background: #e8edf4; }
.prototype-switch button { width: 35px; height: 34px; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 850; }
.prototype-switch button.active { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px #1c29341c; }
.screen { padding: 22px 20px 8px; animation: enter .22s ease-out; }
@keyframes enter { from { opacity: .35; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 850; letter-spacing: .15em; color: var(--accent); }
h1 { margin: 0; font-size: clamp(31px, 7vw, 43px); line-height: 1.04; letter-spacing: -.06em; }
h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
p { line-height: 1.45; }
.muted { color: var(--muted); }
.intro { margin: 12px 0 22px; color: var(--muted); font-size: 17px; }
.primary, .secondary, .choice { min-height: 54px; border-radius: 15px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 16px; }
.primary { width: 100%; background: var(--accent); color: white; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent), transparent 72%); }
.primary:hover { filter: brightness(.96); }
.secondary { background: var(--accent-soft); color: var(--accent); }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.text-action { color: var(--accent); background: transparent; font-weight: 800; font-size: 15px; padding: 8px 0; }
.project-card { width: 100%; text-align: left; border-radius: 21px; border: 1px solid var(--line); background: var(--surface); padding: 15px; color: var(--ink); margin-bottom: 12px; box-shadow: 0 3px 11px #17223608; }
.project-top { height: 110px; border-radius: 15px; padding: 14px; color: white; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(140deg, var(--project), color-mix(in srgb, var(--project), #172335 35%)); }
.project-top .tag { background: #ffffff30; align-self: flex-start; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.project-card h3 { margin: 13px 0 4px; font-size: 19px; }
.project-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-meta { display: flex; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 13px; font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.quick { min-height: 118px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: var(--ink); }
.quick b { display: block; margin-top: 16px; font-size: 16px; letter-spacing: -.02em; }
.quick span { font-size: 26px; }
.tabs { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); bottom: 0; width: min(760px, 100%); height: calc(74px + var(--safe)); padding: 7px 15px calc(7px + var(--safe)); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(12px); }
.tab { background: transparent; color: var(--muted); border-radius: 13px; font-size: 11px; font-weight: 750; display: grid; gap: 3px; place-content: center; }
.tab strong { font-size: 20px; line-height: 18px; font-weight: 600; }
.tab.active { color: var(--accent); background: var(--accent-soft); }
.guide { margin: 14px 0 20px; border-radius: 18px; padding: 15px; background: var(--accent-soft); color: #214c86; font-size: 15px; line-height: 1.4; }
.guide b { color: var(--ink); }
.progress { display: flex; gap: 6px; margin: 22px 0 18px; }
.progress i { height: 7px; flex: 1; border-radius: 99px; background: #d9e1ec; }
.progress i.done { background: var(--accent); }
.checklist { display: grid; gap: 10px; }
.check { display: flex; align-items: center; justify-content: space-between; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.check span { font-size: 15px; font-weight: 750; }
.check b { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: white; background: #42a56e; }
.paint-row { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; gap: 13px; align-items: center; margin-bottom: 10px; }
.swatch { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; border: 1px solid #00000018; }
.paint-row h3 { margin-bottom: 4px; }.paint-row p { margin: 0; color: var(--muted); font-size: 13px; }
.cost { margin-left: auto; font-size: 14px; font-weight: 850; white-space: nowrap; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); background: #ffffff88; border: 1px dashed #cdd6e3; border-radius: 18px; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; background: #1520335c; }
.sheet { max-width: 760px; width: 100%; max-height: min(86dvh, 780px); margin: auto; overflow: auto; border-radius: 25px 25px 0 0; padding: 17px 20px calc(24px + var(--safe)); background: #f8f9fc; animation: sheet .25s ease-out; }
@keyframes sheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }.sheet-head h2 { font-size: 24px; }
.close { width: 38px; height: 38px; border-radius: 50%; background: #e8edf4; color: var(--ink); font-size: 22px; }
label { display: grid; gap: 7px; margin: 16px 0; color: #3e4a5a; font-size: 14px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 52px; padding: 0 13px; border-radius: 13px; border: 1px solid #d8dfe9; color: var(--ink); background: white; font-size: 16px; }
textarea { padding-top: 12px; min-height: 82px; resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.field-grid label { min-width: 0; }
.choice-list { display: grid; gap: 9px; margin: 14px 0; }
.choice { width: 100%; justify-content: flex-start; text-align: left; background: white; color: var(--ink); border: 1px solid var(--line); }.choice.selected { border: 2px solid var(--accent); background: var(--accent-soft); }
.inline-add { color: var(--accent); background: transparent; font-weight: 800; padding: 3px 0; text-align: left; }
.detail-hero { padding: 20px; color: white; background: linear-gradient(140deg, var(--project), color-mix(in srgb, var(--project), #152234 42%)); }.detail-hero h1 { margin-top: 8px; }.detail-hero p { margin: 7px 0 0; opacity: .86; }
.detail-body { padding: 20px; }.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0 25px; }.info { padding: 13px; background: white; border: 1px solid var(--line); border-radius: 15px; }.info small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }.info b { font-size: 14px; }
@media (min-width: 620px) { .screen { padding-left: 30px; padding-right: 30px; }.topbar { padding-left: 30px; padding-right: 30px; }.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.project-card { margin: 0; }.quick-grid { grid-template-columns: repeat(4, 1fr); }.quick { min-height: 105px; }.sheet { border-radius: 25px; margin-bottom: 8vh; }.modal { align-items: center; padding: 18px; }.sheet { max-width: 580px; } }
