/* ==========================================================================
   cybits.css — unified stylesheet
   Generated from the inline <style> blocks that previously lived in
   templates/base.html (global theme) and each page template (page-specific).
   All page styles are now consolidated here; templates no longer carry
   inline <style> blocks. Reuse these classes/vars for new pages.
   ========================================================================== */

/* ────────────────────────────────────────────────────────────────────────
   1. GLOBAL THEME (was templates/base.html)
   Shared variables, reset, shell, sidebar, topbar, buttons, forms.
   ──────────────────────────────────────────────────────────────────────── */

    :root {
      --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "Liberation Mono", monospace;
      --bg: #000000;
      --bg-2: #050805;
      --panel: #08110a;
      --panel-strong: #0b160d;
      --panel-soft: rgba(0, 255, 65, 0.04);
      --sidebar: #07110c;
      --text: #d6ffdf;
      --muted: rgba(0, 255, 65, 0.72);
      --line: rgba(0, 255, 65, 0.24);
      --primary: #00ff41;
      --primary-strong: #00e63a;
      --secondary: #00ff41;
      --highlight: #d6ffdf;
      --shadow: rgba(0, 255, 65, 0.12);
      --glow: rgba(0, 255, 65, 0.22);
    }

    * { box-sizing: border-box; }
    ::selection {
      background: #00e85a;
      color: #061008;
    }
    ::-moz-selection {
      background: #00e85a;
      color: #061008;
    }
    html, body {
      margin: 0;
      min-height: 100%;
      font-family: var(--font-mono);
      background: #000000;
      color: var(--text);
    }
    body {
      background-attachment: fixed;
    }
    a { color: inherit; text-decoration: none; }
    button, input, textarea, select { font: inherit; }
    .shell {
      display: flex;
      min-height: 100vh;
      background: transparent;
    }
    .sidebar {
      width: 254px;
      flex: 0 0 254px;
      background: linear-gradient(180deg, #07110c 0%, #0a1510 52%, #050a07 100%);
      color: #00e85a;
      border-right: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      position: sticky;
      top: 0;
      height: 100vh;
      transition: margin-left 0.3s ease;
      z-index: 3;
    }
    .brand {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 8px;
      height: 161px;
      padding: 18px 12px 14px;
      color: #00e85a;
      background: linear-gradient(rgba(2, 12, 6, 0.56), rgba(2, 12, 6, 0.7)), url("/assets/bg.jpg") center / cover no-repeat;
      border: 0;
      border-radius: 0;
      box-shadow: inset 0 -1px 0 rgba(0, 232, 90, 0.18), 0 0 18px rgba(0, 232, 90, 0.08);
      font-size: 0.9rem;
      letter-spacing: 0;
    }
    .brand img {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      object-fit: cover;
      display: block;
      border: 1px solid #00e85a;
      background: #050805;
      box-shadow: 0 0 18px rgba(0, 232, 90, 0.18);
    }
    .brand span {
      display: inline-block;
      line-height: 1;
      font-weight: 600;
      text-shadow: 0 0 8px rgba(0, 232, 90, 0.45);
    }
    .brand-cursor {
      display: inline-block;
      width: 8px;
      height: 1em;
      margin-left: 4px;
      vertical-align: -2px;
      background: #00e85a;
      animation: brand-cursor-blink 1s steps(2, start) infinite;
    }
    @keyframes brand-cursor-blink { 50% { opacity: 0; } }
    .side-nav {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .side-nav a {
      display: flex;
      align-items: center;
      gap: 10px;
      color: rgba(0, 232, 90, 0.48);
      padding: 14px 24px;
      border-radius: 0;
      transition: 0.22s ease;
      border-bottom: 1px solid rgba(0, 232, 90, 0.12);
      font-weight: 600;
      letter-spacing: 0;
      font-size: 0.86rem;
    }
    .side-nav a:hover,
    .side-nav a.active {
      color: #061008;
      background: #00e85a;
      border-bottom-color: #00e85a;
      box-shadow: inset 4px 0 0 #00ff66;
      text-shadow: none;
    }
    .sidebar-footer {
      margin-top: auto;
      color: rgba(0, 232, 90, 0.44);
      font-size: 0.76rem;
      font-weight: 500;
      line-height: 1.7;
      padding: 14px 12px 10px;
      text-align: center;
      border-top: 1px solid rgba(0, 232, 90, 0.12);
    }
    .sidebar-toggle {
      position: absolute;
      top: 18px;
      right: -30px;
      width: 30px;
      height: 30px;
      padding: 0;
      border: 0;
      border-radius: 3px;
      background: #00e85a;
      color: #061008;
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
      z-index: 4;
      box-shadow: 0 0 12px rgba(0, 232, 90, 0.28);
    }
    .shell.sidebar-collapsed .sidebar {
      margin-left: -254px;
    }
    .shell.sidebar-collapsed .sidebar-toggle {
      right: -30px;
    }
    .main-panel {
      flex: 1;
      min-width: 0;
      padding: 28px 36px 40px;
      color: var(--text);
    }
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 28px;
    }
    .eyebrow {
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.18em;
      font-size: 0.7rem;
      font-weight: 800;
    }
    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--primary);
      background: transparent;
      color: var(--primary);
      padding: 10px 16px;
      border-radius: 2px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }
    .btn:hover {
      transform: translateY(-1px);
      background: rgba(0, 255, 65, 0.12);
      box-shadow: 0 0 16px var(--glow);
    }
    .btn-primary,
    .btn.primary {
      background: var(--primary);
      border: 1px solid var(--primary);
      color: #001b08;
      box-shadow: 0 0 16px var(--glow);
    }
    .btn-primary:hover {
      background: #33ff66;
    }
    .page-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 0;
      box-shadow: 0 0 18px var(--shadow);
      padding: 24px;
    }
    /* ── Terminal-themed admin forms ── */
    .form-wrap {
      display: flex;
      justify-content: center;
      padding: 24px 0 40px;
    }
    .form-box {
      position: relative;
      display: block;
      width: 100%;
      max-width: 720px;
      background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
      border: 1px solid var(--line);
      border-top: 2px solid var(--primary);
      border-radius: 4px;
      box-shadow: 0 0 22px var(--shadow);
      padding: 26px 28px 30px;
      margin-top: 6px;
    }
    .form-box > .eyebrow { margin-bottom: 4px; }
    .form-box h2 {
      margin: 0 0 6px;
      font-size: 1.35rem;
      letter-spacing: -0.01em;
      color: var(--primary);
      text-shadow: 0 0 10px var(--glow);
    }
    .form-box form { margin-top: 20px; }
    .form-box .field { margin-bottom: 18px; }
    .form-box label {
      display: block;
      margin-bottom: 7px;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }
    .form-box label::before { content: "$ "; color: var(--primary); }
    .form-box input[type="text"],
    .form-box input[type="email"],
    .form-box input[type="password"],
    .form-box select,
    .form-box textarea {
      display: block;
      width: 100%;
      min-height: 44px;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 3px;
      background: rgba(0, 0, 0, 0.55);
      color: var(--text);
      font-size: 0.95rem;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .form-box textarea {
      min-height: auto;
      line-height: 1.6;
      resize: vertical;
    }
    .form-box textarea.code {
      font-size: 0.8rem;
      color: var(--muted);
    }
    .form-box input:focus,
    .form-box select:focus,
    .form-box textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 1px var(--primary), 0 0 16px var(--glow);
      background: rgba(0, 0, 0, 0.72);
    }
    .form-box ::placeholder { color: rgba(214, 255, 223, 0.35); }
    .form-box .alert {
      margin: 0 0 20px;
      padding: 12px 14px;
      border: 1px solid #ff5f56;
      border-left: 3px solid #ff5f56;
      border-radius: 3px;
      background: rgba(255, 95, 86, 0.1);
      color: #ffb4ad;
      font-size: 0.85rem;
    }
    .form-box .form-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 26px;
      padding-top: 20px;
      border-top: 1px dashed var(--line);
    }
    /* ── Terminal-themed admin list / dashboard pages ── */
    .section-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }
    .section-head h2 {
      margin: 2px 0 0;
      font-size: 1.5rem;
      letter-spacing: -0.01em;
      color: var(--primary);
      text-shadow: 0 0 10px var(--glow);
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .card {
      width: 100%;
      background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
      border: 1px solid var(--line);
      border-top: 2px solid var(--primary);
      border-radius: 4px;
      box-shadow: 0 0 22px var(--shadow);
      padding: 8px 4px;
      overflow-x: auto;
    }
    .admin-table {
      width: 100%;
      border-collapse: collapse;
      color: var(--text);
    }
    .admin-table th {
      padding: 13px 16px;
      text-align: left;
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      border-bottom: 1px solid var(--line);
      white-space: nowrap;
    }
    .admin-table th::before { content: "» "; color: var(--primary); }
    .admin-table td {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(0, 255, 65, 0.08);
      vertical-align: middle;
    }
    .admin-table tbody tr { transition: background 0.15s ease; }
    .admin-table tbody tr:hover { background: var(--panel-soft); }
    .admin-table tbody tr:last-child td { border-bottom: none; }
    .admin-table .actions {
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }
    .admin-table .actions form { margin: 0; }
    .admin-table .btn { padding: 7px 12px; font-size: 0.8rem; }
    .admin-table .status {
      display: inline-block;
      padding: 3px 9px;
      border-radius: 999px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      border: 1px solid var(--line);
      color: var(--primary);
      background: rgba(0, 255, 65, 0.08);
    }
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    @media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }
    .feature {
      background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
      border: 1px solid var(--line);
      border-top: 2px solid var(--primary);
      border-radius: 4px;
      box-shadow: 0 0 22px var(--shadow);
      padding: 22px 24px;
    }
    .feature h3 {
      margin: 0 0 8px;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .feature p {
      margin: 0;
      font-size: 2.1rem;
      line-height: 1;
      color: var(--primary);
      text-shadow: 0 0 12px var(--glow);
      word-break: break-word;
    }
    .hero {
      display: grid;
      grid-template-columns: 1.5fr 0.9fr;
      gap: 22px;
      margin-bottom: 24px;
    }
    h1 {
      margin: 14px 0 10px;
      font-size: clamp(2.6rem, 5vw, 5.1rem);
      line-height: 0.96;
      letter-spacing: -0.08em;
      color: var(--primary);
    }
    .lead {
      color: var(--muted);
      line-height: 1.75;
      max-width: 64ch;
      font-size: 1.02rem;
    }
    .pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
    }
    .pill {
      border: 1px solid rgba(0, 255, 65, 0.35);
      background: rgba(0, 255, 65, 0.05);
      color: var(--highlight);
      display: inline-flex;
      align-items: center;
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 0.8rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
    .mini-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 18px;
    }
    .mini-box {
      border: 1px solid var(--line);
      border-radius: 0;
      background: var(--panel-soft);
      padding: 15px 14px;
      box-shadow: inset 0 0 0 1px rgba(0,255,65,0.01);
    }
    .mini-box strong {
      display: block;
      font-size: 1.35rem;
      margin-bottom: 4px;
      color: var(--primary);
    }
    .two-col {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
      gap: 22px;
      margin-top: 20px;
    }
    .clock-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 18px;
      margin-top: 16px;
    }
    .city {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      border-bottom: 1px dashed var(--line);
      padding: 9px 0;
      color: var(--muted);
    }
    .city strong {
      color: var(--text);
      font-weight: 600;
    }
    .link-list {
      list-style: none;
      margin: 16px 0 0;
      padding: 0;
      display: grid;
      gap: 8px;
    }
    .link-list a {
      display: block;
      padding: 10px 12px;
      border-radius: 0;
      border: 1px solid var(--line);
      background: var(--panel-soft);
      color: var(--muted);
    }
    .link-list a:hover {
      color: var(--primary);
      border-color: var(--primary);
      box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.12);
    }
    .article-list {
      display: grid;
      gap: 12px;
      margin-top: 14px;
    }
    .article-item {
      border: 1px solid var(--line);
      border-radius: 0;
      padding: 14px 16px;
      background: var(--panel-soft);
    }
    .article-item h3 {
      margin: 0 0 8px;
      font-size: 1.05rem;
    }
    .article-item p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
    }

    /* ── Shared list pagination (notes & bookmarks) ── */
    .pagination {
      margin-top: 20px;
      padding: 15px 0;
      border-top: 1px solid rgba(0, 232, 90, 0.2);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 15px;
    }
    .pagination-info {
      display: flex;
      align-items: center;
      gap: 15px;
      color: rgba(0, 232, 90, 0.72);
      font-size: 0.82rem;
    }
    .per-page-select {
      position: relative;
      display: inline-block;
      width: auto;
    }
    .per-page-select .pps-trigger {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border: 1px solid rgba(0, 232, 90, 0.35);
      background: #050805;
      color: #00e85a;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      cursor: pointer;
    }
    .per-page-select .pps-trigger::after {
      content: "";
      width: 6px;
      height: 6px;
      margin-left: 4px;
      border-right: 1.5px solid #00e85a;
      border-bottom: 1.5px solid #00e85a;
      transform: rotate(45deg);
      transition: transform 0.15s ease;
    }
    .per-page-select.open .pps-trigger::after {
      transform: rotate(225deg);
    }
    .per-page-select .pps-menu {
      display: none;
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      min-width: 100%;
      z-index: 50;
      padding: 4px 0;
      border: 1px solid rgba(0, 232, 90, 0.35);
      background: #050805;
      box-shadow: 0 0 12px rgba(0, 255, 65, 0.18);
    }
    .per-page-select.open .pps-menu {
      display: block;
    }
    .per-page-select .pps-option {
      display: block;
      width: 100%;
      padding: 7px 12px;
      border: 0;
      background: transparent;
      color: #00e85a;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      text-align: left;
      cursor: pointer;
      white-space: nowrap;
    }
    .per-page-select .pps-option:hover,
    .per-page-select .pps-option:focus-visible,
    .per-page-select .pps-option.selected {
      outline: none;
      background: #00e85a;
      color: #001b08;
    }
    .search-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      margin-bottom: 0;
      border: 1px solid rgba(0, 232, 90, 0.35);
      border-bottom: 0;
      background: rgba(8, 17, 10, 0.5);
    }
    .search-bar input {
      padding: 6px 10px;
      border: 1px solid rgba(0, 232, 90, 0.35);
      background: #050805;
      color: #00e85a;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      outline: none;
      min-width: 180px;
      border-radius: 0;
    }
    .search-bar input::placeholder { color: rgba(0, 232, 90, 0.4); }
    .search-bar input:focus { border-color: #00e85a; box-shadow: 0 0 0 2px rgba(0, 232, 90, 0.12); }
    .search-bar .btn-search {
      padding: 6px 14px;
      border: 1px solid #00e85a;
      background: #00e85a;
      color: #001b08;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 0;
      transition: background 0.15s ease;
    }
    .search-bar .btn-search:hover { background: #72ff9a; }
    .search-clear {
      border: 0;
      background: transparent;
      color: #00e85a;
      cursor: pointer;
      font-size: 0.78rem;
      padding: 4px 6px;
      font-family: var(--font-mono);
    }
    .search-clear:hover { text-decoration: underline; }
    .empty-row td {
      padding: 28px 14px;
      text-align: center;
      color: rgba(0, 232, 90, 0.55);
      font-style: italic;
      font-size: 0.85rem;
      border-top: 1px dashed rgba(0, 232, 90, 0.18);
    }
    .pagination-nav {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .pagination-nav a,
    .pagination-nav span.current {
      padding: 6px 12px;
      border: 1px solid rgba(0, 232, 90, 0.35);
      color: rgba(0, 232, 90, 0.72);
      text-decoration: none;
      font-size: 0.82rem;
      transition: all 0.15s ease;
    }
    .pagination-nav a:hover {
      background: rgba(0, 232, 90, 0.12);
      color: #00e85a;
    }
    .pagination-nav span.current {
      background: rgba(0, 232, 90, 0.2);
      color: #00e85a;
      border-color: #00e85a;
    }
    .pagination-nav span.dots {
      border: none;
      padding: 6px 4px;
    }

    @media (max-width: 900px) {
      .shell { display: block; }
      /* Sidebar becomes a slide-in drawer. It is hidden by default
         (collapsed on load via the init script below) and toggled by the
         persistent arrow button pinned to the top-right corner. */
      .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        min-height: 0;
        margin-left: -280px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.55);
        z-index: 20;
        overflow-y: auto;
        visibility: hidden;
        transition: margin-left 0.3s ease, visibility 0.3s ease;
      }
      .shell:not(.sidebar-collapsed) .sidebar {
        margin-left: 0;
        visibility: visible;
      }
      /* Toggle is fixed to the viewport corner so it stays visible whether
         the drawer is open or closed. */
      .sidebar-toggle {
        position: fixed;
        top: 14px;
        left: 14px;
        right: auto;
        z-index: 22;
        visibility: visible;
      }
      .hero, .two-col { grid-template-columns: 1fr; }
      .main-panel { padding: 18px 18px 30px; padding-top: 56px; }
    }

/* Page-scoped theme variables — hoisted from their wrapper selectors
   (.login-terminal, .dash, .bookmarks-page, .notes-*, .matrix-*) to :root
   so the shared button/tag classes can use the canonical theme vars. All
   pages share the same phosphor-green palette. */
:root {
  --d-green: #00e85a;
  --d-soft: rgba(0, 232, 90, 0.72);
  --d-panel: rgba(8, 17, 10, 0.94);
  --d-bg: #050805;
  --d-err: #ff4444;
  --n-green: #00e85a;
  --n-soft: rgba(0, 232, 90, 0.72);
  --n-panel: rgba(8, 17, 10, 0.94);
  --n-bg: #050805;
  --n-err: #ff4444;
  --bm-green: #00e85a;
  --bm-soft: rgba(0, 232, 90, 0.72);
  --bm-panel: rgba(8, 17, 10, 0.94);
  --bm-bg: #050805;
  --bm-err: #ff4444;
  --login-green: #00e85a;
  --login-soft: rgba(0, 232, 90, 0.72);
  --login-panel: rgba(8, 17, 10, 0.94);
  --login-bg: #050805;
  --login-err: #ff4444;
  --matrix-green: #00ff41;
  --matrix-green-soft: rgba(0, 255, 65, 0.72);
  --matrix-panel: #08110a;
  --matrix-bg: #050805;
  --matrix-foreground: #d6ffdf;
}

/* ────────────────────────────────────────────────────────────────────────
   2. ABOUT / PORTFOLIO  (was templates/about.html)
   ──────────────────────────────────────────────────────────────────────── */

  .pf-sec {
    position: relative;
    background: rgba(4, 12, 4, 0.82);
    border: 1px solid rgba(0, 232, 90, 0.28);
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(0, 232, 90, 0.10), inset 0 0 60px rgba(0, 232, 90, 0.03);
    margin-bottom: 22px;
    overflow: hidden;
  }
  .pf-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(0, 232, 90, 0.06);
    border-bottom: 1px solid rgba(0, 232, 90, 0.18);
  }
  .pf-dot { width: 12px; height: 12px; border-radius: 50%; }
  .pf-dot.r { background: #ff5f56; }
  .pf-dot.y { background: #ffbd2e; }
  .pf-dot.g { background: #27c93f; }
  .pf-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.5px;
  }
  .pf-body {
    padding: 18px 20px 22px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text);
  }
  .pf-body > p:first-of-type { margin-top: 0; }
  .pf-body h2 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
  }
  .pf-body h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 6px;
    border-left: 2px solid rgba(0, 232, 90, 0.35);
    padding-left: 10px;
  }
  .pf-body h3:first-child { margin-top: 0; }
  .pf-body p { margin: 6px 0; }
  .pf-body em { color: var(--muted); font-size: 0.86em; }
  .pf-body strong { color: #00e85a; font-weight: 600; }
  .pf-body ul {
    list-style: none;
    margin: 6px 0;
    padding: 0;
  }
  .pf-body li {
    padding: 3px 0 3px 16px;
    position: relative;
  }
  .pf-body li::before {
    content: "\25B9";
    position: absolute;
    left: 0;
    color: var(--muted);
  }
  .pf-body a { color: #72ff9a; text-decoration: underline; text-underline-offset: 3px; }
  .pf-body a:hover { text-shadow: 0 0 8px rgba(0, 232, 90, 0.5); }

  /* About section: photo with text wrapping around it */
  .pf-about-photo {
    float: left;
    width: 180px;
    aspect-ratio: 1;
    margin: 2px 22px 12px 0;
    border: 2px solid var(--primary);
    background: rgba(8, 17, 10, 0.94);
    box-shadow: 0 0 18px rgba(0, 232, 90, 0.18);
  }
  .pf-about-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(1) sepia(0.35) hue-rotate(65deg) saturate(1.25);
  }
  .pf-about-text p { margin: 0 0 10px; }
  .pf-about-text p:last-child { margin-bottom: 0; }
  @media (max-width: 600px) {
    .pf-about-photo {
      float: none;
      margin: 0 auto 14px;
    }
  }
  .pf-focus-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
  }
  .pf-focus-list li {
    padding: 6px 0;
    line-height: 1.6;
  }
  .pf-focus-list li::before { content: none; }
  .pf-focus-icon {
    display: inline-block;
    min-width: 44px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
  }


  /* Hero section: typewriter name + blinking cursor */
  .pf-hero-name {
    font-size: clamp(26px, 5vw, 38px);
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(0, 232, 90, 0.5);
    font-weight: 700;
    line-height: 1.2;
  }
  .pf-cursor {
    display: inline-block;
    width: 10px;
    height: 1.05em;
    background: var(--primary);
    vertical-align: text-bottom;
    margin-left: 4px;
    animation: pf-blink 1s steps(1) infinite;
  }
  @keyframes pf-blink { 50% { opacity: 0; } }
  .pf-hero-cmd {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
  }
  .pf-hero-cmd b { color: #72ff9a; font-weight: 600; }
  .pf-hero-sub {
    color: var(--muted);
    margin-top: 10px;
    font-size: 14px;
  }
  .pf-footer {
    text-align: center;
    font-size: 12px;
    color: rgba(214, 255, 223, 0.4);
    margin-top: 40px;
    letter-spacing: 1px;
    font-family: var(--font-mono);
  }
  .pf-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pf-contact-list li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #00e85a;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 12px;
    border: 1px solid rgba(0, 232, 90, 0.2);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
  }
  .pf-contact-list li a:hover {
    background: rgba(0, 232, 90, 0.08);
    border-color: rgba(0, 232, 90, 0.45);
  }
  .pf-social-icon {
    flex-shrink: 0;
  }
  /* Hero: intro paragraph sits below the typewriter name */
  .pf-sec-0 .pf-body > p {
    margin-top: 14px;
  }
  /* Contact: prompt line below the social list */
  .pf-sec-4 .pf-hero-cmd {
    margin-top: 18px;
  }
  /* Clears the floated About photo so the content below it (Areas of
     Focus) starts on a fresh line */
  .pf-about-clear {
    clear: both;
  }

