/* Flowmind Social — app shell. Design tokens follow Relay (Inter, light + dark); content screens live in content.css. */
:root {
  --bg: #fafaf9; --panel: #ffffff; --text: #18181b; --muted: #71717a; --line: #e7e5e4;
  --accent: #18181b; --accent-text: #ffffff; --brand: #4f46e5; --brand-soft: #eef2ff; --hover: #f4f4f5; --danger: #dc2626; --ok: #16a34a; --warn: #b45309; --warn-soft: #fffbeb;
  --radius: 10px; --shadow: 0 10px 30px rgba(0,0,0,.12);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0c0d; --panel: #151517; --text: #f4f4f5; --muted: #a1a1aa; --line: #27272a; --accent: #f4f4f5; --accent-text: #0c0c0d; --brand: #818cf8; --brand-soft: #1e1b4b; --hover: #1f1f22; --danger: #f87171; --ok: #4ade80; --warn: #fbbf24; --warn-soft: #2a2112; --shadow: 0 10px 30px rgba(0,0,0,.5); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #app { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .warn { color: var(--warn); } .ok { color: var(--ok); } .bad, .danger-text { color: var(--danger); }
.sub { color: var(--muted); margin: 0 0 24px; } .sub-lead { margin: 4px 0 0; font-size: 13px; max-width: 760px; }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.badge.brand { border-color: transparent; background: var(--brand-soft); color: var(--brand); } .badge.ok { border-color: transparent; background: #dcfce7; color: #166534; } .badge.warn { border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 99px; background: var(--hover); border: 1px solid var(--line); }

/* forms */
label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; }
.field { margin-bottom: 14px; } .field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input, select, textarea { width: 100%; height: 40px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; outline: none; }
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.btn { height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.btn:hover { opacity: .92; } .btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; margin-top: 6px; } .btn.ghost { background: transparent; color: var(--text); border-color: var(--line); } .btn.ghost:hover { background: var(--hover); opacity: 1; }
.btn.brand { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.ghost.danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; } .btn.xs { height: 26px; padding: 0 8px; font-size: 12px; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--muted); display: inline-flex; }
.icon-btn:hover { background: var(--hover); color: var(--text); } .icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; display: block; }
.error { color: var(--danger); font-size: 13px; min-height: 20px; margin: 4px 0 0; }
.linkish { border: 0; background: none; color: var(--brand); cursor: pointer; font-size: inherit; text-decoration: underline; padding: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; } .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); } .card.pad { padding: 18px 20px; } .panel-form { padding: 18px; margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } .table tr:last-child td { border-bottom: 0; } .table .r { text-align: right; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 99px; margin-right: 6px; background: var(--ok); } .dot.off { background: var(--muted); } .dot.warn { background: var(--warn); }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; } .kpi .v { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; } .kpi .l { font-size: 12px; color: var(--muted); }
.meter { height: 6px; background: var(--hover); border-radius: 99px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--brand); border-radius: 99px; } .meter.full i { background: var(--danger); }
.notice { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); } .notice.brand { background: var(--brand-soft); border-color: transparent; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; } code { background: var(--hover); padding: 1px 5px; border-radius: 4px; }
pre.code { background: var(--hover); padding: 12px 14px; border-radius: 8px; overflow: auto; font-size: 12.5px; line-height: 1.5; margin: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 8px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tab.active { color: var(--text); border-bottom-color: var(--text); } .tab .n { font-size: 11px; background: var(--hover); border-radius: 99px; padding: 0 6px; margin-left: 4px; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

/* auth */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 380px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin-bottom: 28px; text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; flex: none; } .logo svg { width: 16px; height: 16px; stroke: #fff; }
.foot { color: var(--muted); font-size: 13px; margin-top: 24px; text-align: center; } .foot a { color: var(--brand); }

/* shell */
.shell { display: grid; grid-template-columns: 236px 1fr; height: 100%; }
.side { border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--panel); min-height: 0; }
.side-top { display: flex; align-items: center; gap: 6px; margin: 2px 4px 10px; } .side-top .brand { margin: 0; flex: 1; }
.wsw { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; margin-bottom: 10px; text-align: left; }
.wsw .wn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .wsw .wr { font-size: 11px; color: var(--muted); display: block; font-weight: 400; } .wsw svg { width: 14px; height: 14px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.wsw .wa { width: 26px; height: 26px; border-radius: 6px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 10px 4px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.nav:hover { background: var(--hover); color: var(--text); } .nav.active { background: var(--hover); color: var(--text); font-weight: 500; }
.nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; } .nav .n { margin-left: auto; font-size: 11px; background: var(--brand); color: #fff; border-radius: 99px; padding: 0 6px; min-width: 18px; text-align: center; }
.plan-box { margin-top: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: var(--bg); } .plan-box b { display: block; margin-bottom: 2px; } .plan-box a { color: var(--brand); text-decoration: none; font-weight: 500; }
.me { padding: 10px 6px 2px; border-top: 1px solid var(--line); margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 99px; background: var(--hover); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.me .who { min-width: 0; flex: 1; cursor: pointer; } .me .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me .who .r { color: var(--muted); font-size: 12px; }
.bell-btn { position: relative; } .bell-n { position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 4px; min-width: 15px; text-align: center; line-height: 15px; }
.main { overflow: auto; min-width: 0; display: flex; flex-direction: column; }
.topbar-msgs { display: flex; flex-direction: column; } .banner { padding: 8px 20px; font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background: var(--brand-soft); } .banner.warn { background: var(--warn-soft); }
.page { max-width: 980px; width: 100%; margin: 0 auto; padding: 28px 24px 60px; } .page.wide { max-width: none; padding: 20px 24px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; } .page-head h1 { margin: 0; }
.popover { position: fixed; z-index: 40; width: 300px; padding: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.pop-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; } .pop-item:hover { background: var(--hover); } .pop-item.active { font-weight: 600; } .pop-sep { border-top: 1px solid var(--line); margin: 4px 0; }
.pop-title { font-weight: 600; font-size: 12px; color: var(--muted); padding: 6px 10px 2px; text-transform: uppercase; letter-spacing: .05em; }
.dialog { max-width: 520px; width: calc(100% - 32px); padding: 20px; color: var(--text); border: 1px solid var(--line); } .dialog.narrow { max-width: 400px; } .dialog.wide { max-width: 760px; }
.dialog::backdrop { background: rgba(0,0,0,.4); } .dialog h2 { margin: 0 0 10px; font-size: 18px; }
#topbar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--brand); z-index: 100; opacity: 0; transition: width .4s ease, opacity .3s; }
#topbar.on { width: 70%; opacity: 1; } #topbar.done { width: 100%; opacity: 0; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; animation: toast-in .2s ease; } .toast.bad { background: var(--danger); color: #fff; } .toast a { color: inherit; font-weight: 600; white-space: nowrap; } .toast.out { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 80; padding: 8px 8px 8px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-size: 13px; }
.notif { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; } .notif:last-child { border-bottom: 0; } .notif.unread { background: var(--brand-soft); } .notif .t { color: var(--muted); font-size: 11px; margin-top: 2px; } .notif a { color: var(--brand); }
.mobile-top { display: none; }
.notif b { font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; position: relative; } .plan-card.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); } .plan-card .price { font-size: 26px; font-weight: 600; } .plan-card .price small { font-size: 12px; color: var(--muted); font-weight: 400; } .plan-card ul { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; color: var(--muted); } .plan-card .pop { position: absolute; top: -10px; right: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .seg button { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-size: 13px; } .seg button.on { background: var(--text); color: var(--bg); }
.hero-empty { text-align: center; padding: 56px 20px; } .hero-empty .big { font-size: 40px; margin-bottom: 8px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 12px; } .step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; } .step::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 99px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; } .step.done::before { content: '✓'; background: var(--ok); }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { display: none; }
  .shell.open .side { display: flex; position: fixed; inset: 0 22% 0 0; z-index: 60; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); overflow: auto; }
  .mobile-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel); font-weight: 600; }
  .page { padding: 18px 14px 60px; } .form-row, .form-row.three { grid-template-columns: 1fr; } .hide-sm { display: none !important; }
}

