/* Palette from app/lib/theme.dart (YapTheme), same as index.html. */
:root {
  color-scheme: light dark;
  --magenta: #C2109C; --amber: #FFB300;
  --surface: #FFF6EC; --card: #FFFFFF; --sunk: #FAEBD9;
  --ink: #33202C; --dim: #5C4653; --line: #E2C9D3; --accent: #C2109C;
  --field: #FFFFFF; --field-line: #CDB2BE; --error: #BA1A1A;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #2B0F33; --card: #3A1844; --sunk: #33143C;
    --ink: #F3DCE9; --dim: #D5BCC9; --line: #503E4C; --accent: #FFACE3;
    --field: #200A26; --field-line: #6E5468; --error: #FFB4AB;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse at 80% -10%, rgba(255, 179, 0, .22), transparent 45%),
              radial-gradient(ellipse at 0% 0%, rgba(194, 16, 156, .18), transparent 50%), var(--surface);
  min-height: 100vh;
}
main { width: min(680px, 100% - 40px); margin: 0 auto; padding: 28px 0 64px; }
a { color: var(--accent); text-underline-offset: 4px; }
.back { font-size: 14px; text-decoration: none; font-weight: 600; }
header { margin: 30px 0 22px; }
.badge { display: block; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(194, 16, 156, .3); }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .16em; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; line-height: 1.15; margin: 0 0 12px;
  background: linear-gradient(120deg, var(--magenta), #F4780F 70%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
header > p:last-child, #success > p:not(.eyebrow) { color: var(--dim); margin: 0; }
.direct { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 14px 18px; margin-bottom: 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--sunk); }
.direct a { font-weight: 600; overflow-wrap: anywhere; }
form, #success { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  box-shadow: 0 10px 40px rgba(120, 8, 80, .12); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 18px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.kind { margin: 0; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { display: block; text-align: center; padding: 12px 10px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 15px; }
.kind input:checked + span { border-color: var(--magenta); background: linear-gradient(135deg, rgba(255, 179, 0, .16), rgba(194, 16, 156, .16)); }
.kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
input, textarea { display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 11px 12px; color: var(--ink);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; font: inherit; font-weight: 400; }
textarea { resize: vertical; min-height: 150px; }
input::placeholder, textarea::placeholder { color: var(--dim); opacity: .75; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.optional, .hint { color: var(--dim); font-weight: 400; }
.hint { margin: -10px 0 20px; font-size: 13px; }
#images { margin: -8px 0 16px; font-size: 14px; padding: 10px; }
#images::file-selector-button { margin-right: 12px; padding: 7px 12px; background: var(--sunk); border: 1px solid var(--field-line);
  border-radius: 8px; color: var(--accent); font-weight: 600; cursor: pointer; }
#selectedFiles { margin: 0 0 12px; padding-left: 20px; color: var(--dim); font-size: 13px; overflow-wrap: anywhere; }
#selectedFiles:empty { display: none; }
button { font: 700 16px/1.3 system-ui, -apple-system, sans-serif; padding: 14px 22px; color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--amber), var(--magenta)); box-shadow: 0 6px 18px rgba(194, 16, 156, .3); }
button:hover { filter: brightness(1.06); }
button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
#sendButton { width: 100%; }
.text-button { padding: 0; background: transparent; box-shadow: none; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: underline; margin-bottom: 20px; }
#privacy { margin: 8px 0 22px; }
#status { margin: 16px 0 0; font-size: 14px; color: var(--dim); }
#status:empty { display: none; }
#status.error { color: var(--error); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#success h2 { font-size: 27px; font-weight: 800; margin: 0 0 8px; }
#success button { margin-top: 20px; }
@media (max-width: 520px) { main { width: calc(100% - 28px); padding-top: 20px; } form, #success { padding: 20px; } }
