:root {
        color-scheme: dark;
        --page-bg: #000000;
        --panel-bg: #111214;
        --panel-soft: #111214;
        --panel-strong: #0b5176;
        --border: rgba(255, 255, 255, 0.08);
        --card: var(--panel-bg);
        --accent: #019fff;
        --accent-strong: #019fff;
        --accent-soft: rgba(1, 159, 255, 0.18);
        --danger: #ff6b6b;
        --success: #4ce3b0;
        --text-primary: #f5fbff;
        --text-secondary: rgba(245, 251, 255, 0.72);
        --text-muted: rgba(245, 251, 255, 0.55);
        --radius-xl: 28px;
        --radius-lg: 22px;
        --radius-md: 16px;
        --radius-sm: 12px;
        --shadow-soft: 0 18px 36px rgba(8, 15, 31, 0.28);
      }

      *,
      *::before,
      *::after {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        padding: 0;
      }

      body {
        font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
        background: var(--page-bg);
        color: var(--text-primary);
        line-height: 1.6;
        min-height: 100vh;
      }

      img {
        display: block;
        max-width: 100%;
      }

      a {
        color: var(--accent);
        text-decoration: none;
        transition: color 0.2s ease, opacity 0.2s ease;
      }

      a:hover {
        color: var(--accent-strong);
      }

      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p,
      ul,
      ol,
      dl {
        margin: 0;
      }

      button,
      input,
      select,
      textarea {
        font: inherit;
        color: inherit;
        background: none;
      }

      button {
        border: none;
        border-radius: 999px;
        padding: 0.65rem 1.55rem;
        background: var(--accent);
        color: #012134;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s ease, filter 0.2s ease;
        box-shadow: 0 12px 26px rgba(1, 159, 255, 0.3);
      }

button.session-range-button,
.session-range-button,
#btnToggleStats {
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 0.6rem 1.3rem;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

:root[data-theme="light"] button.session-range-button,
:root[data-theme="light"] .session-range-button,
:root[data-theme="light"] #btnToggleStats {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.08);
  color: var(--text-primary);
}

.session-range-button,
#btnToggleStats {
  font-weight: 600;
}

.session-range-button:hover,
#btnToggleStats:hover {
  filter: brightness(1.05);
}

.session-range-button.is-active,
.session-range-button[aria-pressed="true"],
#btnToggleStats[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(1, 159, 255, 0.18), var(--shadow-soft);
}

