:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --panel-soft: #f8faf7;
  --ink: #172026;
  --muted: #66727a;
  --line: #dce3e6;
  --brand: #0e6f65;
  --brand-dark: #084b45;
  --brand-soft: #dff2ee;
  --accent: #b64e28;
  --accent-soft: #f7e5dc;
  --blue: #235f9c;
  --blue-soft: #e3edf7;
  --ok: #24754d;
  --warn: #9a6812;
  --danger: #a73737;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(29, 43, 48, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(14, 111, 101, 0.08), transparent 280px),
    var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(380px, 1fr);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 75, 69, 0.92), rgba(23, 32, 38, 0.76)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 1200'%3E%3Crect width='900' height='1200' fill='%230e6f65'/%3E%3Cg opacity='.23'%3E%3Cpath fill='%23f8faf7' d='M-80 310c173-98 327-111 462-40s283 76 445 15v233c-144 77-289 79-436 7S87 451-80 552z'/%3E%3Cpath fill='%23b64e28' d='M104 797c158-64 300-54 426 31 126 84 251 103 376 56v190c-123 59-250 45-381-44-131-88-271-96-421-23z'/%3E%3Ccircle cx='650' cy='244' r='126' fill='%23f7e5dc'/%3E%3Ccircle cx='220' cy='1005' r='90' fill='%23e3edf7'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff' stroke-width='14' opacity='.42'%3E%3Cpath d='M141 176h262v164H141z'/%3E%3Cpath d='M181 234h182M181 282h124M530 646h230v230H530zM575 707h138M575 763h92'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}


