/* ==========================================================================
   Lady Jubilee Collections
   --------------------------------------------------------------------------
   TWO SKINS, ONE FILE.

   body.app   — HER app. Dark, full-bleed, thumb-first, with one big create
                button in the middle of the bottom bar. She uses TikTok all
                day, so the POSTURE is familiar on purpose: dark ground, media
                edge to edge, a centre button that means "make something".
                The colours, marks and wording are entirely ours.

   body.shop  — the customers' shop. Light, dense, Jumia-shaped: a tight card
                grid, bold prices, and one orange Buy button on every card.

   Numbers throughout are set for an older person holding a phone at arm's
   length: 18px base, 56px minimum tap target, 72px for anything that matters,
   and status is always a word as well as a colour.
   ========================================================================== */

:root {
    /* Brand, taken from the logo: a black gown, a gold J, a white diamond.
       The names are historical - the values are what the artwork actually is. */
    --plum:       #241C18;   /* deep charcoal-brown, the gown */
    --plum-lift:  #3A2E26;
    --plum-deep:  #14100E;   /* near-black, the page behind everything */
    --gold:       #C9A227;   /* the J */
    --gold-lift:  #E3C05A;
    --gold-deep:  #A8843C;
    --gold-soft:  #F0D98A;

    /* HER APP - light by default.
       She asked for light, and light is also what most phones are set to.
       The dark set lives in the two blocks below: one for a phone set to dark
       (unless she has explicitly chosen light), one for her own choice of dark.
       Every colour is defined HERE first, so nothing is only defined inside a
       media query and nothing can go undefined. */
    --app-bg:     #FAF7F1;
    --app-raise:  #FFFFFF;
    --app-raise2: #F1EBE0;
    --app-line:   #E3DACB;
    --app-ink:    #1B1714;
    --app-dim:    #6C6255;
    --app-bar:    rgba(255, 253, 250, .94);
    --app-hint:   #9A8C7C;
    --app-shadow: 0 1px 3px rgba(60, 45, 20, .07);
    --switch-off: #CFC6B8;

    /* Words on tinted panels. These need different values per theme:
       a pale mint reads on black and vanishes on paper. */
    --ok-text:    #12603A;
    --bad-text:   #8A1C19;
    --info-text:  #164B85;
    --warn-text:  #7A4E05;

    /* The shop (light) */
    --bg:         #FFFDFA;
    --card:       #FFFFFF;
    --ink:        #241820;
    --ink-dim:    #6B5A63;
    --line:       #E6DECF;
    --blush:      #FAF6EE;

    /* Meaning */
    --green:      #1DB954;
    --green-deep: #12833B;
    --wa:         #25D366;
    --buy:        #F68B1E;      /* the marketplace orange Nigerian shoppers read as "buy" */
    --buy-deep:   #D9750C;
    --amber:      #E0A526;
    --red:        #E5484D;
    --blue:       #4C9AFF;

    --r:          18px;
    --r-sm:       12px;
    --r-lg:       26px;

    --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* The phone is set to dark, and she has not asked for light. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --app-bg:     #12100E;
        --app-raise:  #1E1A17;
        --app-raise2: #2A2521;
        --app-line:   #3A332C;
        --app-ink:    #FFFFFF;
        --app-dim:    #ADA398;
        --app-bar:    rgba(18, 16, 14, .94);
        --app-hint:   #7C6F62;
        --app-shadow: none;
        --switch-off: #4A4239;

        --ok-text:    #6FE39B;
        --bad-text:   #FF9A9C;
        --info-text:  #A5CBFF;
        --warn-text:  #F2CE79;
    }
}