/* ────────────────────────────────────────────────────────────────────────
   3. ARTICLE READ PAGE  (was templates/article.html)
   ──────────────────────────────────────────────────────────────────────── */

  .rd-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 0 40px;
  }

  /* Breadcrumb / back link */
  .rd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 22px;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
  }
  .rd-back:hover {
    color: var(--primary);
    gap: 10px;
  }

  /* Article card frame (terminal window) */
  .rd-card {
    position: relative;
    background: rgba(4, 12, 4, 0.82);
    border: 1px solid rgba(0, 232, 90, 0.28);
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(0, 232, 90, 0.10), inset 0 0 60px rgba(0, 232, 90, 0.03);
    overflow: hidden;
  }
  .rd-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(0, 232, 90, 0.06);
    border-bottom: 1px solid rgba(0, 232, 90, 0.18);
  }
  .rd-dot { width: 12px; height: 12px; border-radius: 50%; }
  .rd-dot.r { background: #ff5f56; }
  .rd-dot.y { background: #ffbd2e; }
  .rd-dot.g { background: #27c93f; }
  .rd-bar-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.5px;
  }

  .rd-body { padding: 30px 38px 36px; }
  @media (max-width: 600px) {
    .rd-body { padding: 22px 20px 28px; }
  }

  /* Header */
  .rd-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .rd-title {
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.2;
    color: #d6ffdf;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: 0.3px;
  }
  .rd-summary {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 22px;
    border-left: 2px solid rgba(0, 232, 90, 0.35);
    padding-left: 14px;
  }
  .rd-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 14px 0;
    margin-bottom: 26px;
    border-top: 1px solid rgba(0, 232, 90, 0.18);
    border-bottom: 1px solid rgba(0, 232, 90, 0.18);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
  }
  .rd-byline b { color: #72ff9a; font-weight: 600; }
  .rd-byline .rd-byline-item { display: inline-flex; align-items: center; gap: 7px; }

  /* Cover image */
  .rd-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0, 232, 90, 0.28);
    border-radius: 8px;
    margin-bottom: 28px;
    filter: grayscale(0.4) sepia(0.2) hue-rotate(65deg) saturate(1.1);
  }

  /* Prose */
  .rd-prose {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--text);
  }
  .rd-prose p { margin: 0 0 18px; }
  .rd-prose h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 34px 0 14px;
    letter-spacing: 0.3px;
  }
  .rd-prose h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 10px;
    border-left: 2px solid rgba(0, 232, 90, 0.4);
    padding-left: 12px;
  }
  .rd-prose h4 {
    color: #d6ffdf;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 22px 0 8px;
  }
  .rd-prose a { color: #72ff9a; text-decoration: underline; text-underline-offset: 3px; }
  .rd-prose a:hover { text-shadow: 0 0 8px rgba(0, 232, 90, 0.5); }
  .rd-prose strong { color: #00e85a; font-weight: 600; }
  .rd-prose em { color: var(--muted); }
  .rd-prose ul, .rd-prose ol {
    margin: 0 0 18px;
    padding-left: 4px;
    list-style: none;
  }
  .rd-prose li {
    position: relative;
    padding: 4px 0 4px 22px;
  }
  .rd-prose ul > li::before {
    content: "\25B9";
    position: absolute;
    left: 2px;
    color: var(--muted);
  }
  .rd-prose ol { counter-reset: rd-ol; }
  .rd-prose ol > li { counter-increment: rd-ol; }
  .rd-prose ol > li::before {
    content: counter(rd-ol) ".";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 600;
  }
  .rd-prose blockquote {
    margin: 0 0 18px;
    padding: 12px 18px;
    background: rgba(0, 232, 90, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    color: var(--muted);
    font-style: italic;
  }
  .rd-prose blockquote p:last-child { margin-bottom: 0; }
  .rd-prose code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: rgba(0, 232, 90, 0.08);
    border: 1px solid rgba(0, 232, 90, 0.2);
    border-radius: 4px;
    padding: 1px 6px;
    color: #72ff9a;
  }
  .rd-prose pre {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 232, 90, 0.22);
    border-radius: 8px;
    padding: 16px 18px;
    overflow-x: auto;
    margin: 0 0 20px;
  }
  .rd-prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
  }
  .rd-prose hr {
    border: none;
    border-top: 1px solid rgba(0, 232, 90, 0.2);
    margin: 28px 0;
  }
  .rd-prose img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0, 232, 90, 0.28);
    border-radius: 8px;
    margin: 8px 0 18px;
  }
  .rd-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 14px;
  }
  .rd-prose th, .rd-prose td {
    border: 1px solid rgba(0, 232, 90, 0.2);
    padding: 8px 12px;
    text-align: left;
  }
  .rd-prose th {
    background: rgba(0, 232, 90, 0.06);
    color: var(--primary);
    font-weight: 600;
  }

  /* Footer */
  .rd-foot {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 232, 90, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(214, 255, 223, 0.4);
  }
  .rd-foot a {
    color: var(--primary);
    text-decoration: none;
  }
  .rd-foot a:hover { text-shadow: 0 0 8px rgba(0, 232, 90, 0.5); }
  .rd-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 30px;
    padding: 16px;
    border: 1px solid rgba(0, 232, 90, 0.2);
    border-radius: 8px;
    background: rgba(0, 232, 90, 0.035);
  }
  .rd-share-label {
    color: rgba(214, 255, 223, 0.65);
    font-family: var(--font-mono);
    font-size: 12px;
  }
  .rd-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .rd-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(0, 232, 90, 0.32);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--primary);
    font: 12px var(--font-mono);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  }
  .rd-share-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 232, 90, 0.1);
    box-shadow: 0 0 10px rgba(0, 232, 90, 0.12);
  }
  .rd-share-primary { background: rgba(0, 232, 90, 0.12); }
  .rd-share-status {
    min-height: 1em;
    color: #72ff9a;
    font-family: var(--font-mono);
    font-size: 11px;
  }
  .rd-copy-buffer {
    position: fixed;
    left: -10000px;
    top: 0;
  }
  @media (max-width: 600px) {
    .rd-share { align-items: flex-start; flex-direction: column; }
    .rd-share-actions { width: 100%; }
  }

