
:root{color-scheme:dark;--bg:#080e1b;--surface:#101b2c;--border:#2a3c54;--muted:#a6b8d0;--accent:#7ae8d6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#eff5ff;font:14px/1.9 var(--hd-font)}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{text-decoration:none;color:var(--accent)}header{padding:18px max(24px,calc((100vw - 1240px)/2));border-bottom:1px solid var(--border);background:#0c1423;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:15px;color:#eff5ff;font-size:18px;font-weight:800}.brand img{width:65px;height:50px;object-fit:contain}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:400}.back{font-size:12px;white-space:nowrap}main{max-width:1240px;margin:30px auto 70px;padding:0 24px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}h1{font-size:27px;line-height:1.8;margin:5px 0}p{color:var(--muted);margin:8px 0 18px}.eyebrow{color:var(--accent);font-size:11px;margin:0}.badge{border:1px solid #2c625c;background:#143431;border-radius:10px;color:#b6f7e9;padding:8px 13px;font-size:12px}.panel{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:24px;margin-bottom:20px}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);margin-bottom:24px;padding-bottom:12px;flex-wrap:wrap}.tabs button,.secondary{padding:10px 16px;border:1px solid var(--border);background:#132238;color:#bfd1e8;border-radius:9px}.tabs button[aria-current=page]{color:var(--accent);background:#173c3b;border-color:#3e7770}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:18px}h2{font-size:17px;margin:0}.section-title>span{color:#91a7c2;font-size:11px}.scope-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.price-fields{display:grid;grid-template-columns:1fr 1fr 2fr;gap:18px}label{font-size:12px;color:#bed0e8;display:flex;flex-direction:column;gap:8px}select,input{color:#e9f3ff;background:#0a1526;border:1px solid #39516f;padding:11px 13px;border-radius:9px;width:100%;min-height:45px}input::placeholder{color:#8095b0}.scope-summary{margin-top:20px;padding:13px 16px;background:#0a1628;border-right:3px solid #4caa9d;border-radius:8px;color:#bfd6eb;font-size:13px}.hint{font-size:12px;line-height:2;color:#91a8c2}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.primary,.danger{border:1px solid #3c8278;border-radius:9px;padding:11px 18px;background:#1a514a;color:#d2fff4;font-weight:700}.primary:hover{background:#25675f}.danger{color:#ffccd6;background:#472434;border-color:#89536a}.danger:hover{background:#603045}.table-search{min-width:240px}.table-search input{font-size:12px}.table-wrap{overflow:auto;max-height:560px;scrollbar-width:thin}table{width:100%;border-collapse:collapse;text-align:right;font-size:12px}th{color:#a2bad5;background:#15263e;white-space:nowrap;font-weight:600}th,td{padding:13px 12px;border-bottom:1px solid #27374b;line-height:1.9}td{color:#d1dff1}td:first-child{min-width:180px}td button{white-space:nowrap}.pill{display:inline-block;padding:3px 9px;border-radius:7px;border:1px solid #45637b;color:#c4deed}.pill.hidden{background:#462b2b;color:#f2c9bb;border-color:#78544d}.price-table{min-width:1040px}.price-table th:first-child{min-width:230px}.price-table del{display:block;color:#90a3ba;font-size:11px}.price-table strong{display:block;color:#a2f0d9;font-size:12px}.price-table td{vertical-align:top}.apply-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding-top:22px}.apply-bar span{color:#9bb4ce;font-size:12px}#actionStatus{border:1px solid #3c8278;color:#c5ffe8;background:#15392f;border-radius:10px;padding:14px 18px;margin-bottom:20px}#actionStatus.error{border-color:#9d5a60;color:#ffd2d7;background:#452833}.history-row{padding:18px;border:1px solid #2e435f;border-radius:12px;margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:18px}.history-row h3{font-size:14px;margin:0}.history-row p{font-size:12px;margin:5px 0 0}.history-row small{color:#91a8c2}.empty{padding:25px;text-align:center;color:#a7bad1}@media(max-width:760px){header{padding:14px 18px}.brand{font-size:15px}.brand img{width:45px}.brand small{display:none}.back{font-size:11px}main{padding:0 16px;margin-top:24px}h1{font-size:23px}.page-title{align-items:start;flex-direction:column}.panel{padding:18px}.scope-grid,.price-fields{grid-template-columns:1fr}.tabs button{font-size:12px;flex:1;padding:9px 8px}.apply-bar{align-items:stretch;flex-direction:column}.history-row{align-items:start;flex-direction:column}.section-title{gap:12px}.section-title h2{font-size:16px}.table-search{width:100%;min-width:0}}

header{flex-wrap:wrap}header>a,header .brand{min-width:0}header .brand{flex:1 1 220px}
.quality-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}.quality-counts button{text-align:right;white-space:normal;min-width:0}.quality-counts strong{display:block;font-size:24px;color:var(--accent)}.quality-counts span{font-size:11px}.quality-filters{margin:24px 0 12px}.quality-table{min-width:700px}.quality-table td{vertical-align:top}.quality-table td:first-child{min-width:260px;max-width:360px}.quality-table small{display:block;color:var(--muted);overflow-wrap:anywhere;margin-top:5px}.quality-table .pill{margin:2px;font-size:11px}.quality-table a{overflow-wrap:anywhere}@media(max-width:760px){.quality-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-counts strong{font-size:22px}#qualityPanel .actions{width:100%;margin:0}#qualityPanel .actions button{flex:1}}
