:root {
  --bg: #f3f6f4;
  --panel: #ffffff;
  --line: #e1e9e5;
  --text: #192a25;
  --muted: #71817a;
  --accent: #c5f36a;
  --accent-ink: #193328;
  --sidebar-bg: #17352e;
  --danger: #c65353;
  --ok: #23825a;
  --sidebar: 256px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI Variable", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: #26745a; text-decoration: none; }
a:hover { color: #174d3b; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8bbd55; outline-offset: 2px; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); background: var(--sidebar-bg); color: #f3f8f4; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 22px 14px 14px; z-index: 2; }
.brand { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 0 10px 20px; color: #f3f8f4; }
.brand:hover { color: #fff; }
.brand-mark, .overview-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; letter-spacing: 0; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { color: #a6bcb2; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; overflow: auto; }
.sidebar nav a { color: #c5d4cd; min-height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: 7px; font-weight: 550; transition: background .16s ease, color .16s ease; }
.sidebar nav a.active, .sidebar nav a:hover { background: #294b40; color: #fff; }
.sidebar nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.nav-label { color: #91a99e; padding: 17px 12px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.side-foot { margin-top: auto; padding: 14px 7px 0; border-top: 1px solid #345247; }
.workspace-note { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; }
.workspace-note strong, .workspace-note small { display: block; }
.workspace-note strong { font-size: 12px; font-weight: 600; }
.workspace-note small { color: #a6bcb2; margin-top: 3px; font-size: 11px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #315144; }
.main { margin-left: var(--sidebar); padding: 0 38px 48px; width: calc(100% - var(--sidebar)); min-width: 0; }
.top { min-height: 104px; display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.top-copy { display: grid; gap: 6px; }
.eyebrow { display: block; color: #77877f; font-size: 10px; font-weight: 750; letter-spacing: 1.15px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 25px; line-height: 1.2; margin: 0; letter-spacing: 0; }
h2 { font-size: 18px; line-height: 1.35; margin: 6px 0 0; letter-spacing: 0; }
.switcher { width: min(230px, 42%); display: grid; gap: 5px; }
.switcher label { margin: 0; color: var(--muted); font-size: 11px; }
.switcher select { width: 100%; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 9px 32px 9px 11px; }
.content { max-width: 1440px; margin: 0 auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: 0 2px 5px rgb(31 58 46 / 3%); }
.form-intro { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-intro p { max-width: 720px; margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.content-group { min-width: 0; margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; }
.content-group[hidden] { display: none; }
.content-group legend { padding: 0 7px; color: var(--text); font-size: 13px; font-weight: 750; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 450; }
.publishing-group { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stats-grid { margin-bottom: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brand-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.brand-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgb(31 58 46 / 6%); }
.brand-card img { display: block; width: 100%; height: 108px; object-fit: cover; }
.brand-card div { display: grid; gap: 3px; padding: 12px; }
.brand-card strong { font-size: 13px; }
.brand-card small { color: var(--muted); }
.brand-swatch { width: 28px; height: 10px; border-radius: 99px; margin-bottom: 6px; }
.thumb { width: 92px; height: 58px; object-fit: cover; border-radius: 8px; display: block; }
.stat { min-height: 137px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.stat-label, .detail-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat strong { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: 25px; line-height: 1.2; }
.stat-note { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.stat-divider { color: #a9b7b0; font-weight: 400; padding: 0 3px; }
.muted { color: var(--muted); }
.dashboard-intro { min-height: 136px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; margin-bottom: 18px; border-radius: 8px; background: #e3eee8; }
.dashboard-intro h2 { font-size: 22px; }
.dashboard-intro p { color: #60736a; margin: 7px 0 0; }
.overview-mark { width: 54px; height: 54px; border-radius: 15px; font-size: 15px; flex: 0 0 auto; }
.site-panel { padding: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.text-link { font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-link span { padding-left: 4px; }
.site-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 18px; }
.site-details > div { display: grid; gap: 7px; min-width: 0; }
.site-details strong { overflow-wrap: anywhere; font-size: 13px; }
.empty-site { padding: 26px; }
.empty-site p { color: var(--muted); margin: 8px 0 18px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: #75857d; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .65px; background: #f7f9f8; }
td { color: #34453e; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8faf9; }
.card:has(table) { padding: 8px 12px; overflow-x: auto; }
.card > p:first-child { margin-top: 0; }
label { display: block; color: #4c5f56; font-size: 12px; font-weight: 650; margin: 16px 0 6px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], textarea, select {
  width: 100%; background: #fff; color: var(--text); border: 1px solid #d7e1db; border-radius: 6px; padding: 10px 11px; font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { border-color: #74a88b; box-shadow: 0 0 0 3px rgb(91 145 112 / 12%); outline: none; }
input[type=file] { width: 100%; padding: 8px 0; }
label .thumb { margin: 8px 0; }
textarea { min-height: 110px; resize: vertical; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-actions { flex-wrap: nowrap; gap: 6px; }
.table-actions form { margin: 0; }
.table-actions .btn { min-height: 32px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 38px; border: 1px solid transparent; border-radius: 6px; padding: 8px 13px; font: inherit; cursor: pointer; background: #214d3c; color: #fff; font-weight: 700; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.btn:hover { background: #173b2d; color: #fff; }
.btn.ghost { background: transparent; color: #315746; border-color: #c8d7cf; }
.btn.ghost:hover { background: #f0f6f2; }
.side-foot .btn.ghost { color: #dce9e2; border-color: #49665a; }
.side-foot .btn.ghost:hover { background: #294b40; }
.btn.danger { background: #fff; color: var(--danger); border-color: #eccdcd; }
.btn.danger:hover { background: #fff4f4; }
.flash { background: #e7f5ec; color: #236545; border: 1px solid #c9e8d4; padding: 12px 14px; border-radius: 7px; margin: 0 auto 18px; max-width: 1440px; }
.errors { background: #fff0f0; color: #9a3434; border: 1px solid #f1cccc; padding: 12px 14px; border-radius: 7px; margin: 0 auto 18px; max-width: 1440px; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); background: var(--bg); }
.login-aside { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 40px 48px; background: linear-gradient(145deg, #17352e, #22513f); color: #f3f8f4; }
.login-aside::before { position: absolute; inset: 0; z-index: -1; content: ""; opacity: .17; background: repeating-linear-gradient(135deg, transparent 0 28px, rgb(255 255 255 / 10%) 28px 29px); mask-image: linear-gradient(130deg, #000, transparent 76%); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-aside-copy { max-width: 470px; margin: auto 0; padding: 70px 0; }
.login-aside-copy .eyebrow { color: #b2c8bc; }
.login-aside-copy h2 { margin-top: 18px; font-size: 46px; line-height: 1.12; }
.login-aside-copy p { max-width: 360px; margin: 16px 0 0; color: #c5d4cd; font-size: 15px; line-height: 1.65; }
.login-aside-foot { display: flex; align-items: center; gap: 10px; color: #c5d4cd; font-size: 12px; }
.login-main { display: grid; place-items: center; min-width: 0; padding: 48px; }
.login-card { width: min(410px, 100%); padding: 0; border: 0; background: transparent; box-shadow: none; }
.login-heading { margin-bottom: 28px; }
.login-card h1 { margin: 9px 0 7px; font-size: 32px; }
.login-card p { margin-bottom: 0; }
.login-card .errors { margin-bottom: 18px; }
.login-card .login-submit { width: 100%; min-height: 46px; margin-top: 22px; }
.login-card .login-footnote { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.check input { width: auto; accent-color: #286448; }
.switcher select { margin: 0; }
.side-foot form .btn { width: 100%; }
@media (max-width: 1100px) {
  .brand-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --sidebar: 220px; }
  .main { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 700px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { min-height: 0; padding: 24px; }
  .login-aside-copy { padding: 34px 0 22px; }
  .login-aside-copy h2 { font-size: 32px; }
  .login-aside-copy p { margin-top: 10px; font-size: 13px; }
  .login-aside-foot { display: none; }
  .login-main { min-height: 470px; padding: 42px 24px; }
  .login-card h1 { font-size: 28px; }
  .sidebar { position: static; width: 100%; padding: 14px 12px 10px; }
  .layout { display: block; }
  .brand { min-height: 44px; padding: 0 6px 12px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px 0 10px; }
  .sidebar nav a { min-height: 38px; justify-content: center; padding: 0 5px; text-align: center; font-size: 12px; }
  .sidebar nav a.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .nav-label { grid-column: 1 / -1; padding: 9px 4px 2px; }
  .side-foot { display: flex; justify-content: flex-end; padding: 10px 0 0; }
  .workspace-note { display: none; }
  .side-foot form .btn { width: auto; min-height: 34px; }
  .main { margin: 0; padding: 0 16px 32px; width: 100%; }
  .top { min-height: 86px; margin-bottom: 20px; gap: 12px; }
  h1 { font-size: 21px; }
  .switcher { width: min(190px, 48%); }
  .grid, .stats-grid, .brand-board { grid-template-columns: 1fr; }
  .stats-grid { gap: 10px; }
  .stat { min-height: 112px; }
  .dashboard-intro { min-height: 130px; padding: 20px; }
  .dashboard-intro h2 { font-size: 19px; }
  .dashboard-intro p { max-width: 440px; line-height: 1.5; }
  .site-details { grid-template-columns: 1fr; gap: 15px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) {
  .login-aside { padding: 20px; }
  .login-aside-copy { padding: 26px 0 14px; }
  .login-main { min-height: 430px; padding: 34px 20px; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .switcher { width: 100%; }
  .dashboard-intro { padding: 17px; }
  .overview-mark { width: 42px; height: 42px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .card { padding: 16px; }
}
