@font-face { font-family: "Inter"; font-style: normal; font-weight: 380 700; font-display: swap; src: url("./fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("./fonts/space-grotesk-latin.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #0b0818;
  --card: #171130;
  --card-flat: #120d27;
  --ink: #f6f2ff;
  --muted: #ac9fd1;
  --muted-2: #8a7fac;
  --line: #2d2456;
  --line-soft: #201a41;
  --accent: #5be9c9;
  --accent-ink: #062821;
  --accent-soft: #16332d;
  --accent-2: #b58cff;
  --accent-2-ink: #1c0f3d;
  --danger: #ff8a97;
  --warn: #f0c26a;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background-image:
    radial-gradient(1100px 560px at 12% -12%, #241c47 0%, transparent 60%),
    radial-gradient(900px 520px at 104% 0%, #1a1338 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M14 20 12 14 6 12l6-2 2-6 2 6 6 2-6 2z' fill='%23b58cff' fill-opacity='.14' stroke='none'/%3E%3Cpath d='M78 62l-1.6-4.6L72 56l4.4-1.6L78 50l1.6 4.4L84 56l-4.4 1.4z' fill='%23f0c26a' fill-opacity='.16' stroke='none'/%3E%3Cpath d='M40 78c4-3 10-3 14 0' stroke='%235be9c9' stroke-opacity='.14' stroke-width='1.2'/%3E%3C/g%3E%3Cg fill='%235be9c9' fill-opacity='.18'%3E%3Ccircle cx='30' cy='10' r='1.6'/%3E%3Ccircle cx='58' cy='34' r='1.3'/%3E%3Ccircle cx='90' cy='16' r='1.6'/%3E%3Ccircle cx='16' cy='60' r='1.3'/%3E%3Ccircle cx='64' cy='86' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 0 0, 0 0, 0 0;
  background-size: auto, auto, 96px 96px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-color: var(--bg);
  animation: sky-drift 150s linear infinite;
  color: var(--ink);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
/* The star field drifts by exactly one tile so the loop is seamless — the
   whole page feels like a slow night sky instead of a static backdrop. */
@keyframes sky-drift { to { background-position: 0 0, 0 0, 96px 96px; } }
button, input { font: inherit; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary, a, label { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); border-radius: 4px; }
button { cursor: pointer; }
button:active, .drop-zone:active { transform: translateY(1px); filter: brightness(.94); }
button:disabled { opacity: .55; cursor: wait; }
a { color: var(--accent); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: 0; transform: translateY(-150%); padding: 12px; background: var(--card); z-index: 10; border-radius: 0 0 10px 10px; }
.skip-link:focus { transform: none; }

.topbar, .shell, footer { width: min(100% - 32px, 1120px); margin-inline: auto; min-width: 0; }
.topbar { min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.brand-group { display: inline-flex; align-items: center; gap: 1px; min-width: 0; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-group .credit-link { align-self: flex-end; margin-bottom: 9px; font-size: .72rem; }
.brand-group .credit-link::before { content: "·"; margin: 0 5px 0 3px; color: var(--muted-2); }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; }

.shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- Start view ---------- */
.start-view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(16px, 4vh, 40px); }
@media (min-height: 860px) {
  .start-view { justify-content: flex-start; padding-top: clamp(48px, 12vh, 140px); }
}
.start-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; overflow: hidden; }
.start-copy { position: relative; z-index: 1; max-width: 660px; min-width: 0; }
/* One orchestrated entrance for the pitch, each line arriving a beat after the last —
   the page's single deliberate moment of motion, not repeated on every section. */
.start-copy > * { animation: reveal-up .7s cubic-bezier(.16, .8, .24, 1) both; }
.start-copy > *:nth-child(1) { animation-delay: 0s; }
.start-copy > *:nth-child(2) { animation-delay: .08s; }
.start-copy > *:nth-child(3) { animation-delay: .16s; }
.start-copy > *:nth-child(4) { animation-delay: .26s; }
.start-copy > *:nth-child(5) { animation-delay: .38s; }
.start-copy > *:nth-child(6) { animation-delay: .46s; }
.start-visual { animation: reveal-up .8s cubic-bezier(.16, .8, .24, 1) .3s both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.start-visual { display: none; }
.hero-signal { display: block; margin-bottom: clamp(10px, 3vh, 26px); color: var(--accent); }
.hero-signal .signal-node { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.hero-signal .signal-arc { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 96; stroke-dashoffset: 96; animation: draw-signal .9s cubic-bezier(.3, .8, .4, 1) .1s forwards; }
.hero-signal .signal-arc + .signal-arc { opacity: .55; animation-delay: .3s; }
.hero-signal .signal-spark { transform-origin: 60px 10px; animation: twinkle-spark 1.8s ease-in-out .9s infinite; }
@keyframes draw-signal { to { stroke-dashoffset: 0; } }
@keyframes twinkle-spark { 0%, 100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.eyebrow { color: var(--accent); font-size: .95rem; font-weight: 600; margin: 0 0 clamp(8px, 2vh, 16px); }
h1, h2, p { overflow-wrap: anywhere; }
h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw + 2.2vh, 5.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; margin: 0; }
h1 span { color: var(--accent); }
.lead { color: var(--muted); margin-block: clamp(12px, 3vh, 26px); font-size: clamp(.9rem, .4vw + 1.6vh, 1.15rem); max-width: 36ch; }
.primary-button, .secondary-button, .text-button, .download-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 44px; min-height: 50px; padding: 11px 20px; border-radius: 13px;
  font-family: var(--font-body); font-weight: 650; font-size: 1rem; line-height: 1.4;
  text-decoration: none; overflow-wrap: anywhere; text-align: center; border: 1px solid transparent;
}
.primary-button { color: var(--accent-ink); background: linear-gradient(120deg, var(--accent), #8fe9d7 55%, var(--accent-2)); border-color: var(--accent); box-shadow: 0 10px 28px -10px rgba(91, 233, 201, .5), 0 4px 18px -8px rgba(181, 140, 255, .45); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(91, 233, 201, .65), 0 6px 22px -8px rgba(181, 140, 255, .6); }
.primary-button:active { transform: translateY(0); }
.secondary-button { color: var(--ink); background: #221a45; border: 1px solid #40376e; }
.text-button { color: var(--muted); border: 1px solid transparent; background: transparent; }
.text-button:hover { color: var(--ink); }
.download-button { color: var(--accent-ink); background: var(--accent); }
.start-view > .start-grid > .start-copy > .primary-button { width: 100%; min-height: clamp(48px, 7vh, 58px); padding-inline: 26px; font-size: 1.05rem; }
.microcopy { color: var(--muted-2); font-size: .86rem; margin-block: clamp(10px, 2.5vh, 20px) 0; }

.start-visual { position: relative; z-index: 0; justify-content: flex-end; min-width: 0; }
.start-visual::before {
  content: ""; position: absolute; inset: 6% 14%; z-index: 0;
  background:
    radial-gradient(closest-side, rgba(91, 233, 201, .38), transparent 70%),
    radial-gradient(closest-side at 70% 65%, rgba(181, 140, 255, .32), transparent 72%);
  filter: blur(48px); animation: glow-pulse 5s ease-in-out infinite;
}
.hero-illustration-wrap { position: relative; z-index: 1; width: 100%; max-width: 620px; margin: -8px -18px -22px 0; filter: drop-shadow(0 30px 50px rgba(4, 10, 22, .6)); transform: rotate(4deg) translateY(var(--parallax-y, 0px)); }
.hero-illustration { width: 100%; height: auto; display: block; animation: float-hero 6.5s ease-in-out infinite; }
@keyframes glow-pulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.07); } }
@keyframes float-hero { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- Room view ---------- */
.room-view { padding-block: 8px 16px; }
.room-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.room-heading h1 { font-size: 1.4rem; letter-spacing: -.02em; }
.room-heading button { font-size: .82rem; padding-inline: 10px; flex-shrink: 0; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.workspace-grid > *, .section-heading > *, .link-field > * { min-width: 0; }
.workspace-grid.solo { grid-template-columns: minmax(0, 1fr); }
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 24px 60px -34px rgba(2, 6, 16, .7); }
.transfer-card { padding: 20px; position: relative; }
.transfer-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .35; }
.transfer-card.connected::before { opacity: .9; }

.link-indicator { position: relative; display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.link-node { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--line); border: 2px solid var(--muted-2); transition: background-color .3s, border-color .3s; }
.link-line { position: relative; flex: 0 0 48px; height: 2px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--muted-2) 0 5px, transparent 5px 9px); background-size: 14px 2px; }
.transfer-card.connected .link-node { background: var(--accent); border-color: var(--accent); }
.transfer-card.connected .link-line { background: var(--accent); }
@keyframes pulse-node { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .5; } }
@keyframes flow-line { to { background-position: 14px 0; } }
.transfer-card:not(.connected) .link-node { animation: pulse-node 1.7s ease-in-out infinite; }
.transfer-card:not(.connected) .link-node:last-child { animation-delay: .5s; }
.transfer-card:not(.connected) .link-line { animation: flow-line .9s linear infinite; }
/* A mote of light carries itself across the link while devices are pairing —
   the one place the "fae" concept gets to move on its own, tied to real state. */
.link-spark { position: absolute; top: 50%; left: 0; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px 1px var(--accent); opacity: 0; }
.transfer-card:not(.connected) .link-spark { animation: carry-spark 1.8s ease-in-out infinite; }
@keyframes carry-spark { 0% { opacity: 0; left: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; left: 44px; } }
.link-burst { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; color: var(--warn); opacity: 0; pointer-events: none; }
.transfer-card.connected .link-burst { animation: burst-once .7s ease-out; }
@keyframes burst-once { 0% { opacity: 0; transform: scale(.3) rotate(-15deg); } 45% { opacity: 1; transform: scale(1.15) rotate(4deg); } 100% { opacity: 0; transform: scale(1.5) rotate(10deg); } }

.status-block { position: relative; }
.status-block h2 { font-family: var(--font-display); margin: 8px 0; font-size: 1.35rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.status-block p { margin: 0; color: var(--muted); font-size: .92rem; }
.status-badge { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: .82rem; font-weight: 650; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-badge.connected { color: var(--accent); }
.status-badge.error { color: var(--danger); }
#retryConnectionButton { margin-top: 16px; width: 100%; }

.drop-zone {
  position: relative; display: grid; justify-items: center; gap: 5px; margin-top: 22px;
  padding: 20px 12px; border: 1.5px dashed #3d6459; border-radius: 16px; background: var(--accent-soft);
  text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: #1a3c35; }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.drop-zone.disabled { display: none; }
.drop-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(91, 233, 201, .14); color: var(--accent); transition: transform .18s ease; }
.drop-icon svg { width: 20px; height: 20px; }
.drop-zone:hover .drop-icon, .drop-zone.dragover .drop-icon { transform: translateY(-3px) scale(1.06); }
.drop-zone strong { font-size: .98rem; }
.drop-zone > span:last-child { color: var(--muted); font-size: .82rem; }

.queue-section { margin-top: 26px; min-width: 0; }
.queue-section h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-block: 0 10px; }
.queue-section h2 span { color: var(--muted); font-weight: 500; }
.section-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.section-heading .text-button { font-size: .82rem; padding: 8px; }
.file-list { container-type: inline-size; list-style: none; margin: 8px 0 0; padding: 2px 4px; display: flex; flex-direction: column; gap: 10px; max-height: min(34rem, 68dvh); overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.file-list:empty { display: none; }
.queue-item.file-card { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card-flat); min-width: 0; transition: border-color .15s ease; }
.queue-item.file-card[data-status="completed"] { border-color: #204238; }
.queue-item.file-card[data-status="failed"], .queue-item.file-card[data-status="rejected"], .queue-item.file-card[data-status="interrupted"] { border-color: #4a2830; }
.file-row { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.file-thumb {
  position: relative; flex-shrink: 0; width: 84px; height: 84px; border-radius: 13px; overflow: hidden;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  border: none; padding: 0; font: inherit; appearance: none;
}
.file-thumb[data-category="image"] { background: #0b1626; border: 1px solid var(--line-soft); }
.file-thumb svg { width: 30px; height: 30px; }
.file-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.file-ext { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0 3px; text-align: center; font-size: .58rem; font-weight: 700; letter-spacing: .02em; color: var(--accent-ink); background: var(--accent); }
button.file-thumb:not(:disabled) { cursor: zoom-in; }
button.file-thumb:not(:disabled) .preview-hint { opacity: 0; transition: opacity .15s ease; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 12, 24, .5); color: #fff; }
button.file-thumb:not(:disabled) .preview-hint svg { width: 20px; height: 20px; }
button.file-thumb:not(:disabled):hover .preview-hint, button.file-thumb:not(:disabled):focus-visible .preview-hint { opacity: 1; }
.file-info { flex: 1; min-width: 0; }
.file-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 600; }
.file-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 6px 0; }
.file-size { color: var(--muted-2); font-size: .8rem; }
.file-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.file-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }
.file-status[data-tone="active"] { color: var(--accent); }
.file-status[data-tone="active"]::before { background: var(--accent); }
.file-status[data-tone="done"] { color: var(--accent); }
.file-status[data-tone="done"]::before { background: var(--accent); }
.file-status[data-tone="error"] { color: var(--danger); }
.file-status[data-tone="error"]::before { background: var(--danger); }
.progress-wrap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.queue-item progress { flex: 1; display: block; width: 100%; height: 6px; accent-color: var(--accent); border-radius: 3px; overflow: hidden; }
.file-percent { flex-shrink: 0; min-width: 2.6em; text-align: right; color: var(--muted-2); font-size: .78rem; font-variant-numeric: tabular-nums; }
.file-percent:empty { display: none; }
.file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.file-actions > * { font-size: .82rem; min-height: 40px; padding-block: 8px; padding-inline: 14px; }
.file-actions .download-button { order: -1; }
.file-actions .text-button { margin-left: auto; padding-inline: 10px; }
.action-icon { display: inline-flex; width: 15px; height: 15px; flex-shrink: 0; }
.action-icon svg { width: 100%; height: 100%; }

/* Wide enough cards (a wide card, or a whole row once the invite column is gone) put the
   actions beside the file info instead of stacking them in a separate footer row. */
@container (min-width: 480px) {
  .queue-item.file-card { flex-direction: row; align-items: center; }
  .file-thumb { width: 96px; height: 96px; }
  .file-actions { flex-shrink: 0; padding-top: 0; border-top: none; }
}

.invite-card { background: var(--card-flat); }
.invite-card summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 14px 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; cursor: pointer; overflow-wrap: anywhere; list-style: none; }
.invite-card summary::-webkit-details-marker { display: none; }
.invite-card summary::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transition: transform .2s ease; }
.invite-card[open] summary::after { transform: rotate(45deg); }
.invite-content { padding: 0 18px 20px; }
.invite-content > p:first-child { margin-top: 0; color: var(--muted); font-size: .9rem; }
.qr-frame { position: relative; background: white; border-radius: 14px; padding: 10px; width: min(192px, 100%); margin: 18px auto; }
.qr-frame::before, .qr-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 6px; }
.qr-frame::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.qr-frame::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }
.qr-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.qr-spark { position: absolute; top: -14px; right: -12px; width: 18px; height: 18px; color: var(--warn); animation: hover-spark 3.4s ease-in-out infinite; }
@keyframes hover-spark { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: .85; } 50% { transform: translateY(-4px) rotate(12deg); opacity: 1; } }
.link-field { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card); }
.link-field span { flex: 1; overflow-wrap: anywhere; color: var(--muted); font-size: .82rem; align-content: center; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.link-field button { flex-shrink: 0; font-size: .82rem; }
#shareLinkButton { width: 100%; margin-top: 12px; }
.notice { border-left: 3px solid var(--warn); padding-left: 12px; color: #f2d69a; font-size: .85rem; }

.info-panel { margin-top: 20px; border: 1px dashed var(--line); border-radius: 14px; background: transparent; }
.info-panel summary { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 14px; cursor: pointer; list-style: none; color: var(--muted-2); font-size: .84rem; font-weight: 600; }
.info-panel summary::-webkit-details-marker { display: none; }
.info-mark { display: inline-grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted-2); font-size: .68rem; font-style: italic; font-family: Georgia, serif; }
.info-panel[open] summary { color: var(--muted); }
.info-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 16px 16px; }
.info-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card-flat); }
.info-item-icon { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(154, 166, 189, .12); color: var(--muted); }
.info-item-icon svg { width: 16px; height: 16px; }
.info-item-body { min-width: 0; }
.info-item-body strong { display: block; color: var(--ink); font-size: .86rem; font-weight: 650; margin-bottom: 3px; }
.info-item-body p { margin: 0; max-width: 62ch; color: var(--muted-2); font-size: .82rem; }
.info-item--highlight { background: var(--accent-soft); border: 1px solid #2a5347; }
.info-item--highlight .info-item-icon { background: rgba(91, 233, 201, .18); color: var(--accent); }
.info-item--highlight .info-item-body strong { color: var(--accent); }
/* ---------- Landing: why / how / security / FAQ ---------- */
.landing-extra { margin-top: clamp(48px, 10vh, 96px); display: flex; flex-direction: column; gap: clamp(56px, 10vh, 104px); padding-bottom: clamp(24px, 6vh, 56px); }
.landing-extra section { position: relative; padding-top: clamp(28px, 5vh, 44px); }
.landing-extra section::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.landing-extra h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 1vw + 2.2vh, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 10px; max-width: 44ch; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 58ch; margin: 0 0 34px; }

