:root {
    --bg: #f6efe7;
    --ink: #2d211c;
    --muted: #6d5a52;
    --line: rgba(45, 33, 28, 0.12);
    --panel: rgba(255, 252, 249, 0.92);
    --panel-strong: #fffaf5;
    --accent: #cd5c3f;
    --accent-deep: #8e3827;
    --accent-soft: rgba(205, 92, 63, 0.12);
    --success-bg: rgba(232, 247, 236, 0.94);
    --success-line: rgba(62, 126, 82, 0.2);
    --error-bg: rgba(255, 236, 232, 0.95);
    --error-line: rgba(142, 56, 39, 0.2);
    --shadow: 0 1.6rem 4rem rgba(77, 50, 39, 0.12);
    --bg-accent-1: rgba(205, 92, 63, 0.16);
    --bg-accent-2: rgba(218, 170, 98, 0.18);
    --bg-base-top: #fbf7f3;
    --bg-base-bottom: #f6efe7;
    --panel-border-width: 1px;
    --panel-radius: 1.35rem;
    --panel-shadow: var(--shadow);
    --panel-blur: 14px;
    --panel-accent-overlay: linear-gradient(135deg, rgba(205, 92, 63, 0.08), rgba(218, 170, 98, 0.08));
    --button-radius: 999px;
    --button-border-width: 1px;
    --button-font-weight: 700;
    --button-letter-spacing: 0;
    --button-text-transform: none;
    --button-shadow: 0 0.9rem 1.8rem rgba(77, 50, 39, 0.12);
    --button-hover-translate-y: -1px;
    --button-hover-scale: 1;
    --button-primary-shadow: 0 1rem 2rem rgba(142, 56, 39, 0.18);
    --button-primary-text: #fff;
    --button-primary-border-color: transparent;
    --input-radius: 1rem;
    --input-border-width: 1px;
    --input-background: rgba(255, 255, 255, 0.92);
    --input-shadow: none;
    --ui-font-family: "DM Sans";
    --ui-font-scale: 1;
    --button-primary-filter: saturate(1) brightness(1);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, var(--bg-accent-1), transparent 22rem),
        radial-gradient(circle at right 18%, var(--bg-accent-2), transparent 18rem),
        linear-gradient(180deg, var(--bg-base-top) 0%, var(--bg-base-bottom) 100%);
    color: var(--ink);
    font-family: var(--ui-font-family), sans-serif;
    font-size: calc(16px * var(--ui-font-scale));
    transition: font-size 140ms ease, background 180ms ease, color 180ms ease;
}

body[data-theme-style="sunrise"] {
    --bg: #f6efe7;
    --ink: #2d211c;
    --muted: #6d5a52;
    --line: rgba(45, 33, 28, 0.12);
    --panel: rgba(255, 252, 249, 0.92);
    --panel-strong: #fffaf5;
    --shadow: 0 1.6rem 4rem rgba(77, 50, 39, 0.12);
    --bg-accent-1: rgba(205, 92, 63, 0.16);
    --bg-accent-2: rgba(218, 170, 98, 0.18);
    --bg-base-top: #fbf7f3;
    --bg-base-bottom: #f6efe7;
}

body[data-theme-style="coastal"] {
    --bg: #edf6f6;
    --ink: #17343b;
    --muted: #547078;
    --line: rgba(23, 52, 59, 0.12);
    --panel: rgba(248, 254, 255, 0.9);
    --panel-strong: #f8feff;
    --shadow: 0 1.6rem 4rem rgba(41, 95, 103, 0.14);
    --bg-accent-1: rgba(77, 165, 191, 0.16);
    --bg-accent-2: rgba(162, 217, 208, 0.22);
    --bg-base-top: #f9ffff;
    --bg-base-bottom: #edf6f6;
}

body[data-theme-style="midnight"] {
    --bg: #1a1f2a;
    --ink: #eef3ff;
    --muted: #b7c0d9;
    --line: rgba(255, 255, 255, 0.12);
    --panel: rgba(26, 33, 45, 0.9);
    --panel-strong: #21293a;
    --shadow: 0 1.6rem 4rem rgba(7, 10, 17, 0.38);
    --success-bg: rgba(24, 68, 43, 0.82);
    --success-line: rgba(126, 214, 160, 0.18);
    --error-bg: rgba(93, 33, 39, 0.82);
    --error-line: rgba(235, 145, 157, 0.18);
    --bg-accent-1: rgba(87, 116, 199, 0.26);
    --bg-accent-2: rgba(13, 185, 177, 0.14);
    --bg-base-top: #232b3d;
    --bg-base-bottom: #161c29;
}

body[data-theme-style="meadow"] {
    --bg: #eef6ea;
    --ink: #23311f;
    --muted: #5d7054;
    --line: rgba(35, 49, 31, 0.12);
    --panel: rgba(251, 255, 248, 0.92);
    --panel-strong: #fbfff8;
    --shadow: 0 1.6rem 4rem rgba(62, 92, 43, 0.12);
    --bg-accent-1: rgba(127, 184, 84, 0.16);
    --bg-accent-2: rgba(219, 239, 161, 0.18);
    --bg-base-top: #f9fff4;
    --bg-base-bottom: #eef6ea;
}

body[data-theme-style="rosewater"] {
    --bg: #fbf0f2;
    --ink: #3a252b;
    --muted: #7f6167;
    --line: rgba(58, 37, 43, 0.12);
    --panel: rgba(255, 251, 252, 0.92);
    --panel-strong: #fffafc;
    --shadow: 0 1.6rem 4rem rgba(115, 71, 83, 0.12);
    --bg-accent-1: rgba(224, 148, 171, 0.18);
    --bg-accent-2: rgba(255, 217, 224, 0.22);
    --bg-base-top: #fff9fb;
    --bg-base-bottom: #fbf0f2;
}

body[data-theme-style="graphite"] {
    --bg: #eceff2;
    --ink: #20262d;
    --muted: #5c6874;
    --line: rgba(32, 38, 45, 0.12);
    --panel: rgba(250, 252, 255, 0.9);
    --panel-strong: #fcfdff;
    --shadow: 0 1.6rem 4rem rgba(55, 66, 79, 0.12);
    --bg-accent-1: rgba(84, 101, 122, 0.14);
    --bg-accent-2: rgba(191, 202, 214, 0.2);
    --bg-base-top: #fafcff;
    --bg-base-bottom: #eceff2;
}

body[data-theme-style="ember"] {
    --bg: #f8efe8;
    --ink: #35231b;
    --muted: #73584c;
    --line: rgba(53, 35, 27, 0.12);
    --panel: rgba(255, 250, 246, 0.92);
    --panel-strong: #fffaf6;
    --shadow: 0 1.6rem 4rem rgba(111, 64, 44, 0.14);
    --bg-accent-1: rgba(191, 107, 63, 0.2);
    --bg-accent-2: rgba(238, 192, 109, 0.18);
    --bg-base-top: #fff8f2;
    --bg-base-bottom: #f8efe8;
}

