/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
    color-scheme: dark;

    /* Layout */
    --app-header-height: 48px;
    --session-bar-height: 52px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    /* Surfaces */
    --bg: #06080a;
    --bg-soft: #0b0d11;
    --bg-elevated: #111318;
    --panel: rgba(13, 15, 19, 0.94);
    --panel-solid: #0e1014;
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-soft: rgba(255, 255, 255, 0.05);

    /* Text */
    --text: rgba(255, 255, 255, 0.95);
    --muted: rgba(255, 255, 255, 0.6);
    --muted-soft: rgba(255, 255, 255, 0.38);

    /* Brand colors */
    --blue: #4f8cff;
    --blue-deep: #3268e8;
    --blue-glow: rgba(79, 140, 255, 0.18);
    --green: #34d578;
    --orange: #ff9a3c;
    --red: #e5463a;
    --red-bg: rgba(70, 0, 0, 0.4);

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(30, 80, 120, 0.2), transparent),
        #06080a;
    color: var(--text);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
input, select, textarea { border: 0; outline: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--font-mono); }

/* ─── Global header ──────────────────────────────────────────────────────── */
.app-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--app-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    background: rgba(6, 8, 10, 0.85);
    border-bottom: 1px solid var(--panel-border-soft);
    backdrop-filter: blur(20px);
}

.app-header-brand {
    display: flex;
    align-items: center;
}

.app-header-wordmark {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #fff;
}

.app-header-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.header-badge-accent {
    background: var(--blue-glow);
    border-color: rgba(79, 140, 255, 0.25);
    color: rgba(79, 140, 255, 0.9);
}

/* ─── Shared buttons ─────────────────────────────────────────────────────── */
.btn-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    transition: filter 120ms ease, transform 80ms ease;
    width: 100%;
}

.btn-create:hover { filter: brightness(1.1); }
.btn-create:active { transform: scale(0.98); }

.btn-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--panel-border);
    transition: background 120ms ease;
    width: 100%;
}

.btn-join:hover { background: rgba(255, 255, 255, 0.1); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--panel-border);
    transition: background 120ms ease;
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    transition: color 120ms;
}

.btn-ghost:hover { color: var(--text); }

/* ─── Form elements ──────────────────────────────────────────────────────── */
.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.text-input {
    width: 100%;
    min-height: 40px;
    padding: 0 13px;
    border-radius: var(--radius);
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 14px;
    transition: border-color 120ms, background 120ms;
}

.text-input::placeholder { color: var(--muted-soft); }

