  :root {
    --red: #E8192C;
    --bg: #F0F2F5;
    --card: #FFFFFF;
    --card-inner: #F7F8FA;
    --border: #E5E7EB;
    --border-input: #DDE1E8;
    --text: #111827;
    --muted: #6B7280;
    --accent: #FF6B35;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

  /* ── FIXED BANNER ──────────────────────────────────────────── */
  .page-banner {
    position: fixed; top: 0; left: 0; right: 0;
    width: 100%; height: auto; display: block;
    border-radius: 0; margin: 0; z-index: 98;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
  }
  body.banner-collapsed .page-banner { transform: translateY(-100%); opacity: 0; pointer-events: none; }

  /* ── FAB BUTTONS ─────────────────────────────────────────────── */
  .fab-settings, .fab-refresh {
    position: fixed; right: 20px;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--red); color: #fff; border: none;
    box-shadow: 0 4px 20px rgba(232,25,44,0.45);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 500;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .fab-settings { bottom: 28px; }
  .fab-refresh  { bottom: 92px; }
  .fab-settings:hover, .fab-refresh:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(232,25,44,0.55); }
  .fab-settings:active, .fab-refresh:active { transform: scale(0.94); }

  .container { max-width: 980px; margin: 0 auto; padding: calc(var(--banner-h, 180px) + 16px) 16px 100px; transition: padding-top 0.4s cubic-bezier(0.4,0,0.2,1); }
  body.banner-collapsed .container { padding-top: 16px; }
  .page-logo { height: 120px; width: auto; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 10px 18px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }

  /* ── SITE BLOCK ────────────────────────────────────────────── */
  .site-block {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }
  .site-block-first { border-color: var(--red); }
  .site-block:not(.site-block-first):not(.site-block-open) { border-color: var(--border); }
  .site-block.site-block-open { box-shadow: 0 4px 18px rgba(0,0,0,0.08); }

  /* ── ACCORDION HEADER (always visible) ─────────────────────── */
  .site-block-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    background: var(--card);
    transition: background 0.15s;
    position: relative;
  }
  .site-block-header:hover { background: #FAFBFC; }

  .site-block-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; gap: 8px; }

  .site-num-badge {
    background: var(--red); color: #fff; border-radius: 8px;
    padding: 4px 11px; font-size: 0.75rem;
    font-family: 'Syne', sans-serif; font-weight: 700;
    white-space: nowrap; flex-shrink: 0;
  }
  .site-block-first .site-num-badge { background: var(--red); }
  .site-block:not(.site-block-first) .site-num-badge { background: #374151; }

  /* Summary pills — visible when collapsed */
  .site-summary { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .summary-pill {
    font-size: 0.72rem; font-weight: 500; color: var(--muted);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; padding: 3px 10px;
    max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .summary-pill.red { background: rgba(232,25,44,0.07); color: var(--red); border-color: rgba(232,25,44,0.2); }
  .summary-pill.empty { color: #B8BEC8; border-style: dashed; }
  /* When open, hide the summary */
  .site-block-open .site-summary { display: none; }

  /* Right side of header */
  .site-block-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

  .btn-remove-site {
    display: none; align-items: center; gap: 5px;
    padding: 6px 11px; border-radius: 8px;
    border: 1.5px solid #EF4444; background: #fff; color: #EF4444;
    font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
  }
  .btn-remove-site:hover { background: rgba(239,68,68,0.07); }

  /* Chevron */
  .site-chevron {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.15s;
  }
  .site-chevron svg { transition: transform 0.25s ease; }
  .site-block-open .site-chevron svg { transform: rotate(180deg); }
  .site-block-open .site-chevron { background: rgba(232,25,44,0.07); border-color: rgba(232,25,44,0.25); }

  /* ── COLLAPSIBLE BODY ───────────────────────────────────────── */
  .site-block-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-block-open .site-block-body {
    max-height: 9999px; /* large enough */
  }
  .site-block-body-inner {
    padding: 0 18px 20px;
    background: var(--card-inner);
    border-top: 1px solid var(--border);
  }
  /* spacer inside body */
  .site-body-top { padding-top: 18px; }

  /* ── SECTION CARDS ──────────────────────────────────────────── */
  .section-card { background: var(--card); border-radius: 14px; padding: 20px; margin-bottom: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
  .section-card:last-child { margin-bottom: 0; }
  .section-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
  .section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .col-span-2 { grid-column: span 2; }
  @media(max-width: 380px) { .grid-2 { grid-template-columns: 1fr; } .col-span-2 { grid-column: span 1; } }

  .field { display: flex; flex-direction: column; gap: 5px; }
  .field label { font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; }
  .field input, .field select, .field textarea {
    background: #fff; border: 1.5px solid var(--border-input); border-radius: 9px;
    color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
    padding: 10px 13px; width: 100%; transition: border-color 0.18s, box-shadow 0.18s;
    -webkit-appearance: none; appearance: none;
  }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,25,44,0.1); }
  .field input::placeholder { color: #B8BEC8; }
  .field textarea { resize: vertical; min-height: 72px; }
  .field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

  .coord-row { display: flex; gap: 8px; align-items: flex-end; }
  .coord-row .field { flex: 1; }
  .coord-sep { font-weight: 700; color: var(--muted); padding-bottom: 12px; font-size: 1.1rem; }

  .risk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 9px; }
  .risk-item { display: flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid var(--border-input); border-radius: 9px; padding: 11px 13px; cursor: pointer; transition: border-color 0.18s, background 0.18s; user-select: none; }
  .risk-item:hover { border-color: #9CA3AF; }
  .risk-item.checked { border-color: var(--red); background: rgba(232,25,44,0.05); }
  .risk-item input[type=checkbox] { display: none; }
  .risk-check { width: 19px; height: 19px; border-radius: 5px; border: 2px solid #C4C9D4; background: transparent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
  .risk-item.checked .risk-check { background: var(--red); border-color: var(--red); }
  .risk-check svg { display: none; }
  .risk-item.checked .risk-check svg { display: block; }
  .risk-label { font-size: 0.8rem; font-weight: 500; line-height: 1.25; }

  .priority-label-text { font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 7px; margin-top: 16px; }
  .risk-count-display { display: flex; align-items: center; gap: 10px; background: var(--card-inner); border: 1.5px solid var(--border-input); border-radius: 9px; padding: 11px 16px; }
  .risk-count-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--red); min-width: 24px; text-align: center; line-height: 1; }
  .risk-count-num.zero { color: #B8BEC8; }
  .risk-count-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

  .people-section { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .person-card { background: var(--card-inner); border: 1.5px solid var(--border); border-radius: 11px; padding: 14px; }
  .person-card-title { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 11px; display: flex; align-items: center; gap: 6px; }
  .person-fields { display: flex; flex-direction: column; gap: 9px; }
  .person-fields .field label { font-size: 0.63rem; }
  .person-fields .field input { background: #fff; }
  @media(max-width: 500px) { .people-section { grid-template-columns: 1fr; } }

  .toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
  .toggle-btn { flex: 1; min-width: 75px; padding: 10px 13px; border-radius: 9px; border: 1.5px solid var(--border-input); background: #fff; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.86rem; font-weight: 500; cursor: pointer; text-align: center; transition: all 0.15s; }
  .toggle-btn:hover { border-color: #9CA3AF; }
  .toggle-btn.active { border-color: var(--red); background: rgba(232,25,44,0.08); color: var(--red); font-weight: 600; }

  /* ── ADD SITE BUTTON ────────────────────────────────────────── */
  .btn-add-site {
    width: 100%; padding: 15px 24px; border-radius: 13px;
    background: #fff; border: 2px dashed var(--border-input);
    color: var(--muted); font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 0.92rem; cursor: pointer; transition: all 0.18s;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-bottom: 16px;
  }
  .btn-add-site:hover { border-color: var(--red); color: var(--red); background: rgba(232,25,44,0.03); }
  .btn-add-site .plus-icon { transition: transform 0.18s; display: inline-flex; }
  .btn-add-site:hover .plus-icon { transform: rotate(90deg); }

  /* ── NO PLAN BUTTON ─────────────────────────────────────────── */
  .btn-no-plan {
    width: 100%; padding: 13px 24px; border-radius: 13px;
    background: #fff; border: 2px solid #3B82F6;
    color: #3B82F6; font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 0.92rem; cursor: pointer; transition: all 0.18s;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-bottom: 16px;
  }
  .btn-no-plan:hover { background: #EFF6FF; border-color: #2563EB; color: #2563EB; }
  .btn-no-plan:active { transform: scale(0.98); }

  .action-area { margin-top: 8px; }
  .btn-submit { width: 100%; padding: 17px 24px; border-radius: 13px; background: var(--red); border: none; color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.97rem; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 6px 24px rgba(232,25,44,0.3); }
  .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(232,25,44,0.45); }
  .btn-submit:active { transform: translateY(0); }
  .site-count-hint { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 10px; min-height: 18px; }

  /* ── ENTRIES ────────────────────────────────────────────────── */
  #entries-section { margin-top: 36px; display: none; }
  .entries-header { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; color: #111827; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .entries-header-right { display: flex; gap: 8px; align-items: center; }
  .entries-count { color: var(--muted); font-size: 0.82rem; font-weight: 400; font-family: 'DM Sans'; }

  .entry-card { background: var(--card); border: 1px solid var(--border); border-radius: 11px; padding: 14px 18px 14px 22px; margin-bottom: 10px; position: relative; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: box-shadow 0.18s; }
  .entry-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); border-radius: 4px 0 0 4px; }
  .entry-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }
  .entry-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
  #entries-list { transition: max-height 0.4s ease, opacity 0.3s ease; max-height: 9999px; overflow: hidden; opacity: 1; }
  #entries-list.plans-collapsed { max-height: 0; opacity: 0; }
  .btn-toggle-plans { background: var(--bg); border: 1px solid var(--border); border-radius: 7px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: background 0.15s, transform 0.25s; flex-shrink: 0; }
  .btn-toggle-plans:hover { background: rgba(232,25,44,0.07); border-color: rgba(232,25,44,0.25); color: var(--red); }
  .btn-toggle-plans svg { transition: transform 0.25s ease; }
  .btn-toggle-plans.rotated svg { transform: rotate(-90deg); }
  .entry-site-id { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.97rem; color: #111827; }
  .entry-date-tag { color: #6B7280; font-weight: 400; font-size: 0.82rem; font-family: 'DM Sans'; margin-left: 6px; }
  .entry-badge { font-size: 0.68rem; font-weight: 600; border-radius: 20px; padding: 3px 10px; background: rgba(232,25,44,0.1); color: var(--red); white-space: nowrap; }
  .entry-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--muted); }
  .entry-meta b { color: #374151; font-weight: 500; }
  .entry-actions { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
  .btn-ea { padding: 7px 13px; border-radius: 8px; border: 1.5px solid var(--border-input); background: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.77rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s; }
  .btn-ea.excel { border-color: #16A34A; color: #16A34A; }
  .btn-ea.excel:hover { background: rgba(22,163,74,0.07); }
  .btn-ea.email { border-color: #3B82F6; color: #3B82F6; }
  .btn-ea.email:hover { background: rgba(59,130,246,0.07); }
  .btn-ea.del { border-color: #EF4444; color: #EF4444; }
  .btn-ea.del:hover { background: rgba(239,68,68,0.07); }

  .btn-clear { background: transparent; border: 1px solid var(--border-input); color: var(--muted); border-radius: 8px; padding: 6px 13px; font-size: 0.75rem; cursor: pointer; font-family: 'DM Sans'; transition: all 0.15s; }
  .btn-clear:hover { border-color: var(--red); color: var(--red); }

  /* Plan site rows inside saved entry card */
  .plan-sites-list { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 5px; }
  .plan-site-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; background: var(--bg); border-radius: 8px; padding: 7px 10px; }
  .plan-site-num { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.7rem; background: #374151; color: #fff; border-radius: 5px; padding: 1px 7px; flex-shrink: 0; }
  .plan-site-id  { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem; color: #111827; flex-shrink: 0; }
  .plan-site-meta { font-size: 0.75rem; color: var(--muted); }
  .plan-site-priority { font-size: 0.68rem; font-weight: 700; border-radius: 20px; padding: 2px 8px; flex-shrink: 0; }
  .plan-site-priority.p1 { background: rgba(22,163,74,0.1);  color: #16A34A; }
  .plan-site-priority.p2 { background: rgba(255,107,53,0.1); color: var(--accent); }
  .plan-site-priority.p3 { background: rgba(232,25,44,0.1);  color: var(--red); }

  /* ── EDIT MODE BANNER ───────────────────────────────────────── */
  #edit-mode-banner {
    display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    background: #FFF7ED; border: 1.5px solid #F97316; border-radius: 13px;
    padding: 13px 18px; margin-bottom: 18px;
  }
  #edit-mode-banner.visible { display: flex; }
  .edit-banner-left { display: flex; align-items: center; gap: 9px; }
  .edit-banner-icon { width: 32px; height: 32px; background: #F97316; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .edit-banner-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; color: #9A3412; }
  .edit-banner-sub  { font-size: 0.75rem; color: #C2410C; margin-top: 1px; }
  .btn-cancel-edit {
    padding: 8px 15px; border-radius: 9px; border: 1.5px solid #F97316;
    background: #fff; color: #EA580C; font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
  }
  .btn-cancel-edit:hover { background: #FFF7ED; }

  .btn-ea.edit { border-color: #F97316; color: #EA580C; }
  .btn-ea.edit:hover { background: rgba(249,115,22,0.07); }
  .btn-ea.use { border-color: #8B5CF6; color: #7C3AED; }
  .btn-ea.use:hover { background: rgba(139,92,246,0.07); }

  /* MODAL */
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 200; align-items: center; justify-content: center; padding: 16px; }
  .modal-overlay.open { display: flex; animation: fadein 0.2s ease; }
  @keyframes fadein { from{opacity:0} to{opacity:1} }
  .modal { background: #fff; border-radius: 18px; padding: 28px; max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
  .modal-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.12rem; color: #111827; margin-bottom: 5px; display: flex; align-items: center; gap: 9px; }
  .modal-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
  .modal .field { margin-bottom: 13px; }
  .modal .field input, .modal .field textarea { background: var(--bg); }
  .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
  .modal-btn { flex: 1; padding: 12px; border-radius: 10px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem; cursor: pointer; border: none; transition: all 0.15s; }
  .modal-btn.primary { background: #3B82F6; color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,0.3); }
  .modal-btn.primary:hover { background: #2563EB; }
  .modal-btn.cancel { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
  .modal-btn.cancel:hover { border-color: #9CA3AF; }
  .modal-btn.danger { background: #EF4444; color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,0.25); }
  .modal-btn.danger:hover { background: #DC2626; }
  .confirm-modal { max-width: 360px; text-align: center; }
  .confirm-icon { display: flex; justify-content: center; margin-bottom: 14px; }
  .confirm-message { font-size: 0.92rem; color: var(--text); line-height: 1.55; margin: 0 0 4px; }

  .toast { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #fff; border: 1.5px solid var(--border); border-radius: 13px; padding: 12px 20px; font-size: 0.86rem; font-weight: 600; z-index: 999; box-shadow: 0 8px 28px rgba(0,0,0,0.12); white-space: nowrap; }
  .toast.show { display: flex; align-items: center; gap: 7px; animation: fadeup 0.25s ease; }
  .toast.success { border-color: #16A34A; color: #16A34A; }
  .toast.info    { border-color: #3B82F6; color: #3B82F6; }
  .attach-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #1E3A5F; color: #fff; padding: 16px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.25); animation: slideUp 0.3s ease; }
  .attach-banner.show { display: block; }
  .attach-banner-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
  .attach-banner-body  { font-size: 0.83rem; opacity: 0.9; line-height: 1.5; }
  .attach-banner-file  { display: inline-block; margin-top: 8px; background: rgba(255,255,255,0.15); border-radius: 7px; padding: 6px 12px; font-family: monospace; font-size: 0.85rem; word-break: break-all; }
  .attach-banner-close { position: absolute; top: 12px; right: 16px; background: rgba(255,255,255,0.2); border: none; color: #fff; border-radius: 50%; width: 28px; height: 28px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  @keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
  @keyframes fadeup { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
  .site-ac { display:none; position:fixed; z-index:600; background:#fff; border:1.5px solid var(--red); border-radius:12px; box-shadow:0 6px 24px rgba(0,0,0,0.13); overflow:hidden; overflow-y:auto; max-height:260px; }
  .site-ac.open { display:block; }
  .site-ac-item { padding:10px 14px; cursor:pointer; border-bottom:1px solid var(--border); }
  .site-ac-item:last-child { border-bottom:none; }
  .site-ac-item:hover, .site-ac-item.hi { background:var(--card-inner); }
  .site-ac-num  { font-weight:700; font-size:0.88rem; color:var(--red); }
  .site-ac-meta { font-size:0.78rem; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  ::-webkit-scrollbar{width:6px} ::-webkit-scrollbar-track{background:var(--bg)} ::-webkit-scrollbar-thumb{background:#C4C9D4;border-radius:10px}

  @keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
  .site-block-new { animation: slideDown 0.28s ease; }

  /* ── SETTINGS BUTTON ──────────────────────────────────────────────────────── */
  .header-inner { gap: 10px; }
  .header-settings-btn { background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.35); color: #fff; border-radius: 50%; width: 34px; height: 34px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; flex-shrink: 0; }
  .header-settings-btn:hover { background: rgba(255,255,255,0.30); }

  /* ── SETTINGS PANEL ───────────────────────────────────────────────────────── */
  .settings-modal { max-width: 520px; max-height: 90vh; overflow-y: auto; }
  .settings-section { background: var(--card-inner, #F7F8FA); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
  .settings-section-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.92rem; color: #111827; margin-bottom: 3px; }
  .settings-section-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; line-height: 1.4; }
  .settings-phone-readonly { background: #ECEEF2 !important; color: var(--muted) !important; cursor: default; }
  .settings-save-btn { width: 100%; margin-top: 12px; padding: 11px; background: var(--red); color: #fff; border: none; border-radius: 10px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: background 0.15s; }
  .settings-save-btn:hover { background: #c5101f; }
  .settings-saved-indicator { display: none; font-size: 0.78rem; color: #059669; font-weight: 600; margin-top: 8px; text-align: center; }
  .settings-saved-indicator.visible { display: block; }
  .settings-footer { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border, #E5E7EB); }
  .settings-footer img { max-width: 200px; width: 100%; height: auto; display: block; margin: 0 auto 10px; border-radius: 8px; }
  .settings-footer p { font-size: 0.72rem; color: var(--muted); margin: 2px 0; line-height: 1.5; }

  /* ── LISTS LOADING OVERLAY ───────────────────────────────────────────────── */
  #lists-loading { position:fixed; inset:0; background:var(--bg,#F0F2F5); display:flex; align-items:center; justify-content:center; z-index:9999; }
  #lists-loading.hidden { display:none; }
  .ll-card { background:#fff; border-radius:18px; padding:40px 48px; text-align:center; box-shadow:0 8px 40px rgba(0,0,0,0.10); min-width:280px; }
  .ll-spinner { width:40px; height:40px; border:4px solid #F0F2F5; border-top-color:#E8192C; border-radius:50%; animation:spin .8s linear infinite; margin:0 auto 18px; }
  .ll-text { font-family:'Syne',sans-serif; font-weight:700; font-size:1rem; color:#1a1a2e; margin-bottom:6px; }
  .ll-sub  { font-size:0.8rem; color:#6B7280; }
  .ll-error-icon { font-size:2.2rem; margin-bottom:12px; }
  .ll-error-title { font-family:'Syne',sans-serif; font-weight:700; font-size:1rem; color:#E8192C; margin-bottom:8px; }
  .ll-error-msg { font-size:0.82rem; color:#6B7280; line-height:1.5; margin-bottom:18px; }
  .ll-error-msg code { background:#F0F2F5; padding:2px 6px; border-radius:4px; font-family:monospace; }
  .ll-retry { background:#E8192C; color:#fff; border:none; border-radius:10px; padding:10px 24px; font-family:'Syne',sans-serif; font-weight:700; font-size:0.9rem; cursor:pointer; }
  .ll-retry:hover { background:#c5101f; }
  @keyframes spin { to{ transform:rotate(360deg) } }
