/* Creator dashboard: the site's dark surfaces, pills and blue accent, laid out as
   an application. One series chart; status always carries an icon and a label. */
:root {
  --bg: #191919;
  --card: #202020;
  --raised: #2a2a2c;
  --line: #333336;
  --grid: #2c2c2f;
  --text: #f5f5f7;
  --secondary: #b7b7bd;
  --muted: #8e8e95;
  --accent: #b318ff;
  --accent-text: #c96bff;
  --good: #79b5a1;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Google Sans", Arial, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2 { margin: 0; font-weight: 500; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dash-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dash-skip:focus { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px; background: #f5f5f7; color: #111113; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.dash-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid #ffffff12; background: #191919e6; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.dash-brand img { display: block; width: 104px; height: auto; }
.dash-nav { display: flex; gap: 22px; margin-left: auto; color: var(--secondary); font-size: 15px; }
.dash-nav a:hover { color: #fff; }
.dash-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f5f5f7; color: #111113; font-weight: 600; font-size: 15px; }

.dash-main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: clamp(80px, 7vw, 112px) 0 clamp(96px, 9vw, 140px); }
.dash-intro { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px; align-items: end; }
.dash-eyebrow { color: var(--accent-text); font-size: 14px; margin-bottom: 12px; }
.dash-intro h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.dash-label { color: var(--muted); font-size: 14px; }
.dash-code { padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.dash-code-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 14px; }
.dash-code strong { font-size: 32px; font-weight: 600; letter-spacing: .04em; }
.dash-copy { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #f5f5f7; color: #111113; font-size: 14px; font-weight: 500; transition: background .2s ease; }
.dash-copy:hover { background: #dcdce1; }
.dash-copy.is-done { background: #2f6f5a; color: #fff; }
.dash-copy-text { display: block; width: 100%; background: var(--raised); color: var(--text); }
.dash-copy-text:hover { background: #343437; }
.dash-share { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.dash-preview { display: flex; align-items: center; gap: 10px; margin: 28px 0 20px; padding: 12px 16px; border-radius: 14px; background: #ffffff0a; color: #d0d0d6; font-size: 14px; line-height: 1.45; }
.dash-preview i { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-tile { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.dash-tile strong { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.dash-sub { color: var(--muted); font-size: 13px; line-height: 1.4; }

.dash-card { margin-top: 12px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); min-width: 0; }
.dash-card h2 { font-size: 20px; letter-spacing: -.02em; }
.dash-card > p, .dash-card-head p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dash-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.dash-key { display: flex; gap: 16px; flex-shrink: 0; color: var(--secondary); font-size: 13px; }
.dash-key span { display: inline-flex; align-items: center; gap: 7px; }
.dash-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.dash-key i.pending, .dash-bar.is-pending .dash-bar-fill { background: repeating-linear-gradient(135deg, var(--accent) 0 3px, #4a0f6b 3px 6px); }

/* Column chart: recessive hairline grid, columns capped at 24px with a 4px rounded top. */
.dash-chart { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; height: 260px; padding-bottom: 26px; }
.dash-axis { position: relative; min-width: 44px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dash-axis span { position: absolute; right: 0; bottom: var(--at); transform: translateY(50%); white-space: nowrap; }
.dash-bars { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; height: 100%; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 100% / 100% var(--grid-step, 25%); border-bottom: 1px solid #45454a; }
.dash-bar { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 100%; padding: 0; border: 0; background: none; }
.dash-bar-fill { display: block; width: min(24px, 60%); height: var(--h); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent); transition: filter .15s ease; }
.dash-bar:hover .dash-bar-fill, .dash-bar:focus-visible .dash-bar-fill { filter: brightness(1.25); }
.dash-bar:focus-visible { outline-offset: -2px; border-radius: 6px; }
.dash-bar-month { position: absolute; top: calc(100% + 8px); color: var(--muted); font-size: 12px; white-space: nowrap; }
.dash-tip { position: absolute; bottom: calc(var(--h) + 10px); left: 50%; z-index: 2; display: none; gap: 3px; min-width: 150px; padding: 10px 12px; border: 1px solid #ffffff1a; border-radius: 12px; background: #2e2e31; box-shadow: 0 10px 30px #0008; text-align: left; transform: translateX(-50%); pointer-events: none; }
.dash-tip b { font-size: 13px; font-weight: 500; color: var(--secondary); }
.dash-tip > span { font-size: 17px; font-weight: 600; color: #fff; }
.dash-tip small { color: var(--muted); font-size: 12px; }
.dash-bar:hover .dash-tip, .dash-bar:focus-visible .dash-tip { display: grid; }
.dash-bar:first-child .dash-tip, .dash-bar:nth-child(2) .dash-tip { left: 0; transform: none; }
.dash-bar:nth-last-child(-n+2) .dash-tip { left: auto; right: 0; transform: none; }

.dash-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.dash-details summary { color: #f5f5f7; font-size: 14px; cursor: pointer; }
.dash-details[open] summary { margin-bottom: 12px; }

.dash-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
thead th { color: var(--muted); font-size: 13px; font-weight: 400; }
tbody th { font-weight: 500; }
td { color: var(--secondary); }
tbody tr:last-child > * { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }

.dash-status { display: inline-flex; align-items: center; gap: 7px; color: var(--secondary); }
.dash-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dash-status.good i { background: var(--good); }
.dash-status.info i { background: var(--accent); }
.dash-status.muted i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

.dash-columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.dash-columns-even { grid-template-columns: 1fr 1fr; }
.dash-facts { display: grid; gap: 0; margin: 18px 0 20px; }
.dash-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dash-facts dt { color: var(--muted); }
.dash-facts dd { margin: 0; text-align: right; }
.line-list { margin: 18px 0 20px; padding: 0; list-style: none; }
.line-list li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: 14px; line-height: 1.5; }
.line-list li::before { content: "+"; margin-right: 12px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid #ffffff26; border-radius: 999px; background: transparent; color: var(--text); font-size: 14px; }
.button:hover { border-color: #ffffff55; background: #ffffff0a; }
.dash-status-message { position: fixed; left: 50%; bottom: 24px; z-index: 6; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: #2e2e31; box-shadow: 0 12px 40px #0009; color: #fff; font-size: 14px; transform: translateX(-50%); }

.dash-footer { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 20px 24px 28px; color: var(--muted); }
.dash-footer small { font-size: 12px; }

@media (max-width: 1000px) {
  .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-columns, .dash-columns-even { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dash-intro { grid-template-columns: 1fr; }
  .dash-card-head { flex-direction: column; gap: 12px; }
  .dash-bar:nth-child(even) .dash-bar-month { visibility: hidden; }
}
@media (max-width: 600px) {
  .dash-header { gap: 14px; padding: 12px 16px; }
  .dash-nav { gap: 14px; font-size: 14px; }
  .dash-nav a:first-child { display: none; }
  .dash-main { width: calc(100% - 32px); padding-top: 64px; }
  .dash-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-tile { padding: 16px; border-radius: 18px; }
  .dash-tile strong { font-size: 22px; }
  .dash-card, .dash-code { padding: 20px 18px; border-radius: 20px; }
  .dash-chart { height: 220px; gap: 8px; }
  .dash-axis { min-width: 38px; font-size: 11px; }
  .dash-bar-fill { width: min(16px, 70%); }
  .dash-bar-month { font-size: 11px; }
  .dash-optional { display: none; }
}
@media (max-width: 380px) {
  .dash-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dash-copy, .dash-bar-fill { transition: none; } }
@media (forced-colors: active) { .dash-bar-fill, .dash-key i { background: CanvasText; } }

/* Google Sans draws © small and raised; Arial's matches the surrounding text. */
.copyright-sign { font-family: Arial, Helvetica, sans-serif; }
