/* Steplot dashboard.
   Light, calm surfaces so renders and numbers lead. Brand colours come from
   the app: deep blue for actions, sun amber only for credits. The credit
   balance is drawn as a ribbed multiwall sheet -- the one loud element.
   Font: Geist (SIL OFL), self-hosted. Icons: Lucide (ISC). */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e4e8ec;
  --border-strong: #cfd6dc;
  --text: #17212a;
  --text-2: #55606b;
  --text-3: #8b959f;

  --brand: #2f6f8f;
  --brand-hover: #255d79;
  --brand-tint: #ebf3f7;
  --brand-ring: rgba(47, 111, 143, 0.2);

  --sun: #f2b233;
  --sun-light: #f8c95c;
  --sun-deep: #df9a14;
  --slate: #4a5862;

  --green: #2f7d50;  --green-tint: #e9f6ee;
  --amber: #8a5a00;  --amber-tint: #fdf3dc;
  --red: #b4441f;    --red-tint: #fbece6;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, 0.16), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.55 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 0.75rem; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: 16px; line-height: 1.4; font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.small { font-size: 12.5px; }
.cell-muted { color: var(--text-2); }
.cell-strong { font-weight: 550; color: var(--text); }
a.cell-strong:hover { color: var(--brand); }
.fine { font-size: 12.5px; color: var(--text-3); margin: 12px 0 0; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #eef1f4; color: var(--text-2); font-size: 12px; font-weight: 500; vertical-align: 2px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

/* ---- logo: the Steplot mark (static/dashboard/steplot.svg) ----------- */

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 15px; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark { display: block; flex: none; height: 26px; width: auto; }

/* ---- frame ---------------------------------------------------------------- */

.shell {
  display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh;
  /* the sidebar's white runs the full height, however long the page */
  background: linear-gradient(90deg, var(--surface) 247px, var(--border) 247px 248px, var(--bg) 248px);
}
.sidebar {
  position: sticky; top: 0; height: 100vh; align-self: start;
  display: flex; flex-direction: column; gap: 24px;
  padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border);
}
.sidebar .logo { padding: 4px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px;
  border-radius: var(--r-sm); color: var(--text-2); font-weight: 500;
}
.nav a .icon { color: var(--text-3); }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.nav a[aria-current="page"] .icon { color: var(--brand); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; background: var(--amber-tint); color: var(--amber); }
.nav-count-warn { background: var(--red-tint); color: var(--red); }

