/* OFM KUKER / workspace 3.1. Presentation only; loaded after module styles. */
:root {
  color-scheme: dark;
  --sx-bg: #100d18;
  --sx-surface: #191423;
  --sx-soft: #20192d;
  --sx-border: #352941;
  --sx-text: #f0eaf9;
  --sx-muted: #a79db8;
  --sx-accent: #9564ee;
  --sx-accent-hover: #a77afa;
  --sx-accent-soft: #2b1d43;
  --sx-danger: #ef87a6;
  --sx-warning: #e8bd76;
  --sx-shadow: 0 3px 8px #0000000d, 0 10px 32px #00000015;
  --bg: var(--sx-bg); --panel: var(--sx-surface); --panel2: var(--sx-soft);
  --line: var(--sx-border); --line2: var(--sx-border); --text: var(--sx-text);
  --muted: var(--sx-muted); --blue: var(--sx-accent); --green: var(--sx-accent);
  --cyan: var(--sx-accent); --red: var(--sx-danger); --yellow: var(--sx-warning);
  --gray: #819198; --shadow: var(--sx-shadow);
  --v39-bg: var(--sx-bg); --v39-bg2: var(--sx-bg); --v39-card: var(--sx-surface);
  --v39-card2: var(--sx-soft); --v39-line: var(--sx-border);
  --v39-text: var(--sx-text); --v39-muted: var(--sx-muted);
  --v39-cyan: var(--sx-accent); --v39-purple: var(--sx-accent);
  --v39-green: var(--sx-accent); --v39-pink: #74878c; --v39-shadow: var(--sx-shadow);
}
html, body {
  background: var(--sx-bg) !important; color: var(--sx-text) !important;
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { scrollbar-width: thin; scrollbar-color: #a99fbc transparent; }
::selection { background: #231b33; color: #b8a0e5; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: #65498e; border: 2px solid transparent; border-radius: 8px; background-clip: padding-box; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--sx-accent); text-underline-offset: 3px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--sx-accent); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--sx-text); font-weight: 650; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.hidden, [hidden] { display: none !important; }

/* Navigation and shell */
.v39-app { grid-template-columns: 232px minmax(0,1fr); }
.v39-sidebar {
  padding: 28px 16px 18px; background: #191424; border-right: 1px solid var(--sx-border);
  box-shadow: none; overflow-y: auto; gap: 10px;
}
.v39-brand { gap: 11px; padding: 0 12px 26px; }
.v39-brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--sx-accent);
  color: #ffffff; font-size: 13px; letter-spacing: -.04em; font-weight: 650; box-shadow: none;
}
.v39-brand strong { font-size: 22px; font-weight: 650; letter-spacing: -.055em; }
.v39-brand strong span { color: var(--sx-accent); background: none; }
.v39-brand small { font-size: 11px; margin-top: 0; color: var(--sx-muted); }
.v39-nav { gap: 4px; }
.sx-nav-label { padding: 12px 14px 6px; color: #c2b6d4; font-size: 10px; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.v39-nav-item {
  min-height: 41px; padding: 10px 13px; border-radius: 8px; border: 1px solid transparent;
  color: #b8a0e5; font-size: 12px; font-weight: 550; gap: 11px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.v39-nav-item:hover { color: #b8a0e5; background: #20192d; }
.v39-nav-item.active { color: #b8a0e5; background: var(--sx-accent-soft); border-color: transparent; box-shadow: none; }
.v39-nav-icon { font-size: 19px; width: 20px; color: #c2b6d4; font-weight: 400; }
.v39-nav-item.active .v39-nav-icon { color: var(--sx-accent); }
.v39-sidebar-foot { margin-top: auto; background: #191424; border-color: var(--sx-border); border-radius: 9px; padding: 13px; color: #c2b6d4; font-size: 10px; }
.v39-live-dot { color: #c2b6d4; margin-bottom: 5px; }
.v39-live-dot i, .v39-health i, .connected i { background: #8253dc; box-shadow: none; }
.v39-main { padding: 0 34px 40px; }
.v39-topbar { min-height: 80px; height: auto; margin: 0 0 28px; border-bottom: 1px solid var(--sx-border); gap: 18px; }
.v39-search { width: min(380px, 45vw); }
.v39-search input { height: 39px; border-color: transparent !important; background: #20192d !important; border-radius: 8px !important; padding-left: 39px; color: var(--sx-text); font-size: 12px; }
.v39-search > span { color: #c2b6d4; font-size: 24px; top: 4px; }
.v39-search kbd { top: 8px; color: #c2b6d4; background: #191424; border-color: var(--sx-border); border-radius: 5px; padding: 3px 5px; }
.v39-top-actions { gap: 15px; }
.v39-user { gap: 9px; }
.v39-avatar { width: 32px; height: 32px; background: #20192d; color: var(--sx-accent); box-shadow: none; font-size: 12px; }
.v39-user b { font-weight: 600; font-size: 12px; }
.v39-user small { font-size: 10px; color: #c2b6d4; }
.v39-logout { color: var(--sx-muted); border-color: transparent; font-size: 11px; padding: 7px 8px; }
.v39-logout:hover { background: #20192d; color: var(--sx-text); }
.v39-page.active { animation: sx-enter .26s ease both; }
.v39-page-title { align-items: center; gap: 20px; margin: 0 0 24px; }
.v39-page-title h1 { font-size: clamp(25px,2.3vw,32px); line-height: 1.25; letter-spacing: -.035em; margin: 6px 0 8px; font-weight: 650; }
.v39-page-title p { font-size: 13px; color: var(--sx-muted); line-height: 1.6; max-width: 830px; }
.v39-page-title > div > span, .v39-section-head span, .eyebrow, .v39-kicker {
  font-size: 10px; color: #c2b6d4; font-weight: 600; letter-spacing: .1em;
}
.v39-section-head { align-items: center; gap: 12px; margin-bottom: 20px; }
.v39-section-head h2 { font-size: 16px; margin-top: 5px; }
.v39-link { color: var(--sx-accent); font-size: 11px; font-weight: 600; }

/* Unified surfaces: all tabs, profile details and generated content */
:is(.panel,.v39-section-card,.v39-system-card,.metric,.card,.v39-proxy-card,.v39-setting-card,
    .v59-group-card,.v60-group-section,.v60-schedule-card,.warmup-card,.warmup-autopost-panel,
    .warmup-config-section,.warmup-day-section,.warmup-comment-edit,.warmup-plan-day,
    .scraping-sub-card,.scraping-match,.scraping-kpi,.checker-kpis>div,.warmup-summary>article) {
  background: var(--sx-surface) !important; color: var(--sx-text); border-color: var(--sx-border) !important;
  border-radius: 12px !important; box-shadow: var(--sx-shadow) !important;
}
:is(.v39-section-card,.v39-proxy-card,.v39-setting-card) { padding: 22px; }
.v39-toolbar, .toolbar, .control-strip { padding: 14px; gap: 10px; flex-wrap: wrap; }
.sync-info { padding: 12px 16px; font-size: 12px; color: var(--sx-muted); border-radius: 9px !important; }
.empty, .warmup-empty, .v60-empty-drop, .v60-schedule-empty, .v59-queue-empty { color: #c2b6d4; background: transparent; padding: 30px 20px; font-size: 12px; }
.v39-home-grid { grid-template-columns: 1.12fr 1fr; gap: 20px; }
.v39-recent-row { padding: 16px 0; border-color: #352b46; }
.v39-recent-row:hover { background: var(--sx-soft); }
.v39-recent-name b { color: var(--sx-text); font-size: 12px; font-weight: 600; }
.v39-recent-row span { color: var(--sx-muted); font-size: 11px; }
.v39-recent-row .state.running { color: var(--sx-accent); }
.v39-profile-dot { background: #65498e; box-shadow: none; }
.v39-dashboard-log { padding: 11px 0; border-bottom: 1px solid #352b46; }
.v39-dashboard-log b { color: #b8a0e5; font-size: 12px; line-height: 1.55; }
.v39-dashboard-log time { color: #c2b6d4; font-size: 10px; }
.v39-dashboard-log i { background: #8253dc; }
.v39-dashboard-log.warning i { background: #8253dc; }
.v39-dashboard-log.error i { background: #8253dc; }

/* Overview: restrained illustration and clear numeric hierarchy */
.v39-system-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 0 0 20px; }
.v39-system-card { min-height: 88px; padding: 17px 20px; }
.v39-system-card span { color: var(--sx-muted); font-size: 11px; }
.v39-system-card b { font-size: 25px; font-weight: 600; margin-top: 6px; letter-spacing: -.03em; }
.v39-wave { width: 34%; }
.v39-wave i { height: 4px; background: #20192d; }
.v39-system-card .v39-wave em { background: #65498e !important; box-shadow: none !important; }
.v39-uptime-ring { color: #b8a0e5; text-shadow: none; font-size: 29px; }
.v39-hero { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); min-height: 278px; border-color: #352b46; border-radius: 14px; background: #20192d; box-shadow: none; }
.v39-hero:before { display: none; }
.v39-hero-copy { padding: 33px 34px; }
.v39-kicker { color: #b8a0e5; }
.v39-hero h1 { font-size: clamp(25px,2.5vw,37px); font-weight: 600; margin: 10px 0 12px; line-height: 1.2; letter-spacing: -.04em; }
.v39-hero h1 span { color: var(--sx-accent); background: none; }
.v39-hero p { font-size: 13px; color: #c2b6d4; line-height: 1.7; }
.v39-health { color: #c2b6d4; margin-top: 18px; font-size: 11px; }
.v39-health i { width: 6px; height: 6px; }
.v39-hero-actions { margin-top: 20px; gap: 10px; flex-wrap: wrap; }
.v39-hero-art { min-height: 240px; display: flex; align-items: center; padding: 12px 22px 12px 0; }
.v39-hero-art img { position: static; width: 100%; height: auto; object-fit: contain; mix-blend-mode: normal; opacity: 1; mask-image: none; -webkit-mask-image: none; animation: sx-art-in .65s ease both; }
.v39-metrics { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.v39-metrics .metric { min-height: 111px; padding: 18px; }
.v39-metrics .metric:after { display: none; }
.metric span, .metric small { color: var(--sx-muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.metric b, .v39-metrics .metric b { color: var(--sx-text); font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin-top: 12px; }
.metric small { color: #c2b6d4; }

/* Buttons. Colors indicate purpose, not the module. */
:is(.btn,.icon,.row-btn,.v39-icon-btn,.v59-card-action,.v60-drag-handle,.warmup-column-tool,
    .warmup-comment-btn,.warmup-row-delete,.checker-rule-summary button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 37px; padding: 8px 13px; background: #191424 !important; border: 1px solid #352b46 !important;
  color: #b8a0e5 !important; border-radius: 7px !important; box-shadow: none !important;
  text-decoration: none; font-size: 12px; font-weight: 550; line-height: 1.35;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
:is(.btn,.icon,.row-btn,.v39-icon-btn,.v59-card-action):hover {
  background: #20192d !important; border-color: #352b46 !important;
  color: #b8a0e5 !important; filter: none; transform: none;
}
:is(.btn.blue,.btn.green) { background: var(--sx-accent) !important; color: #ffffff !important; border-color: var(--sx-accent) !important; }
:is(.btn.blue,.btn.green):hover { background: var(--sx-accent-hover) !important; border-color: var(--sx-accent-hover) !important; color: #ffffff !important; }
:is(.btn.cyan,.btn.violet,.btn.warmup-force) { background: #20192d !important; color: #b8a0e5 !important; border-color: #352b46 !important; }
:is(.btn.cyan,.btn.violet,.btn.warmup-force):hover { background: #20192d !important; }
:is(.btn.red,.row-btn.danger,.warmup-row-delete) { background: #20192d !important; color: var(--sx-danger) !important; border-color: #5b4380 !important; }
:is(.btn.red,.row-btn.danger,.warmup-row-delete):hover { background: #20192d !important; border-color: #5b4380 !important; color: #ef8eaa !important; }
:is(.btn,.row-btn):disabled { opacity: .45; transform: none; filter: none; }
.icon { width: 34px; min-height: 34px; padding: 0; font-size: 23px; }
.v39-icon-btn { width: 34px; min-height: 34px; padding: 0; font-size: 18px; }
.row-btn { min-height: 29px; padding: 5px 9px; font-size: 11px; }
.v59-card-action { width: 28px; min-height: 28px; padding: 0; font-size: 12px; }
.v60-drag-handle { width: 24px; min-height: 25px; padding: 0; font-size: 14px; }
.warmup-column-tool, .warmup-row-delete { min-height: 23px; padding: 2px 6px; font-size: 10px; }
.btn:active:not(:disabled), .row-btn:active:not(:disabled) { box-shadow: inset 0 1px 3px #00000020 !important; }

/* Every form including generated day configuration and Excel cells */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea {
  background: #191424 !important; border: 1px solid #352b46 !important; color: #b8a0e5 !important;
  border-radius: 7px !important; color-scheme: dark !important; outline: none;
  font-size: 12px; line-height: 1.5; padding: 10px 11px;
  transition: border-color .17s ease, box-shadow .17s ease;
}
select { min-height: 39px; cursor: pointer; }
textarea { resize: vertical; min-height: 88px; }
input::placeholder, textarea::placeholder { color: #a99fbc; }
input:focus, select:focus, textarea:focus {
  border-color: #5b4380 !important; box-shadow: 0 0 0 3px #00000010 !important;
}
input:disabled, select:disabled, textarea:disabled { background: #20192d !important; color: #c2b6d4 !important; }
input[type=checkbox], input[type=radio] { accent-color: var(--sx-accent) !important; flex-shrink: 0; }
input[type=checkbox] { width: 16px; height: 16px; }
.form-grid label, .warmup-field>span, .warmup-config-grid label>span, .warmup-config-textarea>span,
.warmup-editor-grid label, .warmup-day-section label>span, .scraping-config label,
.scraping-toolbar label, .scraping-library-tools label:not(.btn), .checker-toolbar label, .checker-input-panel>label {
  color: #b8a0e5 !important; font-size: 11px; font-weight: 550; text-transform: none; letter-spacing: 0;
}
.form-grid { gap: 16px; }
.form-grid label:not(.checkline) { display: flex; flex-direction: column; gap: 5px; }
.form-grid label:not(.checkline)>:is(input,select,textarea) { width: 100%; margin-top: 0; }
.form-grid select { width: 100%; }
.form-grid .checkline { padding-top: 24px; }
code { color: #b8a0e5; font-size: 11px; overflow-wrap: anywhere; }

/* Data tables and editable sheets */
:is(.table-scroll,.tracker-table-wrap,.warmup-sheet-table-wrap,.warmup-plan-table-wrap,.scraping-table-wrap,.checker-table-wrap) {
  background: #191424 !important; border-color: var(--sx-border) !important; scrollbar-color: #a99fbc #a99fbc;
}
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) { background: #191424 !important; color: var(--sx-text); }
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) th {
  background: #191424 !important; color: #b8a0e5 !important; border-color: var(--sx-border) !important;
  padding: 12px 13px; font-size: 10px; font-weight: 600; letter-spacing: .035em;
}
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) td {
  background: transparent; color: #b8a0e5 !important; border-color: #352b46 !important;
  padding: 12px 13px; font-size: 12px; line-height: 1.5;
}
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) tbody tr:hover,
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) tbody tr:hover td { background: #191424 !important; }
.account-table tr.selected { background: #20192d !important; box-shadow: inset 3px 0 0 var(--sx-accent); }
.account-name { color: var(--sx-text); font-size: 12px; }
.account-label, .warmup-sheet-rownum { color: #c2b6d4 !important; }
.warmup-sheet-table :is(input,select,textarea), .tracker-table :is(input,select,textarea) {
  min-height: 31px; border-color: transparent !important; background: transparent !important;
  padding: 6px; font-size: 11px; border-radius: 4px !important;
}
.warmup-sheet-table :is(input,select,textarea):focus, .tracker-table :is(input,select,textarea):focus { border-color: #5b4380 !important; background: #191424 !important; }
.warmup-sheet-table .warmup-generated-field { background: #20192d; color: #b8a0e5; border-color: #352b46; border-radius: 5px; }
.tracker-toolbar, .warmup-sheet-toolbar { padding: 14px 18px; border-color: var(--sx-border); background: #191424 !important; gap: 9px; flex-wrap: wrap; }
.tracker-toolbar span, .warmup-sheet-toolbar span { color: #c2b6d4; font-size: 11px; }

/* Statuses retain their meaning in the dark palette */
:is(.chip,.status-badge,.warmup-status,.scraping-chip,.checker-chip,.checker-requirement,.v59-tag,.v59-group-pill,.v60-script,.preview-stamp) {
  color: #b8a0e5 !important; background: #20192d !important; border-color: #352b46 !important;
  box-shadow: none; font-size: 10px; font-weight: 600; border-radius: 5px;
}
:is(.chip.running,.chip.ready,.status-badge.active,.warmup-status.active,.warmup-status.completed,.checker-chip.active,.checker-requirement.none,.preview-stamp.live,.v60-script.warmup) {
  color: #b8a0e5 !important; background: #20192d !important; border-color: #352b46 !important;
}
:is(.chip.warning,.warmup-status.attention,.checker-chip.restricted,.checker-chip.rate_limited,.checker-requirement.mentioned) {
  color: #ef8eaa !important; background: #20192d !important; border-color: #5b4380 !important;
}
:is(.chip.error,.warmup-status.error,.checker-chip.error,.checker-chip.unavailable,.checker-requirement.explicit) {
  color: #ef8eaa !important; background: #20192d !important; border-color: #352b46 !important;
}
.checker-chip.private, .checker-chip.quarantined { color: #ef8eaa !important; background: #20192d !important; }
.warmup-status.disabled { color: #c2b6d4 !important; background: #20192d !important; }
.scraping-chip, .v60-script.poster { color: #b8a0e5 !important; background: #20192d !important; }
.account-dot { color: #c2b6d4; background: #20192d; border-color: #352b46; }
.account-dot.active { color: var(--sx-accent); background: var(--sx-accent-soft); border-color: #352b46; }
.status-badge i { background: #65498e; }
.status-badge.active i { background: #8253dc; }

/* Profiles, groups and scheduling */
.v60-group-board { gap: 24px; }
.v60-group-section:before { width: 2px; opacity: .65; box-shadow: none; }
.v60-group-header { padding: 18px 20px; border-color: var(--sx-border); }
.v60-group-identity>i { height: 28px; width: 4px; box-shadow: none; }
.v60-group-identity h2, .v59-group-title h2 { color: var(--sx-text); font-size: 16px; }
.v60-group-identity p { color: #b8a0e5; font-size: 11px; }
.v60-group-summary span { background: #191424; border-color: #352b46; color: #b8a0e5; padding: 6px 9px; border-radius: 6px; }
.v60-group-summary b { color: #b8a0e5; font-weight: 600; }
.v60-group-profiles { padding: 20px; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); }
.v60-profile-card { box-shadow: none !important; transition: border-color .18s ease, box-shadow .18s ease; }
.v60-profile-card:hover, .v39-cards .card:hover { transform: none; border-color: #5b4380 !important; box-shadow: 0 4px 18px #00000008 !important; }
.v60-profile-card .card-body { padding: 19px; }
.v60-profile-card .card-head { padding-right: 0; padding-top: 28px; flex-wrap: wrap; }
.v60-profile-card h3, .v60-card-open:hover h3 { color: #b8a0e5; font-size: 15px; }
.v60-profile-card .sub { color: #b8a0e5; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.accent { height: 1px; background: #20192d; }
.card.running .accent { background: #65498e; }
.card-stat { background: #191424 !important; border-color: #352b46 !important; border-radius: 6px !important; }
.card-stat span { color: #b8a0e5; font-weight: 500; font-size: 9px; }
.card-stat b { color: #b8a0e5; font-weight: 600; }
.card-footer { color: #a99fbc; font-size: 10px; }
.v60-quick-group { background: #191424; border-color: #352b46; color: #b8a0e5; padding: 10px 18px; }
.v60-quick-group select { min-height: 31px; height: 31px; padding: 4px 8px; }
.v60-group-section.drag-over { border-color: #5b4380 !important; box-shadow: 0 0 0 3px #00000010 !important; transform: none; }
.v60-drop-hint { background: #20192d; color: #b8a0e5; border-color: #5b4380; }
.v60-schedule-grid { gap: 18px; }
.v60-schedule-card { padding: 20px; }
.v60-schedule-card :is(h2,b,dd) { color: var(--sx-text); }
.v60-schedule-card :is(p,small,dt) { color: var(--sx-muted); }
.v60-schedule-card footer { background: #191424; border-color: #352b46; }
.v60-last-result { background: #191424; border-color: #352b46; color: #b8a0e5; }
.v60-last-result span, .v60-last-result small { color: #b8a0e5; }
.v60-schedule-switch>span { background: #20192d; }
.v60-schedule-switch input:checked+span { background: var(--sx-accent); }
.v60-schedule-switch b { color: #b8a0e5; }
.v59-group-color { box-shadow: none; }
.v59-group-members, .v59-group-stats { color: var(--sx-muted); }

/* KUKER: queues, assignments, day tabs, activities and history */
.reddit-warmup-page { padding-bottom: 12px; }
.warmup-safety-note { padding: 16px 18px; background: #20192d !important; border-color: #352b46 !important; box-shadow: none !important; margin-bottom: 18px; }
.warmup-safety-icon { background: #20192d; color: #b8a0e5; border-color: #352b46; }
.warmup-safety-note b { color: #b8a0e5; font-size: 12px; }
.warmup-safety-note span { color: #c2b6d4; font-size: 12px; line-height: 1.65; }
.warmup-summary { gap: 14px; margin-bottom: 20px; }
.warmup-summary article { padding: 18px 20px; }
.warmup-summary :is(span,small), .warmup-autopost-stats span, .warmup-card-stats span { color: #b8a0e5; font-weight: 500; font-size: 11px; text-transform: none; letter-spacing: 0; }
.warmup-summary strong { color: var(--sx-text); font-size: 29px; font-weight: 600; }
.warmup-autopost-panel { padding: 22px; margin: 20px 0; }
.warmup-upvote-panel { border-left: 3px solid #5b4380 !important; }
.warmup-autopost-head h2, .warmup-section-head h2, .warmup-create-head h2 { color: #b8a0e5; font-size: 18px; font-weight: 600; }
.warmup-autopost-head :is(p,span), .warmup-section-head>div>span, .warmup-create-head>div>span { color: #b8a0e5; }
.warmup-autopost-head p { font-size: 12px; line-height: 1.6; }
.warmup-autopost-stats { gap: 10px; margin-top: 18px; }
.warmup-autopost-stats article { background: #191424; border-color: #352b46; padding: 13px 15px; border-radius: 7px; }
.warmup-autopost-stats strong { color: #b8a0e5; font-size: 23px; font-weight: 600; }
.warmup-autopost-paths { border-color: #352b46; color: #c2b6d4; font-size: 10px; padding-top: 12px; }
.warmup-create { padding: 22px; margin-bottom: 20px; }
.warmup-create-head p, .warmup-field small, .warmup-submit small, .warmup-window-hint { color: #c2b6d4; font-size: 11px; line-height: 1.6; }
.warmup-form-grid { gap: 18px; margin-top: 20px; }
.warmup-quickbar { gap: 12px; border-color: #352b46; padding-top: 18px; }
.warmup-check, .warmup-switch-line { color: #b8a0e5 !important; }
.warmup-editor { border-color: #352b46; border-radius: 10px; padding: 20px; background: #191424; margin-top: 24px; }
.warmup-editor-head { border-color: #352b46; padding-bottom: 16px; }
.warmup-editor-head :is(h3,b) { color: #b8a0e5; }
.warmup-editor-head :is(span,p) { color: #b8a0e5; font-size: 12px; }
.warmup-config-section { padding: 18px; box-shadow: none !important; }
.warmup-config-title { border-color: #352b46; padding-bottom: 13px; margin-bottom: 14px; }
.warmup-config-title h4 { color: #b8a0e5 !important; font-size: 13px; }
.warmup-config-title>div>span { color: #b8a0e5 !important; background: #20192d !important; font-size: 10px; border-radius: 5px; }
.warmup-config-title p { color: #c2b6d4; font-size: 11px; }
.warmup-switch-line { border-color: #352b46; background: #191424; padding: 9px 11px; border-radius: 6px; font-size: 12px; }
.warmup-list-panel, .warmup-history-panel { padding: 22px; margin-top: 20px; }
.warmup-assignment-grid { gap: 18px; }
.warmup-card { padding: 20px; box-shadow: none !important; }
.warmup-profile-dot { background: #20192d; color: #b8a0e5; border-color: #352b46; box-shadow: none; }
.warmup-card-title h3 { color: #b8a0e5; font-size: 15px; }
.warmup-card-title p, .warmup-meta { color: #b8a0e5; }
.warmup-card-stats>div { background: #191424; border-color: #352b46; }
.warmup-card-stats :is(b,strong), .warmup-progress-row { color: #b8a0e5; }
.warmup-progress { background: #20192d; }
.warmup-progress>span, .warmup-progress>i { background: #65498e; }
.warmup-run { background: #191424; border-color: #352b46; padding: 16px; border-radius: 8px; }
.warmup-run-head { color: #b8a0e5; }
.warmup-run-head b { color: #b8a0e5; font-size: 12px; }
.warmup-run p, .warmup-run small { color: #b8a0e5; }
.warmup-run.success { border-left-color: #5b4380; }
.warmup-run.fail { border-left-color: #5b4380; }
.warmup-run-diagnostic { background: #20192d; border-color: #352b46; color: #b8a0e5; }
.warmup-run-diagnostic pre { background: #20192d; color: #b8a0e5; border-radius: 6px; padding: 12px; }
.warmup-diagnostic-meta { color: #b8a0e5; }
.warmup-day-tabs { gap: 7px; padding: 12px 0 16px; background: transparent; }
.warmup-day-tab { min-height: 35px; border: 1px solid #352b46; background: #191424; color: #b8a0e5; padding: 7px 12px; border-radius: 7px; font-size: 11px; transition: background .17s ease; }
.warmup-day-tab.active { color: #b8a0e5; background: #20192d; border-color: #5b4380; box-shadow: none; }
.warmup-day-tab:hover { background: #20192d; color: #b8a0e5; }
.warmup-plan-top, .warmup-plan-day { background: #191424; border-color: #352b46; }
.warmup-plan-day { padding: 20px; }
.warmup-plan-day-head { border-color: #352b46; gap: 16px; }
.warmup-plan-day-head :is(strong,b,h3) { color: #b8a0e5; font-size: 13px; }
.warmup-plan-day-head :is(span,small) { color: #b8a0e5; }
.warmup-day-section { padding: 18px; box-shadow: none !important; }
.warmup-day-section h4 { color: #b8a0e5; font-size: 13px; margin-bottom: 14px; }
.warmup-plan-day-grid { gap: 16px; }
.warmup-day-title-fields { gap: 14px; }
.warmup-activity-switches { gap: 9px; }
.warmup-plan-day .warmup-activity-switch { background: #191424; border-color: #352b46; border-radius: 8px; padding: 11px 9px; color: #b8a0e5; }
.warmup-plan-day .warmup-activity-switch.is-on { background: #20192d; border-color: #5b4380; box-shadow: none; }
.warmup-activity-switch :is(b,strong) { color: #b8a0e5 !important; font-size: 10px; }
.warmup-activity-switch small { color: #a99fbc; font-size: 9px; }
.warmup-activity-switch i { color: #b8a0e5; }
.warmup-activity-switch.is-on i { color: #b8a0e5; }
.warmup-activity-switch input[type=checkbox] { width: 34px; height: 19px; background: #20192d; }
.warmup-activity-switch input:after { background: #191424; }
.warmup-activity-switch input:checked { background: #8253dc; }
.warmup-plan-days { background: #191424; border-color: #352b46; }
.warmup-plan-day .kuker-day-flags label { background: #191424; border-color: #352b46; color: #b8a0e5; padding: 9px; border-radius: 6px; }
.warmup-readonly-switch { background: #20192d !important; border-color: #352b46 !important; }
.warmup-readonly-switch :is(b,span) { color: #ef8eaa !important; }
.warmup-cycle-editor { border-color: #352b46; background: #191424; }
.warmup-cycle-grid label { color: #b8a0e5; }
:is(.warmup-integrated-info,.warmup-autopost-info,.warmup-upvote-info,.warmup-autopost-help,.warmup-card-warning,.warmup-notice,.live-config-note) {
  color: #c2b6d4 !important; background: #20192d !important; border-color: #352b46 !important;
  border-radius: 7px; font-size: 11px; line-height: 1.6;
}
.warmup-integrated-info b, .live-config-note strong { color: #b8a0e5; }
.warmup-off { color: #c2b6d4; }
.warmup-comment-edit { padding: 18px; box-shadow: none !important; }
.warmup-comment-edit-head { margin-bottom: 15px; }
.warmup-comment-edit-head :is(b,span) { color: #b8a0e5; }
.warmup-comment-target-grid { border-color: #352b46; background: #191424; border-radius: 8px; padding: 12px; }
.warmup-comment-target-switch { padding: 9px; background: #20192d; border-color: #352b46; }
.warmup-comment-info, .warmup-auto-value { color: #b8a0e5; background: #191424; border-color: #352b46; }

/* Scraper, library, image gallery and subreddit checker */
.scraping-config, .checker-input-panel { padding: 22px; gap: 18px; }
.scraping-library, .scraping-matches { padding: 22px; margin: 20px 0; }
.scraping-library-head :is(h2,b) { color: #b8a0e5; font-size: 17px; }
.scraping-library-head span { color: #c2b6d4; font-size: 10px; letter-spacing: .06em; }
.scraping-library-tools { gap: 13px; }
.scraping-library-stats { color: #b8a0e5; font-size: 12px; }
.scraping-library-stats b { color: #b8a0e5; }
.scraping-library-grid { gap: 16px; }
.scraping-library-card { gap: 7px; }
.scraping-library-card img { border-color: #352b46; background: #20192d; border-radius: 8px; }
.scraping-library-card b { color: #b8a0e5; font-size: 11px; }
.scraping-library-card small { color: #b8a0e5; }
.scraping-kpis, .checker-kpis { gap: 12px; margin: 20px 0; }
.scraping-kpi, .checker-kpis>div { padding: 16px; box-shadow: none !important; }
.scraping-kpi span, .checker-kpis span { color: #b8a0e5; font-weight: 550; font-size: 10px; text-transform: none; }
.scraping-kpi b, .checker-kpis b { color: #b8a0e5; font-weight: 600; font-size: 26px; }
.scraping-kpi small { color: #a99fbc; }
.scraping-sub-card { padding: 18px; border-left: 2px solid #5b4380; }
.scraping-sub-card h3 { color: #b8a0e5; font-size: 14px; }
.scraping-sub-card dt { color: #b8a0e5; }
.scraping-sub-card dd { color: #b8a0e5; }
.scraping-toolbar, .checker-toolbar { padding: 16px; gap: 13px; }
.scraping-title b { color: #b8a0e5; font-size: 12px; font-weight: 600; }
.scraping-title small { color: #b8a0e5; }
.scraping-score { color: #b8a0e5; }
.scraping-score small, .scraping-image-meta { color: #b8a0e5; font-size: 11px; }
.scraping-link { color: #b8a0e5; font-size: 11px; }
.scraping-link:hover { color: var(--sx-accent); }
.scraping-preview-button { border-color: #352b46; background: #20192d; border-radius: 6px; }
.scraping-preview-button:hover { border-color: #5b4380; box-shadow: 0 0 0 3px #00000010; }
.scraping-preview, .scraping-preview-empty { background: #20192d; color: #a99fbc; }
.scraping-match :is(b,strong) { color: #b8a0e5; }
.scraping-match>label { color: #b8a0e5; }
.scraping-match :is(small,p,figcaption) { color: #b8a0e5; }
.scraping-match-own { background: #191424; border-color: #352b46; }
.scraping-match-source { border-color: #352b46; }
.scraping-match-comparison :is(h3,h4), .scraping-match-own>header strong, .scraping-match-source-title strong { color: #b8a0e5; }
.scraping-match-comparison .scraping-match-images img { background: #20192d; }
.scraping-image-unavailable { background: #20192d; color: #b8a0e5; }
.scraping-flair-pill { color: #b8a0e5 !important; }
.scraping-flair-note { color: #b8a0e5; }
.scraping-status, .checker-status { color: #b8a0e5; }
.scraping-status.ok, .checker-status.ok { color: #b8a0e5; }
.scraping-status.error, .checker-status.error, .checker-input-panel small.over-limit { color: #ef8eaa; }
.scraping-error { color: #ef8eaa; background: #20192d; border-left-color: #5b4380; }
.checker-input-panel small, .checker-muted { color: #b8a0e5; }
.checker-progress { color: #c2b6d4; }
.checker-progress progress { accent-color: #b8a0e5; }
.checker-input-issues { background: #20192d; color: #b8a0e5; border-left-color: #5b4380; }
.checker-input-issues b { color: #ef8eaa; }
.checker-name { color: #b8a0e5; }
.checker-name:hover { color: var(--sx-accent); }
.checker-table td:first-child small { color: #ef8eaa; }
.checker-rule-summary b { color: #b8a0e5; }
.checker-rule-summary span { color: #b8a0e5; }
.checker-rule-summary button { min-height: 28px; padding: 5px 8px; font-size: 10px; }
.checker-pager { color: #b8a0e5; border-top: 1px solid #352b46; }

/* Modals, previews, confirmations and media. Keep media itself unaltered. */
.backdrop { background: #693fbe55; backdrop-filter: blur(5px); padding: 22px; }
.backdrop:not(.hidden) { animation: sx-fade .16s ease both; }
.modal, .browser-settings-modal, .tracker-modal {
  background: #191424 !important; color: var(--sx-text); border: 1px solid #352b46 !important;
  border-radius: 14px !important; box-shadow: 0 18px 90px #00000025 !important;
  max-height: calc(100dvh - 44px); overflow-y: auto; padding: 24px;
  animation: sx-modal-in .2s ease both;
}
.modal-head { border-color: #352b46; gap: 16px; margin-bottom: 20px; }
.modal-head h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.modal-note, #trackerModalMeta { color: #b8a0e5; font-size: 12px; line-height: 1.65; }
.modal-actions { border-color: #352b46; padding-top: 18px; margin-top: 20px; }
.browser-section { background: #191424; border-color: #352b46; border-radius: 8px; padding: 16px; }
.browser-section-title { border-color: #352b46; }
.browser-section-title span { color: #b8a0e5; font-weight: 600; letter-spacing: .035em; font-size: 10px; }
.danger-zone { border-color: #352b46; margin-top: 18px; padding-top: 18px; }
.warmup-sheet-modal { padding: 0; }
.warmup-sheet-modal>.modal-head { padding: 22px 24px; margin: 0; border-bottom: 1px solid #352b46; }
.warmup-comments-modal { padding: 24px; }
.warmup-comment-list { gap: 16px; }
.warmup-comments-modal>.warmup-sheet-toolbar { padding-left: 0; padding-right: 0; }
.tracker-modal .tracker-table-wrap { max-height: 65dvh; }
.tracker-summary>div { background: #191424; border-color: #352b46; }
.tracker-summary b { color: #b8a0e5; }
.tracker-summary span { color: #b8a0e5; }
.reddit-clear-dialog, .checker-dialog {
  background: #191424; color: var(--sx-text); border: 1px solid #352b46; border-radius: 12px;
  padding: 24px; box-shadow: 0 18px 90px #00000025; animation: sx-modal-in .2s ease both;
}
.reddit-clear-dialog::backdrop, .checker-dialog::backdrop { background: #693fbe55; backdrop-filter: blur(5px); }
.reddit-clear-dialog h2 { color: var(--sx-text); font-size: 21px; font-weight: 600; }
.reddit-clear-dialog p { color: #b8a0e5; line-height: 1.7; }
.checker-dialog-head span { color: #b8a0e5; }
.checker-dialog h3, .checker-detail-list b { color: #b8a0e5; }
.checker-detail-grid dt { color: #b8a0e5; }
.checker-detail-grid dd { color: #b8a0e5; }
.checker-detail-list :is(article), .checker-detail-grid>div { border-color: #352b46; }
.checker-detail-list span { color: #b8a0e5; }
.checker-detail-list p { color: #b8a0e5; }
.scraping-preview-dialog { background: #191424; border-color: #352b46; color: var(--sx-text); box-shadow: 0 18px 90px #00000040; border-radius: 14px; }
.scraping-preview-dialog::backdrop { background: #693fbe99; backdrop-filter: blur(6px); }
.scraping-preview-shell header, .scraping-preview-shell footer { background: #191424; border-color: #352b46; color: #b8a0e5; }
.scraping-preview-shell header small { color: #b8a0e5; }
.scraping-preview-shell header h2 { color: #b8a0e5; font-size: 17px; }
.scraping-preview-close { background: #20192d; border-color: #352b46; color: #b8a0e5; }
.scraping-preview-stage { background: #20192d; }
.scraping-preview-counter { color: #b8a0e5; }
.scraping-preview-shell footer a { color: var(--sx-accent); }
.scraping-preview-arrow { background: #693fbebf; border-color: #352b4650; }
.scraping-preview-arrow:hover { background: #693fbe; border-color: #352b46; }
.media-card { background: #191424; border-color: #352b46; border-radius: 8px; box-shadow: none; }
.media-card :is(strong,b,h3) { color: #b8a0e5; }
.media-card :is(small,span,p) { color: #b8a0e5; }
.media-card img { background: #20192d; }
.media-card footer { background: #191424; border-color: #352b46; }
.media-stats>div { background: #191424; border-color: #352b46; color: #b8a0e5; }
.media-toolbar { gap: 10px; }
.media-toolbar>span { color: #b8a0e5; font-size: 11px; }
.media-file-actions, .media-transfer { border-color: #352b46; }
.media-gallery { gap: 16px; }

/* Profile workspace, log streams, system details, VNC and notifications */
.detail-view, .v39-detail { background: var(--sx-bg); }
.v39-detail .detail-shell { width: min(1560px,calc(100% - 64px)); margin: 22px auto 40px; }
.v39-detail-top { padding: 18px 22px; margin: 0; }
.v39-detail-top h1 { color: #b8a0e5; font-size: 24px; }
.detail-top p { color: #b8a0e5; }
.v39-profile-nav { background: #191424; backdrop-filter: none; border-color: #352b46; border-radius: 8px; margin-top: 16px; padding: 6px; gap: 6px; }
.v39-profile-nav button { font-size: 11px; font-weight: 550; color: #b8a0e5; padding: 9px 15px; border-radius: 6px; }
.v39-profile-nav button.active, .v39-profile-nav button:hover { background: #20192d; color: #b8a0e5; }
.detail-grid { gap: 20px; }
.table-panel, .autopost-panel, .now-panel, .profile-logs, .preview-panel { padding: 20px; }
.panel-heading h2, .table-head h2, .logs-head h2, .preview-head h2, .autopost-head h2 { color: #b8a0e5; font-size: 17px; font-weight: 600; }
.now-grid>div, .last-line, .path-grid>div, .feature-editor, .feature-option, .feature-help>div, .script1-summary>div {
  color: #b8a0e5; background: #191424; border-color: #352b46; border-radius: 7px;
}
.now-grid span, .last-line span, .path-grid span, .feature-editor-head>span { color: #b8a0e5; font-size: 10px; }
.now-grid b, .now-grid a, .path-grid b { color: #b8a0e5; font-size: 12px; }
.last-line div { color: #b8a0e5; }
.script1-summary b, .feature-help b { color: #b8a0e5; }
.script1-summary span, .feature-help span { color: #b8a0e5; }
.feature-option strong { color: #b8a0e5; }
.feature-option span { color: #b8a0e5; }
.live-config-note span { color: #c2b6d4; }
.table-actions span, .legend, .autopost-help { color: #b8a0e5; font-size: 11px; }
.preview-frame { border-color: #352b46; background: #20192d !important; border-radius: 8px; }
.preview-frame img { background: #20192d; }
.preview-empty { color: #b8a0e5; }
.preview-empty strong { color: #b8a0e5; font-weight: 550; }
.preview-panel.preview-expanded { background: #191424; }
.v39-full-logs { padding: 18px; }
.v39-full-logs .log, .log { background: #191424; border-color: #352b46; border-radius: 7px; padding: 12px 14px; }
.log-top { color: #b8a0e5; font-size: 10px; }
.log-msg { color: #b8a0e5; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.level { color: #b8a0e5; font-size: 10px; }
.level.WARNING { color: #ef8eaa; }
.level.ERROR, .level.CRITICAL { color: #ef8eaa; }
.v59-history-item { background: #191424; border-color: #352b46; padding: 15px; border-radius: 8px; color: #b8a0e5; }
.v59-history-item b { color: #b8a0e5; }
.v59-history-item time, .v59-history-item small { color: #b8a0e5; }
.v39-proxy-card h3, .v39-setting-card h3 { color: #b8a0e5; font-size: 14px; }
.v39-proxy-card small, .v39-setting-card small, .v39-proxy-card dt, .v39-setting-card dt { color: #b8a0e5; }
.v39-proxy-card dd, .v39-setting-card dd { color: #b8a0e5; }
.v59-diagnostic { background: #191424; border-color: #352b46; color: #b8a0e5; }
.v59-diagnostic b { color: #b8a0e5; }
.v59-diagnostic.ok { border-left-color: #5b4380; }
.v59-diagnostic.warning { border-left-color: #5b4380; }
.v59-diagnostic.error { border-left-color: #5b4380; }
.v59-note-cell, .v59-profile-cell small { color: #b8a0e5; }
.v59-vnc-shell, .v60-vnc-detail { border-color: #352b46; background: #20192d; overflow: hidden; }
.v59-toast, .v60-toast, .reddit-notice { background: #191424; color: #b8a0e5; border-color: #352b46; box-shadow: 0 12px 40px #00000020; border-radius: 10px; animation: sx-modal-in .2s ease both; }
.reddit-notice { border-left-color: #5b4380; }
.reddit-notice[data-tone=error] { border-left-color: #5b4380; }
.reddit-notice[data-tone=ok] { border-left-color: #5b4380; }

/* Authentication */
.login-body { min-height: 100dvh; background: #20192d !important; }
.login-wrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; }
.login-card { width: min(100%,420px); padding: 38px !important; border-radius: 14px !important; background: #191424 !important; border-color: #352b46 !important; box-shadow: 0 12px 50px #00000008 !important; animation: sx-enter .4s ease both; }
.sx-login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 36px; }
.sx-login-brand strong { font-size: 24px; font-weight: 600; letter-spacing: -.055em; }
.login-card h1 { font-size: 29px; line-height: 1.25; font-weight: 600; margin: 8px 0 10px; }
.login-card p { color: #b8a0e5; font-size: 12px; line-height: 1.6; margin-bottom: 25px; }
.login-card label { color: #b8a0e5; display: grid; gap: 7px; margin: 16px 0; font-size: 12px; }
.login-card input { min-height: 43px; }
.login-submit { width: 100%; min-height: 43px; margin-top: 10px; }
.login-error { background: #20192d; border-color: #352b46; color: #ef8eaa; border-radius: 7px; padding: 12px; }
.sx-login-foot { color: #b8a0e5; font-size: 11px; margin-top: 22px; }

/* Motion: brief entry and feedback, never perpetual movement. */
.warmup-check { background: #191424 !important; border-color: #352b46 !important; }
.warmup-autopost-head p b { color: #b8a0e5 !important; }
.warmup-integrated-info>div { background: #20192d; border-color: #352b46; }
.warmup-integrated-info strong, .warmup-upvote-info strong, .warmup-comment-info strong { color: #b8a0e5 !important; }
.warmup-integrated-info span { color: #c2b6d4; }
.warmup-run-diagnostic summary { color: #ef8eaa; }
.warmup-diagnostic-meta b { color: #b8a0e5; }
.warmup-diagnostic-meta code { color: #ef8eaa; }
.mini-switch span { background: #20192d; }
.mini-switch span:after { background: #191424; }
.mini-switch input:checked+span { background: #8253dc; }
.media-card-name { color: #b8a0e5; }
.media-card-meta, .media-card-date, .media-stats { color: #b8a0e5; }
.v59-card-action.pinned { color: #ef8eaa !important; background: #20192d !important; }
:is(.v39-page,.v39-detail,.modal,.login-card) :is(p,small) { color: #b8a0e5 !important; }
.v39-page-title p { font-size: 13px; }
.warmup-activity-switch small { font-size: 10px; line-height: 1.4; }
.warmup-readonly-switch small { font-size: 10px; }
.warmup-plan-day label>span, .warmup-day-title-fields label>span { font-size: 11px; }
.warmup-plan-day input, .warmup-plan-day textarea, .warmup-plan-day select { font-size: 12px !important; font-weight: 400; }
.warmup-day-section { justify-content: flex-start; }
.warmup-config-grid label>span { font-size: 11px; }
.v39-main, .v39-page, .warmup-editor, .warmup-plan-days, .warmup-day-section { min-width: 0; }
.v39-page-title>div, .warmup-autopost-head>div, .warmup-autopost-paths>span { min-width: 0; }
.warmup-autopost-paths code { overflow-wrap: anywhere; }
.warmup-upvote-stats { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
.login-card p { font-size: 12px; }
@keyframes sx-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sx-art-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sx-modal-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Dark purple identity */
.v39-brand strong { font-size: 19px; letter-spacing: -.025em; white-space: nowrap; }
.v39-search input { padding: 0 58px 0 39px !important; }
.v39-system-card { position: relative; display: block; min-height: 114px; }
.v39-system-card b { font-size: 21px; white-space: nowrap; }
.v39-wave { width: 100%; margin-top: 14px; }
.v39-uptime-ring { position: absolute; right: 20px; top: 28px; }
html { background: #100d18 !important; }
body, .login-body {
  background: radial-gradient(ellipse at 78% 0%,#6b36ba1b,transparent 48%),
              radial-gradient(ellipse at 25% 85%,#51319b12,transparent 55%),#100d18 !important;
}
.v39-sidebar { background: linear-gradient(180deg,#16111f,#100d18); border-color: #2e243c; }
.v39-brand-mark { background: linear-gradient(135deg,#a67df5,#7545d5); box-shadow: 0 6px 20px #7545d51b; }
.v39-nav-item { color: #a297b2; }
.v39-nav-item:hover { color: #e0d3f4; background: #231b31; }
.v39-nav-item.active { color: #e6d7ff; background: linear-gradient(100deg,#573b7e5c,#3723454d); border-color: #65438a55; box-shadow: inset 2px 0 0 #b18af6; }
.v39-nav-icon { color: #8f819f; }
.v39-nav-item.active .v39-nav-icon { color: #c09cfa; }
.sx-nav-label { color: #776d89; }
.v39-sidebar-foot { background: #1b1524; border-color: #30253c; color: #8d819f; }
.v39-live-dot { color: #b4a6c4; }
.v39-live-dot i, .v39-health i, .connected i { background: #a081d7; box-shadow: 0 0 10px #a081d730; }
.v39-topbar { border-color: #30263e; }
.v39-search input { background: #1b1526 !important; color: #e2d7f0 !important; border-color: #352941 !important; }
.v39-search>span { color: #8f7da5; }
.v39-search kbd { background: #251c34; border-color: #3f3053; color: #8e7fa6; }
.v39-avatar { background: #342345; color: #c5a6f7; }
.v39-user small, .v39-logout { color: #9c8ead; }
.v39-logout:hover { background: #251b34; color: #e1d6ef; }
:is(.panel,.v39-section-card,.v39-system-card,.metric,.card,.v39-proxy-card,.v39-setting-card,
    .v59-group-card,.v60-group-section,.v60-schedule-card,.warmup-card,.warmup-autopost-panel,
    .warmup-config-section,.warmup-day-section,.warmup-comment-edit,.warmup-plan-day,
    .scraping-sub-card,.scraping-match,.scraping-kpi,.checker-kpis>div,.warmup-summary>article) {
  background: linear-gradient(145deg,#21192e,#171320) !important; border-color: #362a47 !important;
}
.v39-hero { background: radial-gradient(ellipse at 95% 25%,#7a47c72e,transparent 65%),linear-gradient(115deg,#281940,#20152e 55%,#2c1c44); border-color: #533768; box-shadow: inset 0 1px 0 #ba8cff0b; }
.v39-hero h1 { color: #f4edff; }
.v39-hero h1 span { color: #c8a4ff; }
.v39-hero p, .v39-health { color: #b09dbf; }
.v39-kicker { color: #a98bc1; }
.v39-system-card .v39-wave em { background: linear-gradient(90deg,#7953bc,#bb8eef) !important; }
.v39-wave i { background: #362842; }
.v39-uptime-ring { color: #ab87da; }
:is(.btn.blue,.btn.green) { background: linear-gradient(110deg,#8753e1,#a06df0) !important; border-color: #a271ed !important; color: #fff !important; }
:is(.btn.blue,.btn.green):hover { background: linear-gradient(110deg,#9965ed,#b07dfa) !important; border-color: #c29bf9 !important; box-shadow: 0 4px 16px #8f58df20 !important; }
:is(.btn.cyan,.btn.violet,.btn.warmup-force) { background: linear-gradient(110deg,#382347,#2c203d) !important; color: #ccb0f0 !important; border-color: #604174 !important; }
:is(.btn.cyan,.btn.violet,.btn.warmup-force):hover { background: #443057 !important; color: #e1cbfc !important; }
:is(.btn,.icon,.row-btn,.v39-icon-btn,.v59-card-action) { color: #c7b8d9 !important; }
:is(.btn.red,.row-btn.danger,.warmup-row-delete) { background: #341d2c !important; color: #f0a0b6 !important; border-color: #68364d !important; }
:is(.btn.red,.row-btn.danger,.warmup-row-delete):hover { background: #452435 !important; color: #ffc2d0 !important; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea {
  background: #14101f !important; border-color: #40314f !important; color: #e0d4ef !important;
}
input::placeholder, textarea::placeholder { color: #7d6d94; }
input:disabled, select:disabled, textarea:disabled { background: #1c1627 !important; color: #877793 !important; }
.form-grid label, .warmup-field>span, .warmup-config-grid label>span, .warmup-config-textarea>span,
.warmup-editor-grid label, .warmup-day-section label>span, .scraping-config label,
.scraping-toolbar label, .scraping-library-tools label:not(.btn), .checker-toolbar label, .checker-input-panel>label { color: #b7a6cc !important; }
:is(.v39-page,.v39-detail,.modal,.login-card) :is(p,small) { color: #a69ab8 !important; }
.v39-page-title h1, .modal-head h2 { color: #f0e8f9; }
.v39-page-title>div>span, .v39-section-head span, .eyebrow { color: #a68bbe; }
.warmup-plan-days, .warmup-editor { background: #161120; border-color: #352941; }
.warmup-plan-day .warmup-activity-switch { background: #1b1427; border-color: #40314f; color: #b4a3c8; }
.warmup-plan-day .warmup-activity-switch.is-on { background: linear-gradient(120deg,#4b2b6359,#2e1e40); border-color: #8560a8; }
.warmup-activity-switch input:after { background: #c8b9df; }
.warmup-activity-switch input:checked { background: #a26ae6; }
.warmup-activity-switch input:checked:after { background: #fff; }
.warmup-activity-switch.is-on i { color: #cba4fa; }
.warmup-day-tab.active { color: #eadbfc; background: linear-gradient(115deg,#7343a4,#533175); border-color: #9565be; }
.warmup-upvote-panel { border-left-color: #9c6ccd !important; }
.warmup-safety-note, .live-config-note { background: #291e384d !important; border-color: #4b365e !important; }
:is(.warmup-integrated-info,.warmup-autopost-info,.warmup-upvote-info,.warmup-autopost-help,.warmup-card-warning,.warmup-notice) { background: #271b354d !important; border-color: #4e3861 !important; }
.warmup-comment-target-grid { background: #24182f; border-color: #513766; }
.warmup-comment-list { background: #15101f; border-color: #3e2d50; border-radius: 9px; padding: 14px; }
.warmup-comment-target-switch { background: #1c1427; border-color: #493357; padding: 5px; gap: 5px; }
.warmup-comment-target-switch button { min-height: 32px; padding: 7px 12px; border-radius: 5px; border: 0; background: transparent; color: #aa98c0; font-size: 11px; font-weight: 550; }
.warmup-comment-target-switch button.active { background: linear-gradient(110deg,#704097,#9160bd); color: #f1e4ff; box-shadow: none; }
.warmup-comment-target-switch button:hover { color: #f1e4ff; }
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) th { background: #22192f !important; color: #a898bd !important; }
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) td { color: #d4c9e2 !important; }
.warmup-sheet-table :is(input,select,textarea), .tracker-table :is(input,select,textarea) { background: transparent !important; border-color: transparent !important; }
.warmup-sheet-table .warmup-generated-field { background: #2d203b; color: #c4a8e9; border-color: #56396e; }
:is(.chip.running,.chip.ready,.status-badge.active,.warmup-status.active,.warmup-status.completed,.checker-chip.active,.checker-requirement.none,.preview-stamp.live) { color: #a4d8c1 !important; background: #1e362e !important; border-color: #345b49 !important; }
:is(.chip.warning,.warmup-status.attention,.checker-chip.restricted,.checker-chip.rate_limited,.checker-requirement.mentioned) { color: #e1c397 !important; background: #3b3021 !important; border-color: #625030 !important; }
:is(.chip.error,.chip.danger,.warmup-status.error,.checker-chip.error,.checker-chip.unavailable,.checker-requirement.explicit) { color: #eeabbf !important; background: #3a2030 !important; border-color: #603448 !important; }
.checker-chip.private, .checker-chip.quarantined { color: #e6bd96 !important; background: #382c26 !important; }
.account-table tr.selected { background: #33203f !important; box-shadow: inset 3px 0 0 #a778e4; }
.v39-recent-row .state.running { color: #a4d8c1; }
.v39-dashboard-log i { background: #ad91d7; }
.v39-profile-nav button.active, .v39-profile-nav button:hover { background: #342145; color: #d1b7f3; }
.modal, .browser-settings-modal, .tracker-modal { background: linear-gradient(145deg,#241a31,#17121f) !important; }
.backdrop, .reddit-clear-dialog::backdrop, .checker-dialog::backdrop { background: #090510b3; }
.scraping-preview-stage { background: #100d17; }
.preview-frame, .preview-frame img { background: #100d17 !important; }
.login-body { background: radial-gradient(ellipse at 50% 12%,#7441b32e,transparent 65%),#100d18 !important; }
.login-card { background: linear-gradient(150deg,#281d36,#181321) !important; border-color: #4a345f !important; box-shadow: 0 20px 80px #0003 !important; }
.login-card h1, .sx-login-brand strong { color: #f2e9fc; }

/* V3.1: override legacy high-specificity colors in nested forms and sheets. */
.browser-settings-modal .form-grid :is(input,select,textarea):not([type=checkbox]):not([type=radio]),
.modal .form-grid :is(input,select,textarea):not([type=checkbox]):not([type=radio]),
.detail-view .form-grid :is(input,select,textarea):not([type=checkbox]):not([type=radio]) {
  background: #14101f !important; color: #e0d4ef !important;
  border-color: #40314f !important; border-radius: 7px !important;
}
.browser-settings-modal .form-grid :is(input,select,textarea):not([type=checkbox]):not([type=radio]):focus,
.modal .form-grid :is(input,select,textarea):not([type=checkbox]):not([type=radio]):focus,
.detail-view .form-grid :is(input,select,textarea):not([type=checkbox]):not([type=radio]):focus {
  border-color: #a778e4 !important; box-shadow: 0 0 0 3px #9564ee22 !important;
}
.browser-settings-modal .form-grid :is(input,select,textarea):disabled {
  background: #21182d !important; color: #9c8aae !important;
}
.portable-hint {
  background: #291e384d !important; border-color: #4b365e !important;
  color: #b7a6cc; box-shadow: none;
}
.portable-hint strong { color: #cfb1f1 !important; }
.portable-hint span { color: #b7a6cc !important; }
.browser-section, .browser-section-title { border-color: #3c2c4e !important; }
.browser-settings-modal .checkline { color: #c7b8d9 !important; }
select option, .warmup-sheet-table select option, .tracker-table select option {
  background: #21172f !important; color: #e0d4ef !important;
}
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) td {
  background: #17121f !important;
}
:is(.account-table,.tracker-table,.warmup-sheet-table,.warmup-plan-table,.scraping-table,.checker-table) tbody tr:hover td {
  background: #251a33 !important;
}
.account-table tr.selected td { background: #33203f !important; }
.warmup-sheet-table td.warmup-sheet-rownum {
  background: #22182f !important; color: #a992bf !important;
}
.warmup-sheet-table tr:hover td.warmup-sheet-rownum { background: #32223f !important; }
:is(#warmupSharedExcelModal,#warmupUpvoteExcelModal) .warmup-sheet-table :is(input,select,textarea),
.tracker-modal .tracker-table :is(input,select,textarea) {
  background: transparent !important; color: #e0d4ef !important; border-color: transparent !important;
  box-shadow: none !important;
}
:is(#warmupSharedExcelModal,#warmupUpvoteExcelModal) .warmup-sheet-table :is(input,select,textarea):hover,
.tracker-modal .tracker-table :is(input,select,textarea):hover {
  background: #21172e !important; border-color: #5a3b74 !important;
}
:is(#warmupSharedExcelModal,#warmupUpvoteExcelModal) .warmup-sheet-table :is(input,select,textarea):focus,
.tracker-modal .tracker-table :is(input,select,textarea):focus {
  background: #271b36 !important; border-color: #a778e4 !important;
  box-shadow: 0 0 0 2px #9564ee22 !important;
}
:is(#warmupSharedExcelModal,#warmupUpvoteExcelModal) .warmup-sheet-table .warmup-generated-field {
  background: #251a33 !important; color: #c4a8e9 !important; border-color: #513466 !important;
}
.warmup-sheet-table .warmup-auto-value {
  background: #2d203b !important; color: #c4a8e9 !important; border-color: #56396e !important;
}
.warmup-sheet-table .warmup-auto-value.invalid {
  background: #3a2030 !important; color: #eeabbf !important; border-color: #603448 !important;
}
.warmup-comment-target-switch button:hover:not(.active) { background: #332143 !important; }
.warmup-comment-info { background: #271b354d !important; border-color: #4e3861 !important; }
.warmup-comment-edit label>span { color: #b7a6cc !important; }
.warmup-column-tool { color: #b7a6cc !important; }
.mini-switch span, .v60-schedule-switch>span { background: #40314f; }
.mini-switch span:after, .v60-schedule-switch>span:after { background: #b8a4cd; }
.mini-switch input:checked+span, .v60-schedule-switch input:checked+span {
  background: linear-gradient(110deg,#8753e1,#a06df0);
}
.mini-switch input:checked+span:after, .v60-schedule-switch input:checked+span:after { background: #f5edff; }
.lg.gray { background: #81728f; }
.path-grid code { color: #cdbbdf; }
.hot-ok { box-shadow: 0 0 0 2px #9564ee33; }
.reddit-warmup-page {
  --wu-bg: #17121f; --wu-bg2: #22182f; --wu-line: #40314f;
  --wu-muted: #a79db8; --wu-text: #f0eaf9; --wu-cyan: #b58ae9; --wu-green: #b58ae9;
}
.v39-page-title>span, .v59-check, .v60-schedule-switch { color: #b7a6cc !important; }
.v59-check input { background: #21182d; color: #d8c8e9; }
.v39-recent-row .state.stopped { color: #9c8eae; }
.v39-system-card small { color: #a79db8; }
.v60-empty-drop, .warmup-empty, .warmup-runs { border-color: #40314f !important; }
.warmup-empty-icon { color: #9275b0; }
.warmup-empty strong { color: #c0aacf; }
.warmup-empty span { color: #a79db8; }
.warmup-summary>article { color: #a79db8; }
.v60-vnc-detail { color: #b7a6cc; }
.v59-vnc-shell { background: #17121f !important; }
*, :is(.table-scroll,.tracker-table-wrap,.warmup-sheet-table-wrap,.warmup-plan-table-wrap,.scraping-table-wrap,.checker-table-wrap) {
  scrollbar-color: #674b85 #17111f;
}
::-webkit-scrollbar-track { background: #17111f; }
::-webkit-scrollbar-thumb { background-color: #674b85; }
::-webkit-scrollbar-thumb:hover { background-color: #9564be; }
::-webkit-scrollbar-corner { background: #17111f; }

/* Narrow workspaces and touch devices */
@media (max-width: 1440px) {
  .v39-main { padding: 0 24px 32px; }
  .v39-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .warmup-autopost-head { align-items: flex-start; gap: 18px; flex-wrap: wrap; }
  .warmup-autopost-actions { flex-wrap: wrap; }
  .checker-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  .v39-app { grid-template-columns: 202px minmax(0,1fr); }
  .v39-sidebar { padding: 22px 12px 16px; }
  .v39-brand { padding-left: 8px; }
  .v39-nav-item { font-size: 11px; gap: 9px; }
  .v39-home-grid { grid-template-columns: 1fr; }
  .v39-system-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v39-hero-copy { padding: 26px; }
  .v39-hero { grid-template-columns: 1fr; }
  .v39-hero-art { display: none; }
  .warmup-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .warmup-autopost-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .v60-group-header { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .v60-group-summary { grid-row: 2; }
  .scraping-library-tools, .checker-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .warmup-activity-switches { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .v39-app { display: block; }
  .v39-sidebar { position: relative; height: auto; padding: 16px 18px 10px; gap: 4px; }
  .v39-brand { padding: 0 2px 12px; }
  .v39-nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 6px; }
  .sx-nav-label { display: none; }
  .v39-nav-item { flex: 0 0 auto; width: auto; min-height: 38px; padding: 8px 11px; white-space: nowrap; }
  .v39-sidebar-foot { display: none; }
  .v39-main { padding: 0 18px 28px; }
  .v39-topbar { min-height: 66px; margin-bottom: 20px; }
  .v39-user { display: none; }
  .v39-search { width: min(380px,65vw); }
  .v39-page-title { flex-wrap: wrap; margin-bottom: 20px; }
  .v39-page-title h1 { font-size: 27px; }
  .v39-page-title p { font-size: 12px; }
  .warmup-autopost-panel, .warmup-create, .warmup-list-panel, .warmup-history-panel { padding: 18px; }
  .warmup-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .warmup-plan-day-grid, .warmup-config-layout { grid-template-columns: 1fr; }
  .warmup-plan-day-head { flex-wrap: wrap; }
  .warmup-day-title-fields { grid-template-columns: 1fr; width: 100%; }
  .warmup-activity-switches { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .warmup-form-grid { grid-template-columns: 1fr; }
  .v39-detail .detail-shell { width: calc(100% - 28px); }
  .backdrop { padding: 14px; }
  .modal { max-height: calc(100dvh - 28px); padding: 20px; }
  .warmup-sheet-modal { padding: 0; }
  .v39-profile-nav { overflow-x: auto; }
  .v39-profile-nav button { white-space: nowrap; }
  .scraping-config { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scraping-subs { grid-column: 1/-1; }
  .checker-kpis, .scraping-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .v39-main { padding: 0 14px 24px; }
  .v39-sidebar { padding: 14px 14px 8px; }
  .v39-topbar { display: flex; gap: 8px; }
  .v39-top-actions { gap: 6px; margin: 0; }
  .v39-search { flex: 1; width: auto; }
  .v39-search kbd { display: none; }
  .v39-search input { padding-right: 10px; }
  .v39-logout { font-size: 10px; }
  .v39-system-grid, .v39-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .v39-system-card { padding: 14px; min-height: 78px; }
  .v39-system-card b { font-size: 23px; }
  .v39-system-card b { font-size: 16px; white-space: normal; }
  .v39-wave { width: 28%; }
  .v39-hero-copy { padding: 24px; }
  .v39-hero h1 { font-size: 28px; }
  .v39-metrics .metric { min-height: 95px; padding: 15px; }
  .v39-hero-actions { flex-direction: column; align-items: stretch; }
  .v39-section-card { padding: 18px; }
  .warmup-activity-switches { grid-template-columns: 1fr; }
  .warmup-autopost-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .warmup-upvote-stats { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .warmup-editor, .warmup-plan-day { padding: 14px; }
  .warmup-day-section { padding: 14px; }
  .warmup-day-title-fields, .kuker-day-fields, .warmup-editor-grid, .warmup-config-grid.cols-2, .warmup-config-grid.cols-3 { grid-template-columns: 1fr; }
  .warmup-autopost-actions { width: 100%; }
  .warmup-autopost-actions .btn { flex: 1 1 145px; }
  .warmup-quickbar { align-items: stretch; }
  .warmup-quickbar .btn { flex: 1 1 140px; }
  .v60-group-header { grid-template-columns: 1fr; }
  .v60-group-profiles { padding: 14px; }
  .scraping-config, .scraping-toolbar, .scraping-library-tools, .checker-toolbar { grid-template-columns: 1fr; }
  .scraping-subs, #scrapeStart, .scraping-status { grid-column: auto; }
  .scraping-config, .checker-input-panel { padding: 18px; }
  .modal-head h2 { font-size: 18px; }
  .modal-head { margin-bottom: 16px; }
  .modal-head .icon { flex: 0 0 32px; }
  .warmup-comment-edit-grid, .warmup-comment-target-grid { grid-template-columns: 1fr; }
  .browser-settings-modal .form-grid, .form-grid.four, .form-grid.two, .form-grid.six { grid-template-columns: 1fr; }
  .split-actions, .modal-tool-actions { flex-wrap: wrap; }
  .login-card { padding: 28px !important; }
  .v39-recent-row { grid-template-columns: minmax(0,1fr) auto; }
  .v39-recent-row>span:nth-child(2), .v39-recent-row>span:nth-child(3) { display: none; }
}
