/* Bid Potato portal. Shell, cards, tables and forms carried over from the DJ Ojo portal, recolored for Bid Potato. */
:root {
  --ink: #0a0f0d;
  --night: #0f1814;
  --panel: #121c18;
  --panel-2: #17241f;
  --line: rgba(255,255,255,.1);
  --line-2: rgba(255,255,255,.18);
  --violet: #f07a1a;
  --magenta: #f5b52e;
  --amber: #ff9a3c;
  --lime: #8fdc4a;
  --red: #ff5d73;
  --sky: #59b8ff;
  --text: #f3f6f4;
  --muted: #a7b3ac;
  --soft: rgba(255,255,255,.76);
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", "Brush Script MT", cursive;
  --radius: 14px;
  --sidebar: 248px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text);
  background: radial-gradient(1200px 600px at 85% -10%, rgba(240,122,26,.18), transparent 60%), var(--ink);
  min-height: 100vh;
}
a { color: #ffc27a; text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.08rem; }
h3 { font-size: .95rem; margin-top: 1.2em; }
p { margin: 0 0 .8em; }
small, .small { font-size: .84rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

/* ---------- Shell ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: rgba(10,15,13,.92);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40;
  backdrop-filter: blur(10px);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 12px; }
.wordmark { font-weight: 800; letter-spacing: .06em; font-size: 1.25rem; color: #fff; }
.role-pill { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: 3px 9px; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.sidebar nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 10px 6px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--soft); font-size: .92rem;
}
.sidebar nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar nav a.is-active { background: linear-gradient(90deg, rgba(240,122,26,.35), rgba(245,181,46,.12)); color: #fff; }
.sidebar nav a span { flex: 1; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--magenta); color: #fff; font-size: .72rem; font-weight: 700; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 14px 20px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.who { display: flex; flex-direction: column; font-size: .86rem; min-width: 0; }
.who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 18px 32px;
  background: rgba(10,15,13,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; flex: 1; font-size: 1.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }
.content { padding: 26px 32px 64px; max-width: 1320px; }

/* ---------- Cards & layout ---------- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.pad { padding: 18px 22px; margin: 0; }
.pad-x { padding: 0 22px 12px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-head a { font-size: .85rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 20px; align-items: start; }
.grid-main > .side, .grid-main > form.side { position: sticky; top: 90px; }
.col { min-width: 0; }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: 14px; }
.stack > h2 + * { margin-top: 0; }
.stack h2:not(:first-of-type) { margin-top: 26px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row h2 { margin: 0 6px; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(240,122,26,.22), rgba(245,181,46,.06)); color: #fff; }
.stat-card strong { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-card span { color: var(--soft); font-size: .84rem; }
.stat-card:hover { border-color: var(--line-2); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--text); }
.list a:hover { background: rgba(255,255,255,.03); }
.list .grow { flex: 1; min-width: 0; }
.list strong { display: inline; }
.list small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list small.inline { display: inline; }
.list a.is-unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); margin-right: 8px; vertical-align: middle; }
.list .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); }
.list .num { font-variant-numeric: tabular-nums; color: var(--soft); font-size: .9rem; }
.grow { flex: 1; min-width: 0; }
.date-chip { flex: none; width: 46px; text-align: center; border-radius: 10px; background: rgba(240,122,26,.2); border: 1px solid rgba(240,122,26,.4); padding: 4px 0 5px; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.date-chip b { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: #ffd9a8; font-weight: 600; }
.date-chip.lg { width: 60px; font-size: 1.4rem; }
.date-chip i { display: block; font-style: normal; font-size: .66rem; font-weight: 500; color: var(--muted); }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; }
.empty { color: var(--muted); font-size: .92rem; margin: 6px 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--soft); white-space: nowrap; letter-spacing: .02em; }
.badge-new { background: rgba(245,181,46,.2); color: #ffd27a; }
.badge-reviewing { background: rgba(89,184,255,.16); color: #9fd4ff; }
.badge-sent { background: rgba(255,154,60,.18); color: #ffc18a; }
.badge-accepted, .badge-booked { background: rgba(143,220,74,.17); color: #bff08f; }
.badge-completed { background: rgba(255,255,255,.1); color: #ddd; }
.badge-declined, .badge-cancelled { background: rgba(255,93,115,.15); color: #ff9dab; }
.badge-t-approved { background: rgba(143,220,74,.17); color: #bff08f; }
.badge-t-pending { background: rgba(255,154,60,.18); color: #ffc18a; }
.count-pill { font-size: .72rem; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.1); vertical-align: middle; }

/* ---------- Tabs & filters ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 7px 13px; border-radius: 99px; color: var(--soft); font-size: .86rem; border: 1px solid transparent; }
.tabs a b { font-weight: 500; color: var(--muted); margin-left: 3px; }
.tabs a:hover { border-color: var(--line); color: #fff; }
.tabs a.is-active { background: rgba(240,122,26,.25); border-color: rgba(240,122,26,.5); color: #fff; }
.tabs.small { margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type=search] { flex: 1; min-width: 200px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; background: rgba(255,255,255,.02); }
.table tbody tr:hover { background: rgba(255,255,255,.025); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table.items td, .table.items th { padding: 9px 0; }
.table.items tfoot th { font-size: 1rem; border-bottom: 0; }
.table.items tfoot td { border-bottom: 0; color: var(--soft); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, fieldset legend { font-size: .82rem; font-weight: 500; color: var(--soft); }
.hint { color: var(--muted); font-size: .78rem; }
input, select, textarea {
  font: inherit; color: var(--text); background: rgba(10,15,13,.6); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; width: 100%; min-width: 0;
}
input[type=file] { padding: 8px; }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(240,122,26,.25); }
input[readonly] { color: var(--muted); }
.check { display: flex; gap: 9px; align-items: center; font-size: .9rem; cursor: pointer; }
.check input { accent-color: var(--violet); width: 17px; height: 17px; }
.readonly { margin: 0; padding: 10px 0; color: var(--soft); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.inline-form .grow { flex: 2 1 260px; }
.inline-form .field { flex: 1 1 150px; }
.sticky-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; }
.sticky-save .btn { box-shadow: 0 10px 30px rgba(0,0,0,.4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .9rem;
  padding: 10px 18px; border-radius: 99px; border: 1px solid transparent; cursor: pointer; color: #fff; background: none; white-space: nowrap;
}
.btn-primary { background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.btn-primary:hover { filter: brightness(1.1); color: #fff; }
.btn-outline { border-color: rgba(255,194,122,.55); }
.btn-outline:hover { background: rgba(240,122,26,.18); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #ffc27a; cursor: pointer; font-size: .86rem; }
.link-btn:hover { color: #fff; }
.danger { color: var(--red) !important; }
.danger-zone { text-align: center; padding: 6px 0 20px; }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .92rem; border: 1px solid; }
.alert-ok { background: rgba(143,220,74,.1); border-color: rgba(143,220,74,.35); color: #d5f7b4; }
.alert-error { background: rgba(255,93,115,.1); border-color: rgba(255,93,115,.4); color: #ffc0c9; }
.alert-warn { background: rgba(255,154,60,.1); border-color: rgba(255,154,60,.4); color: #ffd3a8; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; gap: 22px; }
.auth-wrap > .alert { width: 100%; max-width: 420px; }
.auth-card { width: 100%; max-width: 420px; padding: 30px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-links { text-align: center; margin: 18px 0 0; font-size: .9rem; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; font-size: .86rem; }
.checks .ok { color: var(--lime); }
.checks .bad { color: var(--red); }

/* ---------- Mobile ---------- */
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-main > .side, .grid-main > form.side { position: static; }
  .grid-main.side-first > .side { order: -1; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.5); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: block; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 1.08rem; }
  .topbar .btn { padding: 8px 12px; font-size: .8rem; }
  .content { padding: 18px 16px 48px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .photo-slots { grid-template-columns: minmax(0, 1fr); }
  .song-cols { grid-template-columns: minmax(0, 1fr); }
  .cal-day { min-height: 70px; padding: 4px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-left: 0; border-radius: 3px; }
  .cal-ev b { display: none; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-2, .row-3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
  .quote-head { flex-direction: column; }
  .quote-head-side { align-items: flex-start; text-align: left; }
  .msg { max-width: 92%; }
  .li-head, .li-row { grid-template-columns: 1fr 96px 24px; }
  .table th, .table td { padding: 10px 12px; }
  .steps li { font-size: .66rem; }
  .composer { flex-direction: column; align-items: stretch; }
  .gallery-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .alt-form { flex-direction: column; }
}


/* ================= Bid Potato additions ================= */
.wordmark b { color: var(--magenta); font-weight: 800; }
.wordmark .spud { display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: -4px; border-radius: 50% 46% 52% 44%; background: radial-gradient(circle at 35% 35%, #f9c56a, #c9781e 70%); box-shadow: inset -3px -3px 0 rgba(0,0,0,.18); }
.sidebar-foot .who small { white-space: normal; }
.topbar .sub { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; letter-spacing: .01em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.pos { color: #ffb3a6; }
.neg { color: #bff08f; }
.chip { display: inline-block; padding: 2px 9px; margin: 1px 2px 1px 0; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--soft); font-size: .78rem; white-space: nowrap; }
.chip:hover { border-color: rgba(240,122,26,.6); color: #fff; background: rgba(240,122,26,.15); }
.badge-official { background: rgba(143,220,74,.17); color: #bff08f; }
.badge-unofficial { background: rgba(89,184,255,.16); color: #9fd4ff; }
.badge-planned { background: rgba(255,255,255,.08); color: var(--muted); }
.badge-low { background: rgba(245,181,46,.2); color: #ffd27a; }
.badge-newjob { background: rgba(240,122,26,.22); color: #ffc27a; }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card small { color: var(--muted); font-size: .74rem; }
.filters select { width: auto; min-width: 150px; flex: 0 1 190px; }
.filters .btn { flex: none; }
.filters .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.filters .seg label { padding: 9px 12px; font-size: .84rem; cursor: pointer; color: var(--soft); }
.filters .seg input { display: none; }
.filters .seg input:checked + span { color: #fff; }
.filters .seg label:has(input:checked) { background: rgba(240,122,26,.25); }
.month-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
.month-tabs a { white-space: nowrap; }
.table td small { display: block; color: var(--muted); font-size: .78rem; }
.table th a { color: inherit; }
.table th a:hover { color: #fff; }
.table th .arr { opacity: .7; }
.table tr.is-let td { opacity: .92; }
.table tfoot th, .table tfoot td { border-bottom: 0; font-weight: 600; }
.table.compact th, .table.compact td { padding: 8px 12px; }
.table .rank { width: 34px; color: var(--muted); }
.table tr.low td { background: rgba(245,181,46,.07); }
.table td.best { color: #ffd27a; font-weight: 600; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 14px 16px; }
.pager .muted { margin-right: auto; font-size: .84rem; }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 60px; }
.spark span { flex: 1; min-width: 6px; background: linear-gradient(180deg, var(--magenta), var(--violet)); border-radius: 3px 3px 0 0; opacity: .85; }
.note { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.run-list { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.run-list li { display: grid; grid-template-columns: 110px 140px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.run-list li:first-child { border-top: 0; }
.badge-ok { background: rgba(143,220,74,.17); color: #bff08f; }
.badge-partial, .badge-running { background: rgba(255,154,60,.18); color: #ffc18a; }
.badge-error { background: rgba(255,93,115,.15); color: #ff9dab; }
@media (max-width: 1180px) { .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .topbar .sub { display: none; } .hide-sm { display: none; } }
@media (max-width: 600px) { .run-list li { grid-template-columns: 1fr; gap: 2px; } .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } .filters select { flex: 1 1 45%; } }
@media print {
  .sidebar, .topbar .menu-btn, .filters, .pager, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11px; }
  .main { margin: 0; } .topbar { position: static; background: none; border: 0; padding: 0 0 8px; }
  .topbar h1, .card, .table td, .table th, a { color: #000 !important; }
  .card { background: none; border: 0; padding: 0; }
  .table th, .table td { border-bottom: 1px solid #ccc; padding: 4px 6px; }
  .chip, .badge { border: 0; background: none; padding: 0; color: #000; }
}
.filters input[type=search] { flex: 1 1 320px; }
.chip.more { background: none; border-style: dashed; color: var(--muted); cursor: help; }
.table td .chip { margin-bottom: 3px; }
/* Round 2: accounts, alerts, Q&A, progress bars */
.table .bar, .kv .bar { display: inline-block; width: 60px; vertical-align: middle; }
.save-search { margin: -4px 0 12px; align-items: center; }
.save-search input[type=text] { padding: 6px 10px; }
details.qa { border-top: 1px solid var(--line, rgba(0,0,0,.08)); padding: 8px 0; }
details.qa summary { cursor: pointer; }
details.qa p { margin: 6px 0 0; }
.month-tabs a[title] { font-style: italic; }
@media print { details.qa { display: block; } details.qa > * { display: block; } }
.list li:has(> .btn) { display: flex; align-items: center; gap: 10px; }
.list li > .btn, .list li > form { flex: none; width: auto; }
.list small a, .kv a { display: inline; padding: 0; margin: 0; }
