/* Accred PWA mobile redesign v1. Loaded after the bundled styles. */
:root {
  --acc-bg: #f7f7f8;
  --acc-bg-elevated: #ffffff;
  --acc-surface: #ffffff;
  --acc-surface-soft: #f3f4f6;
  --acc-surface-hover: #eceef1;
  --acc-ink: #111214;
  --acc-ink-soft: #3f4248;
  --acc-muted: #6b7280;
  --acc-line: #e3e5e8;
  --acc-line-strong: #d4d8dd;
  --acc-accent: #10a37f;
  --acc-accent-dark: #0d7f65;
  --acc-accent-soft: #e8f6f1;
  --acc-red: #dc2626;
  --acc-red-soft: #fef2f2;
  --acc-amber: #a16207;
  --acc-amber-soft: #fffbeb;
  --acc-blue: #2563eb;
  --acc-blue-soft: #eff6ff;
  --acc-radius: 8px;
  --acc-sheet-radius: 18px;
  --acc-shadow: 0 1px 2px rgba(17, 18, 20, .06), 0 10px 28px rgba(17, 18, 20, .08);
  --acc-shadow-soft: 0 1px 2px rgba(17, 18, 20, .06);
  --acc-safe-bottom: env(safe-area-inset-bottom, 0px);
  --acc-safe-top: env(safe-area-inset-top, 0px);
}

html {
  background: var(--acc-bg);
}