body[data-theme-style="glacier"] {
    --bg: #edf4fa;
    --ink: #1d2d3f;
    --muted: #5b7087;
    --line: rgba(29, 45, 63, 0.12);
    --panel: rgba(249, 252, 255, 0.92);
    --panel-strong: #fbfdff;
    --shadow: 0 1.6rem 4rem rgba(56, 93, 131, 0.12);
    --bg-accent-1: rgba(125, 169, 217, 0.18);
    --bg-accent-2: rgba(201, 228, 248, 0.24);
    --bg-base-top: #fbfeff;
    --bg-base-bottom: #edf4fa;
}

body[data-theme-style="parchment"] {
    --bg: #f5f0e3;
    --ink: #382c20;
    --muted: #736350;
    --line: rgba(56, 44, 32, 0.12);
    --panel: rgba(255, 251, 242, 0.92);
    --panel-strong: #fffbf2;
    --shadow: 0 1.6rem 4rem rgba(94, 74, 52, 0.12);
    --bg-accent-1: rgba(192, 154, 98, 0.18);
    --bg-accent-2: rgba(233, 214, 166, 0.22);
    --bg-base-top: #fffdf6;
    --bg-base-bottom: #f5f0e3;
}

body[data-theme-style="forest"] {
    --bg: #e8f0eb;
    --ink: #203229;
    --muted: #5b6f63;
    --line: rgba(32, 50, 41, 0.12);
    --panel: rgba(248, 253, 249, 0.9);
    --panel-strong: #fbfffc;
    --shadow: 0 1.6rem 4rem rgba(43, 81, 59, 0.14);
    --bg-accent-1: rgba(53, 125, 87, 0.18);
    --bg-accent-2: rgba(179, 215, 193, 0.2);
    --bg-base-top: #f8fdf9;
    --bg-base-bottom: #e8f0eb;
}

body[data-theme-style="coastal"],
body[data-theme-style="glacier"] {
    --panel-blur: 18px;
    --button-radius: 1.1rem;
    --input-radius: 1rem;
}

body[data-theme-style="midnight"],
body[data-theme-style="graphite"] {
    --button-radius: 0.95rem;
    --button-letter-spacing: 0.02em;
    --input-background: rgba(255, 255, 255, 0.04);
    --input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme-style="parchment"] {
    --button-radius: 0.8rem;
    --button-letter-spacing: 0.03em;
    --button-text-transform: uppercase;
    --panel-accent-overlay: linear-gradient(135deg, rgba(192, 154, 98, 0.08), rgba(233, 214, 166, 0.08));
}

body[data-theme-style="rosewater"] {
    --button-radius: 1.4rem;
    --input-radius: 1.25rem;
    --panel-shadow: 0 1.8rem 4rem rgba(148, 101, 112, 0.12);
}

body[data-theme-style="glass"] {
    --bg: #edf4fb;
    --ink: #183042;
    --muted: #5b7184;
    --line: rgba(255, 255, 255, 0.36);
    --panel: rgba(255, 255, 255, 0.3);
    --panel-strong: rgba(255, 255, 255, 0.42);
    --shadow: 0 2rem 4.8rem rgba(52, 92, 127, 0.2);
    --panel-border-width: 1px;
    --panel-radius: 1.6rem;
    --panel-shadow: 0 2rem 4.8rem rgba(52, 92, 127, 0.2);
    --panel-blur: 24px;
    --panel-accent-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    --button-radius: 1.2rem;
    --button-shadow: 0 1.1rem 2.5rem rgba(80, 131, 173, 0.18);
    --button-primary-shadow: 0 1.2rem 2.8rem rgba(80, 131, 173, 0.24);
    --input-radius: 1.15rem;
    --input-background: rgba(255, 255, 255, 0.58);
    --input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    --bg-accent-1: rgba(150, 199, 235, 0.34);
    --bg-accent-2: rgba(222, 240, 255, 0.42);
    --bg-base-top: #fafdff;
    --bg-base-bottom: #edf4fb;
}

body[data-theme-style="softui"] {
    --bg: #eef2f7;
    --ink: #223143;
    --muted: #617284;
    --line: rgba(255, 255, 255, 0.8);
    --panel: #eef2f7;
    --panel-strong: #f4f7fb;
    --panel-border-width: 1px;
    --panel-radius: 1.8rem;
    --panel-shadow: 1rem 1rem 2rem rgba(164, 180, 200, 0.28), -1rem -1rem 2rem rgba(255, 255, 255, 0.9);
    --panel-blur: 0px;
    --panel-accent-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(210, 220, 232, 0.3));
    --button-radius: 1.4rem;
    --button-shadow: 0.65rem 0.65rem 1.3rem rgba(164, 180, 200, 0.24), -0.65rem -0.65rem 1.3rem rgba(255, 255, 255, 0.82);
    --button-primary-shadow: 0.8rem 0.8rem 1.5rem rgba(164, 180, 200, 0.28), -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.72);
    --button-hover-translate-y: 0px;
    --button-hover-scale: 1.01;
    --input-radius: 1.2rem;
    --input-background: #eef2f7;
    --input-shadow: inset 0.45rem 0.45rem 0.9rem rgba(177, 190, 208, 0.22), inset -0.45rem -0.45rem 0.9rem rgba(255, 255, 255, 0.85);
    --bg-accent-1: rgba(177, 190, 208, 0.22);
    --bg-accent-2: rgba(255, 255, 255, 0.6);
    --bg-base-top: #f6f9fc;
    --bg-base-bottom: #eef2f7;
}

body[data-theme-style="clay"] {
    --bg: #fff0ec;
    --ink: #402926;
    --muted: #896764;
    --line: rgba(255, 255, 255, 0.7);
    --panel: #fff2ef;
    --panel-strong: #fff7f4;
    --panel-radius: 2rem;
    --panel-shadow: 0 1.7rem 3.4rem rgba(205, 150, 139, 0.28);
    --panel-accent-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 217, 207, 0.26));
    --button-radius: 1.45rem;
    --button-shadow: 0 1rem 2rem rgba(205, 150, 139, 0.28);
    --button-primary-shadow: 0 1.1rem 2.2rem rgba(205, 150, 139, 0.34);
    --input-radius: 1.35rem;
    --input-background: rgba(255, 255, 255, 0.75);
    --input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --bg-accent-1: rgba(255, 178, 161, 0.22);
    --bg-accent-2: rgba(255, 224, 211, 0.3);
    --bg-base-top: #fff9f6;
    --bg-base-bottom: #fff0ec;
}

body[data-theme-style="brutal"] {
    --bg: #f8f2da;
    --ink: #111111;
    --muted: #544a35;
    --line: rgba(17, 17, 17, 0.92);
    --panel: rgba(255, 248, 214, 0.96);
    --panel-strong: #fff8d6;
    --panel-border-width: 3px;
    --panel-radius: 0.2rem;
    --panel-shadow: 0.65rem 0.65rem 0 rgba(17, 17, 17, 0.82);
    --panel-blur: 0px;
    --panel-accent-overlay: linear-gradient(135deg, rgba(255, 230, 135, 0.22), rgba(255, 255, 255, 0));
    --button-radius: 0.12rem;
    --button-border-width: 3px;
    --button-font-weight: 800;
    --button-letter-spacing: 0.03em;
    --button-text-transform: uppercase;
    --button-shadow: 0.35rem 0.35rem 0 rgba(17, 17, 17, 0.82);
    --button-hover-translate-y: 2px;
    --button-hover-scale: 1;
    --button-primary-shadow: 0.45rem 0.45rem 0 rgba(17, 17, 17, 0.9);
    --button-primary-border-color: rgba(17, 17, 17, 0.9);
    --input-radius: 0.2rem;
    --input-border-width: 3px;
    --input-background: rgba(255, 255, 255, 0.95);
    --input-shadow: none;
    --bg-accent-1: rgba(255, 216, 87, 0.26);
    --bg-accent-2: rgba(255, 255, 255, 0.24);
    --bg-base-top: #fff9de;
    --bg-base-bottom: #f8f2da;
}

