:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #192c36;
  background: #f2f5f4;
  font-size: 15px;
  --accent: #116b58;
  --line: #d9e2df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
  background: white;
  color: #193e35;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
a.button:hover {
  background: #e6f1ec;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.danger {
  color: #a63e36;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #bdceca;
  border-radius: 8px;
  padding: 10px;
  background: white;
  color: #192c36;
}
textarea {
  min-height: 84px;
}
label {
  display: block;
  font-size: 0.88rem;
  color: #456159;
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.1rem;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 1.4rem;
}
small,
.muted {
  color: #60766e;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 30px 20px;
  background: #153e35;
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .muted {
  color: #abd0c1;
}
.logo {
  font-weight: 750;
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 35px;
}
.sidebar nav button {
  border: 0;
  text-align: left;
  color: #d2e8df;
  background: transparent;
}
.sidebar nav button.active {
  background: #2e594e;
  color: white;
}
.main {
  padding: 34px 4vw;
  max-width: 1500px;
  width: 100%;
}
.top,
.row,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.top {
  justify-content: space-between;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #558074;
  margin-bottom: 9px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px #153e3503;
}
.notice {
  padding: 15px 18px;
  background: #e3eee8;
  border-radius: 10px;
  line-height: 1.5;
  margin-bottom: 22px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.list {
  display: grid;
  gap: 12px;
}
.interview-card {
  display: grid;
  grid-template-columns: 85px 1fr auto;
  gap: 20px;
}
.date-tile {
  background: #eff5f2;
  color: #23624e;
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  font-weight: 650;
  align-self: start;
}
.interview-card h3 {
  margin-bottom: 5px;
}
.badge {
  font-size: 0.78rem;
  border-radius: 6px;
  padding: 5px 8px;
  background: #edf2ef;
  display: inline-block;
  margin: 4px 5px 4px 0;
}
.badge.warn {
  color: #8a4917;
  background: #fff0dc;
}
.badge.good {
  color: #176446;
  background: #e3f2e8;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.85rem;
  margin-top: 12px;
}
.login {
  width: min(460px, 94vw);
  margin: 9vh auto;
}
.login label {
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wide {
  grid-column: 1/-1;
}
.actions {
  margin: 18px 0;
}
dialog {
  width: min(900px, 96vw);
  max-height: 94vh;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 80px #153e3555;
}
dialog::backdrop {
  background: #0c211c88;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat strong {
  font-size: 2rem;
  display: block;
  margin-top: 10px;
}
.history {
  border-left: 2px solid #cfe0d7;
  margin: 15px 0;
  padding-left: 16px;
}
.history p {
  margin-bottom: 10px;
}
.candidate-page {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 18px;
}
.candidate-page .hero {
  padding: 30px;
  background: #153e35;
  color: white;
  border-radius: 16px 16px 0 0;
}
.candidate-page .hero small {
  color: #c8e2d7;
}
.candidate-page .card {
  border-radius: 0 0 16px 16px;
}
.candidate-page .field {
  padding: 12px 0;
  border-bottom: 1px solid #edf1ef;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.candidate-page .field b {
  display: block;
  font-size: 0.8rem;
  color: #60766e;
  margin-bottom: 5px;
}
.response-feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
}
.response-feedback.response-confirmed,
.response-feedback.response-reconfirmed {
  background: #e0f3e7;
  color: #17643a;
  border-color: #b0d9bd;
}
.response-feedback.response-declined {
  background: #fde8e7;
  color: #a12622;
  border-color: #edb9b6;
}
.response-feedback.response-reschedule {
  background: #fff3c4;
  color: #775700;
  border-color: #e5d28b;
}
.candidate-page button.selected-confirmed:disabled {
  background: #17643a;
  color: white;
  border-color: #17643a;
  opacity: 1;
  cursor: default;
}
.candidate-page button.selected-declined:disabled {
  background: #a12622;
  color: white;
  border-color: #a12622;
  opacity: 1;
  cursor: default;
}
#toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: min(500px, 90vw);
  padding: 16px 20px;
  background: #173f35;
  color: white;
  border-radius: 10px;
  z-index: 10;
  box-shadow: 0 8px 30px #0002;
}
#toast:empty {
  display: none;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f5f3;
  padding: 12px;
  border-radius: 8px;
}
.template-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
a {
  color: #116b58;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #77bda5;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 20px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
    margin-top: 15px;
  }
  .sidebar nav button {
    white-space: nowrap;
  }
  .main {
    padding: 24px 16px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .interview-card {
    grid-template-columns: 65px 1fr;
  }
  .interview-card > .actions {
    grid-column: 1/-1;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .candidate-page {
    margin: 16px auto;
  }
  h1 {
    font-size: 1.8rem;
  }
}
[hidden] {
  display: none !important;
}

.policy-page {
  max-width: 860px;
  margin: 32px auto;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.policy-page header {
  display: block;
  background: transparent;
  color: inherit;
  padding: 0;
  position: static;
}
.policy-page h1 {
  margin: 12px 0;
}
.policy-page h2 {
  margin-top: 30px;
}
.policy-page li {
  margin: 10px 0;
}
.policy-page code {
  overflow-wrap: anywhere;
}
.policy-page nav {
  display: block;
  padding: 12px 0;
  background: transparent;
}
.policy-page footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 24px;
}
.legal-footer {
  max-width: 800px;
  margin: 24px auto;
  padding: 16px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #45616b;
}
@media (max-width: 600px) {
  .policy-page {
    margin: 12px;
    padding: 20px;
  }
}