/* She tapped the moon. This wins whatever the phone says. */
:root[data-theme="dark"] {
    --app-bg:     #12100E;
    --app-raise:  #1E1A17;
    --app-raise2: #2A2521;
    --app-line:   #3A332C;
    --app-ink:    #FFFFFF;
    --app-dim:    #ADA398;
    --app-bar:    rgba(18, 16, 14, .94);
    --app-hint:   #7C6F62;
    --app-shadow: none;
    --switch-off: #4A4239;

    --ok-text:    #6FE39B;
    --bad-text:   #FF9A9C;
    --info-text:  #A5CBFF;
    --warn-text:  #F2CE79;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ==========================================================================
   HER APP
   ========================================================================== */

body.app {
    background: var(--app-bg);
    color: var(--app-ink);
    font-size: 18px;
    min-height: 100vh;
}
body.app.has-bar { padding-bottom: 104px; }

/* ---- Top bar ---- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    background: var(--app-bar);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--app-line);
}
.topbar-title {
    flex: 1; margin: 0; text-align: center;
    font-size: 18px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-btn {
    display: grid; place-items: center;
    width: 46px; height: 46px; flex: 0 0 auto;
    border-radius: 50%;
    color: var(--app-ink); text-decoration: none;
    background: transparent; border: none; cursor: pointer;
}
.topbar-btn:active { background: var(--app-raise2); }
.topbar-btn svg { width: 25px; height: 25px; }
.topbar-mark {
    width: 46px; height: 46px; flex: 0 0 auto;
    display: grid; place-items: center;
}
.topbar-mark img { width: 38px; height: 38px; object-fit: contain; }

.content { max-width: 620px; margin: 0 auto; padding: 16px 16px 24px; }
.content-wide { max-width: 1000px; }
.content-plain { max-width: 440px; padding-top: 44px; }

/* ---- Bottom bar with the create button ---- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: var(--app-bar);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--app-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 76px;
    color: var(--app-dim); text-decoration: none;
    font-size: 11px; font-weight: 700; letter-spacing: .2px;
}
.tabbar-ic svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar-item.is-active { color: var(--app-ink); }

/* The one button that makes something. Wide, gold-edged, unmissable. */
.tabbar-create {
    display: grid; place-items: center;
    min-height: 76px; text-decoration: none;
}
.tabbar-create-in {
    display: grid; place-items: center;
    width: 62px; height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--gold-lift), var(--gold));
    box-shadow: 0 4px 16px rgba(201, 162, 39, .38);
}
.tabbar-create-in svg { width: 26px; height: 26px; fill: none; stroke: #1A1512; stroke-width: 2.8; stroke-linecap: round; }
.tabbar-create:active .tabbar-create-in { transform: scale(.94); }

/* ---- Icons ---- */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---- Type ---- */
.app .h1   { font-size: 27px; font-weight: 800; margin: 6px 0 6px; letter-spacing: -.4px; }
.app .h2   { font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.app .lead { font-size: 17px; color: var(--app-dim); margin: 0 0 20px; }
.app .muted { color: var(--app-dim); }
.small { font-size: 15px; }

/* ---- Cards ---- */
.app .card {
    background: var(--app-raise);
    border: 1px solid var(--app-line);
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--app-shadow);
}
.card-tight { padding: 14px; }

/* ---- Buttons ---- */
.btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 60px;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: var(--r);
    font: inherit; font-size: 18px; font-weight: 700;
    text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .08s ease;
}
.btn:active { transform: scale(.985); }
.btn + .btn { margin-top: 12px; }
.btn .ic { width: 24px; height: 24px; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

.app .btn         { background: var(--app-raise2); color: var(--app-ink); }
.app .btn-outline { background: transparent; border-color: var(--app-line); color: var(--app-ink); }
.app .btn-quiet   { background: transparent; color: var(--app-dim); min-height: 52px; font-weight: 600; }

/* Gold on black IS the logo, so the main action is gold with dark text.
   A dark button would vanish into a dark page. */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-lift), var(--gold)) !important;
    color: #1A1512 !important;
    box-shadow: 0 4px 16px rgba(201, 162, 39, .28);
}
.btn-primary:active { background: var(--gold-deep) !important; }
.btn-green   { background: var(--green) !important; color: #fff !important; }
.btn-green:active { background: var(--green-deep) !important; }
.btn-wa      { background: var(--wa) !important; color: #fff !important; }
.btn-danger  { background: transparent !important; border-color: rgba(229,72,77,.5) !important; color: var(--red) !important; }
.btn-sm      { min-height: 46px; font-size: 15px; padding: 8px 14px; width: auto; }

/* The hero create button on Home. */
.btn-hero {
    min-height: 120px; font-size: 23px; border-radius: var(--r-lg);
    flex-direction: column; gap: 5px;
    background: linear-gradient(135deg, var(--gold-lift), var(--gold)) !important;
    color: #1A1512 !important;
    box-shadow: 0 10px 30px rgba(201, 162, 39, .3);
    border: none !important;
}
.btn-hero .ic { width: 36px; height: 36px; stroke-width: 2.2; }
.btn-hero small { font-size: 14px; font-weight: 500; opacity: .88; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { margin-top: 0; }

/* ---- Home tiles ---- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 14px; }
.tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
    min-height: 106px; padding: 15px;
    background: var(--app-raise); border: 1px solid var(--app-line);
    border-radius: var(--r);
    text-decoration: none; color: var(--app-ink);
    font-weight: 700; font-size: 16px;
}
.tile:active { background: var(--app-raise2); }
.tile .ic { width: 26px; height: 26px; color: var(--gold); }
.tile small { font-weight: 500; font-size: 13px; color: var(--app-dim); line-height: 1.35; }

/* ---- Stat strip ---- */
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 16px 0; }
.stat {
    background: var(--app-raise); border: 1px solid var(--app-line);
    border-radius: var(--r-sm); padding: 14px 8px; text-align: center;
    text-decoration: none; color: var(--app-ink);
}
.stat-n { font-size: 25px; font-weight: 800; line-height: 1.1; }
.stat-l { font-size: 12px; color: var(--app-dim); margin-top: 3px; }

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.label { display: block; font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.hint  { font-size: 14px; color: var(--app-dim); margin: -1px 0 9px; line-height: 1.45; }
.shop .hint { color: var(--ink-dim); }

.input, .textarea, .select {
    width: 100%; min-height: 58px;
    padding: 14px 16px;
    font: inherit; font-size: 18px;
    border-radius: var(--r-sm);
    -webkit-appearance: none; appearance: none;
}
.app .input, .app .textarea, .app .select {
    color: var(--app-ink);
    background: var(--app-raise2);
    border: 2px solid var(--app-line);
}
.app .input::placeholder, .app .textarea::placeholder { color: var(--app-hint); }
.app .input:focus, .app .textarea:focus, .app .select:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .22);
}
.textarea { min-height: 140px; line-height: 1.5; resize: vertical; }

/* The price box: money sign glued to the front so it is unmistakable. */
.money-wrap { display: flex; align-items: stretch; }
.money-sign {
    display: grid; place-items: center;
    padding: 0 15px; min-width: 66px;
    background: var(--app-raise2);
    border: 2px solid var(--app-line); border-right: none;
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    font-size: 17px; font-weight: 800; color: var(--gold);
}
.money-wrap .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 22px; font-weight: 700; }