body[data-theme-style="editorial"] {
    --bg: #fbfaf7;
    --ink: #1f1f1f;
    --muted: #6b6b6b;
    --line: rgba(31, 31, 31, 0.1);
    --panel: rgba(255, 255, 255, 0.96);
    --panel-strong: #ffffff;
    --panel-border-width: 1px;
    --panel-radius: 0.35rem;
    --panel-shadow: 0 1rem 2.4rem rgba(31, 31, 31, 0.06);
    --panel-accent-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0));
    --button-radius: 0.28rem;
    --button-font-weight: 700;
    --button-letter-spacing: 0.06em;
    --button-text-transform: uppercase;
    --button-shadow: none;
    --button-primary-shadow: 0 0.75rem 1.5rem rgba(31, 31, 31, 0.08);
    --button-hover-translate-y: -1px;
    --input-radius: 0.3rem;
    --input-background: rgba(255, 255, 255, 0.98);
    --input-shadow: none;
    --bg-accent-1: rgba(0, 0, 0, 0.035);
    --bg-accent-2: rgba(0, 0, 0, 0.015);
    --bg-base-top: #fffefb;
    --bg-base-bottom: #fbfaf7;
}

body[data-theme-style="retro"] {
    --bg: #e8ecff;
    --ink: #1f2457;
    --muted: #5f6799;
    --line: rgba(31, 36, 87, 0.55);
    --panel: #f4f6ff;
    --panel-strong: #fafbff;
    --panel-border-width: 2px;
    --panel-radius: 0.5rem;
    --panel-shadow: inset -2px -2px 0 rgba(255, 255, 255, 0.88), inset 2px 2px 0 rgba(123, 133, 191, 0.22), 0 1rem 2.2rem rgba(72, 87, 163, 0.14);
    --panel-accent-overlay: linear-gradient(135deg, rgba(176, 188, 255, 0.2), rgba(255, 255, 255, 0.16));
    --button-radius: 0.45rem;
    --button-border-width: 2px;
    --button-shadow: inset -2px -2px 0 rgba(255, 255, 255, 0.85), inset 2px 2px 0 rgba(111, 121, 184, 0.28);
    --button-primary-shadow: inset -2px -2px 0 rgba(255, 255, 255, 0.22), inset 2px 2px 0 rgba(27, 41, 112, 0.18), 0 0.8rem 1.6rem rgba(72, 87, 163, 0.16);
    --button-hover-scale: 1.01;
    --input-radius: 0.45rem;
    --input-border-width: 2px;
    --input-background: #fcfdff;
    --input-shadow: inset 2px 2px 0 rgba(182, 190, 235, 0.3);
    --bg-accent-1: rgba(157, 176, 255, 0.22);
    --bg-accent-2: rgba(227, 234, 255, 0.28);
    --bg-base-top: #f8faff;
    --bg-base-bottom: #e8ecff;
}

body[data-theme-style="neon"] {
    --bg: #131523;
    --ink: #f4f7ff;
    --muted: #a6afd7;
    --line: rgba(126, 190, 255, 0.22);
    --panel: rgba(18, 24, 41, 0.9);
    --panel-strong: rgba(23, 29, 52, 0.95);
    --panel-radius: 1.2rem;
    --panel-shadow: 0 0 0 1px rgba(126, 190, 255, 0.14), 0 1.6rem 3.6rem rgba(0, 0, 0, 0.42);
    --panel-blur: 18px;
    --panel-accent-overlay: linear-gradient(135deg, rgba(90, 190, 255, 0.08), rgba(196, 93, 255, 0.12));
    --button-radius: 999px;
    --button-letter-spacing: 0.04em;
    --button-shadow: 0 0 0 1px rgba(126, 190, 255, 0.16), 0 0.8rem 1.8rem rgba(29, 124, 255, 0.14);
    --button-primary-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 2rem rgba(29, 124, 255, 0.25);
    --input-radius: 1rem;
    --input-background: rgba(255, 255, 255, 0.04);
    --input-shadow: inset 0 0 0 1px rgba(126, 190, 255, 0.12);
    --bg-accent-1: rgba(0, 183, 255, 0.16);
    --bg-accent-2: rgba(208, 0, 255, 0.12);
    --bg-base-top: #191c2f;
    --bg-base-bottom: #111422;
}

body[data-theme-accent="coral"] {
    --accent: #cd5c3f;
    --accent-deep: #8e3827;
    --accent-soft: rgba(205, 92, 63, 0.12);
}

body[data-theme-accent="ocean"] {
    --accent: #2d7ea6;
    --accent-deep: #1f5372;
    --accent-soft: rgba(45, 126, 166, 0.14);
}

body[data-theme-accent="emerald"] {
    --accent: #238f72;
    --accent-deep: #16624d;
    --accent-soft: rgba(35, 143, 114, 0.14);
}

body[data-theme-accent="gold"] {
    --accent: #c58a1f;
    --accent-deep: #8a5c0f;
    --accent-soft: rgba(197, 138, 31, 0.16);
}

body[data-theme-accent="berry"] {
    --accent: #b2496f;
    --accent-deep: #7b304b;
    --accent-soft: rgba(178, 73, 111, 0.16);
}

body[data-theme-accent="lavender"] {
    --accent: #7a6fe0;
    --accent-deep: #5148a6;
    --accent-soft: rgba(122, 111, 224, 0.16);
}

body[data-theme-accent="mint"] {
    --accent: #2db38a;
    --accent-deep: #1d7c60;
    --accent-soft: rgba(45, 179, 138, 0.16);
}

body[data-theme-accent="sunset"] {
    --accent: #e4754f;
    --accent-deep: #a34529;
    --accent-soft: rgba(228, 117, 79, 0.16);
}

body[data-theme-accent="ink"] {
    --accent: #355c9b;
    --accent-deep: #243d67;
    --accent-soft: rgba(53, 92, 155, 0.16);
}

body[data-theme-panel-style="solid"] {
    --panel: var(--panel-strong);
    --input-background: var(--panel-strong);
}

body[data-theme-panel-style="glass"] {
    --panel: rgba(255, 255, 255, 0.42);
    --panel-strong: rgba(255, 255, 255, 0.54);
    --panel-blur: 24px;
    --input-background: rgba(255, 255, 255, 0.5);
}

body[data-theme-style="midnight"][data-theme-panel-style="glass"],
body[data-theme-style="graphite"][data-theme-panel-style="glass"],
body[data-theme-style="neon"][data-theme-panel-style="glass"] {
    --panel: rgba(21, 28, 44, 0.62);
    --panel-strong: rgba(26, 33, 52, 0.76);
    --input-background: rgba(255, 255, 255, 0.06);
}

