﻿/* Same look as the Image Finder app: dark first, near-black surfaces, hairline borders, one warm orange gradient */
/* SEO page and the SEO box in the blog editor */
.seo-box { border-radius: 14px; background: var(--panel2); padding: 14px 16px; margin: 6px 0 14px; }
.seo-checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.seo-checks li { display: flex; gap: 8px; }
.seo-checks li b { width: 16px; color: #ff8a3d; flex: none; }
.seo-checks li.ok { opacity: .6; } .seo-checks li.ok b { color: #3ecf8e; }
.seo-checks small { display: block; opacity: .75; }
.seo-in { height: 40px; padding: 0 12px; border-radius: 10px; border: 0; outline: 0; background: var(--panel2); color: inherit; font: inherit; }
.seo-in:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.serp { border-radius: 12px; background: var(--panel2); padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 3px; max-width: 640px; }
/* SEO agent */
.ag-status { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text2); }
.ag-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.ag-dot.busy { background: var(--accent); animation: agPulse 1.1s ease-in-out infinite; }
@keyframes agPulse { 50% { opacity: .3; transform: scale(.7); } }
.ag-sum { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--text2); white-space: pre-wrap; }
.ag-ask { width: 100%; min-height: 64px; padding: 12px; border-radius: 12px; border: 0; outline: 0; background: var(--panel2); color: inherit; font: inherit; resize: vertical; }
.ag-ask:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.ag-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.ag-ideas button { padding: 5px 11px; border-radius: 99px; background: var(--panel2); color: var(--text2); font-size: 12.5px; }
.ag-ideas button:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.ag-list { display: grid; gap: 10px; }
.ag-task { border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); padding: 14px 16px; display: grid; gap: 8px; }
.ag-task h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ag-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.ag-why { margin: 0; font-size: 13.5px; color: var(--text2); line-height: 1.5; }
.ag-kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--panel2); font-size: 13px; }
.ag-kv dt { color: var(--muted); } .ag-kv dd { margin: 0; word-break: break-word; }
.ag-steps { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.ag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ag-row .seo-in { flex: 1; min-width: 200px; height: 34px; }
.ag-res { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--panel2); font-family: inherit; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
.ag-h { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.ag-h h2 { margin: 0; font-size: 16px; }
.serp-url { font-size: 12px; opacity: .7; } .serp-t { font-size: 18px; color: #8ab4f8; font-weight: 500; } .serp-d { font-size: 13px; opacity: .85; }
:root {
  --bg: #0b0b0d; --side: #111114; --panel: #151518; --panel2: #1b1b1f; --hover: rgba(255,255,255,.05);
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12); --text: #ececf1; --text2: #b7b7c0; --muted: #7c7c87;
  --accent: #ff7a3d; --accent-soft: rgba(255,122,61,.14); --accent-text: #ff8a50; --grad: linear-gradient(135deg, #ff8a3d, #f0463c);
  --green: #3ecf8e; --green-soft: rgba(62,207,142,.12); --amber: #f2b33d; --amber-soft: rgba(242,179,61,.13);
  --red: #ff5c5c; --red-soft: rgba(255,92,92,.12); --blue: #6a9cff; --blue-soft: rgba(106,156,255,.12); --grey-soft: rgba(255,255,255,.07);
  --wa: #25d366; --shadow-sm: none; --shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px var(--line2);
  --r: 14px; --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff; --side: #f5f5f7; --panel: #ffffff; --panel2: #f5f5f7; --hover: rgba(0,0,0,.05);
  --line: rgba(0,0,0,.07); --line2: rgba(0,0,0,.11); --text: #1d1d1f; --text2: #424245; --muted: #86868b;
  --accent: #f26b2c; --accent-soft: rgba(242,107,44,.10); --accent-text: #c9501a;
  --green: #17a34a; --green-soft: rgba(23,163,74,.11); --amber: #d98a04; --amber-soft: rgba(217,138,4,.13);
  --red: #e0352b; --red-soft: rgba(224,53,43,.10); --blue: #2f6fec; --blue-soft: rgba(47,111,236,.10); --grey-soft: rgba(0,0,0,.06);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.05); --shadow: 0 4px 12px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code, .mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 14.5px; font-weight: 600; margin: 0; }
.phead p { margin: 4px 0 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link { color: var(--accent-text); font-size: 13px; font-weight: 500; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 10px;
  font-weight: 550; font-size: 13.5px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2), var(--shadow-sm); white-space: nowrap;
  transition: background .15s, transform .15s var(--ease), filter .15s; }
.btn:hover { background: var(--panel2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: none; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.wa { background: var(--wa); color: #05270f; box-shadow: none; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.wide { width: 100%; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--muted); font-size: 20px; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 550; color: var(--text2); }
.field input, .field textarea, .select { height: 40px; padding: 0 12px; border-radius: 10px; border: 0; outline: 0; background: var(--panel2);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; width: 100%; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .select:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); }
.select { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a93' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.toolbar .select { width: auto; height: 38px; }
.field-label { font-size: 12.5px; font-weight: 550; color: var(--text2); margin-bottom: 8px; }
.form-error { color: var(--red); font-size: 13px; min-height: 0; margin: -4px 0 10px; }
.form-error:empty { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* ---------------------------------------------------------------- sign in */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px;
  background: var(--bg); }
.auth-card { width: min(400px, 100%); padding: 32px 28px 28px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow);  }
.auth-card h1 { margin-top: 26px; font-size: 22px; }
.auth-card > p { margin: 6px 0 22px; }

/* ---------------------------------------------------------------- layout */
.shell { display: flex; min-height: 100%; }
.side { position: sticky; top: 0; height: 100vh; width: 240px; flex: none; display: flex; flex-direction: column; padding: 20px 12px 14px;
  background: var(--side); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.brand b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: -1px; }
.logo { width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: #111 url("/site/logo.png") center/cover; }
.brand.big .logo { width: 42px; height: 42px; border-radius: 12px; }
.brand.big { padding: 0; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--text2); font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.menu a svg { color: var(--muted); }
.menu a:hover { background: var(--hover); color: var(--text); }
.menu a.on { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.menu a.on svg { color: var(--accent); }
.mcount { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.ghost-row { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--text2); }
.ghost-row:hover { background: var(--hover); }
.ghost-row svg { color: var(--muted); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 4px 0 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.who > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 650; }
.main { flex: 1; min-width: 0; padding: 30px 36px 60px; }
.page { display: none; max-width: 1280px; margin: 0 auto; }
.page.on { display: block; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--panel); border-radius: var(--r); padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { padding: 16px 18px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); cursor: pointer; transition: box-shadow .15s; }
.kpi:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.kpi .k-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 550; }
.kpi .k-dot { width: 8px; height: 8px; border-radius: 50%; }
.kpi .k-num { font-size: 28px; font-weight: 650; letter-spacing: -.02em; margin-top: 8px; }
.kpi .k-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ov-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.ov-grid .span2 { grid-column: span 1; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set-grid .span2 { grid-column: 1 / -1; }
.set-grid form .btn { margin-top: 4px; }

/* chart */
.chart { height: 210px; display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bars i { width: min(14px, 40%); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.bars i.a { background: var(--accent); }
.bars i.m { background: var(--line2); }
.bar-col small { font-size: 11px; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 3px; margin-left: 8px; }
.lg-a { background: var(--accent); } .lg-m { background: var(--line2); }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; flex: none; }
.donut-legend { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 120px; }
.donut-legend div { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.donut-legend div:hover { color: var(--accent-text); }
.donut-legend i { width: 9px; height: 9px; border-radius: 3px; }
.donut-legend b { margin-left: auto; font-weight: 600; }

/* ---------------------------------------------------------------- toolbar, chips, search */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.chips button { height: 31px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text2); display: flex; align-items: center; gap: 7px; }
.chips button:hover { color: var(--text); }
.chips button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08), inset 0 0 0 1px var(--line); }
.chips button b { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }

/* ---------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 550; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
td .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.keycell { display: inline-flex; align-items: center; gap: 4px; font-family: "Cascadia Mono", Consolas, monospace; font-size: 13px; font-weight: 500; white-space: nowrap; }
.copy { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 7px; color: var(--muted); opacity: 0; transition: opacity .15s, background .15s; }
tr:hover .copy, .copy.show { opacity: 1; }
.copy:hover { background: var(--hover); color: var(--text); }
.copy svg { width: 14px; height: 14px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.active { color: var(--green); background: var(--green-soft); }
.pill.expiring { color: var(--amber); background: var(--amber-soft); }
.pill.expired { color: var(--red); background: var(--red-soft); }
.pill.unused { color: var(--blue); background: var(--blue-soft); }
.pill.revoked { color: var(--muted); background: var(--grey-soft); }
.days { font-size: 12px; color: var(--muted); }
.days.warn { color: var(--amber); } .days.bad { color: var(--red); }
.meter { display: inline-block; width: 46px; height: 5px; border-radius: 5px; background: var(--line2); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }

/* events */
.events { display: flex; flex-direction: column; }
.ev { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--panel2); color: var(--muted); }
.ev-ico svg { width: 15px; height: 15px; }
.ev-ico.activated { background: var(--green-soft); color: var(--green); }
.ev-ico.created { background: var(--accent-soft); color: var(--accent-text); }
.ev-ico.extended, .ev-ico.restored { background: var(--blue-soft); color: var(--blue); }
.ev-ico.revoked, .ev-ico.refused, .ev-ico.deleted { background: var(--red-soft); color: var(--red); }
.ev-ico.payment { background: var(--green-soft); color: var(--green); }
.kpis.kpis3 { grid-template-columns: repeat(3, 1fr); }
.kpis3 .kpi { cursor: default; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 10px; }
.grid4 { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1fr; gap: 0 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.ev-ico.pc_removed { background: var(--amber-soft); color: var(--amber); }
.ev-text { flex: 1; min-width: 0; font-size: 13px; }
.ev-text small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }

/* ---------------------------------------------------------------- analytics */
.kpis.kpis6 { grid-template-columns: repeat(6, 1fr); }
.kpis6 .kpi { cursor: default; }
.kpi .k-num small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--text2); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-pill.on i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); padding: 0; }
.chips.sm button { height: 27px; padding: 0 10px; font-size: 12.5px; }
.map-card { padding: 16px 16px 10px; margin-bottom: 14px; }
.map { height: 440px; border-radius: 12px; overflow: hidden; background: var(--panel2); z-index: 0; }
.map-note { margin: 8px 2px 0; }
.leaflet-container { font: 12.5px/1.45 "Inter", "Segoe UI", system-ui, sans-serif; background: var(--panel2) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel) !important; color: var(--text) !important; box-shadow: var(--shadow) !important; }
.leaflet-popup-content { margin: 12px 14px !important; }
.leaflet-popup-content b { font-size: 13.5px; }
.leaflet-control-attribution { background: rgba(0,0,0,.35) !important; color: #aaa !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #ccc !important; }
:root[data-theme="light"] .leaflet-control-attribution { background: rgba(255,255,255,.7) !important; color: #666 !important; }
.leaflet-bar a { background: var(--panel) !important; color: var(--text) !important; border-color: var(--line2) !important; }
.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.an-grid .span2 { grid-column: span 2; }
.line-chart { height: 220px; position: relative; }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.line-chart .tip { position: absolute; pointer-events: none; padding: 8px 10px; border-radius: 9px; background: var(--panel2); box-shadow: var(--shadow); font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); }
.lg-l { background: var(--blue); }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fstep { position: relative; padding: 9px 12px; border-radius: 10px; background: var(--panel2); overflow: hidden; display: flex; justify-content: space-between; font-size: 13px; }
.fstep i { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); }
.fstep span, .fstep b { position: relative; }
.fstep small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.fstep.star { box-shadow: inset 0 0 0 1.5px var(--green); font-weight: 650; }
.fstep.star i { background: var(--green-soft); }
.act-card { margin-bottom: 14px; }
.act-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 16px; }
.act-top .kpi { cursor: default; background: var(--panel2); box-shadow: none; }
.act-top .kpi:first-child { background: var(--green-soft); }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.adots { display: inline-flex; gap: 4px; vertical-align: middle; }
.adot { width: 9px; height: 9px; border-radius: 50%; background: var(--grey-soft); box-shadow: inset 0 0 0 1px var(--line2); }
.adot.on { background: var(--accent); box-shadow: none; }
.adot.star.on { background: var(--green); }
@media (max-width: 760px) { .act-top { grid-template-columns: 1fr 1fr; } .act-grid { grid-template-columns: 1fr; } }
.bars-list { display: flex; flex-direction: column; gap: 7px; }
.bl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 13px; cursor: pointer; }
.bl:hover span { color: var(--accent-text); }
.bl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl b { font-weight: 600; }
.bl em { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bl em i { display: block; height: 100%; border-radius: 5px; background: var(--grad); }
.card-head.pad { padding: 16px 20px 0; margin-bottom: 10px; }
.app-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.app-stats div { padding: 10px; border-radius: 10px; background: var(--panel2); }
.app-stats b { display: block; font-size: 19px; }
.app-stats span { font-size: 11.5px; color: var(--muted); }
.ev-kind { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--grey-soft); color: var(--text2); white-space: nowrap; }
.ev-kind.admin { background: var(--accent-soft); color: var(--accent-text); }
.ev-kind.website, .ev-kind.signup { background: var(--blue-soft); color: var(--blue); }
.ev-kind.app { background: var(--green-soft); color: var(--green); }
.ev-kind.failed { background: var(--red-soft); color: var(--red); }
/* blog editor */
.editor textarea { min-height: 320px; font-family: "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.6; }
.md-preview { padding: 14px 16px; border-radius: 12px; background: var(--panel2); line-height: 1.7; color: var(--text2); max-height: 420px; overflow-y: auto; }
.md-preview h2, .md-preview h3 { color: var(--text); margin: 14px 0 6px; }
.md-preview blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.md-preview img { max-width: 100%; border-radius: 8px; }
.cover-prev { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
@media (max-width: 1100px) { .kpis.kpis6 { grid-template-columns: repeat(3, 1fr); } .an-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .kpis.kpis6 { grid-template-columns: 1fr 1fr; } .an-grid { grid-template-columns: 1fr; } .an-grid .span2 { grid-column: auto; } .map { height: 320px; } }

/* ---------------------------------------------------------------- side sheet */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.28); animation: fade .2s; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(520px, 100%); background: var(--panel); box-shadow: var(--shadow); animation: slide .18s ease-out; display: flex; flex-direction: column; }
.sheet-body { flex: 1; overflow-y: auto; padding: 22px 24px 30px; }
.sh-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.sh-head .t { flex: 1; min-width: 0; }
.sh-head h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.sh-key { font-family: "Cascadia Mono", Consolas, monospace; font-size: 20px; font-weight: 500; letter-spacing: .02em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.fact { padding: 12px 14px; border-radius: 12px; background: var(--panel2); }
.fact span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 550; }
.fact b { display: block; font-weight: 600; margin-top: 3px; font-size: 14px; overflow-wrap: anywhere; }
#supTable td:first-child { min-width: 220px; }
.logbox { max-height: 360px; overflow: auto; margin: 0; padding: 12px; border-radius: 12px; background: var(--panel2);
  font: 11.5px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.sec { margin: 22px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.sec h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pcs .pc { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: var(--panel2); margin-bottom: 6px; }
.pc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); color: var(--text2); flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.pc .t { flex: 1; min-width: 0; }
.pc .t b { display: block; font-weight: 600; }
.pc .t small { color: var(--muted); font-size: 12px; }
.slot { padding: 12px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--muted); font-size: 13px; text-align: center; }
.cust-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: var(--panel2); cursor: pointer; }
.cust-link:hover { background: var(--hover); }
.cust-link .t { flex: 1; min-width: 0; }
.cust-link small { color: var(--muted); font-size: 12px; display: block; }
.ext-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ext-row input[type=date] { height: 32px; padding: 0 8px; border-radius: 9px; border: 0; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.35); animation: fade .2s; }
.modal-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 24px; border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); animation: fade .15s; }
.modal-card .card-head h2 { font-size: 17px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.modal-foot .muted { margin-right: auto; }
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; }
.plans button { padding: 10px 4px; border-radius: 11px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: box-shadow .15s, background .15s; }
.plans button b { display: block; font-size: 13px; font-weight: 600; }
.plans button small { font-size: 11.5px; color: var(--muted); }
.plans button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.made-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; margin-bottom: 10px; }
.made-list .mk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--panel2); }
.made-list .mk code { flex: 1; font-size: 15px; }
.plan-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.keybox { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); }
.keybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 11px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow); animation: rise .3s var(--ease); max-width: min(520px, calc(100vw - 32px)); }
.toast.err { background: var(--red); color: #fff; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .side { position: static; height: auto; width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 8px 0 0; }
  .menu { flex-direction: row; overflow-x: auto; order: 3; width: 100%; }
  .menu a { flex: none; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; }
  .ghost-row span, .who > span:nth-child(2) { display: none; }
  .who { border-top: 0; padding: 0; }
  .main { padding: 20px 16px 50px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .set-grid, .grid2, .grid3, .grid4, .facts, .kpis.kpis3 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .hide-sm { display: none; }
  td .avatar { display: none; }
  th, td { padding: 10px 12px; }
}

/* light on weak graphics: no motion at all when Windows animations are turned off */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.map.dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.6); }
.leaflet-container svg { width: auto; height: auto; stroke-width: initial; }
/* map stages, people pins, exact places */
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#mapLayer button b { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.ppin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  background: color-mix(in srgb, var(--c) 55%, #000); border: 2px dashed var(--c); opacity: .85; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.ppin.exact { background: var(--c); border: 2px solid #fff; opacity: 1; }
.ppin:hover { transform: scale(1.12); }
.exact-tag { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; background: var(--green-soft); color: var(--green); margin-right: 4px; }
.loc-card { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.loc-card.exact { box-shadow: inset 0 0 0 1px var(--green); }
.loc-card > span { font-size: 12.5px; color: var(--muted); }
.mini-map { height: 190px; border-radius: 10px; overflow: hidden; margin-top: 8px; z-index: 0; }
.mini-map.dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.6); }

