/* Tower analytics. No native-looking control anywhere. Tokens first; components below. */
:root {
  --ink: #141824; --ink-2: #4b5263; --ink-3: #868d9c;
  --canvas: #f1f3f7; --surface: #fff; --surface-2: #f7f8fb; --line: #e3e6ee; --line-strong: #cdd2de;
  --primary: #3b5bdb; --primary-hover: #304ac0; --primary-soft: #e8edfd; --primary-ink: #fff;
  --green: #1a7f4b; --green-soft: #e3f4ea; --red: #c2304a; --red-soft: #fbe7eb;
  --amber: #b25e09; --amber-soft: #fdf0de; --violet: #6741d9; --violet-soft: #efeafd;
  --side-bg: #12162a; --side-ink: #b7bdd0; --side-active: #222a4a;
  --r-sm: 7px; --r-md: 10px; --r-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 36, .05), 0 1px 1px rgba(20, 24, 36, .03);
  --shadow-pop: 0 2px 4px rgba(20, 24, 36, .06), 0 16px 36px -10px rgba(20, 24, 36, .28);
  --focus: 0 0 0 3px rgba(59, 91, 219, .25);
  --font: "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sidebar: 264px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 14px/1.5 var(--font); color: var(--ink); background: var(--canvas); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1 { font-size: 1.55rem; font-weight: 750; letter-spacing: -.015em; margin: 0; }
h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 15px; height: 15px; }