/* Why: a single connected strip with dividers on wide screens — a grid of
   repeated cards below that, where forcing one row would just cramp it. */
.waiver-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px 22px; }
.waiver-item { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 220px; }
.waiver-icon { flex-shrink: 0; width: 30px; height: 30px; color: var(--accent); margin-top: 2px; }
.waiver-item strong { display: block; font-size: 1.02rem; font-weight: 650; margin-bottom: 5px; }
.waiver-item p { margin: 0; color: var(--muted-2); font-size: .86rem; max-width: 30ch; }
@media (min-width: 1050px) {
  .waiver-grid { flex-wrap: nowrap; gap: 0; }
  .waiver-item { flex: 1 1 0; padding-left: 22px; border-left: 1px solid var(--line-soft); }
  .waiver-item:first-child { padding-left: 0; border-left: none; }
}

/* How: numbered beads strung on one gradient line — a real sequence, shown as one. */
.steps-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 28px; }
.steps-list li { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.step-num { position: relative; z-index: 1; flex-shrink: 0; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: .98rem; box-shadow: 0 0 0 6px var(--bg); }
.steps-list strong { display: block; font-size: 1.04rem; font-weight: 650; margin-bottom: 4px; }
.steps-list p { margin: 0; color: var(--muted-2); font-size: .88rem; max-width: 38ch; }
@media (min-width: 720px) {
  .steps-list { grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
  .steps-list li { flex-direction: column; gap: 14px; }
  .steps-list::before { content: ""; position: absolute; top: 18px; left: 18px; right: 18px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .45; }
}

/* Security: one trust panel instead of another card grid — the claim gets a single frame. */
.security-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-radius: 18px; background: var(--card-flat); border: 1px solid var(--line-soft); overflow: hidden; position: relative; }
.security-list::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .8; }
.security-item { display: flex; gap: 16px; align-items: flex-start; min-width: 0; padding: 20px clamp(18px, 3vw, 28px); }
.security-item + .security-item { border-top: 1px solid var(--line-soft); }
.security-icon { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.security-icon svg { width: 19px; height: 19px; }
.security-item strong, .security-item h3 { display: block; font-size: .98rem; font-weight: 650; margin: 0 0 4px; font-family: inherit; }
.security-item p { margin: 0; color: var(--muted-2); font-size: .86rem; max-width: 60ch; }
@media (min-width: 720px) {
  .security-list { flex-direction: row; }
  .security-item { flex: 1; flex-direction: column; }
  .security-item + .security-item { border-top: none; border-left: 1px solid var(--line-soft); }
}

/* FAQ: wide, editorial two-column layout instead of one long narrow list. */
.faq-list { columns: 1; column-gap: 20px; }
.faq-item { break-inside: avoid; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-flat); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 18px; font-weight: 600; font-size: .96rem; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: .88rem; }
@media (min-width: 760px) {
  .faq-list { columns: 2; }
}