body[data-theme-panel-style="tinted"] {
    --panel-accent-overlay: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
}

body[data-theme-button-vibrance="calm"] {
    --button-primary-filter: saturate(0.82) brightness(0.98);
}

body[data-theme-button-vibrance="balanced"] {
    --button-primary-filter: saturate(1) brightness(1);
}

body[data-theme-button-vibrance="bold"] {
    --button-primary-filter: saturate(1.22) brightness(1.04);
}

body[data-theme-button-vibrance="electric"] {
    --button-primary-filter: saturate(1.38) brightness(1.08);
    --button-primary-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1rem 2.4rem color-mix(in srgb, var(--accent) 48%, transparent);
}

body[data-theme-font-family="dm-sans"] {
    --ui-font-family: "DM Sans";
}

body[data-theme-font-family="manrope"] {
    --ui-font-family: "Manrope";
}

body[data-theme-font-family="space-grotesk"] {
    --ui-font-family: "Space Grotesk";
}

body[data-theme-font-family="outfit"] {
    --ui-font-family: "Outfit";
}

body[data-theme-font-family="sora"] {
    --ui-font-family: "Sora";
}

body[data-theme-font-family="newsreader"] {
    --ui-font-family: "Newsreader";
}

body[data-theme-font-family="merriweather-sans"] {
    --ui-font-family: "Merriweather Sans";
}

body[data-theme-font-family="nunito-sans"] {
    --ui-font-family: "Nunito Sans";
}

body[data-theme-font-family="poppins"] {
    --ui-font-family: "Poppins";
}

body[data-theme-font-family="rubik"] {
    --ui-font-family: "Rubik";
}

body.guest-page {
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

a {
    color: var(--accent-deep);
}

.site-header,
.site-main,
.flash-stack {
    width: 90vw;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    backdrop-filter: blur(var(--panel-blur));
    background: rgba(255, 252, 249, 0.82);
    border: var(--panel-border-width) solid var(--line);
    border-radius: calc(var(--panel-radius) * 0.9);
    box-shadow: var(--panel-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 25;
}

.brand-mark {
    border-bottom: 0;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
}

.brand-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.brand-mark strong {
    font-family: var(--ui-font-family), sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.preferences-trigger,
.chat-launcher-trigger {
    align-items: center;
    display: inline-flex;
    font-size: 2.8rem;
    height: 5rem;
    justify-content: center;
    line-height: 1;
    min-width: 5rem;
    padding: 0 1.35rem;
}

.site-nav form .button.small {
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 3.2rem;
    padding: 0.75rem 1.25rem;
}

.site-nav form {
    margin: 0;
}

.site-version {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    margin-left: 0.85rem;
    padding: 0.42rem 0.72rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-main {
    padding-bottom: 4rem;
    padding-top: 1rem;
}

.panel {
    background: var(--panel);
    border: var(--panel-border-width) solid var(--line);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    padding: 2rem;
}

.panel-accent {
    background: var(--panel-accent-overlay), var(--panel);
}

.modal-backdrop {
    align-items: center;
    background: rgba(27, 18, 15, 0.58);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.5rem;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.2s ease;
    z-index: 30;
}

.modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    background: var(--panel);
    border: var(--panel-border-width) solid var(--line);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    margin: auto 0;
    overflow: visible;
    padding: 1.75rem;
    position: relative;
    width: min(100%, 44rem);
}

.modal-close {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    height: 2.5rem;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.5rem;
}

.preferences-modal {
    width: min(100%, 62rem);
}

.preferences-form .fields {
    display: grid;
    gap: 1rem 1.1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preferences-form .field {
    display: grid;
    gap: 0.4rem;
}

.preferences-form .field:nth-child(5),
.preferences-form .field:nth-child(6) {
    grid-column: 1 / -1;
}

.field-inline-heading {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.font-scale-value {
    color: var(--accent-deep);
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 3.5rem;
    text-align: right;
}

.preferences-form input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    min-height: 2.4rem;
    padding-block: 0.45rem;
    touch-action: pan-y;
    width: 100%;
}

.preferences-form input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), var(--accent));
    border-radius: 999px;
    height: 0.78rem;
}

.preferences-form input[type="range"]::-moz-range-track {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), var(--accent));
    border-radius: 999px;
    height: 0.78rem;
}

.preferences-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    border: 3px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    box-shadow: 0 0.55rem 1.2rem rgba(0, 0, 0, 0.18);
    height: 1.55rem;
    margin-top: -0.385rem;
    transition: transform 140ms ease, box-shadow 140ms ease;
    width: 1.55rem;
}

.preferences-form input[type="range"]::-moz-range-thumb {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    border: 3px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    box-shadow: 0 0.55rem 1.2rem rgba(0, 0, 0, 0.18);
    height: 1.55rem;
    transition: transform 140ms ease, box-shadow 140ms ease;
    width: 1.55rem;
}

.preferences-form input[type="range"]:active {
    cursor: grabbing;
}

.preferences-form input[type="range"]:focus-visible {
    outline: none;
}

.preferences-form input[type="range"]:focus-visible::-webkit-slider-runnable-track,
.preferences-form input[type="range"]:focus-visible::-moz-range-track {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 28%, transparent);
}

.preferences-form input[type="range"]::-webkit-slider-thumb:hover,
.preferences-form input[type="range"]::-webkit-slider-thumb:active,
.preferences-form input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 0.75rem 1.45rem rgba(0, 0, 0, 0.24);
    transform: scale(1.08);
}

.preferences-form input[type="range"]::-moz-range-thumb:active {
    box-shadow: 0 0.75rem 1.45rem rgba(0, 0, 0, 0.24);
    transform: scale(1.08);
}

.preferences-form .actions {
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 760px) {
    .preferences-form .fields {
        grid-template-columns: 1fr;
    }

    .preferences-form .field:nth-child(5),
    .preferences-form .field:nth-child(6) {
        grid-column: auto;
    }
}

.modal-flash-stack {
    display: grid;
    gap: 0.85rem;
    margin: 1rem 0 0;
}