.text-input:focus {
    border-color: rgba(79, 140, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.form-error {
    margin: 0;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(229, 70, 58, 0.3);
    background: var(--red-bg);
    color: rgba(255, 200, 200, 0.95);
    font-size: 12.5px;
    line-height: 1.5;
}

/* ─── Home page ──────────────────────────────────────────────────────────── */
.home-page {
    min-height: 100vh;
    padding-top: var(--app-header-height);
    display: grid;
    place-items: start center;
    padding-inline: 20px;
    padding-bottom: 60px;
}

.home-center {
    width: min(560px, 100%);
    display: grid;
    gap: 40px;
    padding-top: 72px;
}

.home-hero {
    text-align: center;
}

.home-title {
    margin: 0;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: #fff;
}

.home-subtitle {
    margin: 14px 0 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

.home-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.home-actions {
    display: grid;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.home-create-card,
.home-join-card {
    padding: 28px;
}

.home-create-card {
    border-bottom: 1px solid var(--panel-border-soft);
}

.home-card-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 8px;
}

.home-card-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.home-card-copy {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.home-card-copy code {
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.home-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    color: var(--muted-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-divider::before,
.home-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--panel-border-soft);
}

.join-form {
    display: grid;
    gap: 12px;
}

.join-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.home-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
}

.step-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--muted);
}

.step-copy {
    display: grid;
    gap: 3px;
}

.step-copy strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.step-copy span {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.4;
}

.step-connector {
    flex: 0 0 40px;
    height: 1px;
    margin-top: 22px;
    background: var(--panel-border);
}

/* ─── Session page ───────────────────────────────────────────────────────── */
.session-page {
    padding-top: var(--app-header-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Session top bar */
.session-bar {
    position: sticky;
    top: var(--app-header-height);
    z-index: 80;
    height: var(--session-bar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    background: rgba(6, 8, 10, 0.8);
    border-bottom: 1px solid var(--panel-border-soft);
    backdrop-filter: blur(16px);
}

.session-bar-left,
.session-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Session code chip */
.session-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--muted);
    font-size: 12px;
    transition: background 120ms, color 120ms;
    cursor: pointer;
}

.session-code-chip:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
}

.session-code-chip code {
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.01em;
}

.chip-icon { color: var(--muted); flex-shrink: 0; }

.chip-copied {
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
    animation: fade-in 120ms ease;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Session bar notice */
.session-bar-notice {
    font-size: 12px;
    color: var(--muted);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* People toggle */
.people-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    transition: background 120ms, color 120ms;
}

.people-toggle:hover,
.people-toggle.is-active {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--bg);
    margin-left: -5px;
    flex-shrink: 0;
}

.avatar:first-child { margin-left: 0; }

.avatar-overflow {
    background: rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-size: 9px;
}

.people-label {
    font-size: 12px;
    white-space: nowrap;
}

.people-chevron {
    color: var(--muted);
    transition: transform 200ms ease;
}

.people-chevron.is-open { transform: rotate(180deg); }

/* Participant drawer */
.participant-drawer {
    position: fixed;
    top: calc(var(--app-header-height) + var(--session-bar-height));
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(280px, 90vw);
    background: var(--panel-solid);
    border-left: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    animation: slide-in-right 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border-soft);
}

.drawer-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.drawer-close {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    color: var(--muted);
    transition: background 120ms, color 120ms;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.drawer-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.drawer-person.is-you {
    background: rgba(79, 140, 255, 0.08);
}

.drawer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.drawer-person-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.drawer-person-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.you-pill {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--blue-glow);
    border: 1px solid rgba(79, 140, 255, 0.25);
    color: rgba(79, 140, 255, 0.9);
    font-size: 10px;
    font-weight: 600;
    margin-left: 5px;
}

.drawer-person-time {
    font-size: 11px;
    color: var(--muted-soft);
}

/* ─── Session workspace ──────────────────────────────────────────────────── */
.session-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Empty state */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 14px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    color: var(--muted);
    margin-bottom: 6px;
}

.empty-state-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.empty-state-copy {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 360px;
}

/* Transfer list */
.transfer-list {
    display: grid;
    gap: 12px;
}

.transfer-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.transfer-list-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.transfer-list-count {
    font-size: 11.5px;
    color: var(--muted-soft);
}

/* Transfer card */
.transfer-card {
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 10px;
    transition: border-color 200ms;
}

.transfer-card.status-completed {
    border-color: rgba(52, 213, 120, 0.2);
    background: linear-gradient(160deg, rgba(52, 213, 120, 0.04), var(--panel));
}

.transfer-card.status-failed,
.transfer-card.status-rejected,
.transfer-card.status-canceled {
    border-color: rgba(229, 70, 58, 0.18);
}

.transfer-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.transfer-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.transfer-file-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--muted);
    flex-shrink: 0;
}

.transfer-file-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.transfer-file-name {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.transfer-file-size {
    font-size: 11.5px;
    color: var(--muted);
}

.transfer-card-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.transfer-direction {
    font-weight: 500;
}

.transfer-counterpart {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.transfer-progress-label {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--muted-soft);
    font-variant-numeric: tabular-nums;
}

/* Progress bar */
.progress-track {
    height: 5px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--blue) 0%, #7ab4ff 100%);
    transition: width 160ms ease;
}