body {
  color: var(--acc-ink);
  background: var(--acc-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(16, 163, 127, .34) !important;
  outline-offset: 2px;
}

@media (max-width: 760px), (hover: none) and (max-width: 900px) {
  :root {
    --pwa-bg: var(--acc-bg) !important;
    --pwa-bg-2: var(--acc-bg) !important;
    --pwa-card: var(--acc-surface) !important;
    --pwa-card-soft: var(--acc-surface-soft) !important;
    --pwa-line: var(--acc-line) !important;
    --pwa-line-strong: var(--acc-line-strong) !important;
    --pwa-text: var(--acc-ink) !important;
    --pwa-muted: var(--acc-muted) !important;
    --pwa-accent: var(--acc-accent) !important;
    --pwa-accent-2: var(--acc-accent) !important;
    --pwa-radius: var(--acc-radius) !important;
    --pwa-shadow: var(--acc-shadow-soft) !important;
    --med-bg: var(--acc-bg) !important;
    --med-card: var(--acc-surface) !important;
    --med-soft: var(--acc-surface-soft) !important;
    --med-line: var(--acc-line) !important;
    --med-text: var(--acc-ink) !important;
    --med-muted: var(--acc-muted) !important;
    --med-green: var(--acc-accent) !important;
    --med-green-dark: var(--acc-accent-dark) !important;
    --med-green-soft: var(--acc-accent-soft) !important;
    --med-radius: var(--acc-radius) !important;
    --med-shadow: var(--acc-shadow-soft) !important;
    --med-shadow-soft: var(--acc-shadow-soft) !important;
  }

  html,
  body,
  #root {
    min-height: 100%;
    background: var(--acc-bg) !important;
  }

  body:not(.runner-active) {
    color: var(--acc-ink) !important;
    background: linear-gradient(180deg, #ffffff 0, var(--acc-bg) 190px, var(--acc-bg) 100%) !important;
    overscroll-behavior-y: none;
  }

  body:not(.runner-active) h1,
  body:not(.runner-active) h2,
  body:not(.runner-active) h3,
  body:not(.runner-active) h4,
  body:not(.runner-active) strong,
  .runner-shell h1,
  .runner-shell h2,
  .runner-shell h3,
  .med-runner-page h1,
  .med-runner-page h2,
  .med-runner-page h3 {
    letter-spacing: 0 !important;
  }

  body:not(.runner-active) .app-shell {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    background: transparent !important;
    overflow-x: hidden;
  }

  body:not(.runner-active) .main-content {
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    padding: calc(14px + var(--acc-safe-top)) 14px calc(var(--pwa-tab-height, 76px) + 18px) !important;
  }

  body:not(.runner-active) .main-content:has(.phone-card-page) {
    max-width: none !important;
    padding: 0 !important;
  }

  body:not(.runner-active) .workspace-page,
  body:not(.runner-active) .page-grid,
  body:not(.runner-active) .med-extension-page,
  body:not(.runner-active) .med-intro-page,
  body:not(.runner-active) .med-submit-page {
    gap: 12px !important;
  }

  body:not(.runner-active) .workspace-head {
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface) !important;
    box-shadow: var(--acc-shadow-soft) !important;
  }

  body:not(.runner-active) .workspace-overline {
    color: var(--acc-accent-dark) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body:not(.runner-active) .workspace-head h2 {
    color: var(--acc-ink) !important;
    font-size: 24px !important;
    line-height: 1.12 !important;
  }

  body:not(.runner-active) .workspace-head p {
    color: var(--acc-muted) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body:not(.runner-active) .phone-tests-page > .workspace-head,
  body:not(.runner-active) .phone-tasks-page > .workspace-head,
  body:not(.runner-active) .phone-library-page > .workspace-head,
  body:not(.runner-active) .phone-profile-page > .workspace-head,
  body:not(.runner-active) .phone-test-list-page > .workspace-head {
    display: none !important;
  }

  body:not(.runner-active) .panel,
  body:not(.runner-active) .card,
  body:not(.runner-active) .block-card,
  body:not(.runner-active) .phone-flat-card,
  body:not(.runner-active) .data-row,
  body:not(.runner-active) .command-tile,
  body:not(.runner-active) .metric-cell,
  body:not(.runner-active) .question-search-card,
  body:not(.runner-active) .item-btn,
  body:not(.runner-active) .item-row,
  body:not(.runner-active) .list-card,
  body:not(.runner-active) .news-item,
  body:not(.runner-active) .history-link,
  body:not(.runner-active) .med-group-row,
  body:not(.runner-active) .med-test-card,
  body:not(.runner-active) .med-block-button {
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface) !important;
    box-shadow: var(--acc-shadow-soft) !important;
  }

  body:not(.runner-active) .panel {
    overflow: hidden;
  }

  body:not(.runner-active) .panel-head,
  body:not(.runner-active) .block-head {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px 12px !important;
    border-bottom: 1px solid var(--acc-line) !important;
    background: var(--acc-surface) !important;
  }

  body:not(.runner-active) .panel-head h3,
  body:not(.runner-active) .block-head h3 {
    color: var(--acc-ink) !important;
    font-size: 17px !important;
    line-height: 1.22 !important;
  }

  body:not(.runner-active) .panel-head p,
  body:not(.runner-active) .block-head p,
  body:not(.runner-active) .muted {
    color: var(--acc-muted) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  body:not(.runner-active) .panel-body,
  body:not(.runner-active) .block-body {
    display: grid;
    gap: 9px !important;
    padding: 12px !important;
  }

  body:not(.runner-active) .btn,
  body:not(.runner-active) button.btn,
  body:not(.runner-active) a.btn {
    min-height: 44px;
    border-radius: 999px !important;
    border-color: var(--acc-ink) !important;
    background: var(--acc-ink) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none !important;
  }

  body:not(.runner-active) .btn:hover {
    background: #232528 !important;
    border-color: #232528 !important;
  }

  body:not(.runner-active) .btn-secondary,
  body:not(.runner-active) .btn-ghost,
  body:not(.runner-active) .icon-btn {
    border-color: var(--acc-line) !important;
    background: var(--acc-surface) !important;
    color: var(--acc-ink) !important;
  }

  body:not(.runner-active) .btn-danger {
    border-color: var(--acc-red) !important;
    background: var(--acc-red) !important;
    color: #fff !important;
  }

  body:not(.runner-active) .actions-row,
  body:not(.runner-active) .workspace-actions,
  body:not(.runner-active) .row-actions {
    gap: 8px !important;
  }

  body:not(.runner-active) .search-box {
    width: 100%;
    min-width: 0 !important;
    min-height: 46px !important;
    border: 1px solid var(--acc-line) !important;
    border-radius: 999px !important;
    background: var(--acc-surface) !important;
    color: var(--acc-muted) !important;
    box-shadow: none !important;
  }

  body:not(.runner-active) .search-box input,
  body:not(.runner-active) .search-input,
  body:not(.runner-active) input,
  body:not(.runner-active) select,
  body:not(.runner-active) textarea {
    color: var(--acc-ink) !important;
  }

  body:not(.runner-active) .search-input,
  body:not(.runner-active) .auth-form input,
  body:not(.runner-active) .input-answer input,
  body:not(.runner-active) .med-form input,
  body:not(.runner-active) .med-form select,
  body:not(.runner-active) .med-form textarea,
  body:not(.runner-active) .med-register-field select,
  body:not(.runner-active) .phone-profile-page select {
    min-height: 48px !important;
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface) !important;
    box-shadow: none !important;
  }

  body:not(.runner-active) .search-box:focus-within,
  body:not(.runner-active) .search-input:focus,
  body:not(.runner-active) .auth-form input:focus,
  body:not(.runner-active) .input-answer input:focus,
  body:not(.runner-active) .med-form input:focus,
  body:not(.runner-active) .med-form select:focus,
  body:not(.runner-active) .med-form textarea:focus {
    border-color: var(--acc-accent) !important;
    outline: 2px solid rgba(16, 163, 127, .2) !important;
  }

  body:not(.runner-active) .phone-app-header {
    color: var(--acc-ink) !important;
  }

  body:not(.runner-active) .phone-home-header {
    min-height: 48px;
    margin: -2px 0 2px !important;
    padding: 0 2px 8px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body:not(.runner-active) .phone-home-header *,
  body:not(.runner-active) .phone-home-brand * {
    color: var(--acc-ink) !important;
  }

  body:not(.runner-active) .phone-home-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  body:not(.runner-active) .brand-mark,
  body:not(.runner-active) .brand-mark--lime {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: var(--acc-ink) !important;
    color: #fff !important;
    font-size: 16px !important;
    box-shadow: none !important;
  }

  body:not(.runner-active) .phone-home-brand strong {
    font-size: 20px !important;
    font-weight: 850 !important;
    text-transform: capitalize;
  }

  body:not(.runner-active) .phone-home-header button,
  body:not(.runner-active) .phone-back-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid var(--acc-line) !important;
    border-radius: 999px !important;
    background: var(--acc-surface) !important;
    color: var(--acc-ink) !important;
    box-shadow: var(--acc-shadow-soft) !important;
  }

  body:not(.runner-active) .phone-list-header {
    position: sticky !important;
    top: 0;
    z-index: 40;
    min-height: calc(58px + var(--acc-safe-top));
    margin: calc(-14px - var(--acc-safe-top)) -14px 10px !important;
    padding: calc(10px + var(--acc-safe-top)) 14px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 0 !important;
    border-bottom: 1px solid rgba(227, 229, 232, .82) !important;
    border-radius: 0 !important;
    background: rgba(247, 247, 248, .88) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body:not(.runner-active) .phone-profile-header {
    min-height: 42px;
    margin: 0 !important;
    padding: 0 2px 2px !important;
    display: flex !important;
    align-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body:not(.runner-active) .phone-profile-header strong {
    color: var(--acc-ink) !important;
    font-size: 28px !important;
    line-height: 1.08 !important;
  }

  body:not(.runner-active) .phone-profile-greeting {
    margin: -2px 2px 2px !important;
    color: var(--acc-muted) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  body:not(.runner-active) .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body:not(.runner-active) .metric-cell {
    min-height: 82px !important;
    align-content: center !important;
    gap: 6px !important;
    padding: 13px !important;
    background: var(--acc-surface) !important;
  }

  body:not(.runner-active) .metric-cell.green,
  body:not(.runner-active) .metric-cell.blue,
  body:not(.runner-active) .metric-cell.amber,
  body:not(.runner-active) .metric-cell.red {
    background: var(--acc-surface) !important;
  }

  body:not(.runner-active) .metric-cell span {
    color: var(--acc-muted) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body:not(.runner-active) .metric-cell strong {
    color: var(--acc-ink) !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  body:not(.runner-active) .phone-stat-row {
    display: none !important;
  }

  body:not(.runner-active) .workbench-grid,
  body:not(.runner-active) .split-grid,
  body:not(.runner-active) .answer-review-grid,
  body:not(.runner-active) .result-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body:not(.runner-active) .phone-home-page .command-grid,
  body:not(.runner-active) .command-grid,
  body:not(.runner-active) .med-command-grid,
  body:not(.runner-active) .med-block-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body:not(.runner-active) .command-tile {
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-content: center !important;
    align-items: center !important;
    gap: 3px 11px !important;
    padding: 13px !important;
    color: var(--acc-ink) !important;
  }

  body:not(.runner-active) .command-tile.primary {
    border-color: var(--acc-ink) !important;
    background: var(--acc-ink) !important;
    color: #fff !important;
  }

  body:not(.runner-active) .command-tile.primary * {
    color: #fff !important;
  }

  body:not(.runner-active) .command-tile .tile-index {
    display: none !important;
  }

  body:not(.runner-active) .command-tile .tile-icon,
  body:not(.runner-active) .row-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: var(--acc-radius) !important;
    display: grid !important;
    place-items: center !important;
    background: var(--acc-surface-soft) !important;
    color: var(--acc-ink) !important;
  }

  body:not(.runner-active) .command-tile.primary .tile-icon {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
  }

  body:not(.runner-active) .command-tile strong,
  body:not(.runner-active) .command-tile small {
    grid-column: 2 !important;
  }

  body:not(.runner-active) .command-tile strong {
    color: inherit !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
  }

  body:not(.runner-active) .command-tile small {
    color: inherit !important;
    opacity: .68 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body:not(.runner-active) .data-list,
  body:not(.runner-active) .news-list,
  body:not(.runner-active) .history-list,
  body:not(.runner-active) .stack-list,
  body:not(.runner-active) .question-list,
  body:not(.runner-active) .wrong-list {
    gap: 8px !important;
  }

  body:not(.runner-active) .data-row,
  body:not(.runner-active) .data-row:has(>.row-icon) {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 13px !important;
  }

  body:not(.runner-active) .data-row:has(>.row-icon) {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  body:not(.runner-active) .data-main {
    min-width: 0;
    gap: 4px !important;
    padding: 0 !important;
  }

  body:not(.runner-active) .data-main span {
    color: var(--acc-accent-dark) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body:not(.runner-active) .data-main strong {
    color: var(--acc-ink) !important;
    font-size: 16px !important;
    line-height: 1.28 !important;
  }

  body:not(.runner-active) .data-main p {
    color: var(--acc-muted) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  body:not(.runner-active) .row-facts {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
    color: var(--acc-muted) !important;
  }

  body:not(.runner-active) .row-facts span {
    color: var(--acc-ink) !important;
    font-size: 18px !important;
  }

  body:not(.runner-active) .row-facts small {
    color: var(--acc-muted) !important;
    font-size: 12px !important;
  }

  body:not(.runner-active) .row-actions {
    grid-column: 1 / -1;
    display: grid !important;
    justify-content: stretch !important;
  }

  body:not(.runner-active) .row-actions .btn {
    width: 100%;
  }

  body:not(.runner-active) .status-pill {
    min-height: 28px;
    width: fit-content;
    border: 1px solid var(--acc-line) !important;
    border-radius: 999px !important;
    background: var(--acc-surface-soft) !important;
    color: var(--acc-muted) !important;
    font-size: 12px;
    font-weight: 800;
  }

  body:not(.runner-active) .status-pill.green {
    border-color: rgba(16, 163, 127, .22) !important;
    background: var(--acc-accent-soft) !important;
    color: var(--acc-accent-dark) !important;
  }

  body:not(.runner-active) .status-pill.blue {
    border-color: #bfdbfe !important;
    background: var(--acc-blue-soft) !important;
    color: var(--acc-blue) !important;
  }

  body:not(.runner-active) .status-pill.amber {
    border-color: #fde68a !important;
    background: var(--acc-amber-soft) !important;
    color: var(--acc-amber) !important;
  }

  body:not(.runner-active) .status-pill.red {
    border-color: #fecaca !important;
    background: var(--acc-red-soft) !important;
    color: var(--acc-red) !important;
  }

  body:not(.runner-active) .progress-line,
  body:not(.runner-active) .progress,
  body:not(.runner-active) .row-progress {
    height: 6px !important;
    border-radius: 999px !important;
    background: #eceef1 !important;
  }

  body:not(.runner-active) .progress-line i,
  body:not(.runner-active) .progress-fill,
  body:not(.runner-active) .row-progress i {
    background: var(--acc-accent) !important;
  }

  body:not(.runner-active) .library-icon.article {
    background: var(--acc-blue-soft) !important;
    color: var(--acc-blue) !important;
  }

  body:not(.runner-active) .library-icon.drug {
    background: var(--acc-red-soft) !important;
    color: var(--acc-red) !important;
  }

  body:not(.runner-active) .empty-state,
  body:not(.runner-active) .wrong-empty {
    border: 1px dashed var(--acc-line-strong) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface) !important;
    color: var(--acc-muted) !important;
    box-shadow: none !important;
  }

  body:not(.runner-active) .segmented-links,
  body:not(.runner-active) .med-segmented {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px !important;
    padding: 4px !important;
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface-soft) !important;
  }

  body:not(.runner-active) .segment,
  body:not(.runner-active) .med-segmented .segment {
    justify-content: center;
    min-height: 38px;
    border-radius: 6px !important;
    color: var(--acc-muted) !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 800;
  }

  body:not(.runner-active) .segment.active,
  body:not(.runner-active) .med-segmented .segment.active {
    color: var(--acc-ink) !important;
    background: var(--acc-surface) !important;
    box-shadow: var(--acc-shadow-soft) !important;
  }

  body:not(.runner-active) .phone-profile-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  body:not(.runner-active) .phone-profile-actions .btn,
  body:not(.runner-active) .profile-account-panel .btn,
  body:not(.runner-active) .profile-specialties-panel .btn,
  body:not(.runner-active) .profile-subscription-panel .btn {
    min-width: 0;
    width: 100%;
  }

  body:not(.runner-active) .profile-subscription-panel .panel-body,
  body:not(.runner-active) .profile-account-panel .panel-body,
  body:not(.runner-active) .profile-specialties-panel .panel-body,
  body:not(.runner-active) .profile-delete-panel .panel-body {
    gap: 8px !important;
  }

  body:not(.runner-active) .profile-subscription-panel {
    border-color: rgba(16, 163, 127, .32) !important;
  }

  body:not(.runner-active) .profile-subscription-panel .panel-head {
    background: linear-gradient(180deg, #fff, #f9fffd) !important;
  }

  body:not(.runner-active) .data-row.specialty-row {
    grid-template-columns: 1fr !important;
  }

  body:not(.runner-active) .test-list-panel .panel-body,
  body:not(.runner-active) .tasks-list-panel .panel-body,
  body:not(.runner-active) .library-list-panel .panel-body {
    padding-top: 10px !important;
  }

  body:not(.runner-active) .tabbar {
    position: fixed !important;
    z-index: 90;
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, var(--acc-safe-bottom)) !important;
    width: auto !important;
    height: 66px !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 2px !important;
    padding: 6px !important;
    border: 1px solid rgba(227, 229, 232, .94) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 12px 36px rgba(17, 18, 20, .14) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body:not(.runner-active) .tab {
    min-width: 0 !important;
    min-height: 52px !important;
    display: grid !important;
    place-items: center;
    align-content: center;
    gap: 2px !important;
    padding: 4px 2px !important;
    border-radius: 12px !important;
    color: var(--acc-muted) !important;
    background: transparent !important;
    font-size: 9px !important;
    font-weight: 750 !important;
    line-height: 1.08 !important;
    text-decoration: none !important;
  }

  body:not(.runner-active) .tab svg {
    width: 19px !important;
    height: 19px !important;
    stroke-width: 2.1 !important;
  }

  body:not(.runner-active) .tab span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.runner-active) .tab.active {
    color: #fff !important;
    background: var(--acc-ink) !important;
  }

  body:not(.runner-active) .auth-shell {
    min-height: 100dvh;
    align-items: start !important;
    padding: calc(18px + var(--acc-safe-top)) 14px calc(18px + var(--acc-safe-bottom)) !important;
    background: linear-gradient(180deg, #fff 0, var(--acc-bg) 220px) !important;
  }

  body:not(.runner-active) .auth-stage {
    width: min(420px, 100%) !important;
    min-height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-sheet-radius) !important;
    background: var(--acc-surface) !important;
    box-shadow: var(--acc-shadow) !important;
    overflow: hidden !important;
  }

  body:not(.runner-active) .auth-brand {
    min-height: 106px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px !important;
    background: var(--acc-ink) !important;
    color: #fff !important;
  }

  body:not(.runner-active) .auth-brand .brand-mark {
    background: #fff !important;
    color: var(--acc-ink) !important;
  }

  body:not(.runner-active) .auth-brand strong,
  body:not(.runner-active) .auth-brand span {
    color: #fff !important;
  }

  body:not(.runner-active) .auth-card {
    width: 100% !important;
    padding: 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body:not(.runner-active) .auth-form {
    gap: 14px !important;
  }

  body:not(.runner-active) .auth-form h2 {
    color: var(--acc-ink) !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  body:not(.runner-active) .auth-form label {
    color: var(--acc-ink) !important;
    gap: 7px !important;
    font-size: 13px;
    font-weight: 800 !important;
  }

  body:not(.runner-active) .auth-form .btn {
    width: 100%;
    min-height: 50px;
  }

  body:not(.runner-active) .auth-links,
  body:not(.runner-active) .auth-legal-links {
    gap: 10px !important;
    color: var(--acc-accent-dark) !important;
  }

  body:not(.runner-active) .pwa-install-card {
    width: min(420px, 100%) !important;
    margin: 12px auto 0 !important;
    padding: 14px !important;
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface) !important;
    box-shadow: var(--acc-shadow-soft) !important;
  }
}

@media (max-width: 760px), (hover: none) and (max-width: 900px) {
  body.runner-active,
  body.runner-active #root,
  body.runner-active .runner-shell,
  .runner-shell,
  .main-content:has(.med-runner-page),
  .med-runner-page {
    background: var(--acc-bg) !important;
    color: var(--acc-ink) !important;
  }

  .runner-header,
  .runner-head,
  .med-runner-page > .runner-head {
    border-bottom: 1px solid var(--acc-line) !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .runner-back-btn,
  .runner-icon-btn,
  .phone-run-favorite,
  .phone-run-related,
  .runner-head .btn-secondary,
  .med-heart-btn,
  .med-feedback-btn,
  .med-runner-page > .runner-head > .btn-secondary:first-child {
    border: 1px solid var(--acc-line) !important;
    border-radius: 999px !important;
    background: var(--acc-surface) !important;
    color: var(--acc-ink) !important;
    box-shadow: none !important;
  }

  .runner-q-card,
  .question-card,
  .question-item.full,
  .med-runner-page .question-title-row,
  .med-runner-page .task-cond-body,
  .med-runner-page .med-input-block,
  .runner-cond,
  .task-condition-panel,
  .result-card,
  .runner-card {
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface) !important;
    box-shadow: var(--acc-shadow-soft) !important;
  }

  .med-runner-page .question-card,
  .med-runner-page > .runner-card,
  .med-runner-page > .panel.runner-card:not(.med-result-modal) {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .runner-option,
  .option-btn,
  .option-row,
  .med-runner-page .option-btn {
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface) !important;
    color: var(--acc-ink) !important;
    box-shadow: var(--acc-shadow-soft) !important;
  }

  .runner-option.selected,
  .option-btn.selected,
  .med-runner-page .option-btn.selected {
    border-color: var(--acc-ink) !important;
    background: #fbfbfc !important;
    box-shadow: inset 0 0 0 1px var(--acc-ink) !important;
  }

  .runner-option.correct,
  .option-btn.correct,
  .option-row.correct,
  .med-runner-page .option-btn.correct {
    border-color: var(--acc-accent) !important;
    background: var(--acc-accent-soft) !important;
    box-shadow: none !important;
  }

  .runner-option.wrong,
  .option-btn.wrong,
  .option-row.wrong,
  .med-runner-page .option-btn.wrong {
    border-color: var(--acc-red) !important;
    background: var(--acc-red-soft) !important;
    box-shadow: none !important;
  }

  .med-runner-page .option-label {
    border-color: var(--acc-line) !important;
    background: var(--acc-surface-soft) !important;
    color: var(--acc-ink) !important;
  }

  .med-runner-page .option-btn.correct .option-label {
    border-color: var(--acc-accent) !important;
    background: var(--acc-accent) !important;
    color: #fff !important;
  }

  .med-runner-page .option-btn.wrong .option-label {
    border-color: var(--acc-red) !important;
    background: var(--acc-red) !important;
    color: #fff !important;
  }

  .option-explanation,
  .med-runner-page .option-explanation,
  .med-runner-page .explanation {
    border: 1px solid var(--acc-line) !important;
    border-left: 3px solid var(--acc-accent) !important;
    border-radius: var(--acc-radius) !important;
    background: var(--acc-surface) !important;
    color: var(--acc-muted) !important;
    box-shadow: none !important;
  }

  .med-runner-actions,
  .runner-actions {
    background: linear-gradient(180deg, rgba(247, 247, 248, 0), rgba(247, 247, 248, .96) 36%, var(--acc-bg) 100%) !important;
  }

  .med-runner-actions .btn,
  .runner-actions .btn {
    border-color: var(--acc-ink) !important;
    background: var(--acc-ink) !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  .med-runner-actions .btn-secondary,
  .runner-actions .btn-secondary {
    border-color: var(--acc-line) !important;
    background: var(--acc-surface) !important;
    color: var(--acc-ink) !important;
  }

  .med-modal-backdrop,
  .overlay,
  [class*="modal-backdrop"] {
    background: rgba(17, 18, 20, .52) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .modal,
  .med-result-modal,
  [role="dialog"]:not(.accred-premium-modal):not(.accred-premium-sheet) {
    border: 1px solid var(--acc-line) !important;
    border-radius: var(--acc-sheet-radius) var(--acc-sheet-radius) 0 0 !important;
    background: var(--acc-surface) !important;
    box-shadow: 0 -18px 46px rgba(17, 18, 20, .22) !important;
  }

  .med-result-modal h2 {
    color: var(--acc-ink) !important;
    font-size: 34px !important;
    letter-spacing: 0 !important;
  }

  .med-result-modal .result-overline {
    color: var(--acc-accent-dark) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .med-result-modal .med-review-item {
    border-radius: var(--acc-radius) !important;
    border-color: var(--acc-line) !important;
    box-shadow: var(--acc-shadow-soft) !important;
  }
}

.accred-premium-fab {
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 999px !important;
  background: var(--acc-ink) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(17, 18, 20, .24) !important;
}

.accred-premium-fab small {
  background: var(--acc-accent-soft) !important;
  color: var(--acc-accent-dark) !important;
}

.accred-premium-modal {
  background: rgba(17, 18, 20, .54) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.accred-premium-sheet {
  border: 1px solid var(--acc-line) !important;
  border-radius: var(--acc-sheet-radius) var(--acc-sheet-radius) 0 0 !important;
  background: var(--acc-surface) !important;
  box-shadow: 0 -18px 50px rgba(17, 18, 20, .24) !important;
}

.accred-premium-grip {
  background: var(--acc-line-strong) !important;
}

.accred-premium-kicker {
  color: var(--acc-accent-dark) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.accred-premium-head h2 {
  color: var(--acc-ink) !important;
  font-size: 25px !important;
  letter-spacing: 0 !important;
}

.accred-premium-head p {
  color: var(--acc-muted) !important;
}

.accred-premium-close {
  border: 1px solid var(--acc-line) !important;
  background: var(--acc-surface-soft) !important;
  color: var(--acc-ink) !important;
}

.accred-premium-benefit,
.accred-premium-plan,
.accred-premium-error {
  border-radius: var(--acc-radius) !important;
  box-shadow: none !important;
}

.accred-premium-benefit {
  border-color: var(--acc-line) !important;
  background: var(--acc-surface) !important;
}

.accred-premium-benefit i {
  border-radius: 999px !important;
  background: var(--acc-ink) !important;
  color: #fff !important;
}

.accred-premium-benefit strong,
.accred-premium-plan-title strong,
.accred-premium-price strong {
  color: var(--acc-ink) !important;
}

.accred-premium-benefit span,
.accred-premium-plan-title span,
.accred-premium-plan-note {
  color: var(--acc-muted) !important;
}

.accred-premium-plan {
  border-color: var(--acc-line) !important;
  background: var(--acc-surface) !important;
}

.accred-premium-plan.is-selected {
  border-color: var(--acc-ink) !important;
  background: #fbfbfc !important;
  box-shadow: inset 0 0 0 1px var(--acc-ink) !important;
}

.accred-premium-badge {
  background: var(--acc-accent-soft) !important;
  color: var(--acc-accent-dark) !important;
}

.accred-premium-foot {
  border-top: 1px solid var(--acc-line) !important;
  background: rgba(255, 255, 255, .96) !important;
}

.accred-premium-pay {
  border-color: var(--acc-ink) !important;
  background: var(--acc-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.accred-premium-secondary {
  border-color: var(--acc-line) !important;
  background: var(--acc-surface) !important;
  color: var(--acc-ink) !important;
}

.accred-premium-toast {
  border-color: rgba(16, 163, 127, .24) !important;
  border-radius: var(--acc-radius) !important;
  background: var(--acc-accent-soft) !important;
  color: var(--acc-accent-dark) !important;
  box-shadow: var(--acc-shadow) !important;
}

@media (max-width: 380px) {
  body:not(.runner-active) .main-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body:not(.runner-active) .tabbar {
    left: 6px !important;
    right: 6px !important;
    gap: 1px !important;
    padding: 5px !important;
  }

  body:not(.runner-active) .tab {
    font-size: 8.5px !important;
  }

  body:not(.runner-active) .tab svg {
    width: 18px !important;
    height: 18px !important;
  }

  body:not(.runner-active) .phone-profile-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px), (hover: none) and (max-width: 900px) {
  body:not(.runner-active) .phone-home-header .brand-mark,
  body:not(.runner-active) .phone-home-brand .brand-mark {
    color: #fff !important;
  }

  body:not(.runner-active) .auth-brand .brand-mark {
    color: var(--acc-ink) !important;
  }

  body:not(.runner-active) .tasks-list-panel > .panel-head .search-box,
  body:not(.runner-active) .library-list-panel > .panel-head .search-box,
  body:not(.runner-active) .test-list-panel > .panel-head .search-box {
    display: none !important;
  }

  body:not(.runner-active) .tasks-list-panel > .panel-head,
  body:not(.runner-active) .library-list-panel > .panel-head,
  body:not(.runner-active) .test-list-panel > .panel-head {
    display: block !important;
  }

  body:not(.runner-active) .data-row::before,
  body:not(.runner-active) .phone-flat-card::before,
  body:not(.runner-active) .group-row::before,
  body:not(.runner-active) .specialty-row::before,
  body:not(.runner-active) .med-group-row::before,
  body:not(.runner-active) .med-block-button::before {
    content: none !important;
    display: none !important;
  }

  body:not(.runner-active) .data-row:has(> .row-facts):not(:has(> .row-actions)):not(:has(> .row-icon)) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  body:not(.runner-active) .data-row:has(> .row-icon):has(> .row-facts):not(:has(> .row-actions)) {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  body:not(.runner-active) .data-row > .row-facts {
    position: static !important;
    grid-column: auto !important;
    width: fit-content !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 30px !important;
    padding: 4px 10px !important;
    border: 1px solid var(--acc-line) !important;
    border-radius: 999px !important;
    background: var(--acc-surface-soft) !important;
  }

  body:not(.runner-active) .data-row > .row-facts span {
    font-size: 15px !important;
  }

  body:not(.runner-active) .data-row > .row-facts small {
    display: none !important;
  }

  body:not(.runner-active) .tasks-list-panel .row-actions .btn,
  body:not(.runner-active) .library-list-panel .row-actions .btn,
  body:not(.runner-active) .test-list-panel .row-actions .btn,
  body:not(.runner-active) .data-row .row-actions button,
  body:not(.runner-active) .data-row button:not(.data-main),
  body:not(.runner-active) .load-more-row .btn {
    border-color: var(--acc-ink) !important;
    background: var(--acc-ink) !important;
    color: #fff !important;
  }

  body:not(.runner-active) .brand-mark {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #fff !important;
  }

  body:not(.runner-active) .brand-mark::after {
    content: none !important;
    display: none !important;
  }

  body:not(.runner-active) .auth-brand .brand-mark {
    color: var(--acc-ink) !important;
  }
}
