/* Lantbruksnytt TV-admin. En fil, inga ramverk. Ljust och mörkt läge. */

:root {
	--c-bg: #f4f6f3;
	--c-surface: #ffffff;
	--c-surface-2: #f8faf7;
	--c-ink: #18211a;
	--c-ink-2: #4a564c;
	--c-ink-3: #7b867c;
	--c-line: #e2e7e0;
	--c-line-2: #d3dad1;
	--c-brand: #2f8f3a;
	--c-brand-ink: #1f6a29;
	--c-brand-soft: #e6f3e6;
	--c-accent: #e8a317;
	--c-info: #2f6fb3;
	--c-info-soft: #e6eff9;
	--c-ok: #2f8f3a;
	--c-ok-soft: #e6f3e6;
	--c-warn: #b7791f;
	--c-warn-soft: #fdf3dc;
	--c-bad: #c23b31;
	--c-bad-soft: #fbe7e5;
	--c-focus: #2f6fb3;
	--shadow-1: 0 1px 2px rgba(20, 30, 20, .06), 0 1px 1px rgba(20, 30, 20, .04);
	--shadow-2: 0 10px 30px rgba(20, 30, 20, .12), 0 2px 6px rgba(20, 30, 20, .06);
	--radius: 12px;
	--radius-sm: 8px;
	--f-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--sidebar: 248px;
	--topbar: 60px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--c-bg: #101411;
	--c-surface: #171d18;
	--c-surface-2: #1c231d;
	--c-ink: #e8eee8;
	--c-ink-2: #b4c0b5;
	--c-ink-3: #86938a;
	--c-line: #263027;
	--c-line-2: #324034;
	--c-brand: #4fb35a;
	--c-brand-ink: #7fd087;
	--c-brand-soft: #1d3320;
	--c-info: #6ea8e6;
	--c-info-soft: #18283a;
	--c-ok: #5cc067;
	--c-ok-soft: #1a2f1c;
	--c-warn: #e7b04b;
	--c-warn-soft: #33290f;
	--c-bad: #f0786e;
	--c-bad-soft: #3a1b18;
	--c-focus: #8bbcf0;
	--shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-2: 0 14px 40px rgba(0, 0, 0, .55);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 15px/1.5 var(--f-ui);
	color: var(--c-ink);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--c-brand-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 750; display: flex; align-items: center; gap: .5rem; }
h2 { font-size: 1rem; font-weight: 650; }
.h3 { font-size: .95rem; margin-top: 1.5rem; }
p { margin: 0 0 .75rem; }
code, kbd, .mono { font-family: var(--f-mono); font-size: .9em; }
code { background: var(--c-surface-2); border: 1px solid var(--c-line); padding: .1em .35em; border-radius: 5px; word-break: break-all; }
kbd { border: 1px solid var(--c-line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; font-size: .75rem; background: var(--c-surface); color: var(--c-ink-2); }
.muted { color: var(--c-ink-3); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.clip { max-width: 520px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--c-surface); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root:not([data-theme="dark"]) .only-dark, :root[data-theme="dark"] .only-light { display: none; }

/* Laddningsstapel */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--c-brand); z-index: 200; transition: width .3s ease, opacity .3s; opacity: 0; }
.progress.is-loading { opacity: 1; width: 70%; transition: width 6s cubic-bezier(.1, .7, .2, 1); }
.progress.is-done { opacity: 0; width: 100%; transition: width .2s, opacity .4s .2s; }

/* Skal */
.has-shell { padding-left: var(--sidebar); padding-top: var(--topbar); }
.sidebar {
	position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
	background: var(--c-surface); border-right: 1px solid var(--c-line);
	display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; height: var(--topbar); text-decoration: none; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.brand img { width: 132px; height: auto; flex: none; }
.brand span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-3); }
.nav { flex: 1; overflow-y: auto; padding: .5rem .6rem 1rem; }
.nav__group { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-3); padding: 1rem .6rem .3rem; }
.nav__link { display: flex; align-items: center; gap: .65rem; padding: .48rem .6rem; border-radius: var(--radius-sm); color: var(--c-ink-2); text-decoration: none; font-weight: 520; }
.nav__link:hover { background: var(--c-surface-2); color: var(--c-ink); }
.nav__link.is-active { background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: 650; }
.nav__link .icon { opacity: .85; }
.sidebar__publish { padding: .8rem; border-top: 1px solid var(--c-line); }

