/* account.novelloplayer.com: the sign-in pages, the account area and /link, on top of Novello.Design's novello.css and
   site-shell.css (the page frame, the masthead, the footer: shared with novelloplayer.com).

   Every colour, font, radius and shadow comes from the tokens in novello.css; nothing here redefines one. */

/* ---- Sign-in pages ---------------------------------------------------------------------------------------------- */

.auth { position: relative; display: flex; flex-direction: column; align-items: center; padding: 40px var(--site-gutter) 88px; }
.auth__glow {
    position: absolute;
    inset: 0 0 auto;
    height: 440px;
    pointer-events: none;
    background:
        radial-gradient(46% 60% at 50% 0%, rgba(47, 107, 240, .24), transparent 70%),
        radial-gradient(28% 40% at 66% 8%, rgba(91, 234, 162, .1), transparent 70%);
}
.auth__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-2);
}
@media (min-width: 640px) { .auth__card { padding: 40px 36px; } }

.auth__mark { width: 40px; height: auto; }
.auth__title { font-size: 40px; line-height: .95; }
.auth__lead { margin-top: -6px; color: var(--muted); }
.auth__below { position: relative; margin-top: 20px; color: var(--muted); font-size: 15px; text-align: center; }
.auth__context { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--cyan); }
.auth__card .hint { margin-top: 6px; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.g-mark { color: var(--text); font: 700 17px/1 var(--font-body); }

.notice > .icon { margin-top: 2px; }
.notice--good > .icon { color: var(--good); }
.notice--warn > .icon { color: var(--warn); }
.notice--bad > .icon { color: var(--bad); }
.notice p + p { margin-top: 6px; }

/* ---- Account ------------------------------------------------------------------------------------------------------- */

/* The pages sit beside a menu: one card of links, sticky on a wide screen; on a phone it folds behind a bar that names
   the page you're on (a checkbox, as the masthead's menu). */
.acct { padding: 24px 0 96px; }
@media (min-width: 960px) { .acct { padding-top: 40px; } }

.acct__layout { display: grid; gap: 20px; }
@media (min-width: 960px) { .acct__layout { grid-template-columns: 252px minmax(0, 1fr); gap: 40px; align-items: start; } }
.acct__main { min-width: 0; max-width: 880px; }
.acct__main--alone { max-width: 780px; margin: 0 auto; }

.acct-side { position: relative; }
@media (min-width: 960px) { .acct-side { position: sticky; top: calc(var(--site-header) + 24px); } }

.acct-side__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.acct-side__toggle-icon { color: var(--cyan); }
.acct-side__toggle-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.25; }
.acct-side__toggle-kicker { color: var(--muted); font-size: 12.5px; }
.acct-side__toggle-name { overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.acct-side__toggle-more { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
.acct-side__toggle-more .icon { transition: transform .2s var(--ease); }
.acct-side__check:checked ~ .acct-side__toggle { border-color: var(--accent-border); }
.acct-side__check:checked ~ .acct-side__toggle .acct-side__toggle-more .icon { transform: rotate(180deg); }
.acct-side__check:focus-visible ~ .acct-side__toggle { outline: 2px solid var(--cyan); outline-offset: 3px; }

.acct-nav {
    display: none;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}
.acct-side__check:checked ~ .acct-nav { display: block; }

@media (min-width: 960px) {
    .acct-side__check, .acct-side__toggle { display: none; }
    .acct-nav { display: block; margin: 0; }
}

.acct-nav__who { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0 0 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line-soft); }
.acct-nav__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #04101f;
    font: 700 18px/1 var(--font-display);
}
.acct-nav__email { min-width: 0; overflow: hidden; color: var(--text-body); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.acct-nav__section + .acct-nav__section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.acct-nav__head { margin: 0 0 6px; padding: 0 10px; color: var(--faint); font: 600 12px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.acct-nav__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }

.acct-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    color: var(--text-body);
    font: 500 15.5px/1.2 var(--font-body);
    text-align: left;
    cursor: pointer;
}
.acct-nav__link .icon { color: var(--faint); }
.acct-nav__link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.acct-nav__link:hover .icon { color: var(--muted); }
.acct-nav__link.is-active { background: var(--accent-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--cyan); }
.acct-nav__link.is-active .icon { color: var(--cyan); }
.acct-nav__link--danger:hover { color: var(--bad); }
.acct-nav__link--danger.is-active { background: var(--bad-soft); color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }
.acct-nav__link--danger.is-active .icon, .acct-nav__link--danger:hover .icon { color: var(--bad); }
.acct-nav__out { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* Each page's head: its name, a line on what it's for, and at most one action. */
.acct-page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.acct-page__head .btn { flex: none; }
.acct-page__title { font-size: clamp(36px, 5vw, 52px); line-height: .92; overflow-wrap: anywhere; }
.acct-page__lead { max-width: 42em; margin-top: 10px; color: var(--text-body); font-size: 16.5px; }
.acct-page__subhead { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 16px; }
.acct-page__also { margin-top: 0; font-size: 14.5px; }
.acct-page__note { margin-top: 6px; }

.acct__email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; overflow-wrap: anywhere; }
.acct__notice { margin-bottom: 20px; }
.acct__ban strong { display: block; color: var(--text); font-size: 17px; }

