
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0b1020;
  color: #eef2ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #172554, #0b1020 45%); }
main { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }
header { margin-bottom: 28px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em; }
.muted { color: #a5b4fc; }
.control-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #334155; background: rgba(11, 16, 32, .96); backdrop-filter: blur(14px); }
.nav-inner { width: min(1280px, calc(100% - 32px)); margin: 0 auto; min-height: 68px; display: flex; align-items: center; gap: 22px; }
.brand { flex: none; color: #eef2ff; font-size: 1.05rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.nav-links { display: flex; flex: 1; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding: 9px 0; }
.nav-link { flex: none; border-radius: 10px; padding: 9px 11px; color: #cbd5e1; font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-link:hover { background: #1e293b; color: #fff; }
.nav-link.active { background: #3730a3; color: #fff; }
.nav-logout { flex: none; }
.nav-logout .button { padding: 9px 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { border: 1px solid #334155; border-radius: 18px; padding: 20px; background: rgba(15, 23, 42, 0.88); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.card h2 { font-size: 1.05rem; margin-bottom: 16px; }
dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; margin: 0; }
dt { color: #cbd5e1; }
dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.button { display: inline-block; border: 0; border-radius: 999px; padding: 11px 18px; background: #4f46e5; color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.secondary { background: #1e293b; border: 1px solid #475569; }
.button.danger { background: #7f1d1d; border: 1px solid #b91c1c; }
.button:disabled { opacity: .58; cursor: not-allowed; filter: saturate(.65); }
.detail-link { display: inline-block; margin-top: 18px; color: #c7d2fe; font-weight: 700; }
.back-link { color: #c7d2fe; font-weight: 700; }
.summary { margin-bottom: 16px; }
.section-gap { margin-top: 16px; }
.record-list { display: grid; gap: 14px; }
.record { border: 1px solid #334155; border-radius: 14px; background: rgba(11, 16, 32, .5); overflow: hidden; }
.record-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #334155; }
.record-head h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.record-head p { margin: 4px 0 0; color: #94a3b8; overflow-wrap: anywhere; }
.record-kicker { display: block; margin-bottom: 5px; color: #a5b4fc; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; }
.record-field { min-width: 0; padding: 15px 18px; border-right: 1px solid #263449; border-bottom: 1px solid #263449; }
.record-field.wide { grid-column: span 2; }
.record-field.description { grid-column: 1 / -1; }
.record-field.description .record-value { white-space: pre-wrap; }
.record-label { display: block; margin-bottom: 6px; color: #a5b4fc; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.record-value { color: #eef2ff; line-height: 1.5; overflow-wrap: anywhere; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; background: rgba(30, 41, 59, .42); }
.record-actions .admin-action { margin-top: 0; }
.badge { display: inline-flex; align-items: center; border: 1px solid #475569; border-radius: 999px; padding: 5px 9px; color: #cbd5e1; background: #1e293b; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.badge.on, .badge.ok { border-color: #047857; background: rgba(4, 120, 87, .24); color: #a7f3d0; }
.badge.off { color: #cbd5e1; }
.badge.pending { border-color: #b45309; background: rgba(180, 83, 9, .22); color: #fde68a; }
.badge.error { border-color: #b91c1c; background: rgba(185, 28, 28, .22); color: #fecaca; }
.empty { padding: 28px; text-align: center; color: #cbd5e1; }
.notice { border: 1px solid #4f46e5; border-radius: 12px; padding: 12px 16px; background: rgba(79, 70, 229, .18); }
.notice.warning { border-color: #d97706; background: rgba(217, 119, 6, .16); }
.admin-action { margin-top: 18px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.filters label { display: grid; gap: 6px; color: #cbd5e1; font-size: .875rem; }
.filters select, .filters input { min-width: 170px; border: 1px solid #475569; border-radius: 10px; padding: 10px 12px; background: #0f172a; color: #eef2ff; font: inherit; }
.settings-form { display: flex; flex: 1 1 520px; flex-wrap: wrap; align-items: end; gap: 10px; }
.settings-form label { display: grid; flex: 1 1 210px; gap: 6px; color: #cbd5e1; font-size: .82rem; }
.settings-form select, .settings-form input, .settings-form textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #475569; border-radius: 10px; padding: 10px 12px; background: #0f172a; color: #eef2ff; font: inherit; }
.settings-form textarea { min-height: 110px; resize: vertical; }
.event-form { align-items: stretch; }
.event-form label.compact { flex: 1 1 135px; }
.event-form label.medium { flex: 1.35 1 180px; }
.event-form .full { flex-basis: 100%; }
.event-form .form-actions { display: flex; align-items: end; gap: 10px; }
.record details { border-top: 1px solid #334155; padding: 12px 18px 16px; }
.record summary { color: #c7d2fe; font-weight: 700; cursor: pointer; }
.settings-form fieldset { display: grid; flex: 1 1 320px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; min-width: 0; margin: 0; border: 1px solid #334155; border-radius: 12px; padding: 10px; }
.settings-form legend { padding: 0 6px; color: #a5b4fc; font-size: .78rem; font-weight: 800; }
.recruitment-message-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.recruitment-message-card { display: flex; min-width: 0; flex-direction: column; }
.recruitment-message-form { display: flex; min-width: 0; flex: 1; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.recruitment-message-form .message-field { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.recruitment-message-form .message-editor { min-height: 420px; flex: 1; line-height: 1.5; }
.recruitment-message-form .message-hint { margin: -2px 0 0; font-size: .78rem; }
.recruitment-message-form .message-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; }
.recruitment-message-form .message-actions label { min-width: min(100%, 260px); }
.pagination { margin: 20px 0 0; }
form { margin: 0; }
.identity { margin-top: 28px; font-size: .875rem; color: #94a3b8; overflow-wrap: anywhere; }
.panel-time-zone { width: min(1280px, calc(100% - 32px)); margin: -36px auto 28px; color: #94a3b8; font-size: .8rem; text-align: right; }
.landing { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.landing .card { max-width: 560px; padding: 36px; }
.landing-avatar { display: block; width: clamp(132px, 24vw, 176px); height: auto; margin: 8px auto 24px; border: 2px solid #475569; border-radius: 50%; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); }
@media (max-width: 760px) {
  main { padding-top: 28px; }
  .nav-inner { align-items: stretch; min-height: auto; flex-wrap: wrap; gap: 0 14px; padding: 10px 0; }
  .brand { display: flex; align-items: center; min-height: 38px; }
  .nav-logout { margin-left: auto; }
  .nav-links { flex-basis: 100%; order: 3; }
  .record-head { flex-direction: column; }
  .record-field.wide { grid-column: span 1; }
  .recruitment-message-grid { grid-template-columns: 1fr; }
  .recruitment-message-form .message-editor { min-height: 320px; }
}