.topbar {
	position: fixed; top: 0; left: var(--sidebar); right: 0; height: var(--topbar); z-index: 30;
	display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
	background: color-mix(in srgb, var(--c-bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--c-line);
}
.topbar__menu { display: none; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.search-trigger {
	display: flex; align-items: center; gap: .6rem; min-width: min(420px, 50vw); padding: .45rem .75rem;
	border: 1px solid var(--c-line-2); border-radius: 999px; background: var(--c-surface); color: var(--c-ink-3); cursor: pointer; font: inherit;
}
.search-trigger kbd { margin-left: auto; }
.search-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.search-trigger:hover { border-color: var(--c-brand); }

.main { max-width: 1440px; padding: 1.75rem 2rem 4rem; outline: none; }
.no-shell .main { max-width: none; padding: 0; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head p { margin: 0; }
.page-head__actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--c-ink-3); text-decoration: none; margin-bottom: .25rem; }
.back:hover { color: var(--c-ink); }

/* Användarmeny */
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .2rem .4rem .2rem .2rem; border-radius: 999px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--c-surface); }
.usermenu__name { font-weight: 600; font-size: .9rem; }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 230px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: .4rem; z-index: 60; }
.usermenu__panel a, .usermenu__panel button { display: flex; gap: .5rem; align-items: center; width: 100%; padding: .55rem .6rem; border-radius: var(--radius-sm); color: var(--c-ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--c-surface-2); }
.usermenu__who { padding: .5rem .6rem .6rem; border-bottom: 1px solid var(--c-line); margin-bottom: .3rem; display: grid; }
.avatar { --c: #3a7bab; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: .85rem; vertical-align: middle; }
.avatar--sm { width: 24px; height: 24px; font-size: .7rem; margin-right: .35rem; }

/* Knappar */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1rem;
	border: 1px solid transparent; border-radius: var(--radius-sm); font: 600 .9rem/1.2 var(--f-ui); cursor: pointer;
	text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
	background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line-2);
}
.btn:hover { border-color: var(--c-ink-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.btn--primary { background: var(--c-brand); color: #fff; border-color: var(--c-brand); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.btn--primary:hover { background: var(--c-brand-ink); border-color: var(--c-brand-ink); }
:root[data-theme="dark"] .btn--primary { color: #0b140c; }
:root[data-theme="dark"] .btn--primary:hover { background: #6fc778; }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--c-bad); }
.btn--danger:hover { border-color: var(--c-bad); background: var(--c-bad-soft); }
.btn--sm { padding: .35rem .7rem; font-size: .82rem; }
.btn--icon { padding: .4rem; }
.sharecol { white-space: nowrap; width: 1%; text-align: right; }
.btn--lg { padding: .75rem 1.4rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--publish { width: 100%; background: linear-gradient(135deg, var(--c-brand), #227a2e); color: #fff; border: 0; padding: .7rem 1rem; }
.btn--publish:hover { filter: brightness(1.08); }
.btn.is-busy::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--c-ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--c-surface); color: var(--c-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Kort och rutnät */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-1); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: -.15rem 0 1rem; }
.card__head h2 { margin: 0; display: flex; align-items: center; gap: .45rem; }
.card--wide { grid-column: 1 / -1; }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.grid--dash { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; align-items: start; }
.stack { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--topbar) + 1rem); }

/* Formulär */
.form { display: grid; gap: 1rem; }
.form--narrow { max-width: 820px; }
.field { display: grid; gap: .3rem; min-width: 0; align-content: start; }
.field__label { font-size: .82rem; font-weight: 650; color: var(--c-ink-2); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.field__help { font-size: .78rem; color: var(--c-ink-3); }
.field__error { font-size: .8rem; color: var(--c-bad); font-weight: 600; }
.field__error:empty { display: none; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea {
	width: 100%; min-width: 0; max-width: 100%; font: inherit; color: var(--c-ink); background: var(--c-surface); border: 1px solid var(--c-line-2);
	border-radius: var(--radius-sm); padding: .55rem .7rem; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--c-ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 22%, transparent); }
input[readonly], textarea[readonly] { background: var(--c-surface-2); }
textarea { resize: vertical; min-height: 4.5rem; line-height: 1.5; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--c-bad); }
.input--lg { font-size: 1.15rem !important; font-weight: 650; }
.input--code { font: 600 1.6rem/1 var(--f-mono) !important; letter-spacing: .35em; text-align: center; }
input[type=color] { width: 60px; height: 38px; border: 1px solid var(--c-line-2); border-radius: var(--radius-sm); background: none; padding: 2px; }
.field--search { position: relative; display: block; }
.field--search .icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--c-ink-3); pointer-events: none; }
.field--search input { padding-left: 2.2rem !important; min-width: 280px; }
.field__pw { position: relative; display: block; }
.field__pw .icon-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.form__foot { display: flex; justify-content: space-between; gap: 1rem; }
.more summary { cursor: pointer; color: var(--c-ink-3); font-size: .85rem; font-weight: 600; }
.more[open] summary { margin-bottom: .75rem; }

.switch { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; padding: .35rem 0; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--c-line-2); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked { background: var(--c-brand); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .5; }
.switch span { display: grid; }
.switch small { color: var(--c-ink-3); }

.roles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.roles legend { font-size: .82rem; font-weight: 650; color: var(--c-ink-2); margin-bottom: .4rem; }
.radio-card { display: flex; gap: .5rem; padding: .75rem; border: 1px solid var(--c-line-2); border-radius: var(--radius-sm); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); }
.radio-card span { display: grid; gap: .15rem; }
.radio-card small { color: var(--c-ink-3); font-size: .78rem; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.checks legend { font-size: .82rem; font-weight: 650; color: var(--c-ink-2); margin-bottom: .3rem; }

.telegrams { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: .8rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 0; }
.telegrams legend { font-size: .82rem; font-weight: 650; color: var(--c-ink-2); padding: 0 .3rem; }
.telegrams__preview { grid-column: 1 / -1; font-size: .8rem; margin: 0; font-family: var(--f-mono); word-break: break-word; }
.quickdates { display: flex; gap: .4rem; align-items: center; margin-top: -.5rem; flex-wrap: wrap; font-size: .82rem; }
.strength { height: 4px; border-radius: 2px; background: var(--c-line); overflow: hidden; margin-top: -.6rem; }
.strength span { display: block; height: 100%; width: 0; background: var(--c-bad); transition: width .25s, background .25s; }

/* Etiketter */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 650; background: var(--c-surface-2); color: var(--c-ink-2); border: 1px solid var(--c-line); white-space: nowrap; }
.pill .icon { width: .95em; height: .95em; }
.pill--ok { background: var(--c-ok-soft); color: var(--c-ok); border-color: transparent; }
.pill--info { background: var(--c-info-soft); color: var(--c-info); border-color: transparent; }
.pill--warn { background: var(--c-warn-soft); color: var(--c-warn); border-color: transparent; }
.pill--bad { background: var(--c-bad-soft); color: var(--c-bad); border-color: transparent; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 4px; background: var(--c-surface-2); color: var(--c-ink-3); border: 1px solid var(--c-line); margin-left: .25rem; text-transform: uppercase; letter-spacing: .03em; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--c-line-2); background: var(--c-surface); color: var(--c-ink-2); font: 600 .78rem var(--f-ui); cursor: pointer; }
.chip:hover { border-color: var(--c-brand); color: var(--c-brand-ink); }
.chip--past { opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.step { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: .8rem; }
.kv { display: inline-block; margin-right: .5rem; }
.kv b { color: var(--c-ink-3); font-weight: 600; }

/* Tabeller och listor */
.toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.segmented { display: inline-flex; padding: 3px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; }
.segmented a, .segmented button { padding: .35rem .85rem; border-radius: 999px; color: var(--c-ink-2); text-decoration: none; font: 600 .82rem var(--f-ui); background: none; border: 0; cursor: pointer; }
.segmented .is-active { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.table-wrap { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-1); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink-3); font-weight: 700; padding: .7rem 1rem; border-bottom: 1px solid var(--c-line); background: var(--c-surface-2); position: sticky; top: 0; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table--click tbody tr { cursor: pointer; transition: background .1s; }
.table--click tbody tr:hover { background: var(--c-surface-2); }
.table a { color: var(--c-ink); text-decoration: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .is-muted td { opacity: .55; }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 1rem; color: var(--c-ink-3); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--c-line); }
.list li:first-child { border-top: 0; }
.list a { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; color: var(--c-ink); text-decoration: none; }
.list a:hover .list__main { color: var(--c-brand-ink); }
.list__main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__meta { color: var(--c-ink-3); font-size: .82rem; white-space: nowrap; display: flex; align-items: center; gap: .3rem; }
.list--rank { counter-reset: r; }
.list--rank li { counter-increment: r; }
.list--rank a::before { content: counter(r); color: var(--c-ink-3); font-weight: 700; width: 1.2rem; flex: none; }
.list--rank .list__main { flex: 1; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .88rem; }
.timeline li { padding-left: .9rem; border-left: 2px solid var(--c-line-2); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--c-ink-3); }
.empty .icon { width: 2.5rem; height: 2.5rem; opacity: .4; }
.empty--big { padding: 6rem 1rem; }

