:root { --bg:#faf8f5; --surface:#fff; --ink:#1d1b19; --muted:#7a736b; --line:#e7e1d9; --accent:#9a7b5b; --accent-soft:#f3ece4; --danger:#a4442f; --ok:#2e8559; --warn:#b77a1f; --blue:#2b6bb0; }
* { box-sizing:border-box; }
html, body { margin:0; }
body { background:var(--bg); color:var(--ink); font:15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing:antialiased; }
button, input, select, textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
a { color:var(--accent); }
.serif { font-family:Georgia, "Times New Roman", serif; }
.muted { color:var(--muted); }
.small { font-size:13px; }
.err { color:var(--danger); font-size:14px; min-height:20px; }
.ok { color:var(--ok); }
.boot { text-align:center; margin-top:30vh; color:var(--muted); }
.hidden { display:none !important; }

/* buttons & inputs */
.btn { height:38px; padding:0 14px; border-radius:10px; border:1px solid var(--line); background:var(--surface); display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:var(--ink); white-space:nowrap; }
.btn:hover { border-color:#d6cdc1; }
.btn.dark { background:var(--ink); color:#fff; border-color:var(--ink); }
.btn.accent { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn.small { height:30px; padding:0 10px; font-size:13px; }
.btn.danger { color:var(--danger); }
.btn.link { border:0; background:none; padding:0 4px; color:var(--accent); height:auto; }
.btn:disabled { opacity:.45; cursor:default; }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select, textarea { height:38px; padding:0 11px; border:1px solid var(--line); border-radius:10px; background:#fff; width:100%; }
textarea { height:auto; min-height:90px; padding:10px 11px; resize:vertical; }
input[type=checkbox] { width:16px; height:16px; accent-color:var(--accent); vertical-align:-3px; }
label.f { display:block; font-size:12px; color:var(--muted); margin:12px 0 4px; }
label.check { display:flex; gap:8px; align-items:center; margin:10px 0; font-size:14px; }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.row > .grow { flex:1; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.grid3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:0 14px; }
@media (max-width:700px) { .grid2, .grid3 { grid-template-columns:1fr; } }

/* login */
.login { max-width:380px; margin:10vh auto; padding:0 20px; }
.login .brand { text-align:center; }
.login h1 { font:italic 400 46px/1 Georgia, serif; margin:8px 0 26px; text-align:center; }
.login .btn { width:100%; justify-content:center; margin-top:16px; height:46px; }
.login input { margin-top:10px; height:46px; }

/* shell */
.shell { display:grid; grid-template-columns:230px 1fr; min-height:100vh; }
.side { border-right:1px solid var(--line); padding:18px 12px; position:sticky; top:0; height:100vh; overflow:auto; background:#f6f3ee; }
.side .brand { font:italic 24px Georgia, serif; padding:4px 10px 14px; }
.side nav a { display:flex; gap:10px; align-items:center; padding:8px 10px; border-radius:9px; color:var(--ink); text-decoration:none; font-size:14px; }
.side nav a:hover { background:#efe9e1; }
.side nav a.on { background:var(--ink); color:#fff; }
.side nav .sec { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:16px 10px 6px; }
.side .badge { margin-left:auto; background:var(--accent); color:#fff; border-radius:99px; font-size:11px; padding:0 7px; }
.side .storage { font-size:12px; color:var(--muted); padding:16px 10px 6px; }
.meter { height:5px; border-radius:99px; background:var(--line); overflow:hidden; margin-bottom:4px; }
.meter i { display:block; height:100%; background:var(--accent); }
.main { min-width:0; }
.top { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:12px; padding:10px 24px; background:rgba(250,248,245,.94); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); min-height:56px; }
.top .menu { display:none; }
main { max-width:1200px; margin:0 auto; padding:22px 24px 80px; }
@media (max-width:900px) {
  .shell { grid-template-columns:1fr; }
  .side { position:fixed; inset:0 auto 0 0; width:260px; z-index:20; transform:translateX(-100%); transition:.2s; box-shadow:0 0 40px rgba(0,0,0,.15); }
  .side.open { transform:none; }
  .top .menu { display:inline-flex; }
  main { padding:16px 14px 80px; }
}
.head { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.head h1 { font:400 32px/1.1 Georgia, serif; margin:0; flex:1; min-width:200px; }
.back { font-size:13px; color:var(--muted); text-decoration:none; }

/* cards & panels */
.panel { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:16px; }
.panel h3 { margin:0 0 8px; font:500 18px Georgia, serif; }
.panel .sub { margin:-4px 0 10px; color:var(--muted); font-size:13px; }
.cols { display:grid; grid-template-columns:1fr 340px; gap:20px; align-items:start; }
.cols > * { min-width:0; }
.panel:has(> table.t) { overflow-x:auto; }
@media (max-width:1000px) { .cols { grid-template-columns:1fr; } }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; margin-bottom:18px; }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:12px 14px; }
.tile .k { font-size:12px; color:var(--muted); }
.tile .v { font:20px Georgia, serif; margin-top:2px; }
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:16px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; cursor:pointer; text-align:left; padding:0; color:inherit; text-decoration:none; display:block; }
.card .cover { aspect-ratio:4/3; background:var(--line) center/cover no-repeat; }
.card .body { padding:12px 14px; }
.card b { display:block; font:18px Georgia, serif; }

/* lists */
.list { background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.item { display:flex; gap:12px; align-items:center; padding:12px 14px; border-top:1px solid var(--line); color:inherit; text-decoration:none; }
.item:first-child { border-top:0; }
a.item:hover, button.item:hover { background:#fcfaf7; }
button.item { width:100%; border:0; background:none; text-align:left; border-top:1px solid var(--line); }
.item .grow { flex:1; min-width:0; }
.item .t { font-weight:500; }
.item .s { font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.date { width:44px; text-align:center; flex:none; }
.date small { display:block; font-size:11px; color:var(--accent); font-weight:600; text-transform:uppercase; }
.date b { font:22px Georgia, serif; }
.pill { display:inline-block; font-size:11px; font-weight:600; border-radius:99px; padding:2px 8px; }
.pill.unconfirmed { background:#f8ecd9; color:var(--warn); }
.pill.deposit_paid { background:#e3edf8; color:var(--blue); }
.pill.paid { background:#e3f2e9; color:var(--ok); }
.pill.cancelled { background:#eee; color:var(--muted); }
.pill.overdue, .pill.clash { background:#f6e1dc; color:var(--danger); }
.pill.dayoff { background:#fbeedd; color:#c46f12; }
.chips { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 14px; }
.chip { height:30px; padding:0 12px; border-radius:99px; border:1px solid var(--line); background:#fff; font-size:13px; }
.chip.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.chip.red { color:var(--danger); }
table.t { width:100%; border-collapse:collapse; font-size:14px; }
table.t td, table.t th { padding:8px 6px; border-top:1px solid var(--line); text-align:left; vertical-align:top; }
table.t th { font-size:12px; color:var(--muted); font-weight:500; border-top:0; }
table.t td.n, table.t th.n { text-align:right; white-space:nowrap; }
.kv { display:flex; justify-content:space-between; gap:10px; padding:6px 0; border-top:1px solid var(--line); font-size:14px; }
.kv:first-child { border-top:0; }
.warnline { display:flex; gap:8px; align-items:flex-start; font-size:14px; padding:6px 0; }
.warnline .i { flex:none; }
.code { font:13px ui-monospace, Menlo, monospace; background:#f3efe9; padding:2px 6px; border-radius:6px; word-break:break-all; }

/* gallery */
.drop { border:2px dashed var(--line); border-radius:14px; padding:24px; text-align:center; background:var(--surface); transition:.15s; }
.drop.over { border-color:var(--accent); background:#f6efe7; }
.bar { height:6px; border-radius:99px; background:var(--line); overflow:hidden; margin:6px 0; }
.bar i { display:block; height:100%; background:var(--accent); transition:width .3s; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:6px; margin-top:14px; }
.mtile { position:relative; aspect-ratio:1; background:var(--line) center/cover no-repeat; border-radius:6px; overflow:hidden; cursor:pointer; }
.mtile.sel { outline:3px solid var(--accent); outline-offset:-3px; }
.mtile .st { position:absolute; inset:0; display:grid; place-items:center; font-size:12px; color:var(--muted); }
.mtile .badge { position:absolute; left:6px; bottom:6px; color:#fff; font-size:11px; background:rgba(0,0,0,.55); padding:1px 7px; border-radius:99px; }
.mtile .pend { position:absolute; left:0; right:0; top:0; padding:4px 6px; font-size:11px; color:#fff; background:rgba(154,123,91,.92); }
.mtile .star { position:absolute; right:6px; bottom:6px; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.6); font-size:14px; }
.mtile .tick { position:absolute; right:6px; top:6px; width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.9); display:grid; place-items:center; font-size:13px; }
.selbar { position:sticky; top:56px; z-index:4; display:flex; gap:8px; align-items:center; flex-wrap:wrap; background:var(--ink); color:#fff; padding:8px 12px; border-radius:12px; margin-top:12px; }
.selbar .btn { height:30px; font-size:13px; }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:12px; flex-wrap:wrap; }
.tabs button { border:0; background:none; padding:8px 10px; border-bottom:2px solid transparent; color:var(--muted); }
.tabs button.on { border-color:var(--ink); color:var(--ink); }
.swatches { display:flex; gap:8px; flex-wrap:wrap; }
.swatch { width:56px; border:2px solid transparent; border-radius:10px; padding:3px; background:none; font-size:10px; }
.swatch.on { border-color:var(--ink); }
.swatch span { display:flex; height:26px; border-radius:6px; overflow:hidden; }
.swatch span i { flex:1; }

/* modal & toast */
.overlay { position:fixed; inset:0; background:rgba(29,27,25,.35); display:flex; align-items:flex-start; justify-content:center; z-index:50; padding:6vh 14px; overflow:auto; }
.modal { background:var(--bg); border-radius:16px; width:100%; max-width:560px; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width:860px; }
.modal header { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--line); }
.modal header h2 { font:500 19px Georgia, serif; margin:0; flex:1; }
.modal .content { padding:16px 18px; }
.modal footer { display:flex; gap:8px; justify-content:flex-end; padding:12px 18px; border-top:1px solid var(--line); }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--ink); color:#fff; padding:10px 16px; border-radius:10px; font-size:14px; z-index:60; max-width:90vw; }
.toast.bad { background:var(--danger); }

/* charts & calendar */
.chart { display:flex; align-items:flex-end; gap:6px; height:200px; padding:10px 4px 0; border-bottom:1px solid var(--line); }
.chart .m { flex:1; display:flex; align-items:flex-end; gap:2px; height:100%; position:relative; }
.chart .m i { flex:1; border-radius:4px 4px 0 0; min-height:1px; }
.chart-x { display:flex; gap:6px; padding:4px; font-size:11px; color:var(--muted); }
.chart-x span { flex:1; text-align:center; }
.legend { display:flex; gap:14px; font-size:12px; color:var(--muted); margin-top:8px; }
.legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; vertical-align:-1px; }
.catbar { margin:8px 0; }
.catbar .row { justify-content:space-between; font-size:14px; }
.cal { display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; }
.cal .dow { font-size:11px; color:var(--muted); text-align:center; font-weight:600; }
.cal button { aspect-ratio:1.2; border:1px solid transparent; border-radius:9px; background:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
.cal button:hover { border-color:var(--line); }
.cal button.today { border-color:var(--accent); color:var(--accent); font-weight:700; }
.cal button.off { background:#fbeedd; }
.cal .dots { display:flex; gap:2px; height:6px; }
.cal .dots i { width:6px; height:6px; border-radius:50%; background:var(--accent); }
.cal .dots i.clash { background:var(--danger); }
.weekdays { display:flex; gap:6px; flex-wrap:wrap; }
.weekdays button { min-width:48px; height:34px; border-radius:8px; border:1px solid var(--line); background:#fff; }
.weekdays button.on { background:#e08a2b; color:#fff; border-color:#e08a2b; }
.preview-frame { width:100%; height:78vh; border:1px solid var(--line); border-radius:12px; background:#fff; }
.sec-row { display:flex; gap:10px; align-items:center; padding:10px 12px; border-top:1px solid var(--line); background:#fff; }
.sec-row:first-child { border-top:0; }
.sec-row.drag { opacity:.4; }
.sec-row .handle { cursor:grab; color:var(--muted); }
.pcols { grid-template-columns:minmax(320px,440px) 1fr; }
.pvwrap { position:sticky; top:70px; }
@media (max-width:1000px) { .pcols { grid-template-columns:1fr; } .pvwrap { position:static; } .preview-frame { height:70vh; } }

/* Pipeline board */
.board { display:flex; gap:14px; overflow-x:auto; padding-bottom:10px; align-items:flex-start; }
.board .col { flex:0 0 270px; background:#f3efe9; border-radius:14px; padding:12px; }
.colhead { display:flex; gap:6px; align-items:baseline; }
.kcard { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:8px; cursor:pointer; }
.kcard:hover { border-color:var(--accent); }
.kcard .s { font-size:13px; color:var(--muted); margin-top:2px; }
.kcard .s.warn { color:#c26a00; font-weight:500; }
.tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.tag { font-size:11px; font-weight:500; padding:1px 7px; border-radius:99px; background:#eee8e0; color:var(--ink, #1d1b19); }
.tag.acc { background:rgba(154,123,91,.14); color:var(--accent); }

/* website builder */
main:has(.site-ed) { max-width:none; padding:0; }
.site-ed { display:grid; grid-template-columns:minmax(340px, 430px) 1fr; min-height:calc(100vh - 57px); }
.se-panel { border-right:1px solid var(--line); background:var(--bg); height:calc(100vh - 57px); overflow:auto; position:sticky; top:57px; }
.se-tabs { display:flex; position:sticky; top:0; z-index:3; background:var(--bg); border-bottom:1px solid var(--line); }
.se-tabs button { flex:1; height:44px; border:0; background:none; font-size:14px; color:var(--muted); border-bottom:2px solid transparent; }
.se-tabs button.on { color:var(--ink); border-bottom-color:var(--ink); font-weight:600; }
#se-body { padding:6px 16px 60px; }
.se-sec { padding:14px 0; border-bottom:1px solid var(--line); }
.se-sec h4 { margin:0 0 6px; font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; }
.se-sec .sub { color:var(--muted); font-size:13px; margin:0 0 8px; }
.se-pages, #se-secs { border-radius:10px; }
.se-prow, .se-srow { display:flex; gap:8px; align-items:center; padding:8px 10px; border-top:1px solid var(--line); background:var(--surface); }
.se-prow:first-child, .se-srow:first-child { border-top:0; }
.se-prow.drag, .se-srow.drag { opacity:.4; }
.se-srow.off { opacity:.55; }
.se-open { border:0; background:none; text-align:left; padding:2px 0; color:var(--ink); min-width:0; overflow:hidden; text-overflow:ellipsis; }
.handle { cursor:grab; color:var(--muted); user-select:none; }
.tag { display:inline-block; font-size:11px; padding:1px 7px; border-radius:99px; background:var(--accent-soft); color:var(--accent); margin-left:2px; white-space:nowrap; }
.score { display:inline-grid; place-items:center; min-width:30px; height:22px; border-radius:99px; font-size:12px; font-weight:600; color:#fff; padding:0 6px; }
.score.good { background:var(--ok); } .score.mid { background:var(--warn); } .score.bad { background:var(--danger); }
.note { background:var(--accent-soft); border-radius:10px; padding:10px 12px; font-size:13px; }
.note.warn { background:#fbeee0; color:#7a4a12; }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.seg.wrap { flex-wrap:wrap; }
.seg button { border:0; background:none; height:32px; padding:0 12px; font-size:13px; border-right:1px solid var(--line); }
.seg button:last-child { border-right:0; }
.seg button.on { background:var(--ink); color:#fff; }
.se-more { margin-top:10px; }
.se-more summary { cursor:pointer; font-size:14px; color:var(--accent); }
.se-pv { background:#e9e5df; display:flex; flex-direction:column; min-width:0; }
.se-pvbar { padding:8px 14px; background:var(--bg); border-bottom:1px solid var(--line); position:sticky; top:57px; z-index:2; }
.se-frame { flex:1; display:flex; justify-content:center; padding:14px; }
.se-frame iframe { width:100%; height:calc(100vh - 57px - 50px - 28px); border:0; border-radius:10px; background:#fff; box-shadow:0 10px 30px -14px rgba(0,0,0,.35); transition:width .25s; position:sticky; top:121px; }
.se-frame[data-dev=tablet] iframe { width:820px; max-width:100%; }
.se-frame[data-dev=phone] iframe { width:390px; height:min(844px, calc(100vh - 57px - 50px - 28px)); border-radius:28px; border:8px solid #1d1b19; }
.se-media { display:grid; gap:6px; }
.se-mrow { display:flex; gap:8px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:6px; }
.se-mrow input { height:30px !important; font-size:13px; margin:2px 0; }
.se-th { width:54px; height:54px; flex:none; border-radius:8px; background:var(--line) center/cover no-repeat; display:grid; place-items:center; color:#fff; font-size:13px; text-shadow:0 1px 3px rgba(0,0,0,.6); }
.se-item { border:1px solid var(--line); border-radius:10px; padding:8px; margin-bottom:8px; background:var(--surface); display:grid; gap:4px; }
.se-kinds { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:8px; margin-bottom:12px; }
.se-kind { text-align:left; border:1px solid var(--line); border-radius:10px; background:#fff; padding:10px 12px; display:grid; gap:2px; }
.se-kind:hover { border-color:var(--accent); }
.se-themes { display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:8px; }
.se-theme { border:1px solid var(--line); border-radius:12px; background:#fff; padding:6px; text-align:left; display:grid; gap:2px; font-size:13px; }
.se-theme.on { outline:2px solid var(--ink); }
.se-tsw { height:58px; border-radius:8px; position:relative; display:flex; align-items:flex-end; padding:6px; border:1px solid rgba(0,0,0,.06); }
.se-tsw i { width:16px; height:16px; border-radius:50%; margin-right:4px; }
.se-tsw b { position:absolute; right:8px; top:6px; font:20px Georgia, serif; }
.se-menu { display:grid; gap:6px; }
.se-mi { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.se-mi .linkf { flex:1; min-width:180px; }
.linkf input, .linkf select { min-width:0; }
.gprev { border:1px solid var(--line); border-radius:12px; background:#fff; padding:12px 14px; margin-top:10px; font-family:Arial, sans-serif; }
.gp-u { font-size:12px; color:#4d5156; } .gp-t { font-size:18px; color:#1a0dab; line-height:1.3; margin:2px 0; } .gp-d { font-size:13px; color:#4d5156; line-height:1.45; }
.checks { list-style:none; padding:0; margin:0; display:grid; gap:6px; font-size:13px; }
.checks li { display:flex; gap:8px; } .checks li > span:first-child { width:18px; height:18px; flex:none; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:11px; }
.checks li.ok > span:first-child { background:var(--ok); } .checks li.no > span:first-child { background:var(--warn); }
.se-kpis { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin:12px 0; }
.se-kpis div { background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:10px; text-align:center; }
.se-kpis b { display:block; font:500 24px Georgia, serif; } .se-kpis span { font-size:12px; color:var(--muted); }
.se-bars { display:flex; align-items:flex-end; gap:2px; height:110px; padding:6px 0; border-bottom:1px solid var(--line); margin-bottom:12px; }
.se-bars i { flex:1; background:var(--accent); border-radius:2px 2px 0 0; min-height:1px; }
.modal.picker { max-width:1100px; }
.pk { display:grid; grid-template-columns:220px 1fr; gap:14px; min-height:60vh; }
.pk-side { display:grid; align-content:start; gap:2px; max-height:65vh; overflow:auto; }
.pk-src { text-align:left; border:0; background:none; padding:7px 8px; border-radius:8px; font-size:14px; display:flex; gap:8px; align-items:center; }
.pk-src.on { background:var(--ink); color:#fff; } .pk-src.on .muted { color:#ddd; }
.pk-h { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:12px 8px 4px; }
.pk-cv { width:34px; height:34px; border-radius:6px; flex:none; background:var(--line) center/cover; }
.pk-bar { margin-bottom:8px; } .pk-bar select { width:auto; }
.pk-scenes { margin-bottom:8px; }
.pk-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:6px; max-height:60vh; overflow:auto; align-content:start; }
.pk-item { position:relative; aspect-ratio:1; border:0; padding:0; border-radius:8px; overflow:hidden; background:var(--line); }
.pk-item:disabled { opacity:.5; }
.pk-th { position:absolute; inset:0; background:center/cover no-repeat; }
.pk-doc { position:absolute; inset:0; display:grid; place-items:center; text-align:center; padding:8px; font-weight:600; word-break:break-word; }
.pk-item.sel { outline:3px solid var(--accent); outline-offset:-3px; }
.pk-item.used:not(.sel) { opacity:.6; }
.pk-badge { position:absolute; left:5px; bottom:5px; background:rgba(0,0,0,.6); color:#fff; font-size:11px; padding:1px 6px; border-radius:99px; }
.pk-star { position:absolute; right:6px; bottom:4px; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.6); }
.pk-n { position:absolute; right:5px; top:5px; width:22px; height:22px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font-size:12px; font-weight:600; }
.pk-n.used { background:rgba(0,0,0,.5); }
@media (max-width:1000px) {
  .site-ed { grid-template-columns:1fr; }
  .se-panel { position:static; height:auto; border-right:0; }
  .se-pv { min-height:80vh; }
  .se-frame iframe { position:static; height:80vh; }
  .pk { grid-template-columns:1fr; } .pk-side { max-height:none; grid-auto-flow:column; overflow-x:auto; }
}

/* add-block picker with previews */
.se-addb { display:grid; grid-template-columns:170px 1fr; gap:18px; min-height:60vh; }
.se-addb nav { display:grid; align-content:start; gap:2px; border-right:1px solid var(--line); padding-right:10px; }
.se-addb nav button { text-align:left; border:0; background:none; padding:9px 12px; border-radius:8px; font-size:15px; border-left:3px solid transparent; }
.se-addb nav button.on { border-left-color:var(--accent); background:var(--accent-soft); font-weight:600; }
.se-blocks h4 { margin:0 0 10px; font-weight:500; border-bottom:1px solid var(--line); padding-bottom:8px; }
.se-bgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; max-height:64vh; overflow:auto; padding:2px; }
.se-block { border:0; background:none; padding:0; text-align:left; display:grid; gap:6px; font-size:13px; }
.se-block .mk { display:block; aspect-ratio:16/10; background:#fff; border:8px solid #f1efec; padding:12px; overflow:hidden; transition:border-color .15s; }
.se-block:hover .mk, .se-block:focus-visible .mk { border-color:#d9efe7; }
.mk > div { height:100%; } .mk i { display:block; }
.mk-h { height:9px; background:#3a3633; margin:4px 0 8px; border-radius:2px; }
.mk-l { height:4px; background:#cfc9c2; margin:4px 0; border-radius:2px; }
.mk-c { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; height:100%; }
.mk-c .mk-l, .mk-c .mk-h { margin-left:auto; margin-right:auto; }
.mk-n { width:55%; margin:auto; }
.mk-row { display:flex; gap:8px; height:100%; align-items:center; } .mk-row > * { flex:1; min-width:0; }
.mk-i { background:linear-gradient(135deg,#d9cfc3,#b9aa98); border-radius:2px; height:44px; }
.mk-i.full { position:absolute; inset:0; height:auto; } .mk-i.tall { height:90px; } .mk-i.dark { background:#3a3633; }
.mk-hero, .mk-ba { position:relative; margin:-12px; height:calc(100% + 24px) !important; }
.mk-over { position:relative; z-index:1; } .mk-over .mk-h { background:#fff; }
.mk-b { width:60px; height:12px; background:#9a7b5b; margin:8px auto 0; border-radius:2px; } .mk-b.wide { width:70%; height:14px; margin-top:6px; }
.mk-dots { position:absolute; right:8px; bottom:6px; color:#fff; font:italic 10px Georgia, serif; z-index:1; }
.mk-play { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:22px; z-index:1; }
.mk-grid { display:grid !important; grid-template-columns:repeat(3,1fr); gap:4px; align-content:center; } .mk-grid.g4 { grid-template-columns:repeat(4,1fr); }
.mk-grid .mk-i { height:36px; }
.mk-mas { columns:3; column-gap:4px; } .mk-mas .mk-i { margin-bottom:4px; } .mk-mas .a { height:50px; } .mk-mas .b { height:30px; } .mk-mas .c { height:40px; }
.mk-jus > div { display:flex; gap:4px; margin-bottom:4px; } .mk-jus .mk-i { flex:1; height:42px; } .mk-jus .w { flex:2; }
.mk-car { display:flex; gap:6px; align-items:center; margin-right:-30px; } .mk-car .mk-i { flex:0 0 42%; height:84px; }
.mk-split { position:absolute; top:0; bottom:0; left:50%; width:2px; background:#fff; z-index:1; }
.mk-card { background:#f6f3ef; padding:8px; border-radius:3px; }
.mk-q { font:40px/0.8 Georgia, serif; color:#9a7b5b; }
.mk-num { font:16px Georgia, serif; color:#9a7b5b; display:block; }
.mk-li { height:auto !important; border-bottom:1px solid #eee; padding:6px 0; }
.mk-logo { height:16px; background:#cfc9c2; border-radius:8px; }
.mk-band { background:#f1ece6; margin:-12px; height:calc(100% + 24px) !important; }
.mk-f { width:70%; height:10px; border:1px solid #cfc9c2; margin:4px auto; } .mk-f.tall { height:22px; }
.mk-pdf { width:34px; height:44px; border:1px solid #cfc9c2; font:600 9px sans-serif; display:grid !important; place-items:center; color:#a4442f; margin-bottom:6px; }
.mk-map { background:repeating-linear-gradient(45deg,#e6efe4,#e6efe4 6px,#dbe7d8 6px,#dbe7d8 12px); height:80px; }
.mk-ann { height:10px; background:#3a3633; margin:-12px -12px 10px; }
.mk-hr { width:80%; border-top:1px solid #999; }
.se-prow.child, .se-mi.child { padding-left:28px; }
.se-mi.child .handle { cursor:default; }
@media (max-width:700px) { .se-addb { grid-template-columns:1fr; } .se-addb nav { grid-auto-flow:column; overflow-x:auto; border:0; } }

.se-dots { font-size:18px; letter-spacing:1px; color:var(--accent); padding:0 6px; }
.se-pmenu { position:fixed; z-index:80; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 16px 40px -12px rgba(0,0,0,.3); padding:6px; display:grid; min-width:210px; }
.se-pmenu button { border:0; background:none; text-align:left; padding:9px 12px; border-radius:8px; font-size:14px; }
.se-pmenu button:hover, .se-pmenu button:focus-visible { background:var(--accent-soft); outline:none; }

.se-media.drop { outline:2px dashed var(--accent); outline-offset:4px; border-radius:10px; }
.se-tabs button { font-size:13px; }

/* Client messages */
.thread { max-height:380px; overflow:auto; margin-bottom:10px; }
.msg { margin:8px 0; max-width:85%; }
.msg .b { white-space:pre-line; background:var(--bg, #f1ece5); border:1px solid var(--line); border-radius:12px 12px 12px 4px; padding:8px 12px; overflow-wrap:anywhere; }
.msg.me { margin-left:auto; text-align:right; }
.msg.me .b { background:var(--ink); color:#fff; border-color:var(--ink); border-radius:12px 12px 4px 12px; text-align:left; }
.list .badge { background:var(--accent); color:#fff; border-radius:99px; font-size:11px; padding:0 7px; margin-left:8px; }