.brand-logo {
  width: 172px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.auth-visual .brand-logo {
  width: 210px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.sidebar .brand-logo {
  width: 150px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #c9e7df;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.auth-copy h1 {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
  line-height: 1.65;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 34px;
}

.login-card {
  width: min(480px, 100%);
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.login-card .muted {
  margin-bottom: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label,
.label {
  color: #334047;
  font-size: 0.88rem;
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 111, 101, 0.13);
}

.textarea {
  min-height: 86px;
  resize: vertical;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.primary-btn {
  background: var(--brand);
  color: #fff;
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-btn {
  background: transparent;
  color: var(--brand-dark);
}

.danger-btn {
  background: #fff1f1;
  color: var(--danger);
  border: 1px solid #efcaca;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.84rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: #e3f4ee;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar .brand-mark {
  width: 40px;
  height: 40px;
  color: #102126;
}

.sidebar-nav {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: #d7eee6;
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #9acfc0;
  border-radius: 999px;
}

.nav-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #34524e;
  text-align: left;
  text-decoration: none;
  font-weight: 800;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.nav-button:visited {
  color: #34524e;
}

.nav-button:hover,
.nav-button.active,
.nav-button:focus-visible {
  background: #ffffff;
  border-color: #c9e7df;
  color: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(14, 111, 101, 0.08);
  outline: none;
  text-decoration: none;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #c9e7df;
  font-size: 0.74rem;
  font-weight: 900;
}

.user-strip {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid #c9e7df;
  display: grid;
  gap: 11px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 248, 0.9);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.annual-cycle-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 12px;
  border: 1px solid #b9ded5;
  border-radius: 8px;
  background: #eef8f4;
  color: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(14, 111, 101, 0.08);
}

.annual-cycle-form label {
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.annual-cycle-form select {
  min-width: 86px;
  border: 1px solid #9dccbf;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 6px 28px 6px 9px;
  font-weight: 800;
}

.audit-cycle-callout {
  margin-bottom: 18px;
}

.content {
  padding: 26px 28px 42px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(25, 38, 43, 0.05);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  font-size: 1.05rem;
}

.panel-body {
  padding: 20px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecee;
}

.progress > span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--brand), var(--blue));
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.ok {
  color: var(--ok);
  background: #e2f2e9;
}

.badge.warn {
  color: var(--warn);
  background: #fff0d6;
}

.badge.info {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge.danger {
  color: var(--danger);
  background: #ffe0e0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 2px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.doc-list,
.task-list,
.policy-list {
  display: grid;
  gap: 12px;
}

.doc-row,
.task-row,
.policy-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 0.9fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #c9e7df;
  border-radius: var(--radius);
  background: #e3f4ee;
}

.policy-row {
  grid-template-columns: minmax(200px, 1fr) auto auto;
}

.task-row {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, auto) auto;
}

.file-input {
  max-width: 100%;
  min-width: 0;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
}

.checkline input {
  margin-top: 4px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #334047;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.callout {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid #c9e7df;
  background: var(--brand-soft);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: 360px;
  padding: 13px 15px;
  border-radius: 7px;
  background: #172026;
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu {
  display: none;
}


.arn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: start;
}


.arn-template-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #c9e7df;
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.arn-template-panel p {
  margin: 0;
  line-height: 1.55;
}

.arn-document {
  min-height: 430px;
  max-height: 58vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  line-height: 1.68;
  color: #243139;
}

.arn-section-heading {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.arn-salutation {
  margin-bottom: 18px;
  text-align: center;
  font-weight: 800;
}

.arn-status-panel {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.arn-status-panel strong {
  font-size: 0.95rem;
}


.auth-simple-shell {
  width: min(560px, calc(100vw - 32px));
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 32px 0;
}

.auth-simple-shell-wide {
  width: min(760px, calc(100vw - 32px));
}

.auth-simple-panel {
  width: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.10);
}

.auth-brand-simple,
.page-brand-simple {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-brand-simple {
  justify-items: center;
  text-align: center;
}

.page-brand-simple {
  justify-items: start;
}

.auth-brand-simple h1,
.page-brand-simple h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.12;
}

.auth-brand-simple p,
.page-brand-simple p,
.auth-status {
  margin: 0;
  color: var(--muted);
}

.auth-logo-large {
  width: min(260px, 80vw);
  height: auto;
}

.auth-logo-small {
  width: 168px;
  max-width: 42vw;
  height: auto;
}

.auth-stack {
  display: grid;
  gap: 16px;
}

.signup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-grid .full,
.signup-grid .password-field {
  grid-column: 1 / -1;
}

.auth-status {
  margin-top: 18px;
  text-align: center;
}

.auth-simple-panel input,
.auth-simple-panel select,
.auth-simple-panel textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.auth-simple-panel input:focus,
.auth-simple-panel select:focus,
.auth-simple-panel textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 111, 101, 0.13);
  outline: none;
}


.policy-tabs .tab {
  text-decoration: none;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
}

.policy-viewer-panel {
  min-width: 0;
}

.policy-page-stack {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  background: #edf3f1;
}

.policy-page-frame {
  margin: 0 auto;
  width: min(100%, 860px);
  display: grid;
  gap: 8px;
}

.policy-page-frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  user-select: none;
}

.policy-page-frame figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.policy-quiz-panel {
  position: sticky;
  top: 96px;
}

.policy-question label {
  line-height: 1.4;
}

@media (max-width: 980px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 360px;
    padding: 34px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 30;
    width: min(310px, 86vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-flex;
  }

  .grid.two,
  .grid.three,
  .split,
  .form-grid,
  .signup-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-quiz-panel {
    position: static;
  }

  .policy-page-stack {
    max-height: none;
  }

  .doc-row,
  .policy-row,
  .task-row,
  .arn-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .arn-document {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .auth-panel,
  .content {
    padding: 18px;
  }

  .auth-visual {
    padding: 26px;
  }

  .auth-copy h1 {
    font-size: 2.2rem;
  }

  .topbar {
    padding: 14px 16px;
    align-items: flex-start;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
.policy-action-table th:nth-child(2),
.policy-action-table th:nth-child(3),
.policy-action-table th:nth-child(4),
.policy-action-table td:nth-child(2),
.policy-action-table td:nth-child(3),
.policy-action-table td:nth-child(4) {
  width: 132px;
  text-align: center;
  vertical-align: middle;
}

.policy-action-table tr.selected td {
  background: #f4fbf8;
}

.table-btn {
  width: 104px;
  min-height: 36px;
  padding: 8px 10px;
  text-decoration: none;
}

.table-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.eye-icon {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.eye-icon span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.policy-detail-panel {
  margin-top: 18px;
}

.policy-detail-panel.policy-quiz-panel {
  position: static;
}

.policy-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-form-actions a {
  text-decoration: none;
}

.policy-form-actions form {
  margin: 0;
}

.policy-form-actions button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 620px) {
  .policy-action-table {
    min-width: 620px;
  }

  .table-btn {
    width: 92px;
  }
}
.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="password"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 111, 101, 0.13);
}

.checkbox-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--ink);
}

.checkbox-grid input {
  width: auto;
  min-height: 0;
}

.strong-version {
  color: var(--brand-dark);
  font-weight: 800;
}

.fit {
  width: fit-content;
}

.onboarding-hero {
  overflow: hidden;
}

