/* socmed-tools — accent ladder on the beasure red.
   Full red only on small marks (primary button, active nav icon, focus, the "today" mark).
   Its pale tints carry the areas: active nav row, notices, selected chips. */
:root {
  --ground: #fbf8f8;
  --surface: #ffffff;
  --raised: #f7f3f3;
  --active: #fde3e5;
  --active-ink: #8f0c19;
  --border: #ece6e6;
  --rule: #f3eeee;
  --control: #d9d2d2;
  --text: #1c1717;
  --muted: #5e5656;
  --faint: #6b6363;
  --accent: #b30f20;
  --accent-soft: #fde3e5;
  --accent-ink: #8f0c19;
  --primary: #b30f20;
  --primary-hover: #9a0d1c;
  --primary-ink: #ffffff;
  --positive: #247b50; --pill-positive-bg: #dcfae5; --pill-positive-ink: #04250e;
  --negative: #c4242a; --pill-negative-bg: #ffedea; --pill-negative-ink: #831c1e;
  --pill-warning-bg: #fff6dd; --pill-warning-ink: #7a3f06;
  --pill-neutral-bg: #f0ebeb; --pill-neutral-ink: #3d3535;
  --pill-info-bg: #e4f2fb; --pill-info-ink: #0b4f78;

  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-title: 24px; --fs-section: 16px; --fs-kpi: 26px; --fs-body: 14px; --fs-small: 12px;

  --sidebar-width: 228px;
  --topbar: 64px;
  --pad: 28px;
  --gap: 16px;
  --card-pad: 20px;
  --radius-card: 8px;
  --radius-control: 6px;
  --radius-chip: 4px;
  --control-height: 34px;
  --row-height: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground); color: var(--text); font: 400 var(--fs-body)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

/* ---------- shell: ruled T-frame ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-width) 1fr; grid-template-rows: var(--topbar) 1fr; min-height: 100vh; }
.brand { grid-row: 1; grid-column: 1; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand b { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.brand span { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.topbar { grid-row: 1; grid-column: 2; display: flex; align-items: center; gap: 16px; padding: 0 var(--pad); border-bottom: 1px solid var(--border); min-width: 0; }
.topbar .crumb { font-weight: 700; font-size: 15px; white-space: nowrap; }
.topbar .crumb small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 8px; }
.topbar .spacer { flex: 1; }
.topbar .who { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--border); height: 100%; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar { grid-row: 2; grid-column: 1; border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar .group { font-size: 12px; color: var(--muted); padding: 18px 10px 6px; }
.nav { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius-control); text-decoration: none; color: #3f3838; transition: background 150ms; }
.nav svg { width: 16px; height: 16px; flex: none; color: #6f6767; }
.nav:hover { background: var(--raised); }
.nav.on { background: var(--active); color: var(--active-ink); font-weight: 700; }
.nav.on svg { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--pill-negative-ink); background: var(--pill-negative-bg); border-radius: 999px; padding: 0 7px; line-height: 20px; }
.sidebar .foot { margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--muted); }
.canvas { grid-row: 2; grid-column: 2; padding: 24px var(--pad) 48px; min-width: 0; }
.menu-btn { display: none; }
.only-sm { display: none !important; }

/* ---------- title row ---------- */
.title-row { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.title-row h1 { font-size: var(--fs-title); font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.title-row .sub { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.title-row .sub b { color: var(--text); }
.title-row .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-height); padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 150ms, border-color 150ms, transform 120ms; }
.btn:hover { background: var(--raised); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--raised); }
.btn.danger { color: var(--negative); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.seg { display: inline-flex; border: 1px solid var(--control); border-radius: var(--radius-control); overflow: hidden; height: var(--control-height); }
.seg button { border: 0; background: var(--surface); padding: 0 12px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--control); }
.seg button.on { background: var(--active); color: var(--active-ink); }

label.field { display: block; margin-bottom: 16px; }
label.field > span, .field-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
label.field > small, .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=datetime-local], input[type=time], input[type=number], select, textarea {
  width: 100%; min-height: 38px; padding: 7px 11px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); transition: border-color 150ms, box-shadow 150ms;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check b { display: block; font-weight: 700; }
.check small { color: var(--muted); font-size: 13px; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px var(--card-pad); border-bottom: 1px solid var(--rule); }
.panel-head h2 { font-size: var(--fs-section); font-weight: 800; margin: 0; }
.panel-head .right { margin-left: auto; flex-wrap: wrap; display: flex; gap: 8px; align-items: center; }
.panel-body { padding: var(--card-pad); }
.rail-h { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-content: start; }

/* KPI strip: one container, divided cells */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 14px var(--card-pad); }
.kpi + .kpi { border-left: 1px solid var(--rule); }
.kpi .l { color: var(--muted); font-size: 14px; }
.kpi .v { font-size: var(--fs-kpi); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.kpi .c { color: var(--muted); font-size: 12px; }
.kpi .v.bad { color: var(--negative); }

/* overview grid */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }

