:root {
  --brand: #233163;
  --brand-dark: #203067;
  --brand-mid: #384FA2;
  --brand-soft: #E9EBF1;
  --brand-line: #D1D6E0;
  --accent: #F05A41;
  --accent-hover: #d94d38;
  --ink: #203067;
  --muted: #5F70AB;
  --line: #DBDEE7;
  --paper: #ffffff;
  --wash: #F9F9FB;
  --danger: #b3261e;
  --shadow: 0 18px 48px rgba(32, 48, 103, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--wash);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(233, 235, 241, 0.88) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, rgba(56, 79, 162, 0.08) 0, transparent 340px),
    var(--wash);
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.boot {
  display: grid;
  min-height: 100vh;
  place-items: center;
  gap: 16px;
}

.login-layout {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.login-card .brand-mark {
  margin-bottom: 24px;
}

.login-card .brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(32, 48, 103, 0.16);
}

.login-card .brand-logo img {
  width: 172px;
}

.login-card h1 {
  margin: 8px 0 12px;
  color: var(--brand-dark);
  font-size: 34px;
  line-height: 1.08;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark::before {
  width: 12px;
  height: 12px;
  margin-right: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.brand-logo {
  min-height: 42px;
  padding: 0;
  background: transparent;
}

.brand-logo::before {
  content: none;
}

.brand-logo img {
  display: block;
  width: 160px;
  height: auto;
}

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #233163;
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .brand-mark {
  color: #fff;
}

.topbar .brand-logo {
  box-shadow: none;
}

.topbar .pill {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.topbar .pill.good {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar .btn.secondary {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.good {
  border-color: rgba(240, 90, 65, 0.24);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.pill.warn {
  border-color: rgba(167, 112, 0, 0.24);
  background: #fff6db;
  color: #765200;
}

.pill.bad {
  border-color: rgba(179, 38, 30, 0.22);
  background: #fff1ef;
  color: var(--danger);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(32, 48, 103, 0.18);
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--brand-dark);
}

.btn.secondary:hover {
  background: var(--brand-soft);
  box-shadow: none;
}

.btn.accent {
  background: var(--accent);
  color: #fff;
}

.btn.accent:hover {
  background: var(--accent-hover);
}

.btn.sms-code-btn {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(32, 48, 103, 0.16);
}

.btn.sms-code-btn:hover {
  background: var(--brand);
}

.btn.danger {
  border-color: rgba(179, 38, 30, 0.2);
  background: #fff1ef;
  color: var(--danger);
}

.btn.danger:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 24px rgba(179, 38, 30, 0.14);
}

.candidate-layout {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.context-panel,
.calendar-panel,
.admin-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.context-panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.context-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 14px 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.metric {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.22;
  overflow-wrap: break-word;
}

.context-panel .metric strong {
  display: flex;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
}

.context-panel .metric-title-only {
  align-self: center;
  min-height: 54px;
  margin-top: 0;
}

.context-panel .metric-title-only,
.context-panel .metric strong {
  display: flex;
  align-items: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.candidate-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.calendar-panel {
  min-width: 0;
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
}

.calendar-panel .section-head h2 {
  font-size: 24px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.date-option {
  min-width: 72px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.date-option span {
  display: block;
}

.date-option .dow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.date-option .day {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 900;
}

.date-option .month {
  color: var(--muted);
  font-size: 12px;
}

.date-option.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.date-option.active .dow,
.date-option.active .month {
  color: rgba(255, 255, 255, 0.82);
}

.date-option.weekend {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.date-option.weekend .dow {
  text-decoration: line-through;
}

.slot-area {
  display: grid;
  gap: 14px;
}

.slots-section,
.booking-form {
  scroll-margin-top: 92px;
}

.slot-group h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.slot-btn {
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.slot-btn small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.slot-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.slot-btn.active small {
  color: rgba(255, 255, 255, 0.82);
}

.booking-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.booking-form .field input,
.booking-form .field select {
  min-height: 40px;
  padding: 8px 10px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sms-verification {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.sms-verification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sms-verification-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.recruiter-choice {
  max-width: 420px;
}

.notice.recruiter-choice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.captcha-row {
  min-height: 65px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.required-mark {
  color: var(--danger);
  font-weight: 900;
}

.compact-notice {
  padding: 12px 14px;
  font-size: 13px;
}

.inline-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.mini-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--brand);
}

.confirm-check {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.field .mini-check input {
  width: 14px;
  min-height: 14px;
  height: 14px;
  padding: 0;
  margin-top: 1px;
  border-radius: 50%;
}

.label-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
}

.info-hint {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid rgba(56, 79, 162, 0.28);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  outline: none;
}

.info-hint:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 90, 65, 0.18);
}

.info-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(32, 48, 103, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.info-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(32, 48, 103, 0.14);
  border-bottom: 1px solid rgba(32, 48, 103, 0.14);
  background: #fff;
  content: "";
  transform: translate(-50%, -5px) rotate(45deg);
}

.info-hint:hover .info-tooltip,
.info-hint:focus .info-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.field input,
.field select,
.field textarea,
.department-day input[type="time"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.field textarea {
  resize: vertical;
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.department-day input[type="time"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(56, 79, 162, 0.14);
}

.field input:disabled {
  cursor: not-allowed;
  background: #eef0f5;
  color: var(--muted);
}

.notice {
  padding: 14px;
  border: 1px solid rgba(56, 79, 162, 0.22);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.notice.error {
  border-color: rgba(179, 38, 30, 0.22);
  background: #fff1ef;
  color: var(--danger);
}

.public-error-toast {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: min(480px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(179, 38, 30, 0.24);
  border-left: 5px solid var(--danger);
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  box-shadow: 0 18px 48px rgba(32, 48, 103, 0.18);
}

.public-error-toast strong {
  display: block;
  color: var(--danger);
  font-size: 14px;
}

.public-error-toast p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.public-error-toast .btn {
  flex: 0 0 auto;
}

.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(720px, calc(100% - 36px));
  padding: 16px 18px;
  border: 1px solid rgba(35, 49, 99, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(32, 48, 103, 0.2);
}

.cookie-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-size: 15px;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.cookie-notice .btn {
  flex: 0 0 auto;
}

.success-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.success-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.admin-layout {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.stat strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1;
}

.admin-main {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-footer a {
  color: var(--brand-dark);
  text-decoration: none;
}

.admin-footer a:hover {
  color: var(--accent);
}

.admin-footer span + span::before,
.admin-footer a::before {
  margin-right: 12px;
  color: var(--accent);
  content: "|";
}

.form-panel,
.admin-panel {
  padding: 20px;
}

.form-panel h2,
.admin-panel h2 {
  margin: 0 0 16px;
  font-size: 21px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.form-panel .admin-form + .admin-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.segmented button.active {
  background: var(--paper);
  color: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(31, 42, 36, 0.08);
}

.generated-link {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(56, 79, 162, 0.22);
  border-radius: 8px;
  background: var(--brand-soft);
  word-break: break-word;
}

.admin-stack {
  display: grid;
  gap: 20px;
}

.item-list {
  display: grid;
  gap: 10px;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

.small-segmented {
  width: min(100%, 360px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-right: auto;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.muted-item {
  opacity: 0.78;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.list-item h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 16px;
}

.list-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.list-item .error-text {
  color: var(--danger);
  font-weight: 700;
}

.copy-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.copy-line code {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
  font-size: 12px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.check-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.check-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sms-template-grid {
  display: grid;
  gap: 10px;
}

.sms-template-field {
  display: grid;
  gap: 6px;
}

.sms-template-field label,
.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recruiter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.recruiter-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.recruiter-card h3 {
  margin: 0;
  font-size: 16px;
}

.load-bar {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.load-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 850;
}

.admin-tabs button.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.blockouts-layout {
  display: grid;
  gap: 20px;
}

.department-hours-grid {
  display: grid;
  gap: 10px;
}

.department-day {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) 132px 132px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

.time-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.time-inline input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.blockout-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.blockout-type-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.blockout-type-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.blockout-type-card strong,
.blockout-type-card small {
  display: block;
}

.blockout-type-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.holiday-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.holiday-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.holiday-row:hover {
  background: var(--wash);
}

.holiday-date {
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.holiday-name {
  color: var(--ink);
}

.holiday-del {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
}

.holiday-del:hover {
  border-color: var(--danger);
  color: var(--danger);
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .candidate-grid,
  .admin-main {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-strip {
    grid-template-columns: repeat(7, minmax(78px, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    background: var(--wash);
  }

  .topbar-inner,
  .candidate-layout,
  .admin-layout {
    width: min(100% - 20px, 1220px);
  }

  .topbar-inner {
    min-height: 64px;
  }

  .topbar-actions {
    display: none;
  }

  .brand-mark {
    font-size: 23px;
  }

  .brand-logo img {
    width: 134px;
  }

  .candidate-layout,
  .admin-layout {
    padding-top: 16px;
  }

  .calendar-panel,
  .context-body,
  .form-panel,
  .admin-panel {
    padding: 16px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .sms-verification-head {
    display: grid;
    align-items: start;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .form-grid,
  .metric-row,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .department-day,
  .blockout-type-grid {
    grid-template-columns: 1fr;
  }

  .admin-footer {
    flex-wrap: wrap;
    text-align: center;
  }

  .cookie-notice {
    right: 10px;
    bottom: 10px;
    display: grid;
    gap: 12px;
    width: calc(100% - 20px);
    padding: 14px;
  }

  .public-error-toast {
    top: 74px;
    right: 10px;
    display: grid;
    gap: 12px;
    width: calc(100% - 20px);
    padding: 14px;
  }

  .public-error-toast .btn {
    width: 100%;
  }

  .cookie-notice .btn {
    width: 100%;
  }
}
