/* ====================================================================
   OMNI — minimalist control panel & marketing site
   Theme: warm, calm, lots of whitespace (Claude-like). Brand: OMNI navy.
   ==================================================================== */

/* ---- language menu ---- */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 13px; font-weight: 600;
}
.lang-btn:hover { background: var(--surface-2); }
.lang-menu {
  display: none; position: absolute; right: 0; top: 48px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 6px; min-width: 200px; max-width: 260px;
  max-height: min(72vh, 460px); overflow-y: auto;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  color: var(--ink); padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.active { background: var(--surface-2); font-weight: 600; }
.lang-menu .lang-more-toggle {
  font-weight: 600; color: var(--muted); margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--line); border-radius: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.lang-menu .lang-more-toggle::after { content: "▾"; font-size: 11px; opacity: .7; }
.lang-more { display: none; margin-top: 4px; }
.lang-more.open { display: block; }
/* tidy scrollbar inside the language menu */
.lang-menu::-webkit-scrollbar { width: 8px; }
.lang-menu::-webkit-scrollbar-track { background: var(--scroll-track); }
.lang-menu::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; }
.lang-menu::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
@media (max-width: 680px) {
  .lang-menu { position: fixed; right: 12px; left: auto; top: 64px; min-width: 220px; max-height: 70vh; }
}
/* RTL languages (Arabic, Persian, Hebrew, Urdu) */
html[dir="rtl"] .lang-menu button,
html[dir="rtl"] .side nav button,
html[dir="rtl"] .side-foot .navlike { text-align: right; }

/* ---- dashboard slot bar + sub-tabs ---- */
.slotbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.slotbar .slot-name { flex: 1; min-width: 160px; max-width: 280px; }
.slotbar .ok { color: var(--good); font-size: 13px; font-weight: 600; opacity: 0; transition: .2s; }
.slotbar .ok.show { opacity: 1; }
.slot-current-pill {
  min-height: 36px; display: inline-flex; align-items: center; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
  color: var(--ink-soft); font-size: 13px; font-weight: 650;
}
.nav-slot-wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 3px; align-items: center; }
.side nav .nav-slot-wrap > button.nav-slot-main { min-width: 0; }
.side nav .nav-slot-toggle {
  width: 34px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 10px;
  background: transparent; border: 0; color: var(--muted);
}
.side nav .nav-slot-toggle:hover,
.side nav .nav-slot-toggle.open { background: var(--surface-2); color: var(--ink); }
.side nav .nav-slot-toggle .icon { width: 16px; height: 16px; transition: transform .16s; }
.side nav .nav-slot-toggle.open .icon { transform: rotate(180deg); }
.nav-slot-menu {
  grid-column: 1 / -1; margin: 0;
  max-height: 0; overflow: hidden; padding: 0 6px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: none;
  opacity: 0; transform: translateY(-4px); visibility: hidden; pointer-events: none;
  transition: max-height .24s ease, opacity .18s ease, transform .24s ease,
    margin .24s ease, padding .24s ease, border-color .24s ease,
    box-shadow .24s ease, visibility 0s linear .24s;
}
.nav-slot-menu.open {
  margin: 4px 0 6px;
  max-height: 280px; padding: 6px;
  border-color: var(--line-strong); box-shadow: var(--shadow-sm);
  opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
  transition: max-height .26s ease, opacity .18s ease, transform .26s ease,
    margin .26s ease, padding .26s ease, border-color .26s ease,
    box-shadow .26s ease, visibility 0s;
}
.nav-slot-menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft);
  font-size: 13px; font-weight: 600; text-align: left;
}
.nav-slot-menu button:hover,
.nav-slot-menu button.active { background: var(--surface-2); color: var(--ink); }
.slot-check { color: var(--good); font-weight: 800; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.subtabs button {
  border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 550;
  padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s;
}
.subtabs button:hover { color: var(--ink); }
.subtabs button.active { color: var(--ink); border-bottom-color: var(--accent-2); }

/* ---- dict (styles/reminders) editor ---- */
.dict { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: start; }
.kv .kv-text { min-height: 60px; }
.kv .btn { margin-top: 2px; }
@media (max-width: 680px){ .kv { grid-template-columns: 1fr; } }

/* ---- profile rows ---- */
.prof-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.prof-row:first-of-type { border-top: 0; }
.prof-row .prof-k { color: var(--muted); }
.prof-row .prof-v { font-weight: 600; text-align: right; }

/* ---- support tickets ---- */
.ticket-blocked {
  margin-bottom: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--bad) 28%, var(--line));
  border-radius: var(--radius-sm); background: var(--bad-bg); color: var(--bad); font-size: 13.5px;
}
.ticket-chat, .admin-chat {
  display: flex; flex-direction: column; gap: 12px;
}
.ticket-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.ticket-head span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ticket-messages {
  max-height: 360px; overflow-y: auto; padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg);
}
.ticket-messages.compact { max-height: 280px; margin-top: 10px; }
.ticket-msg {
  width: min(78%, 620px); margin: 0 0 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.ticket-msg.own { margin-left: auto; background: color-mix(in srgb, var(--accent-2) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent-2) 28%, var(--line)); }
