:root {
    --primary: #0F3D3E;
    --accent: #36D1DC;
    --bg: #f3f4f6;
    --text-main: #111827;
    --danger: #ef4444;
    --success: #10b981;
    --card-shadow: 0 2px 8px rgba(15, 61, 62, 0.06);
    --card-shadow-hover: 0 4px 14px rgba(15, 61, 62, 0.1);
}
        body { font-family: 'Inter', sans-serif; background: linear-gradient(180deg, #e8eeef 0%, var(--bg) 140px); color: var(--text-main); padding: 0; margin: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
        .admin-chrome {
            position: sticky;
            top: 0;
            z-index: 2000;
            flex-shrink: 0;
        }
        .admin-chrome .header { position: relative; top: auto; }
        .header { background: white; padding: 15px 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 2000; gap: 10px; flex-wrap: wrap; }
        .header__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
        .admin-home-btn { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; text-decoration: none; }
        .admin-empty-hint { margin: 0; padding: 12px 4px; font-size: 0.85rem; color: #64748b; line-height: 1.5; }
        #statusMsg {
            font-size: 0.75rem;
            font-weight: 700;
            color: #64748b;
            padding: 4px 10px;
            border-radius: 999px;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
        }
        #opsStatusPill {
            font-size: 0.7rem;
            font-weight: 800;
            padding: 4px 12px;
            border-radius: 999px;
            background: #e5e7eb;
            color: #374151;
        }
        #opsStatusPill.ops-on { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
        #opsStatusPill.ops-off { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
        .inbox-badge {
            background: #ef4444;
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.7rem;
            margin-left: 4px;
            font-weight: 800;
        }
        .logo-text { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.2rem; color: var(--primary); margin: 0; }
        .logo-text span { color: var(--accent); }
        .nav-tabs-shell {
            background: var(--primary);
            border-bottom: 4px solid #064e3b;
            flex-shrink: 0;
            overflow: visible;
        }
        .nav-tabs {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            padding: 10px 12px 12px;
            background: transparent;
            overflow: visible;
            width: 100%;
            box-sizing: border-box;
            position: relative;
            top: auto;
            z-index: 1;
            flex-shrink: 0;
        }
        .admin-chrome .nav-tabs { position: relative; top: auto; }
        .owner-mc-banner { margin: 0; padding: 12px 16px; background: #ecfdf5; border-bottom: 1px solid #a7f3d0; color: #065f46; font-size: 0.82rem; line-height: 1.5; }
        .owner-mc-banner__line { display: block; }
        .owner-mc-banner a { color: #0F3D3E; font-weight: 800; text-decoration: none; margin-left: 6px; white-space: nowrap; }
        .owner-mc-banner a:hover { text-decoration: underline; }
        .admin-chrome .owner-mc-banner { flex-shrink: 0; }
        .owner-mc-gate {
            max-width: 560px;
            margin: 48px auto;
            padding: 24px;
            font-family: 'Inter', sans-serif;
        }
        .owner-mc-gate h1 { margin: 0 0 12px; color: #0F3D3E; font-size: 22px; }
        .owner-mc-gate p { margin: 0 0 16px; color: #4b5563; font-size: 15px; line-height: 1.6; }
        .owner-mc-gate__cta {
            display: inline-block;
            background: #0F3D3E;
            color: #fff;
            text-decoration: none;
            font-weight: 800;
            padding: 12px 22px;
            border-radius: 999px;
        }
        .owner-mc-gate__back { margin: 18px 0 0; font-size: 13px; color: #6b7280; }
        .owner-mc-gate__back a { color: #0F3D3E; font-weight: 700; }
        body.admin-is-owner .admin-mc-staff-only { display: none !important; }
        .nav-tabs-shell::-webkit-scrollbar,
        .nav-tabs::-webkit-scrollbar { display: none; }
        .tab-btn {
            flex: 1 1 auto;
            width: auto;
            min-width: max-content;
            max-width: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            background: rgba(255,255,255,0.1);
            color: #e5e7eb;
            border: none;
            padding: 10px 14px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            text-decoration: none;
            white-space: nowrap;
            line-height: 1.25;
            box-sizing: border-box;
            min-height: 40px;
            overflow: visible;
        }
        .tab-btn i { flex-shrink: 0; }
        .tab-btn.active {
            background: var(--accent);
            color: var(--primary);
            box-shadow: inset 0 0 0 1px rgba(15, 61, 62, 0.12);
        }
        body.admin-standalone { display: flex; flex-direction: column; min-height: 100vh; }
        body.admin-standalone .content-area { flex: 1; overflow-y: auto; }
        .content-area { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px 28px; max-width: 1080px; margin: 0 auto; width: 100%; box-sizing: border-box; }
        .section-view { display: none; animation: fadeIn 0.3s ease; }
        .section-view.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
        .card {
            background: white;
            border: 1px solid #e5e7eb;
            padding: 16px 18px;
            border-radius: 14px;
            margin-bottom: 12px;
            box-shadow: var(--card-shadow);
            position: relative;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }
        .card:hover { box-shadow: var(--card-shadow-hover); }
        .card--danger { border-left: 4px solid var(--danger); }
        .card--warn { border-left: 4px solid #f59e0b; }
        .card--teal { border-left: 4px solid var(--primary); }
        .card--success { border-left: 4px solid var(--success); }
        .card--muted { border-left: 4px solid #9ca3af; }
        .card--accent { border-left: 4px solid var(--accent); }
        .card-type {
            font-size: 0.68rem;
            font-weight: 900;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            margin-bottom: 4px;
        }
        .card-type--danger { color: #991b1b; }
        .card-type--warn { color: #b45309; }
        .card-type--teal { color: var(--primary); }
        .card-type--success { color: #166534; }
        .card-type--appeal { color: #0e7490; }
        .card-actions { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
        .card-meta { font-size: 0.8rem; color: #64748b; margin-top: 6px; line-height: 1.45; }
        .card-meta--muted { font-size: 0.75rem; color: #9ca3af; }
        .card-highlight-teal { background: #f0fdfa; border-color: #99f6e4; }
        .card-highlight-warn { background: #fffbeb; border-color: #fcd34d; }
        .card-highlight-danger { background: #fef2f2; border-color: #fecaca; }
        .card-highlight-info { background: #f0f9ff; border-color: #bae6fd; }
        .card-highlight-mint { background: #f0fdf4; border-color: #86efac; }
        .admin-empty {
            text-align: center;
            padding: 28px 16px;
            color: #64748b;
            font-size: 0.92rem;
            line-height: 1.5;
            background: #f9fafb;
            border: 1px dashed #e5e7eb;
            border-radius: 12px;
            margin-bottom: 12px;
        }
        .admin-empty i { display: block; font-size: 1.75rem; color: #cbd5e1; margin-bottom: 10px; }
        .admin-empty strong { color: var(--primary); font-weight: 800; display: block; margin-bottom: 4px; }
        .admin-empty--compact { padding: 16px 12px; font-size: 0.85rem; }
        .admin-empty--inline { text-align: left; padding: 14px 12px; }
        .admin-section-title {
            margin: 0 0 6px;
            font-size: 1.03rem;
            font-weight: 900;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .admin-section-title--warn { color: #b45309; }
        .admin-section-title--danger { color: #991b1b; }
        .admin-section-title--success { color: #166534; }
        .admin-section-sub { font-size: 0.84rem; color: #64748b; margin: 0 0 12px; line-height: 1.45; }
        .admin-stat-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }
        .stat-card {
            margin-bottom: 0;
            text-align: center;
            padding: 14px 12px;
        }
        .stat-card__label {
            font-size: 0.72rem;
            color: #64748b;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        .stat-card__value {
            font-size: 1.75rem;
            font-weight: 900;
            margin-top: 4px;
            line-height: 1.1;
        }
        .stat-card--teal { border-bottom: 4px solid #0f766e; background: #f0fdfa; }
        .stat-card--teal .stat-card__value { color: #0f766e; }
        .stat-card--green { border-bottom: 4px solid #166534; background: #f0fdf4; }
        .stat-card--green .stat-card__value { color: #166534; }
        .stat-card--amber { border-bottom: 4px solid #b45309; background: #fffbeb; }
        .stat-card--amber .stat-card__value { color: #b45309; }
        .admin-toolbar {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: flex-start;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        .admin-toolbar--dev {
            border-left: 4px solid var(--accent);
            background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%);
        }
        .admin-toolbar__title {
            font-size: 0.78rem;
            font-weight: 900;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .admin-toolbar__desc { font-size: 0.82rem; color: #475569; margin-top: 4px; line-height: 1.45; }
        .admin-traffic-card {
            background: linear-gradient(135deg, #0f3d3e 0%, #134e4a 100%);
            color: white;
            border: none;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        .admin-traffic-card__label {
            color: var(--accent);
            font-weight: 800;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .admin-traffic-card__count {
            font-size: 1.8rem;
            font-weight: 900;
            margin-top: 4px;
        }
        .admin-traffic-card__feed {
            flex: 1;
            min-width: 180px;
            margin-left: 0;
            font-size: 0.75rem;
            color: #9ca3af;
            border-left: 1px solid rgba(255,255,255,0.15);
            padding-left: 15px;
            max-height: 50px;
            overflow: hidden;
        }
        .admin-form-label {
            display: block;
            font-size: 0.75rem;
            font-weight: 800;
            color: #475569;
            margin-bottom: 4px;
        }
        .admin-form-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 12px;
        }
        .admin-form-grid--2 { grid-template-columns: 1fr 1fr; }
        .content-area input[type="text"],
        .content-area input[type="email"],
        .content-area input[type="number"],
        .content-area input[type="search"],
        .content-area select,
        .content-area textarea {
            border: 1px solid #cfd8dc;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.88rem;
            padding: 10px 12px;
            box-sizing: border-box;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .content-area input:focus,
        .content-area select:focus,
        .content-area textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(54, 209, 220, 0.2);
        }
        .admin-panel-card { margin-bottom: 20px; }
        .admin-panel-card--payments { background: #f0fdfa; border-color: #99f6e4; }
        .admin-panel-card--banner { background: #fffbeb; border-color: #fcd34d; }
        .admin-panel-card--brand { background: #f8fafc; border-color: #d2e3e5; }
        .admin-panel-card--notify { background: #f0f9ff; border-color: #bfdbfe; }
        .admin-panel-card--maint { background: #fff7ed; border-color: #fdba74; }
        .admin-status-banner {
            padding: 10px 12px;
            border-radius: 10px;
            background: white;
            border: 1px solid #d2e3e5;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }
        .admin-trends-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .admin-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
            padding: 10px;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            max-height: 300px;
            overflow-y: auto;
        }
        .admin-chip {
            background: #dcfce7;
            color: #166534;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.8rem;
            border: 1px solid #86efac;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .admin-chip--ban {
            background: #fee2e2;
            color: #991b1b;
            border-color: #fecaca;
        }
        .admin-chip i { cursor: pointer; opacity: 0.55; }
        .admin-chip i:hover { opacity: 1; }
        .admin-details-summary {
            cursor: pointer;
            padding: 10px 12px;
            border-radius: 10px;
            font-weight: 800;
            border: 1px solid #e5e7eb;
        }
        .admin-details-summary--teal { background: #f0fdfa; border-color: #ccfbf1; color: #115e59; }
        .admin-details-summary--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
        .btn-full { width: 100%; }
        .btn-sync { background: var(--primary); color: white; }
        .btn-sync:hover { filter: brightness(1.05); }
        .btn {
            border: none;
            padding: 9px 16px;
            border-radius: 999px;
            cursor: pointer;
            font-weight: 800;
            color: white;
            font-size: 0.8rem;
            font-family: 'Inter', sans-serif;
            transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s, border-color 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            white-space: nowrap;
            line-height: 1.2;
        }
        .btn:hover { transform: translateY(-1px); filter: brightness(0.98); }
        .btn:active { transform: translateY(0); }
        .btn-sm { padding: 5px 12px; font-size: 0.72rem; }
        .btn-delete { background: var(--danger); color: white; }
        .btn-approve {
            background: var(--accent);
            color: var(--primary);
            box-shadow: 0 2px 6px rgba(54, 209, 220, 0.25);
        }
        .btn-approve:hover { background: #22d3ee; filter: none; }
        .btn-warn { background: #f59e0b; color: white; }
        .btn-neutral {
            background: white;
            color: var(--primary);
            border: 2px solid #d1e7e8;
        }
        .btn-neutral:hover {
            background: #f0fdfa;
            border-color: var(--primary);
            filter: none;
        }
        .btn-scrape { background: #b45309; color: white; }
        .btn-primary-solid { background: var(--primary); color: white; }
        .btn-primary-solid:hover { filter: brightness(1.05); }
        .status-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; margin-top: 6px; }
        .status-pill.pending { background: #fef3c7; color: #92400e; }
        .status-pill.rejected { background: #e5e7eb; color: #374151; }
        .folder-container { margin-bottom: 20px; border: 1px solid #d1d5db; border-radius: 12px; background: white; position: relative; }
        .folder-header { background: #f9fafb; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid #e5e7eb; font-weight: 700; color: #374151; overflow: visible !important; }
        .folder-header:hover { background: #f3f4f6; }
        .folder-content { display: none; padding: 10px; background: white; }
        .folder-content.open { display: block; }
        .sub-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 16px;
            flex-wrap: wrap;
            background: #e6eff0;
            border: 1px solid #d2e3e5;
            padding: 6px;
            border-radius: 12px;
            overflow: visible !important;
        }
        .sub-tab {
            flex: 1;
            background: transparent;
            border: none;
            padding: 8px 12px;
            border-radius: 10px;
            font-size: 0.82rem;
            cursor: pointer;
            font-weight: 800;
            color: #64748b;
            text-align: center;
            transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
        }
        .sub-tab.active {
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            color: var(--primary);
            box-shadow: 0 2px 8px rgba(15, 61, 62, 0.12);
        }
        .moderation-shell .sub-tabs {
            background: #e6eff0;
            border: 1px solid #d2e3e5;
            border-radius: 12px;
            padding: 6px;
            gap: 6px;
        }
        .moderation-shell .sub-tab {
            border-radius: 10px;
            font-size: 0.82rem;
            font-weight: 800;
        }
        .moderation-shell .sub-tab.active {
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            color: #0f3d3e;
            box-shadow: 0 2px 8px rgba(15, 61, 62, 0.12);
        }
        .moderation-toolbar { border-left: 4px solid var(--accent); }
        .moderation-shell .folder-container {
            border-color: #d7e3e5;
            box-shadow: 0 2px 8px rgba(15, 61, 62, 0.05);
        }
        .moderation-shell .folder-header {
            background: #f8fbfc;
            color: #1f2937;
            font-weight: 800;
        }
        .moderation-shell .folder-header:hover { background: #f1f5f9; }
        .moderation-shell .card {
            border-radius: 14px;
            box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
        }
        .moderation-panel {
            background: #ffffff;
            border: 1px solid #d7e3e5;
            border-radius: 14px;
            box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
            padding: 14px;
            margin-bottom: 14px;
        }
        .moderation-panel-title {
            font-size: 1.03rem;
            font-weight: 900;
            color: #0f3d3e;
            margin: 0 0 8px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .moderation-panel-subtitle {
            font-size: 0.84rem;
            color: #475569;
            margin: 0 0 12px 0;
        }
        .moderation-shell input,
        .moderation-shell select,
        .moderation-shell textarea {
            border-radius: 10px !important;
            border: 1px solid #cfd8dc !important;
            font-family: 'Inter', sans-serif;
        }
        .moderation-shell .btn-neutral {
            background: white;
            color: var(--primary);
            border-color: #cfe3e5;
        }
        .perm-group { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
        .perm-label { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: bold; color: #4b5563; background: #f3f4f6; padding: 5px 10px; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
        .perm-label:hover { background: #e5e7eb; }
        input[type="checkbox"] { transform: scale(1.2); cursor: pointer; }
        .hidden { display: none !important; }
        .proof-box { background: #f0fdfa; border: 1px solid #ccfbf1; padding: 10px; border-radius: 8px; margin-top: 8px; font-size: 0.85rem; }
        .proof-link { color: var(--primary); font-weight: bold; text-decoration: underline; word-break: break-all; }
        
        /* Log Folders */
        details { margin-bottom: 10px; background: white; border-radius: 8px; border: 1px solid #d1d5db; position: relative; }
        summary { padding: 12px; cursor: pointer; font-weight: 800; background: #f9fafb; user-select: none; outline: none; display: flex; justify-content: space-between; align-items: center; }
        summary:hover { background: #f3f4f6; }
        summary::after { content: '▼'; font-size: 0.8rem; color: #6b7280; transition: transform 0.2s; }
        details[open] summary::after { transform: rotate(180deg); }
        .details-content { padding: 10px; border-top: 1px solid #e5e7eb; }

        /* --- GLOBAL GUILLOTINE FIX: Prevents text from being cut off --- */
        .card, .folder-container, .sub-tabs, details, .sub-content { 
            overflow: visible !important; 
            position: relative; 
        }

        /* --- LEGEND / INFO ICON ENGINE (PRIORITY VERSION) --- */
        .info-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            background: #d1d5db;
            color: #374151;
            border-radius: 50%;
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
            margin-left: 8px;
            vertical-align: middle;
            position: relative;
            z-index: 10;
        }

        /* The Tooltip Box */
        .info-icon:hover::after, .info-icon.active::after {
            content: attr(data-tooltip);
            position: absolute;
            top: 30px; 
            left: 50%;
            transform: translateX(-50%);
            background: #111827; 
            color: white;
            padding: 14px;
            border-radius: 12px;
            width: 220px;
            font-size: 0.8rem;
            font-weight: 500;
            line-height: 1.5;
            z-index: 9999999 !important; 
            box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
            white-space: pre-wrap;
            text-align: left;
            pointer-events: none;
        }

        /* The Triangle Arrow */
        .info-icon:hover::before, .info-icon.active::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-bottom-color: #111827;
            z-index: 9999999 !important;
        }

        /* Modals — match main WrkPulse app */
        .admin-modal-backdrop {
            position: fixed; inset: 0; background: rgba(15, 61, 62, 0.22);
            backdrop-filter: blur(1.5px);
            z-index: 9998; display: none;
        }
        .admin-modal-backdrop.open { display: block; }
        .admin-modal {
            position: fixed; z-index: 9999; display: none;
            width: min(520px, 95vw); max-height: 86vh; overflow: hidden;
            background: white; border-radius: 14px;
            box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
            border: 1px solid #d2dbe0;
            flex-direction: column;
            top: 102px; right: 50%; transform: translateX(50%);
        }
        .admin-modal.open { display: flex; }
        .admin-modal-header {
            background: linear-gradient(180deg, #0f3d3e 0%, #0e3334 100%);
            color: white; padding: 12px 16px;
            font-weight: 800; font-size: 1rem; display: flex; justify-content: space-between; align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.16);
        }
        .admin-modal-header.danger { background: linear-gradient(180deg, #7f1d1d 0%, #991b1b 100%); }
        .admin-modal-close {
            background: none; border: none; color: white; font-size: 1.4rem;
            cursor: pointer; line-height: 1; padding: 0 4px;
        }
        .admin-modal-body { padding: 16px; overflow-y: auto; flex: 1; background:#f8fafb; }
        .admin-modal-body input,
        .admin-modal-body select,
        .admin-modal-body textarea {
            width: 100%;
            padding: 10px 12px;
            box-sizing: border-box;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.88rem;
        }
        .admin-modal-body .admin-select-full { margin-bottom: 12px; }
        .admin-modal-body .admin-input { margin-bottom: 0; resize: vertical; min-height: 72px; }
        .admin-modal-footer {
            padding: 12px 16px 14px; display: flex; gap: 10px;
            border-top: 1px solid #dbe3e8; background: #f1f5f9;
        }
        .admin-modal-footer .btn { flex: 1; padding: 11px 12px; font-size: 0.85rem; border-radius: 999px; }

        /* Market Pulse — desktop table + mobile card stack */
        .market-pulse-wrap {
            max-height: 420px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .market-pulse-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.88rem;
        }
        .market-pulse-table thead {
            position: sticky;
            top: 0;
            background: #f9fafb;
            z-index: 1;
        }
        .market-pulse-table th {
            padding: 10px 12px;
            text-align: left;
            color: #6b7280;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            border-bottom: 1px solid #e5e7eb;
        }
        .market-pulse-table td {
            padding: 10px 12px;
            vertical-align: middle;
            border-bottom: 1px solid #eee;
        }
        .market-pulse-table .pulse-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .market-pulse-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        .market-pulse-toolbar-controls {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
        }
        .market-pulse-toolbar input[type="text"] {
            padding: 8px 12px;
            border: 1px solid #d1e7e8;
            border-radius: 999px;
            font-size: 0.88rem;
            min-width: 140px;
        }
        .pulse-status-critical { color: #ef4444; font-weight: 800; font-size: 0.78rem; }
        .pulse-status-building { color: #f59e0b; font-weight: 800; font-size: 0.78rem; }
        .pulse-status-ready { color: #10b981; font-weight: 800; font-size: 0.78rem; }
        .pulse-status-needed { color: #ef4444; font-weight: 800; font-size: 0.78rem; }
        .pulse-status-high { color: #f59e0b; font-weight: 800; font-size: 0.78rem; }
        .pulse-status-muted { color: #6b7280; font-size: 0.78rem; }
        .pulse-core-badge {
            font-size: 0.6rem;
            background: #111827;
            color: white;
            padding: 2px 6px;
            border-radius: 999px;
            margin-left: 6px;
            vertical-align: middle;
        }

        @media (max-width: 600px) {
            .header { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
            .header .logo-text { font-size: 1rem; }
            .admin-home-btn__label { display: none; }
            #statusMsg, #opsStatusPill { font-size: 0.65rem; }
            .admin-stat-grid { grid-template-columns: 1fr; }
            .admin-form-grid { grid-template-columns: 1fr; }
            .admin-trends-grid { grid-template-columns: 1fr; }
            .admin-traffic-card { flex-direction: column; align-items: flex-start; }
            .admin-traffic-card__feed { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 10px; width: 100%; }
            .content-area { padding: 12px; }
            .nav-tabs-shell { overflow: visible; }
            .nav-tabs {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                overflow: visible;
                padding: 8px 8px 10px;
                gap: 6px;
            }
            .tab-btn {
                flex: 0 1 calc(33.333% - 6px);
                min-width: calc(33.333% - 6px);
                max-width: calc(33.333% - 6px);
                width: auto;
                padding: 8px 4px;
                font-size: 0.68rem;
                gap: 3px;
                justify-content: center;
            }
            .tab-btn:nth-child(n + 4) {
                flex: 0 1 calc(50% - 6px);
                min-width: calc(50% - 6px);
                max-width: calc(50% - 6px);
            }
            .tab-btn i { font-size: 0.85rem; }
            .sub-tabs {
                flex-direction: row;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .sub-tabs::-webkit-scrollbar { display: none; }
            .sub-tab { flex: 0 0 auto; width: auto; min-width: max-content; white-space: nowrap; }
            .owner-mc-banner { font-size: 0.75rem; padding: 10px 12px; }
            .owner-mc-banner a { display: inline-block; margin-left: 0; margin-top: 4px; }
            .product-inbox-grid { grid-template-columns: 1fr; }
            .admin-review-toolbar { flex-direction: column; align-items: stretch; }
            .admin-review-toolbar .btn { width: 100%; }
            .product-inbox-toolbar .card-actions { width: 100%; }
            .product-inbox-toolbar .card-actions .btn { flex: 1; }
            .admin-toolbar { flex-direction: column; align-items: stretch; }
            .admin-premium-hub__hero { padding: 16px; }
            .admin-premium-hub__title { font-size: 1.2rem; }
            .admin-premium-hub__actions { align-items: stretch; width: 100%; }
            .admin-premium-hub__actions .btn-accent-pill { width: 100%; justify-content: center; }
            #view-moderation .admin-hub-rail,
            #view-growth .admin-hub-rail {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: x proximity;
                scroll-padding-inline: 12px;
                padding: 10px 12px;
                gap: 8px;
            }
            #productInboxHub .admin-hub-rail {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                overflow: visible;
                padding: 10px 12px;
            }
            #productInboxHub .admin-hub-rail__btn {
                width: 100%;
                min-width: 0;
                font-size: 0.74rem;
                padding: 8px 6px;
            }
            #settingsHub .admin-hub-rail {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                overflow: visible;
                padding: 10px 12px;
            }
            #settingsHub .admin-hub-rail__btn {
                width: 100%;
                min-width: 0;
                font-size: 0.74rem;
                padding: 8px 6px;
                white-space: normal;
                line-height: 1.2;
            }
            .admin-settings-toolbar {
                flex-direction: column;
                align-items: stretch;
            }
            .admin-settings-toolbar__actions {
                width: 100%;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .admin-settings-toolbar__actions .btn {
                width: 100%;
                justify-content: center;
                font-size: 0.72rem;
                padding: 8px 6px;
            }
            .admin-settings-toolbar__actions .btn-warn {
                grid-column: 1 / -1;
            }
            .admin-settings-tile .btn,
            .admin-settings-tile .btn-approve,
            .admin-settings-tile .btn-sm {
                width: 100%;
            }
            .admin-settings-bento .admin-settings-tile:last-child {
                margin-bottom: 0;
            }
            .admin-hub-panel { padding: 14px 12px 0; }
            .admin-hub-zone__head--row {
                flex-direction: column;
                align-items: stretch;
            }
            .admin-hub-zone__head--row .card-actions {
                width: 100%;
                flex-wrap: wrap;
                gap: 8px;
            }
            .admin-hub-zone__head--row .card-actions .btn {
                flex: 1 1 auto;
            }
            .admin-team-member {
                flex-direction: column;
                align-items: flex-start;
            }
            .admin-team-member .btn {
                width: 100%;
            }
            .admin-notify-stats {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .admin-notify-table {
                min-width: 280px;
            }
            .perm-group--premium {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .admin-hub-rail__btn {
                width: auto;
                min-width: max-content;
                flex: 0 0 auto;
                font-size: 0.76rem;
                padding: 8px 14px;
            }
            .admin-stat-grid--hero { width: 100%; min-width: 0; }
            .admin-settings-bento { grid-template-columns: 1fr; }
            .admin-hub-zone--inline { flex-direction: column; align-items: stretch; }
            .admin-input-row { flex-direction: column; align-items: stretch; }
            .admin-input-row .btn { width: 100%; }
            .admin-input--sm { flex: 1 1 auto; width: 100%; }
            #view-system .admin-form-grid,
            #view-system [style*="grid-template-columns: 1fr 1fr"] {
                grid-template-columns: 1fr !important;
            }
            .card > div[style*="grid-template-columns: 1fr 1fr 1fr"] {
                grid-template-columns: 1fr !important;
            }
            .info-icon:hover::after, .info-icon.active::after {
                left: auto; right: 0; transform: none; width: min(260px, 85vw);
            }
            .admin-modal { width: 100%; max-width: 100%; max-height: 100vh; border-radius: 0; top: auto; bottom: 0; right: 0; transform: none; }
            .market-pulse-wrap { max-height: none; overflow: visible; }
            .market-pulse-table thead { display: none; }
            .market-pulse-table,
            .market-pulse-table tbody,
            .market-pulse-table tr,
            .market-pulse-table td { display: block; width: 100%; box-sizing: border-box; }
            .market-pulse-table tr {
                margin-bottom: 12px;
                border-radius: 14px;
                border: 1px solid #e5e7eb;
                overflow: hidden;
                box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
            }
            .market-pulse-table td {
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                gap: 10px;
                padding: 10px 14px;
                border-bottom: 1px solid #f1f5f9;
                text-align: right;
            }
            .market-pulse-table td:last-child { border-bottom: none; }
            .market-pulse-table td::before {
                content: attr(data-label);
                font-weight: 800;
                color: #64748b;
                font-size: 0.72rem;
                text-transform: uppercase;
                letter-spacing: 0.03em;
                flex-shrink: 0;
                text-align: left;
            }
            .market-pulse-table td[data-label="Service"] {
                display: block;
                text-align: left;
                font-size: 1rem;
                padding: 14px 14px 10px;
                border-bottom: 1px solid #e5e7eb;
            }
            .market-pulse-table td[data-label="Service"]::before { display: none; }
            .market-pulse-table .pulse-actions {
                flex-direction: column;
                width: 100%;
            }
            .market-pulse-table .pulse-actions .btn { width: 100%; justify-content: center; }
            .market-pulse-toolbar { flex-direction: column; align-items: stretch; }
            .market-pulse-toolbar-controls { width: 100%; }
            .market-pulse-toolbar-controls input[type="text"] { flex: 1; min-width: 0; }
            .market-pulse-toolbar-controls .btn { flex: 1; justify-content: center; }
        }
        .product-inbox-section { margin-bottom: 28px; }
        .product-inbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .product-inbox-heading { margin: 0 0 4px; font-size: 1rem; }
        .product-inbox-sub { font-size: 0.8rem; color: var(--muted, #6b7280); margin: 0 0 10px; }
        .admin-review-toolbar { flex-wrap: wrap; }
        .admin-review-toolbar input { flex: 1; min-width: 140px; }

        /* ── Premium hub layout (owner tabs) ── */
        .admin-premium-eyebrow {
            margin: 0 0 4px;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.72);
        }
        .admin-premium-hub {
            background: #fff;
            border-radius: 20px;
            border: 1px solid #dde5e7;
            box-shadow: 0 10px 40px rgba(15, 61, 62, 0.09);
            overflow: visible;
            margin-bottom: 8px;
        }
        .admin-premium-hub__hero {
            background: linear-gradient(135deg, #0f3d3e 0%, #14534f 50%, #0f766e 100%);
            color: #fff;
            padding: 22px 24px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 18px;
            flex-wrap: wrap;
            border-radius: 20px 20px 0 0;
        }
        .admin-premium-hub__hero--compact { padding: 18px 22px; }
        .admin-premium-hub__title {
            font-family: 'Nunito', sans-serif;
            font-size: 1.45rem;
            font-weight: 900;
            margin: 0;
            line-height: 1.2;
            color: #fff;
        }
        .admin-premium-hub__lead {
            margin: 8px 0 0;
            font-size: 0.88rem;
            line-height: 1.5;
            color: rgba(255,255,255,0.88);
            max-width: 480px;
        }
        .admin-premium-hub__fine {
            margin: 10px 0 0;
            font-size: 0.75rem;
            color: rgba(255,255,255,0.65);
            line-height: 1.45;
        }
        .admin-premium-hub__actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
        }
        .admin-premium-hub__body { padding: 18px 20px 22px; border-radius: 0 0 20px 20px; background: #fff; }
        .admin-premium-hub__body--stack { display: flex; flex-direction: column; gap: 14px; }
        .admin-premium-hub__body--inbox { padding: 0 0 18px; min-height: 320px; overflow: hidden; border-radius: 0 0 20px 20px; background: #fff; }
        .admin-premium-hub__body > .sub-content { padding: 16px 20px 20px; animation: fadeIn 0.25s ease; }
        .admin-premium-hub__body > .sub-content.hidden { display: none !important; }
        .admin-hub-rail__btn .inbox-badge { margin-left: 4px; vertical-align: middle; flex-shrink: 0; }
        .admin-inbox-summary { font-size: 0.78rem; font-weight: 700; color: #a7f3d0; text-align: right; }

        .admin-stat-grid--hero {
            margin: 0;
            gap: 8px;
            min-width: 240px;
        }
        .stat-card--compact { padding: 10px 12px; border-radius: 12px; }
        .stat-card--compact .stat-card__value { font-size: 1.35rem; }
        .stat-card--compact .stat-card__label { font-size: 0.62rem; }

        .admin-hub-rail {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 12px 14px;
            background: #f1f5f6;
            border-bottom: 1px solid #e2e8f0;
            border-left: 1px solid #dde5e7;
            border-right: 1px solid #dde5e7;
            overflow: visible;
        }
        #view-moderation .admin-hub-rail,
        #view-growth .admin-hub-rail {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
            gap: 8px;
        }
        #productInboxHub .admin-hub-rail {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }
        #settingsHub .admin-hub-rail {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }
        .admin-hub-rail__btn {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: 1px solid transparent;
            background: transparent;
            color: #64748b;
            font-size: 0.78rem;
            font-weight: 800;
            padding: 9px 10px;
            border-radius: 999px;
            cursor: pointer;
            transition: background 0.15s, color 0.15s, box-shadow 0.15s;
            white-space: nowrap;
            line-height: 1.25;
            min-height: 38px;
            box-sizing: border-box;
            width: 100%;
            scroll-snap-align: start;
        }
        .admin-hub-rail__btn i { font-size: 1rem; flex-shrink: 0; }
        .admin-hub-rail__btn:hover { background: rgba(15, 61, 62, 0.06); color: var(--primary); }
        .admin-hub-rail__btn.active {
            background: #fff;
            color: var(--primary);
            border-color: #cce8ea;
            box-shadow: 0 2px 8px rgba(15, 61, 62, 0.1);
        }

        .admin-hub-panel { display: none; padding: 16px 20px 0; }
        .admin-hub-panel.active { display: block; animation: fadeIn 0.25s ease; }
        .admin-hub-panel__heading {
            display: none;
            margin: 0 0 8px;
            font-size: 0.92rem;
            font-weight: 900;
            color: var(--primary);
            align-items: center;
            gap: 6px;
        }
        .admin-hub-panel__heading i { font-size: 1rem; color: var(--primary); }
        .admin-hub-panel__intro {
            margin: 0 0 12px;
            font-size: 0.82rem;
            color: #64748b;
            line-height: 1.45;
        }

        .admin-hub-zone {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            overflow: hidden;
        }
        .admin-hub-zone--wide { width: 100%; }
        .admin-hub-zone--inline {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            padding: 14px 16px;
            background: #fff;
        }
        .admin-hub-zone--danger { border-color: #fecaca; }
        .admin-hub-zone__head {
            padding: 12px 16px;
            background: #fff;
            border-bottom: 1px solid #e8eef0;
        }
        .admin-hub-zone__head--row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }
        .admin-hub-zone__title {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 900;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .admin-hub-zone__title--sm { font-size: 0.85rem; }
        .admin-hub-zone__title--danger { color: #991b1b; }
        .admin-hub-zone__sub { margin: 4px 0 0; font-size: 0.78rem; color: #64748b; }
        .admin-hub-zone__scroll {
            padding: 10px 14px 14px;
            max-height: 280px;
            overflow-y: auto;
        }
        .admin-hub-zone__scroll--tall { max-height: 360px; }
        .admin-hub-zone__scroll--inbox { max-height: min(52vh, 420px); min-height: 200px; }

        .admin-premium-details {
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            background: #fafbfc;
            overflow: hidden;
        }
        .admin-premium-details__summary {
            padding: 14px 16px;
            font-weight: 800;
            font-size: 0.88rem;
            color: var(--primary);
            cursor: pointer;
            list-style: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .admin-premium-details__summary::-webkit-details-marker { display: none; }
        .admin-premium-details__body { padding: 0 16px 16px; }
        .admin-premium-details__body--row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            padding-top: 4px;
        }

        .admin-input {
            flex: 1;
            min-width: 0;
            padding: 9px 12px;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            font-size: 0.88rem;
            font-family: inherit;
            background: #fff;
            box-sizing: border-box;
        }
        .admin-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54, 209, 220, 0.2); }
        .admin-input--sm { flex: 0 1 120px; }
        .admin-input--mono { font-family: ui-monospace, monospace; width: 100%; resize: vertical; }
        .admin-input--span2 { grid-column: 1 / -1; }
        .admin-input-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
        .admin-color-row { display: flex; gap: 8px; align-items: center; }
        .admin-color-row input[type="color"] { width: 40px; height: 38px; border: none; padding: 0; cursor: pointer; border-radius: 8px; }

        .admin-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
        .admin-chip-row__label { font-size: 0.72rem; font-weight: 800; color: #92400e; width: 100%; }
        .btn-xs { font-size: 0.68rem !important; padding: 4px 10px !important; }
        .btn-accent-pill {
            background: var(--accent) !important;
            color: var(--primary) !important;
            font-weight: 900 !important;
            border: none !important;
            border-radius: 999px !important;
            padding: 10px 18px !important;
            box-shadow: 0 4px 14px rgba(54, 209, 220, 0.35);
        }
        .admin-btn-spaced { margin-top: 12px; }

        .admin-scraper-block {
            background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
            border: 1px solid #fcd34d;
            border-radius: 14px;
            padding: 14px;
            margin-bottom: 14px;
        }
        .admin-scraper-block__label { margin: 0; font-size: 0.75rem; font-weight: 900; color: #b45309; text-transform: uppercase; letter-spacing: 0.04em; }
        .admin-scraper-block__hint { margin: 6px 0 10px; font-size: 0.82rem; color: #92400e; }
        .admin-scraper-block__fine { margin: 0 0 10px; font-size: 0.72rem; color: #92400e; }
        .admin-api-usage {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: #fefce8;
            border: 1px dashed #fbd38d;
            border-radius: 10px;
            margin-bottom: 10px;
            font-size: 0.82rem;
            color: #9a3412;
        }
        .admin-cloud-search {
            background: #f0fdfa;
            border: 1px solid #99f6e4;
            border-radius: 14px;
            padding: 14px;
            margin-bottom: 14px;
        }
        .admin-cloud-search__label { margin: 0 0 10px; font-size: 0.72rem; font-weight: 800; color: #0f766e; text-transform: uppercase; letter-spacing: 0.04em; }
        .admin-city-stats {
            display: flex;
            gap: 10px;
            margin-top: 12px;
        }
        .admin-city-stats.hidden { display: none !important; }
        .admin-city-stat {
            flex: 1;
            text-align: center;
            background: #fff;
            border: 1px solid #ccfbf1;
            border-radius: 10px;
            padding: 10px;
        }
        .admin-city-stat span { display: block; font-size: 1.1rem; font-weight: 900; color: #0f766e; }
        .admin-city-stat small { color: #64748b; font-size: 0.72rem; }
        .admin-city-stat--green span { color: #166534; }
        .admin-city-stat--amber span { color: #b45309; }
        .admin-list-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e8eef0;
        }
        .admin-check-label { font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer; }
        .admin-check-label--inline { font-weight: 600; }
        .admin-alert { padding: 10px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; margin-bottom: 10px; }
        .admin-alert--danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

        .admin-exec-card {
            background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
            border: 1px solid #99f6e4;
            border-radius: 16px;
            padding: 16px 18px;
        }
        .admin-exec-card .admin-premium-eyebrow { color: #0f766e; }
        .admin-exec-card__title { margin: 0; font-size: 1.1rem; font-weight: 900; color: var(--primary); }
        .admin-exec-card__email { margin: 6px 0 0; font-size: 0.9rem; color: #475569; }

        .admin-settings-panel {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 16px 18px;
        }
        .admin-settings-panel__title { margin: 0 0 12px; font-size: 0.95rem; font-weight: 900; color: var(--primary); }
        .admin-settings-panel__block { margin-bottom: 14px; }
        .admin-settings-panel__block:last-child { margin-bottom: 0; }
        .admin-settings-bento--team { margin-top: 14px; }
        .admin-settings-tile__check { margin: 10px 0 12px; display: flex; }
        .admin-settings-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 14px;
        }
        .admin-settings-toolbar__actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }
        .admin-notify-status {
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 0.88rem;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            color: #475569;
        }
        .admin-notify-status--ok {
            background: #f0fdfa;
            border-color: #99f6e4;
            color: #0f766e;
        }
        .admin-notify-status--warn {
            background: #fffbeb;
            border-color: #fcd34d;
            color: #b45309;
        }
        .admin-notify-status--error {
            background: #fef2f2;
            border-color: #fecaca;
            color: #991b1b;
        }
        .admin-notify-digest {
            font-size: 0.88rem;
            color: #475569;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .admin-notify-digest__lead { margin: 0; }
        .admin-notify-muted { color: #94a3b8; }
        .admin-notify-digest__rule { margin: 0; font-size: 0.82rem; color: #64748b; line-height: 1.45; }
        .admin-notify-digest__meta { margin: 0; font-size: 0.82rem; color: #475569; }
        .admin-notify-stats { font-size: 0.85rem; color: #475569; }
        .admin-notify-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8rem;
        }
        .admin-notify-table th {
            text-align: left;
            color: #64748b;
            padding: 6px;
            font-weight: 700;
        }
        .admin-notify-table td {
            padding: 8px 6px;
            border-top: 1px solid #e5e7eb;
            vertical-align: top;
        }
        .perm-group--premium .perm-label {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            padding: 8px 12px;
        }

        .admin-settings-bento {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
            gap: 14px;
        }
        .admin-settings-tile {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 16px 18px;
            min-width: 0;
        }
        .admin-settings-tile--wide { grid-column: 1 / -1; }
        .admin-settings-tile__title { margin: 0 0 12px; font-size: 0.95rem; font-weight: 900; color: var(--primary); }
        .admin-settings-tile__title--warn { color: #b45309; }
        .admin-settings-tile__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
        .admin-form-grid .admin-input { width: 100%; }
        .admin-form-grid .admin-input--span2 { grid-column: 1 / -1; }

        .admin-team-folders {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 14px;
        }
        .admin-team-folder { margin: 0; }
        .admin-team-folder__meta {
            margin-left: auto;
            font-size: 0.72rem;
            font-weight: 600;
            color: #64748b;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
        }
        .admin-team-folder__badge {
            background: #f1f5f9;
            color: #475569;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 0.68rem;
            font-weight: 800;
        }
        .admin-team-folder__badge--open { background: #dcfce7; color: #166534; }
        .admin-team-folder__body { display: flex; flex-direction: column; gap: 8px; }
        .admin-team-member {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: #fff;
            border: 1px solid #e8eef0;
            border-radius: 12px;
        }
        .admin-team-member__perms {
            display: block;
            font-size: 0.72rem;
            color: #64748b;
            margin-top: 2px;
        }
        .admin-team-member__ceo {
            font-size: 0.72rem;
            font-weight: 900;
            color: var(--primary);
            background: #ecfdf5;
            padding: 4px 10px;
            border-radius: 999px;
        }
        .admin-trash-row {
            border-left: 4px solid #ef4444;
            opacity: 0.92;
            margin-bottom: 8px;
        }
        .admin-trash-row__main {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .admin-trash-row__role {
            font-size: 0.75rem;
            color: #64748b;
            font-weight: 600;
        }
        .admin-log-folder { margin-bottom: 8px; }
        .admin-log-folder__count {
            margin-left: auto;
            font-size: 0.72rem;
            font-weight: 800;
            background: #e0f2fe;
            color: #0369a1;
            padding: 2px 8px;
            border-radius: 999px;
        }
        .admin-log-folder__body { padding-top: 0; }
        .admin-log-entry {
            padding: 10px 0;
            border-bottom: 1px solid #e8eef0;
            font-size: 0.8rem;
        }
        .admin-log-entry:last-child { border-bottom: none; padding-bottom: 0; }
        .admin-log-entry__time { color: #94a3b8; font-size: 0.72rem; }
        .admin-empty-state {
            text-align: center;
            color: #94a3b8;
            padding: 24px 16px;
            font-size: 0.85rem;
            margin: 0;
        }
        .admin-empty-state--inline { padding: 12px 0; text-align: left; }
        #view-system .admin-settings-tile,
        .admin-hub-panel .admin-settings-tile { margin-bottom: 14px; }
        #view-system .admin-hub-zone,
        .admin-hub-panel .admin-hub-zone { margin-top: 14px; }

        /* Nested cards inside hub scroll areas stay compact */
        .admin-hub-zone__scroll > .card,
        .admin-hub-panel .card { margin-bottom: 8px; box-shadow: none; }
        .admin-hub-zone__scroll > .card:last-child,
        .admin-hub-panel .card:last-child { margin-bottom: 0; }

        /* Moderation + Growth polish (20260615modgrowth1) */
        .card-meta--prewrap { white-space: pre-wrap; word-break: break-word; }
        .card-meta--italic { font-style: italic; }
        .card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
        .card-header__main { flex: 1; min-width: 0; }
        .card-quote {
            background: #f3f4f6;
            padding: 10px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 0.85rem;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .card-action-bar {
            background: #f3f4f6;
            padding: 8px;
            border-radius: 8px;
            margin-top: 8px;
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
        }
        .card-action-bar__label { font-size: 0.75rem; font-weight: 800; color: #6b7280; }
        .btn-warn-sm { background: #fcd34d; color: #111; font-size: 0.65rem; padding: 4px 8px; border: none; border-radius: 8px; cursor: pointer; font-weight: 800; }
        .btn-warn-md { background: #f97316; color: white; font-size: 0.65rem; padding: 4px 8px; border: none; border-radius: 8px; cursor: pointer; font-weight: 800; }
        .btn-ban-sm { background: #ef4444; color: white; font-size: 0.65rem; padding: 4px 8px; border: none; border-radius: 8px; cursor: pointer; font-weight: 800; }
        .card--paused { border-left: 4px solid #f59e0b; }
        .card--active-ad { border-left: 4px solid var(--success); }
        .card-status-pill { font-size: 0.7rem; font-weight: 800; }
        .card-status-pill--active { color: var(--success); }
        .card-status-pill--paused { color: #f59e0b; }
        .ad-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
        .ad-card-header__email { color: var(--primary); font-weight: 700; }
        .ad-card-header__side { text-align: right; flex-shrink: 0; }
        .btn-payment-link {
            background: var(--primary);
            color: white;
            text-decoration: none;
            display: inline-block;
            font-weight: 800;
            border-radius: 10px;
            padding: 8px 12px;
            font-size: 0.82rem;
        }
        .btn-payment-link:hover { filter: brightness(1.08); }
        .card-actions--divider { border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }
        .ad-auto-note { font-size: 0.75rem; color: #0f766e; margin-top: 6px; }
        .trend-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
        .trend-row__main { flex: 1; min-width: 180px; }
        .trend-row__input { font-weight: 800; font-size: 1rem; width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid #cfd8dc; padding: 8px 10px; }
        .trend-row__actions { display: flex; flex-direction: column; gap: 5px; }
        .review-card-header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
        .review-card-date { font-size: 0.8rem; color: #9ca3af; flex-shrink: 0; }
        .review-stars { color: #f59e0b; margin: 5px 0; }
        .review-stars__text { color: var(--text-main); font-weight: 400; }
        .review-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; flex-wrap: wrap; }
        .biz-search-hit { cursor: pointer; border-left: 4px solid var(--accent); transition: 0.2s; }
        .biz-search-hit:hover { box-shadow: var(--card-shadow-hover); }
        .biz-search-found { margin-bottom: 15px; color: #059669; font-weight: 700; font-size: 0.88rem; }
        .moderation-panel--danger { border-left: 4px solid var(--danger); }
        .moderation-panel--danger .moderation-panel-title { color: #991b1b; }
        .admin-detail-box { background: white; padding: 15px; border-radius: 10px; border: 1px solid #e5e7eb; }
        .admin-appeal-box { background: #fffbeb; padding: 10px; border-radius: 8px; border: 1px solid #fcd34d; font-size: 0.88rem; }
        .admin-ban-actions { margin-top: 15px; display: flex; gap: 10px; flex-wrap: wrap; }
        .admin-ban-actions .btn { flex: 1; min-width: 140px; }
        .admin-section-heading-sm { color: #475569; font-size: 0.9rem; margin: 0 0 12px; font-weight: 800; }
        .card-deletion-meta { font-size: 0.78rem; color: #6b7280; margin-top: 6px; }
        .card-deletion-meta--stack { margin: 6px 0 2px; font-size: 0.8rem; }
        .admin-chip-row [role="button"] { cursor: pointer; }
        .admin-traffic-card__online { font-size: 0.8rem; color: #10b981; }
        .admin-live-event__type { color: white; font-weight: 800; font-size: 0.85rem; }
        .admin-live-event__time { color: #10b981; font-size: 0.7rem; margin-top: 2px; }
        .admin-traffic-card__feed.admin-live-event--flash { background: rgba(16, 185, 129, 0.2); transition: background-color 1s; }
        .admin-section-title--sm { font-size: 0.95rem; margin-bottom: 10px; }
        .pulse-row--critical { background: #fef2f2; }
        .pulse-row--building { background: #fffbeb; }
        .pulse-row--ready { background: #f0fdfa; }
        .pulse-row--needed { background: #fef2f2; }
        .pulse-row--high { background: #fffbeb; }
        .pulse-row--balanced { background: transparent; }
        .pulse-real--ok { color: #10b981; font-weight: 800; }
        .pulse-real--low { color: #ef4444; font-weight: 800; }
        .pulse-web-note { font-size: 0.65rem; color: #9ca3af; }
        .pulse-table-loading td,
        .pulse-table-empty td { text-align: center; padding: 20px; color: #6b7280; }
        .pulse-table-error td { text-align: center; padding: 20px; color: #991b1b; }
        .admin-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 12px; font-weight: 700; }
        .admin-checkbox-label input { width: 22px; height: 22px; accent-color: var(--success); flex-shrink: 0; }
        .admin-intro { font-size: 0.9rem; color: #374151; margin: 0 0 12px; line-height: 1.45; }
        .admin-zone-block { margin-top: 16px; }
        .admin-zone-block__title { margin-top: 0; }
        .inbox-badge.is-hidden { display: none; }
        .tab-btn.nav-tab-alert { color: #fca5a5 !important; }
        .admin-flagged-heading { color: #991b1b; margin: 0 0 8px; font-size: 0.88rem; font-weight: 900; }
        .card-actions--stretch .btn { flex: 1; min-width: 100px; }
        .card-actions--stretch { flex-wrap: wrap; }
        .card-actions--no-mt { margin-top: 0; }
        .uid-mono { font-family: ui-monospace, monospace; font-size: 0.7rem; }
        .status-pill.active { background: #d1fae5; color: #065f46; }
        .status-pill.paused { background: #fef3c7; color: #92400e; }
        .status-pill.rejected { background: #f3f4f6; color: #6b7280; }
        .status-pill.pending { background: #fef3c7; color: #92400e; }
        .admin-input--center { width: 100%; text-align: center; }
        .admin-select-full { width: 100%; padding: 10px; margin-bottom: 10px; box-sizing: border-box; }
        .admin-hub-zone--ads { margin-top: 14px; }
        .admin-trends-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        @media (max-width: 720px) { .admin-trends-grid { grid-template-columns: 1fr; } }

/* Owner debug panel (super admin) */
.owner-debug-panel {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 10050;
    font-family: Inter, system-ui, sans-serif;
    max-width: min(420px, calc(100vw - 24px));
}
.owner-debug-panel__toggle {
    display: block;
    margin-left: auto;
    background: #0f3d3e;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 61, 62, 0.35);
}
.owner-debug-panel__sheet {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    margin-bottom: 8px;
    padding: 12px;
    max-height: min(60vh, 420px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.owner-debug-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}
.owner-debug-panel__hint {
    margin: 0 0 8px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}
.owner-debug-panel__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.owner-debug-panel__btn {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.owner-debug-panel__list {
    overflow: auto;
    flex: 1;
    min-height: 80px;
}
.owner-debug-panel__empty {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}
.owner-debug-panel__item {
    border-top: 1px solid #f3f4f6;
    padding: 8px 0;
}
.owner-debug-panel__item-kind {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #b45309;
    margin-bottom: 4px;
}
.owner-debug-panel__item-msg {
    font-size: 12px;
    color: #111827;
    line-height: 1.4;
}
.owner-debug-panel__item-detail {
    margin: 6px 0 0;
    font-size: 10px;
    color: #4b5563;
    white-space: pre-wrap;
    background: #f9fafb;
    padding: 6px;
    border-radius: 6px;
    max-height: 100px;
    overflow: auto;
}

        /* Admin consistency audit (20260615adminaudit1) */
        .btn-eagle-eye {
            background: var(--primary);
            color: #fff;
            font-size: 0.65rem;
            padding: 4px 10px;
            white-space: nowrap;
            border: none;
            border-radius: 8px;
            font-weight: 800;
            cursor: pointer;
        }
        .btn-eagle-eye:hover { filter: brightness(1.08); }
        .card--compact { padding: 10px; margin-bottom: 6px; }
        .card--profile-good { border-left: 3px solid var(--success); }
        .card--profile-warn { border-left: 3px solid #f59e0b; }
        .card--verified { border-left: 3px solid var(--success); }
        .card--unverified { border-left: 3px solid #e5e7eb; }
        .card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
        .card-row__main { flex: 1; min-width: 0; }
        .card-row__aside { text-align: right; flex-shrink: 0; }
        .card-row--center { align-items: center; }
        .card-title-sm { font-size: 0.9rem; }
        .card-subline { font-size: 0.75rem; color: #6b7280; }
        .card-fine { font-size: 0.7rem; color: #9ca3af; margin-top: 2px; }
        .profile-pct { font-weight: 800; }
        .profile-pct--good { color: #166534; }
        .profile-pct--mid { color: #b45309; }
        .profile-pct--low { color: #991b1b; }
        .listing-tag {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 0.65rem;
            font-weight: 700;
        }
        .listing-tag--scraped { background: #fffbeb; color: #b45309; }
        .listing-tag--real { background: #ecfdf5; color: #166534; }
        .shared-phone-header { font-size: 0.75rem; font-weight: 800; color: #b45309; margin-bottom: 6px; }
        .shared-phone-city { font-size: 0.7rem; font-weight: 700; color: #6b7280; margin: 8px 0 4px; }
        .shared-phone-row { font-size: 0.78rem; padding: 6px 0; border-top: 1px solid #f3f4f6; }
        .admin-status-note { font-size: 0.85rem; margin: 0; }
        .admin-status-note--success { color: #166534; }
        .admin-status-note--warn { color: #b45309; }
        .admin-status-note--error { color: #991b1b; }
        .admin-status-note--muted { color: #6b7280; }
        .admin-inbox-banner { font-size: 0.85rem; margin: 0 0 10px; }
        .admin-inbox-banner--warn { color: #b45309; }
        .admin-inbox-banner--muted { color: #64748b; }
        .admin-admin-reply {
            background: #dcfce7;
            color: #166534;
            padding: 8px 10px;
            font-size: 0.8rem;
            margin-top: 8px;
            border-radius: 8px;
        }
        .admin-bug-reply-row { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
        .admin-bug-reply-row .admin-input { flex: 1; font-size: 0.82rem; }
        .admin-error-detail {
            white-space: pre-wrap;
            font-size: 0.75rem;
            background: #f9fafb;
            padding: 8px;
            border-radius: 6px;
            margin: 8px 0 0;
            max-height: 140px;
            overflow: auto;
        }
        .card-meta-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
        .card-meta-row__title { font-weight: 700; color: #374151; }
        .card-votes { font-weight: 800; color: var(--success); }
        .admin-user-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        .admin-user-actions { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
        .admin-user-row { display: flex; gap: 10px; align-items: flex-start; }
        .admin-user-row__body { flex: 1; min-width: 0; }
        .admin-user-row__head { display: flex; justify-content: space-between; gap: 8px; }
        .status-badge {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 800;
            margin-right: 5px;
        }
        .status-badge--warn1 { background: #fef3c7; color: #b45309; }
        .status-badge--warn2 { background: #f97316; color: white; }
        .status-badge--banned { background: #ef4444; color: white; }
        .status-badge--ceo { font-size: 0.7rem; font-weight: 800; color: var(--primary); }
        .btn-xs-action { font-size: 0.65rem; padding: 4px 8px; }
        .biz-list-actions { display: flex; align-items: center; gap: 4px; }
        .biz-select-check { transform: scale(1.2); cursor: pointer; }
        .admin-hub-zone__head--compact { margin-bottom: 10px; border-radius: 12px; }
        .admin-hub-zone__sub--flush { margin: 0; }

        /* Settings mobile — after desktop hub rules so cascade wins (adminsettings2) */
        @media (max-width: 600px) {
            #settingsHub .admin-hub-rail {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            #settingsHub .admin-hub-rail__btn {
                width: 100%;
                min-width: 0;
                white-space: normal;
                line-height: 1.2;
                font-size: 0.74rem;
                padding: 8px 6px;
            }
            .admin-settings-bento {
                grid-template-columns: 1fr;
            }
            .admin-settings-tile {
                padding: 14px 14px;
            }
        }