/* The overview: one tile per part of the menu. */
.tiles { display: grid; gap: 16px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}
@media (min-width: 640px) { .tile { padding: 24px; } }
.tile > .btn { align-self: flex-start; margin-top: auto; }
.tile--glow { border-color: var(--accent-border); background: var(--brand-gradient-soft), var(--surface); box-shadow: 0 30px 70px -40px rgba(30, 155, 242, .55); }
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile__title { display: flex; align-items: center; gap: 8px; color: var(--text); font: 600 15px/1.2 var(--font-body); letter-spacing: 0; }
.tile__title .icon { color: var(--cyan); }
.tile__more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; white-space: nowrap; }
.tile__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--text); font: 700 46px/.9 var(--font-display); text-transform: uppercase; }
.tile__big .panel__of { text-transform: none; }
.tile__list { margin: 0; padding: 0; list-style: none; }
.tile__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.tile__list-name { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }

/* How many TVs the plan takes, over the list of them. */
.usage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.usage__count { color: var(--muted); font-size: 15px; }
.usage__count strong { margin-right: 4px; color: var(--text); font: 700 30px/1 var(--font-display); }
.usage__meter { flex: 1 1 160px; max-width: 320px; }

/* Chips (the Help page's, above): here a jump list, or the pick of one group or TV. */
.acct__main .chips { margin-top: 0; }
.acct__main .chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); font-size: 14px; font-weight: 500; }
.chip .icon { color: var(--faint); }
.chip.is-active { border-color: var(--accent-border); background: var(--accent-soft); color: var(--text); }
.chip.is-active .icon { color: var(--cyan); }

.picker { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.picker__row { display: flex; flex-direction: column; gap: 8px; }
.picker__label { color: var(--faint); font: 600 12px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 640px) {
    .picker__row { flex-direction: row; align-items: center; gap: 16px; }
    .picker__label { flex: none; width: 104px; }
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}
@media (min-width: 640px) { .panel { padding: 28px; } }
.panel .btn { align-self: flex-start; }
.panel--danger { border-color: color-mix(in srgb, var(--bad) 32%, var(--line)); }
.panel__title { font-size: 24px; line-height: 1; letter-spacing: .03em; }
.panel__of { color: var(--muted); font: 500 16px/1.2 var(--font-body); }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.panel__head .panel__title + p { margin-top: 6px; }
.panel__head > .grow { flex: 1 1 12rem; }
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.panel .panel__foot .btn { align-self: center; }
.panel__foot .hint { margin: 0; }

/* A list of settings: the name and a line on it, its control beside it on a wide screen, under it on a phone. */
.setrows { margin: 0; padding: 0; list-style: none; }
.setrow { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.setrow:first-child { padding-top: 4px; border-top: 0; }
@media (min-width: 760px) { .setrow { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } }
.setrow__label { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; color: var(--text); }
.setrow__name { font-weight: 600; }
.setrow__control { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.field--sm { width: auto; min-width: 180px; min-height: 36px; padding: 6px 12px; border-radius: var(--r-sm); font-size: 14.5px; }

/* One choice of a few, as a row of buttons (radio buttons underneath, so it posts as a form). */
.seg { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--inset); }
.seg__opt { position: relative; display: flex; flex: 1 1 auto; }
.seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span {
    display: grid;
    flex: 1;
    place-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}
.seg__opt:hover span { color: var(--text); }
.seg__opt input:checked + span { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-border); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 1px; }
@media (min-width: 760px) { .seg { flex-wrap: nowrap; } }

/* Cards side by side: the home groups. */
.cards { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards .panel { margin-bottom: 0; }
.members { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.members li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-2); color: var(--text-body); font-size: 14px; }
.members .icon { color: var(--cyan); }

/* Everything on the plan: one card per part, in columns. */
.plangroups { columns: 2 320px; column-gap: 16px; }
.plangroup { break-inside: avoid; gap: 4px; scroll-margin-top: calc(var(--site-header) + 16px); }
.plangroup .allvalues__group { margin: 0 0 6px; }
.plangroup .allvalues__list > div:last-child { border-bottom: 0; }

.planpanel.card--glow { box-shadow: 0 30px 70px -40px rgba(30, 155, 242, .55); }
.planpanel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.planpanel__name { color: var(--text); font: 700 60px/.9 var(--font-display); text-transform: uppercase; }
.planpanel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.planpanel__actions:empty { display: none; }

.meter { height: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--inset); }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }

