:root{color-scheme:light;--ink:#253a40;--muted:#5b6e72;--paper:#faf8f4;--card:#fff;--line:#e3e4dc;--accent:#9a503a;--accent-soft:#f6e7de;--sage:#e9efe8;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button{cursor:pointer}
:focus-visible{outline:3px solid #a7644f;outline-offset:3px}
.mast{background:#fff;border-bottom:1px solid var(--line)}
.mast-inner{max-width:860px;margin:auto;min-height:77px;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.mast img{display:block;width:90px;height:auto}
.badge{font-size:.76rem;font-weight:650;background:var(--sage);padding:7px 11px;border-radius:99px;white-space:nowrap}
main{max-width:860px;margin:auto;padding:22px 24px 32px}
.hero{padding:26px 0 24px}
.eyebrow{font-size:.72rem;letter-spacing:.13em;font-weight:800;color:var(--accent);margin:0 0 9px}
h1,h2,p{margin:0}
h1{font-family:Georgia,serif;font-size:clamp(2.3rem,8vw,4.25rem);font-weight:500;line-height:1.04;letter-spacing:-.045em;overflow-wrap:anywhere}
h2{font-size:1.26rem;line-height:1.25;margin-bottom:12px}
.lead{font-size:1.05rem;line-height:1.55;max-width:32rem;color:var(--muted);margin:12px 0 20px}
.section{margin:10px 0 23px}
.button{border:1px solid #cdd6d2;background:#fff;border-radius:10px;padding:10px 13px;min-height:44px;font-weight:650;text-align:center}
.button:hover,.record:hover{border-color:#8a9b94}
.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.dark{background:var(--ink);color:white;border-color:var(--ink)}
.quiet{background:transparent}
.back{margin-bottom:17px}
.tiny{font-size:.8rem;padding:7px 10px;min-height:38px}
.cards{display:grid;gap:9px}
.record{background:var(--card);border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;padding:13px 15px;min-height:62px}
.record small{display:block;color:var(--muted);margin-top:4px}
.record>span:last-child{font-size:1.5rem;color:var(--accent)}
.empty,.panel,.question{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px}
.empty{text-align:center;padding:28px 12px}
.empty p,.panel p{color:var(--muted);line-height:1.5;margin:7px 0 0}
.empty-icon{background:var(--accent-soft);color:var(--accent);font-size:1.7rem;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;margin:0 auto 8px}
.panel summary{font-weight:700;cursor:pointer}
.actions,.chips,.field-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.summary-row{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px;font-size:.84rem;color:var(--muted)}
.step-bar{margin-top:17px;display:flex;align-items:end;gap:9px}
.step-bar label{min-width:0;flex:1}
label{display:block;font-weight:700;margin-bottom:5px}
.step-bar label{margin:0;font-size:.86rem}
input,select,textarea{width:100%;border:1px solid #cdd6d2;border-radius:9px;background:#fff;padding:9px 10px;min-height:44px;font-size:16px}
textarea{resize:vertical}
.step-bar select{display:block;margin-top:5px}
.question{margin-bottom:10px;scroll-margin-top:12px}
.question label{line-height:1.35;margin-bottom:8px}
.field-tools select{width:auto;min-width:0;max-width:100%;flex:1;font-size:.9rem;min-height:40px}
.info{background:var(--sage);padding:12px 14px;border-radius:10px;margin-bottom:11px;line-height:1.45}
.photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
figure{min-width:0;margin:10px 0 0}
figure img{display:block;width:100%;height:120px;object-fit:cover;background:var(--paper);border-radius:8px}
figcaption{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px}
.step-nav{display:flex;justify-content:flex-end;gap:8px;margin-bottom:14px}
.export-bar{position:sticky;bottom:0;background:var(--paper);padding:8px 0 calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:flex-end}
#notice{position:fixed;bottom:76px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);color:#fff;background:var(--ink);padding:10px 13px;border-radius:10px;z-index:3;display:none;pointer-events:none}
#notice.show{display:block}
.modal{width:min(420px,calc(100vw - 28px));border:1px solid var(--line);border-radius:15px;padding:20px;color:var(--ink)}
.modal::backdrop{background:#1b2c3273}
@media(max-width:470px){main,.mast-inner{padding-left:14px;padding-right:14px}.mast-inner{min-height:68px}.hero{padding:19px 0}.step-bar{align-items:stretch;flex-direction:column}.step-bar .quiet{align-self:flex-start}.export-bar button{width:100%}.field-tools{gap:6px}.question{padding:12px}}
a.button{display:inline-flex;align-items:center;text-decoration:none}
.file-name{font-weight:700;overflow-wrap:anywhere;margin-bottom:8px}
.file-help{line-height:1.5;color:var(--muted)}