/* ────────────────────────────────────────────────────────────────────────
   4. ARTICLES LIST + EDITOR  (was templates/articles.html)
   ──────────────────────────────────────────────────────────────────────── */

  /* ── Quill editor theme (shared by Notes and the Articles editor) ── */
  .ql-toolbar.ql-snow {
    border: 1px solid rgba(0, 232, 90, 0.35);
    border-bottom: none;
    background: rgba(0, 232, 90, 0.04);
    border-radius: 0;
  }
  .ql-container.ql-snow {
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: #050805;
    color: #d6ffdf;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    border-radius: 0;
    box-shadow: none;
  }
  .ql-editor {
    min-height: 420px;
    padding: 16px 18px;
    color: #d6ffdf;
    line-height: 1.75;
  }
  .ql-editor:focus { outline: none; }
  .ql-editor.ql-blank::before { color: rgba(0, 232, 90, 0.3); font-style: normal; }
  .ql-toolbar .ql-stroke { stroke: #00e85a; }
  .ql-toolbar .ql-fill { fill: #00e85a; }
  .ql-toolbar .ql-picker-label { color: #00e85a; }
  .ql-toolbar .ql-picker-options {
    background: #0b160d;
    border: 1px solid rgba(0, 232, 90, 0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  .ql-toolbar .ql-picker-item { color: #00e85a; }
  .ql-toolbar .ql-picker-item:hover,
  .ql-toolbar .ql-picker-item.ql-selected { background: rgba(0, 232, 90, 0.12); }
  .ql-toolbar button:hover .ql-stroke, .ql-toolbar button.ql-active .ql-stroke { stroke: #72ff9a; }
  .ql-toolbar button:hover .ql-fill, .ql-toolbar button.ql-active .ql-fill { fill: #72ff9a; }
  .ql-tooltip {
    background: #0b160d;
    border: 1px solid rgba(0, 232, 90, 0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  .ql-tooltip input[type=text] {
    background: #050805; color: #d6ffdf;
    border: 1px solid rgba(0, 232, 90, 0.35);
    font-family: var(--font-mono);
  }
  .ql-tooltip a.ql-action, .ql-tooltip a.ql-remove { color: #00e85a; }
  .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: "Heading 1"; }
  .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "Heading 2"; }
  .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: "Heading 3"; }
  .ql-snow .ql-picker.ql-header .ql-picker-label:not([data-value])::before,
  .ql-snow .ql-picker.ql-header .ql-picker-item:not([data-value])::before { content: "Normal"; }
  .ql-editor h1 { font-size: 1.5rem; color: #00e85a; font-weight: 700; }
  .ql-editor h2 { font-size: 1.3rem; color: #00e85a; font-weight: 600; }
  .ql-editor h3 { font-size: 1.1rem; color: #00e85a; font-weight: 600; }
  .ql-editor a { color: #72ff9a; }
  .ql-editor code, .ql-editor pre {
    background: rgba(0, 232, 90, 0.08);
    border: 1px solid rgba(0, 232, 90, 0.2);
    font-family: var(--font-mono); color: #72ff9a;
  }
  .ql-editor pre { padding: 12px; margin: 8px 0; }
  .ql-editor blockquote {
    border-left: 3px solid #00e85a; margin-left: 0; padding-left: 16px;
    color: rgba(0, 232, 90, 0.72);
  }

  .dash {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    color: var(--d-green);
    font-family: var(--font-mono);
  }
  .dash-kicker {
    margin: 0 0 6px;
    color: var(--d-soft);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
  .dash-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .dash h1 {
    margin: 0 0 18px;
    color: var(--d-green);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }
  .dash-top h1 { margin-bottom: 0; }
  .dash-tabs {
    display: flex;
    gap: 8px;
  }
  .dash-tab {
    padding: 9px 16px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: transparent;
    color: var(--d-soft);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .dash-tab:hover {
    background: rgba(0, 232, 90, 0.1);
    color: var(--d-green);
  }
  .dash-tab.active {
    background: var(--d-green);
    border-color: var(--d-green);
    color: #061008;
  }
  .dash-msg {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--d-err);
    background: rgba(255, 68, 68, 0.08);
    color: var(--d-err);
    font-size: 0.82rem;
  }
  .dash-msg.ok {
    border-color: rgba(0, 232, 90, 0.5);
    background: rgba(0, 232, 90, 0.08);
    color: var(--d-green);
  }
  .dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .dash-col { min-width: 0; }
  .dash-label {
    display: block;
    margin: 0 0 8px;
    color: var(--d-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .dash-preview {
    border: 1px dashed rgba(0, 232, 90, 0.45);
    background: var(--d-panel);
    min-height: 480px;
    padding: 20px;
    color: var(--d-soft);
    font-size: 0.88rem;
    line-height: 1.7;
    word-break: break-word;
  }
  .dash-preview .empty-hint {
    color: rgba(0, 232, 90, 0.35);
    font-style: italic;
  }
  .dash-preview h1 { font-size: 1.5rem; color: var(--d-green); font-weight: 700; margin: 16px 0 8px; }
  .dash-preview h2 { font-size: 1.3rem; color: var(--d-green); font-weight: 600; margin: 14px 0 6px; }
  .dash-preview h3 { font-size: 1.1rem; color: var(--d-green); font-weight: 600; margin: 12px 0 4px; }
  .dash-preview p { margin: 6px 0; }
  .dash-preview a { color: #72ff9a; }
  .dash-preview code, .dash-preview pre {
    background: rgba(0, 232, 90, 0.08);
    border: 1px solid rgba(0, 232, 90, 0.2);
    font-family: var(--font-mono); color: #72ff9a; font-size: 0.82rem;
  }
  .dash-preview pre { padding: 12px; margin: 8px 0; overflow-x: auto; white-space: pre-wrap; }
  .dash-preview blockquote {
    border-left: 3px solid var(--d-green); margin: 8px 0; padding: 4px 16px;
  }
  .dash-preview ul, .dash-preview ol { padding-left: 24px; margin: 6px 0; }
  .dash-preview img { max-width: 100%; height: auto; }
  .dash-preview table { border-collapse: collapse; margin: 8px 0; width: 100%; }
  .dash-preview th, .dash-preview td {
    border: 1px solid rgba(0, 232, 90, 0.25);
    padding: 6px 10px; text-align: left;
  }
  .dash-preview th { background: rgba(0, 232, 90, 0.08); color: var(--d-green); }
  .dash-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  .dash-btn {
    padding: 11px 22px;
    border: 2px solid var(--d-green);
    background: var(--d-green);
    color: #061008;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
  }
  .dash-btn:hover { background: #72ff9a; }
  .dash-btn.ghost {
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: transparent;
    color: var(--d-soft);
    font-weight: 600;
  }
  .dash-btn.ghost:hover { background: rgba(0, 232, 90, 0.08); color: var(--d-green); }
  .dash-btn.danger {
    border-color: rgba(255, 68, 68, 0.45);
    background: transparent;
    color: rgba(255, 68, 68, 0.8);
    font-weight: 600;
  }
  .dash-btn.danger:hover { background: rgba(255, 68, 68, 0.1); color: var(--d-err); }
  .dash-note {
    margin-top: 10px;
    color: rgba(0, 232, 90, 0.5);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  /* ── Articles tab (list + create/edit/delete) ── */
  .dash-art-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .dash-art-table-wrap {
    border: 1px solid rgba(0, 232, 90, 0.25);
    background: var(--d-panel);
    overflow-x: auto;
  }
  .dash-art-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }
  .dash-art-table thead th {
    padding: 12px 14px;
    text-align: left;
    color: var(--d-soft);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
  }
  .dash-art-table tbody tr {
    border-bottom: 1px solid rgba(0, 232, 90, 0.12);
    transition: background 0.15s ease;
  }
  .dash-art-table tbody tr:hover { background: rgba(0, 232, 90, 0.06); }
  .dash-art-table tbody tr:last-child { border-bottom: none; }
  .dash-art-table td {
    padding: 12px 14px;
    color: var(--d-green);
    vertical-align: top;
  }
  .dash-art-table .col-actions {
    width: 250px;
    text-align: right;
    white-space: nowrap;
  }
  .dash-art-table .col-actions a,
  .dash-art-table .col-actions button {
    margin-left: 6px;
    padding: 5px 11px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    color: var(--d-soft);
    font-family: inherit;
    font-size: 0.72rem;
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .dash-art-table .col-actions a:hover {
    background: rgba(0, 232, 90, 0.12);
    color: var(--d-green);
  }
  .dash-art-table .col-actions button {
    border-color: rgba(255, 68, 68, 0.35);
    color: rgba(255, 68, 68, 0.7);
  }
  .dash-art-table .col-actions button:hover {
    background: rgba(255, 68, 68, 0.1);
    color: var(--d-err);
  }
  .dash-art-table .empty-row td {
    padding: 28px 14px;
    text-align: center;
    color: rgba(0, 232, 90, 0.55);
    font-style: italic;
    font-size: 0.85rem;
  }
  .dash-art-status {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
    color: var(--d-green);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .dash-art-status.draft {
    border-color: rgba(0, 232, 90, 0.18);
    background: transparent;
    color: rgba(0, 232, 90, 0.5);
  }

  /* ── Users tab (role-aware) ── */
  .dash-users-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .dash-users-table-wrap {
    border: 1px solid rgba(0, 232, 90, 0.25);
    background: var(--d-panel);
    overflow-x: auto;
  }
  .dash-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }
  .dash-users-table thead th {
    padding: 12px 14px;
    text-align: left;
    color: var(--d-soft);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
  }
  .dash-users-table tbody tr {
    border-bottom: 1px solid rgba(0, 232, 90, 0.12);
    transition: background 0.15s ease;
  }
  .dash-users-table tbody tr:hover { background: rgba(0, 232, 90, 0.06); }
  .dash-users-table tbody tr:last-child { border-bottom: none; }
  .dash-users-table td {
    padding: 12px 14px;
    color: var(--d-green);
    vertical-align: top;
  }
  .dash-users-table .col-actions {
    width: 320px;
    text-align: right;
    white-space: nowrap;
  }
  .dash-users-table .col-actions a,
  .dash-users-table .col-actions button {
    margin-left: 6px;
    padding: 5px 11px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    color: var(--d-soft);
    font-family: inherit;
    font-size: 0.72rem;
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .dash-users-table .col-actions a:hover {
    background: rgba(0, 232, 90, 0.12);
    color: var(--d-green);
  }
  .dash-users-table .col-actions button {
    border-color: rgba(255, 68, 68, 0.35);
    color: rgba(255, 68, 68, 0.7);
  }
  .dash-users-table .col-actions button:hover {
    background: rgba(255, 68, 68, 0.1);
    color: var(--d-err);
  }
  .dash-users-table .empty-row td {
    padding: 28px 14px;
    text-align: center;
    color: rgba(0, 232, 90, 0.55);
    font-style: italic;
    font-size: 0.85rem;
  }
  .dash-role {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
    color: var(--d-green);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .dash-role.admin {
    border-color: rgba(255, 200, 60, 0.5);
    background: rgba(255, 200, 60, 0.08);
    color: #ffd66b;
  }

  @media (max-width: 900px) {
    .dash-grid { grid-template-columns: 1fr; }
  }

/* ────────────────────────────────────────────────────────────────────────
   5. BOOKMARKS  (was templates/bookmarks.html)
   ──────────────────────────────────────────────────────────────────────── */

  .bookmarks-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    color: var(--bm-green);
    font-family: var(--font-mono);
  }
  .bm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .bm-header h1 {
    margin: 0;
    color: var(--bm-green);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }
  .bm-kicker {
    margin: 0 0 6px;
    color: var(--bm-soft);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
  .btn-new-bm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid var(--bm-green);
    background: var(--bm-green);
    color: #061008;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .btn-new-bm:hover {
    background: #72ff9a;
    box-shadow: 0 0 16px rgba(0, 232, 90, 0.25);
  }
  .bm-table-wrap {
    border: 2px solid var(--bm-green);
    background: var(--bm-panel);
    overflow-x: auto;
  }
  .bm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }
  .bm-table thead th {
    padding: 12px 14px;
    text-align: left;
    color: var(--bm-soft);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--bm-green);
    background: rgba(0, 232, 90, 0.06);
  }
  .bm-table tbody tr {
    border-bottom: 1px solid rgba(0, 232, 90, 0.12);
    transition: background 0.15s ease;
  }
  .bm-table tbody tr:hover {
    background: rgba(0, 232, 90, 0.06);
  }
  .bm-table tbody tr:last-child {
    border-bottom: none;
  }
  .bm-table td {
    padding: 12px 14px;
    color: var(--bm-green);
    vertical-align: top;
  }
  .bm-table .col-num {
    width: 40px;
    text-align: center;
    color: var(--bm-soft);
    font-size: 0.75rem;
  }
  .bm-table .col-title a {
    color: var(--bm-green);
    font-weight: 600;
  }
  .bm-table .col-title a:hover {
    text-decoration: underline;
  }
  .bm-table .col-tag {
    white-space: nowrap;
  }
  .bm-table .col-date {
    white-space: nowrap;
    color: var(--bm-soft);
    font-size: 0.75rem;
  }
  .bm-table .col-actions {
    width: 140px;
    text-align: right;
    white-space: nowrap;
  }
  .bm-table .col-actions a,
  .bm-table .col-actions button {
    margin-left: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    color: var(--bm-soft);
    font-family: inherit;
    font-size: 0.72rem;
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .bm-table .col-actions a:hover {
    background: rgba(0, 232, 90, 0.12);
    color: var(--bm-green);
  }
  .bm-table .col-actions button {
    border-color: rgba(255, 68, 68, 0.35);
    color: rgba(255, 68, 68, 0.7);
  }
  .bm-table .col-actions button:hover {
    background: rgba(255, 68, 68, 0.1);
    color: var(--bm-err);
  }
  .bm-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--bm-soft);
    font-size: 0.85rem;
  }
  .bm-msg {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--bm-err);
    background: rgba(255, 68, 68, 0.08);
    color: var(--bm-err);
    font-size: 0.82rem;
  }
  .bm-form {
    max-width: 640px;
  }
  .bm-form h1 {
    margin: 0 0 20px;
    color: var(--bm-green);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }
  .bm-form .field {
    margin-bottom: 18px;
  }
  .bm-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--bm-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .bm-form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: var(--bm-bg);
    color: var(--bm-green);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
    outline: none;
    border-radius: 0;
    box-sizing: border-box;
  }
  .bm-form input[type="text"]:focus {
    border-color: var(--bm-green);
    box-shadow: 0 0 0 2px rgba(0, 232, 90, 0.15);
  }
  .bm-form input::placeholder {
    color: rgba(0, 232, 90, 0.35);
  }
  .bm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }

  /* Shared tags (notes + bookmarks) */
  .tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  /* Shared form buttons (canonical look — the legacy .btn-save/.btn-cancel
     now render as the same squared green buttons used everywhere else). */
  .btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #001b08;
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 16px var(--glow);
    transition: background 0.18s ease;
  }
  .btn-save:hover { background: #33ff66; }
  .btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .btn-cancel:hover { background: rgba(0, 255, 65, 0.08); color: var(--primary); }
  .bm-view {
    max-width: 720px;
  }
  .bm-view h1 {
    margin: 0 0 8px;
    color: var(--bm-green);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
  }
  .bm-view-meta {
    margin-bottom: 16px;
    color: var(--bm-soft);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
  .bm-view-url {
    border: 1px solid rgba(0, 232, 90, 0.25);
    background: var(--bm-panel);
    padding: 20px;
    color: var(--bm-soft);
    font-size: 0.88rem;
    line-height: 1.75;
    word-break: break-all;
    min-height: 80px;
  }
  .bm-view-url a {
    color: var(--bm-green);
  }
  .bm-view-tags {
    margin-top: 16px;
  }
  .bm-view-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
    color: var(--bm-green);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

/* ────────────────────────────────────────────────────────────────────────
   6. HOME (article card grid)  (was templates/home_page.html)
   ──────────────────────────────────────────────────────────────────────── */

  .art-hero {
    margin-bottom: 24px;
  }
  .art-hero-cmd {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
  }
  .art-hero-cmd b { color: #72ff9a; font-weight: 600; }
  .art-hero-title {
    font-size: clamp(22px, 4vw, 32px);
    color: var(--primary);
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 232, 90, 0.4);
    font-weight: 700;
    line-height: 1.2;
  }
  .art-hero-sub {
    color: var(--muted);
    margin-top: 6px;
    font-size: 13px;
  }

  /* ── Home article search bar ── */
  .art-search {
    margin: 0 0 18px;
  }
  .art-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(8, 17, 10, 0.5);
  }
  .art-search-prompt {
    flex: 0 0 auto;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    user-select: none;
    pointer-events: none;
    white-space: pre;
  }
  .art-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: #050805;
    color: #00e85a;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    outline: none;
    border-radius: 0;
  }
  .art-search input[type="search"]::placeholder { color: rgba(0, 232, 90, 0.4); }
  .art-search input[type="search"]:focus {
    border-color: #00e85a;
    box-shadow: 0 0 0 2px rgba(0, 232, 90, 0.12);
  }
  .art-search .btn-search {
    flex: 0 0 auto;
    padding: 6px 14px;
    border: 1px solid #00e85a;
    background: #00e85a;
    color: #001b08;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s ease;
  }
  .art-search .btn-search:hover { background: #72ff9a; }
  .art-search .search-clear {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #00e85a;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 4px 6px;
    font-family: var(--font-mono);
  }
  .art-search .search-clear:hover { text-decoration: underline; }

  /* ── Card grid ──
     Fluid columns per breakpoint (no auto-fill) so the column count only
     changes at the viewport breakpoints — a logged-in user (wider sidebar)
     or a slightly narrower window no longer flips the card count/size. */
  .art-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
  }
  @media (max-width: 1279px) {
    .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 700px) {
    .art-grid { grid-template-columns: 1fr; }
  }

  .art-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(4, 12, 4, 0.82);
    border: 1px solid rgba(0, 232, 90, 0.28);
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(0, 232, 90, 0.08), inset 0 0 40px rgba(0, 232, 90, 0.02);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
  }
  .art-card:hover {
    border-color: rgba(0, 232, 90, 0.65);
    box-shadow: 0 0 28px rgba(0, 232, 90, 0.18), inset 0 0 50px rgba(0, 232, 90, 0.04);
    transform: translateY(-3px);
  }
  .art-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }

  /* Card cover image */
  .art-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(8, 17, 10, 0.94);
    border-bottom: 1px solid rgba(0, 232, 90, 0.18);
    flex-shrink: 0;
  }
  .art-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.6) sepia(0.25) hue-rotate(65deg) saturate(1.1);
    transition: filter 0.3s, transform 0.4s;
  }
  .art-card:hover .art-card-cover img {
    filter: grayscale(0.3) sepia(0.15) hue-rotate(65deg) saturate(1.2);
    transform: scale(1.03);
  }
  .art-card-cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 2.4rem;
    color: rgba(0, 232, 90, 0.18);
    letter-spacing: 4px;
  }
  .art-card-cover-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(0, 232, 90, 0.35);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--primary);
    letter-spacing: 0.5px;
  }

  /* Card body */
  .art-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
  }
  .art-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
  }
  .art-card-author {
    color: rgba(0, 255, 65, 0.6);
  }
  .art-card-date {
    color: rgba(214, 255, 223, 0.4);
  }
  .art-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d6ffdf;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .art-card:hover .art-card-title {
    color: var(--primary);
  }
  .art-card-summary {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }
  .art-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 0.5px;
    transition: gap 0.2s, text-shadow 0.2s;
  }
  .art-card:hover .art-card-cta {
    gap: 10px;
    text-shadow: 0 0 8px rgba(0, 232, 90, 0.5);
  }

  /* Empty state */
  .art-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
  }
  .art-empty-cmd {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(0, 255, 65, 0.5);
    margin-bottom: 10px;
  }
  .art-empty-msg {
    font-size: 15px;
  }

  .art-pager a.art-pager-num.is-current {
    background: rgba(0, 232, 90, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
  }

  /* ── Pagination ── */
  .art-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 20px;
  }
  .art-pager a,
  .art-pager span.art-pager-current,
  .art-pager .art-pager-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    border: 1px solid rgba(0, 232, 90, 0.28);
    border-radius: 6px;
    color: var(--text);
    background: rgba(4, 12, 4, 0.6);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }
  .art-pager a:hover {
    border-color: rgba(0, 232, 90, 0.6);
    background: rgba(0, 232, 90, 0.08);
    color: var(--primary);
  }
  .art-pager span.art-pager-current {
    background: rgba(0, 232, 90, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    cursor: default;
  }
  .art-pager .art-pager-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
  }
  .art-pager-info {
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: rgba(214, 255, 223, 0.4);
    margin-top: 6px;
    letter-spacing: 0.5px;
  }