.ticket-msg.system { width: 100%; text-align: center; color: var(--muted); background: var(--surface-2); border-style: dashed; }
.ticket-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.ticket-text { white-space: pre-wrap; font-size: 14px; }
.ticket-shot { max-width: min(100%, 360px); max-height: 240px; object-fit: contain; margin-top: 8px; border-radius: 8px; border: 1px solid var(--line); }
.ticket-file {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2);
  color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; max-width: 100%;
}
.ticket-file:hover { border-color: var(--line-strong); }
.ticket-file .icon { width: 15px; height: 15px; }
.ticket-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-origin {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; vertical-align: middle;
  background: color-mix(in srgb, var(--accent-2) 14%, var(--surface)); color: var(--ink-soft);
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--line));
}
.ticket-origin.bot {
  background: color-mix(in srgb, var(--good) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--good) 32%, var(--line));
}
.ticket-closed-note {
  margin: 8px 0; padding: 8px 11px; border-radius: var(--radius-sm); font-size: 12.5px;
  color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line);
}
.admin-history-h { margin-top: 16px; }
.ticket-history { margin-top: 18px; }
.ticket-history h4 { margin: 0 0 8px; font-size: 14px; }
.ticket-history details { border-top: 1px solid var(--line); padding: 10px 0; }
.ticket-history summary { cursor: pointer; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.ticket-empty { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); text-align: center; }
.ticket-ok { margin-top: 10px; color: var(--good); font-size: 13px; font-weight: 700; }
.ticket-nav-badge { margin-left: auto; color: var(--bad); font-weight: 800; display: none; }
.ticket-nav-badge.show { display: inline; }

/* ---- admin tickets ---- */
.admin-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-ticket-list {
  position: sticky; top: 92px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.admin-ticket-list h3 { font-size: 15px; margin-bottom: 10px; }
.admin-ticket-list button {
  width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 10px;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  text-align: left;
}
.admin-ticket-list button:hover,
.admin-ticket-list button.active { background: var(--surface-2); border-color: var(--line); }
.admin-ticket-list small,
.admin-ticket-list em { display: block; color: var(--muted); font-size: 12px; font-style: normal; margin-top: 2px; }
.admin-ticket-list b { color: var(--bad); white-space: nowrap; }
.admin-user-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px;
}
.admin-user-summary span { color: var(--muted); }
.admin-tools { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.admin-tool-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.admin-tool-row .input, .admin-tool-row .select { width: 100%; }
#notify-stack { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.notify-toast {
  padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-md); animation: notifyIn .2s ease;
}
.notify-toast strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.notify-toast span { display: block; color: var(--muted); font-size: 13px; }
.notify-toast.hide { opacity: 0; transform: translateY(8px); transition: .25s ease; }
@keyframes notifyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-ticket-list { position: static; }
  .admin-tool-row { grid-template-columns: 1fr; }
  .ticket-msg { width: 100%; }
}

/* ---- folders ---- */
.folder { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.folder-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.folder-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.folder-priority { display: inline-flex; align-items: center; gap: 6px; }
.folder-priority.active { color: var(--good); border-color: color-mix(in srgb, var(--good) 42%, var(--line)); background: var(--good-bg); }
.param-subsection { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.param-subsection h4 { font-size: 14px; margin-bottom: 6px; }
.param-subsection .desc { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.link-chip { border-radius: var(--radius-sm); max-width: 100%; }
.link-chip.priority { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); background: var(--good-bg); }
.link-chip .chip-text { overflow-wrap: anywhere; }
.chip-icon { display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted); padding: 0; }
.chip-icon .icon { width: 14px; height: 14px; }
.chip-icon.active { color: var(--good); }
.search-results { display: flex; flex-direction: column; gap: 8px; }
.search-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg); }
.search-result a { color: var(--ink); font-size: 13.5px; overflow-wrap: anywhere; }
.dash-loading.compact { padding: 22px; }