.onboarding-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: var(--panel-soft);
}

.onboarding-summary-grid > div {
  display: grid;
  gap: 7px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.onboarding-summary-grid strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.onboarding-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.onboarding-checklist-section {
  display: grid;
  gap: 10px;
}

.onboarding-checklist-section h3,
.onboarding-checklist-readonly h3 {
  margin: 10px 0 0;
  font-size: 0.98rem;
}

.compact-table table {
  min-width: 680px;
}

.compact-select {
  min-width: 110px;
}

@media (max-width: 980px) {
  .onboarding-summary-grid,
  .onboarding-step-grid {
    grid-template-columns: 1fr;
  }
}
.holiday-panel {
  max-width: 1120px;
}

.holiday-table {
  min-width: 720px;
}

.holiday-table th:first-child,
.holiday-table td:first-child {
  width: 86px;
  text-align: center;
}

.holiday-table th:nth-child(2),
.holiday-table td:nth-child(2),
.holiday-table th:nth-child(3),
.holiday-table td:nth-child(3) {
  width: 150px;
}

.holiday-table tbody tr:nth-child(even) td {
  background: var(--panel-soft);
}
.holiday-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #c9e7df;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: #24433f;
  line-height: 1.55;
}
.handbook-panel {
  max-width: 1120px;
}

.handbook-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.handbook-index a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.handbook-index a:hover,
.handbook-index a:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}

.handbook-sections {
  display: grid;
  gap: 24px;
  margin-top: 18px;
  max-width: 1120px;
}

.handbook-section {
  scroll-margin-top: 92px;
  overflow: hidden;
  border-color: #b8e3d1;
  border-left: 7px solid var(--brand);
}

.handbook-section .panel-header {
  position: relative;
  align-items: center;
  background: linear-gradient(90deg, #dff5eb 0%, #f7fbf8 100%);
  border-bottom-color: #b8e3d1;
}

.handbook-section:nth-child(even) {
  border-color: #d5dce2;
  border-left-color: #64748b;
}

.handbook-section:nth-child(even) .panel-header {
  background: linear-gradient(90deg, #eef2f5 0%, #fbfcfd 100%);
  border-bottom-color: #d5dce2;
}

.handbook-section .panel-title {
  font-size: 1.16rem;
  color: #153f31;
}

.handbook-section:nth-child(even) .panel-title {
  color: #334155;
}

.handbook-section .panel-header > div:first-child::before {
  content: "Policy";
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 81, 50, 0.12);
  color: #0f5132;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.handbook-section:nth-child(even) .panel-header > div:first-child::before {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.handbook-section .panel-body p {
  max-width: 900px;
  margin: 0;
  color: #334047;
  line-height: 1.65;
}
.security-review-panel {
  max-width: 1200px;
}

.security-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.security-review-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #c9e7df;
  border-radius: var(--radius);
  background: #e3f4ee;
}

.security-review-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.security-review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.security-register-list {
  display: grid;
  gap: 8px;
}

.security-register-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.security-register-link small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.security-table-wrap {
  max-height: calc(100vh - 230px);
}

.security-review-table {
  min-width: 1900px;
}

.security-review-table th,
.security-review-table td {
  vertical-align: top;
}

.security-review-table tfoot td {
  background: #eef8ee;
  border-top: 2px solid #b9d9bd;
  color: var(--ink);
}

.compact-input {
  min-width: 150px;
}

.compact-textarea {
  min-width: 260px;
  min-height: 92px;
}

.danger-mini-btn {
  border: 1px solid #e2b8b8;
  border-radius: 6px;
  background: #fff5f5;
  color: #9f1d1d;
  cursor: pointer;
  font-weight: 700;
  padding: 8px 10px;
}

.danger-mini-btn:hover {
  background: #ffe9e9;
  border-color: #d59595;
}

@media (max-width: 980px) {
  .security-card-grid {
    grid-template-columns: 1fr;
  }
}


.security-section-row td {
  background: #eef8f0;
  font-weight: 700;
}

.dr-checklist-table td:nth-child(2) {
  min-width: 220px;
}


.dr-checklist-section {
  margin: 0 0 22px;
}

.dr-checklist-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #cfe5dc;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #eef8f0;
}

.dr-checklist-section-header h3 {
  margin: 0;
  font-size: 1rem;
}

.section-title-input {
  max-width: 520px;
  min-height: 36px;
  font-weight: 800;
  background: #fff;
}

.dr-checklist-section .table-wrap {
  border-radius: 0 0 7px 7px;
}

