:root {
  --navy-950: #0b1f33;
  --navy-900: #102a43;
  --navy-800: #163b5c;
  --teal-700: #087f8c;
  --teal-600: #0f9aa8;
  --teal-100: #dff7f5;
  --lime-500: #b8d85b;
  --ink-900: #172b4d;
  --ink-700: #52627a;
  --ink-500: #7f8da3;
  --line: #dbe5ed;
  --surface: #ffffff;
  --surface-2: #f4f8fa;
  --surface-3: #eef4f7;
  --success: #1b8f64;
  --warning: #b27511;
  --danger: #c34b57;
  --shadow-soft: 0 12px 36px rgba(21, 49, 73, 0.08);
  --shadow-card: 0 8px 22px rgba(21, 49, 73, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--surface-2);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface-2); }
body { margin: 0; min-width: 320px; background: var(--surface-2); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell { min-height: 100vh; display: flex; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); background: var(--surface-2); }
.auth-visual { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 42px 8vw 34px; overflow: hidden; color: #fff; background: linear-gradient(145deg, var(--navy-950), #174b65 65%, #117f83); }
.auth-visual::before { content: ""; position: absolute; width: 500px; height: 500px; right: -140px; bottom: -180px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.03), 0 0 0 76px rgba(255,255,255,.025); }
.auth-visual::after { content: ""; position: absolute; width: 170px; height: 170px; right: 12%; top: 14%; border-radius: 50%; background: rgba(184,216,91,.15); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.auth-visual-copy { position: relative; z-index: 1; max-width: 530px; margin: auto 0; }
.auth-visual-copy h1 { max-width: 530px; margin: 0; color: #fff; font-size: clamp(38px, 5vw, 65px); line-height: .98; letter-spacing: -.065em; }
.auth-visual-copy > p:not(.eyebrow) { max-width: 450px; margin: 20px 0 24px; color: #bdd5de; font-size: 14px; line-height: 1.65; }
.auth-visual-points { display: grid; gap: 11px; color: #e8f7e4; font-size: 12px; font-weight: 750; }
.auth-visual-foot { position: relative; z-index: 1; color: #91aec0; font-size: 10px; letter-spacing: .04em; }
.auth-panel { display: grid; place-items: center; padding: 38px 7vw; background: var(--surface-2); }
.login-card { width: min(430px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 20px 55px rgba(21,49,73,.10); }
.login-heading { margin-bottom: 24px; }
.login-kicker { display: inline-flex; margin-bottom: 13px; padding: 6px 9px; border-radius: 99px; color: var(--teal-700); background: var(--teal-100); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.login-heading h2 { margin: 0; color: var(--navy-900); font-size: 31px; letter-spacing: -.055em; }
.login-heading p { margin: 9px 0 0; color: var(--ink-500); font-size: 12px; line-height: 1.5; }
.login-submit { width: 100%; margin-top: 20px; }
.login-error { margin-top: 14px; padding: 10px 11px; border: 1px solid #f0c2c5; border-radius: 9px; color: var(--danger); background: #fff7f7; font-size: 10px; font-weight: 750; }
.demo-divider { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; color: var(--ink-500); font-size: 10px; font-weight: 800; }
.demo-divider::before, .demo-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-accounts { display: grid; gap: 8px; }
.demo-account { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-700); background: var(--surface); text-align: left; }
.demo-account:hover { border-color: #9fd5d5; background: #f7fffd; }
.demo-account strong, .demo-account small { display: block; }
.demo-account strong { color: var(--ink-900); font-size: 11px; }
.demo-account small { margin-top: 3px; color: var(--ink-500); font-size: 10px; }
.role-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 850; }
.student-avatar { color: var(--teal-700); background: var(--teal-100); }
.warden-avatar { color: #8b5e0a; background: #fff0cf; }
.login-note { margin: 17px 0 0; color: var(--ink-500); font-size: 9px; line-height: 1.45; text-align: center; }
.sidebar {
  position: sticky; top: 0; z-index: 20; flex: 0 0 252px; width: 252px; height: 100vh; display: flex; flex-direction: column;
  padding: 24px 18px 18px; color: #d6e4ee; background: var(--navy-950); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 27px; }
.brand-mark { width: 38px; height: 38px; position: relative; display: grid; place-items: center; border-radius: 13px; color: var(--navy-950); background: var(--lime-500); box-shadow: 0 6px 16px rgba(184, 216, 91, 0.24); }
.brand-mark::before { content: ""; width: 14px; height: 16px; border: 3px solid var(--navy-950); border-radius: 7px 7px 10px 10px; }
.brand-mark::after { content: ""; position: absolute; bottom: 7px; width: 10px; height: 4px; border-radius: 99px; background: var(--navy-950); }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.brand-tagline { margin-top: 3px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #91aec0; }
.nav-label { padding: 0 12px; margin: 3px 0 9px; font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: #7493a8; }
.nav-list { display: grid; gap: 5px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 11px; color: #a8bfd0; background: transparent; text-align: left; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.nav-link:hover { transform: translateX(2px); color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(15,154,168,0.28), rgba(15,154,168,0.10)); box-shadow: inset 3px 0 0 var(--teal-600); }
.nav-icon { width: 20px; text-align: center; font-size: 16px; opacity: 0.9; }
.nav-link span:last-child { font-size: 13px; font-weight: 650; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.mode-card { padding: 14px; border: 1px solid rgba(255,255,255,0.10); border-radius: 15px; background: rgba(255,255,255,0.05); }
.mode-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mode-card-title { font-size: 11px; color: #acc4d4; }
.mode-switch { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: rgba(0,0,0,0.20); }
.mode-switch button { border: 0; border-radius: 7px; padding: 5px 8px; color: #91aec0; background: transparent; font-size: 10px; font-weight: 700; }
.mode-switch button.active { color: var(--navy-950); background: var(--lime-500); }
.mode-card p { margin: 0; font-size: 11px; line-height: 1.45; color: #86a6b8; }
.sidebar-foot { display: flex; align-items: center; gap: 9px; padding: 18px 9px 2px; color: #7694a7; font-size: 10px; line-height: 1.4; }
.sidebar-foot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 0 4px rgba(184,216,91,0.13); }

.main { flex: 1 1 auto; width: auto; min-width: 0; min-height: 100vh; margin-left: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.84); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink-900); font-size: 22px; }
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-500); }
.crumbs strong { color: var(--ink-900); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.top-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #cfe3e7; border-radius: 99px; color: var(--teal-700); background: var(--teal-100); font-size: 10px; font-weight: 800; letter-spacing: 0.02em; }
.top-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-600); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-700); background: var(--surface); }
.icon-button:hover { color: var(--teal-700); border-color: #a9d9db; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-900); background: #dbeee7; font-size: 11px; font-weight: 800; }

.content { width: min(1240px, 100%); margin: 0 auto; padding: 38px 40px 56px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 7px; color: var(--teal-700); font-size: 10px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.page-title { margin: 0; color: var(--navy-900); font-size: clamp(26px, 3vw, 37px); line-height: 1.08; letter-spacing: -0.045em; }
.page-description { max-width: 610px; margin: 10px 0 0; color: var(--ink-700); font-size: 13px; line-height: 1.55; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 800; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--navy-900); box-shadow: 0 8px 18px rgba(16,42,67,0.18); }
.button-primary:hover { background: var(--navy-800); box-shadow: 0 10px 22px rgba(16,42,67,0.24); }
.button-teal { color: #fff; background: var(--teal-700); box-shadow: 0 8px 18px rgba(8,127,140,0.20); }
.button-teal:hover { background: #076c76; }
.button-soft { border-color: var(--line); color: var(--ink-700); background: var(--surface); }
.button-soft:hover { border-color: #a9d9db; color: var(--teal-700); }
.button-small { min-height: 32px; padding: 0 10px; font-size: 11px; }
.button-link { padding: 0; min-height: unset; border: 0; color: var(--teal-700); background: transparent; font-size: 11px; font-weight: 850; }

.card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.hero-card { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 30px; min-height: 230px; padding: 31px 32px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #102a43 0%, #174b65 58%, #147f83 100%); box-shadow: 0 15px 35px rgba(16,42,67,0.16); }
.hero-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: 55px; bottom: -165px; border: 1px solid rgba(255,255,255,0.20); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,0.03), 0 0 0 60px rgba(255,255,255,0.025); }
.hero-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -28px; top: -42px; border-radius: 50%; background: rgba(184,216,91,0.16); }
.hero-copy { position: relative; z-index: 1; max-width: 550px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 15px; padding: 6px 9px; border-radius: 99px; color: #e8f7e4; background: rgba(184,216,91,0.14); font-size: 10px; font-weight: 800; }
.hero-kicker i { width: 6px; height: 6px; display: block; border-radius: 50%; background: var(--lime-500); }
.hero-title { margin: 0; max-width: 540px; font-size: clamp(28px, 4vw, 44px); line-height: 1.02; letter-spacing: -0.055em; }
.hero-title em { color: var(--lime-500); font-style: normal; }
.hero-text { max-width: 490px; margin: 14px 0 22px; color: #bdd5de; font-size: 13px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-actions .button-primary { color: var(--navy-950); background: var(--lime-500); box-shadow: none; }
.hero-actions .button-primary:hover { background: #c8e477; }
.hero-actions .button-soft { border-color: rgba(255,255,255,0.2); color: #fff; background: rgba(255,255,255,0.08); }
.hero-insight { position: relative; z-index: 1; align-self: center; width: 205px; padding: 15px; border: 1px solid rgba(255,255,255,0.16); border-radius: 15px; background: rgba(6,27,43,0.24); }
.insight-label { display: flex; justify-content: space-between; color: #b9d3dc; font-size: 10px; }
.insight-label strong { color: #fff; font-size: 11px; }
.insight-bar { height: 7px; margin: 12px 0 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,0.13); }
.insight-bar span { display: block; width: 78%; height: 100%; border-radius: inherit; background: var(--lime-500); }
.insight-foot { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,0.12); color: #cce0e4; font-size: 10px; line-height: 1.45; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0 22px; }
.stat-card { padding: 17px 17px 15px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--ink-500); font-size: 11px; font-weight: 700; }
.stat-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--teal-700); background: var(--teal-100); font-size: 13px; }
.stat-value { margin-top: 15px; color: var(--navy-900); font-size: 28px; font-weight: 850; letter-spacing: -0.05em; }
.stat-caption { margin-top: 4px; color: var(--ink-500); font-size: 10px; }
.stat-caption strong { color: var(--success); font-weight: 800; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); gap: 18px; }
.warden-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; }
.section-card { padding: 21px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-title { margin: 0; color: var(--navy-900); font-size: 15px; letter-spacing: -0.025em; }
.section-subtitle { margin: 4px 0 0; color: var(--ink-500); font-size: 11px; line-height: 1.45; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 13px 1fr auto; gap: 11px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--surface-3); }
.activity-item:last-child { padding-bottom: 0; border-bottom: 0; }
.activity-line { position: relative; width: 13px; height: 13px; margin-top: 2px; border: 3px solid #c8efeb; border-radius: 50%; background: var(--teal-600); }
.activity-line::after { content: ""; position: absolute; top: 12px; left: 3px; width: 1px; height: 37px; background: #cfe4e5; }
.activity-item:last-child .activity-line::after { display: none; }
.activity-title { color: var(--ink-900); font-size: 12px; font-weight: 750; }
.activity-meta { margin-top: 4px; color: var(--ink-500); font-size: 10px; }
.activity-time { color: var(--ink-500); font-size: 10px; white-space: nowrap; }
.project-card { padding: 21px; border-color: #c5e8e5; background: linear-gradient(150deg, #f7fffd, #ecfaf7); }
.project-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 13px; color: var(--teal-700); font-size: 10px; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.project-label span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: var(--teal-700); font-size: 10px; }
.project-title { max-width: 260px; margin: 0; color: var(--navy-900); font-size: 19px; line-height: 1.18; letter-spacing: -0.045em; }
.project-copy { margin: 10px 0 17px; color: var(--ink-700); font-size: 11px; line-height: 1.55; }
.prompt-flow { display: grid; gap: 8px; }
.prompt-step { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center; }
.prompt-step-num { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--teal-700); background: #d9f3ef; font-size: 10px; font-weight: 850; }
.prompt-step p { margin: 0; color: var(--ink-700); font-size: 10px; font-weight: 700; }

.page-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-box { position: relative; }
.search-box input { width: 235px; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-900); background: var(--surface); outline: none; font-size: 11px; }
.search-box input:focus, .form-control:focus { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(15,154,168,0.11); }
.search-box::before { content: "⌕"; position: absolute; top: 8px; left: 12px; color: var(--ink-500); font-size: 17px; }
.select-control, .form-control { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink-900); background: var(--surface); font-size: 12px; }
.select-control { min-height: 38px; width: auto; color: var(--ink-700); font-size: 11px; }
.filter-pills { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.filter-pill { border: 0; padding: 7px 9px; border-radius: 7px; color: var(--ink-500); background: transparent; font-size: 10px; font-weight: 750; }
.filter-pill.active { color: var(--navy-900); background: var(--surface-3); }
.complaint-list { display: grid; gap: 10px; }
.complaint-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, .65fr) minmax(130px, .7fr) auto; gap: 20px; align-items: center; padding: 17px 19px; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.complaint-card:hover { border-color: #b5dfe0; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.complaint-title { margin: 0; color: var(--navy-900); font-size: 13px; font-weight: 800; letter-spacing: -0.015em; }
.complaint-id { margin-top: 6px; color: var(--ink-500); font-size: 10px; font-weight: 700; }
.complaint-meta { display: flex; flex-wrap: wrap; gap: 6px 9px; margin-top: 8px; color: var(--ink-500); font-size: 10px; }
.complaint-meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #a8b7c5; }
.list-label { margin-bottom: 6px; color: var(--ink-500); font-size: 10px; }
.list-value { color: var(--ink-700); font-size: 11px; font-weight: 750; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-submitted { color: #6c6cbd; background: #eeedff; }
.status-progress { color: var(--warning); background: #fff4dc; }
.status-resolved { color: var(--success); background: #e4f8ee; }
.status-closed { color: var(--ink-500); background: #edf1f4; }
.priority-high { color: var(--danger); }
.priority-medium { color: var(--warning); }
.priority-low { color: var(--success); }
.empty-state { padding: 50px 24px; text-align: center; }
.empty-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 14px; color: var(--teal-700); background: var(--teal-100); font-size: 22px; }
.empty-state h3 { margin: 0; color: var(--navy-900); font-size: 16px; }
.empty-state p { max-width: 340px; margin: 8px auto 16px; color: var(--ink-500); font-size: 11px; line-height: 1.5; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 18px; align-items: start; }
.form-card { padding: 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { color: var(--ink-900); font-size: 11px; font-weight: 800; }
.form-hint { color: var(--ink-500); font-size: 10px; line-height: 1.35; }
textarea.form-control { min-height: 125px; padding-top: 11px; resize: vertical; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--surface-3); }
.form-required { color: var(--ink-500); font-size: 10px; }
.field-error { display: none; color: var(--danger); font-size: 10px; }
.form-field.has-error .form-control { border-color: #e6a8ae; background: #fffafa; }
.form-field.has-error .field-error { display: block; }
.guide-card { padding: 22px; }
.guide-card h3 { margin: 0; color: var(--navy-900); font-size: 16px; letter-spacing: -0.03em; }
.guide-list { display: grid; gap: 13px; margin: 20px 0 0; }
.guide-item { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: start; }
.guide-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: var(--teal-700); background: var(--teal-100); font-size: 11px; font-weight: 850; }
.guide-item strong { display: block; margin: 1px 0 4px; color: var(--ink-900); font-size: 11px; }
.guide-item p { margin: 0; color: var(--ink-500); font-size: 10px; line-height: 1.4; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; border: 0; color: var(--teal-700); background: transparent; font-size: 11px; font-weight: 800; }
.detail-title { margin: 13px 0 7px; color: var(--navy-900); font-size: clamp(24px, 3vw, 33px); letter-spacing: -0.05em; }
.detail-id { color: var(--ink-500); font-size: 11px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); gap: 18px; align-items: start; }
.detail-card { padding: 22px; }
.detail-description { margin: 0; color: var(--ink-700); font-size: 13px; line-height: 1.65; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; padding-top: 19px; border-top: 1px solid var(--surface-3); }
.info-item label { display: block; margin-bottom: 5px; color: var(--ink-500); font-size: 10px; }
.info-item strong { color: var(--ink-900); font-size: 11px; }
.timeline { display: grid; gap: 0; margin-top: 17px; }
.timeline-row { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 11px; padding-bottom: 19px; }
.timeline-row:last-child { padding-bottom: 0; }
.timeline-row::before { content: ""; position: absolute; top: 16px; bottom: 0; left: 7px; width: 1px; background: #d5e6e7; }
.timeline-row:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 1px; border: 3px solid #d1f3ed; border-radius: 50%; background: var(--teal-700); }
.timeline-status { color: var(--ink-900); font-size: 12px; font-weight: 800; }
.timeline-date { margin-top: 3px; color: var(--ink-500); font-size: 10px; }
.timeline-note { margin: 6px 0 0; color: var(--ink-700); font-size: 11px; line-height: 1.45; }
.contact-card { padding: 21px; color: #fff; background: var(--navy-900); }
.contact-card h3 { margin: 0; color: #fff; font-size: 15px; }
.contact-card p { margin: 8px 0 18px; color: #b5cdd9; font-size: 11px; line-height: 1.5; }
.contact-row { display: flex; align-items: center; gap: 9px; color: #dcecf0; font-size: 11px; }
.contact-row + .contact-row { margin-top: 11px; }
.contact-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--lime-500); background: rgba(184,216,91,0.13); }

.admin-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; margin-bottom: 18px; border: 1px solid #d8e8c1; border-radius: 13px; background: #f8fceF; }
.admin-banner-copy strong { display: block; color: var(--navy-900); font-size: 12px; }
.admin-banner-copy span { display: block; margin-top: 4px; color: var(--ink-500); font-size: 10px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 18px; }
.admin-stat { padding: 17px; }
.admin-stat-value { color: var(--navy-900); font-size: 26px; font-weight: 850; letter-spacing: -0.05em; }
.admin-stat-label { margin-top: 5px; color: var(--ink-500); font-size: 10px; }
.breakdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 18px; }
.breakdown-card { padding: 16px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); }
.breakdown-label { margin-bottom: 11px; color: var(--ink-500); font-size: 10px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.breakdown-list { display: grid; gap: 7px; }
.breakdown-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-700); font-size: 11px; }
.breakdown-item strong { min-width: 22px; padding: 3px 6px; border-radius: 6px; color: var(--teal-700); background: var(--teal-100); text-align: center; font-size: 10px; }
.admin-table { overflow: hidden; }
.admin-table-head, .admin-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) 130px 115px minmax(210px, 1fr); gap: 15px; align-items: center; padding: 13px 17px; }
.admin-table-head { color: var(--ink-500); background: var(--surface-3); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.admin-row { border-top: 1px solid var(--surface-3); }
.admin-row-title { color: var(--ink-900); font-size: 11px; font-weight: 800; }
.admin-row-id { margin-top: 4px; color: var(--ink-500); font-size: 9px; }
.admin-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-controls select { height: 32px; min-width: 116px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-700); background: var(--surface); font-size: 10px; }
.admin-controls input { flex: 1; min-width: 90px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; outline: none; font-size: 10px; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); gap: 18px; align-items: start; }
.profile-card { padding: 24px; }
.profile-hero { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--surface-3); }
.profile-avatar { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 17px; color: var(--navy-900); background: #dbeee7; font-size: 17px; font-weight: 850; }
.profile-name { margin: 0; color: var(--navy-900); font-size: 18px; letter-spacing: -0.04em; }
.profile-role { margin-top: 5px; color: var(--ink-500); font-size: 11px; }
.profile-fields { display: grid; grid-template-columns: repeat(2,1fr); gap: 19px; margin-top: 22px; }
.profile-field label { display: block; margin-bottom: 5px; color: var(--ink-500); font-size: 10px; }
.profile-field strong { color: var(--ink-900); font-size: 12px; }
.mini-list { display: grid; gap: 12px; margin-top: 18px; }
.mini-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.mini-list-item span { color: var(--ink-500); }
.mini-list-item strong { color: var(--ink-900); }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.help-item { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.help-item h4 { margin: 0; color: var(--navy-900); font-size: 12px; }
.help-item p { margin: 7px 0 0; color: var(--ink-500); font-size: 10px; line-height: 1.5; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; align-items: flex-start; gap: 10px; width: min(350px, calc(100vw - 44px)); padding: 13px 14px; border: 1px solid #b7e5d1; border-radius: 13px; color: var(--ink-900); background: #f7fffb; box-shadow: var(--shadow-soft); animation: toast-in 220ms ease-out both; }
.toast-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--success); font-size: 11px; }
.toast strong { display: block; font-size: 11px; }
.toast span { display: block; margin-top: 3px; color: var(--ink-500); font-size: 10px; line-height: 1.35; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.skeleton { background: linear-gradient(90deg, #e8f0f3 25%, #f7fafb 37%, #e8f0f3 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
.loading-shell { display: grid; gap: 18px; }
.loading-block { height: 220px; }
.loading-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.loading-row .skeleton { height: 115px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 1120px) {
  .content { padding-left: 27px; padding-right: 27px; }
  .topbar { padding: 0 27px; }
  .hero-card { padding: 28px; }
  .complaint-card { grid-template-columns: minmax(0, 1.4fr) minmax(130px, .7fr) auto; }
  .complaint-card > :nth-child(3) { display: none; }
}
@media (max-width: 850px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 360px; padding: 30px 8vw; }
  .auth-visual-copy { margin: 54px 0 0; }
  .auth-visual-copy h1 { max-width: 600px; font-size: 46px; }
  .auth-visual-foot { display: none; }
  .auth-panel { padding: 32px 8vw 45px; }
  .sidebar { flex-basis: 220px; width: 220px; }
  .main { width: auto; margin-left: 0; }
  .two-column, .warden-grid, .form-layout, .detail-layout, .profile-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-insight { display: none; }
  .admin-table-head { display: none; }
  .admin-row { grid-template-columns: 1fr; gap: 9px; padding: 16px; }
}
@media (max-width: 660px) {
  .auth-visual { min-height: 300px; padding: 24px 22px; }
  .auth-brand .brand-name { font-size: 14px; }
  .auth-visual-copy { margin: 38px 0 0; }
  .auth-visual-copy h1 { font-size: 38px; }
  .auth-visual-copy > p:not(.eyebrow), .auth-visual-points { font-size: 11px; }
  .auth-visual-points { gap: 7px; }
  .auth-panel { padding: 24px 17px 38px; }
  .login-card { padding: 24px 19px; border-radius: 18px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; flex: none; width: 252px; transform: translateX(-100%); transition: transform 180ms ease; box-shadow: 10px 0 30px rgba(0,0,0,0.13); }
  .sidebar.open { transform: translateX(0); }
  .main { width: 100%; margin-left: 0; }
  .topbar { height: 65px; padding: 0 17px; }
  .mobile-menu { display: block; }
  .crumbs { gap: 5px; }
  .top-pill { display: none; }
  .content { padding: 26px 17px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 21px; }
  .page-title { font-size: 29px; }
  .hero-card { min-height: unset; padding: 25px 21px; }
  .hero-title { font-size: 31px; }
  .hero-text { font-size: 12px; }
  .stats-grid, .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .breakdown-grid { grid-template-columns: 1fr; gap: 9px; }
  .stat-card, .admin-stat { padding: 14px; }
  .stat-value { font-size: 24px; }
  .two-column { gap: 13px; }
  .section-card, .form-card, .detail-card, .guide-card, .profile-card { padding: 18px; }
  .search-box input { width: 100%; }
  .page-toolbar { align-items: stretch; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-right > * { flex: 1; }
  .filter-pills { overflow-x: auto; width: 100%; }
  .filter-pill { white-space: nowrap; }
  .complaint-card { grid-template-columns: 1fr auto; gap: 11px; padding: 15px; }
  .complaint-card > :nth-child(2) { display: none; }
  .complaint-card > :last-child { grid-column: 2; grid-row: 1; }
  .form-grid, .info-grid, .profile-fields, .help-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .detail-head { flex-direction: column; }
  .detail-head .status-pill { align-self: flex-start; }
  .admin-controls { align-items: stretch; flex-direction: column; }
  .admin-controls select, .admin-controls input, .admin-controls .button { width: 100%; }
  .admin-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .auth-visual { min-height: 270px; padding: 20px 17px; }
  .auth-visual-copy { margin-top: 28px; }
  .auth-visual-copy h1 { font-size: 32px; }
  .auth-panel { padding: 18px 12px 30px; }
  .login-card { padding: 20px 15px; }
  .content { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 12px; padding-right: 12px; }
  .crumbs span:nth-child(2), .crumbs span:first-child { display: none; }
  .stats-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .complaint-card { grid-template-columns: minmax(0, 1fr); }
  .complaint-card > :last-child { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .section-head, .page-heading { gap: 11px; }
  .button, .filter-pill, .icon-button { min-height: 40px; }
}

/* Long user-entered values should never widen the page or break cards. */
.complaint-title, .detail-title, .admin-row-title, .activity-title, .page-description,
.timeline-note, .profile-name, .help-item p { overflow-wrap: anywhere; }
