* { box-sizing: border-box; }
:root {
  color-scheme: light; font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #17253b; background: #f3f6fa; --muted: #526279; --line: #dbe3ed; --accent: #164ca5;
}
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1250px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; color: #17253b; }
.brand small { display: block; font-weight: 500; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; color: #fff; background: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
main { max-width: 1250px; margin: 0 auto; padding: 30px 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin-bottom: 9px; }
h2 { line-height: 1.25; }
.muted { color: var(--muted); margin-bottom: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.signin { display: grid; justify-items: center; padding: 6vh 0; }
.login-card { width: min(100%, 460px); padding: 32px; display: grid; gap: 17px; }
.login-card h1, .login-card p { margin-bottom: 0; }
label { display: grid; gap: 5px; font-weight: 600; font-size: .91rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { min-width: 0; color: inherit; background: #fff; padding: 8px 10px; border: 1px solid #a6b5c7; border-radius: 6px; }
button { cursor: pointer; border-radius: 6px; padding: 8px 12px; font-weight: 650; border: 1px solid transparent; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #5288df; outline-offset: 2px; }
.primary { background: var(--accent); color: #fff; }
.secondary { background: #fff; color: #1b345a; border-color: #a6b5c7; }
.heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tabs button { color: var(--muted); background: transparent; border-radius: 6px; }
.tabs button[aria-current="page"] { background: #e1ecff; color: #16438f; }
.filters { padding: 16px; display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.filters label:first-child { flex: 1 1 260px; max-width: 440px; }
.filters #count { margin: 0 0 9px auto; font-size: .86rem; }
.message { color: #943027; overflow-wrap: anywhere; }
.message:empty { display: none; }
.data-panel > .message, .empty { padding: 0 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #edf2f8; color: #34455e; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.row-link { padding: 0 2px; background: transparent; color: var(--accent); text-decoration: underline; text-align: left; }
.pill { display: inline-block; white-space: nowrap; border-radius: 100px; padding: 3px 9px; font-weight: 650; }
.pill.PENDING { background: #fef0cb; color: #92400e; }
.pill.REJECTED { background: #ffe4e1; color: #b91c1c; }
.pill.APPROVED { background: #dcf4e3; color: #166534; }
.dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(1080px, calc(100vw - 28px)); max-height: 90vh; }
.dialog::backdrop { background: rgb(25 38 59 / 50%); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.dialog-head h2 { margin-top: 5px; }
.dialog dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; }
.dialog dt { color: var(--muted); }
.dialog dd { margin: 0; overflow-wrap: anywhere; }
.dialog form { margin-top: 18px; }
.decision-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.guide { max-width: 1000px; }
.guide > section { padding: 23px; margin-top: 18px; }
.guide nav { display: flex; gap: 20px; margin-top: 14px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #edf2f8; padding: 11px 14px; border-radius: 7px; }
code { font-family: Consolas, monospace; font-size: .93em; }
@media (max-width: 650px) {
  main { padding: 23px 13px; }
  .topbar-inner { padding: 10px 13px; }
  .topbar-actions { gap: 9px; justify-content: end; font-size: .85rem; }
  .login-card { padding: 22px; }
}