/* ---------- week calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; }
.cal-head .range { font-weight: 800; font-size: 15px; min-width: 190px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { min-height: 340px; padding: 10px 8px 12px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.day:first-child { border-left: 0; }
.day .dh { display: flex; align-items: baseline; gap: 6px; padding: 0 4px 6px; }
.day .dh b { font-size: 18px; font-weight: 800; }
.day .dh span { color: var(--muted); font-size: 13px; }
.day.today .dh b { color: var(--accent); }
.day.past { background: #fcfafa; }
.day .add { margin-top: auto; opacity: 0; transition: opacity 150ms; align-self: stretch; height: 30px; border: 1px dashed var(--control); border-radius: var(--radius-control); background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.day:hover .add, .day .add:focus-visible { opacity: 1; }
.chip { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: var(--radius-control); background: var(--raised); cursor: pointer; border: 1px solid transparent; transition: border-color 150ms, background 150ms; text-align: left; width: 100%; }
.chip:hover { border-color: var(--control); background: var(--surface); }
.chip .top { display: flex; gap: 8px; align-items: center; }
.chip .th { width: 32px; height: 40px; flex: none; border-radius: 4px; background: #ece4e4 center/cover no-repeat; overflow: hidden; }
.chip .th video { width: 100%; height: 100%; object-fit: cover; }
.chip .tm { font-weight: 800; font-size: 14px; line-height: 1.2; }
.chip .st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); line-height: 1.3; }
.chip .st.bad { color: var(--negative); font-weight: 700; }
.chip .st.ok { color: var(--positive); font-weight: 700; }
.chip .t { font-weight: 700; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.chip .m { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* month calendar */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month .wd { font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.month .cell { min-height: 112px; padding: 6px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.month .cell:nth-child(7n+1) { border-left: 0; }
.month .cell.out { background: #fcfafa; color: var(--faint); }
.month .cell .n { font-weight: 800; font-size: 13px; padding: 2px 4px; }
.month .cell.today .n { color: var(--accent); }
.month .mini { font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 4px; background: var(--raised); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month .mini.failed { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.month .mini.published { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }

/* ---------- lists & tables ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: 12px; align-items: center; padding: 10px var(--card-pad); border-top: 1px solid var(--rule); min-height: 52px; }
.rows li:first-child { border-top: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .ttl { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .sub2 { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.t { width: 100%; border-collapse: collapse; }
.scroll-x { overflow-x: auto; }
table.t th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 10px 12px; }
table.t td { padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #fdfafa; }
table.t .thumb { width: 36px; height: 45px; border-radius: 4px; background: #ece4e4 center/cover no-repeat; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.pill.ok { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill.bad { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.pill.warn { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.pill.info { background: var(--pill-info-bg); color: var(--pill-info-ink); }
.pill.red { background: var(--accent-soft); color: var(--accent-ink); }
.plat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius-control); background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--active); color: var(--active-ink); }
.tabs button:hover:not(.on) { background: var(--raised); }

/* ---------- composer ---------- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.drop { border: 1px dashed var(--control); border-radius: var(--radius-card); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color 150ms, background 150ms; }
.drop:hover, .drop.over { border-color: var(--accent); background: #fffafa; }
.drop b { color: var(--text); }
.strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tile { width: 92px; position: relative; }
.tile .img { width: 92px; height: 115px; border-radius: 6px; background: #ece4e4 center/cover no-repeat; overflow: hidden; border: 2px solid transparent; }
.tile.cover .img { border-color: var(--accent); }
.tile .img video { width: 100%; height: 100%; object-fit: cover; }
.tile .bar { display: flex; gap: 2px; justify-content: center; margin-top: 4px; }
.tile .bar button { border: 0; background: transparent; cursor: pointer; padding: 2px 4px; border-radius: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.tile .bar button:hover { background: var(--raised); color: var(--text); }
.tile .meta { font-size: 11.5px; color: var(--muted); text-align: center; }
.tile .prog { position: absolute; inset: 0 0 auto 0; height: 115px; display: grid; place-items: center; background: rgba(255,255,255,.75); border-radius: 6px; font-weight: 800; }
.counter { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.counter .over { color: var(--negative); font-weight: 700; }
.acct-grid { display: grid; gap: 4px; }
.acct { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-control); cursor: pointer; border: 1px solid transparent; }
.acct:hover { background: var(--raised); }
.acct.sel { background: var(--accent-soft); border-color: #f6c6cb; }
.acct input { accent-color: var(--accent); width: 16px; height: 16px; }
.acct .nm { font-weight: 700; line-height: 1.2; }
.acct .pf { font-size: 12px; color: var(--muted); }
.acct .avatar { width: 26px; height: 26px; font-size: 11px; }
.checklist li { align-items: flex-start; }
.checklist .ok { color: var(--positive); font-weight: 800; }
.checklist .bad { color: var(--negative); }
.sticky { position: sticky; top: 16px; }

/* brand quick-select */
.brands { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 2px 8px 12px; }
.bchip { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--control); background: var(--surface); font-weight: 700; font-size: 13px; cursor: pointer; transition: background 150ms; }
.bchip span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.bchip:hover { background: var(--raised); }
.bchip.on { background: var(--accent-soft); border-color: #f6c6cb; color: var(--accent-ink); }
.bsel { width: auto; min-height: 34px; height: 34px; padding: 4px 10px; }

/* ---------- settings (two columns) ---------- */
.set { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--border); }
.set:first-of-type { border-top: 0; padding-top: 4px; }
.set h2 { font-size: 16px; font-weight: 800; margin: 6px 0 4px; }
.set p.d { color: var(--muted); margin: 0; font-size: 14px; }
.set .well { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
.copy { display: flex; gap: 8px; align-items: center; background: var(--raised); border-radius: var(--radius-control); padding: 6px 6px 6px 10px; font-size: 13px; margin-bottom: 8px; }
.copy code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- notices, empty, toast, drawer ---------- */
.notice { padding: 12px 14px; border-radius: var(--radius-control); background: var(--pill-warning-bg); color: var(--pill-warning-ink); margin-bottom: 16px; font-size: 14px; }
.notice.bad { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.notice.ok { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.notice.info { background: var(--accent-soft); color: var(--accent-ink); }
.empty { padding: 28px var(--card-pad); color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.toast { position: fixed; right: 20px; bottom: 20px; background: #1c1717; color: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18); z-index: 50; max-width: 420px; animation: up 200ms var(--ease); }
.toast.bad { background: #831c1e; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.scrim { position: fixed; inset: 0; background: rgba(28,23,23,.32); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 31; box-shadow: -8px 0 32px rgba(0,0,0,.12); display: flex; flex-direction: column; animation: slide 220ms var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.drawer header h2 { margin: 0; font-size: 17px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .body { padding: 20px; overflow: auto; flex: 1; }
.drawer .body h3 { font-size: 14px; font-weight: 800; margin: 20px 0 8px; }
.drawer .cap { white-space: pre-wrap; background: var(--raised); border-radius: 6px; padding: 12px; font-size: 13.5px; max-height: 220px; overflow: auto; }
.drawer footer { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.media-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.media-row > * { flex: none; width: 84px; height: 105px; border-radius: 6px; background: #ece4e4 center/cover no-repeat; object-fit: cover; }
.log { font-size: 12.5px; color: var(--muted); }
.log li { padding: 4px 0; border-top: 1px solid var(--rule); list-style: none; }
.log { padding: 0; margin: 0; }
.log .error { color: var(--negative); }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth .side { background: var(--accent); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .side h2 { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 900; max-width: 14ch; }
.auth .side p { font-size: 17px; max-width: 38ch; opacity: .92; }
.auth .side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 700; }
.auth .form { display: grid; place-items: center; padding: 32px 20px; }
.auth form { width: min(380px, 100%); }
.auth h1 { font-size: 24px; font-weight: 900; margin: 0 0 4px; letter-spacing: -0.02em; }
.auth .lead { color: var(--muted); margin: 0 0 24px; }

/* ---------- import ---------- */
.imp td { font-size: 13.5px; }
.imp input[type=datetime-local] { min-height: 32px; padding: 4px 8px; width: 200px; }
.imp .cap { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }

/* ---------- phone ---------- */
@media (max-width: 1100px) {
  .ov, .compose { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .shell { grid-template-columns: 1fr; grid-template-rows: 56px 1fr; }
  .brand { grid-column: 1; border-right: 0; padding: 0 12px 0 56px; }
  .brand span { display: none; }
  .topbar { display: none; }
  .menu-btn { display: grid; place-items: center; position: fixed; top: 10px; left: 10px; width: 36px; height: 36px; border: 1px solid var(--control); background: var(--surface); border-radius: var(--radius-control); z-index: 21; }
  .sidebar { position: fixed; inset: 56px 0 0 0; background: var(--ground); z-index: 20; display: none; padding: 12px 16px; }
  .sidebar.open { display: flex; }
  .canvas { grid-column: 1; padding: 20px var(--pad) 40px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .day:first-child { border-top: 0; }
  .day .add { opacity: 1; }
  .month .cell { min-height: 64px; }
  .month .mini { display: none; }
  .month .cell.has::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 4px; }
  .set { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cal-head { flex-wrap: wrap; }
  .cal-head .range { min-width: 0; }
  .rows li { flex-wrap: wrap; }
  .rows li .grow { flex-basis: calc(100% - 50px); }
  .grid2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth .side { padding: 28px 20px; }
  .auth .side ul { display: none; }
  .hide-sm { display: none; }
  .only-sm { display: inline-flex !important; }
  .panel-head { flex-wrap: wrap; }
  .canvas > * { min-width: 0; }
  .chip { flex-direction: row; align-items: center; }
  .chip .t { flex: 1; -webkit-line-clamp: 2; }
  .chip .m { display: none; }
  .title-row .actions { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
