/* UGCManager: tokens, type, controls. Daylight studio: a cool canvas, a white working sheet, plum ink, ultraviolet for
   data, a highlighter yellow under growth. Bricolage Grotesque for headings and numbers (tabular), Hanken Grotesk for words. */
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-latin.woff2') format('woff2'); font-weight: 400 800; 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: 'Bricolage'; src: url('/assets/fonts/bricolage-latin-ext.woff2') format('woff2'); font-weight: 400 800; 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; }
@font-face { font-family: 'Hanken'; src: url('/assets/fonts/hanken-latin.woff2') format('woff2'); font-weight: 400 700; 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: 'Hanken'; src: url('/assets/fonts/hanken-latin-ext.woff2') format('woff2'); font-weight: 400 700; 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 {
  color-scheme: light;
  --canvas: #e8ebf2;
  --canvas-2: #dfe3ec;
  --sheet: #ffffff;
  --ink: #1b1530;
  --ink-2: #4b4662;
  --ink-3: #8b879f;
  --line: #ebeaf2;
  --line-2: #d5d8e3;
  --violet: #5b3cff;
  --violet-ink: #3f22e0;
  --violet-tint: #efebff;
  --violet-soft: rgba(91, 60, 255, 0.14);
  --marker: #ffd84d;
  --marker-soft: #fff2b8;
  --down: #d93d42;
  --ok: #17845a;
  --tt: #12101a;
  --ig: #d6246e;
  --display: 'Bricolage', 'Hanken', ui-sans-serif, system-ui, sans-serif;
  --text: 'Hanken', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sheet: 22px;
  --r-tile: 14px;
  --r-field: 12px;
  --shadow-pop: 0 18px 50px -12px rgba(27, 21, 48, 0.28), 0 2px 6px rgba(27, 21, 48, 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.08; font-variation-settings: 'opsz' 48; }
h1 { font-size: clamp(26px, 3vw, 34px); }
h2 { font-size: 20px; letter-spacing: -0.015em; }
h3 { font-size: 16px; letter-spacing: -0.01em; }
p { margin: 0; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; font-variation-settings: 'opsz' 14; letter-spacing: -0.01em; }
.soft { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

/* buttons: pills; ink is the main action, the outline the rest */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s var(--ease), background .15s, box-shadow .15s; }
.btn:hover { background: #2b2347; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { background: var(--sheet); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: #f6f6fa; }
.btn.violet { background: var(--violet); }
.btn.violet:hover { background: var(--violet-ink); }
.btn.danger { background: var(--sheet); color: var(--down); border-color: #f1c9cb; }
.btn.danger:hover { background: #fff5f5; }
.btn.small { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .g { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--violet-ink); font-weight: 600; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: #f1f1f7; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* fields */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .field input, .field select, .field textarea, textarea.input { width: 100%; border: 1px solid var(--line-2); background: var(--sheet); border-radius: var(--r-field); padding: 10px 13px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea, textarea.input { resize: vertical; min-height: 120px; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.err { color: var(--down); font-size: 13.5px; min-height: 0; }
.err:empty { display: none; }

/* segmented control: the range, the platform, the sort */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: #f0f0f6; border-radius: 999px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed='true'] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(27, 21, 48, .12); }
.seg button svg { width: 14px; height: 14px; }

/* the highlighter: growth gets a marker stroke behind it */
.mark { background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%); padding: 0 .28em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.down { color: var(--down); }

/* platform glyphs */
.pf { width: 16px; height: 16px; flex: none; }
.pf.tt { color: var(--tt); }
.pf.ig { color: var(--ig); }

.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--canvas-2); flex: none; }
.avatar.ph { display: grid; place-items: center; font: 700 13px var(--display); color: var(--ink-2); background: linear-gradient(140deg, #ece8ff, #dfe6f5); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 90; transition: all .25s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
