:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #183b39;
  background: #f5f5ee;
  font-size: 15px;
  --ink: #183b39;
  --deep: #103f43;
  --muted: #526661;
  --border: #d4dbd2;
  --paper: #fffefa;
  --mint: #e3f1e7;
  --cream: #f9f1d9;
  --coral: #ff8968;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #155c56; text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, select, a[href] { touch-action: manipulation; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #cc6540; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -52px; padding: 10px 16px; background: white; z-index: 9; }
.skip:focus { top: 8px; }
.brand-bar { background: var(--deep); color: #fbf4df; }
.brand-inner, .brand, .store-name, .footer-inner, .footer-inner > div, .navigation, .actions, .row-label, .status, .select-tools { display: flex; align-items: center; }
.brand-inner { justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { gap: 10px; min-width: 0; }
.brand img { flex: 0 0 auto; }
.brand strong { font-size: 27px; letter-spacing: -.055em; line-height: 1; }
.product-name { margin-left: 11px; border-left: 1px solid #78918a; padding-left: 19px; color: #e3eadb; font-size: 15px; }
.store-name { justify-content: flex-end; gap: 9px; color: #e0ece4; font-size: 13px; overflow-wrap: anywhere; }
.store-name .demo-label { border: 1px solid #829b92; border-radius: 5px; color: #fff1cb; padding: 3px 7px; white-space: nowrap; }
.nav-bar { background: #fffef8; border-bottom: 1px solid var(--border); }
.navigation { gap: 32px; min-height: 52px; }
.navigation a { position: relative; padding: 16px 1px 15px; color: #4c625d; text-decoration: none; font-weight: 600; font-size: 14px; }
.navigation a:hover, .navigation a[aria-current] { color: var(--deep); }
.navigation a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: #28685c; border-radius: 3px 3px 0 0; }
.main { flex: 1; padding-block: 38px 52px; }
.page-head, .panel-heading, .list-heading, .mini-heading, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-head { margin-bottom: 26px; }
h1, h2, h3, p { margin: 0; }
h1 { color: #163d3a; font-size: clamp(29px, 3.1vw, 45px); font-weight: 700; line-height: 1.08; letter-spacing: -.048em; }
h2 { font-size: 21px; line-height: 1.22; font-weight: 650; letter-spacing: -.035em; }
h3 { font-size: 16px; font-weight: 650; letter-spacing: -.016em; }
.lede, .hint, .subtle, .help-text, .footer-inner, .list-heading p { color: var(--muted); }
.lede { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.hint, .help-text, .subtle { font-size: 13px; line-height: 1.5; }
.help-text { margin-top: 8px; }
.button, .link-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.button { min-height: 39px; padding: 9px 14px; border: 1px solid #bdc9bf; background: #fffefa; color: var(--ink); font-size: 14px; }
.button:hover:not(:disabled) { background: #edf2e9; }
.button.primary { color: #fffdf1; background: var(--deep); border-color: var(--deep); }
.button.primary:hover:not(:disabled) { background: #215953; }
.button.destructive { color: #fff; border-color: #924330; background: #924330; }
.button.destructive:hover:not(:disabled) { background: #713524; }
.button:disabled, .icon-button:disabled { opacity: .48; }
.link-button { color: #1e6257; border: none; background: none; padding: 6px 0; min-height: 30px; font-size: 14px; }
.link-button:hover { text-decoration: underline; }
.link-button.danger { color: #94442e; }
.actions { gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 25px; }
.stat { display: flex; align-items: flex-start; gap: 16px; min-height: 112px; padding: 22px; border: 1px solid var(--border); border-radius: 11px; background: #fffefa; }
.stat-icon, .empty-icon { display: grid; place-items: center; flex: 0 0 auto; height: 35px; width: 35px; border-radius: 9px; color: #305c51; background: var(--mint); }
.stat.pending .stat-icon { background: #f8ebcf; color: #7a5a2b; }
.stat.schedule .stat-icon { background: #e3ecec; color: #365d61; }
.stat-label { display: block; color: #52645e; font-size: 13px; font-weight: 600; }
.stat strong { display: block; margin-top: 4px; color: var(--deep); font-size: 32px; line-height: 1.15; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat .time-stat { font-size: 27px; }
.stat small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.panel + .panel { margin-top: 17px; }
.panel-heading, .list-heading { padding: 21px 24px; }
.panel-heading p, .list-heading p { margin-top: 4px; }
.list-heading { border-bottom: 1px solid var(--border); }
.list-heading p { font-size: 13px; line-height: 1.45; }
.list-count { padding: 4px 9px; border: 1px solid var(--border); border-radius: 5px; color: #526560; font-size: 13px; white-space: nowrap; }
.table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { background: #f3f5ee; color: #4c625b; text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .015em; }
th, td { padding: 13px 19px; border-bottom: 1px solid #e0e5dc; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { height: 68px; }
.row-label { gap: 12px; font-weight: 650; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-size: 12px; letter-spacing: .02em; color: #305e55; background: #e0ede4; }
.avatar.alt1 { color: #69522f; background: #f1e9d2; }
.avatar.alt2 { color: #4a566a; background: #e7eaf0; }
.avatar.alt3 { color: #754831; background: #f5e4da; }
.status { display: inline-flex; gap: 7px; white-space: nowrap; padding: 4px 8px; border-radius: 5px; background: #e3efe5; color: #285b43; font-size: 12px; font-weight: 600; }
.status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status.pending { background: #f8edcf; color: #745523; }
.status.issue { background: #f8e6dc; color: #854b30; }
.status.neutral { background: #e9ece8; color: #52615a; }
.row-action { text-align: right; }
.small-link { text-decoration: none; color: #255e53; font-weight: 650; }
.small-link:hover { text-decoration: underline; }
.empty { text-align: center; padding: 40px 22px 44px; }
.empty-icon { width: 45px; height: 45px; margin: 0 auto 14px; border-radius: 12px; }
.empty h3 { font-size: 19px; }
.empty p { max-width: 43ch; margin: 6px auto 15px; color: var(--muted); line-height: 1.5; }
.empty-inline { padding: 22px 24px; color: var(--muted); line-height: 1.45; }
.editor-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 20px; align-items: start; }
.editor-grid > * { min-width: 0; }
.panel-body { padding: 0 24px 22px; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 13px; font-weight: 600; color: #344d46; }
input, select { min-width: 0; height: 38px; border-radius: 6px; border: 1px solid #b9c5ba; background: #fffefa; color: var(--ink); padding: 7px 10px; font-size: 14px; }
input:read-only { color: #4d6259; background: #f5f6f0; }
.field input, .field select { width: 100%; }
.select-tools { justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.select-tools select { max-width: 210px; }
.select-tools label { font-size: 13px; color: var(--muted); }
.field-note { font-size: 12px; line-height: 1.4; color: #586a61; }
.columns-head, .column-row { display: grid; grid-template-columns: minmax(76px,.74fr) minmax(92px,1fr) auto; gap: 9px; align-items: center; }
.columns-head { margin-bottom: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.column-row + .column-row { margin-top: 7px; }
.column-row .source-field { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.column-row input { width: 100%; height: 35px; }
.column-buttons { display: flex; gap: 3px; }
.icon-button { padding: 0; height: 30px; width: 29px; background: #f5f6ef; border: 1px solid transparent; color: #4c655b; }
.icon-button:hover:not(:disabled) { border-color: #acbcad; background: #ebf0e7; }
.add-column { display: flex; gap: 9px; margin-top: 15px; align-items: center; }
.add-column select { max-width: 220px; }
.preview-heading { color: #fbf4df; background: var(--deep); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-heading p { color: #d9e4d9; margin-top: 5px; font-size: 13px; line-height: 1.5; }
.preview-heading svg { flex: 0 0 auto; color: #feb493; }
.preview-table { min-width: 100%; width: max-content; }
.preview-table th, .preview-table td { padding: 12px 14px; }
.preview-table th:first-child, .preview-table td:first-child { padding-left: 24px; }
.preview-table td { font-size: 13px; }
.preview-actions { border-top: 1px solid var(--border); padding: 16px 24px; }
.preview-actions .hint { margin-top: 8px; }
.route-status { padding: 18px 24px; }
.route-status > p { margin-top: 7px; }
.route-status .actions { margin-top: 10px; }
.notice, .plan-note { padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; line-height: 1.45; }
.notice { background: #e4f0e4; border: 1px solid #a9c7ab; }
.notice.error, .plan-note { background: #fbefdb; border: 1px solid #dbc397; color: #624d2d; }
.plan-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.loading { padding: 42px 0; color: var(--muted); }
.history-info { padding: 14px 24px; border-top: 1px solid var(--border); }
.privacy-requests { margin-top: 20px; }
.privacy-requests > summary { padding: 15px 22px; font-weight: 600; cursor: pointer; }
.privacy-requests ul { padding: 0 24px 18px; margin: 0; list-style: none; }
.privacy-requests li { padding: 5px 0; }
.footer { background: #f2f3ea; border-top: 1px solid var(--border); }
.footer-inner { justify-content: space-between; gap: 16px; min-height: 62px; font-size: 12px; }
.footer-inner > div { gap: 19px; }
.footer-inner a { color: #425c52; }
dialog { max-width: min(440px,calc(100vw - 40px)); border: 1px solid var(--border); border-radius: 12px; padding: 25px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #0b2728a6; }
dialog p { color: var(--muted); margin: 10px 0 19px; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (min-width: 1480px) { .main { padding-top: 46px; } .page-head { margin-bottom: 30px; } }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .stat { padding: 17px 13px; gap: 9px; }
  .editor-grid { grid-template-columns: minmax(0,1fr); }
  .status-panel { margin-top: 15px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 30px); }
  .brand-inner { min-height: 59px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 22px; }
  .brand { gap: 4px; }
  .product-name { display: none; }
  .store-name { font-size: 11px; gap: 6px; }
  .store-name svg { display: none; }
  .navigation { gap: 20px; min-height: 44px; }
  .navigation a { padding-block: 13px; font-size: 13px; }
  .main { padding-block: 25px 32px; }
  .page-head, .list-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .page-head { margin-bottom: 18px; }
  .lede { font-size: 14px; margin-top: 6px; }
  .stats { gap: 6px; margin-bottom: 16px; }
  .stat { min-height: 89px; padding: 10px 8px; }
  .stat-icon { display: none; }
  .stat-label { font-size: 11px; }
  .stat strong { font-size: 23px; }
  .stat .time-stat { font-size: 16px; margin-top: 8px; }
  .stat small { font-size: 10px; }
  .panel-heading, .list-heading, .preview-heading, .route-status { padding: 16px; }
  .panel-body { padding: 0 16px 16px; }
  .preview-actions { padding: 14px 16px; }
  .editor-grid { gap: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .select-tools { justify-content: flex-start; }
  .column-row, .columns-head { grid-template-columns: minmax(61px,.75fr) minmax(71px,1fr) auto; gap: 5px; }
  .icon-button { width: 25px; }
  .column-buttons { gap: 2px; }
  .footer-inner { padding-block: 12px; min-height: 56px; flex-wrap: wrap; gap: 6px 16px; }
  .footer-inner > div { gap: 13px; }
}
