:root {
  --ink: #233a33;
  --muted: #728078;
  --green: #246b50;
  --forest: #172f29;
  --line: #e3e8e2;
  --paper: #f6f7f3;
  --white: #fff;
  --lime: #dbeac3;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9abf91;
  outline-offset: 3px;
}
input,
select,
textarea {
  border: 1px solid #d9e0d8;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  padding: 12px 17px;
  font-weight: 600;
  min-height: 44px;
}
.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
}
.primary:hover {
  background: #1c543f;
}
.secondary {
  background: #fff;
  border: 1px solid #dce3db;
  color: var(--ink);
}
.secondary:hover {
  background: #f0f4ec;
}
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 17px;
  min-height: 44px;
  font-weight: 600;
  background: #fff5f3;
  border: 1px solid #efccc7;
  color: #a33d35;
}
.danger:hover {
  background: #ffe8e4;
}
.compact {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 11px;
}
.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}
.wide {
  width: 100%;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--lime);
  color: #173c2e;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 750;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  margin-top: 6px;
  font-weight: 600;
  opacity: 0.62;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--forest);
  color: #eff4e9;
  padding: 44px 58px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.story-content {
  margin: auto 0;
  padding: 65px 0 45px;
  max-width: 480px;
}
.story-content .eyebrow {
  color: #bed4aa;
}
.story-content h1 {
  font-size: 49px;
  line-height: 1.12;
  margin: 20px 0;
  letter-spacing: -1.8px;
}
.story-content > p {
  font-size: 16px;
  line-height: 1.8;
  color: #b7c7bc;
  max-width: 410px;
}
.story-sample {
  margin-top: 40px;
  border-top: 1px solid #385047;
  padding-top: 24px;
  max-width: 410px;
}
.sample-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a9bbae;
}
.sample-row {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #385047;
  padding: 20px 0;
}
.sample-row > span:first-child {
  font-size: 11px;
  color: #b2c3ac;
}
.sample-row > span:last-child {
  margin-left: auto;
  color: #c4dba7;
}
.sample-row div {
  font-size: 15px;
}
.sample-row small {
  display: block;
  font-size: 12px;
  color: #8fa99a;
  margin-top: 6px;
}
.story-footer {
  font-size: 11px;
  color: #8fa99a;
  margin: 0;
}
.login-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 35px;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 405px;
}
.small-badge {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 700;
  background: #e7eddf;
  color: #53664b;
  padding: 7px 10px;
  border-radius: 5px;
}
.login-card h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 24px 0 14px;
}
.login-card > p {
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 27px;
}
.divider {
  position: relative;
  text-align: center;
  font-size: 11px;
  color: #8a958b;
  margin: 30px 0 22px;
}
.divider:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}
.divider span {
  background: var(--paper);
  padding: 0 14px;
  position: relative;
}
#token-form .secondary {
  margin-top: 12px;
}
.login-card .login-hint {
  font-size: 12px;
  margin: 16px 0 23px;
  line-height: 1.7;
}
code {
  background: #e9ede5;
  padding: 2px 5px;
  border-radius: 4px;
}
.restricted-note {
  display: flex;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #778777;
  font-size: 12px;
  line-height: 1.7;
}
.restricted-note > span {
  font-size: 23px;
  color: #6a7c61;
}
.restricted-note p {
  margin: 0;
}
.login-footer {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #9aa397;
  margin-top: 45px;
}
.approval-panel {
  background: #e9f0e4;
  border: 1px solid #d3e1ca;
  border-radius: 10px;
  padding: 18px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.match-code {
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 8px;
  margin: 15px 0;
  text-align: center;
}
.approval-panel small {
  color: #6d7e67;
}
#approval-status {
  margin: 15px 0 4px;
}
.error-text {
  font-size: 13px;
  color: #a43535;
  white-space: pre-line;
  line-height: 1.6;
  margin: 16px 0 0;
}
.app-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  padding: 30px 19px 20px;
  color: #e4eddf;
  position: fixed;
  inset: 0 auto 0 0;
}
.sidebar .brand {
  margin: 0 7px 45px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #829d8e;
  margin: 0 12px 14px;
}
.nav-item {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  color: #a3b8a8;
  padding: 14px 12px;
  border-radius: 8px;
  margin-bottom: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-item.active {
  background: #304a3e;
  color: #edf4de;
}
.nav-item:hover {
  background: #284236;
}
.sidebar-note {
  margin: auto 10px 25px;
  padding-top: 45px;
  font-size: 11px;
  color: #a1b79f;
  line-height: 1.7;
}
.sidebar-note strong {
  display: inline;
  font-size: 11px;
  font-weight: 500;
}
.sidebar-note p {
  margin: 10px 0 0;
  color: #779383;
  font-size: 11px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #90b978;
  margin-right: 7px;
}
.admin-card {
  border-top: 1px solid #355043;
  padding: 19px 5px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #375545;
  color: #cee0bb;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.admin-card strong {
  font-size: 11px;
  font-weight: 500;
}
.admin-card small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
  color: #819b8a;
}
.icon-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 23px;
  padding: 6px;
  line-height: 1;
}
.admin-card .icon-button {
  margin-left: auto;
}
.workspace {
  margin-left: 248px;
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8c958b;
  background: #fbfcf8;
}
.topbar strong {
  color: #576653;
  font-weight: 500;
}
.slash {
  margin: 0 12px;
  color: #b9c2b5;
}
.topbar-right {
  color: #64755d;
  font-size: 11px;
}
.main-content {
  padding: 36px 40px;
  max-width: 1750px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading h1 {
  margin: 11px 0;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.heading-actions button {
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}
.metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 23px;
}
.metrics article > span {
  display: block;
  color: #6d7b68;
  font-size: 12px;
}
.metrics strong {
  font-size: 32px;
  display: block;
  font-weight: 600;
  margin: 13px 0 8px;
  font-variant-numeric: tabular-nums;
}
.metrics small {
  color: #99a192;
  font-size: 10px;
}
.filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.search-box {
  margin: 0;
  position: relative;
  flex: 1;
  min-width: 190px;
}
.search-box span {
  position: absolute;
  left: 14px;
  top: 8px;
  font-size: 23px;
  color: #7d8978;
}
.search-box input {
  padding-left: 40px;
  font-size: 12px;
}
.filterbar > select {
  width: 170px;
  max-width: 23%;
  font-size: 11px;
}
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 20px;
  gap: 14px;
}
.table-heading h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0;
}
.table-heading > span {
  font-size: 10px;
  color: #919b88;
}
.count-badge {
  background: #edf1e7;
  color: #5e7851;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  margin-left: 6px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
thead {
  background: #fafbf7;
  color: #84917a;
  font-size: 9px;
  letter-spacing: 0.8px;
}
th {
  padding: 14px 18px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  border-top: 1px solid #edf0e9;
  padding: 19px 18px;
  font-size: 12px;
  vertical-align: middle;
}
td:first-child {
  color: #8f9c85;
  width: 55px;
  font-variant-numeric: tabular-nums;
}
.question-cell {
  min-width: 230px;
  max-width: 540px;
}
.question-cell strong {
  display: block;
  font-weight: 600;
  color: #31442e;
  font-size: 12px;
  margin-bottom: 7px;
}
.question-cell p {
  font-size: 11px;
  line-height: 1.55;
  color: #98a08f;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.company-label {
  font-size: 10px;
  letter-spacing: 0.4px;
  font-weight: 600;
  padding: 5px 7px;
  background: #f0f2ec;
  border-radius: 4px;
}
.category-label {
  font-size: 10px;
  color: #738366;
  white-space: nowrap;
}
.status-label {
  font-size: 10px;
  border-radius: 20px;
  padding: 6px 9px;
  white-space: nowrap;
  background: #eaf3e6;
  color: #57754c;
}
.status-label.off {
  background: #f0f0ec;
  color: #919486;
}
.edit-button {
  font-size: 11px;
  color: #65825a;
  border: 1px solid #e2e8dc;
  background: #fff;
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.edit-button:hover {
  background: #edf3e7;
}
.table-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #93a087;
}
.table-footer div {
  display: flex;
  gap: 7px;
}
.table-footer button {
  font-size: 10px;
  padding: 7px 12px;
  min-height: 33px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 10px;
  color: #9aa490;
  gap: 15px;
}
.warning {
  background: #fff4db;
  color: #806320;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 12px;
}
#notice {
  border: 1px solid #d1dfc7;
  background: #eaf3e3;
  color: #45663a;
  padding: 12px 16px;
  margin: 0 0 20px;
  border-radius: 8px;
  font-size: 13px;
}
#notice.error {
  background: #fff0ef;
  color: #993d35;
  border-color: #efccc7;
}
.empty-state {
  text-align: center;
  padding: 65px 20px;
  color: #849479;
  font-size: 13px;
}
.empty-state p {
  margin: 10px 0 0;
  font-size: 12px;
}
.audit-card {
  margin-top: 25px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  border: 0;
  padding: 0;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 560px;
  max-width: 100vw;
  background: #fff;
  color: var(--ink);
  box-shadow: -20px 0 60px #17322522;
}
dialog::backdrop {
  background: #122d2566;
  backdrop-filter: blur(2px);
}
dialog form {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 30px;
  border-bottom: 1px solid var(--line);
}
.drawer-heading h2 {
  margin: 9px 0 0;
  font-size: 23px;
}
.drawer-body {
  overflow: auto;
  padding: 25px 30px;
  flex: 1;
}
.form-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-note {
  font-size: 10px;
  color: #93a089;
  margin-top: 7px;
  line-height: 1.6;
}
.drawer-footer {
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
input:disabled,
select:disabled {
  background: #f0f3ed;
  color: #829078;
}
@media (min-width: 1500px) {
  .story-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }
  .login-story {
    padding-left: 70px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  .main-content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-direction: column;
  }
  .metrics article {
    padding: 18px 15px;
  }
  .story-content h1 {
    font-size: 40px;
  }
  .login-story {
    padding: 35px;
  }
  .filterbar {
    flex-wrap: wrap;
  }
  .search-box {
    flex-basis: 100%;
  }
  .filterbar > select {
    max-width: none;
    flex: 1;
  }
  .table-heading > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: auto;
    padding: 25px;
  }
  .story-content {
    padding: 30px 0 10px;
  }
  .story-content h1 {
    font-size: 35px;
  }
  .story-content > p {
    font-size: 13px;
  }
  .story-sample,
  .story-footer {
    display: none;
  }
  .login-form-wrap {
    padding: 40px 25px;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .sidebar .brand {
    margin: 0 0 18px;
  }
  .nav-label,
  .sidebar-note,
  .admin-card {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
  }
  .nav-item {
    margin: 0;
    padding: 11px;
    font-size: 12px;
  }
  .app-layout {
    display: block;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 18px;
  }
  .main-content {
    padding: 25px 16px;
  }
  .page-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .heading-actions {
    flex-direction: row;
    margin-top: 20px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metrics strong {
    font-size: 27px;
  }
  .metrics small {
    font-size: 9px;
  }
  .filterbar > select {
    font-size: 10px;
    padding: 10px 7px;
    min-width: 0;
  }
  .workspace-footer {
    display: block;
    line-height: 1.8;
  }
  .workspace-footer span {
    display: block;
  }
  .drawer-body {
    padding: 20px;
  }
  .drawer-heading,
  .drawer-footer {
    padding: 20px;
  }
  .table-heading {
    padding: 18px;
  }
  .table-footer {
    gap: 10px;
  }
  .topbar-right {
    display: none;
  }
}
