:root {
  --navy: #0b2442;
  --navy2: #174671;
  --ink: #19293c;
  --muted: #637389;
  --bg: #f3f6fa;
  --line: #d9e3ed;
  --accent: #1767b0;
  --danger: #b93838;
  --green: #0b7050;
  --gold: #c79a34;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.48 system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.65rem; letter-spacing: -.035em; margin: 0 0 8px; }
h2 { font-size: 1.08rem; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 10px 0; }
p { margin: 8px 0; }
.container { max-width: 1320px; padding: 28px 22px 50px; margin: auto; min-height: 73vh; }
.muted, .footer, small { color: var(--muted); }
.small { font-size: .83rem; }
.site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px #0b24421a; }
.topbar { background: var(--navy); color: white; padding: 12px max(22px, calc((100vw - 1320px)/2)); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 300px; color: white; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 14px; color: #ffd45f; font-size: 1.8rem; display: grid; place-items: center; flex: 0 0 56px; background: #ffffff0b; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { color: #fff; font: 700 1.35rem/1.1 Georgia, 'Times New Roman', serif; letter-spacing: .035em; }
.brand small { color: #d7e2f0; margin: 0; font-size: .76rem; }
.header-right { display: grid; justify-items: end; gap: 8px; flex: 1; }
.chambers { max-width: 100%; border: 1px solid #7187a3; background: #ffffff14; color: #e1e9f4; border-radius: 20px; padding: 5px 12px; font-size: .73rem; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.header-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; border: 1px solid #8193aa; border-radius: 7px; background: #ffffff16; color: #f5f8fc !important; font-size: .76rem; line-height: 1.15; font-weight: 700; text-align: center; }
.header-button:hover { background: #ffffff2b; text-decoration: none; }
.header-actions form { display: inline; margin: 0; }
.header-actions button { font: inherit; cursor: pointer; }
.topbar .who { color: #d4deeb; font-size: .7rem; font-weight: 650; max-width: 190px; }
.subnav-wrap { background: white; border-bottom: 1px solid var(--line); }
.subnav { display: flex; align-items: stretch; gap: 4px; max-width: 1320px; min-height: 44px; overflow-x: auto; scrollbar-width: thin; margin: auto; padding: 0 12px; }
.subnav a { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 0 14px; color: #465d78; font-size: .8rem; font-weight: 650; border-bottom: 3px solid transparent; }
.subnav a:hover { background: #f5f8fb; color: var(--navy); border-bottom-color: var(--gold); text-decoration: none; }
.footer { text-align: center; font-size: .77rem; padding: 20px; }
.auth-card { max-width: 490px; margin: 60px auto; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 38px #183c5e17; }
.hero-icon { font-size: 2.5rem; color: var(--navy); margin-bottom: 12px; }
.stack { display: grid; gap: 14px; margin-top: 20px; }
label { font-weight: 650; font-size: .87rem; display: grid; gap: 6px; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #bdcad9; border-radius: 9px; padding: 11px; font: inherit; background: white; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid #99c5ef; outline-offset: 1px; border-color: var(--accent); }
button, .button, .secondary, .primary { font: inherit; font-weight: 650; border-radius: 9px; border: 1px solid transparent; padding: 10px 17px; cursor: pointer; display: inline-block; text-align: center; }
.primary { background: var(--navy); color: white; }
.primary:hover { background: var(--navy2); color: white; text-decoration: none; }
.danger-action { background: #b93838; color: #fff; border: 1px solid #b93838; }
.danger-action:hover { background: #922d2d; border-color: #922d2d; }
.secondary { background: white; color: var(--navy); border-color: var(--line); }
.secondary:hover { background: #eaf1f9; text-decoration: none; }
.notice { background: #e2f7ee; border: 1px solid #b4e0d0; color: #136047; padding: 13px 17px; margin: 0 0 17px; border-radius: 10px; }
.error { background: #ffe9e7; border: 1px solid #eeb1ad; color: #8d302c; padding: 12px; border-radius: 8px; }
.page-head, .board-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin: 0 0 18px; }
.panel, .tile, .stat, .board-panel { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 11px #1737570b; }
.panel { padding: 21px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.stat { padding: 20px; display: grid; gap: 2px; }
.stat strong { font-size: 2rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .86rem; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 19px; }
.tile { padding: 23px; min-height: 163px; display: grid; align-content: start; gap: 8px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: #7fafd6; text-decoration: none; box-shadow: 0 6px 22px #17467113; transform: translateY(-1px); }
.tile span { font-size: 1.7rem; }
.tile strong { font-size: 1.12rem; color: var(--navy); }
.tile small { font-size: .85rem; }
.tile.featured { background: var(--navy); color: white; }
.tile.featured strong, .tile.featured small { color: white; }
.directory-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { align-content: start; }
.field b { color: var(--danger); }
.field.wide, .form-actions { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; margin-top: 12px; }
.search-row { display: flex; gap: 9px; max-width: 710px; margin: 15px 0; }
.search-row input { flex: 1; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .84rem; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid #e6edf3; vertical-align: top; }
th { background: #e9f0f7; white-space: nowrap; color: #22415c; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #f9fbfd; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { font-size: .75rem; font-weight: 650; border-radius: 6px; padding: 5px 8px; background: #eaf1f8; color: var(--navy); }
.mini:hover { background: #dce9f6; text-decoration: none; }
.mini.danger-action { background: #b93838; color: #fff; }
.mini.danger-action:hover { background: #922d2d; }
.list-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.list-cards .panel { display: grid; gap: 6px; }
.panel-top { display: flex; justify-content: space-between; gap: 8px; }
.tag { background: #edf4f9; color: var(--navy); padding: 4px 8px; border-radius: 6px; font-size: .72rem; }
.tag.high { background: #fbe1e0; color: #a32b2b; }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.board-panel { overflow: hidden; padding: 0 0 12px; }
.board-panel > h2 { background: var(--navy); color: white; margin: 0; padding: 13px 17px; font-size: 1rem; }
.group-title { background: #eaf1f9; border-bottom: 1px solid var(--line); margin: 0; padding: 9px 15px; font-size: .86rem; }
.board-entry { padding: 13px 16px; border-bottom: 1px solid #e5edf5; }
.board-entry strong { color: var(--navy); }
.board-entry small { display: block; margin-top: 5px; font-size: .79rem; }
.board-entry div { margin-top: 4px; }
.empty { padding: 16px; color: var(--muted); }
.hidden { display: none; }
.dashboard-hero { padding: 28px 30px; border-top: 4px solid var(--gold); background: linear-gradient(120deg, #fff 0%, #f6f9fc 100%); }
.dashboard-hero .hero-icon { display: inline-block; margin: 0 10px 0 0; font-size: 2rem; vertical-align: middle; }
.dashboard-hero h1 { display: inline-block; vertical-align: middle; color: var(--navy); font-family: Georgia, serif; letter-spacing: .02em; }
.dashboard-hero p { margin: 8px 0 0 48px; }
.section-title { margin: 25px 0 8px; color: var(--navy); }
.dashboard-note { margin-top: 22px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .topbar { align-items: flex-start; } .header-right { justify-items: stretch; } .header-actions { justify-content: flex-start; } .chambers { border-radius: 10px; } }
@media (max-width: 650px) { .stats, .tiles, .directory-tiles, .form-grid, .board-grid, .list-cards { grid-template-columns: 1fr; } .container { padding: 18px 12px; } .topbar { padding: 12px; gap: 10px; } .brand { min-width: 0; align-items: flex-start; } .brand-icon { width: 46px; height: 46px; flex-basis: 46px; } .brand-copy strong { font-size: 1.05rem; } .brand small { max-width: 265px; font-size: .68rem; } .header-actions { justify-content: flex-start; } .header-button { min-height: 34px; padding: 6px 9px; } .subnav { padding: 0 4px; } .subnav a { padding: 0 10px; } .auth-card { margin: 15px auto; } .search-row { flex-wrap: wrap; } .search-row input { flex-basis: 100%; } }
