/* Стили tag4.ru (вынесены из index.html) */
    /* ── Палитра (светлая тема по умолчанию) ── */
    :root {
      --bg:           #F0F2F5;  /* фон страницы */
      --surface:      #FFFFFF;  /* карточки, панели */
      --bg-input:     #F8F9FA;  /* поля ввода */
      --accent:       #1A73E8;  /* основной синий */
      --accent-dark:  #1558B0;
      --accent-light: #E8F0FE;  /* голубые подложки, шапка */
      --border:       #DDE1E7;
      --border-top:   #C5D8FB;  /* граница голубой шапки */
      --text:         #1A1D21;
      --text-2:       #5F6368;  /* вторичный текст */
      --muted:        #9AA0A6;  /* приглушённый текст */
    }
    html[data-theme="dark"] {
      --bg:           #10151A;
      --surface:      #1B222B;
      --bg-input:     #141B22;
      --accent:       #5B9CF5;
      --accent-dark:  #7FAEF7;
      --accent-light: #1C2A40;
      --border:       #2B3540;
      --border-top:   #243348;
      --text:         #E7EAEE;
      --text-2:       #AAB4BF;
      --muted:        #76818C;
    }
    html[data-theme="dark"] .tag-pill { filter: brightness(.85) saturate(.9); }
    * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

    body {
      font-family: system-ui, -apple-system, sans-serif;
      background: var(--bg);
      width: 100vw;
      height: 100dvh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* ══════════════════════════════
       Экраны
    ══════════════════════════════ */
    .screen {
      display: none;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }
    .screen.active { display: flex; }

    /* ══════════════════════════════
       Шапка
    ══════════════════════════════ */
    .topbar {
      background: var(--accent-light);
      border-bottom: 1px solid var(--border-top);
      flex-shrink: 0;
      padding-top: env(safe-area-inset-top);
    }
    .topbar-row {
      display: flex;
      align-items: center;
      padding: 0 12px;
      height: 52px;
      gap: 8px;
    }
    .topbar-title {
      flex: 1;
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .topbar-title .filter-active {
      font-size: 13px;
      font-weight: 400;
      color: var(--accent);
    }
    .topbar-btn {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      border: none;
      background: transparent;
      cursor: pointer;
      border-radius: 8px;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-2);
      transition: background .1s;
    }
    .topbar-btn:hover, .topbar-btn:active { background: var(--bg); }
    .topbar-btn.active { color: var(--accent); background: var(--accent-light); }

    /* ══════════════════════════════
       Строка поиска (скрытая)
    ══════════════════════════════ */
    .search-bar {
      display: none;
      padding: 8px 12px 10px;
      border-top: 1px solid var(--bg);
      gap: 6px;
      flex-direction: column;
    }
    .search-bar.open { display: flex; }
    .search-row { display: flex; gap: 6px; align-items: center; }
    .search-input {
      flex: 1;
      padding: 9px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 15px;
      font-family: 'Courier New', monospace;
      transition: border-color .15s;
      background: var(--bg-input);
    }
    .search-input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
    .search-input.active { border-color: var(--accent); background: #f0f5ff; }
    .search-clear {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      cursor: pointer;
      font-size: 14px;
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .search-clear:hover { background: var(--bg); color: var(--text-2); }
    .search-dots {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      cursor: pointer;
      font-size: 16px;
      color: var(--text-2);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    .search-dots:hover { background: var(--bg); }
    .search-save-row {
      display: flex;
      gap: 6px;
    }
    .search-save-input {
      flex: 1;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 14px;
      transition: border-color .15s;
    }
    .search-save-input:focus { outline: none; border-color: var(--accent); }
    .search-save-btn {
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 500;
      border-radius: 8px;
      border: none;
      background: var(--accent);
      color: #fff;
      cursor: pointer;
      white-space: nowrap;
    }
    .search-save-btn:hover { background: var(--accent-dark); }
    .search-count {
      font-size: 12px;
      color: var(--muted);
      padding: 0 2px;
    }

    /* ══════════════════════════════
       Список заметок
    ══════════════════════════════ */
    .notes-scroll {
      flex: 1;
      overflow-y: auto;
      padding: 10px 12px;
      -webkit-overflow-scrolling: touch;
    }
    .note-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 8px;
      cursor: pointer;
      transition: border-color .1s, box-shadow .1s;
      -webkit-user-select: none;
      user-select: none;
    }
    .note-card:active { border-color: var(--accent); box-shadow: 0 2px 8px rgba(26,115,232,.12); }
    .note-card-text {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.1;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .note-card-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 7px;
    }
    .tag-pill {
      display: inline-block;
      padding: 3px 9px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
      white-space: nowrap;
    }
    .note-card-date {
      font-size: 11px;
      color: var(--muted);
      margin-top: 4px;
    }
    .notes-empty {
      padding: 60px 20px;
      color: var(--muted);
      font-size: 15px;
      text-align: center;
    }

    /* ══════════════════════════════
       Форма рассылок
    ══════════════════════════════ */
    .ml-form {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      margin-bottom: 16px;
    }
    .ml-form-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 12px;
    }
    .ml-input {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 15px;
      font-family: inherit;
      background: var(--bg-input);
      transition: border-color .15s;
      -webkit-appearance: none;
    }
    .ml-input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
    .ml-filter-row { margin-bottom: 6px; }
    .ml-filter-wrap { position: relative; }
    .ml-filter-wrap .filter-input { font-family: 'Courier New', monospace; }
    .ml-period-hint { font-size: 13px; color: var(--muted); }
    .ml-form-btns {
      display: flex;
      gap: 8px;
      margin-top: 14px;
      justify-content: flex-end;
    }
    .ml-btn {
      padding: 10px 18px;
      border-radius: 8px;
      border: 1px solid var(--border);
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      min-height: 44px;
      transition: background .1s;
    }
    .ml-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
    .ml-btn-primary:active { background: var(--accent-dark); }
    .ml-btn-secondary { background: var(--surface); color: var(--text-2); }
    .ml-btn-secondary:active { background: var(--bg); }
    .ml-status { font-size: 13px; margin-top: 8px; min-height: 18px; }
    .ml-status.ok  { color: #34a853; }
    .ml-status.err { color: #ea4335; }

    /* Карточка сохранённой рассылки */
    .ml-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 8px;
    }
    .ml-card-header {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .ml-card-name {
      flex: 1;
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
    }
    .ml-card-period {
      font-size: 12px;
      color: var(--muted);
    }
    .ml-card-email {
      font-size: 13px;
      color: var(--text-2);
      margin-top: 4px;
    }
    .ml-card-filters {
      font-size: 12px;
      color: var(--accent);
      font-family: 'Courier New', monospace;
      margin-top: 4px;
    }
    .ml-card-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }
    .ml-card-btn {
      flex: 1;
      padding: 8px;
      border-radius: 7px;
      border: 1px solid var(--border);
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      background: var(--surface);
      color: var(--text-2);
      text-align: center;
      transition: background .1s;
    }
    .ml-card-btn:active { background: var(--bg); }
    .ml-card-btn.del { color: #ea4335; border-color: #fce8e6; }
    .ml-card-btn.del:active { background: #fce8e6; }
    .ac-dropdown {
      position: absolute;
      left: 0; right: 0;
      top: 100%;
      z-index: 200;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,.12);
      overflow: hidden;
      margin-top: 2px;
    }

    /* ══════════════════════════════
       Карточки настроек
    ══════════════════════════════ */
    .settings-card {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      cursor: pointer;
    }
    .settings-card-disabled {
      opacity: .45;
      pointer-events: none;
    }
    .settings-card-icon {
      flex-shrink: 0;
      width: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .settings-card-body {
      flex: 1;
      min-width: 0;
    }
    .settings-card-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
    }
    .settings-card-sub {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }
    .settings-card-arrow {
      font-size: 22px;
      color: #c4c8cc;
      flex-shrink: 0;
    }

    /* ══════════════════════════════
       Экран редактора
    ══════════════════════════════ */
    .editor-topbar-back {
      font-size: 15px;
      font-weight: 500;
      color: var(--accent);
      gap: 2px;
    }
    .editor-topbar-back svg { vertical-align: middle; }

    .editor-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 14px 14px 8px;
      gap: 12px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      min-height: 0;
    }
    .field-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .6px;
      margin-bottom: 6px;
    }
    .note-textarea {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 16px;
      resize: none;
      font-family: inherit;
      min-height: 150px;
      line-height: 1.5;
      transition: border-color .15s;
      -webkit-appearance: none;
          background: var(--surface);  /* без фона textarea остаётся белой в тёмной теме */
      color: var(--text);
    }
    .note-textarea:focus { outline: none; border-color: var(--accent); }
    .hashtag-wrap { position: relative; }
    .hashtag-textarea {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 16px;
      resize: vertical;
      min-height: 110px;
      font-family: 'Courier New', monospace;
      line-height: 1.6;
      transition: border-color .15s;
      -webkit-appearance: none;
          background: var(--surface);  /* без фона textarea остаётся белой в тёмной теме */
      color: var(--text);
    }
    .hashtag-textarea:focus { outline: none; border-color: var(--accent); }

    .editor-footer {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom));
      border-top: 1px solid var(--border);
      background: var(--surface);
      flex-shrink: 0;
    }
    .save-status { flex: 1; font-size: 13px; color: #34a853; }
    .btn {
      padding: 10px 18px;
      border-radius: 8px;
      border: 1px solid var(--border);
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      background: var(--surface);
      color: var(--text-2);
      transition: background .1s;
      min-height: 44px;
    }
    .btn:active { background: var(--bg); }
    .btn-danger { border-color: #d93025; color: #d93025; }
    .btn-danger:active { background: #fce8e6; }

    /* ══════════════════════════════
       Autocomplete
    ══════════════════════════════ */
    .autocomplete {
      position: absolute;
      left: 0;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 -4px 20px rgba(0,0,0,.14);
      z-index: 200;
      min-width: 220px;
      overflow-y: auto;
    }
    .ac-item {
      padding: 12px 14px;
      cursor: pointer;
      font-size: 15px;
      color: var(--text);
    }
    .ac-item:active, .ac-item.sel { background: var(--accent-light); color: var(--accent); }
    .ac-hint { padding: 8px 14px 4px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--bg); }

    /* Autocomplete для строки фильтра заметок */
    .sf-ac {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      right: 0;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 4px 20px rgba(0,0,0,.14);
      z-index: 250;
      overflow-y: auto;
      max-height: 260px;
    }

    /* ══════════════════════════════
       Виджеты главной страницы
    ══════════════════════════════ */
    .widget-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 10px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .widget-color-bar {
      width: 6px;
      flex-shrink: 0;
      align-self: stretch;
      background: var(--border);
      border-radius: 0;
    }
    .widget-inner {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }
    .widget-main {
      display: flex;
      align-items: center;
      padding: 14px 10px 14px 16px;
      cursor: pointer;
      gap: 10px;
      -webkit-user-select: none;
      user-select: none;
    }
    .widget-main:active { background: #f0f5ff; }
    .widget-body { flex: 1; min-width: 0; }
    .widget-label {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.1;
    }
    .widget-stat {
      font-size: 26px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.1;
    }
    .widget-stat .widget-unit {
      font-size: 13px;
      font-weight: 400;
      color: var(--muted);
      margin-left: 4px;
    }
    .widget-empty {
      font-size: 14px;
      color: #c4c8cc;
    }
    .widget-gear {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      border: none;
      background: transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      color: #c4c8cc;
      transition: background .1s, color .1s;
    }
    .widget-gear:hover, .widget-gear:active { background: var(--bg); color: var(--text-2); }
    .widget-gear.active { color: var(--accent); background: var(--accent-light); }
    .widget-color-palette {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      padding: 4px 0 2px;
    }
    .widget-color-swatch {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 2px solid transparent;
      cursor: pointer;
      transition: transform .1s, border-color .1s;
    }
    .widget-color-swatch:hover { transform: scale(1.15); }
    .widget-color-swatch.selected { border-color: var(--text); transform: scale(1.1); }
    .widget-add-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 14px;
      border: 2px dashed var(--border);
      border-radius: 12px;
      background: transparent;
      color: var(--muted);
      font-size: 15px;
      cursor: pointer;
      margin-bottom: 10px;
      transition: border-color .15s, color .15s;
    }
    .widget-add-btn:hover { border-color: var(--accent); color: var(--accent); }
    .widget-delete-btn {
      flex: 1;
      padding: 10px;
      border: none;
      border-radius: 8px;
      background: #fce8e8;
      color: #c0392b;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
    }
    .widget-delete-btn:active { background: #f5c6c6; }
    .widget-edit {
      padding: 0 14px 14px;
      border-top: 1px solid var(--bg);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .widget-edit-input {
      width: 100%;
      padding: 9px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 14px;
      font-family: inherit;
      background: var(--bg-input);
      transition: border-color .15s;
    }
    .widget-edit-input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
    .widget-edit-filter {
      font-family: 'Courier New', monospace;
    }
    .widget-edit-actions {
      display: flex;
      gap: 8px;
    }
    .widget-save-btn {
      flex: 1;
      padding: 9px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
    }
    .widget-save-btn:active { background: var(--accent-dark); }
    .widget-clear-btn {
      padding: 9px 14px;
      background: var(--bg);
      color: var(--text-2);
      border: none;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
    }
    .widget-clear-btn:active { background: #e0e3e7; }

    /* ══════════════════════════════
       Экран параметров
    ══════════════════════════════ */
    .params-scroll {
      flex: 1;
      overflow-y: auto;
      padding: 10px 12px;
      -webkit-overflow-scrolling: touch;
    }
    .filter-breadcrumb {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      flex-wrap: wrap;
      background: var(--surface);
      border-bottom: 1px solid var(--bg);
    }
    .bc-chip {
      background: var(--accent-light);
      color: var(--accent);
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 13px;
      font-family: 'Courier New', monospace;
      cursor: pointer;
    }
    .bc-chip:active { background: #d2e3fc; }
    .bc-sep { color: var(--muted); font-size: 13px; }
    .bc-clear { color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px 8px; border-radius: 6px; }
    .bc-clear:active { color: #d93025; background: #fce8e6; }

    .ht-entry {
      display: flex;
      align-items: center;
      padding: 12px 14px;
      background: var(--surface);
      border-radius: 8px;
      border: 1px solid var(--border);
      margin-bottom: 6px;
      font-size: 14px;
      font-family: 'Courier New', monospace;
      color: var(--text-2);
      gap: 8px;
      min-height: 48px;
    }
    .ht-entry:active { border-color: var(--accent); background: #f0f5ff; }
    .ht-entry-tokens { flex: 1; cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .ht-tok-match { color: var(--accent); font-weight: 600; }
    .ht-tok-next { color: var(--accent); font-weight: 600; background: var(--accent-light); border-radius: 4px; padding: 1px 5px; }
    .ht-tok-rest { color: var(--text-2); }
    .ht-note-count { font-size: 12px; color: var(--muted); font-family: system-ui; white-space: nowrap; }
    .ht-del { padding: 6px 10px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 14px; font-family: system-ui; min-height: 36px; display: flex; align-items: center; }
    .ht-del:active { color: #d93025; background: #fce8e6; }
    .no-results { padding: 60px 20px; color: var(--muted); text-align: center; font-size: 15px; }

    /* ══════════════════════════════
       Нижняя навигация
    ══════════════════════════════ */
    .bottom-nav {
      display: flex;
      background: var(--surface);
      border-top: 1px solid var(--border);
      flex-shrink: 0;
      padding-bottom: env(safe-area-inset-bottom);
    }
    .nav-btn {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 8px 4px;
      min-height: 56px;
      border: none;
      background: transparent;
      cursor: pointer;
      gap: 3px;
      color: var(--muted);
      transition: color .15s;
      font-size: 11px;
      font-weight: 500;
      -webkit-user-select: none;
      user-select: none;
    }
    .nav-btn.active {
      color: var(--accent);
    }
    .nav-btn.active .nav-icon-wrap {
      background: var(--accent-light);
      border-radius: 16px;
      padding: 4px 18px;
    }
    .nav-btn:active { opacity: .7; }
    .nav-icon-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4px 18px;
      border-radius: 16px;
      transition: background .15s;
    }
    .nav-icon { font-size: 22px; line-height: 1; }

    /* ══════════════════════════════
       Dropdown (сохранённые фильтры)
    ══════════════════════════════ */
    .saved-dd {
      position: absolute;
      right: 0;
      top: calc(100% + 4px);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 4px 20px rgba(0,0,0,.14);
      z-index: 300;
      min-width: 240px;
      max-width: 90vw;
    }
    #sortDropdown, #listMenu { right: 0; left: auto; }
    .saved-dd-header {
      padding: 10px 14px 6px;
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .6px;
    }
    .saved-item {
      display: flex;
      align-items: center;
      padding: 10px 14px;
      gap: 8px;
      cursor: pointer;
    }
    .saved-item:active { background: var(--bg); }
    .saved-item-name { flex: 1; font-size: 14px; color: var(--text); }
    .saved-item-filter { font-size: 11px; color: var(--muted); font-family: 'Courier New', monospace; }
    .saved-item-del { color: var(--muted); font-size: 14px; padding: 4px 6px; border-radius: 4px; }
    .saved-item-del:active { color: #d93025; background: #fce8e6; }
    .saved-dd-empty { padding: 16px 14px; color: var(--muted); font-size: 14px; text-align: center; }

    /* ══════════════════════════════
       Экран входа
    ══════════════════════════════ */
    #screen-login.active {
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg);
      padding: 24px;
      padding-top: calc(env(safe-area-inset-top) + 40px);
    }
    .login-card {
      background: var(--surface);
      border-radius: 16px;
      padding: 30px 24px;
      width: 100%;
      max-width: 360px;
      box-shadow: 0 4px 24px rgba(0,0,0,.10);
    }
    .login-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--text);
      text-align: center;
      margin-bottom: 28px;
    }
    .login-field { margin-bottom: 16px; }
    .login-label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .5px;
      margin-bottom: 6px;
    }
    .login-input {
      width: 100%;
      padding: 13px 14px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 16px;
      font-family: inherit;
      -webkit-appearance: none;
      transition: border-color .15s;
      background: var(--surface);
    }
    .login-input:focus { outline: none; border-color: var(--accent); }
    .login-btn {
      width: 100%;
      padding: 14px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 6px;
      min-height: 50px;
      transition: background .15s;
    }
    .login-btn:active { background: var(--accent-dark); }
    .login-error {
      color: #d93025;
      font-size: 14px;
      text-align: center;
      margin-top: 14px;
      min-height: 20px;
    }
  