.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius); background: var(--c-info-soft); color: var(--c-ink); margin-bottom: 1.25rem; border: 1px solid color-mix(in srgb, var(--c-info) 25%, transparent); }
.notice--warn { background: var(--c-warn-soft); border-color: color-mix(in srgb, var(--c-warn) 30%, transparent); }
.notice .icon { margin-top: .15rem; }

/* Översikt: veckan */
.today { padding-bottom: 1rem; }
.today__status { display: flex; gap: .5rem; flex-wrap: wrap; }
.status-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--c-line-2); background: var(--c-surface); font: 600 .8rem var(--f-ui); color: var(--c-ink-2); cursor: pointer; }
.status-toggle .dot, .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-ink-3); flex: none; display: inline-block; }
.status-toggle.is-on .dot, .dot--ok { background: var(--c-ok); box-shadow: 0 0 0 3px var(--c-ok-soft); }
.status-toggle.is-off .dot, .dot--bad { background: var(--c-bad); box-shadow: 0 0 0 3px var(--c-bad-soft); animation: pulse 1.6s infinite; }
.status-toggle.is-warn .dot { background: var(--c-warn); box-shadow: 0 0 0 3px var(--c-warn-soft); }
.dot--off { background: var(--c-line-2); }
@keyframes pulse { 50% { opacity: .4; } }
.week { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.week__day { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: .6rem; display: grid; gap: .45rem; align-content: start; background: var(--c-surface-2); min-height: 170px; }
.week__day.is-today { border-color: var(--c-brand); box-shadow: inset 0 3px 0 var(--c-brand); background: var(--c-surface); }
.week__date { display: grid; }
.week__date small { color: var(--c-ink-3); font-size: .72rem; }
.slot { border-radius: 6px; padding: .4rem .45rem; font-size: .8rem; display: grid; gap: .2rem; border: 1px dashed var(--c-line-2); }
.slot--ok { border: 1px solid transparent; background: var(--c-ok-soft); }
.slot--part { border-color: var(--c-warn); background: var(--c-warn-soft); }
.slot--miss { border-color: var(--c-bad); background: var(--c-bad-soft); }
.slot__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink-3); display: flex; gap: .3rem; align-items: center; }
.slot__item, .slot__extra { color: var(--c-ink); text-decoration: none; display: flex; align-items: center; gap: .35rem; line-height: 1.3; }
.slot__item:hover, .slot__extra:hover { text-decoration: underline; }
.slot__add { font-size: .75rem; font-weight: 650; color: var(--c-bad); text-decoration: none; display: flex; align-items: center; gap: .2rem; }
.slot--part .slot__add { color: var(--c-warn); }
.slot__extra { font-size: .78rem; color: var(--c-ink-2); }
/* På väg ut i dag: en ruta per video, jämte varandra */
.pending { margin-top: var(--sp-4); }
.pending__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-3); }
.pending__card { display: flex; align-items: center; gap: var(--sp-3); padding: .55rem; border: 1px solid var(--c-line); border-radius: 10px; color: var(--c-ink); text-decoration: none; background: var(--c-surface-2); transition: border-color .15s, background .15s; height: 100%; box-sizing: border-box; }
.pending__card:hover { border-color: var(--c-brand); background: var(--c-surface); }
.pending__card .vthumb--md { width: 96px; }
.pending__main { display: grid; gap: 3px; min-width: 0; flex: 1; }
.pending__type { display: flex; align-items: center; gap: .3rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink-3); }
.pending__type .icon { width: 13px; height: 13px; }
.pending__title { font-weight: 650; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending__chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: .2rem; padding: .08rem .4rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink-2); }
.chip .icon { width: 12px; height: 12px; }
.chip--ok { background: var(--c-ok-soft); border-color: transparent; color: var(--c-ok); }
.chip--info { background: var(--c-info-soft); border-color: transparent; color: var(--c-info); }
.chip--warn { background: var(--c-warn-soft); border-color: transparent; color: var(--c-warn); }
.chip--bad { background: var(--c-bad-soft); border-color: transparent; color: var(--c-bad); }
.vstate { width: 8px; height: 8px; border-radius: 50%; background: var(--c-line-2); flex: none; }
.vstate--ok { background: var(--c-ok); }
.vstate--arbetar { background: var(--c-warn); animation: pulse 1.4s infinite; }
.vstate--fel, .vstate--saknas { background: var(--c-bad); }

.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown__menu { position: absolute; right: 0; top: calc(100% + .35rem); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: .35rem; min-width: 200px; z-index: 50; }
.dropdown__menu a { display: flex; gap: .5rem; align-items: center; padding: .5rem .65rem; border-radius: var(--radius-sm); color: var(--c-ink); text-decoration: none; }
.dropdown__menu a:hover { background: var(--c-surface-2); }

