/* ============================================================
   Burgasmedia Ads — Admin UI
   Theme: "Editorial Dashboard" (warm off-white + crimson accent)
   ============================================================ */

:root {
  --bg:          #f5f1ea;
  --bg-surface:  #ffffff;
  --bg-sidebar:  #181413;
  --bg-soft:     #fbf8f3;

  --ink:         #1a1714;
  --ink-soft:    #4b4540;
  --muted:       #8a837a;

  --line:        #e6ddcf;
  --line-soft:   #efe8d9;

  --accent:      #b8263b;     /* crimson */
  --accent-dark: #8d0f22;
  --accent-soft: #fbeceb;

  --ok:          #15803d;
  --ok-soft:     #e6f4ec;
  --warn:        #b45309;
  --warn-soft:   #fdf1dd;
  --err:         #b91c1c;
  --err-soft:    #fde8e8;

  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   14px;

  --shadow-sm:   0 1px 0 rgba(20,15,10,.03);
  --shadow-md:   0 1px 2px rgba(20,15,10,.04), 0 6px 20px rgba(20,15,10,.05);
  --shadow-lg:   0 8px 40px rgba(20,15,10,.10);

  --font-serif:  "Fraunces", ui-serif, Georgia, serif;
  --font-sans:   "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 16.5px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; font-family: var(--font-sans); }

code, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-soft); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ============================================================
   Layout
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-sidebar);
  color: #e8e0d2;
  display: flex;
  flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
  padding: 24px 18px 18px;
}

