
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --page: #f5f5f2;
  --surface: #ffffff;
  --surface-soft: #f7f7f5;
  --field: #ffffff;
  --ink: #222326;
  --muted: #62646a;
  --line: #ddddda;
  --line-soft: #ecece9;
  --brand: #c9212d;
  --accent: #ffca32;
  --accent-hover: #f3ba16;
  --notice: #f3f3f0;
  --bubble: #e9e9e8;
  --pill: #fff0bd;
  --pill-text: #765200;
  --danger-bg: #fff0f0;
  --danger-text: #a31f2c;
  --success-bg: #e8f5ed;
  --success-text: #17663d;
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px max(22px, calc((100vw - 1080px) / 2));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.035em; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--brand); color: white; border-radius: 9px; font-size: 20px; }
.top { background: #be1e2d; border-bottom: 4px solid #ffc72c; color: #fff; }
.top .muted { color: #fff3dc; }
.brand { gap: 12px; letter-spacing: -.025em; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; gap: 3px; }
.brand-name strong { font-size: 18px; }
.brand-name small { color: #fff2c9; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.mark { width: 42px; height: 42px; flex: none; background: #ffc72c; color: #8c101d; border-radius: 11px; font-size: 23px; }
.mark { background: #a91825; }
.mark img { display: block; width: 29px; height: 30px; object-fit: contain; }
.section-label { display: block; margin-bottom: 7px; color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .13em; }
#signInView { border-top: 5px solid #ffc72c; box-shadow: 0 14px 42px #1d15100b; }
.tag { padding: 7px 10px; border-radius: 20px; background: var(--pill); color: var(--pill-text); font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.wrap { max-width: 1080px; margin: auto; padding: 27px 22px 64px; }
.intro { margin-bottom: 19px; }
.intro h1 { margin: 0 0 19px; font-size: clamp(26px, 3vw, 32px); letter-spacing: -.05em; line-height: 1.1; }
.intro p { display: none; }
.tabs { display: flex; width: 100%; max-width: 720px; gap: 4px; padding: 4px; border-radius: 10px; background: var(--line-soft); }
.tabs button { flex: 1; min-height: 46px; padding: 10px 12px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 15px; font-weight: 750; }
.tabs button.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 5px #00000012; }
.tabs button:hover:not(.active) { color: var(--ink); }
.layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .8fr); gap: 16px; align-items: start; }
.layout.single { grid-template-columns: minmax(0, 720px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.main { padding: 30px 33px; }
.side { padding: 25px; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.card h2 { margin: 6px 0 5px; font-size: 25px; letter-spacing: -.04em; line-height: 1.2; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card h2 + .muted { margin-top: 7px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 18px; margin: 25px 0; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 750; }
.field input, .field select, .field textarea, .redeem-input {
  width: 100%; min-height: 50px; padding: 12px 13px;
  color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 8px;
}
.field input::placeholder, .field textarea::placeholder, .redeem-input::placeholder { color: var(--muted); opacity: .8; }
.field textarea { min-height: 110px; line-height: 1.5; resize: vertical; }
.primary { width: 100%; min-height: 56px; margin-top: 20px; border: 0; border-radius: 8px; background: var(--accent); color: #1d1c18; font-size: 16px; font-weight: 800; }
.primary:hover { background: var(--accent-hover); }
.primary.green { background: #24734d; color: white; }
.primary.green:hover { background: #195d3c; }
.secondary { padding: 10px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-weight: 750; }
.secondary:hover { background: var(--surface-soft); }
.danger-button { color: var(--danger-text); border-color: var(--danger-text); }
.danger-button:hover { background: var(--danger-bg); }
.notice { margin: 20px 0 0; padding: 13px 14px; border-radius: 8px; color: var(--muted); background: var(--notice); font-size: 13px; line-height: 1.5; }
.notice strong { color: var(--ink); }
.phone { min-height: 165px; margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.phone-head { margin-bottom: 12px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 750; }
.bubble { padding: 14px; border-radius: 12px 12px 12px 3px; background: var(--bubble); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.placeholder { color: var(--muted); }
.divider { display: none; }
.side .divider + p { margin-top: 18px; font-size: 12px; }
.result { margin-top: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.result h3 { margin: 0 0 12px; font-size: 17px; }
.replacement-description { margin: 17px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.pill { display: inline-block; padding: 6px 9px; color: var(--pill-text); background: var(--pill); border-radius: 30px; font-size: 12px; font-weight: 800; }
.pill.used { color: var(--muted); background: var(--line-soft); }
.alert, .success { margin-top: 12px; padding: 12px; border-radius: 8px; font-size: 14px; }
.alert { color: var(--danger-text); background: var(--danger-bg); }
.success { color: var(--success-text); background: var(--success-bg); }
.log-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.log-heading h2 { margin: 0; }
.log-heading .secondary { white-space: nowrap; }
.export-btn { margin-top: 15px; }
.log-line { display: grid; grid-template-columns: 135px 1fr; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.log-line strong { color: var(--muted); }
.access-panel { margin-top: 32px; padding-top: 23px; border-top: 1px solid var(--line); }
.access-panel h3 { margin: 0 0 5px; }
.account-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.account-row span { flex: 1; font-weight: 700; }
.account-row .secondary { padding: 8px 10px; font-size: 13px; }
.account-form { display: flex; align-items: end; gap: 10px; margin-top: 20px; }
.account-form .field { flex: 1; }
.account-form .secondary { min-height: 50px; white-space: nowrap; }
.empty { margin-top: 20px; padding: 35px 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 9px; text-align: center; }
.hidden { display: none !important; }
@media (max-width: 800px) { .layout, .layout.single { grid-template-columns: 1fr; } .side { order: 2; } }
@media (max-width: 600px) { .account-form { display: grid; } .account-row { flex-wrap: wrap; } .account-row span { flex-basis: 100%; } }
@media (max-width: 540px) {
  .top { padding: 12px 14px; } .wrap { padding: 21px 13px 55px; }
  .intro h1 { font-size: 26px; } .main, .side { padding: 21px; }
  .fields { grid-template-columns: 1fr; gap: 15px; }
  .tabs button { font-size: 13px; padding: 10px 5px; }
  .brand-name strong { font-size: 16px; }
  .brand-name small { font-size: 10px; }
  .mark { width: 38px; height: 38px; }
  .top #identity { max-width: 42%; font-size: 12px; text-align: right; }
  .tag { font-size: 10px; } .log-line { grid-template-columns: 106px 1fr; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #111315; --surface: #1d2023; --surface-soft: #25292d;
    --field: #171a1c; --ink: #f1f2f1; --muted: #b9bdc0;
    --line: #3c4146; --line-soft: #2c3135; --brand: #ff626a;
    --accent: #ffd044; --accent-hover: #e9b927;
    --notice: #282d30; --bubble: #32383c;
    --pill: #514421; --pill-text: #ffdc78;
    --danger-bg: #43282d; --danger-text: #ffb5bc;
    --success-bg: #1f3d30; --success-text: #b1ebc9;
  }
  .mark { background: #a91825; }
  .tabs button.active { box-shadow: 0 1px 5px #00000040; }
  .primary.green { background: #27875a; }
  .primary.green:hover { background: #207248; }
}
  
