    :root {
      color-scheme: dark;
      --bg: #0b1120;
      --panel: #151f32;
      --panel-elevated: #1c2942;
      --border: #283753;
      --border-hover: #3b82f6;
      --text: #f8fafc;
      --muted: #94a3b8;
      --primary: #3b82f6;
      --primary-hover: #2563eb;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
      --purple: #8b5cf6;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body {
      max-width: 100%;
      overflow-x: hidden;
    }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      font-size: 13.5px;
      line-height: 1.45;
    }
    a { color: inherit; text-decoration: none; }

    /* Login Overlay (Member-Friendly Workspace Portal) */
    #login-screen {
      position: fixed; inset: 0;
      background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.16), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.12), transparent 45%),
        var(--bg);
      display: flex; align-items: center; justify-content: center;
      padding: 18px;
      z-index: 9999;
    }
    .login-card {
      background: linear-gradient(180deg, rgba(25, 37, 62, 0.96) 0%, rgba(17, 25, 42, 0.98) 100%);
      border: 1px solid rgba(59, 130, 246, 0.32);
      border-radius: 16px;
      width: 440px;
      max-width: 100%;
      padding: 26px 26px 22px;
      box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    }
    .login-top-row {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      margin-bottom: 16px;
    }
    .login-portal-badge {
      display: inline-flex; align-items: center; gap: 5px;
      background: rgba(59, 130, 246, 0.14);
      border: 1px solid rgba(59, 130, 246, 0.35);
      color: #93c5fd;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.4px;
      padding: 3px 9px;
      border-radius: 999px;
    }
    .login-brand-hdr {
      display: flex; align-items: flex-start; gap: 12px;
      margin-bottom: 20px;
    }
    .login-brand-icon {
      width: 44px; height: 44px; flex-shrink: 0;
      border-radius: 12px;
      background: linear-gradient(135deg, #2563eb, #059669);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
      box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    }
    .login-card h2 { font-size: 19px; margin-bottom: 4px; font-weight: 800; color: #f8fafc; }
    .login-card p { color: var(--muted); font-size: 12.3px; line-height: 1.5; margin-bottom: 18px; }
    .login-submit-btn {
      padding: 10px 14px;
      font-size: 13.5px;
      font-weight: 700;
      margin-top: 4px;
      background: linear-gradient(135deg, #3b82f6, #2563eb);
      box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
    }
    .login-features-bar {
      display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
      margin-top: 18px; padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.07);
      font-size: 11px; color: #94a3b8; font-weight: 600;
    }
    .tag-fresh {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
      color: #6ee7b7;
      border: 1px solid #10b981;
      box-shadow: 0 0 10px rgba(16, 185, 129, 0.28);
    }
    .series-row-card.tier-fresh {
      border-left: 3.5px solid #10b981;
    }
    .form-group { margin-bottom: 14px; }
    .form-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
    input[type="text"], input[type="password"], input[type="number"], select {
      background-color: #090e1a;
      border: 1px solid var(--border);
      color: var(--text);
      padding: 7px 11px;
      border-radius: 7px;
      font-size: 13px;
      outline: none;
      transition: border-color 0.15s;
      color-scheme: dark;
    }
    select option, select optgroup {
      background-color: #0b1222;
      color: #f8fafc;
    }
    input:focus, select:focus { border-color: var(--primary); }
    .w-full { width: 100%; }

    /* Buttons */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      background: var(--panel-elevated);
      color: var(--text);
      border: 1px solid var(--border);
      padding: 6px 12px;
      border-radius: 7px;
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
      white-space: nowrap;
    }
    .btn:hover { background: #263859; border-color: #475569; }
    .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
    .btn-primary:hover { background: var(--primary-hover); }
    .btn-success { background: #059669; border-color: #059669; color: #fff; }
    .btn-success:hover { background: #047857; }
    .btn-purple { background: #7c3aed; border-color: #7c3aed; color: #fff; }
    .btn-purple:hover { background: #6d28d9; }
    .btn-warning { background: #d97706; border-color: #d97706; color: #fff; }
    .btn-warning:hover { background: #b45309; }
    .btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
    .btn-sm { padding: 4px 9px; font-size: 11.5px; }

    /* Top Header */
    .topbar {
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px 14px;
      background: var(--panel);
      border-bottom: 1px solid var(--border);
      padding: 10px clamp(12px, 2vw, 22px);
      position: sticky; top: 0; z-index: 100;
    }
    .brand { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; font-weight: 700; font-size: 16px; }
    .nav-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
    .nav-tab {
      background: transparent;
      border: 1px solid transparent;
      color: var(--muted);
      padding: 6px 12px;
      border-radius: 7px;
      cursor: pointer;
      font-weight: 600;
      font-size: 13px;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .nav-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
    .nav-tab.active {
      background: rgba(59,130,246,0.14);
      color: #fff;
      border-color: rgba(59,130,246,0.45);
    }
    .user-area { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; margin-left: auto; }
    .role-pill {
      padding: 3px 9px;
      border-radius: 99px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      background: rgba(59,130,246,0.18);
      color: #60a5fa;
      border: 1px solid rgba(59,130,246,0.35);
    }

    /* Main Container */
    .container { max-width: 1720px; width: 100%; margin: 0 auto; padding: 16px clamp(12px, 2vw, 24px); }
    .filter-search-input {
      flex: 1 1 220px;
      max-width: 320px;
      min-width: 170px;
    }
    .table-scroll-wrap {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .tab-pane { display: none; }
    .tab-pane.active { display: block; }

    /* KPI Row */
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }
    .kpi-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 16px;
    }
    .kpi-card .label { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
    .kpi-card .val { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }

    /* Multi-Criteria Filter & Sort Panel */
    .filter-panel {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 15px;
      margin-bottom: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .filter-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 9px;
    }
    .filter-group {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #0b1222;
      border: 1px solid var(--border);
      border-radius: 7px;
      padding: 3px 8px;
    }
    .filter-group label {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }
    .filter-group select, .filter-group input {
      border: none;
      background-color: #0b1222;
      color: #f8fafc;
      padding: 4px 6px;
      font-size: 12.5px;
      color-scheme: dark;
    }
    .filter-group select option {
      background-color: #0b1222;
      color: #f8fafc;
    }
    .filter-group input[type="number"] {
      width: 72px;
      background: #131d33;
      border: 1px solid #283753;
      border-radius: 5px;
      padding: 3px 6px;
    }

    /* Multi-select Tag Filter Chips */
    .tag-filter-strip {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      padding-top: 4px;
      border-top: 1px dashed rgba(255,255,255,0.08);
    }
    .tag-filter-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      margin-right: 4px;
    }
    .tag-chip-filter {
      padding: 3px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      border: 1px solid var(--border);
      background: #0d1527;
      color: #cbd5e1;
      transition: all 0.15s;
      user-select: none;
    }
    .tag-chip-filter:hover { border-color: #475569; color: #fff; }
    .tag-chip-filter.active {
      background: rgba(59,130,246,0.22);
      border-color: #3b82f6;
      color: #fff;
      box-shadow: 0 0 10px rgba(59,130,246,0.3);
    }

    /* Column Header Strip (Modern 3-Zone Hierarchy - Fluid Laptop/Desktop Responsive) */
    .series-header-strip {
      display: grid;
      grid-template-columns: minmax(0, 3.5fr) minmax(135px, 1.6fr) minmax(0, 3.2fr) minmax(92px, 112px) minmax(195px, 225px);
      gap: 14px;
      align-items: center;
      padding: 8px 18px;
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--muted);
      border-bottom: 1px solid var(--border);
      margin-bottom: 10px;
    }
    .series-header-strip.no-revenue {
      grid-template-columns: minmax(0, 3.9fr) minmax(145px, 1.7fr) minmax(0, 3.4fr) minmax(195px, 225px);
    }

    /* Series Row Card (Aligned Columns with Dedicated Tags Column) */
    .series-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .series-row-card {
      display: grid;
      grid-template-columns: minmax(0, 3.5fr) minmax(135px, 1.6fr) minmax(0, 3.2fr) minmax(92px, 112px) minmax(195px, 225px);
      gap: 14px;
      align-items: center;
      background: #0d1526;
      border: 1px solid var(--border);
      border-radius: 11px;
      padding: 14px 18px;
      transition: transform 0.14s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
      position: relative;
      box-shadow: 0 2px 10px rgba(2, 6, 23, 0.28);
    }
    .series-row-card > div { min-width: 0; }
    .series-row-card.no-revenue {
      grid-template-columns: minmax(0, 3.9fr) minmax(145px, 1.7fr) minmax(0, 3.4fr) minmax(195px, 225px);
    }
    .series-tags-col {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      align-content: center;
      gap: 5px;
    }
    .series-row-card:hover {
      border-color: var(--primary);
      background: #131e36;
      box-shadow: 0 6px 20px rgba(15, 23, 42, 0.45);
      transform: translateY(-1px);
      z-index: 2;
    }
    @media (max-width: 1380px) {
      .series-header-strip, .series-row-card {
        padding: 11px 14px;
        gap: 10px;
      }
      .series-metrics-zone { gap: 12px; }
      .nav-tab { padding: 5px 10px; font-size: 12.5px; }
    }
    @media (max-width: 1080px) {
      .series-header-strip { display: none; }
      .series-row-card, .series-row-card.no-revenue {
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .series-actions-zone { justify-content: flex-start; }
    }

    .title-inline-wrap {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
    }
    .meta-subline {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
      font-size: 12px;
      color: var(--muted);
    }
    .meta-dot { opacity: 0.45; }
    .series-metrics-zone {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      flex-wrap: wrap;
    }
    .metric-block {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .metric-lbl {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.45px;
      color: var(--muted);
    }
    .metric-val {
      font-size: 12px;
      font-weight: 700;
      color: #f8fafc;
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
    }
    .gap-amber {
      color: #fbbf24;
      font-weight: 800;
      font-size: 11.5px;
    }
    .series-actions-zone {
      display: grid;
      grid-template-columns: repeat(2, minmax(88px, auto));
      align-items: center;
      justify-content: end;
      gap: 6px;
    }
    .series-actions-zone .np-lock-cta-pill,
    .series-actions-zone .worker-lock-pill {
      grid-column: 1 / -1;
      justify-self: end;
    }
    .np-lock-cta-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      color: #fbbf24;
      background: rgba(245, 158, 11, 0.08);
      border: 1px solid rgba(245, 158, 11, 0.6);
      transition: all 0.15s ease;
    }
    .np-lock-cta-pill:hover {
      background: rgba(245, 158, 11, 0.18);
      border-color: #fbbf24;
    }

    /* Two-tier Title Column */
    .title-col {
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
    }
    .title-line {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .en-title-link {
      font-size: 15px;
      font-weight: 800;
      color: #f8fafc;
      letter-spacing: 0.2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.15s;
    }
    .en-title-link:hover {
      color: #60a5fa;
      text-decoration: underline;
    }
    .kr-title-link {
      font-size: 13.5px;
      font-weight: 500;
      color: #cbd5e1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.15s;
    }
    .kr-title-link:hover {
      color: #38bdf8;
      text-decoration: underline;
    }

    /* Prominent Brand Publisher Badges */
    .publisher-bracket {
      display: inline-flex;
      align-items: center;
      font-size: 11px;
      font-weight: 900;
      padding: 2px 8px;
      border-radius: 5px;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    .pub-novelpia {
      background: linear-gradient(135deg, #7c3aed, #6d28d9);
      color: #ffffff;
      border: 1px solid #a78bfa;
    }
    .pub-kakao {
      background: linear-gradient(135deg, #facc15, #eab308);
      color: #111827;
      border: 1px solid #fef08a;
    }
    .pub-naver {
      background: linear-gradient(135deg, #03c75a, #059669);
      color: #ffffff;
      border: 1px solid #6ee7b7;
    }
    .pub-munpia {
      background: linear-gradient(135deg, #0284c7, #0369a1);
      color: #ffffff;
      border: 1px solid #7dd3fc;
    }
    .pub-ridibooks {
      background: linear-gradient(135deg, #1d4ed8, #1e40af);
      color: #ffffff;
      border: 1px solid #93c5fd;
    }
    .pub-other {
      background: #334155;
      color: #f1f5f9;
      border: 1px solid #64748b;
    }

    /* Copy to clipboard hover button */
    .copy-hover-btn {
      opacity: 0;
      visibility: hidden;
      background: rgba(59, 130, 246, 0.16);
      border: 1px solid rgba(96, 165, 250, 0.4);
      color: #93c5fd;
      border-radius: 5px;
      padding: 1px 6px;
      font-size: 10.5px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s ease;
      flex-shrink: 0;
    }
    .series-row-card:hover .copy-hover-btn {
      opacity: 1;
      visibility: visible;
    }
    .copy-hover-btn:hover {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }

    /* Prominent Special Tags Column */
    .tags-col {
      display: flex;
      flex-direction: column;
      gap: 3px;
      justify-content: center;
      min-width: 0;
    }
    .tags-row {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      align-items: center;
    }
    .prominent-tag {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 1.5px 8px;
      border-radius: 999px;
      font-size: 10.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.35px;
      border: 1px solid transparent;
    }
    .tag-urgent {
      background: rgba(239, 68, 68, 0.10);
      color: #f87171;
      border-color: rgba(239, 68, 68, 0.65);
    }
    .tag-offteam {
      background: rgba(220, 38, 38, 0.22);
      color: #fecaca;
      border-color: #ef4444;
    }
    .tag-priority {
      background: rgba(245, 158, 11, 0.10);
      color: #fbbf24;
      border-color: rgba(245, 158, 11, 0.6);
    }
    .tag-standard {
      background: rgba(20, 184, 166, 0.08);
      color: #5eead4;
      border-color: rgba(20, 184, 166, 0.45);
    }
    .tag-new {
      background: rgba(16, 185, 129, 0.10);
      color: #34d399;
      border-color: rgba(16, 185, 129, 0.6);
    }
    .tag-r18 {
      background: rgba(239, 68, 68, 0.08);
      color: #fca5a5;
      border-color: rgba(239, 68, 68, 0.45);
    }
    .tag-r15 {
      background: rgba(249, 115, 22, 0.08);
      color: #fdba74;
      border-color: rgba(249, 115, 22, 0.45);
    }
    .tag-sale {
      background: rgba(245, 158, 11, 0.10);
      color: #fde68a;
      border-color: rgba(245, 158, 11, 0.45);
    }
    .tag-free-sched {
      background: rgba(16, 185, 129, 0.08);
      color: #6ee7b7;
      border-color: rgba(16, 185, 129, 0.4);
    }
    .tag-pub-sched {
      background: rgba(139, 92, 246, 0.10);
      color: #c4b5fd;
      border-color: rgba(139, 92, 246, 0.45);
    }
    .tag-custom {
      background: rgba(71, 85, 105, 0.25);
      color: #cbd5e1;
      border-color: var(--border);
    }

    /* Two-tier Status & Chapter Columns */
    .two-tier-col {
      display: flex;
      flex-direction: column;
      gap: 5px;
      justify-content: center;
    }
    .tier-line {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 800;
      font-size: 12.5px;
      letter-spacing: 0.3px;
    }
    .tier-lang-tag {
      font-size: 9.5px;
      font-weight: 800;
      padding: 1px 4px;
      border-radius: 3px;
      background: rgba(255,255,255,0.08);
      color: var(--muted);
      min-width: 22px;
      text-align: center;
    }
    .status-clickable {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      padding: 2px 7px;
      border-radius: 5px;
      border: 1px solid transparent;
      transition: all 0.15s;
    }
    .status-clickable:hover {
      border-color: #60a5fa;
      background: rgba(59, 130, 246, 0.14);
    }
    .st-ongoing { color: #34d399; }
    .st-completed { color: #60a5fa; }
    .st-hiatus { color: #fbbf24; }
    .st-unknown { color: #94a3b8; font-style: italic; }
    .st-dropped, .st-discontinued { color: #f87171; }
    .btn-del-db-inline {
      color: #fca5a5 !important;
      border-color: rgba(239, 68, 68, 0.35) !important;
      background: rgba(239, 68, 68, 0.08) !important;
    }
    .btn-del-db-inline:hover {
      background: rgba(239, 68, 68, 0.25) !important;
      border-color: #ef4444 !important;
      color: #fff !important;
    }

    /* Last Updated Column */
    .updated-date-main { font-size: 13.5px; font-weight: 800; color: #f8fafc; }
    .updated-ago-sub { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }

    /* Revenue Column (Admin Only) */
    .revenue-box {
      display: flex;
      flex-direction: column;
      gap: 2px;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 6px;
      border: 1px dashed rgba(255,255,255,0.12);
      transition: all 0.15s;
    }
    .revenue-box:hover {
      border-color: #34d399;
      background: rgba(16, 185, 129, 0.08);
    }
    .revenue-val { font-size: 13.5px; font-weight: 800; color: #34d399; }
    .revenue-sub { font-size: 10.5px; color: var(--muted); font-weight: 600; }

    /* Active Downloader Lock Pill & Extraction Controls */
    .worker-lock-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 7px;
      font-size: 11.5px;
      font-weight: 800;
      background: rgba(245, 158, 11, 0.18);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.45);
      cursor: pointer;
      transition: all 0.15s;
    }
    .worker-lock-pill.downloading-live {
      background: rgba(59, 130, 246, 0.22);
      color: #93c5fd;
      border-color: #3b82f6;
      box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
    }
    .worker-ctrl-group {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
    }
    .worker-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 6px 10px;
      border-radius: 7px;
      white-space: nowrap;
      font-size: 11.5px;
      font-weight: 700;
      cursor: pointer;
      border: 1px solid var(--border);
      background: #131d33;
      color: #e2e8f0;
      transition: all 0.14s ease;
      white-space: nowrap;
    }
    .worker-btn:hover {
      border-color: var(--primary);
      background: #1b2a47;
      color: #fff;
    }
    .worker-btn.w-scan {
      border-color: var(--border);
      color: #cbd5e1;
    }
    .worker-btn.w-resume {
      border-color: var(--primary);
      color: #ffffff;
      background: var(--primary);
      font-weight: 800;
    }
    .worker-btn.w-resume:hover {
      background: var(--primary-hover);
      border-color: #60a5fa;
    }
    .worker-btn.w-full-dl {
      border-color: rgba(245, 158, 11, 0.35);
      color: #fcd34d;
      background: rgba(245, 158, 11, 0.08);
    }
    .worker-btn.w-full-dl:hover {
      background: rgba(217, 119, 6, 0.28);
      border-color: #f59e0b;
      color: #fff;
    }
    .worker-btn.w-fix {
      border-color: var(--border);
      color: #d8b4fe;
      background: rgba(139, 92, 246, 0.08);
    }
    .worker-btn.w-fix:hover {
      background: rgba(126, 34, 206, 0.3);
      border-color: #a855f7;
      color: #fff;
    }
    .worker-btn:disabled, .worker-btn.w-locked {
      opacity: 0.42;
      cursor: not-allowed;
      filter: grayscale(0.5);
    }
    .ext-progress-wrap {
      width: 100%;
      height: 8px;
      background: #0b1222;
      border: 1px solid var(--border);
      border-radius: 99px;
      overflow: hidden;
      margin: 6px 0;
    }
    .ext-progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #3b82f6, #10b981);
      width: 0%;
      transition: width 0.25s ease;
    }

    /* Unified Modern Dashboard Layout with Left Sidebar */
    .dashboard-shell {
      display: grid;
      grid-template-columns: 248px minmax(0, 1fr);
      gap: 20px;
      align-items: start;
      max-width: 100%;
    }
    .dash-content {
      min-width: 0;
      max-width: 100%;
    }
    @media (max-width: 1280px) {
      .dashboard-shell {
        grid-template-columns: 215px minmax(0, 1fr);
        gap: 16px;
      }
    }
    @media (max-width: 960px) {
      .dashboard-shell {
        grid-template-columns: minmax(0, 1fr);
      }
      .dash-sidebar {
        position: static !important;
        flex-direction: row !important;
        flex-wrap: wrap;
      }
      .dash-sidebar-title { display: none; }
      .dash-nav-btn { width: auto !important; flex: 1 1 160px; }
    }
    .dash-sidebar {
      background: linear-gradient(180deg, #111c33 0%, #0b1324 100%);
      border: 1px solid rgba(148, 163, 184, 0.16);
      border-radius: 14px;
      padding: 14px 12px;
      position: sticky;
      top: 68px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    }
    .dash-sidebar-title {
      font-size: 10.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.9px;
      color: #64748b;
      padding: 4px 10px 8px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.12);
      margin-bottom: 4px;
    }
    .dash-nav-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      text-align: left;
      padding: 11px 13px;
      border-radius: 10px;
      border: 1px solid transparent;
      background: transparent;
      color: #cbd5e1;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.16s ease;
    }
    .dash-nav-btn:hover {
      background: rgba(148, 163, 184, 0.08);
      color: #f8fafc;
      transform: translateX(2px);
    }
    .dash-nav-btn.active {
      background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08));
      color: #ffffff;
      border-color: rgba(96, 165, 250, 0.45);
      box-shadow: inset 3px 0 0 #3b82f6, 0 4px 14px rgba(59, 130, 246, 0.14);
      font-weight: 700;
    }
    .dash-section { display: none; min-width: 0; max-width: 100%; }
    .dash-section.active { display: block; }

    /* Modern Section Header Bar inside each Dashboard Page */
    .dash-page-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;
      background: linear-gradient(135deg, rgba(17, 29, 53, 0.96), rgba(11, 19, 36, 0.96));
      border: 1px solid rgba(96, 165, 250, 0.22);
      border-radius: 14px;
      padding: 18px 22px;
      margin-bottom: 18px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    }
    .dash-page-header h2 {
      font-size: 17px;
      font-weight: 800;
      color: #f8fafc;
      margin: 0 0 4px 0;
      display: flex;
      align-items: center;
      gap: 9px;
    }
    .dash-page-header p {
      margin: 0;
      font-size: 12.5px;
      color: #94a3b8;
      line-height: 1.45;
    }

    /* Distinct Category Group Dividers */
    .dash-group-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 22px 0 12px 2px;
      font-size: 11.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.9px;
      color: #94a3b8;
    }
    .dash-group-divider:first-of-type { margin-top: 4px; }
    .dash-group-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, rgba(148, 163, 184, 0.24), transparent);
    }
    .dash-group-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* Elevated Cards & Settings Grid */
    .card {
      background: linear-gradient(180deg, #111b30 0%, #0d1526 100%);
      border: 1px solid rgba(148, 163, 184, 0.16);
      border-radius: 14px;
      padding: 20px 22px;
      margin-bottom: 18px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
      min-width: 0;
      max-width: 100%;
    }
    .card.card-accent-blue { border-top: 3px solid #3b82f6; }
    .card.card-accent-purple { border-top: 3px solid #a855f7; }
    .card.card-accent-emerald { border-top: 3px solid #10b981; }
    .card.card-accent-amber { border-top: 3px solid #f59e0b; }
    .card.card-accent-rose { border-top: 3px solid #f43f5e; }
    .card h3 {
      font-size: 15.5px;
      margin-bottom: 6px;
      font-weight: 800;
      color: #f8fafc;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .card p.desc { color: #94a3b8; font-size: 12.5px; margin-bottom: 16px; line-height: 1.5; }

    /* Responsive Settings Tiles Grid (Zero Horizontal Clipping!) */
    .dash-settings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
      gap: 14px;
    }
    .dash-setting-tile {
      background: #08101f;
      border: 1px solid rgba(148, 163, 184, 0.16);
      border-radius: 12px;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-width: 0;
    }
    .dash-setting-tile-hdr {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 12px;
      font-weight: 800;
      color: #e2e8f0;
      letter-spacing: 0.2px;
    }
    .dash-setting-tile-sub {
      font-size: 11px;
      color: #64748b;
      line-height: 1.4;
      margin-top: -6px;
    }
    .dash-tile-inputs {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: #cbd5e1;
      font-weight: 600;
    }
    .dash-tile-inputs input[type="number"] {
      width: 66px;
      padding: 5px 8px;
      font-weight: 700;
      text-align: center;
    }

    /* Modern Job Card in Auto-Runs & Schedules */
    .job-card {
      background: #0b1324;
      border: 1px solid rgba(148, 163, 184, 0.18);
      border-left: 4px solid #3b82f6;
      border-radius: 13px;
      padding: 16px 18px;
      margin-bottom: 16px;
      transition: border-color 0.2s, box-shadow 0.2s;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
      min-width: 0;
      max-width: 100%;
    }
    .job-card.job-cat-novelpia { border-left-color: #a855f7; }
    .job-card.job-cat-noveldex { border-left-color: #3b82f6; }
    .job-card.job-cat-revenue { border-left-color: #10b981; }
    .job-card.job-cat-backup { border-left-color: #f59e0b; }
    .job-card.job-running {
      border-color: #60a5fa;
      box-shadow: 0 0 22px rgba(59, 130, 246, 0.24);
    }
    .job-header-row {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      margin-bottom: 12px;
      min-width: 0;
    }
    .job-title-box { min-width: 0; }
    .job-title-box .j-name {
      font-size: 14.5px;
      font-weight: 800;
      color: #f8fafc;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }
    .job-title-box .j-desc {
      font-size: 12.2px;
      color: #94a3b8;
      margin-top: 4px;
      line-height: 1.5;
    }
    .job-title-box .j-desc code {
      color: #93c5fd;
      background: rgba(59, 130, 246, 0.14);
      padding: 1px 6px;
      border-radius: 5px;
      font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
      font-size: 11.5px;
    }
    .job-controls-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      background: rgba(15, 25, 46, 0.92);
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.15);
      min-width: 0;
      max-width: 100%;
    }
    .job-controls-actions {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      flex-wrap: wrap;
    }
    .ctrl-inline {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 12px;
      color: #cbd5e1;
      font-weight: 600;
      background: #070d1a;
      border: 1px solid rgba(148, 163, 184, 0.16);
      padding: 5px 10px;
      border-radius: 8px;
    }
    .ctrl-inline input[type="number"] {
      width: 64px;
      padding: 4px 7px;
      font-weight: 700;
      text-align: center;
    }
    .ctrl-inline select {
      padding: 4px 8px;
      font-weight: 700;
    }

    /* Live Terminal Box under each Function */
    .live-terminal {
      margin-top: 10px;
      background: #04070f;
      border: 1px solid rgba(51, 65, 85, 0.75);
      border-radius: 10px;
      overflow: hidden;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .term-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
      padding: 7px 13px;
      background: #090f1d;
      border-bottom: 1px solid rgba(51, 65, 85, 0.65);
      font-size: 11px;
      color: #94a3b8;
    }
    .term-status-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #64748b;
      margin-right: 6px;
    }
    .term-status-dot.running {
      background: #3b82f6;
      box-shadow: 0 0 8px #3b82f6;
      animation: pulseDot 1s infinite alternate;
    }
    .term-status-dot.success { background: #10b981; }
    .term-status-dot.warning { background: #f59e0b; }
    .term-status-dot.error { background: #ef4444; }
    @keyframes pulseDot {
      from { opacity: 0.4; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1.25); }
    }
    .term-body {
      max-height: 175px;
      min-height: 46px;
      overflow-y: auto;
      padding: 9px 13px;
      font-size: 11.5px;
      line-height: 1.55;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .term-line { display: flex; gap: 8px; word-break: break-word; }
    .term-ts { color: #64748b; flex-shrink: 0; }
    .term-lvl { font-weight: 800; flex-shrink: 0; min-width: 58px; }
    .lvl-info { color: #93c5fd; }
    .lvl-api { color: #c4b5fd; }
    .lvl-success { color: #34d399; }
    .lvl-warning { color: #fbbf24; }
    .lvl-error { color: #f87171; background: rgba(239, 68, 68, 0.12); padding: 0 4px; border-radius: 3px; }

    /* Toggle Switch UI */
    .toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 12px;
      background: #08101f;
      border: 1px solid rgba(148, 163, 184, 0.16);
      border-radius: 9px;
      margin-bottom: 8px;
    }
    .toggle-row .t-title { font-size: 12.5px; font-weight: 700; color: #f1f5f9; }
    .toggle-row .t-sub { font-size: 11px; color: var(--muted); }
    .switch {
      position: relative;
      display: inline-block;
      width: 40px;
      height: 22px;
      flex-shrink: 0;
    }
    .switch input { opacity: 0; width: 0; height: 0; }
    .slider {
      position: absolute; cursor: pointer;
      inset: 0;
      background-color: #334155;
      transition: .2s;
      border-radius: 22px;
    }
    .slider:before {
      position: absolute; content: "";
      height: 16px; width: 16px;
      left: 3px; bottom: 3px;
      background-color: white;
      transition: .2s;
      border-radius: 50%;
    }
    input:checked + .slider { background-color: var(--primary); }
    input:checked + .slider:before { transform: translateX(18px); }

    /* Permissions Grid inside Team Accounts */
    .perm-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 9px;
      margin: 10px 0 16px;
    }

    .table-scroll-wrap {
      width: 100%;
      overflow-x: auto;
      border: 1px solid rgba(148, 163, 184, 0.16);
      border-radius: 11px;
      background: #080f1e;
    }
    table.std-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
    table.std-table th, table.std-table td {
      padding: 11px 13px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.11);
      text-align: left;
      vertical-align: middle;
    }
    table.std-table th {
      color: #94a3b8;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      background: #0c1528;
      white-space: nowrap;
    }
    table.std-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
    table.std-table tbody tr:hover { background: rgba(59, 130, 246, 0.07); }
    table.std-table tbody tr:last-child td { border-bottom: none; }

    /* Color-Coded Interactive Audit Log Styles */
    .audit-row {
      cursor: pointer;
      transition: background 0.14s ease;
    }
    .audit-row:hover {
      background: rgba(59, 130, 246, 0.1) !important;
    }
    .audit-row.trig-auto { border-left: 3px solid #8b5cf6; }
    .audit-row.trig-manual { border-left: 3px solid #3b82f6; }
    .audit-row.st-row-error { background: rgba(239, 68, 68, 0.06); }

    .badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      border: 1px solid transparent;
    }
    /* Trigger Badges: Auto vs Manual */
    .b-trig-auto {
      background: rgba(139, 92, 246, 0.2);
      color: #c4b5fd;
      border-color: rgba(139, 92, 246, 0.5);
    }
    .b-trig-manual {
      background: rgba(59, 130, 246, 0.2);
      color: #93c5fd;
      border-color: rgba(59, 130, 246, 0.5);
    }
    /* Actor Role Badges: Admin vs Member vs System */
    .b-role-admin {
      background: rgba(245, 158, 11, 0.2);
      color: #fcd34d;
      border-color: rgba(245, 158, 11, 0.5);
    }
    .b-role-member {
      background: rgba(16, 185, 129, 0.2);
      color: #6ee7b7;
      border-color: rgba(16, 185, 129, 0.5);
    }
    .b-role-system {
      background: rgba(6, 182, 212, 0.2);
      color: #67e8f9;
      border-color: rgba(6, 182, 212, 0.5);
    }
    /* Command / Action Color Badges */
    .b-cmd-sync { background: rgba(37, 99, 235, 0.25); color: #93c5fd; border-color: #3b82f6; }
    .b-cmd-new { background: rgba(124, 58, 237, 0.25); color: #ddd6fe; border-color: #8b5cf6; }
    .b-cmd-sale { background: rgba(217, 119, 6, 0.25); color: #fde68a; border-color: #f59e0b; }
    .b-cmd-sched { background: rgba(5, 150, 105, 0.25); color: #6ee7b7; border-color: #10b981; }
    .b-cmd-raw { background: rgba(8, 145, 178, 0.25); color: #a5f3fc; border-color: #06b6d4; }
    .b-cmd-status { background: rgba(99, 102, 241, 0.25); color: #c7d2fe; border-color: #6366f1; }
    .b-cmd-user { background: rgba(219, 39, 119, 0.22); color: #fbcfe8; border-color: #ec4899; }
    .b-cmd-other { background: rgba(71, 85, 105, 0.3); color: #e2e8f0; border-color: #64748b; }

    /* Outcome Status Badges */
    .b-st-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border-color: #10b981; }
    .b-st-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: #f59e0b; }
    .b-st-error { background: rgba(239, 68, 68, 0.25); color: #fca5a5; border-color: #ef4444; }
    .b-st-running { background: rgba(59, 130, 246, 0.25); color: #93c5fd; border-color: #3b82f6; }

    /* Modal */
    .modal-backdrop {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.72);
      display: none; align-items: center; justify-content: center;
      z-index: 2000;
    }
    .modal-backdrop.open { display: flex; }
    .modal {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      width: 540px;
      max-width: 95vw;
      max-height: 90vh;
      overflow-y: auto;
      padding: 22px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.65);
    }
    .modal h3 { font-size: 16px; margin-bottom: 12px; }
    .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

    /* Trace Timeline Step Cards inside Modal */
    .trace-step-row {
      display: grid;
      grid-template-columns: 44px 70px 76px 1fr;
      gap: 10px;
      align-items: start;
      padding: 8px 12px;
      border-bottom: 1px solid #1e293b;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 12px;
    }
    .trace-step-row.step-error {
      background: rgba(239, 68, 68, 0.14);
      border-left: 3px solid #ef4444;
    }
    .trace-step-row.step-success {
      border-left: 3px solid #10b981;
    }
    .trace-step-row.step-warning {
      background: rgba(245, 158, 11, 0.08);
      border-left: 3px solid #f59e0b;
    }

    /* Toast */
    #toast-box {
      position: fixed; bottom: 20px; right: 20px;
      display: flex; flex-direction: column; gap: 8px;
      z-index: 5000;
    }
    .toast {
      background: #1e293b;
      border-left: 4px solid var(--primary);
      color: #fff;
      padding: 10px 14px;
      border-radius: 7px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.45);
      font-size: 12.5px;
      font-weight: 600;
    }

    /* In-App Notification Center (Bell & Dropdown) */
    .notif-wrapper {
      position: relative;
      display: inline-flex;
      align-items: center;
    }
    .notif-bell-btn {
      position: relative;
      background: #0d1527;
      border: 1px solid var(--border);
      color: var(--text);
      border-radius: 8px;
      padding: 5px 10px;
      cursor: pointer;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s;
    }
    .notif-bell-btn:hover {
      border-color: var(--primary);
      background: #162238;
    }
    .notif-badge {
      background: #ef4444;
      color: #fff;
      font-size: 10.5px;
      font-weight: 800;
      padding: 1px 6px;
      border-radius: 99px;
      box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
      display: none;
    }
    .notif-dropdown {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      width: 420px;
      max-width: 92vw;
      background: #0f172a;
      border: 1px solid #334155;
      border-radius: 11px;
      box-shadow: 0 20px 45px rgba(0,0,0,0.7);
      z-index: 3000;
      display: none;
      overflow: hidden;
    }
    .notif-dropdown.open {
      display: block;
    }
    .notif-hdr {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: #151f32;
      border-bottom: 1px solid var(--border);
      font-weight: 800;
      font-size: 12.5px;
    }
    .notif-list {
      max-height: 390px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }
    .notif-item {
      padding: 10px 14px;
      border-bottom: 1px solid #1e293b;
      cursor: pointer;
      transition: background 0.14s;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .notif-item:hover {
      background: rgba(59, 130, 246, 0.1);
    }
    .notif-item.unread {
      background: rgba(59, 130, 246, 0.07);
      border-left: 3px solid #3b82f6;
    }
    .notif-item.lvl-critical {
      border-left: 3px solid #ef4444;
      background: rgba(239, 68, 68, 0.08);
    }
    .notif-item.lvl-warning {
      border-left: 3px solid #f59e0b;
    }
    .notif-item.lvl-success {
      border-left: 3px solid #10b981;
    }
    .notif-top-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 12px;
      font-weight: 800;
    }
    .notif-msg {
      font-size: 11.5px;
      color: #cbd5e1;
      line-height: 1.4;
      word-break: break-word;
    }

/* ==================== v1.2.3 MODERN POLISH, ONBOARDING, I18N, ETA & MILESTONES ==================== */
.lang-switch-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #0b1222;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
.lang-btn:hover { color: #f8fafc; }
.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(59, 130, 246, 0.35);
}

/* Onboarding Banner */
.onboarding-banner {
  background: linear-gradient(135deg, rgba(21, 31, 50, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.38);
}
.onboarding-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .onboarding-grid { grid-template-columns: 1fr; }
}
.onb-step {
  background: rgba(11, 18, 34, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s, background .15s;
}
.onb-step.done {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.08);
}
.onb-step.pending {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.07);
}
.onb-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.onb-step-title { font-size: 12.5px; font-weight: 800; color: #f8fafc; }
.onb-step-desc { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* Standalone Lock Banner (Auto-hides completely when Novelpia account is linked) */
#member-np-lock-banner {
  display: none;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.7);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tier left accents for priority queue hierarchy */
.series-row-card.tier-urgent {
  border-left: 3px solid #ef4444;
}
.series-row-card.tier-priority {
  border-left: 3px solid #f59e0b;
}

/* Extractor Live ETA Pill & Guidance Strip */
.eta-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
}
.eta-badge-pill.resting {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
}
.modal-i18n-banner {
  font-size: 11.5px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 10px;
}

/* Member Profile Tier & Payout Milestone Progress Card */
.milestone-box {
  background: #0b1222;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 14px;
}
.milestone-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.milestone-track {
  width: 100%;
  height: 11px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.milestone-fill.complete {
  background: linear-gradient(90deg, #10b981, #fbbf24);
}
.milestone-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid var(--border);
  color: var(--muted);
}
.ms-chip.done {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.ms-chip.active {
  border-color: rgba(59, 130, 246, 0.7);
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
}
.ms-chip.post {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

[dir="rtl"] {
  text-align: right;
}