/* workspace pages */
.roles { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.role-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.role-item { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--text); font: inherit; }
.role-item:hover { background: var(--hover); } .role-item.on { background: var(--hover); box-shadow: inset 3px 0 0 var(--text); } .role-item.new { color: var(--muted); } .role-item .clip { max-width: 200px; }
.role-edit { padding: 20px; }
.perm-tools { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; flex-wrap: wrap; }
.perm-group { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.perm-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 12px; }
.perm { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.perm:has(input:checked) { border-color: var(--text); background: var(--hover); }
.perm input { width: auto; height: auto; margin-top: 3px; flex: none; }
.perm > span { display: flex; flex-direction: column; gap: 1px; }
.perm-label { font-weight: 500; font-size: 13px; }
.perm.risky .perm-label::after { content: ' ⚠'; color: var(--warn); font-size: 11px; }
.dialog .perm-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } .check.small { align-items: center; }
select.sm, input.sm { height: 32px; font-size: 13px; padding: 0 8px; } .table select.sm { width: auto; min-width: 130px; }
.copyrow { display: flex; gap: 8px; align-items: center; margin-top: 4px; } .copyrow code { flex: 1; min-width: 0; overflow: auto; white-space: nowrap; padding: 6px 8px; }
.token-box { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: 8px; margin: 10px 0; } .token-box code { flex: 1; min-width: 0; background: none; font-size: 13px; word-break: break-all; }
.snip pre.code { max-height: 180px; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 18px; } .meter-box .l { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.act { display: grid; grid-template-columns: 120px 150px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: start; } .act:last-child { border-bottom: 0; } .act .clip { max-width: 150px; }
.act-detail { margin-top: 4px; } .act-detail summary { cursor: pointer; } .act-detail pre.code { margin-top: 6px; max-height: 240px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.mail-frame { width: 100%; height: 60vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 800px) { .roles { grid-template-columns: 1fr; } .act { grid-template-columns: 1fr; gap: 2px; } .act .clip { max-width: none; } }

/* sidebar: content section counters ("on" = assistant switched on, nothing waiting) */
.nav .n.on { background: transparent; color: var(--ok); border: 1px solid currentColor; font-size: 10px; }

/* ---------------------------------------------------------------- phones: the page itself scrolls (address bar hides,
   pull-to-refresh works, the keyboard doesn't trap the view); a sticky top bar; full-screen dialogs */
.banner-x { margin-left: 4px; padding: 2px 6px; font-size: 12px; }
.mobile-top .mt-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  html, body, #app { height: auto; min-height: 100%; }
  .shell { display: block; height: auto; min-height: 100vh; }
  .mobile-top { position: sticky; top: 0; z-index: 50; padding: 8px 10px; box-shadow: 0 1px 0 var(--line); }
  .main { overflow: visible; display: block; }
  .page, .page.wide { display: block; min-height: 0; padding: 14px 12px 70px; }
  .banner { padding: 6px 12px; font-size: 12.5px; justify-content: flex-start; text-align: left; }
  .page-head { margin-bottom: 12px; gap: 8px; }
  .page-head h1 { font-size: 20px; }
  .page-head .sub-lead { display: none; }
  .actions { gap: 6px; }
  .btn { min-height: 38px; } .btn.sm { min-height: 34px; }
  input, select, textarea { font-size: 16px; }              /* iOS: no zoom-in when a field gets focus */
  dialog.dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; border: 0; padding: 16px 14px 24px; overflow: auto; }
  .card:has(> .table), .card:has(> table) { overflow-x: auto; }
  .table th, .table td { padding: 9px 10px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .popover { max-width: calc(100vw - 16px); }
}
@media (max-width: 760px) { .update-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; } }