/* ────────────────────────────────────────────────────────────────────────
   7. LOGIN  (was templates/login.html)
   ──────────────────────────────────────────────────────────────────────── */

  .login-terminal {
    max-width: 480px;
    min-height: calc(100vh - 68px);
    margin: -28px auto -40px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--login-green);
    font-family: var(--font-mono);
  }
  .login-box {
    width: 100%;
    border: 2px solid var(--login-green);
    background: var(--login-panel);
    padding: 32px 28px 28px;
    box-shadow: 0 0 24px rgba(0, 232, 90, 0.12);
  }
  .login-kicker {
    margin: 0 0 6px;
    color: var(--login-soft);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
  .login-box h1 {
    margin: 0 0 24px;
    color: var(--login-green);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }
  .login-field {
    margin-bottom: 18px;
  }
  .login-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--login-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .login-field input,
  .login-field input[type="text"],
  .login-field input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: var(--login-bg) !important;
    color: var(--login-green);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    outline: none;
    border-radius: 0;
    caret-color: var(--login-green);
  }
  .login-field input::ms-reveal,
  .login-field input::-ms-reveal,
  .login-field input::-ms-clear {
    display: none;
  }
  .login-field input:focus {
    border-color: var(--login-green);
    box-shadow: 0 0 0 2px rgba(0, 232, 90, 0.15);
    background: var(--login-bg);
  }
  .login-field input::placeholder {
    color: rgba(0, 232, 90, 0.35);
  }
  .login-btn {
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    border: 2px solid var(--login-green);
    background: var(--login-green);
    color: #061008;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .login-btn:hover {
    background: #72ff9a;
    box-shadow: 0 0 16px rgba(0, 232, 90, 0.25);
  }
  .login-btn:active {
    background: #00c745;
  }
  .login-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--login-err);
    background: rgba(255, 68, 68, 0.08);
    color: var(--login-err);
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .login-footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(0, 232, 90, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
  .login-footer a {
    color: var(--login-soft);
  }
  .login-footer a:hover {
    color: var(--login-green);
    text-decoration: underline;
  }

/* ────────────────────────────────────────────────────────────────────────
   8. NOTES + QUILL  (was templates/notes.html)
   ──────────────────────────────────────────────────────────────────────── */

  /* (Quill editor theme is defined once in the shared section above) */

  .notes-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    color: var(--n-green);
    font-family: var(--font-mono);
  }
  .notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .notes-header h1 {
    margin: 0;
    color: var(--n-green);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }
  .notes-kicker {
    margin: 0 0 6px;
    color: var(--n-soft);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
  .btn-new-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid var(--n-green);
    background: var(--n-green);
    color: #061008;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .btn-new-note:hover {
    background: #72ff9a;
    box-shadow: 0 0 16px rgba(0, 232, 90, 0.25);
  }
  .notes-table-wrap {
    border: 2px solid var(--n-green);
    background: var(--n-panel);
    overflow-x: auto;
  }
  .notes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }
  .notes-table thead th {
    padding: 12px 14px;
    text-align: left;
    color: var(--n-soft);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--n-green);
    background: rgba(0, 232, 90, 0.06);
  }
  .notes-table tbody tr {
    border-bottom: 1px solid rgba(0, 232, 90, 0.12);
    transition: background 0.15s ease;
  }
  .notes-table tbody tr:hover {
    background: rgba(0, 232, 90, 0.06);
  }
  .notes-table tbody tr:last-child {
    border-bottom: none;
  }
  .notes-table td {
    padding: 12px 14px;
    color: var(--n-green);
    vertical-align: top;
  }
  .notes-table .col-num {
    width: 40px;
    text-align: center;
    color: var(--n-soft);
    font-size: 0.75rem;
  }
  .notes-table .col-title a {
    color: var(--n-green);
    font-weight: 600;
  }
  .notes-table .col-title a:hover {
    text-decoration: underline;
  }
  .notes-table .col-tags {
    white-space: nowrap;
  }
  .tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
    color: var(--n-green);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }
  .notes-table .col-actions {
    width: 120px;
    text-align: right;
    white-space: nowrap;
  }
  .notes-table .col-actions a,
  .notes-table .col-actions button {
    margin-left: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    color: var(--n-soft);
    font-family: inherit;
    font-size: 0.72rem;
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .notes-table .col-actions a:hover {
    background: rgba(0, 232, 90, 0.12);
    color: var(--n-green);
  }
  .notes-table .col-actions button {
    border-color: rgba(255, 68, 68, 0.35);
    color: rgba(255, 68, 68, 0.7);
  }
  .notes-table .col-actions button:hover {
    background: rgba(255, 68, 68, 0.1);
    color: var(--n-err);
  }
  .notes-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--n-soft);
    font-size: 0.85rem;
  }
  .notes-msg {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--n-err);
    background: rgba(255, 68, 68, 0.08);
    color: var(--n-err);
    font-size: 0.82rem;
  }
  .note-form {
    max-width: 640px;
  }
  .note-form h1 {
    margin: 0 0 20px;
    color: var(--n-green);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }
  .note-form .field {
    margin-bottom: 18px;
  }
  .note-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--n-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .note-form input[type="text"],
  .note-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: var(--n-bg);
    color: var(--n-green);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
    outline: none;
    border-radius: 0;
    resize: vertical;
  }
  .note-form input[type="text"]:focus,
  .note-form textarea:focus {
    border-color: var(--n-green);
    box-shadow: 0 0 0 2px rgba(0, 232, 90, 0.15);
  }
  .note-form input::placeholder,
  .note-form textarea::placeholder {
    color: rgba(0, 232, 90, 0.35);
  }
  .note-form textarea {
    min-height: 180px;
  }
  .note-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }
  .note-view {
    max-width: 720px;
  }
  .note-view h1 {
    margin: 0 0 8px;
    color: var(--n-green);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
  }
  .note-view-meta {
    margin-bottom: 16px;
    color: var(--n-soft);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
  .note-view-content {
    border: 1px solid rgba(0, 232, 90, 0.25);
    background: var(--n-panel);
    padding: 20px;
    color: var(--n-soft);
    font-size: 0.88rem;
    line-height: 1.75;
    word-break: break-word;
    min-height: 120px;
  }
  .note-view-content h1 {
    font-size: 1.5rem;
    color: var(--n-green);
    font-weight: 700;
    margin: 16px 0 8px;
  }
  .note-view-content h2 {
    font-size: 1.3rem;
    color: var(--n-green);
    font-weight: 600;
    margin: 14px 0 6px;
  }
  .note-view-content h3 {
    font-size: 1.1rem;
    color: var(--n-green);
    font-weight: 600;
    margin: 12px 0 4px;
  }
  .note-view-content h4, .note-view-content h5, .note-view-content h6 {
    color: var(--n-green);
    margin: 10px 0 4px;
  }
  .note-view-content p {
    margin: 6px 0;
  }
  .note-view-content a {
    color: #72ff9a;
  }
  .note-view-content code, .note-view-content pre {
    background: rgba(0, 232, 90, 0.08);
    border: 1px solid rgba(0, 232, 90, 0.2);
    font-family: var(--font-mono);
    color: #72ff9a;
    font-size: 0.82rem;
  }
  .note-view-content pre {
    padding: 12px;
    margin: 8px 0;
    overflow-x: auto;
    white-space: pre-wrap;
  }
  .note-view-content code {
    padding: 2px 6px;
  }
  .note-view-content blockquote {
    border-left: 3px solid var(--n-green);
    margin: 8px 0;
    padding: 4px 16px;
    color: var(--n-soft);
  }
  .note-view-content ul, .note-view-content ol {
    padding-left: 24px;
    margin: 6px 0;
  }
  .note-view-content li {
    margin: 2px 0;
  }
  .note-view-content img {
    max-width: 100%;
    height: auto;
  }
  .note-view-content table {
    border-collapse: collapse;
    margin: 8px 0;
    width: 100%;
  }
  .note-view-content th, .note-view-content td {
    border: 1px solid rgba(0, 232, 90, 0.25);
    padding: 6px 10px;
    text-align: left;
  }
  .note-view-content th {
    background: rgba(0, 232, 90, 0.08);
    color: var(--n-green);
  }
  .note-view-content strong, .note-view-content b {
    color: var(--n-green);
  }
  .note-view-tags {
    margin-top: 16px;
  }
  .note-view-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
  }