/* ---- accounts table ---- */
.acc-tools-title { margin: 22px 0 12px !important; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.account-tabs button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  min-height: 34px; padding: 7px 11px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 650;
}
.account-tabs button:hover,
.account-tabs button.active {
  background: var(--surface-2); color: var(--ink); border-color: var(--line-strong);
}
.acc-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 22px; }
.acc-tool { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; }
.acc-tool-wide { grid-column: 1 / -1; }
.acc-section-heading {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase;
  margin: 3px 0 -2px; letter-spacing: 0;
}
.acc-section-heading::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.acc-tool label { display: block; color: var(--ink-soft); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.acc-tool .textarea { min-height: 76px; margin-bottom: 10px; width: 100%; }
.acc-tool .row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-tool .row:first-of-type { border-top: 0; }
.acc-tool .row .lab { font-size: 14px; font-weight: 600; }
.acc-tool .row .hint { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.acc-tool-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.acc-tool-row .btn,
.acc-tool .btn { min-height: 36px; }
.file-picker {
  width: 100%; display: grid; grid-template-columns: max-content minmax(0, 1fr);
  align-items: center; gap: 10px;
}
.file-picker-btn {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: border-color .16s, background .16s, transform .08s;
}
.file-picker-btn:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, var(--accent-2) 10%); }
.file-picker-btn:active { transform: translateY(1px); }
.file-picker-btn .icon { width: 16px; height: 16px; color: var(--ink-soft); }
.file-picker-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-soft); font-size: 13px; font-weight: 650;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
}
.btn.btn-xs { padding: 6px 9px; font-size: 12px; border-radius: 999px; }
.btn.danger-soft { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 28%, var(--line)); }
.btn.danger-soft:hover { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.acc-table-wrap { width: 100%; overflow-x: auto; margin-top: 10px; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acc-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.acc-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.acc-table-manage { min-width: 780px; }
.acc-row-actions { display: flex; flex-wrap: wrap; gap: 6px; max-width: 390px; }
.acc-live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); box-shadow: inset 0 0 0 1px var(--line); }
.acc-live.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.acc-list { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.acc-manage-bar {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin: 16px 0 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
}
.acc-manage-btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 650; transition: background .16s, border-color .16s, color .16s;
}
.acc-manage-btn span {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); color: var(--accent-2); font-weight: 800; line-height: 1;
}
.acc-manage-btn:hover, .acc-manage-btn.active { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 72%, var(--accent-2) 8%); }
.acc-manage-btn.danger { color: var(--bad); }
.acc-manage-btn.danger span { color: var(--bad); background: var(--bad-bg); }
.acc-manage-btn.danger.active { border-color: color-mix(in srgb, var(--bad) 42%, var(--line)); background: var(--bad-bg); }
.acc-list-head,
.acc-list-row { display: grid; grid-template-columns: minmax(230px, 1.5fr) 132px 170px 42px; gap: 12px; align-items: center; }
.acc-list-head { padding: 10px 12px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; background: var(--surface-2); }
.acc-list-row { width: 100%; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); transition: background .15s, box-shadow .15s; cursor: pointer; }
.acc-list-row:hover, .acc-list-row.selected { background: var(--surface-2); }
.acc-list-row.selected { box-shadow: inset 3px 0 0 var(--accent-2); }
.acc-list-row.delete-mode:hover, .acc-list-row.delete-mode.picked { background: color-mix(in srgb, var(--bad-bg) 42%, var(--surface)); }
.acc-list-row.picked { box-shadow: inset 3px 0 0 var(--bad); }
.acc-list-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.acc-select-box {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center;
}
.acc-select-box.checked { border-color: var(--bad); background: var(--bad); }
.acc-select-box.checked::after { content: ""; width: 8px; height: 5px; border-left: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: rotate(-45deg) translateY(-1px); }
.acc-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.acc-name-wrap { display: flex; align-items: center; gap: 7px; min-width: 0; }
.acc-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 650; }
.tg-premium-star { color: #43a3ff; font-size: 17px; line-height: 1; filter: drop-shadow(0 0 4px rgba(67,163,255,.25)); }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.status-pill.good { color: var(--good); background: var(--good-bg); }
.status-pill.bad { color: var(--bad); background: var(--bad-bg); }
.status-pill.warn { color: #b97825; background: rgba(185,120,37,.14); }
.status-pill.neutral { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.status-pill.warm { color: var(--good); background: var(--good-bg); border: 1px solid color-mix(in srgb, var(--good) 34%, var(--line)); }
.warm-selected-panel {
  width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.warm-selected-panel > strong { font-size: 14px; color: var(--ink); }
.warm-picker { width: 100%; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px; background: var(--surface-2); }
.warm-picker.empty { color: var(--muted); font-size: 13px; }
.warm-picker-title { color: var(--ink-soft); font-size: 12.5px; font-weight: 700; margin-bottom: 9px; }
.warm-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.warm-choice {
  min-height: 46px; display: flex; align-items: center; gap: 9px; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); padding: 7px 9px; text-align: left; font-size: 13px; font-weight: 650;
}
.warm-choice:hover { border-color: var(--line-strong); background: var(--bg); }
.warm-choice.selected { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 35%, transparent); }
.warm-choice.busy { opacity: .72; cursor: not-allowed; }
.warm-choice span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.warm-choice b { color: var(--good); font-size: 11px; font-weight: 800; }
.warm-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.warm-actions { width: 100%; justify-content: space-between; }
.warm-select { position: relative; width: 100%; }
.warm-select-btn {
  width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 13px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 650;
  text-align: left; transition: border-color .18s, box-shadow .18s, background .18s;
}
.warm-select-btn:hover,
.warm-select.open .warm-select-btn {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 16%, transparent);
}
.warm-select-btn .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .16s; }
.warm-select.open .warm-select-btn .icon { transform: rotate(180deg); }
.warm-select-menu {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80;
  padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-md);
}
.warm-select.open .warm-select-menu { display: block; }
.warm-select-menu button {
  width: 100%; min-height: 34px; display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-soft); font: inherit; font-size: 13.5px; font-weight: 650; text-align: left;
}
.warm-select-menu button:hover { background: var(--surface-2); color: var(--ink); }
.warm-select-menu button.active {
  background: color-mix(in srgb, var(--accent-2) 14%, var(--surface-2));
  color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 26%, transparent);
}
.warming-panel {
  margin-top: 14px; padding: 14px; border: 1px solid color-mix(in srgb, var(--good) 24%, var(--line));
  border-radius: var(--radius-sm); background: color-mix(in srgb, var(--good-bg) 36%, var(--surface));
}
.warming-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.warming-head strong { font-size: 14px; }
.warming-head span { color: var(--good); font-weight: 800; }
.warming-list { display: flex; flex-wrap: wrap; gap: 8px; }
.warming-chip {
  min-height: 42px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); padding: 6px 11px; font-size: 13px; font-weight: 700;
}
.warming-chip:hover { border-color: var(--line-strong); background: var(--bg); }
.warming-chip b { color: var(--good); font-size: 11px; text-transform: uppercase; letter-spacing: 0; }
.warming-chip small { color: var(--muted); font-weight: 700; }
.warm-modal-backdrop {
  position: fixed; inset: 0; z-index: 130; padding: 24px; display: grid; place-items: center;
  background: rgba(15,18,27,.58); backdrop-filter: blur(10px);
}
.warm-modal {
  width: min(520px, 100%); max-height: min(680px, 90vh); overflow: auto;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 24px;
}
.warm-modal h3 { font-size: 18px; margin-bottom: 14px; }
.warm-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.warm-detail-title span { font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warm-detail-title b { color: var(--good); font-size: 12px; border: 1px solid color-mix(in srgb, var(--good) 34%, var(--line)); border-radius: 999px; padding: 5px 9px; background: var(--good-bg); }
.warm-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.warm-detail-grid div { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 11px; }
.warm-detail-grid small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; margin-bottom: 4px; }
.warm-detail-grid strong { display: block; color: var(--ink); font-size: 13.5px; overflow-wrap: anywhere; }
.acc-delete-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line)); background: transparent; color: var(--bad); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.acc-delete-x:hover { background: var(--bad-bg); }
.acc-detail-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 22px; }
.acc-empty-detail { margin-top: 16px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 18px; }
.account-modal-backdrop {
  position: fixed; inset: 0; z-index: 120; padding: 24px;
  display: grid; place-items: center;
  background: rgba(15, 18, 27, 0.58);
  backdrop-filter: blur(10px);
}
.account-modal {
  position: relative; width: min(940px, 100%); max-height: min(88vh, 780px);
  overflow-y: auto; overflow-x: hidden;
  padding: 28px 34px 28px 28px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-md);
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent-2) 48%, var(--scroll-thumb)) transparent;
}
.account-modal::-webkit-scrollbar { width: 9px; height: 9px; }
.account-modal::-webkit-scrollbar-track { background: transparent; margin: 14px 0; border-radius: 999px; }
.account-modal::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent-2) 48%, var(--scroll-thumb));
  border: 2px solid transparent; background-clip: content-box; border-radius: 999px;
}
.account-modal::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); background-clip: content-box; }
.account-modal-close {
  position: absolute; top: 22px; right: 24px; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center; margin: 0;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bad) 42%, var(--line));
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--bad);
  box-shadow: var(--shadow-sm);
}
.account-modal-close::before,
.account-modal-close::after {
  content: ""; position: absolute; width: 14px; height: 2px; border-radius: 999px; background: currentColor;
}
.account-modal-close::before { transform: rotate(45deg); }
.account-modal-close::after { transform: rotate(-45deg); }
.account-modal-close:hover { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 60%, var(--line)); }
.account-modal .acc-detail-grid { grid-template-columns: minmax(300px, 390px) minmax(340px, 1fr); gap: 18px; margin-top: 0; clear: none; }
.account-add-backdrop {
  position: fixed; inset: 0; z-index: 130; padding: 24px; display: grid; place-items: center;
  background: rgba(15, 18, 27, 0.58); backdrop-filter: blur(10px);
}
.account-add-modal {
  position: relative; width: min(430px, 100%); padding: 28px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md);
}
.account-add-modal h3 { font-size: 19px; margin: 0 48px 18px 0; }
.account-add-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-add-option {
  min-height: 104px; display: grid; justify-items: center; align-content: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink);
  font-weight: 700; transition: border-color .16s, background .16s, transform .08s;
}
.account-add-option:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, var(--accent-2) 10%); }
.account-add-option:active { transform: translateY(1px); }
.account-add-option span {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); color: var(--accent-2); border: 1px solid var(--line); font-size: 13px;
}
.account-add-option small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.account-add-modal .hint { margin-top: 14px; color: var(--muted); font-size: 13px; }
.account-add-message { margin-top: 14px; color: var(--ink-soft); font-size: 13px; font-weight: 600; white-space: pre-line; }
.acc-selection-bar {
  position: fixed; left: 50%; bottom: 24px; z-index: 320; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-md); pointer-events: auto;
}
.acc-selection-bar span { padding: 0 8px 0 10px; color: var(--ink-soft); font-size: 13px; font-weight: 650; white-space: nowrap; }
.tg-profile-card { overflow: hidden; border: 1px solid var(--tg-line); border-radius: 8px; background: var(--tg-card); box-shadow: var(--shadow-sm); }
.tg-profile-head { display: grid; justify-items: center; padding: 28px 18px 30px; background: var(--tg-head); }
.tg-profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--tg-card); }
.tg-profile-title { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-weight: 750; text-align: center; }
.tg-profile-state { color: #48a7e8; font-size: 13px; margin-top: 2px; }
.tg-profile-row { border-top: 1px solid var(--tg-line); padding: 13px 18px; }
.media-row { display: flex; align-items: center; gap: 12px; background: var(--tg-card); }
.tg-mini-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.media-row small, .tg-info-row span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tg-profile-section { border-top: 7px solid var(--tg-section); background: var(--tg-card); }
.tg-info-row { padding: 13px 18px; border-top: 1px solid var(--tg-line); font-size: 14px; }
.tg-info-row:first-child { border-top: 0; }
.tg-profile-stories { border-top: 7px solid var(--tg-section); padding: 30px 18px; color: var(--muted); text-align: center; font-size: 14px; background: var(--tg-card); }
.acc-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.acc-editor h3 { font-size: 17px; margin-bottom: 16px; }
.acc-editor .save-bar { margin: -6px 0 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.acc-editor .acc-tool-row { margin: -4px 0 16px; }
.acc-editor .btn { min-height: 36px; padding-top: 0; padding-bottom: 0; line-height: 1; }
.acc-editor .hint { margin: 4px 0 10px; line-height: 1.45; }
.acc-editor .account-danger-row { margin: 8px 0 0; }
.emoji-field { margin-top: 16px; }
@media (max-width: 760px) {
  .acc-tools { grid-template-columns: 1fr; }
  .acc-manage-bar { grid-template-columns: 1fr; }
  .acc-row-actions { max-width: 360px; }
  .acc-list { overflow-x: auto; }
  .acc-list-head, .acc-list-row { min-width: 650px; }
  .file-picker { grid-template-columns: 1fr; }
  .acc-detail-grid,
  .account-modal .acc-detail-grid { grid-template-columns: 1fr; }
  .account-modal-backdrop { padding: 12px; place-items: stretch; }
  .account-modal { max-height: calc(100vh - 24px); padding: 18px 24px 18px 18px; }
  .account-modal-close { top: 14px; right: 18px; }
  .warm-choice-grid, .warm-detail-grid { grid-template-columns: 1fr; }
  .warm-actions { align-items: stretch; flex-direction: column; }
  .warm-modal-backdrop { padding: 12px; }
  .account-add-options { grid-template-columns: 1fr; }
  .acc-selection-bar { width: calc(100% - 24px); justify-content: center; flex-wrap: wrap; border-radius: var(--radius-sm); }
}

/* ---- sidebar footer ---- (Task 4: unified with nav buttons, lang/theme removed) */
.side-foot {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.side-foot .navlike {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--ink-soft); padding: 11px 12px;
  border-radius: 10px; font-size: 14.5px; font-weight: 500; transition: .15s;
}
.side-foot .navlike:hover { background: var(--surface-2); color: var(--ink); }
.side-foot .navlike .ic { width: 18px; display: grid; place-items: center; }
.side-foot .navlike.logout:hover { color: var(--bad); background: var(--bad-bg); }

:root {
  /* Light theme (default) */
  --bg:          #faf9f5;
  --bg-2:        #f3f1ea;
  --surface:     #ffffff;
  --surface-2:   #f7f5ef;
  --tg-card:     #ffffff;
  --tg-head:     #f3f1ea;
  --tg-section:  #f7f5ef;
  --tg-line:     rgba(29, 34, 48, 0.10);
  --scroll-track:#f0ede5;
  --scroll-thumb:#cdbfb3;
  --scroll-thumb-hover:#c2643f;
  --ink:         #1d2230;   /* primary text / brand navy */
  --ink-soft:    #3b414f;
  --muted:       #6b7180;
  --line:        rgba(29, 34, 48, 0.10);
  --line-strong: rgba(29, 34, 48, 0.18);
  --accent:      #1d2230;   /* primary action = brand navy */
  --accent-ink:  #ffffff;   /* text on accent */
  --accent-2:    #c2643f;   /* warm terracotta highlight (used sparingly) */
  --good:        #3f7d52;
  --good-bg:     rgba(63, 125, 82, 0.12);
  --bad:         #b4452f;
  --bad-bg:      rgba(180, 69, 47, 0.12);
  --logo-ink:    #1d2230;
  --shadow-sm:   0 1px 2px rgba(29, 34, 48, 0.05), 0 1px 3px rgba(29, 34, 48, 0.06);
  --shadow-md:   0 8px 30px rgba(29, 34, 48, 0.08);
  --radius:      16px;
  --radius-sm:   11px;
  --radius-lg:   24px;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --maxw:        1140px;
}

html[data-theme="dark"] {
  --bg:          #14161d;
  --bg-2:        #181b23;
  --surface:     #1d212b;
  --surface-2:   #232834;
  --tg-card:     #17212b;
  --tg-head:     #233142;
  --tg-section:  #101923;
  --tg-line:     rgba(255, 255, 255, 0.08);
  --scroll-track:#171b24;
  --scroll-thumb:#4b5363;
  --scroll-thumb-hover:#e08a63;
  --ink:         #ecebe4;
  --ink-soft:    #cfd2da;
  --muted:       #969cab;
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent:      #ecebe4;   /* on dark, primary action = cream */
  --accent-ink:  #14161d;
  --accent-2:    #e08a63;
  --good:        #6cc187;
  --good-bg:     rgba(108, 193, 135, 0.14);
  --bad:         #e2876f;
  --bad-bg:      rgba(226, 135, 111, 0.14);
  --logo-ink:    #ecebe4;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 12px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: 999px; }
*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb); border: 2px solid var(--scroll-track); border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
*::-webkit-scrollbar-corner { background: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- typography ---- */
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; margin: 0; font-weight: 600; }
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: uppercase;
  color: var(--accent-2);
}
.muted { color: var(--muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-size: 14.5px; font-weight: 550;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap; line-height: 1; min-height: 42px; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--line-strong); }
.btn-sm { padding: 0 14px; font-size: 13px; min-height: 36px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { height: 30px; width: auto; }
.brand .wordmark {
  font-weight: 700; font-size: 19px; letter-spacing: 0; color: var(--logo-ink);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

/* logo theme swap */
.dark-only { display: none; }
html[data-theme="dark"] .light-only { display: none; }
html[data-theme="dark"] .dark-only { display: block; }

/* ---- generic page chrome ---- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 0; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }

/* ============================ LANDING ============================ */
.hero { padding: 92px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); margin: 20px 0 0; }
.hero h1 .accent { color: var(--accent-2); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin: 22px 0 0; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; }
.hero-stats .num { font-size: 26px; font-weight: 700; font-family: var(--font-serif); }
.hero-stats .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* hero visual */
.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 22px; position: relative;
}
.hero-logo-wrap {
  display: grid; place-items: center; padding: 30px 10px 22px;
  background: linear-gradient(180deg, var(--surface-2), transparent);
  border-radius: var(--radius); margin-bottom: 16px;
}
.hero-logo-wrap img { height: 132px; width: auto; }
.mini-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 10px; background: var(--surface); }
.mini-row .left { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 500; }
.mini-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 15px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill.on { background: var(--good-bg); color: var(--good); }
.pill.off { background: var(--bad-bg); color: var(--bad); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 21px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; }
.feature p { margin: 9px 0 0; color: var(--muted); font-size: 14.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step .n { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--accent-2); }
.step h3 { font-size: 18px; margin-top: 12px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* pricing */
.bill-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 22px auto 0; }
.bill-toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: .2s; }
.bill-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.save-tag { font-size: 11px; color: var(--good); font-weight: 700; margin-left: 6px; }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset, var(--shadow-md); }
.price-card .tag { font-size: 13px; font-weight: 600; color: var(--accent-2); display: flex; align-items: center; gap: 7px; }
.price-card h3 { font-size: 20px; margin-top: 6px; }
.price-card .price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.price-card .price .amt { font-size: 40px; font-weight: 700; font-family: var(--font-serif); letter-spacing: 0; }
.price-card .price .per { color: var(--muted); font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.price-card li { font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--good); }
.price-card .btn { margin-top: auto; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 550; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

/* cta band */
.cta-band { text-align: center; background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: 64px 32px; }
html[data-theme="dark"] .cta-band { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); }
.cta-band p { opacity: .8; margin: 14px 0 26px; font-size: 17px; }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .cta-band .btn-primary { background: var(--accent); color: var(--accent-ink); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .muted { font-size: 13.5px; }

/* ============================ MODAL ============================ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 12, 18, 0.5);
  backdrop-filter: blur(4px); display: none; place-items: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: grid; }
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  width: 100%; max-width: 440px; padding: 32px; box-shadow: var(--shadow-md);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 22px; }
.modal p.sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.input, .textarea, .select {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14.5px; color: var(--ink); font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent); }
.input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.input[type="number"]::-webkit-outer-spin-button,
.input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
.textarea::-webkit-scrollbar { width: 9px; height: 9px; }
.textarea::-webkit-scrollbar-track { background: transparent; }
.textarea::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid transparent; border-radius: 999px; background-clip: content-box; }
.textarea::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); background-clip: content-box; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23969cab' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-position: right 14px center; background-size: 16px 16px; background-repeat: no-repeat;
}
.select option { background: var(--surface); color: var(--ink); }
.select option:checked { background: color-mix(in srgb, var(--accent-2) 28%, var(--surface)); color: var(--ink); }
.folder-select { position: relative; width: 100%; }
.folder-select-btn {
  width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 14px; color: var(--ink); font-family: inherit; font-size: 14.5px; font-weight: 650;
  text-align: left; transition: border-color .2s, box-shadow .2s, background .2s;
}
.folder-select-btn span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-select-btn .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .16s; }
.folder-select.open .folder-select-btn,
.folder-select-btn:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 14%, transparent);
}
.folder-select.open .folder-select-btn .icon { transform: rotate(180deg); }
.folder-select-menu {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-md); max-height: 220px; overflow-y: auto;
}
.folder-select.open .folder-select-menu { display: block; }
.folder-select-menu button {
  width: 100%; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft);
  padding: 8px 10px; font-family: inherit; font-size: 14px; font-weight: 650; text-align: left;
}
.folder-select-menu button:hover,
.folder-select-menu button.active { background: var(--surface-2); color: var(--ink); }
.folder-select.disabled .folder-select-btn {
  cursor: not-allowed; color: var(--muted); background: color-mix(in srgb, var(--bg) 72%, var(--surface) 28%);
}
.reaction-mode-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.reaction-mode-option {
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
  color: var(--ink-soft); font-family: inherit; font-size: 14px; font-weight: 750;
  text-align: center; cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s;
}
.reaction-mode-option:hover {
  background: var(--surface-2); color: var(--ink); border-color: var(--line-strong);
}
.reaction-mode-option.active {
  background: color-mix(in srgb, var(--accent-2) 16%, var(--surface-2));
  color: var(--ink); border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 35%, transparent);
}
.reaction-mode-option:focus-visible {
  outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.reaction-mode-option:active { transform: translateY(1px); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note a { color: var(--accent-2); font-weight: 600; }
.toast-err { background: var(--bad-bg); color: var(--bad); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; display: none; }
.toast-err.show { display: block; }

/* ============================ DASHBOARD ============================ */
#app-view { display: none; }
body.in-app #site-view { display: none; }
body.in-app #app-view { display: block; }
body.in-app .nav-links { display: none; }

.dash { display: grid; grid-template-columns: 244px 1fr; min-height: calc(100vh - 66px); }
.side { border-right: 1px solid var(--line); padding: 26px 16px; position: sticky; top: 66px; align-self: start; height: calc(100vh - 66px); }
.side .who { padding: 6px 12px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side .who .name { font-weight: 600; font-size: 15px; }
.side .who .bal { font-size: 13px; color: var(--muted); margin-top: 3px; }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--ink-soft); padding: 11px 12px;
  border-radius: 10px; font-size: 14.5px; font-weight: 500; transition: .15s;
}
.side nav button:hover { background: var(--surface-2); color: var(--ink); }
.side nav button.active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.side nav button .ic { width: 18px; display: grid; place-items: center; }
.side nav .nav-slot-menu button {
  width: 100%; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft);
  font-size: 13px; font-weight: 600; text-align: left;
}
.side nav .nav-slot-menu button:hover,
.side nav .nav-slot-menu button.active { background: var(--surface-2); color: var(--ink); }

