:root {
    --navy: #0c1626;
    --navy-2: #142033;
    --navy-3: #1c2c44;
    --blue: #1a73e8;
    --blue-soft: #e8f1fc;
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #152033;
    --muted: #667085;
    --line: #e4e7ec;
    --line-2: #f2f4f7;
    --danger: #d92d20;
    --danger-soft: #fef3f2;
    --ok: #079455;
    --ok-soft: #ecfdf3;
    --warn: #b54708;
    --warn-soft: #fffaeb;
    --sider: 240px;
    --top: 60px;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: #1558b0; }
button, input, select, textarea { font: inherit; }

.main { flex: 1; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.app-watermark {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.app-watermark img {
    position: absolute;
    left: 52%;
    top: 48%;
    width: min(680px, 78vw);
    height: auto;
    max-width: none;
    transform: translate(-50%, -50%);
    opacity: .2;
    user-select: none;
}
.shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.sider {
    width: var(--sider);
    background: var(--navy);
    color: #c9d4e3;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    border-right: 1px solid #1a2740;
    z-index: 3;
}
.main > .top,
.main > .content {
    position: relative;
    z-index: 1;
}
.top {
    height: var(--top);
    background: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 16px;
    color: #fff;
    font-weight: 650;
    letter-spacing: -.01em;
}
.brand:hover { color: #fff; }
.brand-logo { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; border-radius: 0; background: transparent; }
.brand .app-name-inline {
    display: block;
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
}
.brand small { display: block; font-weight: 500; color: #8b9bb0; font-size: 11px; letter-spacing: .01em; margin-top: 1px; }
.cyber-brand {
    position: relative;
    border-bottom: 1px solid rgba(34, 197, 94, .18);
    background: linear-gradient(180deg, rgba(34, 197, 94, .08), transparent);
}
.cyber-brand::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: linear-gradient(180deg, #4ade80, transparent);
    box-shadow: 0 0 12px rgba(74, 222, 128, .55);
}
.nav-group {
    padding: 16px 18px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6f8096;
    font-weight: 600;
}
.nav-item, .nav-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1px 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #c5d0de;
    font-size: 13.5px;
    font-weight: 500;
}
.nav-item:hover, .nav-sub a:hover { background: var(--navy-3); color: #fff; }
.nav-item.active, .nav-sub a.active { background: #1a4f8c; color: #fff; }
.nav-item svg, .nav-sub svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .85; }
.nav-sub { padding: 0 0 6px; }

.crumb { min-width: 0; }
.crumb strong { color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.workspace-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.workspace-switch a {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    background: #fff;
}
.workspace-switch a:hover { color: var(--text); border-color: #cfd6e0; }
.workspace-switch a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.user a { color: var(--text); font-weight: 500; }
.user-name { font-weight: 600; color: var(--text); }
.bell { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; font-weight: 700; }
.content { padding: 20px 24px 32px; width: 100%; max-width: none; flex: 1; min-width: 0; overflow-x: hidden; }

.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; }
.kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; margin-bottom: 4px; }
.page-head h1, h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; font-weight: 700; }
.lead { color: var(--muted); margin: 6px 0 0; max-width: 640px; line-height: 1.5; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.action-menu {
    position: relative;
    display: inline-block;
}
.action-menu > summary {
    list-style: none;
    cursor: pointer;
}
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > summary::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    opacity: .75;
}
.action-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    min-width: 220px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.action-menu-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.action-menu-panel a:hover,
.action-menu-panel a.is-active {
    background: var(--line-2, #f1f5f9);
}
.action-menu-label {
    margin: 6px 8px 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.action-menu-sub { padding-left: 18px !important; font-weight: 550 !important; }
.listening-subhead {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}
.listening-subhead h2 {
    margin: 0;
    font-size: 18px;
}
.card-foot {
    padding: 0 14px 10px;
}
.card-foot .pagination { padding-top: 8px; }

.card {
    background: rgba(255, 255, 255, .88);
    border-radius: var(--radius);
    padding: 18px 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    min-width: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.stream-counts {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .01em;
}
.table-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    min-width: min(100%, 280px);
}
.table-search input {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    width: 220px;
    max-width: 100%;
}
.table-search input:focus {
    outline: none;
    border-color: var(--blue, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
h2 { font-size: 14px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: -.01em; }
h2::before { content: ""; width: 3px; height: 12px; background: var(--blue); border-radius: 2px; display: inline-block; }
.muted { color: var(--muted); font-size: 12px; }

.grid { display: grid; gap: 14px; min-width: 0; }
.grid > * { min-width: 0; }
.metrics { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 16px; }
.metric {
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.metric .label { color: var(--muted); font-size: 12px; font-weight: 600; }
.metric .value { font-size: 22px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.metric .sub { color: var(--blue); font-size: 12px; margin-top: 4px; font-weight: 500; }
a.metric.is-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.metric.is-link:hover {
    border-color: var(--blue);
    box-shadow: 0 6px 18px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}
a.metric.is-link:hover .value { color: var(--blue); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.feed-with-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 14px;
    align-items: start;
}
.sentiment-side {
    position: sticky;
    top: calc(var(--top) + 16px);
    margin-bottom: 0;
}
.sentiment-overview { margin-bottom: 0; }
.sentiment-metrics {
    margin: 12px 0 16px;
}
.sentiment-metrics .metric .value { font-size: 22px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; padding: 4px; background: #eef1f6; border-radius: 10px; width: fit-content; }
.tabs a { background: transparent; border: 0; color: var(--muted); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}
.btn:hover { background: #1558b0; border-color: #1558b0; color: #fff; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--line-2); color: var(--text); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #b42318; border-color: #b42318; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, label {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.req { color: var(--muted); font-weight: 500; font-size: 11px; }
.hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
input, select, textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    min-height: 40px;
}
textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: #b8c0cc; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .15);
}
input::placeholder, textarea::placeholder { color: #98a2b3; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input[type="file"] { padding: 7px 10px; color: var(--muted); }
input[type="checkbox"], input[type="radio"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    accent-color: var(--blue);
}
.form-stack { display: grid; gap: 16px; }
.form-stack .grid { margin-top: 0; gap: 14px; }
.form-actions { display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.form-section { display: grid; gap: 12px; padding-top: 4px; }
.form-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); margin: 0; font-weight: 500; min-height: 40px; }
.check input { width: auto; }
.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.toolbar.card { margin-bottom: 16px; }
.toolbar .grow, .grow { flex: 1; min-width: 180px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 650;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}
tbody td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--line-2);
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--line-2, #f8fafc); }
tbody tr:hover td { background: transparent; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { text-align: right; white-space: nowrap; }
.action-icons {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}
.action-icons form { display: inline-flex; margin: 0; }
.btn.icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn.icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.btn.icon.danger-icon { color: var(--danger); }
.btn.icon.danger-icon:hover {
    background: var(--danger-soft, #fef3f2);
    border-color: var(--danger);
    color: var(--danger);
}
.table-empty td { padding: 0; border: 0; background: transparent; }
.table-empty:hover { background: transparent; }
.cell-title { display: flex; flex-direction: column; gap: 2px; }
.cell-title strong { font-weight: 650; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.inline-form input, .inline-form select { min-height: 34px; padding: 6px 10px; width: auto; min-width: 120px; }
.inline-form .btn { min-height: 34px; padding: 6px 10px; }

.pill {
    display: inline-flex;
    align-items: center;
    background: #eef2f6;
    color: #344054;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 650;
    text-transform: capitalize;
    letter-spacing: .01em;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }

.flash, .errors {
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid transparent;
}
.flash { background: var(--ok-soft); color: #067647; border-color: #abefc6; }
.errors { background: var(--danger-soft); color: #b42318; border-color: #fecdca; }

.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--blue-soft); color: #1849a9;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.avatar.sm { width: 28px; height: 28px; font-size: 10px; }

.feed { display: flex; flex-direction: column; gap: 10px; }
.feed-day {
    margin: 6px 0 2px;
    padding: 4px 2px;
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
    letter-spacing: .02em;
    text-transform: uppercase;
}
.feed-item {
    display: block; color: inherit; background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow);
}
.feed-item:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); color: inherit; }
.feed-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feed-who { flex: 1; min-width: 0; }
.feed-who strong { color: var(--text); }
.feed-text { margin: 0 0 8px; line-height: 1.55; color: var(--text); }
.feed-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

.rank { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: inherit; }
.rank-row:last-child { border-bottom: 0; }
.rank-n { width: 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rank-row strong { display: block; color: var(--text); }
.rank-score { margin-left: auto; color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 14px; }
.empty p { margin: 0; }

.quote { background: var(--line-2); border-left: 3px solid var(--blue); padding: 12px 14px; border-radius: 0 8px 8px 0; line-height: 1.55; color: var(--text); }
.account-tile-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-tile .btn.icon.is-pinned {
    color: #f59e0b;
    border-color: color-mix(in srgb, #f59e0b 40%, var(--line));
}
.tile:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); color: inherit; }
.tile .muted { margin-top: 6px; }
.report-link { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); color: inherit; }
.report-link:last-child { border-bottom: 0; }
.report-link:hover { color: inherit; }
.report-link span { color: var(--muted); font-size: 12px; font-weight: 600; }

.dl { display: grid; gap: 14px; }
.dl-row { display: grid; gap: 4px; }
.dl-row dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.dl-row dd { margin: 0; font-weight: 550; }

.pagination { display: flex; gap: 4px; list-style: none; padding: 14px 0 0; margin: 0; flex-wrap: wrap; }
.page-item .page-link, .pagination li a, .pagination li span {
    display: inline-flex; min-width: 32px; height: 32px; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #fff; padding: 0 8px; font-size: 13px;
}
.page-item.active .page-link, .pagination .active span { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-item.disabled .page-link { opacity: .45; }
.chart-box {
    position: relative;
    height: 220px;
    max-height: 220px;
    width: 100%;
    overflow: hidden;
}
.chart-box.tall { height: 280px; max-height: 280px; }
.chart-box.short { height: 160px; max-height: 160px; }
.chart-box canvas { display: block !important; width: 100% !important; height: 100% !important; }
#sna { width: 100%; height: 100%; display: block; cursor: grab; }
.sna-card { overflow: hidden; }
.sna-stage {
    position: relative;
    height: 560px;
    max-height: 70vh;
    min-height: 420px;
    border-radius: 10px;
    overflow: hidden;
    background: #0c1626;
    border: 1px solid #1e2a3d;
}
.sna-stage-board {
    height: 420px;
    min-height: 360px;
    max-height: 55vh;
}
.sna-stage canvas,
#sna,
#board-sna,
[id$="-sna"] {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}
.sna-tip {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    background: rgba(15, 23, 42, .92);
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    display: grid;
    gap: 2px;
    max-width: 220px;
}
.sna-tip strong { color: #fff; }
.sna-toggle { margin: 0; min-height: 0; color: var(--muted); font-size: 12px; }
.sna-toggle input { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #eef2f7; color: var(--text); border-radius: 99px;
    padding: 4px 10px; font-size: 12px;
}
.chip strong { color: var(--blue); }
a.chip:hover { color: inherit; background: #e4ebf5; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.swatch { width: 10px; height: 10px; border-radius: 99px; display: inline-block; margin-right: 4px; }

.chooser { max-width: 1100px; margin: 36px auto; }
.chooser-lead { color: var(--muted); margin: 0 0 22px; }
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chooser-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chooser-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chooser-card {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    border: 1px solid var(--line);
    color: inherit;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.chooser-card:hover { border-color: #b7ccea; color: inherit; }
.chooser-card h2 { font-size: 20px; margin: 0 0 10px; display: block; letter-spacing: -.02em; }
.chooser-card h2::before { display: none; }
.chooser-card p { color: var(--muted); flex: 1; margin: 0 0 16px; line-height: 1.55; }
.chooser-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.chooser-cta { font-weight: 700; color: var(--blue); }

/* —— Cyber home —— */
body.theme-cyber {
    background: #060d18;
    color: #e2e8f0;
}
body.theme-cyber .main,
body.theme-cyber.page-home .shell-home .main,
body.page-home .shell-home .main {
    background:
        radial-gradient(ellipse 70% 50% at 50% 18%, rgba(34, 197, 94, .12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(14, 165, 233, .08), transparent 50%),
        linear-gradient(180deg, #07111f 0%, #060d18 45%, #050a14 100%);
    min-height: 100vh;
}
body.page-home.theme-light .top {
    background: rgba(6, 13, 24, .72);
    border-bottom: 1px solid rgba(34, 197, 94, .18);
    color: #e2e8f0;
}
body.page-home.theme-light .workspace-switch a {
    background: rgba(255,255,255,.04);
    border-color: rgba(148, 163, 184, .28);
    color: #94a3b8;
}
body.page-home.theme-light .workspace-switch a.active {
    background: rgba(34, 197, 94, .16);
    border-color: #22c55e;
    color: #86efac;
}
body.page-home.theme-light .user,
body.page-home.theme-light .user a,
body.page-home.theme-light .user-name { color: #cbd5e1; }
body.page-home.theme-light .btn.ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, .35);
    color: #e2e8f0;
}
body.theme-cyber .top {
    background: rgba(6, 13, 24, .72);
    border-bottom: 1px solid rgba(34, 197, 94, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.theme-cyber .crumb-home { min-width: 0; width: 0; overflow: hidden; }
body.theme-cyber .workspace-switch a {
    background: rgba(255,255,255,.04);
    border-color: rgba(148, 163, 184, .28);
    color: #94a3b8;
}
body.theme-cyber .workspace-switch a:hover {
    color: #e2e8f0;
    border-color: rgba(34, 197, 94, .45);
}
body.theme-cyber .workspace-switch a.active {
    background: rgba(34, 197, 94, .16);
    border-color: #22c55e;
    color: #86efac;
    box-shadow: 0 0 16px rgba(34, 197, 94, .25);
}
body.theme-cyber .user,
body.theme-cyber .user a,
body.theme-cyber .user-name { color: #cbd5e1; }
body.theme-cyber .user a:hover { color: #86efac; }
body.theme-cyber .btn.ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, .35);
    color: #e2e8f0;
}
body.theme-cyber .btn.ghost:hover {
    border-color: #22c55e;
    color: #86efac;
}
body.theme-cyber .avatar.sm {
    background: rgba(34, 197, 94, .2);
    color: #86efac;
}
body.theme-cyber .content {
    position: relative;
    padding: 28px 24px 48px;
    overflow: hidden;
}
/* Home already has its own infused logo; keep global watermark softer */
body.theme-cyber .app-watermark img {
    opacity: .1;
    width: min(720px, 80vw);
    filter: blur(1px) saturate(1.2);
}

.cyber-home {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    z-index: 1;
}
.cyber-backdrop {
    position: absolute;
    inset: -80px -10% auto;
    height: 520px;
    pointer-events: none;
    z-index: 0;
}
.cyber-logo-glow {
    position: absolute;
    left: 50%;
    top: 20px;
    width: min(520px, 70vw);
    height: auto;
    transform: translateX(-50%);
    opacity: .14;
    filter: blur(2px) saturate(1.2);
    mix-blend-mode: screen;
}
.cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 197, 94, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, .07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%);
}
.cyber-scan {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, .55), transparent);
    animation: cyber-scan 7s linear infinite;
    opacity: .55;
}
@keyframes cyber-scan {
    0% { transform: translateY(40px); opacity: 0; }
    10% { opacity: .6; }
    90% { opacity: .35; }
    100% { transform: translateY(420px); opacity: 0; }
}

.cyber-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 50% 28%, rgba(34, 197, 94, .12), transparent 70%),
        radial-gradient(ellipse 80% 70% at 50% 100%, rgba(0, 0, 0, .55), transparent 55%);
    pointer-events: none;
}

/* HUD corner brackets */
.cyber-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.cyber-frame .cf {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: #4ade80;
    border-style: solid;
    border-width: 0;
    opacity: .85;
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, .55));
}
.cyber-frame .cf-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.cyber-frame .cf-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.cyber-frame .cf-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.cyber-frame .cf-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.cyber-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 16px;
    padding: 5px 12px;
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #86efac;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .32);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.cyber-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
    animation: cyber-dot 1.8s ease-out infinite;
}
@keyframes cyber-dot {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.cyber-brand-lockup {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 36px 22px;
    margin: 0 auto 20px;
    background: linear-gradient(165deg, rgba(8, 18, 32, .55), rgba(6, 12, 22, .25));
    border: 1px solid rgba(34, 197, 94, .2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .03) inset,
        0 24px 60px rgba(0, 0, 0, .35);
}
.cyber-brand-lockup .cyber-logo { margin-bottom: 12px; }
.cyber-brand-lockup .cyber-app-name { margin-bottom: 10px; }
.cyber-brand-lockup .cyber-status { margin-bottom: 0; }

.cyber-auth-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 40% at 50% 18%, rgba(34, 197, 94, .16), transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(14, 165, 233, .06), transparent 50%),
        linear-gradient(180deg, #050a12 0%, #07111f 45%, #060d18 100%);
}
.cyber-auth-backdrop .cyber-grid {
    inset: 0;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 15%, transparent 72%);
}
.cyber-auth-backdrop .cyber-scan {
    left: 5%;
    right: 5%;
    animation-duration: 9s;
}
.cyber-auth-backdrop .cyber-logo-glow {
    top: 8%;
    width: min(560px, 78vw);
    opacity: .16;
}

.cyber-auth-card {
    position: relative;
    overflow: hidden;
}
.cyber-auth-card .cyber-frame { inset: 10px; }
.cyber-auth-card .auth-brand { position: relative; z-index: 1; }
.cyber-auth-card .auth-brand .app-name {
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-weight: 800;
    letter-spacing: .18em;
    color: #4ade80;
    text-shadow: 0 0 24px rgba(34, 197, 94, .45);
}
.cyber-auth-card .auth-logo {
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, .4));
}
.cyber-auth-card h1 {
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 18px;
}
.cyber-auth-card .lead {
    font-size: 13px;
    letter-spacing: .02em;
}

.cyber-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 28px 12px 8px;
}
.cyber-logo {
    width: 168px;
    height: 168px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 28px rgba(34, 197, 94, .35));
    animation: cyber-pulse 4.5s ease-in-out infinite;
}
@keyframes cyber-pulse {
    0%, 100% { filter: drop-shadow(0 0 22px rgba(34, 197, 94, .28)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 40px rgba(34, 197, 94, .48)); transform: scale(1.02); }
}
.cyber-kicker {
    display: inline-block;
    color: #4ade80;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    border-radius: 999px;
    padding: 4px 12px;
    letter-spacing: .14em;
    margin-bottom: 14px;
}
.app-name,
.cyber-app-name {
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 42px);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #f8fafc;
    margin: 0 0 12px;
    line-height: 1.1;
    text-shadow: 0 0 28px rgba(34, 197, 94, .35);
}
.cyber-app-name {
    color: #4ade80;
    text-shadow:
        0 0 12px rgba(74, 222, 128, .55),
        0 0 36px rgba(34, 197, 94, .35);
}
.cyber-title {
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    margin: 0 0 10px;
    color: #f1f5f9;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(34, 197, 94, .2);
}
.cyber-home .chooser-lead {
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto 28px;
}
.cyber-home .chooser-grid {
    position: relative;
    z-index: 2;
    gap: 18px;
}
.cyber-card {
    position: relative;
    background: linear-gradient(160deg, rgba(15, 23, 42, .88), rgba(8, 16, 30, .92));
    border: 1px solid rgba(34, 197, 94, .22);
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.03) inset,
        0 18px 40px rgba(0, 0, 0, .35);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
}
.cyber-card::before,
.cyber-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #4ade80;
    border-style: solid;
    opacity: .55;
    transition: opacity .2s ease;
    pointer-events: none;
}
.cyber-card::before {
    top: 8px;
    left: 8px;
    border-width: 2px 0 0 2px;
}
.cyber-card::after {
    bottom: 8px;
    right: 8px;
    border-width: 0 2px 2px 0;
}
.cyber-card:hover {
    border-color: rgba(34, 197, 94, .55);
    color: #f8fafc;
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, .15) inset,
        0 0 32px rgba(34, 197, 94, .18),
        0 22px 48px rgba(0, 0, 0, .4);
}
.cyber-card:hover::before,
.cyber-card:hover::after { opacity: 1; }
.cyber-card h2 {
    color: #f8fafc;
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.cyber-card p { color: #94a3b8; }
.cyber-card .chooser-kicker {
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-size: 10px;
    letter-spacing: .14em;
    color: #4ade80;
}
.cyber-card .chooser-cta {
    color: #86efac;
    letter-spacing: .02em;
}
.cyber-card:hover .chooser-cta { color: #bbf7d0; }

@media (max-width: 800px) {
    .cyber-logo { width: 128px; height: 128px; }
    .cyber-logo-glow { width: min(360px, 90vw); }
    .cyber-brand-lockup { padding: 20px 18px 16px; }
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.auth-watermark {
    position: fixed;
    inset: 0;
    z-index: 0;
}
.auth-watermark img {
    width: min(720px, 85vw);
    opacity: .12;
    filter: blur(1px) saturate(1.15);
    mix-blend-mode: screen;
}
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 36px 28px 32px;
    box-shadow: 0 18px 50px rgba(0,0,0,.24);
}
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--text);
    font-weight: 700;
}
.auth-brand .app-name {
    font-size: 28px;
    letter-spacing: .12em;
    color: var(--text);
    text-shadow: none;
    margin: 0;
}
.auth-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    display: block;
}
.auth-card h1 { font-size: 22px; margin: 0 0 6px; text-align: center; }
.auth-card .lead { margin-bottom: 20px; text-align: center; }
.auth-card .form-stack { gap: 14px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; }

