/* =========================================================
 *  Pixelschmitt Planung – Oberfläche
 * ========================================================= */
:root {
  --ink: #16181d;
  --text: #2b2f36;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --soft: #f3f4f6;
  --accent: #4f46e5;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #059669;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --st-idee: #9ca3af;
  --st-inhalte: #f59e0b;
  --st-arbeit: #3b82f6;
  --st-freigabe: #8b5cf6;
  --st-korrektur: #ef4444;
  --st-freigegeben: #10b981;
  --st-veroeffentlicht: #0f766e;
  font-family: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); font-size: 14px; line-height: 1.5; }
a { color: inherit; }
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 4px; color: var(--ink); letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0 0 12px; color: var(--ink); }
p { margin: 0 0 10px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--danger) !important; }
.text-warn { color: var(--warn); }
.spacer { flex: 1; }
.empty { color: var(--muted); font-style: italic; margin: 6px 0; }
[hidden] { display: none !important; }

/* ---------- Formulare ---------- */
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
input[type=color] { padding: 2px; height: 38px; cursor: pointer; }
textarea { resize: vertical; line-height: 1.5; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 13px; color: var(--ink); }
label.check, label.radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
legend { font-weight: 600; color: var(--ink); padding: 0 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--soft); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c2f36; }
.btn-accent { background: var(--st-freigabe); border-color: var(--st-freigabe); color: #fff; }
.btn-accent:hover { background: #7c3aed; }
.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; height: 34px; padding: 0; font-size: 18px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--soft); color: var(--text); white-space: nowrap; }
.badge.st-idee { background: #f3f4f6; color: #4b5563; }
.badge.st-inhalte { background: #fef3c7; color: #92400e; }
.badge.st-arbeit { background: #dbeafe; color: #1e40af; }
.badge.st-freigabe { background: #ede9fe; color: #5b21b6; }
.badge.st-korrektur { background: #fee2e2; color: #991b1b; }
.badge.st-freigegeben { background: #d1fae5; color: #065f46; }
.badge.st-veroeffentlicht { background: #ccfbf1; color: #115e59; }

.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; transition: opacity .4s; }
.flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.banner { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.banner blockquote { margin: 8px 0 0; padding: 8px 12px; background: rgba(255,255,255,.7); border-radius: 8px; white-space: pre-wrap; }
.banner-ok { background: #ecfdf5; color: #065f46; }
.banner-wait { background: #f5f3ff; color: #5b21b6; }
.banner-warn { background: #fef2f2; color: #7f1d1d; }
.banner-info { background: #eff6ff; color: #1e3a8a; }
.callout { background: var(--soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 100; font-size: 14px; max-width: 90vw; }
.toast.is-error { background: var(--danger); }

/* ---------- Admin-Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: none; background: #fbfbfa; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 4px 8px 16px; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; background: none; border: 0; font: inherit; width: 100%; text-align: left; cursor: pointer; }
.nav-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.nav-link:hover { background: rgba(0,0,0,.04); }
.nav-link.is-active { background: #ececea; color: var(--ink); }
.nav-link.is-active svg { color: var(--ink); }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 16px 10px 6px; font-weight: 600; }
.nav-clients .nav-link { font-weight: 400; }
.nav-add { color: var(--muted) !important; font-size: 13px; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.main { flex: 1; min-width: 0; padding: 28px 32px 60px; }
.menu-toggle { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.client-title { display: flex; align-items: center; gap: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; overflow: hidden; flex: none; background: #9ca3af; font-size: 14px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; background: #e5e7eb; color: var(--text); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel.no-pad { padding: 0; overflow: hidden; }
.panel-danger { border-color: #fecaca; }
.empty-state { text-align: center; padding: 48px 24px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-color: var(--ink); }

/* ---------- Übersicht ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; color: var(--muted); font-size: 13px; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-warn .stat-num { color: var(--st-korrektur); }
.stat-danger { border-color: #fecaca; background: #fff7f7; }
.stat-danger .stat-num { color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 18px; }
.day-group { margin-bottom: 14px; }
.day-label { font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.row-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; }
.row-link:hover { background: var(--soft); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main strong { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { color: var(--muted); font-size: 12.5px; }

/* Plattform-Kennzeichnung */
.pf { display: inline-flex; width: 16px; height: 16px; border-radius: 4px; flex: none; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; vertical-align: -3px; }
.pf-linkedin { background: #0a66c2; }
.pf-linkedin::after { content: "LI"; }
.pf-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.pf-instagram::after { content: "IG"; }
.pf-facebook { background: #1877f2; }
.pf-facebook::after { content: "FB"; }
.pf-group { display: inline-flex; gap: 2px; vertical-align: -3px; flex: none; }
.pf-group .pf { vertical-align: 0; }
.cal-post .pf-group { gap: 1px; }
.platform-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pf-check { flex-direction: row; position: relative; font-weight: 500; }
.pf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pf-check > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; color: var(--muted); background: #fff; font-size: 13px; user-select: none; }
.pf-check > span .pf { opacity: .35; }
.pf-check input:checked + span { color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pf-check input:checked + span .pf { opacity: 1; }
.pf-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.tpl-row .platform-picker { margin: 0; }
.tpl-row { grid-template-columns: 20px 1fr 80px 150px auto 34px; }

/* ---------- Kalender ---------- */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-title { margin: 0 6px; font-size: 17px; min-width: 150px; text-align: center; }
.cal-layers { display: flex; gap: 14px; flex-wrap: wrap; }
.cal-layers label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; color: var(--muted); font-size: 13px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); background: #fbfbfa; }
.cal-day { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; transition: background .1s; }
.cal-day:nth-child(7n + 7) { border-right: 0; }
.cal-day.is-other { background: #fafafa; }
.cal-day.is-other .cal-num { color: #c0c4cc; }
.cal-day.is-weekend { background: #fcfcfb; }
.cal-day.is-holiday { background: #fffbeb; }
.cal-day.is-past .cal-post { opacity: .7; }
.cal-day.is-drop { background: #eef2ff; box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day-head { display: flex; justify-content: space-between; align-items: center; height: 22px; }
.cal-num { font-size: 12.5px; font-weight: 600; color: var(--text); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-day.is-today .cal-num { background: var(--ink); color: #fff; }
.cal-add { opacity: 0; text-decoration: none; width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-add:hover { background: var(--soft); color: var(--ink); }
.cal-holiday { font-size: 11px; color: #92400e; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event { display: block; font-size: 11px; font-weight: 600; padding: 2px 6px; margin: 0 -7px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #e0e7ff; color: #3730a3; min-height: 19px; }
.cal-event.ev-start { margin-left: 0; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.cal-event.ev-end { margin-right: 0; border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.type-messe { background: #fde68a; color: #78350f; }
.type-event, .type-vortrag { background: #e0e7ff; color: #3730a3; }
.type-launch { background: #fbcfe8; color: #831843; }
.type-jubilaeum { background: #ddd6fe; color: #4c1d95; }
.type-urlaub { background: repeating-linear-gradient(135deg, #e5e7eb, #e5e7eb 6px, #f3f4f6 6px, #f3f4f6 12px); color: #374151; }
.type-sonstiges { background: #e5e7eb; color: #374151; }
.type-kampagne { background: #bbf7d0; color: #14532d; }
.type-aktionstag { background: #bae6fd; color: #0c4a6e; }
.ev-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.cal-post { display: flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 6px 3px 5px; border-radius: 6px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--st, #9ca3af); color: var(--ink); min-width: 0; cursor: pointer; }
.cal-post:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.cal-post .pf { width: 14px; height: 14px; font-size: 8px; }
.cal-post-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal-post.is-shell { border-style: dashed; border-left-style: solid; background: #fafafa; color: var(--muted); }
.cal-post.is-dragging { opacity: .4; }
.st-idee { --st: var(--st-idee); } .st-inhalte { --st: var(--st-inhalte); } .st-arbeit { --st: var(--st-arbeit); }
.st-freigabe { --st: var(--st-freigabe); } .st-korrektur { --st: var(--st-korrektur); } .st-freigegeben { --st: var(--st-freigegeben); }
.st-veroeffentlicht { --st: var(--st-veroeffentlicht); }
.cal-slot { display: block; font-size: 11.5px; padding: 3px 6px; border-radius: 6px; border: 1px dashed color-mix(in srgb, var(--c) 55%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 6%, #fff); }
.cal-slot:hover { background: color-mix(in srgb, var(--c) 14%, #fff); }
.cal.hide-events [data-layer-item="events"], .cal.hide-holidays [data-layer-item="holidays"], .cal.hide-slots [data-layer-item="slots"] { display: none; }
.cal.hide-holidays .cal-day.is-holiday { background: inherit; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--st); display: inline-block; }
.is-shell-dot { background: #fff; border: 1.5px dashed #9ca3af; }

/* ---------- Board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.board-col { background: #efefec; border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 170px); }
.board-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 600; color: var(--ink); font-size: 13px; }
.board-col-head .count { margin-left: auto; color: var(--muted); font-weight: 500; background: rgba(255,255,255,.7); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.board-col-body { padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; overflow-y: auto; border-radius: 10px; transition: background .1s; }
.board-col-body.is-drop { background: rgba(79,70,229,.08); }
.card { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border: 1px solid transparent; border-top: 3px solid var(--c); cursor: grab; }
.card:hover { border-color: var(--line-strong); border-top-color: var(--c); }
.card.is-shell { background: #fbfbfa; border: 1px dashed var(--line-strong); border-top: 3px solid var(--c); }
.card.is-dragging { opacity: .4; }
.card-thumb { width: calc(100% + 24px); margin: -10px -12px 4px; height: 110px; object-fit: cover; border-radius: 8px 8px 0 0; }
.card-client { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.card-title { color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.card-text { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.board-placeholder { height: 4px; border-radius: 2px; background: var(--accent); margin: -2px 0; }

/* ---------- Kunden ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.client-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; box-shadow: var(--shadow); border-left: 4px solid var(--c); }
.client-card:hover { border-color: var(--line-strong); border-left-color: var(--c); }
.client-card.is-archived { opacity: .55; }
.client-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.client-card-body strong { color: var(--ink); font-size: 15px; }
.client-card-body small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.client-meta span { background: var(--soft); padding: 1px 8px; border-radius: 6px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.form-grid h2 { margin-top: 6px; margin-bottom: 0; }
.avatar-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.weekday-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -8px; }
.chip-check { flex-direction: row; position: relative; }
.chip-check span { display: inline-flex; width: 42px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.chip-check input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-row.is-inactive { opacity: .55; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.add-contact { display: grid; grid-template-columns: 1fr 1.3fr auto auto; gap: 8px; align-items: center; padding-top: 6px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfbfa; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: #fafafa; }
.table a { text-decoration: none; color: var(--ink); }
.table tr.is-past { opacity: .6; }
.filters { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.filters select { width: auto; }

/* ---------- Editor ---------- */
.editor-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
.back:hover { color: var(--ink); }
.save-state { font-size: 12.5px; color: var(--muted); }
.save-state.is-dirty { color: var(--warn); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 24px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.editor-preview { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
.title-input { font-size: 22px; font-weight: 700; border: 0; background: transparent; padding: 4px 0; color: var(--ink); border-radius: 0; border-bottom: 1px solid transparent; }
.title-input:focus { box-shadow: none; border-bottom-color: var(--line-strong); }
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.meta-field { font-size: 12px; color: var(--muted); font-weight: 500; }
.meta-field input, .meta-field select { width: auto; }
.segmented { display: inline-flex; background: #ececea; border-radius: 10px; padding: 3px; }
.segmented label { flex-direction: row; font-weight: 500; position: relative; }
.segmented input, .chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented input:focus-visible + span, .chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.segmented span { padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 13px; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.briefing { background: #fffdf5; border: 1px solid #f5e7b4; border-radius: 10px; padding: 8px 12px; }
.briefing summary { cursor: pointer; font-weight: 600; color: #78350f; font-size: 13px; }
.briefing textarea { margin-top: 8px; background: #fff; }
.composer { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.composer-bar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: #fbfbfa; flex-wrap: wrap; }
.tool { border: 0; background: none; width: 32px; height: 30px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 15px; color: var(--text); }
.tool:hover { background: #ececea; }
.tool-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 6px; }
.composer-stats { margin-left: auto; display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.body-input { border: 0; border-radius: 0; min-height: 320px; font-size: 15px; line-height: 1.55; padding: 14px 16px; box-shadow: none !important; resize: none; overflow: hidden; }
.hook-info { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 14px; font-size: 12.5px; color: var(--muted); background: #fbfbfa; border-top: 1px solid var(--line); }
.hook-info:empty { display: none; }
.hook-info b { color: var(--text); font-weight: 600; }
.hook-label { background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.media-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.media-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.media-list { display: flex; flex-wrap: wrap; gap: 8px; }
.media-list:empty { display: none; }
.media-item { width: 92px; height: 92px; border-radius: 8px; overflow: hidden; position: relative; background: var(--soft); cursor: grab; border: 1px solid var(--line); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.media-item.is-dragging { opacity: .4; }
.media-kind { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 4px; font-size: 10px; padding: 1px 5px; }
.media-doc { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-weight: 700; color: var(--danger); }
.media-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; opacity: 0; }
.media-item:hover .media-remove { opacity: 1; }
.dropzone { display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 10px; color: var(--muted); cursor: pointer; font-weight: 400; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.is-over { background: #f5f5ff; border-color: var(--accent); color: var(--ink); }
.upload-progress { display: flex; flex-direction: column; gap: 6px; }
.upload-row { font-size: 12px; color: var(--muted); }
.upload-bar { height: 4px; background: var(--soft); border-radius: 2px; overflow: hidden; margin-top: 3px; }
.upload-bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.editor-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, rgba(246,246,244,0)); padding: 14px 0 6px; }
.editor-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 28px; align-items: start; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--line); margin-left: 5px; }
.tl::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; border: 2px solid #fff; }
.tl-approved::before { background: var(--st-freigegeben); }
.tl-changes::before { background: var(--st-korrektur); }
.tl-sent::before { background: var(--st-freigabe); }
.tl-comment::before { background: var(--accent); }
.tl-reset::before { background: var(--warn); }
.tl-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tl-action { color: var(--muted); }
.tl-msg { margin-top: 4px; background: var(--soft); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; }
.tl-client .tl-msg { background: #f5f3ff; }
.version { border-bottom: 1px solid var(--line); padding: 8px 0; }
.version summary { cursor: pointer; }
.version-body { background: var(--soft); border-radius: 8px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; font-size: 13px; max-height: 300px; overflow: auto; }
.danger-zone { display: flex; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Termine & Pakete ---------- */
.package-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.package-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; text-decoration: none; }
.package-card:hover { border-color: var(--ink); }
.package-card.is-match { border-color: var(--accent); background: #f5f5ff; }
.package-card small { color: var(--muted); }
.package-new { align-items: center; justify-content: center; color: var(--muted); border-style: dashed; }
.package-list { display: flex; flex-direction: column; gap: 10px; }
.package-item { display: flex; gap: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 14px; background: #fbfbfa; }
.package-use input { width: 18px; height: 18px; }
.package-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.package-title { font-weight: 600; }
.package-fields .inline input, .package-fields .inline select { width: auto; }
.template-card { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.template-card strong { color: var(--ink); font-size: 15px; }
.mini-timeline { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mini-timeline .mono { display: inline-block; width: 46px; color: var(--muted); }
.tpl-rows { display: flex; flex-direction: column; gap: 10px; }
.tpl-row { display: grid; grid-template-columns: 20px 1fr 80px 150px 170px 34px; gap: 8px; align-items: center; background: #fbfbfa; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.tpl-row textarea { grid-column: 2 / -1; }
.drag-handle { color: var(--muted); cursor: grab; }
.num { text-align: right; }

/* ---------- Dialoge ---------- */
.dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, 94vw); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(15,17,21,.45); }
.dialog form { padding: 20px 22px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { margin: 0; font-size: 17px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Login / Installer ---------- */
body.auth { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(ellipse at top, #ffffff, var(--bg)); }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-wrap.auth-wide { max-width: 760px; }
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 700; margin-bottom: 18px; color: var(--ink); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.auth-card h1 { font-size: 22px; margin-bottom: 8px; }
.code-input { font-size: 28px; letter-spacing: .4em; text-align: center; font-family: ui-monospace, Menlo, monospace; padding: 12px; }
.secret-box { font-family: ui-monospace, Menlo, monospace; font-size: 17px; letter-spacing: .08em; background: var(--soft); border-radius: 10px; padding: 12px; margin: 8px 0 4px; text-align: center; cursor: copy; word-break: break-all; }
.setup-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.big-icon { font-size: 44px; text-align: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 13px; }
.checklist .ok { color: var(--ok); }
.checklist .bad { color: var(--danger); grid-column: 1 / -1; }

/* ---------- Kundenportal ---------- */
body.portal { background: #f7f7f5; }
.portal-top { background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; gap: 12px; position: sticky; top: 0; z-index: 10; }
.portal-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.portal-brand strong { display: block; color: var(--ink); font-size: 15px; }
.portal-brand small { color: var(--muted); font-size: 12px; }
.portal-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--client); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.portal-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.portal-nav a { text-decoration: none; color: var(--muted); }
.portal-nav a:hover { color: var(--ink); }
.portal-nav form { margin: 0; color: var(--muted); }
.portal-main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.portal-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
.hello h1 { font-size: 28px; }
.lead { font-size: 16px; color: var(--muted); }
.portal-section { margin-top: 32px; }
.portal-section > h2, .section-head h2 { font-size: 17px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.approve-list { display: flex; flex-direction: column; gap: 10px; }
.approve-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--st-freigabe); border-radius: 14px; padding: 16px 18px; text-decoration: none; box-shadow: var(--shadow); }
.approve-card:hover { border-color: var(--line-strong); border-left-color: var(--st-freigabe); }
.approve-date { display: flex; flex-direction: column; align-items: center; width: 54px; flex: none; color: var(--muted); font-size: 12px; }
.approve-date strong { font-size: 18px; color: var(--ink); }
.approve-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.approve-body strong { font-size: 15px; color: var(--ink); }
.approve-body small { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.approve-excerpt { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.upcoming { display: flex; align-items: center; gap: 14px; padding: 10px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.upcoming:last-child { border-bottom: 0; }
.upcoming:hover { background: #fafafa; }
.upcoming-date { width: 96px; flex: none; font-weight: 600; color: var(--ink); font-size: 13px; }
.upcoming img, .upcoming-ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; }
.upcoming-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.upcoming-body strong { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-body small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.back-link { margin-bottom: 14px; }
.back-link a { color: var(--muted); text-decoration: none; }
.portal-post { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.portal-post-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.post-title { font-size: 20px; margin: 10px 0 6px; }
.changes-box summary { list-style: none; }
.changes-box summary::-webkit-details-marker { display: none; }
.changes-box[open] summary { margin-bottom: 10px; }

/* ---------- Druck (Protokoll) ---------- */
body.print { background: #fff; }
.protocol { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.protocol-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.protocol-table { border: 1px solid var(--line); }
.protocol-table .pr-approved td:nth-child(3) { color: var(--ok); font-weight: 600; }
.protocol-table .pr-changes td:nth-child(3) { color: var(--danger); font-weight: 600; }
@media print {
  .no-print { display: none !important; }
  .protocol { padding: 0; }
  .table th { background: #fff; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1280px) {
  .editor { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
}
@media (max-width: 1100px) {
  .editor, .dash-grid, .form-grid, .editor-bottom, .portal-post { grid-template-columns: minmax(0, 1fr); }
  .editor-preview, .portal-post-side { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.nav-open .sidebar { transform: none; }
  .menu-toggle { display: inline-flex; border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 38px; height: 38px; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; cursor: pointer; }
  .main { padding: 16px 14px 60px; }
  .grid2, .add-contact { grid-template-columns: 1fr; }
  .cal-day { min-height: 74px; padding: 3px; }
  .cal-post-title, .cal-slot { font-size: 10.5px; }
  .cal-post .pf, .cal-holiday { display: none; }
  .tpl-row { grid-template-columns: 1fr 1fr; }
  .tpl-row .drag-handle { display: none; }
  .portal-top { padding: 10px 14px; }
  .portal-brand small { display: none; }
  .approve-card { flex-wrap: wrap; }
  .approve-card .btn { width: 100%; }
  .upcoming-date { width: 70px; font-size: 12px; }
  .upcoming .badge { display: none; }
}
@media (max-width: 560px) {
  .cal-wd { padding: 6px 4px; font-size: 11px; }
  .cal-post { padding: 2px 3px; border-left-width: 3px; }
  .cal-post .dot { display: none; }
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .portal-nav a[href="/"] { display: none; }
  .portal-nav { gap: 12px; font-size: 13px; }
  .portal-brand strong { font-size: 14px; }
  .hello h1 { font-size: 24px; }
}

/* ---------- Monatsplan (Tabellenansicht) ---------- */
.mp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mp th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fbfbfa; position: sticky; top: 0; z-index: 1; }
.mp td { border-bottom: 1px solid var(--line); padding: 0; vertical-align: top; font-size: 13.5px; }
.mp td.mp-static { padding: 8px 10px; }
.mp col.c-day { width: 108px; } .mp col.c-date { width: 64px; } .mp col.c-event { width: 18%; } .mp col.c-pf { width: 92px; } .mp col.c-st { width: 132px; } .mp col.c-go { width: 40px; }
.mp tr.is-weekend td { background: #f7f7f5; }
.mp tr.is-weekend td.mp-static { color: var(--muted); }
.mp tr.is-today td.mp-static:first-child { box-shadow: inset 3px 0 0 var(--ink); font-weight: 700; }
.mp tr.is-slot td.mp-static:first-child { box-shadow: inset 3px 0 0 var(--c); }
.mp tr.is-cont td.mp-day, .mp tr.is-cont td.mp-date { color: transparent; }
.mp tr.has-post td { background: #fff; }
.mp tr.has-post.st-freigegeben td.mp-status, .mp tr.has-post.st-veroeffentlicht td.mp-status { background: #f0fdf4; }
.mp-cell { width: 100%; border: 0; border-radius: 0; background: transparent; padding: 8px 10px; font: inherit; color: var(--ink); resize: none; min-height: 36px; line-height: 1.4; overflow: hidden; display: block; }
.mp-cell:focus { box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }
.mp-cell.mp-title { font-weight: 600; }
.mp-cell::placeholder { color: transparent; }
.mp tr:hover .mp-cell::placeholder, .mp-cell:focus::placeholder { color: #c4c7cc; }
.mp tr.is-slot .mp-cell.mp-title::placeholder { color: color-mix(in srgb, var(--c) 55%, #fff); }
.mp-cell.is-saving { background: #fffbeb; }
.mp-cell.is-saved { background: #f0fdf4; transition: background 1s; }
.mp-ev { display: flex; flex-wrap: wrap; gap: 3px; }
.mp-ev a, .mp-ev span { text-decoration: none; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mp-hol { background: #fef3c7; color: #92400e; }
.mp-add { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 4px; opacity: 0; }
.mp tr:hover .mp-add { opacity: 1; }
.mp-go { display: inline-flex; padding: 8px 10px; text-decoration: none; color: var(--muted); }
.mp-go:hover { color: var(--ink); }
@media (max-width: 860px) { .mp col.c-event, .mp col.c-pf { width: 0; } .mp .mp-hide-sm { display: none; } }

/* ---------- Ideen-Backlog ---------- */
.cal-with-ideas { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; align-items: start; }
.idea-rail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.idea-rail.is-drop { box-shadow: inset 0 0 0 2px var(--accent); }
.idea-rail-head { display: flex; justify-content: space-between; align-items: center; }
.idea-rail-head .count { color: var(--muted); font-size: 12px; background: var(--soft); border-radius: 999px; padding: 0 8px; }
.idea-rail p { margin: 0; }
.idea-quick input { font-size: 13px; padding: 6px 8px; }
.idea-rail-list { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; min-height: 40px; }
.idea-chip { cursor: grab; background: #fffdf5; border-color: #f1e3b0; }
.idea-from { margin-left: auto; font-size: 10px; font-weight: 700; background: var(--st-freigabe); color: #fff; border-radius: 4px; padding: 0 4px; }
.ideas-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.idea-list { display: flex; flex-direction: column; gap: 10px; }
.idea-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.idea-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.idea-title { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 15px; }
.idea-notes { margin: 0; }
.idea-plan { display: flex; gap: 6px; align-items: center; }
.idea-plan input { width: auto; }
.portal-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.portal-idea { background: #fffdf5; border: 1px solid #f1e3b0; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.portal-idea small { color: var(--muted); }
.li-more-btn, .ig-more-btn, .fb-more-btn { z-index: 1; }
@media (max-width: 1100px) { .cal-with-ideas, .ideas-grid { grid-template-columns: minmax(0, 1fr); } .idea-rail { position: static; } .idea-card { flex-wrap: wrap; } }

.mobile-approve-bar { display: none; }
@media (max-width: 1100px) {
  .mobile-approve-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
  body.portal .portal-main { padding-bottom: 90px; }
  #freigabe { scroll-margin-top: 80px; }
}

/* ---------- Teilen-Link ---------- */
.dialog-wide { width: min(760px, 94vw); }
.dialog-body { padding: 20px 22px; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.share-row input { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.share-row .small { grid-column: 1; }
.share-row form { margin: 0; justify-self: end; }
.share-new { display: flex; flex-direction: column; gap: 8px; background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.share-new .meta-field select { width: auto; }
body.share { background: #f7f7f5; }
.share-top { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-top small { color: var(--muted); }