.sidebar-head { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.07); }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent);
  font-family: var(--font-serif); font-weight: 700;
  font-size: 17px;
  color: #fff;
  border-radius: 8px;
  position: relative;
}
.brand-mark span { color: #ffd3d3; }
.brand-text { font-family: var(--font-serif); font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.brand-text em { font-style: italic; color: #d8a0a0; font-weight: 500; }

.nav { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  font-size: 14px;
  color: #b5ada0;
  border-radius: 8px;
  font-weight: 500;
  transition: all .15s ease;
}
.nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-link.is-active {
  background: rgba(184, 38, 59, .15);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav-link svg { opacity: .8; }
.nav-link.is-active svg { opacity: 1; color: var(--accent); }

.sidebar-foot { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }

.user-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
}
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-serif); font-weight: 600; font-size: 16px;
}
.user-name { color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.user-role { color: #928877; font-size: 11.5px; }
.user-logout {
  color: #928877;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
}
.user-logout:hover { color: #fff; background: rgba(255,255,255,.07); }

/* ============================================================
   Main
   ============================================================ */
.main {
  padding: 36px 48px 60px;
  max-width: 1280px;
  width: 100%;
  min-width: 0;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: 30px; font-family: var(--font-serif); font-weight: 600; letter-spacing: -.015em; }
.page-title .accent { font-style: italic; color: var(--accent); font-weight: 500; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; gap: 8px; flex-shrink: 0; }

.breadcrumbs { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; letter-spacing: .01em; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }

.flash {
  padding: 11px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
}
.flash-ok  { background: var(--ok-soft); border-color: #cfe9d8; color: #0f5c2c; }
.flash-err { background: var(--err-soft); border-color: #f2c5c5; color: #7c1414; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; font-size: 14px; }
.alert-error { background: var(--err-soft); border: 1px solid #f2c5c5; color: #7c1414; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font: 500 14px/1 var(--font-sans);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn svg { display: block; }

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: var(--bg-surface);
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: #d7cebd; color: var(--ink) !important; }

.btn-danger {
  background: transparent;
  color: var(--err) !important;
  border-color: #f0c4c4;
}
.btn-danger:hover { background: var(--err-soft); }

.btn-sm { padding: 5px 10px; font-size: 13px; }

.link { color: var(--accent-dark); font-weight: 500; font-size: 13.5px; }

/* ============================================================
   Panels & cards
   ============================================================ */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px; gap: 20px;
}
.panel-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty p { margin: 10px 0 16px; }

/* ============================================================
   Stats cards
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  min-height: 120px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600;
}
.stat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.stat-label { font-weight: 600; }
.stat-value {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 500;
  line-height: 1;
  margin-top: 10px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.stat-unit { font-size: 18px; color: var(--muted); margin-left: 4px; font-family: var(--font-sans); }
.stat-foot { margin-top: 10px; font-size: 12.5px; }
.stat-spark { margin-top: auto; height: 44px; }
.sparkline { display: block; width: 100%; height: 100%; }

/* ============================================================
   Zone list / cards
   ============================================================ */
.zone-list { display: flex; flex-direction: column; }
.zone-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  gap: 20px;
  color: inherit;
}
.zone-row:last-child { border-bottom: 0; }
.zone-row:hover { color: inherit; }
.zone-row:hover .zone-name { color: var(--accent-dark); }
.zone-name { font-family: var(--font-serif); font-size: 17px; font-weight: 600; transition: color .15s; }
.zone-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; }
.zone-row-stats {
  display: flex; gap: 32px;
  text-align: right;
  font-size: 13px;
}
.zone-row-stats span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.zone-row-stats b { font-family: var(--font-serif); font-weight: 600; font-size: 18px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.zone-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.zone-card:hover { border-color: #d7cebd; }
.zone-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.zone-card-size { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.zone-card-size .mono { color: var(--ink); font-weight: 500; }
.zone-card-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.zone-card-id { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.zone-card-id code { background: transparent; border: 0; padding: 0; font-size: 12px; }
.zone-card-meta {
  font-size: 13px;
  display: flex; justify-content: space-between; gap: 10px;
  margin-bottom: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.zone-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.zone-card-actions .btn { flex: 1; justify-content: center; padding: 7px 10px; font-size: 13px; }

/* ============================================================
   Pills / chips / status
   ============================================================ */
.pill, .chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
}
.pill { font-family: var(--font-mono); font-weight: 500; }
.chip-soft { background: var(--bg-soft); color: var(--ink-soft); }
.chip-client { background: var(--accent-soft); border-color: #f2cfcf; color: var(--accent-dark); }
.chip-warn { background: var(--warn-soft); border-color: #f0dbb5; color: #7c4b0f; }
.chip-ok { background: var(--ok-soft); border-color: #cfe9d8; color: #0f5c2c; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 500;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok   { background: var(--ok-soft);   color: #0f5c2c; }
.status-off  { background: var(--bg-soft);   color: var(--muted); }
.status-wait { background: var(--warn-soft); color: #7c4b0f; }
.status-exp  { background: var(--err-soft);  color: #7c1414; }

/* ============================================================
   Tables
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table th, .table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.table thead th {
  background: var(--bg-soft);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: .06em;
  font-weight: 600;
  border-bottom-color: var(--line);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }

.ad-row { display: flex; gap: 12px; align-items: center; }
.ad-thumb {
  width: 54px; height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-thumb-text {
  font-family: var(--font-serif); color: var(--muted); font-size: 15px; font-weight: 600;
}
.ad-title { font-weight: 600; font-size: 14px; }
.ad-url { font-size: 12px; }

/* ============================================================
   Forms
   ============================================================ */
.form, .form-grid { padding: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field > small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { margin-bottom: 0; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: 400 14px var(--font-sans);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 38, 59, .12);
}
textarea { resize: vertical; min-height: 80px; line-height: 1.5; font-family: var(--font-sans); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a837a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 12px center; background-repeat: no-repeat;
  padding-right: 32px;
}

.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; cursor: pointer; font-size: 14px; }
.checkbox input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; }

.switch {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding-top: 4px;
}
.switch input { display: none; }
.switch-track {
  position: relative;
  width: 42px; height: 24px;
  background: var(--line);
  border-radius: 99px;
  transition: background .15s;
}
.switch-track::after {
  content: ''; position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  transition: transform .18s ease;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch-label { font-size: 14px; font-weight: 500; }

.form-actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

.form-aside {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.aside-card { margin-bottom: 22px; }
.aside-card:last-child { margin-bottom: 0; }
.aside-card h4 { margin-bottom: 12px; }

.current-image {
  margin-bottom: 10px;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.current-image img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin-bottom: 8px; }

/* ============================================================
   Type switch (text/image ad) & presets
   ============================================================ */
.type-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 22px;
}
.type-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  background: var(--bg-surface);
}
.type-option input { display: none; }
.type-option:hover { border-color: #d7cebd; }
.type-option.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.type-option b { font-size: 14px; font-weight: 600; display: block; }
.type-option small { font-size: 12px; color: var(--muted); display: block; margin-top: 1px; }
.type-option.is-active small { color: var(--accent-dark); opacity: .85; }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-chip {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: all .15s;
}
.preset-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.preset-chip b { font-weight: 500; }
.preset-chip span { font-family: var(--font-sans); font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.preset-chip:hover span { color: var(--accent-dark); }

/* ============================================================
   Preview holder (zone form)
   ============================================================ */
.preview-holder { padding: 20px; background: var(--bg-surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.preview-frame {
  background: repeating-linear-gradient(45deg, #f0eadd 0 6px, var(--bg-soft) 6px 12px);
  border: 2px solid var(--accent);
  border-radius: 4px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 60px;
  max-width: 100%;
}
.preview-size {
  position: absolute; top: 4px; right: 6px;
  font-family: var(--font-mono); font-size: 10px;
  background: var(--accent); color: #fff;
  padding: 1px 6px; border-radius: 3px;
}
.preview-placeholder {
  color: var(--muted); font-size: 13px;
  font-family: var(--font-serif); font-style: italic;
}

/* Live preview for ad form */
.preview-shell {
  padding: 20px;
  background: #f0ebe1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 120px;
}

/* ============================================================
   Code blocks
   ============================================================ */
.code-box { position: relative; margin-top: 6px; }
.code {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font: 13px/1.55 var(--font-mono);
  background: #1b1815;
  color: #e9e1d0;
  border: 0;
  border-radius: var(--radius);
  min-height: 80px;
  resize: vertical;
}
.code-box .btn-sm {
  position: absolute; top: 8px; right: 8px;
}

/* ============================================================
   Chart
   ============================================================ */
.chart-panel canvas { width: 100% !important; height: 280px !important; }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ============================================================
   Utilities
   ============================================================ */
.inline-form { display: inline-flex; gap: 8px; }
.inline-form select {
  width: auto;
  padding: 7px 28px 7px 12px;
  font-size: 13.5px;
}

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; }
.plain li:last-child { border: 0; }

.check-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ============================================================
   Auth (login / install)
   ============================================================ */
.auth-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(184,38,59,.08), transparent),
    radial-gradient(50% 50% at 80% 80%, rgba(184,38,59,.06), transparent),
    var(--bg);
  padding: 30px 20px;
}
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-lg);
}
.auth-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.auth-brand .brand-mark { background: var(--accent); color: #fff; }
.auth-brand .brand-mark span { color: #ffd3d3; }
.auth-brand .brand-text { color: var(--ink); font-size: 18px; }
.auth-brand .brand-text em { color: var(--accent); font-style: italic; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card > .muted { margin-bottom: 24px; }
.auth-footer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 18px; }
.auth-card .form { padding: 0; }
.auth-card .form .btn { width: 100%; justify-content: center; margin-top: 8px; padding: 11px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: relative; height: auto;
    flex-direction: row;
    padding: 14px 18px;
    gap: 16px;
    align-items: center;
    overflow-x: auto;
  }
  .sidebar-head, .sidebar-foot { padding: 0; border: 0; flex-shrink: 0; }
  .nav { flex-direction: row; margin: 0; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .nav-link.is-active { box-shadow: none; }
  .main { padding: 24px 20px 40px; }
  .form-grid { grid-template-columns: 1fr; padding: 20px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .type-switch { grid-template-columns: 1fr; }
}
