/* Breakfast Share: verktøyets nye utseende. Lastes etter styles.css og gjelder bare body.bs-app. */

/* GuarujaGrotesk tegner « og » speilvendt. Disse to tegnene hentes fra systemfonten. */
@font-face { font-family: "BsQuotes"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("Segoe UI"), local("Roboto"); unicode-range: U+00AB, U+00BB; }

.bs-app {
  --bs-bg: #fafafa;
  --bs-surface: #ffffff;
  --bs-fg: #0a0a0a;
  --bs-muted: #5c5c5c;
  --bs-line: #e3e3e3;
  --bs-line-strong: #c8c8c8;
  --bs-soft: #f3f3f3;
  --bs-ok: #1f7a45;
  --bs-warn: #a15c00;
  --bs-bad: #b42318;
  --bs-radius: 8px;
  --bs-radius-lg: 12px;
  --bs-font: "BsQuotes", var(--font);
  background: var(--bs-bg);
  color: var(--bs-fg);
  font-family: var(--bs-font);
  line-height: 1.5;
}
.bs-app *, .bs-app *::before, .bs-app *::after { box-sizing: border-box; }
.bs-app input, .bs-app select, .bs-app button, .bs-app textarea { font-family: var(--bs-font); font-size: 1rem; }
.bs-app input[type="file"] { font-size: 0.9rem; color: var(--bs-muted); max-width: 100%; }
.bs-app input[type="file"]::file-selector-button { font-family: var(--bs-font); font-size: 0.875rem; height: 36px; padding: 0 12px; margin-right: 10px; border: 1px solid var(--bs-line-strong); border-radius: var(--bs-radius); background: var(--bs-surface); color: var(--bs-fg); cursor: pointer; }
.bs-app input[type="file"]::file-selector-button:hover { border-color: var(--bs-fg); }
.bs-app .bs-mono, .bs-app code, .bs-app pre { font-family: var(--mono); }
.bs-app [hidden] { display: none !important; }
.bs-app h1, .bs-app h2, .bs-app h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
.bs-app p { margin: 0; }
.bs-app :focus-visible { outline: 2px solid var(--bs-fg); outline-offset: 2px; }

.bs-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bs-muted { color: var(--bs-muted); }
.bs-small { font-size: 0.875rem; }
.bs-strong { font-weight: 700; color: var(--bs-fg); text-decoration: none; }
a.bs-strong:hover { text-decoration: underline; }
.bs-strong-link { font-weight: 700; font-size: 0.9rem; }
.bs-error { color: var(--bs-bad); font-size: 0.92rem; }
.bs-error:empty { display: none; }
.bs-note { background: var(--bs-soft); border-radius: var(--bs-radius); padding: 10px 12px; font-size: 0.9rem; line-height: 1.45; }
.bs-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bs-muted); }
.bs-h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; }
.bs-h2 { font-size: 1.12rem; font-weight: 700; }
.bs-h3 { font-size: 1rem; font-weight: 700; }