/* —— Theme picker (settings) —— */
.theme-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.theme-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option.active,
.theme-option:has(input:checked) {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.theme-option-preview {
    width: 56px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,.08);
}
.theme-preview-cyber {
    background:
        linear-gradient(135deg, #07111f 40%, #0b1a12 100%);
    box-shadow: inset 0 0 0 1px rgba(34,197,94,.35), inset -10px -8px 0 #22c55e33;
}
.theme-preview-light {
    background: linear-gradient(135deg, #f4f6f9 50%, #fff 50%);
    box-shadow: inset 0 0 0 1px #d0d5dd, inset -10px -8px 0 #1a73e833;
}
.theme-option-copy { display: grid; gap: 4px; min-width: 0; }
.theme-option-copy strong { color: var(--text); font-size: 14px; }
.theme-option-copy small { color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 500; }

/* —— Cyber theme (app-wide) —— */
body.theme-cyber {
    --bg: #060d18;
    --card: rgba(15, 23, 42, .88);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: rgba(34, 197, 94, .18);
    --line-2: rgba(148, 163, 184, .12);
    --blue: #4ade80;
    --blue-soft: rgba(34, 197, 94, .12);
    --navy: #07111f;
    --navy-2: #0b1726;
    --navy-3: #122033;
}
body.theme-cyber .sider {
    background: #050a14;
    border-right-color: rgba(34, 197, 94, .16);
}
body.theme-cyber .nav-item:hover,
body.theme-cyber .nav-sub a:hover { background: rgba(34, 197, 94, .1); color: #fff; }
body.theme-cyber .nav-item.active,
body.theme-cyber .nav-sub a.active {
    background: rgba(34, 197, 94, .18);
    color: #bbf7d0;
}
body.theme-cyber .brand .app-name-inline {
    color: #4ade80;
    text-shadow: 0 0 14px rgba(34, 197, 94, .35);
}
body.theme-cyber .brand small { color: #64748b; }
body.theme-cyber .crumb strong {
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 13px;
    color: #f8fafc;
}
body.theme-cyber h1,
body.theme-cyber h2,
body.theme-cyber .page-head h1 { color: #f8fafc; }
body.theme-cyber .page-head h1 {
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    letter-spacing: .06em;
}
body.theme-cyber .lead,
body.theme-cyber .hint,
body.theme-cyber .muted { color: #94a3b8; }
body.theme-cyber .kicker { color: #4ade80; }
body.theme-cyber .card,
body.theme-cyber .toolbar,
body.theme-cyber .metric {
    background: linear-gradient(160deg, rgba(15, 23, 42, .92), rgba(8, 16, 30, .94));
    border-color: rgba(34, 197, 94, .2);
    color: #e2e8f0;
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
body.theme-cyber .action-menu-panel {
    background: linear-gradient(160deg, rgba(15, 23, 42, .98), rgba(8, 16, 30, .99));
    border-color: rgba(34, 197, 94, .25);
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
body.theme-cyber .action-menu-panel a { color: #e2e8f0; }
body.theme-cyber .action-menu-panel a:hover,
body.theme-cyber .action-menu-panel a.is-active {
    background: rgba(34, 197, 94, .12);
}
body.theme-cyber .feed-item,
body.theme-cyber .tile {
    background: linear-gradient(160deg, rgba(15, 23, 42, .95), rgba(8, 16, 30, .97));
    border-color: rgba(34, 197, 94, .22);
    color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
body.theme-cyber .feed-item:hover,
body.theme-cyber .tile:hover {
    border-color: rgba(34, 197, 94, .5);
    box-shadow: 0 0 24px rgba(34, 197, 94, .12), 0 12px 32px rgba(0,0,0,.35);
}
body.theme-cyber .feed-text,
body.theme-cyber .feed-who strong,
body.theme-cyber .tile strong {
    color: #f1f5f9;
}
body.theme-cyber .feed-stats,
body.theme-cyber .feed-who .muted,
body.theme-cyber .tile .muted {
    color: #94a3b8;
}
body.theme-cyber .avatar {
    background: rgba(34, 197, 94, .18);
    color: #86efac;
}
body.theme-cyber .page-item .page-link,
body.theme-cyber .pagination li a,
body.theme-cyber .pagination li span {
    background: rgba(15, 23, 42, .9);
    border-color: rgba(148, 163, 184, .25);
    color: #cbd5e1;
}
body.theme-cyber .page-item.active .page-link,
body.theme-cyber .pagination .active span {
    background: rgba(34, 197, 94, .2);
    border-color: #22c55e;
    color: #bbf7d0;
}
body.theme-cyber .metric .label { color: #94a3b8; }
body.theme-cyber .metric .value { color: #f8fafc; }
body.theme-cyber .metric .sub { color: #86efac; }
body.theme-cyber table th {
    background: rgba(8, 16, 30, .9);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, .14);
}
body.theme-cyber table td {
    border-color: rgba(148, 163, 184, .1);
    color: #e2e8f0;
}
body.theme-cyber tbody tr:hover {
    background: rgba(34, 197, 94, .1);
}
body.theme-cyber tbody tr:hover td {
    background: transparent;
    color: #f1f5f9;
}
body.theme-cyber tbody tr:hover .muted,
body.theme-cyber tbody tr:hover .check {
    color: #cbd5e1;
}
body.theme-cyber input,
body.theme-cyber select,
body.theme-cyber textarea {
    background-color: rgba(2, 8, 18, .72);
    background-image: none;
    border-color: rgba(148, 163, 184, .28);
    color: #e2e8f0;
}
body.theme-cyber select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}
body.theme-cyber input:focus,
body.theme-cyber select:focus,
body.theme-cyber textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}
body.theme-cyber .btn {
    background: #16a34a;
    border-color: #16a34a;
}
body.theme-cyber .btn:hover {
    background: #15803d;
    border-color: #15803d;
}
body.theme-cyber .btn.ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, .35);
    color: #e2e8f0;
}
body.theme-cyber .btn.ghost:hover {
    border-color: #22c55e;
    color: #86efac;
    background: rgba(34, 197, 94, .08);
}
body.theme-cyber .tabs {
    background: rgba(148, 163, 184, .1);
}
body.theme-cyber .tabs a {
    color: #94a3b8;
    border-color: transparent;
}
body.theme-cyber .tabs a.active,
body.theme-cyber .tabs a:hover {
    color: #86efac;
    background: rgba(34, 197, 94, .14);
    border-color: transparent;
    box-shadow: none;
}
body.theme-cyber a { color: #86efac; }
body.theme-cyber a:hover { color: #bbf7d0; }
body.theme-cyber a.muted { color: #94a3b8; }
body.theme-cyber a.muted:hover { color: #86efac; }
body.theme-cyber .feed-item a,
body.theme-cyber .tile a,
body.theme-cyber .rank-row,
body.theme-cyber .report-link { color: inherit; }
body.theme-cyber .feed-item:hover,
body.theme-cyber .tile:hover,
body.theme-cyber .rank-row:hover,
body.theme-cyber .report-link:hover { color: inherit; }
body.theme-cyber .pill {
    background: rgba(148, 163, 184, .16);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, .22);
}
body.theme-cyber .pill.ok {
    background: rgba(34, 197, 94, .16);
    color: #86efac;
    border-color: rgba(34, 197, 94, .35);
}
body.theme-cyber .pill.warn {
    background: rgba(245, 158, 11, .16);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, .35);
}
body.theme-cyber .pill.bad {
    background: rgba(239, 68, 68, .16);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, .35);
}
body.theme-cyber .chip {
    background: rgba(148, 163, 184, .12);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, .18);
}
body.theme-cyber .chip strong { color: #86efac; }
body.theme-cyber a.chip:hover {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .35);
    color: #f1f5f9;
}
body.theme-cyber .quote {
    background: rgba(148, 163, 184, .08);
    border-left-color: #22c55e;
    color: #e2e8f0;
}
body.theme-cyber .empty strong { color: #f1f5f9; }
body.theme-cyber .rank-score { color: #86efac; }
body.theme-cyber .check { color: #e2e8f0; }
body.theme-cyber .form-section-title { color: #94a3b8; }
body.theme-cyber .report-link { border-color: rgba(148, 163, 184, .12); }
body.theme-cyber .report-link span { color: #94a3b8; }
body.theme-cyber .cell-title strong { color: #f1f5f9; }
body.theme-cyber .dl-row { border-color: rgba(148, 163, 184, .12); }
body.theme-cyber .dl-row dt { color: #94a3b8; }
body.theme-cyber .dl-row dd { color: #e2e8f0; }
body.theme-cyber .proportion-track {
    background: rgba(148, 163, 184, .18);
}
body.theme-cyber input::placeholder,
body.theme-cyber textarea::placeholder { color: #64748b; }
body.theme-cyber option,
body.theme-cyber optgroup {
    background: #0b1726;
    color: #e2e8f0;
}
body.theme-cyber input[type="checkbox"],
body.theme-cyber input[type="radio"] {
    accent-color: #22c55e;
}
body.theme-cyber input[type="file"] { color: #94a3b8; }
body.theme-cyber .btn.danger {
    background: #dc2626;
    border-color: #dc2626;
}
body.theme-cyber .btn.danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}
body.theme-cyber .page-item.disabled .page-link,
body.theme-cyber .pagination .disabled span {
    background: rgba(15, 23, 42, .5);
    color: #64748b;
}
body.theme-cyber .leaflet-container {
    background: #0b1726;
    border: 1px solid rgba(34, 197, 94, .2);
    border-radius: 8px;
}
body.theme-cyber .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.85);
}
body.theme-cyber .leaflet-control-attribution {
    background: rgba(8, 16, 30, .85) !important;
    color: #94a3b8 !important;
}
body.theme-cyber .leaflet-control-attribution a { color: #86efac !important; }
body.theme-cyber .leaflet-bar a {
    background: rgba(15, 23, 42, .95) !important;
    color: #e2e8f0 !important;
    border-bottom-color: rgba(148, 163, 184, .2) !important;
}
body.theme-cyber .leaflet-bar a:hover { background: rgba(34, 197, 94, .18) !important; color: #86efac !important; }
body.theme-cyber .flash {
    background: rgba(34, 197, 94, .12);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, .35);
}
body.theme-cyber .errors {
    background: rgba(217, 45, 32, .12);
    color: #fecaca;
    border-color: rgba(217, 45, 32, .35);
}
body.theme-cyber .theme-option {
    background: rgba(15, 23, 42, .7);
    border-color: rgba(148, 163, 184, .22);
}
body.theme-cyber .theme-option-copy strong { color: #f8fafc; }
body.theme-cyber .theme-option-copy small { color: #94a3b8; }
body.theme-cyber.auth-shell {
    background: #050a12;
}
body.theme-cyber.auth-shell .auth-card,
body.theme-cyber.auth-shell .cyber-auth-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, .97), rgba(8, 16, 30, .99));
    border: 1px solid rgba(34, 197, 94, .28);
    border-radius: 4px;
    color: #e2e8f0;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.03) inset,
        0 0 40px rgba(34, 197, 94, .08),
        0 24px 60px rgba(0,0,0,.55);
}
body.theme-cyber.auth-shell .auth-card h1,
body.theme-cyber.auth-shell .auth-brand { color: #f8fafc; }
body.theme-cyber.auth-shell .lead { color: #94a3b8; }
body.theme-cyber.auth-shell .auth-foot a { color: #86efac; }
body.theme-cyber.auth-shell label { color: #e2e8f0; }
body.theme-cyber.auth-shell .btn {
    font-family: Orbitron, "IBM Plex Sans", sans-serif;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #22c55e, #15803d);
    border-color: #16a34a;
    box-shadow: 0 0 20px rgba(34, 197, 94, .25);
}
body.theme-cyber.auth-shell .btn:hover {
    background: linear-gradient(180deg, #4ade80, #16a34a);
    border-color: #22c55e;
    box-shadow: 0 0 28px rgba(34, 197, 94, .4);
}
body.theme-cyber.auth-shell input {
    background: rgba(5, 10, 18, .85);
    border-color: rgba(34, 197, 94, .28);
    color: #e2e8f0;
}
body.theme-cyber.auth-shell input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
body.theme-cyber ::-webkit-scrollbar { width: 10px; height: 10px; }
body.theme-cyber ::-webkit-scrollbar-track { background: #050a14; }
body.theme-cyber ::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .28);
    border-radius: 99px;
    border: 2px solid #050a14;
}
body.theme-cyber ::-webkit-scrollbar-thumb:hover { background: rgba(34, 197, 94, .45); }

.proportion-track {
    display: flex;
    height: 14px;
    border-radius: 99px;
    overflow: hidden;
    background: #e5e7eb;
}

.app-processing {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 13, 24, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.app-processing[hidden] { display: none !important; }
.app-processing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: min(320px, 86vw);
    padding: 28px 24px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .96);
    border: 1px solid rgba(34, 197, 94, .28);
    box-shadow: 0 20px 48px rgba(0,0,0,.45);
    color: #e2e8f0;
    text-align: center;
}
body:not(.theme-cyber) .app-processing {
    background: rgba(15, 23, 42, .45);
}
body:not(.theme-cyber) .app-processing-card {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
    box-shadow: var(--shadow);
}
.app-processing-label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.app-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 184, .25);
    border-top-color: #22c55e;
    animation: app-spin .8s linear infinite;
}
body:not(.theme-cyber) .app-spinner {
    border-color: #e4e7ec;
    border-top-color: var(--blue);
}
@keyframes app-spin { to { transform: rotate(360deg); } }
.btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: .82;
}
.btn.is-loading::after {
    content: '';
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: app-spin .7s linear infinite;
    display: inline-block;
    vertical-align: -2px;
}
.btn.ghost.is-loading::after {
    border-color: rgba(148, 163, 184, .35);
    border-top-color: currentColor;
}
.profile-hero {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.profile-hero-photo {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.profile-hero-fallback {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    font-size: 28px;
}
.profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.profile-gallery-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--panel) 92%, #000 8%);
}
.profile-gallery-item img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.profile-gallery-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

body.is-processing { cursor: progress; }

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    max-width: 100%;
}
.platform-badge__icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex: 0 0 auto;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.platform-badge__label {
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.platform-badge--xs .platform-badge__icon { width: 12px; height: 12px; border-radius: 3px; }
.platform-badge--md .platform-badge__icon { width: 18px; height: 18px; }
.platform-badge--lg .platform-badge__icon { width: 22px; height: 22px; border-radius: 5px; }
.platform-badge--lg { gap: 8px; font-weight: 600; }
.platform-badge--xl { gap: 10px; font-size: 17px; font-weight: 650; }
.platform-badge--xl .platform-badge__icon { width: 34px; height: 34px; border-radius: 8px; }
.metric .platform-badge { display: inline-flex; }
.tabs .platform-badge { gap: 7px; }
.tabs a.active .platform-badge__icon {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent);
}
.check .platform-badge { gap: 8px; }
.field-label-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.theme-cyber .platform-badge__icon {
    background: rgba(255,255,255,.92);
}

.executive-charts { margin-bottom: 18px; }
.executive-charts .card { margin: 0; }
.executive-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}
.executive-chart-block { margin-top: 0; }
.executive-chart-block h3 { margin: 0 0 8px; font-size: 14px; }
.executive-phones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    justify-items: center;
    align-items: start;
}
.phone {
    width: min(100%, 520px);
    padding: 14px 12px 16px;
    border-radius: 46px;
    background: linear-gradient(160deg, #2a313c, #0e131a 42%, #1a212b);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .28), inset 0 0 0 1px rgba(255,255,255,.08);
    position: relative;
}
.phone::before,
.phone::after {
    content: "";
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #12181f;
}
.phone::before { left: -1px; top: 88px; height: 28px; box-shadow: 0 22px 0 #12181f, 0 44px 0 #12181f; }
.phone::after { right: -1px; top: 128px; height: 64px; }
.phone-screen {
    display: flex;
    flex-direction: column;
    height: 880px;
    border-radius: 34px;
    overflow: hidden;
    background: #f8fafc;
    color: #0f172a;
}
.phone-status {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 14px 0;
    font-size: 12px;
    font-weight: 650;
}
.phone-status > span:first-child { justify-self: start; }
.phone-island {
    width: 78px;
    height: 18px;
    border-radius: 99px;
    background: #0e131a;
}
.phone-signal {
    justify-self: end;
    width: 16px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0f172a 0 3px, transparent 3px 5px, #0f172a 5px 8px, transparent 8px 10px, #0f172a 10px 13px, transparent 13px 15px, #0f172a 15px);
}
.phone-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
}
.phone-feed {
    flex: 1;
    overflow: auto;
    padding: 4px 0 8px;
}
.phone-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
}
.phone-row:hover { background: #eef2ff; }
.phone-rank {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.phone-copy { min-width: 0; display: flex; flex-direction: column; }
.phone-copy strong {
    font-size: 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.phone-copy small {
    color: #64748b;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.phone-volume {
    font-size: 11px;
    font-weight: 650;
    color: #0f766e;
    white-space: nowrap;
}
.phone-row--stack {
    align-items: start;
}
.phone-row--stack .phone-rank { padding-top: 2px; }
.phone-row--stack .phone-copy strong,
.phone-row--stack .phone-copy small {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.phone-row--stack .phone-volume {
    white-space: normal;
    margin-top: 4px;
}
.phone-empty { padding: 24px 12px; }
.phone-home {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-home::before {
    content: "";
    width: 96px;
    height: 4px;
    border-radius: 99px;
    background: #0f172a;
}
body.theme-cyber .phone-screen { background: #0b1220; color: #e2e8f0; }
body.theme-cyber .phone-appbar { border-bottom-color: rgba(148, 163, 184, .2); color: #94a3b8; }
body.theme-cyber .phone-row:hover { background: rgba(34, 197, 94, .08); }
body.theme-cyber .phone-rank,
body.theme-cyber .phone-copy small { color: #94a3b8; }
body.theme-cyber .phone-volume { color: #4ade80; }
body.theme-cyber .phone-signal { background: linear-gradient(90deg, #e2e8f0 0 3px, transparent 3px 5px, #e2e8f0 5px 8px, transparent 8px 10px, #e2e8f0 10px 13px, transparent 13px 15px, #e2e8f0 15px); }
body.theme-cyber .phone-home::before { background: #e2e8f0; }
.executive-trend-boards .card {
    min-width: 0;
}
.executive-trend-boards .table-wrap {
    max-height: 420px;
    overflow: auto;
}

body.theme-light .app-watermark img {
    opacity: .14;
}

@media (max-width: 1100px) {
    .metrics, .cols-3, .cols-2, .cols-2-1 { grid-template-columns: 1fr 1fr; }
    .executive-phones,
    .executive-chart-grid { grid-template-columns: 1fr; }
    .feed-with-side { grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); }
}
@media (max-width: 800px) {
    .metrics, .cols-3, .cols-2, .cols-2-1 { grid-template-columns: 1fr; }
    .feed-with-side { grid-template-columns: 1fr; }
    .sentiment-side { position: static; }
    .sider { width: 100%; height: auto; position: relative; }
    .shell { flex-direction: column; }
    .chooser-grid { grid-template-columns: 1fr; }
    .chooser-grid-3 { grid-template-columns: 1fr; }
    .chooser-grid-4 { grid-template-columns: 1fr; }
    .theme-picker { grid-template-columns: 1fr; }
    .nav-group { display: none; }
    .workspace-switch { display: none; }
    .content { padding: 16px; }
    .top { padding: 0 16px; }
}

/* Profiling candidate picker */
.profile-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.profile-candidate-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.profile-candidate-card:hover {
    border-color: rgba(34, 197, 94, .45);
    transform: translateY(-2px);
}
.profile-candidate-card:has(input:checked) {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .25);
}
.profile-candidate-card > input {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 18px;
    height: 18px;
    accent-color: #22c55e;
}
.profile-candidate-media {
    position: relative;
    aspect-ratio: 1;
    background: var(--line-2);
    overflow: hidden;
}
.profile-candidate-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-candidate-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    font-weight: 700;
    color: var(--muted);
}
.profile-candidate-badges {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.profile-candidate-badges .pill {
    font-size: 10px;
    padding: 2px 7px;
    backdrop-filter: blur(6px);
    background: rgba(6, 13, 24, .72);
    color: #e2e8f0;
}
.profile-candidate-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    min-height: 110px;
}
.profile-candidate-body strong {
    font-size: 14px;
    line-height: 1.25;
}
.profile-candidate-summary {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.profile-candidate-handles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.profile-candidate-handles .pill {
    font-size: 10px;
    padding: 2px 7px;
}
body.theme-cyber .profile-candidate-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, .92), rgba(8, 16, 30, .95));
    border-color: rgba(34, 197, 94, .2);
}
body.theme-cyber .profile-candidate-media { background: #0b1726; }
body.theme-cyber .profile-candidate-body strong { color: #f8fafc; }

.queue-progress {
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card, #fff);
}
.queue-progress[hidden] { display: none !important; }
.queue-progress-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.queue-progress-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.queue-progress-close[hidden] { display: none !important; }
.queue-progress.is-compact {
    padding: 12px 14px;
}
.queue-progress.is-compact .queue-progress-bar {
    margin-top: 0;
}
.queue-progress-bar {
    height: 8px;
    border-radius: 99px;
    background: #e5e7eb;
    overflow: hidden;
    margin: 8px 0 6px;
}
.queue-progress-bar span {
    display: block;
    height: 100%;
    background: #16a34a;
    transition: width .3s ease;
}
.queue-progress-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}
.queue-progress-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
body.theme-cyber .queue-progress {
    background: rgba(15, 23, 42, .72);
    border-color: rgba(34, 197, 94, .22);
}
body.theme-cyber .queue-progress-bar { background: rgba(148, 163, 184, .2); }
body.theme-cyber .queue-progress-bar span { background: #22c55e; }