.empty {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    color: var(--muted);
}
.empty .icon { color: var(--faint); }

.tvlist { list-style: none; margin: 0; padding: 0; }
.tvrow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
}
.tvrow:first-child { padding-top: 4px; border-top: 0; }
@media (min-width: 760px) { .tvrow { grid-template-columns: auto minmax(0, 1fr) auto; } }

.tvrow__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-2);
    color: var(--cyan);
}
.tvrow__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font: 600 18px/1.3 var(--font-body);
    letter-spacing: 0;
}
.tvrow__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 4px 0 0; padding: 0; font-size: 14.5px; }
.tvrow__facts li + li { position: relative; }
.tvrow__facts li + li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 12px;
    transform: translateY(-50%);
    background: var(--line-strong);
}
.tvrow__when { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.tvrow__ban { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--bad); font-size: 14px; }

.tvrow__actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
@media (min-width: 760px) { .tvrow__actions { grid-column: 3; justify-content: flex-end; } }

/* Rename and Remove open in place, no script. */
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop[open] > summary { border-color: var(--accent-border); color: var(--text); }
.pop__panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: var(--surface-2);
    font-size: 15px;
}
.pop__panel .btn { align-self: flex-start; }
.pop[open] { flex-basis: 100%; }

@media (min-width: 760px) {
    .pop[open] { flex-basis: auto; }
    .pop__panel { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; width: 300px; margin: 0; box-shadow: var(--shadow-2); }
}