.flash-stack {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.flash {
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 0.95rem 1.1rem;
    line-height: 1.6;
}

.flash-success {
    background: var(--success-bg);
    border-color: var(--success-line);
}

.flash-error {
    background: var(--error-bg);
    border-color: var(--error-line);
}

.eyebrow {
    color: var(--accent-deep);
}

.hero-text,
.form-note,
.member-card p,
.member-meta-line,
dd,
.feature-strip span {
    color: var(--muted);
}

.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    border-radius: var(--button-radius) !important;
    border-width: var(--button-border-width) !important;
    font-weight: var(--button-font-weight);
    letter-spacing: var(--button-letter-spacing);
    text-transform: var(--button-text-transform);
    box-shadow: var(--button-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.button.primary,
button.primary,
input[type="submit"].primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: var(--button-primary-border-color);
    box-shadow: var(--button-primary-shadow);
    color: var(--button-primary-text) !important;
    filter: var(--button-primary-filter);
}

.button.is-selected {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: transparent;
    color: #fff !important;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
    box-shadow: var(--button-primary-shadow);
    transform: translateY(var(--button-hover-translate-y)) scale(var(--button-hover-scale));
}

input:not([type="submit"]):not([type="reset"]):not([type="button"]),
select,
textarea {
    background: var(--input-background);
    border-radius: var(--input-radius);
    border-width: var(--input-border-width);
    box-shadow: var(--input-shadow);
    font: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.landing-shell,
.dashboard-grid,
.profile-grid {
    display: grid;
    gap: 1.5rem;
}

.landing-shell {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
    padding-top: 1rem;
}

.promo-panel {
    align-self: stretch;
}

.landing-copy h1,
.page-hero h1 {
    margin-bottom: 1rem;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature-strip article {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.feature-strip strong {
    display: block;
    font-family: var(--ui-font-family), sans-serif;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.auth-form-card {
    margin: 1.5rem 0 0;
}

.auth-form-card .actions {
    margin-bottom: 0.75rem;
}

.auth-form-card .field,
.profile-edit-section .field {
    align-content: start;
    display: grid;
    gap: 0.35rem;
}

.auth-form-card .field label,
.profile-edit-section .field label {
    line-height: 1.2;
    margin: 0;
}

.profile-form-panel input[type="number"] {
    padding-left: 1rem;
    padding-right: 2.75rem;
    text-align: left;
}

.upload-field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.upload-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-photo-actions {
    justify-content: center;
    margin-top: 0.85rem;
}

.upload-trigger {
    cursor: pointer;
    min-width: 12rem;
    text-align: center;
}

.section-heading,
.member-heading,
.profile-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.discover-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    min-width: min(42rem, 100%);
}

.discover-search-input {
    margin: 0;
    min-width: min(18rem, 100%);
    width: min(28rem, 100%);
}

.discover-filter-select {
    margin: 0;
    min-width: 12rem;
}

.discover-toggle {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 0.65rem;
    min-height: 2.8rem;
}

.discover-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.discover-toggle-slider {
    background: rgba(148, 163, 184, 0.36);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.55rem;
    position: relative;
    transition: background 140ms ease, border-color 140ms ease;
    width: 2.8rem;
}

.discover-toggle-slider::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.2);
    content: "";
    height: 1.15rem;
    left: 0.16rem;
    position: absolute;
    top: 0.14rem;
    transition: transform 140ms ease;
    width: 1.15rem;
}

.discover-toggle input:checked + .discover-toggle-slider {
    background: rgba(34, 197, 94, 0.28);
    border-color: rgba(34, 197, 94, 0.45);
}

.discover-toggle input:checked + .discover-toggle-slider::after {
    transform: translateX(1.18rem);
}

.discover-toggle-copy {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.page-shell {
    display: grid;
    gap: 1.5rem;
    padding-top: 1rem;
}

.dashboard-hero {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-hero-copy {
    min-width: 0;
}

.dashboard-hero-logo-wrap {
    display: flex;
    justify-content: center;
}

.dashboard-hero-logo {
    display: block;
    height: auto;
    max-width: min(22rem, 30vw);
    object-fit: contain;
    width: 100%;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.profile-grid {
    grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
}

.profile-panel,
.profile-form-panel {
    align-self: start;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.discover-load-more {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.85rem 0;
    text-align: center;
}

.discover-scroll-sentinel {
    height: 1px;
    width: 100%;
}

.member-card-shell {
    min-width: 0;
}

.member-card {
    display: grid;
    gap: 0.7rem;
    padding: 0.95rem;
}

.member-card > * {
    min-width: 0;
}

.member-card-media {
    aspect-ratio: 1 / 1;
    border-radius: 0.85rem;
    overflow: hidden;
    background: rgba(205, 92, 63, 0.08);
}

.member-card-media-trigger {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: block;
    font-size: 0;
    height: auto !important;
    line-height: 0;
    margin: 0;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: box-shadow 140ms ease;
    width: 100%;
}

.member-presence-dot {
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    height: 0.95rem;
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    width: 0.95rem;
    z-index: 2;
}

.member-presence-dot.is-online {
    background: #22c55e;
    box-shadow: 0 0 0.8rem rgba(34, 197, 94, 0.38);
}

.member-presence-dot.is-offline {
    background: #ef4444;
    box-shadow: 0 0 0.8rem rgba(239, 68, 68, 0.28);
}

.member-card-media-trigger:hover,
.member-card-media-trigger:focus-visible {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
}

.member-card-media-trigger:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 45%, white);
    outline-offset: 0.18rem;
}

.member-photo,
.profile-summary-photo,
.profile-photo-preview img,
.photo-tile img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.member-card-media .member-photo {
    aspect-ratio: 1 / 1;
    height: auto;
}

.member-location {
    font-size: 0.95rem;
    margin: 0;
}

.member-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.member-card-actions {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-detail-trigger {
    margin-top: 0.15rem;
}

.member-card-actions .button {
    align-items: center;
    display: inline-flex;
    font-size: 0.78rem;
    justify-content: center;
    line-height: 1.2;
    min-width: 0;
    padding: 0.6rem 0.5rem;
    text-align: center;
    width: 100%;
}

.member-card-actions .wide {
    width: 100%;
}

.member-detail-modal {
    width: min(100%, 72rem);
}

.chat-request-modal {
    width: min(100%, 30rem);
}

.chat-request-person {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    margin: 1rem 0 0.5rem;
}

.chat-request-person strong,
.chat-request-person p {
    margin: 0;
}

.chat-request-avatar {
    align-items: center;
    background: rgba(205, 92, 63, 0.12);
    border-radius: 999px;
    display: flex;
    height: 3.5rem;
    justify-content: center;
    overflow: hidden;
    width: 3.5rem;
}

.chat-request-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.chat-request-avatar span {
    color: var(--accent-deep);
    font-size: 1.25rem;
    font-weight: 700;
}

.chat-request-actions,
.live-chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.live-chat-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.live-chat-timer-note {
    background: color-mix(in srgb, var(--accent) 18%, white);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
    border-radius: 1rem;
    box-shadow: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.08);
    color: var(--accent-deep);
    flex: 1 1 16rem;
    margin: 0;
    padding: 0.9rem 1rem;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

#live-chat-remove-timer {
    align-items: center;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.9rem 1.3rem;
    text-align: center;
}

#live-chat-remove-timer:not([hidden]) {
    flex: 0 0 auto;
}

#live-chat-remove-timer[disabled] {
    opacity: 0.8;
}

#live-chat-modal {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

.live-chat-modal {
    border-radius: 0;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(19rem, 22rem) minmax(0, 1fr);
    height: 100vh;
    margin: 0 0 0 auto;
    max-width: 46vw;
    overflow: hidden;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    width: 46vw;
}

#live-chat-modal.is-open .live-chat-modal {
    transform: translateX(0);
}

.conference-dock {
    background:
        radial-gradient(circle at top left, rgba(32, 185, 158, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(7, 13, 24, 0.98));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    bottom: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 46vw;
    transform: translateX(-1.2rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 29;
}

.conference-dock.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.conference-dock-header {
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
    padding: 1rem 1.15rem 0.9rem;
}

.conference-dock-header .eyebrow {
    color: rgba(190, 243, 231, 0.86);
    margin: 0 0 0.3rem;
}

.conference-dock-header h2 {
    color: #f8fafc;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    margin: 0;
}

.conference-dock-close {
    flex: 0 0 auto;
    position: static;
}

.conference-dock-frame {
    background: #020617;
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.chat-friend-sidebar {
    background: rgba(255, 255, 255, 0.5);
    border-right: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0.8rem 1rem 1rem;
    transition: opacity 0.22s ease, transform 0.22s ease, width 0.22s ease, padding 0.22s ease;
}

.chat-friend-sidebar-top {
    display: grid;
    gap: 0.25rem;
}

.chat-friend-sidebar-top h2 {
    display: none !important;
}

.chat-friend-sidebar-heading {
    align-items: start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.chat-friend-sidebar-controls {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

.chat-friend-presence-filter {
    font-size: 0.78rem;
    min-height: 2.35rem;
    min-width: 4.9rem;
    padding: 0.45rem 0.8rem;
}

.chat-friend-sidebar-top h2,
.chat-friend-sidebar-top p {
    margin: 0;
}

.chat-friend-list {
    display: grid;
    gap: 0.65rem;
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.chat-friend-empty {
    color: var(--muted);
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem 0.25rem;
}

.chat-friend-filter-empty {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0 0.25rem;
}

.chat-friend-item {
    align-items: stretch;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--line);
    border-radius: 1rem !important;
    box-sizing: border-box;
    box-shadow: none !important;
    cursor: pointer;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 4.9rem minmax(0, 1fr);
    height: auto !important;
    line-height: 1.2 !important;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0.78rem !important;
    text-align: left;
    width: 100%;
}

.chat-friend-list .chat-friend-item {
    min-height: 6rem !important;
}

.chat-friend-item:hover,
.chat-friend-item:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.08) !important;
}

.chat-friend-item.is-requesting-chat {
    background: color-mix(in srgb, var(--accent) 14%, white) !important;
    border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--accent) 18%, transparent),
        0 1rem 2rem rgba(0, 0, 0, 0.12) !important;
}

.chat-friend-avatar {
    align-items: center;
    align-self: stretch;
    background: rgba(205, 92, 63, 0.12);
    border-radius: 0.9rem;
    display: flex;
    height: auto;
    justify-content: center;
    min-height: 4.9rem;
    overflow: hidden;
    width: 4.9rem;
}

.chat-friend-avatar img {
    display: block;
    height: 100%;
    min-height: 4.9rem;
    object-fit: cover;
    width: 100%;
}

.chat-friend-avatar span {
    color: var(--accent-deep);
    font-size: 1rem;
    font-weight: 800;
}

.chat-friend-copy {
    align-content: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
    border-radius: 0.95rem;
    display: grid;
    gap: 0.38rem;
    height: auto;
    min-height: 4.15rem;
    min-width: 0;
    padding: 0.55rem 0.7rem;
}

.chat-friend-copy strong,
.chat-friend-copy small,
.chat-friend-presence {
    margin: 0;
}

.chat-friend-copy strong {
    color: var(--text);
    display: -webkit-box;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.chat-friend-copy small {
    color: var(--muted);
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-friend-presence {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid currentColor;
    border-radius: 0.8rem;
    box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.08);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.35rem;
    line-height: 1.2;
    justify-self: start;
    min-height: 1.9rem;
    padding: 0.32rem 0.72rem;
    width: fit-content;
}

.chat-friend-presence.is-online {
    color: #1f8d42;
}

.chat-friend-presence.is-offline {
    color: #c94d4d;
}

.chat-friend-presence-dot {
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 0.62rem;
    width: 0.62rem;
}

.chat-friend-presence.is-online .chat-friend-presence-dot {
    background: #2bb24c;
    box-shadow: 0 0 0.35rem rgba(43, 178, 76, 0.45);
}

.chat-friend-presence.is-offline .chat-friend-presence-dot {
    background: #d24d4d;
    box-shadow: 0 0 0.3rem rgba(210, 77, 77, 0.35);
}

.chat-friend-copy small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.live-chat-main {
    display: grid;
    gap: 0.45rem;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0.3rem 1rem 1rem;
}

.live-chat-header-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.6rem;
    margin-bottom: 0;
}

.live-chat-heading-stack {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.live-chat-heading-stack .eyebrow {
    margin: 0;
}

.live-chat-header-top h2 {
    flex: 1 1 auto;
    line-height: 1.05;
    margin: 0;
    min-width: 0;
}

.chat-friend-toggle,
.chat-friend-reopen {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-width: 2.5rem;
}

.live-chat-close {
    position: static;
    flex: 0 0 auto;
    right: auto;
    top: auto;
    margin-left: auto;
}

.live-chat-modal.friends-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}

.live-chat-modal.friends-collapsed .chat-friend-sidebar {
    border-right: 0;
    opacity: 0;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    pointer-events: none;
    transform: translateX(-1rem);
}

.live-chat-header {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 0.65rem 1.4rem rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 0.2rem;
    padding: 0.35rem 0.8rem 0.55rem;
}

.live-chat-header h2,
.live-chat-header p {
    margin: 0;
}

.live-chat-search-box {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 0.45rem;
    justify-content: stretch;
    min-width: 0;
    width: 100%;
}

.live-chat-search-box input {
    flex: 1 1 16rem;
    margin: 0;
    min-height: 2.5rem;
    min-width: 0;
}

.chat-search-jump {
    align-items: center;
    display: inline-flex;
    font-size: 0.95rem;
    justify-content: center;
    min-height: 2.5rem;
    min-width: 2.5rem;
    padding: 0;
}

.chat-search-count {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 2.6rem;
    text-align: center;
}

.live-chat-messages {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 1rem;
    display: grid;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
}

.chat-empty-state {
    color: var(--muted);
    margin: 0;
    min-height: 0;
}

.live-chat-form {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.chat-composer-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 0;
}

.chat-composer-tools[hidden] {
    display: none;
}

.chat-emoji-picker-shell {
    display: grid;
    gap: 0.35rem;
}

.chat-emoji-picker-shell[hidden] {
    display: none;
}

.chat-emoji-picker-shell .form-note {
    margin: 0;
}

.chat-emoji-picker {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: 3.6rem;
    padding: 0.7rem 0.9rem;
}

.chat-emoji-picker-inline {
    flex: 0 0 8.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 2.75rem;
    min-width: 0;
    padding: 0.35rem 0.7rem;
}

.chat-emoji-picker-icon {
    flex: 0 0 2.9rem;
    width: 2.9rem;
    min-width: 2.9rem;
    min-height: 2.75rem;
    padding: 0.2rem 0.35rem;
    font-size: 1.25rem;
    line-height: 1;
    text-align: center;
}

.chat-inline-emoji-slot {
    display: inline-flex;
    align-items: center;
}

.chat-gif-trigger {
    min-width: 3.5rem;
}

.live-chat-actions .chat-gif-trigger {
    font-size: 0.88rem;
    min-width: 0;
    white-space: nowrap;
}

.live-chat-actions .chat-sound-toggle {
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0 0.1rem;
}

.live-chat-actions .chat-sound-toggle .discover-toggle-copy {
    font-size: 0.8rem;
}

.live-chat-actions .chat-gif-trigger.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
    pointer-events: none;
}

.live-chat-actions #live-chat-status {
    flex: 1 1 10rem;
}