/* app updates: feature switches */
.feat { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.feat:first-child { border-top: 0; }
.feat span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.feat small { color: var(--muted); font-size: 12px; }
.tgl { appearance: none; flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line2); position: relative; cursor: pointer; transition: background .2s; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tgl:checked { background: var(--accent); }
.tgl:checked::after { transform: translateX(16px); }
.ghrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--panel2); font-size: 13.5px; }
.ghrow code { font-size: 12px; color: var(--muted); }

.field[hidden], .btn[hidden] { display: none; }

/* ---------------------------------------------------------------- social media */
.so-acc { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.so-card { padding: 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.so-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.so-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.so-ico.youtube { background: #ff0033; } .so-ico.instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.so-ico.facebook { background: #1877f2; } .so-ico.pinterest { background: #e60023; } .so-ico.x { background: #000; box-shadow: inset 0 0 0 1px #444; }
.so-ico.linkedin { background: #0a66c2; }
.so-campbar { gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.so-campbar .select { width: auto; min-width: 220px; }
.so-state { font-size: 13px; } .so-state.on { color: #3ecf8e; } .so-state.off { color: var(--muted); }
.so-steps { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text2); display: grid; gap: 4px; }
.so-redirect { display: flex; gap: 6px; align-items: center; font-size: 12px; } .so-redirect code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 8px; border-radius: 8px; background: var(--panel2); }
.so-list { display: grid; gap: 10px; }
.so-day { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 2px; }
.so-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.so-row:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.so-thumb { width: 74px; height: 50px; border-radius: 9px; background: var(--panel2) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 11px; overflow: hidden; }
.so-thumb video { width: 100%; height: 100%; object-fit: cover; }
.so-row b { display: block; } .so-row .sub { font-size: 12.5px; color: var(--muted); }
.so-plats { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.so-plats .so-ico { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; position: relative; }
.so-plats .so-ico.ok::after, .so-plats .so-ico.error::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--panel); }
.so-plats .so-ico.ok::after { background: #3ecf8e; } .so-plats .so-ico.error::after { background: #f0463c; }
.so-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.so-drop { position: relative; display: grid; place-items: center; min-height: 150px; border-radius: 14px; border: 1.5px dashed var(--line2); background: var(--panel2); text-align: center; font-size: 13px; color: var(--muted); overflow: hidden; cursor: pointer; }
.so-drop img, .so-drop video { width: 100%; max-height: 260px; object-fit: contain; background: #000; }
.so-drop input { display: none; }
.so-prog { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); width: 0; transition: width .2s; }
.so-info { font-size: 12px; color: var(--muted); margin-top: 4px; }
.so-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.so-tab { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; cursor: pointer; opacity: .55; }
.so-tab.on { opacity: 1; } .so-tab.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.so-tab .so-ico { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
.so-pane { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--panel2); }
.so-count { float: right; font-size: 12px; color: var(--muted); } .so-count.bad { color: #f0463c; }
.so-when { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.so-when .btn { height: 36px; }
.so-res { display: grid; gap: 6px; font-size: 13px; }
.so-res div { display: flex; gap: 8px; align-items: center; } .so-res .err { color: #f0463c; }
.so-note { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; line-height: 1.5; }
@media (max-width: 700px) { .so-media { grid-template-columns: 1fr; } .so-row { grid-template-columns: 56px 1fr; } .so-plats { grid-column: 1 / -1; justify-content: flex-start; } }
.so-card, .so-card > *, .so-card details, .so-card form { min-width: 0; }
.so-card details { display: block; overflow: hidden; } .so-card details > * + * { margin-top: 10px; } .so-card details[open] summary { margin-bottom: 8px; }
.so-acc { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.so-card .field input { width: 100%; }
#soForm textarea, .so-pane textarea { font: inherit; font-size: 14px; line-height: 1.5; }
#soForm textarea[name="text"] { min-height: 120px; }

/* ---------------------------------------------------------------- prices by country */
.cc-fx { margin: 4px 0 10px; color: var(--muted); } .cc-fx .bad { color: #f0463c; }
.cc-add { display: grid; gap: 8px; max-width: 900px; margin-bottom: 12px; padding: 12px; border-radius: 12px; background: var(--panel2); }
.cc-regions { flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-list { display: grid; gap: 8px; margin-bottom: 14px; }
.cc-row2 { display: grid; grid-template-columns: minmax(150px, 1.2fr) 150px 120px 120px minmax(220px, 2.4fr) 34px; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.cc-row2 .select { width: 100%; min-width: 0; }
.cc-name { display: flex; align-items: center; gap: 6px; min-width: 0; } .cc-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-name small { margin-left: auto; }
.cc-prices { display: flex; gap: 8px; flex-wrap: nowrap; min-width: 0; } .cc-prices .field { margin: 0; flex: 1; min-width: 70px; display: grid; gap: 2px; } .cc-prices .field span { font-size: 11.5px; } .cc-prices .field input { height: 34px; }
.cc-pv { display: flex; gap: 14px; flex-wrap: wrap; } .cc-pv span { display: grid; } .cc-pv small { color: var(--muted); font-size: 11.5px; } .cc-pv .bad { color: #f0463c; }
@media (max-width: 1100px) { .cc-row2 { grid-template-columns: 1fr 1fr 34px; } .cc-row2 .cc-prices { grid-column: 1 / -1; } .cc-row2 .cc-name { grid-column: 1 / -2; } }