/* Diagram */
.chart { min-height: 220px; position: relative; }
.chart--tall { min-height: 300px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--c-line); stroke-width: 1; }
.chart .axis { fill: var(--c-ink-3); font-size: 11px; }
.chart .line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .1; }
.chart .hover-line { stroke: var(--c-ink-3); stroke-dasharray: 3 3; }
.chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--c-ink-2); margin-top: .5rem; }
.chart-legend span { display: inline-flex; gap: .35rem; align-items: center; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.chart-tip { position: absolute; pointer-events: none; background: var(--c-ink); color: var(--c-bg); padding: .45rem .6rem; border-radius: 8px; font-size: .78rem; white-space: nowrap; z-index: 5; transform: translate(-50%, -110%); box-shadow: var(--shadow-2); }
.chart-tip b { display: block; }

/* Video-kortet */
.vimeo__state:empty { display: none; }
.vimeo__player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin-bottom: .75rem; }
.vimeo__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vimeo__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; font-size: .82rem; }
.vimeo__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.vimeo__actions .btn { justify-content: flex-start; }
.drop { border: 2px dashed var(--c-line-2); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; color: var(--c-ink-3); cursor: pointer; transition: border-color .15s, background .15s; display: grid; gap: .4rem; place-items: center; }
.drop:hover, .drop.is-over { border-color: var(--c-brand); background: var(--c-brand-soft); color: var(--c-brand-ink); }
.drop .icon { width: 2rem; height: 2rem; }
.drop strong { color: var(--c-ink); }
.drop--thumb { padding: .9rem 1rem; margin-top: var(--sp-3); }
.drop--thumb .icon { width: 1.5rem; height: 1.5rem; }
.drop--thumb.has-image { display: flex; align-items: center; gap: var(--sp-3); text-align: left; place-items: initial; }
.drop--thumb.has-image img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.drop--thumb.has-image > span { display: grid; gap: 2px; }
.drop.is-disabled { opacity: .5; pointer-events: none; }
.upload { display: grid; gap: .4rem; }
.upload__bar { height: 10px; background: var(--c-line); border-radius: 5px; overflow: hidden; }
.upload__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-brand), #61c46b); border-radius: 5px; transition: width .25s; }
.upload__row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--c-ink-3); gap: .5rem; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .5rem 0; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: var(--c-surface-2); }
.thumbs button.is-active { border-color: var(--c-brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel { border-top: 1px solid var(--c-line); margin-top: .75rem; padding-top: .75rem; display: grid; gap: .6rem; }
.panel h3 { font-size: .85rem; margin: 0; }

/* Kalender */
.calendar-app { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.calendar-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.tab { padding: .4rem .75rem; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--c-ink-2); font: 600 .82rem var(--f-ui); cursor: pointer; }
.tab:hover { background: var(--c-surface-2); }
.tab.is-active { background: var(--c-brand); color: #fff; }
.calendar-nav { display: flex; align-items: center; gap: .4rem; }
.calendar-title { min-width: 9rem; text-align: center; text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--c-ink-3); padding: .25rem .35rem; }
.cal-day { min-height: 118px; border: 1px solid var(--c-line); border-radius: 8px; padding: .35rem; background: var(--c-surface-2); display: flex; flex-direction: column; gap: 3px; transition: background .1s, border-color .1s; }
.cal-day.is-out { opacity: .35; }
.cal-day.is-today { border-color: var(--c-brand); }
.cal-day.is-weekend { background: var(--c-bg); }
.cal-day.is-over { border-color: var(--c-brand); background: var(--c-brand-soft); }
.cal-day.is-full { box-shadow: inset 0 0 0 1px var(--c-warn); }
.cal-day__num { font-size: .75rem; font-weight: 700; color: var(--c-ink-3); display: flex; justify-content: space-between; }
.cal-ev { font-size: .72rem; line-height: 1.25; padding: .2rem .35rem; border-radius: 5px; background: var(--c-surface); border-left: 3px solid var(--c-brand); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { background: var(--c-bad-soft); border-left-color: var(--c-bad); text-decoration: line-through; }
.cal-ev.is-new { animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
.calendar-side { position: sticky; top: calc(var(--topbar) + 1rem); max-height: calc(100vh - var(--topbar) - 2rem); display: flex; flex-direction: column; gap: .75rem; }
.calendar-side .field--search input { min-width: 0; }
.rf-pool { overflow-y: auto; display: grid; gap: .25rem; align-content: start; }
.rf-group summary { cursor: pointer; font-weight: 650; font-size: .88rem; padding: .35rem .2rem; }
.rf-chip { display: grid; padding: .4rem .55rem; margin: .2rem 0 .2rem .4rem; border: 1px solid var(--c-line-2); border-radius: 6px; background: var(--c-surface); cursor: grab; font-size: .82rem; }
.rf-chip small { color: var(--c-ink-3); font-size: .72rem; }
.rf-chip:hover { border-color: var(--c-brand); }
.rf-chip.is-picked { border-color: var(--c-brand); background: var(--c-brand-soft); }
.rf-chip[draggable=false] { cursor: default; }

/* E-post */
.email-app { display: grid; gap: 1.25rem; }
.email-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.email-preview { width: 100%; height: 470px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; transition: max-width .25s; margin: 0 auto; display: block; }
.sticky-actions { position: sticky; bottom: 1rem; display: flex; justify-content: flex-end; }

/* RSS */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.feed__item { display: flex; gap: 1rem; color: var(--c-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.feed__item:hover { border-color: var(--c-brand); transform: translateY(-1px); }
.feed__item img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; flex: none; }
.feed__item h3 { font-size: .98rem; margin: .2rem 0 .35rem; }
.feed__item p { font-size: .85rem; color: var(--c-ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Teleprompter-redigeraren */
.teleprompt-editor { font-size: 1.15rem !important; line-height: 1.7 !important; min-height: 60vh; }

/* Inställningar */
.integrations { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .25rem; }
.integrations li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--c-line); }
.integrations li div { flex: 1; display: grid; }
.integrations small { color: var(--c-ink-3); }

/* Inloggning */
.auth { min-height: 100vh; display: grid; place-content: center; padding: 2rem 1rem; background: radial-gradient(1200px 600px at 20% -10%, var(--c-brand-soft), transparent), var(--c-bg); }
.auth__card { width: min(400px, 92vw); padding: 2rem; }
.auth__logo { display: block; width: 200px; height: auto; margin: 0 auto 1.25rem; }
.auth__title { justify-content: center; font-size: 1.35rem; margin-bottom: 1rem; }
.auth__foot { text-align: center; margin-top: 1rem; }

/* Sökpalett och dialoger */
dialog { border: 0; padding: 0; background: transparent; color: var(--c-ink); max-width: 100vw; }
dialog::backdrop { background: rgba(10, 16, 11, .45); backdrop-filter: blur(2px); }
.palette { margin-top: 12vh; width: min(640px, 94vw); }
.palette__box { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; box-shadow: var(--shadow-2); overflow: hidden; }
.palette__input { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--c-line); }
.palette__input input { border: 0 !important; box-shadow: none !important; padding: .2rem 0 !important; font-size: 1.05rem !important; background: transparent !important; }
.palette__list { list-style: none; margin: 0; padding: .4rem; max-height: 50vh; overflow-y: auto; }
.palette__list li { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; }
.palette__list li[aria-selected="true"] { background: var(--c-brand-soft); }
.palette__list li .icon { color: var(--c-ink-3); }
.palette__list li div { display: grid; min-width: 0; }
.palette__list li strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__list li small { color: var(--c-ink-3); }
.palette__list .palette__hint { color: var(--c-ink-3); cursor: default; font-size: .85rem; }
.palette__foot { padding: .5rem 1rem; border-top: 1px solid var(--c-line); font-size: .75rem; color: var(--c-ink-3); display: flex; gap: .3rem; align-items: center; }
.modal { width: min(520px, 94vw); }
.modal__box { background: var(--c-surface); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-2); border: 1px solid var(--c-line); }
.modal__title { font-size: 1.15rem; }
.modal__actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.modal input[data-confirm-input] { margin-top: .5rem; }

/* Notiser */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; display: grid; gap: .5rem; z-index: 300; width: min(400px, calc(100vw - 2.5rem)); }
.toast { display: flex; gap: .65rem; align-items: flex-start; background: var(--c-ink); color: var(--c-bg); padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow-2); font-size: .9rem; animation: toast-in .25s ease; }
.toast--ok .icon { color: #7fd087; }
.toast--bad { background: var(--c-bad); color: #fff; }
.toast--warn .icon { color: #f3c063; }
.toast ul { margin: .35rem 0 0; padding-left: 1.1rem; font-size: .82rem; opacity: .9; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.toast.is-leaving { animation: toast-out .2s ease forwards; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }

/* Sidbyte */
.main.is-swapping { opacity: .55; transition: opacity .15s; }
.main.is-in { animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }

/* Mobil och surfplatta */
@media (max-width: 1180px) {
	.split, .calendar-app { grid-template-columns: 1fr; }
	.stack, .calendar-side { position: static; max-height: none; }
	.email-editor { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.has-shell { padding-left: 0; }
	.sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-2); }
	.sidebar.is-open { transform: none; }
	.topbar { left: 0; padding: 0 .75rem; }
	.topbar__menu { display: inline-grid; }
	.search-trigger { min-width: 0; flex: 1; }
	.search-trigger kbd, .usermenu__name { display: none; }
	.main { padding: 1.25rem 1rem 4rem; }
	.grid--2, .grid--3, .telegrams { grid-template-columns: 1fr; }
	.week { grid-template-columns: repeat(7, 150px); }
	.calendar-grid { font-size: .8rem; }
	.cal-day { min-height: 80px; }
	h1 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
@media print {
	.sidebar, .topbar, .toolbar, .page-head__actions { display: none !important; }
	.has-shell { padding: 0; }
}
.vimeo__player img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tip { position: fixed; z-index: 400; max-width: 340px; padding: .4rem .6rem; border-radius: 8px; background: var(--c-ink); color: var(--c-bg); font-size: .8rem; line-height: 1.35; box-shadow: var(--shadow-2); pointer-events: none; animation: fade-in .12s ease; }
.cal-ev.is-match { background: var(--c-warn-soft); border-left-color: var(--c-warn); font-weight: 650; }
.rf-pool .rf-chip { margin: 0 0 .35rem; }
.rf-chip small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Annonskalendern: fyra platser per dag och kampanjbokning */
.calendar-side { display: flex; flex-direction: column; gap: 1rem; background: none; border: 0; padding: 0; box-shadow: none; }
.calendar-search { display: flex; flex-direction: column; gap: .6rem; min-height: 0; }
.cal-legend { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.slot-key { display: inline-block; width: 12px; height: 10px; border-radius: 3px; border: 1px dashed var(--c-line-2); margin-left: .4rem; }
.slot-key--booked { background: var(--c-brand); border: 0; }
.slot-key--plan { background: var(--c-info-soft); border: 1px dashed var(--c-info); }
.cal-day { gap: 3px; min-height: 0; }
.cal-day__num .is-full { color: var(--c-warn); }
.slot { font-size: .7rem; line-height: 1.2; padding: .18rem .35rem; border-radius: 4px; min-height: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot--booked { background: var(--c-brand-soft); color: var(--c-brand-ink); border-left: 3px solid var(--c-brand); border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 600; }
.slot--booked:hover { background: var(--c-bad-soft); color: var(--c-bad); border-left-color: var(--c-bad); text-decoration: line-through; }
.slot--booked.is-match { background: var(--c-warn-soft); color: var(--c-ink); border-left-color: var(--c-warn); }
.slot--booked.is-new { animation: pop .35s ease; }
.slot--plan { background: var(--c-info-soft); color: var(--c-info); border: 1px dashed var(--c-info); font-weight: 600; }
.slot--free { border: 1px dashed var(--c-line); }
.cal-day.is-out .slot--free, .cal-day.is-weekend .slot--free { border-color: transparent; }
.cal-day.is-over-max { box-shadow: inset 0 0 0 1px var(--c-warn); }
.campaign { display: grid; gap: .8rem; }
.campaign h2 { display: flex; align-items: center; gap: .45rem; margin: 0; }
.campaign__films { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 2rem; align-items: center; padding: .4rem; border: 1px dashed var(--c-line-2); border-radius: var(--radius-sm); }
.campaign__films p { margin: 0; }
.film-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .25rem .2rem .55rem; border-radius: 999px; background: var(--c-info-soft); color: var(--c-info); font-size: .8rem; font-weight: 600; }
.film-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .25rem; border-radius: 50%; }
.film-chip button:hover { background: rgba(0, 0, 0, .08); }
.weekdays { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.weekdays legend { margin-bottom: .3rem; }
.weekdays label { cursor: pointer; }
.weekdays input { position: absolute; opacity: 0; pointer-events: none; }
.weekdays span { display: inline-block; padding: .25rem .55rem; border-radius: 999px; border: 1px solid var(--c-line-2); font-size: .8rem; font-weight: 600; color: var(--c-ink-3); }
.weekdays input:checked + span { background: var(--c-brand-soft); color: var(--c-brand-ink); border-color: var(--c-brand); }
.weekdays input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.campaign__summary { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: .6rem .75rem; }
.campaign__summary p { margin: 0 0 .3rem; }
.campaign__counts { list-style: none; padding: 0; margin: 0 0 .3rem; display: grid; gap: .15rem; }
.campaign__counts li { display: flex; justify-content: space-between; gap: .5rem; }
.text-warn { color: var(--c-warn); }
.campaign__actions { display: flex; justify-content: flex-end; gap: .5rem; }
.rf-chip { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.rf-chip > div { display: grid; min-width: 0; }
.rf-chip__add { width: 30px; height: 30px; flex: none; border: 1px solid var(--c-line-2); }
.rf-chip__add:hover { border-color: var(--c-brand); color: var(--c-brand-ink); background: var(--c-brand-soft); }
.rf-chip.is-in-campaign { border-color: var(--c-info); background: var(--c-info-soft); }
.rf-chip.is-in-campaign .rf-chip__add .icon { transform: rotate(45deg); }
.calendar-app { grid-template-columns: minmax(0, 1fr) 330px; }
.calendar-side > .card { min-width: 0; }
.campaign__period { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.campaign__period .field__error { grid-column: 1 / -1; }
.campaign__period input { padding-left: .5rem !important; padding-right: .3rem !important; font-size: .85rem !important; }
/* Filmfärger i kampanjen */
.fc0 { --fc: #1d9e75; --fc-soft: #e1f5ee; } .fc1 { --fc: #7f52c4; --fc-soft: #eeeafb; } .fc2 { --fc: #c47a12; --fc-soft: #fbf0dc; }
.fc3 { --fc: #2f6fb3; --fc-soft: #e6eff9; } .fc4 { --fc: #c23b6a; --fc-soft: #fbe7ef; } .fc5 { --fc: #5c6b73; --fc-soft: #eceff1; }
:root[data-theme="dark"] .fc0, :root[data-theme="dark"] .fc1, :root[data-theme="dark"] .fc2, :root[data-theme="dark"] .fc3, :root[data-theme="dark"] .fc4, :root[data-theme="dark"] .fc5 { --fc-soft: color-mix(in srgb, var(--fc) 22%, var(--c-surface)); }
.slot--plan[class*="fc"] { background: var(--fc-soft); color: var(--fc); border-color: var(--fc); }
:root[data-theme="dark"] .slot--plan[class*="fc"], :root[data-theme="dark"] .film-chip[class*="fc"] { color: color-mix(in srgb, var(--fc) 60%, white); }
.film-chip[class*="fc"] { background: var(--fc-soft); color: var(--fc); box-shadow: inset 0 0 0 1px var(--fc); }
.campaign__counts .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--fc); margin-right: .4rem; box-shadow: none; animation: none; }

/* ===== Annonskalendern (ny layout: kampanjpanel ovanför, kalendern i full bredd) ===== */
.rkal { display: grid; gap: 1.25rem; }
.rkal-label { display: block; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--c-ink-3); margin-bottom: .5rem; padding: 0; }
.rkal-book { padding: 1.4rem 1.5rem; display: grid; gap: 1.4rem; }
.rkal-book__row--settings { display: grid; grid-template-columns: minmax(260px, auto) auto minmax(280px, 1fr); gap: 1.5rem 2rem; align-items: start; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.rkal-films { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.rkal-films:empty { display: none; }
.rkal-films__empty { color: var(--c-ink-3); font-size: .9rem; }
.film-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .45rem .45rem .75rem; border-radius: 12px; background: var(--fc-soft, var(--c-surface-2)); box-shadow: inset 0 0 0 1.5px var(--fc, var(--c-line-2)); color: var(--c-ink); font-size: .9rem; }
.film-chip > span { display: grid; line-height: 1.25; }
.film-chip strong { font-weight: 700; color: var(--fc, var(--c-ink)); }
:root[data-theme="dark"] .film-chip strong { color: color-mix(in srgb, var(--fc) 55%, white); }
.film-chip small { color: var(--c-ink-3); font-size: .75rem; }
.film-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fc); box-shadow: none; animation: none; }
.film-chip button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink-3); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.film-chip button:hover { background: var(--c-bad-soft); color: var(--c-bad); }
.rkal-search { position: relative; max-width: 560px; }
.rkal-search .field--search input { min-width: 0; padding-top: .7rem !important; padding-bottom: .7rem !important; font-size: 1rem !important; border-radius: 12px !important; }
.rkal-results { position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + .4rem); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; box-shadow: var(--shadow-2); padding: .5rem; }
.rkal.is-dragging .rkal-results { opacity: .35; pointer-events: none; }
.rkal-results__status { margin: .25rem .5rem .4rem; }
/* Listan har egen höjd och rullning (ingen flex/grid): Safari kunde krympa den till noll i den tidigare flex-lådan. */
.rkal-results__list { display: block; max-height: min(330px, 50vh); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rkal-results__list > .rf-row + .rf-row { margin-top: 2px; }
.rkal-results__hint { margin: .5rem .5rem .2rem; padding-top: .5rem; border-top: 1px solid var(--c-line); }
.rf-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .75rem; border-radius: 10px; cursor: pointer; }
.rf-row:hover, .rf-row:focus-visible { background: var(--c-surface-2); outline: none; }
.rf-row__text { display: grid; min-width: 0; }
.rf-row__text strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-row__text small { color: var(--c-ink-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-row__act { display: inline-flex; align-items: center; gap: .3rem; flex: none; font-size: .8rem; font-weight: 650; color: var(--c-brand-ink); padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--c-line-2); }
.rf-row.is-in-campaign .rf-row__act { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.rkal-period { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.rkal-period input { width: auto !important; }
.rkal-book__days { border: 0; margin: 0; padding: 0; }
.rkal-book__days > div { display: flex; gap: .35rem; flex-wrap: wrap; }
.rkal-book__days span { padding: .45rem .7rem; font-size: .85rem; }
.rkal-book__go { display: grid; gap: .9rem; justify-items: end; text-align: right; }
.rkal-summary { display: grid; gap: .45rem; justify-items: end; font-size: .9rem; }
.rkal-summary__total { font-size: 1.05rem; }
.rkal-summary__total strong { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; }
.rkal-summary__counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem .9rem; }
.rkal-count { display: inline-flex; align-items: center; gap: .35rem; color: var(--c-ink-2); }
.rkal-count strong { color: var(--c-ink); }
.rkal-count .dot { width: 9px; height: 9px; background: var(--fc); box-shadow: none; animation: none; }
.rkal-summary__note { color: var(--c-warn); font-size: .82rem; }
.rkal-actions { display: flex; gap: .5rem; }
.rkal-actions .btn--primary { padding: .7rem 1.3rem; font-size: .95rem; }

.rkal-cal { padding: 1.25rem 1.25rem 1.5rem; }
.rkal-cal__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.rkal-cal .calendar-title { font-size: 1.3rem; font-weight: 750; text-transform: capitalize; margin: 0; min-width: 11rem; text-align: center; }
.rkal-legend { display: flex; gap: 1.1rem; color: var(--c-ink-2); flex-wrap: wrap; }
.rkal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.lg--booked { background: var(--c-brand-soft); box-shadow: inset 3px 0 0 var(--c-brand); }
.lg--plan { background: #e1f5ee; box-shadow: inset 0 0 0 2px #1d9e75; }
.lg--free { box-shadow: inset 0 0 0 1.5px var(--c-line-2); border-radius: 50%; }
.rkal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .62fr)); gap: 8px; }
.rkal-grid .cal-head { font-size: .78rem; font-weight: 700; color: var(--c-ink-3); text-transform: none; letter-spacing: 0; padding: 0 .4rem .2rem; }
.rkal-grid .cal-day { min-height: 132px; padding: .65rem .7rem .75rem; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-surface); display: flex; flex-direction: column; gap: .5rem; transition: border-color .12s, background .12s, box-shadow .12s; }
.rkal-grid .cal-day:hover { border-color: var(--c-line-2); }
.rkal-grid .cal-day.is-weekend { background: var(--c-surface-2); }
.rkal-grid .cal-day.is-out { opacity: .38; }
.rkal-grid .cal-day.is-over { border-color: var(--c-brand); background: var(--c-brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 20%, transparent); }
.rkal-grid .cal-day.is-over-max { box-shadow: inset 0 0 0 1.5px var(--c-warn); }
.cal-day__head { display: flex; justify-content: space-between; align-items: center; }
.cal-day__date { font-size: 1.05rem; font-weight: 750; color: var(--c-ink); width: 2rem; height: 2rem; display: inline-grid; place-items: center; margin: -.3rem 0 -.3rem -.35rem; border-radius: 50%; }
.cal-day.is-today .cal-day__date { background: var(--c-brand); color: #fff; }
.cal-day__occ { display: inline-flex; gap: 3px; }
.occ { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--c-line-2); }
.occ--booked { background: var(--c-brand); box-shadow: none; }
.occ--plan { background: var(--fc); box-shadow: 0 0 0 2px var(--fc-soft); }
.cal-day.is-full .occ--booked { background: var(--c-warn); }
.cal-day__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.booking { display: flex; align-items: center; gap: .3rem; font-size: .8rem; line-height: 1.3; padding: .32rem .5rem; border-radius: 7px; background: var(--c-surface-2); color: var(--c-ink-2); box-shadow: inset 3px 0 0 var(--c-brand); cursor: pointer; min-width: 0; }
.booking span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-day.is-weekend .booking { background: var(--c-surface); }
.booking:hover { background: var(--c-bad-soft); color: var(--c-bad); box-shadow: inset 3px 0 0 var(--c-bad); }
.booking:hover span { text-decoration: line-through; }
.booking.is-match { background: var(--c-warn-soft); color: var(--c-ink); box-shadow: inset 3px 0 0 var(--c-warn); }
.booking.is-new { animation: pop .35s ease; }
.booking--plan, .booking--plan:hover { background: var(--fc-soft); color: var(--fc); box-shadow: inset 0 0 0 2px var(--fc); font-weight: 750; cursor: default; }
.booking--plan:hover span { text-decoration: none; }
:root[data-theme="dark"] .booking--plan { color: color-mix(in srgb, var(--fc) 55%, white); }
.booking--plan .icon { width: .95em; height: .95em; stroke-width: 3; flex: none; }

@media (max-width: 1180px) {
	.rkal-book__row--settings { grid-template-columns: 1fr 1fr; }
	.rkal-book__go { grid-column: 1 / -1; justify-items: start; text-align: left; }
	.rkal-summary { justify-items: start; }
	.rkal-summary__counts { justify-content: flex-start; }
}
@media (max-width: 900px) {
	.rkal-book__row--settings { grid-template-columns: 1fr; }
	.rkal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
	.rkal-grid .cal-day { min-height: 70px; padding: .35rem; }
	.booking span { display: none; }
	.booking { padding: 0; height: 6px; }
	.rkal-legend { display: none; }
}
/* Företagsfärger i annonskalendern (fast färg per företag) */
.cc0 { --cc: #2f8f3a; --cc-soft: #e4f2e5; --cc-ink: #1f5e27; } .cc1 { --cc: #2f6fb3; --cc-soft: #e3edf8; --cc-ink: #1d4a7a; }
.cc2 { --cc: #c27a12; --cc-soft: #fbefd9; --cc-ink: #7a4b08; } .cc3 { --cc: #8a4fc4; --cc-soft: #f0e8fa; --cc-ink: #5a2f88; }
.cc4 { --cc: #c23b3b; --cc-soft: #fbe6e6; --cc-ink: #842424; } .cc5 { --cc: #17958a; --cc-soft: #def3f1; --cc-ink: #0d5f58; }
.cc6 { --cc: #c2457f; --cc-soft: #fbe7f0; --cc-ink: #862a55; } .cc7 { --cc: #5a6b7a; --cc-soft: #e9edf1; --cc-ink: #38444f; }
.cc8 { --cc: #9a8a12; --cc-soft: #f6f2d6; --cc-ink: #5f5508; } .cc9 { --cc: #4553c4; --cc-soft: #e7e9fa; --cc-ink: #2c3786; }
:root[data-theme="dark"] [class*="cc"] { --cc-soft: color-mix(in srgb, var(--cc) 24%, var(--c-surface)); --cc-ink: color-mix(in srgb, var(--cc) 45%, white); }
.booking[class*="cc"]:not(.booking--plan) { background: var(--cc-soft); color: var(--cc-ink); box-shadow: inset 4px 0 0 var(--cc); font-weight: 600; }
.cal-day.is-weekend .booking[class*="cc"]:not(.booking--plan) { background: var(--cc-soft); }
.booking[class*="cc"]:not(.booking--plan):hover { background: var(--c-bad-soft); color: var(--c-bad); box-shadow: inset 4px 0 0 var(--c-bad); }
.booking[class*="cc"].is-match { box-shadow: inset 4px 0 0 var(--cc), 0 0 0 2px var(--c-warn); }
/* Förhandsvisningen: ljus bakgrund, tjock ram och fetstil – skiljer sig från fyllda bokningar */
.booking--plan, .booking--plan:hover { background: var(--c-surface); color: var(--fc); box-shadow: inset 0 0 0 2.5px var(--fc); font-weight: 800; }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--cc); margin-right: .45rem; vertical-align: .05em; }
.lg--booked { background: #e3edf8; box-shadow: inset 4px 0 0 #2f6fb3; }
.lg--b2 { background: #fbefd9; box-shadow: inset 4px 0 0 #c27a12; margin-left: -2px; }
.lg--plan { background: var(--c-surface); box-shadow: inset 0 0 0 2.5px #1d9e75; }

/* ===== Avståndsskala – samma mellanrum överallt ===== */
:root {
	--sp-1: .25rem;  /* 4 px  – inom små element */
	--sp-2: .5rem;   /* 8 px  – mellan tätt hopsatta saker */
	--sp-3: .75rem;  /* 12 px – mellan rader i en grupp */
	--sp-4: 1rem;    /* 16 px – mellan fält i ett formulär */
	--sp-5: 1.5rem;  /* 24 px – inuti kort, mellan kort */
	--sp-6: 2rem;    /* 32 px – mellan sidans stora delar */
}
.main { padding: var(--sp-6) var(--sp-6) 4rem; }
.page-head { margin-bottom: var(--sp-5); gap: var(--sp-4); }
.page-head h1 { margin-bottom: var(--sp-1); }
.page-head__actions { gap: var(--sp-2); }
.back { margin-bottom: var(--sp-2); }
.card { padding: var(--sp-5); }
.card__head { margin: 0 0 var(--sp-4); }
.grid { gap: var(--sp-4); }
.grid--dash, .split, .stack, .rkal, .email-app { gap: var(--sp-5); }
.grid--dash { margin-top: var(--sp-5); }
.form { gap: var(--sp-4); }
.field { gap: var(--sp-2); }
.field__label--row { display: flex; align-items: center; gap: var(--sp-2); min-height: 1.6rem; }
.toolbar { gap: var(--sp-3); margin-bottom: var(--sp-4); }
.toolbar select { width: auto; min-width: 200px; }
.field--search input { min-width: 360px; }
.notice { margin-bottom: var(--sp-5); }
.quickdates { margin-top: calc(var(--sp-2) * -1); gap: var(--sp-2); }
.form-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); }
.vimeo__body { display: grid; gap: var(--sp-3); }
.vimeo__body > p { margin: 0; }
.vimeo__player, .vimeo__meta { margin-bottom: 0; }
.panel { margin-top: 0; padding-top: var(--sp-4); gap: var(--sp-3); }
.list a { padding: var(--sp-3) 0; }
.timeline { gap: var(--sp-3); }
.email-app .card { display: grid; gap: var(--sp-4); }
.email-app .card__head { margin: 0; }
.email-editor { gap: var(--sp-4); }
.roles { gap: var(--sp-3); }
.roles legend { margin-bottom: var(--sp-2); }
.radio-card { align-items: flex-start; padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
.radio-card input { margin-top: .2rem; flex: none; }
.form--narrow .grid--3 { align-items: center; }
.integrations li { padding: var(--sp-3) 0; gap: var(--sp-3); }
.switch { padding: var(--sp-2) 0; gap: var(--sp-3); }
/* Annonskalendern */
.rkal-book { padding: var(--sp-5) var(--sp-5) var(--sp-5); gap: var(--sp-5); }
.rkal-book__row--settings { padding-top: var(--sp-5); gap: var(--sp-5) var(--sp-6); }
.rkal-label { margin-bottom: var(--sp-3); }
.rkal-films { margin-bottom: var(--sp-3); gap: var(--sp-2); }
.rkal-films__empty { display: block; margin-bottom: var(--sp-3); }
.rkal-period { margin-bottom: var(--sp-3); gap: var(--sp-2); }
.rkal .quickdates { margin-top: 0; }
.rkal-book__go { gap: var(--sp-4); }
.rkal-summary { max-width: 360px; }
.rkal-cal { padding: var(--sp-5); }
.rkal-cal__bar { margin-bottom: var(--sp-4); }
.rkal-grid { gap: var(--sp-2); }
.rkal-grid .cal-day { padding: var(--sp-3); gap: var(--sp-2); }
.cal-day__list { gap: var(--sp-1); }
@media (max-width: 900px) {
	.main { padding: var(--sp-5) var(--sp-4) 4rem; }
	.field--search input { min-width: 0; }
}
/* Fler företagsfärger (18 st) – tydligt olika nyanser */
.cc10 { --cc: #6b8e23; --cc-soft: #eef4e0; --cc-ink: #435a14; } .cc11 { --cc: #d2691e; --cc-soft: #fbeadd; --cc-ink: #8a4210; }
.cc12 { --cc: #008b9a; --cc-soft: #dcf2f4; --cc-ink: #005761; } .cc13 { --cc: #b03a8c; --cc-soft: #f8e4f2; --cc-ink: #74245b; }
.cc14 { --cc: #3a5a9a; --cc-soft: #e2e8f4; --cc-ink: #253b66; } .cc15 { --cc: #a0522d; --cc-soft: #f5e7df; --cc-ink: #69351c; }
.cc16 { --cc: #2e8b57; --cc-soft: #dff1e7; --cc-ink: #1c5a37; } .cc17 { --cc: #7a5af5; --cc-soft: #ece7fe; --cc-ink: #4b33b0; }
/* Hela filmnamnet: upp till två rader innan det kortas */
.booking { align-items: flex-start; }
.booking span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.booking--plan .icon { margin-top: .15em; }
/* Reklam går alla dagar – alla kolumner lika breda, och ord delas bara om de inte får plats */
.rkal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.booking span { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.booking span { hyphens: manual; }
.modal__actions { flex-wrap: wrap; }
/* Röd primärknapp (radera/ta bort) */
.btn--primary.btn--danger { background: var(--c-bad); border-color: var(--c-bad); color: #fff; }
.btn--primary.btn--danger:hover { background: color-mix(in srgb, var(--c-bad) 85%, #000); border-color: transparent; color: #fff; }
/* Fråga med flera val: knapparna staplade, Avbryt sist */
.modal__actions.is-choices { flex-direction: column; align-items: stretch; }
.modal__actions.is-choices .btn { justify-content: center; }
.modal__actions.is-choices button[value=cancel] { order: 9; }
/* Thumbnails i listorna (Program, Inslag) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table .thumbcol { width: 1%; padding-right: 0; }
.vthumb { position: relative; display: grid; place-items: center; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--c-surface-2, color-mix(in srgb, var(--c-line) 45%, transparent)); color: var(--c-ink-3); }
.vthumb .icon { width: 20px; height: 20px; opacity: .55; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.vthumb.is-loaded img { opacity: 1; }
.vthumb.is-missing .icon { opacity: .3; }
tr:hover .vthumb { box-shadow: 0 0 0 2px var(--c-brand); }
@media (max-width: 640px) { .vthumb { width: 64px; } }
.vthumb--xs { width: 48px; flex: none; border-radius: 5px; }
.vthumb--xs .icon { width: 14px; height: 14px; }
.vthumb--md { width: 84px; flex: none; }
@media (max-width: 640px) { .vthumb--xs { width: 40px; } .vthumb--md { width: 64px; } }
/* Listor med bild (översikten) */
.list a.list__media { justify-content: flex-start; align-items: center; gap: .75rem; padding: .5rem .35rem; margin: 0 -.35rem; border-radius: 8px; transition: background .15s; }
.list a.list__media:hover { background: var(--c-surface-2); }
.list a.list__media:hover .vthumb { box-shadow: 0 0 0 2px var(--c-brand); }
.list__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.list__body .list__main { font-weight: 600; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list__body .list__meta { justify-content: flex-start; }
.list--rank a.list__media::before { width: 1rem; text-align: center; }
/* Teleprompter: luft mellan textrutan och studiorutan */
#tpform + .card { margin-top: var(--sp-5); }
.studio-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); margin: var(--sp-4) 0; }
.studio-link { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface-2); }
.studio-link__label { font-weight: 600; }
.studio-link__url { font-size: 1.15rem; font-weight: 600; color: var(--c-brand-ink); background: none; padding: 0; }
.studio-access { display: flex; gap: var(--sp-2); align-items: center; margin: 0; font-size: .9rem; }
.studio-access.is-ok { color: var(--c-ok); }
.studio-access.is-off { color: var(--c-ink-3); }

/* Varannan rad tonad i videolistorna */
.table--striped tbody tr:nth-child(even) { background: color-mix(in srgb, var(--c-ink) 5%, transparent); }
.table--striped tbody tr:hover { background: var(--c-brand-soft); }
/* Väntar på Vimeo: snurra, väntande uppladdningsstapel och thumbnail på väg */
.spinner { display: inline-block; width: 1.1em; height: 1.1em; border: 2px solid var(--c-brand); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
.upload__bar.is-waiting span { width: 30%; animation: wait-slide 1.2s ease-in-out infinite alternate; }
@keyframes wait-slide { from { margin-left: 0; } to { margin-left: 70%; } }
.thumb-pending { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px dashed var(--c-line-2); border-radius: var(--radius); background: var(--c-surface-2); }
.thumb-pending img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.thumb-pending > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .spinner, .upload__bar.is-waiting span { animation-duration: 2.5s; } }
/* Länk för att välja lösenord (Användare) */
.linkbox { margin-bottom: var(--sp-4); }
.linkbox .toolbar { display: flex; gap: var(--sp-2); }
.linkbox input { flex: 1; font-family: ui-monospace, monospace; font-size: .85rem; }

/* Facebook-rutan i formuläret för program och inslag */
.fb__status { margin: 0 0 var(--sp-3); color: var(--c-ink-2); }
.fb[data-fb-state="error"] .fb__status { color: var(--c-bad); font-weight: 600; }
.fb__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0 0; }
.fb__when { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; }
.fb__when .fb__actions { flex-basis: 100%; }
.fb__time input { max-width: 9rem; }
.fb__date input { max-width: 11rem; }
.fb__incom { margin: var(--sp-2) 0 var(--sp-3); }
.fb__progress { margin-top: var(--sp-3); }
.fbchip { vertical-align: middle; margin-right: var(--sp-1); }
