/* NWS Note Classic (1.1.7) - stylesheet extracted from the inline <style> so the site CSP (style-src 'self') applies unchanged.
   Fonts are bundled locally (OFL-1.1): no fonts.googleapis.com / fonts.gstatic.com requests. */
@font-face { font-family: 'Syne'; src: url('fonts/Syne-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Syne'; src: url('fonts/Syne-latin-ext.woff2') format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/JetBrainsMono-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
    --bg: #0a0e1a;
    --surface: #111827;
    --surface2: #1a2236;
    --border: #1e2d45;
    --accent: #00b3ff;   /* blue */
    --accent2: #00e38a;  /* blue‑green */
    --accent3: #10b981;
    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --danger: #ef4444;
    --warn: #f59e0b;
    --glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --radius: 14px;
    --radius-sm: 8px;
    --header-h: 56px;
    --toolbar-h: 64px;
    --statusbar-h: 48px;
    --font-mono: 'JetBrains Mono', monospace;
    --font-ui: 'Syne', sans-serif;
  }

  body.light {
    --bg: #f0f7ff;
    --surface: #ffffff;
    --surface2: #e8f4ff;
    --border: #cfe4ff;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-dim: #475569;
    --glow: 0 0 20px rgba(0, 179, 255, 0.14);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

  html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    transition: background 0.3s, color 0.3s;
  }

  /* ── APP SHELL ── */
  #app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  /* ── AMBIENT GLOW ── */
  #app::before {
    content: '';
    position: fixed;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
  #app::after {
    content: '';
    position: fixed;
    bottom: -200px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  /* ── HEADER ── */
  #header {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--header-h);
    padding: 0 12px 0 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    min-width: 0;
  }

  .header-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    min-width: 0;
    max-width: min(46%, 168px);
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0, 179, 255, 0.35));
  }
  .logo-mark svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .logo-text {
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: clamp(15px, 4.2vw, 18px);
    letter-spacing: -0.6px;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(90deg, #00b3ff 0%, #00d4a8 55%, #00e38a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .header-right {
    flex: 1;
    min-width: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .header-right::-webkit-scrollbar { display: none; }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    justify-content: flex-end;
    padding: 2px 4px;
    box-sizing: border-box;
  }

  .hdr-btn {
    width: 36px; height: 36px;
    border: none;
    background: var(--surface2);
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
  }
  .hdr-btn:active { transform: scale(0.9); background: var(--accent); color: #fff; }

  @media (max-width: 380px) {
    .logo-mark { width: 26px; height: 26px; }
    .header-logo { gap: 5px; max-width: min(44%, 140px); }
    .hdr-btn { width: 32px; height: 32px; font-size: 15px; }
    .header-actions { gap: 6px; }
  }

  /* ── TAB BAR ── */
  #tabBar {
    position: relative;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 0;
    height: 40px;
    padding: 0 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    scrollbar-width: none;
  }
  #tabBar::-webkit-scrollbar { display: none; }

  .tab {
    display: flex; align-items: center; gap: 6px;
    padding: 0 12px;
    height: 28px;
    background: var(--surface2);
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
  }
  .tab.active {
    background: var(--bg);
    color: var(--accent);
    border-color: var(--accent);
  }
  .tab .tab-close {
    font-size: 12px;
    opacity: 0.5;
    line-height: 1;
    padding: 2px;
  }
  .tab .tab-close:active { opacity: 1; color: var(--danger); }

  .tab-new {
    width: 28px; height: 28px;
    background: none;
    border: 1px dashed var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  .tab-new:active { border-color: var(--accent); color: var(--accent); }

  /* ── EDITOR AREA ── */
  #editorWrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: var(--bg);
  }

  #lineNums {
    width: 40px;
    padding: 14px 6px 14px 0;
    background: var(--surface);
    color: var(--text-muted);
    text-align: right;
    user-select: none;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    overflow: hidden;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
  }

  #editor {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    color: var(--text);
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    resize: none;
    width: 100%;
    overflow-y: auto;
    caret-color: var(--accent);
    -webkit-overflow-scrolling: touch;
    tab-size: 2;
  }
  #editor::placeholder { color: var(--text-muted); font-style: italic; }
  #editor::selection { background: rgba(0,212,255,0.2); }

  /* ── BOTTOM STATUS BAR ── */
  #statusBar {
    position: relative;
    z-index: 100;
    height: var(--statusbar-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    flex-shrink: 0;
    gap: 8px;
  }

  .status-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
  }

  .stat-chip {
    display: flex; align-items: center; gap: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    background: var(--surface2);
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
  }
  .stat-chip.green { color: var(--accent3); }
  .stat-chip.blue { color: var(--accent); }

  .status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  /* ── BOTTOM TOOLBAR ── */
  #toolbar {
    position: relative;
    z-index: 100;
    height: var(--toolbar-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    flex-shrink: 0;
    gap: 2px;
  }

  .tb-btn {
    flex: 1;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    position: relative;
    color: var(--text-muted);
    max-width: 70px;
  }

  .tb-btn:active { background: var(--surface2); transform: scale(0.92); color: var(--accent); }

  .tb-btn .tb-icon {
    font-size: 20px;
    line-height: 1;
  }
  .tb-btn .tb-label {
    font-size: 9px;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
  }

  .tb-btn.primary .tb-icon { 
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .tb-btn.primary .tb-label { color: var(--accent); opacity: 1; }

  /* ── MODAL OVERLAY ── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .modal-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .modal-sheet {
    width: 100%;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 85dvh;
    overflow-y: auto;
  }
  .modal-overlay.open .modal-sheet { transform: translateY(0); }

  .sheet-handle {
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 20px;
  }

  .sheet-title {
    font-size: 17px;
    font-weight: 700;
    padding: 0 20px 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .sheet-title.with-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .version-chip {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    white-space: nowrap;
  }

  .sheet-body { padding: 16px 20px; }

  /* File name input row */
  .input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }

  .input-row input {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
  }
  .input-row input:focus { border-color: var(--accent); }

  /* Extension grid */
  .ext-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .ext-chip {
    padding: 10px 4px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
  }
  .ext-chip.selected {
    background: rgba(0,212,255,0.12);
    border-color: var(--accent);
    color: var(--accent);
  }
  .ext-chip:active { transform: scale(0.95); }

  .btn-full {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s;
  }
  .btn-full.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
  }
  .btn-full.primary:active { transform: scale(0.98); opacity: 0.9; }
  .btn-full.secondary {
    background: var(--surface2);
    color: var(--text-dim);
    margin-top: 8px;
  }
  .preview-box {
    width: 100%;
    min-height: 180px;
    max-height: 52dvh;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }
  .preview-box img,
  .preview-box iframe {
    width: 100%;
    height: 52dvh;
    border: 0;
    object-fit: contain;
    background: #111;
  }
  .preview-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 2px 6px;
  }
  .help-footer {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.92;
  }
  #editor[readonly] {
    opacity: 0.9;
    cursor: default;
  }

  /* ── TOAST ── */
  #toast {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-family: var(--font-ui);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  #toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  #toast.success { border-color: var(--accent3); color: var(--accent3); }
  #toast.info { border-color: var(--accent); color: var(--accent); }

  /* ── SEARCH BAR ── */
  #searchBar {
    position: relative;
    z-index: 98;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
    display: none;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
  }
  #searchBar.visible { display: flex; }
  #searchInput {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
  }
  #searchInput:focus { border-color: var(--accent); }
  .search-count { font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); white-space: nowrap; }
  .search-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
  }

  /* ── SCROLLBAR ── */
  #editor::-webkit-scrollbar { width: 3px; }
  #editor::-webkit-scrollbar-track { background: transparent; }
  #editor::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  /* ── CURSOR LINE HIGHLIGHT ── */
  #cursorLine {
    position: absolute;
    left: 40px;
    right: 0;
    height: 23.8px; /* line height */
    background: rgba(0, 212, 255, 0.04);
    pointer-events: none;
    z-index: 2;
    display: none;
  }

  /* ── WORD COUNT BADGE ── */
  .wc-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
  }

  /* ── SAFE AREA ── */
  @supports (padding: env(safe-area-inset-bottom)) {
    #toolbar {
      padding-bottom: env(safe-area-inset-bottom, 0px);
      height: calc(var(--toolbar-h) + env(safe-area-inset-bottom, 0px));
    }
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  #header, #tabBar { animation: fadeIn 0.3s ease forwards; }

  /* ── LIGHT MODE overrides ── */
  body.light #editor { color: var(--text); }
  body.light #lineNums { background: var(--surface2); }
  body.light .logo-text {
    background: linear-gradient(90deg, #0099ee, #00c977);
    -webkit-background-clip: text;
    background-clip: text;
  }
  body.light .logo-mark rect[x="128"] { fill: #e8f4ff; }

  /* ── HELP ── */
  .help-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
  }
  .help-list li span.icon {
    display: inline-block;
    width: 24px;
  }

  .help-section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 12px 0 4px;
    color: var(--text);
  }

  .help-lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }
  .lang-flag {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface2);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .lang-flag.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    background: rgba(0, 179, 255, 0.1);
  }
  .lang-flag:active { transform: scale(0.92); }

  .trial-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: rgba(0, 227, 138, 0.12);
    color: var(--accent2);
    border: 1px solid rgba(0, 227, 138, 0.35);
    margin-bottom: 10px;
  }

  .modal-overlay.center {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.center .modal-sheet {
    border-radius: 20px;
    max-width: 420px;
    max-height: 90dvh;
    transform: translateY(20px) scale(0.96);
  }
  .modal-overlay.center.open .modal-sheet {
    transform: translateY(0) scale(1);
  }

  .license-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
  }
  .license-features li::before {
    content: '✓';
    color: var(--accent2);
    margin-right: 8px;
    font-weight: 700;
  }
  [dir="rtl"] .license-features li::before {
    margin-right: 0;
    margin-left: 8px;
  }

  .license-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 8px 0 4px;
  }
  .license-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
  }

  .btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-decoration: underline;
    font-family: var(--font-ui);
  }

  .help-unlock-btn {
    width: 100%;
    margin: 14px 0 8px;
    padding: 14px 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
  }
  .help-unlock-btn:active { transform: scale(0.98); opacity: 0.9; }
  .help-unlock-btn.secondary {
    background: var(--surface2);
    color: var(--text-dim);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 13px;
    margin-top: 0;
  }
  .help-unlocked-badge {
    display: block;
    margin: 14px 0 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 227, 138, 0.12);
    color: var(--accent2);
    border: 1px solid rgba(0, 227, 138, 0.35);
  }

  #app.app-locked #editorWrapper,
  #app.app-locked #toolbar,
  #app.app-locked #tabBar,
  #app.app-locked #statusBar,
  #app.app-locked #searchBar {
    pointer-events: none;
    opacity: 0.42;
    filter: grayscale(0.15);
  }
  #app.app-locked .hdr-btn:not(#helpBtn) {
    pointer-events: none;
    opacity: 0.45;
  }

  /* ── SEARCH / AI MENU ── */
  #searchMenu {
    position: absolute;
    top: calc(var(--header-h) + 4px);
    right: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    display: none;
    z-index: 150;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    min-width: 190px;
  }
  #searchMenu.open { display: block; }

  .search-menu-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
  }

  .search-menu-btn {
    width: 100%;
    border: none;
    background: var(--surface2);
    color: var(--text);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background 0.2s, transform 0.1s;
  }
  .search-menu-btn span.label {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .search-menu-btn:active {
    transform: scale(0.97);
    background: var(--accent);
    color: #fff;
  }

/* ── Classic web additions (CSP: replaces former inline style="" attributes) ── */
[hidden] { display: none !important; }
.sheet-text { color: var(--text-muted); font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
.sheet-text.small { font-size: 12px; margin-bottom: 16px; }
.sheet-text.tight { margin-bottom: 4px; }
.help-text { color: var(--text-muted); font-size: 13px; line-height: 1.55; margin-bottom: 8px; }
.help-section-title.spaced { margin-top: 18px; }
.help-close-btn { margin: 0 20px 16px; }
a.btn-full { display: block; text-align: center; text-decoration: none; }
.hdr-btn.hdr-new {
  width: auto; padding: 0 12px; gap: 6px; font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  color: var(--bg); background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent;
  text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
}
.classic-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 10px 0 14px; }
.classic-note a { color: var(--accent); }