.main { padding: 36px 40px 80px; max-width: 920px; }
.main h1.page-title { font-size: 28px; margin-bottom: 6px; }
.main .page-sub { color: var(--muted); margin-bottom: 30px; font-size: 15px; }

.panel { display: none; }
.panel.active { display: block; animation: fade .25s ease; }
.panel.locked { position: relative; min-height: 560px; }
.panel.locked > :not(.subscription-lock) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.subscription-lock {
  position: absolute; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: flex-start;
  padding-top: 106px; background: color-mix(in srgb, var(--bg) 20%, transparent);
}
.subscription-lock-box {
  width: min(460px, calc(100% - 28px)); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md); text-align: center;
}
.subscription-lock-box .lock-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 12px;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
}
.subscription-lock-box h3 { font-size: 19px; margin-bottom: 8px; }
.subscription-lock-box p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card .k { font-size: 13px; color: var(--muted); font-weight: 500; }
.card .v { font-size: 26px; font-weight: 700; font-family: var(--font-serif); margin-top: 6px; }
.card .sub2 { font-size: 13px; color: var(--muted); margin-top: 4px; }

.sub-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sub-row:last-child { border-bottom: 0; }
.sub-row .left { display: flex; align-items: center; gap: 13px; }
.sub-row .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; }
.sub-row .t { font-weight: 600; font-size: 14.5px; }
.sub-row .d { font-size: 13px; color: var(--muted); margin-top: 1px; }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.block > h3 { font-size: 17px; margin-bottom: 4px; }
.block > .desc { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.block .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.block .row:first-of-type { border-top: 0; }
.block .row .lab { font-size: 14px; font-weight: 500; }
.block .row .hint { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* toggle switch */
.switch { position: relative; width: 48px; height: 28px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 70%, var(--surface-2)); border: 1px solid var(--line-strong); border-radius: 999px; transition: background .18s, border-color .18s, box-shadow .18s; box-shadow: inset 0 1px 2px rgba(0,0,0,.16); }
.switch .track::before { content: ""; position: absolute; width: 22px; height: 22px; left: 2px; top: 2px; background: #f7f5ef; border: 1px solid rgba(29,34,48,.16); border-radius: 50%; transition: transform .18s, border-color .18s; box-shadow: 0 3px 8px rgba(0,0,0,.22); }
.switch input:focus-visible + .track { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent), inset 0 1px 2px rgba(0,0,0,.16); }
.switch input:checked + .track { background: color-mix(in srgb, var(--good) 36%, var(--surface-2)); border-color: color-mix(in srgb, var(--good) 62%, var(--line)); }
.switch input:checked + .track::before { transform: translateX(20px); }
.safety-switches { margin: 2px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safety-switches .row:first-child { border-top: 0; }

input[type="range"] {
  appearance: none; width: 100%; height: 28px; background: transparent; accent-color: var(--accent-2); vertical-align: middle;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 7px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 26%, var(--surface-2)), var(--surface-2)); border: 1px solid var(--line);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent-2); box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-track {
  height: 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-2);
}

