:root{--bg: #F1EFE7;--surface: #FFFFFF;--surface-2: #F7F5EF;--text: #1E1C17;--muted: #6E6A60;--line: #E2DED3;--gold: #CAA14E;--gold-ink: #6F5421;--green: #2F9D63;--red: #E0533D;--amber: #B9770E;--radius: 12px;--shadow: 0 6px 24px rgba(0, 0, 0, .06);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #15140F;--surface: #201E18;--surface-2: #2A2720;--text: #F1EFE7;--muted: #A9A498;--line: #36322A;--gold-ink: #E6C77F;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font:15px/1.45 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}[hidden]{display:none!important}a{color:var(--gold-ink)}code{font-size:.9em;background:var(--surface-2);padding:1px 5px;border-radius:5px}h2,h3{margin:0 0 .4em;line-height:1.2}.boot{min-height:100vh;display:grid;place-items:center;color:var(--muted);padding:16px}.card{background:var(--surface);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.card.narrow{max-width:420px;text-align:center;color:var(--text)}.btn{border:0;border-radius:9px;padding:10px 18px;font:inherit;font-weight:600;background:var(--text);color:var(--bg);cursor:pointer}.btn:disabled{opacity:.5;cursor:default}.btn.small{padding:6px 12px;font-size:13px}.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--line)}.btn.approve{background:var(--green);color:#fff}.btn.decline{background:var(--red);color:#fff}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:10px;font-weight:700}.brand img{width:28px;height:28px}.user{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px}.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px 0}.tabs{display:flex;gap:6px}.tab{border:1px solid var(--line);background:var(--surface);color:var(--text);padding:8px 14px;border-radius:999px;font:inherit;font-weight:600;cursor:pointer}.tab.active{background:var(--text);color:var(--bg);border-color:var(--text)}.count{display:inline-block;min-width:1.6em;padding:0 6px;margin-left:4px;border-radius:999px;background:var(--gold);color:#fff;font-size:12px;text-align:center}.filters{display:flex;gap:8px;flex-wrap:wrap}select,input[type=search]{font:inherit;padding:7px 10px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--text);min-width:0}.layout{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:16px;padding:14px 20px 32px;align-items:start}.list{display:flex;flex-direction:column;gap:8px}.item{display:flex;gap:12px;align-items:center;text-align:left;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;cursor:pointer;font:inherit;color:inherit}.item:hover{border-color:var(--gold)}.item.active{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}.item .meta{min-width:0;flex:1}.item .name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item .sub{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:42px;height:42px;border-radius:50%;flex:none;object-fit:cover;background:var(--surface-2);display:grid;place-items:center;font-weight:700;color:var(--gold-ink)}.avatar.lg{width:72px;height:72px;font-size:24px}.chip{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--muted);white-space:nowrap}.chip.pending{background:#caa14e2e;color:var(--gold-ink)}.chip.approved{background:#2f9d6326;color:var(--green)}.chip.declined{background:#e0533d26;color:var(--red)}.chip.warn{background:#b9770e26;color:var(--amber)}.detail{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;min-height:300px}.detail .empty{color:var(--muted);text-align:center;padding:80px 0}.head{display:flex;gap:16px;align-items:center;margin-bottom:16px}.head .chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}.facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0 0 18px}.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere}.section-title{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:22px 0 10px}.docs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.doc{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface-2)}.doc .label{padding:7px 10px;font-size:13px;font-weight:600;display:flex;justify-content:space-between;gap:8px}.doc img{display:block;width:100%;height:240px;object-fit:contain;background:#000;cursor:zoom-in}.doc .placeholder{height:240px;display:grid;place-items:center;color:var(--muted);font-size:13px;padding:12px;text-align:center}.thumbs{display:flex;gap:8px;flex-wrap:wrap}.thumbs img{width:96px;height:96px;object-fit:cover;border-radius:8px;cursor:zoom-in;border:1px solid var(--line)}.bio{white-space:pre-wrap;color:var(--muted);margin:0}.actions{display:flex;gap:10px;flex-wrap:wrap;position:sticky;bottom:0;background:var(--surface);padding:16px 0 4px;margin-top:24px;border-top:1px solid var(--line)}.note{color:var(--muted);font-size:13px}.list .empty,.list .loading{color:var(--muted);padding:24px 4px;text-align:center}.lightbox{position:fixed;inset:0;background:#000000e0;display:grid;place-items:center;z-index:50;cursor:zoom-out;padding:16px}.lightbox img{max-width:100%;max-height:100%;object-fit:contain}dialog{border:0;border-radius:var(--radius);padding:22px;max-width:420px;width:calc(100% - 32px);background:var(--surface);color:var(--text)}dialog::backdrop{background:#0006}.row{display:flex;gap:10px}.row.end{justify-content:flex-end;margin-top:18px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:var(--text);color:var(--bg);padding:10px 18px;border-radius:10px;z-index:60;max-width:calc(100% - 32px);box-shadow:var(--shadow)}.toast.error{background:var(--red);color:#fff}@media(max-width:760px){.topbar,.toolbar,.layout{padding-left:16px;padding-right:16px}.layout{grid-template-columns:1fr}.layout.has-detail .list{display:none}.layout:not(.has-detail) .detail{display:none}.back{display:inline-block!important}.user span{display:none}}.back{display:none;margin-bottom:12px}.doc .open{padding:100px 12px;text-align:center}
