@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/sora.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/sora-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0f1419;
  --surface: #1a222c;
  /* Chrome one step off --surface: tab strips, cards inside cards, viewer header. */
  --surface-2: #141b24;
  --surface-3: #1a2330;
  --surface-3-hover: #243041;
  --surface-sunken: #10161d;
  --dialog-bg: #121820;
  --viewer-bg: #0b1016;
  --findbar-bg: #1a2430;
  --snippet-bg: #16202b;
  --chrome-bg: rgba(15, 20, 25, 0.96);
  --field-translucent: rgba(15, 20, 25, 0.65);
  --hit-translucent: rgba(15, 20, 25, 0.45);
  --overlay: rgba(0, 0, 0, 0.65);
  --border: rgba(148, 163, 184, 0.18);
  --text: #e8eef4;
  --muted: #94a3b8;
  --accent: #14b8a6;
  --accent-dim: rgba(20, 184, 166, 0.14);
  --accent-border: rgba(20, 184, 166, 0.45);
  --accent-ink: #042f2e;
  --danger: #f87171;
  --danger-bg: #7f1d1d;
  --danger-border: #991b1b;
  --danger-ink: #fecaca;
  --glow-1: rgba(20, 184, 166, 0.18);
  --glow-2: rgba(56, 189, 248, 0.08);
  --font: 'Sora', 'Segoe UI', 'Helvetica Neue', ui-sans-serif, system-ui, sans-serif;
  --display: 'Sora', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  --focus-ring: 2px solid rgba(20, 184, 166, 0.7);
}

html[data-theme='dark'] {
  color-scheme: dark;
}

/* Light theme — opt-in via the header toggle, persisted under `vdr-theme`. */
html[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #e5eaf1;
  --surface-3-hover: #d8e0ea;
  --surface-sunken: #f8fafc;
  --dialog-bg: #ffffff;
  --viewer-bg: #e9edf2;
  --findbar-bg: #eef2f7;
  --snippet-bg: #f1f5f9;
  --chrome-bg: rgba(245, 247, 250, 0.96);
  --field-translucent: #ffffff;
  --hit-translucent: #f8fafc;
  --overlay: rgba(15, 23, 42, 0.4);
  --border: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #5b6674;
  --accent: #0d9488;
  --accent-dim: rgba(13, 148, 136, 0.12);
  --accent-border: rgba(13, 148, 136, 0.35);
  --accent-ink: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --danger-border: rgba(220, 38, 38, 0.35);
  --danger-ink: #991b1b;
  --glow-1: rgba(13, 148, 136, 0.12);
  --glow-2: rgba(56, 189, 248, 0.08);
  --focus-ring: 2px solid rgba(13, 148, 136, 0.7);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, var(--glow-1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, var(--glow-2), transparent 50%),
    var(--bg);
}

a { color: var(--accent); }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

#app {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

#app:has(.admin-page) {
  max-width: 1280px;
  width: 100%;
}

.admin-page-title {
  margin: 0;
  font-size: 1.45rem;
  text-align: center;
}

.admin-layout {
  display: flex;
  justify-content: center;
  margin-top: 1.15rem;
}

.admin-workspace {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
}

.admin-invite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.admin-invite-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.admin-invite-card-title .muted {
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-invite-card-lead {
  margin: 0 0 0.75rem;
}

.admin-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
}