.live-chat-form textarea {
    margin: 0;
}

.live-chat-actions .button.primary {
    font-size: 1.05rem;
    font-weight: 800;
    min-height: 3rem;
    min-width: 5.5rem;
}

.live-chat-actions .conference-trigger {
    min-height: 3rem;
    min-width: 6.5rem;
}

#live-chat-input:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.chat-message {
    display: grid;
    gap: 0.2rem;
    max-width: 85%;
}

.chat-message-own {
    justify-self: end;
    text-align: right;
}

.chat-message-bubble {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 1rem;
    display: grid;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
}

.chat-message-own .chat-message-bubble {
    background: rgba(205, 92, 63, 0.14);
    border-color: rgba(205, 92, 63, 0.24);
}

.chat-message-text {
    line-height: 1.45;
    word-break: break-word;
}

.chat-message-link {
    color: var(--accent-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.14rem;
    word-break: break-all;
}

.chat-message-link:hover,
.chat-message-link:focus-visible {
    color: var(--accent);
}

.chat-message.is-search-match .chat-message-bubble {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}

.chat-message.is-active-search-match .chat-message-bubble {
    border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.chat-message-gif-shell {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0.9rem;
    cursor: zoom-in;
    display: block;
    height: auto !important;
    line-height: 0;
    max-width: min(100%, 18rem);
    min-height: 0 !important;
    overflow: hidden;
    padding: 0;
    transform: none !important;
    width: auto;
}

.chat-message-gif-shell:hover,
.chat-message-gif-shell:focus-visible {
    box-shadow: none !important;
    transform: none !important;
}

.chat-message-gif {
    display: block;
    height: auto;
    max-width: min(100%, 18rem);
    width: 100%;
}

.chat-message-file {
    align-items: center;
    background: color-mix(in srgb, var(--accent) 10%, white);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: 0.9rem;
    color: inherit;
    display: flex;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    text-decoration: none;
}

.chat-message-file:hover,
.chat-message-file:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
    transform: none !important;
}

.chat-message-file-icon {
    align-items: center;
    background: color-mix(in srgb, var(--accent) 20%, white);
    border-radius: 0.8rem;
    display: inline-flex;
    flex: 0 0 2.65rem;
    font-size: 1.35rem;
    height: 2.65rem;
    justify-content: center;
    width: 2.65rem;
}

.chat-message-file-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.chat-message-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-message-file-action {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.chat-message-meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.advertiser-shell {
    gap: 1.2rem;
}

.advertiser-auth-grid,
.advertiser-account-grid,
.advertiser-workflow-grid {
    align-items: start;
}

.advertiser-workflow-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.9fr);
}

