:root{color:#17212b;font-synthesis:none;text-rendering:optimizelegibility;--canvas:#f3f5f7;--surface:#fff;--surface-raised:#f8fafc;--ink:#17212b;--secondary:#637181;--muted:#8a96a3;--brand:#245a73;--brand-hover:#1d495e;--success:#287a5b;--danger:#a34343;--line:#dce2e7;--selected:#eaf2f5;--mono:"DM Mono",ui-monospace,monospace;background:#f3f5f7;font-family:DM Sans,Noto Sans SC,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;font-weight:400}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button:focus-visible,input:focus-visible,label:focus-within{outline-offset:2px;outline:3px solid #8db6c8}.app-shell{min-height:100vh}.topbar{border-bottom:1px solid var(--line);background:#ffffffe8;justify-content:space-between;align-items:center;height:68px;padding:0 max(28px,50vw - 630px);display:flex}.brand{color:inherit;align-items:center;gap:11px;text-decoration:none;display:flex}.brand-mark{background:var(--brand);color:#fff;border-radius:8px;place-items:center;width:34px;height:38px;display:grid}.brand-mark svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}.brand-copy{gap:2px;display:grid}.brand-copy strong{letter-spacing:.01em;font-size:14px}.brand-copy small{letter-spacing:.15em;color:var(--muted);font-size:9px;font-weight:600}.topbar-meta{color:var(--secondary);align-items:center;gap:8px;font-size:12px;display:flex}.network-dot{background:var(--success);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #eaf4ef}.workspace{max-width:1260px;margin:0 auto;padding:47px 28px 24px}.intro{justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.eyebrow,.section-kicker{letter-spacing:.09em;text-transform:uppercase;color:var(--brand);font-size:11px;font-weight:700;line-height:16px}.eyebrow span{color:#9aa7b2;padding:0 5px}.intro h1{letter-spacing:-.035em;margin:9px 0 7px;font-size:29px;font-weight:600;line-height:1.3}.intro p{color:var(--secondary);margin:0;font-size:13px;line-height:1.6}.template-chip{border:1px solid var(--line);background:#fff;border-radius:8px;align-items:center;gap:11px;padding:10px 14px;display:flex;box-shadow:0 2px 5px #17212b08}.template-icon{width:35px;height:38px;color:var(--brand);font-family:var(--mono);background:linear-gradient(#fff,#f3f6f7);border:1px solid #d9e0e4;border-radius:4px;place-items:center;font-size:11px;font-weight:500;display:grid}.template-chip span:last-child{gap:4px;display:grid}.template-chip b{font-size:12px}.template-chip small{color:var(--muted);font-size:11px}.steps{color:#778391;align-items:center;gap:15px;margin:31px 0 18px;font-size:12px;display:flex}.step{white-space:nowrap;align-items:center;gap:8px;display:flex}.step-index{font:500 10px var(--mono);color:var(--brand);background:#e5edf0;border-radius:4px;padding:5px 6px}.step-rule{background:#d6dde2;width:42px;height:1px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 12px #17212b08}.upload-panel{background:linear-gradient(110deg,#fff 0% 65%,#f8fafb 100%);border-style:dashed;align-items:center;gap:15px;min-height:103px;padding:20px 22px;display:flex;position:relative}.upload-symbol{width:41px;height:41px;color:var(--brand);background:#edf3f5;border-radius:8px;flex:none;place-items:center;display:grid}.upload-symbol svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}.upload-copy{gap:5px;min-width:0;display:grid}.upload-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.upload-copy span{color:var(--secondary);font-size:12px}.button{white-space:nowrap;cursor:pointer;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;gap:8px;height:40px;padding:0 14px;font-size:12px;font-weight:600;transition:background-color .16s,border-color .16s,transform .16s;display:inline-flex}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{cursor:not-allowed;opacity:.48}.button svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:17px;height:17px}.button.secondary{color:#34424e;background:#fff;border-color:#d5dde2}.button.secondary:hover:not(:disabled){background:#f7f9fa;border-color:#c5cfd6}.button.primary{background:var(--brand);color:#fff}.button.primary:hover:not(:disabled){background:var(--brand-hover)}.upload-button{min-width:130px;margin-left:auto}.upload-button input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.upload-hint{color:#98a3ad;font-size:10px;position:absolute;bottom:7px;right:24px}.records-section{margin-top:35px}.section-heading{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:14px;display:flex}.section-kicker{color:var(--muted);letter-spacing:.1em;font-size:10px}.section-heading h2{letter-spacing:-.02em;margin:5px 0 0;font-size:17px;font-weight:600;line-height:1.4}.count-pill{color:#586774;font:500 10px var(--mono);vertical-align:2px;background:#e9eef1;border-radius:12px;margin-left:4px;padding:2px 7px;display:inline-block}.search-box{border:1px solid var(--line);min-width:240px;height:36px;color:var(--muted);background:#fff;border-radius:6px;align-items:center;gap:8px;padding:0 10px;display:flex}.search-box svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;width:16px;height:16px}.search-box input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;font-size:11px;outline:0!important}.search-box input::placeholder{color:#97a1aa}.table-panel{min-height:248px;overflow:hidden}.table-scroll{max-height:490px;overflow:auto}table{border-collapse:collapse;text-align:left;width:100%;min-width:840px}thead{z-index:1;background:#f8fafb;position:sticky;top:0}th{color:#75818d;letter-spacing:.04em;border-bottom:1px solid var(--line);height:42px;font-size:10px;font-weight:600}td{color:#4e5c68;white-space:nowrap;border-bottom:1px solid #edf0f2;height:52px;padding:0 12px;font-size:11px}tbody tr{cursor:pointer;transition:background-color .12s}tbody tr:hover{background:#f9fbfc}tbody tr.selected{background:var(--selected)}tbody tr:last-child td{border-bottom:0}th:first-child,td:first-child{padding-left:17px}.select-col{width:44px}.radio-mark{background:#fff;border:1px solid #c7d0d7;border-radius:50%;place-items:center;width:16px;height:16px;display:grid}.radio-mark.checked{border-color:var(--brand);background:var(--brand);color:#fff}.radio-mark svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:12px;height:12px}.date-cell{font-family:var(--mono);color:#71808d;font-size:10px}.product-cell{color:#25323d;text-overflow:ellipsis;max-width:300px;font-weight:600;overflow:hidden}.batch-cell{font-family:var(--mono);color:#637181;font-size:10px}.number{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums;padding-right:20px}.number small{color:#98a3ad;font-family:inherit;font-size:9px}.metric-pills{gap:5px;max-width:390px;display:flex;overflow:hidden}.metric-pills span{color:#6b7883;white-space:nowrap;background:#f0f3f5;border-radius:4px;padding:4px 6px;font-size:9px}.metric-pills .muted{color:#a0aab3;background:0 0}.table-foot{color:#97a1aa;border-top:1px solid #eef1f3;justify-content:space-between;align-items:center;height:35px;padding:0 15px;font-size:10px;display:flex}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:246px;display:flex}.empty-state strong{color:#465460;margin-top:13px;font-size:12px;font-weight:600}.empty-state p{color:#929da7;margin:6px 16px 0;font-size:11px}.empty-grid{opacity:.75;grid-template-columns:repeat(3,22px);gap:4px;display:grid}.empty-grid span{background:linear-gradient(#fff,#f4f7f8);border:1px solid #d6e0e5;border-radius:2px;height:17px}.empty-grid span:nth-child(3n+1){background:#edf3f5}.empty-state.compact{min-height:180px}.empty-state.compact strong{margin-top:0}.action-bar{border:1px solid var(--line);background:#fff;border-radius:9px;justify-content:space-between;align-items:center;gap:16px;margin-top:16px;padding:13px 15px;display:flex;box-shadow:0 4px 12px #17212b08}.action-bar.ready{border-color:#cbd9df}.selection-summary{align-items:center;gap:10px;min-width:0;display:flex}.selection-summary>span:last-child{gap:4px;min-width:0;display:grid}.selection-summary b{font-size:11px;font-weight:600}.selection-summary small{color:#8b97a1;text-overflow:ellipsis;white-space:nowrap;max-width:500px;font-size:10px;overflow:hidden}.selection-check{color:#a5afb7;background:#edf0f2;border-radius:50%;flex:none;place-items:center;width:24px;height:24px;display:grid}.selection-check.active{color:var(--success);background:#e8f2ee}.selection-check svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:14px;height:14px}.actions{flex:none;gap:8px;display:flex}.button-arrow{margin-left:2px;font-size:14px;font-weight:400}.pdf-hint{color:#8b6c3b;text-align:right;margin:8px 5px 0;font-size:10px}.notice{border:1px solid var(--line);z-index:4;background:#fff;border-radius:8px;align-items:center;gap:10px;max-width:min(520px,100vw - 32px);padding:12px 14px;font-size:12px;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 9px 30px #17212b1c}.notice.success{border-color:#cfe2d8}.notice.error{border-color:#ead1d1}.notice-mark{width:18px;height:18px;color:var(--success);background:#e9f3ee;border-radius:50%;flex:none;place-items:center;font-size:11px;font-weight:700;display:grid}.notice.error .notice-mark{color:var(--danger);background:#f7eded}.notice button{color:#8a96a3;cursor:pointer;background:0 0;border:0;margin-left:4px;font-size:18px}.app-shell footer{color:#9ba5ae;justify-content:space-between;padding:23px 3px 0;font-size:10px;display:flex}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=760px){.topbar{height:60px;padding:0 18px}.topbar-meta{font-size:10px}.workspace{padding:32px 16px 20px}.intro{flex-direction:column;align-items:flex-start;gap:16px}.intro h1{font-size:24px}.template-chip{padding:8px 10px}.steps{gap:8px;margin:24px 0 14px;font-size:10px}.step{gap:5px}.step-rule{width:14px}.upload-panel{flex-wrap:wrap;gap:11px;padding:16px}.upload-copy{max-width:calc(100% - 55px)}.upload-copy span{font-size:11px}.upload-button{margin-top:0;margin-left:52px}.upload-hint{align-self:center;margin-left:auto;position:static}.records-section{margin-top:27px}.section-heading{flex-direction:column;align-items:flex-start}.search-box{width:100%}.table-panel,.empty-state{min-height:200px}.table-foot{font-size:9px}.action-bar{flex-direction:column;align-items:stretch}.selection-summary small{max-width:calc(100vw - 95px)}.actions{width:100%}.actions .button{flex:1;padding:0 8px;font-size:11px}.app-shell footer{flex-direction:column;gap:10px;padding-top:18px}.notice{bottom:12px;right:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}:root{--focus:#8db6c8}.auth-workspace{place-items:center;min-height:calc(100vh - 68px);padding:48px 24px;display:grid}.auth-card{width:min(100%,420px);padding:32px;display:block}.auth-brand-mark{background:var(--brand);color:#fff;border-radius:8px;place-items:center;width:44px;height:44px;margin-bottom:24px;display:grid}.auth-brand-mark svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.auth-card h1{letter-spacing:-.025em;color:var(--ink);margin:8px 0 0;font-size:22px;font-weight:600;line-height:1.3}.auth-description{color:var(--secondary);margin:8px 0 0;font-size:14px;line-height:1.6}.auth-form{gap:8px;margin-top:24px;display:grid}.auth-form label{color:var(--ink);margin-top:8px;font-size:14px;font-weight:600}.auth-form input{border:1px solid var(--line);background:var(--surface);width:100%;height:44px;color:var(--ink);border-radius:6px;padding:0 12px}.auth-form input:focus-visible{outline-color:var(--focus)}.auth-submit{width:100%;min-height:44px;margin-top:8px}.auth-error{color:var(--danger);margin:4px 0 0;font-size:14px;line-height:1.5}.auth-footnote{color:var(--secondary);margin:20px 0 0;font-size:14px;line-height:1.5}.auth-loading{width:min(100%,420px);min-height:88px;color:var(--secondary);justify-content:center;align-items:center;gap:12px;font-size:14px;display:flex}.logout-button{min-height:44px;color:var(--secondary);cursor:pointer;background:0 0;border:0;border-radius:4px;padding:0 8px;font-size:12px}.logout-button:hover{background:var(--surface-raised);color:var(--ink)}@media (width<=760px){.auth-workspace{min-height:calc(100vh - 60px);padding:28px 16px}.auth-card{padding:24px 20px}.auth-brand-mark{margin-bottom:20px}.auth-description{font-size:17px}.auth-form label,.auth-error,.auth-footnote{font-size:15px}}.kdocs-panel{grid-template-columns:41px minmax(220px,1fr) auto auto;align-items:center;gap:12px;min-height:82px;margin-bottom:12px;padding:15px 18px;display:grid}.kdocs-mark{width:41px;height:41px;color:var(--brand);font:700 15px var(--mono);background:linear-gradient(145deg,#edf3f5,#e2ecef);border-radius:8px;place-items:center;display:grid;box-shadow:inset 0 1px #fff}.kdocs-copy{gap:5px;min-width:0;display:grid}.kdocs-copy strong{font-size:12px;font-weight:600}.kdocs-copy span{color:var(--secondary);font-size:11px}.kdocs-state{white-space:nowrap;color:var(--secondary);align-items:center;gap:8px;font-size:11px;display:flex}.kdocs-state .network-dot{background:#aab4bc;box-shadow:0 0 0 3px #f0f2f3}.kdocs-state.connected .network-dot{background:var(--success);box-shadow:0 0 0 3px #eaf4ef}.kdocs-button{min-width:124px}.kdocs-setup{color:#8b6c3b;grid-column:2/-1;margin-top:-4px;font-size:10px}@media (width<=760px){.kdocs-panel{grid-template-columns:38px 1fr;gap:10px;padding:14px}.kdocs-mark{width:38px;height:38px}.kdocs-state{grid-area:2/2}.kdocs-button{grid-column:1/-1;width:100%}.kdocs-setup{grid-column:1/-1;margin-top:0}}