button.status-pill.role-edit-btn {
  appearance: none;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

button.status-pill.role-edit-btn:hover {
  border-color: var(--accent-border);
  background: rgba(20, 184, 166, 0.22);
}

.role-modify-dialog {
  max-width: 22rem;
  width: min(22rem, calc(100vw - 2rem));
}

.role-modify-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.role-modify-dialog .btn-primary.btn-inline {
  width: auto;
  margin-top: 0;
}

.status-pill-locked {
  opacity: 0.7;
  cursor: default;
  border-style: dashed;
}

.vdr-admin-card.is-locked {
  opacity: 0.72;
}

.vdr-admin-card.is-locked strong,
.admin-data-table tr.is-locked td {
  color: var(--muted);
}

.admin-data-table tr.is-locked {
  background: rgba(148, 163, 184, 0.04);
}

.locked-access-note {
  font-size: 0.8rem;
}

.status-pill-revoked {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

html[data-theme='light'] .status-pill-revoked {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.deal-workspace-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.audit-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.audit-detail-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  word-break: break-word;
}

.audit-detail-meta,
.audit-detail-progress-label {
  margin: 0 0 0.35rem;
  word-break: break-word;
}

.audit-detail-progress-label {
  margin-top: 0.65rem;
}

.audit-detail-logins-title {
  margin-top: 1.2rem;
}

.audit-file-name {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.audit-detail-list {
  margin-top: 0.35rem;
}

.audit-file-card .audit-file-name,
.audit-login-card strong {
  display: block;
  margin-bottom: 0.15rem;
}

.deal-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.55rem 0.65rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.admin-tabs-bar {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0.85rem;
}

.admin-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  flex: 1 1 auto;
}

.admin-room-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  min-width: min(100%, 14rem);
  max-width: 18rem;
  flex: 0 1 16rem;
  margin: 0;
  padding-bottom: 0.15rem;
}

.admin-room-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-room-field select {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

.admin-room-context {
  margin: 0 0 0.95rem;
  font-size: 0.9rem;
}

.admin-room-context strong {
  color: var(--text);
  font-weight: 700;
}

.deal-workspace-tab {
  appearance: none;
  position: relative;
  z-index: 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.65rem 1.25rem 0.7rem;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  margin-bottom: -1px;
}

.deal-workspace-tab:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.deal-workspace-tab.is-active {
  z-index: 1;
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: var(--surface);
  box-shadow: inset 0 2px 0 0 var(--accent);
}

.deal-workspace-tab-scroll {
  padding: 1.15rem 1.25rem 1.35rem;
  background: var(--surface);
  min-height: 22rem;
}

.deal-workspace-tab-panel {
  display: none;
}

.deal-workspace-tab-panel.is-active {
  display: block;
}

.audit-user-row {
  cursor: pointer;
}

.audit-user-row:hover {
  background: var(--accent-dim);
}

.audit-name {
  margin-right: 0.45rem;
}

.audit-progress-pct {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

.file-viewer-dialog {
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 2rem));
  height: min(88vh, 820px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--dialog-bg);
  color: var(--text);
  overflow: hidden;
}

.file-viewer-dialog::backdrop {
  background: var(--overlay);
}

.file-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  z-index: 3;
}

.btn-viewer-back {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-weight: 700;
  min-height: 2.4rem;
  padding: 0.45rem 0.8rem;
}

.btn-viewer-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.file-viewer-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.file-viewer-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.file-viewer-body {
  flex: 1;
  min-height: 0;
  background: var(--viewer-bg);
  overflow: auto;
}

.file-viewer-findbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--findbar-bg);
  z-index: 2;
}

.file-viewer-findbar[hidden] {
  display: none !important;
}

.file-viewer-find-query {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted, #9aa7b5);
}

.file-viewer-find-count {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.file-viewer-snippet-panel {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem 0.7rem;
  border-bottom: 1px solid var(--border);
  background: var(--snippet-bg);
}

.file-viewer-snippet-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #9aa7b5);
  margin-bottom: 0.25rem;
}

.file-viewer-snippet-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.file-viewer-snippet-text mark.vdr-search-mark,
mark.vdr-search-mark {
  background: #ffe566;
  color: #111;
  padding: 0 0.12em;
  border-radius: 2px;
}

.file-viewer-snippet-text mark.vdr-search-mark.is-current,
mark.vdr-search-mark.is-current {
  background: #ff9800;
  outline: 2px solid #e65100;
  outline-offset: 1px;
}

.file-viewer-pdf {
  padding: 0.75rem;
  overflow: auto;
  height: 100%;
  background: #525659;
}