.advertiser-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.advertiser-card-grid,
.advertiser-audit-log {
    display: grid;
    gap: 1rem;
}

.advertiser-campaign-card,
.advertiser-proof-card,
.advertiser-audit-entry,
.advertiser-invoice-panel {
    gap: 0.7rem;
}

.advertiser-proof-card h3,
.advertiser-proof-card p {
    margin: 0;
}

.advertiser-sidebar-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campaign-step-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.campaign-stat-row {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.92rem;
}

.moderation-panel {
    background: color-mix(in srgb, var(--accent) 10%, white);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.wizard-progress {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.wizard-progress li {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 0.55rem 0.8rem;
    text-align: center;
}

.wizard-progress li.is-active {
    background: color-mix(in srgb, var(--accent) 14%, white);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
    color: var(--ink);
    font-weight: 700;
}

.wizard-progress li.is-complete {
    border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
    color: var(--ink);
}

.advertiser-campaign-sidebar {
    position: sticky;
    top: 6.5rem;
}

.advertiser-campaign-sidebar > * + * {
    margin-top: 1rem;
}

.advertiser-preview-media {
    border-radius: 1rem;
    display: block;
    max-height: 22rem;
    object-fit: cover;
    width: 100%;
}

.advertiser-shell .profile-form-grid .fields {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.advertiser-shell .profile-form-grid .field {
    display: grid;
    gap: 0.35rem;
    grid-column: 1 / -1;
}

.advertiser-shell .profile-form-grid .field.half {
    grid-column: span 2;
}

.advertiser-shell .profile-form-grid .field.quarter {
    grid-column: span 1;
}

.campaign-breakdown-list,
.campaign-summary-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.campaign-breakdown-list li {
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 0.55rem;
}

.campaign-breakdown-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.campaign-breakdown-list strong,
.campaign-summary-list strong {
    color: var(--ink);
}

.campaign-summary-list li {
    color: var(--muted);
    line-height: 1.5;
}

.invoice-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invoice-pre {
    margin: 0;
    white-space: pre-wrap;
}

.table-wrap {
    overflow-x: auto;
}

.simple-table {
    border-collapse: collapse;
    width: 100%;
}

.simple-table th,
.simple-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0.6rem;
    text-align: left;
}

@media screen and (max-width: 980px) {
    .advertiser-workflow-grid,
    .advertiser-stat-grid,
    .wizard-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advertiser-shell .profile-form-grid .fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 720px) {
    .advertiser-workflow-grid,
    .advertiser-stat-grid,
    .wizard-progress,
    .advertiser-sidebar-stats,
    .advertiser-shell .profile-form-grid .fields {
        grid-template-columns: 1fr;
    }

    .advertiser-shell .profile-form-grid .field.half,
    .advertiser-shell .profile-form-grid .field.quarter {
        grid-column: 1 / -1;
    }
}

#live-chat-status.is-error {
    color: var(--accent-deep);
    font-weight: 700;
}

@media screen and (max-width: 1200px) {
    .conference-dock {
        right: 62vw;
    }

    .live-chat-modal {
        grid-template-columns: minmax(17rem, 19rem) minmax(0, 1fr);
        max-width: 62vw;
        width: 62vw;
    }
}

@media screen and (max-width: 820px) {
    .conference-dock {
        inset: 0;
        z-index: 31;
    }

    #live-chat-modal {
        padding: 0;
    }

    .live-chat-modal {
        grid-template-columns: 1fr;
        height: 100vh;
        max-width: 100vw;
        width: 100vw;
    }

    .chat-friend-sidebar {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        max-height: 14rem;
    }

    .live-chat-modal.friends-collapsed {
        grid-template-columns: 1fr;
    }

    .live-chat-modal.friends-collapsed .chat-friend-sidebar {
        border-bottom: 0;
        max-height: 0;
        padding-bottom: 0;
        padding-top: 0;
        transform: translateY(-0.5rem);
    }

    .live-chat-search-box {
        justify-content: stretch;
        width: 100%;
    }
}

.member-detail-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    align-items: start;
}

.member-detail-media {
    aspect-ratio: 1 / 1.08;
    background: rgba(205, 92, 63, 0.08);
    border-radius: 1rem;
    overflow: hidden;
}

