/* Ezitech Community styles. Moved out of layout.blade.php on 2026-09-22 so
   the browser keeps one copy instead of receiving ~51 KB with every page
   (SQA). Linked with ?v=<file time>, so a deploy that changes it is fetched
   at once. Plain CSS only - no Blade here. */

    :root {
        --bg: #0A101C;
        --panel: #111A2A;
        --panel-2: #0D1523;
        --raise: #172236;
        --line: rgba(255, 255, 255, .10);
        --line-2: rgba(255, 255, 255, .18);
        --ink: #ffffff;
        --text: #DCE7F6;
        --muted: #8FA6C6;
        --faint: #7C93B5;
        --blue: #3275DB;
        --blue-2: #78ABF2;
        --blue-soft: rgba(50, 117, 219, .16);
        --blue-line: rgba(50, 117, 219, .40);
        --accent: var(--blue-2);
        --green: #35d07f;
        --green-soft: rgba(53, 208, 127, .12);
        --amber: #f5b544;
        --amber-soft: rgba(245, 181, 68, .13);
        --red: #ff6b6b;
        --red-soft: rgba(255, 107, 107, .12);
        --radius: 8px;
        --radius-sm: 6px;
        --shadow: none;
        color-scheme: dark;
    }

    * { box-sizing: border-box; }

    /* A class that sets display must never beat the hidden attribute. */
    [hidden] { display: none !important; }

    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

    html, body { margin: 0; background: var(--bg); }

    body {
        color: var(--text);
        font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        font-size: 15px;
        line-height: 1.55;
        -webkit-font-smoothing: antialiased;
    }

    a { color: var(--blue-2); }

    :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

    /* ================= top bar ================= */

    .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        gap: 16px;
        height: 64px;
        padding: 0 20px;
        background: rgba(10, 16, 28, .92);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--ink);
        text-decoration: none;
        font-weight: 800;
        font-size: 16px;
        letter-spacing: -.01em;
        white-space: nowrap;
    }

    .logo-mark {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: var(--blue);
        color: #fff;
        font-size: 17px;
        font-weight: 800;
        
    }

    .logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

    .topsearch {
        flex: 1;
        max-width: 560px;
        margin: 0 auto;
        position: relative;
    }

    .topsearch i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--faint);
        font-size: 18px;
    }

    .topsearch input, .topsearch input[type="search"] {
        width: 100%;
        height: 40px;
        padding: 0 14px 0 40px;
        font: inherit;
        font-size: 14px;
        color: var(--ink);
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 999px;
    }

    .topsearch input::placeholder { color: var(--faint); }
    /* The generic input rule below also matches input[type=search] with the same
       weight and comes later, so it wiped the 40px left padding and the icon
       sat on the text. Both selectors here keep this one winning. */

    .topactions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

    .btn-primary, a.btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        height: 38px;
        padding: 0 16px;
        border: 0;
        border-radius: 999px;
        background: var(--blue);
        color: #fff;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        white-space: nowrap;
    }

    .btn-primary:hover { background: #3C7FE4; }

    .me-link { display: flex; text-decoration: none; }

    /* ================= avatars ================= */

    .av {
        flex: 0 0 auto;
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .02em;
        text-decoration: none;
    }

    .av-sm { width: 32px; height: 32px; font-size: 12px; }
    .av-xs { width: 26px; height: 26px; font-size: 10px; }
    .av-lg { width: 96px; height: 96px; font-size: 32px; border: 4px solid var(--bg); }

    /* ================= shell ================= */

    .shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 1480px;
        margin: 0 auto;
        padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
        gap: 24px;
    }

    .shell--guest {
        max-width: 460px;
        padding-top: 56px;
    }

    /* A guest page that needs the room, like the app install page. */
    .shell--guest.shell--wide { max-width: 1160px; padding-top: 40px; }

    .main { min-width: 0; }

    .left, .right { display: none; }

    /* ================= left nav ================= */

    .left-inner, .right-inner { position: sticky; top: 84px; }

    .navlist { list-style: none; margin: 0 0 18px; padding: 0; }

    .navlist a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 12px;
        border-radius: var(--radius-sm);
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
    }

    .navlist a:hover { background: var(--panel); color: var(--ink); }

    .navlist a.on { background: var(--blue-soft); color: var(--ink); }

    .navlist a.on i { color: var(--blue-2); }

    .navlist i { font-size: 20px; color: var(--muted); width: 22px; text-align: center; }

    .navlist .count {
        margin-left: auto;
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        font-variant-numeric: tabular-nums;
    }

    .navlist .dot {
        display: inline-grid;
        place-items: center;
        width: 22px;
        height: 22px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 800;
        color: #fff;
    }

    .navhead {
        margin: 0 12px 6px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: var(--faint);
    }

    .navlist .badge-new {
        margin-left: auto;
        padding: 1px 7px;
        border-radius: 999px;
        background: var(--amber-soft);
        color: var(--amber);
        font-size: 11px;
        font-weight: 700;
    }

    /* ================= cards ================= */

    .card {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .card + .card { margin-top: 14px; }

    h1 {
        margin: 0 0 6px;
        font-size: 24px;
        line-height: 1.25;
        color: var(--ink);
        font-weight: 700;
        font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
        letter-spacing: -.015em;
        text-wrap: balance;
    }

    h2 {
        margin: 0 0 6px;
        font-size: 21px;
        line-height: 1.3;
        color: var(--ink);
        font-weight: 700;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

    .pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

    .pagehead h1 { margin: 0; }

    .pagehead .sub { margin: 4px 0 0; }

    .meta { font-size: 13px; color: var(--muted); }

    .note { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

    .empty { margin: 0; padding: 6px 0; color: var(--muted); font-size: 15px; }

    .section-title {
        margin: 26px 0 10px;
        font-family: "IBM Plex Mono", ui-monospace, monospace;
        font-size: 11.5px;
        font-weight: 500;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--faint);
    }

    .back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 14px;
        font-size: 14px;
        font-weight: 600;
        color: var(--muted);
        text-decoration: none;
    }

    .back:hover { color: var(--ink); }

    /* ================= pills ================= */

    .pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 9px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .pill-pending { background: var(--amber-soft); color: var(--amber); }
    .pill-muted, .pill-space { background: var(--blue-soft); color: var(--blue-2); }
    .pill-space { text-decoration: none; }
    .pill-space:hover { background: var(--blue-line); color: #fff; }
    .pill-green { background: var(--green-soft); color: var(--green); }

    .badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        border-radius: 6px;
        background: var(--blue-soft);
        color: var(--blue-2);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .02em;
    }

    .verified { color: var(--blue-2); font-size: 16px; vertical-align: -2px; }

    /* ================= forms ================= */

    label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 7px;
    }

    input[type="email"],
    input[type="text"],
    input[type="search"],
    input[type="url"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
        padding: 12px 14px;
        font: inherit;
        font-size: 16px; /* 16 se kam ho to iPhone safha zoom kar deta hai */
        color: var(--ink);
        background: var(--panel-2);
        border: 1px solid var(--line-2);
        border-radius: var(--radius-sm);
    }

    input::placeholder, textarea::placeholder { color: var(--faint); }

    textarea { min-height: 150px; line-height: 1.6; resize: vertical; }

    input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

    .code-input {
        text-align: center;
        letter-spacing: 12px;
        font-size: 26px;
        font-weight: 700;
        font-family: ui-monospace, "Courier New", monospace;
    }

    button {
        width: 100%;
        margin-top: 16px;
        padding: 13px;
        font: inherit;
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        background: var(--blue);
        border: none;
        border-radius: var(--radius-sm);
        cursor: pointer;
    }

    button:hover { background: #3C7FE4; }

    button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
    button.ghost:hover { background: var(--raise); }
    button.danger { background: var(--red); color: #1a0b0d; }

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

    .btn-link {
        display: block;
        margin-top: 16px;
        padding: 13px;
        text-align: center;
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        background: var(--blue);
        border-radius: var(--radius-sm);
        text-decoration: none;
    }

    .field-error { margin: 8px 0 0; font-size: 13px; color: var(--red); }

    .linkform { margin-top: 16px; text-align: center; }

    .linkform button, form.tiny button {
        width: auto;
        margin: 0;
        padding: 0;
        background: none;
        color: var(--blue-2);
        font-weight: 600;
        font-size: 14px;
    }

    form.tiny { display: inline; }
    form.tiny button { color: var(--faint); font-size: 13px; }
    form.tiny button:hover { color: var(--text); background: none; }

    .filefield { margin-top: 16px; font-size: 13px; color: var(--muted); font-weight: 500; }
    .filefield input { display: block; margin-top: 8px; font-size: 13px; color: var(--text); }

    .check {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        margin-top: 16px;
        padding: 14px;
        border: 1px solid var(--line-2);
        border-radius: var(--radius-sm);
        background: var(--panel-2);
        cursor: pointer;
    }

    .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); }
    .check strong { display: block; color: var(--ink); font-size: 14px; }
    .check span { font-size: 13px; color: var(--muted); font-weight: 400; }

    /* ================= alerts ================= */

    .alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; font-weight: 500; }
    .alert-error { background: var(--red-soft); color: var(--red); border: 1px solid rgba(255, 107, 107, .25); }
    .alert-ok { background: var(--green-soft); color: var(--green); border: 1px solid rgba(53, 208, 127, .25); }

    /* ================= composer ================= */

    .composer {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        margin-bottom: 18px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        text-decoration: none;
        box-shadow: var(--shadow);
    }

    .composer .fake {
        flex: 1;
        padding: 11px 16px;
        border-radius: 999px;
        background: var(--panel-2);
        border: 1px solid var(--line);
        color: var(--faint);
        font-size: 15px;
    }

    .composer:hover .fake { border-color: var(--line-2); color: var(--muted); }

    .composer .tools { display: flex; gap: 6px; color: var(--muted); font-size: 22px; }

    /* ================= post ================= */

    .post {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        margin-bottom: 14px;
        box-shadow: var(--shadow);
    }

    .post.is-pinned { border-color: var(--blue-line); }

    .post-inner { padding: 18px 20px 6px; }

    .post-head { display: flex; gap: 12px; align-items: center; }

    .post-who { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.3; }
    .post-who a { color: inherit; text-decoration: none; }
    .post-who a:hover { color: var(--blue-2); }

    .post-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 2px; }

    .post-flags { margin-left: auto; display: flex; gap: 6px; align-self: flex-start; }

    a.post-link { display: block; color: inherit; text-decoration: none; }

    .post-title {
        margin: 14px 0 6px;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
        color: var(--ink);
        overflow-wrap: anywhere;
        text-wrap: pretty;
    }

    a.post-link:hover .post-title { color: var(--blue-2); }

    .post-excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }

    .post-body { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; color: var(--text); font-size: 15.5px; }

    .shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 14px; }
    .shots a { display: block; line-height: 0; }
    .shots img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
    .shots--one img { max-height: 480px; object-fit: contain; height: auto; background: var(--panel-2); }

    .post-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: 14px;
        padding: 6px 12px;
        border-top: 1px solid var(--line);
    }

    .post-actions form { display: inline; }

    .act {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        width: auto;
        margin: 0;
        padding: 8px 12px;
        background: none;
        border: none;
        border-radius: 8px;
        color: var(--muted);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        white-space: nowrap;
    }

    .act i { font-size: 19px; }
    .act:hover { background: var(--raise); color: var(--ink); }
    .act.on { color: var(--blue-2); }
    .act.on:hover { color: var(--blue-2); }
    .act-right { margin-left: auto; }

    /* ================= your own momentum ================= */

    .momentum { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
    .mom-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    .mom-streak { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
    .mom-streak i { color: var(--amber); font-size: 20px; }
    .mom-days { display: flex; gap: 6px; margin: 12px 0; }
    .mom-day { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
               border: 1px solid var(--line); color: var(--faint); font-size: 12px; font-weight: 700; }
    .mom-day.on { background: var(--green-soft); border-color: rgba(53, 208, 127, .45); color: var(--green); }
    .mom-line { margin: 0; color: var(--text); }
    .mom-line b { color: var(--ink); }
    .mom-next { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
    .mom-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

    /* ================= replies ================= */

    .replies { margin-top: 16px; }

    .reply { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
    .reply:first-child { border-top: none; padding-top: 4px; }
    .reply:last-child { padding-bottom: 0; }
    .reply-main { flex: 1; min-width: 0; }
    .reply-bubble { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
    .reply-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
    .reply-who { font-weight: 700; color: var(--ink); font-size: 14px; }
    .reply-who a { color: inherit; text-decoration: none; }
    .reply .post-body { margin-top: 4px; font-size: 15px; }
    /* One row, every item centred on the same line. baseline + 44px items +
       wrap used to leave a ~45px hole between the lines on a phone. */
    .reply-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 6px 0 0 4px; }
    .reply-tools .meta, .reply-tools form.tiny button, .reply-tools .reply-edit summary { font-size: 13px; line-height: 1.4; }
    .reply-tools form.tiny { display: flex; margin: 0; }
    .reply-tools .reply-edit { margin: 0; }
    .reply-tools .reply-edit summary { display: inline-flex; align-items: center; }
    .reply-like button { display: inline-flex; align-items: center; gap: 4px; }
    .reply-like.is-liked button { color: var(--red, #f0506e); font-weight: 600; }
    .reply-like-n { font-variant-numeric: tabular-nums; }
    .reply-tools .reply-edit[open] { flex: 0 0 100%; }

    /* ================= space banner ================= */

    .banner-card {
        position: relative;
        overflow: hidden;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        background: var(--panel);
        margin-bottom: 18px;
        box-shadow: var(--shadow);
    }

    .banner-art {
        height: 120px;
        background:
            linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 30px 30px,
            linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 30px 30px,
            radial-gradient(520px 200px at 100% 0%, rgba(120, 171, 242, .45), transparent 70%),
            
            linear-gradient(150deg, #3C7FE4 0%, #2059BE 42%, #062F8C 100%);
    }

    /* Same shape the cover is cut to on upload (1500x420), so nothing is cut
       a second time on screen (SQA L3). */
    .banner-art--profile { height: auto; aspect-ratio: 1500 / 420; min-height: 96px; }

    .banner-body { padding: 0 22px 20px; }

    .space-mark {
        display: grid;
        place-items: center;
        width: 72px;
        height: 72px;
        margin-top: -36px;
        border-radius: 8px;
        border: 4px solid var(--panel);
        color: #fff;
        font-size: 26px;
        font-weight: 800;
    }

    .banner-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }

    .banner-title { margin: 12px 0 2px; font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; }

    .banner-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--muted); margin-top: 6px; }
    .banner-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }

    /* Only the photo overlaps the cover; the name and handle start below it
       (the whole row used to move up, so the name sat 18px inside the cover). */
    .profile-top { display: flex; align-items: flex-start; gap: 18px; margin-top: 0; }
    .profile-top > .av-lg { margin-top: -48px; flex: 0 0 auto; }
    .profile-top > div { padding: 12px 0 0 !important; }

    /* ================= stats ================= */

    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
    .stats > div { padding: 12px 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
    .stats strong { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
    .stats span { font-size: 12px; color: var(--muted); font-weight: 600; }

    /* ================= right sidebar ================= */

    .side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
    .side-title { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
    .side-text { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
    .side-people { list-style: none; margin: 0; padding: 0; }
    .side-people a { display: flex; align-items: center; gap: 11px; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
    .side-people a:hover { color: var(--blue-2); }
    .side-people small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }

    .brand-card {
        background:
            radial-gradient(420px 180px at 100% 0%, rgba(50, 117, 219, .35), transparent 70%),
            var(--panel);
    }

    .brand-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); font-weight: 800; }

    /* ================= space grid ================= */

    .space-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

    .space-tile {
        display: flex;
        gap: 14px;
        align-items: center;
        padding: 16px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        text-decoration: none;
        box-shadow: var(--shadow);
    }

    .space-tile:hover { border-color: var(--blue-line); }
    .space-tile.mine { border-color: var(--blue); background: linear-gradient(135deg, rgba(50, 117, 219, .16), var(--panel)); }

    .space-tile .dot {
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        color: #fff;
        font-weight: 800;
        font-size: 16px;
    }

    .space-tile strong { display: block; color: var(--ink); font-size: 15px; }
    .space-tile span { font-size: 13px; color: var(--muted); }

    /* ================= member grid ================= */

    .member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

    .member-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        padding: 22px 16px 18px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        text-decoration: none;
        box-shadow: var(--shadow);
    }

    .member-card:hover { border-color: var(--blue-line); }
    .member-card .av { width: 60px; height: 60px; font-size: 20px; margin-bottom: 8px; color: #fff; }
    .member-card strong { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
    .member-card span { font-size: 13px; color: var(--muted); }
    .member-card .pill { color: var(--blue-2); font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
    .member-card .pill-green { color: var(--green); }

    .member-grid--compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .member-grid--compact .member-card { padding: 16px 12px 14px; }
    .member-grid--compact .av { width: 44px; height: 44px; font-size: 15px; }

    /* ================= search bar ================= */

    .searchbar {
        position: relative;
        display: flex;
        gap: 8px;
        margin-bottom: 18px;
    }

    .searchbar i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--faint);
        font-size: 18px;
        pointer-events: none;
    }

    .searchbar input { padding-left: 42px; }
    .searchbar button { width: auto; margin: 0; padding: 0 20px; }

    /* ================= pager ================= */

    .pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }

    .pager a {
        flex: 1;
        padding: 12px;
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        color: var(--blue-2);
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        text-decoration: none;
    }

    /* ================= moderation ================= */

    .mod-item { padding: 18px 0; border-top: 1px solid var(--line); }
    .mod-item:first-child { border-top: none; padding-top: 0; }
    .mod-quote { margin: 10px 0 0; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

    /* ================= mobile strips ================= */

    .strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 16px; scrollbar-width: none; }
    .strip::-webkit-scrollbar { display: none; }

    .strip a {
        flex: 0 0 auto;
        padding: 7px 14px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--panel);
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .strip a.on { background: var(--blue); border-color: var(--blue); color: #fff; }

    /* ================= bottom nav (mobile) ================= */

    .bottomnav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: flex;
        background: rgba(13, 21, 35, .96);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottomnav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 9px 4px 10px;
        font-size: 11px;
        font-weight: 600;
        color: var(--faint);
        text-decoration: none;
    }

    /* Same box for every icon, so the raised Post button's label sits on
       the same line as the others. */
    .bottomnav i { font-size: 22px; height: 30px; display: grid; place-items: center; }
    .bottomnav a.on { color: var(--blue-2); }

    .bottomnav .plus i {
        display: grid;
        place-items: center;
        width: 40px;
        height: 30px;
        border-radius: 10px;
        background: var(--blue);
        color: #fff;
        font-size: 20px;
    }

    /* ================= push banner ================= */

    #push-box .banner-x { flex: 0 0 auto; width: 44px; height: 44px; margin: 0 0 0 -6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
    #push-box { position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 40; }

    .banner {
        display: flex;
        gap: 14px;
        align-items: center;
        justify-content: space-between;
        max-width: 560px;
        margin: 0 auto;
        padding: 14px 16px;
        background: var(--raise);
        border: 1px solid var(--blue-line);
        border-radius: var(--radius);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
    }

    .banner { flex-wrap: wrap; }
    .banner > div { flex: 1 1 200px; min-width: 0; }
    .banner strong { color: var(--ink); }
    .banner button { width: auto; margin: 0; padding: 10px 16px; font-size: 14px; white-space: nowrap; }

    /* ================= profiles ================= */

    .av { overflow: hidden; }
    .av img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .btn-ghost {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        width: auto;
        margin: 0;
        padding: 8px 14px;
        border: 1px solid var(--line-2);
        border-radius: 999px;
        background: transparent;
        color: var(--ink);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    .btn-ghost:hover { background: var(--raise); color: var(--ink); }
    .btn-ghost--dark { background: rgba(10, 16, 28, .72); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
    .btn-ghost--dark:hover { background: rgba(10, 16, 28, .9); }
    .btn-ghost.is-busy { opacity: .6; pointer-events: none; }

    .profile-top .btn-ghost { align-self: center; margin-bottom: 4px; }

    .profile-headline { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink); font-weight: 500; max-width: 68ch; }
    .profile-bio { margin: 14px 0 0; white-space: pre-line; line-height: 1.65; color: var(--text); max-width: 68ch; overflow-wrap: anywhere; }

    .profile-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
    .profile-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
    .profile-links i { font-size: 18px; }

    .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

    .tag {
        display: inline-flex;
        align-items: center;
        padding: 3px 10px;
        border-radius: 999px;
        border: 1px solid var(--line-2);
        color: var(--text);
        font-family: "IBM Plex Mono", ui-monospace, monospace;
        font-size: 12px;
    }

    .progress-card {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 18px;
        padding: 12px 14px;
        border: 1px solid var(--blue-line);
        border-radius: var(--radius-sm);
        background: var(--blue-soft);
        color: var(--text);
        font-size: 14px;
        text-decoration: none;
    }

    .progress-card b { color: var(--ink); }
    .progress-bar { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
    .progress-bar > span { display: block; height: 100%; background: var(--blue-2); }

    .cover-edit {
        position: relative;
        height: 150px;
        border-radius: var(--radius-sm);
        background:
            linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 30px 30px,
            linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 30px 30px,
            linear-gradient(150deg, #3C7FE4 0%, #2059BE 42%, #062F8C 100%);
    }

    .cover-edit-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
    .cover-edit-actions form { margin: 0; }

    /* Photo sits in its own row under the cover, not half on it - half
       over the cover edge looked broken on phones (owner, 2026-09-19). */
    .avatar-edit { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
    .avatar-edit .av-lg { width: 76px; height: 76px; font-size: 26px; border: 2px solid var(--line-2); }
    .avatar-edit form { margin: 0 8px 8px 0; }
    .avatar-edit > div { flex: 1; min-width: 0; }
    .banner-card + form .avatar-edit, .card .step-head + .avatar-edit { margin-top: 12px; padding-left: 0; }
    .card .step-head + .avatar-edit > div { padding-top: 0; }

    .locked {
        display: flex;
        gap: 12px;
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        background: var(--panel-2);
        border: 1px solid var(--line);
        font-size: 14px;
    }

    .locked i { color: var(--faint); font-size: 18px; margin-top: 2px; }
    .locked strong { color: var(--ink); }
    .locked span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

    .prefixed { display: flex; align-items: stretch; }
    .prefixed > span {
        display: grid;
        place-items: center;
        padding: 0 12px;
        border: 1px solid var(--line-2);
        border-right: 0;
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
        background: var(--raise);
        color: var(--muted);
        font-family: "IBM Plex Mono", ui-monospace, monospace;
    }
    .prefixed input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

    .hint { margin: 7px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

    .chip-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .chip-check { display: inline-flex; margin: 0; cursor: pointer; }
    .chip-check input { position: absolute; opacity: 0; pointer-events: none; }
    .chip-check span {
        padding: 7px 13px;
        border-radius: 999px;
        border: 1px solid var(--line-2);
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
    }
    .chip-check input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
    .chip-check input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }

    form > .card, section.card + form, form + form { margin-top: 14px; }

    .sticky-save {
        position: sticky;
        bottom: calc(70px + env(safe-area-inset-bottom));
        z-index: 5;
        margin-top: 14px;
        padding: 10px 0;
        background: linear-gradient(to top, var(--bg) 70%, transparent);
    }
    .sticky-save button { margin-top: 0; }

    .eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); }

    .step-head { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; }
    .step-head .meta { font-weight: 400; }
    .step-num {
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--blue-soft);
        color: var(--blue-2);
        font-family: "IBM Plex Mono", ui-monospace, monospace;
        font-size: 13px;
    }

    .welcome-actions { margin-top: 18px; }
    .welcome-actions button { flex: 1; }
    .welcome-actions .ghost { flex: 0 0 auto; width: auto; padding: 13px 18px; }

    /* ================= social ================= */

    .btn-solid {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        width: auto;
        margin: 0;
        padding: 8px 16px;
        border: 1px solid var(--blue);
        border-radius: 999px;
        background: var(--blue);
        color: #fff;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
    }

    .btn-solid:hover { background: #3C7FE4; }
    .btn-sm { padding: 6px 12px; font-size: 13px; }
    .btn-ghost.is-on { border-color: var(--blue-line); color: var(--blue-2); }
    .btn-ghost.is-static { cursor: default; color: var(--green); border-color: rgba(53, 208, 127, .35); }
    .btn-ghost.is-static:hover { background: transparent; }

    .social-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--muted); }
    .social-counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
    .social-counts a { color: var(--muted); text-decoration: none; }
    .social-counts a:hover { color: var(--ink); }

    .profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
    .profile-actions form { margin: 0; }

    .more-menu { position: relative; }
    .more-menu summary { list-style: none; padding: 8px 10px; }
    .more-menu summary::-webkit-details-marker { display: none; }
    .more-menu-list {
        max-width: calc(100vw - 32px);
        position: absolute;
        z-index: 10;
        top: calc(100% + 6px);
        left: 0;
        min-width: 190px;
        padding: 6px;
        background: var(--raise);
        border: 1px solid var(--line-2);
        border-radius: var(--radius-sm);
    }
    .more-menu-list form { margin: 0; }
    .more-menu-list button {
        width: 100%;
        margin: 0;
        padding: 9px 12px;
        text-align: left;
        background: none;
        color: var(--text);
        font-size: 14px;
        font-weight: 600;
        border-radius: 4px;
    }
    .more-menu-list button:hover { background: var(--panel); }
    .more-menu-list .danger-text { color: var(--red); }
    .more-menu-list--right { left: auto; right: 0; }
    .more-menu-list a { display: block; padding: 9px 12px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 4px; }
    .more-menu-list a:hover { background: var(--panel); }

    /* Polls */
    .poll { margin-top: 14px; display: grid; gap: 8px; }
    .poll form { margin: 0; }
    .poll-opt {
        position: relative; display: flex; justify-content: space-between; gap: 10px; width: 100%;
        margin: 0; padding: 11px 14px; overflow: hidden; text-align: left;
        background: var(--panel); color: var(--text); border: 1px solid var(--line-2);
        border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    }
    button.poll-opt:hover { border-color: var(--blue-line); background: var(--raise); }
    .poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: var(--blue-soft); z-index: 0; }
    .poll-opt span { position: relative; z-index: 1; }
    .poll-opt.mine { border-color: var(--blue-line); color: var(--ink); }
    .poll-meta { font-size: 13px; color: var(--muted); }
    .poll-builder { display: grid; gap: 8px; margin-top: 8px; }
    .poll-builder[hidden] { display: none; }

    .edited { color: var(--faint); font-size: 12px; }
    .reply-to { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
    .reply-to a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
    .reply-to a:hover { color: var(--blue-2); }
    .reply-to i { color: var(--faint); }
    .reply-answer textarea { min-height: 70px; }
    .reply-edit { margin-top: 8px; }
    .reply-edit summary { cursor: pointer; color: var(--faint); font-size: 13px; list-style: none; display: inline; }
    .reply-edit summary::-webkit-details-marker { display: none; }
    .reply-edit textarea { min-height: 90px; margin-top: 8px; }

    .tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
    .tabs a {
        padding: 10px 14px;
        margin-bottom: -1px;
        border-bottom: 2px solid transparent;
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }
    .tabs a:hover { color: var(--ink); }
    .tabs a.on { color: var(--ink); border-bottom-color: var(--blue); }

    .bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); text-decoration: none; }
    .bell i { font-size: 21px; }
    .bell:hover, .bell.on { background: var(--raise); color: var(--ink); }
    .bell-count {
        position: absolute;
        top: -4px;
        right: -7px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--red);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
        border: 2px solid var(--bg);
        box-sizing: content-box;
    }

    .notif-list { padding: 6px; }
    .notif, .request-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
    .notif + .notif, .request-row + .request-row { border-top: 1px solid var(--line); }
    .notif:hover { background: var(--panel-2); }
    .notif.is-unread { background: var(--blue-soft); }
    .notif-av { position: relative; flex: 0 0 auto; }
    .notif-type {
        position: absolute;
        right: -4px;
        bottom: -4px;
        display: grid;
        place-items: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--blue);
        color: #fff;
        font-size: 11px;
        border: 2px solid var(--panel);
    }
    .notif-sys { background: var(--raise); color: var(--blue-2); font-size: 16px; }
    .notif-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .notif-text strong { color: var(--ink); font-weight: 600; font-size: 14.5px; }
    .notif-body { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .notif-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--blue-2); }

    .request-row { align-items: center; flex-wrap: wrap; }
    .request-text { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
    .request-text a { color: var(--ink); text-decoration: none; }
    .request-note { font-size: 14px; color: var(--text); font-style: italic; }
    .request-actions { display: flex; gap: 8px; }
    .request-actions form { margin: 0; }

    /* ================= groups ================= */

    .group-tile { align-items: flex-start; }
    .group-tile strong { overflow-wrap: anywhere; }
    .group-tile .group-desc { display: block; margin-top: 3px; color: var(--text); font-size: 13.5px; line-height: 1.45; }
    .group-tile .group-meta { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }

    .group-rules { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
    .group-rules summary { cursor: pointer; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 14px; }
    .group-rules p { margin: 0; padding: 0 14px 14px; white-space: pre-line; color: var(--text); font-size: 14px; line-height: 1.6; }

    .vis-picker { margin: 18px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
    .vis-picker legend { margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 600; color: var(--text); }
    .vis-option { display: flex; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel-2); cursor: pointer; }
    .vis-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: 0 0 auto; }
    .vis-option strong { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; }
    .vis-option span span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
    .vis-option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

    .invite-row { display: flex; gap: 8px; }
    .invite-row .btn-solid { flex: 0 0 auto; }
    .more-menu-list--right { left: auto; right: 0; }
    .request-row .more-menu { margin-left: auto; }

    .held-why { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--amber-soft); color: var(--amber); font-size: 13.5px; }

    /* ================= rules ================= */

    .rules-list { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 10px; }
    .rules-list li { color: var(--text); font-size: 14.5px; line-height: 1.6; max-width: 72ch; }
    .rules-list li::marker { color: var(--blue-2); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
    .rules-list strong { color: var(--ink); }

    .join-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .join-form .check { margin: 0; padding: 8px 12px; font-size: 13px; }

    /* ================= breakpoints ================= */

    .only-mobile { display: block; }
    .only-desktop { display: none; }
    /* The spaces strip scrolls sideways; .only-mobile must not turn it into a block. */
    .strip.only-mobile { display: flex; }

    @media (max-width: 759px) {
        .topsearch { display: none; }
        .topactions .btn-primary span { display: none; }
        .topactions .btn-primary { padding: 0 12px; }
    }

    @media (max-width: 520px) {
        .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
        .member-card { padding: 16px 10px 14px; }
        .member-card .av { width: 48px; height: 48px; font-size: 16px; }
        .profile-top { flex-wrap: wrap; justify-content: space-between; }
        .profile-top > div { order: 3; flex: 0 0 100% !important; padding-bottom: 0 !important; }
        /* Profile edit link: a full-width labelled button under the name, not a
           lone pencil floating on the cover edge (owner, 2026-09-19). */
        .post-actions { padding: 6px 4px; }
        .post-actions .act { padding: 8px 8px; gap: 5px; }
        .profile-top .btn-ghost { order: 4; flex: 0 0 100%; justify-content: center; margin: 12px 0 0; align-self: auto; }
        .post-actions { flex-wrap: wrap; row-gap: 0; }
        .pagehead { flex-wrap: wrap; align-items: flex-start; }
        .pagehead > div { flex: 1 1 100%; }
        .banner-row .btn-primary { white-space: normal; height: auto; min-height: 38px; padding: 8px 16px; max-width: 100%; text-align: left; }
        .post-head > div:nth-child(2) { flex: 1; min-width: 0; }
        .post-who { overflow-wrap: anywhere; }
        /* The long name is cut inside .pill-text, so the pill itself does not
           clip its 44px tap area (::after below). */
        .post-sub .pill-space { max-width: 100%; vertical-align: middle; }
        .post-sub .pill-space .pill-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
        .post-flags { flex-wrap: wrap; justify-content: flex-end; }
        form.tiny button, .reply-edit summary { padding: 8px 4px; }
        .topbar { padding: 0 12px; gap: 10px; }
        /* The bottom nav already has Post; the top pencil only crowded 360px screens. */
        .topactions .btn-primary { display: none; }
        .card { padding: 16px; }
        .reply { gap: 8px; }
    }

    /* Tablet: left menu aa jata hai, right sidebar abhi nahi. */
    @media (min-width: 900px) {
        .shell--in { grid-template-columns: 240px minmax(0, 1fr); padding: 24px 24px 48px; }
        .left { display: block; }
        .bottomnav { display: none; }
        .sticky-save { bottom: 0; }
        #push-box { bottom: 20px; }
        .only-mobile, .strip.only-mobile { display: none; }
        .only-desktop { display: block; }
    }

    /* Desktop: poori chaurai - teen column. */
    @media (min-width: 1240px) {
        .shell--in { grid-template-columns: 260px minmax(0, 1fr) 320px; gap: 28px; padding: 28px 32px 56px; }
        .right { display: block; }
        .post-inner { padding: 20px 24px 6px; }
    }

    @media (prefers-reduced-motion: reduce) {
        * { transition: none !important; }
    }

/* Shortcuts on your own profile: the way in to menu pages on a phone (SQA M1).
   On wide screens the side menu has them all, so the card is hidden there. */
.shortcuts { display: none; margin-top: 20px; }
.shortcuts a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
               color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.shortcuts a:first-of-type { border-top: 0; }
.shortcuts a i { font-size: 19px; color: var(--muted); width: 22px; text-align: center; }
@media (max-width: 899px) { .shortcuts { display: block; } }

/* While the notifications banner floats above the bottom bar, the page gets
   room under it so the last Comment button is not covered (SQA H7.12). */
body:has(#push-box:not([hidden])) .main { padding-bottom: 200px; }

/* Thread tools and small links: at least 44px to tap on a phone (SQA a11y). */
@media (max-width: 899px) {
    .linkform button { min-height: 44px; }
    /* Comment tools: the 44px tap area is an invisible ::after, so the row
       keeps the height of its text (was 116px for two lines, SQA 2026-09-22). */
    .reply-tools form.tiny button, .reply-tools .reply-edit summary { position: relative; min-height: 0; padding: 4px 2px; }
    .reply-tools form.tiny button::after, .reply-tools .reply-edit summary::after {
        content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%);
    }
}

/* Small stand-alone links on a phone (author names, space pills, Back links,
   counts, the More button): same invisible 44px tap area, no visual change. */
@media (max-width: 899px) {
    .post-who a, .reply-who a, .pill-space, .banner-meta a, .mod-item a, .profile-links a,
    .request-text a, .social-counts a, a.back, .profile-actions .btn-ghost,
    .more-menu > summary, details.card > summary { position: relative; }
    .post-who a::after, .reply-who a::after, .pill-space::after, .banner-meta a::after, .mod-item a::after,
    .profile-links a::after, .request-text a::after, .social-counts a::after, a.back::after,
    .profile-actions .btn-ghost::after, .more-menu > summary::after, details.card > summary::after {
        content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; min-width: 44px; transform: translateY(-50%);
    }
}

/* A closed <details> shows only its summary: its hidden content takes no room
   and is out of the page for screen readers and element counts. */
details:not([open]) > :not(summary) { display: none; }

/* Below 900px the bottom bar has Post, so the top New post button only doubled
   it (SQA L5: both showed at ~830px). */
@media (max-width: 899px) { .topactions .btn-primary { display: none; } }

/* A thin bar across the top while the next page loads, so a tap never looks
   frozen on a slow phone connection (SQA speed). */
#nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
                background: var(--blue-2); box-shadow: 0 0 8px var(--blue); opacity: 0;
                transition: width 8s cubic-bezier(.1, .7, .2, 1), opacity .2s; pointer-events: none; }
#nav-progress.go { width: 85%; opacity: 1; }
@media (prefers-reduced-motion: reduce) { #nav-progress { transition: opacity .2s; } }
