:root{--bg:#fbf6ec;--surface:#fff;--text:#2b2118;--muted:#5f5347;--border:#dccfb9;--amber:#9a4f00;--amber-soft:#f6e4c4;--error:#a3221b;--error-soft:#fbe9e7;--focus:#1d4ed8;--nav-height:60px;color:var(--text);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Pretendard,Noto Sans KR,Segoe UI,sans-serif;font-size:16px;line-height:1.6}*,:before,:after{box-sizing:border-box}body{background:var(--bg);min-width:320px;margin:0}h1{margin:0 0 1rem;font-size:1.5rem;line-height:1.3}h2{margin:0 0 .5rem;font-size:1.125rem;line-height:1.4}p{margin:0 0 .75rem}a{color:var(--amber);text-underline-offset:3px}:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}.muted{color:var(--muted)}.lead{font-size:1.0625rem}.page-status{text-align:center;padding:2rem 1rem}.brand{color:var(--amber);align-items:center;min-height:44px;font-size:1.25rem;font-weight:700;text-decoration:none;display:inline-flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin:0 0 1rem;padding:1rem}.card>:last-child{margin-bottom:0}.notice{border:1px solid var(--border);border-left:4px solid var(--amber);background:var(--amber-soft);border-radius:8px;margin:0 0 1rem;padding:.75rem}.notice-error{border-color:var(--error);border-left-color:var(--error);background:var(--error-soft);color:var(--error)}.notice-test{font-weight:600}.field{margin:0 0 1rem}.field label{margin-bottom:.25rem;font-weight:600;display:block}input{font:inherit;color:inherit;background:var(--surface);border:1px solid #8a7a66;border-radius:8px;width:100%;min-height:44px;padding:.5rem .75rem}input:disabled{background:#f1ece2}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.6}.button-primary{background:var(--amber);color:#fff;border:0;border-radius:8px;width:100%;min-height:44px;padding:.5rem 1rem;font-weight:700}.button-secondary{border:1px solid var(--amber);background:var(--surface);min-height:44px;color:var(--amber);border-radius:8px;padding:.5rem 1rem;font-weight:600}.status-list{margin:0}.status-list>div{border-top:1px solid var(--border);padding:.5rem 0}.status-list>div:first-child{border-top:0}.status-list dt{color:var(--muted);font-size:.875rem}.status-list dd{overflow-wrap:anywhere;margin:0}.public-header{border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.25rem 1rem;padding:.5rem 1rem;display:flex}.public-nav{flex-wrap:wrap;gap:.25rem;display:flex}.public-nav a,.more-menu a,.side-nav a:not(.brand),.nav-button{min-height:44px;color:var(--text);border-radius:8px;align-items:center;padding:0 .75rem;font-weight:600;text-decoration:none;display:inline-flex}.public-nav a.active,.more-menu a.active,.side-nav a.active:not(.brand){background:var(--amber-soft);color:var(--amber);text-decoration:underline}.public-main{max-width:720px;margin:0 auto;padding:1.25rem 1rem 3rem}.login-card{max-width:420px;margin:1rem auto}.app-header{z-index:10;border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;padding:.25rem 1rem;display:flex;position:sticky;top:0}.more-button,.nav-button{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);border-radius:8px;padding:0 .75rem;font-weight:600}.more-menu{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:.25rem;min-width:180px;padding:.5rem;display:flex;position:absolute;top:100%;right:.5rem;box-shadow:0 8px 24px #2b211826}.side-nav{display:none}.app-main{max-width:880px;padding:1.25rem 1rem calc(var(--nav-height) + 2rem);margin:0 auto}.bottom-nav{z-index:10;min-height:var(--nav-height);padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--border);background:var(--surface);grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.bottom-nav a{min-height:var(--nav-height);color:var(--text);border-top:3px solid #0000;justify-content:center;align-items:center;font-weight:600;text-decoration:none;display:flex}.bottom-nav a.active{color:var(--amber);border-top-color:var(--amber);background:var(--amber-soft)}@media (width>=900px){.app-shell{grid-template-columns:220px 1fr;min-height:100vh;display:grid}.app-header,.bottom-nav{display:none}.side-nav{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;gap:.25rem;height:100vh;padding:1rem .75rem;display:flex;position:sticky;top:0}.side-nav .brand{margin-bottom:.5rem;padding:0 .75rem}.side-nav-footer{margin-top:auto}.side-nav-footer .nav-button{width:100%}.app-main{width:100%;padding:2rem 2rem 3rem}}.small{font-size:.875rem}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.preserve-lines{white-space:pre-wrap}.badge{border:1px solid var(--border);background:var(--amber-soft);color:var(--text);vertical-align:middle;border-radius:999px;margin-left:.25rem;padding:0 .5rem;font-size:.8125rem;font-weight:600;display:inline-block}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;margin-bottom:1rem;display:flex}.page-head h1{overflow-wrap:anywhere;margin:0}.page-head .button-primary{width:auto}.button-link{justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.button-row{flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;display:flex}.button-row .button-primary{flex:8rem;width:auto}.card>.button-row:last-child,.save-bar>.button-row:last-child{margin-bottom:0}.button-small{border:1px solid var(--border);background:var(--surface);min-width:44px;min-height:44px;color:var(--text);border-radius:8px;padding:.25rem .625rem;font-size:.875rem;font-weight:600}select,textarea{font:inherit;color:inherit;background:var(--surface);border:1px solid #8a7a66;border-radius:8px;width:100%;min-height:44px;padding:.5rem .75rem}textarea{resize:vertical}input[type=radio],input[type=checkbox]{width:1.25rem;height:1.25rem;min-height:0;accent-color:var(--amber);flex:none;padding:0}[aria-invalid=true]{border-color:var(--error);border-width:2px}fieldset.field{border:0;min-width:0;padding:0}fieldset.field legend{margin-bottom:.25rem;padding:0;font-weight:600}.choice-row{flex-wrap:wrap;gap:.25rem 1.25rem;display:flex}.field .choice,.choice{align-items:center;gap:.5rem;min-height:44px;margin:0;font-weight:400;display:inline-flex}.input-with-unit{align-items:center;gap:.5rem;display:flex}.input-with-unit .unit{min-width:1.5rem;color:var(--muted);flex:none;font-weight:600}.unit-in-label{color:var(--muted);font-weight:400}.required-mark{color:var(--amber);font-size:.8125rem;font-weight:600}.hint{color:var(--muted);margin:.25rem 0 0;font-size:.875rem}.field-error{color:var(--error);margin:.25rem 0 0;font-size:.875rem;font-weight:600}.field-error:before{content:"⚠ "}.field-grid{grid-template-columns:minmax(0,1fr);gap:0 1rem;display:grid}.field-pair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:0 .75rem;display:grid}.row-list,.item-list,.link-list{margin:0 0 1rem;padding:0;list-style:none}.row-card{border:1px solid var(--border);background:#fffdf8;border-radius:10px;margin-bottom:.75rem;padding:.75rem}.row-card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.row-controls{margin:0}.row-details summary{min-height:44px;color:var(--amber);cursor:pointer;align-items:center;font-weight:600;display:flex}.item-list>li{border-top:1px solid var(--border);overflow-wrap:anywhere;flex-direction:column;gap:.125rem;padding:.625rem 0;display:flex}.item-list>li:first-child{border-top:0;padding-top:0}.item-title{font-weight:600}.list-filters .field{margin-bottom:.25rem}.link-card{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);overflow-wrap:anywhere;border-radius:12px;flex-direction:column;gap:.125rem;margin-bottom:.5rem;padding:.75rem 1rem;text-decoration:none;display:flex}.link-card-title{color:var(--amber);text-underline-offset:3px;font-weight:700;text-decoration:underline}.estimate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:0 0 .75rem;display:grid}.estimate-tile{border:1px solid var(--border);background:var(--amber-soft);text-align:center;border-radius:10px;padding:.5rem}.estimate-tile dt{color:var(--muted);font-size:.8125rem}.estimate-tile dd{font-variant-numeric:tabular-nums;margin:0;font-size:1.375rem;font-weight:700;line-height:1.3}.estimate-tile dd.estimate-missing{color:var(--muted);font-size:1rem;font-weight:600}.estimate-notes{margin:0 0 .75rem;padding-left:1.25rem}.save-bar{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + .5rem);z-index:5;border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:.75rem;position:sticky;box-shadow:0 -4px 16px #2b21181f}.save-bar .notice{margin-bottom:.5rem}.save-estimate{font-variant-numeric:tabular-nums;margin:0;font-weight:700}.save-estimate .muted{font-size:.875rem;font-weight:400}.save-status{color:var(--muted);margin:0 0 .5rem;font-size:.875rem}.dialog-backdrop{z-index:50;background:#2b211880;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.dialog{background:var(--surface);border-radius:12px;width:100%;max-width:420px;padding:1.25rem;box-shadow:0 16px 48px #2b21184d}.dialog .button-row{margin-bottom:0}@media (width>=640px){.field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=900px){.save-bar{bottom:1rem}}.badge-first{margin-left:0}.batch-meta{margin:-.5rem 0 1rem}.card h3{margin:1.25rem 0 .5rem;font-size:1rem;line-height:1.4}.tab-nav{box-shadow:inset 0 -1px 0 var(--border);gap:.25rem;margin:0 0 1rem;display:flex;overflow-x:auto}.tab-nav a{min-height:44px;color:var(--muted);border-bottom:3px solid #0000;flex:1 0 auto;justify-content:center;align-items:center;padding:.5rem .75rem;font-weight:600;text-decoration:none;display:inline-flex}.tab-nav a.active{color:var(--amber);border-bottom-color:var(--amber)}.field-action{margin-top:-.5rem}.log-list .row-controls{margin-top:.25rem}.log-list form{padding:.25rem 0}.badge-alert{background:var(--error-soft);color:var(--error);border-color:#e7b9b4}.task-done .item-title{color:var(--muted)}.task-list .row-controls,.reading-list .row-controls{margin-top:.25rem}.task-list form,.reading-list form{padding:.25rem 0}.designation-fields{grid-template-columns:minmax(0,1fr)}@media (width>=640px){.designation-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}.designation-fields select{width:100%;min-width:0}.measured-tile{background:var(--surface)}.chip-links{flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;padding:0;list-style:none;display:flex}.gravity-chart{width:100%;margin:0 0 .5rem;position:relative}.gravity-chart svg{touch-action:pan-y;display:block;overflow:visible}.gravity-chart svg:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.chart-grid{stroke:#ece4d6;stroke-width:1px}.chart-axis{fill:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.chart-value{fill:var(--text);font-variant-numeric:tabular-nums;font-size:13px;font-weight:700}.chart-line{fill:none;stroke:var(--amber);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.chart-dot{fill:var(--amber);stroke:var(--surface);stroke-width:2px}.chart-dot-active{stroke:var(--text)}.chart-crosshair{stroke:var(--muted);stroke-width:1px}.chart-tooltip{border:1px solid var(--border);background:var(--surface);pointer-events:none;border-radius:8px;min-width:140px;padding:.25rem .5rem;font-size:.8125rem;line-height:1.4;position:absolute;box-shadow:0 2px 6px #2b211826}.chart-tooltip strong{font-variant-numeric:tabular-nums;font-size:1rem;display:block}.tasting-fields{margin:.25rem 0 0}.tasting-fields>div{margin-bottom:.25rem}.tasting-fields dt{color:var(--muted);font-size:.875rem}.tasting-fields dd{margin:0}.tasting-list .row-controls{margin-top:.25rem}.tasting-list form{padding:.25rem 0}.field-pair.stack-on-mobile{grid-template-columns:minmax(0,1fr)}@media (width>=640px){.field-pair.stack-on-mobile{grid-template-columns:repeat(2,minmax(0,1fr))}}.estimate-grid-single{grid-template-columns:minmax(0,1fr);max-width:20rem}.demo-banner{font-size:.9375rem}.auth-content{display:contents}