.file-viewer-pdf-page {
  position: relative;
  width: fit-content;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.file-viewer-pdf-canvas {
  display: block;
}

.file-viewer-pdf-text {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  line-height: 1;
  opacity: 0.25;
  pointer-events: none;
}

.file-viewer-pdf-text span {
  position: absolute;
  white-space: pre;
  color: transparent;
  transform-origin: 0% 0%;
}

.file-viewer-pdf-text mark.vdr-search-mark {
  color: transparent;
  background: rgba(255, 229, 102, 0.85);
}

.file-viewer-pdf-text mark.vdr-search-mark.is-current {
  background: rgba(255, 152, 0, 0.95);
  outline: 2px solid #e65100;
}

.vdr-search-citations {
  margin: 0.75rem 0 1rem;
}

.vdr-search-cite-title {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.vdr-search-cite-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.vdr-search-cite-btn {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: inherit;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.vdr-search-cite-btn:hover {
  border-color: var(--accent);
}

.vdr-search-cite-ref {
  font-size: 0.82rem;
  font-weight: 700;
}

.vdr-search-cite-quote {
  font-size: 0.8rem;
  color: var(--muted, #9aa7b5);
  line-height: 1.4;
}

.vdr-search-entities {
  margin: 0.4rem 0 0.6rem;
  font-size: 0.82rem;
}

.vdr-search-stale {
  margin: 0.35rem 0 0;
}

.file-viewer-tabbar {
  display: none;
  flex-shrink: 0;
  z-index: 5;
}

.file-viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.file-viewer-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  padding: 1rem;
}

.file-viewer-fallback {
  display: grid;
  place-content: center;
  gap: 0.75rem;
  height: 100%;
  text-align: center;
  padding: 1.5rem;
}

.progress-track {
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  margin: 0 0 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, var(--accent));
  border-radius: inherit;
  min-width: 0;
}

@media (max-width: 900px) {
  .admin-invite-grid {
    grid-template-columns: 1fr;
  }

  .deal-workspace-tabs {
    justify-content: flex-start;
  }

  .admin-tabs-bar {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
  }

  .admin-room-field {
    max-width: none;
    flex: 1 1 auto;
  }

  .admin-tab-buttons {
    justify-content: flex-start;
    border-top: 1px solid var(--border);
    padding-top: 0.35rem;
    margin: 0 -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .deal-workspace-tab {
    font-size: 0.88rem;
    padding: 0.55rem 0.9rem 0.6rem;
  }

  .admin-data-table th,
  .admin-data-table td {
    white-space: normal;
  }
}

.shell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.shell-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  justify-content: flex-end;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.brand {
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Logo lockup: the icon is the "V" and the wordmark is "oltScape", so they sit
   flush the way /assets/brand/voltscape-logo-horizontal.png pairs them. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand-lockup-icon {
  display: block;
  height: 1.5rem;
  width: auto;
  flex: 0 0 auto;
}

.brand-lockup-word {
  display: block;
  height: 1.35rem;
  width: auto;
}

.brand-sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.shell-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.theme-toggle-icon svg {
  display: block;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

.theme-toggle[aria-pressed='true'] {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

.shell-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.shell-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.shell-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.shell-footer-sep {
  opacity: 0.5;
  user-select: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.login-card {
  max-width: 400px;
  margin: 3rem auto 0;
}

label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text);
  font: inherit;
}

input.input-locked,
input:read-only {
  background: var(--surface-2);
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.12);
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  background: transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  margin-top: 1rem;
  width: 100%;
}

.btn-primary.btn-inline {
  width: auto;
  margin-top: 0.65rem;
}

.btn-send {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  min-height: 2.65rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid #0f766e;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-send:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--muted);
}

.btn-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-border);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  width: auto;
  margin-top: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.admin-magic-result {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.admin-link-row,
.admin-send-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.admin-link-row input[type='text'],
.admin-send-row input[type='email'] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.admin-link-row input[type='text'] {
  font-size: 0.82rem;
}

.btn-copy {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  min-height: 2.65rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-copy:hover:not(:disabled) {
  border-color: var(--muted);
  background: var(--surface-3-hover);
}

.confirm-dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  background: var(--dialog-bg);
  color: var(--text);
  max-width: 22rem;
}

.confirm-dialog::backdrop {
  background: var(--overlay);
}

.confirm-message {
  margin: 0 0 1rem;
  line-height: 1.4;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.muted { color: var(--muted); font-size: 0.9rem; }

.room-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.room-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--accent-dim), transparent 70%), var(--surface);
  transition: border-color 0.15s ease;
}

.room-card:hover { border-color: var(--accent-border); }

.room-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
}

.room-nav {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-dim);
}