.bs-stack { display: flex; flex-direction: column; gap: 14px; }
.bs-stack-xs { display: flex; flex-direction: column; gap: 4px; }
.bs-stack-sm { display: flex; flex-direction: column; gap: 10px; }
.bs-stack-lg { display: flex; flex-direction: column; gap: 22px; }
.bs-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bs-row-wrap { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.bs-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Knapper og felt */
.bs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 14px; border: 1px solid var(--bs-fg); border-radius: var(--bs-radius);
  background: var(--bs-surface); color: var(--bs-fg); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.bs-btn:hover { background: var(--bs-soft); }
.bs-btn--primary { background: var(--bs-fg); color: #fff; border-color: var(--bs-fg); font-weight: 700; }
.bs-btn--primary:hover { background: #262626; }
.bs-btn--danger { background: var(--bs-bad); border-color: var(--bs-bad); color: #fff; font-weight: 700; }
.bs-btn--danger:hover { background: #8f1c13; }
.bs-btn--block { width: 100%; }
.bs-btn--lg { min-height: 50px; font-size: 1rem; }
.bs-btn--xl { min-height: 56px; font-size: 1.05rem; border-radius: 10px; }
.bs-btn--sm { min-height: 36px; padding: 0 12px; font-size: 0.875rem; border-color: var(--bs-line-strong); }
.bs-btn--icon { width: 36px; padding: 0; }
.bs-btn:disabled { opacity: 0.55; cursor: progress; }
.bs-link { background: none; border: 0; padding: 0; color: var(--bs-fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.bs-link:hover { color: var(--bs-muted); }

.bs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bs-field > label, .bs-label { font-size: 0.9rem; font-weight: 700; }
.bs-field > label .bs-muted { font-weight: 400; }
.bs-input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--bs-line-strong); border-radius: var(--bs-radius);
  background: var(--bs-surface); color: var(--bs-fg); font-size: 1rem;
}
.bs-input:focus { outline: 2px solid var(--bs-fg); outline-offset: 1px; border-color: var(--bs-fg); }
select.bs-input { padding-right: 32px; }

/* Oppstart: tynn linje øverst i stedet for et kort */
.bs-app .app-auth-boot.bs-boot { position: fixed; inset: 0 0 auto 0; height: 3px; padding: 0; background: transparent; backdrop-filter: none; z-index: 50; }
.bs-boot__bar { display: block; height: 3px; width: 40%; background: var(--bs-fg); animation: bs-boot 1s ease-in-out infinite; }
@keyframes bs-boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .bs-boot__bar { animation: none; width: 100%; opacity: 0.3; } }
body.bs-app:not(.bs-authed) #auth-gate.is-hidden { display: none; }

/* ---------- Logg inn ---------- */
.bs-app #auth-gate.bs-login { max-width: none; margin: 0; padding: 0; min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--bs-surface); }
.bs-app #auth-gate.bs-login.is-hidden { display: none; }
.bs-login__main { flex: 999 1 520px; display: flex; align-items: center; justify-content: center; padding: 56px 24px; min-width: 0; }
.bs-login__form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.bs-login__brand { margin-bottom: 28px; }
.bs-login__title { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; }
.bs-login__aside { flex: 1 1 420px; background: var(--bs-fg); color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.bs-login__eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #a8a8a8; }
.bs-login__claim { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; max-width: 14ch; }
.bs-login__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #e6e6e6; }
.bs-login__points li { display: flex; gap: 12px; }
.bs-login__points li::before { content: "—"; color: #8a8a8a; }
.bs-login__contact { font-size: 0.9rem; color: #a8a8a8; }
.bs-login__contact a { color: #fff; }
.bs-pw-wrap { position: relative; }
.bs-pw-wrap .bs-input { padding-right: 52px; }
.bs-app .password-toggle { color: var(--bs-muted); }
.bs-sep { display: flex; align-items: center; gap: 12px; color: var(--bs-muted); font-size: 0.85rem; }
.bs-sep::before, .bs-sep::after { content: ""; flex: 1; height: 1px; background: var(--bs-line); }
.bs-app .register-panel-body.is-hidden, .bs-app #register-panel.is-hidden, .bs-app #upload-auth-login-block.is-hidden, .bs-app #upload-auth-email-row.is-hidden, .bs-app #auth-first-user-hint.is-hidden { display: none; }
@media (max-width: 760px) { .bs-login__aside { display: none; } }

/* ---------- Skall ---------- */
.bs-shell.is-hidden { display: none; }
.bs-bar { background: var(--bs-surface); border-bottom: 1px solid var(--bs-line); position: sticky; top: 0; z-index: 20; }
.bs-bar__inner { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.bs-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--bs-fg); text-decoration: none; font-size: 1rem; }
.bs-brand img { border-radius: 50%; }
.bs-nav { display: flex; gap: 32px; justify-content: center; }
.bs-nav a { padding: 12px 2px; color: var(--bs-muted); text-decoration: none; font-size: 1rem; }
.bs-nav a:hover { color: var(--bs-fg); }
.bs-nav a.is-active { color: var(--bs-fg); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.bs-user { position: relative; justify-self: end; }
.bs-user__btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 4px; border: 1px solid var(--bs-line); border-radius: 999px; background: var(--bs-surface); color: var(--bs-fg); cursor: pointer; font-size: 0.9rem; }
.bs-user__btn[aria-expanded="true"] { border-color: var(--bs-fg); }
.bs-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bs-fg); color: #fff; display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 700; overflow: hidden; flex: none; }
.bs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bs-avatar--sm { width: 26px; height: 26px; font-size: 0.68rem; background: #e8e8e8; color: var(--bs-fg); }
.bs-menu { position: absolute; right: 0; top: 50px; z-index: 40; min-width: 230px; background: var(--bs-surface); border: 1px solid var(--bs-line); border-radius: 10px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.35); padding: 6px; display: flex; flex-direction: column; }
.bs-menu--row { position: absolute; top: 0; left: 0; right: auto; }
.bs-menu button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 6px; font-size: 0.92rem; color: var(--bs-fg); cursor: pointer; }
.bs-menu button:hover, .bs-menu button:focus-visible { background: var(--bs-soft); }
.bs-menu button.is-danger { color: var(--bs-bad); }
.bs-menu__head { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid #ededed; margin-bottom: 4px; font-size: 0.9rem; }
.bs-menu__head .bs-muted { font-size: 0.82rem; overflow-wrap: anywhere; }
.bs-menu__sep { border-top: 1px solid #ededed !important; margin-top: 4px; border-radius: 0 0 6px 6px !important; }
@media (max-width: 640px) {
  .bs-bar__inner { grid-template-columns: auto 1fr auto; padding: 8px 16px; }
  .bs-nav { gap: 18px; }
  .bs-bar .bs-brand span, .bs-user__name { display: none; }
}

.bs-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 72px; display: flex; flex-direction: column; gap: 24px; }
.bs-cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.bs-cols__main { flex: 999 1 560px; min-width: 0; }
.bs-cols__side { flex: 1 1 320px; min-width: 0; }
.bs-card { background: var(--bs-surface); border: 1px solid var(--bs-line); border-radius: var(--bs-radius-lg); padding: 22px; }
.bs-step { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; }
.bs-step span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--bs-fg); display: grid; place-items: center; font-size: 0.8rem; }

/* Kunde-velger */
.bs-combo { position: relative; border: 1px solid var(--bs-line-strong); border-radius: var(--bs-radius); background: var(--bs-surface); }
.bs-combo:focus-within { border-color: var(--bs-fg); box-shadow: 0 0 0 1px var(--bs-fg); }
.bs-combo.is-selected { border-color: var(--bs-fg); }
.bs-combo__input { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; height: 46px; color: var(--bs-muted); }
.bs-combo__input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--bs-fg); font-size: 1rem; }
.bs-combo.is-selected .bs-combo__input input { font-weight: 700; }
.bs-combo__clear { border: 1px solid var(--bs-line-strong); background: var(--bs-surface); border-radius: 6px; height: 32px; padding: 0 10px; font-size: 0.82rem; cursor: pointer; color: var(--bs-fg); }
.bs-combo__list { list-style: none; margin: 0; padding: 6px; border-top: 1px solid var(--bs-line); max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.bs-combo__head { padding: 8px 10px 2px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bs-muted); }
.bs-combo__opt { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.bs-combo__opt:hover, .bs-combo__opt.is-active { background: var(--bs-soft); }
.bs-combo__opt[aria-selected="true"] .bs-combo__name { font-weight: 700; }
.bs-combo__opt.is-pinned { border-bottom: 1px solid #ededed; border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.bs-combo__opt--new { border-top: 1px solid #ededed; margin-top: 4px; border-radius: 0 0 6px 6px; }
.bs-combo__opt--new .bs-combo__name { font-weight: 700; }
.bs-combo__name { font-size: 0.95rem; }
.bs-combo__path { font-family: var(--mono); font-size: 0.76rem; color: var(--bs-muted); }
.bs-combo__info { padding: 10px; border-top: 1px solid #ededed; margin-top: 4px; color: #767676; font-size: 0.88rem; }

.bs-slug-hint { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.bs-slug-hint .bs-mono { color: var(--bs-fg); }
.bs-prefixed { display: flex; align-items: center; height: 46px; border: 1.5px solid var(--bs-line-strong); border-radius: var(--bs-radius); background: var(--bs-surface); overflow: hidden; }
.bs-prefixed.is-ok { border-color: var(--bs-ok); }
.bs-prefixed.is-bad { border-color: var(--bs-bad); }
.bs-prefixed:focus-within { box-shadow: 0 0 0 1px var(--bs-fg); }
.bs-prefixed__pre { font-family: var(--mono); font-size: 0.85rem; color: var(--bs-muted); padding: 0 2px 0 14px; white-space: nowrap; }
.bs-prefixed input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-family: var(--mono); font-size: 0.88rem; color: var(--bs-fg); }
.bs-slug-status { font-size: 0.9rem; line-height: 1.5; border-radius: var(--bs-radius); }
.bs-slug-status.is-ok { color: var(--bs-ok); font-weight: 700; }
.bs-slug-status.is-bad { color: var(--bs-bad); background: #fdf1f0; padding: 10px 12px; }
.bs-slug-status.is-replace { background: var(--bs-soft); padding: 10px 12px; }
.bs-slug-status__actions { margin-top: 8px; }

/* Format */
.bs-formats { margin: 0; padding: 0; border: 0; min-width: 0; }
.bs-formats legend { padding: 0; margin-bottom: 10px; font-size: 0.9rem; font-weight: 700; }
.bs-formats__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bs-formats__group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bs-formats__head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bs-muted); padding-bottom: 6px; border-bottom: 1px solid var(--bs-line); margin-bottom: 4px; }
.bs-radio { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 6px; font-size: 0.95rem; cursor: pointer; }
.bs-radio:hover { background: var(--bs-soft); }
.bs-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--bs-fg); }
.bs-radio small { margin-left: auto; font-size: 0.75rem; color: var(--bs-muted); }
.bs-radio.is-checked { background: var(--bs-soft); font-weight: 700; }
.bs-radio.is-checked small { font-weight: 400; }
.bs-radio.is-disabled { color: #767676; cursor: default; }
.bs-radio.is-disabled:hover { background: none; }
@media (max-width: 640px) { .bs-formats__groups, .bs-grid-2 { grid-template-columns: 1fr; } }

/* Filer-kort = slippsone */
.bs-drop-card { background: var(--bs-bg); border: 2px dashed #b8b8b8; transition: border-color .15s, background .15s; }
.bs-drop-card.is-over { border-color: var(--bs-fg); background: #f0f0f0; }
.bs-drop-card__hint { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.bs-app .file-input { font-family: var(--bs-font); padding: 6px 0; }
.bs-app .row-actions { margin-top: 4px; }
.bs-app .field-toggle-row { margin-top: 0; }
.bs-app .toggle__label { font-family: var(--bs-font); font-size: 0.95rem; }

/* Deling */
.bs-linkbox { padding: 12px 14px; background: var(--bs-soft); border-radius: var(--bs-radius); overflow-x: auto; white-space: nowrap; font-size: 0.88rem; }
.bs-pwbox { border: 1px solid var(--bs-line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bs-pwbox.is-on { border-color: var(--bs-fg); }
.bs-switch { width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--bs-line-strong); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.bs-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.bs-switch[aria-checked="true"] { background: var(--bs-fg); }
.bs-switch[aria-checked="true"] span { left: 25px; }
.bs-pw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bs-pw-value { width: auto; flex: 1 1 200px; font-family: var(--mono); font-size: 1.05rem; letter-spacing: .02em; background: var(--bs-soft); }

/* Resultat */
.bs-result { border-color: var(--bs-fg); }
.bs-result:focus { outline: none; }
.bs-result__ok { color: var(--bs-ok); font-size: 1.1rem; }
.bs-result__ok::before { content: "✓ "; }
.bs-kv { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bs-kv__k { font-size: 0.85rem; color: var(--bs-muted); }
.bs-kv__v { font-size: 0.9rem; overflow-x: auto; white-space: nowrap; color: var(--bs-fg); }
.bs-message { margin: 0; white-space: pre-wrap; background: var(--bs-bg); border: 1px solid var(--bs-line); border-radius: var(--bs-radius); padding: 12px 14px; font-size: 0.85rem; line-height: 1.5; }
@media (max-width: 640px) { .bs-kv { grid-template-columns: minmax(0, 1fr) auto; } .bs-kv__k { grid-column: 1 / -1; } }

/* Forhåndsvisning i sidekolonnen */
.bs-app .proof-preview-section { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--bs-line); }
.bs-app .proof-preview-row { grid-template-columns: 1fr; }
.bs-app .schibsted-check { margin: 0; }
.bs-app .proof-filesize-note { margin: 0; }

/* ---------- Oversikt ---------- */
.bs-drop { border: 2px dashed #b8b8b8; border-radius: 14px; background: var(--bs-surface); cursor: pointer; transition: border-color .15s, background .15s; }
.bs-drop--hero { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 40px 24px; }
.bs-drop:hover, .bs-drop.is-over { border-color: var(--bs-fg); }
.bs-drop.is-over { background: #f0f0f0; }
.bs-drop__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bs-fg); color: #fff; display: grid; place-items: center; }
.bs-drop__title { font-size: 1.15rem; }
.bs-drop .bs-btn { margin-top: 6px; pointer-events: none; }
.bs-list { list-style: none; margin: 0; padding: 0; background: var(--bs-surface); border: 1px solid var(--bs-line); border-radius: var(--bs-radius-lg); }
.bs-list__row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #ededed; flex-wrap: wrap; }
.bs-list__row:last-child { border-bottom: 0; }
.bs-cell-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.bs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; border: 1px solid var(--bs-line-strong); border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: var(--bs-surface); }
.bs-chip--link { font-size: 0.9rem; padding: 8px 14px; text-decoration: none; color: var(--bs-fg); }
.bs-chip--link:hover { border-color: var(--bs-fg); }
.bs-lock { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- Filer ---------- */
.bs-files { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.bs-files__side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.bs-files__side .bs-eyebrow { padding: 8px 12px; }
.bs-files__clients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bs-files__client { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--bs-radius); text-decoration: none; color: var(--bs-fg); border: 1px solid transparent; font-size: 0.95rem; }
.bs-files__client:hover { background: var(--bs-surface); }
.bs-files__client.is-active { background: var(--bs-surface); border-color: var(--bs-fg); font-weight: 700; }
.bs-count { color: var(--bs-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.bs-files__main { flex: 999 1 640px; min-width: 0; }
.bs-search { width: 220px; height: 42px; }
.bs-table-wrap { background: var(--bs-surface); border: 1px solid var(--bs-line); border-radius: var(--bs-radius-lg); overflow-x: auto; }
.bs-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.95rem; }
.bs-table th { text-align: left; font-weight: 400; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bs-muted); padding: 14px 16px; border-bottom: 1px solid var(--bs-line); }
.bs-table td { padding: 14px 16px; border-bottom: 1px solid #ededed; vertical-align: middle; }
.bs-table tr:last-child td { border-bottom: 0; }
.bs-cell-who { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 0.88rem; }
.bs-table td:nth-child(2), .bs-table td:nth-child(3) { white-space: nowrap; }
.bs-table td:first-child { min-width: 240px; }
.bs-cell-name .bs-mono { overflow-wrap: anywhere; word-break: normal; }
.bs-imported { font-size: 0.78rem; border: 1px dashed var(--bs-line-strong); border-radius: 999px; padding: 2px 8px; color: var(--bs-muted); }
.bs-cell-act { text-align: right; white-space: nowrap; }
.bs-cell-act .bs-btn { margin-left: 6px; }
.bs-empty { padding: 28px 16px; text-align: center; color: var(--bs-muted); }
@media (max-width: 860px) {
  .bs-files__clients { flex-direction: row; flex-wrap: wrap; }
  .bs-files__side .bs-eyebrow { display: none; }
}

/* Dialoger og toast */
.bs-dialog { border: 0; border-radius: 14px; padding: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); color: var(--bs-fg); }
.bs-dialog::backdrop { background: rgba(10,10,10,.45); }
.bs-toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--bs-fg); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 0.92rem; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }

/* ---------- Forside (offentlig) ---------- */
.bs-public { background: var(--bs-surface); }
.bs-public__wrap { min-height: 100vh; display: flex; flex-direction: column; }
.bs-public__head, .bs-public__main, .bs-public__foot { max-width: 1120px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bs-public__head { padding-top: 24px; padding-bottom: 24px; }
.bs-public__head img { border-radius: 50%; }
.bs-public__main { flex: 1; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 48px; padding-bottom: 64px; }
.bs-public__intro { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.bs-public__title { font-size: clamp(2.4rem, 6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; }
.bs-public__lede { font-size: 1.12rem; line-height: 1.55; color: var(--bs-muted); max-width: 46ch; }
.bs-example { align-self: flex-start; max-width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px dashed #b8b8b8; border-radius: 10px; }
.bs-example__url { font-size: 0.95rem; overflow-x: auto; white-space: nowrap; }
.bs-example__url em { color: var(--bs-muted); }
.bs-public__recent { flex: 1 1 340px; min-width: 0; }
.bs-public__recent .bs-cell-name { text-decoration: none; color: var(--bs-fg); }
.bs-public__recent .bs-cell-name:hover .bs-strong { text-decoration: underline; }
.bs-public__foot { padding-top: 20px; padding-bottom: 24px; border-top: 1px solid #ededed; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--bs-muted); }
.bs-public__foot a { color: var(--bs-muted); }

/* Gamle komponenter i ny drakt */
.bs-app .toggle__input:checked + .toggle__track { background: var(--bs-fg); }
.bs-drop-card__hint svg { flex: none; }
