:root{--ink:#202a3b;--muted:#737e90;--line:#e5e9f0;--blue:#3159d9;--control:40px;color-scheme:light;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:var(--ink);background:#f5f7fb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{height:var(--control);padding:0 15px;border:1px solid #dce2ec;border-radius:8px;background:white;white-space:nowrap;cursor:pointer;transition:background .14s,transform .14s}button:active{transform:scale(.98)}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a4b7ff;outline-offset:2px}.primary{background:var(--blue);color:#fff;border-color:var(--blue);font-weight:600}.primary.armed{background:#b94232;border-color:#b94232}.page{max-width:1224px;margin:auto;padding:32px 28px 150px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.breadcrumb{font-size:12px;text-decoration:none;color:var(--muted)}h1{font-size:24px;line-height:1.4;margin:8px 0 4px;font-weight:650;letter-spacing:-.4px}h2{font-size:16px;line-height:1.5;margin:0;font-weight:650}.platform-label{font-size:12px;font-weight:500;letter-spacing:0;background:#eaf0ff;color:#526993;padding:4px 8px;border-radius:5px;vertical-align:middle}.intro{color:var(--muted);margin:0}.identity{font-size:12px;text-align:right;color:var(--muted);max-width:240px;overflow-wrap:anywhere}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:0}.tab{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:0 2px;height:44px;color:var(--muted)}.tab.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:600}.page-status{min-height:28px;padding:4px 0;font-size:12px;color:var(--muted)}.panel{padding:24px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:20px;box-shadow:0 3px 10px #26345303}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.section-head p{margin:4px 0 0}.muted{font-size:12px;color:var(--muted)}textarea{display:block;width:100%;min-height:116px;padding:12px 14px;border:1px solid #dce2ec;border-radius:8px;resize:vertical;line-height:1.6;background:#fcfdff}textarea::placeholder,input::placeholder{color:#919aaa}.action-track{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:14px;min-height:var(--control)}.action-group{display:flex;align-items:center;gap:14px;min-height:var(--control)}.status{font-size:12px;color:var(--muted);overflow-wrap:anywhere;min-height:20px;line-height:20px}.status.error,.error{color:#b43d33}.status.success{color:#26805a}.rating-group{display:flex;gap:6px;border:0;padding:0;margin:0;min-width:0}.rating-group label{position:relative;display:flex;align-items:center;justify-content:center;min-width:78px;height:var(--control);cursor:pointer}.rating-group input{position:absolute;opacity:0;width:1px;height:1px}.rating-group span{height:var(--control);display:flex;align-items:center;justify-content:center;width:100%;border:1px solid var(--line);border-radius:8px;padding:0 10px;white-space:nowrap}.rating-group input:checked+span{background:#eef2ff;border-color:#90a4f0;color:var(--blue)}.rating-group input:focus-visible+span{outline:3px solid #a4b7ff}.preview{padding-bottom:8px}.table-scroll{overflow:auto;max-height:62vh;isolation:isolate}table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px}th{text-align:left;font-size:12px;font-weight:500;color:var(--muted);background:#fafbfd;position:sticky;top:0;z-index:1;height:40px;border-bottom:1px solid var(--line);padding:10px}td{vertical-align:top;padding:15px 10px;border-bottom:1px solid #edf0f5;overflow-wrap:anywhere}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}.check-col{width:30px}#preview th:nth-child(2){width:32%}#preview th:nth-child(3){width:11%}#preview th:nth-child(4){width:12%}#preview th:nth-child(5){width:122px}.name-button{display:inline;padding:0;height:auto;text-align:left;border:0;border-radius:2px;white-space:normal;color:var(--blue);background:none;font-weight:500;line-height:1.6;overflow-wrap:anywhere;max-width:100%}.meta{display:block;color:var(--muted);font-size:12px;margin-top:5px}.badge{display:inline-flex;align-items:center;padding:3px 7px;font-size:12px;border-radius:5px;background:#f1f3f7;color:#707c8f;white-space:nowrap}.badge.good{color:#217b57;background:#eaf7ef}.badge.bad{color:#976316;background:#fff4e2}.badge.rejected{color:#b43d33;background:#fcefed}.row-status{font-size:12px;color:var(--muted)}td select{width:100%;min-width:0}.variant-select{margin-top:8px}input:not([type=checkbox]):not([type=radio]),select{height:var(--control);border:1px solid #dce2ec;border-radius:7px;padding:0 9px;background:white;min-width:0;max-width:100%}input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue);cursor:pointer}.filters{display:grid;grid-template-columns:minmax(160px,2fr) minmax(90px,1fr) minmax(120px,1.2fr) minmax(100px,1fr) auto auto;gap:10px;align-items:end}.filters label{display:grid;gap:6px;font-size:12px;color:var(--muted);min-width:0;margin:0}.filters input{width:100%}.history-status{margin:12px 0;min-height:20px}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px}.pagination .muted{margin-right:auto}#history-panel th:first-child{width:38%}#history-panel th:nth-child(2){width:22%}#history-panel th:nth-child(4){width:12%}.save-dock{position:fixed;z-index:5;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(720px,calc(100% - 32px));padding:14px 18px;background:#fff;border:1px solid #dce2ec;border-radius:12px;box-shadow:0 10px 40px #1c305a26;display:flex;align-items:center;justify-content:space-between;gap:16px}.save-dock strong{font-size:13px}.save-dock button{width:174px;flex:none}.save-dock>div{min-width:0}.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(650px,100%);max-width:100%;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);padding:24px;overflow:auto;color:var(--ink)}.drawer::backdrop{background:#15243c55}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:16px}.detail-title{font-size:15px;overflow-wrap:anywhere;margin:0 0 10px}.detail-meta{font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.detail-section{margin-top:24px}.detail-section h3{font-size:14px;margin:0 0 10px}.copy-item{padding:14px;border:1px solid var(--line);border-radius:8px;margin-bottom:10px}.copy-text{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.copy-meta{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.copy-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.copy-actions button{height:32px;font-size:12px;padding:0 9px}.copy-result{font-size:12px;margin-top:10px;overflow-wrap:anywhere}.material-item{padding:9px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.empty{padding:30px 0;text-align:center;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:950px){.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filters button{align-self:end}.page{padding:24px 20px 150px}.section-head{align-items:flex-start}.preview .section-head{display:grid;grid-template-columns:1fr}.rating-group{justify-self:start}.table-scroll{max-height:65vh}}@media(max-width:620px){:root{--control:44px}.page{padding:20px 12px 160px}.panel{padding:18px 14px}.page-head{gap:12px;align-items:flex-start}h1{font-size:21px}.identity{max-width:110px;font-size:11px}.intro{font-size:12px}.section-head{gap:10px;flex-wrap:wrap}.input-panel .section-head .muted{width:100%}.action-track{display:grid;grid-template-columns:1fr;gap:5px}.action-track .status{min-height:20px}.rating-group{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-self:stretch}.rating-group label{min-width:0}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filters .search-field{grid-column:1/-1}.table-scroll{max-height:none;overflow:visible}table,tbody{display:block;width:100%}thead{display:none}tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;position:relative;padding:18px 0;border-bottom:1px solid var(--line)}td{display:block;padding:0!important;border:0;min-width:0}td:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}#preview td:nth-child(2){grid-column:1/-1;padding-left:28px!important;min-height:30px}#preview td:first-child{position:absolute;top:20px;left:0}#preview td:first-child:before{display:none}#preview td:last-child{grid-column:1/-1}#preview td:nth-child(2):before{display:none}#history-panel td:first-child{grid-column:1/-1}#history-panel td:first-child:before{display:none}.save-dock{width:100%;bottom:0;border-radius:12px 12px 0 0;padding:12px 14px calc(12px + env(safe-area-inset-bottom));gap:10px}.save-dock button{width:148px;padding:0 8px}.drawer{padding:20px 16px}.pagination{flex-wrap:wrap}.pagination .muted{width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}button:active{transform:none}}

/* Reserve status space so confirmation and failures do not move the save target. */
.save-dock strong{display:block;height:20px;line-height:20px}.save-dock .status{height:40px;min-height:40px;overflow:auto}@media(max-width:620px){.save-dock strong{height:40px}.save-dock .status{height:60px;min-height:60px}}

.lookup-notices{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}.lookup-notice+ .lookup-notice{margin-top:16px}.lookup-notice h3{font-size:14px;margin:0 0 6px}.lookup-notice p{font-size:12px;color:var(--muted);margin:0 0 8px}.lookup-notice ul{margin:0;padding-left:20px;font-size:12px;overflow-wrap:anywhere}.lookup-notice li+li{margin-top:6px}.lookup-notice.error h3{color:#b43d33}.row-status button{display:block;margin-top:6px;max-width:100%;font-size:12px;padding:0 8px}.copy-actions button{min-width:120px}.detail-section>button{min-width:174px}.copy-result[aria-busy=true]{color:var(--muted)}
.row-status button{min-width:120px}.row-status:has(button:not([hidden]))>span{display:block;height:60px;overflow:auto}
