/* California RP — User Control Panel (design prototype)
   Sharp edges everywhere: no border-radius in this file. */
:root {
  --banner-h: 96px;
  --bar-h: 52px;
  --side-w: 280px;

  --ink: #1b1f24;
  --ink-2: #4a525c;
  --ink-3: #7b838d;
  --line: #dfe3e8;
  --line-2: #eceff2;
  --page: #eef0f3;
  --card: #ffffff;

  --side: #1c2026;
  --side-2: #23282f;
  --side-3: #2b3139;
  --side-ink: #c5ccd4;
  --side-ink-2: #8a939d;

  --accent: #0d6fb8;       /* Pacific blue */
  --accent-2: #0a5a96;
  --gold: #c9971c;         /* California gold */
  --ok: #1f8a4c;
  --warn: #b7791f;
  --bad: #c0392b;
  --teal: #13857e;

  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; border-radius: 0 !important; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- Banner ---------- */
.banner {
  height: var(--banner-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; color: #fff; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,14,22,.15), rgba(10,14,22,.55)),
    linear-gradient(100deg, #0c1624 0%, #1b2a44 38%, #6a3a3a 72%, #c56a2c 100%);
  border-bottom: 3px solid var(--gold);
}
.banner::after { /* skyline silhouette */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; opacity: .55; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 46' preserveAspectRatio='none'%3E%3Cpath fill='%2307090d' d='M0 46V34h20v-6h14v10h10V20h12v-8h8v8h10v18h16V28h18v-12h10v12h8v18h14V24h22V8h6v16h10v22h18V30h12v-6h16v22h20V18h8V6h4v12h8v28h14V32h20v-10h14v24h16V26h10V14h12v12h8v20h22V36h16v-8h12v18h14V22h10v-6h18v30h12V30h16v16h20V34h12V20h14v26h18V28h10v18h22V38h16v-10h14v18z'/%3E%3C/svg%3E") repeat-x bottom / 600px 46px;
}
.brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; background: var(--gold); color: #10141a; display: grid; place-items: center; font: 700 26px/1 var(--font-head); }
.brand-name { font: 700 28px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.brand-name small { display: block; font: 600 11px/1.6 var(--font); letter-spacing: .32em; color: #e8c766; }
.banner-tools { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.tool-btn { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); cursor: pointer; position: relative; }
.tool-btn:hover { background: rgba(255,255,255,.18); }
.tool-btn .dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: var(--gold); }
.who { display: flex; align-items: center; gap: 10px; margin-left: 14px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.22); }
.who-avatar { width: 36px; height: 36px; background: #fff; color: var(--side); display: grid; place-items: center; font-weight: 700; }
.who-name { font-weight: 600; line-height: 1.2; }
.who-role { font-size: 11px; color: #e8c766; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: calc(100vh - var(--banner-h)); }
.shell.collapsed { grid-template-columns: 0 1fr; }
.shell.collapsed .side { overflow: hidden; }

.side { background: var(--side); color: var(--side-ink); font-size: 13px; }
.side-top { display: flex; height: var(--bar-h); }
.side-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--side-3); color: var(--side-ink-2); }
.side-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; outline: none; }
.side-search input::placeholder { color: var(--side-ink-2); }
.side-toggle { width: 56px; background: var(--side-2); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.side-toggle:hover { background: var(--side-3); }

.nav { list-style: none; margin: 0; padding: 6px 0 24px; }
.nav-label { padding: 18px 20px 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--side-ink-2); }
.nav a, .nav button.nav-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: var(--side-ink);
  background: none; border: 0; border-left: 3px solid transparent; font: inherit; text-align: left; cursor: pointer;
}
.nav a:hover, .nav button.nav-item:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--side-2); color: #fff; border-left-color: var(--accent); }
.nav .chev { margin-left: auto; width: 14px; height: 14px; transition: transform .15s; }
.nav li.open > .nav-item .chev { transform: rotate(180deg); }
.nav .sub { list-style: none; margin: 0; padding: 4px 0; background: #181b20; display: none; }
.nav li.open > .sub { display: block; }
.nav .sub a { padding: 8px 20px 8px 50px; font-size: 12.5px; }
.nav .gold { color: #e1b54a; }
.nav .green { color: #4fbf7d; }

/* ---------- Title bar ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.titlebar { height: var(--bar-h); background: #22272e; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: relative; }
.titlebar h1 { margin: 0; font: 500 18px/1 var(--font); }
.titlebar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 200px; height: 3px; background: var(--accent); }
.balances { display: flex; gap: 24px; }
.balance { display: flex; align-items: baseline; gap: 6px; font: 600 18px/1 var(--font); }
.balance small { font: 500 10.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #9aa3ad; }

.content { padding: 28px 32px 48px; flex: 1; }
.crumbs { font-size: 12px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font: 600 15px/1.3 var(--font); }
.card-body { padding: 20px; }
.muted { color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.stat { display: flex; align-items: center; gap: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--accent)); }
.stat-icon { width: 60px; height: 60px; display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; }
.stat-icon svg.i { width: 28px; height: 28px; }
.stat-label { color: var(--ink-2); font-size: 13px; }
.stat-value { font: 600 26px/1.2 var(--font); letter-spacing: .01em; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* News slider */
.news { position: relative; height: 380px; overflow: hidden; background: #111; color: #fff; }
.news-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; display: flex; flex-direction: column; justify-content: flex-end; }
.news-slide.on { opacity: 1; }
.news-art { position: absolute; inset: 0; }
.news-caption { position: relative; padding: 22px 28px 40px; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0)); }
.news-tag { display: inline-block; padding: 3px 8px; background: var(--gold); color: #111; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.news-caption h3 { margin: 0 0 6px; font: 700 22px/1.2 var(--font-head); letter-spacing: .03em; text-transform: uppercase; }
.news-caption p { margin: 0; color: #d4d8dd; max-width: 620px; }
.news-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; background: rgba(0,0,0,.45); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.news-nav:hover { background: rgba(0,0,0,.7); }
.news-nav.prev { left: 0; } .news-nav.next { right: 0; }
.news-dots { position: absolute; left: 28px; bottom: 16px; display: flex; gap: 6px; z-index: 2; }
.news-dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.news-dots button.on { background: #fff; }

/* Featured / video */
.feature { height: 380px; position: relative; background: #0f141b; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.feature-art { position: absolute; inset: 0; }
.feature-top, .feature-bottom { position: relative; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; }
.feature-top { background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0)); }
.feature-title { font: 600 16px/1.3 var(--font); }
.feature-play { position: relative; align-self: center; width: 76px; height: 54px; background: var(--bad); border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; }
.feature-play svg.i { fill: #fff; stroke: none; width: 24px; height: 24px; }

/* Status table */
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.status-list li:first-child { border-top: 0; }
.pill { font: 700 10px/1 var(--font); letter-spacing: .12em; padding: 5px 8px; border: 1px solid currentColor; text-transform: uppercase; }
.pill.ok { color: var(--ok); background: #eaf6ef; }
.pill.warn { color: var(--warn); background: #fbf3e4; }
.pill.bad { color: var(--bad); background: #fbeceb; }
.pill.info { color: var(--accent); background: #e8f1f9; }
.status-meta { font-size: 12px; color: var(--ink-3); margin-right: 14px; }

/* Community panel */
.community-head { background: #2f3640; color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #5865f2; }
.community-head strong { font: 700 18px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.community-body { background: #22272e; color: #d7dce2; padding: 16px 20px; height: 430px; overflow: auto; }
.community-body h4 { margin: 12px 0 8px; font-size: 11px; letter-spacing: .14em; color: #8f98a3; text-transform: uppercase; }
.members { list-style: none; margin: 0; padding: 0; }
.members li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.members .av { width: 22px; height: 22px; background: #3a424d; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; position: relative; }
.members .av::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 7px; height: 7px; background: #3ba55c; border: 2px solid #22272e; }
.members .game { margin-left: auto; color: #8f98a3; font-size: 11.5px; }
.community-foot { background: #1b1f25; color: #8f98a3; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }

/* Activity table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 20px; border-top: 1px solid var(--line-2); }
.table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: #f7f8fa; border-top: 0; }

/* ---------- Forms ---------- */
.steps { display: inline-flex; background: var(--card); border: 1px solid var(--line); margin-bottom: 20px; }
.steps span { padding: 16px 22px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-top: 3px solid transparent; }
.steps span.on { color: var(--accent); border-top-color: var(--accent); }
.steps span + span { border-left: 1px solid var(--line); }

.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.form-card { padding: 28px 32px; }
.form-card > h2 { margin: 0 0 22px; font: 500 22px/1.2 var(--font); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 13.5px; }
.req { color: var(--bad); }
.hint { font-size: 12px; color: var(--ink-3); }
.hint.warn { color: var(--bad); }
.input-group { display: flex; border: 1px solid #cfd5dc; background: #fff; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.input-group .addon { width: 42px; display: grid; place-items: center; background: #f2f4f6; color: var(--ink-2); border-right: 1px solid #cfd5dc; }
.input-group input, .input-group select, .input-group textarea { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; color: var(--ink); background: transparent; outline: none; }
.input { border: 1px solid #cfd5dc; padding: 10px 12px; font: inherit; width: 100%; background: #fff; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.editor { border: 1px solid #cfd5dc; background: #fff; }
.editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.editor-tools { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: #f7f8fa; }
.editor-tools button { width: 32px; height: 30px; border: 1px solid var(--line); background: #fff; font: 700 13px/1 var(--font); color: var(--ink-2); cursor: pointer; }
.editor-tools button:hover { background: #eef2f6; color: var(--ink); }
.editor-tools .sep { width: 8px; }
.editor textarea { width: 100%; min-height: 180px; border: 0; padding: 12px; font: inherit; resize: vertical; outline: none; display: block; }

.items-row { display: grid; grid-template-columns: 1fr 140px auto; gap: 0; }
.items-row .input + .input { border-left: 0; }
.items-list { margin: 10px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); display: none; }
.items-list.has { display: block; }
.items-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line-2); }
.items-list li:first-child { border-top: 0; }
.items-list button { border: 0; background: none; color: var(--bad); cursor: pointer; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; font: 600 13px/1 var(--font); letter-spacing: .04em; cursor: pointer; text-decoration: none !important; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #18703d; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: #cfd5dc; }
.btn-ghost:hover { background: #f4f6f8; color: var(--ink); }
.btn-dark { background: var(--side); color: #fff; }
.btn-block { width: 100%; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }

.aside-card { padding: 24px; border-top: 4px solid var(--gold); }
.aside-card h3 { margin: 0 0 12px; font: 600 16px/1.3 var(--font); }
.aside-card p { margin: 0 0 12px; color: var(--ink-2); }
.aside-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.aside-card li { margin-bottom: 6px; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art {
  position: relative; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(8,12,20,.2), rgba(8,12,20,.85)),
    linear-gradient(115deg, #0c1624 0%, #1b2a44 45%, #6a3a3a 78%, #c56a2c 100%);
}
.auth-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: .6;
  background: inherit; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 46' preserveAspectRatio='none'%3E%3Cpath fill='%2305070a' d='M0 46V34h20v-6h14v10h10V20h12v-8h8v8h10v18h16V28h18v-12h10v12h8v18h14V24h22V8h6v16h10v22h18V30h12v-6h16v22h20V18h8V6h4v12h8v28h14V32h20v-10h14v24h16V26h10V14h12v12h8v20h22V36h16v-8h12v18h14V22h10v-6h18v30h12V30h16v16h20V34h12V20h14v26h18V28h10v18h22V38h16v-10h14v18z'/%3E%3C/svg%3E") repeat-x bottom / 900px 120px; }
.auth-art .brand { position: relative; z-index: 1; }
.auth-pitch { position: relative; z-index: 1; max-width: 460px; margin-bottom: 110px; }
.auth-pitch h2 { font: 700 40px/1.05 var(--font-head); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 14px; }
.auth-pitch p { color: #cfd6de; margin: 0; font-size: 15px; }
.auth-panel { background: #fff; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { margin: 0 0 6px; font: 600 26px/1.2 var(--font); }
.auth-box > p.muted { margin: 0 0 28px; }
.auth-box .field { margin-bottom: 16px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #c4c9cf; padding: 12px 18px; font-weight: 500; letter-spacing: 0; }
.btn-google:hover { background: #f6f8fa; }
.btn-google svg { width: 18px; height: 18px; }
.auth-foot { margin-top: 26px; font-size: 13px; color: var(--ink-2); text-align: center; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 4px; background: var(--line); }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-s="3"] i:nth-child(-n+3) { background: var(--teal); }
.strength[data-s="4"] i { background: var(--ok); }
.notice { padding: 10px 14px; border-left: 3px solid var(--accent); background: #eef5fb; color: var(--ink-2); font-size: 12.5px; margin-bottom: 20px; }

/* ---------- Production additions ---------- */
.tool-btn:hover, .who:hover { text-decoration: none; }
.who { color: #fff; }
.who > span:last-child { display: flex; flex-direction: column; }
.tool-btn-dark { background: none; border-color: #3a414b; }
.titlebar-left { display: flex; align-items: center; gap: 14px; }
.nav form { margin: 0; }
.nav .sub a.active { border-left-color: var(--accent); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.lead { margin: 0 0 24px; }
.plain-list { margin: 0; padding-left: 18px; }

.c-blue { --c: #0d6fb8; } .c-red { --c: #c0392b; } .c-teal { --c: #13857e; } .c-dark { --c: #2b3139; }
.c-green { --c: #1f8a4c; } .c-gold { --c: #c9971c; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }

.alert { padding: 12px 16px; margin-bottom: 18px; border-left: 4px solid var(--accent); background: #eef5fb; color: var(--ink); }
.alert-error { border-left-color: var(--bad); background: #fbeceb; }
.alert-success { border-left-color: var(--ok); background: #eaf6ef; }
.alert-info { border-left-color: var(--accent); background: #eef5fb; }
.alert a { font-weight: 600; }

.card + .card, section.card { margin-bottom: 20px; }
.grid-2 > .card { margin-bottom: 0; }
.card-flush { border: 0; display: flex; flex-direction: column; }
.card-flush .community-body { flex: 1; height: auto; max-height: 430px; }
.card-head-sub { border-top: 1px solid var(--line); }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); margin: 0; }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); }
.empty svg.i { width: 30px; height: 30px; }
.empty p { margin: 8px 0 0; }
.empty-small { padding: 18px 20px; }
.empty-card { display: grid; place-items: center; min-height: 380px; }
.pill.muted-pill { color: var(--ink-3); background: #f1f3f5; }
.hint-warn { color: var(--bad); }

.news-art { width: 100%; height: 100%; object-fit: cover; background: linear-gradient(120deg, #0f1a2b, #23395d 55%, #c9971c); }
.news-art-event { background: linear-gradient(120deg, #22140f, #5e2b22 55%, #c56a2c); }
.news-art-poster { background: linear-gradient(120deg, #1c1f24, #3e4a57 60%, #13857e); }
.news-meta { margin-top: 10px !important; font-size: 12px; color: #b9c0c8 !important; display: flex; align-items: center; gap: 6px; }
.news-meta svg.i { width: 14px; height: 14px; }

.char-list { list-style: none; margin: 0; padding: 0; }
.char-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line-2); color: var(--ink); }
.char-list li:first-child .char-row { border-top: 0; }
.char-row:hover { background: #f7f9fb; text-decoration: none; }
.char-thumb { width: 44px; height: 44px; object-fit: cover; flex: none; background: #e6e9ed; display: grid; place-items: center; color: var(--ink-3); }
.char-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.char-money { font-weight: 600; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.char-card { display: flex; flex-direction: column; color: var(--ink); margin: 0 !important; }
.char-card:hover { border-color: var(--accent); text-decoration: none; }
.char-card.is-ck { opacity: .75; }
.char-photo { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #1d2b40, #2b3139); overflow: hidden; }
.char-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-photo-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #6b7682; }
.char-photo-empty svg.i { width: 56px; height: 56px; }
.char-flag { position: absolute; top: 10px; right: 10px; }
.char-body { padding: 16px 20px 20px; }
.char-body h2 { margin: 0; font: 600 18px/1.3 var(--font); }
.char-body > p { margin: 2px 0 14px; }
.mini-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.mini-facts dt { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.mini-facts dd { margin: 2px 0 0; font-weight: 600; }

.profile { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.profile-side { margin: 0 !important; }
.char-photo-lg { aspect-ratio: 1 / 1; }
.profile-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.profile-name h2 { margin: 0; font: 600 20px/1.2 var(--font); }
.profile-main { min-width: 0; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; padding: 18px 20px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts-pad { padding: 20px; }

.table-wrap { overflow-x: auto; }
.table td { vertical-align: top; }
.table td.reason { min-width: 220px; }
.plate { display: inline-block; padding: 2px 8px; border: 1px solid var(--ink-2); font: 600 12px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .1em; background: #fff; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 12px 18px; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; }
.note-list li:first-child { border-top: 0; }
.note-list li.unread { box-shadow: inset 3px 0 0 var(--accent); background: #f6fafd; }
.note-list-full li { display: block; }
.note-list-full p { margin: 8px 0 4px; color: var(--ink-2); }
.note-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-time { margin-left: auto; }

.bars { list-style: none; margin: 0; padding: 12px 20px; }
.bars li { display: grid; grid-template-columns: 180px 1fr 120px; gap: 14px; align-items: center; padding: 8px 0; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: var(--line-2); }
.bar-fill { display: block; height: 100%; width: 0; background: var(--accent); }
.bar-value { text-align: right; font-weight: 600; }

.channel { padding: 3px 0; }
.channel::before { content: "# "; color: #8f98a3; }
.members img.av { object-fit: cover; }
.btn-discord { background: #5865f2; color: #fff; padding: 8px 14px; }
.btn-discord:hover { background: #4752c4; }
.btn-auto { width: auto; }
.g-logo { width: 18px; height: 18px; }
.check-terms { margin: 6px 0 20px; align-items: flex-start; }
.check-terms input { margin-top: 2px; }
.input-group.is-locked { background: #f2f4f6; }
button.btn:disabled { opacity: .7; cursor: default; }

.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.settings > .card { margin: 0; }
.settings .field { margin-bottom: 16px; }
.settings form p { margin-top: 0; }

body.plain { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.plain-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 36px; max-width: 460px; text-align: center; }
.plain-box .brand-mark { margin: 0 auto 16px; }
.plain-box h1 { margin: 0 0 8px; font: 600 22px/1.3 var(--font); }
.plain-box p { color: var(--ink-2); margin: 0 0 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .profile, .settings { grid-template-columns: 1fr; } .stats-3 { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) {
  .stats-3 { grid-template-columns: 1fr; }
  .char-photo-lg { aspect-ratio: auto; height: 260px; }
  .bars li { grid-template-columns: 1fr 90px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .who > span:last-child { display: none; }
  .who { margin-left: 6px; padding-left: 10px; }
  .titlebar { padding: 0 16px; }
  .balances { gap: 14px; }
  .balance { font-size: 15px; }
}
@media (max-width: 1280px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .grid-2, .form-layout { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .shell.side-open .side { display: block; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .who-name, .who-role, .balance small { display: none; }
  .content { padding: 20px 16px 40px; }
  .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .brand-name { font-size: 22px; }
  .brand-name small { display: none; }
  .banner { padding: 0 16px; }
}

/* email verification banner */
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.btn-small { padding: 8px 12px; }

/* ---------- Requests & staff panel ---------- */
.new-request { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.new-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; color: var(--ink); margin: 0 !important; }
.new-card:hover { border-color: var(--accent); text-decoration: none; }
.new-card .stat-icon { width: 48px; height: 48px; flex: none; background: var(--c); }
.new-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.textarea { resize: vertical; min-height: 90px; font: inherit; line-height: 1.5; }
.form-card .fields { margin-bottom: 4px; }
.aside-link { margin-top: 14px; }

.req-facts { border-bottom: 1px solid var(--line-2); }
.req-body { padding: 4px 20px 16px; }
.req-body h3 { margin: 16px 0 6px; font: 600 12px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prose { overflow-wrap: anywhere; color: var(--ink); }
.decision { margin: 0 20px 16px; padding: 12px 16px; border-left: 4px solid var(--ink-3); background: #f6f7f9; }
.decision-approved { border-left-color: var(--ok); background: #eef8f2; }
.decision-denied { border-left-color: var(--bad); background: #fcf0ef; }
.decision .prose { margin-top: 6px; }
.payouts { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; gap: 8px; }
.payouts li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); }
.payouts li > span:first-child { font-weight: 600; min-width: 140px; }

.thread { list-style: none; margin: 0; padding: 0; }
.thread li { padding: 14px 20px; border-top: 1px solid var(--line-2); }
.thread li:first-child { border-top: 0; }
.thread li.is-staff { box-shadow: inset 3px 0 0 var(--accent); background: #f6fafd; }
.thread li.is-internal { box-shadow: inset 3px 0 0 var(--warn); background: #fdf8ee; }
.thread-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.thread-head .muted { margin-left: auto; }
.row-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-quiet { background: #f9fafb; }

.staff-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.staff-main, .staff-side { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack .field { margin: 0; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #a33025; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.chip:hover { text-decoration: none; border-color: var(--ink-3); }
.chip.on { background: var(--side); border-color: var(--side); color: #fff; }
.stat-link { color: var(--ink); }
.stat-link:hover { text-decoration: none; border-color: var(--c); }
.stats-1 { grid-template-columns: minmax(0, 360px); }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.card-alert { border-top: 4px solid var(--warn); }
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.search-bar .input-group { flex: 1; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
code { font: 12px/1.4 ui-monospace, Consolas, monospace; background: #f1f3f5; padding: 1px 5px; }

@media (max-width: 1100px) { .staff-layout { grid-template-columns: 1fr; } .new-request { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .stats-2 { grid-template-columns: 1fr; } .search-bar { flex-direction: column; } }