/* ---- File picker ---- */
.picker {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 9px; min-height: 240px; padding: 24px; text-align: center;
    background: var(--app-raise);
    border: 3px dashed var(--app-line);
    border-radius: var(--r); cursor: pointer;
}
.picker:active { border-color: var(--gold); background: var(--app-raise2); }
.picker .ic { width: 50px; height: 50px; color: var(--gold); stroke-width: 1.6; }
.picker-title { font-size: 20px; font-weight: 800; }
.picker-sub   { font-size: 15px; color: var(--app-dim); max-width: 260px; }
.picker input[type=file] { display: none; }

.preview { position: relative; border-radius: var(--r); overflow: hidden; background: #000; }
.preview img, .preview video { width: 100%; max-height: 58vh; object-fit: contain; background: #000; }
.preview-change {
    position: absolute; right: 12px; bottom: 12px;
    display: flex; align-items: center; gap: 8px;
    padding: 11px 18px; min-height: 48px;
    background: rgba(0,0,0,.75); color: #fff;
    border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
    font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}

/* ---- Platform switches ---- */
.chan {
    display: flex; align-items: center; gap: 13px;
    padding: 14px; min-height: 80px;
    background: var(--app-raise);
    border: 2px solid var(--app-line);
    border-radius: var(--r); margin-bottom: 10px; cursor: pointer;
}
.chan.is-on { border-color: var(--gold); background: var(--app-raise2); }
.chan.is-off-limits { opacity: .45; }
.chan-logo {
    width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
}
.chan-logo.facebook  { background: #1877F2; }
.chan-logo.instagram { background: linear-gradient(135deg, #F9CE34, #EE2A7B 50%, #6228D7); }
.chan-logo.tiktok    { background: #000; border: 1px solid #444; }
.chan-logo.whatsapp_status { background: var(--wa); }
.chan-body { flex: 1; min-width: 0; }
.chan-name { font-size: 17px; font-weight: 700; }
.chan-note { font-size: 13px; color: var(--app-dim); line-height: 1.35; }
.chan input[type=checkbox] { display: none; }

.switch {
    width: 58px; height: 34px; flex: 0 0 auto;
    background: var(--switch-off); border-radius: 999px; position: relative;
    transition: background .16s ease;
}
.switch::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4);
    transition: transform .16s ease;
}
.chan.is-on .switch { background: var(--green); }
.chan.is-on .switch::after { transform: translateX(24px); }

.checkrow {
    display: flex; align-items: center; gap: 12px;
    min-height: 54px; font-size: 17px; font-weight: 600; cursor: pointer;
}
.checkrow input { width: 25px; height: 25px; accent-color: var(--gold); }

/* ---- Status lines ---- */
.status-line {
    display: flex; align-items: center; gap: 13px;
    padding: 14px; min-height: 74px;
    background: var(--app-raise); border: 1px solid var(--app-line);
    border-radius: var(--r); margin-bottom: 10px;
}
.status-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.status-ic .ic { width: 23px; height: 23px; stroke-width: 2.5; }
.status-body { flex: 1; min-width: 0; }
.status-name { font-size: 16px; font-weight: 700; display: block; }
.status-text { font-size: 15px; font-weight: 700; display: block; }
.status-note { font-size: 13px; color: var(--app-dim); line-height: 1.4; margin-top: 2px; display: block; }

.st-ok      .status-ic { background: rgba(29,185,84,.16);  color: var(--ok-text); }
.st-ok      .status-text { color: var(--ok-text); }
.st-sending .status-ic { background: rgba(76,154,255,.16); color: var(--info-text); }
.st-sending .status-text { color: var(--info-text); }
.st-hand    .status-ic { background: rgba(224,165,38,.18); color: var(--warn-text); }
.st-hand    .status-text { color: var(--warn-text); }
.st-bad     .status-ic { background: rgba(229,72,77,.16);  color: var(--bad-text); }
.st-bad     .status-text { color: var(--bad-text); }
.st-skip    .status-ic { background: var(--app-raise2);    color: var(--app-dim); }
.st-skip    .status-text { color: var(--app-dim); }

.spinner {
    width: 21px; height: 21px; border-radius: 50%;
    border: 3px solid currentColor; border-right-color: transparent;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   Video player — the same shape as the Apex Cyberhub lesson player, in this
   shop's colours. Ported rather than reinvented so anything learned there
   about phones still holds here.
   ========================================================================= */
.aplayer { position: relative; background: #000; overflow: hidden; }
.aplayer video {
    display: block; width: 100%; height: 100%;
    max-height: 78vh; object-fit: contain; background: #000;
    pointer-events: none;                    /* the surface below takes the taps */
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.ap-surface { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.ap-bigplay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 4; width: 74px; height: 74px; border-radius: 50%; border: none;
    background: rgba(0, 0, 0, .55); color: #fff;
    display: grid; place-items: center; cursor: pointer;
    transition: opacity .2s, transform .2s;
}
.ap-bigplay svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.ap-bigplay:hover { background: rgba(0, 0, 0, .75); }
.aplayer.is-playing .ap-bigplay { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }
.ap-bar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
    display: flex; flex-direction: column; gap: 6px;
    padding: 8px 10px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
    color: #fff; transition: opacity .25s ease;
}
.ap-row { display: flex; align-items: center; gap: 4px; }
.ap-spacer { flex: 1; }
.aplayer.ap-hide-ui .ap-bar { opacity: 0; pointer-events: none; }
.ap-btn {
    background: none; border: none; color: #fff;
    font-size: 13px; font-weight: 800; line-height: 1;
    padding: 7px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.ap-btn:hover { background: rgba(255, 255, 255, .18); }
.ap-seek {
    position: relative; width: 100%; height: 7px;
    background: rgba(255, 255, 255, .3); border-radius: 4px; cursor: pointer;
}
.ap-seek-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: var(--gold, #C9A227); border-radius: 4px;
}
.ap-seek-knob {
    position: absolute; top: 50%; left: 0; width: 15px; height: 15px;
    margin-left: -7px; border-radius: 50%;
    background: var(--gold, #C9A227); transform: translateY(-50%);
}
.ap-vol { width: 68px; max-width: 20vw; accent-color: var(--gold, #C9A227); cursor: pointer; }
.ap-time { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-skiphint {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    background: rgba(0, 0, 0, .65); color: #fff;
    font-weight: 800; font-size: 13px; padding: 9px 15px; border-radius: 50px;
    opacity: 0; transition: opacity .2s; pointer-events: none;
}
.ap-skiphint-l { left: 9%; } .ap-skiphint-r { right: 9%; }
.ap-skiphint.show { opacity: 1; }
.ap-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 6; pointer-events: none; }
.ap-spinner[hidden] { display: none; }
.ap-spin {
    width: 54px; height: 54px; border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff;
    animation: apspin .8s linear infinite;
}
@keyframes apspin { to { transform: rotate(360deg); } }

/* Small phones: volume and speed are the first things to go. */
@media (max-width: 420px) {
    .ap-vol { display: none; }
    .ap-btn { padding: 7px 6px; font-size: 12px; }
}

/* ---- Categories ---- */
.cat-chips {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px;
    margin: 0 0 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 16px; border-radius: 999px; white-space: nowrap;
    font-size: 15px; font-weight: 700; text-decoration: none;
    background: var(--card); color: var(--ink);
    border: 2px solid var(--line);
}
.cat-chip.is-on { background: var(--plum); border-color: var(--plum); color: #fff; }
.cat-chip-n { font-size: 12px; font-weight: 800; opacity: .6; }
.cat-chip.is-on .cat-chip-n { opacity: .8; }
.pcard-cat {
    position: absolute; left: 8px; bottom: 8px;
    background: rgba(0, 0, 0, .62); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .3px;
    padding: 4px 9px; border-radius: 5px;
}
.pcard-from { font-size: 13px; font-weight: 700; color: var(--ink-2, #6C6255); }
.pcard-parts {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--ink-2, #6C6255); margin-top: 2px;
}

/* ---- The pieces inside one post ---- */
.parts {
    background: var(--card); border: 2px solid var(--line);
    border-radius: var(--r); padding: 14px; margin: 16px 0;
}
.parts-title { font-size: 13px; font-weight: 800; text-transform: uppercase;
               letter-spacing: .7px; color: var(--ink-2, #6C6255); margin-bottom: 10px; }
.part {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-top: 1px solid var(--line);
}
.part:first-of-type { border-top: none; padding-top: 2px; }
.part-info { flex: 1; min-width: 0; }
.part-nm { display: block; font-size: 17px; font-weight: 700; }
.part-pr { display: block; font-size: 20px; font-weight: 800; color: var(--plum); margin-top: 2px; }
.part .buy-btn { width: auto; flex: 0 0 auto; padding: 0 18px; min-height: 52px; margin: 0; }
.part.is-gone .part-info { opacity: .55; text-decoration: line-through; }

/* ---- Listing them on the post screen ---- */
.part-row { display: flex; gap: 8px; align-items: center; margin-bottom: 9px; }
.part-row .part-name { flex: 1 1 auto; min-width: 0; min-height: 52px; }
.part-row .part-money { flex: 0 0 148px; margin: 0; }
.part-drop {
    flex: 0 0 auto; width: 48px; height: 52px;
    display: grid; place-items: center; cursor: pointer;
    background: none; border: none; color: var(--app-dim); border-radius: 10px;
}
.part-drop:active { background: var(--app-raise2); }
.part-drop svg { width: 20px; height: 20px; }
@media (max-width: 420px) {
    .part-row .part-money { flex: 0 0 118px; }
}

/* ---- Share, beside Buy ---- */
.buy-split { display: flex; gap: 8px; align-items: stretch; }
.buy-split .buy-btn { flex: 1; }
.share-btn {
    flex: 0 0 auto; width: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm); cursor: pointer;
    background: var(--card); border: 2px solid var(--line); color: var(--ink);
}
.share-btn svg { width: 22px; height: 22px; }
.share-btn:active { background: var(--line); }
.share-btn.is-wide { width: auto; padding: 0 18px; gap: 9px; font-weight: 800; }


/* ---- Upload progress ----
   A real bar, moved by the bytes actually sent. A video off a phone can be
   80 MB on a slow line; without this the page just sits there and looks
   broken, which is exactly what she reported. */
.up-wrap { margin-top: 14px; }
.up-bar {
    height: 14px; border-radius: 999px; overflow: hidden;
    background: var(--app-raise2); border: 1px solid var(--app-line);
}
.up-bar-fill {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-lift));
    transition: width .18s linear;
}
.up-bar-fill.is-waiting {
    width: 100% !important;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-lift), var(--gold-deep));
    background-size: 200% 100%;
    animation: up-sweep 1.1s linear infinite;
}
@keyframes up-sweep { to { background-position: -200% 0; } }
.up-say { margin: 9px 0 0; font-size: 16px; font-weight: 700; color: var(--app-ink); }
.up-sub { margin: 2px 0 0; font-size: 14px; color: var(--app-dim); }

/* A video with no frame drawn yet shows the element's own background. Black
   makes the shop look broken; the page's own colour makes it look like
   something that is simply still arriving. */
video { background: var(--app-raise2, #F1EBE0); }
.shop video { background: #EDE7DC; }

/* The back button on the shop. The header is a tall dark block, so the
   button sits at the top of it rather than floating in the middle, and it
   lights up on press - a dark press state would be invisible there. */
.shop-back {
    position: absolute;
    left: 8px;
    top: 10px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}
.shop-back svg { width: 26px; height: 26px; }
.shop-back:active { background: rgba(255, 255, 255, .16); }
.shop-top { position: relative; }

/* ---- WhatsApp Status hand-off ---- */
.wa-card {
    background: linear-gradient(140deg, #25D366, #0E7A5F) !important;
    border: none !important; text-align: center; color: #fff;
}
.wa-card .h2 { color: #fff; margin-top: 0; }
.wa-card p   { color: rgba(255,255,255,.92); font-size: 15px; }
.wa-card .btn { background: #fff !important; color: #0B6E4F !important; margin-top: 8px; }

/* ---- Alerts ---- */
.alert {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px; border-radius: var(--r); margin-bottom: 14px;
    font-size: 16px; font-weight: 600; border: 1px solid transparent;
}
.alert-ic { margin-top: 2px; }
.app .alert-success { background: rgba(29,185,84,.13);  color: var(--ok-text);   border-color: rgba(29,185,84,.32); }
.app .alert-error   { background: rgba(229,72,77,.13);  color: var(--bad-text);  border-color: rgba(229,72,77,.32); }
.app .alert-info    { background: rgba(76,154,255,.13); color: var(--info-text); border-color: rgba(76,154,255,.32); }
.app .alert-warn    { background: rgba(224,165,38,.15); color: var(--warn-text); border-color: rgba(224,165,38,.34); }
.alert a { color: inherit; }

/* ---- Post list ---- */
.post-row {
    display: flex; gap: 13px; align-items: center;
    padding: 11px; min-height: 94px;
    background: var(--app-raise); border: 1px solid var(--app-line);
    border-radius: var(--r); margin-bottom: 10px;
    text-decoration: none; color: inherit;
}
.post-thumb {
    width: 78px; height: 78px; flex: 0 0 auto;
    border-radius: var(--r-sm); overflow: hidden;
    background: var(--app-raise2); display: grid; place-items: center; position: relative;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(0,0,0,.35); color: #fff;
}
.post-thumb .play svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.post-body { flex: 1; min-width: 0; }
.post-cap { font-size: 16px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 13px; color: var(--app-dim); margin-top: 3px; }

.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--app-raise2); color: var(--app-dim); }
.pill.ok      { background: rgba(29,185,84,.16);  color: var(--ok-text); }
.pill.sending { background: rgba(76,154,255,.16); color: var(--info-text); }
.pill.hand    { background: rgba(224,165,38,.18); color: var(--warn-text); }
.pill.bad     { background: rgba(229,72,77,.16);  color: var(--bad-text); }

/* ---- Orders ---- */
.order-row {
    display: flex; gap: 12px; align-items: center;
    padding: 14px; min-height: 84px;
    background: var(--app-raise); border: 1px solid var(--app-line);
    border-radius: var(--r); margin-bottom: 10px;
    text-decoration: none; color: inherit;
}
.order-code {
    font-size: 15px; font-weight: 800; letter-spacing: 1px;
    color: var(--gold); font-variant-numeric: tabular-nums;
}
.order-item  { font-size: 16px; font-weight: 600; }
.order-price { font-size: 19px; font-weight: 800; }
.order-meta  { font-size: 13px; color: var(--app-dim); }
.order-state { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.order-state.new      { background: rgba(76,154,255,.18); color: var(--info-text); }
.order-state.answered { background: rgba(224,165,38,.2);  color: var(--warn-text); }
.order-state.sold     { background: rgba(29,185,84,.18);  color: var(--ok-text); }
.order-state.closed   { background: var(--app-raise2);    color: var(--app-dim); }

.big-code {
    font-size: 34px; font-weight: 800; letter-spacing: 3px;
    color: var(--gold); text-align: center; margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}

/* ---- Avatar, empty, sign-in ---- */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.empty { text-align: center; padding: 48px 20px; }
.empty .ic { width: 58px; height: 58px; color: var(--app-line); stroke-width: 1.4; margin: 0 auto 14px; }
.shop .empty .ic { color: var(--line); }
.empty h3 { font-size: 20px; margin: 0 0 6px; }
.empty p  { color: var(--app-dim); font-size: 16px; margin: 0 0 22px; }
.shop .empty p { color: var(--ink-dim); }


.signin-title { text-align: center; font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.signin-sub   { text-align: center; color: var(--app-dim); margin: 0 0 26px; }

.group-title {
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .9px;
    color: var(--gold); margin: 26px 0 9px;
}

details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }

code { background: var(--app-raise2); padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.shop code { background: var(--blush); }

/* ==========================================================================
   THE SHOP
   ========================================================================== */

body.shop { background: var(--bg); color: var(--ink); font-size: 16px; }

.shop-top {
    background: linear-gradient(160deg, var(--plum), var(--plum-deep));
    color: #fff; padding: 18px; text-align: center;
    border-bottom: 3px solid var(--gold);
}
.shop-logo { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.shop-brand { text-decoration: none; color: #fff; display: block; }
.shop-brand-name { display: block; font-size: 24px; font-weight: 800; letter-spacing: .6px; }
.shop-brand-tag  { display: block; font-size: 14px; color: var(--gold-soft); margin-top: 3px; }

.shop-main { max-width: 1180px; margin: 0 auto; padding: 18px 14px 60px; }

/* Search */
.shop-search { display: flex; gap: 8px; margin: 0 0 18px; }
.shop-search-in {
    flex: 1; min-height: 52px; padding: 12px 16px;
    font: inherit; font-size: 16px; color: var(--ink);
    background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm);
    -webkit-appearance: none; appearance: none;
}
.shop-search-in:focus { outline: none; border-color: var(--plum); }
.shop-search-go {
    min-width: 56px; border: none; border-radius: var(--r-sm);
    background: var(--plum); color: #fff; cursor: pointer;
    display: grid; place-items: center;
}
.shop-search-go .ic { width: 23px; height: 23px; }
.shop-count { font-size: 15px; color: var(--ink-dim); margin: -8px 0 16px; }

/* The grid: two across on a phone, like every marketplace she has used. */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px)  { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pcard {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 1px 4px rgba(72, 20, 45, .06);
}
.pcard-media { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--blush); }
.pcard-media img, .pcard-media video { width: 100%; height: 100%; object-fit: cover; }
.pcard-play {
    position: absolute; right: 8px; top: 8px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,.55); display: grid; place-items: center;
}
.pcard-play svg { width: 17px; height: 17px; fill: #fff; }
.pcard-sold {
    position: absolute; left: 8px; top: 8px;
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    padding: 4px 9px; border-radius: 5px;
}
.pcard.is-sold .pcard-media img, .pcard.is-sold .pcard-media video { filter: grayscale(1) opacity(.62); }

.pcard-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-name {
    font-size: 14px; line-height: 1.35; color: var(--ink); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
}
.pcard-price { font-size: 18px; font-weight: 800; color: var(--ink); }
.pcard-ask   { font-size: 14px; font-weight: 700; color: var(--plum); }

/* The Buy button. Orange, because that is what "buy" looks like here. */
.buy-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 44px; margin-top: auto;
    background: var(--buy); color: #fff;
    border: none; border-radius: 9px;
    font: inherit; font-size: 14px; font-weight: 800;
    text-decoration: none; cursor: pointer;
    text-transform: uppercase; letter-spacing: .4px;
}
.buy-btn:active { background: var(--buy-deep); }
.buy-btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.buy-btn.is-disabled { background: #C9BDC4; cursor: default; pointer-events: none; }
.buy-btn-lg { min-height: 62px; font-size: 18px; border-radius: var(--r-sm); }
.buy-btn-lg .ic { width: 24px; height: 24px; }

/* Item page */
.detail { max-width: 720px; margin: 0 auto; }
.detail-media { position: relative; border-radius: var(--r-sm); overflow: hidden; background: #000; margin-bottom: 18px; }
.detail-media img, .detail-media video { width: 100%; max-height: 72vh; object-fit: contain; }
.detail-sold { left: 12px; top: 12px; font-size: 13px; padding: 6px 12px; }
.detail h1 { font-size: 23px; line-height: 1.3; margin: 0 0 8px; }
.detail-price { font-size: 27px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.detail-cap { white-space: pre-wrap; font-size: 16px; line-height: 1.6; margin-bottom: 18px; }

.detail-facts { list-style: none; padding: 0; margin: 0 0 20px; }
.detail-facts li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 15px; color: var(--ink-dim); padding: 6px 0;
}
.detail-facts .ic { width: 19px; height: 19px; color: var(--green); margin-top: 2px; }

.buy-sticky {
    position: sticky; bottom: 0; z-index: 20;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--bg) 68%, rgba(255,253,250,0));
}
.buy-note { text-align: center; font-size: 13px; color: var(--ink-dim); margin: 9px 0 0; }

.more-title { font-size: 19px; margin: 34px 0 14px; }

/* Floating WhatsApp button */
.wa-float {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40; width: 60px; height: 60px; border-radius: 50%;
    background: var(--wa); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    text-decoration: none;
}
.wa-float .ic { width: 30px; height: 30px; stroke-width: 1.7; }

.shop-foot { background: var(--plum-deep); color: rgba(255,255,255,.85); padding: 30px 18px; font-size: 14px; }
.shop-foot-in { max-width: 1080px; margin: 0 auto; display: grid; gap: 4px; text-align: center; }
.shop-foot-name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.shop-foot a { color: #fff; }
.shop-foot-copy { margin-top: 13px; opacity: .6; font-size: 13px; }

/* ==========================================================================
   Bigger screens, motion, print
   ========================================================================== */
@media (min-width: 760px) {
    .content { padding: 24px 24px 40px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
    .topbar, .tabbar, .buy-sticky, .wa-float { display: none !important; }
}


/* ==========================================================================
   ADDED WITH THE REAL ARTWORK, FACE ID, THE APP INSTALL AND THE MAILBOX
   ========================================================================== */

/* ---- Sign in ---- */
.signin-logo { width: 132px; margin: 6px auto 16px; }
.signin-logo img { width: 100%; height: auto; }

.signin-or {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0 16px;
    color: var(--app-dim); font-size: 14px;
}
.signin-or::before, .signin-or::after {
    content: ""; flex: 1; height: 1px; background: var(--app-line);
}

.btn-face { font-size: 19px; min-height: 66px; }
.btn-face .ic { width: 26px; height: 26px; }

/* ---- Get the app ---- */
.install-card { background: transparent; border-style: dashed; }
.install-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 14px; }
.install-head .ic { width: 26px; height: 26px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.install-title { font-weight: 700; font-size: 17px; }
.install-sub { font-size: 14px; color: var(--app-dim); line-height: 1.4; }

.install-steps-title { font-size: 15px; margin: 4px 0 8px; }
.install-steps { margin: 0; padding-left: 22px; }
.install-steps li { font-size: 16px; line-height: 1.6; padding: 3px 0; }
.ios-share {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; vertical-align: -7px;
    border-radius: 6px; background: var(--app-raise2);
}
.ios-share .ic { width: 16px; height: 16px; color: #4C9AFF; }

/* ---- Face ID devices, on Settings ---- */
.devrow {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; min-height: 72px;
    background: var(--app-raise); border: 1px solid var(--app-line);
    border-radius: var(--r); margin-bottom: 10px;
}
.devrow .ic { width: 24px; height: 24px; color: var(--gold); flex: 0 0 auto; }
.devrow-name { font-size: 16px; font-weight: 700; }
.devrow-when { font-size: 13px; color: var(--app-dim); }

/* ---- Badge on the bottom bar ---- */
.tabbar-ic { position: relative; display: inline-grid; place-items: center; }
.tabbar-dot {
    position: absolute; top: -5px; right: -11px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--red); color: #fff;
    font-size: 10px; font-weight: 800; line-height: 18px; text-align: center;
    box-shadow: 0 0 0 2px var(--app-bg);
}

/* ---- The mailbox ---- */
.mailtabs {
    display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mailtabs::-webkit-scrollbar { display: none; }
.mailtab {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    padding: 9px 14px; min-height: 44px;
    border-radius: 999px; border: 1px solid var(--app-line);
    background: var(--app-raise); color: var(--app-dim);
    text-decoration: none; font-size: 14px; font-weight: 700;
}
.mailtab .ic { width: 18px; height: 18px; }
.mailtab.is-active { background: var(--gold); border-color: var(--gold); color: #1A1512; }
.mailtab-n {
    min-width: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}
.mailtab-n.warn { background: var(--amber); color: #1A1512; }
.mailtab.is-active .mailtab-n { background: #1A1512; color: var(--gold); }

.mailrow {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 14px; min-height: 84px;
    background: var(--app-raise); border: 1px solid var(--app-line);
    border-radius: var(--r); margin-bottom: 9px;
    text-decoration: none; color: inherit;
}
.mailrow-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; margin-top: 7px; background: transparent; }
.mailrow.is-unread .mailrow-dot { background: var(--gold); }
.mailrow.is-unread .mailrow-subject { font-weight: 800; }
.mailrow-body { flex: 1; min-width: 0; }
.mailrow-top { display: flex; align-items: baseline; gap: 10px; }
.mailrow-who { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--app-dim);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mailrow-when { font-size: 12px; color: var(--app-dim); flex: 0 0 auto; }
.mailrow-subject { display: block; font-size: 16px; margin-top: 2px;
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mailrow-preview { display: block; font-size: 14px; color: var(--app-dim); margin-top: 2px;
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mailrow-error { display: flex; align-items: center; gap: 5px; margin-top: 5px;
                 font-size: 13px; color: var(--bad-text); }
.mailrow-error .ic { width: 15px; height: 15px; }
.mailrow-clip .ic { width: 19px; height: 19px; color: var(--app-dim); }

.msg-meta { font-size: 15px; line-height: 1.9; }
.msg-meta > div { display: flex; gap: 10px; }
.msg-label { flex: 0 0 58px; color: var(--app-dim); font-size: 13px; }
.msg-frame { display: block; width: 100%; min-height: 380px; border: 0; background: #fff; }

.filerow {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; min-height: 62px;
    background: var(--app-raise); border: 1px solid var(--app-line);
    border-radius: var(--r-sm); margin-bottom: 9px;
    text-decoration: none; color: inherit;
}
.filerow .ic { width: 21px; height: 21px; color: var(--gold); flex: 0 0 auto; }
.filerow-name { display: block; font-size: 15px; font-weight: 600;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filerow-size { display: block; font-size: 13px; color: var(--app-dim); }

/* The app's own file inputs, which the browser styles badly by default. */
.app input[type=file] {
    color: var(--app-dim); font-size: 15px;
    background: var(--app-raise2); border: 2px dashed var(--app-line);
}
.app input[type=file]::file-selector-button {
    margin-right: 12px; padding: 9px 14px;
    border: none; border-radius: 8px;
    background: var(--gold); color: #1A1512;
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}


/* ---- Light / dark ---- */
.theme-btn { position: relative; }
/* Only one of the two icons is ever shown, and CSS decides which - so the
   right one is on screen before any script runs. */
.theme-btn .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-btn .ic-sun  { display: none; }
    :root:not([data-theme="light"]) .theme-btn .ic-moon { display: block; }
}
:root[data-theme="dark"] .theme-btn .ic-sun  { display: none; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: block; }
:root[data-theme="light"] .theme-btn .ic-sun  { display: block; }
:root[data-theme="light"] .theme-btn .ic-moon { display: none; }

.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.theme-opt {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; min-height: 92px; padding: 12px 6px;
    border: 2px solid var(--app-line); border-radius: var(--r-sm);
    background: var(--app-raise); color: var(--app-ink);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.theme-opt .ic { width: 24px; height: 24px; color: var(--gold); }
.theme-opt.is-on { border-color: var(--gold); background: var(--app-raise2); }

/* ---- A video playing from the platform instead of from our disk ---- */
.embed-wrap {
    position: relative; width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 76vh;
    background: #000; border-radius: var(--r-sm); overflow: hidden;
}
.embed-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail-media-embed { background: transparent; }
@media (min-width: 620px) {
    .embed-wrap { aspect-ratio: 16 / 10; max-height: 70vh; }
}


/* ---- Collecting a video from a TikTok link ---- */
.fetching {
    background: var(--app-raise);
    border: 1px solid var(--app-line);
    border-radius: var(--r);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--app-shadow);
}
.fetching-live, .fetching-fail { display: flex; gap: 13px; align-items: flex-start; }
.fetching-live .spinner { color: var(--gold); margin-top: 3px; flex: 0 0 auto; }
.fetching-fail .ic { color: var(--warn-text); flex: 0 0 auto; margin-top: 2px; }
.fetching-title { font-size: 16px; font-weight: 700; }
.fetching-sub   { font-size: 14px; color: var(--app-dim); line-height: 1.45; margin-top: 3px; }
.fetching.is-done { border-color: var(--green); }


/* ---- Paste a TikTok link ---- */
.paste-card { padding: 16px; }
.paste-summary {
    display: flex; align-items: center; gap: 13px;
    cursor: pointer; list-style: none;
}
.paste-summary::-webkit-details-marker { display: none; }
.paste-summary .ic { width: 24px; height: 24px; color: var(--gold); flex: 0 0 auto; }
.paste-title { display: block; font-size: 17px; font-weight: 700; }
.paste-sub   { display: block; font-size: 14px; color: var(--app-dim); }

/* ---- Toggles.
   Every yes/no on this site is a switch, never a tick box: a switch shows its
   state from across the room and is a far bigger target for an unsteady
   finger. The checkbox is still there underneath, so forms post normally and
   the keyboard still works - it is just moved out of sight.
   The switch is a SIBLING of the input, so `input:checked + .switch` styles it
   with no JavaScript at all. ---- */
.switchrow {
    display: flex; align-items: center; gap: 14px;
    min-height: 62px; padding: 6px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.switchrow-lbl { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.switchrow input[type=checkbox] {
    position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}
.switchrow .switch { flex: 0 0 auto; }
.switchrow input:checked + .switch { background: var(--green); }
.switchrow input:checked + .switch::after { transform: translateX(24px); }
.switchrow input:disabled + .switch { opacity: .45; }
.switchrow input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(201, 162, 39, .45); }
.switchrow:active .switch::after { width: 32px; }


/* ---- Put it on your pages ---- */
.share-intro p { font-size: 15px; color: var(--app-dim); }

.share-row {
    display: flex; align-items: center; gap: 13px;
    padding: 14px; min-height: 86px;
    background: var(--app-raise);
    border: 1px solid var(--app-line);
    border-radius: var(--r);
    margin-bottom: 10px;
    box-shadow: var(--app-shadow);
}
.share-row.is-shared { border-color: var(--green); }
.share-body { flex: 1; min-width: 0; }
.share-name { display: block; font-size: 17px; font-weight: 700; }
.share-tip  { display: block; font-size: 13px; color: var(--app-dim); line-height: 1.35; }
.share-tick { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto;
              border-radius: 50%; background: rgba(29,185,84,.16); color: var(--ok-text); }
.share-tick .ic { width: 18px; height: 18px; stroke-width: 3; }
.share-go { flex: 0 0 auto; min-width: 96px; }

/* A short message that appears and goes away by itself. */
.toast {
    position: fixed; left: 50%; bottom: 118px; z-index: 90;
    transform: translate(-50%, 14px);
    max-width: 84vw; padding: 13px 18px;
    background: var(--plum-deep); color: #fff;
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-size: 15px; font-weight: 600; text-align: center;
    opacity: 0; transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---- Room on the server ---- */
.disk-figure { font-size: 26px; font-weight: 800; }
.disk-of { font-size: 15px; font-weight: 600; color: var(--app-dim); }
.disk-bar {
    height: 12px; border-radius: 999px; overflow: hidden;
    background: var(--app-raise2); margin-top: 10px;
}
.disk-fill { display: block; height: 100%; border-radius: 999px; transition: width .3s ease; }
.disk-fill.is-ok   { background: var(--green); }
.disk-fill.is-warn { background: var(--amber); }
.disk-fill.is-bad  { background: var(--red); }


/* ---- Moving files to Cloudflare ---- */
.move-box { margin: 14px 0; }
.move-bar {
    height: 12px; border-radius: 999px; overflow: hidden;
    background: var(--app-raise2);
}
.move-fill {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-lift));
    border-radius: 999px; transition: width .35s ease;
}
.move-note { font-size: 14px; color: var(--app-dim); margin: 9px 0 0; }


/* ---- "Ready to share" line ---- */
.share-ready {
    font-size: 14px; color: var(--app-dim);
    margin: 12px 0 0; padding-left: 22px; position: relative;
}
.share-ready::before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--gold); border-right-color: transparent;
    animation: spin .8s linear infinite;
}
.share-ready.is-ready { color: var(--ok-text); }
.share-ready.is-ready::before {
    border: none; background: var(--ok-text); animation: none;
    width: 10px; height: 10px; top: 5px; left: 1px;
}
.share-ready.is-bad { color: var(--bad-text); }
.share-ready.is-bad::before {
    border: none; background: var(--bad-text); animation: none;
    width: 10px; height: 10px; top: 5px; left: 1px;
}

/* ---- The one link, shown big enough to read across a room ---- */
.link-box {
    font-size: 17px; font-weight: 700; word-break: break-all;
    background: var(--app-raise2); border: 1px solid var(--app-line);
    border-radius: var(--r-sm); padding: 14px; margin: 0 0 14px;
    color: var(--gold);
}