.room-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.btn-rooms {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.btn-rooms:hover {
  filter: brightness(1.05);
}

.room-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

.crumb-sep {
  color: var(--muted);
  user-select: none;
}

.crumb-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0.1rem 0.2rem;
  margin: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
}

.crumb-link:hover {
  text-decoration: underline;
  background: var(--accent-dim);
}

.crumb-current {
  color: var(--text);
  font-weight: 700;
  padding: 0.1rem 0.2rem;
}

#btnBack:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.92rem;
}

.file-table th,
.file-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.file-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-data-table {
  table-layout: fixed;
  width: 100%;
}

.admin-data-table th,
.admin-data-table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.75rem 0.55rem;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-data-table th:first-child,
.admin-data-table td:first-child {
  text-align: left;
}

.admin-data-table .col-name { width: 22%; }
.admin-data-table .col-email { width: 30%; }
.admin-data-table .col-role { width: 18%; }
.admin-data-table .col-expires { width: 18%; }
.admin-data-table .col-actions { width: 20%; }

.admin-data-table .row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.admin-data-table .status-pill,
.admin-data-table .locked-access-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  max-width: 100%;
}

.admin-data-table tr.is-locked td {
  border-bottom-color: var(--border);
}

.file-name-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.file-name-btn:hover { color: var(--accent); }

.folder-icon { color: var(--accent); }

.empty {
  padding: 1.5rem 0;
  color: var(--muted);
  text-align: center;
}

select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text);
  font: inherit;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.shell-user-mobile {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.vdr-mobile-tabbar {
  display: none;
}

.vdr-file-list {
  display: grid;
  gap: 0.65rem;
}

.vdr-file-card {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: inherit;
  font: inherit;
}

.vdr-file-card-folder {
  cursor: pointer;
}

.vdr-file-card-name {
  font-weight: 600;
  font-size: 0.98rem;
  word-break: break-word;
}

.vdr-file-card-meta {
  margin: 0;
  font-size: 0.82rem;
}

.vdr-file-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.vdr-admin-card-list {
  display: grid;
  gap: 0.65rem;
}

.vdr-admin-card,
.audit-user-card {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: inherit;
  font: inherit;
}

.audit-user-card {
  cursor: pointer;
}

.audit-user-card:hover,
.audit-user-card:active {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.vdr-admin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.vdr-admin-card .muted,
.audit-user-card .muted {
  margin: 0;
}

.file-viewer-object {
  width: 100%;
  height: 100%;
  min-height: 50vh;
  border: 0;
  background: #fff;
}

body.vdr-mobile {
  padding-bottom: env(safe-area-inset-bottom);
}

body.vdr-mobile #app {
  max-width: none;
  padding: max(0.85rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right))
    calc(5.25rem + env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
}

body.vdr-mobile .shell-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

body.vdr-mobile .room-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 0;
  background: var(--chrome-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.vdr-mobile .btn-rooms {
  min-height: 2.75rem;
  flex: 0 0 auto;
}

body.vdr-mobile #btnBack {
  min-height: 2.75rem;
}

body.vdr-mobile .brand {
  font-size: 1.35rem;
}

body.vdr-mobile .shell-nav-desktop-only {
  display: none;
}

body.vdr-mobile .shell-user-mobile {
  display: block;
}

body.vdr-mobile .login-card {
  margin-top: 1.25rem;
  max-width: none;
}

body.vdr-mobile input,
body.vdr-mobile select,
body.vdr-mobile textarea {
  font-size: 16px; /* prevent iOS focus zoom */
}

body.vdr-mobile .btn {
  min-height: 2.75rem;
}

body.vdr-mobile .btn-sm {
  min-height: 2.4rem;
}

body.vdr-mobile .admin-link-row,
body.vdr-mobile .admin-send-row {
  flex-direction: column;
}

body.vdr-mobile .admin-link-row .btn,
body.vdr-mobile .admin-send-row .btn {
  width: 100%;
}

body.vdr-mobile .file-viewer-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  border: none;
}

