/* account.nekoworld.app: the shared NekoWorld layout (nb.css, loaded first) in the account site's own colours, teal and
   violet, plus the account card, forms and the staff portal's tables. */
:root {
    --bg: #071318;
    --bg2: #0d3a40;
    --card: rgba(210, 255, 250, 0.06);
    --card-hover: rgba(210, 255, 250, 0.11);
    --line: rgba(100, 230, 215, 0.2);
    --text: #ecfcfa;
    --muted: #a3cfcc;
    --pink: #5ee6d4;
    --magenta: #1fa99b;
    --violet: #7a66f0;
    --field: #0b1f24;
    --danger: #e0466e;
}
@media (prefers-color-scheme: light) {
    :root {
        --bg: #eef9f8;
        --bg2: #c6ece7;
        --card: rgba(255, 255, 255, 0.78);
        --card-hover: rgba(255, 255, 255, 0.95);
        --line: rgba(10, 100, 95, 0.16);
        --text: #0a2c30;
        --muted: #3e6c6f;
        --pink: #0d8a80;
        --magenta: #0b7a71;
        --violet: #5544c8;
        --field: #ffffff;
        --danger: #c0264f;
    }
}

.brand-sub { color: var(--pink); }

.acct { width: min(520px, 100%); margin: 24px auto 40px; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-sizing: border-box; font-size: 1.05rem; }
.acct.wide { width: 100%; }
.acct .tab-pane > section:first-child { border-top: 0; margin-top: 4px; }
.acct h1 { margin: 0 0 12px; font-size: 1.5rem; }
.acct h1 b { color: var(--pink); }
.acct h2 { margin: 26px 0 8px; font-size: 1.1rem; color: var(--pink); }
.acct a { color: var(--pink); }
.acct label { display: block; margin: 16px 0 6px; font-weight: 700; font-size: 0.92rem; }
.acct input, .acct select { width: 100%; padding: 10px 12px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--field);
    color: var(--text); font: 400 1rem var(--font); box-sizing: border-box; }
