:root {
    color-scheme: light;
    --ink: #142d2a;
    --muted: #6b7d79;
    --green: #829c3e;
    --green-dark: #106453;
    --mint: #e7f3ef;
    --line: #e3ebe8;
    --surface: #fff;
    --canvas: #f4f7f6;
}

html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header { min-height: 82px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font: 800 20px 'Segoe UI', sans-serif;
  letter-spacing: -.7px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--green);
  font: 800 22px 'Segoe UI', sans-serif;
}
.brand-dot { color: var(--green); }
.header-caption { color: var(--muted); font-size: 13px; }
.intro-section {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
  width: min(1240px, calc(100% - 48px));
  margin: 36px auto 72px;
}
.intro-copy { position: sticky; top: 40px; padding-top: 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #54b69b; }
h1, h2, legend { font-family: 'Segoe UI', sans-serif; }
.intro-copy h1 {
  margin: 21px 0 19px;
  font-size: clamp(40px, 5vw, 61px);
  font-weight: 700;
  letter-spacing: -3.2px;
  line-height: 1.12;
}
.intro-copy h1 span { color: var(--green); }
.intro-lead { max-width: 430px; color: #526762; font-size: 17px; line-height: 1.75; }
.intro-note {
  display: flex;
  gap: 13px;
  max-width: 430px;
  margin-top: 32px;
  padding: 18px 19px;
  border: 1px solid #dcebe5;
  border-radius: 12px;
  background: #edf5f2;
}
.note-icon { flex: 0 0 22px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--green); background: #d5ebe3; font-weight: 700; }
.intro-note p { margin: 0; color: #49645d; font-size: 13px; line-height: 1.65; }
.trust-points { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 25px; color: #526762; font-size: 12px; }
.check-mark { margin-right: 5px; color: var(--green); font-weight: 700; }
.form-card {
  padding: clamp(25px, 4vw, 43px);
  border: 1px solid #e8eeeb;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 15px 50px rgba(27, 59, 51, .07);
}
.form-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.form-heading h2, .success-state h2 { margin: 8px 0 0; font-size: 29px; font-weight: 700; letter-spacing: -1.2px; }
.required-note, .optional-note { color: #82918d; font-size: 11px; }
.form-section { min-width: 0; margin: 0 0 27px; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--line); }
.form-section legend { float: none; width: auto; margin: 0 0 17px; padding: 0; font-size: 15px; font-weight: 700; }
.section-number { display: inline-grid; width: 27px; height: 27px; margin-right: 9px; place-items: center; border-radius: 8px; color: var(--green); background: var(--mint); font: 700 10px 'Segoe UI', sans-serif; }
.section-hint { margin: -7px 0 17px; color: var(--muted); font-size: 12px; }
.form-label { margin-bottom: 7px; color: #263d38; font-size: 12px; font-weight: 600; }
.required-star, .field-error { color: #c04747; }
.form-control, .form-select {
  min-height: 45px;
  border-color: #dce5e1;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
}
.form-control::placeholder { color: #a4b0ad; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #5da994; box-shadow: 0 0 0 3px rgba(21, 122, 103, .12); }
.form-check-input { flex: 0 0 auto; margin-top: 2px; border-color: #b9c9c3; }
.form-check-input:checked { border-color: var(--green); background-color: var(--green); }
.checklist-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 58px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.choice-card:has(input:checked) { border-color: #a6d2c4; background: #f5faf8; }
.choice-card strong { display: block; color: #29423c; font-size: 11px; font-weight: 600; line-height: 1.4; }
.choice-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.date-field { max-width: 235px; margin-top: 17px; }
.flow-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.flow-card { align-items: center; min-height: 49px; }
.flow-card strong { font-size: 11px; }
.sending-mode-field { max-width: 270px; margin-top: 15px; }
.consent-block { margin: -3px 0 19px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; color: #435953; font-size: 11px; line-height: 1.6; cursor: pointer; }
.consent-label .form-check-input { margin-top: 2px; }
.privacy-note { margin: 8px 0 0 25px; color: #87948f; font-size: 10px; }
.field-error { display: block; margin-top: 5px; font-size: 11px; }
.validation-summary:empty { display: none; }
.validation-summary { margin: 0 0 16px; padding: 11px 13px; border-radius: 8px; color: #9c3434; background: #fff1f0; font-size: 12px; }
.validation-summary ul { margin: 0; padding-left: 18px; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 49px; border: 0; border-radius: 8px; color: #fff; background: var(--green); font-size: 13px; font-weight: 700; }
.submit-button:hover, .submit-button:focus { color: #fff; background: var(--green-dark); }
.form-footnote { margin: 10px 0 0; color: #8a9793; text-align: center; font-size: 10px; }
.success-state { display: flex; min-height: 430px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-icon { display: grid; width: 62px; height: 62px; margin-bottom: 23px; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 27px; }
.success-state h2 { margin-top: 12px; }
.success-state p { max-width: 370px; margin: 14px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.site-footer { min-height: 68px; border-top: 1px solid #e4ebe8; color: #7d8d88; font-size: 11px; }
.site-footer a { color: #62766f; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.privacy-page {
  width: min(760px, calc(100% - 40px));
  min-height: calc(100vh - 150px);
  margin: 35px auto 55px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid #e8eeeb;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 15px 50px rgba(27, 59, 51, .07);
}
.privacy-page h1 { margin: 12px 0 22px; font-size: 35px; font-weight: 700; letter-spacing: -1.5px; }
.privacy-page h2 { margin: 25px 0 9px; font-size: 17px; font-weight: 700; }
.privacy-page p { color: #526762; font-size: 14px; line-height: 1.75; }
.privacy-page .privacy-reminder { margin-top: 24px; padding: 14px 16px; border-radius: 9px; color: #6a5a31; background: #fbf6e8; font-size: 12px; }
.privacy-back { margin-top: 8px; border: 0; background: var(--green); }

@media (max-width: 900px) {
  .intro-section { grid-template-columns: 1fr; gap: 28px; max-width: 700px; margin-top: 12px; }
  .intro-copy { position: static; padding-top: 20px; }
  .intro-copy h1 { font-size: 48px; }
  .intro-note { max-width: 600px; margin-top: 20px; }
  .trust-points { margin-top: 17px; }
}
@media (max-width: 520px) {
  .site-header, .site-footer { width: calc(100% - 32px); }
  .site-header { min-height: 68px; }
  .header-caption { font-size: 11px; }
  .intro-section { width: calc(100% - 28px); margin-bottom: 38px; }
  .intro-copy { padding-top: 14px; }
  .intro-copy h1 { font-size: 41px; letter-spacing: -2px; }
  .intro-lead { font-size: 15px; }
  .form-card { padding: 23px 18px; border-radius: 14px; }
  .form-heading h2 { font-size: 25px; }
  .checklist-options { grid-template-columns: 1fr; }
  .flow-options { grid-template-columns: 1fr; }
  .flow-card { min-height: 43px; }
}

.admin-page { width: min(1240px, calc(100% - 48px)); min-height: calc(100vh - 150px); margin: 35px auto 55px; }
.admin-page h1, .admin-login-card h1 { margin: 8px 0 5px; font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -1.5px; }
.admin-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.admin-user { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.admin-muted { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.admin-list-controls { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.admin-stat-card { display: flex; align-items: center; justify-content: space-between; width: min(260px, 100%); margin: 0; padding: 17px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 12px; }
.admin-stat-card strong { color: var(--green); font-size: 25px; }
.admin-search-form { display: flex; flex: 1 1 450px; align-items: center; justify-content: flex-end; gap: 8px; }
.admin-search-form .form-control { width: min(370px, 100%); }
.admin-search-form .btn { min-height: 45px; font-size: 12px; white-space: nowrap; }
.admin-search-form .btn-primary { border: 0; background: var(--green); }
.admin-grid-form { flex-wrap: wrap; }
.admin-grid-search { flex: 1 1 220px; }
.admin-grid-search .form-control { width: 100%; }
.admin-grid-filter { flex: 0 1 170px; min-width: 135px; }
.admin-grid-filter .form-select { min-height: 45px; font-size: 12px; }
.admin-sort-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: -2px 0 18px; padding: 16px 19px; border: 1px solid #dfeae5; border-radius: 11px; background: #edf5f2; }
.admin-sort-copy { display: flex; align-items: center; gap: 12px; }
.admin-sort-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--green); background: #dceee7; font-size: 19px; font-weight: 700; }
.admin-sort-copy h2 { margin: 0; color: #29463d; font-size: 13px; font-weight: 700; }
.admin-sort-copy p { margin: 3px 0 0; color: #74867f; font-size: 11px; }
.admin-sort-form { display: flex; align-items: end; gap: 10px; }
.admin-sort-form > div { min-width: 165px; }
.admin-sort-form .form-label { margin-bottom: 4px; font-size: 10px; }
.admin-sort-form .form-select { min-height: 39px; border-color: #d1e0d9; background-color: #fff; font-size: 12px; }
.admin-sort-form .btn { min-height: 39px; padding-right: 17px; padding-left: 17px; font-size: 11px; white-space: nowrap; }
.admin-sort-form .btn-outline-success { border-color: #a7cbbd; color: #176f5b; }
.admin-sort-form .btn-outline-success:hover { color: #fff; background: var(--green); }
.admin-table-wrap, .admin-panel { overflow: hidden; border: 1px solid #e8eeeb; border-radius: 13px; background: #fff; box-shadow: 0 8px 28px rgba(27, 59, 51, .04); }
.admin-table { margin: 0; font-size: 12px; }
.admin-table th { padding: 14px 15px; border-bottom-color: var(--line); color: #788982; background: #f8faf9; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.admin-sort-link { color: inherit; text-decoration: none; }
.admin-sort-link:hover { color: var(--green); }
.admin-sort-link span { margin-left: 4px; color: var(--green); font-size: 13px; }
.admin-table td { min-width: 115px; padding: 15px; border-bottom-color: #edf1ef; color: #344b45; }
.admin-table td:first-child { min-width: 165px; }
.admin-table td strong, .admin-table td small, .admin-table td a:not(.btn) { display: block; }
.admin-table td small { margin-top: 4px; color: #788982; font-size: 10px; }
.admin-table td a:not(.btn) { color: var(--green); text-decoration: none; }
.admin-table .admin-customer-complete > td { background: #f0f8f3; }
.admin-table .admin-customer-complete > td:first-child { box-shadow: inset 3px 0 #53a67a; }
.admin-complete-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 3px 8px; border-radius: 999px; color: #26734b; background: #dcefe2; font-size: 10px; font-weight: 700; }
.admin-progress { width: 90px; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 9px; background: #eaf0ed; }
.admin-progress span { display: block; height: 100%; border-radius: inherit; background: #36a081; }
.admin-open-button { border: 0; background: var(--green); white-space: nowrap; }
.admin-empty { padding: 40px; border: 1px dashed #cbd9d3; border-radius: 12px; color: var(--muted); background: #fff; text-align: center; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }
.admin-pagination-summary { color: var(--muted); font-size: 11px; }
.admin-pagination .pagination { margin: 0; }
.admin-pagination .page-link { border-color: var(--line); color: var(--green); font-size: 12px; }
.admin-pagination .page-item.active .page-link { border-color: var(--green); color: #fff; background: var(--green); }
.admin-pagination .page-item.disabled .page-link { color: #aab5b1; }
.admin-grid-loading[hidden] { display: none; }
.admin-grid-loading { display: grid; gap: 9px; }
.admin-skeleton-row { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr; gap: 22px; min-height: 66px; align-items: center; padding: 14px 18px; border: 1px solid #e8eeeb; border-radius: 10px; background: #fff; }
.admin-skeleton-row span { height: 12px; border-radius: 8px; background: linear-gradient(90deg, #edf2ef 25%, #f8faf9 50%, #edf2ef 75%); background-size: 200% 100%; animation: admin-skeleton-shimmer 1.4s ease-in-out infinite; }
.admin-skeleton-row span:first-child { width: 78%; }
.admin-skeleton-row span:nth-child(2) { width: 85%; }
.admin-skeleton-row span:nth-child(3) { width: 68%; }
.admin-skeleton-row span:nth-child(4) { width: 58%; }
@keyframes admin-skeleton-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .admin-skeleton-row span { animation: none; } }
.admin-back { display: inline-block; margin-bottom: 10px; color: var(--green); font-size: 12px; text-decoration: none; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 17px; }
.admin-panel { padding: 22px 24px; }
.admin-panel h2 { margin: 0 0 17px; font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.admin-details { display: grid; grid-template-columns: minmax(130px, .7fr) 1.3fr; gap: 11px 15px; margin: 0; font-size: 12px; }
.admin-details dt { color: #7a8a84; font-weight: 500; }
.admin-details dd { margin: 0; color: #314a42; font-weight: 600; overflow-wrap: anywhere; }
.admin-details a { color: var(--green); text-decoration: none; }
.admin-checklist-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.admin-progress.large { width: min(220px, 30%); height: 9px; margin: 0; }
.checklist-admin-list { margin-top: 12px; }
.checklist-admin-item { display: flex; align-items: center; gap: 13px; min-height: 75px; padding: 12px 0; border-top: 1px solid #edf1ef; }
.admin-check-state { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 50%; font-weight: 700; }
.admin-check-state.is-done { color: #147355; background: #e4f4ed; }
.admin-check-state.is-pending { color: #80908a; background: #f0f3f2; }
.checklist-admin-label { flex: 1 1 auto; min-width: 0; }
.checklist-admin-label strong, .checklist-admin-label small { display: block; }
.checklist-admin-label strong { color: #314a42; font-size: 12px; }
.checklist-admin-label small { margin-top: 4px; color: #7d8d87; font-size: 10px; }
.checklist-action-form { flex: 0 0 auto; }
.checklist-action-form .btn { font-size: 10px; }
.admin-status-message { margin-bottom: 16px; padding: 12px 15px; border-radius: 8px; color: #176849; background: #e7f5ed; font-size: 12px; }
.admin-history-panel { margin-top: 17px; }
.admin-history-list { display: grid; gap: 0; }
.admin-history-list > div { display: grid; grid-template-columns: 145px minmax(160px, .8fr) 1.2fr; gap: 12px; padding: 12px 0; border-top: 1px solid #edf1ef; color: #526762; font-size: 11px; }
.admin-history-list time { color: #7d8d87; }
.admin-history-list strong { color: #314a42; }
.admin-login-wrap { display: grid; min-height: calc(100vh - 150px); padding: 35px 20px; place-items: center; }
.admin-login-card { width: min(430px, 100%); padding: 34px; border: 1px solid #e8eeeb; border-radius: 16px; background: #fff; box-shadow: 0 15px 50px rgba(27, 59, 51, .07); }
.admin-login-card h1 { font-size: 32px; }
.admin-login-card form { margin-top: 23px; }
.admin-remember { margin: 17px 0 20px; }
.checklist-manager-add { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr); align-items: end; gap: 25px; margin-bottom: 17px; }
.checklist-manager-add h2, .checklist-manager-list h2 { margin: 0 0 7px; color: var(--ink); font-size: 17px; font-weight: 700; }
.checklist-add-form { display: flex; align-items: end; gap: 12px; }
.checklist-add-input { flex: 1 1 auto; min-width: 0; }
.checklist-add-form .btn { flex: 0 0 auto; min-height: 45px; border: 0; background: var(--green-dark); font-size: 12px; }
.checklist-manager-list { padding-top: 20px; }
.checklist-manager-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checklist-manager-items { margin-top: 12px; }
.checklist-manager-item { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 11px 0; border-top: 1px solid var(--line); }
.checklist-manager-order { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 700; }
.checklist-manager-name { flex: 1 1 auto; min-width: 0; }
.checklist-manager-name strong, .checklist-manager-name small { display: block; }
.checklist-manager-name strong { color: var(--ink); font-size: 12px; }
.checklist-manager-name small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.checklist-manager-item.is-inactive .checklist-manager-order { color: var(--muted); background: #edf0ef; }
.checklist-manager-item.is-inactive .checklist-manager-name strong { color: var(--muted); }
.checklist-manager-item .btn { flex: 0 0 auto; font-size: 10px; }

@media (max-width: 760px) {
  .admin-page { width: calc(100% - 28px); margin-top: 20px; }
  .admin-topbar { align-items: flex-start; }
  .admin-list-controls { align-items: stretch; flex-direction: column; }
  .admin-stat-card { width: 100%; }
  .admin-search-form { flex-wrap: wrap; justify-content: flex-start; }
  .admin-search-form .form-control { flex: 1 1 100%; width: 100%; }
  .admin-grid-filter { flex: 1 1 145px; }
  .admin-sort-panel { align-items: stretch; flex-direction: column; gap: 13px; }
  .admin-sort-form { flex-wrap: wrap; }
  .admin-sort-form > div { flex: 1 1 140px; min-width: 0; }
  .admin-sort-form .btn { flex: 1 1 100%; }
  .admin-pagination { align-items: flex-start; flex-direction: column; }
  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 790px; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .checklist-manager-add { grid-template-columns: 1fr; gap: 17px; }
}
@media (max-width: 520px) {
  .admin-topbar { flex-direction: column; }
  .admin-user { width: 100%; justify-content: space-between; }
  .admin-panel { padding: 18px 15px; }
  .checklist-admin-item { flex-wrap: wrap; }
  .checklist-action-form { width: 100%; padding-left: 40px; }
  .admin-history-list > div { grid-template-columns: 1fr; gap: 4px; }
  .admin-checklist-heading { align-items: flex-start; flex-direction: column; }
  .admin-progress.large { width: 100%; }
  .admin-login-card { padding: 26px 21px; }
  .checklist-add-form { align-items: stretch; flex-direction: column; }
  .checklist-manager-heading { align-items: flex-start; flex-direction: column; }
  .checklist-manager-item { align-items: flex-start; flex-wrap: wrap; }
  .checklist-manager-item form { width: 100%; padding-left: 46px; }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.theme-toggle:hover { border-color: #9dc8b9; background: var(--mint); }
.theme-toggle:focus-visible { outline: 3px solid rgba(21, 122, 103, .32); outline-offset: 2px; }
.theme-toggle-icon { color: var(--green); font-size: 16px; line-height: 1; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5eeeb;
  --muted: #a4b4af;
  --green: #63c3a5;
  --green-dark: #4ab28f;
  --mint: #243f37;
  --line: #344943;
  --surface: #1c2a27;
  --canvas: #111a18;
  --bs-body-color: #e5eeeb;
  --bs-body-bg: #111a18;
  --bs-secondary-color: #a4b4af;
  --bs-border-color: #344943;
  --bs-table-color: #d7e2de;
  --bs-table-bg: #1c2a27;
}
:root[data-theme="dark"] body { color: var(--ink); background: var(--canvas); }
:root[data-theme="dark"] .intro-lead,
:root[data-theme="dark"] .trust-points,
:root[data-theme="dark"] .intro-note p,
:root[data-theme="dark"] .privacy-page p { color: #b4c3be; }
:root[data-theme="dark"] .intro-note { border-color: #344d45; background: #1b302a; }
:root[data-theme="dark"] .note-icon { color: #8bd5ba; background: #29483d; }
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .privacy-page,
:root[data-theme="dark"] .admin-stat-card,
:root[data-theme="dark"] .admin-table-wrap,
:root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .admin-login-card { border-color: #2b3c37; background: var(--surface); }
:root[data-theme="dark"] .choice-card { border-color: #344943; background: #1a2824; }
:root[data-theme="dark"] .choice-card:has(input:checked) { border-color: #4b8c75; background: #20372f; }
:root[data-theme="dark"] .choice-card strong,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .privacy-page h1,
:root[data-theme="dark"] .privacy-page h2,
:root[data-theme="dark"] .admin-sort-copy h2,
:root[data-theme="dark"] .admin-sort-form .form-label { color: #dbe7e2; }
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select { border-color: #40544d; color: var(--ink); background-color: #17231f; }
:root[data-theme="dark"] .form-control::placeholder { color: #899b94; }
:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus { border-color: #63b99d; background-color: #17231f; }
:root[data-theme="dark"] .form-check-input { border-color: #61736c; background-color: #1a2824; }
:root[data-theme="dark"] .form-check-input:checked { border-color: var(--green); background-color: var(--green); }
:root[data-theme="dark"] .form-check-input:focus { box-shadow: 0 0 0 3px rgba(99, 195, 165, .2); }
:root[data-theme="dark"] .section-number { color: #8bd5ba; background: #29483d; }
:root[data-theme="dark"] .privacy-page .privacy-reminder { color: #e8d49a; background: #3a3422; }
:root[data-theme="dark"] .site-footer { border-top-color: #2b3c37; color: #a4b4af; }
:root[data-theme="dark"] .site-footer a { color: #b6c8c0; }
:root[data-theme="dark"] .admin-stat-card,
:root[data-theme="dark"] .admin-table td,
:root[data-theme="dark"] .admin-details dd,
:root[data-theme="dark"] .checklist-admin-label strong { color: #d4e0db; }
:root[data-theme="dark"] .admin-table th { border-bottom-color: #344943; color: #adbbb6; background: #202f2b; }
:root[data-theme="dark"] .admin-table td { border-bottom-color: #2c3d37; }
:root[data-theme="dark"] .admin-table .admin-customer-complete > td { background: #20372c; }
:root[data-theme="dark"] .admin-table .admin-customer-complete > td:first-child { box-shadow: inset 3px 0 #66bf88; }
:root[data-theme="dark"] .admin-complete-badge { color: #a7e4ba; background: #2d5039; }
:root[data-theme="dark"] .admin-table td small,
:root[data-theme="dark"] .admin-details dt,
:root[data-theme="dark"] .checklist-admin-label small,
:root[data-theme="dark"] .admin-history-list time { color: #9aaca5; }
:root[data-theme="dark"] .admin-sort-panel { border-color: #344d45; background: #1b302a; }
:root[data-theme="dark"] .admin-sort-copy p { color: #a7b9b1; }
:root[data-theme="dark"] .admin-sort-icon { color: #8bd5ba; background: #29483d; }
:root[data-theme="dark"] .admin-sort-form .form-select { border-color: #40544d; background-color: #17231f; }
:root[data-theme="dark"] .admin-sort-form .btn-outline-success { border-color: #538b75; color: #a5e1c8; }
:root[data-theme="dark"] .admin-empty { border-color: #40544d; color: #b3c2bc; background: #1c2a27; }
:root[data-theme="dark"] .admin-pagination .page-link { border-color: #344943; color: #9bdcc2; background: #1c2a27; }
:root[data-theme="dark"] .admin-pagination .page-item.active .page-link { border-color: var(--green); color: #10211b; background: var(--green); }
:root[data-theme="dark"] .admin-pagination .page-item.disabled .page-link { color: #73857e; background: #17231f; }
:root[data-theme="dark"] .admin-skeleton-row { border-color: #2b3c37; background: #1c2a27; }
:root[data-theme="dark"] .admin-skeleton-row span { background: linear-gradient(90deg, #263631 25%, #354841 50%, #263631 75%); background-size: 200% 100%; }
:root[data-theme="dark"] .admin-check-state.is-done { color: #9ae1c2; background: #244536; }
:root[data-theme="dark"] .admin-check-state.is-pending { color: #b2c0ba; background: #2b3934; }
:root[data-theme="dark"] .admin-status-message { color: #a7e2c2; background: #1d3a2d; }
:root[data-theme="dark"] .admin-history-list > div,
:root[data-theme="dark"] .checklist-admin-item { border-top-color: #344943; color: #b4c3be; }
:root[data-theme="dark"] .admin-history-list strong { color: #d4e0db; }
:root[data-theme="dark"] .btn-outline-secondary { border-color: #53665e; color: #d0dbd6; }
:root[data-theme="dark"] .btn-outline-secondary:hover { border-color: #71847b; color: #fff; background: #34443e; }
:root[data-theme="dark"] .theme-toggle { border-color: #40544d; color: var(--ink); background: #1c2a27; }
:root[data-theme="dark"] .theme-toggle:hover { border-color: #538b75; background: #243a32; }

@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; column-gap: 12px; }
  .header-caption { margin-left: auto; }
  .theme-toggle { min-height: 34px; padding: 0 9px; font-size: 10px; }
}