.toast { color: var(--accent-ink); font-size: .9rem; font-weight: 600; padding: 0; overflow-wrap: anywhere; border-radius: 12px; opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
.toast.show { padding: 12px 16px; background: var(--accent); opacity: 1; transform: translateY(0); box-shadow: 0 12px 26px -10px rgba(91, 233, 201, .6); }

footer { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding-block: 22px max(22px, env(safe-area-inset-bottom, 0px)); color: var(--muted-2); font-size: .76rem; }
footer { align-items: center; }
.footer-legal { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; }
.footer-legal a, .footer-legal .footer-link { color: var(--muted-2); }
.footer-legal a:hover, .footer-legal .footer-link:hover { color: var(--ink); }
.legal-note { margin: 8px 0 0; color: var(--muted-2); font-size: .78rem; line-height: 1.5; }
.legal-note a, .section-note a { color: var(--accent); text-underline-offset: 3px; }
.section-note { margin: 20px 0 0; font-size: .9rem; }
.footer-link { padding: 0; font-size: inherit; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.consent-banner { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px max(16px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -12px 32px -16px rgba(2, 4, 20, .7); }
.consent-copy { flex: 1 1 320px; max-width: 760px; min-width: 0; font-size: .85rem; }
.consent-copy p { margin: 4px 0 0; color: var(--muted); }
.consent-actions { display: flex; gap: 10px; flex: 0 1 260px; }
.consent-actions button { flex: 1 1 0; min-width: 0; }
.footer-mark { display: inline-flex; align-items: center; gap: 6px; }
.footer-mark svg { width: 13px; height: 13px; color: var(--accent); opacity: .8; }
.credit-link { color: var(--muted-2); text-decoration: none; }
.credit-link::before { content: "·"; margin: 0 6px; color: var(--line); }
.credit-link:hover, .credit-link:focus-visible { color: var(--accent); text-decoration: underline; }

dialog {
  position: fixed; inset: auto;
  top: calc(var(--visual-top, 0px) + env(safe-area-inset-top, 0px) + 12px);
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  margin: auto; width: min(440px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(var(--visual-height, 100dvh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
  padding: 0; border: 1px solid #40376e; border-radius: 20px; color: var(--ink); background: var(--card);
  overflow-y: auto; overscroll-behavior: contain;
}
dialog::backdrop { background: #030812e0; backdrop-filter: blur(2px); }
.dialog-card { margin: 0; }
.dialog-body { padding: 24px 20px 16px; overflow-wrap: anywhere; }
.dialog-body .eyebrow { margin-bottom: 8px; }
.dialog-body h2 { font-family: var(--font-display); margin-top: 0; font-size: 1.4rem; font-weight: 600; }
#incomingSender, #incomingMeta { color: var(--muted); font-size: .9rem; }
#incomingName { display: block; margin-block: 6px; font-size: 1.05rem; font-weight: 650; overflow-wrap: anywhere; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: 0; padding: 14px 20px max(14px, env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); }
.dialog-actions button { flex: 1; }

/* Guest sign-up CTA: shown when a picked file is over the guest limit. Centered in the viewport
   (unlike the other, top-pinned dialogs) since its height is predictable and short. Three
   differentiated blocks: a header with a decorative glow, then two boxed panels side by side on
   wide viewports (why this happened, with the benefits list under it / act on it, the embedded
   Clerk widget) that stack on narrow or portrait viewports. */
.signup-cta-dialog { width: min(980px, calc(100% - 24px)); top: 50%; bottom: auto; transform: translateY(-50%); }
.signup-cta-card { position: relative; }
.signup-cta-close { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px; line-height: 0; color: var(--muted); }

.signup-cta-header { position: relative; overflow: hidden; padding: 30px 60px 16px 28px; }
.signup-cta-glow {
  display: block; position: absolute; z-index: 0; pointer-events: none;
  inset: -60% -10% auto -10%; height: 210px;
  background:
    radial-gradient(closest-side, rgba(91, 233, 201, .38), transparent 70%),
    radial-gradient(closest-side at 78% 60%, rgba(181, 140, 255, .32), transparent 72%);
  filter: blur(44px); animation: glow-pulse 6.5s ease-in-out infinite;
}
.signup-cta-header .eyebrow, .signup-cta-header h2 { position: relative; z-index: 1; }
.signup-cta-header h2 { margin: 4px 0 0; }

.signup-cta-panels { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 28px 26px; }
.signup-cta-panel { min-width: 0; overflow: hidden; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-flat); }
.signup-cta-why { display: flex; flex-direction: column; }
.signup-cta-action { display: flex; flex-direction: column; }
.signup-cta-sizes { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.signup-cta-size { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); }
.signup-cta-size strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.signup-cta-size small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.signup-cta-size--member { border-color: rgba(91, 233, 201, .45); background: linear-gradient(155deg, rgba(23, 51, 45, .55), rgba(15, 18, 44, .5)); }
.signup-cta-size--member small { color: var(--accent); }
.signup-cta-size-arrow { width: 18px; height: 11px; flex: none; color: var(--muted); }
.signup-cta-lead { margin: 0; color: var(--muted-2); font-size: .92rem; }

/* The benefits list: vertical, under the file/size explanation, inside the same "why" panel.
   margin-top: auto pushes it to the bottom of the panel when the panel is stretched taller than
   its content (matching the sign-up panel's height on wide screens), instead of leaving that
   extra height as dead space below the list; it collapses to the fixed gap below when there is
   no extra height to distribute (stacked/narrow layouts). */
.signup-cta-benefits { display: flex; flex-direction: column; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.signup-cta-benefit-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; }
.signup-cta-benefit-row:first-child { padding-top: 0; }
.signup-cta-benefit-row .benefit-icon { width: 28px; height: 28px; color: var(--accent); background: rgba(91, 233, 201, .12); }
.signup-cta-benefit-row .benefit-icon svg { width: 14px; height: 14px; }
.signup-cta-benefit-row strong { display: block; font-size: .85rem; }
.signup-cta-benefit-row p { margin: 2px 0 0; font-size: .77rem; color: var(--muted-2); }

/* The embedded Clerk widget must fill this panel, never spill past its border: its own card
   already gets width:100%/no-shadow from mountSignUp's appearance config (auth-controller.js),
   this just keeps the panel itself from collapsing narrower than the widget needs while it loads. */
.signup-cta-mount { width: 100%; min-height: 280px; margin-bottom: 6px; }
.signup-cta-fallback-button { width: 100%; margin-top: 4px; }
.signup-cta-signin { display: block; margin: 14px auto 0; }

/* Wide screens, and landscape phones/tablets, get the two-panel side-by-side row instead of
   stacking everything tall. */
@media (min-width: 860px), (min-width: 640px) and (orientation: landscape) {
  .signup-cta-header { padding: 32px 64px 18px 30px; }
  .signup-cta-panels { grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; padding-inline: 30px; }
}

/* Multiple files: staged selection, batch panel and the receiver's single confirmation. */
.selection-card { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-flat); min-width: 0; }
.selection-card h2, #batchSummary { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
#batchSummary { display: block; margin-block: 6px 4px; }
.selection-list { max-height: min(18rem, 40dvh); }
.selection-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card); }
.selection-item[data-invalid="true"] { border-color: #4a2830; }
.selection-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.selection-info .file-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; font-weight: 600; }
.selection-meta { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.selection-problem { color: var(--danger); font-size: .8rem; font-weight: 600; }
.selection-remove { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 4px 10px; font-size: 1.3rem; line-height: 1; }
.selection-problems { margin: 10px 0 0; color: var(--danger); font-size: .88rem; }
.selection-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.selection-actions button { flex: 1 1 140px; }
.batch-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-flat); min-width: 0; }
.batch-panel[data-tone="done"] { border-color: #204238; }
.batch-panel[data-tone="error"] { border-color: #4a2830; }
.batch-title { font-size: .92rem; font-weight: 650; overflow-wrap: anywhere; }
.batch-progress { width: 100%; height: 10px; accent-color: var(--accent); }
.batch-message { margin: 0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.batch-panel[data-tone="error"] .batch-message { color: var(--danger); }
.batch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.batch-actions:empty { display: none; }
.batch-actions button { flex: 0 1 auto; min-height: 44px; }
#batchDialog .selection-list { margin-top: 10px; }
#batchSender { color: var(--muted); font-size: .9rem; margin: 0; }

.preview-dialog { width: min(920px, calc(100% - 24px)); background: var(--card-flat); padding: 0; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.preview-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; font-weight: 650; }
#previewCloseButton { flex-shrink: 0; min-width: 40px; min-height: 40px; padding: 8px; }
#previewCloseButton svg { width: 16px; height: 16px; }
.preview-media { display: grid; place-items: center; min-height: 200px; max-height: calc(var(--visual-height, 100dvh) - 140px); padding: 16px; }
.preview-media img, .preview-media video { display: block; max-width: 100%; max-height: calc(var(--visual-height, 100dvh) - 172px); width: auto; height: auto; border-radius: 8px; }
.preview-media audio { width: 100%; }

@media (min-width: 600px) {
  .topbar, .shell, footer { width: min(100% - 48px, 1120px); }
  .topbar { min-height: 80px; }
  .start-view > .start-grid > .start-copy > .primary-button { width: auto; min-width: 300px; }
  .lead { font-size: 1.18rem; }
  .transfer-card { padding: 26px; }
}
@media (min-width: 760px) {
  .start-grid { flex-direction: row; align-items: center; gap: 24px; }
  .start-copy { flex: 2 1 460px; }
  .start-visual { display: flex; flex: 1 1 320px; }
}
@media (min-width: 960px) {
  .workspace-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
  .room-heading { margin-block: 16px 24px; }
  .room-heading h1 { font-size: 1.8rem; }
  .start-copy { flex-basis: 520px; }
  .start-visual { flex-basis: 420px; }
  .hero-illustration-wrap { max-width: 640px; }
}
@media (min-width: 1300px) {
  .start-copy { flex-basis: 560px; }
  .start-visual { flex-basis: 520px; }
  .hero-illustration-wrap { max-width: 740px; }
}
/* Below this, real vertical space is tight even on wide desktop windows: trim the
   chrome (topbar/footer) so the hero never has to fight them for room. */
@media (max-height: 820px) {
  .topbar { min-height: 52px; }
  footer { padding-block: 12px max(12px, env(safe-area-inset-bottom, 0px)); }
  .start-view { padding-block: clamp(8px, 2.5vh, 24px); }
  .start-view h1 { font-size: clamp(1.7rem, 1vw + 3.6vh, 3.4rem); }
}
@media (max-height: 450px) and (orientation: landscape) {
  .topbar { min-height: 44px; }
  .start-view { padding-block: 6px; justify-content: flex-start; }
  .hero-signal { display: none; }
  .start-visual { display: none; }
  .start-view h1 { font-size: 2rem; }
  .start-view .eyebrow { margin-bottom: 6px; }
  .lead { margin-block: 8px; font-size: 1rem; }
  .microcopy { margin-top: 6px; }
  .start-view > .start-grid > .start-copy > .primary-button { min-height: 44px; }
  footer { padding-block: 8px max(8px, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background-color .12s ease; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .hero-signal .signal-arc { stroke-dashoffset: 0 !important; } }
.language-picker { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; padding: .28rem .55rem .28rem .45rem; border: 1px solid rgba(181, 140, 255, .42); border-radius: 999px; background: linear-gradient(135deg, rgba(91, 233, 201, .08), rgba(181, 140, 255, .12)); box-shadow: 0 0 18px rgba(181, 140, 255, .12), inset 0 0 12px rgba(240, 194, 106, .05); color: var(--muted); }
.language-spark { color: var(--warn); font-size: .85rem; text-shadow: 0 0 8px rgba(240, 194, 106, .8); }
.language-picker { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: .78rem; cursor: pointer; padding: .1rem .1rem; }
.language-picker:focus-visible { outline: 2px solid var(--warn); outline-offset: 2px; border-radius: 4px; }
.language-picker { background: #17112c; color: #f8f3ff; }
@media (max-width: 620px) { .language-picker { margin-left: .35rem; } .language-picker .language-spark { display: none; } }
.header-tools { display: inline-flex; align-items: center; justify-content: flex-end; gap: 14px; margin-left: auto; }
.language-picker { border: 1px solid rgba(181, 140, 255, .42); color: var(--muted); }
.language-picker:hover { color: var(--ink); border-color: var(--accent-2); background: linear-gradient(135deg, rgba(91, 233, 201, .14), rgba(181, 140, 255, .2)); }
/* Compact magical language toggle: keep the icon and label inside the pill at every zoom. */
.language-picker { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: max-content; min-width: 7.2rem; min-height: 2.15rem; margin: 0; padding: .38rem .8rem; gap: .38rem; white-space: nowrap; line-height: 1.2; overflow: hidden; }
.language-picker #languageLabel { display: inline-block; font-weight: 700; white-space: nowrap; }
.language-picker .language-spark { flex: 0 0 auto; }

/* ---------- Mockup-led landing refresh ---------- */
.main-nav { display: inline-flex; gap: clamp(18px, 3vw, 42px); align-items: center; margin-inline: auto; }
.main-nav a { color: #d7d0ed; text-decoration: none; font-size: .92rem; }
.main-nav a:hover { color: var(--accent); }
.trust-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.trust-pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 15px; border: 1px solid #3d4a6b; border-radius: 999px; color: #ded8f2; font-size: .83rem; background: rgba(19, 19, 46, .6); }
.start-view { min-height: calc(100svh - 80px); padding-block: clamp(24px, 4vh, 48px); }
.start-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); align-items: center; gap: clamp(36px, 5vw, 84px); overflow: visible; }
.start-copy { padding-top: 0; max-width: 650px; }
.start-copy .eyebrow, .landing-extra .eyebrow { letter-spacing: .12em; font-size: .78rem; font-weight: 700; }
.start-copy h1 { font-size: clamp(3.4rem, 5.4vw, 5.5rem); }
.start-copy h1 .i18n-plain, .landing-extra h2 .i18n-plain { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.start-copy h1 span, .landing-extra h2 span { background: linear-gradient(100deg, var(--accent), #8dd7ff 50%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.start-copy .lead { max-width: 38ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; }
.start-copy > .primary-button { display: none; }
.start-visual { display: grid; grid-template-rows: 1fr auto; align-self: stretch; align-content: stretch; min-height: 0; max-height: calc(100svh - 128px); }
.hero-illustration-wrap { align-self: start; width: min(118%, 760px); max-width: none; margin: clamp(8px, 2vh, 20px) auto 0; transform: translateY(var(--parallax-y, 0px)); }
.connect-card { position: relative; z-index: 2; width: min(100%, 540px); margin: 0 auto; padding: 28px 36px 24px; border: 1px solid rgba(132, 179, 220, .5); border-radius: 24px; background: linear-gradient(145deg, rgba(29, 46, 72, .9), rgba(30, 21, 63, .92)); box-shadow: 0 24px 50px rgba(2, 4, 20, .45), inset 0 1px rgba(255,255,255,.1); text-align: center; }
.connect-card h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 1.7rem; }
.connect-card .primary-button { width: 100%; min-height: 56px; }
.connect-card label { display: block; text-align: left; margin: 0 0 8px; color: #e9e4f8; font-size: .95rem; }
.connect-card > p { margin: 16px 0 0; color: var(--muted-2); font-size: .82rem; }
.or-divider { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 18px 0; color: #d7d0ed; }
.or-divider span { height: 1px; flex: 1; background: #56617e; opacity: .65; }
.join-row { display: flex; gap: 12px; }
.join-row input { min-width: 0; flex: 1; height: 56px; padding: 0 18px; border: 1px solid #64627e; border-radius: 12px; color: var(--ink); background: rgba(8, 8, 29, .6); letter-spacing: .24em; }
.join-row button { min-width: 130px; height: 56px; }
.landing-extra { margin-top: clamp(36px, 5vw, 64px); gap: clamp(60px, 7vw, 84px); }
.landing-extra section { padding-top: 0; }
.landing-extra section::before { display: none; }
.landing-extra h2 { max-width: none; font-size: clamp(2.25rem, 4vw, 3.6rem); }
.section-lead { max-width: 58ch; }
.waiver-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.waiver-item { grid-column: span 2; min-height: 156px; padding: 24px; border: 1px solid #374467; border-radius: 16px; background: linear-gradient(145deg, rgba(26, 30, 67, .88), rgba(14, 16, 42, .75)); }
.waiver-item:nth-child(n + 4) { grid-column: span 3; }
.waiver-item:first-child { grid-row: auto; flex-direction: row; justify-content: flex-start; min-height: 156px; }
.waiver-item strong { font-size: 1.05rem; }
.waiver-item p { max-width: 25ch; }
.waiver-icon { width: 44px; height: 44px; margin-bottom: 0; }
.steps-list { padding: 28px; border: 1px solid #3d4b70; border-radius: 18px; background: linear-gradient(145deg, rgba(22, 31, 67, .78), rgba(16, 15, 42, .78)); }
.security-section { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px 70px; align-items: center; }
.security-section > .eyebrow, .security-section > h2, .security-section > .section-lead { grid-column: 2; }
.security-list { grid-column: 1; grid-row: 1 / span 3; border: 0; background: transparent; }
.security-item { padding: 16px 0; }
.landing-cta { padding: 34px !important; border: 1px solid #3c4b70; border-radius: 20px; text-align: center; background: linear-gradient(180deg, rgba(31, 42, 81, .8), rgba(17, 20, 51, .9)); }
.landing-cta h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.landing-cta p { color: var(--muted); margin: 0 0 20px; }
.landing-cta small { display: block; margin-top: 12px; color: var(--muted-2); }
footer { align-items: center; }
footer nav { display: inline-flex; gap: 24px; } footer nav a { color: var(--muted); text-decoration: none; }
.footer-brand { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 900px) { .main-nav { display: none; } .start-view { min-height: 0; } .start-grid { grid-template-columns: 1fr; } .start-copy { padding-top: 0; } .start-copy > .primary-button { display: inline-flex; } .start-visual { align-self: auto; min-height: 0; max-height: none; } .hero-illustration-wrap { width: 100%; margin: 0 auto -20px; } .connect-card { margin-top: 0; } .waiver-grid { grid-template-columns: repeat(2, 1fr); } .waiver-item, .waiver-item:nth-child(n + 4) { grid-column: auto; } .waiver-item:first-child { grid-row: auto; min-height: 180px; } .security-section { display: flex; flex-direction: column; align-items: stretch; } .security-list { order: 2; } }
@media (max-width: 600px) { .start-view { padding-top: 28px; } .start-copy h1 { font-size: clamp(2.7rem, 12vw, 4rem); } .hero-illustration-wrap { margin-inline: -24px; } .connect-card { padding: 22px 18px; border-radius: 18px; } .join-row { flex-direction: column; } .join-row button { width: 100%; } .waiver-grid { grid-template-columns: 1fr; } .waiver-item:first-child { min-height: 160px; } .landing-extra { margin-top: 72px; gap: 64px; } footer nav { width: 100%; order: 3; gap: 14px; flex-wrap: wrap; } }

/* FAQ stays rhythmically aligned in both languages: equal card rows, compact copy. */
.faq-section { margin-bottom: 28px; }
.faq-list { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.faq-item { margin: 0; min-height: 64px; }
.faq-item summary { min-height: 64px; padding: 14px 18px; line-height: 1.28; }
.faq-item p { line-height: 1.45; }
.landing-cta { margin-top: 42px; }
@media (max-width: 759px) { .faq-list { grid-template-columns: 1fr; } .faq-section { margin-bottom: 12px; } .landing-cta { margin-top: 28px; } }

/* Header alignment: brand left, navigation centered, controls right. */
@media (min-width: 760px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
  .brand-group { grid-column: 1; justify-self: start; }
  .main-nav { grid-column: 2; grid-row: 1; justify-self: center; }
  .header-tools { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (max-width: 759px) { .main-nav { order: 3; width: 100%; justify-content: center; } .header-tools { margin-left: auto; } }

@media (max-width: 600px) { .waiver-item:first-child { padding: 26px; } }

/* Keep the complete hero composition inside common laptop viewports. */
@media (min-width: 901px) and (max-height: 820px) {
  .start-view { min-height: calc(100svh - 52px); padding-block: 16px 24px; }
  .start-grid { gap: clamp(28px, 4vw, 60px); }
  .start-copy h1 { font-size: clamp(3rem, 4.6vw, 4.6rem); }
  .start-copy .lead { margin-block: 16px; }
  .trust-pills { margin-top: 18px; }
  .hero-illustration-wrap { width: min(104%, 650px); margin-bottom: -24px; }
  .connect-card { padding: 22px 30px 20px; }
  .connect-card h2 { margin-bottom: 14px; font-size: 1.5rem; }
  .connect-card .primary-button { min-height: 50px; }
}

/* Feature cards: custom artwork and relaxed spacing. */
.why-section .section-lead { margin-bottom: 42px; }
.waiver-grid { gap: 18px; }
.waiver-item,
.waiver-item:first-child {
  align-items: flex-start;
  gap: 20px;
  min-height: 188px;
  padding: clamp(26px, 2.1vw, 34px);
}
.waiver-icon {
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: -2px 0 0;
  object-fit: contain;
}
.waiver-item > div { min-width: 0; padding-top: 2px; }
.waiver-item strong { margin-bottom: 9px; font-size: 1.08rem; line-height: 1.3; }
.waiver-item p { max-width: 31ch; font-size: .92rem; line-height: 1.55; }

@media (max-width: 900px) {
  .waiver-grid { gap: 16px; }
  .waiver-item,
  .waiver-item:first-child { min-height: 0; padding: 26px; }
}

@media (max-width: 600px) {
  .why-section .section-lead { margin-bottom: 30px; }
  .waiver-grid { gap: 14px; }
  .waiver-item,
  .waiver-item:first-child { padding: 24px; gap: 17px; }
  .waiver-icon { flex-basis: 50px; width: 50px; height: 50px; }
  .waiver-item p { max-width: none; }
}

/* Security panel: readable vertical rhythm at every viewport. */
.security-section { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px clamp(64px, 6vw, 96px); }
.security-section .security-list {
  flex-direction: column;
  padding: 10px clamp(22px, 2.2vw, 30px);
  border: 1px solid #374467;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22, 31, 67, .72), rgba(14, 16, 42, .58));
}
.security-section .security-item {
  flex: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
}
.security-section .security-item + .security-item {
  border-top: 1px solid var(--line-soft);
  border-left: 0;
}
.security-section .security-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.security-section .security-icon svg { width: 21px; height: 21px; }
.security-section .security-item > div { min-width: 0; padding-top: 1px; }
.security-section .security-item strong {
  margin-bottom: 7px;
  font-size: 1.03rem;
  line-height: 1.35;
}
.security-section .security-item p {
  max-width: 44ch;
  font-size: .91rem;
  line-height: 1.58;
}

@media (max-width: 900px) {
  .security-section .security-list { width: 100%; padding: 8px 24px; }
  .security-section .security-item { padding: 20px 0; }
}

/* Account tiers: the guest/registered comparison that drives sign-ups. */
.plan-tiers { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; margin-top: 34px; align-items: stretch; }
.plan-tier { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(24px, 2.4vw, 32px); border: 1px solid #374467; border-radius: 20px; background: linear-gradient(145deg, rgba(26, 30, 67, .78), rgba(14, 16, 42, .68)); }
.plan-tier-label { color: var(--muted); font-size: .82rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.plan-tier-size { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1; }
.plan-tier p { margin: 0; color: var(--muted-2); font-size: .88rem; }
.plan-tier--member { align-items: stretch; border-color: rgba(91, 233, 201, .45); background: linear-gradient(155deg, rgba(23, 51, 45, .85), rgba(15, 18, 44, .82)); box-shadow: 0 18px 40px -22px rgba(91, 233, 201, .35); }
.plan-tier--member .plan-tier-label { color: var(--accent); }
.plan-tier-badge { align-self: flex-start; padding: 5px 11px; border-radius: 999px; margin-bottom: 6px; color: var(--accent-ink); background: var(--accent); font-size: .74rem; font-weight: 750; letter-spacing: .01em; }
.plan-tier--member .primary-button { margin-top: 16px; align-self: flex-start; }
.plan-tier--member small { display: block; margin-top: 10px; color: var(--muted-2); font-size: .76rem; }
@media (max-width: 700px) {
  .plan-tiers { grid-template-columns: 1fr; }
  .plan-tier--member .primary-button { align-self: stretch; text-align: center; }
}

/* Guest upsell nudged right where the file limit already sits. */
.memory-upgrade { display: inline-flex; margin-top: 8px; padding: 0; color: var(--accent); font-size: .82rem; font-weight: 650; }
.memory-upgrade:hover { color: var(--ink); }

@media (max-width: 600px) {
  .security-section .security-list { padding: 6px 20px; border-radius: 18px; }
  .security-section .security-item { gap: 15px; padding: 18px 0; }
  .security-section .security-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .security-section .security-item p { max-width: none; font-size: .89rem; }
}


/* Optional account and profile */
.profile-view { width: 100%; padding: clamp(28px, 5vw, 64px) 0 72px; }
.profile-back { margin-bottom: 28px; padding-left: 0; }
.profile-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 44px); overflow: hidden; border: 1px solid #3d4b70; border-radius: 24px; background: radial-gradient(circle at 80% 0, rgba(181, 140, 255, .18), transparent 38%), linear-gradient(145deg, rgba(26, 38, 76, .92), rgba(17, 15, 45, .94)); box-shadow: 0 30px 70px rgba(2, 4, 20, .28); }
.profile-hero::after { content: "✦"; position: absolute; right: 8%; bottom: -24px; color: rgba(240, 194, 106, .12); font-size: 9rem; line-height: 1; pointer-events: none; }
.profile-avatar { position: relative; z-index: 1; display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border: 2px solid rgba(91, 233, 201, .55); border-radius: 28px; color: #17112c; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; box-shadow: 0 14px 35px rgba(91, 233, 201, .18); }
.profile-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar.has-image span { display: none; }
.profile-identity { z-index: 1; min-width: 0; }
.profile-identity .eyebrow { margin: 0 0 7px; }
.profile-identity h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.profile-email, .profile-since { margin: 8px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.profile-since { font-size: .82rem; color: var(--muted-2); }
#manageAccountButton { z-index: 1; }
.profile-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; margin-top: 20px; }
.profile-panel { padding: clamp(24px, 3vw, 34px); border: 1px solid #374467; border-radius: 20px; background: linear-gradient(145deg, rgba(22, 31, 67, .78), rgba(16, 15, 42, .8)); }
.profile-panel h2 { margin: 5px 0 10px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 2rem); }
.profile-panel p { color: var(--muted); line-height: 1.6; }
.plan-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.plan-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border: 1px solid rgba(91, 233, 201, .35); border-radius: 999px; color: var(--accent); background: rgba(91, 233, 201, .08); font-size: .78rem; font-weight: 700; }
.plan-badge-icon { flex: none; width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: rgba(91, 233, 201, .22); box-sizing: content-box; }
.benefit-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.benefit-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; align-items: start; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; }
.benefit-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.benefit-icon svg { width: 17px; height: 17px; }
.benefit-item strong { display: block; margin-bottom: 4px; }
.benefit-item p { margin: 0; font-size: .87rem; }
.tier-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650; }
.tier-spark { width: 13px; height: 13px; flex: none; }
.benefit-item--free { background: rgba(181, 140, 255, .05); }
.benefit-item--free .benefit-icon { color: var(--accent-2); background: rgba(181, 140, 255, .16); }
.tier-badge--free { color: var(--accent-2); background: rgba(181, 140, 255, .12); border: 1px solid rgba(181, 140, 255, .32); }
.benefit-item--premium { border-color: rgba(240, 194, 106, .32); background: linear-gradient(155deg, rgba(240, 194, 106, .09), rgba(240, 194, 106, .02)); }
.benefit-item--premium .benefit-icon { color: var(--warn); background: rgba(240, 194, 106, .18); }
.tier-badge--premium { color: var(--warn); background: rgba(240, 194, 106, .14); border: 1px solid rgba(240, 194, 106, .4); }
.sign-out-button { margin-top: 20px; color: var(--muted-2); }
@media (max-width: 720px) { .header-tools { gap: 8px; } .language-picker { min-width: auto; } .profile-hero { grid-template-columns: auto minmax(0, 1fr); gap: 18px; } #manageAccountButton { grid-column: 1 / -1; width: 100%; } .profile-avatar { width: 72px; height: 72px; border-radius: 22px; font-size: 1.35rem; } .profile-grid { grid-template-columns: 1fr; } .benefit-item { grid-template-columns: 30px minmax(0, 1fr); padding: 14px; } }
@media (max-width: 420px) { .profile-hero { padding: 22px; } }

/* Compact account control: language first, identity at the far edge. */
.account-button {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 44px;
  width: 44px; height: 44px; min-height: 44px; max-width: none; padding: 0; overflow: hidden;
  border: 1px solid rgba(181, 140, 255, .48); border-radius: 50%;
  color: #e8e1f7; background-color: #17112c;
  box-shadow: 0 8px 22px rgba(3, 4, 18, .25), inset 0 1px rgba(255, 255, 255, .06);
}
.account-icon { width: 21px; height: 21px; }
.account-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-button:hover { color: var(--accent); border-color: var(--accent); background-color: #201942; transform: translateY(-1px); }
.account-button:focus-visible { outline: 2px solid var(--warn); outline-offset: 3px; }
.account-button.signed-in { border-color: rgba(91, 233, 201, .72); background-color: #1b1738; }
.account-button.signed-in::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 9px; height: 9px; border: 2px solid #0b0818; border-radius: 50%; background: var(--accent); z-index: 1; }
.account-button.has-image .account-icon { opacity: 0; }
.header-tools { margin-left: auto; }
@media (max-width: 420px) {
  .brand-group .credit-link { display: none; }
  .header-tools { gap: 7px; }
  .language-picker { min-height: 44px; padding-inline: .65rem; }
  .account-button { flex-basis: 44px; width: 44px; height: 44px; max-width: none; }
}

/* Scroll reveal: content settles into place once, the same easing/rise as the hero's
   own load-in (reveal-up), never re-triggering on scroll-up so it reads as arrival,
   not decoration. Staggering only applies within an explicit reveal group. */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.16, .8, .24, 1), transform .7s cubic-bezier(.16, .8, .24, 1); transition-delay: calc(var(--ri, 0) * 70ms); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > :nth-child(1 of [data-reveal]) { --ri: 0; }
[data-reveal-group] > :nth-child(2 of [data-reveal]) { --ri: 1; }
[data-reveal-group] > :nth-child(3 of [data-reveal]) { --ri: 2; }
[data-reveal-group] > :nth-child(4 of [data-reveal]) { --ri: 3; }
[data-reveal-group] > :nth-child(5 of [data-reveal]) { --ri: 4; }
[data-reveal-group] > :nth-child(6 of [data-reveal]) { --ri: 5; }
[data-reveal-group] > :nth-child(7 of [data-reveal]) { --ri: 6; }
[data-reveal-group] > :nth-child(8 of [data-reveal]) { --ri: 7; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* The hero scene drifts at a different rate than the page scrolls past it — the one
   spot on the page that answers scrolling directly, rather than just arriving once. */
@media (prefers-reduced-motion: no-preference) {
  .hero-illustration-wrap { will-change: transform; }
}

/* Profile: your devices */
.devices-panel { grid-column: 1 / -1; }
.devices-hint { margin: 0 0 18px; }
.device-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.device-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border: 1px solid #374467; border-radius: 14px; background: rgba(255, 255, 255, .025); }
.device-item[data-current="true"] { border-color: rgba(91, 233, 201, .4); background: rgba(91, 233, 201, .06); }
.device-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 180px; }
.device-name { overflow-wrap: anywhere; }
.device-meta { color: var(--muted); font-size: .85rem; }
.device-badge { align-self: flex-start; margin-top: 4px; padding: 3px 10px; border: 1px solid rgba(91, 233, 201, .35); border-radius: 999px; color: var(--accent); background: rgba(91, 233, 201, .08); font-size: .75rem; font-weight: 700; }
.device-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.device-confirm { flex: 1 0 100%; margin: 0; font-size: .87rem; text-align: left; }
.device-edit-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.device-edit-form .device-actions { flex: 0 0 auto; }
.device-name-input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #40376e; border-radius: 10px; color: var(--ink); background: #120d27; font: inherit; }
.device-name-input[aria-invalid="true"] { border-color: rgba(255, 128, 128, .7); }
.device-error { flex: 1 0 100%; margin: 0; color: #ffb4b4; font-size: .85rem; }
.device-error:empty { display: none; }
.device-empty { color: var(--muted); }
.devices-status { margin: 12px 0 0; min-height: 1.2em; font-size: .87rem; }
.device-status { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.device-badge::before, .device-presence::before { content: "\25CF"; margin-right: 6px; font-size: .7em; vertical-align: 1px; }
.device-presence { font-size: .85rem; font-weight: 700; }
.device-presence--online { color: var(--accent); }
.device-presence--offline { color: var(--muted); }
.device-presence--offline::before { content: "\25CB"; }
/* One cluster of icon buttons, centred on the right of the card: connect (only when offered),
   edit, delete. It wraps under the text, still right-aligned, when the card is too narrow. */
.device-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.device-connect-slot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.device-connect-slot:empty { display: none; }
.device-item[data-confirming] .device-connect-slot { display: none; }
.device-item[data-confirming] .device-tools { flex: 1 0 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.device-item[data-confirming] .device-actions { flex: 1 0 100%; }
.device-icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid rgba(91, 233, 201, .45); color: var(--accent); background: rgba(91, 233, 201, .1); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.device-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.device-icon-button:hover:not(:disabled) { background: rgba(91, 233, 201, .2); border-color: var(--accent); transform: translateY(-1px); }
.device-icon-button:active:not(:disabled) { transform: translateY(0); }
.device-icon-button:disabled { opacity: .45; cursor: not-allowed; }
.device-connect-cancel, .device-action-neutral { color: var(--muted); border-color: var(--line); background: transparent; }
.device-action-neutral:hover:not(:disabled) { color: var(--ink); border-color: var(--muted); background: rgba(255, 255, 255, .05); }
.device-action-primary { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.device-action-primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); filter: brightness(1.08); }
.device-action-danger { color: #ffb4b4; border-color: rgba(255, 128, 128, .5); background: rgba(255, 128, 128, .08); }
.device-action-danger:hover:not(:disabled) { color: #ffd0d0; border-color: rgba(255, 128, 128, .8); background: rgba(255, 128, 128, .16); }
.device-connect-status { color: var(--accent); font-size: .8rem; font-weight: 600; white-space: nowrap; }