.session-range-button:disabled,
#btnToggleStats:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

      button:hover {
        transform: translateY(-1px);
        filter: brightness(1.08);
      }

      button:disabled {
        opacity: 0.6;
        cursor: wait;
      }

      button.secondary {
        background: transparent;
        border: 1px solid var(--accent);
        color: var(--text-primary);
        box-shadow: none;
      }

      button.secondary:hover {
        background: rgba(1, 159, 255, 0.15);
      }

      input,
      select,
      textarea {
        width: 100%;
        border: 1px solid var(--border);
        background: rgba(3, 15, 25, 0.65);
        border-radius: var(--radius-sm);
        padding: 0.7rem 0.9rem;
        color: var(--text-primary);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
      }

      input:focus,
      select:focus,
      textarea:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(1, 159, 255, 0.25);
      }

      label {
        font-size: 0.9rem;
        color: var(--text-secondary);
        display: block;
        margin-bottom: 0.4rem;
      }

      .hidden {
        display: none !important;
      }

      .profile-page {
        background: var(--page-bg);
      }

      .profile-layout {
        display: grid;
        grid-template-columns: minmax(260px, 320px) 1fr;
        grid-template-rows: auto 1fr;
        gap: 28px;
        padding: 40px 56px;
        min-height: 100vh;
      }

      .profile-sidebar {
        grid-row: 1 / span 2;
        background: var(--panel-bg);
        border-radius: var(--radius-xl);
        padding: 32px 28px;
        display: flex;
        flex-direction: column;
        gap: 32px;
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.04);
      }

      .sidebar-top {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: center;
        text-align: center;
      }

      .sidebar-brand img {
        width: 136px;
        height: auto;
      }

      .sidebar-user-meta {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .sidebar-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--text-muted);
      }

      .sidebar-user-meta h2 {
        font-size: 1.4rem;
        font-weight: 600;
      }

      .sidebar-user-meta p {
        font-size: 0.95rem;
        color: var(--text-secondary);
      }

      .profile-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .profile-nav-link {
        display: block;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-md);
        color: var(--text-primary);
        background: transparent;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        font-weight: 500;
      }

      .profile-nav-link:hover,
      .profile-nav-link:focus-visible {
        background: rgba(255, 255, 255, 0.08);
        outline: none;
        transform: translateX(4px);
      }

      .profile-nav-link.is-active {
        background: rgba(1, 159, 255, 0.2);
        color: var(--accent-strong);
        box-shadow: inset 0 0 0 1px rgba(1, 159, 255, 0.35);
      }

      .sidebar-actions {
        margin: 32px 0 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .profile-nav-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem 1.2rem;
        border-radius: var(--radius-lg);
        border: 1px solid transparent;
        background: var(--accent);
        color: #ffffff;
        font-weight: 600;
        transition: transform 0.2s ease, filter 0.2s ease;
        box-shadow: 0 10px 22px rgba(1, 159, 255, 0.28);
      }

      .profile-nav-button:hover,
      .profile-nav-button:focus-visible {
        transform: translateY(-1px);
        filter: brightness(1.04);
        outline: none;
      }

      .profile-nav-button:active {
        transform: translateY(0);
        filter: brightness(0.96);
      }

      .profile-nav-button--secondary {
        background: transparent;
        border-color: rgba(1, 159, 255, 0.3);
        color: var(--accent-strong);
        box-shadow: none;
      }

      .profile-nav-button--secondary:hover,
      .profile-nav-button--secondary:focus-visible {
        background: rgba(1, 159, 255, 0.12);
      }

      .sidebar-support {
        margin-top: auto;
        padding: 20px 22px;
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.06);
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 0.95rem;
      }

      .sidebar-support h3 {
        font-size: 1.05rem;
      }

      .profile-main {
        display: grid;
        grid-template-rows: auto 1fr;
        gap: 28px;
        min-height: 0;
      }

      .profile-header {
        display: flex;
        gap: 32px;
        justify-content: space-between;
        align-items: stretch;
        background: var(--panel-bg);
        border-radius: var(--radius-xl);
        padding: 32px 36px;
        border: 1px solid rgba(255, 255, 255, 0.04);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
      }

      .profile-header-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
      }

      .profile-header-text h1 {
        font-size: 2.1rem;
        letter-spacing: -0.02em;
      }

      .profile-header-text p {
        color: var(--text-secondary);
        max-width: 520px;
      }

      .profile-header-meta {
        display: flex;
        gap: 28px;
        align-items: center;
      }

      .profile-header-details {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .profile-header-name {
        font-size: 1.45rem;
        font-weight: 600;
      }

      .profile-details-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 14px 28px;
      }

      .profile-details-grid div {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .profile-details-grid dt {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--text-muted);
      }

      .profile-details-grid dd {
        font-weight: 600;
        margin: 0;
      }

      .profile-header-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }

      .profile-avatar {
        width: 104px;
        height: 104px;
        border-radius: 50%;
        overflow: hidden;
        position: relative;
        background: rgba(255, 255, 255, 0.05);
        border: 3px solid rgba(1, 159, 255, 0.4);
        display: grid;
        place-items: center;
      }

      .profile-avatar.large {
        width: 132px;
        height: 132px;
        border-width: 4px;
      }

      .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .avatar-fallback {
        font-size: 2rem;
        font-weight: 600;
        color: var(--text-secondary);
      }

      .profile-body {
        background: var(--panel-soft);
        border-radius: var(--radius-xl);
        padding: 32px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
          0 18px 48px rgba(0, 0, 0, 0.38);
        min-height: 0;
      }

      .profile-panels {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        display: grid;
        gap: 24px;
        padding-right: 8px;
      }

      .profile-panels::-webkit-scrollbar {
        width: 10px;
      }

      .profile-panels::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 999px;
      }

      .profile-panel {
        display: block;
      }

      .profile-panels[data-view="tab"] .profile-panel {
        display: none;
      }

      .profile-panels[data-view="tab"] .profile-panel.is-active {
        display: block;
      }

      .profile-card {
        border-radius: var(--radius-lg);
        padding: 20px 32px 28px;
        background: transparent;
        border: none;
        box-shadow: none;
      }

      .section-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 20px;
      }

      .section-header h2 {
        font-size: 1.45rem;
        font-weight: 600;
        margin: 0;
        padding: 0;
        color: var(--text-primary);
        background: none;
        border: none;
        box-shadow: none;
        text-shadow: none;
      }

      .section-header-heading {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
      }

      .demo-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.3);
        background: rgba(15, 23, 42, 0.45);
        font-size: 0.85rem;
        color: rgba(226, 232, 240, 0.78);
      }

      .demo-toggle input {
        width: auto;
        accent-color: var(--accent);
      }

      .section-header p {
        color: var(--text-secondary);
        margin-top: 6px;
        max-width: 520px;
      }

      .section-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .section-lead {
        color: var(--text-secondary);
        margin-bottom: 18px;
      }

      .stats-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
      }

      .stats-card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 26px;
        margin-bottom: 36px;
      }

      .stats-card {
        position: relative;
        padding: 22px;
        border-radius: 20px;
        background: linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.18),
            rgba(37, 99, 235, 0.08)
          )
          rgba(12, 17, 35, 0.9);
        border: 1px solid rgba(148, 163, 184, 0.18);
        box-shadow: 0 22px 46px rgba(8, 14, 35, 0.35);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 14px;
        min-height: 144px;
        overflow: hidden;
      }

      .stats-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background: radial-gradient(
          140% 160% at 106% -12%,
          rgba(125, 211, 252, 0.25) 0%,
          transparent 55%
        );
        opacity: 0.85;
        mix-blend-mode: screen;
      }

      .stats-card.stats-card--accent {
        background: linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.18),
            rgba(37, 99, 235, 0.08)
          )
          rgba(12, 17, 35, 0.9);
      }

      .stats-card h3 {
        font-size: 0.78rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: rgba(226, 232, 240, 0.72);
        margin: 0;
        z-index: 1;
      }

      .stats-card-value {
        font-size: clamp(1.6rem, 1.4vw + 1rem, 2.3rem);
        font-weight: 700;
        letter-spacing: -0.02em;
        color: var(--text-primary);
        margin: 0;
        z-index: 1;
      }

      .stats-card-meta {
        margin: 0;
        font-size: 0.9rem;
        color: rgba(226, 232, 240, 0.68);
        z-index: 1;
      }

      .stats-card[data-extended="true"] {
        display: none;
      }

      .stats-card-grid[data-view-mode="stats"] .stats-card[data-extended="true"] {
        display: flex;
      }

      .stats-charts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
      }

      .chart-card {
        background: rgba(15, 23, 42, 0.92);
        border-radius: 22px;
        border: 1px solid rgba(148, 163, 184, 0.14);
        box-shadow: 0 26px 52px rgba(8, 13, 35, 0.45);
        padding: 20px 22px 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-height: 234px;
      }

      .chart-card--wide {
        grid-column: 1 / -1;
      }

      .chart-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 18px;
      }

      .chart-card-header h3 {
        margin: 0;
        font-size: 1.15rem;
      }

      .chart-card-subtitle {
        margin: 4px 0 0;
        color: rgba(226, 232, 240, 0.65);
        font-size: 0.9rem;
      }

      .chart-card-header span {
        font-size: 0.85rem;
        color: rgba(148, 163, 184, 0.85);
        white-space: nowrap;
      }

      :root[data-theme="light"] .chart-card-header span {
        color: rgba(11, 26, 43, 0.58);
      }

      :root[data-theme="light"] .chart-card-subtitle {
        color: rgba(11, 26, 43, 0.6);
      }

      .chart-surface {
        position: relative;
        flex: 1 1 auto;
        min-height: 198px;
      }

      .chart-surface--wide {
        min-height: 240px;
      }

      .chart-empty {
        margin: 0;
        padding: 18px;
        border-radius: 16px;
        background: rgba(15, 23, 42, 0.7);
        border: 1px dashed rgba(148, 163, 184, 0.3);
        text-align: center;
        color: rgba(148, 163, 184, 0.85);
        font-size: 0.9rem;
      }

      :root:not([data-theme="light"]) .apexcharts-tooltip,
      :root:not([data-theme="light"]) .apexcharts-tooltip * {
        color: #e2e8f0 !important;
      }

      :root[data-theme="light"] .apexcharts-tooltip,
      :root[data-theme="light"] .apexcharts-tooltip * {
        color: #0f172a !important;
      }

      .apexcharts-legend-text {
        color: var(--text-secondary) !important;
        fill: var(--text-secondary) !important;
        font-weight: 600;
      }

      .stats-card-grid[data-view-mode="stats"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .stats-card-grid[data-view-mode="table"] {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      }

      @media (max-width: 1280px) {
        .stats-card-grid[data-view-mode="stats"] {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .personal-info-card__grid,
        .personal-info-card__grid--invoice {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (max-width: 960px) {
        .stats-charts {
          grid-template-columns: repeat(1, minmax(0, 1fr));
        }

        .personal-info-card {
          padding: 28px 26px;
          border-radius: 36px;
        }

        .personal-info-card__grid,
        .personal-info-card__grid--invoice {
          grid-template-columns: minmax(0, 1fr);
          gap: 24px;
        }

        .personal-info-field--split {
          grid-template-columns: minmax(0, 1fr);
        }
      }

      @media (max-width: 720px) {
        .stats-card-grid {
          grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        }
      }

      .profile-table-wrap {
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-md);
        overflow-x: auto;
        border: 1px solid rgba(255, 255, 255, 0.04);
      }

      table {
        width: 100%;
        border-collapse: collapse;
      }

      .session-table th {
        text-align: left;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--text-muted);
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }

      .session-table td {
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-secondary);
      }
      .session-table th:last-child {
        text-align: center;
      }

      .session-invoice-cell {
        text-align: center;
      }

      .session-invoice-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 8px;
        border-radius: 10px;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
      }

      .session-invoice-link:hover,
      .session-invoice-link:focus-visible {
        color: var(--text-primary);
        background: rgba(1, 159, 255, 0.12);
        border-color: rgba(1, 159, 255, 0.35);
        outline: none;
      }

      .session-invoice-missing {
        text-align: center;
        color: var(--text-muted);
      }

      .session-sort {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        font: inherit;
        letter-spacing: inherit;
        text-transform: inherit;
        color: inherit;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        cursor: pointer;
        box-shadow: none;
        appearance: none;
        -webkit-appearance: none;
      }

      .session-sort:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }

      .session-sort-icon {
        font-size: 0.75rem;
        opacity: 0.6;
        transition: opacity 0.2s ease;
      }

      .session-sort.is-active .session-sort-icon {
        opacity: 1;
      }

      .session-vehicle-select {
        width: 100%;
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-sm);
        padding: 6px 10px;
        padding-right: 34px;
        color: inherit;
        font: inherit;
        box-shadow: none;
        appearance: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease,
          background-color 0.2s ease;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%23f5fbff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px 8px;
      }

      .session-vehicle-select:focus-visible {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 2px var(--focus-ring);
        background: rgba(1, 159, 255, 0.08);
      }

      .session-vehicle-select option {
        background: rgba(12, 17, 35, 0.96);
        color: var(--text-primary);
      }

      .session-vehicle-select option:checked,
      .session-vehicle-select option:hover {
        background: rgba(1, 159, 255, 0.32);
        color: var(--text-primary);
      }

      .session-table tbody tr:last-child td {
        border-bottom: none;
      }

      .profile-empty {
        padding: 22px;
        text-align: center;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.04);
        border-radius: var(--radius-md);
      }

      .preferences-grid {
        display: grid;
        gap: 18px;
      }

      .pref-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 20px 22px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.04);
      }

      .pref-item h3 {
        font-size: 1.1rem;
      }

      .pref-item p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin-top: 4px;
      }

      .personal-info-card {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 36px 44px;
        border-radius: 48px;
        background: var(--card);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-soft);
      }

      .personal-info-card__title {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-primary);
      }

      .personal-info-card__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
      }

      .personal-info-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .personal-info-section h4 {
        margin: 0;
        font-size: 1.05rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-primary);
        font-weight: 600;
      }

      .personal-info-fields {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 0;
      }

      .personal-info-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .personal-info-field[hidden] {
        display: none !important;
      }

      .personal-info-field dt {
        margin: 0;
        font-size: 0.95rem;
        font-style: italic;
        color: var(--text-secondary);
      }

      .personal-info-field dd {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
      }

      .personal-info-field--split {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
      }

      .personal-info-field--split > div {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .personal-info-card__invoice {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .personal-info-card__invoice[hidden] {
        display: none !important;
      }

      .personal-info-card__invoice h4 {
        margin: 0;
        font-size: 1.05rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-primary);
      }

      .personal-info-card__grid--invoice {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .personal-info-card__invoice .personal-info-card__grid {
        gap: 24px;
      }

      .pref-toggle {
        position: relative;
        width: 54px;
        height: 28px;
        flex-shrink: 0;
        cursor: pointer;
      }

      .pref-toggle input {
        position: absolute;
        opacity: 0;
        inset: 0;
        margin: 0;
      }

      .pref-toggle .slider {
        position: absolute;
        inset: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.28);
        transition: background 0.2s ease;
      }

      .pref-toggle .slider::after {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--page-bg);
        transition: transform 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
      }

      .pref-toggle input:checked + .slider {
        background: var(--accent);
      }

      .pref-toggle input:checked + .slider::after {
        transform: translateX(26px);
        background: #012134;
      }

      .theme-options {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 16px;
      }

      .theme-options label {
        background: rgba(255, 255, 255, 0.04);
        border-radius: var(--radius-md);
        padding: 14px 16px;
        display: flex;
        gap: 12px;
        align-items: center;
        cursor: pointer;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: border-color 0.2s ease, transform 0.2s ease;
      }

      .theme-options label:hover {
        transform: translateY(-2px);
        border-color: var(--accent);
      }

      .theme-options input {
        width: auto;
      }

      .profile-avatar-actions {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        align-items: center;
      }

      .btn-file {
        border-radius: 999px;
        padding: 0.65rem 1.5rem;
        background: rgba(255, 255, 255, 0.12);
        border: 1px dashed rgba(255, 255, 255, 0.35);
        cursor: pointer;
        transition: border-color 0.2s ease, background 0.2s ease;
        font-weight: 600;
      }

      .btn-file:hover {
        border-color: var(--accent);
        background: rgba(1, 159, 255, 0.18);
      }

      .vehicle-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 18px;
      }

      .vehicle-item {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 24px;
        padding: 20px 24px;
        border-radius: 20px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.88));
        box-shadow: 0 26px 52px rgba(2, 6, 23, 0.4);
      }

      .vehicle-item-main {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
      }

      .vehicle-item-header {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
      }

      .vehicle-name {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-primary);
      }

      .vehicle-model {
        font-size: 0.9rem;
        color: rgba(226, 232, 240, 0.65);
      }

      .vehicle-standard {
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(34, 197, 94, 0.18);
        color: #bbf7d0;
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }

      .vehicle-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        font-size: 0.9rem;
        color: rgba(226, 232, 240, 0.7);
      }

      .vehicle-color-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }

      .vehicle-color-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.55);
      }

      .vehicle-actions {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .vehicle-action {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background: rgba(15, 23, 42, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(226, 232, 240, 0.85);
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
      }

      .vehicle-action:hover {
        background: rgba(59, 130, 246, 0.22);
        border-color: rgba(59, 130, 246, 0.65);
        color: #bfdbfe;
      }

      .vehicle-action svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
        display: block;
        flex-shrink: 0;
      }

      .vehicle-card-divider {
        width: 1px;
        background: rgba(148, 163, 184, 0.16);
        align-self: stretch;
      }

      .vehicle-color-field {
        position: relative;
        margin-top: 12px;
      }

      .vehicle-color-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, 0.28);
        background: rgba(15, 23, 42, 0.45);
        color: var(--text-primary);
        cursor: pointer;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
      }

      .vehicle-color-trigger:hover {
        border-color: rgba(59, 130, 246, 0.45);
      }

      .vehicle-color-trigger[aria-expanded="true"] {
        border-color: rgba(59, 130, 246, 0.75);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
      }

      .vehicle-color-preview {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        pointer-events: none;
      }

      .vehicle-color-text {
        font-size: 0.9rem;
        color: rgba(226, 232, 240, 0.82);
      }

      .vehicle-color-popover {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        z-index: 25;
        padding: 16px;
        border-radius: 16px;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid rgba(148, 163, 184, 0.35);
        box-shadow: 0 24px 48px rgba(2, 6, 23, 0.5);
        display: grid;
        gap: 12px;
        width: min(320px, 92vw);
      }

      .vehicle-color-popover.hidden {
        display: none;
      }

      .vehicle-color-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .vehicle-color-option {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid transparent;
        background: rgba(15, 23, 42, 0.6);
        color: rgba(226, 232, 240, 0.85);
        cursor: pointer;
        transition: border-color 0.2s ease, background 0.2s ease;
      }

      .vehicle-color-option:hover,
      .vehicle-color-option[aria-checked="true"] {
        border-color: rgba(59, 130, 246, 0.6);
        background: rgba(59, 130, 246, 0.18);
      }

      .vehicle-color-option .vehicle-color-dot {
        box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.45);
      }

      .vehicle-color-none {
        width: 100%;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, 0.3);
        background: rgba(15, 23, 42, 0.45);
        color: rgba(226, 232, 240, 0.75);
        padding: 10px 12px;
        cursor: pointer;
        transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
      }

      .vehicle-color-none:hover {
        border-color: rgba(239, 68, 68, 0.7);
        color: #fecaca;
        background: rgba(239, 68, 68, 0.1);
      }

      .vehicle-default-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 18px;
        font-size: 0.92rem;
        color: rgba(226, 232, 240, 0.82);
      }

      .vehicle-default-toggle input {
        width: 18px;
        height: 18px;
      }

      .vehicle-modal-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .vehicle-modal-grid label {
        font-size: 0.9rem;
        color: rgba(226, 232, 240, 0.78);
        font-weight: 600;
      }

      .vehicle-modal-grid input[type="text"],
      .vehicle-modal-grid input[type="number"] {
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, 0.25);
        background: rgba(15, 23, 42, 0.45);
        color: var(--text-primary);
      }

      .vehicle-modal-grid input[type="text"]:focus,
      .vehicle-modal-grid input[type="number"]:focus {
        outline: none;
        border-color: rgba(59, 130, 246, 0.6);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.26);
      }

      .vehicle-modal-columns {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      }

      @media (max-width: 720px) {
        .vehicle-item {
          flex-direction: column;
          align-items: flex-start;
        }

        .vehicle-actions {
          width: 100%;
          justify-content: flex-end;
        }

        .vehicle-card-divider {
          display: none;
        }
      }

      .profile-details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px 24px;
      }

      .profile-details dt {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--text-muted);
      }

      .profile-details dd {
        margin: 0;
        font-weight: 600;
      }

      .hint {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin-top: 12px;
      }

      .hint.error,
      .hint.is-error {
        color: var(--danger);
      }

      .hint.success,
      .hint.is-success {
        color: var(--success);
      }

      .hint.is-info {
        color: var(--accent-strong);
      }

      .profile-login-card {
        max-width: 420px;
        margin: 80px auto;
        text-align: center;
        background: var(--panel-bg);
        padding: 36px 40px;
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 26px 66px rgba(0, 0, 0, 0.45);
        display: grid;
        gap: 18px;
      }

      dialog {
        border: none;
        border-radius: var(--radius-xl);
        padding: 0;
        background: transparent;
        color: inherit;
      }

      dialog::backdrop {
        background: rgba(1, 6, 10, 0.7);
        backdrop-filter: blur(4px);
      }

      .profile-modal {
        width: min(520px, 90vw);
        background: var(--panel-bg);
        padding: 32px 36px;
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
      }

      .profile-modal form {
        display: grid;
        gap: 16px;
      }

      .profile-modal .double {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      }

      .profile-modal footer {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        margin-top: 8px;
      }

      .profile-modal__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
        gap: 12px;
      }

      .profile-modal__header h3 {
        margin: 0;
        font-size: 1.35rem;
      }

      .profile-modal__close {
        border: none;
        background: transparent;
        color: var(--text-secondary);
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        padding: 4px;
        transition: color 0.2s ease;
      }

      .profile-modal__close:hover,
      .profile-modal__close:focus-visible {
        color: var(--text-primary);
      }

      .avatar-modal {
        width: min(440px, 90vw);
        padding: 32px 28px 28px;
        text-align: center;
      }

      .avatar-modal__preview {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        margin: 0 auto 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        background: rgba(3, 12, 20, 0.6);
        border: 2px solid rgba(255, 255, 255, 0.08);
      }

      .avatar-modal__preview.has-image {
        background: transparent;
      }

      .avatar-modal__preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .avatar-modal__fallback {
        font-size: 3rem;
        font-weight: 600;
        color: var(--text-secondary);
      }

      .avatar-modal__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        justify-content: space-between;
        align-items: center;
        width: 100%;
      }

      .avatar-modal__action {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: rgba(1, 159, 255, 0.12);
        color: var(--accent);
        border: 1px solid rgba(1, 159, 255, 0.4);
        padding: 0.55rem 1.3rem;
        border-radius: 999px;
        box-shadow: none;
      }

      .avatar-modal__actions .avatar-modal__action:first-child {
        margin-right: auto;
      }

      .avatar-modal__actions .avatar-modal__action--danger {
        margin-left: auto;
      }

      .avatar-modal__action:hover,
      .avatar-modal__action:focus-visible {
        filter: brightness(1.1);
      }

      .avatar-modal__action--danger {
        background: rgba(255, 107, 107, 0.12);
        border-color: rgba(255, 107, 107, 0.35);
        color: var(--danger);
      }

      .avatar-modal__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
      }

      .avatar-modal__icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
      }

      @media (max-width: 540px) {
      }

      .form-toggle-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 8px;
      }

      .form-toggle-row span {
        font-size: 0.95rem;
        color: var(--text-secondary);
        font-weight: 500;
      }

      .invoice-fields {
        display: grid;
        gap: 16px;
        margin-top: 12px;
      }

      .invoice-fields[hidden] {
        display: none !important;
      }

      .auth-modal {
        width: min(720px, 94vw);
        border-radius: var(--radius-xl);
        background: var(--panel-bg);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
      }

      .auth-shell {
        position: relative;
        padding: 36px 40px;
        display: grid;
        gap: 24px;
      }

      .auth-close {
        position: absolute;
        top: 18px;
        right: 22px;
        background: transparent;
        border: none;
        font-size: 2rem;
        color: var(--text-secondary);
        cursor: pointer;
      }

      .auth-tabs {
        display: flex;
        gap: 12px;
        background: rgba(255, 255, 255, 0.05);
        padding: 6px;
        border-radius: 999px;
      }

      .auth-tab {
        flex: 1;
        background: transparent;
        border-radius: 999px;
        padding: 0.65rem 1rem;
        color: var(--text-secondary);
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: background 0.2s ease;
      }

      .auth-tab.is-active {
        background: rgba(1, 159, 255, 0.2);
        color: var(--text-primary);
      }

      .auth-panel {
        display: none;
        gap: 16px;
      }

      .auth-modal[data-mode="login"] .auth-panel--login,
      .auth-modal[data-mode="register"] .auth-panel--register,
      .auth-panel.is-active {
        display: grid;
      }

      .auth-modal[data-mode="success"] .auth-tabs {
        display: none;
      }

      .auth-modal[data-mode="success"] .auth-panel--success {
        display: grid;
      }
      .auth-primary {
        background: var(--accent);
        color: #012134;
      }

      .auth-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
      }

      .auth-link {
        background: transparent;
        border: none;
        color: var(--accent);
        cursor: pointer;
        padding: 0;
        font-weight: 600;
      }

      .auth-success-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      @media (min-width: 480px) {
        .auth-success-actions {
          flex-direction: row;
          justify-content: center;
        }
      }
      .auth-cta {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        color: var(--text-secondary);
        font-size: 0.95rem;
      }

      .auth-subline {
        color: var(--text-secondary);
        font-size: 0.95rem;
      }

      .auth-meta {
        color: var(--text-secondary);
        font-size: 0.85rem;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }

      .auth-msg {
        min-height: 1.2rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
      }

      .auth-msg.is-error {
        color: var(--danger);
      }

      .auth-msg.is-success {
        color: var(--success);
      }

      .auth-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
      }

      .auth-actions .auth-primary {
        flex: 1 1 140px;
      }

      .auth-reset {
        display: grid;
        gap: 10px;
        margin-top: 4px;
        padding: 14px 16px;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(255, 255, 255, 0.03);
      }

      .auth-reset-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
      }

      .auth-reset-actions input {
        flex: 1 1 220px;
        margin: 0;
      }

      .auth-reset-actions button {
        flex-shrink: 0;
      }

      .auth-reset-hint {
        color: var(--text-secondary);
        font-size: 0.9rem;
      }

      @media (max-width: 1200px) {
        .profile-layout {
          padding: 32px;
          gap: 24px;
        }

        .profile-header {
          flex-direction: column;
          align-items: stretch;
        }

        .profile-header-meta {
          justify-content: space-between;
        }
      }

      @media (max-width: 960px) {
        .profile-layout {
          grid-template-columns: 1fr;
          grid-template-rows: auto auto auto;
          padding: 24px 20px 40px;
        }

        .profile-sidebar {
          grid-row: auto;
          flex-direction: column;
          align-items: center;
          text-align: center;
        }

        .profile-main {
          grid-row: span 2;
        }

        .profile-header-meta {
          flex-direction: column;
          align-items: flex-start;
        }

        .profile-body {
          padding: 24px;
        }

        .profile-card {
          padding: 24px;
        }

        .section-header {
          flex-direction: column;
          align-items: flex-start;
        }

        .section-actions {
          width: 100%;
          justify-content: flex-start;
        }
      }

      @media (max-width: 640px) {
        .profile-layout {
          padding: 20px 16px 32px;
        }

        .profile-sidebar {
          padding: 24px 20px;
        }

        .profile-header {
          padding: 24px;
        }

        .profile-body {
          padding: 20px;
        }

        .personal-info-card__grid,
        .personal-info-card__grid--invoice {
          grid-template-columns: minmax(0, 1fr);
          gap: 24px;
        }

        .personal-info-field--split {
          grid-template-columns: minmax(0, 1fr);
        }
      }
          :root[data-theme="light"] {
        color-scheme: light;
        --page-bg: #f4f7fb;
        --panel-bg: #ffffff;
        --panel-soft: #ffffff;
        --panel-strong: #2364a0;
        --border: rgba(17, 24, 39, 0.08);
        --accent: #019fff;
        --accent-strong: #019fff;
        --accent-soft: rgba(1, 159, 255, 0.14);
        --danger: #d13a3a;
        --success: #0f9150;
        --text-primary: #0b1a2b;
        --text-secondary: rgba(11, 26, 43, 0.72);
        --text-muted: rgba(11, 26, 43, 0.55);
        --card: var(--panel-bg);
        --shadow-soft: 0 14px 32px rgba(17, 36, 68, 0.12);
      }

      :root[data-theme="light"] body {
        background: var(--page-bg);
        color: var(--text-primary);
      }

      :root[data-theme="light"] .profile-sidebar {
        background: var(--panel-bg);
        border: 1px solid rgba(17, 24, 39, 0.06);
        box-shadow: 0 18px 36px rgba(17, 30, 53, 0.08);
      }

      :root[data-theme="light"] .sidebar-support {
        background: rgba(17, 30, 53, 0.06);
      }

      :root[data-theme="light"] .profile-nav-link {
        color: var(--text-secondary);
      }

      :root[data-theme="light"] .profile-nav-link:hover,
      :root[data-theme="light"] .profile-nav-link:focus-visible {
        background: rgba(1, 159, 255, 0.12);
        color: var(--accent-strong);
      }

      :root[data-theme="light"] .profile-nav-link.is-active {
        background: rgba(1, 159, 255, 0.18);
        color: var(--accent-strong);
        box-shadow: inset 0 0 0 1px rgba(1, 159, 255, 0.3);
      }

      :root[data-theme="light"] .personal-info-card {
        background: #ffffff;
        border: 1px solid rgba(17, 24, 39, 0.08);
        box-shadow: 0 18px 36px rgba(17, 30, 53, 0.08);
      }

      :root[data-theme="light"] .personal-info-field dt {
        color: rgba(11, 26, 43, 0.55);
      }

      :root[data-theme="light"] .profile-header {
        background: var(--panel-bg);
        border: 1px solid rgba(17, 24, 39, 0.06);
        box-shadow: 0 24px 48px rgba(17, 30, 53, 0.08);
      }

      :root[data-theme="light"] .profile-body {
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(17, 24, 39, 0.06);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6),
          0 22px 44px rgba(17, 30, 53, 0.08);
      }

      :root[data-theme="light"] .profile-card {
        color: var(--text-primary);
      }

      :root[data-theme="light"] .form-toggle-row {
        border-top: 1px solid rgba(17, 24, 39, 0.08);
        border-bottom: 1px solid rgba(17, 24, 39, 0.08);
      }

      :root[data-theme="light"] .profile-modal__close {
        color: rgba(11, 26, 43, 0.55);
      }

      :root[data-theme="light"] .profile-modal__close:hover,
      :root[data-theme="light"] .profile-modal__close:focus-visible {
        color: rgba(11, 26, 43, 0.82);
      }

      :root[data-theme="light"] .avatar-modal__preview {
        background: rgba(229, 240, 255, 0.7);
        border-color: rgba(17, 24, 39, 0.08);
      }

      :root[data-theme="light"] .avatar-modal__fallback {
        color: rgba(11, 26, 43, 0.55);
      }

      :root[data-theme="light"] .avatar-modal__action {
        background: rgba(1, 159, 255, 0.1);
        border-color: rgba(1, 159, 255, 0.28);
        color: var(--accent);
      }

      :root[data-theme="light"] .avatar-modal__action--danger {
        background: rgba(209, 58, 58, 0.12);
        border-color: rgba(209, 58, 58, 0.3);
        color: #d13a3a;
      }

      :root[data-theme="light"] .section-header p,
      :root[data-theme="light"] .section-lead,
      :root[data-theme="light"] .pref-item p,
      :root[data-theme="light"] .profile-empty,
      :root[data-theme="light"] .hint,
      :root[data-theme="light"] .auth-subline,
      :root[data-theme="light"] .auth-meta,
      :root[data-theme="light"] .auth-cta {
        color: var(--text-secondary);
      }

      :root[data-theme="light"] .stats-card,
      :root[data-theme="light"] .stats-card.stats-card--accent {
        background: linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.12),
            rgba(37, 99, 235, 0.04)
          )
          #ffffff;
        border: 1px solid rgba(17, 24, 39, 0.08);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
        color: var(--text-primary);
      }

      :root[data-theme="light"] .stats-card::after {
        background: radial-gradient(
          140% 160% at 106% -12%,
          rgba(59, 130, 246, 0.22) 0%,
          transparent 60%
        );
      }

      :root[data-theme="light"] .stats-card h3 {
        color: rgba(11, 26, 43, 0.62);
      }

      :root[data-theme="light"] .stats-card-value {
        color: var(--text-primary);
      }

      :root[data-theme="light"] .stats-card-meta {
        color: rgba(11, 26, 43, 0.6);
      }

      :root[data-theme="light"] .chart-card {
        background: linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.08),
            rgba(37, 99, 235, 0.02)
          )
          #ffffff;
        border: 1px solid rgba(17, 24, 39, 0.08);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
        color: var(--text-primary);
      }

      :root[data-theme="light"] .chart-card-header span {
        color: rgba(11, 26, 43, 0.58);
      }

      :root[data-theme="light"] .chart-empty {
        background: rgba(15, 23, 42, 0.08);
        border-color: rgba(15, 23, 42, 0.12);
        color: rgba(11, 26, 43, 0.68);
      }

      :root[data-theme="light"] .summary-card,
      :root[data-theme="light"] .pref-item,
      :root[data-theme="light"] .btn-file,
      :root[data-theme="light"] .vehicle-list li,
      :root[data-theme="light"] .profile-empty,
      :root[data-theme="light"] input,
      :root[data-theme="light"] select,
      :root[data-theme="light"] textarea {
        background: rgba(15, 23, 42, 0.04);
        border-color: rgba(17, 24, 39, 0.08);
      }

      :root[data-theme="light"] input:focus,
      :root[data-theme="light"] select:focus,
      :root[data-theme="light"] textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(1, 159, 255, 0.2);
      }

      :root[data-theme="light"] .pref-toggle .slider {
        background: rgba(15, 23, 42, 0.18);
      }

      :root[data-theme="light"] .pref-toggle input:checked + .slider {
        background: var(--accent);
      }

      :root[data-theme="light"] .pref-toggle input:checked + .slider::after {
        background: #ffffff;
      }

      :root[data-theme="light"] .theme-options label {
        background: rgba(15, 23, 42, 0.04);
        border-color: rgba(17, 24, 39, 0.08);
      }

      :root[data-theme="light"] .theme-options label:hover {
        border-color: var(--accent);
      }

      :root[data-theme="light"] .profile-table-wrap {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(17, 24, 39, 0.08);
      }

      :root[data-theme="light"] .session-table th {
        color: rgba(11, 26, 43, 0.55);
        border-bottom: 1px solid rgba(17, 24, 39, 0.08);
      }

      :root[data-theme="light"] .session-table td {
        color: var(--text-secondary);
        border-bottom: 1px solid rgba(17, 24, 39, 0.06);
      }

      :root[data-theme="light"] .session-vehicle-select {
        background-color: transparent;
        border-color: rgba(17, 24, 39, 0.12);
        color: var(--text-primary);
        box-shadow: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%230b1a2b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px 8px;
      }

      :root[data-theme="light"] .session-vehicle-select option {
        background: rgba(245, 247, 252, 0.98);
        color: var(--text-secondary);
      }

      :root[data-theme="light"] .session-vehicle-select option:checked,
      :root[data-theme="light"] .session-vehicle-select option:hover {
        background: rgba(1, 159, 255, 0.16);
        color: var(--text-primary);
      }

      :root[data-theme="light"] .profile-avatar {
        background: rgba(15, 23, 42, 0.06);
        border-color: rgba(1, 159, 255, 0.4);
      }

      :root[data-theme="light"] .btn-file {
        color: var(--accent-strong);
        border-style: dashed;
      }

      :root[data-theme="light"] button.secondary {
        border-color: var(--accent);
        color: var(--accent-strong);
      }

      :root[data-theme="light"] button.secondary:hover {
        background: rgba(1, 159, 255, 0.12);
      }

      :root[data-theme="light"] button:not(.secondary) {
        background: var(--accent);
        color: #ffffff;
        box-shadow: 0 12px 30px rgba(1, 159, 255, 0.35);
      }

      :root[data-theme="light"] button.session-sort {
        background: transparent;
        color: rgba(11, 26, 43, 0.6);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
      }

      :root[data-theme="light"] button.session-sort:focus-visible {
        outline: 2px solid rgba(1, 159, 255, 0.6);
        outline-offset: 2px;
      }

      :root[data-theme="light"] .auth-modal,
      :root[data-theme="light"] .profile-modal {
        background: var(--panel-bg);
        border: 1px solid rgba(17, 24, 39, 0.06);
        box-shadow: 0 26px 56px rgba(17, 30, 53, 0.12);
      }

      :root[data-theme="light"] dialog::backdrop {
        background: rgba(15, 23, 42, 0.35);
      }

      :root[data-theme="light"] .auth-tabs {
        background: rgba(15, 23, 42, 0.08);
      }

      :root[data-theme="light"] .auth-tab {
        color: var(--text-secondary);
      }

      :root[data-theme="light"] .auth-tab.is-active {
        background: rgba(1, 159, 255, 0.18);
        color: var(--accent-strong);
      }

      :root[data-theme="light"] .auth-link {
        color: var(--accent-strong);
      }