.includes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    background: var(--line-soft);
}
@media (min-width: 640px) { .includes { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.includes__item { padding: 14px 16px; background: var(--surface); }
.includes dt { color: var(--muted); font-size: 13.5px; }
.includes dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 4px 0 0;
    color: var(--text);
    font: 700 21px/1.1 var(--font-display);
    letter-spacing: .02em;
    text-transform: uppercase;
}
.includes dd .tag { font-family: var(--font-body); }

.allvalues > summary { color: var(--accent); font-weight: 600; cursor: pointer; }
.allvalues__group { margin: 22px 0 6px; color: var(--cyan); font: 700 16px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.allvalues__list { margin: 0; }
.allvalues__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.allvalues__list dd { margin: 0; color: var(--text); font-weight: 500; text-align: right; }

.backlink { display: inline-block; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.backlink::before { content: "\2039\00a0"; }

.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
/* A button beside a field lines up with the field, not its label (.panel .btn would lift it to the top). */
.panel .form-row > .btn { align-self: flex-end; }
.inline-form { display: inline; margin-left: 2px; }

/* ---- Two-step sign-in ---------------------------------------------------------------------------------------------- */

/* Where it stands, at the top of /account/security. */
.twostep__row { display: flex; align-items: flex-start; gap: 16px; }
@media (min-width: 640px) { .twostep__row { align-items: center; } }
.twostep__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-2);
    color: var(--faint);
}
@media (min-width: 640px) { .twostep__icon { width: 56px; height: 56px; } }
.twostep__icon--on {
    border-color: color-mix(in srgb, var(--good) 40%, transparent);
    background: var(--good-soft);
    color: var(--good);
}
.twostep__state { color: var(--text); font: 700 clamp(32px, 6vw, 44px)/.92 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.twostep__row .tag + .twostep__state { margin-top: 8px; }
.twostep__how { margin-top: 6px; color: var(--text-body); font-size: 15.5px; }

/* The two ways to turn it on, side by side on a wide screen. */
.ways { display: grid; gap: 14px; }
@media (min-width: 640px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.way {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-2);
    font-size: 15.5px;
}
.way--best { border-color: var(--accent-border); background: var(--brand-gradient-soft); }
.way > form, .way > .btn { margin-top: auto; }
.way__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.way__icon { display: inline-flex; color: var(--cyan); }
.way__title { color: var(--text); font: 600 18px/1.3 var(--font-body); letter-spacing: 0; }
.way__warn { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--warn); }
.way__warn .icon { margin-top: 1px; }

/* Setting up the app: three numbered steps. */
.setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: setup; }
.setup__step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px 22px 66px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    counter-increment: setup;
}
.setup__step::before {
    content: counter(setup);
    position: absolute;
    left: 18px;
    top: 20px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent-border);
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--text);
    font: 700 18px/1 var(--font-display);
}
@media (min-width: 640px) { .setup__step { padding: 28px 28px 28px 78px; } .setup__step::before { left: 26px; top: 26px; } }
.setup__title { font-size: 26px; line-height: 1; letter-spacing: .03em; }
.setup__scan { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) { .setup__scan { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }
.setup__key { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.setup__key .hint { margin: 0; }

/* The QR code is drawn dark on light, as scanners expect, whatever the page's theme. */
.qr { width: 100%; max-width: 200px; padding: 6px; border-radius: var(--r-md); background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }

.keytext code {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--inset);
    color: var(--text);
    font-size: 17px;
    letter-spacing: .08em;
    word-spacing: .3em;
    overflow-wrap: anywhere;
    user-select: all;
}

/* Recovery codes, shown once. */
.codes__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    background: var(--inset);
}
@media (min-width: 640px) { .codes__list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px; } }
.codes__list code { color: var(--text); font-size: 16px; letter-spacing: .06em; }
.codes__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 639px) { .codes__actions .btn { flex: 1 1 100%; } }

/* The sign-in step's choice of method: one tile per way the account has. */
.methods { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-2);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}
.method .icon { color: var(--faint); }
.method:hover { border-color: var(--line-strong); color: var(--text); text-decoration: none; }
.method[aria-current="true"] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--text); }
.method[aria-current="true"] .icon { color: var(--cyan); }

.code-field--recovery { font-size: 22px; letter-spacing: .12em; }

/* ---- Link a TV ---------------------------------------------------------------------------------------------------- */

.linkpage { position: relative; padding: 48px 0 96px; }
.linkpage__glow {
    position: absolute;
    inset: -10% 0 auto;
    height: 640px;
    pointer-events: none;
    background:
        radial-gradient(42% 50% at 40% 28%, rgba(30, 155, 242, .24), transparent 70%),
        radial-gradient(26% 36% at 70% 20%, rgba(91, 234, 162, .1), transparent 70%);
}
.linkpage__inner { position: relative; max-width: calc(660px + 2 * var(--site-gutter)); display: flex; flex-direction: column; gap: 24px; }
.linkpage__title { font-size: clamp(52px, 9vw, 92px); line-height: .9; }
.linkpage__lead { font-size: 18px; }

.codeform__row { display: flex; flex-wrap: wrap; gap: 12px; }
.codeform .hint { margin-top: 8px; }

.code-field {
    flex: 1 1 240px;
    min-height: 66px;
    padding: 8px 12px;
    font: 600 34px/1 var(--font-mono);
    letter-spacing: .3em;
    text-align: center;
    text-transform: uppercase;
}
.code-field::placeholder { color: var(--line-strong); letter-spacing: .3em; }
.code-field--sm { min-height: 56px; font-size: 26px; }
@media (max-width: 639px) { .codeform__row .btn { flex: 1 1 100%; } }

