/* Video Feed — mobile-first styles with automatic dark mode. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --text: #14161f;
  --muted: #5d6475;
  --border: #e2e5ee;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #ffffff;
  --accent-soft: #eef0ff;
  --danger: #dc2626;
  --success: #15803d;
  --warn-bg: #fff7e8;
  --warn-border: #f2c879;
  --info-bg: #eef2ff;
  --info-border: #c7cdfb;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
  --radius: 14px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #181b22;
    --surface-2: #20242d;
    --text: #eceef3;
    --muted: #9aa1b2;
    --border: #2a2f3a;
    --accent: #8b8ff8;
    --accent-hover: #a5a8fb;
    --accent-text: #0f1115;
    --accent-soft: #232646;
    --danger: #f87171;
    --success: #4ade80;
    --warn-bg: #2b2414;
    --warn-border: #6b5520;
    --info-bg: #1c1f38;
    --info-border: #353a6b;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { line-height: 1.25; }
code { font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- Layout ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.brand img { border-radius: 7px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.container { max-width: 1120px; margin: 0 auto; padding: var(--gutter); }
.container.narrow { max-width: 820px; }

.notices { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.notices:empty { display: none; }
.notices .notice { margin-top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, opacity .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, .icon-btn:focus-visible, .card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

.push-btn { flex: none; }
.push-btn.is-on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.icon-btn {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

@media (max-width: 380px) {
  .push-btn span { display: none; } /* icon-only on very small phones */
  .push-btn { width: 40px; padding: 0; }
}

/* ---------- Notices ---------- */

.notice {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0; padding: 12px 14px;
  border: 1px solid var(--info-border); border-radius: 12px;
  background: var(--info-bg); font-size: 0.93rem;
}
.notice-text { flex: 1; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.inline-icon { display: inline-block; vertical-align: -3px; }

/* ---------- Feed ---------- */

.feed {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feed { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); color: inherit; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
@media (hover: hover) { .card:hover { transform: translateY(-2px); } }
.card:active { transform: scale(.99); }

.thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; right: 10px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgb(0 0 0 / 55%);
}
.thumb .is-placeholder + .play { display: none; }
.play::after {
  content: ""; position: absolute; left: 14px; top: 11px;
  border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-title { margin: 0; font-size: 1.05rem; }
.card-text {
  margin: 0; color: var(--muted); font-size: 0.93rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-date { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.skeleton { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.skeleton .card-body span { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); }
.skeleton .card-body span:first-child { width: 70%; height: 16px; }
.skeleton .card-body span:last-child { width: 45%; }
.skeleton .thumb, .skeleton span { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .skeleton .thumb, .skeleton span { animation: none; } .card { transition: none; } }

.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.more { display: flex; justify-content: center; padding: 24px 0 8px; }

/* ---------- Post ---------- */

.back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 600; }
.player {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden;
  margin: 0 calc(-1 * var(--gutter));
}
@media (min-width: 640px) { .player { margin: 0; } }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 639px) { .player { border-radius: 0; } }

/* Full screen: native (:fullscreen) or the CSS fallback (.is-expanded). */
.player-close {
  display: none; position: absolute; z-index: 2;
  top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right));
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgb(0 0 0 / 65%); color: #fff; cursor: pointer;
}
.player-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.player:fullscreen, .player.is-expanded { aspect-ratio: auto; border-radius: 0; margin: 0; }
.player:-webkit-full-screen { aspect-ratio: auto; border-radius: 0; margin: 0; }
.player.is-expanded { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; height: 100dvh; }
.player:fullscreen .player-close, .player.is-expanded .player-close { display: flex; }
.player:-webkit-full-screen .player-close { display: flex; }
.no-scroll, .no-scroll body { overflow: hidden; }

