/* Tap Bogey support desk. Tokens from src/lib/theme.ts; globals from src/app/globals.css. */
:root {
  --accent: #2F6B47;
  --gold: #EBC77E;
  --bg: #F3EFE6;
  --text: #23261F;
  --rail: #FBFAF6;
  --rail-border: #E7E2D6;
  --divider: #EBE6DA;
  --list-bg: #F7F4EC;
  --detail-bg: #FBFAF6;
  --row-divider: #EEEAE0;
  --card-bg: #FFFFFF;
  --card-border: #E9E4D8;
  --input-bg: #FBFAF6;
  --input-border: #DCD7CA;
  --muted: #9AA093;
  --muted2: #A29C8C;
  --muted3: #6E756A;
  --label: #5C6159;
  --chip-bg: #EDE9DE;
  --chip-fg: #7A7A6C;
  --selected-row: #F0EBDF;
  --hover: #F1EDE3;
  --danger-fg: #9A4A34;
  --danger-bg: #F6E3DC;
  --danger-border: #E7C3B4;
  --accent-11: color-mix(in srgb, var(--accent) 11%, #fff);
  --accent-12: color-mix(in srgb, var(--accent) 12%, #fff);
  --accent-13: color-mix(in srgb, var(--accent) 13%, #fff);
  --accent-15: color-mix(in srgb, var(--accent) 15%, #fff);
  --accent-20: color-mix(in srgb, var(--accent) 20%, #fff);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 13.5px; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:disabled { cursor: default; opacity: .6; }
input, textarea, select { font-family: inherit; font-size: inherit; }
textarea { resize: none; }
::placeholder { color: var(--muted); }
a { color: inherit; }
.serif { font-family: "Newsreader", serif; font-weight: 500; }
.accent { color: var(--accent); font-weight: 600; }
.grow { flex: 1; min-width: 0; }
.inline { display: inline; }
.muted-copy { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 420px; }
.hidden, [hidden] { display: none !important; }

@keyframes shimmer { 0% { background-position: -320px 0; } 100% { background-position: 320px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .72; transform: scale(.95); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sk { background: linear-gradient(90deg, #ece8de 25%, #f4f1ea 50%, #ece8de 75%); background-size: 640px 100%; animation: shimmer 1.3s infinite linear; border-radius: 7px; }
.spinner { animation: spin .8s linear infinite; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
.scroll::-webkit-scrollbar { width: 9px; }
.scroll::-webkit-scrollbar-thumb { background: #d7d2c6; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
.scroll::-webkit-scrollbar-track { background: transparent; }
.lift:hover { filter: brightness(1.07); }
.op:hover { opacity: .9; }
.row-hover:hover { background: var(--hover) !important; }

/* ---- Buttons and inputs ------------------------------------------------- */
.btn-accent, .btn-white, .btn-black, .btn-danger, .btn-ghost { height: 46px; border-radius: 12px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; text-decoration: none; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #fff; font-weight: 700; }
.btn-accent:hover { filter: brightness(1.07); }
.btn-white { background: #fff; border: 1px solid var(--input-border); color: var(--text); }
.btn-white:hover { background: var(--hover); }
.btn-black { background: #1A1A1A; color: #fff; }
.btn-danger { background: var(--danger-bg); color: var(--danger-fg); border: 1px solid var(--danger-border); }
.btn-ghost { color: var(--label); }
.btn-sm { height: 40px; font-size: 13.5px; font-weight: 700; padding: 0 18px; border-radius: 10px; }
.btn-xs { height: 32px; font-size: 12.5px; padding: 0 12px; border-radius: 9px; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #8B9184; flex: none; }
.icon-btn:hover { background: var(--hover); }
.icon-btn-bordered { width: 30px; height: 30px; border: 1px solid var(--input-border); background: #fff; color: #7A7A6C; }
.label { display: block; font-size: 12px; font-weight: 600; color: var(--muted3); margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--input-border); background: var(--input-bg); font-size: 14px; outline: none; color: var(--text); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); background: #fff; }
.input-sm, .select-sm { height: 36px; font-size: 13px; border-radius: 9px; padding: 0 11px; }
.textarea { height: auto; padding: 10px 14px; line-height: 1.5; }
.stack-10 > * + * { margin-top: 10px; }
.stack-11 > * + * { margin-top: 11px; }
.row-10 { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.callout { border-radius: 11px; padding: 11px 13px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.callout-danger { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-fg); font-size: 12.5px; }
.callout-ok { background: #F2F7EF; border: 1px solid #C7DCBE; color: var(--accent); border-radius: 12px; padding: 13px 15px; font-weight: 600; margin-bottom: 22px; }
.callout code { font-size: 12px; }
.section-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted2); text-transform: uppercase; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--chip-bg); color: var(--chip-fg); white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #DCE7D6; color: #3C6B45; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.is-dimmed { background: #EFE7E3; color: #9A4A34; border: 1px solid #E7C3B4; }
.avatar.is-dimmed img { filter: grayscale(1) opacity(.75); }
.logo-badge { background: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-badge-sm { width: 36px; height: 36px; border-radius: 11px; }
.logo-badge-lg { width: 54px; height: 54px; border-radius: 16px; box-shadow: 0 8px 22px rgba(47,107,71,.28); margin-bottom: 16px; }

/* ---- Login --------------------------------------------------------------- */
.login-body { background: var(--bg); }
.login-screen { min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1100px 620px at 78% -8%, #E8EFE4 0%, rgba(232,239,228,0) 60%), radial-gradient(900px 560px at 8% 108%, #F1E7D6 0%, rgba(241,231,214,0) 55%), #F3EFE6; }
.login-card-wrap { width: 100%; max-width: 404px; animation: fadeUp .5s ease both; }
.login-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.login-title { font-family: "Newsreader", serif; font-size: 29px; font-weight: 500; letter-spacing: -.01em; }
.login-sub { font-size: 13.5px; color: var(--muted3); margin-top: 4px; }
.login-card { background: #fff; border: 1px solid var(--rail-border); border-radius: 18px; padding: 26px 24px; box-shadow: 0 20px 50px -28px rgba(50,45,30,.35); }
.login-card + .login-card { margin-top: 12px; }
.login-error { font-size: 12.5px; color: var(--danger-fg); font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.login-or span { flex: 1; height: 1px; background: var(--divider); }
.login-or em { font-style: normal; font-size: 11.5px; color: var(--muted2); font-weight: 600; letter-spacing: .04em; }
.login-card .btn-accent, .login-card .btn-white, .login-card .btn-black { width: 100%; }
.login-form .btn-accent { margin-top: 4px; }
.centered-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px 0; }
.state-title { font-size: 14.5px; font-weight: 700; }
.state-title-lg { font-size: 18px; font-weight: 800; }
.state-sub { font-size: 12.5px; color: var(--muted); }
.state-sub-wide { font-size: 13.5px; max-width: 400px; line-height: 1.6; }
.denied-badge { width: 60px; height: 60px; border-radius: 17px; background: var(--danger-bg); color: var(--danger-fg); display: flex; align-items: center; justify-content: center; }

/* ---- Desk frame ---------------------------------------------------------- */
.desk-body { overflow: hidden; }
.desk { height: 100vh; width: 100%; display: flex; background: var(--bg); }
.pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--detail-bg); }
.pane-head { padding: 18px 26px 14px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: none; }
.pane-title { font-size: 23px; }
.pane-sub { font-size: 12px; color: var(--muted3); margin-top: 2px; }
.pane-scroll { flex: 1; min-height: 0; overflow: auto; }
.dash { padding: 20px 26px 40px; max-width: 900px; }
.tile-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.tile { border-radius: 13px; padding: 13px 16px; text-align: left; text-decoration: none; display: block; }
.tile-attention { min-width: 150px; border: 1px solid var(--danger-border); background: #FDF3EF; }
.tile-attention.is-idle { border-color: var(--card-border); background: transparent; }
.tile-attention .tile-value { color: var(--danger-fg); font-size: 26px; }
.tile-attention.is-idle .tile-value { color: var(--muted); }
.tile-total { min-width: 168px; border: 1px solid var(--card-border); background: var(--card-bg); }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile-value { font-size: 24px; font-weight: 700; line-height: 1.05; color: var(--text); }
.tile-label { font-size: 12px; color: var(--muted3); margin-top: 4px; }
.tile-delta { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 6px; display: inline-block; }
.tile-delta.is-up { color: var(--accent); background: var(--accent-12); border-radius: 6px; padding: 1px 6px; }
.tile-note { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---- Dashboard charts ----------------------------------------------------- */
.sparkline { flex: none; margin-top: 2px; overflow: visible; }
.sparkline-area { fill: var(--muted2); fill-opacity: .12; stroke: none; }
.sparkline-line { fill: none; stroke: var(--muted2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sparkline-dot { fill: var(--accent); stroke: var(--card-bg); stroke-width: 2; }
.chart-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; align-items: stretch; }
.chart-card { flex: 1 1 320px; min-width: 280px; border: 1px solid var(--card-border); background: var(--card-bg); border-radius: 13px; padding: 15px 18px 16px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.chart-head .section-label { margin-bottom: 0; }
.chart-range { font-size: 11px; color: var(--muted); }
.chart-columns { display: flex; align-items: flex-end; gap: 5px; height: 90px; margin-top: 14px; }
.chart-col-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.chart-col-peak { font-size: 10.5px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.chart-col { width: 100%; max-width: 20px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 3px; }
.chart-col.is-empty { background: var(--divider); }
.chart-bars { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.chart-bar-row { display: flex; align-items: center; gap: 10px; }
.chart-bar-label { width: 118px; flex: none; font-size: 12px; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-bar-track { flex: 1; min-width: 0; height: 14px; border-radius: 4px; background: var(--divider); display: block; text-decoration: none; }
.chart-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; min-width: 3px; }
.chart-bar-fill.is-other { background: var(--muted2); }
a.chart-bar-track:hover .chart-bar-fill { filter: brightness(1.1); }
.chart-bar-value { width: 34px; flex: none; text-align: right; font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---- Rail ---------------------------------------------------------------- */
.rail { width: 246px; flex: none; display: flex; flex-direction: column; background: var(--rail); border-right: 1px solid var(--rail-border); transition: width .16s ease; }
.rail-head { padding: 18px 18px 14px; display: flex; align-items: center; gap: 11px; flex: none; }
.rail-title { flex: 1; min-width: 0; }
.rail-title-main { font-family: "Newsreader", serif; font-size: 18px; font-weight: 500; line-height: 1; }
.rail-title-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.rail-toggle { width: 30px; height: 30px; }
.rail-toggle-collapsed { display: none; justify-content: center; padding: 0 0 8px; }
.rail-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.rail-nav { padding: 6px 12px 2px; }
.rail-item { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #4A4F44; margin-bottom: 2px; text-decoration: none; }
.rail-item:hover { background: var(--hover); }
.rail-item.is-active { background: var(--accent-15); color: var(--accent); }
.rail-divider { height: 1px; background: var(--divider); margin: 8px 12px 4px; }
.rail-group { padding: 6px 12px 4px; }
.rail-section-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted2); padding: 8px 8px 6px; }
.rail-filter { width: 100%; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #4A4F44; margin-bottom: 2px; text-decoration: none; }
.rail-filter:hover { background: var(--hover); }
.rail-filter.is-active { background: var(--accent-13); color: var(--accent); }
.rail-filter-sm { height: 34px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--label); margin-bottom: 1px; }
.rail-filter-sm.is-active { background: var(--accent-11); color: var(--accent); font-weight: 700; }
.count-pill { font-size: 12px; font-weight: 700; color: #8B8776; background: #ECE8DE; min-width: 22px; text-align: center; padding: 2px 6px; border-radius: 7px; }
.rail-filter.is-active .count-pill { color: var(--accent); background: var(--accent-20); }
.count-muted { font-size: 11.5px; color: #A7A192; }
.rail-foot { padding: 12px; border-top: 1px solid var(--divider); display: flex; align-items: center; gap: 10px; flex: none; }
.rail-foot-text { flex: 1; min-width: 0; }
.rail-foot-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-foot-role { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-wrap { position: relative; flex: none; padding: 0 12px 8px; }
.env-pill { width: 100%; height: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; border: 1px solid; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.env-pill:hover { filter: brightness(.98); }
.env-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.env-short { display: none; }
.env-production { background: #F6E3DC; color: #9A4A34; border-color: #E7C3B4; }
.env-testing { background: #EEF2F7; color: #4A5A6E; border-color: #D6DFEA; }
.env-local { background: #FAF3E2; color: #7A6A3F; border-color: #EBDFC0; }
.env-dot-production { background: #9A4A34; } .env-dot-testing { background: #4A5A6E; }
.env-menu { position: absolute; bottom: calc(100% - 2px); left: 12px; width: 214px; z-index: 30; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 11px; box-shadow: 0 18px 40px -18px rgba(40,36,25,.45); padding: 6px; }
.env-menu-label { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: var(--muted2); padding: 5px 7px 6px; }
.env-menu-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; text-decoration: none; font-size: 12.5px; font-weight: 700; color: var(--text); }
.env-menu-item[href]:hover { background: var(--hover); }
.env-menu-item.is-current { cursor: default; }
.env-menu-item.is-current.env-testing { background: #EEF2F7; color: #4A5A6E; }
.env-menu-item.is-current.env-production { background: #F6E3DC; color: #9A4A34; }
.env-current { font-size: 11px; font-weight: 700; }
.env-menu-note { font-size: 11px; color: var(--muted); padding: 7px 8px 4px; line-height: 1.5; }
.env-rule { height: 1px; background: var(--divider); margin: 6px 4px; }

/* Collapsed rail: 64px, icons only, tooltips carry the labels. */
.rail-collapsed .rail { width: 64px; }
.rail-collapsed .rail-head { padding: 18px 12px 14px; justify-content: center; }
.rail-collapsed .rail-title, .rail-collapsed .rail-head .rail-toggle, .rail-collapsed .rail-label, .rail-collapsed .rail-expanded-only, .rail-collapsed .rail-divider, .rail-collapsed .rail-foot-text, .rail-collapsed .env-long { display: none; }
.rail-collapsed .rail-toggle-collapsed { display: flex; }
.rail-collapsed .rail-nav { padding: 6px 10px 2px; }
.rail-collapsed .rail-item { justify-content: center; padding: 0; }
.rail-collapsed .env-wrap { padding: 0 10px 8px; }
.rail-collapsed .env-pill { font-size: 9.5px; }
.rail-collapsed .env-short { display: inline; }
.rail-collapsed .env-menu { left: 4px; }
.rail-collapsed .rail-foot { flex-direction: column; }

/* ---- Three-column sections ---------------------------------------------- */
.list-col { width: 340px; flex: none; display: flex; flex-direction: column; background: var(--list-bg); border-right: 1px solid var(--rail-border); min-height: 0; }
.list-head { padding: 16px 16px 10px; flex: none; }
.list-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.list-title { font-family: "Newsreader", serif; font-size: 20px; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-count { font-size: 12px; color: var(--muted); }
.search-wrap { position: relative; }
.search-wrap .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted2); pointer-events: none; }
.search-wrap .input { padding-left: 34px; height: 38px; font-size: 13px; border-radius: 10px; }
.seg { display: flex; gap: 4px; background: var(--chip-bg); border-radius: 9px; padding: 3px; margin-top: 10px; }
.seg a, .seg button { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--chip-fg); border-radius: 7px; padding: 5px 0; text-decoration: none; }
.seg .is-active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.list-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.list-row { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--row-divider); text-decoration: none; align-items: flex-start; }
.list-row:hover { background: var(--hover); }
.list-row.is-selected { background: var(--selected-row); }
.list-row-main { flex: 1; min-width: 0; }
.list-row-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-sub { font-size: 12px; color: var(--muted3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-meta { font-size: 11px; color: var(--muted); flex: none; }
.list-row-pills { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.list-empty { padding: 40px 20px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; }
.load-more { display: block; width: calc(100% - 32px); margin: 12px 16px 20px; }
.detail { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--detail-bg); min-height: 0; }
.detail-head { padding: 18px 26px 14px; border-bottom: 1px solid var(--divider); display: flex; align-items: flex-start; gap: 14px; flex: none; flex-wrap: wrap; }
.detail-title { font-family: "Newsreader", serif; font-size: 23px; font-weight: 500; line-height: 1.15; }
.detail-sub { font-size: 12.5px; color: var(--muted3); margin-top: 3px; }
.detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.detail-scroll { flex: 1; min-height: 0; overflow: auto; padding: 20px 26px 40px; }
.detail-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; text-align: center; padding: 40px; }
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.card-title { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted2); text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-title .grow { flex: 1; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.field-grid .full { grid-column: 1 / -1; }
.kv { font-size: 13px; line-height: 1.55; }
.kv dt { font-size: 11px; font-weight: 700; color: var(--muted2); letter-spacing: .04em; text-transform: uppercase; }
.kv dd { margin: 2px 0 10px; color: var(--text); }
.kv dd.muted, .muted { color: var(--muted); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--muted); margin-left: auto; }
.form-status { font-size: 12.5px; font-weight: 600; }
.form-status.is-error { color: var(--danger-fg); }
.form-status.is-ok { color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: var(--chip-bg); color: var(--chip-fg); }
.chip-accent { background: var(--accent-12); color: var(--accent); }
.chip-danger { background: var(--danger-bg); color: var(--danger-fg); }
.needs-reply { background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 6px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
table.grid { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.grid th, table.grid td { border-bottom: 1px solid var(--row-divider); padding: 6px 8px; text-align: right; white-space: nowrap; }
table.grid th { font-size: 11px; color: var(--muted2); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
table.grid th:first-child, table.grid td:first-child { text-align: left; }
table.grid input { width: 62px; height: 30px; border-radius: 7px; border: 1px solid var(--input-border); background: var(--input-bg); padding: 0 8px; text-align: right; font-size: 12.5px; }
table.grid input:focus { border-color: var(--accent); background: #fff; outline: none; }
table.grid tfoot td { font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* ---- Modals -------------------------------------------------------------- */
dialog.modal { border: none; border-radius: 18px; padding: 0; max-width: min(920px, 94vw); width: 100%; background: var(--card-bg); box-shadow: 0 30px 80px -30px rgba(40,36,25,.5); }
dialog.modal::backdrop { background: rgba(35,38,31,.45); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid var(--divider); }
.modal-title { font-family: "Newsreader", serif; font-size: 20px; flex: 1; }
.modal-body { padding: 18px 22px 24px; max-height: 72vh; overflow: auto; }
.modal-sm { max-width: 460px; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.stock-grid button { border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; aspect-ratio: 4 / 3; }
.stock-grid button.is-selected { border-color: var(--accent); }
.stock-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-photo { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; border-radius: 12px; object-fit: cover; background: var(--chip-bg); display: block; }

/* ---- Audit --------------------------------------------------------------- */
.audit-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--row-divider); font-size: 13px; line-height: 1.5; }
.actor-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; background: var(--chip-bg); color: var(--label); padding: 3px 8px; border-radius: 8px; }
.audit-changes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--label); background: var(--list-bg); border-radius: 8px; padding: 8px 10px; margin-top: 6px; white-space: pre-wrap; }
details.raw summary { cursor: pointer; font-size: 11.5px; color: var(--muted); }

/* ---- Messages ------------------------------------------------------------ */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 640px; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.msg-user { background: var(--card-bg); border: 1px solid var(--card-border); align-self: flex-start; }
.msg-support { background: var(--accent-12); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); align-self: flex-end; }
.msg-meta { font-size: 11px; color: var(--muted); margin-top: 6px; }
.composer { border-top: 1px solid var(--divider); padding: 14px 26px; display: flex; gap: 10px; align-items: flex-end; flex: none; background: var(--detail-bg); }
.composer .textarea { flex: 1; min-height: 44px; max-height: 160px; }

@media (max-width: 900px) {
  .desk { flex-direction: column; height: auto; min-height: 100vh; }
  .desk-body { overflow: auto; }
  .rail { width: 100% !important; border-right: none; border-bottom: 1px solid var(--rail-border); }
  .rail-scroll { overflow: visible; }
  .list-col { width: 100%; border-right: none; border-bottom: 1px solid var(--rail-border); max-height: 50vh; }
  .pane-head, .detail-head, .detail-scroll, .composer { padding-left: 16px; padding-right: 16px; }
}

/* ---- Tickets ------------------------------------------------------------- */
.list-col-wide { width: 378px; }
.list-head-bordered { border-bottom: 1px solid var(--divider); padding-bottom: 12px; }
.list-title-bold { font-size: 16px; font-weight: 800; letter-spacing: -.01em; flex: 1; min-width: 0; }
.list-count { font-weight: 600; }
.icon-btn-sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn-md { width: 34px; height: 34px; }
.icon-btn.is-danger { color: var(--danger-fg); }
.empty-badge { width: 52px; height: 52px; border-radius: 15px; background: var(--chip-bg); display: flex; align-items: center; justify-content: center; color: #B4AE9E; margin: 0 auto 4px; }
.empty-badge-lg { width: 64px; height: 64px; border-radius: 18px; }
.list-empty-title { font-size: 14px; font-weight: 700; color: var(--label); }
.ticket-row { display: block; padding: 14px 16px; border-bottom: 1px solid var(--row-divider); text-decoration: none; box-shadow: inset 3px 0 0 transparent; }
.ticket-row:hover { background: var(--hover); }
.ticket-row.is-selected { background: var(--selected-row); box-shadow: inset 3px 0 0 var(--accent); }
.ticket-row-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 11px; }
.ticket-status { font-weight: 700; }
.ticket-sep { color: #C3BDAF; }
.ticket-id { font-weight: 600; color: #96917f; font-size: 11px; }
.ticket-time { color: #A7A192; white-space: nowrap; }
.ticket-row-title { font-size: 14px; font-weight: 700; line-height: 1.32; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-row-bottom { display: flex; align-items: center; gap: 7px; min-width: 0; }
.chip-type { font-size: 11px; padding: 2px 8px; border-radius: 6px; flex: none; }
.chip-xs { font-size: 11px; padding: 1px 7px; border-radius: 5px; }
.ticket-requester { font-size: 11px; color: #96917f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-detail { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ticket-head { padding: 20px 28px 16px; border-bottom: 1px solid var(--divider); flex: none; }
.ticket-head-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 12px; }
.ticket-head-meta .ticket-id { font-size: 12px; font-weight: 700; }
.ticket-title { margin: 0 0 14px; font-size: 22px; font-weight: 800; line-height: 1.28; letter-spacing: -.01em; max-width: 760px; text-wrap: pretty; }
.ticket-head-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ticket-requester-block { display: flex; align-items: center; gap: 9px; }
.ticket-requester-name { font-size: 13px; font-weight: 600; }
.ticket-opened { font-size: 12.5px; color: var(--muted); }
.ticket-opened strong { color: var(--label); font-weight: 600; }
.status-select { position: relative; display: inline-flex; align-items: center; }
.status-select .dot { position: absolute; left: 11px; background: var(--dot); pointer-events: none; }
.status-select select { appearance: none; height: 34px; padding: 0 30px 0 26px; border-radius: 9px; border: 1px solid #E0DBCE; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--fg); outline: none; cursor: pointer; }
.status-select .icon { position: absolute; right: 10px; pointer-events: none; color: var(--muted); }
.ticket-body { max-width: 780px; margin: 0 auto; padding: 22px 28px 8px; }
.ticket-detail .detail-scroll { padding: 0; }
.ticket-description { font-size: 14px; line-height: 1.62; color: #3A3D35; white-space: pre-line; }
.convo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted2); }
.convo-head .line { flex: 1; height: 1px; background: var(--divider); }
.convo-count { font-size: 11.5px; color: #A7A192; font-weight: 600; letter-spacing: 0; }
.msg-row { display: flex; gap: 12px; margin-bottom: 18px; }
.msg-badge { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--bg); }
.msg-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.msg-author { font-size: 13px; font-weight: 700; }
.msg-time { font-size: 11.5px; color: #A7A192; }
.msg { max-width: none; border-radius: 12px; border-top-left-radius: 4px; padding: 12px 15px; font-size: 13.5px; line-height: 1.6; color: #33362E; white-space: pre-line; }
.msg-user { background: #fff; border: 1px solid var(--card-border); }
.msg-support { background: color-mix(in srgb, var(--accent) 6%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff); }
.composer-wrap { border-top: 1px solid var(--divider); background: var(--detail-bg); padding: 14px 28px 16px; flex: none; }
.composer-box { max-width: 780px; margin: 0 auto; background: #fff; border: 1px solid #E0DBCE; border-radius: 14px; padding: 12px 14px; }
.composer-box textarea { width: 100%; border: none; outline: none; font-size: 14px; line-height: 1.55; background: transparent; color: var(--text); min-height: 44px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.composer-hint { font-size: 11.5px; color: #A7A192; }
.composer-hint strong { color: var(--label); }
.composer-foot .btn-accent { height: 38px; padding: 0 18px; border-radius: 10px; }
.composer-foot .btn-accent:disabled { background: #E4E0D4; color: #B0AB9C; opacity: 1; cursor: not-allowed; }
.inline-alert { margin: 12px 28px 0; }

/* ---- Users --------------------------------------------------------------- */
.scope-row { display: flex; gap: 6px; margin-top: 10px; }
.scope-btn { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--muted3); border: 1px solid var(--input-border); display: inline-flex; align-items: center; text-decoration: none; }
.scope-btn.is-active { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); border-color: transparent; }
.user-row { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--row-divider); text-decoration: none; }
.user-row:hover { background: var(--hover); }
.user-row.is-selected { background: var(--selected-row); }
.suspended-chip { margin-left: 7px; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--danger-fg); background: var(--danger-bg); border: 1px solid var(--danger-border); border-radius: 6px; padding: 1px 5px; vertical-align: middle; }
.load-more-btn { width: 100%; padding: 13px 14px; font-size: 13px; font-weight: 700; color: var(--accent); }
.load-more-btn:hover { background: var(--hover); }
.user-detail { padding: 0; }
.user-detail-inner { padding: 20px 26px 40px; max-width: 760px; }
.user-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.banner { border-radius: 11px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; line-height: 1.5; margin-bottom: 13px; }
.banner-ok { background: #E4EFE0; border: 1px solid #C7DCBE; color: var(--accent); }
.banner-danger { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-fg); }
.field { display: block; }
.field-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--label); margin-bottom: 5px; }
.field-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.rating-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--row-divider); }
.rating-label { font-size: 11.5px; font-weight: 700; color: var(--label); }
.stars { display: inline-flex; gap: 2px; color: var(--muted); }
.stars.is-rated { color: #D9A93C; }
.hint { margin: 8px 0 4px; font-size: 12px; color: #7A6A3F; background: #FAF3E2; border: 1px solid #EBDFC0; border-radius: 10px; padding: 9px 11px; line-height: 1.55; }
.btn-ghost { height: auto; font-size: 13px; color: var(--muted3); font-weight: 600; padding: 0 6px; }
.roles { display: flex; flex-direction: column; gap: 8px; }
.role-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--card-border); cursor: pointer; }
.role-row.is-on { border-color: #C7DCBE; background: #F2F7EF; }
.role-row.is-locked { cursor: not-allowed; opacity: .75; }
.role-row input { margin-top: 2px; accent-color: var(--accent); }
.role-name { font-size: 13px; font-weight: 700; }
.role-blurb { font-size: 11.5px; color: var(--muted3); margin-top: 2px; }
.danger-copy { font-size: 12.5px; color: var(--danger-fg); line-height: 1.55; }
.provider-row { display: flex; flex-wrap: wrap; gap: 8px; }
.provider { border: 1px solid var(--card-border); background: var(--input-bg); border-radius: 10px; padding: 7px 11px; min-width: 150px; }
.provider-name { font-size: 12.5px; font-weight: 700; }
.provider-email { font-size: 11.5px; color: var(--muted3); margin-top: 2px; }
.provider-email.is-different { color: #7A6A3F; }
.facts { margin: 12px 0 0; display: flex; flex-direction: column; gap: 5px; }
.facts > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.facts dt { font-size: 11.5px; color: var(--muted3); min-width: 108px; }
.facts dd { margin: 0; font-size: 12.5px; font-weight: 600; word-break: break-all; }
.facts-mono dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 500; user-select: all; }
.account-row { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.account-state { font-size: 13.5px; font-weight: 700; }
.account-copy { font-size: 12.5px; color: var(--muted3); line-height: 1.6; margin-top: 4px; }
.btn-white.is-suspend { color: var(--danger-fg); border-color: var(--danger-border); font-weight: 700; }
.btn-white.is-restore { color: var(--accent); border-color: #C7DCBE; font-weight: 700; }
.btn-white:disabled { color: var(--muted); }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { min-width: 78px; padding: 9px 12px; border-radius: 11px; border: 1px solid #D5DFCF; background: var(--input-bg); text-align: left; text-decoration: none; display: block; }
.stat.is-empty { border-color: var(--card-border); background: transparent; }
.stat:not(.is-empty):not(div):hover { filter: brightness(1.04); }
.stat-value { font-size: 19px; font-weight: 700; line-height: 1.1; color: var(--accent); }
.stat.is-empty .stat-value { color: var(--muted); }
.stat-label { font-size: 11px; color: var(--muted3); margin-top: 3px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--row-divider); text-decoration: none; font-size: 13px; }
.mini-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-time { width: 62px; text-align: right; font-size: 11.5px; }
.card-danger { border-color: #EBD3C8; }
.card-danger .card-title { color: var(--danger-fg); }
.content-count { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.content-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--row-divider); text-align: left; }
.content-row-wrap { border-bottom: 1px solid var(--row-divider); }
.content-row-wrap .content-row { border-bottom: none; }
.content-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-sub { font-size: 11.5px; color: var(--muted3); margin-top: 2px; }
.content-caret { font-size: 11px; flex: none; }
.content-expanded { padding-bottom: 12px; }
.thumb { flex: none; object-fit: cover; background: var(--chip-bg); display: inline-block; }
.thumb-empty { background: var(--chip-bg); }
.chip-ok { color: var(--accent); background: #EEF5EA; border: 1px solid #C7DCBE; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; }
.chip-warn { color: #7A6A3F; background: #FAF3E2; border: 1px solid #EBDFC0; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; }
.bag-clubs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.bag-clubs .chip { padding: 2px 7px 2px 3px; gap: 5px; }
.round { display: flex; flex-direction: column; gap: 12px; }
.block { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card-bg); }
.block-title { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: var(--muted2); text-transform: uppercase; margin-bottom: 7px; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.muted3 { color: var(--muted3); }
table.holes { border-collapse: collapse; font-size: 11.5px; min-width: 100%; margin-top: 8px; }
table.holes th, table.holes td { border: 1px solid var(--row-divider); padding: 3px 6px; text-align: center; white-space: nowrap; }
table.holes th { color: var(--muted2); font-weight: 800; }
table.holes .left { text-align: left; }
table.holes td.left { color: var(--muted3); font-weight: 700; }
table.holes td.tot { font-weight: 700; }

/* ---- Audit --------------------------------------------------------------- */
.audit-list { padding: 6px 26px 34px; max-width: 820px; }
.audit-row { display: block; padding: 11px 0; border-bottom: 1px solid var(--row-divider); }
.audit-line { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; font-size: 12.5px; line-height: 1.7; }
.actor-pill { display: inline-flex; align-items: center; max-width: 220px; font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); border-radius: 999px; padding: 1px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target-chip { font-size: 10px; font-weight: 800; letter-spacing: .04em; border-radius: 6px; padding: 1px 5px; text-transform: uppercase; border: 1px solid; }
.target-user { color: #4A5A6E; background: #EEF2F7; border-color: #D6DFEA; }
.target-course { color: var(--accent); background: #E4EFE0; border-color: #C7DCBE; }
.target-banner { color: #7A6A3F; background: #FAF3E2; border-color: #EBDFC0; }
.target-launch { color: #3F5E7A; background: #E4EEF7; border-color: #C0D8EB; }
.audit-when { font-weight: 600; }
.raw-toggle { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--input-border); border-radius: 7px; padding: 2px 8px; }
.raw-toggle.is-open { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); border-color: transparent; }
.audit-diff { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted3); }
.audit-diff s { opacity: .7; }
.audit-raw { margin: 8px 0 0; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--card-border); background: var(--list-bg); color: var(--muted3); font-size: 11px; line-height: 1.5; overflow-x: auto; white-space: pre; }

/* ---- Courses ------------------------------------------------------------- */
.course-image { display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; background: #DCE7D6; color: #3C6B45; font-weight: 700; }
.course-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-btn { padding: 0; border-radius: 10px; line-height: 0; flex: none; }
.image-btn:hover { filter: brightness(1.04); }
.icon-btn.is-active { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); border-color: transparent; }
.create-box { margin-top: 10px; padding: 11px 12px; border-radius: 11px; border: 1px solid #EBDFC0; background: #FAF3E2; }
.create-copy { font-size: 11.5px; color: #7A6A3F; margin-bottom: 9px; line-height: 1.5; }
.create-error { font-size: 11.5px; color: var(--danger-fg); margin-top: 7px; font-weight: 600; }
.owner-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 10px; border-radius: 9px; background: #EEF2F7; border: 1px solid #D6DFEA; font-size: 12px; color: #4A5A6E; }
.owner-note a { font-size: 11.5px; font-weight: 700; color: #4A5A6E; }
.owned-chip { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #7A6A3F; background: #FAF3E2; border: 1px solid #EBDFC0; border-radius: 6px; padding: 1px 5px; flex: none; }
.banner-warn { background: #FAF3E2; border: 1px solid #EBDFC0; color: #7A6A3F; }
.banner-info { background: #EEF2F7; border: 1px solid #D6DFEA; color: #4A5A6E; }
.banner-neutral { background: #F1EFEA; border: 1px solid #DCD7CA; color: var(--muted3); }
.field-grid-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tee { border-bottom: 1px solid var(--row-divider); padding: 10px 0; }
.tee-head { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; }
.tee-swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1px solid var(--input-border); }
.tee-name { font-size: 13px; font-weight: 700; flex: 1; }
.tee-meta { font-size: 11.5px; }
.tee-body { padding-top: 10px; }
.tee-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--row-divider); }
.link-danger { font-size: 12.5px; font-weight: 700; color: var(--danger-fg); }
.dashed-btn { margin-top: 10px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px dashed var(--input-border); color: var(--muted3); font-size: 12.5px; font-weight: 700; }
.dashed-btn:hover { background: var(--hover); }
.add-tee { margin-top: 10px; padding: 12px 13px; border-radius: 11px; border: 1px solid var(--card-border); background: var(--detail-bg); }
table.holegrid { border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
table.holegrid th { text-align: right; padding: 6px 8px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: var(--muted2); text-transform: uppercase; border-bottom: 1px solid var(--row-divider); white-space: nowrap; }
table.holegrid td { padding: 3px 8px; text-align: right; border-bottom: 1px solid var(--row-divider); }
table.holegrid .sticky { position: sticky; left: 0; background: var(--card-bg); }
table.holegrid td.num { font-weight: 700; }
table.holegrid input { width: 58px; height: 30px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--input-border); background: var(--input-bg); font-size: 12.5px; text-align: right; outline: none; color: var(--text); }
table.holegrid input:disabled { background: #F4F2EC; color: var(--muted3); }
table.holegrid input.is-dirty { border-color: var(--accent); }
table.holegrid input.is-error { border-color: #C98F7B; background: #FDF3EF; }
.grid-issues { font-size: 12px; color: var(--danger-fg); font-weight: 600; }
.modal-image { width: min(760px, calc(100vw - 48px)); }
.image-modal-sub { font-size: 11.5px; color: var(--muted); margin: -6px 0 12px; }
.image-stage { border-radius: 12px; overflow: hidden; background: #EDEAE1; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.image-stage img { width: 100%; max-height: 56vh; object-fit: contain; display: block; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.stock-pick { padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; outline: 1px solid var(--card-border); line-height: 0; }
.stock-pick.is-active { border-color: var(--accent); outline: none; }
.stock-pick img { width: 100%; height: 68px; object-fit: cover; }

/* ---- Banners ------------------------------------------------------------- */
.banner-thumb { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 7px; overflow: hidden; background: #E7E2D6; color: var(--muted); font-size: 9px; font-weight: 800; }
.banner-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip-flag { font-size: 10px; font-weight: 800; letter-spacing: .04em; border-radius: 6px; padding: 1px 5px; flex: none; border: 1px solid; }
.chip-critical { color: var(--danger-fg); background: var(--danger-bg); border-color: var(--danger-border); }
.chip-live { color: var(--accent); background: #E4EFE0; border-color: #C7DCBE; }
.chip-scheduled { color: #4A5A6E; background: #EEF2F7; border-color: #D6DFEA; }
.chip-expired { color: #8B8776; background: #F1EFEA; border-color: #DCD7CA; }
.pane-full { width: 100%; }