/* ────────────────────────────────────────────────────────────────────────
   9. USERS LIST  (was templates/users.html)
   ──────────────────────────────────────────────────────────────────────── */

  .dash {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    color: var(--d-green);
    font-family: var(--font-mono);
  }
  .dash-kicker {
    margin: 0 0 6px;
    color: var(--d-soft);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
  .dash-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .dash h1 {
    margin: 0 0 18px;
    color: var(--d-green);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }
  .dash-top h1 { margin-bottom: 0; }
  .dash-msg {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--d-err);
    background: rgba(255, 68, 68, 0.08);
    color: var(--d-err);
    font-size: 0.82rem;
  }
  .dash-msg.ok {
    border-color: rgba(0, 232, 90, 0.5);
    background: rgba(0, 232, 90, 0.08);
    color: var(--d-green);
  }
  .dash-label {
    display: block;
    margin: 0 0 8px;
    color: var(--d-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .dash-btn {
    padding: 11px 22px;
    border: 2px solid var(--d-green);
    background: var(--d-green);
    color: #061008;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
  }
  .dash-btn:hover { background: #72ff9a; }
  .dash-btn.ghost {
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: transparent;
    color: var(--d-soft);
    font-weight: 600;
  }
  .dash-btn.ghost:hover { background: rgba(0, 232, 90, 0.08); color: var(--d-green); }
  .dash-btn.danger {
    border-color: rgba(255, 68, 68, 0.45);
    background: transparent;
    color: rgba(255, 68, 68, 0.8);
    font-weight: 600;
  }
  .dash-btn.danger:hover { background: rgba(255, 68, 68, 0.1); color: var(--d-err); }
  .dash-note {
    margin-top: 14px;
    color: rgba(0, 232, 90, 0.5);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  /* ── Users table ── */
  .dash-users-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .dash-users-table-wrap {
    border: 1px solid rgba(0, 232, 90, 0.25);
    background: var(--d-panel);
    overflow-x: auto;
  }
  .dash-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }
  .dash-users-table thead th {
    padding: 12px 14px;
    text-align: left;
    color: var(--d-soft);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
  }
  .dash-users-table tbody tr {
    border-bottom: 1px solid rgba(0, 232, 90, 0.12);
    transition: background 0.15s ease;
  }
  .dash-users-table tbody tr:hover { background: rgba(0, 232, 90, 0.06); }
  .dash-users-table tbody tr:last-child { border-bottom: none; }
  .dash-users-table td {
    padding: 12px 14px;
    color: var(--d-green);
    vertical-align: top;
  }
  .dash-users-table .col-actions {
    width: 320px;
    text-align: right;
    white-space: nowrap;
  }
  .dash-users-table .col-actions a,
  .dash-users-table .col-actions button {
    margin-left: 6px;
    padding: 5px 11px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    color: var(--d-soft);
    font-family: inherit;
    font-size: 0.72rem;
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .dash-users-table .col-actions a:hover {
    background: rgba(0, 232, 90, 0.12);
    color: var(--d-green);
  }
  .dash-users-table .col-actions button {
    border-color: rgba(255, 68, 68, 0.35);
    color: rgba(255, 68, 68, 0.7);
  }
  .dash-users-table .col-actions button:hover {
    background: rgba(255, 68, 68, 0.1);
    color: var(--d-err);
  }
  .dash-users-table .empty-row td {
    padding: 28px 14px;
    text-align: center;
    color: rgba(0, 232, 90, 0.55);
    font-style: italic;
    font-size: 0.85rem;
  }
  .dash-role {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
    color: var(--d-green);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .dash-role.admin {
    border-color: rgba(255, 200, 60, 0.5);
    background: rgba(255, 200, 60, 0.08);
    color: #ffd66b;
  }
  .dash-status {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(0, 232, 90, 0.35);
    background: rgba(0, 232, 90, 0.06);
    color: var(--d-green);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .dash-status.inactive {
    border-color: rgba(0, 232, 90, 0.18);
    background: transparent;
    color: rgba(0, 232, 90, 0.5);
  }

/* ────────────────────────────────────────────────────────────────────────
   10. UTILITY / TOOLS  (was templates/utility.html)
   ──────────────────────────────────────────────────────────────────────── */

  .utility-page {
    max-width: 1024px;
    margin: 0;
    padding-top: 0;
    color: var(--matrix-foreground);
  }
  .utility-page h1 {
    margin: 0 0 20px;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    color: var(--matrix-green);
  }
  .utility-lead {
    color: var(--matrix-green-soft);
    margin: 0 0 25px;
  }
  .utility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .utility-card {
    max-width: 1100px;
    margin: 0 auto;
    border: 2px solid var(--matrix-green);
    background: var(--matrix-panel);
    color: var(--matrix-green);
    padding: 20px;
    box-shadow: none;
  }
  .utility-card h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 600;
  }
  .utility-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--matrix-green-soft);
    font-size: 0.8rem;
  }
  .utility-mode-wrap {
    margin-bottom: 18px;
  }
  .utility-mode-label {
    display: block;
    margin-bottom: 8px;
    color: var(--matrix-green-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mode-slider {
    position: relative;
    display: flex;
    align-items: center;
    width: 160px;
    max-width: 100%;
    height: 34px;
    padding: 3px;
    box-sizing: border-box;
    border: 2px solid var(--matrix-green);
    border-radius: 999px;
    background: var(--matrix-bg);
    cursor: pointer;
    user-select: none;
    outline: none;
  }
  .mode-slider:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--matrix-green) 30%, transparent);
  }
  .mode-slider-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 999px;
    background: var(--matrix-green);
    box-shadow: 0 0 12px color-mix(in srgb, var(--matrix-green) 60%, transparent);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .mode-slider.decode .mode-slider-thumb {
    transform: translateX(100%);
  }
  .mode-slider-label {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--matrix-green-soft);
    transition: color 0.35s ease;
  }
  .mode-slider-encode { color: #001b08; }
  .mode-slider.decode .mode-slider-encode { color: var(--matrix-green-soft); }
  .mode-slider.decode .mode-slider-decode { color: #001b08; }
  .utility-card textarea,
  .utility-card input,
  .utility-card select {
    width: 100%;
    border: 0;
    background: transparent;
    color: #b8ffca;
    padding: 0;
    border-radius: 0;
    resize: vertical;
  }
  .utility-card textarea { min-height: 130px; max-height: 55vh; overflow-y: hidden; }
  .utility-card textarea::placeholder,
  .utility-card input::placeholder,
  .terminal-input::placeholder {
    color: rgba(0, 255, 65, 0.45);
    opacity: 1;
  }
  .utility-card input:focus,
  .utility-card textarea:focus,
  .utility-card select:focus {
    outline: 1px solid var(--matrix-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.12);
  }
  .utility-submit {
    margin-top: 12px;
    border: 1px solid #00e85a;
    background: #00e85a;
    color: #061008;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
  }
  .utility-submit:hover { background: #72ff9a; }
  .terminal-editor {
    position: relative;
    display: block;
    min-height: 52px;
    background: var(--matrix-bg);
    border: 2px solid var(--matrix-green);
    overflow: hidden;
  }
  .terminal-editor:focus-within {
    outline: none;
    box-shadow: none;
  }
  .terminal-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 10px;
    box-sizing: border-box;
    background: #212121;
    border-bottom: 1px solid rgba(0, 255, 65, 0.28);
  }
  .terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }
  .terminal-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.55);
  }
  .terminal-dot-red { background: #ff5f57; }
  .terminal-dot-yellow { background: #febc2e; }
  .terminal-dot-green { background: #28c840; }
  .terminal-title {
    flex: 1;
    text-align: center;
    color: rgba(214, 255, 223, 0.72);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    pointer-events: none;
  }
  .terminal-body {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    cursor: text;
  }
  .terminal-prefix {
    flex: 0 0 auto;
    color: var(--matrix-green);
    user-select: none;
    pointer-events: none;
    white-space: pre;
    line-height: 1.5;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.25);
  }
  .terminal-input {
    flex: 1;
    min-width: 0;
    min-height: 1.5em;
    max-height: none;
    padding: 0;
    margin: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--matrix-foreground);
    resize: none !important;
    overflow-y: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 1rem;
    letter-spacing: 0.01em;
    caret-color: transparent;
    box-shadow: none;
  }
  .terminal-editor .terminal-input:focus,
  .terminal-editor .terminal-input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }
  .terminal-input::placeholder {
    color: rgba(214, 255, 223, 0.72);
  }
  .terminal-input::selection,
  .utility-card textarea::selection,
  .utility-card input::selection,
  .utility-card select::selection {
    background: rgba(0, 255, 65, 0.36);
    color: #001b08;
  }
  .terminal-input::-moz-selection,
  .utility-card textarea::-moz-selection,
  .utility-card input::-moz-selection,
  .utility-card select::-moz-selection {
    background: rgba(0, 255, 65, 0.36);
    color: #001b08;
  }
  .terminal-input::selection {
    background: rgba(0, 232, 90, 0.26);
  }
  .terminal-cursor {
    position: absolute;
    top: 12px;
    width: 0.7ch;
    height: 1.1em;
    background: var(--matrix-green);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.45);
    border-radius: 0;
    pointer-events: none;
    opacity: 0;
    animation: terminal-caret-blink 1s step-end infinite;
  }
  .terminal-editor.focused .terminal-cursor {
    opacity: 1;
  }
  @keyframes terminal-caret-blink {
    0%, 48% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }
  .terminal-hint {
    margin-top: 14px;
    color: var(--matrix-green-soft);
    font-size: 0.78rem;
  }
  .terminal-count {
    float: right;
    color: rgba(0, 255, 65, 0.55);
  }
  .terminal-count.over-limit { color: #ff8e8e; }
  .utility-result {
    position: relative;
    margin-top: 16px;
    padding: 12px 52px 12px 14px;
    border: 1px dashed rgba(0, 255, 65, 0.55);
    background: rgba(0, 255, 65, 0.04);
    color: var(--matrix-foreground);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  }
  .utility-result-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--matrix-green);
    border-radius: 0;
    background: transparent;
    color: var(--matrix-green);
    cursor: pointer;
  }
  .utility-result-copy:hover,
  .utility-result-copy:focus-visible {
    outline: none;
    background: var(--matrix-green);
    color: #001b08;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.24);
  }
  .utility-result-copy svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.8;
  }
  .utility-result-copy.copied {
    background: var(--matrix-green);
    color: #001b08;
  }
  .utility-result-label {
    display: block;
    margin-bottom: 8px;
    color: var(--matrix-green-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .randomaksk-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .randomaksk-generate {
    flex: 0 0 auto;
    border: 2px solid var(--matrix-green);
    border-radius: 0;
    background: var(--matrix-green);
    color: #001b08;
    padding: 8px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .randomaksk-generate:hover,
  .randomaksk-generate:focus-visible {
    outline: none;
    background: transparent;
    color: var(--matrix-green);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.24);
  }
  .utility-error { color: #ff8e8e; }
  @media (max-width: 760px) {
    .utility-grid { grid-template-columns: 1fr; }
  }
