:root {
  color-scheme: light;
  --ink: #1d2733;
  --muted: #6d7886;
  --line: #e4e9ef;
  --paper: #f5f7fa;
  --panel: #ffffff;
  --nav: #202b38;
  --accent: #286c9e;
  --accent-dark: #1e567f;
  --success: #18764a;
  --warning: #99620b;
  --danger: #a93636;
  --radius: 12px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: var(--nav); color: #e9f0f7; padding: 27px 19px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.brand { display: block; font-size: 20px; font-weight: 750; color: #fff; letter-spacing: -.03em; margin: 0 0 38px; }
.brand span { color: #9dcbe8; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a { color: #d3deea; padding: 10px 12px; border-radius: 8px; }
.sidebar nav a:hover { background: rgba(255,255,255,.09); text-decoration: none; }
.sidebar-note { color: #9eacba; font-size: 12px; margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.logout { margin-top: 10px; }
.main { min-width: 0; max-width: 1500px; width: 100%; padding: 30px clamp(18px, 3vw, 48px) 60px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; font-weight: 720; }
.eyebrow { color: #8a96a3; font-size: 10px; letter-spacing: .14em; font-weight: 750; }
.topbar-mark { width: 43px; height: 43px; border-radius: 13px; background: #e6f0f7; color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 23px; margin: 0 0 18px; box-shadow: 0 2px 8px rgba(25,42,60,.025); }
.panel h2 { margin: 0 0 14px; font-size: 19px; letter-spacing: -.02em; }
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.panel p { margin: 7px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-head p { margin: 0; }
.button { appearance: none; border: 1px solid transparent; border-radius: 8px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 650; min-height: 37px; text-decoration: none; }
.button:hover { text-decoration: none; filter: brightness(.97); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: #edf3f7; color: #244b68; border-color: #dce7ef; }
.button-quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.button-warning { background: #fff3da; color: #875508; border-color: #f0dfb9; }
.button-danger { background: #fff0ef; color: #a33333; border-color: #f1d4d1; }
.button-small { min-height: 30px; padding: 6px 10px; font-size: 12px; }
.page-actions, .inline-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; }
.inline-actions { margin-top: 13px; margin-bottom: 0; }
.notice { border-radius: 9px; padding: 11px 14px; margin: 0 0 13px; font-size: 13px; }
.notice-success { color: #145f3e; background: #e8f5ed; border: 1px solid #d5ebdd; }
.notice-error { color: #8e2d2d; background: #fff0ef; border: 1px solid #f1d4d1; }
.notice-info { color: #285d7e; background: #edf6fb; border: 1px solid #d6e9f4; }
.notice-details { margin: -4px 0 15px 20px; color: var(--muted); font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 5px; font-size: 26px; letter-spacing: -.04em; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-on { background: #e7f5ec; color: #1c6b45; }
.status-off { background: #edf0f3; color: #64707d; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid label, .stack label, .inline-site-form label, .offer-fields label { display: grid; gap: 5px; color: #465361; font-size: 12px; font-weight: 650; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; border: 1px solid #d7dfe7; border-radius: 7px; background: #fff; color: var(--ink); padding: 9px 10px; min-width: 0; outline: none; font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: #76a7c7; box-shadow: 0 0 0 3px rgba(40,108,158,.09); }
input[type=file] { font-size: 12px; }
textarea { resize: vertical; }
label small { color: #8c97a3; font-weight: 400; }
.form-full { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.form-full .button { margin-top: 2px; }
.checkbox-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.checkbox-label input { margin: 0; }
.inline-site-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.inline-site-form .button { margin-bottom: 1px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: #7a8794; font-weight: 650; font-size: 11px; letter-spacing: .03em; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 10px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.row-title { color: var(--ink); font-weight: 700; }
code { color: #405a70; background: #f1f5f8; padding: 2px 5px; border-radius: 4px; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 20px; }
.upload-card { border: 1px dashed #cbd6e0; border-radius: 10px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.upload-card strong { font-size: 13px; }
.file-editor-layout { display: grid; grid-template-columns: minmax(190px, 265px) minmax(0, 1fr); gap: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.file-list { min-width: 0; }
.file-list h3 { margin-bottom: 8px; }
.file-item { display: grid; gap: 2px; padding: 8px 9px; border-radius: 7px; color: #42505e; font-size: 12px; overflow-wrap: anywhere; }
.file-item small { color: #8995a0; }
.file-item:hover { background: #f3f6f9; text-decoration: none; }
.file-selected { background: #eaf3f9; color: #24577b; }
.editor-area { min-width: 0; }
.code-editor { min-height: 430px; height: min(60vh, 680px); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.55; tab-size: 2; white-space: pre; overflow: auto; background: #fbfcfe; }
.empty-editor, .empty-state { color: #7c8996; text-align: center; background: #f8fafc; border: 1px dashed #dbe3eb; border-radius: 9px; padding: 30px 15px; }
.empty-editor strong { color: #4a5967; }
.warning-list { margin: 10px 0 0; padding-left: 20px; color: #8a610f; font-size: 12px; }
.warning-list li { margin: 6px 0; }
.success-text { color: var(--success); }
.offer-rows { display: grid; gap: 12px; }
.offer-row { border: 1px solid var(--line); background: #fbfcfd; border-radius: 9px; padding: 13px; }
.offer-row-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.offer-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.field-wide { grid-column: 1 / -1; }
.text-button { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 3px; font-size: 12px; }
.danger-text { color: var(--danger); }
.inline-form { display: flex; align-items: center; gap: 5px; min-width: 320px; }
.inline-form input { min-width: 160px; }
.inline-form select { width: 66px; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 22px; background: linear-gradient(140deg, #edf2f6, #f8fafc 55%, #e8eff4); }
.login-card { background: #fff; width: min(420px, 100%); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 14px 44px rgba(32,48,64,.08); }
.brand-login { color: var(--ink); margin-bottom: 28px; }
.login-card h1 { margin: 4px 0 22px; font-size: 27px; letter-spacing: -.04em; }
.stack { display: grid; gap: 15px; }
.stack .button { margin-top: 4px; width: 100%; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; height: auto; position: static; padding: 15px 18px; }
  .brand { margin: 0 0 12px; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar-note { display: none; }
  .logout { position: absolute; top: 14px; right: 15px; margin: 0; }
  .logout .button { color: #d3deea; }
  .main { padding-top: 20px; }
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid, .upload-grid, .inline-site-form, .offer-fields { grid-template-columns: 1fr; }
  .form-full, .field-wide { grid-column: auto; }
  .file-editor-layout { grid-template-columns: 1fr; }
  .code-editor { min-height: 350px; height: 48vh; }
  .section-head { flex-direction: column; }
  .panel { padding: 17px; }
}


.site-path-list{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}.site-path-list h3{margin:0 0 12px}.site-path-row{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:8px 14px;padding:10px 0;border-bottom:1px solid var(--line)}.site-path-row code{overflow-wrap:anywhere}.site-path-row small{grid-column:2;color:var(--muted)}@media(max-width:720px){.site-path-row{grid-template-columns:1fr}.site-path-row small{grid-column:1}}
