/* Consent and local privacy notice */

  body.consent-required .wrap {
    filter: none;
    pointer-events: auto;
    user-select: auto;
  }
  .consent-banner-shell[hidden] {
    display: none !important;
  }
  .consent-banner-shell {
    position: fixed;
    inset: 0;
    z-index: 940;
    pointer-events: none;
  }
  .consent-banner-scrim {
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
  }
  .consent-banner {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(1120px, calc(100vw - 44px));
    margin: 0 auto;
    pointer-events: auto;
    background: var(--surface-elevated, #fff);
    border: 1px solid var(--card-border, rgba(148, 163, 184, 0.34));
    background: color-mix(in srgb, var(--surface-elevated, #fff) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-border, rgba(148, 163, 184, 0.34)) 84%, transparent);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    padding: 16px 18px;
    backdrop-filter: blur(18px) saturate(1.05);
  }
  .consent-banner-main {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
  }
  .consent-banner-icon {
    width: 50px;
    height: 50px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    background: var(--accent-soft, #dbeafe);
    background: color-mix(in srgb, var(--accent-soft, #dbeafe) 52%, var(--surface-raised, #fff));
    color: var(--accent-strong, #1d4ed8);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-strong, #1d4ed8) 10%, transparent);
  }
  .consent-banner-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .consent-banner h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0;
    font-weight: 800;
    color: var(--text, #0f172a);
  }
  .consent-banner-copy {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.48;
    max-width: 720px;
  }
  .consent-banner-copy p {
    margin: 0;
  }
  .consent-banner-copy p + p {
    margin-top: 2px;
  }
  .consent-banner-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-end;
    white-space: nowrap;
  }
  .consent-banner-actions .btn-primary {
    min-width: 164px;
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
  }
  .consent-details-link {
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--accent-strong, #1d4ed8);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  .consent-details-link:hover,
  .consent-details-link:focus-visible {
    color: var(--accent-deep, var(--accent-strong, #1d4ed8));
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
  }
  .consent-banner-fineprint {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }
  .consent-banner-details {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line, rgba(148, 163, 184, 0.22));
    border-top: 1px solid color-mix(in srgb, var(--line, rgba(148, 163, 184, 0.22)) 82%, transparent);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.48;
  }
  .consent-detail-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line, rgba(148, 163, 184, 0.18));
    border-bottom: 1px solid color-mix(in srgb, var(--line, rgba(148, 163, 184, 0.18)) 55%, transparent);
  }
  .consent-detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .consent-detail-row strong {
    color: var(--text, #0f172a);
    font-size: 12px;
  }
  body.google-auth-required .wrap {
    filter: saturate(0.97) opacity(0.9);
    pointer-events: none;
    user-select: none;
  }
  body.system-path-required .wrap {
    filter: saturate(0.97) opacity(0.9);
    pointer-events: none;
    user-select: none;
  }
  .google-auth-shell[hidden] {
    display: none !important;
  }
  .google-auth-shell {
    position: fixed;
    inset: 0;
    z-index: 939;
  }
  .google-auth-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.14);
    backdrop-filter: blur(10px);
  }
  .google-auth-modal {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(620px, calc(100vw - 34px));
    max-height: min(88vh, 860px);
    overflow: auto;
    background: var(--surface-elevated);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 24px;
  }
  .system-path-modal {
    width: min(820px, calc(100vw - 34px));
    padding: 24px;
  }
  .google-auth-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .google-auth-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-strong);
  }
  .google-auth-modal h3 {
    margin: 0;
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }
  .google-auth-sub {
    margin: 10px 0 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
  }
  .google-auth-feature-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
  }
  .google-auth-feature-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line) 82%);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface-raised) 92%);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
  }
  .google-auth-guide {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
  }
  .google-auth-guide-step {
    padding: 12px 14px;
    border-radius: 18px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }
  .google-auth-guide-step strong {
    color: var(--text);
    margin-right: 6px;
  }
  .system-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
    overflow: visible;
  }
  .system-pack-name-field {
    display: grid;
    gap: 7px;
    margin: 18px 0 12px;
  }
  .system-pack-name-field label {
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
  }
  .system-pack-name-field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-elevated);
    color: var(--text);
    font-size: 15px;
    font-weight: 750;
    outline: none;
  }
  .system-pack-name-field input:focus {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
  }
  .system-pack-name-help {
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
  }
  .system-pack-name-help.is-ready {
    color: var(--accent-strong);
  }
  .system-path-card {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 100%;
    text-align: left;
    padding: 20px 20px 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background:
      radial-gradient(circle at top right, rgba(37,99,235,0.10), transparent 32%),
      linear-gradient(180deg, var(--surface-elevated), var(--surface-raised));
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 14px 30px rgba(15,23,42,0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  }
  .system-path-card:disabled {
    cursor: not-allowed;
    opacity: .48;
    box-shadow: none;
    transform: none;
  }
  .system-path-card:hover,
  .system-path-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,0.26);
    box-shadow: 0 18px 36px rgba(37,99,235,0.12);
    outline: none;
  }
  .system-path-card:disabled:hover,
  .system-path-card:disabled:focus-visible {
    border-color: var(--line);
    box-shadow: none;
    transform: none;
  }
  .system-path-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
  }
  .system-path-card span:last-child {
    display: block;
    color: var(--muted);
    line-height: 1.55;
    font-size: 13px;
  }
  .system-path-card-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
  }
  .system-path-card[data-library-help]::after {
    content: attr(data-library-help);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    width: min(292px, 82vw);
    padding: 12px 13px;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line) 66%);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-elevated) 92%, var(--accent-soft) 8%);
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.55;
    text-align: left;
    white-space: pre-line;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 4;
  }
  .system-path-card[data-library-help]:hover::after,
  .system-path-card[data-library-help]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .google-signin-slot {
    min-height: 46px;
    margin-top: 14px;
  }
  .google-oauth-signin-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 15px 0 13px;
    border-radius: 999px;
    border: 1px solid #747775;
    background: #fff;
    color: #1f1f1f;
    font-family: Roboto, var(--font-ui, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
    cursor: pointer;
  }
  .google-oauth-signin-btn:hover {
    background: #f8fbff;
    border-color: color-mix(in srgb, var(--accent) 35%, #747775 65%);
  }
  .google-oauth-signin-btn:active {
    background: #f1f5ff;
  }
  .google-oauth-signin-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
    outline-offset: 3px;
  }
  .google-oauth-signin-btn:disabled,
  .google-oauth-signin-btn.disabled {
    cursor: wait;
    opacity: 0.68;
  }
  .google-oauth-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }
  .google-oauth-icon svg {
    display: block;
    width: 18px;
    height: 18px;
  }
  .google-auth-status,
  .drive-account-summary {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 16px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }
  .google-auth-status[hidden],
  .google-auth-status:empty {
    display: none !important;
  }
  .google-auth-status[data-tone="good"] {
    color: #047857;
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.18);
  }
  .google-auth-status[data-tone="warn"] {
    color: #9a6700;
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.18);
  }
  .google-auth-status[data-tone="bad"] {
    color: #b91c1c;
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.18);
  }
  .google-auth-status[data-busy="true"] {
    position: relative;
    padding: 14px 14px 20px 38px;
  }
  .google-auth-status[data-busy="true"]::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--accent) 26%, transparent);
    border-top-color: var(--accent);
    animation: sharedPackStatusSpin .8s linear infinite;
  }
  .google-auth-status[data-busy="true"]::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 3px;
    border-radius: 999px;
    background:
      linear-gradient(90deg, transparent 0%, var(--accent) 46%, transparent 92%),
      color-mix(in srgb, var(--accent) 15%, transparent);
    background-size: 45% 100%, 100% 100%;
    background-repeat: no-repeat;
    animation: googleProcessProgress 1.05s ease-in-out infinite;
  }
  .google-auth-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  body.study-profile-required .wrap {
    filter: saturate(0.98) opacity(0.92);
    pointer-events: none;
    user-select: none;
  }
  .study-profile-shell[hidden] {
    display: none !important;
  }
  .study-profile-shell {
    position: fixed;
    inset: 0;
    z-index: 938;
  }
  .study-profile-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.16);
    backdrop-filter: blur(10px);
  }
  .study-profile-modal {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100vw - 34px));
    max-height: min(90vh, 960px);
    overflow: auto;
    background: linear-gradient(180deg, var(--surface-elevated), var(--surface-raised));
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15,23,42,0.22);
    padding: 22px;
  }
  .study-profile-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .study-profile-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-strong);
  }
  .study-profile-modal h3 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }
  .study-profile-sub {
    margin: 10px 0 0;
    max-width: 700px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
  }
  .study-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 16px;
  }
  .study-profile-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-raised);
    padding: 16px;
  }
  .study-profile-card h4 {
    margin: 0 0 6px;
    font-size: 15px;
  }
  .study-profile-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }
  .study-profile-stack {
    display: grid;
    gap: 12px;
  }
  .study-profile-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
  }
  .study-profile-help {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
  }
  .study-profile-results {
    display: grid;
    gap: 8px;
    max-height: 290px;
    overflow: auto;
  }
  .study-profile-result {
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 16px;
    background: var(--surface-muted);
    padding: 11px 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
  }
  .study-profile-result:hover,
  .study-profile-result:focus-visible,
  .study-profile-result.active {
    border-color: rgba(37,99,235,0.34);
    background: var(--accent-soft);
    transform: translateY(-1px);
  }
  .study-profile-result-name {
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
  }
  .study-profile-result-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }
  .study-profile-result-url {
    display: inline-block;
    margin-top: 6px;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 700;
  }
  .study-profile-selected {
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.18);
    color: var(--good);
    font-size: 12px;
    line-height: 1.5;
  }
  .study-profile-selected strong {
    display: block;
    color: var(--good);
    font-size: 13px;
    margin-bottom: 2px;
  }
  .study-profile-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
  }
  .study-profile-status[data-tone="bad"] {
    color: #b91c1c;
  }
  .study-profile-status[data-tone="good"] {
    color: #047857;
  }
  .study-profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    flex-wrap: wrap;
  }
  .study-profile-actions-left,
  .study-profile-actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }
  .study-profile-fineprint {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
  }
  .app-prompt-card {
    width: min(560px, calc(100vw - 32px));
  }
  .app-prompt-body {
    padding: 18px 22px 22px;
    display: grid;
    gap: 14px;
  }
  .app-prompt-actions {
    justify-content: flex-end;
  }
  @media (max-width: 600px) and (pointer: coarse) {
    .system-path-card[data-library-help]::after,
    .system-path-card[data-library-help]:hover::after,
    .system-path-card[data-library-help]:focus-visible::after {
      content: none;
      display: none;
    }
  }
  @media (max-width: 860px) {
    .system-path-grid {
      grid-template-columns: 1fr;
    }
    .study-profile-grid {
      grid-template-columns: 1fr;
    }
    .app-prompt-actions {
      justify-content: stretch;
    }
    .app-prompt-actions .btn-secondary,
    .app-prompt-actions .btn-primary {
      flex: 1 1 0;
    }
  }

  @media (max-width: 720px) {
    .google-auth-shell,
    .study-profile-shell {
      overflow: hidden;
      background: var(--surface-elevated);
    }

    .google-auth-modal,
    .system-path-modal,
    .study-profile-modal {
      inset: 0;
      transform: none;
      width: 100vw;
      max-width: 100vw;
      height: 100vh;
      height: 100dvh;
      max-height: 100vh;
      max-height: 100dvh;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    .google-auth-top,
    .study-profile-top {
      gap: 12px;
      margin-bottom: 14px;
    }

    .google-auth-modal h3,
    .study-profile-modal h3 {
      font-size: clamp(22px, 6vw, 28px);
      letter-spacing: 0;
    }

    .google-auth-sub,
    .study-profile-sub {
      font-size: 14px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .system-pack-name-field,
    .system-path-grid,
    .study-profile-grid,
    .study-profile-stack {
      min-width: 0;
    }

    .system-path-card,
    .study-profile-card {
      border-radius: 16px;
      padding: 14px;
    }

    .system-path-card {
      min-height: 128px;
    }

    .study-profile-search-row {
      grid-template-columns: minmax(0, 1fr);
      align-items: stretch;
    }

    .study-profile-results {
      max-height: min(34dvh, 260px);
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    .google-auth-actions,
    .study-profile-actions,
    .study-profile-actions-right {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      align-items: stretch;
    }

    .google-auth-actions button,
    .study-profile-actions button,
    .study-profile-search-row button {
      width: 100%;
      min-height: 44px;
    }
  }

  html[data-theme="dark"] .consent-banner-scrim {
    background: transparent;
    opacity: 0;
  }
  html[data-theme="dark"] .consent-banner,
  html[data-theme="dark"] .google-auth-modal,
  html[data-theme="dark"] .study-profile-modal,
  html[data-theme="dark"] .study-profile-card,
  html[data-theme="dark"] .study-profile-result,
  html[data-theme="dark"] .system-path-card {
    background: linear-gradient(180deg, rgba(10,18,34,0.98), rgba(15,24,42,0.94));
    border-color: var(--card-border);
    box-shadow: 0 28px 70px rgba(2,6,23,0.48);
    color: var(--text);
  }
  @media (max-width: 720px) {
    html[data-theme="dark"] .google-auth-modal,
    html[data-theme="dark"] .study-profile-modal {
      background: var(--surface-elevated);
      border: 0;
      box-shadow: none;
    }
  }
  html[data-theme="dark"] .consent-banner {
    background: color-mix(in srgb, var(--surface-elevated, #111827) 92%, rgba(2,6,23,0.34));
    box-shadow: 0 22px 58px rgba(0,0,0,0.46);
  }
  html[data-theme="dark"] .consent-banner-icon {
    background: color-mix(in srgb, var(--accent-soft, #1d4ed8) 24%, rgba(15,24,42,0.9));
    color: var(--accent-strong);
  }
  html[data-theme="dark"] .consent-banner-kicker,
  html[data-theme="dark"] .google-auth-kicker,
  html[data-theme="dark"] .study-profile-kicker,
  html[data-theme="dark"] .system-path-card-kicker,
  html[data-theme="dark"] .study-profile-result-url {
    color: var(--accent-strong);
  }
  html[data-theme="dark"] .consent-banner-copy,
  html[data-theme="dark"] .consent-banner-points li,
  html[data-theme="dark"] .consent-banner-details,
  html[data-theme="dark"] .google-auth-sub,
  html[data-theme="dark"] .google-auth-guide-step,
  html[data-theme="dark"] .google-auth-status,
  html[data-theme="dark"] .drive-account-summary,
  html[data-theme="dark"] .study-profile-sub,
  html[data-theme="dark"] .study-profile-card p,
  html[data-theme="dark"] .system-path-card span:last-child {
    color: var(--muted);
  }
  html[data-theme="dark"] .consent-banner-points li,
  html[data-theme="dark"] .google-auth-guide-step,
  html[data-theme="dark"] .google-auth-status,
  html[data-theme="dark"] .drive-account-summary,
  html[data-theme="dark"] .study-profile-selected {
    background: var(--surface-raised);
    border-color: var(--line);
  }
  html[data-theme="dark"] .consent-banner-details {
    border-top-color: var(--line);
  }
  html[data-theme="dark"] .consent-detail-row {
    border-bottom-color: rgba(148,163,184,0.12);
  }
  html[data-theme="dark"] .google-auth-scrim,
  html[data-theme="dark"] .study-profile-scrim {
    background: rgba(2,6,23,0.36);
  }
  html[data-theme="dark"] .google-auth-status[data-tone="good"] {
    color: #86efac;
    background: rgba(22,163,74,0.14);
    border-color: rgba(34,197,94,0.18);
  }
  html[data-theme="dark"] .google-auth-status[data-tone="warn"] {
    color: #fde68a;
    background: rgba(245,158,11,0.16);
    border-color: rgba(245,158,11,0.22);
  }
  html[data-theme="dark"] .google-auth-status[data-tone="bad"] {
    color: #fecaca;
    background: rgba(239,68,68,0.14);
    border-color: rgba(239,68,68,0.22);
  }
  html[data-theme="dark"] .study-profile-result:hover,
  html[data-theme="dark"] .study-profile-result:focus-visible,
  html[data-theme="dark"] .study-profile-result.active {
    background: rgba(96,165,250,0.12);
    border-color: rgba(96,165,250,0.24);
  }
  html[data-theme="dark"] .study-profile-selected,
  html[data-theme="dark"] .study-profile-selected strong,
  html[data-theme="dark"] .study-profile-status[data-tone="good"] {
    color: #86efac;
  }
  html[data-theme="dark"] .study-profile-status[data-tone="bad"] {
    color: #fecaca;
  }