.member-detail-copy {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.member-detail-list {
    gap: 0.75rem;
    margin: 0;
}

.member-detail-section {
    display: grid;
    gap: 0.35rem;
}

.member-detail-section h3,
.member-detail-section p {
    margin: 0;
}

.member-detail-gallery-section {
    display: grid;
    gap: 0.8rem;
}

.member-gallery-heading {
    align-items: center;
}

.member-gallery-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-gallery-tile {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.52) !important;
    border: 1px solid var(--line);
    border-radius: 0.9rem !important;
    box-shadow: none !important;
    cursor: pointer;
    display: block;
    font-size: 0;
    height: auto !important;
    line-height: 0 !important;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.member-gallery-tile img {
    aspect-ratio: 1 / 1;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.member-gallery-tile:hover,
.member-gallery-tile:focus-visible {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.14) !important;
    transform: translateY(-1px);
}

.compact-empty-state {
    margin: 0;
    padding: 1rem 1.1rem;
}

.compact-empty-state p {
    margin: 0;
}

.photo-viewer-backdrop {
    align-items: center;
    justify-content: center;
}

.photo-viewer-modal {
    max-width: min(92vw, 70rem);
    width: min(92vw, 70rem);
}

.photo-viewer-figure {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.photo-viewer-image {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    display: block;
    max-height: 78vh;
    object-fit: contain;
    width: 100%;
}

.photo-viewer-caption {
    color: var(--muted);
    margin: 0;
    text-align: center;
}


.detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.detail-pill {
    background: var(--accent-soft);
    border-radius: 999px;
    color: var(--accent-deep);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.65rem;
}

.member-meta-line,
.member-interests {
    font-size: 0.9rem;
}

@media screen and (max-width: 1400px) {
    .members-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 980px) {
    .member-detail-grid {
        grid-template-columns: 1fr;
    }

    .member-detail-media {
        max-width: 20rem;
    }

    .member-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.detail-pill-muted {
    background: rgba(45, 33, 28, 0.08);
    color: var(--muted);
}

.info-list {
    display: grid;
    gap: 0.9rem;
    margin: 1.5rem 0 0;
}

.info-list div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.9rem;
}

.info-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-summary-top {
    align-items: flex-start;
}

.profile-summary-photo {
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    max-width: 7.75rem;
    overflow: hidden;
}

.placeholder-avatar,
.member-photo-placeholder,
.profile-photo-placeholder {
    align-items: center;
    background: rgba(205, 92, 63, 0.08);
    color: var(--accent-deep);
    display: flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1.5;
    min-height: 7.75rem;
    padding: 1rem;
    text-align: center;
}

.profile-dropzone {
    background: rgba(255, 255, 255, 0.55);
    border: 2px dashed rgba(142, 56, 39, 0.28);
    border-radius: 1.4rem;
    cursor: pointer;
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    margin-top: 0.75rem;
    padding: 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.profile-dropzone:hover,
.profile-dropzone.is-dragover {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(142, 56, 39, 0.6);
    transform: translateY(-1px);
}

.profile-photo-preview {
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    max-width: 15rem;
    overflow: hidden;
    width: min(15rem, 60vw);
}

.dropzone-label {
    font-weight: 700;
    text-align: center;
}

.dropzone-subtext {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 18rem;
    text-align: center;
}

.profile-form-grid {
    margin-top: 1.25rem;
}

.profile-edit-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 248, 241, 0.88));
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    margin-top: 1rem;
    padding: 1.35rem;
}

.profile-edit-section:first-child {
    margin-top: 0;
}

.profile-edit-section > h3,
.profile-section-header h3 {
    margin-bottom: 0.2rem;
}

.profile-edit-section .fields {
    display: grid;
    gap: 1.1rem 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.profile-section-header {
    display: grid;
    gap: 0.25rem;
}

.profile-section-header .eyebrow {
    margin-bottom: 0;
}

.profile-section-header .form-note {
    margin: 0;
}

.profile-edit-section .field label,
.profile-edit-section .upload-field-label {
    color: var(--text);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0;
    text-transform: uppercase;
}

.profile-edit-section .field {
    gap: 0.5rem;
}

.profile-edit-section .field .form-note {
    margin: 0 0 0.65rem;
}

.compact-profile-list {
    margin-top: 1.25rem;
}

.university-map-panel {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    margin-top: 1.3rem;
    padding-top: 1.25rem;
}

.university-map-copy h4 {
    margin-bottom: 0.25rem;
}

.university-map-copy .eyebrow {
    margin-bottom: 0.15rem;
}

.university-map-copy .form-note {
    margin: 0;
}

.university-map-shell {
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid var(--line);
    border-radius: 1rem;
    min-height: 18rem;
    overflow: hidden;
    position: relative;
}

.university-map-frame {
    border: 0;
    display: block;
    height: 18rem;
    width: 100%;
}

.university-map-placeholder {
    align-items: center;
    color: var(--muted);
    display: grid;
    gap: 0.35rem;
    height: 18rem;
    justify-items: center;
    padding: 1.5rem;
    text-align: center;
}

.university-map-placeholder strong {
    color: var(--text);
    font-family: var(--ui-font-family), sans-serif;
}

.photo-gallery-section {
    margin-top: 2rem;
}

.friends-section {
    margin-top: 2rem;
}

.friends-page-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.friends-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.friend-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 1rem;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.friend-card-top {
    align-items: center;
    display: flex;
    gap: 0.9rem;
}

.friend-card-top h3,
.friend-card-top p {
    margin: 0;
}

.friend-card-photo {
    aspect-ratio: 1 / 1;
    border-radius: 0.9rem;
    max-width: 4.5rem;
    overflow: hidden;
    width: 100%;
}

.friend-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.friend-card-actions form {
    margin: 0;
}

.blocked-chat-card {
    align-content: start;
}

.blocked-chat-note {
    margin: 0;
}

@media screen and (max-width: 900px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-scroll {
    margin-top: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-auto-columns: minmax(13.5rem, 16rem);
    grid-auto-flow: column;
}

.photo-tile {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 1rem;
    margin: 0;
    min-height: 13rem;
    overflow: hidden;
    position: relative;
}

.photo-delete-form {
    margin: 0;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    z-index: 2;
}

.photo-delete-button {
    align-items: center;
    appearance: none;
    background: #c62828;
    border: 0;
    border-radius: 999px;
    color: #ffeb3b;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--ui-font-family), sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.12em;
    min-width: 5.5rem;
    padding: 0.5rem 0.9rem;
    text-align: center;
    text-transform: uppercase;
}

.photo-delete-button:hover {
    background: #a91f1f;
}

.photo-tile figcaption {
    background: linear-gradient(180deg, transparent, rgba(18, 13, 11, 0.82));
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 0.7rem 0.9rem;
    position: absolute;
    right: 0;
}

.photo-badge {
    background: rgba(255, 250, 245, 0.94);
    border-radius: 999px;
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    left: 0.75rem;
    padding: 0.35rem 0.7rem;
    position: absolute;
    top: 0.75rem;
}

.empty-state {
    background: rgba(255, 255, 255, 0.55);
    border: 1px dashed var(--line);
    border-radius: 1rem;
    padding: 1.2rem;
}

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media screen and (max-width: 980px) {
    .landing-shell,
    .dashboard-grid,
    .profile-grid,
    .members-grid,
    .feature-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-logo {
        max-width: min(18rem, 60vw);
    }
}

@media screen and (max-width: 736px) {
    .site-header,
    .site-nav,
    .section-heading,
    .profile-summary-top {
        display: grid;
        justify-content: stretch;
    }

    .brand-mark {
        justify-content: start;
    }

    .site-header,
    .site-main,
    .flash-stack {
        width: 90vw;
        max-width: 90vw;
    }

    .panel {
        padding: 1.4rem;
    }

}