.progress-fill.is-active {
    background: linear-gradient(90deg, var(--blue) 0%, #7ab4ff 50%, var(--blue) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.transfer-note {
    margin: 0;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* ─── Status badges ──────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.status-offered, .status-accepted, .status-connecting { color: var(--orange); }
.status-transferring { color: var(--blue); }
.status-completed { color: var(--green); }
.status-failed, .status-rejected, .status-canceled {
    color: rgba(255, 180, 180, 0.9);
    background: var(--red-bg);
    border-color: rgba(229, 70, 58, 0.2);
}

/* ─── Overlays ───────────────────────────────────────────────────────────── */
.screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 6, 8, 0.75);
    backdrop-filter: blur(12px);
    animation: fade-in 160ms ease;
}

.overlay-card {
    width: min(400px, 100%);
    padding: 28px;
    background: var(--panel-solid);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.overlay-form-card {
    text-align: left;
}

.overlay-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.overlay-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 8px;
}

.overlay-form-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Joining spinner */
.overlay-spinner {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.overlay-spinner div {
    position: absolute;
    border: 2px solid var(--blue);
    opacity: 1;
    border-radius: 50%;
    animation: spinner-ring 1.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.overlay-spinner div:nth-child(2) { animation-delay: -0.7s; }

@keyframes spinner-ring {
    0% { top: 24px; left: 24px; width: 0; height: 0; opacity: 0; }
    4.9% { top: 24px; left: 24px; width: 0; height: 0; opacity: 0; }
    5% { top: 24px; left: 24px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 48px; height: 48px; opacity: 0; }
}

/* ─── Offer notification banners ─────────────────────────────────────────── */
.offer-banner-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 160;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
}

.offer-banner {
    padding: 16px;
    background: var(--panel-solid);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slide-up 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.offer-banner-title {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.offer-banner-meta {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--muted);
}

.offer-banner-actions {
    display: flex;
    gap: 8px;
}

.offer-banner-actions .btn-accept {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(160deg, var(--blue), var(--blue-deep));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 0;
    transition: filter 120ms;
}

.offer-banner-actions .btn-accept:hover { filter: brightness(1.1); }
.offer-banner-actions .btn-accept:disabled { opacity: 0.5; cursor: not-allowed; }

.offer-banner-actions .btn-reject {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--panel-border);
    transition: background 120ms;
}

.offer-banner-actions .btn-reject:hover { background: rgba(255, 255, 255, 0.09); }
.offer-banner-actions .btn-reject:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Drag-over overlay ──────────────────────────────────────────────────── */
body.drop-active::after {
    content: "Drop files to send to this room";
    position: fixed;
    inset: calc(var(--app-header-height) + 12px) 12px 12px;
    z-index: 90;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(79, 140, 255, 0.6);
    background: rgba(6, 8, 10, 0.88);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.1);
}

/* ─── Utility pages ──────────────────────────────────────────────────────── */
.utility-window {
    min-height: calc(100vh - var(--app-header-height));
    padding-top: var(--app-header-height);
    display: grid;
    place-items: center;
    padding: calc(var(--app-header-height) + 40px) 24px 40px;
}

.utility-panel {
    width: min(460px, 100%);
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
}

.utility-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.utility-panel h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.utility-panel p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.request-id {
    font-size: 12px;
    color: var(--muted-soft);
}

.request-id code {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 11px;
}

/* ─── Blazor error UI ────────────────────────────────────────────────────── */
#blazor-error-ui {
    color-scheme: dark;
    background: rgba(70, 0, 0, 0.96);
    color: rgba(255, 245, 245, 0.98);
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 32px));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

#blazor-error-ui .reload { color: inherit; font-weight: 700; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .app-header-badges { display: none; }

    .home-center { padding-top: 40px; gap: 28px; }

    .session-bar { padding: 0 14px; }
    .people-label { display: none; }
    .session-bar-notice { display: none; }

    .session-workspace { padding: 20px 16px; }

    .transfer-card { padding: 14px; }

    .home-steps { display: none; }

    .join-fields { grid-template-columns: 1fr; }

    body.drop-active::after {
        inset: calc(var(--app-header-height) + 8px) 8px 8px;
        font-size: 13px;
        border-radius: var(--radius);
    }
}
