/* Synth Palace UGC portal. Same palette and type as the team dashboard, laid out for phones first. */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2-variations');
}

:root {
  color-scheme: dark;
  --bg: #0e0e11;
  --surface-1: #15151a;
  --surface-2: #1c1c22;
  --well: #101013;
  --text-1: #f6f6f7;
  --text-2: #b7b7c0;
  --text-3: #80808b;
  --good: oklch(80% 0.12 155);
  --warn: oklch(84% 0.12 80);
  --bad: oklch(72% 0.15 25);
  --accent: #b39dfb;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.13);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --line: inset 0 0 0 1px var(--hair);
  --glow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.06);
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --font: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: var(--text-1); text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
a:hover { text-decoration-color: currentColor; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 14px max(20px, calc((100vw - 680px) / 2));
  background: rgba(14, 14, 17, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-2); font-size: 15px; }
.brand img { width: 24px; height: 26px; object-fit: contain; }
.brand b { color: var(--text-1); font-weight: 600; }

/* ---- page ---- */
.wrap { max-width: 680px; margin: 0 auto; padding: 40px 20px 64px; display: flex; flex-direction: column; gap: 24px; }
.hello h1 { font-size: 34px; letter-spacing: -0.03em; }
.hello p { margin: 10px 0 0; color: var(--text-2); font-size: 17px; }
.hello .facts { margin-top: 8px; color: var(--text-3); font-size: 15px; overflow-wrap: anywhere; }
.hello .facts a { color: var(--text-2); }
.tag { display: inline-flex; align-items: center; height: 26px; margin-bottom: 12px; padding: 0 10px; border-radius: 7px; background: rgba(167, 139, 250, 0.14); color: var(--accent); font-size: 13px; font-weight: 550; }

.flash { margin: 0; padding: 13px 16px; border-radius: var(--r-md); font-size: 15px; background: var(--surface-1); }
.flash.good { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--good) 45%, transparent); }
.flash.good::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px -1px var(--good); vertical-align: 1px; }
.flash.bad { color: var(--bad); background: rgba(240, 120, 100, 0.07); box-shadow: inset 0 0 0 1px rgba(240, 120, 100, 0.25); }

/* ---- the form ---- */
.sheet { display: flex; flex-direction: column; gap: 20px; }
fieldset {
  margin: 0; padding: 22px 22px 4px; border: 0; border-radius: var(--r-lg); min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--hair-2), var(--edge);
}
legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
legend + * { clear: both; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
label { color: var(--text-2); font-size: 14px; font-weight: 500; }
.opt { color: var(--text-3); font-weight: 400; margin-left: 4px; }
.hint { color: var(--text-3); font-size: 13.5px; }
.err { color: var(--bad); font-size: 13.5px; }

input, textarea, select {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 0; border-radius: var(--r-md);
  background: var(--well); color: var(--text-1); font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--hair-2); outline: none;
}
textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
select:invalid { color: var(--text-3); }
option { color: var(--text-1); background: var(--surface-2); }
input:focus, textarea:focus, select:focus { box-shadow: var(--glow); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.bad input, .bad textarea, .bad select { box-shadow: inset 0 0 0 1px rgba(240, 120, 100, 0.55); }
.money { position: relative; }
.money span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.money input { padding-left: 28px; font-variant-numeric: tabular-nums; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-md);
  background: #f2f2f4; color: #111114; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn:hover { background: #fff; }
.btn.ghost { background: var(--surface-1); color: var(--text-1); box-shadow: var(--line), var(--edge); font-weight: 550; }
.btn.ghost:hover { background: var(--surface-2); }

/* ---- status page ---- */
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--hair-2), var(--edge); }
.what { margin: 0; font-size: 17px; }
.fb { align-self: stretch; padding: 14px 16px; border-radius: var(--r-md); background: var(--well); box-shadow: var(--line); color: var(--text-2); }
.fb b { display: block; margin-bottom: 4px; color: var(--text-1); font-weight: 550; font-size: 14px; }
.fb p { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-1); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.pill.good::before { background: var(--good); box-shadow: 0 0 8px -1px var(--good); }
.pill.warn::before { background: var(--warn); box-shadow: 0 0 8px -1px var(--warn); }
.pill.accent::before { background: var(--accent); box-shadow: 0 0 8px -1px var(--accent); }
.pill.idle { color: var(--text-2); }
.save h2 { font-size: 18px; }
.save p { margin: 6px 0 10px; color: var(--text-2); font-size: 15px; }
.copy { font-size: 14px; color: var(--text-2); }
.another { margin: 0; }

footer { margin-top: 8px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--hair); color: var(--text-3); font-size: 14px; }

/* ---- small screens ---- */
@media (max-width: 560px) {
  .wrap { padding-top: 28px; gap: 20px; }
  .hello h1 { font-size: 28px; }
  .hello p { font-size: 16px; }
  fieldset { padding: 18px 16px 2px; }
  .pair { grid-template-columns: 1fr; }
  .sheet .btn { align-self: stretch; }
}

/* ---- "Your work", offers and history ---- */
fieldset .lead { margin: -8px 0 16px; color: var(--text-3); font-size: 14.5px; clear: both; }
fieldset > .err { margin: -6px 0 14px; }
.row-actions { margin: 4px 0 0; }
.more { align-self: stretch; }
.more summary { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-2); font-size: 15px; cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--text-1); }
.more[open] summary { color: var(--text-1); }
.sheet.slim { gap: 4px; margin-top: 8px; padding: 16px; border-radius: var(--r-md); background: var(--well); box-shadow: var(--line); }
.sheet.slim input, .sheet.slim textarea { background: var(--surface-1); }

.history h2 { font-size: 18px; margin-bottom: 12px; }
.history ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history li { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-1); box-shadow: var(--line); }
.history li.team { box-shadow: inset 3px 0 0 var(--accent), var(--line); }
.history li div { display: flex; justify-content: space-between; gap: 12px; }
.history li b { font-weight: 550; }
.history li span { color: var(--text-3); font-size: 13.5px; white-space: nowrap; }
.history li p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