/* tag/chip list (keywords, channels, chats) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 13px; font-size: 13px; }
.chip button { border: 0; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 2px; }
.chip button:hover { color: var(--bad); }
.chip.empty { color: var(--muted); border-style: dashed; }
.add-row { display: flex; gap: 8px; margin-top: 12px; }
.add-row .input { flex: 1; }

.save-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.save-bar .ok { color: var(--good); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.save-bar .ok.show { opacity: 1; }

.slot-select { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.slot-select label { font-size: 13px; color: var(--muted); font-weight: 600; }
.slot-select .select { width: auto; padding-top: 8px; padding-bottom: 8px; }

.dash-loading { padding: 60px; text-align: center; color: var(--muted); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line-strong); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* buy result inline */
.pricing-dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pricing-dash .price-card { padding: 22px; }
.pricing-dash .price-card .price .amt { font-size: 30px; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .side .who { border: 0; padding: 0; margin: 0; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side .logout { margin: 0; }
  .main { padding: 26px 20px 60px; }
  .pricing-dash, .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .features, .steps, .pricing, .cards-2, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .folder-h, .search-result { align-items: stretch; flex-direction: column; }
  .folder-actions, .lock-actions { justify-content: stretch; }
  .folder-actions .btn, .lock-actions .btn, .search-result .btn { width: 100%; }
}

/* ====================================================================
   Task 9 — inline SVG icons (replace emojis). Icons inherit currentColor.
   ==================================================================== */
.icon { display: block; width: 1em; height: 1em; flex: none; }
.side nav button .ic .icon,
.side-foot .navlike .ic .icon { width: 18px; height: 18px; }
.mini-ico .icon { width: 17px; height: 17px; color: var(--ink-soft); }
.feature .ico .icon { width: 22px; height: 22px; color: var(--ink); }
.sub-row .ic .icon { width: 19px; height: 19px; color: var(--ink-soft); }
.folder-h .fic { display: inline-grid; place-items: center; vertical-align: -3px; margin-right: 6px; color: var(--muted); }
.folder-h .fic .icon { width: 16px; height: 16px; }

/* ====================================================================
   Task 4 — layout fixes
   ==================================================================== */
/* Blue markings: in the dashboard, push the top bar to the page edges so the
   logo/top buttons line up with the full-width dashboard below (no centered
   max-width container). */
body.in-app .nav > .container { max-width: none; }

/* Red markings: slot selector reads as a chevron control and lists every slot
   the user owns. */
.slotbar .select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; font-weight: 600;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7180' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center;
}
.slotbar .select:hover { border-color: var(--line-strong); }