/* menu backdrop + bottom app bar (phones) */
.side-backdrop, .bottom-bar { display: none; }
@media (max-width: 760px) {
  .shell.open .side { box-shadow: none; z-index: 70; inset: 0 18% 0 0; }
  .shell.open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.45); }
  body.menu-open { overflow: hidden; }
  .bottom-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--panel); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .bb-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: 11px; padding: 6px 0; cursor: pointer; }
  .bb-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .bb-item.active { color: var(--brand); font-weight: 600; }
  .bb-item .n { position: absolute; top: 2px; left: 54%; font-style: normal; font-size: 10px; background: var(--danger); color: #fff; border-radius: 99px; padding: 0 5px; min-width: 16px; line-height: 16px; text-align: center; }
  .bb-item .n.on { background: transparent; color: var(--ok); border: 1px solid currentColor; }
  .page, .page.wide { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .update-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* notifications */
.nf-groups { margin-bottom: 12px; }
.nf { display: flex; gap: 12px; align-items: flex-start; cursor: default; }
.nf[data-href] { cursor: pointer; } .nf[data-href]:hover { background: var(--hover); }
.nf-ic { font-size: 18px; line-height: 1.3; flex: none; width: 24px; text-align: center; }
.nf-body { flex: 1; min-width: 0; }
.nf-head { font-size: 14px; } .nf-rest { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nf-x { display: inline-block; font-size: 11px; font-weight: 600; background: var(--brand); color: #fff; border-radius: 99px; padding: 0 7px; margin-left: 4px; }
.nf .t { margin-top: 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nf-go { color: var(--muted); font-size: 20px; line-height: 1; align-self: center; }
.nf-prefs { display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow: auto; }
.nf-pgh { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.nf-pr { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.nf-tg { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; white-space: nowrap; cursor: pointer; }
@media (max-width: 760px) { .nf-prefs { max-height: none; } }
