:root { color-scheme: light; font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1c2730; background: #f3f6f7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { min-height: 2.7rem; padding: .55rem .9rem; border: 1px solid #0c6e69; border-radius: .55rem; background: #0c6e69; color: white; cursor: pointer; font-weight: 650; }
button:hover { background: #075651; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.quiet { color: #155e59; background: white; border-color: #b6d1cf; }
button.quiet:hover { background: #edf6f5; }
button.primary { background: #164a70; border-color: #164a70; }
input, select, textarea { width: 100%; min-height: 2.65rem; border: 1px solid #b8c4c9; border-radius: .45rem; background: white; padding: .55rem .65rem; color: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid #74c3ba; outline-offset: 2px; }
label { display: grid; gap: .3rem; font-weight: 600; }
.shell { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 2rem 0 1.25rem; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
h2 { margin: 0; font-size: 1.2rem; }
p { margin: .45rem 0; }
.eyebrow { margin: 0 0 .45rem; color: #176d68; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 750; }
.muted { color: #5b6870; }
.small { font-size: .86rem; }
.session-box { width: min(24rem, 100%); padding: .85rem; border: 1px solid #d1dbde; border-radius: .75rem; background: white; }
.session-box label { font-size: .84rem; }
.token-row { display: flex; gap: .4rem; }
.token-row button { flex: 0 0 auto; }
.session-state { min-height: 1.2em; font-size: .84rem; }
.layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1rem; align-items: start; padding-bottom: 4rem; }
.panel { border: 1px solid #d4dfe1; background: #fff; border-radius: .8rem; box-shadow: 0 2px 8px #182b3210; }
.draft-rail { position: sticky; top: .75rem; padding: 1rem; }
.rail-head, .section-heading, .action-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.rail-head h2 { margin-right: auto; }
.rail-head button { padding: .45rem .65rem; font-size: .86rem; }
.draft-list { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .45rem; }
.draft-item button { width: 100%; text-align: left; color: #24343c; background: #f7f9f9; border-color: #d8e1e3; font-weight: 500; }
.draft-item button[aria-current="true"] { border-color: #0c6e69; background: #eaf5f3; }
.draft-item strong, .draft-item span { display: block; }
.draft-item span { color: #64737b; font-size: .82rem; }
.wide { width: 100%; }
.workspace { min-width: 0; }
.empty-state { padding: clamp(1.25rem, 4vw, 3rem); }
.empty-state p { max-width: 38rem; margin: .8rem 0 1.2rem; }
.intake-form { display: grid; gap: .85rem; }
.form-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; }
.form-head h2 { font-size: 1.5rem; }
.badge { display: inline-flex; padding: .28rem .7rem; border-radius: 99px; background: #edf1f3; color: #384952; font-size: .82rem; font-weight: 700; }
.badge.confirmed { color: #0e5843; background: #e2f4ec; }
.section { padding: 1.2rem; }
.section > h2 { margin-bottom: .9rem; }
.section-heading { margin-bottom: .9rem; }
.section-heading > div { min-width: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.field-grid label { min-width: 0; }
.resolution-fields { margin-top: 1rem; }
.evidence-output { max-height: 18rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: .8rem; border-radius: .55rem; background: #f3f6f7; color: #33424a; font: .85rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.accessories { display: grid; gap: .55rem; }
.accessory-row { display: grid; grid-template-columns: minmax(0, 1fr) 13rem auto; gap: .5rem; align-items: end; }
.accessory-row button { min-width: 2.7rem; padding: .5rem; }
.upload-row { display: flex; align-items: end; gap: .65rem; }
.file-label { min-width: 10rem; }
.file-label.grow { flex: 1; }
.file-label input[type="file"] { padding: .35rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; margin-top: .9rem; }
.photo-card { min-width: 0; border: 1px solid #d8e1e3; border-radius: .6rem; overflow: hidden; background: #fafcfc; }
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e9eff0; }
.photo-meta { padding: .55rem; font-size: .8rem; overflow-wrap: anywhere; }
.photo-meta strong, .photo-meta span { display: block; }
.photo-meta button { margin-top: .4rem; min-height: 2.2rem; font-size: .84rem; }
.action-row { justify-content: flex-end; margin-top: .8rem; }
.confirmation-result { padding: .7rem; border-radius: .5rem; background: #e7f5ed; overflow-wrap: anywhere; }
.global-status { position: fixed; inset: auto 1rem 1rem; width: fit-content; max-width: min(42rem, calc(100vw - 2rem)); margin: 0 auto; left: 0; right: 0; padding: .7rem 1rem; background: #173c46; color: white; border-radius: .6rem; box-shadow: 0 4px 18px #0003; }
.global-status:empty { display: none; }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } .draft-rail { position: static; } .draft-list { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); } }
@media (max-width: 560px) { .header { display: grid; gap: 1rem; } .session-box { width: 100%; } .field-grid { grid-template-columns: 1fr; } .accessory-row { grid-template-columns: minmax(0, 1fr) 9rem auto; } .upload-row { align-items: stretch; flex-direction: column; } .section-heading { align-items: flex-start; } .section-heading > button { flex: 0 0 auto; } .action-row { flex-direction: column-reverse; } .action-row button { width: 100%; } }