.dr-checklist-section .security-review-table th:first-child,
.dr-checklist-section .security-review-table td:first-child {
  min-width: 260px;
}

.dr-checklist-total {
  margin-top: 8px;
}


.incident-register-table td:nth-child(4),
.incident-register-table td:nth-child(6),
.incident-register-table td:nth-child(7),
.incident-register-table td:nth-child(9) {
  min-width: 260px;
}

.compact-textarea.tall {
  min-height: 118px;
}


.filter-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.compact-filter {
  min-width: 220px;
  margin-bottom: 0;
}

.year-input {
  min-width: 92px;
  max-width: 110px;
}

.policy-reader-body {
  min-height: 100vh;
  background: #eef3f1;
}

.policy-reader-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.policy-reader-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.policy-reader-logo {
  width: 124px;
  height: auto;
  object-fit: contain;
}

.policy-reader-header h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.policy-reader-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 22px;
  display: grid;
  gap: 22px;
}

.policy-reader-page {
  margin: 0;
  display: grid;
  gap: 8px;
}

.policy-reader-page img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  user-select: none;
  box-shadow: 0 12px 30px rgba(25, 38, 43, 0.08);
}

.policy-reader-page figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 620px) {
  .policy-reader-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .policy-reader-logo {
    width: 108px;
  }

  .policy-reader-main {
    padding: 14px;
  }
}

.mcq-management-table {
  min-width: 1120px;
}

.mcq-management-table th:nth-child(1),
.mcq-management-table td:nth-child(1) {
  width: 72px;
}

.mcq-management-table th:nth-child(7),
.mcq-management-table td:nth-child(7),
.mcq-management-table th:nth-child(8),
.mcq-management-table td:nth-child(8) {
  width: 110px;
}

.checkbox-inline-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-inline-field input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

.mode-choice-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid #b9ded5;
  border-radius: 8px;
  background: #eef8f4;
}

.mode-choice-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.mode-choice-card p {
  margin: 0;
  color: var(--muted);
}


.table-link {
  color: #176b42;
  text-decoration: none;
}

.table-link:hover {
  color: #0f5132;
  text-decoration: underline;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #334155;
  font-size: 0.92rem;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
}


.compact-select-control,
.field select.compact-select-control {
  min-height: 42px;
  height: 42px;
  line-height: 1.2;
  appearance: auto;
}

.helpdesk-assignee-field > div,
.helpdesk-assignee-field ul {
  max-height: 132px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 14px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  list-style: none;
}

.helpdesk-assignee-field label:has(input[type="checkbox"]),
.helpdesk-assignee-field li label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #334155;
}

.helpdesk-assignee-field input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.errorlist {
  margin: 6px 0 0;
  padding: 8px 10px;
  list-style: none;
  border-radius: 7px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 0.86rem;
}

.errorlist li {
  margin: 0;
}


.nav-alert-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.ticket-task-summary {
  max-width: 360px;
  line-height: 1.45;
}


.ticket-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-row-actions .primary-btn,
.ticket-row-actions .secondary-btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.84rem;
}

.helpdesk-resolution-box {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.resolution-step {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.resolution-step.complete {
  border-color: #b8e3d1;
  background: #f3fbf7;
}

.resolution-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  border: 2px solid #94a3b8;
  background: #fff;
}

.resolution-step.complete .resolution-dot {
  border-color: var(--brand);
  background: var(--brand);
}

.helpdesk-resolution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.helpdesk-resolution-actions form {
  margin: 0;
}

.helpdesk-workflow-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}


.helpdesk-assignee-field.full {
  margin-top: -4px;
}

.helpdesk-assignee-field > label:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.handbook-content p {
  margin: 0 0 12px;
  line-height: 1.65;
}

.handbook-content ul {
  margin: 8px 0 0 20px;
  padding: 0;
  line-height: 1.65;
}

.handbook-content li {
  margin-bottom: 6px;
}


.handbook-content h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  color: #0f5132;
}

.handbook-content h3:first-child {
  margin-top: 0;
}

.handbook-content h4 {
  margin: 16px 0 8px;
  font-size: 0.98rem;
  color: #334155;
}

.handbook-content .policy-table {
  margin: 10px 0 16px;
  width: 100%;
}

.handbook-content .policy-table th,
.handbook-content .policy-table td {
  white-space: normal;
  vertical-align: top;
}

.secret-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6faf8;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 14px;
  word-break: break-word;
}

.action-field {
  align-self: end;
}
