    html, body {
      margin: 0;
      padding: 0;
    }
    html {
      scrollbar-gutter: stable;
    }
    body {
      font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
    }
    .header-1 {
      font-size: 24px;
      line-height: 1.2;
      font-weight: 700;
    }
    .header-2 {
      font-size: 18px;
      line-height: 1.3;
      font-weight: 600;
    }
    .header-3 {
      font-size: 16px;
      line-height: 1.3;
      font-weight: 600;
    }
    .text-1 {
      font-size: 14px;
      line-height: 1.5;
    }
    .text-2 {
      font-size: 13px;
      line-height: 1.5;
    }
    .text-3 {
      font-size: 12px;
      line-height: 1.4;
    }
    body.nav-open,
    body.modal-open {
      overflow: hidden;
    }
    header {
      background: var(--panel);
      border-bottom: 1px solid var(--border);
      margin: 0;
      padding: 12px 24px;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: nowrap;
      min-width: 0;
      position: sticky;
      top: 0;
      z-index: 10000;
    }
    header a {
      color: var(--text);
      text-decoration: none;
      margin-right: 16px;
    }
    .sync-banner {
      flex: 0 0 auto;
      margin-left: auto;
      padding: 6px 12px;
      margin-right: 0;
      background: var(--color-warning-soft);
      border: 1px solid var(--color-warning-border);
      color: var(--color-warning);
      border-radius: 3px;
      font-size: 12px;
      text-align: center;
      white-space: nowrap;
    }
    .sync-banner-label-short {
      display: none;
    }
    .header-left {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
    }
    .header-rates {
      display: flex;
      flex: 0 0 auto;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      align-items: center;
      gap: 9px;
      min-width: 0;
      margin-right: 0;
      padding: 6px 9px;
      border: 1px solid var(--border);
      border-radius: 5px;
      background: var(--color-surface-soft);
      font-size: 11px;
      white-space: nowrap;
    }
    .header-rate {
      display: inline-flex;
      gap: 3px;
      color: var(--muted);
    }
    .header-rate strong {
      color: var(--text);
      font-weight: 600;
    }
    .header-nav-row {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      min-width: 0;
    }
    .header-right {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      flex-wrap: nowrap;
      justify-content: flex-end;
    }
    .sync-banner:not([hidden]) + .header-right {
      margin-left: 0;
    }
    .site-header a {
      margin-right: 0;
    }
    .site-header.header-rates-hidden .header-rates {
      display: none;
    }
    .rates {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 5px;
      background: var(--panel);
      font-size: 13px;
      overflow: visible;
      width: fit-content;
      max-width: 100%;
    }
    .rate {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .rate-code {
      font-weight: 600;
      color: var(--text);
    }
    .rate-value {
      font-weight: 700;
      color: var(--text);
      min-width: 52px;
    }
    .rates-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .rates-manual {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 12px;
      box-shadow: var(--shadow-md);
      width: 320px;
      max-width: 90vw;
      z-index: 30;
      box-sizing: border-box;
    }
    .rates-manual form {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .rates-manual label {
      font-size: 12px;
    }
    .rates-manual input,
    .rates-manual select {
      width: 100%;
      box-sizing: border-box;
    }
    .rates-manual-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }
    .rates-meta {
      margin-top: 8px;
      color: var(--muted);
    }
    [hidden] {
      display: none !important;
    }
    .muted {
      color: var(--muted);
    }
    .logo-link {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
    }
    .logo-link img {
      height: 44px;
      width: auto;
      display: block;
      filter: var(--logo-filter);
    }
    .nav-logout {
      display: block;
      margin: 0;
    }
    .nav-logout button {
      background: transparent;
      border: none;
      color: var(--text);
      cursor: pointer;
      font: inherit;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      width: 100%;
      min-width: 130px;
      height: auto;
      border-radius: 5px;
      font-weight: 500;
      font-size: 13px;
    }
    .nav-logout button img {
      width: 14px;
      height: 14px;
      display: block;
    }
    .nav-logout button:hover {
      color: var(--accent);
      background: var(--panel-muted);
    }
    .nav-user-block {
      position: relative;
      display: inline-block;
    }
    .nav-user {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      color: var(--text);
      font-size: 13px;
      white-space: nowrap;
      background: transparent;
      border: 0;
      padding: 4px 6px;
      border-radius: 6px;
      cursor: pointer;
      font-family: inherit;
    }
    .nav-user:hover,
    .nav-user[aria-expanded="true"] {
      background: var(--color-surface-muted);
    }
    .profile-menu-list {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 12000;
      padding: 5px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 7px;
      box-shadow: var(--shadow-md);
    }
    .profile-menu-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      width: 100%;
      min-width: 130px;
      box-sizing: border-box;
      padding: 10px 12px;
      border-radius: 5px;
      color: var(--text);
      font-size: 13px;
      font-weight: 500;
      text-decoration: none;
    }
    .profile-menu-item img {
      display: block;
      width: 14px;
      height: 14px;
    }
    .theme-toggle {
      border: 0;
      background: transparent;
      font-family: inherit;
      text-align: left;
      cursor: pointer;
    }
    .theme-toggle-icons {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .theme-toggle-icon--sun {
      display: none !important;
    }
    :root[data-theme="dark"] .theme-toggle-icon--moon {
      display: none;
    }
    :root[data-theme="dark"] .theme-toggle-icon--sun {
      display: block !important;
    }
    .profile-menu-item:hover,
    .profile-menu-item.active {
      background: var(--panel-muted);
      color: var(--accent);
    }
    .nav-user-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--color-surface-strong);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }
    .nav-user-icon img {
      width: 16px;
      height: 16px;
      display: block;
      opacity: 0.7;
    }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .nav-toggle {
      display: none;
      align-items: center;
      gap: 6px;
      background: var(--color-surface-strong);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 8px;
      border-radius: 5px;
      cursor: pointer;
      font-weight: 600;
      min-width: 40px;
      min-height: 40px;
      justify-content: center;
    }
    .nav-toggle .burger {
      display: inline-block;
      width: 16px;
      height: 12px;
      position: relative;
    }
    .nav-toggle .burger span {
      position: absolute;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--text);
      border-radius: 999px;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .nav-toggle .burger span:nth-child(1) {
      top: 0;
    }
    .nav-toggle .burger span:nth-child(2) {
      top: 5px;
    }
    .nav-toggle .burger span:nth-child(3) {
      bottom: 0;
    }
    .nav-close {
      display: none;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 5px;
      border: 1px solid var(--border);
      background: var(--color-surface-muted);
      cursor: pointer;
      position: absolute;
      top: 12px;
      right: 16px;
    }
    .nav-close img {
      width: 16px;
      height: 16px;
      display: block;
    }
    .primary-nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .primary-nav > a {
      margin: 0;
    }
    .nav-backdrop {
      position: fixed;
      inset: 0;
      background: var(--color-overlay);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      z-index: 9000;
    }
    .nav-backdrop.active {
      opacity: 1;
      pointer-events: auto;
    }
    .login-shell {
      min-height: calc(100vh - 48px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      box-sizing: border-box;
    }
    .login-panel {
      width: min(420px, 100%);
      text-align: center;
    }
    .login-panel h1 {
      margin-top: 0;
    }
    .login-theme-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 16px;
      padding: 7px 10px;
      border: 1px solid var(--border);
      border-radius: 5px;
      background: var(--color-surface-soft);
      color: var(--text);
    }
    .login-theme-toggle:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    .login-panel form {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
    }
    .login-panel form p {
      width: 100%;
      margin: 0;
      text-align: left;
    }
    .login-panel input {
      width: 100%;
      box-sizing: border-box;
    }
    .login-panel .btn {
      width: 100%;
      margin-top: 16px;
    }
    @media (max-width: 1100px) {
      header {
        padding: 12px 16px;
        gap: 12px;
      }
      .header-left,
      .header-right {
        justify-self: auto;
      }
      .header-left {
        display: flex;
        justify-content: flex-start;
      }
      .header-nav-row nav {
        justify-content: flex-start;
        gap: 5px;
      }
      header a {
        margin-right: 0;
      }
      .rates {
        justify-content: center;
        flex-wrap: wrap;
      }
    }
    @media (max-width: 768px) {
      .rates-actions {
        width: 100%;
        justify-content: center;
      }
    }
    .site-header.header-nav-collapsed .header-nav-row {
      flex: 0 0 0;
      width: 0;
    }
    .site-header.header-layout-measuring .primary-nav {
      transition: none !important;
    }
    .site-header.header-nav-collapsed .nav-toggle {
      display: inline-flex;
      justify-content: center;
      width: auto;
    }
    .site-header.header-nav-collapsed .primary-nav {
      position: fixed;
      top: 0;
      right: 0;
      height: 100vh;
      width: max-content;
      max-width: min(90vw, 420px);
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      gap: 12px;
      box-sizing: border-box;
      background: var(--panel);
      border-left: 1px solid var(--border);
      border-radius: 10px 0 0 10px;
      padding: 48px 18px 20px 24px;
      box-shadow: var(--shadow-drawer);
      transform: translateX(100%);
      transition: transform 0.25s ease;
      z-index: 11000;
      overflow-y: auto;
    }
    .site-header.header-nav-collapsed .header-nav-row .primary-nav {
      justify-content: flex-start;
    }
    .site-header.header-nav-collapsed .nav-close {
      display: inline-flex;
    }
    .site-header.header-nav-collapsed .primary-nav.open {
      transform: translateX(0);
    }
    .site-header.header-nav-collapsed .primary-nav a,
    .site-header.header-nav-collapsed .primary-nav .nav-logout,
    .site-header.header-nav-collapsed .primary-nav .nav-user,
    .site-header.header-nav-collapsed .primary-nav .nav-user-block {
      padding: 6px 0 6px 4px;
    }
    .site-header.header-nav-collapsed .primary-nav .create-menu-list a {
      padding: 10px 14px;
    }
    .site-header.header-nav-collapsed .primary-nav .nav-logout button {
      text-align: left;
    }
    .site-header.header-nav-collapsed .sync-banner-label-full,
    .site-header.header-nav-collapsed .nav-user-name {
      display: none;
    }
    .site-header.header-nav-collapsed .sync-banner-label-short {
      display: inline;
    }
    @media (max-width: 480px) {
      header {
        padding: 10px 12px;
        gap: 8px;
      }
      .logo-link {
        font-size: 15px;
      }
      .logo-link img {
        height: 36px;
      }
      .sync-banner {
        padding: 5px 7px;
        font-size: 11px;
        white-space: nowrap;
      }
      .rates {
        gap: 8px;
      }
      .rate-value {
        min-width: 44px;
      }
      .rates-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
      }
      .rates-actions .btn {
        width: auto;
      }
      .nav-logout button {
        padding: 6px 0;
      }
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
