:root {
      --bg: #f3efe6;
      --panel: #faf8f3;
      --ink: #1c1917;
      --mute: #78716c;
      --line: #e7e0d4;
      --accent: #1f6b4a;
      --accent-soft: #e6f2ec;
      --warn: #b45309;
      --warn-soft: #fef3c7;
      --danger: #9f1239;
      --danger-soft: #ffe4e6;
      --done: #57534e;
      --shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
      --sidebar-w: 260px;
      --drawer-w: 380px;
      --radius: 10px;
      --font: "IBM Plex Sans", system-ui, sans-serif;
      --serif: "IBM Plex Serif", Georgia, serif;
      --tap: 44px;
      --safe-b: env(safe-area-inset-bottom, 0px);
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      font-family: var(--font);
      color: var(--ink);
      background: var(--bg);
      line-height: 1.45;
      font-size: 16px;
      -webkit-tap-highlight-color: transparent;
    }

    /* —— Mobile-first: single column —— */
    .app {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      min-height: 100dvh;
    }

    .topbar {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.65rem 0.85rem;
      padding-top: max(0.65rem, env(safe-area-inset-top));
      background: var(--panel);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 25;
    }
    .topbar .brand {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 1.05rem;
      margin: 0;
      flex: 1;
      letter-spacing: -0.02em;
    }
    .topbar .mock-badge {
      display: none;
    }
    .topbar-btn {
      min-width: var(--tap);
      min-height: var(--tap);
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 10px;
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
      padding: 0 0.65rem;
    }
    .topbar-btn:active { background: var(--line); }

    .week-strip {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
      padding: 0.65rem 0.75rem;
      background: var(--panel);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: calc(var(--tap) + 0.5rem);
      z-index: 24;
    }
    .week-strip button {
      border: none;
      background: transparent;
      border-radius: 8px;
      padding: 0.35rem 0;
      font-family: inherit;
      cursor: pointer;
      color: var(--ink);
      min-height: 48px;
    }
    .week-strip button .d {
      display: block;
      font-size: 0.65rem;
      color: var(--mute);
      text-transform: uppercase;
    }
    .week-strip button .n {
      display: block;
      font-size: 0.95rem;
      font-weight: 600;
      margin-top: 0.1rem;
    }
    .week-strip button.selected {
      background: var(--accent);
      color: #fff;
    }
    .week-strip button.selected .d { color: rgba(255,255,255,0.75); }
    .week-strip button.today-mark:not(.selected) {
      box-shadow: inset 0 0 0 1.5px var(--accent);
    }
    .week-strip button.has-dot .n::after {
      content: "";
      display: block;
      width: 3px; height: 3px;
      background: var(--accent);
      border-radius: 50%;
      margin: 2px auto 0;
    }
    .week-strip button.selected.has-dot .n::after { background: #fff; }

    /* Sidebar = bottom sheet on mobile */
    .sidebar {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 35;
      background: rgba(28, 25, 23, 0.35);
      padding: 0;
      border: none;
      height: auto;
      overflow: hidden;
    }
    .sidebar.open { display: flex; align-items: flex-end; }
    .sidebar-sheet {
      background: var(--panel);
      width: 100%;
      max-height: 88dvh;
      border-radius: 16px 16px 0 0;
      padding: 0.75rem 1rem calc(1.25rem + var(--safe-b));
      overflow-y: auto;
      box-shadow: 0 -8px 32px rgba(28,25,23,0.12);
    }
    .sidebar-sheet .sheet-grab {
      width: 36px; height: 4px;
      background: var(--line);
      border-radius: 2px;
      margin: 0 auto 0.75rem;
    }
    .sidebar-sheet .sheet-h {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.75rem;
    }
    .sidebar-sheet .sheet-h strong {
      font-family: var(--serif);
      font-size: 1.05rem;
    }
    .brand-block-desktop { display: none; }

    .brand { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }
    .brand-sub { color: var(--mute); font-size: 0.78rem; margin: 0.15rem 0 1rem; }
    .mock-badge {
      display: inline-block;
      background: var(--warn-soft);
      color: var(--warn);
      font-size: 0.7rem;
      font-weight: 600;
      padding: 0.15rem 0.45rem;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 0.75rem;
    }

    .cal-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      font-weight: 600;
      font-size: 0.92rem;
    }
    .cal-nav button {
      border: none;
      background: transparent;
      color: var(--mute);
      cursor: pointer;
      font-size: 1.25rem;
      min-width: var(--tap);
      min-height: var(--tap);
      border-radius: 8px;
    }
    .cal-nav button:active { background: var(--line); color: var(--ink); }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 2px;
      margin-bottom: 1.25rem;
      text-align: center;
    }
    .cal-grid .dow {
      font-size: 0.68rem;
      color: var(--mute);
      padding: 0.25rem 0;
      font-weight: 500;
    }
    .cal-day {
      border: none;
      background: transparent;
      aspect-ratio: 1;
      border-radius: 8px;
      font-size: 0.85rem;
      cursor: pointer;
      color: var(--ink);
      font-family: inherit;
      padding: 0;
      min-height: 40px;
    }
    .cal-day:active { background: #ebe4d8; }
    .cal-day.muted { color: #a8a29e; }
    .cal-day.today { font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--accent); }
    .cal-day.selected {
      background: var(--accent);
      color: #fff;
      font-weight: 600;
    }
    .cal-day.has-items::after {
      content: "";
      display: block;
      width: 3px; height: 3px;
      background: var(--accent);
      border-radius: 50%;
      margin: -2px auto 0;
    }
    .cal-day.selected.has-items::after { background: #fff; }

    .sprint-list { list-style: none; padding: 0; margin: 0; }
    .sprint-list h3 {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--mute);
      margin: 0 0 0.5rem;
      font-weight: 600;
    }
    .sprint-list button {
      display: block;
      width: 100%;
      text-align: left;
      border: none;
      background: transparent;
      padding: 0.75rem 0.65rem;
      border-radius: 10px;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.95rem;
      color: var(--ink);
      margin-bottom: 2px;
      min-height: var(--tap);
    }
    .sprint-list button:active { background: #ebe4d8; }
    .sprint-list button.active {
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 600;
    }
    .sprint-list .meta { display: block; font-size: 0.72rem; color: var(--mute); font-weight: 400; }

    /* —— Main —— */
    .main {
      padding: 1rem 0.85rem calc(5.5rem + var(--safe-b));
      width: 100%;
      order: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
    .main-inner {
      width: 100%;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }
    .view-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.8rem;
      color: var(--mute);
      margin-bottom: 0.65rem;
      flex-wrap: wrap;
    }
    .view-chip strong { color: var(--ink); font-weight: 600; }
    .view-chip button {
      border: 1px solid var(--line);
      background: var(--panel);
      border-radius: 999px;
      padding: 0.35rem 0.7rem;
      font-size: 0.78rem;
      cursor: pointer;
      font-family: inherit;
      color: var(--mute);
      min-height: 36px;
    }

    h1 {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 1.35rem;
      letter-spacing: -0.02em;
      margin: 0 0 0.35rem;
      line-height: 1.25;
    }
    .focus-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      align-items: center;
      margin-bottom: 1rem;
      color: var(--mute);
      font-size: 0.85rem;
    }
    .pill {
      display: inline-block;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 0.2rem 0.65rem;
      font-size: 0.78rem;
      color: var(--ink);
    }
    .pill.track { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      align-items: stretch;
      margin-bottom: 1rem;
      padding-bottom: 0.85rem;
      border-bottom: 1px solid var(--line);
    }
    .toolbar .spacer { display: none; }
    .btn {
      border: 1px solid var(--line);
      background: var(--panel);
      border-radius: 10px;
      padding: 0.65rem 0.85rem;
      font-size: 0.9rem;
      font-family: inherit;
      cursor: pointer;
      color: var(--ink);
      box-shadow: var(--shadow);
      min-height: var(--tap);
      flex: 1 1 auto;
    }
    .btn:active { background: #fff; }
    .btn.primary {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .btn.ghost { box-shadow: none; background: transparent; }
    .toolbar-carry-label {
      flex: 1 1 100%;
      font-size: 0.9rem;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      min-height: var(--tap);
      padding: 0 0.15rem;
      background: var(--warn-soft);
      border-radius: 10px;
      padding-left: 0.75rem;
      border: 1px solid #fde68a;
    }
    .toolbar-carry-label input { width: 18px; height: 18px; accent-color: var(--warn); }

    .group { margin-bottom: 1.15rem; }
    .group-h {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--mute);
      font-weight: 600;
      margin: 0 0 0.4rem;
      padding-left: 0.15rem;
    }

    .item {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 0.5rem 0.65rem;
      align-items: start;
      padding: 0.7rem 0.5rem;
      border-radius: 10px;
      margin-bottom: 4px;
      background: rgba(255,255,255,0.35);
      width: 100%;
    }
    .item.selected { background: #fff; box-shadow: var(--shadow); outline: 1px solid var(--line); }
    .item.done .item-text { color: var(--done); text-decoration: line-through; text-decoration-color: #a8a29e; }
    .item.carried .item-text { color: var(--mute); }
    .item.hidden-by-filter { display: none; }

    .item-checks {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 0.4rem;
      padding-top: 0.2rem;
      flex-shrink: 0;
    }
    .item input[type="checkbox"] {
      width: 22px; height: 22px;
      accent-color: var(--accent);
      cursor: pointer;
      flex-shrink: 0;
    }
    .carry-check { accent-color: var(--warn) !important; }

    .item-body {
      min-width: 0;
      width: 100%;
    }
    .item-text {
      border: none;
      background: transparent;
      font: inherit;
      color: inherit;
      width: 100%;
      max-width: 100%;
      resize: none;
      padding: 0.1rem 0;
      outline: none;
      cursor: text;
      min-height: 1.4em;
      font-size: 0.95rem;
      line-height: 1.4;
      overflow: hidden; /* без мини-скроллбаров у textarea */
      overflow-wrap: break-word;
      word-break: normal;
      white-space: pre-wrap;
      display: block;
      box-sizing: border-box;
    }
    .item-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
      margin-top: 0.3rem;
    }
    .tag {
      font-size: 0.68rem;
      font-weight: 600;
      padding: 0.12rem 0.4rem;
      border-radius: 4px;
      background: #ebe4d8;
      color: #44403c;
    }
    .tag.p1 { background: var(--danger-soft); color: var(--danger); }
    .tag.p2 { background: var(--warn-soft); color: var(--warn); }
    .tag.p3 { background: #e7e5e4; color: #57534e; }
    .tag.q1 { background: var(--danger-soft); color: var(--danger); }
    .tag.q2 { background: var(--accent-soft); color: var(--accent); }
    .tag.status-carried { background: #fef3c7; color: #92400e; }
    .tag.status-done { background: #e7e5e4; color: #44403c; }
    .tag.basket { background: #e8eef5; color: #1e3a5f; }

    .item-actions {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      flex-shrink: 0;
      opacity: 1;
    }
    .icon-btn {
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--ink);
      cursor: pointer;
      padding: 0.35rem 0.45rem;
      border-radius: 8px;
      font-size: 0.72rem;
      font-weight: 600;
      font-family: inherit;
      line-height: 1.2;
      min-height: 36px;
      white-space: nowrap;
    }
    .icon-btn:active { background: var(--line); }
    .icon-btn:disabled { opacity: 0.35; }

    /* Today first on mobile */
    .today-box {
      order: -1;
      margin: 0 0 1.25rem;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 0.9rem 0.95rem;
      box-shadow: var(--shadow);
    }
    .today-box h2 {
      font-family: var(--serif);
      font-size: 1.1rem;
      margin: 0 0 0.15rem;
    }
    .today-box .hint { color: var(--mute); font-size: 0.8rem; margin-bottom: 0.65rem; }

    .lists-wrap { order: 0; }

    .carry-bar {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      margin: 0;
      padding: 0.75rem 0.85rem calc(0.75rem + var(--safe-b));
      background: #1c1917;
      color: #faf8f3;
      display: none;
      align-items: stretch;
      gap: 0.5rem;
      flex-wrap: wrap;
      z-index: 28;
    }
    .carry-bar.visible { display: flex; }
    .carry-bar span {
      font-size: 0.85rem;
      flex: 1 1 100%;
      padding-bottom: 0.15rem;
    }
    .carry-bar .btn {
      flex: 1;
      background: #fff;
      color: var(--ink);
      border-color: transparent;
    }
    .carry-bar .btn.primary { background: var(--accent); color: #fff; }

    .toast {
      position: fixed;
      bottom: calc(5.5rem + var(--safe-b));
      left: 50%;
      transform: translateX(-50%) translateY(12px);
      background: var(--ink);
      color: #faf8f3;
      padding: 0.65rem 1rem;
      border-radius: 10px;
      font-size: 0.88rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s, transform 0.2s;
      z-index: 50;
      max-width: calc(100vw - 2rem);
      text-align: center;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(28, 25, 23, 0.35);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
      z-index: 30;
    }
    .overlay.open { opacity: 1; pointer-events: auto; }

    /* Full-screen sheet on mobile */
    .drawer {
      position: fixed;
      inset: 0;
      width: 100%;
      background: var(--panel);
      transform: translateY(100%);
      transition: transform 0.25s ease;
      z-index: 40;
      display: flex;
      flex-direction: column;
      border: none;
      box-shadow: none;
    }
    .drawer.open { transform: translateY(0); }
    .drawer-h {
      padding: 0.85rem 1rem;
      padding-top: max(0.85rem, env(safe-area-inset-top));
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
    }
    .drawer-h h2 {
      font-family: var(--serif);
      font-size: 1.05rem;
      margin: 0;
      flex: 1;
      line-height: 1.3;
    }
    .drawer-h .icon-btn {
      min-width: var(--tap);
      min-height: var(--tap);
      font-size: 1.1rem;
    }
    .drawer-body {
      padding: 1rem 1rem calc(1.5rem + var(--safe-b));
      overflow-y: auto;
      flex: 1;
      -webkit-overflow-scrolling: touch;
    }
    .field { margin-bottom: 1rem; }
    .field label {
      display: block;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--mute);
      font-weight: 600;
      margin-bottom: 0.35rem;
    }
    .field select, .field input[type="text"], .field textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 0.7rem 0.75rem;
      font: inherit;
      font-size: 16px; /* iOS zoom prevent */
      background: #fff;
      color: var(--ink);
    }
    .field textarea { min-height: 88px; resize: vertical; }

    .timeline { list-style: none; padding: 0; margin: 0; }
    .timeline li {
      position: relative;
      padding: 0 0 1rem 1rem;
      border-left: 2px solid var(--line);
      margin-left: 0.35rem;
      font-size: 0.88rem;
    }
    .timeline li:last-child { padding-bottom: 0; }
    .timeline li::before {
      content: "";
      position: absolute;
      left: -5px; top: 0.35rem;
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--accent);
    }
    .timeline .when { color: var(--mute); font-size: 0.72rem; display: block; margin-bottom: 0.15rem; }
    .comment {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 0.65rem 0.75rem;
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
    }
    .comment .who { font-weight: 600; font-size: 0.8rem; }
    .comment .when { color: var(--mute); font-size: 0.72rem; margin-left: 0.35rem; }

    .footer-note {
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 1px dashed var(--line);
      font-size: 0.78rem;
      color: var(--mute);
    }
    .footer-note a { color: var(--accent); font-weight: 600; text-decoration: none; }

    .desktop-only { display: none !important; }

    /* —— Desktop enhancement —— */
    @media (min-width: 900px) {
      body { font-size: 15px; }
      :root { --sidebar-w: 240px; }

      .app {
        display: grid;
        grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
        flex-direction: unset;
        align-items: start;
      }
      .topbar { display: none; }
      .week-strip { display: none; }
      .desktop-only { display: inline-block !important; }

      .sidebar {
        display: block;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        background: var(--panel);
        border-right: 1px solid var(--line);
        padding: 1.25rem 1rem 2rem;
        inset: unset;
        z-index: auto;
      }
      .sidebar.open { display: block; align-items: unset; }
      .sidebar-sheet {
        max-height: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        overflow: visible;
      }
      .sidebar-sheet .sheet-grab,
      .sidebar-sheet .sheet-h { display: none; }
      .brand-block-desktop { display: block; }

      .main {
        padding: 1.75rem 2.5rem 3.5rem;
        max-width: none;
        width: 100%;
        min-width: 0;
        display: block;
      }
      .main-inner {
        max-width: 720px;
        display: flex;
        flex-direction: column;
      }
      .today-box {
        order: 2;
        margin-top: 1.75rem;
        margin-bottom: 0;
      }
      .lists-wrap { order: 1; }
      .footer-note { order: 3; }
      .view-chip, h1, .focus-row, .toolbar { order: 0; }
      h1 { font-size: 1.85rem; max-width: 36em; }

      .toolbar .spacer { display: block; flex: 1; }
      .toolbar-carry-label {
        flex: 0 0 auto;
        background: transparent;
        border: none;
        color: var(--mute);
        font-size: 0.8rem;
        min-height: auto;
        padding: 0;
      }
      .btn { flex: 0 0 auto; min-height: auto; padding: 0.4rem 0.75rem; font-size: 0.84rem; }

      /* Basecamp row: check + body only; actions float on hover */
      .item {
        position: relative;
        grid-template-columns: auto minmax(0, 1fr);
        background: transparent;
        padding: 0.65rem 0.35rem;
        gap: 0.55rem;
        margin-bottom: 0;
        border-radius: 6px;
      }
      .item:hover { background: rgba(255,255,255,0.7); }
      .item-checks {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.45rem;
        padding-top: 0.2rem;
        min-width: 16px;
      }
      .item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
        flex-shrink: 0;
      }
      .item-body { padding-right: 0.25rem; }
      .item-text {
        font-size: 0.95rem;
        line-height: 1.45;
        white-space: pre-wrap;
      }
      .item-meta {
        margin-top: 0.2rem;
        gap: 0.25rem;
      }

      .item-actions {
        position: absolute;
        top: 0.4rem;
        right: 0.35rem;
        flex-direction: row;
        gap: 0.15rem;
        opacity: 0;
        pointer-events: none;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 0.15rem;
        box-shadow: var(--shadow);
        z-index: 2;
      }
      .item:hover .item-actions,
      .item.selected .item-actions {
        opacity: 1;
        pointer-events: auto;
      }
      .icon-btn {
        border: none;
        background: transparent;
        color: var(--mute);
        min-height: 28px;
        padding: 0.25rem 0.45rem;
        font-size: 0.75rem;
        border-radius: 6px;
      }
      .icon-btn:hover { background: var(--line); color: var(--ink); }

      .drawer {
        inset: 0 0 0 auto;
        width: min(var(--drawer-w), 100vw);
        transform: translateX(100%);
        border-left: 1px solid var(--line);
        box-shadow: -8px 0 24px rgba(28, 25, 23, 0.08);
      }
      .drawer.open { transform: translateX(0); }
      .drawer-h { padding: 1rem 1.15rem; }
      .field select, .field input[type="text"], .field textarea {
        padding: 0.4rem 0.55rem;
        border-radius: 6px;
        font-size: inherit;
      }

      .carry-bar {
        position: sticky;
        bottom: 0;
        margin: 1.5rem -2.5rem -3.5rem;
        padding: 0.85rem 2.5rem;
        left: auto; right: auto;
        max-width: none;
      }
      .carry-bar span { flex: 1; }
      .toast { bottom: 5rem; }
    }

    @media (min-width: 1200px) {
      .main-inner { max-width: 780px; }
    }

/* app chrome */
.userbar{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:var(--mute);margin-left:auto}
.userbar a{color:var(--accent);font-weight:600;text-decoration:none}
.userbar form{display:inline;margin:0}
.conflict-banner{position:fixed;top:0;left:0;right:0;background:#9f1239;color:#fff;padding:.65rem 1rem;z-index:60;display:none;font-size:.9rem}
.conflict-banner.show{display:block}
.editing-hint{font-size:.72rem;color:var(--warn);margin-top:.15rem}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:var(--bg)}
.login-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:1.5rem;width:min(380px,100%);box-shadow:var(--shadow)}
.login-card h1{font-family:var(--serif);font-size:1.4rem;margin:0 0 .35rem}
.login-card label{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--mute);font-weight:600;margin:0.85rem 0 0.3rem}
.login-card input{width:100%;border:1px solid var(--line);border-radius:8px;padding:.65rem .75rem;font:inherit;font-size:16px;background:#fff}
.login-card .btn{width:100%;margin-top:1rem}
.login-error{background:var(--danger-soft);color:var(--danger);padding:.5rem .65rem;border-radius:8px;font-size:.85rem;margin-top:.75rem}
.users-table{width:100%;border-collapse:collapse;font-size:.9rem}
.users-table th,.users-table td{border:1px solid var(--line);padding:.5rem .65rem;text-align:left}
.users-table th{background:#ebe4d8}