body.vdr-mobile .file-viewer-header {
  padding-top: max(0.65rem, env(safe-area-inset-top));
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
  padding-bottom: 0.55rem;
}

body.vdr-mobile .file-viewer-title {
  font-size: 0.88rem;
  text-align: center;
}

body.vdr-mobile .file-viewer-close-desktop {
  display: none !important;
}

body.vdr-mobile .file-viewer-tabbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15rem;
  padding: 0.3rem max(0.35rem, env(safe-area-inset-left)) calc(0.4rem + env(safe-area-inset-bottom))
    max(0.35rem, env(safe-area-inset-right));
  background: var(--chrome-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.file-viewer-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 3rem;
  padding: 0.3rem 0.15rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.file-viewer-tab-icon {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}

.file-viewer-tab-label {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.file-viewer-tab.is-active {
  color: var(--accent);
  background: var(--accent-dim);
}

.file-viewer-tab:active {
  transform: scale(0.97);
}

body.vdr-viewer-open .vdr-mobile-tabbar {
  display: none !important;
}

body.vdr-mobile .confirm-dialog {
  width: min(22rem, calc(100vw - 2rem));
}

/* Audit detail: avoid clipped wide tables behind the frame / bottom tab bar */
body.vdr-mobile .deal-workspace-frame {
  overflow: visible;
}

body.vdr-mobile .deal-workspace-tab-scroll {
  overflow: visible;
  padding-bottom: 1.75rem;
}

body.vdr-mobile #auditDetailView {
  min-width: 0;
}

body.vdr-mobile .audit-file-card,
body.vdr-mobile .audit-login-card {
  gap: 0.2rem;
}

body.vdr-mobile .audit-file-card .muted,
body.vdr-mobile .audit-login-card .muted {
  font-size: 0.86rem;
  line-height: 1.35;
}

body.vdr-mobile .vdr-mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.15rem;
  padding: 0.35rem max(0.35rem, env(safe-area-inset-left)) calc(0.4rem + env(safe-area-inset-bottom))
    max(0.35rem, env(safe-area-inset-right));
  background: var(--chrome-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vdr-mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3rem;
  padding: 0.35rem 0.2rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.vdr-mobile-tab-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.vdr-mobile-tab-label {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.vdr-mobile-tab.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.vdr-mobile-tab:active {
  transform: scale(0.97);
}

/* Ask / search agent */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vdr-search-card {
  margin-bottom: 1rem;
}

.vdr-search-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.vdr-search-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.vdr-search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vdr-search-form input[type="search"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--field-translucent);
  color: var(--text);
  font: inherit;
}

.vdr-search-form input[type="search"]:focus {
  outline: 2px solid var(--accent-border);
  outline-offset: 1px;
}

.vdr-search-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.vdr-search-results {
  margin-top: 0.85rem;
}

.vdr-search-hit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.vdr-search-hit-btn {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--hit-translucent);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.vdr-search-hit-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.vdr-search-hit-name {
  font-weight: 600;
}

.vdr-search-hit-path,
.vdr-search-hit-why,
.vdr-search-hit-snippet {
  font-size: 0.82rem;
}

.vdr-search-hit-snippet {
  margin-top: 0.25rem;
  color: var(--muted);
  font-style: italic;
}

.vdr-search-meta {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}

/* Shared form control the older stylesheet never needed */
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

/* Google SSO */
.btn-sso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.btn-sso:hover {
  border-color: var(--accent-border);
}

.btn-sso svg {
  display: block;
  flex: 0 0 auto;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}

/* Folder / file glyphs */
.vdr-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  margin-right: 0.4rem;
  flex: 0 0 auto;
}

.vdr-icon-folder {
  color: var(--accent);
}

.vdr-icon-file {
  color: var(--muted);
}

/* NDA gate + access banners */
.vdr-access-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.vdr-access-banner-blocked {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.vdr-nda-card {
  max-width: 44rem;
  margin: 0 auto;
}

.vdr-nda-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

.vdr-nda-text {
  max-height: 18rem;
  overflow-y: auto;
  margin: 0.85rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-sunken);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.vdr-nda-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.vdr-nda-actions .btn-primary {
  width: auto;
  margin-top: 0;
}

.vdr-nda-version {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}

/* Viewer watermark + policy line */
.file-viewer-body {
  position: relative;
}

.file-viewer-watermark {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 6vh;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.file-viewer-watermark span {
  display: block;
  transform: rotate(-24deg);
  white-space: nowrap;
  font-size: clamp(0.85rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.28);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.file-viewer-download-status {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.78rem;
  line-height: 1.35;
}

.brand-lockup-client {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
}

.brand-lockup-client-logo {
  max-height: 40px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-lockup-client-name {
  font-family: var(--font-display, Sora, system-ui, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vdr-brand-accent, var(--text));
  text-decoration: none;
}

a.brand-lockup-client-name:hover {
  text-decoration: underline;
}

.room-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.room-card-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface-2);
  flex-shrink: 0;
}

.admin-brand-logo-preview {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.admin-brand-logo-preview img {
  max-height: 72px;
  max-width: 220px;
  object-fit: contain;
}

.admin-brand-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.55rem;
}

.admin-brand-candidate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
}

.admin-brand-candidate img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.admin-brand-candidate:hover {
  border-color: var(--accent);
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.admin-section-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}

.admin-section-link.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.admin-brand-lead {
  margin: 0 0 0.85rem;
  max-width: 40rem;
}

.admin-brand-room-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 22rem;
  margin-bottom: 0.85rem;
}

.admin-brand-card {
  max-width: 36rem;
}

.file-viewer-policy {
  flex-shrink: 0;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Q&A / document requests */
.vdr-requests-card {
  margin-top: 1rem;
}

.vdr-requests-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.vdr-requests-lead {
  margin: 0 0 0.85rem;
}

.vdr-request-form textarea {
  margin-top: 0.35rem;
}

.vdr-request-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.vdr-request-item {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.vdr-request-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.vdr-request-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.vdr-request-answer {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.vdr-request-meta {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
}

.status-pill-open {
  background: rgba(180, 83, 9, 0.18);
  color: #f59e0b;
}

html[data-theme='light'] .status-pill-open {
  color: #b45309;
}

.vdr-request-answer-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.vdr-request-answer-form .btn-primary {
  width: auto;
  margin-top: 0;
  justify-self: start;
}

/* Guest profile */
.profile-card {
  max-width: 34rem;
  margin: 0 auto 1rem;
}

.profile-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.3rem;
}

.profile-section-title {
  margin: 1.5rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 650;
}

.profile-email {
  margin: 0 0 0.5rem;
  word-break: break-word;
}

.profile-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.profile-toggle-row input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.profile-toggle-copy {
  display: grid;
  gap: 0.2rem;
}

.profile-toggle-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.profile-toggle-hint {
  margin: 0;
  font-size: 0.82rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.profile-actions .btn-primary {
  width: auto;
  margin-top: 0;
}

body.vdr-mobile .shell-header-actions {
  align-self: flex-start;
}

body.vdr-mobile .brand-lockup-icon {
  height: 1.3rem;
}

body.vdr-mobile .brand-lockup-word {
  height: 1.15rem;
}

body.vdr-mobile .shell-footer {
  margin-top: 1.75rem;
}

body.vdr-mobile .profile-card,
body.vdr-mobile .vdr-nda-card {
  max-width: none;
}