.me { margin-top: auto; position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.me-org { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-email { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--text-2); }
.me-menu summary::-webkit-details-marker, .row-menu summary::-webkit-details-marker { display: none; }
.me-menu summary:hover { background: #eef1f4; }
.me-menu .menu { bottom: calc(100% + 8px); right: 0; }

.menu {
  position: absolute; z-index: 20; min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.menu-right { right: 0; top: calc(100% + 6px); }
.menu a, .menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
  border: 0; background: none; border-radius: 6px; font: inherit; color: var(--text);
  text-align: left; cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu form { margin: 0; }
.row-menu { position: relative; }

.main { width: 100%; min-width: 0; max-width: 1240px; padding: 32px 40px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sub { color: var(--text-2); margin: 4px 0 0; font-size: 14px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.crumbs a { color: var(--text-2); }
.block { margin-top: 32px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.link-quiet { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.link-quiet:hover { color: var(--brand); text-decoration: none; }

/* ---- cards ---------------------------------------------------------------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-label { font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.card-note { font-size: 13px; color: var(--text-2); margin: 0; }

.grid-overview {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "credits credits s1 s2" "credits credits team team";
}
.grid-overview .card-credits { grid-area: credits; }
.grid-overview .card-team { grid-area: team; }
.card-stat, .card-team { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.card-stat .link-quiet, .card-team .link-quiet { margin-top: auto; }
.stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); margin-bottom: 8px; }
.stat-n { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 6px; }

/* ---- the credit sheet ------------------------------------------------------ */

.card-credits {
  padding: 24px; display: flex; flex-direction: column;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(242, 178, 51, 0.10), transparent 55%),
    var(--surface);
}
.card-credits-head { display: flex; justify-content: space-between; align-items: center; }
.big-n { font-size: 56px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; margin: 14px 0 22px; }
.card-credits .card-note { margin-top: 4px; }
.sheet {
  display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 3px;
  align-items: end; height: 52px; margin-bottom: 14px;
  flex: 1 1 auto; min-height: 52px; max-height: 140px;
  padding-bottom: 6px; border-bottom: 2px solid #e9edf0;
}
.rib { height: 100%; border-radius: 4px; }
.rib-prepaid { background: linear-gradient(180deg, var(--sun-light) 0%, var(--sun) 55%, var(--sun-deep) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.rib-billed { height: 78%; background: linear-gradient(180deg, #6c7a84, var(--slate)); }
.rib-open { height: 78%; background: repeating-linear-gradient(180deg, #eef1f4 0 4px, #f7f9fa 4px 8px); box-shadow: inset 0 0 0 1px #dfe4e8; }
.sheet-empty { grid-column: 1 / -1; align-self: center; color: var(--red); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 12.5px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; }
.swatch-prepaid { background: var(--sun); }
.swatch-billed { background: var(--slate); }
.swatch-open { background: #eef1f4; box-shadow: inset 0 0 0 1px #cfd6dc; }

/* ---- avatars & badges ----------------------------------------------------- */

.avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; box-shadow: 0 0 0 2px var(--surface); }
.avatar-sm { width: 24px; height: 24px; font-size: 10.5px; }
.avatar-0 { background: #e3eef4; color: #23597a; }
.avatar-1 { background: #fdf0d5; color: #855600; }
.avatar-2 { background: #e2f3e8; color: #26693f; }
.avatar-3 { background: #ece8f8; color: #4f3f8f; }
.avatar-4 { background: #f8e5e3; color: #8e3a2d; }
.avatar-5 { background: #ddf1f1; color: #1f6464; }
.avatar-more, .avatar-pending { background: #eef1f4; color: var(--text-2); }
.avatars { display: flex; margin: 6px 0 4px; }
.avatars .avatar { width: 36px; height: 36px; margin-right: -8px; }
.person { display: inline-flex; align-items: center; gap: 8px; }

.badge, .pill {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: #eef1f4; color: var(--text-2);
}
.badge-blue { background: var(--brand-tint); color: var(--brand); }
.badge-green { background: var(--green-tint); color: var(--green); }
.badge-amber { background: var(--amber-tint); color: var(--amber); }
.badge-float { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--text-2); box-shadow: var(--shadow-sm); }
.delta { font-weight: 550; color: var(--text-2); }
.delta-up { color: var(--green); }

/* ---- buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: var(--r-sm);
  font: inherit; font-weight: 550; font-size: 14px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-primary:disabled { background: #9bb8c7; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: #eef1f4; color: var(--text); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 32px; padding: 0; font-size: 18px; letter-spacing: 1px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.danger, .menu .danger { color: var(--red) !important; }

/* ---- forms ------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form p, .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.form label { font-size: 13px; font-weight: 550; color: var(--text); }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .search input, .chip-input input {
  font: inherit; height: 40px; padding: 0 12px; width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form input::placeholder, .search input::placeholder { color: var(--text-3); }
.form input:focus, .form select:focus, .search input:focus, .chip-input input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring);
}
.form p:has(input[type="checkbox"]) { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; }
.form p:has(input[type="checkbox"]) label { font-weight: 500; color: var(--text-2); }
.form input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }
.form .helptext, .form p > span { font-size: 12.5px; color: var(--text-3); }
.form a { font-size: 13px; }
.form ul.errorlist, .error { color: var(--red); font-size: 12.5px; list-style: none; padding: 0; margin: 0; }
.field-error input, .field-error select { border-color: var(--red); }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.search input { padding-left: 36px; width: min(320px, 80vw); }

/* ---- toasts & empty states ------------------------------------------------------ */

.toasts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow); font-weight: 500;
}
.toasts .toast { margin: 0; }
.toast .icon { margin-top: 2px; }
.toast-success .icon, .toast-info .icon { color: var(--green); }
.toast-info .icon { color: var(--brand); }
.toast-error, .toast-warning { border-color: #f1cfc2; background: #fffaf8; }
.toast-error .icon, .toast-warning .icon { color: var(--red); }

.empty { text-align: center; padding: 40px 24px; border: 1px dashed var(--border-strong); border-radius: var(--r); background: var(--surface); color: var(--text-2); }
.empty p { margin: 0 auto 6px; max-width: 46ch; }
.empty-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); margin-bottom: 12px; }
.empty-title { font-weight: 600; color: var(--text); font-size: 15px; }
.empty-inline { padding: 24px 16px; }
.empty-page { margin: 8vh auto 0; max-width: 520px; }
.empty-page .btn { margin-top: 12px; }

/* ---- tables -------------------------------------------------------------------- */

.card-table { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table thead th { font-size: 12.5px; font-weight: 500; color: var(--text-3); background: var(--surface-2); padding-top: 10px; padding-bottom: 10px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfd; }
.table .num { text-align: right; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 13px; }

/* ---- galleries ------------------------------------------------------------------ */

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile {
  display: block; position: relative; overflow: hidden; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, border-color .15s ease;
}
.tile:hover { text-decoration: none; color: inherit; box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.gallery > li > .tile { height: 100%; }
.tile-img { display: block; position: relative; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e9edf0; }
.tile-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; min-height: 44px; }
.tile-title { font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }

/* ---- job ------------------------------------------------------------------------- */

.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-mini { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-mini-n { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stat-mini-text { font-size: 16px; }
.of { color: var(--text-3); font-weight: 500; font-size: 16px; }
.meter { display: block; height: 6px; border-radius: 999px; background: #eef1f4; overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sun), var(--sun-deep)); }
.notes { padding: 16px 18px; margin-top: 16px; }
.notes p { margin: 6px 0 0; }

/* ---- credits ---------------------------------------------------------------------- */

.grid-credits { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.card-buy { padding: 24px; }
.segmented { border: 0; padding: 0; margin: 16px 0 0; }
.segmented legend { margin-bottom: 8px; padding: 0; }
.segmented-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 38px; min-width: 52px; padding: 0 14px; border-radius: var(--r-sm);
  font: inherit; font-weight: 550; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); cursor: pointer; box-shadow: var(--shadow-sm);
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.chip-input input { width: 84px; height: 38px; }
.price-line { display: flex; flex-direction: column; gap: 2px; margin: 20px 0 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.price-total { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.price-cur { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
#buy-status { margin-top: 12px; }

/* ---- team ------------------------------------------------------------------------- */

.grid-team { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.people { list-style: none; margin: 0; padding: 0; }
.person-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.person-row:last-child { border-bottom: 0; }
.card-table:has(.row-menu) { overflow: visible; }
.person-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.person-text .cell-strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row form { margin: 0; }

/* ---- products & onboarding ----------------------------------------------------------- */

.pipeline { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.pipeline-step {
  position: relative; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px;
}
.pipeline-n { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.pipeline-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.pipeline-live .pipeline-n { color: var(--green); }

.product-list { list-style: none; margin: 0; padding: 0; }
.product-list > li + li { border-top: 1px solid var(--border); }
.product-row .badge { min-width: 84px; justify-content: center; }
.product-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--text); }
a.product-row:hover { background: #fbfcfd; text-decoration: none; color: var(--text); }
a.product-row > .icon:last-child { color: var(--text-3); }
.product-item { display: flex; align-items: center; }
.product-item > .product-row { flex: 1; min-width: 0; }
.product-item.is-inactive .product-icon { background: #eef1f4; color: var(--text-3); }
.product-item > .switch-form, .product-item > .badge { flex: none; }
.product-go { flex: none; display: grid; place-items: center; width: 44px; align-self: stretch; color: var(--text-3); }
.product-go:hover { background: #fbfcfd; color: var(--text-2); }
span.product-go:hover { background: none; }

/* Active / Inactive switch */
.switch-form { margin: 0; }
.switch {
  display: inline-flex; align-items: center; gap: 8px; min-width: 104px; height: 32px; padding: 0 10px 0 6px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font: inherit; font-size: 13px; font-weight: 550; color: var(--text-2); cursor: pointer;
}
.switch:hover { border-color: var(--border-strong); }
.switch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
.switch-track { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #cfd6dc; transition: background .15s ease; flex: none; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.2); transition: transform .15s ease; }
.switch[aria-checked="true"] { color: var(--green); }
.switch[aria-checked="true"] .switch-track { background: var(--green); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(14px); }
.product-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); flex: none; }
.product-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.row-spacer { width: 16px; flex: none; }

.status-card { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.status-card p { margin: 0; color: var(--text-2); }
.status-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); flex: none; }
.status-live .status-icon { background: var(--green-tint); color: var(--green); }
.status-inactive .status-icon { background: #eef1f4; color: var(--text-3); }
.form textarea { font: inherit; padding: 10px 12px; width: 100%; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); resize: vertical; }
.form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.form textarea::placeholder { color: var(--text-3); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 32px; align-items: start; }
.prewrap { white-space: pre-wrap; margin: 8px 0 0; color: var(--text-2); }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.timeline-dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.timeline-status-live { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.timeline-title { margin: 0; font-weight: 550; }
.timeline-note { margin: 4px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.request-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.request-card .form { margin-top: 0; }
.request-card .form .btn { align-self: flex-start; }

/* ---- sign-in and other single-card pages ---------------------------------------- */

.auth { background: var(--bg); min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; gap: 28px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 32px; }
.auth-card h1 { font-size: 22px; margin-bottom: 8px; }
.auth-card > p { color: var(--text-2); }
.auth-card .toast { margin-bottom: 16px; }
.auth-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); margin-bottom: 16px; }
.auth-foot { font-size: 13px; color: var(--text-3); }
.auth-legal { margin: 12px 0 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.auth-switch { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); text-align: center; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.check { flex-direction: row !important; justify-content: flex-start !important; align-items: center; gap: 8px !important; }
.check label { font-weight: 500 !important; color: var(--text-2) !important; }
.helptext ul { margin: 4px 0 0; padding-left: 18px; }
.auth-art { padding: 16px 16px 16px 0; }
.auth-art-inner {
  position: relative; height: 100%; min-height: calc(100vh - 32px); overflow: hidden;
  border-radius: 20px; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background:
    radial-gradient(90% 60% at 85% 10%, rgba(242, 178, 51, 0.35), transparent 60%),
    linear-gradient(160deg, #2f6f8f 0%, #22536b 50%, #17323f 100%);
}
.art-sheet { position: absolute; left: 48px; right: 48px; top: 18%; display: grid; grid-template-columns: repeat(18, 1fr); gap: 8px; align-items: end; height: 34%; transform: skewY(-6deg); }
.art-sheet span { height: 100%; border-radius: 6px; background: linear-gradient(180deg, rgba(248, 201, 92, 0.95), rgba(223, 154, 20, 0.75)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.art-sheet span:nth-child(3n) { height: 88%; }
.art-sheet span:nth-child(n + 13) { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); height: 80%; }
.art-quote { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; max-width: 18ch; margin: 0 0 12px; }
.art-sub { color: rgba(255,255,255,.72); font-size: 15px; margin: 0; max-width: 40ch; }
.narrow { max-width: 440px; }
.allauth-manage h1 { font-size: 20px; margin-bottom: 12px; }

/* ---- small screens ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .grid-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "credits credits" "s1 s2" "team team"; }
  .grid-credits, .grid-team { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--bg); }
  .sidebar { position: sticky; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar .logo { padding: 0; }
  .nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; overflow: visible; }
  .nav a { position: relative; height: auto; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; font-size: 11.5px; text-align: center; }
  .nav a .nav-count { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10.5px; }
  .me { margin: 0 0 0 auto; padding: 4px; border: 0; background: none; }
  .me-text { display: none; }
  .me-menu .menu { bottom: auto; top: calc(100% + 8px); }
  .main { padding: 20px 16px 48px; }
  h1 { font-size: 22px; }
  .big-n { font-size: 44px; }
  .sheet { grid-template-columns: repeat(20, minmax(0, 1fr)); height: 44px; }
  .sheet .rib:nth-child(n + 21) { display: none; }
  .gallery, .gallery-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-row { gap: 10px; padding: 12px 14px; }
  .product-row .badge { min-width: 0; }
  .switch { min-width: 96px; padding-right: 8px; }
  .product-go { width: 32px; }
  .card-table { overflow-x: auto; }
  .table th, .table td { padding: 10px 14px; white-space: nowrap; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}