/* ---------- shell + sidebar ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; transition: grid-template-columns .2s ease; }
.shell.collapsed { grid-template-columns: 68px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 14px 0 0; background: var(--side-bg); color: var(--side-ink); overflow: hidden; }
.sidebar .brand { padding: 4px 16px 14px; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: #2a3150 transparent; }
.side-foot { flex: none; border-top: 1px solid rgba(255,255,255,.07); background: var(--side-bg); }
.side-foot .sidebar-foot { margin: 0; padding: 10px 22px 0; }
.side-foot .user-foot { border-top: 0; padding: 10px 14px 14px; }
.nav-group-toggle { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--side-ink); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.nav-group-toggle:hover { background: var(--side-active); color: #fff; }
.nav-group-toggle:focus-visible, .nav a:focus-visible { outline: none; box-shadow: 0 0 0 2px #7d93ff; }
.nav-group-toggle .count { margin-left: auto; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.09); }
.nav-group-toggle .chev { transition: transform .15s; }
.nav-group-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.groups { margin: 2px 0 0 14px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.08); }
.shell.collapsed .nav-group-toggle { justify-content: center; padding: 9px 0; }
.shell.collapsed .nav-group-toggle .label, .shell.collapsed .nav-group-toggle .count, .shell.collapsed .nav-group-toggle .chev, .shell.collapsed .groups { display: none; }
.shell.collapsed .side-scroll { padding: 0 10px 12px; }
.shell.collapsed .side-foot .sidebar-foot { padding: 10px 0 0; text-align: center; }
.shell.collapsed .side-foot .user-foot { flex-direction: column; padding: 10px 0 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); display: grid; place-items: center; font-size: 17px; flex: none; }
.brand-name { color: #fff; font-weight: 700; white-space: nowrap; }
.collapse { margin-left: auto; color: var(--side-ink); }
.collapse:hover { background: var(--side-active); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--side-ink); white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--side-active); color: #fff; }
.nav a.active { background: var(--primary); color: #fff; }
.nav a .count { margin-left: auto; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.09); }
.nav a .label { overflow: hidden; text-overflow: ellipsis; }
.nav-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6c7390; padding: 14px 10px 4px; white-space: nowrap; }
.groups a { font-size: 13px; padding: 6px 10px; }
.dot { width: 8px; height: 8px; border-radius: 3px; flex: none; margin: 0 5px; }
.sidebar-foot { margin-top: auto; padding: 12px 10px 2px; font-size: 12px; color: #6c7390; white-space: nowrap; }
.shell.collapsed .brand-name, .shell.collapsed .nav .label, .shell.collapsed .nav .count, .shell.collapsed .nav-group-title,
.shell.collapsed .sidebar-foot span { display: none; }
.shell.collapsed .brand { flex-direction: column; }
.shell.collapsed .collapse { margin: 6px 0 0; }
.shell.collapsed .nav a { justify-content: center; padding: 9px 0; }
.shell.collapsed .collapse svg { transform: rotate(180deg); }

/* ---------- page ---------- */
.main { min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; padding: 26px 32px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .sub { color: var(--ink-3); margin-top: 4px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; margin-bottom: 6px; }
.crumbs a:hover { color: var(--primary); }
.page { padding: 22px 32px 60px; display: flex; flex-direction: column; gap: 18px; max-width: 1400px; }
.cluster { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.head-actions { margin-left: auto; }
.loading { padding: 60px; color: var(--ink-3); }
.avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-2); border-color: #b8bfcf; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; }

/* ---------- toolbar controls ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.control { position: relative; display: flex; align-items: center; }
.control > .ico { position: absolute; left: 11px; color: var(--ink-3); pointer-events: none; }
.input { height: 36px; width: 280px; padding: 0 12px 0 36px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 14px var(--font); color: var(--ink); background: var(--surface); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.input::placeholder { color: var(--ink-3); }
.clear { position: absolute; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: var(--surface-2); color: var(--ink-3); cursor: pointer; display: none; place-items: center; }
.control.has-value .clear { display: grid; }
.select { appearance: none; -webkit-appearance: none; height: 36px; padding: 0 34px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 500 13.5px var(--font); color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868d9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; }
.select:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.segmented button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 6px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented .count { font-size: 11px; color: var(--ink-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.blue { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.chip.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip.violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.chip.removable { cursor: pointer; } .chip.removable:hover { border-color: var(--line-strong); }
.result-count { margin-left: auto; color: var(--ink-3); font-size: 13px; }

/* ---------- panels, stats ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head .hint { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.toolbar .select { max-width: 240px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.stat .k .ico { color: var(--ink-3); width: 15px; height: 15px; }
.stat .v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; }
.stat .d { font-size: 12px; color: var(--ink-3); }
.up { color: var(--green); } .dn { color: var(--red); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { position: sticky; top: 0; background: var(--surface-2); text-align: right; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.table th:hover { color: var(--ink); }
.table th .sort { display: inline-block; width: 12px; color: var(--primary); }
.table td { text-align: right; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.table th.l, .table td.l { text-align: left; }
.table tbody tr { cursor: pointer; transition: background .1s; }
.table tbody tr:hover { background: #f8f9ff; }
.table tbody tr.me { background: #fffaeb; } .table tbody tr.me:hover { background: #fff4d6; }
.table td.cap { white-space: normal; min-width: 260px; max-width: 460px; color: var(--ink-2); text-align: left; }
.acct { display: flex; align-items: center; gap: 10px; }
.acct .av { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 750; color: #fff; font-size: 13px; flex: none; }
.acct b { font-weight: 650; } .acct .muted { font-size: 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; display: block; }
.spark { width: 110px; height: 28px; vertical-align: middle; }
.spark polyline { fill: none; stroke: var(--primary); stroke-width: 1.7; }
.spark .area { fill: var(--primary-soft); stroke: none; }

/* ---------- pagination ---------- */
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager .info { color: var(--ink-3); font-size: 13px; }
.pages { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.pages button { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; display: inline-grid; place-items: center; }
.pages button:hover { background: var(--surface-2); border-color: var(--line); }
.pages button.active { background: var(--primary); color: #fff; }
.pages button[disabled] { opacity: .35; pointer-events: none; }
.pages .gap { color: var(--ink-3); padding: 0 4px; }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; }
.chart .g { stroke: var(--line); } .chart .ax { fill: var(--ink-3); font-size: 13px; }
.chart .ln { fill: none; stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .ar { fill: var(--primary-soft); opacity: .8; }
.chart .xh { stroke: var(--ink-3); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .pt { fill: var(--primary); stroke: #fff; stroke-width: 2; }
.chart .bar { fill: var(--primary); opacity: .85; cursor: pointer; } .chart .bar:hover { opacity: 1; }
.chart .bar.hot { fill: #e8590c; }
.chart .med { stroke: var(--ink-2); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ranges { margin-left: auto; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 7px 10px; border-radius: 8px; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); max-width: 380px; box-shadow: var(--shadow-pop); transition: opacity .1s; }
.tip b { display: block; font-size: 13px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.hours div { height: 30px; border-radius: 5px; }
.hours-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 5px; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li a { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.list li:last-child a { border-bottom: 0; }
.list li a:hover { background: #f8f9ff; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 600; } .list .s { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .r { text-align: right; font-weight: 700; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 20px; color: var(--ink-3); text-align: center; }
.empty > .ico { width: 30px; height: 30px; color: var(--line-strong); }
.empty b { color: var(--ink-2); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--amber-soft); color: #6d3d06; font-size: 13px; }

@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } .page, .page-head { padding-left: 18px; padding-right: 18px; } .input { width: 100%; } }


.stats.eight { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .stats.eight { grid-template-columns: repeat(2, 1fr); } }

/* ---------- platform (sign-in, My accounts, auto-reply, team) ---------- */
[hidden] { display: none !important; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tabs a:hover { color: var(--ink); background: var(--surface-2); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .count { background: var(--primary-soft); color: var(--primary); font-size: 11.5px; padding: 1px 7px; border-radius: 99px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.field .help { font-size: 12.5px; color: var(--ink-3); }
.textarea { width: 100%; min-height: 120px; resize: vertical; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; color: var(--ink); background: var(--surface); line-height: 1.55; }
.textarea:focus, .input.plain:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.input.plain { padding-left: 12px; width: 100%; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 40px; height: 23px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: #f1c4cd; }
.btn.busy { pointer-events: none; opacity: .7; }
.btn.busy::before { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip.red { background: var(--red-soft); color: var(--red); }
.toast-wrap { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 60; }
.toast { display: flex; align-items: flex-start; gap: 10px; min-width: 280px; max-width: 420px; padding: 12px 14px; border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); animation: up .18s ease-out; }
.toast.err { background: #7d1d2e; }
.toast .ico { margin-top: 1px; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast, .btn.busy::before { animation: none; } .switch .track, .switch .track::after { transition: none; } }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); }
.login .art { background: radial-gradient(120% 80% at 0% 100%, #24305f 0%, var(--side-bg) 60%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.login .art .brand { padding: 0; }
.login .art .pitch { max-width: 460px; }
.login .art h2 { font-size: 2rem; line-height: 1.18; letter-spacing: -.02em; margin-bottom: 26px; }
.login .feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.login .feats li { display: flex; align-items: center; gap: 12px; color: var(--side-ink); font-size: 14.5px; }
.login .feats .fi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #9db0ff; flex: none; }
.login .art-foot { display: flex; align-items: center; gap: 8px; color: #6c7390; font-size: 12.5px; }
.login form { align-self: center; justify-self: center; width: min(380px, 88vw); display: grid; gap: 16px; }
.login form h1 { margin-bottom: 2px; }
.login .control { width: 100%; }
.login .control .input { width: 100%; }
.user-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.user-foot .who { flex: 1; min-width: 0; line-height: 1.25; }
.user-foot .who b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-foot .who span { font-size: 11.5px; }
.user-foot .icon-btn { color: var(--side-ink); }
.shell.collapsed .user-foot .who { display: none; }
.connect-btn { margin: 4px 10px 6px; justify-content: center; }
.shell.collapsed .connect-btn .label { display: none; }
.reply-cell { display: grid; gap: 8px; min-width: 300px; }
.reply-cell .input.plain { font-size: 13.5px; }
.reply-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quote { color: var(--ink-2); max-width: 380px; white-space: normal; }
.key-box { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 12.5px; word-break: break-all; }
.form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login .art { display: none; } .form-row { grid-template-columns: 1fr; } }
.av-side { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 750; color: #fff; font-size: 11px; flex: none; }
.user-foot .av-side { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.control.has-reveal { position: relative; }
.control.has-reveal .input { padding-right: 42px; }
.reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-3); cursor: pointer; }
.reveal:hover { background: var(--surface-2); color: var(--ink); }
.reveal:focus-visible { outline: none; box-shadow: var(--focus); }
.add-form { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.add-form .grow { flex: 1 1 380px; }
.add-form .control, .add-form .control .input { width: 100%; }
.add-actions { display: flex; gap: 8px; padding-top: 25px; }

/* ---------- share from Instagram ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.mini .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.mini b { display: block; } .mini span { color: var(--ink-3); font-size: 13px; }
.guide { display: grid; gap: 16px; max-width: 760px; }
.guide > p { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.step .num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 1px; }
.step .key-box { margin-top: 10px; justify-content: space-between; }
.kbd { display: inline-block; padding: 0 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.howto { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--primary-soft); color: #23367f; }
.inline-link { color: var(--primary); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }
.bookmarklet { cursor: grab; }
.result { max-width: 560px; margin: 24px auto; padding: 36px 28px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.result h2 { font-size: 1.25rem; } .result p { margin: 0; color: var(--ink-2); }
.result .big-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.result .big-ico .ico { width: 28px; height: 28px; }
.result.good .big-ico { background: var(--green-soft); color: var(--green); }
.result.bad .big-ico { background: var(--red-soft); color: var(--red); }
.result.busy-card .big-ico { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .result.busy-card .big-ico { animation: none; } }
.link-line { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segmented .ico-sm { vertical-align: -3px; }
@media (max-width: 760px) { .cards-3 { grid-template-columns: 1fr; } }