.acct input:focus, .acct select:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.acct .btn { display: block; width: 100%; margin-top: 12px; padding: 11px 16px; border: 0; border-radius: 999px; text-align: center; text-decoration: none;
    color: #fff; font: 700 1rem var(--font); cursor: pointer; background: linear-gradient(135deg, var(--magenta), var(--violet)); box-sizing: border-box; }
.acct .btn.discord { background: #5865f2; }
.acct .btn.stoat { background: #c2410c; }
.acct .btn.small { width: auto; margin-top: 0; padding: 10px 18px; }
.acct .btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--pink); }
.acct .btn.danger { background: var(--danger); }
.acct .hint { color: var(--muted); font-size: 0.85rem; }
.acct .problem { padding: 10px 12px; border-radius: 12px; background: rgba(224, 70, 110, 0.12); border: 1px solid rgba(224, 70, 110, 0.45); font-size: 0.92rem; }
.acct .ok { padding: 10px 12px; border-radius: 12px; background: rgba(95, 224, 160, 0.12); border: 1px solid rgba(95, 224, 160, 0.45); font-size: 0.92rem; }
.acct .or { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--muted); font-size: 0.85rem; }
.acct .or::before, .acct .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.acct .switch { text-align: center; margin-top: 14px; }
.acct section { padding-top: 4px; border-top: 1px solid var(--line); margin-top: 18px; }
.acct section h2 { margin-top: 14px; }
.acct .row { display: flex; gap: 10px; align-items: center; }
.acct .row input { flex: 1; margin-top: 0; }
.acct details { margin: 10px 0; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); }
.acct summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.acct details[open] summary { color: var(--text); }
.acct label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.acct label.check input { width: auto; margin: 0; }
.acct code { padding: 1px 6px; border-radius: 6px; background: var(--field); font-size: 0.9em; overflow-wrap: anywhere; }
.acct .who { display: flex; gap: 14px; align-items: center; }
.acct .face { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; background: var(--field); border: 1px solid var(--line); }
.acct .face.large { width: 112px; height: 112px; }
.acct .face.initial { display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--magenta), var(--violet)); }
.acct .face.large.initial { font-size: 3rem; }
.acct .grow { flex: 1; min-width: 0; }
.acct input[type="file"] { padding: 8px; }
.acct .big { margin: 0; font-size: 1.3rem; font-weight: 800; }
.acct .who .hint { margin: 0; }
.acct .link { margin: 10px 0; }
.acct .qr { text-align: center; }
.acct .qr img { border-radius: 14px; max-width: 100%; height: auto; }
.acct .codes { columns: 2; list-style: none; padding: 0; font-size: 1.05rem; }
.acct .codes li { margin: 4px 0; }
.acct .danger-zone h2 { color: var(--danger); }
.acct .staffbar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.acct .staffbar .hint { margin-left: auto; }
.acct .inline { display: inline; }
.acct .linkish { background: none; border: 0; padding: 0; color: var(--pink); text-decoration: underline; font: inherit; cursor: pointer; }
.acct .scroll { overflow-x: auto; }
.acct table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.acct th, .acct td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.acct th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.acct .facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.acct .facts dt { color: var(--muted); }
.acct .facts dd { margin: 0; overflow-wrap: anywhere; }
/* Favourites and playlists on the Manage page */
.acct .plist summary { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; color: var(--text); }
.acct .plist .play-all { margin: 10px 0 4px; }
.acct .songs { list-style: none; margin: 6px 0; padding: 0; counter-reset: song; }
.acct .songs li { display: flex; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.acct .songs li:last-child { border-bottom: 0; }
.acct .songs li form { margin: 0; }
.acct .play { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 0.8rem;
    background: linear-gradient(135deg, var(--magenta), var(--violet)); }
.acct .play:hover { filter: brightness(1.15); }
.acct .song { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acct .song b, .acct .song small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .song small { color: var(--muted); }
.acct .list-tools { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.acct .list-tools .row { flex-wrap: wrap; }
.acct .list-tools label.check { margin: 0; flex: 1; }
.acct .new-list { margin-top: 14px; }
@media (max-width: 560px) {
    .acct { padding: 20px 16px; }
    .acct .facts { grid-template-columns: 1fr; }
    .acct .facts dd { margin-bottom: 8px; }
    .acct .codes { columns: 1; }
}

/* The account girl beside the sign-in card on wide screens (the card itself stays where it is); hidden on small ones. */
@media (min-width: 1150px) {
    .acct:not(.wide) { position: relative; }
    .acct:not(.wide)::after { content: ""; position: absolute; inset-inline-start: calc(100% + 28px); bottom: 0; width: 330px; aspect-ratio: 706 / 1000;
        background: url("/img/account-girl.webp") bottom center / contain no-repeat; pointer-events: none; }
}

/* Soft edges and a gentle float, like the girl on nekomusic.ca. */
@keyframes girl-float { 50% { transform: translateY(-10px); } }
.acct:not(.wide)::after { /* every edge of the picture fades to nothing (left and right where her hair and the tablet run off it, the top at
       her ears, the bottom quarter where the picture ends), so nothing stops in a straight line */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 80%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 10%, #000 60%, transparent 96%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 80%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 10%, #000 60%, transparent 96%);
    mask-composite: intersect;
    animation: girl-float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .acct:not(.wide)::after { animation: none; } }

/* Home tab: the account at a glance */
.acct .nudge { padding: 10px 14px; border-radius: 12px; background: var(--field); border: 1px dashed var(--line); font-size: 0.92rem; }

/* Privacy Policy and Terms */
.acct h3 { margin: 22px 0 6px; font-size: 1.05rem; color: var(--pink); }
.acct section:has(> h3) { border-top: 0; margin-top: 0; }
.foot-links a { color: var(--muted); }

/* Terms and Privacy Policy to read before agreeing */
.agree { margin: 14px 0; }
.agree-scroll {
    max-height: 240px; overflow-y: auto; padding: 12px 16px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--line); font-size: .9rem; line-height: 1.5;
}
.agree-scroll h2 { font-size: 1.05rem; margin: 0 0 6px; }
.agree-scroll h3 { font-size: .95rem; margin: 12px 0 4px; }
.agree .check { opacity: .4; filter: grayscale(1); transition: opacity .2s, filter .2s; cursor: not-allowed; }
.agree .check input:disabled { cursor: not-allowed; }
.agree.read .check { opacity: 1; filter: none; cursor: pointer; }
button[data-needs-agree]:disabled { opacity: .5; cursor: not-allowed; }
.account-id code { font-size: 1.05rem; letter-spacing: .04em; user-select: all; }
.acct .account-id .btn { display: inline-block; vertical-align: middle; margin: 0 0 0 8px; padding: 6px 16px; }

/* The Home tab's hero: nekobot.ca's (banner with stars, art over its edge, two-tone title, chips, buttons) in teal and
   violet. On Home the hero opens the card, so the card's own "NekoWorld account" heading steps aside. */
:root {
    --accent2: #9b8cff;
    --banner: radial-gradient(2px 2px at 8% 22%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 18% 70%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 31% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 15%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 57% 78%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 33%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 79% 58%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 18%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 94% 82%, #fff 50%, transparent 51%), radial-gradient(circle at 22% 35%, rgba(94, 230, 212, 0.45), transparent 45%),
        radial-gradient(circle at 78% 65%, rgba(124, 92, 255, 0.55), transparent 50%), linear-gradient(135deg, #06262b, #123f4a 50%, #1d1446);
}
.acct:has(#home:not([hidden])) > h1 { display: none; }
.acct .tab-pane > section.hero { margin: -32px -32px 8px; padding: 0 32px 26px; border: 0; border-radius: var(--radius) var(--radius) 0 0; background: none; }
.acct .hero::before { margin: 0 -32px; border-radius: var(--radius) var(--radius) 0 0; }
.acct .hero h1 { margin: 0; }
.acct > .ok ~ .tab-pane > section.hero, .acct > .problem ~ .tab-pane > section.hero { margin-top: 0; border-radius: var(--radius); }
.acct .hero-logo { aspect-ratio: 1; object-fit: cover; }
.acct .hero-logo.hero-face { border-radius: 50%; border: 4px solid var(--bg); height: auto; box-shadow: 0 0 30px rgba(94, 230, 212, 0.35); }
.acct .hero .live a { padding: 5px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; color: var(--text); text-decoration: none; }
.acct .hero .live a:hover { border-color: var(--pink); }
.acct .hero .actions .btn { display: inline-block; width: auto; margin-top: 0; }
.acct .hero .btn:not(.primary) { background: var(--card); border: 1px solid var(--line); color: var(--text); }
@media (max-width: 760px) {
    .acct .tab-pane > section.hero { margin: -32px -32px 8px; padding: 0 18px 22px; }
    .acct .hero::before { margin: 0 -18px; }
}
@media (max-width: 560px) {
    .acct .tab-pane > section.hero { margin: -20px -16px 8px; padding: 0 16px 22px; }
    .acct .hero::before { margin: 0 -16px; }
}

/* Where you're signed in: one tidy card per session, a checkbox to pick which to sign out, a badge on this device. */
.sessions { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.session { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.session .check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0; cursor: pointer; border-radius: 12px; }
.session .check:hover { background: var(--card-hover); }
.session.current { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.session input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--pink); }
.session .badge { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: var(--pink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* Live "do the two passwords match" note under a confirm box: not-matching reads in the danger colour, matching in the accent. */
.match-note { margin: 4px 0 0; font-size: .9rem; font-weight: 600; }
.match-note[data-state="ok"] { color: var(--pink); }
.match-note[data-state="ok"]::before { content: "\2714\00a0"; }
.match-note[data-state="bad"] { color: var(--danger); }