/* Compact URL/group advertising settings view. This is intentionally scoped to
   the two ad panels so the bot-facing controls keep their existing handlers. */
.ad-panel .page-title { font-size: 25px; margin-bottom: 9px; }
.ad-panel .page-sub { max-width: 720px; margin-bottom: 22px; color: var(--ink-soft); }
.ad-panel .slotbar {
  max-width: 624px; margin-bottom: 12px; display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center; gap: 8px;
}
.ad-panel .slot-current-pill {
  min-height: 30px; padding: 0 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 72%, var(--ink) 5%);
  color: var(--ink); font-size: 12px; font-weight: 750;
}
.ad-panel .slotbar .slot-name {
  min-width: 0; max-width: none; min-height: 30px; padding: 6px 12px;
  border-radius: 8px; font-size: 13px; font-weight: 650;
}
.ad-panel .slotbar .btn {
  min-height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 750; white-space: nowrap;
}
.ad-panel .slotbar .btn:last-child { justify-self: end; }
.ad-panel .slotbar .ok { grid-column: 4; font-size: 12px; }
.ad-panel .subtabs {
  max-width: 624px; gap: 26px; margin-bottom: 30px;
  border-bottom-color: var(--line-strong);
}
.ad-panel .subtabs button {
  padding: 11px 0 9px; font-size: 13px; font-weight: 700;
}
.ad-panel .subtabs button.active { border-bottom-width: 1px; }
.ad-redesign { max-width: 650px; }
.ad-redesign .block {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: none; padding: 18px; margin: 0 0 16px;
}
.ad-redesign .block > h3 {
  margin: 0 0 7px; font-size: 17px; line-height: 1.35; font-weight: 700;
}
.ad-redesign .block > .desc {
  margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.45;
}
.ad-redesign .block .row {
  border: 1px solid var(--line); border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
  padding: 14px; align-items: flex-start;
}
.ad-redesign .block > .row,
.ad-redesign .block > .field,
.ad-redesign .block > .param-subsection,
.ad-redesign .block > .grid-2 {
  border: 1px solid var(--line); border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
  padding: 14px; margin-top: 12px;
}
.ad-redesign .block > .row:first-of-type,
.ad-redesign .block > .field:first-of-type,
.ad-redesign .block > .param-subsection:first-of-type,
.ad-redesign .block > .grid-2:first-of-type { margin-top: 0; }
.ad-redesign .block .row .lab { font-size: 15px; font-weight: 700; }
.ad-redesign .block .row .hint {
  max-width: 440px; margin-top: 4px; color: var(--ink-soft);
  font-size: 14px; line-height: 1.35;
}
.ad-redesign .switch { margin-top: 4px; }
.ad-redesign .field { margin-bottom: 18px; }
.ad-redesign .field label,
.ad-redesign .param-subsection h4 {
  color: var(--ink); font-size: 15px; font-weight: 700;
}
.ad-redesign .field .hint,
.ad-redesign .param-subsection .desc {
  color: var(--ink-soft); font-size: 14px; line-height: 1.38;
}
.ad-redesign .input,
.ad-redesign .textarea,
.ad-redesign .select {
  background: color-mix(in srgb, var(--bg) 74%, var(--surface) 26%);
  border-color: var(--line-strong); border-radius: 8px;
}
.ad-redesign .folder-select-btn {
  background: color-mix(in srgb, var(--bg) 74%, var(--surface) 26%);
  border-color: var(--line-strong); border-radius: 8px;
}
.ad-redesign .folder-select-menu { border-radius: 8px; }
.ad-redesign .textarea { min-height: 76px; }
.ad-redesign .param-subsection {
  border-top: 0; padding-top: 0; margin-top: 22px;
}
.ad-redesign .block > .field { margin-bottom: 0; }
.ad-redesign .block > .param-subsection { margin-top: 12px; padding: 14px; }
.ad-redesign .block > .param-subsection h4 { margin-top: 0; }
.ad-redesign .block > .grid-2 { gap: 12px; }
.ad-redesign .block > .grid-2 .field {
  padding: 0; margin: 0; border: 0; background: transparent;
}
.ad-redesign .add-row { max-width: 560px; }
.ad-redesign .save-bar { margin-top: 18px; }
.ad-redesign .folder {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; background: color-mix(in srgb, var(--surface-2) 58%, transparent);
}
.ad-redesign .search-result {
  border-radius: 8px; background: color-mix(in srgb, var(--surface) 58%, transparent);
}
@media (max-width: 760px) {
  .ad-panel .slotbar { grid-template-columns: 1fr; max-width: none; }
  .ad-panel .slotbar .btn:last-child { justify-self: stretch; }
  .ad-panel .slotbar .ok { grid-column: auto; }
  .ad-panel .subtabs { gap: 14px; max-width: none; }
  .ad-redesign .block { padding: 14px; }
}
