:root {
  color-scheme: dark;
  --background: #090a0c;
  --surface: #101215;
  --surface-raised: #15181c;
  --surface-hover: #191d21;
  --border: #25292e;
  --border-strong: #353b42;
  --text: #f1f3f5;
  --muted: #9299a2;
  --subtle: #626a74;
  --accent: #60a5fa;
  --accent-strong: #3b82f6;
  --accent-ink: #07111f;
  --danger: #fb7185;
  --danger-surface: rgba(251, 113, 133, 0.1);
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--background); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(96, 165, 250, 0.075), transparent 35rem),
    var(--background);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(37, 41, 46, 0.72);
  background: rgba(9, 10, 12, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(960px, calc(100% - 40px));
  height: 66px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-logo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(15, 86, 255, 0.2));
}

.brand-centered { justify-content: center; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.connection-status.offline .status-dot { background: var(--danger); box-shadow: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: 0.6; }
.button svg { width: 17px; height: 17px; }
.button-small { min-height: 34px; padding: 0 11px; font-size: 13px; }
.button-full { width: 100%; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover:not(:disabled) { background: #a7f3c2; }
.button-ghost { border-color: var(--border); background: var(--surface); color: #c9cdd2; }
.button-ghost:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-hover); color: var(--text); }
.button-secondary { border-color: var(--border); background: var(--surface-raised); }
.button-secondary:hover { background: var(--surface-hover); }
.button-danger { background: var(--danger); color: #21060b; }
.button-danger:hover { background: #fda4af; }

.dashboard { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0 40px; }

.hero { margin-bottom: 42px; text-align: center; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.hero h1 { margin: 0; font-size: clamp(35px, 5.5vw, 54px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; }
.hero h1 span { color: #737a82; }
.hero > p:last-child { max-width: 550px; margin: 19px auto 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.workspace-tabs { display: grid; width: min(320px, 100%); margin: 0 auto 30px; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 8px; background: #0d0f11; }
.workspace-tab { display: inline-flex; min-width: 0; height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--subtle); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.workspace-tab:hover { color: var(--text); }
.workspace-tab.active { background: #20242a; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.workspace-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-count { display: inline-grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.workspace-panel[hidden] { display: none; }

.send-section { margin-top: 8px; }
.send-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; padding: 21px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.send-field { display: flex; min-width: 0; flex-direction: column; }
.send-field label { margin-bottom: 8px; color: #cbd0d6; font-size: 12px; font-weight: 550; }
.send-field input, .send-field textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 8px; outline: 0; background: #0d0f11; color: var(--text); caret-color: var(--accent); font: inherit; font-size: 13px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.send-field input { height: 44px; padding: 0 12px; }
.send-field textarea { min-height: 88px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.send-field input:focus, .send-field textarea:focus { border-color: rgba(96, 165, 250, .75); box-shadow: 0 0 0 3px rgba(96, 165, 250, .1); }
.recent-recipients { margin-top: 13px; }
.recent-recipients-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--subtle); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.recent-recipients-heading .inline-link { font-size: 10px; letter-spacing: 0; text-transform: none; }
.recent-recipients-heading .inline-link:disabled { cursor: wait; opacity: .5; }
.recent-recipients-empty { margin: 0; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.recent-recipients-list { display: grid; gap: 6px; }
.recent-recipient-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 30px 30px; gap: 4px; }
.recent-recipient-select, .recent-recipient-action { border: 1px solid var(--border); background: #0d0f11; color: var(--muted); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease; }
.recent-recipient-select { display: flex; min-width: 0; min-height: 38px; align-items: center; justify-content: space-between; gap: 9px; overflow: hidden; padding: 6px 9px; border-radius: 7px; text-align: left; }
.recent-recipient-select strong { min-width: 0; overflow: hidden; color: #d8dde3; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.recent-recipient-select span { flex: none; color: var(--subtle); font-size: 9px; white-space: nowrap; }
.recent-recipient-action { display: grid; width: 30px; min-height: 30px; place-items: center; border-radius: 7px; font: inherit; font-size: 16px; }
.recent-recipient-select:hover, .recent-recipient-action:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-hover); color: var(--text); }
.recent-recipient-select:focus-visible, .recent-recipient-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.recent-recipient-favorite.active { color: #fcd34d; }
.recent-recipient-remove { font-size: 18px; }
.recent-recipient-action:disabled { cursor: wait; opacity: .5; }
.send-description-field { grid-column: 2; grid-row: 1 / span 2; }
.character-count { margin-top: 6px; color: var(--subtle); font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.send-file-row { display: flex; min-width: 0; align-items: center; gap: 12px; }
.send-file-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.send-submit-row { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 18px; padding-top: 2px; border-top: 1px solid var(--border); }
.send-submit-row .form-error { min-width: 0; margin: 11px 0 0; }
.send-submit-row .button { flex: none; margin-top: 11px; }
.inbox-section { margin-top: 48px; }
.inbox-empty-icon { color: var(--accent); }
.inbox-row { min-height: 104px; }
.inbox-description { display: -webkit-box; overflow: hidden; margin-top: 6px; color: #c9cdd2; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.inbox-origin { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; color: var(--subtle); font-size: 10px; }
.inbox-origin strong { color: var(--accent); font-weight: 650; }
.inbox-origin time { color: var(--muted); }
.inbox-expiry { color: #fcd34d; }
.inbox-decrypt-error .file-visual { color: var(--danger); }
.inbox-decrypt-error .inbox-description { color: var(--danger); }

.drop-zone {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 265px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background: rgba(16, 18, 21, 0.72);
  cursor: pointer;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.drop-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(96, 165, 250, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.drop-zone:hover, .drop-zone:focus-visible { border-color: #59616b; background: var(--surface); }
.drop-zone:hover::before, .drop-zone:focus-visible::before, .drop-zone.dragging::before { opacity: 1; }
.drop-zone.dragging { border-color: var(--accent-strong); background: rgba(59, 130, 246, 0.07); transform: scale(1.006); }

.drop-icon {
  display: grid;
  z-index: 1;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-raised);
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.drop-icon svg { width: 25px; height: 25px; }
.drop-copy { display: flex; z-index: 1; flex-direction: column; gap: 6px; }
.drop-copy strong { font-size: 17px; font-weight: 620; }
.drop-copy span { color: var(--muted); font-size: 13px; }
.drop-shortcut { display: flex; z-index: 1; align-items: center; gap: 5px; color: var(--subtle); font-size: 11px; }
kbd { padding: 3px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: #17191c; color: #aeb4bb; font: inherit; }
.upload-limit { margin: 12px 0 0; color: var(--subtle); font-size: 11px; text-align: center; }

.upload-queue-section, .files-section { margin-top: 54px; }
.upload-queue-section + .files-section { margin-top: 44px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 0; font-size: 16px; font-weight: 630; letter-spacing: -0.01em; }
.section-heading p { margin: 5px 0 0; color: var(--subtle); font-size: 12px; }
.text-button { padding: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--text); }

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.icon-button:hover { border-color: var(--border-strong); color: var(--text); }
.icon-button svg { width: 16px; height: 16px; }
.icon-button.spinning svg { animation: spin 700ms linear infinite; }

.upload-queue, .files-list, .files-loading {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.upload-item { padding: 15px 17px; border-bottom: 1px solid var(--border); }
.upload-item:last-child { border-bottom: 0; }
.upload-item-top { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 20px; }
.upload-item strong { overflow: hidden; font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.upload-status { flex: none; color: var(--muted); font-size: 11px; }
.upload-complete .upload-status { color: var(--accent); }
.upload-error .upload-status, .upload-error p { color: var(--danger); }
.progress-track { height: 3px; margin-top: 12px; overflow: hidden; border-radius: 2px; background: #23272c; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent-strong); transition: width 100ms linear; }
.upload-error .progress-track span { background: var(--danger); }
.upload-item p { margin: 8px 0 0; color: var(--subtle); font-size: 10px; }

.file-row {
  display: grid;
  min-height: 78px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  transition: background-color 150ms ease;
}
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: var(--surface-hover); }
.folder-group { border-bottom: 1px solid var(--border); }
.folder-group:last-child { border-bottom: 0; }
.folder-row { min-height: 82px; border-bottom: 0; cursor: pointer; list-style: none; }
.folder-row::-webkit-details-marker { display: none; }
.folder-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.folder-group[open] > .folder-row { background: var(--surface-hover); }
.file-folder { color: var(--accent); }
.file-folder svg { width: 25px; height: 25px; }
.folder-toggle { display: inline-flex; height: 34px; align-items: center; gap: 6px; padding: 0 9px; color: var(--muted); font-size: 11px; font-weight: 550; }
.folder-toggle svg { width: 15px; height: 15px; transition: transform 150ms ease; }
.folder-group[open] .folder-toggle svg { transform: rotate(90deg); }
.folder-actions { align-items: center; }
.folder-contents { border-top: 1px solid var(--border); background: #0d0f11; }
.folder-file-row { min-height: 70px; padding-left: 34px; }
.folder-contents .folder-file-row:last-child { border-bottom: 0; }

.file-visual {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #191c20;
  color: #abb2ba;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.05em;
}
.file-visual img { width: 100%; height: 100%; object-fit: cover; }
.file-preview-trigger { padding: 0; cursor: zoom-in; }
.file-preview-trigger:hover { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(96, 165, 250, .12); }
.file-preview-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-image { color: #93c5fd; }
.file-pdf { color: #fda4af; }
.file-archive { color: #fde68a; }
.file-text { color: #c4b5fd; }
.file-details { min-width: 0; }
.file-details h3 { overflow: hidden; margin: 0; font-size: 13px; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.file-details p { margin: 6px 0 0; color: var(--subtle); font-size: 11px; }
.file-actions { display: flex; gap: 6px; }
.file-action {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 550;
}
.file-action:hover { border-color: var(--border-strong); background: #20242a; color: var(--text); }
.file-action.delete-action:hover { border-color: rgba(251, 113, 133, 0.3); background: var(--danger-surface); color: var(--danger); }
.file-action svg { width: 14px; height: 14px; }

.empty-state { padding: 64px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 18px; place-items: center; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-raised); color: var(--subtle); }
.empty-icon svg { width: 23px; height: 23px; }
.empty-state h3 { margin: 0; font-size: 14px; font-weight: 600; }
.empty-state p { margin: 8px 0 0; color: var(--subtle); font-size: 12px; }

.files-loading { padding: 8px 15px; }
.skeleton { height: 62px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton:last-child { border: 0; }

.site-footer { padding: 24px 20px 38px; color: var(--subtle); text-align: center; }
.site-footer p { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; }
.site-footer svg { width: 14px; height: 14px; }
.footer-links, .login-legal-links, .legal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.footer-links { margin-top: 12px; }
.footer-links a, .login-legal-links a, .legal-footer a { color: var(--muted); font-size: 10px; }
.footer-links a:hover, .login-legal-links a:hover, .legal-footer a:hover { color: var(--text); text-decoration: underline; }

.toast-region { display: flex; position: fixed; z-index: 100; right: 22px; bottom: 22px; width: min(360px, calc(100% - 44px)); flex-direction: column; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(24, 27, 31, 0.96); box-shadow: var(--shadow); color: #d7dbe0; font-size: 12px; opacity: 0; transform: translateY(8px); transition: opacity 220ms ease, transform 220ms ease; backdrop-filter: blur(12px); }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-icon { display: grid; width: 19px; height: 19px; flex: none; place-items: center; border-radius: 50%; background: rgba(148, 163, 184, .13); color: #cbd5e1; font-size: 11px; font-weight: 800; }
.toast-success .toast-icon { background: rgba(59, 130, 246, .14); color: var(--accent); }
.toast-error .toast-icon { background: var(--danger-surface); color: var(--danger); }

.dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; background: transparent; color: var(--text); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(4px); }
.dialog-card { padding: 27px; border: 1px solid var(--border-strong); border-radius: 16px; background: #121417; box-shadow: var(--shadow); text-align: center; }
.dialog-close { display: grid; position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.dialog-close:hover { border-color: var(--border); background: var(--surface-hover); color: var(--text); }
.dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dialog-close svg { width: 18px; height: 18px; }
.dialog-icon { display: grid; width: 46px; height: 46px; margin: 0 auto 18px; place-items: center; border-radius: 13px; background: var(--danger-surface); color: var(--danger); }
.dialog-icon svg { width: 21px; height: 21px; }
.dialog h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.dialog p { margin: 10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dialog p span { color: #d7dbe0; word-break: break-all; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.encryption-dialog-card { text-align: left; }
.encryption-dialog-card h2, .encryption-dialog-card > p { text-align: center; }
.encryption-icon { background: rgba(96, 165, 250, .12); color: var(--accent); }
.recovery-warning { margin: 0 0 14px !important; color: #d7dbe0 !important; text-align: center; }
.recovery-key { display: block; padding: 13px; border: 1px solid var(--border-strong); border-radius: 9px; background: #0b0d0f; color: var(--accent); font-size: 12px; line-height: 1.5; text-align: center; word-break: break-all; user-select: all; }
.recovery-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }

.image-preview-dialog {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  height: min(880px, calc(100dvh - 48px));
  max-height: none;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #0d0f11;
  color: var(--text);
  box-shadow: var(--shadow);
}
.image-preview-dialog::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(6px); }
.image-preview-card { display: grid; height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; }
.image-preview-header, .image-preview-footer { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.image-preview-header { justify-content: space-between; border-bottom: 1px solid var(--border); }
.image-preview-heading { min-width: 0; }
.image-preview-heading strong, .image-preview-heading span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-preview-heading strong { font-size: 13px; }
.image-preview-heading span { margin-top: 4px; color: var(--subtle); font-size: 10px; }
.image-preview-close { position: static; flex: none; }
.image-preview-stage { display: grid; position: relative; min-width: 0; min-height: 0; place-items: center; overflow: hidden; background: #08090b; }
.image-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-orientation: from-image;
}
.image-preview-status { max-width: 420px; margin: 0; padding: 24px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.image-preview-footer { justify-content: space-between; border-top: 1px solid var(--border); }
.image-preview-footer > span { color: var(--subtle); font-size: 10px; }
.image-preview-footer .button { flex: none; }
.image-preview-footer .button svg { width: 15px; height: 15px; }

.login-page { display: grid; place-items: center; }
.login-shell { width: 100%; padding: 40px 20px; }
.login-card { width: min(430px, 100%); margin: 0 auto; padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: rgba(16, 18, 21, 0.88); box-shadow: var(--shadow); }
.landing-shell { display: grid; width: min(1110px, 100%); min-height: 100vh; grid-template-columns: minmax(390px, 430px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: center; column-gap: 72px; row-gap: 26px; }
.landing-login-card { width: 100%; margin: 0; }
.landing-intro { min-width: 0; padding: 24px 0; }
.landing-mobile-header { display: none; }
.landing-copy { max-width: 570px; }
.landing-eyebrow { margin: 0 0 17px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.landing-copy h2 { margin: 0; font-size: clamp(42px, 5.2vw, 68px); font-weight: 700; letter-spacing: -.055em; line-height: .98; }
.landing-copy h2 span { color: #737a82; }
.landing-summary { max-width: 540px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.landing-transfer-visual { max-width: 570px; margin-top: 34px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(21, 24, 28, .96), rgba(13, 15, 17, .92)); box-shadow: 0 26px 70px rgba(0, 0, 0, .22); }
.landing-visual-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--border); color: var(--subtle); font-size: 9px; font-weight: 650; letter-spacing: .03em; }
.landing-visual-header span:first-child { display: inline-flex; align-items: center; gap: 7px; color: #aab1b9; }
.landing-visual-header i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(96, 165, 250, .11); }
.landing-device-flow { display: grid; grid-template-columns: 72px minmax(90px, 1fr) 72px; align-items: center; gap: 18px; padding: 27px 28px 22px; }
.landing-endpoint { display: grid; justify-items: center; gap: 7px; }
.landing-endpoint small { color: var(--subtle); font-size: 9px; }
.landing-device-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--border-strong); border-radius: 13px; background: #111418; color: #b9c0c8; }
.landing-device-icon svg { width: 23px; height: 23px; }
.landing-transfer-route { display: grid; position: relative; place-items: center; }
.landing-route-line { width: 100%; height: 1px; background: linear-gradient(90deg, var(--border-strong), var(--accent), var(--border-strong)); }
.landing-route-line::after { content: ""; display: block; width: 45%; height: 1px; margin-left: 8%; background: rgba(255, 255, 255, .5); filter: blur(2px); }
.landing-route-file { display: grid; position: absolute; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(96, 165, 250, .45); border-radius: 10px; background: #13243a; color: var(--accent); box-shadow: 0 8px 26px rgba(59, 130, 246, .2); }
.landing-route-file svg { width: 17px; height: 17px; }
.landing-file-preview { display: grid; margin: 0 17px 17px; padding: 11px 12px; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--border); border-radius: 11px; background: rgba(9, 10, 12, .7); }
.landing-file-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: rgba(96, 165, 250, .1); color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.landing-file-preview strong, .landing-file-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-file-preview strong { color: #d5dae0; font-size: 10px; font-weight: 600; }
.landing-file-preview small { margin-top: 4px; color: var(--subtle); font-size: 8px; }
.landing-file-preview > svg { width: 18px; height: 18px; color: var(--accent); }
.landing-benefits { display: grid; max-width: 570px; margin: 25px 0 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.landing-benefits li { display: flex; min-width: 0; align-items: flex-start; gap: 9px; }
.landing-benefits li > svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--accent); }
.landing-benefits strong, .landing-benefits small { display: block; }
.landing-benefits strong { color: #cbd0d6; font-size: 10px; font-weight: 650; line-height: 1.4; }
.landing-benefits small { margin-top: 4px; color: var(--subtle); font-size: 8px; line-height: 1.5; }
.auth-mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 28px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #0d0f11; }
.auth-mode { height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--subtle); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.auth-mode:hover { color: var(--text); }
.auth-mode.active { background: #1b1e22; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.32); }
.login-heading { margin: 25px 0 24px; text-align: center; }
.login-heading h1 { margin: 0; font-size: 25px; letter-spacing: -0.035em; }
.login-heading p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; }
.login-form[hidden] { display: none; }
.login-form label { margin: 0 0 8px; color: #cbd0d6; font-size: 12px; font-weight: 550; }
.login-form input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; background: #0d0f11; color: var(--text); caret-color: var(--accent); transition: border-color 150ms ease, box-shadow 150ms ease; }
.login-form input:focus { border-color: rgba(96, 165, 250, .75); box-shadow: 0 0 0 3px rgba(96, 165, 250, .1); }
.login-form .numeric-code-input { text-align: center; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .25em; }
.login-form .field-label { margin-top: 17px; }
.form-hint { margin: 7px 0 0; color: var(--subtle); font-size: 10px; line-height: 1.45; }
.form-hint .inline-link { font-size: inherit; }
.login-form .terms-checkbox { display: grid; margin: 18px 0 0; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.5; cursor: pointer; }
.login-form .terms-checkbox input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.turnstile-slot:not(:empty) { width: 100%; min-height: 65px; margin-top: 16px; }
.turnstile-slot iframe { max-width: 100%; }
.terms-checkbox a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.login-legal-links { width: min(430px, 100%); margin: 18px auto 0; }
.landing-shell > .login-legal-links { grid-column: 1 / -1; width: 100%; margin: 0; }
.password-label { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.password-label label { margin-bottom: 8px; }
.inline-link { padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 11px; }
.inline-link:hover { text-decoration: underline; }
.password-label .inline-link { margin-bottom: 8px; }
.back-link { align-self: center; margin-top: 15px; }
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-toggle { display: grid; position: absolute; top: 0; right: 0; width: 42px; height: 44px; padding: 0; place-items: center; border: 0; background: none; color: var(--subtle); cursor: pointer; }
.password-toggle:hover { color: var(--text); }
.password-toggle svg { width: 17px; height: 17px; }
.eye-closed, .password-toggle.showing .eye-open { display: none; }
.password-toggle.showing .eye-closed { display: block; }
.form-error { min-height: 18px; margin: 11px 0 7px; color: var(--danger); font-size: 11px; line-height: 1.5; }
.neutral-status { color: var(--muted); }
.neutral-status.success, .centered-status.success { color: var(--accent); }
.centered-status { text-align: center; }
.spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(7,17,31,.25); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin 700ms linear infinite; }
.button.loading .button-label { display: none; }
.button.loading .spinner { display: block; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 23px 0 0; color: var(--subtle); font-size: 10px; }
.secure-note svg { width: 12px; height: 12px; }

.qr-login-panel { text-align: center; }
.qr-code { display: grid; width: 210px; height: 210px; margin: 0 auto 17px; padding: 10px; place-items: center; border-radius: 14px; background: #fff; }
.qr-code svg { display: block; width: 100%; height: 100%; }
.qr-placeholder { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 7px; background: #f1f3f5; }
.qr-placeholder .spinner { display: block; width: 22px; height: 22px; border-color: rgba(7,17,31,.2); border-top-color: var(--accent-ink); }
.verification-label { margin: 0 0 5px; color: var(--subtle); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.verification-code { margin: 0; color: var(--text); font-size: 21px; font-weight: 700; letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.qr-status { min-height: 18px; margin: 12px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.qr-status.error { color: var(--danger); }
.qr-hint { margin-top: 14px; }
.qr-hint strong { color: #cbd0d6; }

.scanner-dialog { width: min(480px, calc(100% - 24px)); }
.scanner-icon { background: rgba(96, 165, 250, .12); color: var(--accent); }
.scanner-viewport { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin: 4px 0 4px; border: 1px solid var(--border-strong); border-radius: 12px; background: #070809; }
.scanner-viewport video { width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; inset: 17%; border: 2px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.22); }
.scanner-error { min-height: 34px; margin: 10px 0; }
.scanner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.approval-card { text-align: center; }
.approval-device { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: #0d0f11; text-align: left; }
.approval-device > svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.approval-device div { min-width: 0; }
.approval-device span, .approval-device strong { display: block; }
.approval-device span { margin-bottom: 3px; color: var(--subtle); font-size: 10px; text-transform: uppercase; }
.approval-device strong { overflow: hidden; color: #d7dbe0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.approval-account { margin: 18px 0; color: var(--muted); font-size: 12px; }
.approval-account strong { color: var(--text); }
.approval-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.approval-error { min-height: 0; margin: 12px 0; }

.account-icon { background: rgba(96, 165, 250, .12); color: var(--accent); }
#account-dialog { width: min(620px, calc(100% - 32px)); max-width: none; }
#account-dialog.administration-visible { width: min(1040px, calc(100% - 32px)); }
.account-dialog-card { position: relative; max-height: min(860px, calc(100dvh - 32px)); overflow-y: auto; text-align: left; }
.account-dialog-card > h2, .account-dialog-card > p { text-align: center; }
.account-settings-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 0; }
.account-settings-layout.has-administration { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: start; }
.account-settings-personal, .administration-panel { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 13px; background: rgba(13, 15, 17, .72); }
.administration-panel { border-color: rgba(96, 165, 250, .24); background: linear-gradient(180deg, rgba(96, 165, 250, .07), rgba(13, 15, 17, .82) 120px); }
.account-column-header { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.account-column-header > span:first-child, .administration-header > div > span { display: block; margin-bottom: 5px; color: var(--accent); font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.account-column-header h3 { margin: 0; color: var(--text); font-size: 16px; letter-spacing: -.015em; }
.account-column-header > p, .administration-header > p { margin: 7px 0 0; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.administration-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 12px; }
.administration-header > p { grid-column: 1 / -1; }
.administration-role-badge { padding: 4px 8px; border-radius: 999px; background: rgba(96, 165, 250, .14); color: #9cc0ff; font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.administration-locked { padding: 12px 13px; border: 1px solid rgba(251, 191, 36, .2); border-radius: 9px; background: rgba(251, 191, 36, .07); color: #d9bd78; font-size: 10px; line-height: 1.5; }
.account-identity { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #0d0f11; }
.account-identity span, .account-identity strong { display: block; }
.account-identity span { margin-bottom: 3px; color: var(--subtle); font-size: 10px; text-transform: uppercase; }
.account-identity strong { color: var(--text); font-size: 13px; }
.account-email-label { display: flex; align-items: center; justify-content: space-between; }
.email-badge { margin-bottom: 8px; padding: 3px 6px; border-radius: 999px; background: var(--danger-surface); color: var(--danger); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.email-badge.verified { background: rgba(96, 165, 250, .12); color: var(--accent); }
.account-security-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.account-security-section > h3 { margin: 0; font-size: 14px; }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; }
.account-section-heading h3 { margin: 0; font-size: 14px; }
.account-section-heading .email-badge { margin: 0; }
.account-security-section > p { margin: 7px 0 15px; font-size: 11px; }
.compact-form { gap: 10px; margin-top: 14px; }
.compact-form label { margin-bottom: -2px; }
.compact-form .field-label { margin-top: 5px; }
.mfa-enrollment { margin-top: 16px; }
.mfa-enrollment > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; text-align: center; }
.mfa-qr-code { width: 180px; height: 180px; margin-bottom: 12px; }
.manual-key-label { display: block; margin-bottom: 5px; color: var(--subtle); font-size: 9px; text-align: center; text-transform: uppercase; }
.mfa-secret { display: block; margin-bottom: 14px; color: #cbd0d6; font-size: 10px; text-align: center; word-break: break-all; }
.account-security-section > .form-error { margin-bottom: 0; }
.section-icon-button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.section-icon-button:hover { border-color: var(--border-strong); background: var(--surface-hover); color: var(--text); }
.section-icon-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.section-icon-button svg { width: 15px; height: 15px; }
.section-icon-button.loading svg { animation: spin 900ms linear infinite; }
.devices-loading { padding: 12px 0; color: var(--subtle); font-size: 11px; }
.devices-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.device-session { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #0d0f11; }
.device-session-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: rgba(96, 165, 250, .1); color: var(--accent); }
.device-session-icon svg { width: 17px; height: 17px; }
.device-session-info { min-width: 0; }
.device-session-title { display: flex; min-width: 0; align-items: center; gap: 6px; }
.device-session-title strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.device-current { flex: none; padding: 2px 5px; border-radius: 999px; background: rgba(96, 165, 250, .12); color: var(--accent); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.device-session-info small { display: block; margin: 3px 0 0; color: var(--subtle); font-size: 9px; line-height: 1.35; }
.device-revoke { height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.device-revoke:hover { border-color: rgba(251, 113, 133, .3); background: var(--danger-surface); color: var(--danger); }
.device-revoke:disabled { cursor: wait; opacity: .6; }
.invite-management { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.invite-management h3 { margin: 0; font-size: 14px; }
.invite-management > p { margin: 7px 0 15px; font-size: 11px; }
.invite-result { margin-top: 16px; }
.invite-result > label { display: block; margin-bottom: 8px; color: #cbd0d6; font-size: 12px; font-weight: 550; }
.invite-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.invite-code-output { min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; background: #0d0f11; color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.invite-code-output:focus { border-color: rgba(96, 165, 250, .75); box-shadow: 0 0 0 3px rgba(96, 165, 250, .1); }
.invite-result .invite-expiry { margin: 8px 0 0; color: var(--subtle); font-size: 10px; }
.invite-management > .form-error { margin-bottom: 0; }
.invite-requests-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.invite-requests-panel h4 { margin: 0; color: #cbd0d6; font-size: 12px; }
.invite-requests-panel > p { margin: 7px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.invite-requests-list { display: flex; flex-direction: column; gap: 8px; }
.invite-request-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: #0d0f11; }
.invite-request-row strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.invite-request-row small { display: block; margin-top: 4px; color: var(--subtle); font-size: 9px; }
.invite-request-actions { display: flex; gap: 6px; }
.invite-request-approve { border-color: rgba(96, 165, 250, .28); color: var(--accent); }
.invite-request-approve:hover { border-color: rgba(96, 165, 250, .48); background: rgba(96, 165, 250, .1); color: #9cc0ff; }
.admin-users-list { display: flex; flex-direction: column; gap: 8px; }
.admin-user-search { display: flex; height: 40px; margin: 0 0 10px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 9px; background: #0d0f11; color: var(--subtle); }
.admin-user-search:focus-within { border-color: rgba(96, 165, 250, .75); box-shadow: 0 0 0 3px rgba(96, 165, 250, .1); }
.admin-user-search svg { width: 15px; height: 15px; flex: none; }
.admin-user-search input { min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.admin-user-search input::placeholder { color: var(--subtle); }
.admin-user-search input:disabled { cursor: wait; opacity: .65; }
.admin-user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: #0d0f11; }
.admin-user-title { display: flex; min-width: 0; align-items: center; gap: 7px; }
.admin-user-title strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-row small { display: block; margin-top: 4px; color: var(--subtle); font-size: 9px; }
.role-badge { flex: none; padding: 2px 6px; border-radius: 999px; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.role-member { background: rgba(148, 163, 184, .1); color: var(--muted); }
.role-admin { background: rgba(96, 165, 250, .13); color: var(--accent); }
.admin-role-button { min-width: 78px; }
.admin-load-more { margin-top: 9px; }
.admin-users-empty { margin: 0; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; color: var(--subtle); font-size: 10px; text-align: center; }
.admin-activity-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.admin-activity-section h4 { margin: 0 0 10px; color: #cbd0d6; font-size: 10px; text-transform: uppercase; }
.admin-activity-list { display: flex; flex-direction: column; gap: 8px; }
.admin-activity-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.admin-activity-row time { flex: none; color: var(--subtle); }

.legal-page { min-height: 100vh; }
.legal-header { display: flex; position: sticky; z-index: 10; top: 0; width: min(880px, calc(100% - 40px)); height: 66px; margin: 0 auto; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(37, 41, 46, .72); background: rgba(9, 10, 12, .88); backdrop-filter: blur(18px); }
.legal-back { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 11px; }
.legal-back:hover { border-color: var(--border-strong); background: var(--surface-hover); color: var(--text); }
.legal-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 32px; }
.legal-document { color: #c9cdd2; font-size: 14px; line-height: 1.75; }
.legal-eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.legal-document h1 { margin: 0; color: var(--text); font-size: clamp(32px, 6vw, 48px); letter-spacing: -.035em; line-height: 1.1; }
.legal-updated { margin: 14px 0 42px; color: var(--subtle); font-size: 11px; }
.legal-document h2 { margin: 38px 0 9px; color: var(--text); font-size: 17px; letter-spacing: -.01em; }
.legal-document p { margin: 0 0 15px; }
.legal-document ul { margin: 8px 0 18px; padding-left: 22px; }
.legal-document li { margin: 5px 0; }
.legal-document strong { color: #e0e4e8; }
.legal-document code { padding: 2px 5px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: #dbeafe; font-size: .88em; }
.faq-intro { max-width: 620px; color: var(--muted); }
.faq-list { display: grid; gap: 9px; margin-top: 30px; }
.faq-list details { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.faq-list details[open] { border-color: var(--border-strong); background: var(--surface-raised); }
.faq-list summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent); font-size: 20px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 17px 17px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.legal-table-wrap { margin: 14px 0 18px; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.legal-document table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 12px; }
.legal-document th, .legal-document td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-document tr:last-child td { border-bottom: 0; }
.legal-document th { color: var(--text); font-size: 10px; text-transform: uppercase; }
.legal-footer { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 42px; border-top: 1px solid var(--border); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 860px) {
  .landing-shell { width: min(560px, 100%); min-height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-content: center; gap: 48px; padding-top: 28px; }
  .landing-login-card { justify-self: center; width: min(430px, 100%); }
  .landing-intro { width: min(570px, 100%); padding: 0; }
  .landing-shell > .login-legal-links { margin: -20px 0 0; }
  #account-dialog.administration-visible { width: min(620px, calc(100% - 32px)); }
  .account-settings-layout.has-administration { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .header-inner, .dashboard { width: min(100% - 28px, 800px); }
  .header-inner { height: 60px; }
  .connection-status { display: none; }
  .button-ghost span { display: none; }
  .button-ghost { width: 34px; padding: 0; }
  .dashboard { padding-top: 50px; }
  .hero { margin-bottom: 32px; }
  .hero > p:last-child { font-size: 14px; }
  .drop-zone { min-height: 230px; }
  .workspace-tabs { margin-bottom: 24px; }
  .send-form { grid-template-columns: minmax(0, 1fr); padding: 17px; }
  .send-description-field { grid-column: 1; grid-row: auto; }
  .send-submit-row { align-items: stretch; flex-direction: column; gap: 0; }
  .send-submit-row .button { width: 100%; }
  .inbox-row { align-items: start; }
  .inbox-origin { line-height: 1.4; }
  .upload-queue-section, .files-section { margin-top: 42px; }
  .file-row { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; padding: 12px; }
  .file-visual { width: 40px; height: 40px; }
  .file-action { width: 34px; padding: 0; justify-content: center; font-size: 0; }
  .file-actions { gap: 5px; }
  .image-preview-dialog { width: calc(100% - 20px); height: calc(100dvh - 20px); border-radius: 13px; }
  .image-preview-header, .image-preview-footer { padding: 11px 12px; }
  .image-preview-footer > span { display: none; }
  .image-preview-footer .button { width: 100%; }
  .login-card { padding: 27px 22px; }
  .landing-shell { gap: 38px; padding: 20px 14px 30px; }
  .landing-intro { order: 1; }
  .landing-login-card { display: none; order: 2; }
  .landing-login-card.mobile-auth-visible { display: block; }
  .landing-shell > .login-legal-links { order: 3; }
  .landing-mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 54px; }
  .landing-mobile-brand { min-width: 0; gap: 9px; font-size: 16px; white-space: nowrap; }
  .landing-mobile-brand .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
  .landing-mobile-actions { display: flex; flex: none; align-items: center; gap: 5px; }
  .landing-auth-link { min-height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #cbd0d6; cursor: pointer; font-size: 11px; font-weight: 650; }
  .landing-auth-link:hover { background: var(--surface-hover); color: var(--text); }
  .landing-auth-link-primary { border-color: var(--border-strong); background: var(--surface-raised); }
  .landing-auth-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .landing-copy h2 { font-size: clamp(38px, 12vw, 54px); }
  .landing-summary { font-size: 14px; }
  .landing-transfer-visual { margin-top: 27px; }
  .landing-device-flow { grid-template-columns: 58px minmax(60px, 1fr) 58px; gap: 10px; padding: 24px 18px 20px; }
  .landing-benefits { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .landing-benefits small { font-size: 9px; }
  .landing-shell > .login-legal-links { margin: -12px 0 0; }
  #account-dialog, #account-dialog.administration-visible { width: calc(100% - 20px); }
  .account-dialog-card { max-height: calc(100dvh - 20px); padding: 22px 18px; }
  .account-settings-personal, .administration-panel { padding: 16px; }
  .legal-header { width: min(100% - 28px, 880px); }
  .legal-shell, .legal-footer { width: min(100% - 32px, 760px); }
  .legal-shell { padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
