:root{color-scheme:dark;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f0eee7;background:#080f1a}
*{box-sizing:border-box}body{margin:0;padding:16px}main{max-width:900px;margin:0 auto;border:1px solid #333934;border-radius:18px;overflow:hidden}header{padding:24px}a{color:#d8bd83;text-underline-offset:3px}header>a{display:inline-block;margin-bottom:22px}.brand{font-size:11px;letter-spacing:2px;color:#d8bd83;margin-bottom:8px}h1{font-size:28px;font-weight:500;margin:0 0 12px;color:#d8bd83}h2{font-size:21px;font-weight:500;margin:0}h3{font-size:16px;font-weight:500;margin:20px 0 10px}p{font-size:14px;line-height:1.55;margin:0;color:#c5c3bb}
button,select,textarea{font:inherit;color:inherit;background:#101823;border:1px solid #605640;border-radius:8px;min-height:44px;padding:10px 14px}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #d8bd83;outline-offset:3px}button[hidden]{display:none}
.toolbar{display:flex;gap:16px;align-items:end;justify-content:space-between;padding:16px 24px;background:#101823;border-block:1px solid #333934}label{display:grid;gap:7px;font-size:13px}select{min-width:180px}#page-status{padding:14px 24px;min-height:24px}#preferences{padding:0 24px}.preference{border-top:1px solid #333934;padding:20px 0;display:grid;gap:10px}.preference h2{font-size:18px;overflow-wrap:anywhere}.preference .scope{color:#f0eee7}.meta{font-size:12px;color:#aaa99f}.state{font-size:12px;color:#d8bd83}.preference button{justify-self:start}.empty{padding:24px 0 40px}.pagination{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:20px 24px;border-top:1px solid #333934}#page-number{font-size:13px;color:#aaa99f}
dialog{position:fixed;inset:12px;width:calc(100% - 24px);max-width:720px;max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:24px;border:1px solid #605640;border-radius:14px;background:#101823;color:#f0eee7}dialog::backdrop{background:rgba(0,0,0,.75)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.dialog-head h2{overflow-wrap:anywhere}.dialog-head button{flex-shrink:0}dl{margin:20px 0}dt{font-size:12px;color:#d8bd83;margin-top:16px}dd{font-size:14px;line-height:1.55;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.reason-label{margin-top:22px}textarea{width:100%;resize:vertical}#decision-status{margin:16px 0;color:#d8bd83}.decision-actions{display:flex;gap:10px;flex-wrap:wrap}#approve{background:#d8bd83;color:#080f1a}#decision-history{padding-left:22px;font-size:13px;line-height:1.6;color:#c5c3bb}#decision-history li{margin-bottom:12px;overflow-wrap:anywhere}#decision-history p{white-space:pre-wrap}
@media(max-width:430px){body{padding:10px}header{padding:20px 16px}.toolbar,#page-status,.pagination{padding-inline:16px}#preferences{padding-inline:16px}dialog{padding:18px}.decision-actions button{flex:1 1 150px}select{min-width:0;max-width:100%}}

:root{--preference-safe-top:max(44px,env(safe-area-inset-top,0px));--preference-safe-bottom:env(safe-area-inset-bottom,0px);--preference-safe-left:env(safe-area-inset-left,0px);--preference-safe-right:env(safe-area-inset-right,0px)}
body{padding:calc(16px + var(--preference-safe-top)) calc(12px + var(--preference-safe-right)) calc(16px + var(--preference-safe-bottom)) calc(12px + var(--preference-safe-left))}
header>a{display:inline-flex;align-items:center;min-height:44px;padding:10px 0}
dialog{inset:calc(12px + var(--preference-safe-top)) calc(12px + var(--preference-safe-right)) calc(12px + var(--preference-safe-bottom)) calc(12px + var(--preference-safe-left));width:auto;max-height:calc(var(--preference-viewport-height,100dvh) - 24px - var(--preference-safe-top) - var(--preference-safe-bottom));overscroll-behavior:contain}
