/* =========================================================================
   המבזק – מערכת ניהול תוכן
   ========================================================================= */
:root {
  --brand: #0B2F6B; --brand-2: #123E8C; --brand-soft: #E8EEF8;
  --accent: #C8102E; --accent-soft: #FBE9EC;
  --ok: #138A4B; --ok-soft: #E3F5EB; --warn: #A86400; --warn-soft: #FFF3DC; --info: #1D5FD1; --info-soft: #E6EFFD;
  --ink: #0E1424; --text: #1C2233; --muted: #5B6478; --subtle: #8A93A5;
  --line: #E4E8EF; --line-2: #D5DBE5; --bg: #F4F6FA; --card: #FFFFFF; --hover: #F7F9FC;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 20px 50px rgba(16,24,40,.18);
  --side-w: 256px;
  --font: 'Assistant', 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--info) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  background: #0A1F45; color: #C9D3E6; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; color: #fff; }
.side-brand .mark { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.side-brand b { font-size: 20px; font-weight: 800; display: block; line-height: 1.1; }
.side-brand small { font-size: 12px; color: #8EA0C2; }
.side nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.side .grp { font-size: 11px; font-weight: 800; color: #6F82A8; letter-spacing: .4px; padding: 16px 12px 6px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #C9D3E6; font-weight: 600; transition: background .15s, color .15s; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.side nav a.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset -3px 0 0 var(--accent); }
.side nav a .count { margin-inline-start: auto; font-size: 12px; background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: 999px; }
.side-foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: #fff; }
.side-user:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.side-user small { display: block; color: #8EA0C2; font-size: 12px; }
.av { width: 36px; height: 36px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; object-fit: cover; font-size: 14px; }
.side .av { background: #23407A; color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(244,246,250,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; }
.crumb { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--muted); }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 28px; max-width: 1360px; width: 100%; }

/* ---------- Page header ---------- */
.ph { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ph h1 { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.ph p { color: var(--muted); margin-top: 2px; }
.ph .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-accent { background: var(--accent); } .btn-accent:hover { background: #A50E26; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: var(--card); color: var(--accent); border-color: #F1C3CB; }
.btn-danger:hover { background: var(--accent-soft); }
.btn-danger.solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 9px; background: transparent; color: var(--muted); border: 0; }
.btn-icon:hover { background: var(--line); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h h2 { font-size: 16px; font-weight: 800; color: var(--ink); }
.card-b { padding: 20px; }
.card + .card { margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.stat .ic .icon { width: 22px; height: 22px; }
.stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.stat span { color: var(--muted); font-size: 14px; }
.stat:nth-child(2) .ic { background: var(--ok-soft); color: var(--ok); }
.stat:nth-child(3) .ic { background: var(--warn-soft); color: var(--warn); }
.stat:nth-child(4) .ic { background: var(--accent-soft); color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* ---------- Tables ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .search { position: relative; flex: 1 1 240px; max-width: 360px; }
.toolbar .search .icon { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--subtle); }
.toolbar .search input { padding-right: 38px; }
.tabs-filter { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs-filter a { white-space: nowrap; }
.toolbar select { max-width: 100%; }
.tabs-filter a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.tabs-filter a:hover { text-decoration: none; color: var(--text); }
.tabs-filter a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tabs-filter a small { font-weight: 600; color: var(--subtle); margin-inline-start: 4px; }
.table-wrap { overflow-x: auto; position: relative; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: right; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .3px; padding: 12px 16px; background: #FAFBFD; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--hover); }
.t .title-cell { display: flex; gap: 12px; align-items: center; min-width: 280px; }
.t .thumb { width: 64px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--brand-soft); flex: none; display: grid; place-items: center; color: var(--subtle); }
.t .title-cell a.tt { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.35; }
.t .sub { color: var(--subtle); font-size: 13px; }
.t .row-acts { display: flex; gap: 4px; justify-content: flex-end; opacity: .6; transition: opacity .15s; }
.t tr:hover .row-acts, .t .row-acts:focus-within { opacity: 1; }
.t .num { font-variant-numeric: tabular-nums; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-inline-end: 8px; border: 1px solid rgba(0,0,0,.08); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.b-pub { background: var(--ok-soft); color: var(--ok); }
.b-draft { background: #EEF0F4; color: var(--muted); }
.b-sched { background: var(--info-soft); color: var(--info); }
.b-off { background: var(--warn-soft); color: var(--warn); }
.b-admin { background: var(--accent-soft); color: var(--accent); }
.b-editor { background: var(--info-soft); color: var(--info); }
.b-writer { background: var(--ok-soft); color: var(--ok); }
.badge.plain::before { display: none; }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.cur { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); font-weight: 700; }
.pagination a:hover { background: var(--hover); text-decoration: none; }
.pagination span.cur { background: var(--brand); color: #fff; border-color: var(--brand); }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { width: 64px; height: 64px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.empty .ic .icon { width: 28px; height: 28px; }
.empty h3 { font-size: 18px; color: var(--ink); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label, .lbl { font-weight: 700; font-size: 14px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field .hint { font-size: 13px; color: var(--subtle); }
.field .err { font-size: 13px; color: var(--accent); font-weight: 700; }
.req::after { content: ' *'; color: var(--accent); }
.input, input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; outline: 0; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
select { appearance: none; padding-left: 34px; background: #fff 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='%235B6478' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center; }
input:focus, select:focus, textarea:focus { border-color: var(--info); box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 15%, transparent); }
input[aria-invalid=true], .is-invalid { border-color: var(--accent) !important; }
input.title-input { height: auto; font-size: 26px; font-weight: 800; padding: 10px 14px; color: var(--ink); }
input.ltr, .ltr { direction: ltr; text-align: left; }
input[type=color] { width: 48px; height: 42px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.counter { font-size: 12px; font-weight: 700; color: var(--subtle); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--warn); } .counter.over { color: var(--accent); }
.slug-row { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.slug-row span { padding: 0 10px; color: var(--subtle); font-size: 13px; direction: ltr; white-space: nowrap; background: var(--bg); align-self: stretch; display: grid; place-items: center; border-left: 1px solid var(--line-2); }
.slug-row input { border: 0; border-radius: 0; box-shadow: none !important; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .tr { width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch .tr::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .tr { background: var(--ok); }
.switch input:checked + .tr::after { transform: translateX(-16px); }
.switch input:focus-visible + .tr { outline: 3px solid color-mix(in srgb, var(--info) 55%, transparent); outline-offset: 2px; }
.switch small { display: block; color: var(--subtle); font-weight: 500; font-size: 13px; }

.radio-cards { display: grid; gap: 8px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.radio-cards label:has(input:checked) { border-color: var(--info); background: var(--info-soft); }
.radio-cards input { margin-top: 4px; accent-color: var(--info); }
.radio-cards b { display: block; font-size: 14px; }
.radio-cards small { color: var(--muted); font-size: 13px; }

/* Editor layout */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.editor-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.editor-side .card + .card { margin-top: 0; }
.publish-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.publish-meta div { display: flex; justify-content: space-between; gap: 8px; }
.publish-meta b { color: var(--text); font-weight: 700; }
.publish-acts { display: flex; gap: 8px; }
.publish-acts .btn { flex: 1; }
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); margin-top: 20px; }
.dirty-dot { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--warn); }
.is-dirty .dirty-dot { display: inline-flex; }
.dirty-dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.tox-tinymce { border-radius: 12px !important; border-color: var(--line-2) !important; }
.editor-skel { min-height: 420px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }

/* Tags input */
.tagbox { border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; display: flex; flex-wrap: wrap; gap: 6px; background: #fff; position: relative; cursor: text; min-height: 42px; }
.tagbox:focus-within { border-color: var(--info); box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 15%, transparent); }
.tagbox .tok { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; padding: 3px 4px 3px 10px; border-radius: 999px; }
.tagbox .tok.new { background: var(--ok-soft); color: var(--ok); }
.tagbox .tok button { width: 20px; height: 20px; border-radius: 999px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tagbox .tok button:hover { background: rgba(0,0,0,.08); }
.tagbox input { border: 0 !important; box-shadow: none !important; height: 28px; flex: 1; min-width: 100px; padding: 0 4px; }
.tag-sugg { position: absolute; top: calc(100% + 4px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 40; max-height: 240px; overflow: auto; padding: 4px; }
.tag-sugg div { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tag-sugg div.on, .tag-sugg div:hover { background: var(--hover); }
.tag-sugg small { color: var(--subtle); }

/* Image picker */
.imgpick { border: 2px dashed var(--line-2); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; position: relative; display: block; }
.imgpick:hover, .imgpick.drag { border-color: var(--info); background: var(--info-soft); }
.imgpick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.imgpick .icon { width: 28px; height: 28px; margin: 0 auto 6px; color: var(--subtle); }
.imgprev { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg); }
.imgprev img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.imgprev .x { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.95); border-radius: 999px; }

/* SEO panel */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 14px 14px 12px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .score { width: 8px; height: 8px; border-radius: 999px; background: var(--subtle); }
.tabs .score.good { background: var(--ok); } .tabs .score.mid { background: #E0A200; } .tabs .score.bad { background: var(--accent); }
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; font-family: Arial, sans-serif; }
.serp .u { font-size: 13px; color: #4D5156; direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp .t { font-size: 20px; color: #1A0DAB; line-height: 1.3; margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp .d { font-size: 14px; color: #4D5156; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ogcard { border: 1px solid #DADDE1; border-radius: 10px; overflow: hidden; background: #F0F2F5; max-width: 520px; font-family: Arial, sans-serif; }
.ogcard .img { aspect-ratio: 1.91/1; background: #DDE4EF center/cover no-repeat; display: grid; place-items: center; color: #8A93A5; font-size: 14px; }
.ogcard .tx { padding: 10px 12px; border-top: 1px solid #DADDE1; }
.ogcard .dm { font-size: 12px; color: #65676B; text-transform: uppercase; direction: ltr; text-align: right; }
.ogcard .tt { font-size: 16px; font-weight: 700; color: #050505; margin: 2px 0; line-height: 1.3; }
.ogcard .ds { font-size: 14px; color: #65676B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-h { font-size: 12px; font-weight: 800; color: var(--muted); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.checklist { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.checklist div { display: flex; gap: 8px; align-items: center; }
.checklist .d { width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; color: #fff; flex: none; font-size: 11px; font-weight: 800; }
.checklist .ok .d { background: var(--ok); } .checklist .no .d { background: #E0A200; }

/* Alerts & toasts */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-err { background: var(--accent-soft); color: var(--accent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert ul { margin: 4px 0 0; padding-inline-start: 18px; font-weight: 500; }
.toasts { position: fixed; bottom: 24px; left: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #111827; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; display: flex; gap: 10px; align-items: center; animation: tIn .3s ease both; max-width: 420px; }
.toast.ok::before { content: '✓'; width: 22px; height: 22px; border-radius: 999px; background: var(--ok); display: grid; place-items: center; font-size: 12px; flex: none; }
.toast.err::before { content: '!'; width: 22px; height: 22px; border-radius: 999px; background: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.toast.out { animation: tOut .25s ease both; }
@keyframes tIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes tOut { to { opacity: 0; transform: translateY(8px); } }

/* Modal */
dialog.modal { border: 0; padding: 0; border-radius: 16px; box-shadow: var(--shadow-lg); width: min(460px, calc(100vw - 32px)); color: var(--text); }
dialog.modal::backdrop { background: rgba(10,20,40,.45); backdrop-filter: blur(2px); }
.modal .mb { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal .mb h3 { font-size: 20px; font-weight: 800; color: var(--ink); }
.modal .mb p { color: var(--muted); }
.modal .mf { display: flex; gap: 10px; justify-content: flex-start; padding: 16px 24px; background: var(--bg); border-top: 1px solid var(--line); }
.modal .danger-ic { width: 48px; height: 48px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

/* Login / installer */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: radial-gradient(120% 80% at 80% 0%, #1C4A9E 0%, transparent 60%), radial-gradient(80% 60% at 0% 100%, #6B0F24 0%, transparent 60%), #0A1F45; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .mark { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 34px; }
.auth-art h2 { font-size: 40px; font-weight: 800; line-height: 1.15; max-width: 440px; }
.auth-art p { color: #B8C5E0; font-size: 17px; max-width: 420px; margin-top: 12px; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 30px; font-weight: 800; color: var(--ink); }
.auth-box > p { color: var(--muted); margin: 6px 0 26px; }
.pw { position: relative; }
.pw button { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); }
.pw input { padding-left: 44px; }
.install { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.install .card-b h3 { font-size: 16px; font-weight: 800; margin: 6px 0 14px; color: var(--ink); }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.req-list li { display: flex; gap: 8px; align-items: center; }
.req-list .y { color: var(--ok); font-weight: 800; } .req-list .n { color: var(--accent); font-weight: 800; }

.mt { margin-top: 18px; } .muted { color: var(--muted); } .small { font-size: 13px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kbd { font-size: 12px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: #fff; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.activity li:last-child { border-bottom: 0; }
.activity .tt { font-weight: 700; color: var(--ink); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick a { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 700; }
.quick a:hover { background: var(--hover); text-decoration: none; border-color: var(--line-2); }
.quick .icon { color: var(--brand); width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 0 0 auto; width: var(--side-w); z-index: 100; transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(10,20,40,.45); z-index: 90; }
  .menu-btn { display: grid; }
  .topbar-in, .content { padding-left: 16px; padding-right: 16px; }
  .content { padding-top: 18px; }
  .ph h1 { font-size: 24px; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .t .hide-sm { display: none; }
  .t .row-acts { opacity: 1; }
  .savebar { border-radius: 0; margin: 20px -16px -18px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; } .stat .ic { display: none; }
}
