:root {
  --ink: #173c32;
  --green: #17694d;
  --deep: #153e32;
  --muted: #68756c;
  --line: #e1e7df;
  --cream: #f5f6f0;
  --amber: #9c581a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #e9f0e8;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: var(--deep);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c39142;
  outline-offset: 3px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0;
}
input,
select {
  min-width: 0;
  width: 100%;
  border: 1px solid #ced8ce;
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  background: white;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
small {
  font-size: 11px;
  color: var(--muted);
}
a {
  color: var(--green);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-intro {
  background: var(--deep);
  color: #f3f3e4;
  padding: 10vw 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.login-intro h1 {
  font-size: clamp(34px, 4vw, 55px);
}
.login-intro > p:not(.eyebrow) {
  color: #c5d7c8;
  max-width: 410px;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e0e8c9;
  color: var(--ink);
  border-radius: 10px;
  font-size: 21px;
  letter-spacing: -2px;
  font-weight: 800;
}
.intro-note {
  border-top: 1px solid #42604a;
  padding-top: 24px;
  margin-top: 25px;
  font-size: 12px;
}
.login-card {
  max-width: 430px;
  margin: auto;
  padding: 45px;
  width: 100%;
}
.login-card h2 {
  font-size: 28px;
  margin: 12px 0;
}
.login-card .primary {
  width: 100%;
  margin: 10px 0 20px;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  padding: 30px 20px;
  background: var(--deep);
  color: #d9e5d6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
}
.sidebar-label {
  margin: 44px 14px 14px;
  color: #a0bca9;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  background: transparent;
  color: #cee0cf;
  border: none;
  text-align: left;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
}
nav button.active {
  background: #355e49;
  color: #fff;
}
nav button:hover {
  background: #28523e;
}
.sidebar-foot {
  margin-top: auto;
  padding: 30px 14px 0;
  font-size: 11px;
  color: #c3d5c3;
}
.sidebar-foot small {
  color: #a8c3ad;
}
.status-dot {
  display: inline-block;
  background: #a9c98e;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
header {
  min-height: 87px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
header .eyebrow {
  color: var(--muted);
  font-size: 9px;
}
header strong {
  font-size: 15px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions span {
  font-size: 12px;
  color: var(--muted);
}
main {
  padding: 36px 38px;
  max-width: 1560px;
  margin: auto;
}
.page-heading {
  margin-bottom: 28px;
}
.page-heading h1 {
  margin: 8px 0;
}
.page-heading .eyebrow {
  color: var(--green);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat:first-child {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}
.stat:first-child p {
  color: #b6d0bf;
}
.stat p {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  display: block;
  margin-top: 7px;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel > p {
  margin: 12px 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #f7f8f3;
}
td,
th {
  padding: 13px 14px;
  border-bottom: 1px solid #edf0e9;
}
td {
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: none;
}
td.detail {
  white-space: normal;
  min-width: 180px;
  max-width: 430px;
  overflow-wrap: anywhere;
}
td button {
  font-size: 11px;
  margin: 3px;
  padding: 6px 10px;
}
.tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  background: #edf4e8;
  color: #386142;
  font-size: 10px;
  font-weight: 650;
}
.tag.warn {
  background: #fff1dc;
  color: #94560e;
}
.tag.bad {
  background: #f9e9e4;
  color: #9a4532;
}
.warning,
#notice {
  background: #fff3dc;
  border: 1px solid #ecdfb6;
  color: #79552b;
  border-radius: 9px;
  padding: 12px 15px;
  font-size: 12px;
  margin: 12px 0;
}
#notice {
  margin-bottom: 22px;
}
.empty {
  padding: 28px 0;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.checklist {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 15px;
}
.section-label {
  font-weight: 650;
  font-size: 12px;
  margin-top: 16px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 20px 90px #153e3233;
  padding: 26px;
  max-width: 520px;
  width: calc(100vw - 40px);
  max-height: 90vh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #173c3266;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
#login-error,
#editor-error {
  color: #a54430;
  margin: 12px 0;
  white-space: pre-wrap;
}
code {
  background: #f1f4ec;
  padding: 5px 8px;
  border-radius: 5px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.recovery-list {
  padding-left: 20px;
  line-height: 2;
}
.info-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.info-line span:first-child {
  color: var(--muted);
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  aside {
    padding: 25px 14px;
  }
  main {
    padding: 28px 24px;
  }
  header {
    padding: 18px 24px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 14px;
  }
  .header-actions span {
    display: none;
  }
}
@media (max-width: 650px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 32px;
    gap: 16px;
  }
  .intro-note {
    display: none;
  }
  .login-card {
    padding: 30px;
  }
  .shell {
    display: block;
  }
  aside {
    height: auto;
    position: static;
    padding: 16px;
  }
  .sidebar-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    margin-top: 17px;
    padding-bottom: 5px;
  }
  nav button {
    white-space: nowrap;
    padding: 8px 11px;
  }
  header {
    padding: 16px;
    flex-wrap: wrap;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 28px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 27px;
  }
  .panel {
    padding: 18px;
  }
  .header-actions button {
    font-size: 12px;
  }
  .stats {
    gap: 10px;
  }
  .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
:where(dialog) { max-width: min(92vw, 680px); max-height: 85vh; overflow: auto; }
.job-detail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.job-summary { margin: 20px 0; }
.job-summary .review-total { color: #175344; font-size: 20px; font-weight: 700; }
.job-summary p { overflow-wrap: anywhere; }
.job-summary details { margin-top: 20px; color: #5c7068; }
.job-summary summary { cursor: pointer; font-weight: 600; }
