:root{font:16px/1.45 "Segoe UI",Arial,sans-serif;color:#2b242b;background:#f7f7fa;--ink:#342336;--plum:#733b61;--muted:#665f68;--line:#dfdce1;--paper:white}
*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}.frame{width:min(1360px,94%);margin:auto}
.mast{background:#372436;color:#fff}.mast-inner{display:flex;gap:20px;align-items:center;min-height:66px;font-size:.95rem}.brand{font:italic bold 1.82rem Georgia,serif;letter-spacing:-.06em}.brand-line{height:24px;width:1px;background:#8a7185}
.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:40px 0 29px}
h1,h2,h3,p{margin:0}h1{font:500 clamp(2.3rem,4vw,3.5rem)/1.08 Georgia,"Times New Roman",serif;letter-spacing:-.045em;color:var(--ink)}
h2{font-size:1.12rem;letter-spacing:-.025em}button,select,input{font:inherit}button,select{background:#fff;border:1px solid #cfc8cf;border-radius:7px;color:var(--ink);min-height:39px;padding:6px 13px;cursor:pointer}button:hover:not(:disabled),select:hover{border-color:var(--plum);background:#faf4f8}button:disabled{opacity:.48;cursor:default}:focus-visible{outline:3px solid #914378;outline-offset:3px}
.layout{display:grid;grid-template-columns:minmax(205px,244px) minmax(0,1fr);gap:26px;align-items:start;padding-bottom:44px}
.scope{padding:20px;background:#f0edf2;border-top:3px solid #805772;border-radius:2px 2px 8px 8px}.scope h2{margin-bottom:20px}.stage-group+.stage-group{border-top:1px solid #d8d0da;margin-top:17px;padding-top:16px}.stage-group h3{font-size:.94rem;font-weight:600;margin-bottom:8px}.stage-group ul{margin:0;padding:0;list-style:none}.stage-group li,.muted{font-size:.9rem;color:var(--muted)}.stage-group li{padding-left:12px;border-left:2px solid #aa8aa2;margin:6px 0}.admin-actions{margin-top:22px}.secondary{font-size:.85rem;color:var(--plum);text-underline-offset:3px}
.results{background:var(--paper);border:1px solid var(--line);border-radius:10px;overflow:hidden}.summary{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#faf6fa;border-bottom:1px solid #e5dbe4;padding:20px 25px}.summary>div:first-child{display:flex;flex-direction:column;align-items:start}.summary-label{color:#5b4b58;font-size:.92rem}.summary strong{font:500 3.4rem/1.08 Georgia,serif;color:#633752;font-variant-numeric:lining-nums tabular-nums}.source{display:grid;gap:3px;text-align:right;font-size:.85rem;color:var(--muted)}.source b{font-size:.93rem;color:#53424f}
.tools,.pager{padding:16px 24px;display:flex;gap:12px;align-items:center;justify-content:space-between}.filter{display:flex;align-items:center;gap:8px;font-size:.9rem;color:var(--muted)}select{appearance:none;padding-right:34px;background:#fff}.filter{position:relative}.filter::after{content:"";position:absolute;bottom:17px;right:14px;width:6px;height:6px;border-right:2px solid #665864;border-bottom:2px solid #665864;transform:rotate(45deg);pointer-events:none}.filter select{min-width:160px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;table-layout:fixed;text-align:left}th,td{padding:11px 12px;border-bottom:1px solid #e9e6e9;vertical-align:middle}th{font-weight:600;color:#655c66;font-size:.84rem;background:#f6f5f7}th:first-child,td:first-child{padding-left:24px}th:first-child{width:52%}th:last-child,td:last-child{width:130px;padding-right:24px;text-align:right}.deal-link{color:#513449;font-weight:600;text-decoration:none;overflow-wrap:anywhere}.deal-link:hover{text-decoration:underline}.meta{display:block;font-size:.83rem;color:var(--muted);margin-top:3px}.date,.pager{font-size:.9rem;color:var(--muted);font-variant-numeric:tabular-nums}.pager>div{display:flex;gap:8px}tbody tr:hover{background:#fcf9fc}.message{padding:22px 24px;color:var(--muted)}.message.error,#dialog-error{color:#963b39}
dialog{border:1px solid var(--line);border-radius:12px;width:min(650px,94vw);max-height:85dvh;padding:0;color:var(--ink)}dialog::backdrop{background:#291d2b65}#settings-form{padding:23px}.dialog-title,.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-title{margin-bottom:17px}.dialog-title h2{font-size:1.4rem}.dialog-title button{font-size:1.5rem;min-width:39px;line-height:1}.dialog-footer{justify-content:flex-end;margin-top:20px}.primary{background:var(--plum);color:white;border-color:var(--plum)}button.primary:hover:not(:disabled){background:#5f2c51;color:white}#choices{display:grid;grid-template-columns:1fr 1fr;gap:14px}fieldset{margin:0;min-width:0;border:1px solid var(--line);border-radius:7px;padding:9px}legend{padding:0 4px;font-weight:600}.choice{display:flex;align-items:baseline;gap:7px;padding:5px 1px;font-size:.91rem}input[type=checkbox]{accent-color:var(--plum)}#dialog-error:not(:empty){margin-top:12px}code{overflow-wrap:anywhere}
@media(max-width:850px){.layout{grid-template-columns:1fr;gap:15px}.scope{padding:14px 18px}.scope h2{margin-bottom:10px}#scope-list{display:flex;gap:20px;flex-wrap:wrap}.stage-group+.stage-group{margin:0;padding:0;border:0}.admin-actions{margin-top:12px}.heading{margin:25px 0}.scope li{margin-bottom:0}}
@media(max-width:560px){.frame{width:94%}.mast-inner{min-height:54px;gap:12px}.heading{flex-wrap:wrap}.heading h1{font-size:2.15rem}.tools,.summary,.pager{padding:12px}.tools{flex-wrap:wrap}.filter{flex-wrap:wrap}.table-wrap{width:100%}th,td{padding:8px 6px;font-size:.9rem}th:first-child,td:first-child{padding-left:10px;width:43%}th:last-child,td:last-child{width:85px;padding-right:8px}.source{max-width:130px}.meta{font-size:.8rem}#choices{grid-template-columns:1fr}.summary strong{font-size:2.8rem}}
.back-home{color:white;text-underline-offset:3px}
.stage-admin .layout{display:block;max-width:730px}.stage-admin .results{border:0;background:transparent}.stage-admin .results .tools,.stage-admin .results .summary{display:none}.stage-admin .results .message{padding-left:0}
