/* Radioguide for Artists: sign-up, claim and studio (design 2 tokens, with fallbacks for design 1) */
.ah {
    --ah-bg: var(--bg, #F7F8FA); --ah-card: var(--card, #fff); --ah-ink: var(--ink, #151A2D); --ah-text: var(--text, #3B4256);
    --ah-muted: var(--muted, #5B6378); --ah-line: var(--line, #E7E9EF); --ah-soft: var(--soft, #F1F3F6); --ah-accent: var(--accent, #B43E0A);
    --ah-orange: var(--orange, #EE6F00); --ah-peach: var(--peach, #FFF1E6); --ah-green: var(--green, #0B6B3A); --ah-green-bg: var(--green-bg, #E7F6EE);
    --ah-red: var(--red, #B42318); --ah-red-bg: var(--red-bg, #FEF0EE); --ah-r: var(--r, 16px); --ah-r-sm: var(--r-sm, 12px);
    --ah-shadow: var(--shadow, 0 8px 24px rgba(21, 26, 45, .06));
    color: var(--ah-ink); font-family: var(--font, 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    font-size: 16px; line-height: 1.55; padding-bottom: 48px;
}
.ah *, .ah *::before, .ah *::after { box-sizing: border-box; }
.ah a { color: var(--ah-accent); text-decoration: none; }
.ah a:hover { text-decoration: underline; }
.ah h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.ah h2 { font-size: 20px; margin: 0 0 12px; font-weight: 700; }
.ah h3 { font-size: 16px; margin: 0 0 8px; font-weight: 700; }
.ah p { margin: 0 0 12px; }
.ah-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.ah-muted { color: var(--ah-muted); }
.ah-small { font-size: 13px; }

/* buttons and forms */
.ah-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0;
    background: var(--ah-orange); color: #fff !important; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; }
.ah-btn:hover { filter: brightness(.95); }
.ah-btn--ghost { background: var(--ah-card); color: var(--ah-ink) !important; border: 1px solid var(--ah-line); }
.ah-btn--dark { background: var(--ah-ink); }
.ah-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.ah-btn--block { width: 100%; }
.ah-link-btn { background: none; border: 0; padding: 0; color: var(--ah-accent); font: inherit; cursor: pointer; text-decoration: underline; }
.ah-form label, .ah-label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.ah-form .ah-hint { display: block; font-weight: 400; color: var(--ah-muted); font-size: 13px; }
.ah-form input[type=text], .ah-form input[type=email], .ah-form input[type=password], .ah-form input[type=url], .ah-form input[type=date],
.ah-form input[type=search], .ah-form select, .ah-form textarea {
    width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ah-line); border-radius: var(--ah-r-sm); background: #fff; font: inherit; color: var(--ah-ink); }
.ah-form textarea { min-height: 120px; resize: vertical; }
.ah-form input:focus, .ah-form select:focus, .ah-form textarea:focus { outline: 3px solid rgba(238, 111, 0, .3); border-color: var(--ah-orange); }
.ah-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.ah-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.ah-err { color: var(--ah-red); font-size: 13px; margin: 4px 0 0; }
.ah-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ah-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ah-inline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.ah-inline > * { margin: 0 !important; }

/* cards and layout */
.ah-card { background: var(--ah-card); border: 1px solid var(--ah-line); border-radius: var(--ah-r); padding: 20px; box-shadow: var(--ah-shadow); margin: 0 0 16px; }
.ah-card--flat { box-shadow: none; }
.ah-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.ah-card__head h2 { margin: 0; }
.ah-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.ah-col-8 { grid-column: span 8; } .ah-col-4 { grid-column: span 4; } .ah-col-6 { grid-column: span 6; } .ah-col-12 { grid-column: span 12; }
.ah-flash { border-radius: var(--ah-r-sm); padding: 12px 16px; margin: 16px 0; background: var(--ah-green-bg); color: var(--ah-green); font-weight: 600; }
.ah-flash--warn { background: var(--ah-red-bg); color: var(--ah-red); }
.ah-banner { background: var(--ah-ink); color: #fff; padding: 10px 0; font-size: 14px; }
.ah-banner a { color: #fff; text-decoration: underline; }
.ah-empty { text-align: center; padding: 32px 16px; color: var(--ah-muted); }
.ah-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ah-soft); color: var(--ah-text); }
.ah-pill--ok { background: var(--ah-green-bg); color: var(--ah-green); }
.ah-pill--wait { background: var(--ah-peach); color: var(--ah-accent); }
.ah-pill--no { background: var(--ah-red-bg); color: var(--ah-red); }

/* studio header */
.ah-top { background: var(--ah-card); border-bottom: 1px solid var(--ah-line); margin-bottom: 20px; }
.ah-top__row { display: flex; align-items: center; gap: 14px; padding: 18px 0 12px; flex-wrap: wrap; }
.ah-face { width: 56px; height: 56px; border-radius: 14px; background: var(--ah-peach); color: var(--ah-accent); display: grid; place-items: center; font-weight: 800; font-size: 20px; overflow: hidden; flex: none; }
.ah-face img { width: 100%; height: 100%; object-fit: cover; }
.ah-top__name { flex: 1; min-width: 180px; }
.ah-top__name b { font-size: 20px; display: block; line-height: 1.2; }
.ah-switch { display: flex; gap: 6px; align-items: center; }
.ah-switch select { min-height: 36px; border-radius: 999px; border: 1px solid var(--ah-line); padding: 4px 12px; font: inherit; font-size: 14px; background: #fff; max-width: 220px; }
.ah-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 0; }
.ah-tabs::-webkit-scrollbar { display: none; }
.ah-tabs a { white-space: nowrap; padding: 10px 14px; border-bottom: 3px solid transparent; color: var(--ah-text); font-weight: 600; font-size: 15px; text-decoration: none !important; }
.ah-tabs a[aria-current=page] { color: var(--ah-ink); border-bottom-color: var(--ah-orange); }

/* KPIs */
.ah-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 16px; }
.ah-kpi { background: var(--ah-card); border: 1px solid var(--ah-line); border-radius: var(--ah-r); padding: 16px; }
.ah-kpi span { display: block; color: var(--ah-muted); font-size: 13px; font-weight: 600; }
.ah-kpi b { display: block; font-size: 28px; line-height: 1.2; margin: 4px 0; letter-spacing: -.02em; }
.ah-delta { font-size: 13px; font-weight: 700; }
.ah-delta--up, .ah-delta--new { color: var(--ah-green); } .ah-delta--down { color: var(--ah-red); } .ah-delta--flat, .ah-delta--none { color: var(--ah-muted); }
.ah-sub { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ah-sub .ah-pill { font-size: 13px; padding: 6px 12px; }

/* range picker */
.ah-range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ah-range a, .ah-range button.ah-range__custom { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ah-line); background: var(--ah-card); color: var(--ah-text); font-weight: 600; font-size: 14px; text-decoration: none !important; cursor: pointer; font-family: inherit; }
.ah-range a[aria-current=true] { background: var(--ah-ink); color: #fff; border-color: var(--ah-ink); }
.ah-range form { display: none; gap: 6px; align-items: center; flex-wrap: wrap; }
.ah-range form.is-open { display: flex; }
.ah-range input[type=date] { min-height: 36px; border: 1px solid var(--ah-line); border-radius: 10px; padding: 4px 8px; font: inherit; font-size: 14px; }

/* chart and lists */
.ah-chart { width: 100%; height: auto; display: block; }
.ah-chart .bar { fill: var(--ah-orange); }
.ah-chart .prev { fill: none; stroke: var(--ah-muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ah-chart .axis { fill: var(--ah-muted); font-size: 11px; }
.ah-chart .grid { stroke: var(--ah-line); }
.ah-legend { display: flex; gap: 16px; font-size: 13px; color: var(--ah-muted); margin: 8px 0 0; flex-wrap: wrap; }
.ah-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--ah-orange); vertical-align: -1px; margin-right: 6px; }
.ah-legend i.is-prev { background: none; border-top: 2px dashed var(--ah-muted); height: 0; border-radius: 0; vertical-align: 3px; }
.ah-list { list-style: none; margin: 0; padding: 0; }
.ah-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ah-line); }
.ah-list li:last-child { border-bottom: 0; }
.ah-list__main { flex: 1; min-width: 0; }
.ah-list__main a, .ah-list__main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-list__main small { color: var(--ah-muted); }
.ah-list__num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ah-rank { width: 24px; color: var(--ah-muted); font-weight: 700; font-size: 13px; text-align: right; flex: none; }
.ah-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--ah-soft); flex: none; }
.ah-meter { height: 6px; background: var(--ah-soft); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.ah-meter i { display: block; height: 100%; background: var(--ah-orange); border-radius: 99px; }
.ah-spark { width: 100%; max-width: 280px; height: 56px; }
.ah-spark path { fill: none; stroke: var(--ah-orange); stroke-width: 2; }
.ah-spark circle { fill: var(--ah-orange); }

/* steps (join, claim) */
.ah-hero { background: linear-gradient(135deg, var(--ah-peach), #fff 60%); border-bottom: 1px solid var(--ah-line); padding: 40px 0; margin-bottom: 24px; }
.ah-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.ah-hero h1 { font-size: 40px; }
.ah-lead { font-size: 18px; color: var(--ah-text); }
.ah-ticks { list-style: none; padding: 0; margin: 16px 0; }
.ah-ticks li { padding: 6px 0 6px 30px; position: relative; }
.ah-ticks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--ah-green-bg); box-shadow: inset 0 0 0 5px var(--ah-green-bg), inset 0 0 0 9px var(--ah-green); }
.ah-steps { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; counter-reset: s; }
.ah-steps li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ah-muted); font-weight: 600; }
.ah-steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ah-soft); font-size: 13px; }
.ah-steps li.is-done::before { background: var(--ah-green); color: #fff; content: '\2713'; }
.ah-steps li.is-now { color: var(--ah-ink); }
.ah-steps li.is-now::before { background: var(--ah-orange); color: #fff; }
.ah-steps li + li { padding-left: 8px; border-left: 1px solid var(--ah-line); }
.ah-result { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ah-line); }
.ah-result:last-child { border-bottom: 0; }
.ah-result form { margin: 0; }
.ah-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ah-method { border: 1px solid var(--ah-line); border-radius: var(--ah-r); padding: 16px; background: var(--ah-card); }
.ah-method.is-best { border-color: var(--ah-orange); box-shadow: 0 0 0 1px var(--ah-orange) inset; }
.ah-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: 1px; background: var(--ah-soft); border-radius: 10px; padding: 8px 14px; display: inline-block; user-select: all; }
.ah-evidence { font-size: 13px; }
.ah-evidence li { padding: 4px 0; }

