:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#18201f;background:#f4f6f4;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--border: #d7ded7;--panel: #ffffff;--inkMuted: #5c6763;--green: #136f4a;--greenDark: #0d4f35;--amber: #9a5d12;--amberBg: #fff7e8;--red: #b42318}*{box-sizing:border-box}body{margin:0;min-width:320px}button,textarea,input{font:inherit}.appShell{min-height:100vh;display:flex;flex-direction:column}.topBar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px clamp(16px,4vw,36px);background:#fff;border-bottom:1px solid var(--border)}.eyebrow{margin:0 0 4px;color:var(--inkMuted);font-size:.78rem;font-weight:700}h1,h2{margin:0;letter-spacing:0}h1{font-size:clamp(1.45rem,3vw,2.1rem)}h2{font-size:.98rem}.topActions,.compactActions,.tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.button,.iconButton,.tabs button{border:1px solid var(--border);background:#fff;color:#18201f;border-radius:8px;min-height:38px;cursor:pointer}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:700;position:relative;overflow:hidden}.button input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:var(--greenDark)}.button.secondary:hover,.iconButton:hover,.tabs button:hover{border-color:#9cb0a5}.button:disabled,.iconButton:disabled{opacity:.45;cursor:not-allowed}.iconButton{width:36px;display:inline-flex;align-items:center;justify-content:center}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:16px;padding:16px clamp(16px,4vw,36px)}.inputPanel,.aliasPanel,.resultBand{background:var(--panel);border:1px solid var(--border);border-radius:8px}.inputPanel,.aliasPanel{min-height:420px;display:flex;flex-direction:column}.panelHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 14px;border-bottom:1px solid var(--border)}.panelHeader span{color:var(--inkMuted);font-size:.85rem;overflow-wrap:anywhere}.sourceArea,.aliasArea{width:100%;flex:1;resize:vertical;border:0;outline:none;padding:14px;color:#18201f;background:transparent;line-height:1.55}.sourceArea{min-height:360px}.aliasArea{min-height:330px;font-family:SFMono-Regular,Consolas,monospace;font-size:.84rem}.errorText{margin:0;padding:10px 14px;color:var(--red);border-top:1px solid #f1c5c0;background:#fff1ef;font-size:.88rem}.resultBand{margin:0 clamp(16px,4vw,36px) 24px;overflow:hidden}.summaryGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--border)}.metric{min-height:78px;padding:14px;border-right:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;gap:5px}.metric:last-child{border-right:0}.metric span{color:var(--inkMuted);font-size:.82rem}.metric strong{font-size:1.25rem}.metric.attention{background:var(--amberBg)}.metric.attention strong{color:var(--amber)}.tabs{padding:10px 12px;border-bottom:1px solid var(--border)}.tabs button{padding:0 12px;font-weight:700}.tabs button.active{background:#e9f3ee;border-color:#89b59c;color:var(--greenDark)}.tableFrame{overflow:auto;min-height:220px;max-height:460px}table{width:100%;border-collapse:collapse;min-width:820px}th,td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top;font-size:.9rem}th{position:sticky;top:0;background:#f9faf8;z-index:1;color:#39423f;font-size:.78rem}.number{text-align:right;white-space:nowrap}.sourceCell{white-space:pre-wrap;min-width:320px}.statusOk,.statusWarn{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.82rem}.statusOk{color:var(--greenDark)}.statusWarn{color:var(--amber)}.emptyState{min-height:220px;display:grid;place-items:center;color:var(--inkMuted)}@media(max-width:920px){.topBar{align-items:stretch;flex-direction:column}.topActions{width:100%}.button{flex:1 1 140px}.workspace{grid-template-columns:1fr}.summaryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric:nth-child(2){border-right:0}}@media(max-width:520px){.topBar,.workspace{padding-left:12px;padding-right:12px}.resultBand{margin-left:12px;margin-right:12px}.summaryGrid{grid-template-columns:1fr}.metric{border-right:0}}