.linkcard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-2);
}
@media (min-width: 640px) { .linkcard { padding: 32px; } }

.linkcard__code { display: flex; flex-wrap: wrap; gap: 6px; }
.linkcard__code span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 54px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--inset);
    color: var(--text);
    font: 600 28px/1 var(--font-mono);
}
@media (min-width: 640px) { .linkcard__code { gap: 8px; } .linkcard__code span { width: 50px; height: 64px; font-size: 32px; } }

.linkcard__tv {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-2);
}
.linkcard__tv > .icon { color: var(--cyan); }
.linkcard__name { color: var(--text); font: 700 26px/1.1 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.linkcard__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) { .linkcard__actions .btn, .linkcard .hero__actions .btn { flex: 1 1 100%; } }
.linkcard .hint { margin: 0; }

.linkcard--done { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.linkcard--done h2 { font-size: 52px; line-height: .95; }
.linkcard__check {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid color-mix(in srgb, var(--good) 40%, transparent);
    border-radius: 50%;
    background: var(--good-soft);
    color: var(--good);
}
.linkcard__h { font-size: 28px; line-height: 1; }
.linkcard__google { margin-top: 14px; max-width: 360px; }

.notice__actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }

/* ---- Report a problem or idea (api docs/SUPPORT-TICKETS.md §1) --------------------------------------------------- */

.report-form { display: flex; flex-direction: column; gap: 18px; }
.report-kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.report-kinds legend { margin-bottom: 8px; }
.report-kind { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.report-kind input { position: absolute; opacity: 0; pointer-events: none; }
.report-kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.report-kind:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.report-kind__name { font-weight: 600; color: var(--text); }
.report-kind__hint { font-size: 13px; color: var(--muted); }
.report-text { width: 100%; resize: vertical; line-height: 1.5; }
.report-lead { margin: 0; color: var(--text); }
.report-count.is-over { color: var(--bad); }
.report-actions { display: flex; justify-content: flex-end; }
.report-sent { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* Which parts show follows the kind picked: no script needed. */
.report-only { display: none; }
.report-form:has(input[name=kind][value=bug]:checked) .report-only--bug,
.report-form:has(input[name=kind][value=suggestion]:checked) .report-only--suggestion,
.report-form:has(input[name=kind][value=billing]:checked) .report-only--billing,
.report-form:has(input[name=kind][value=other]:checked) .report-only--other { display: block; }
label.report-only.switch-row { display: none; }
.report-form:has(input[name=kind][value=bug]:checked) label.report-only--bug,
.report-form:has(input[name=kind][value=suggestion]:checked) label.report-only--suggestion { display: flex; gap: 10px; align-items: center; }
.report-form:has(input[name=kind][value=bug]:checked) label .report-only--bug,
.report-form:has(input[name=kind][value=suggestion]:checked) label .report-only--suggestion,
.report-form:has(input[name=kind][value=billing]:checked) label .report-only--billing,
.report-form:has(input[name=kind][value=other]:checked) label .report-only--other { display: inline; }

/* The rights notice: red, with its icon (not colour alone), never folded away. */
.report-rights { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 10px;
    color: var(--bad); background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); }
.report-rights p { margin: 0; color: var(--text); }
.report-rights strong { color: var(--bad); }

/* The markup editor (js/markup.js). */
.markup { position: fixed; inset: 0; z-index: 100; background: rgba(2, 6, 14, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.markup__box { background: var(--surface, #0b1220); border: 1px solid var(--line); border-radius: 16px; padding: 16px; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.markup__title { margin: 0; font-weight: 600; color: var(--text); }
.markup__rights { margin: 0; font-size: 13px; color: var(--bad); }
.markup__bar, .markup__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.markup__actions { justify-content: flex-end; }
.markup__bar [aria-pressed="true"] { outline: 2px solid var(--accent); }
.markup__colour { width: 32px; min-width: 32px; padding: 0; border-radius: 999px; }
.markup__stage { overflow: auto; min-height: 0; flex: 1; display: flex; justify-content: center; }
.markup__canvas { max-width: 100%; max-height: 70vh; touch-action: none; cursor: crosshair; border-radius: 8px; }