.post-title { margin: 18px 0 6px; font-size: 1.5rem; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.post-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.post-text { margin-top: 16px; font-size: 1.02rem; }
.post-body { white-space: pre-line; overflow-wrap: anywhere; }
.post-body:empty { display: none; }
.post-source { margin: 14px 0 0; color: var(--muted); font-size: 0.93rem; overflow-wrap: anywhere; }
.post-body:empty + .post-source { margin-top: 0; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 0.93rem; box-shadow: var(--shadow);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin ---------- */

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-top: 16px; box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 4px; font-size: 1.15rem; }
.login { max-width: 420px; margin: 40px auto; }
.login h1 { margin-top: 0; font-size: 1.4rem; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.93rem; }
label .muted { font-weight: 400; }
input[type="text"], input[type="password"], textarea {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text);
  font: inherit; font-size: 16px; /* ≥16px stops iOS zooming into fields */
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type="file"] { font: inherit; font-size: 0.9rem; font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.field-hint { margin: -6px 0 0; font-size: 0.85rem; color: var(--muted); }
.field-hint:empty { display: none; }
.field-hint.is-ok { color: var(--success); }
.field-hint.is-error { color: var(--danger); }
.form-error { margin: 0; color: var(--danger); font-weight: 600; }
.form-success { margin: 0; color: var(--success); font-weight: 600; }
.test-push .field-hint { margin-top: 10px; }

.drive-preview img {
  width: 100%; max-width: 320px; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; background: var(--surface-2);
}
.drive-preview .field-hint { margin-top: 6px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; }
.admin-head h1 { margin: 8px 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  display: flex; flex-direction: column; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.stat-num { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 0.85rem; }
#push-disabled { margin-top: 16px; }

.admin-posts { margin-top: 28px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center;
  padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.admin-thumb { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.admin-item-main { min-width: 0; display: flex; flex-direction: column; }
.admin-item-title { font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
@media (min-width: 560px) {
  .admin-item { grid-template-columns: 120px 1fr auto; }
  .admin-thumb { width: 120px; }
  .admin-actions { grid-column: auto; }
}

/* ---------- Account menu ---------- */

.topbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.account { position: relative; }
.account summary { list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.avatar:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
}
.account-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.account-name strong { overflow: hidden; text-overflow: ellipsis; }
.menu-item {
  display: block; width: 100%; padding: 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; }
.logout-form { margin: 0; }
.menu-button { color: var(--danger); }

.role-badge {
  flex: none; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--surface-2); color: var(--muted);
}
.role-poster { background: var(--accent-soft); color: var(--accent); }
.role-admin { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }

/* ---------- Login ---------- */

.login-body .login { margin: max(32px, 10vh) auto 32px; text-align: center; }
.login-body .login .stack { text-align: left; margin-top: 18px; }
.login-logo { margin: 0 auto 10px; border-radius: 14px; }
.login h1 { margin: 0 0 4px; }
.login p { margin: 0; }
.login .form-error { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 10%, transparent); text-align: left; }
.login-help { margin-top: 16px !important; }

/* ---------- Manage: users ---------- */

.panel h3 { margin: 0; font-size: 1.05rem; }
.admin-users { margin-top: 32px; }
.admin-users > h2 { margin-bottom: 2px; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.input-row { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.input-row input { flex: 1; min-width: 0; }
select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.user-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.user-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.user-item.is-disabled .user-main { opacity: .6; }
.user-main { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.user-name strong { overflow-wrap: anywhere; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.user-actions .role-select { width: auto; padding: 6px 10px; font-size: 0.9rem; min-height: 36px; }
@media (min-width: 720px) { .user-actions { width: auto; } }
.test-push { margin-top: 32px; }
.credentials {
  margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text);
  font: 0.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
}
#user-success { display: flex; flex-direction: column; align-items: flex-start; }
#user-success[hidden] { display: none; }

/* ---------- Folders ---------- */

.folder-icon {
  display: inline-block; width: 1.05em; height: 0.85em; margin-right: 0.35em; vertical-align: -0.05em;
  background: currentColor; border-radius: 2px 3px 3px 3px; position: relative;
}
.folder-icon::before {
  content: ""; position: absolute; left: 0; top: -0.18em; width: 45%; height: 0.3em;
  background: currentColor; border-radius: 2px 2px 0 0;
}
.folder-item::before, .folder-item::after { /* stacked-cards look behind folder cards */
  content: ""; position: absolute; left: 10px; right: 10px; top: -6px; height: 12px; z-index: -1;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); border: 1px solid var(--border); border-bottom: 0;
}
.folder-item::after { left: 22px; right: 22px; top: -11px; z-index: -2; opacity: .7; }
.feed > li { position: relative; z-index: 0; }
.feed { row-gap: 26px; }
.folder-badge {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 999px; background: rgb(0 0 0 / 65%); color: #fff;
  font-size: 0.82rem; font-weight: 600;
}
.folder-badge .folder-icon { color: #fff; }
.folder-head { margin-bottom: 22px; }
.folder-title { margin: 4px 0 2px; font-size: 1.5rem; }
.folder-title .folder-icon { color: var(--accent); }
.folder-head .post-body { margin-top: 10px; }
.folder-head .post-source { margin-top: 8px; }

.folder-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 16px;
}
.folder-nav a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 36px; }
.folder-nav a[rel="next"] { justify-self: end; }
.folder-nav a[rel="prev"] { justify-self: start; }

/* ---------- Share links ---------- */

.share-row {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border: 1px dashed var(--border); border-radius: 12px;
}
.share-label { font-weight: 600; font-size: 0.93rem; }
.share-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-url {
  flex: 1 1 100%; padding: 8px 10px; border-radius: 8px; background: var(--surface-2);
  font-size: 0.85rem; overflow-wrap: anywhere;
}
.share-footer { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Fullscreen icon on the video itself (top-left; Drive's own pop-out sits top-right). */
.player-fs {
  position: absolute; z-index: 2; top: 10px; left: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: rgb(0 0 0 / 55%); color: #fff; cursor: pointer; opacity: .85;
  transition: opacity .15s, background-color .15s;
}
.player-fs:hover, .player-fs:focus-visible { opacity: 1; background: rgb(0 0 0 / 75%); }
.player-fs:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.player:fullscreen .player-fs, .player.is-expanded .player-fs { display: none; }
.player:-webkit-full-screen .player-fs { display: none; }
.field-hint.is-warn { color: #b45309; }
@media (prefers-color-scheme: dark) { .field-hint.is-warn { color: #fbbf24; } }

/* ---------- Google sign-in ---------- */
.login-google { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.login-google:empty { display: none; }
.btn-google {
  gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600;
}
.btn-google:hover { background: #f6f8fc; }
@media (prefers-color-scheme: dark) {
  .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  .btn-google:hover { background: #1f1f20; }
}
.divider { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; color: var(--muted); font-size: 0.85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 0; }
#folder-select { flex: 1; min-width: 0; }

/* ---------- Add many videos ---------- */
.bulk-panel summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.bulk-panel summary::-webkit-details-marker { display: none; }
.bulk-panel summary::after { content: "Show"; align-self: flex-start; margin-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.bulk-panel[open] summary::after { content: "Hide"; }
.bulk-summary-title { font-size: 1.15rem; font-weight: 700; }
.bulk-body { margin-top: 14px; }
.bulk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.bulk-row {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center;
  padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
}
.bulk-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.bulk-row input[type="text"] { padding: 8px 10px; }
.bulk-row .bulk-meta { grid-column: 2; font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.bulk-row.is-error { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.bulk-row.is-error .bulk-meta { color: var(--danger); }
.bulk-row.is-skipped { opacity: .7; }
.bulk-row .is-auto { border-color: #d97706; }
.badge-warn { color: #b45309; }
@media (prefers-color-scheme: dark) { .badge-warn { color: #fbbf24; } }
