:root {
    --bg: #ffffff;
    --bg-soft: #f2f2f2;
    --bg-hover: #e5e5e5;
    --panel: #ffffff;
    --border: #e0e0e0;
    --text: #0f0f0f;
    --muted: #606060;
    --accent: #0f766e;
    --accent-hover: #115e59;
    --accent-text: #ffffff;
    --dark: #0f0f0f;
    --dark-text: #ffffff;
    --danger: #c62828;
    --ok-bg: #dcfce7;
    --ok-text: #166534;
    --warn-bg: #fef3c7;
    --warn-text: #92400e;
    --overlay: rgba(10, 10, 10, 0.72);
    --radius: 12px;
    --ill-amber: #f59e0b;
    --ill-pink: #ec4899;
    --ill-blue: #3b82f6;
    --ill-violet: #8b5cf6;
    --ill-green: #16a34a;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f0f;
        --bg-soft: #272727;
        --bg-hover: #3a3a3a;
        --panel: #181818;
        --border: #303030;
        --text: #f1f1f1;
        --muted: #aaaaaa;
        --accent: #2dd4bf;
        --accent-hover: #5eead4;
        --accent-text: #042f2e;
        --dark: #f1f1f1;
        --dark-text: #0f0f0f;
        --danger: #f87171;
        --ok-bg: #14532d;
        --ok-text: #bbf7d0;
        --warn-bg: #451a03;
        --warn-text: #fde68a;
        --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
        --ill-amber: #fbbf24;
        --ill-pink: #f472b6;
        --ill-blue: #60a5fa;
        --ill-violet: #a78bfa;
        --ill-green: #4ade80;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.45 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { background: var(--bg-soft); padding: 0 4px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; }
.h1 { font-size: 1.9rem; }
.h2 { font-size: 1.45rem; }
.h3 { font-size: 1.15rem; }
.h4 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.strong { font-weight: 600; }
.error { color: var(--danger); font-size: 0.9rem; margin: 0.25rem 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.nowrap { white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- layout ---------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 16px;
    height: 56px; padding: 0 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.search { flex: 0 1 600px; margin: 0 auto; display: flex; }
.search input {
    flex: 1; min-width: 0; height: 40px; padding: 0 16px;
    border: 1px solid var(--border); border-right: none; border-radius: 40px 0 0 40px;
    background: var(--bg); color: var(--text); font-size: 1rem;
}
.search button {
    width: 64px; height: 40px; border: 1px solid var(--border); border-radius: 0 40px 40px 0;
    background: var(--bg-soft); color: var(--text); cursor: pointer;
    display: grid; place-items: center;
}
.actions { display: flex; align-items: center; gap: 8px; }
.page { flex: 1; width: 100%; max-width: 1760px; margin: 0 auto; padding: 16px 24px 48px; }
.narrow { max-width: 960px; margin: 0 auto; }
.footer {
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
    padding: 16px 24px; border-top: 1px solid var(--border); font-size: 0.8rem;
}

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- controls ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid transparent;
    font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
    background: var(--bg-soft); color: var(--text);
}
.btn:hover { text-decoration: none; background: var(--bg-hover); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn[data-busy] { cursor: progress; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark); color: var(--dark-text); }
.btn-dark:hover { background: var(--dark); opacity: 0.85; }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 0.85rem; }
.btn-lg { height: 46px; padding: 0 28px; font-size: 1.05rem; border-radius: 23px; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.linklike:hover { color: var(--text); text-decoration: underline; }

input, textarea, select {
    font: inherit; color: var(--text); background: var(--bg);
    border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label, .label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
label > input, label > textarea, label > select { color: var(--text); font-size: 0.95rem; font-weight: 400; }
.row > label { flex: 1 1 140px; }

.badge {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px;
    font-size: 0.72rem; font-weight: 600; background: var(--bg-soft); color: var(--muted); vertical-align: middle;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.count { background: var(--danger); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 0.75rem; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.panel.warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.panel.danger { border-color: var(--danger); }
.callout { background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; margin: 8px 0; }
.empty { text-align: center; padding: 64px 16px; }

/* ---------- account menu ---------- */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
    position: absolute; right: 0; top: 44px; min-width: 240px; padding: 8px 0;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.menu-panel a, .menu-panel button { padding: 10px 16px; text-align: left; color: var(--text); }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg-soft); text-decoration: none; }
.menu-head { display: flex; flex-direction: column; padding: 8px 16px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* ---------- avatars ---------- */
.avatar {
    flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    display: inline-grid; place-items: center; font-weight: 600;
    background: var(--accent); color: var(--accent-text);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.6rem; }
.avatar-btn .avatar { cursor: pointer; }

/* ---------- home / grids ---------- */
.chips { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 8px; background: var(--bg-soft); font-size: 0.9rem; font-weight: 500; }
.chip:hover { background: var(--bg-hover); text-decoration: none; }
.chip.active { background: var(--dark); color: var(--dark-text); }
.section-title { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.section-title a { color: var(--accent); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 16px; margin-bottom: 24px; }

.thumb {
    position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
    background: var(--bg-soft);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--muted); }
.duration {
    position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px;
    background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 0.78rem; font-weight: 500;
}
.lock-badge { position: absolute; left: 6px; top: 6px; font-size: 0.8rem; padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); }
.card-meta { display: flex; gap: 12px; margin-top: 12px; }
.card-meta > div { display: flex; flex-direction: column; min-width: 0; }
.card-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.card-title:hover { text-decoration: none; }

.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.filters { display: flex; gap: 12px; }
.channel-result { display: flex; gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.channel-result:hover { text-decoration: none; }
.channel-result > span:last-child { display: flex; flex-direction: column; }

/* ---------- watch ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player video { width: 100%; height: 100%; background: #000; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.overlay-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(0.5); transform: scale(1.05); }
.overlay-content { position: relative; max-width: 520px; padding: 24px; text-align: center; }
.lock-icon { font-size: 2.6rem; }
.player-overlay.loading .lock-icon { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.watch-title { font-size: 1.3rem; margin: 12px 0 8px; }
.watch-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.channel-chip { display: flex; align-items: center; gap: 12px; }
.channel-chip > div { margin-right: 12px; }
.rating { display: flex; gap: 8px; }
.pill {
    height: 36px; padding: 0 16px; border-radius: 18px; border: 0; cursor: pointer;
    background: var(--bg-soft); color: var(--text); font: inherit; font-weight: 500;
}
.pill:hover { background: var(--bg-hover); }
.pill[aria-pressed="true"] { background: var(--dark); color: var(--dark-text); }
.description-box { background: var(--bg-soft); border-radius: var(--radius); padding: 12px; margin: 12px 0; }
.description { white-space: pre-wrap; margin: 8px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; color: var(--accent); font-size: 0.9rem; }

.comments { margin-top: 24px; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.comment-list, .replies { list-style: none; margin: 0; padding: 0; }
.replies { margin-left: 44px; }
.comment { display: flex; gap: 12px; padding: 10px 0; }
.comment-body { margin: 2px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 16px; }

.related { display: flex; flex-direction: column; gap: 10px; }
.compact-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 8px; }
.compact-card:hover { text-decoration: none; }
.compact-card .thumb { border-radius: 8px; }
.compact-card > span:last-child { display: flex; flex-direction: column; }
.compact-card .card-title { font-size: 0.9rem; }

/* ---------- share landing ---------- */
.share-landing { max-width: 900px; margin: 32px auto; }
.share-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.share-info .btn-lg { margin: 8px 0; }

/* ---------- channel ---------- */
.channel-header { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px 0 24px; }
.bio { white-space: pre-wrap; max-width: 720px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tabs a { padding: 10px 0; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--text); border-color: var(--text); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.channel-strip { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 16px; }
.channel-pill { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 88px; text-align: center; }

/* ---------- upload / studio ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.dropzone {
    display: grid; place-items: center; min-height: 120px; padding: 24px; cursor: pointer; text-align: center;
    border: 2px dashed var(--border); border-radius: var(--radius); color: var(--text); font-size: 1rem;
}
.dropzone.over { border-color: var(--accent); background: var(--bg-soft); }
.dropzone input { display: none; }
.upload-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.thumb-preview { max-width: 360px; }
.preview { width: 100%; max-width: 480px; border-radius: 8px; background: #000; }
.progress { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.small-bar { height: 4px; margin: 4px 0 12px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table.compact td, .table.compact th { padding: 5px 8px; }
.table input { max-width: 120px; padding: 4px 8px; }
.studio-video { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.thumb-xs { width: 120px; flex: none; border-radius: 6px; }

.link-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin: 12px 0; }
.new-link { background: var(--ok-bg); color: var(--ok-text); padding: 12px; border-radius: 8px; margin-bottom: 12px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, monospace; font-size: 0.85rem; }

.request-list { list-style: none; padding: 0; margin: 0; }
.request { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.muted-panel { padding: 10px 16px; opacity: 0.85; }

.auth-card { max-width: 440px; margin: 48px auto; }

.billing-account .pool { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 16px; }
.account-edit, .pool-edit, .member-add, .pool-create { align-items: end; margin: 8px 0; }
.member-add input { flex: 1 1 160px; }
.add-pool summary { cursor: pointer; color: var(--accent); margin-top: 12px; }

.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 400; font-size: 0.9rem; }
.check input { width: auto; }
.span-all { grid-column: 1 / -1; margin: 0; }
.download-note { margin: 4px 0 0; }

/* ---------- in-app sharing ---------- */
.send-in-app { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 12px; padding-top: 8px; border-top: 1px dashed var(--border); }
.send-in-app p { grid-column: 1 / -1; margin: 0; }
.shared-list { list-style: none; padding: 0; margin: 0; }
.shared-item { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.shared-item.unread { border-left: 4px solid var(--accent); }
.thumb-sm { width: 160px; flex: none; border-radius: 8px; }
.share-note { margin: 8px 0 0; padding: 6px 12px; border-left: 3px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; }
.safety-number {
    display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 10px 22px;
    font: 600 1.35rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em;
    background: var(--bg-soft); border-radius: var(--radius); padding: 18px; margin: 8px 0;
}
.fingerprints { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-family: ui-monospace, Consolas, monospace; }
.fingerprints dt { color: var(--muted); }
.fingerprints dd { margin: 0; }
.warn-text { color: var(--warn-text); }

/* ---------- about page ---------- */
.about { max-width: 1040px; margin: 0 auto; }
.about section { margin: 56px 0; }
.about-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; margin-top: 24px !important; }
.about-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 20px; }
.about-h2 { font-size: 1.6rem; letter-spacing: -0.01em; margin-bottom: 20px; }
.about-h3 { font-size: 1.15rem; margin: 32px 0 12px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.benefit { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.benefit h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.benefit p { margin: 0; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.step h3 { font-size: 1.05rem; margin: 12px 0 6px; display: flex; align-items: center; gap: 10px; }
.step p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 0.9rem; flex: none; }
.split-key .callout { margin-top: 16px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust-card { border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--border); }
.trust-card h3 { margin-top: 0; }
.trust-card ul, .fine-print { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.trust-card.can { background: var(--ok-bg); color: var(--ok-text); border-color: transparent; }
.trust-card.see { background: var(--panel); }
.verify-row { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; }
.verify-row p { margin: 0; }
.fine-print li { color: var(--text); }
.faq { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.about-cta { text-align: center; background: var(--bg-soft); border-radius: var(--radius); padding: 40px 16px; }
.about-intro { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-soft); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.about-intro p { margin: 0; flex: 1 1 280px; }
.about-intro .ill-icon { flex: none; }

/* illustrations (inline SVG; colours follow the theme) */
.ill { display: block; width: 100%; height: auto; }
.ill-hero { max-width: 420px; justify-self: center; }
.ill-icon { width: 44px; height: 44px; }
.ill-step { max-width: 200px; margin: 0 auto; }
.ill-wide { max-width: 760px; margin: 0 auto; }
.ill-soft { fill: var(--bg-soft); }
.ill-paper { fill: var(--panel); }
.ill-ink { fill: var(--text); }
.ill-line { stroke: var(--text); }
.ill-line-faint { stroke: var(--muted); stroke-width: 3; stroke-linecap: round; fill: none; opacity: 0.55; }
.ill-accent { fill: var(--accent); }
.ill-accent-stroke { stroke: var(--accent); }
.ill-ok-stroke { stroke: var(--ill-green); }
.ill-person-a { fill: var(--ill-blue); }
.ill-person-b { fill: var(--ill-violet); }
.ill-person-c { fill: var(--ill-amber); }
.ill-heart { fill: var(--ill-pink); }
.ill-key-a { stroke: var(--accent); stroke-linecap: round; }
.ill-key-b { stroke: var(--ill-amber); stroke-linecap: round; stroke-linejoin: round; }
.ill-path { stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 7 7; }
.ill-label { fill: var(--text); font: 600 17px system-ui, sans-serif; }
.ill-small { fill: var(--text); font: 13px system-ui, sans-serif; }
.ill-caption { fill: var(--muted); font: 13px system-ui, sans-serif; }
.ill-badge-bg { fill: var(--accent); }
.ill-badge { fill: var(--accent-text); font: 700 17px system-ui, sans-serif; }
.key-legend { list-style: none; padding: 0; margin: 20px auto 0; max-width: 760px; display: grid; gap: 12px; }
.key-legend li { display: flex; gap: 12px; align-items: flex-start; }

/* ---------- dialogs & toasts ---------- */
.dialog {
    width: min(520px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--panel); color: var(--text); padding: 24px; box-shadow: var(--shadow);
}
.dialog-wide { width: min(900px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.dialog form { display: flex; flex-direction: column; gap: 12px; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--dark); color: var(--dark-text); padding: 10px 18px; border-radius: 8px; box-shadow: var(--shadow); transition: opacity 0.5s; }
.toast-error { background: var(--danger); color: #fff; }
.toast.leaving { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .watch { grid-template-columns: 1fr; }
    .link-form { grid-template-columns: 1fr 1fr; }
    .send-in-app { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .page { padding: 12px 16px 32px; }
    .hide-sm { display: none; }
    .brand span { display: none; }
    .upload-grid, .share-card, .about-hero, .trust-grid, .verify-row { grid-template-columns: 1fr; }
    .about section { margin: 36px 0; }
    .grid { grid-template-columns: 1fr; }
    .compact-card { grid-template-columns: 140px minmax(0, 1fr); }
}