/* profile editor */
.ah-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-genres label { margin: 0 !important; font-weight: 500 !important; }
.ah-genres input { position: absolute; opacity: 0; }
.ah-genres span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ah-line); background: #fff; font-size: 14px; cursor: pointer; }
.ah-genres input:checked + span { background: var(--ah-ink); color: #fff; border-color: var(--ah-ink); }
.ah-genres input:focus-visible + span { outline: 3px solid rgba(238, 111, 0, .4); }
.ah-crop { display: none; gap: 16px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.ah-crop.is-on { display: flex; }
.ah-crop__box { width: 220px; height: 220px; border-radius: 16px; overflow: hidden; position: relative; background: var(--ah-soft); touch-action: none; cursor: grab; }
.ah-crop__box img { position: absolute; left: 0; top: 0; max-width: none !important; user-select: none; -webkit-user-drag: none; }
.ah-crop input[type=range] { width: 200px; }
.ah-bio-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.ah-bio-tabs button { border: 1px solid var(--ah-line); background: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ah-bio-tabs button[aria-pressed=true] { background: var(--ah-ink); color: #fff; border-color: var(--ah-ink); }
.ah-bio-pane[hidden] { display: none; }

.ah-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ah-table th, .ah-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ah-line); vertical-align: top; }
.ah-table th { color: var(--ah-muted); font-weight: 600; font-size: 13px; }
.ah-scroll { overflow-x: auto; }

@media (max-width: 900px) {
    .ah-grid { grid-template-columns: 1fr; }
    .ah-col-8, .ah-col-4, .ah-col-6, .ah-col-12 { grid-column: auto; }
    .ah-kpis { grid-template-columns: repeat(2, 1fr); }
    .ah-hero__grid { grid-template-columns: 1fr; }
    .ah-methods { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ah h1, .ah-hero h1 { font-size: 26px; }
    .ah-wrap { padding: 0 16px; }
    .ah-kpi b { font-size: 22px; }
    .ah-row2 { grid-template-columns: 1fr; }
    .ah-card { padding: 16px; }
    .ah-steps li + li { border-left: 0; padding-left: 0; }
    .ah-switch select { max-width: 160px; }
}
