/* Ascend desktop app styles. Moved out of index.html unchanged (docs/INDEX-SPLIT-PLAN.md). */
:root {
  --nav-h: 3.5rem;
  --brand-strip-h: 0rem;
  --side-sticky-top: calc(var(--nav-h) + 0.5rem);
}
#pm.module-content { padding: 0; max-width: none; }
#swms.module-content { padding: 0; max-width: none; width: 100%; }
.swms-layout { display: flex; gap: 0.75rem; align-items: flex-start; width: 100%; min-height: calc(100vh - var(--nav-h) - 2rem); }
.swms-sidebar { width: 18rem; flex-shrink: 0; position: sticky; top: 0.5rem; max-height: calc(100vh - var(--nav-h) - 1rem); overflow-y: auto; }
.swms-doc-main { flex: 1; min-width: 0; max-height: calc(100vh - var(--nav-h) - 1rem); overflow-y: auto; }
.swms-doc-scroll { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 2rem; }
.swms-scroll, .swms-sidebar, .swms-doc-main, .swms-doc-scroll { scrollbar-width: thin; scrollbar-color: #94a3b8 #f1f5f9; }
.swms-scroll::-webkit-scrollbar, .swms-sidebar::-webkit-scrollbar, .swms-doc-main::-webkit-scrollbar { width: 8px; height: 8px; }
.swms-scroll::-webkit-scrollbar-thumb, .swms-sidebar::-webkit-scrollbar-thumb, .swms-doc-main::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
.swms-scroll::-webkit-scrollbar-track, .swms-sidebar::-webkit-scrollbar-track, .swms-doc-main::-webkit-scrollbar-track { background: #f1f5f9; }
.swms-landscape-page {
  width: 100%; max-width: 100%; min-height: 200px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 4px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12); padding: 1.25rem 1.5rem;
  overflow: visible; font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  font-size: 8.5pt; line-height: 1.35; color: #1e293b;
}
.swms-landscape-page.swms-section-collapsed, .swms-child-block.swms-section-collapsed {
  min-height: 0; padding: 0.2rem 0.5rem; box-shadow: none;
}
.swms-landscape-page.swms-section-collapsed .swms-page-toolbar,
.swms-child-block.swms-section-collapsed .swms-child-toolbar {
  margin: 0; padding: 0; border: none;
}
.swms-landscape-page.swms-section-collapsed .swms-collapse-heading,
.swms-child-block.swms-section-collapsed .swms-child-heading {
  font-size: 9pt; font-weight: 600;
}
.swms-page-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; padding-bottom: 0.35rem; border-bottom: 1px solid #e2e8f0; }
.swms-page-title, .swms-collapse-heading, .swms-child-heading { font-size: 10pt; font-weight: 700; color: #0f172a; background: none; border: none; padding: 0; cursor: pointer; text-align: left; display: inline-flex; align-items: center; gap: 0.35rem; }
.swms-collapse-heading:hover, .swms-child-heading:hover { color: #0d9488; }
.swms-toolbar-actions { display: flex; gap: 0.35rem; align-items: center; flex-shrink: 0; }
.swms-section-body.hidden { display: none; }
.swms-child-block { border: 1px solid #e2e8f0; border-radius: 4px; margin: 0.35rem 0; overflow: hidden; }
.swms-child-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.35rem; padding: 0.25rem 0.4rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.swms-child-heading { font-size: 9pt; flex: 1; min-width: 0; }
.swms-child-heading span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swms-child-body { padding: 0.35rem 0.5rem; }
.swms-child-body.hidden { display: none; }
.swms-remove-btn, .swms-restore-btn { font-size: 9pt; padding: 0.1rem 0.4rem; border-radius: 3px; border: 1px solid #cbd5e1; background: #fff; color: #475569; cursor: pointer; }
.swms-remove-btn:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.swms-restore-btn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.swms-restore-btn:hover { background: #fef3c7; }
.swms-restore-strip { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; padding: 0.35rem 0.5rem; margin-bottom: 0.35rem; background: #fffbeb; border: 1px solid #fde68a; border-radius: 4px; }
.swms-static-rm { margin-left: auto; padding: 0 0.3rem; line-height: 1; }
.swms-static-label { display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.swms-child-edit, .swms-raw-textarea {
  width: 100%; font-family: Calibri, 'Segoe UI', Arial, sans-serif; font-size: 8.5pt;
  border: 1px solid #e2e8f0; border-radius: 3px; padding: 0.35rem 0.5rem; resize: vertical;
  line-height: 1.35; color: #1e293b; background: #fff;
}
.swms-child-edit:focus, .swms-raw-textarea:focus { outline: none; border-color: #0d9488; box-shadow: 0 0 0 1px #99f6e4; }
.swms-proofread-strip { padding: 0.4rem 0.5rem; margin-bottom: 0.35rem; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 4px; }
.swms-proofread-item { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; padding: 0.2rem 0; border-bottom: 1px solid #e0e7ff; }
.swms-proofread-item:last-child { border-bottom: none; }
.swms-formatted-doc .swms-h3 { font-size: 11pt; font-weight: 700; margin: 0.5rem 0 0.25rem; color: #0f172a; }
.swms-formatted-doc .swms-h4 { font-size: 9pt; font-weight: 600; margin: 0.2rem 0; }
.swms-formatted-doc .swms-p { margin: 0.1rem 0; }
.swms-formatted-doc .swms-p-gap { height: 0.35rem; }
.swms-formatted-doc .swms-field { display: grid; grid-template-columns: 9rem 1fr; gap: 0.35rem; margin: 0.15rem 0; font-size: 8.5pt; }
.swms-formatted-doc .swms-label { font-weight: 600; color: #334155; }
.swms-formatted-doc .swms-value { color: #0f172a; }
.swms-risk-table { width: 100%; border-collapse: collapse; font-size: 7pt; margin: 0.35rem 0; }
.swms-risk-table th, .swms-risk-table td { border: 1px solid #94a3b8; padding: 0.15rem 0.25rem; vertical-align: top; text-align: left; }
.swms-risk-table th { background: #f1f5f9; font-weight: 600; }
.swms-raw-editor.track-editor-wrap { font-size: 9pt; min-height: 3rem; }
.swms-word-header { margin-bottom: 0.5rem; }
.swms-doc-title { font-size: 11pt; font-weight: 700; text-align: center; background: #1e3a5f; color: #fff; padding: 0.35rem 0.5rem; margin: 0 0 0.25rem; border-radius: 2px 2px 0 0; }
.swms-doc-subtitle { font-size: 9pt; text-align: center; font-weight: 600; margin-bottom: 0.5rem; color: #0f172a; }
.swms-header-grid { border: 1px solid #64748b; margin-bottom: 0.5rem; }
.swms-header-row { display: grid; grid-template-columns: 6.5rem 1fr 1fr; border-bottom: 1px solid #cbd5e1; min-height: 1.4rem; }
.swms-header-row:last-child { border-bottom: none; }
.swms-header-label { background: #e2e8f0; font-weight: 600; padding: 0.2rem 0.35rem; border-right: 1px solid #94a3b8; font-size: 8pt; display: flex; align-items: center; }
.swms-header-cell { padding: 0.1rem 0.25rem; border-right: 1px solid #e2e8f0; display: flex; align-items: center; }
.swms-header-cell:last-child { border-right: none; }
.swms-header-span2 { grid-column: 2 / 4; border-right: none; }
.swms-header-empty { background: #f8fafc; }
.swms-inline-edit { width: 100%; border: none; background: transparent; font: inherit; color: inherit; padding: 0.1rem 0.15rem; outline: none; resize: vertical; min-height: 1.2rem; }
.swms-inline-edit:focus { background: #fffbeb; box-shadow: inset 0 0 0 1px #fbbf24; border-radius: 2px; }
.swms-static-groups { display: grid; gap: 0.35rem; margin-bottom: 0.5rem; }
.swms-static-group { border: 1px solid #e2e8f0; border-radius: 3px; overflow: hidden; }
.swms-static-label { display: block; background: #f1f5f9; font-weight: 600; font-size: 8pt; padding: 0.15rem 0.35rem; border-bottom: 1px solid #e2e8f0; }
.swms-static-group textarea { min-height: 2.2rem; }
.swms-risk-collapse { margin-top: 0.5rem; font-size: 8pt; }
.swms-risk-collapse summary { cursor: pointer; font-weight: 600; color: #475569; padding: 0.25rem 0; }
.swms-risk-body { max-height: 16rem; overflow: auto; border: 1px solid #e2e8f0; padding: 0.35rem; margin-top: 0.25rem; background: #f8fafc; }
@media (max-width: 900px) {
  .swms-layout { flex-direction: column; }
  .swms-sidebar { width: 100%; position: static; max-height: none; }
}
#pm-module { --da-accent: #0d9488; }

body { font-family: Inter, system-ui, sans-serif; background: var(--ascend-bg); color: var(--ascend-text); }
.font-display { font-family: Outfit, Inter, sans-serif; }
.ascend-card {
  background: var(--ascend-card-bg);
  border: 1px solid var(--ascend-border);
  border-radius: 0.75rem;
  box-shadow: var(--ascend-shadow);
  color: var(--ascend-text);
}
a.tab-btn { color: inherit; text-decoration: none; box-sizing: border-box; }
/* React vs planned extract targets in WIP sidebar */
.tab-btn.stack-react {
  color: #5b21b6;
  border-left: 2px solid #8b5cf6;
}
.tab-btn.stack-react:hover { color: #4c1d95; background: rgba(139, 92, 246, 0.08); }
.tab-btn.stack-react.active {
  color: #5b21b6;
  background: rgba(139, 92, 246, 0.12);
  border-left-color: #7c3aed;
}
#tab-btn-write-report,
#tab-btn-remedial-library,
#tab-btn-equipment,
#tab-btn-site-capture { display: none !important; }
/* Admin users: full-width grouped module grants (sidebar order) */
#settings-panel-admin #users-list { overflow-x: auto; }
.admin-users-table { width: 100%; min-width: 48rem; border-collapse: collapse; }
.admin-mod-cell { min-width: 28rem; }
.admin-mod-groups { display: flex; flex-direction: column; gap: 0.45rem; }
.admin-mod-group-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ascend-text-faint);
  margin-bottom: 0.12rem;
}
.admin-mod-group-items { display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem; }
.admin-mod-chip {
  font-size: 11px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem 0.2rem 0.35rem;
  border: 1px solid var(--ascend-chip-border);
  border-radius: 0.375rem;
  background: var(--ascend-chip-bg);
  color: var(--ascend-chip-text);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.admin-mod-chip:hover { border-color: var(--ascend-chip-hover-border); background: var(--ascend-chip-hover-bg); }
.admin-mod-chip:has(input:checked) {
  border-color: var(--ascend-chip-on-border);
  background: var(--ascend-chip-on-bg);
  color: var(--ascend-chip-on-text);
}
.admin-mod-chip input { margin: 0; flex-shrink: 0; }
.tab-btn.stack-react .stack-pill {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  line-height: 1.2;
  flex-shrink: 0;
}
.tab-btn.stack-soon {
  color: #92400e;
  border-left: 2px solid #fbbf24;
}
.tab-btn.stack-soon:hover { color: #78350f; background: rgba(251, 191, 36, 0.12); }
.tab-btn.stack-soon.active {
  color: #92400e;
  background: rgba(251, 191, 36, 0.15);
  border-left-color: #f59e0b;
}
.tab-btn.stack-soon .stack-pill {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  line-height: 1.2;
  flex-shrink: 0;
}
[data-theme="dark"] .tab-btn.stack-react { color: #c4b5fd !important; border-left-color: #8b5cf6; }
[data-theme="dark"] .tab-btn.stack-react.active { color: #ddd6fe !important; background: rgba(139, 92, 246, 0.18) !important; }
[data-theme="dark"] .tab-btn.stack-react .stack-pill { background: rgba(139, 92, 246, 0.25); color: #ddd6fe; border-color: #7c3aed; }
[data-theme="dark"] .tab-btn.stack-soon { color: #fbbf24 !important; border-left-color: #f59e0b; }
[data-theme="dark"] .tab-btn.stack-soon.active { color: #fcd34d !important; background: rgba(245, 158, 11, 0.15) !important; }
[data-theme="dark"] .tab-btn.stack-soon .stack-pill { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border-color: #d97706; }

.tab-btn.active {
  background: rgba(13, 148, 136, 0.08);
  color: #0d9488;
  border-left: 2px solid #0d9488;
}
a.kanban-db-btn { text-decoration: none; }
/* WIP umbrella group in sidebar */
.wip-nav-group {
  margin: 0.15rem 0;
  border-radius: 0.5rem;
  background: rgba(254, 243, 199, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.wip-nav-toggle {
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  width: 100%;
}
.wip-nav-toggle:hover { background: rgba(251, 191, 36, 0.15); }
.wip-nav-group[data-open="1"] .wip-nav-chevron { transform: rotate(180deg); }
.wip-nav-chevron { transition: transform 0.15s ease; flex-shrink: 0; }
.wip-nav-children {
  padding: 0.1rem 0.25rem 0.35rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.wip-nav-children[hidden] { display: none !important; }
.wip-nav-item { font-size: 0.8125rem !important; padding-left: 0.65rem !important; }
.wip-pill {
  margin-left: auto;
  font-size: 8px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  background: #fde68a;
  border-radius: 9999px;
  padding: 0.1rem 0.35rem;
  flex-shrink: 0;
}
.wip-nav-item.active .wip-pill { background: #99f6e4; color: #0f766e; }
/* Nested “not for rollout” bucket inside WIP */
.wip-odd-group {
  margin: 0.2rem 0 0.15rem;
  border-radius: 0.4rem;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: rgba(241, 245, 249, 0.55);
  padding: 0.15rem 0.15rem 0.25rem;
}
.wip-odd-toggle {
  width: 100%;
  text-align: left;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.35rem 0.5rem !important;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.3rem;
}
.wip-odd-toggle:hover { background: rgba(226, 232, 240, 0.8); color: #475569; }
.wip-odd-group[data-open="1"] .wip-odd-chevron { transform: rotate(180deg); }
.wip-odd-chevron { transition: transform 0.15s ease; font-size: 9px; opacity: 0.7; margin-left: auto; }
.wip-odd-children { display: flex; flex-direction: column; gap: 0.05rem; padding: 0 0.1rem 0.15rem 0.25rem; }
.wip-odd-children[hidden] { display: none !important; }
.wip-odd-item { font-size: 0.75rem !important; padding-left: 0.85rem !important; color: #64748b !important; }
.wip-odd-item .wip-pill { background: #e2e8f0; color: #64748b; }
.wip-odd-item.active { color: #0f766e !important; }
.wip-odd-item.active .wip-pill { background: #99f6e4; color: #0f766e; }
#tab-sidebar:not(.mobile-expanded) .wip-nav-group { background: transparent; border-color: transparent; }
#tab-sidebar:not(.mobile-expanded) .wip-pill { display: none; }
#tab-sidebar:not(.mobile-expanded) .wip-odd-group { border-color: transparent; background: transparent; padding: 0; }
#tab-sidebar:not(.mobile-expanded) .wip-odd-toggle .tab-text-label { display: none; }
#tab-sidebar:not(.tabs-ready) .tab-btn { visibility: hidden; }
#tab-sidebar:not(.tabs-ready) .wip-nav-toggle { visibility: hidden; }
#kanban-board { font-size: 13px; }
#kanban-board .kanban-my-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { #kanban-board .kanban-my-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  #kanban-board .kanban-my-board { grid-template-columns: 1fr; }
  #kanban-board .kanban-drag-handle { width: 2.75rem; min-height: 2.75rem; display: flex; align-items: center; justify-content: center; font-size: 14px; }
  #kanban-board .kanban-priority { width: 2.75rem; height: 2.75rem; font-size: 13px; }
  #kanban-board .kanban-card-line button,
  #kanban-board .kanban-job-header button { min-width: 2.75rem; min-height: 2.75rem; }
}
#kanban-board .kanban-my-board .kanban-col { min-height: 0; background: rgba(148, 163, 184, 0.07); border-radius: 0.6rem; padding: 0.6rem; }
#kanban-board .kanban-my-board .kanban-col[data-column="doing"] { background: rgba(13, 148, 136, 0.06); }
#kanban-board .kanban-my-board .kanban-col[data-column="watching"] { background: rgba(124, 58, 237, 0.05); }
#kanban-board .kanban-cards { min-height: 4rem; }
.kanban-col-count { font-weight: 500; color: var(--ascend-text-faint); letter-spacing: 0; margin-left: 0.25rem; }
#kanban-board .kanban-team-panels { max-height: 60vh; overflow-y: auto; }
.team-member-board { border-top: 1px solid var(--ascend-border-subtle); padding-top: 0.5rem; margin-top: 0.5rem; }
.team-member-board:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.team-flow-chart { display: flex; flex-direction: column; gap: 0.5rem; }
.team-flow-row { display: flex; align-items: stretch; gap: 0.5rem; flex-wrap: wrap; }
.team-flow-viewer {
  flex: 0 0 auto; min-width: 8rem; padding: 0.4rem 0.6rem; border-radius: 0.5rem;
  background: rgba(13, 148, 136, 0.08); border: 1px solid rgba(13, 148, 136, 0.25);
  font-size: 0.75rem; font-weight: 600; color: #0d9488;
}
.team-flow-connector { display: flex; align-items: center; color: #94a3b8; font-size: 0.7rem; padding: 0 0.15rem; }
.team-flow-subjects { display: flex; flex-wrap: wrap; gap: 0.35rem; flex: 1; align-items: center; }
.team-flow-subject {
  font-size: 0.7rem; padding: 0.3rem 0.5rem; border-radius: 0.4rem;
  background: var(--ascend-surface); border: 1px solid var(--ascend-border);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.team-org-svg-wrap { position: relative; min-height: 4rem; }
.team-org-nodes { display: flex; flex-wrap: wrap; gap: 0.5rem; position: relative; z-index: 1; }
.team-org-node {
  font-size: 0.65rem; padding: 0.35rem 0.5rem; border-radius: 0.4rem;
  background: var(--ascend-card-bg); border: 1px solid var(--ascend-border);
  min-width: 5.5rem; text-align: center;
}
.team-org-node.is-viewer { border-color: #0d9488; color: #0d9488; font-weight: 600; }
.team-org-node.is-subject { border-color: #6366f1; color: #4f46e5; }
.kanban-col { min-height: 280px; min-width: 0; display: flex; flex-direction: column; }
.kanban-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; flex-shrink: 0; }
.kanban-cards { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; min-height: 12rem; position: relative; }
.kanban-drop-line {
  display: none; position: absolute; left: 0; right: 0; height: 3px; margin: 0;
  background: #0d9488; border-radius: 2px; pointer-events: none; z-index: 5;
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.3);
}
.kanban-card { padding: 0.6rem 0.7rem; border-radius: 0.5rem; background: var(--ascend-card-bg); color: var(--ascend-text); box-shadow: 0 1px 2px rgba(15,23,42,0.05); }
.kanban-card-shell { display: flex; gap: 0.35rem; align-items: flex-start; min-width: 0; }
.kanban-card-content { flex: 1; min-width: 0; cursor: grab; }
.kanban-card-content :is(button, input, textarea, select, a, [contenteditable], .kanban-sub-wrap) { cursor: auto; }
.kanban-drag-handle {
  flex-shrink: 0; width: 0.9rem; color: var(--ascend-text-faint); cursor: grab; touch-action: none; user-select: none;
  font-size: 11px; line-height: 1.3; padding-top: 0.1rem; letter-spacing: -0.08em;
}
.kanban-drag-handle:hover { color: var(--ascend-text-muted); }
#kanban-board.is-kanban-dragging { user-select: none; }
#kanban-board.is-kanban-dragging .kanban-drag-handle { cursor: grabbing; color: #0d9488; }
.kanban-card-line, .kanban-job-header { display: flex; align-items: center; gap: 0.4rem; min-width: 0; overflow: hidden; font-size: 13px; line-height: 1.35; }
.kanban-job-link { font-size: 13px; }
.kanban-db-btn {
  font-size: 8px; font-weight: 700; width: 1.7rem; min-width: 1.7rem; height: 1.25rem;
  padding: 0; border-radius: 0.3rem; border: none; cursor: pointer; flex-shrink: 0;
  line-height: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.kanban-db-btn--rappel { background: #6d28d9; color: #fff; }
.kanban-db-btn--rappel:hover { background: #5b21b6; color: #fff; }
.kanban-db-btn--ascend { background: #0d9488; color: #fff; }
.kanban-db-btn--ascend:hover { background: #0f766e; color: #fff; }
.kcx { margin-top: 0.3rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; font-size: 12px; line-height: 1.35; }
.kcx-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 13px; color: var(--ascend-text-strong); flex-shrink: 0; }
.kcx-status { font-size: 10px; font-weight: 700; color: var(--ascend-accent-ink); background: rgba(13, 148, 136, 0.12); border-radius: 999px; padding: 0.05rem 0.45rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.kcx-title { font-size: 13px; font-weight: 600; color: var(--ascend-text, #1e293b); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcx-sub { color: var(--ascend-text-body); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcx-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 0.45rem; min-width: 0; }
.kcx-people { color: var(--ascend-text-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcx-people b { color: var(--ascend-text-body); font-weight: 600; }
.kcx-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.kcx-next { color: var(--ascend-text-secondary); font-size: 11px; min-width: 0; overflow-wrap: anywhere; }
.kcx-next b { color: var(--ascend-accent-ink); font-weight: 700; }
.kcx-next.is-late, .kcx-next.is-late b { color: var(--ascend-danger); }
.kcx-count { font-size: 11px; font-weight: 600; color: var(--ascend-text-muted); white-space: nowrap; }
.kcx-mine { border-top: 1px solid var(--ascend-border-subtle); margin-top: 0.3rem; padding-top: 0.3rem; display: flex; flex-direction: column; gap: 0.15rem; }
.kcx-td { display: flex; align-items: center; gap: 0.4rem; min-width: 0; font-size: 12px; }
.kcx-td .kcx-check { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 999px; border: 1.5px solid #d97706; background: var(--ascend-card-bg); color: #d97706; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.kcx-td .kcx-check:hover { background: #fef3c7; }
[data-theme="dark"] .kcx-td .kcx-check { color: #fcd34d; border-color: #fbbf24; }
[data-theme="dark"] .kcx-td .kcx-check:hover { background: #422006; }
.kcx-td .kcx-text { min-width: 0; overflow-wrap: anywhere; color: var(--ascend-text); }
.mine-chip { display: inline-block; font-size: 0.6rem; font-weight: 700; color: #92400e; background: #fde68a; border-radius: 999px; padding: 0 0.4rem; margin-right: 0.3rem; vertical-align: 1px; }
@media (pointer: coarse), (max-width: 760px) {
  #kanban-board .kcx-td .kcx-check { min-width: 2.75rem; min-height: 2.75rem; border: 0; background: transparent; position: relative; }
  #kanban-board .kcx-td .kcx-check::before { content: ''; position: absolute; width: 1.4rem; height: 1.4rem; border-radius: 999px; border: 1.5px solid #d97706; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
.kanban-job-meta { font-size: 11px; color: var(--ascend-text-muted, #64748b); }
.kanban-sub-wrap { border-top: 1px solid var(--ascend-border-subtle); margin-top: 0.35rem; padding-top: 0.35rem; }
.kanban-sub-tasks { display: flex; flex-direction: column; gap: 0.2rem; max-height: 10rem; overflow-y: auto; }
.kanban-sub-task { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr) auto; gap: 0.35rem; align-items: center; min-width: 0; font-size: 12px; line-height: 1.35; }
.kanban-assign-select { font-size: 11px; flex-shrink: 0; min-width: 4.75rem; max-width: 7.5rem; background: var(--ascend-surface); border: 1px solid var(--ascend-border); border-radius: 0.35rem; padding: 0.15rem 0.25rem; color: #4338ca; cursor: pointer; }
[data-theme="dark"] .kanban-assign-select { color: #a5b4fc; background: #312e81; border-color: #4338ca; }
.kanban-sub-add { position: relative; margin-top: 0.25rem; }
.kanban-sub-add input { font-size: 12px; width: 100%; }
.kanban-priority { width: 1.35rem; height: 1.35rem; border-radius: 9999px; font-size: 10px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: none; cursor: pointer; line-height: 1; }
.kanban-priority.traffic-red { background: #dc2626; }
.kanban-priority.traffic-yellow { background: #eab308; color: #422006; }
.kanban-priority.traffic-green { background: #22c55e; }
.kanban-card.traffic-red { border-left: 3px solid #dc2626; }
.kanban-card.traffic-yellow { border-left: 3px solid #eab308; }
.kanban-card.traffic-green { border-left: 3px solid #22c55e; }
.kanban-card.dragging {
  opacity: 0.28;
  border-style: dashed !important;
  border-color: #0d9488 !important;
  background: rgba(13, 148, 136, 0.07) !important;
  box-shadow: none;
}
.kanban-drag-ghost {
  position: fixed; z-index: 200; pointer-events: none; margin: 0;
  opacity: 0.94; border: 2px solid #0d9488 !important;
  border-radius: 0.5rem; box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  background: var(--ascend-surface, #fff);
  transform: rotate(-0.6deg) scale(1.01);
  transition: none;
}
[data-theme="dark"] .kanban-drag-ghost { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45); }
#kanban-board.is-kanban-dragging .kanban-card { pointer-events: none; }
#kanban-board.is-kanban-dragging { cursor: grabbing; }
.kanban-col.drag-over { background: rgba(13, 148, 136, 0.06); border-color: #0d9488; }
.module-chip { background: var(--ascend-surface); border: 1px solid var(--ascend-border); }
.job-row.selected { border-color: #0d9488; background: rgba(13, 148, 136, 0.06); }
.priority-p1 { color: #dc2626; }
.priority-p2 { color: #ea580c; }
.priority-p3 { color: #ca8a04; }
.priority-p4 { color: #64748b; }
.priority-bg-p1 { background: rgba(220, 38, 38, 0.1); border-left: 3px solid #dc2626; }
.priority-bg-p2 { background: rgba(234, 88, 12, 0.1); border-left: 3px solid #ea580c; }
.priority-bg-p3 { background: rgba(202, 138, 4, 0.08); border-left: 3px solid #ca8a04; }
.priority-bg-p4 { background: rgba(100, 116, 139, 0.06); border-left: 3px solid #64748b; }
.job-row-line { display: flex; align-items: center; gap: 0.35rem; min-width: 0; padding: 0.3rem 0.45rem; cursor: grab; position: relative; }
.job-row-line.dragging { opacity: 0.4; }
.job-hover-popup {
  display: none; position: absolute; left: 0; top: calc(100% + 4px); z-index: 40;
  min-width: 14rem; max-width: 22rem; padding: 0.45rem 0.55rem; border-radius: 0.5rem;
  background: var(--ascend-surface, #fff); border: 1px solid var(--ascend-border, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12); font-size: 10px; line-height: 1.45;
  color: var(--ascend-text, #334155); pointer-events: none; white-space: normal;
}
.job-row-line:hover .job-hover-popup, .job-hover-wrap:hover .job-hover-popup { display: block; }
.job-hover-popup .job-tip-label { color: #64748b; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; }
.job-hover-popup .job-tip-line { margin-top: 0.15rem; }
/* Recommended for you: larger, easier to read, and a big Hide button */
#home-recommended-list .job-hover-wrap { font-size: 14px; gap: 0.6rem; padding: 0.55rem 0.35rem 0.1rem; }
#home-recommended-list .job-hover-wrap > a.link-rappel, #home-recommended-list .job-hover-wrap > button.link-rappel { font-size: 14px; }
#home-recommended-list .job-hover-wrap > span { font-size: 14px; color: var(--ascend-text, #1e293b); }
#home-recommended-list .link-ascend { font-size: 13px; font-weight: 600; padding: 0.4rem 0.35rem; }
#home-recommended-list .rec-ctx { font-size: 12.5px; line-height: 1.35; color: var(--ascend-text-muted, #475569); padding: 0 0.35rem 0.55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#home-recommended-list .rec-board-btn { font-size: 13px; font-weight: 600; min-height: 38px; padding: 0 0.85rem; background: #0d9488; color: #fff; border-radius: 0.5rem; }
#home-recommended-list .rec-board-btn:hover { background: #0f766e; }
#home-recommended-list .rec-hide-btn { width: 40px; height: 40px; min-width: 40px; font-size: 24px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ascend-border, #cbd5e1); border-radius: 0.5rem; color: #64748b; background: var(--ascend-surface, #fff); }
#home-recommended-list .rec-hide-btn:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
/* hover details only over the job number / summary, never over the action buttons */
#home-recommended-list .job-hover-wrap:hover .job-hover-popup { display: none; }
#home-recommended-list .job-hover-wrap:has(> a.link-rappel:hover, > button.link-rappel:hover, > span:hover) .job-hover-popup { display: block; }
#home-recommended-list .job-hover-popup { font-size: 12.5px; line-height: 1.5; max-width: 26rem; top: calc(100% - 0.2rem); left: 2rem; }
#home-recommended-list .job-hover-popup .job-tip-label { font-size: 10.5px; }
.wr-browse-row {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: 0.5rem;
  border: 1px solid transparent; cursor: pointer; text-align: left; width: 100%;
  background: transparent; font-size: 11px; color: inherit;
}
.wr-browse-row:hover { background: rgba(13, 148, 136, 0.06); border-color: #99f6e4; }
.wr-dataset-topbar-panel { position: sticky; top: 0.35rem; z-index: 12; padding: 0.35rem 0.55rem; margin-bottom: 0.3rem; border: 1px solid #e2e8f0; border-radius: 0.4rem; background: #f8fafc; }
.wr-dataset-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin-bottom: 0; }
.wr-dataset-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.4rem; min-width: 0; flex: 1 1 12rem; font-size: 11px; line-height: 1.35; }
.wr-dataset-headline { font-weight: 600; color: #334155; font-family: ui-monospace, monospace; font-size: 11px; }
.wr-dataset-meta-inline { color: #64748b; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28rem; }
.wr-dataset-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-left: auto; }
.wr-nav-back.compact { font-size: 10px; padding: 0.15rem 0.35rem; }
.wr-report-header-details { border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #fff; margin-bottom: 0.2rem; }
.wr-report-header-details[open] { margin-bottom: 0.35rem; }
.wr-report-header-summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0.55rem; font-size: 10px; font-weight: 600; color: #64748b; cursor: pointer; list-style: none; }
.wr-report-header-summary::-webkit-details-marker { display: none; }
.wr-report-header-summary-hint { font-weight: 400; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.wr-report-header-details .wr-report-header-card { border: none; padding: 0 0.55rem 0.55rem; margin: 0; border-radius: 0; }
.wr-entry-compact { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--ascend-border, #f1f5f9); font-size: 11px; }
.wr-entry-compact:hover { background: rgba(248, 250, 252, 0.9); }
.wr-view-btn.active { background: #0d9488; color: #fff; border-color: #0d9488; }
.wr-view-btn { font-size: 10px; padding: 0.2rem 0.5rem; border: 1px solid #e2e8f0; border-radius: 0.375rem; background: #fff; }
.wr-dataset-entries-normal table thead { display: table-header-group; }
.wr-dataset-entries-compact .wr-col-details,
.wr-dataset-entries-compact .wr-col-recommendation,
.wr-dataset-entries-compact .wr-col-timeframe { display: none; }
.wr-layout { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; min-height: calc(100vh - 8.5rem); min-width: 0; }
#wr-sidebar { display: none !important; }
.wr-jobs-hub { min-width: 0; }
.wr-jobs-hub-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.65rem; }
.wr-jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.6rem; }
.wr-job-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.65rem 0.7rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #fff; cursor: pointer; text-align: left; transition: border-color 0.15s, box-shadow 0.15s; min-height: 5.5rem; }
.wr-job-card:hover { border-color: #99f6e4; box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08); }
.wr-job-card.active { border-color: #a5b4fc; background: rgba(99, 102, 241, 0.04); }
.wr-job-card-title { font-size: 12px; font-weight: 600; color: #1e293b; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wr-job-card-num { font-size: 10px; font-family: ui-monospace, monospace; color: #6366f1; }
.wr-job-card-meta { font-size: 9px; color: #64748b; line-height: 1.3; }
.wr-job-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.25rem; }
.wr-job-card-count { font-size: 9px; color: #94a3b8; }
.wr-job-fav-btn { border: none; background: none; cursor: pointer; color: #cbd5e1; padding: 0; line-height: 1; }
.wr-job-fav-btn.favorited { color: #f59e0b; }
.wr-job-workspace, .wr-report-workspace { display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; align-items: stretch; }
.wr-scope-rail { display: none !important; }
.wr-report-empty { padding: 2rem 1.5rem; text-align: center; border: 1px dashed #e2e8f0; border-radius: 0.5rem; background: rgba(248, 250, 252, 0.8); }
.wr-sidebar-new-btn { margin-bottom: 0.5rem; }
.wr-job-main { min-width: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.wr-filter-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; padding: 0.45rem 0.55rem; border-radius: 0.5rem; border: 1px solid #e2e8f0; background: #f8fafc; }
.wr-filter-chip { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 10px; padding: 0.15rem 0.45rem; border-radius: 9999px; border: 1px solid #c7d2fe; background: #eef2ff; color: #4338ca; }
.wr-filter-chip button { border: none; background: none; cursor: pointer; color: #6366f1; padding: 0; font-size: 11px; line-height: 1; }
.wr-filter-select { font-size: 10px; border: 1px solid #e2e8f0; border-radius: 0.375rem; padding: 0.2rem 0.35rem; background: #fff; }
.wr-report-header-card { padding: 0.55rem 0.65rem; border-radius: 0.5rem; border: 1px solid #e2e8f0; background: #fff; }
.wr-report-header-card input, .wr-report-header-card textarea { font-size: 11px; border: 1px solid #e2e8f0; border-radius: 0.375rem; padding: 0.25rem 0.4rem; width: 100%; }
.wr-report-header-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.4rem; }
.wr-source-hint { font-size: 9px; color: #94a3b8; line-height: 1.4; }
.wr-sidebar { padding: 0.65rem; height: 100%; min-height: calc(100vh - 8.5rem); max-height: none; overflow: hidden; position: sticky; top: 0.5rem; display: flex; flex-direction: column; }
#wr-nav-sidebar { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#wr-sidebar-tree, #wr-sidebar-pinned, #wr-sidebar-recent { flex-shrink: 0; }
#wr-sidebar-reports { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.wr-gallery-panel { display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
.wr-gallery-panel.hidden { display: none !important; }
.wr-debug-table { font-size: 10px; border-collapse: collapse; min-width: 1200px; }
.wr-debug-table th { text-align: left; padding: 0.35rem 0.5rem; font-size: 9px; text-transform: uppercase; color: #64748b; border-bottom: 1px solid #e2e8f0; white-space: nowrap; position: sticky; top: 0; background: #f8fafc; z-index: 1; }
.wr-debug-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; max-width: 14rem; }
.wr-debug-table .wr-debug-pre { white-space: pre-wrap; word-break: break-word; max-height: 8rem; overflow: auto; font-family: ui-monospace, monospace; font-size: 9px; line-height: 1.35; }
.wr-debug-table .wr-debug-mono { font-family: ui-monospace, monospace; font-size: 9px; color: #475569; }
.wr-gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.55rem 0.65rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #fff; }
.wr-gallery-toolbar-title { font-size: 13px; font-weight: 600; color: #1e293b; }
.wr-gallery-toolbar-sub { font-size: 13px; font-weight: 500; color: #64748b; }
.wr-gallery-toolbar-sep { color: #cbd5e1; user-select: none; }
.wr-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.65rem; }
.wr-gallery-tile { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #fff; cursor: pointer; text-align: left; transition: border-color 0.15s, box-shadow 0.15s; min-height: 5.25rem; }
.wr-gallery-tile:hover { border-color: #99f6e4; box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08); }
.wr-gallery-tile.active { border-color: #a5b4fc; background: rgba(99, 102, 241, 0.04); }
.wr-gallery-tile-title { font-size: 11px; font-weight: 600; color: #1e293b; line-height: 1.35; word-break: break-word; }
.wr-gallery-tile-meta { font-size: 9px; color: #64748b; line-height: 1.3; }
.wr-gallery-tile-num { font-size: 10px; font-family: ui-monospace, monospace; color: #6366f1; }
.wr-sidebar-item { display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.4rem; border-radius: 0.375rem; cursor: pointer; font-size: 11px; border: 1px solid transparent; width: 100%; text-align: left; background: transparent; color: inherit; }
.wr-sidebar-item:hover { background: rgba(13, 148, 136, 0.06); }
.wr-sidebar-item.active { background: rgba(99, 102, 241, 0.1); border-color: #c7d2fe; font-weight: 600; }
.wr-sidebar-item.inbox-pulse { border-color: #fcd34d; background: rgba(254, 243, 199, 0.35); }
.wr-sidebar-nested { padding-left: 0.65rem; border-left: 1px solid #e2e8f0; margin-left: 0.35rem; }
.wr-workspace { min-width: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.wr-inbox-workspace { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.wr-inbox-toolbar { padding: 0.5rem 0.65rem; border-radius: 0.5rem; border: 1px solid #e2e8f0; background: var(--ascend-surface, #fff); }
.wr-inbox-bulk { padding: 0.45rem 0.65rem; border-radius: 0.5rem; border: 1px solid #fde68a; background: rgba(254, 243, 199, 0.25); }
.wr-inbox-thumb { width: 2.35rem; height: 2.35rem; object-fit: cover; border-radius: 0.3rem; border: 1px solid #e2e8f0; cursor: pointer; background: #f8fafc; }
.wr-inbox-thumb:hover { border-color: #99f6e4; box-shadow: 0 1px 4px rgba(13, 148, 136, 0.15); }
.wr-inbox-thumb-broken { object-fit: contain; opacity: 0.45; cursor: default; }
.wr-planmap-workspace { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.wr-inbox-suggestions { padding: 0.55rem 0.7rem; border-radius: 0.5rem; border: 1px solid #c7d2fe; background: rgba(99, 102, 241, 0.06); }
.wr-suggestion-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.65rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(99, 102, 241, 0.12); font-size: 11px; }
.wr-suggestion-row:last-child { border-bottom: none; }
.wr-planmap-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.wr-planmap-table th { text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; padding: 0.35rem 0.5rem; border-bottom: 1px solid #e2e8f0; }
.wr-planmap-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.wr-planmap-table tr:hover td { background: rgba(13, 148, 136, 0.04); }
.wr-status-strip { font-size: 11px; padding: 0.45rem 0.65rem; border-radius: 0.5rem; border: 1px solid #a7f3d0; background: rgba(236, 253, 245, 0.6); color: #065f46; }
#wr-tab-panel-reports { width: 100%; min-width: 0; }
.wr-reporting-tab-bars { width: 100%; min-width: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin-bottom: 0.35rem; padding: 0.3rem 0.45rem; border: 1px solid #e2e8f0; border-radius: 0.4rem; background: #f8fafc; }
.wr-module-tabs { display: flex; flex-wrap: wrap; gap: 0.1rem; flex: 0 0 auto; }
.wr-module-tab-btn { padding: 0.3rem 0.6rem; font-size: 11px; border: 1px solid transparent; border-radius: 0.35rem; background: transparent; color: #64748b; cursor: pointer; }
.wr-module-tab-btn:hover { color: #334155; background: #fff; border-color: #e2e8f0; }
.wr-module-tab-btn.active { color: #0d9488; background: #fff; border-color: #99f6e4; font-weight: 600; box-shadow: 0 1px 2px rgba(13, 148, 136, 0.08); }
.wr-reports-subtabs { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.wr-reports-subtabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; width: 100%; }
.wr-reporting-tab-divider { width: 1px; align-self: stretch; min-height: 1.4rem; background: #e2e8f0; flex: 0 0 1px; }
.wr-reports-subtabs-pills { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.15rem; padding: 0.15rem; border-radius: 0.4rem; background: #e2e8f0; }
.wr-reports-new-btn { font-size: 10px; padding: 0.3rem 0.6rem; border-radius: 0.35rem; border: none; background: #4f46e5; color: #fff; cursor: pointer; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2); }
.wr-reports-new-btn:hover { background: #4338ca; }
.wr-reports-subtab { font-size: 11px; padding: 0.28rem 0.6rem; border-radius: 0.35rem; border: none; background: transparent; color: #64748b; cursor: pointer; white-space: nowrap; }
.wr-fw-tools-wrap { position: relative; flex: 0 0 auto; margin-left: auto; }
.wr-fw-tools-btn { font-size: 10px; padding: 0.28rem 0.55rem; border-radius: 0.35rem; border: 1px solid #c7d2fe; background: #eef2ff; color: #4338ca; cursor: pointer; font-weight: 600; white-space: nowrap; }
.wr-fw-tools-btn:hover { background: #e0e7ff; }
.wr-fw-tools-menu { position: absolute; right: 0; top: calc(100% + 0.2rem); z-index: 40; min-width: 11rem; padding: 0.25rem; border-radius: 0.4rem; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); }
.wr-fw-tools-menu button { display: block; width: 100%; text-align: left; font-size: 11px; padding: 0.35rem 0.5rem; border: none; border-radius: 0.3rem; background: transparent; color: #334155; cursor: pointer; }
.wr-fw-tools-menu button:hover { background: #f1f5f9; }
.wr-fw-tools-menu .wr-fw-menu-sep { height: 1px; margin: 0.2rem 0; background: #e2e8f0; }
.wr-reports-subtab:hover { color: #334155; }
.wr-reports-subtab.active { background: #fff; color: #0d9488; font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.wr-reports-subtab-badge { font-size: 10px; padding: 0.1rem 0.4rem; border-radius: 9999px; background: #fef3c7; color: #92400e; margin-left: 0.3rem; font-weight: 600; }
.wr-reports-status-line { width: 100%; font-size: 11px; color: #065f46; padding: 0.4rem 0.6rem; border-radius: 0.4rem; border: 1px solid #a7f3d0; background: rgba(236, 253, 245, 0.75); line-height: 1.4; }
.wr-status-strip { display: none !important; }
.wr-reporting-nav { width: 100%; min-width: 0; }
.wr-tab-panel-tools .wr-tools-iframe { height: min(72vh, 720px); }
.track-del { color: #b91c1c; background: #fee2e2; text-decoration: line-through; font-weight: inherit; }
.track-ins { color: #15803d; background: #dcfce7; text-decoration: none; font-weight: inherit; }
.track-equal { color: #334155; font-weight: inherit; }
.track-changes { line-height: 1.55; font-size: 12px; word-break: break-word; white-space: pre-wrap; }
.track-editor-wrap { position: relative; border-radius: 0.5rem; border: 1px solid #e2e8f0; background: #fff; min-height: 2rem; }
.track-mirror { padding: 0.35rem 0.5rem; pointer-events: none; min-height: 1.75rem; }
.track-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0.35rem 0.5rem; font-size: 12px; line-height: 1.55; background: transparent !important; border: 0 !important; outline: none; color: transparent !important; caret-color: #0f172a; -webkit-text-fill-color: transparent; resize: vertical; overflow: hidden; font-family: inherit; white-space: pre-wrap; word-break: break-word; }
.wr-review-layout { display: grid; grid-template-columns: 1fr min(18rem, 32%); gap: 0.75rem; max-height: min(68vh, 640px); }
.wr-review-entries { overflow: auto; min-width: 0; }
.wr-review-changelog { overflow: auto; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #f8fafc; padding: 0.5rem; font-size: 11px; }
.wr-review-entry { border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.5rem 0.65rem; margin-bottom: 0.5rem; background: #fff; }
.wr-review-field-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; margin-bottom: 0.15rem; }
.wr-review-hunk { border-left: 3px solid #f59e0b; padding: 0.35rem 0.5rem; margin-top: 0.35rem; background: #fffbeb; border-radius: 0 0.35rem 0.35rem 0; }
.wr-review-rev-badge { font-size: 10px; padding: 0.15rem 0.5rem; border-radius: 9999px; background: #ede9fe; color: #5b21b6; font-weight: 600; }
.wr-view-btn.active-review { background: #ede9fe; color: #5b21b6; font-weight: 600; }
.wr-defects-grid-wrap { min-width: 0; }
.wr-defects-grid-main { min-width: 0; overflow: visible; }
.wr-defects-grid-host { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.wr-defects-grid-host.wr-defects-fullscreen { position: fixed; inset: 0; z-index: 8000; background: var(--ascend-card-bg, #fff); border: 0; border-radius: 0; padding: 0.65rem; box-shadow: none; display: flex; flex-direction: column; }
body.wr-defects-fs-active { overflow: hidden; }
.wr-defects-grid-scroll { overflow: auto; max-height: min(55vh, 520px); min-width: 0; }
.wr-defects-fullscreen .wr-defects-grid-scroll { flex: 1; max-height: none; }
.wr-review-changelog-panel { border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #f8fafc; padding: 0.45rem 0.6rem; }
.wr-review-changelog-summary { list-style: none; display: flex; align-items: center; gap: 0.35rem; }
.wr-review-changelog-summary::-webkit-details-marker { display: none; }
.wr-review-changelog-body { max-height: min(28vh, 280px); overflow: auto; font-size: 11px; border-top: 1px solid #e2e8f0; padding-top: 0.5rem; }
.wr-defects-grid { table-layout: fixed; width: max-content; min-width: 100%; }
.wr-grid-th { text-align: left; padding: 0; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; border-bottom: 1px solid #e2e8f0; white-space: nowrap; position: sticky; top: 0; background: #f8fafc; z-index: 2; vertical-align: bottom; }
.wr-grid-th-inner { display: flex; align-items: center; gap: 0.2rem; padding: 0.35rem 0.45rem; min-height: 1.65rem; }
.wr-grid-th-label { flex: 1; min-width: 0; cursor: pointer; user-select: none; }
.wr-grid-sortable .wr-grid-th-label:hover { color: #64748b; }
.wr-grid-drag-handle { cursor: grab; color: #cbd5e1; font-size: 9px; line-height: 1; padding: 0 0.1rem; flex: 0 0 auto; user-select: none; }
.wr-grid-drag-handle:active { cursor: grabbing; }
.wr-grid-th-drag-over { box-shadow: inset 0 0 0 2px #99f6e4; }
.wr-grid-th-dragging { opacity: 0.55; }
.wr-grid-filter-btn { flex: 0 0 auto; font-size: 9px; line-height: 1; padding: 0.1rem 0.25rem; border: 1px solid #e2e8f0; border-radius: 0.25rem; background: #fff; color: #94a3b8; cursor: pointer; }
.wr-grid-filter-btn:hover { color: #64748b; border-color: #cbd5e1; }
.wr-grid-filter-btn.active { color: #0d9488; border-color: #99f6e4; background: #f0fdfa; }
.wr-grid-filter-pop { position: absolute; left: 0.25rem; right: 1rem; top: calc(100% - 1px); z-index: 5; padding: 0.3rem; border: 1px solid #e2e8f0; border-radius: 0 0 0.35rem 0.35rem; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1); }
.wr-grid-filter-input { width: 100%; font-size: 10px; border: 1px solid #e2e8f0; border-radius: 0.25rem; padding: 0.2rem 0.35rem; background: #fff; }
.wr-grid-resize-handle { position: absolute; top: 0; right: 0; width: 5px; height: 100%; cursor: col-resize; z-index: 3; }
.wr-grid-resize-handle:hover { background: rgba(13, 148, 136, 0.25); }
.wr-grid-td { padding: 0.35rem 0.5rem; vertical-align: top; font-size: 12px; word-break: break-word; overflow: hidden; max-width: 0; }
.wr-grid-text { white-space: pre-wrap; line-height: 1.4; max-height: none; }
.wr-grid-row-pending { background: rgba(254, 243, 199, 0.2); }
.wr-grid-review-cell .track-editor-wrap { min-height: 2.5rem; font-size: 11px; }
.wr-col-picker { position: absolute; right: 0; top: 100%; margin-top: 0.25rem; z-index: 30; min-width: 14rem; max-height: min(24rem, 70vh); overflow: auto; padding: 0.5rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,0.12); }
.wr-col-empty-hint { color: #cbd5e1; font-size: 9px; }
.wr-grid-mono { font-family: ui-monospace, Consolas, monospace; font-size: 10px; color: #475569; word-break: break-all; }
.wr-grid-pre { white-space: pre-wrap; word-break: break-word; line-height: 1.35; max-height: 10rem; overflow: auto; font-size: 11px; }
.wr-col-picker-group-label { font-size: 9px; font-weight: 600; text-transform: uppercase; color: #94a3b8; margin: 0.35rem 0 0.15rem; }
.wr-col-picker-item { display: flex; align-items: center; gap: 0.35rem; font-size: 11px; padding: 0.15rem 0; cursor: pointer; }
.wr-review-tools-panel { margin-top: 0; margin-bottom: 0.35rem; border: 1px solid #ddd6fe; border-radius: 0.4rem; background: rgba(237, 233, 254, 0.25); }
.wr-review-tools-panel summary { cursor: pointer; padding: 0.3rem 0.5rem; font-size: 11px; font-weight: 600; color: #5b21b6; list-style: none; line-height: 1.3; }
.wr-review-tools-panel summary::-webkit-details-marker { display: none; }
.wr-review-tools-body { padding: 0.5rem 0.65rem 0.65rem; border-top: 1px solid #ede9fe; }
.wr-diagnostics-log { font-family: ui-monospace, Consolas, monospace; font-size: 10px; line-height: 1.45; }
.wr-diagnostics-log .ok { color: #34d399; }
.wr-diagnostics-log .warn { color: #fbbf24; }
.wr-diagnostics-log .err { color: #f87171; }
.wr-breadcrumb { font-size: 11px; color: #64748b; }
.wr-breadcrumb strong { color: #334155; }
.wr-reporting-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.65rem; font-size: 11px; border: 1px solid #e2e8f0; border-radius: 0.5rem;
  background: var(--ascend-surface, #fff);
}
.wr-nav-back {
  font-weight: 600; color: #4f46e5; padding: 0.2rem 0.45rem; border-radius: 0.35rem;
  border: 1px solid #c7d2fe; background: rgba(99, 102, 241, 0.08);
}
.wr-nav-back:hover { background: rgba(99, 102, 241, 0.14); }
.wr-nav-link { color: #4f46e5; }
.wr-nav-link:hover { text-decoration: underline; }
.wr-nav-sep { color: #cbd5e1; user-select: none; }
.wr-nav-current { font-weight: 600; color: #334155; }
.wr-nav-muted { color: #64748b; }
.job-drop-indicator { height: 2px; background: #0d9488; border-radius: 1px; margin: 0; pointer-events: none; box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.25); }
.link-rappel { color: var(--ascend-link-rappel); }
.link-rappel:hover { color: var(--ascend-link-rappel-hover); text-decoration: underline; }
.link-ascend { color: var(--ascend-link-ascend); }
.link-ascend:hover { color: var(--ascend-link-ascend-hover); text-decoration: underline; }
#quick-links-grid.compact { display: flex; flex-wrap: nowrap; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
#quick-links-grid.compact .quick-link-chip { flex: 0 0 auto; min-width: 0; }
#quick-links-grid.compact .quick-link-chip .ascend-card { padding: 0.35rem 0.6rem; border-radius: 0.5rem; }
#quick-links-grid.compact .quick-link-inner { display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
#quick-links-grid.compact .quick-link-inner i { font-size: 0.75rem; margin: 0; }
#quick-links-grid.compact .quick-link-inner span { font-size: 0.7rem; font-weight: 500; }
@media (max-width: 640px) {
  #tab-sidebar:not(.mobile-expanded) .tab-text { display: none; }
  #tab-sidebar:not(.mobile-expanded) { width: 3.25rem; }
}
/* FR 315: collapse the left menu to icons on any screen size */
#tab-sidebar.side-collapsed .tab-text, #tab-sidebar.side-collapsed .tab-text-label, #tab-sidebar.side-collapsed .side-heading { display: none; }
#tab-sidebar.side-collapsed { width: 3.25rem; }
#tab-sidebar.side-collapsed .wip-pill { display: none; }
#image-lightbox { cursor: zoom-out; }
#image-lightbox img { cursor: default; }
@media (min-width: 1024px) {
  #jobs-layout-grid.jobs-sidebar-collapsed { grid-template-columns: 3rem minmax(0, 1fr); }
}
#jobs-sidebar.jobs-sidebar-collapsed { padding: 0.5rem 0.25rem; min-width: 0; }
#jobs-sidebar-strip { display: none; flex-direction: column; align-items: center; gap: 0.5rem; min-height: 12rem; }
#jobs-sidebar.jobs-sidebar-collapsed #jobs-sidebar-strip { display: flex; }
#jobs-sidebar.jobs-sidebar-collapsed #jobs-sidebar-expanded { display: none; }
.job-meta-grid {
  display: grid; grid-template-columns: minmax(3.5rem, auto) 1fr minmax(3.5rem, auto) 1fr;
  gap: 0.2rem 0.85rem; font-size: 0.75rem; align-items: baseline;
}
@media (max-width: 720px) { .job-meta-grid { grid-template-columns: auto 1fr; } }
.job-meta-label { color: var(--ascend-text-faint); white-space: nowrap; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.03em; }
.job-meta-value { color: var(--ascend-text-body); min-width: 0; word-break: break-word; }
.job-meta-full { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.job-line-tag-chip.tag-group-b.active { background: #7c3aed; border-color: #7c3aed; }
#jobs-sidebar-expand-btn {
  width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; border: 1px solid var(--ascend-border); background: var(--ascend-bg); color: var(--ascend-text-muted);
  cursor: pointer; flex-shrink: 0;
}
#jobs-sidebar-expand-btn:hover { background: var(--ascend-surface); color: var(--ascend-link-ascend); border-color: #99f6e4; }
#jobs-sidebar { position: relative; }
#jobs-sidebar.jobs-sidebar-hover-expand { z-index: 25; }
#jobs-sidebar.jobs-sidebar-collapsed.jobs-sidebar-hover-expand #jobs-sidebar-expanded {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 15rem;
  max-height: 70vh;
  overflow: auto;
  background: var(--ascend-bg, #fff);
  border: 1px solid var(--ascend-border, #e2e8f0);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  padding: 0.75rem;
  z-index: 30;
}
#jobs-sidebar.jobs-sidebar-collapsed.jobs-sidebar-hover-expand #jobs-sidebar-strip { visibility: hidden; }
#home-header-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
#quick-links-grid.home-inline { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; max-width: 100%; }
#quick-links-grid.home-inline .quick-link-chip .ascend-card { padding: 0.3rem 0.55rem; border-radius: 9999px; }
#quick-links-grid.home-inline .quick-link-inner { display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; font-size: 0.7rem; }
#quick-links-grid.home-inline .quick-link-inner i { font-size: 0.65rem; margin: 0; }
#jobs-collapsed-job-number {
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.65rem; font-family: ui-monospace, monospace;
  font-weight: 600; color: #6d28d9; letter-spacing: 0.04em; max-height: 50vh; overflow: hidden; text-overflow: ellipsis;
}
#job-line-items-list.job-line-items-table { display: block; width: 100%; max-width: 100%; }
.job-line-block { border-bottom: 1px solid var(--ascend-border-subtle); max-width: 100%; }
.job-line-block.child .job-line-item-row { padding-left: 1rem; }
.job-line-item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.4rem; padding: 0.15rem 0.1rem; max-width: 100%; }
.job-line-item-row > span { display: inline; padding: 0; border: 0; width: auto; text-align: left; white-space: normal; }
.job-line-desc { flex: 1 1 8rem; min-width: 0; }
.job-line-groups-toggle { min-height: 40px; padding: 0 0.55rem; border: 0; background: transparent; color: var(--ascend-link-rappel); font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.job-line-details-btn, .job-line-comment-add, .job-line-comment-del, .job-line-service, .job-line-service-date, .job-line-comment-text, .job-line-eq-preset, .job-line-eq-add, .job-line-eq-qty-btn, .job-line-eq-text { min-height: 44px; }
.job-line-details-btn { min-width: 44px; padding: 0 0.55rem; border: 1px solid #e2e8f0; border-radius: 0.4rem; background: #fff; font-size: 11px; font-weight: 700; color: #334155; }
.job-line-detail { padding: 0.35rem 0.45rem 0.65rem; background: #fafafa; max-width: 100%; }
[data-theme="dark"] .job-line-detail { background: var(--ascend-surface); color: var(--ascend-text); }
.job-line-note, .job-line-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.job-line-note, .li-rappel { color: var(--ascend-link-rappel); }
.li-ascend { color: var(--ascend-accent-ink); }
.job-line-comment { font-size: 12px; padding: 0.3rem 0; border-top: 1px solid var(--ascend-border); color: var(--ascend-text-strong); }
.job-line-comment-text, .job-line-service, .job-line-service-date { width: 100%; max-width: 100%; box-sizing: border-box; }
.job-line-service-date { border: 1px solid #5eead4; color: #0f766e; border-radius: 0.5rem; padding: 0 0.5rem; }
.job-line-comment-add { min-width: 44px; margin-top: 0.3rem; padding: 0 0.85rem; border: 0; border-radius: 0.5rem; background: #0d9488; color: #fff; font-weight: 700; font-size: 12px; }
.job-line-comment-badge { background: #ccfbf1; color: #115e59; border-radius: 999px; font-size: 9px; font-weight: 700; padding: 0.1rem 0.35rem; }
.job-line-comment-del { border: 0; background: transparent; color: var(--ascend-danger); font-weight: 700; padding: 0 0.4rem; }
.job-line-item-row > .job-line-eq-chips { display: inline-flex; flex-wrap: wrap; gap: 0.2rem; align-items: center; }
.job-line-eq-chip { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 0.15rem 0.45rem; }
ul.job-line-note { margin: 0.15rem 0 0.35rem; padding-left: 1.15rem; list-style: disc; font-size: 12px; }
ul.job-line-note li { margin: 0.1rem 0; }
.job-line-eq-presets { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.25rem; }
.job-line-eq-item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; }
.job-line-eq-preset { border: 1px solid #6ee7b7; background: #fff; color: #047857; border-radius: 999px; padding: 0 0.7rem; font-size: 12px; font-weight: 700; }
.job-line-eq-preset.on { background: #047857; color: #fff; }
.job-line-eq-qty { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 12px; font-weight: 700; color: #047857; }
.job-line-eq-qty-btn { min-width: 44px; border: 1px solid #6ee7b7; background: #fff; border-radius: 0.4rem; font-weight: 700; color: #047857; }
.job-line-eq-form { display: flex; gap: 0.35rem; margin-top: 0.35rem; }
.job-line-eq-text { flex: 1; min-width: 0; border: 1px solid #a7f3d0; border-radius: 0.5rem; padding: 0 0.5rem; font-size: 16px; }
.job-line-eq-add { min-width: 44px; border: 0; border-radius: 0.5rem; background: #0f766e; color: #fff; font-weight: 700; font-size: 12px; }
.job-line-cost { font-size: 12px; font-weight: 700; margin-top: 0.25rem; overflow-wrap: anywhere; }
.job-line-fields { display: grid; grid-template-columns: minmax(5.5rem, 7.4rem) minmax(0, 1fr); gap: 0.15rem 0.5rem; margin-top: 0.35rem; max-width: 100%; }
.job-line-field { display: contents; }
.job-line-field-l { color: var(--ascend-text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.job-line-field-v { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.job-line-field.is-blank .job-line-field-v { color: var(--ascend-text-faint); }
.job-line-need { color: var(--ascend-text-muted); font-size: 12px; font-weight: 600; }
.job-line-eq-saved { color: var(--ascend-text-muted); font-size: 12px; margin-top: 0.35rem; }
.job-line-hidden-note { margin: 0.45rem 0 0; color: var(--ascend-text-muted); font-size: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.job-line-show-hidden { min-height: 44px; min-width: 44px; border: 1px solid #6ee7b7; background: #fff; color: #047857; border-radius: 0.4rem; font-weight: 700; padding: 0 0.7rem; }
.job-line-tag-heading {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.5rem; margin-top: 0.25rem;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  color: #5b21b6; background: rgba(109, 40, 217, 0.08); border-left: 3px solid #7c3aed;
  border-radius: 0 0.35rem 0.35rem 0; cursor: pointer; user-select: none;
}
.job-line-tag-heading:first-child { margin-top: 0; }
.job-line-tag-count { color: #94a3b8; font-weight: 500; font-size: 9px; }
.job-line-tag-chevron { margin-left: auto; font-size: 8px; color: #94a3b8; }
.job-line-items-toolbar { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 0.5rem; }
.job-line-tag-chip {
  font-size: 9px; padding: 0.1rem 0.35rem; border-radius: 0.25rem; border: 1px solid #c4b5fd;
  background: #f5f3ff; color: #5b21b6; cursor: pointer;
}
.job-line-tag-chip.active { background: #7c3aed; color: #fff; border-color: #6d28d9; }
.job-line-tag-chip.empty { border-style: dashed; color: #94a3b8; border-color: #cbd5e1; background: transparent; }
#jobs-filter-wrap { position: relative; }
#jobs-filter-results {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 45;
  max-height: 12rem; overflow: auto;
}
#jobs-filter-results.open { display: block; }
.wr-sidebar-section-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; padding: 0.35rem 0.25rem 0.15rem; }
.wr-sidebar-item .wr-pin-btn { opacity: 0.35; padding: 0 0.2rem; border: none; background: none; cursor: pointer; color: #6366f1; flex-shrink: 0; }
.wr-sidebar-item .wr-pin-btn.wr-pin-left { margin-right: 0.1rem; }
.wr-sidebar-item:hover .wr-pin-btn, .wr-sidebar-item .wr-pin-btn.pinned { opacity: 1; }
.wr-sidebar-item .wr-pin-btn.pinned { color: #f59e0b; }
.wr-sidebar-job-label { display: block; line-height: 1.35; }
.wr-sidebar-job-hint { display: block; font-size: 9px; color: #0d9488; opacity: 0.9; padding-left: 0.15rem; }
#app-nav { background: var(--ascend-nav-bg) !important; border-color: var(--ascend-border) !important; overflow: visible; }
[id^="wrpt-lib-ta-"] { pointer-events: auto !important; }
[id^="wrpt-lib-ta-"] .wrpt-lib-opt { display: block; width: 100%; pointer-events: auto; cursor: pointer; background: #fff; border: 0; }
[id^="wrpt-lib-ta-"] .wrpt-lib-opt[aria-selected="true"],
[id^="wrpt-lib-ta-"] .wrpt-lib-opt:hover { background: #ccfbf1; }
#wrpt-lib-float { margin: 0; inset: auto; pointer-events: auto !important; }
#wrpt-lib-float [data-lib-idx] { cursor: pointer; }
.wrpt-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.85rem 1rem; }
.wrpt-panel.is-min { padding: 0.4rem 1rem; }
.wrpt-panel-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; min-width: 0; }
.wrpt-panel.is-min .wrpt-panel-head { margin-bottom: 0; }
.wrpt-panel-toggle { cursor: pointer; }
.wrpt-panel-peek { font-size: 11px; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wrpt-panel-peek.is-empty { color: #94a3b8; font-style: italic; }
.wrpt-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; flex-shrink: 0; }
.wrpt-obs-block { display: flex; flex-direction: column; gap: 0.45rem; }
.wrpt-pool-drop { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 2.6rem; padding: 0.4rem 0.6rem; border: 1px dashed #94a3b8; border-radius: 0.5rem; background: #f8fafc; }
.wrpt-pool-drop.is-hot { border-color: #6366f1; background: #eef2ff; }
.wrpt-sec-num { font-family: ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 600; color: #4338ca; min-width: 2.4rem; }
.wrpt-zone-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  cursor: pointer; padding: 0.15rem 0 0.35rem; margin: -0.15rem -0.15rem 0.35rem;
  border-radius: 0.4rem;
}
.wrpt-zone-head:hover { background: rgba(79, 70, 229, 0.06); }
.wrpt-def-head { cursor: pointer; margin: -0.15rem -0.15rem 0.15rem; padding: 0.15rem; border-radius: 0.4rem; }
.wrpt-def-head:hover { background: rgba(79, 70, 229, 0.06); }
.wrpt-iconbtn { position: relative; }
.wrpt-iconbtn[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 5px); right: 0; z-index: 50;
  max-width: 16rem; white-space: normal; text-align: left;
  font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.3;
  color: #fff; background: #0f172a; padding: 0.3rem 0.5rem; border-radius: 0.3rem;
  box-shadow: 0 6px 16px rgba(15,23,42,.28); pointer-events: none;
}
.wrpt-kicker.wrpt-iconbtn[data-tip]:hover::after { right: auto; left: 0; }
.wrpt-zone-name {
  flex: 1; min-width: 10rem; font-size: 14px; font-weight: 600;
  border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.35rem 0.6rem;
  cursor: text;
}
.wrpt-outline-btns { display: inline-flex; gap: 0.1rem; flex-shrink: 0; }
.wrpt-ol-btn { font-size: 10px; line-height: 1; padding: 0.15rem 0.3rem; border: 1px solid #e2e8f0; border-radius: 0.25rem; background: #fff; color: #64748b; cursor: pointer; }
.wrpt-ol-btn:hover { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.wrpt-zone { border-left: 4px solid #cbd5e1; }
.wrpt-zone.is-active { border-left-color: #4f46e5; background: linear-gradient(180deg, #eef2ff 0%, #fff 2.5rem); }
.wrpt-zone.is-compact { padding: 0.45rem 0.75rem; }
.wrpt-zone.wrpt-h3 { margin-left: 1.35rem; border-left-color: #a5b4fc; }
.wrpt-card-edit { border: 1px solid #c7d2fe; background: #fff; border-radius: 0.75rem; padding: 0.75rem; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(79,70,229,.06); container-type: inline-size; container-name: wrptcard; }
.wrpt-field-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #475569; margin-bottom: 0.2rem; }
#write-report-root, #write-report-react-root { --wrpt-narr-w: 43.2rem; }
.wrpt-card-body {
  display: grid;
  grid-template-columns: minmax(12rem, var(--wrpt-narr-w)) 0.55rem minmax(16rem, 1fr);
  grid-template-areas: "narr split meta";
  gap: 0.55rem 0;
  column-gap: 0.35rem;
  align-items: start;
}
.wrpt-narrative { grid-area: narr; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.wrpt-col-split {
  grid-area: split;
  cursor: col-resize;
  align-self: stretch;
  position: relative;
  width: 0.55rem;
  touch-action: none;
}
.wrpt-col-split::after {
  content: '';
  position: absolute;
  top: 0.4rem; bottom: 0.4rem; left: 0.15rem; right: 0.15rem;
  border-radius: 99px;
  background: #cbd5e1;
}
.wrpt-col-split:hover::after, body.wrpt-resizing .wrpt-col-split::after { background: #6366f1; }
body.wrpt-resizing { cursor: col-resize; user-select: none; }
.wrpt-lib-pane { display: none; }
.wrpt-narrative textarea {
  min-height: 1.35rem;
  max-height: 16rem;
  overflow-y: auto;
  resize: none;
  field-sizing: content;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
#write-report-root .wrpt-rev-field { min-width: 0; }
#write-report-root .wrpt-rev-diff {
  margin-top: 0.3rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  background: #f8fafc;
  pointer-events: none;
}
#write-report-root .wrpt-rev-diff-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.15rem;
}
#write-report-root .wrpt-rev-diff .track-changes {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}
#write-report-root .wr-review-hunk,
#write-report-root .wrpt-rev-diff,
#write-report-root .wrpt-rev-field,
#write-report-root .wrpt-narr-field {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
#write-report-root .wrpt-rev-block {
  display: block;
  white-space: pre-wrap;
  padding: 0.35rem 0.5rem;
  margin: 0.2rem 0;
  border-radius: 0.3rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}
#write-report-root del.wrpt-rev-block { text-decoration: line-through; }
#write-report-root ins.wrpt-rev-block { text-decoration: none; }
#write-report-root.is-review .wrpt-lib-pane { display: none !important; }
#write-report-root.is-review .wrpt-card-body {
  grid-template-columns: minmax(12rem, var(--wrpt-narr-w)) minmax(16rem, 1fr);
  grid-template-areas: "narr meta";
}
.wrpt-meta {
  grid-area: meta;
  width: auto; max-width: 100%; min-width: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 0.55rem; align-content: start;
  padding: 0.7rem; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 0.55rem;
}
.wrpt-meta .wrpt-photos {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 8rem;
}
.wrpt-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
.wrpt-photo-img { height: 7.5rem; width: 100%; background: #e2e8f0; }
/* Library matches sit in their own column, or on a row under the writing, never on top of it.
   The narrative stays a normal stack: a subgrid here put every textarea in one cell, so the
   suggestion pane took the clicks and the description could not be edited. */
.wrpt-card-body.is-lib {
  grid-template-columns: minmax(16rem, var(--wrpt-narr-w)) 0.55rem minmax(11rem, 1fr) minmax(16rem, 18rem);
  grid-template-rows: auto;
  grid-template-areas: "narr split lib meta";
  align-items: start;
}
.wrpt-card-body.is-lib .wrpt-narrative {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.wrpt-card-body.is-lib .wrpt-lib-pane {
  grid-area: lib;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  max-height: min(24rem, 70vh);
  overflow: auto;
  position: relative;
  z-index: 0;
}
.wrpt-lib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.wrpt-lib-dismiss {
  font-size: 10px;
  font-weight: 700;
  color: #0f766e;
  background: #fff;
  border: 1px solid #99f6e4;
  border-radius: 0.3rem;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
}
.wrpt-lib-dismiss:hover { background: #f0fdfa; }
.wrpt-lib-opt {
  display: flex;
  flex-direction: column;
  grid-row: auto;
  grid-template-rows: none;
  margin: 0;
  padding: 0;
  text-align: left;
  border: 1px solid #5eead4;
  border-radius: 0.5rem;
  background: #f0fdfa;
  color: inherit;
  min-width: 0;
  width: 100%;
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wrpt-lib-opt.is-hi { border-color: #0d9488; box-shadow: 0 0 0 1px #0d9488; }
.wrpt-lib-cell {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-bottom: 1px solid #99f6e4;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  line-height: 1.4;
  color: #134e4a;
  text-align: left;
  cursor: pointer;
  height: auto;
  max-height: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wrpt-lib-cell:last-child { border-bottom: 0; }
.wrpt-lib-cell:hover { background: #99f6e4; }
.wrpt-lib-useall {
  display: block;
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.wrpt-lib-useall:hover .wrpt-lib-kicker { color: #115e59; text-decoration: underline; }
.wrpt-lib-snip {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  height: auto;
  max-height: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wrpt-lib-snip:hover { color: #115e59; }
.wrpt-just-filled { outline: 2px solid #0d9488; outline-offset: 1px; }
.wrpt-lib-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 0.2rem;
}
.wrpt-lib-empty { color: #94a3b8; }
@container wrptcard (max-width: 72rem) {
  .wrpt-card-body.is-lib {
    grid-template-columns: minmax(0, var(--wrpt-narr-w)) 0.55rem minmax(14rem, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "narr split meta"
      "lib lib lib";
  }
  .wrpt-card-body.is-lib .wrpt-narrative,
  .wrpt-card-body.is-lib .wrpt-lib-pane,
  .wrpt-card-body.is-lib .wrpt-meta { grid-row: auto; }
  .wrpt-card-body.is-lib .wrpt-narrative {
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
  }
  .wrpt-card-body.is-lib .wrpt-lib-pane {
    display: flex;
    flex-direction: column;
    margin-top: 0.35rem;
    max-height: none;
  }
  .wrpt-lib-opt { width: 100%; min-width: 0; flex: 0 0 auto; height: auto; max-height: none; overflow: visible; }
}
@container wrptcard (max-width: 40rem) {
  .wrpt-card-body, .wrpt-card-body.is-lib {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "narr" "lib" "meta";
  }
  .wrpt-col-split { display: none; }
  .wrpt-card-body.is-lib .wrpt-narrative {
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
  }
  .wrpt-meta { width: 100%; }
}
.wrpt-meta input, .wrpt-meta select { max-width: 100%; min-width: 0; }
.wrpt-meta .wrpt-span-2 { grid-column: 1 / -1; }
.wrpt-meta .wrpt-ref-row { grid-column: 1 / -1; display: grid; grid-template-columns: 4.5rem 1fr 1fr; gap: 0.4rem; }
@media (max-width: 720px) {
  .wrpt-card-body, .wrpt-card-body.is-lib {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "narr" "lib" "meta";
    grid-template-rows: auto;
  }
  .wrpt-col-split { display: none; }
  .wrpt-card-body.is-lib .wrpt-narrative {
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
  }
  .wrpt-card-body.is-lib .wrpt-lib-pane {
    display: flex;
    flex-direction: column;
    margin-top: 0.35rem;
    max-height: none;
  }
  .wrpt-lib-opt { grid-row: auto; min-width: 0; width: 100%; flex: 0 0 auto; height: auto; max-height: none; overflow: visible; white-space: normal; }
  .wrpt-meta { width: 100%; }
}
.wrpt-ratings { display: flex; flex-wrap: wrap; gap: 0.45rem 0.65rem; padding: 0.55rem 0.65rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.5rem; }
.wrpt-photos { display: flex; flex-direction: column; gap: 0.45rem; }
.wrpt-children {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.65rem;
  min-width: 0;
}
.wrpt-child {
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.65rem 0.75rem;
  min-width: 0;
}
.wrpt-child-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.wrpt-child-note {
  margin: 0 0 0.4rem;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wrpt-child textarea { width: 100%; min-height: 2.6rem; height: auto; }
.wrpt-tray-strip {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
  padding: 0.35rem 0.4rem; border: 1px solid #c7d2fe; border-radius: 0.5rem;
  background: #eef2ff;
}
.wrpt-strip-tile {
  width: 2.6rem; height: 2.6rem; border-radius: 0.3rem; overflow: hidden;
  border: 1px solid #c7d2fe; background: #fff; cursor: grab; flex-shrink: 0;
}
.wrpt-strip-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wrpt-pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.55rem; margin-top: 0.5rem; }
.wrpt-pool-tile { border: 1px solid #e2e8f0; border-radius: 0.5rem; overflow: hidden; background: #fff; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.35rem; cursor: grab; position: relative; }
.wrpt-pool-tile.is-selected { box-shadow: 0 0 0 2px #6366f1; border-color: #6366f1; }
.wrpt-pool-drag { font-size: 11px; color: #94a3b8; letter-spacing: 0.22em; text-align: center; cursor: grab; user-select: none; line-height: 1; padding: 0.05rem 0; }
.wrpt-pool-tile.is-selected .wrpt-pool-drag { color: #4f46e5; }
.wrpt-pool-tile img { width: 100%; height: 5.5rem; object-fit: cover; border-radius: 0.35rem; background: #f1f5f9; }
.wrpt-pool-empty { height: 5.5rem; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #94a3b8; }
.wrpt-pool-tile input, .wrpt-pool-tile select { font-size: 10px; border: 1px solid #e2e8f0; border-radius: 0.25rem; padding: 0.15rem 0.3rem; width: 100%; }
.wrpt-photo-drop { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 2.25rem; padding: 0.3rem 0.55rem; border: 1px dashed #94a3b8; border-radius: 0.5rem; background: #f1f5f9; }
.wrpt-photo-drop.is-hot { border-color: #6366f1; background: #eef2ff; }
.wrpt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrpt-browse { font-size: 11px; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 0.375rem; border: 1px solid #cbd5e1; background: #fff; color: #1e293b; cursor: pointer; }
.wrpt-browse:hover { background: #f8fafc; }
#app-nav .nav-brand-gradient {
  flex: 0 1 auto;
  min-width: min(42vw, 22rem);
  background: linear-gradient(90deg, #6d28d9 0%, #5b21b6 28%, #4f46e5 58%, #4338ca 82%, transparent 100%);
  margin: -0.25rem 1.25rem -0.25rem -1rem;
  padding: 0.3rem 3.5rem 0.3rem 1rem;
  border-radius: 0 0.85rem 0.85rem 0;
}
@media (min-width: 768px) {
  #app-nav .nav-brand-gradient { min-width: min(36vw, 26rem); padding-right: 5rem; }
}
[data-theme="dark"] #app-nav .nav-brand-gradient {
  background: linear-gradient(90deg, #4c1d95 0%, #4338ca 35%, #3730a3 68%, #312e81 88%, transparent 100%);
}
#nav-rappel-wrap { position: relative; }
#nav-rappel-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: #64748b; padding: 0.25rem 0.45rem; border-radius: 0.4rem;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  font-size: 0.75rem; line-height: 1;
}
#nav-rappel-btn:hover { color: #6d28d9; }
#nav-rappel-btn[aria-expanded="true"] {
  color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff;
}
#nav-rappel-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 9999px;
  background: #f59e0b; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28);
}
#nav-rappel-dot.tone-green, #nav-rappel-dot.ok { background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28); }
#nav-rappel-dot.tone-red, #nav-rappel-dot.err { background: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.32); }
#nav-rappel-dot.tone-amber { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.32); }
#nav-rappel-btn.tone-red,
#nav-rappel-btn.tone-red:hover,
#nav-rappel-btn.tone-red[aria-expanded="true"] { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
#nav-rappel-btn.tone-green,
#nav-rappel-btn.tone-green:hover,
#nav-rappel-btn.tone-green[aria-expanded="true"] { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
#nav-rappel-btn.tone-amber,
#nav-rappel-btn.tone-amber:hover,
#nav-rappel-btn.tone-amber[aria-expanded="true"] { color: #b45309; border-color: #fde68a; background: #fffbeb; }
#nav-rappel-menu {
  display: none; position: absolute; top: calc(100% + 0.4rem); right: 0;
  z-index: 70; width: min(22.5rem, calc(100vw - 1.25rem));
  padding: 0.85rem; text-align: left;
}
#nav-rappel-menu.open { display: block; }
[data-theme="dark"] #nav-rappel-btn[aria-expanded="true"] {
  background: rgba(109, 40, 217, 0.22); border-color: #5b21b6; color: #ddd6fe;
}
[data-theme="dark"] #nav-rappel-btn.tone-red,
[data-theme="dark"] #nav-rappel-btn.tone-red[aria-expanded="true"] { color: #fca5a5; border-color: #7f1d1d; background: rgba(127, 29, 29, 0.35); }
[data-theme="dark"] #nav-rappel-btn.tone-green,
[data-theme="dark"] #nav-rappel-btn.tone-green[aria-expanded="true"] { color: #6ee7b7; border-color: #065f46; background: rgba(6, 95, 70, 0.35); }
[data-theme="dark"] #nav-rappel-btn.tone-amber,
[data-theme="dark"] #nav-rappel-btn.tone-amber[aria-expanded="true"] { color: #fcd34d; border-color: #92400e; background: rgba(146, 64, 14, 0.35); }
#nav-ask-grok-btn {
  display: none; align-items: center; gap: 0.35rem;
  color: #fff; padding: 0.28rem 0.7rem; border-radius: 0.45rem;
  border: 1px solid #0f766e; background: #0f766e; cursor: pointer;
  font-size: 0.75rem; line-height: 1; font-weight: 700; white-space: nowrap;
}
#nav-ask-grok-btn.ag-show { display: inline-flex !important; }
#nav-ask-grok-btn:hover, #nav-ask-grok-btn[aria-expanded="true"] {
  background: #115e59; border-color: #115e59;
}
#ask-grok-root { display: none; }
#ask-grok-root.open { display: block !important; }
#ask-grok-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); z-index: 80;
}
#ask-grok-panel {
  position: fixed; top: 0; right: 0; z-index: 81;
  width: min(28.5rem, 100vw); height: 100vh;
  background: var(--ascend-card-bg, #fff);
  border-left: 1px solid var(--ascend-border, #e2e8f0);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex; flex-direction: column;
}
.ag-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1rem 0.65rem; border-bottom: 1px solid var(--ascend-border, #e2e8f0);
}
.ag-head h2 { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--ascend-text, #0f172a); }
.ag-head p { margin: 0.2rem 0 0; font-size: 10px; color: var(--ascend-text-muted, #64748b); }
.ag-section { padding: 0.65rem 1rem; border-bottom: 1px solid var(--ascend-border, #e2e8f0); }
.ag-chip-group { margin-bottom: 0.4rem; }
.ag-chip-group-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; margin-bottom: 0.2rem; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.ag-chip {
  font-size: 10px; padding: 0.15rem 0.45rem; border-radius: 9999px;
  border: 1px solid #cbd5e1; background: #fff; color: #334155; cursor: pointer;
}
.ag-chip.on { background: #0f766e; border-color: #0f766e; color: #fff; }
#ask-grok-modules.ag-need { outline: 2px solid #f59e0b; outline-offset: 3px; border-radius: 0.5rem; }
#ask-grok-need { font-size: 11px; color: #b45309; margin: 0.35rem 0 0; }
.ag-think { font-size: 11px; color: #334155; }
.ag-think-label { color: #64748b; }
.ag-think-tables { font-size: 10px; color: #64748b; margin-top: 0.2rem; word-break: break-word; }
#ask-grok-thread { flex: 1; overflow: auto; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.65rem; }
.ag-empty { font-size: 12px; color: #64748b; line-height: 1.45; }
.ag-msg { display: flex; }
.ag-msg-user { justify-content: flex-end; }
.ag-bubble { max-width: 95%; font-size: 12.5px; line-height: 1.45; padding: 0.55rem 0.7rem; border-radius: 0.7rem; }
.ag-msg-user .ag-bubble { background: #0f766e; color: #fff; border-bottom-right-radius: 0.2rem; white-space: pre-wrap; }
.ag-msg-ai .ag-bubble { background: #f1f5f9; color: #0f172a; border-bottom-left-radius: 0.2rem; }
[data-theme="dark"] .ag-msg-ai .ag-bubble { background: #1e293b; color: #e2e8f0; }
.ag-md .ag-p { margin: 0 0 0.45rem; }
.ag-md .ag-h { font-size: 12px; font-weight: 700; margin: 0.4rem 0 0.25rem; }
.ag-md .ag-ul, .ag-md .ag-ol { margin: 0 0 0.45rem; padding-left: 1.1rem; }
.ag-md .ag-code { font-size: 11px; background: rgba(15,23,42,0.08); padding: 0.05rem 0.25rem; border-radius: 0.25rem; }
.ag-md .ag-pre { font-size: 11px; background: #0f172a; color: #e2e8f0; padding: 0.5rem; border-radius: 0.4rem; overflow: auto; margin: 0.35rem 0; }
.ag-meta { margin-top: 0.45rem; font-size: 10px; color: #64748b; }
.ag-compose { padding: 0.65rem 1rem 0.9rem; border-top: 1px solid var(--ascend-border, #e2e8f0); }
#ask-grok-input {
  width: 100%; min-height: 4.2rem; resize: vertical; font-size: 12.5px;
  border: 1px solid var(--ascend-border, #e2e8f0); border-radius: 0.5rem;
  padding: 0.5rem 0.6rem; background: var(--ascend-input-bg, #fff);
  color: var(--ascend-text, #0f172a);
}
.ag-compose-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.ag-send {
  font-size: 11px; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 0.4rem;
  background: #0f766e; color: #fff; border: none; cursor: pointer;
}
.ag-send:disabled { opacity: 0.55; cursor: wait; }
.ag-ghost { font-size: 10px; color: #64748b; background: transparent; border: none; cursor: pointer; }
[data-theme="dark"] .job-line-tag-heading { color: #c4b5fd; background: rgba(109, 40, 217, 0.2); }
.job-task-compact-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; border-bottom: 1px solid var(--ascend-border-subtle); font-size: 12px; }
.job-task-compact-row.done { opacity: 0.55; }
.job-task-compact-row input[type="checkbox"] { flex-shrink: 0; accent-color: #0d9488; }
.theme-surface-input {
  background: var(--ascend-input-bg);
  border-color: var(--ascend-border);
  color: var(--ascend-text);
}
.ascend-theme-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ascend-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--ascend-surface);
  flex-shrink: 0;
}
.ascend-theme-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ascend-text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0.38rem 0.48rem;
  cursor: pointer;
}
.ascend-theme-toggle button + button { border-left: 1px solid var(--ascend-border); }
.ascend-theme-toggle button[aria-checked="true"] {
  background: #115e59;
  color: #f0fdfa;
}
.ascend-theme-toggle button:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: -2px;
}
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-white\/95 { background-color: var(--ascend-card-bg) !important; }
[data-theme="dark"] .bg-slate-50,
[data-theme="dark"] .bg-slate-100 { background-color: var(--ascend-surface) !important; }
[data-theme="dark"] .hover\:bg-slate-50:hover,
[data-theme="dark"] .hover\:bg-slate-200:hover { background-color: var(--ascend-surface-hover) !important; }
[data-theme="dark"] .text-slate-800,
[data-theme="dark"] .text-slate-700,
[data-theme="dark"] .text-slate-600 { color: var(--ascend-text) !important; }
[data-theme="dark"] .text-slate-500,
[data-theme="dark"] .text-slate-400 { color: var(--ascend-text-muted) !important; }
[data-theme="dark"] .border-slate-200,
[data-theme="dark"] .border-slate-100,
[data-theme="dark"] .border-dashed.border-slate-200 { border-color: var(--ascend-border) !important; }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: var(--ascend-input-bg);
  border-color: var(--ascend-border);
  color: var(--ascend-text);
}
[data-theme="dark"] .tab-btn { color: var(--ascend-text-muted) !important; }
[data-theme="dark"] .tab-btn.active { color: #2dd4bf !important; background: rgba(45, 212, 191, 0.12) !important; }
[data-theme="dark"] .kanban-priority.traffic-yellow { color: #422006; }
[data-theme="dark"] .priority-p1 { color: #f87171; }
[data-theme="dark"] .priority-p2 { color: #fb923c; }
[data-theme="dark"] .priority-p3 { color: #facc15; }
[data-theme="dark"] .priority-p4 { color: #94a3b8; }
[data-theme="dark"] .priority-bg-p1 { background: rgba(248, 113, 113, 0.15); }
[data-theme="dark"] .priority-bg-p2 { background: rgba(251, 146, 60, 0.15); }
[data-theme="dark"] .priority-bg-p3 { background: rgba(250, 204, 21, 0.12); }
[data-theme="dark"] .priority-bg-p4 { background: rgba(148, 163, 184, 0.12); }
[data-theme="dark"] #home-overdue { background: rgba(251, 191, 36, 0.12) !important; border-color: #b45309 !important; }
[data-theme="dark"] #home-recommended { background: rgba(99, 102, 241, 0.12) !important; border-color: #4338ca !important; }
[data-theme="dark"] #wr-linked-job-banner { background: rgba(99, 102, 241, 0.12) !important; border-color: #4338ca !important; color: #c7d2fe !important; }
body.ui-sketch-active { cursor: crosshair; }
body.ui-sketch-active *:not(#ui-sketch-root):not(#ui-sketch-root *) { user-select: none; }
#ui-sketch-root { position: fixed; inset: 0; z-index: 2147482000; pointer-events: none; }
#ui-sketch-root .ui-sketch-toolbar { pointer-events: auto; position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(36rem, calc(100vw - 1.5rem)); background: #fff; border: 2px solid #f59e0b; border-radius: 0.75rem; box-shadow: 0 16px 40px rgba(15,23,42,0.2); padding: 0.65rem 0.75rem; font-size: 11px; }
#ui-sketch-root .ui-sketch-toolbar-title { font-weight: 700; color: #b45309; margin-bottom: 0.15rem; }
#ui-sketch-root .ui-sketch-toolbar-hint { color: #64748b; font-size: 10px; margin-bottom: 0.45rem; }
#ui-sketch-root .ui-sketch-pin-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.45rem; min-height: 1.5rem; }
#ui-sketch-root .ui-sketch-chip { pointer-events: auto; border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; border-radius: 9999px; padding: 0.15rem 0.5rem; font-size: 10px; font-weight: 600; cursor: pointer; }
#ui-sketch-root .ui-sketch-chip-active { background: #f59e0b; color: #fff; border-color: #d97706; }
#ui-sketch-root .ui-sketch-chip-x { margin-left: 0.25rem; opacity: 0.7; }
#ui-sketch-root .ui-sketch-chip-move { font-size: 9px; opacity: 0.85; }
#ui-sketch-root .ui-sketch-empty { color: #94a3b8; font-size: 10px; }
#ui-sketch-root .ui-sketch-note-label { display: block; margin-bottom: 0.45rem; color: #475569; font-size: 10px; }
#ui-sketch-root #ui-sketch-note { pointer-events: auto; width: 100%; margin-top: 0.2rem; border: 1px solid #e2e8f0; border-radius: 0.375rem; padding: 0.35rem 0.5rem; font-size: 11px; resize: vertical; cursor: text; user-select: text; }
#ui-sketch-root .ui-sketch-toolbar-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
#ui-sketch-root .ui-sketch-btn { pointer-events: auto; font-size: 11px; padding: 0.35rem 0.65rem; border-radius: 0.375rem; border: 1px solid #e2e8f0; background: #fff; color: #334155; cursor: pointer; }
#ui-sketch-root .ui-sketch-btn-primary { background: #059669; color: #fff; border-color: #047857; }
#ui-sketch-root .ui-sketch-btn-primary:hover { background: #047857; }
#ui-sketch-root .ui-sketch-layer { position: absolute; inset: 0; pointer-events: none; }
#ui-sketch-root .ui-sketch-highlight { position: fixed; box-sizing: border-box; border: 2px solid #fbbf24; background: rgba(251, 191, 36, 0.12); pointer-events: auto; cursor: pointer; z-index: 1; }
#ui-sketch-root .ui-sketch-highlight-selected { border-color: #d97706; background: rgba(245, 158, 11, 0.2); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35); }
#ui-sketch-root .ui-sketch-badge { position: absolute; top: -1.1rem; left: -2px; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700; padding: 0.1rem 0.35rem; border-radius: 0.25rem; line-height: 1.2; }
#ui-sketch-root .ui-sketch-arrows { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
#ui-sketch-root .ui-sketch-arrow-line { stroke: #ea580c; stroke-width: 3; }
#ui-sketch-root .ui-sketch-target-box { fill: none; stroke: #ea580c; stroke-width: 2; stroke-dasharray: 6 3; }
#ui-sketch-root .ui-sketch-arrow-label { fill: #c2410c; font-size: 11px; font-weight: 700; }
#ui-sketch-root .ui-sketch-screenshot-hint { pointer-events: auto; position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); background: #fffbeb; border: 2px solid #f59e0b; border-radius: 0.5rem; padding: 0.5rem 1rem; font-size: 11px; font-weight: 600; color: #b45309; cursor: pointer; box-shadow: 0 8px 24px rgba(15,23,42,0.15); z-index: 10; }
#ui-sketch-root .ui-sketch-screenshot-hint.hidden { display: none; }
#ui-sketch-root .ui-sketch-ghost-layer { position: absolute; inset: 0; pointer-events: none; }
#ui-sketch-root .ui-sketch-ghost { position: fixed; box-sizing: border-box; border: 2px dashed #f59e0b; background: rgba(254, 243, 199, 0.45); border-radius: 0.25rem; }
#ui-sketch-root .ui-sketch-ghost-label { position: absolute; top: -1rem; left: 0; font-size: 9px; font-weight: 600; color: #b45309; background: #fffbeb; padding: 0 0.25rem; border-radius: 0.2rem; }
#ui-sketch-root .ui-sketch-drag-ghost { position: fixed; box-sizing: border-box; border: 2px solid #d97706; background: rgba(245, 158, 11, 0.35); border-radius: 0.25rem; pointer-events: auto; cursor: grab; z-index: 5; touch-action: none; }
#ui-sketch-root.ui-sketch-dragging .ui-sketch-drag-ghost { cursor: grabbing; }
#ui-sketch-root .ui-sketch-drag-label { position: absolute; top: -1.1rem; left: 0; font-size: 9px; font-weight: 700; color: #fff; background: #d97706; padding: 0.1rem 0.35rem; border-radius: 0.2rem; white-space: nowrap; }
#ui-sketch-toggle.active { color: #d97706; background: #fffbeb; border-radius: 0.375rem; }
#ascend-loading-bar { position: fixed; top: var(--nav-h, 3.5rem); left: 0; right: 0; z-index: 45; height: 3px; background: rgba(13, 148, 136, 0.12); pointer-events: none; }
#ascend-loading-bar.hidden { display: none; }
#ascend-loading-bar-fill { height: 100%; width: 35%; background: linear-gradient(90deg, #0d9488, #14b8a6, #0d9488); background-size: 200% 100%; animation: ascend-load-slide 1.1s ease-in-out infinite; border-radius: 0 2px 2px 0; }
@keyframes ascend-load-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }
.wr-gallery-tile.wr-skeleton { pointer-events: none; border-color: #e2e8f0; background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%); background-size: 200% 100%; animation: ascend-skeleton 1.2s ease-in-out infinite; min-height: 5.25rem; }
.wr-skeleton-line { display: block; height: 0.65rem; border-radius: 0.25rem; background: rgba(148, 163, 184, 0.25); margin-bottom: 0.35rem; }
.wr-skeleton-line.w-40 { width: 40%; } .wr-skeleton-line.w-70 { width: 70%; } .wr-skeleton-line.w-55 { width: 55%; }
.wr-grid-skeleton-row .wr-grid-skel { display: block; height: 0.75rem; border-radius: 0.25rem; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: ascend-skeleton 1.2s ease-in-out infinite; }
.wr-grid-loading-bar { display: flex; align-items: center; gap: 0.4rem; font-size: 10px; color: #64748b; padding: 0.25rem 0.35rem; margin-bottom: 0.25rem; }
.wr-import-grid-host, .wr-unified-grid-host { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.wr-dt-sortable { cursor: pointer; user-select: none; }
.wr-dt-sortable:hover { color: #64748b; }
.wr-dt-th-wrap { display: inline-flex; align-items: center; gap: 0.2rem; max-width: 100%; }
.wr-dt-sort-label { cursor: pointer; user-select: none; }
.wr-dt-sort-label:hover { color: #64748b; }
.wr-dt-col-filter { border: none; background: transparent; color: #cbd5e1; padding: 0 0.15rem; line-height: 1; cursor: pointer; border-radius: 0.2rem; font-size: 8px; vertical-align: middle; }
.wr-dt-col-filter:hover { color: #64748b; background: #f1f5f9; }
.wr-dt-col-filter.wr-dt-col-filter-on { color: #0d9488; }
.wr-dt-col-filter-inp { display: block; width: 100%; margin-top: 0.2rem; font-size: 9px; border: 1px solid #e2e8f0; border-radius: 0.25rem; padding: 0.15rem 0.3rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: #334155; }
.wr-import-grid-host.wr-import-fullscreen,
.wr-unified-grid-host.wr-import-fullscreen { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 9000; background: var(--ascend-card-bg, #fff); border: 0; border-radius: 0; padding: 0.65rem; box-shadow: none; display: flex; flex-direction: column; }
body.wr-import-fs-active { overflow: hidden; }
body.wr-import-fs-active #tab-sidebar,
body.wr-import-fs-active #app-nav,
body.wr-import-fs-active #ascend-loading-bar,
body.wr-import-fs-active #wr-reporting-heading,
body.wr-import-fs-active #wr-reporting-tab-bars,
body.wr-defects-fs-active #tab-sidebar,
body.wr-defects-fs-active #app-nav,
body.wr-defects-fs-active #ascend-loading-bar,
body.wr-defects-fs-active #wr-reporting-heading,
body.wr-defects-fs-active #wr-reporting-tab-bars,
body.wrr-report-fs #tab-sidebar,
body.wrr-report-fs #app-nav,
body.wrr-report-fs #ascend-loading-bar,
body.wrr-report-fs #write-report-react .wrr-banner,
body.wrr-report-fs #write-report .wrr-banner { display: none !important; }
body.wr-import-fs-active,
body.wr-defects-fs-active,
body.wrr-report-fs { overflow: hidden; }
body.wr-import-fs-active #dashboard,
body.wr-defects-fs-active #dashboard,
body.wrr-report-fs #dashboard {
  padding: 0 !important;
  gap: 0 !important;
  max-width: none !important;
  min-height: 100vh !important;
  height: 100vh !important;
}
body.wr-import-fs-active #tool-main,
body.wr-defects-fs-active #tool-main,
body.wrr-report-fs #tool-main {
  height: 100%;
  min-height: 0;
}
body.wrr-report-fs #write-report-react,
body.wrr-report-fs #write-report { min-height: 100%; }
.wr-import-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 10px; color: #64748b; }
.wr-import-toolbar kbd { font-size: 9px; padding: 0.1rem 0.3rem; border: 1px solid #e2e8f0; border-radius: 0.25rem; background: #f8fafc; font-family: ui-monospace, monospace; }
.wr-dt-wrap { overflow: auto; max-height: min(55vh, 520px); }
.wr-import-fullscreen .wr-dt-wrap { flex: 1; max-height: none; }
.wr-dt-table { width: 100%; border-collapse: collapse; font-size: 11px; min-width: 960px; }
.wr-dt-th { text-align: left; padding: 0.35rem 0.5rem; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; border-bottom: 1px solid #e2e8f0; white-space: nowrap; background: #f8fafc; position: sticky; top: 0; z-index: 2; }
.wr-dt-td { padding: 0.35rem 0.5rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; max-width: 14rem; word-break: break-word; }
.wr-dt-sticky { position: sticky; left: 0; background: var(--ascend-card-bg, #fff); z-index: 1; box-shadow: 1px 0 0 #f1f5f9; }
.wr-dt-th.wr-dt-sticky { z-index: 3; background: #f8fafc; }
.wr-dt-cell-empty { background: rgba(254, 243, 199, 0.15); }
.wr-dt-empty { color: #cbd5e1; }
.wr-dt-empty-row { padding: 1.5rem; text-align: center; color: #94a3b8; font-size: 11px; }
.wr-dt-loading-bar { display: flex; align-items: center; gap: 0.4rem; font-size: 10px; color: #64748b; padding: 0.25rem 0.35rem; margin-bottom: 0.25rem; }
.wr-dt-loading-pulse { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #0d9488; animation: wr-dt-pulse 1s ease-in-out infinite; }
.wr-dt-skeleton-row .wr-dt-skel { display: block; height: 0.75rem; border-radius: 0.25rem; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: ascend-skeleton 1.2s ease-in-out infinite; }
@keyframes wr-dt-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes ascend-skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.fw-lab-toolbar { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.fw-lab-col-row { display: flex; align-items: center; justify-content: space-between; gap: 0.25rem; }
.fw-lab-col-move button { font-size: 10px; padding: 0 0.25rem; border: none; background: transparent; color: #64748b; cursor: pointer; }
.fw-setup-slot { min-width: 0; }
.fw-setup-show { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.35rem 0; background: none; border: 0; font-size: 0.8125rem; color: #4338ca; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fw-setup-show[hidden], .fw-setup-card[hidden] { display: none !important; }
.fw-setup-card { border: 1px solid #c7d2fe; background: #eef2ff; color: #1e1b4b; border-radius: 0.75rem; padding: 0.85rem 0.9rem 0.75rem; }
.fw-setup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.fw-setup-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.fw-setup-x { flex-shrink: 0; min-width: 2.75rem; min-height: 2.75rem; margin: -0.35rem -0.35rem 0 0; border: 0; background: transparent; color: #4338ca; font-size: 1.25rem; line-height: 1; cursor: pointer; border-radius: 0.5rem; }
.fw-setup-card ol { margin: 0.55rem 0 0; padding-left: 1.25rem; list-style: decimal; font-size: 0.875rem; line-height: 1.45; }
.fw-setup-card li + li { margin-top: 0.5rem; }
.fw-setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; margin-top: 0.75rem; }
.fw-setup-dont { display: flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; margin: 0; font-size: 0.875rem; cursor: pointer; }
.fw-setup-dont input { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.fw-setup-dismiss { min-height: 2.75rem; padding: 0.45rem 1rem; border-radius: 0.6rem; border: 1px solid #c7d2fe; background: #fff; color: #312e81; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.fw-bridge-panel { overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .fw-setup-card { padding: 0.8rem 0.75rem 0.7rem; }
  .fw-setup-card ol { font-size: 0.9375rem; }
  .fw-setup-actions { flex-direction: column; align-items: stretch; }
  .fw-setup-dismiss { width: 100%; }
  #fw-bridge-modal { padding: 0.5rem; align-items: flex-end; }
  .fw-bridge-panel { max-height: 94vh; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding: 0.85rem; }
}
[data-theme="dark"] .fw-setup-card { background: #1e1b4b; border-color: #4338ca; color: #e0e7ff; }
[data-theme="dark"] .fw-setup-x { color: #c7d2fe; }
[data-theme="dark"] .fw-setup-dismiss { background: #312e81; color: #e0e7ff; border-color: #4338ca; }
[data-theme="dark"] .fw-setup-show { color: #a5b4fc; }
.ascend-data-status { font-size: 10px; color: #0d9488; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.3rem; }
.ascend-data-status.hidden { display: none; }
.ascend-data-status i { font-size: 9px; }
[data-theme="dark"] #ui-sketch-root .ui-sketch-toolbar { background: #1e293b; border-color: #d97706; color: #e2e8f0; }
[data-theme="dark"] #ui-sketch-root .ui-sketch-btn { background: #334155; color: #e2e8f0; border-color: #475569; }

/* Desktop job detail — phone-app look, scoped so other modules stay as they are. */
#job-detail {
  --jd-purple: #6d28d9;
  --jd-purple-deep: #4c1d95;
  --jd-green: #047857;
  --jd-line: #e5e7eb;
  --jd-card: var(--ascend-card-bg, #fff);
  --jd-text: var(--ascend-text, #111827);
  --jd-muted: #6b7280;
  --jd-radius: 12px;
  color: var(--jd-text);
}
#job-detail .job-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
  margin-bottom: 14px;
}
#job-detail .job-detail-identity {
  flex: 1 1 auto;
  /* Stay at least half the row so the title is never squeezed to one word per line.
     When the actions cannot fit beside that, they wrap onto the next row and this grows to full width. */
  min-width: min(100%, 50%);
  max-width: 100%;
}
#job-detail #job-detail-title {
  margin: 0;
  min-width: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
  overflow-wrap: normal;
  word-break: normal;
}
#job-detail .job-detail-idline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-height: 1.4rem;
}
#job-detail .job-detail-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--jd-purple);
}
#job-detail .job-detail-status-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #5b21b6;
  background: #f5f3ff;
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  padding: 4px 8px;
}
#job-detail .job-detail-num,
#job-detail .job-detail-status-chip { white-space: nowrap; }
#job-detail .job-detail-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px 14px;
  margin-top: 6px;
}
#job-detail .job-detail-links a {
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
#job-detail .job-detail-links a:hover { text-decoration: underline; }
#job-detail .job-detail-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  align-content: flex-start;
  gap: 6px;
  margin-left: auto;
  min-width: min(100%, max-content);
  max-width: 100%;
}
#job-detail .job-detail-actions > button,
#job-detail #job-admin-tools > summary,
#job-detail #job-detail-priority-wrap:not(.hidden) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--jd-line);
  border-radius: 8px;
  background: var(--jd-card);
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}
#job-detail #job-site-capture-btn {
  background: var(--jd-purple-deep);
  border-color: var(--jd-purple-deep);
  color: #fff;
}
#job-detail #job-site-capture-btn:hover { background: #3b0764; }
#job-detail .job-detail-actions > button:hover,
#job-detail #job-admin-tools > summary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
#job-detail #job-site-capture-btn:hover { color: #fff; }
#job-detail #job-delete-btn:not(.hidden) {
  background: transparent;
  border-color: transparent;
  color: #b91c1c;
}
#job-detail #job-delete-btn:not(.hidden):hover {
  background: #fef2f2;
  border-color: #fecaca;
}
#job-detail #job-refresh-status {
  font-size: 11px;
  color: var(--jd-muted);
  max-width: 14rem;
}
#job-detail #job-linked-reports:not(.hidden) {
  font-size: 11px;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 3px 8px;
}
#job-detail #job-admin-tools { position: relative; }
#job-detail #job-admin-tools > summary { list-style: none; }
#job-detail #job-admin-tools > summary::-webkit-details-marker { display: none; }
#job-detail .job-admin-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  min-width: 13rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  background: var(--jd-card);
  border: 1px solid var(--jd-line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
#job-detail .job-admin-menu button {
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--jd-purple);
  cursor: pointer;
}
#job-detail .job-admin-menu button:hover { background: #f5f3ff; }
#job-detail #job-detail-priority-wrap label { color: var(--jd-muted); font-size: 11px; font-weight: 700; }
#job-detail #job-detail-priority {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  padding: 0;
}
#job-detail #job-detail-meta {
  flex: 1 1 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: var(--jd-card);
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 10px 12px 12px;
}
#job-detail .job-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
#job-detail .job-meta-pair {
  min-width: 0;
  padding: 4px 8px 5px;
  border-left: 3px solid #c4b5fd;
  background: #f5f3ff;
  border-radius: 0 8px 8px 0;
}
#job-detail .job-meta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jd-muted);
  line-height: 1.2;
}
#job-detail .job-meta-value {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.35;
  color: #111827;
  word-break: break-word;
}
#job-detail .job-meta-value a { color: inherit; font-weight: 650; }
#job-detail .job-meta-synced { margin-top: 8px; font-size: 11px; color: #94a3b8; }
#job-detail .job-meta-empty { font-size: 12px; color: #94a3b8; }
#job-detail #job-line-items-section {
  margin: 0 0 14px;
  border: 0;
  background: transparent;
  border-radius: 0;
}
#job-detail #job-line-items-section > summary {
  padding: 0 2px 8px;
  cursor: pointer;
}
#job-detail #job-line-items-summary {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jd-purple);
}
#job-detail .job-line-groups-toggle {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #fff;
  color: var(--jd-purple);
  font-size: 12px;
  font-weight: 700;
}
#job-detail #job-line-items-list {
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#job-detail .job-line-block {
  border: 1px solid var(--jd-line);
  border-bottom: 1px solid var(--jd-line);
  border-radius: var(--jd-radius);
  background: var(--jd-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  max-width: 100%;
}
#job-detail .job-line-block.is-open { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 1px #ddd6fe; }
#job-detail .job-line-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
}
#job-detail .job-line-main {
  flex: 1 1 auto;
  min-width: min(100%, 8rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
#job-detail .job-line-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 750;
  color: var(--jd-purple);
}
#job-detail .job-line-desc {
  flex: 1 1 8rem;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: normal;
}
#job-detail .job-line-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: min(100%, max-content);
  max-width: 100%;
}
#job-detail .job-line-facts {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  white-space: nowrap;
  max-width: 100%;
}
#job-detail .job-line-fee {
  font-size: 13px;
  font-weight: 750;
  color: #111827;
}
#job-detail .job-line-dates { font-size: 12px; font-weight: 650; color: #4b5563; }
#job-detail .job-line-status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475569;
}
#job-detail .job-line-status-ok { color: var(--jd-green); background: #fff; border-color: #6ee7b7; }
#job-detail .job-line-status-wait { color: #b45309; background: #fffbeb; border-color: #fcd34d; }
#job-detail .job-line-need {
  font-size: 11px;
  font-weight: 700;
  color: var(--jd-green);
  background: #fff;
  border: 1px solid #6ee7b7;
  border-radius: 999px;
  padding: 2px 8px;
}
#job-detail .job-subs { margin: 0 0 0.35rem 1.4rem; }
#job-detail .job-task { display: flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0; font-size: 12px; }
#job-detail .job-task.is-sub { padding-left: 0.35rem; }
#job-detail .job-task.is-done .job-task-text { text-decoration: line-through; color: #94a3b8; }
#job-detail .job-task-text { flex: 1; min-width: 0; }
#job-detail .job-task-assign,
#job-detail .job-line-assign,
#job-detail .job-task-parent { font-size: 11px; max-width: 9rem; }
#job-detail .job-task-mail { border: 0; background: transparent; color: #0f766e; cursor: pointer; }
#job-detail .job-task-mail.is-off { color: #cbd5e1; }
#job-detail .job-line-subadd,
#job-detail .job-task-add-btn { font-size: 11px; color: #0f766e; background: transparent; border: 0; cursor: pointer; }
#job-detail .job-task-add { display: flex; gap: 0.35rem; align-items: center; margin-top: 0.4rem; }
#job-detail .job-task-input { flex: 1; min-width: 0; font-size: 12px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.25rem 0.45rem; }
#job-detail .job-line-owner { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; }
#job-detail .job-line-owner-l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--jd-muted);
}
#job-detail .job-line-owner-input {
  width: 7.2rem;
  min-height: 28px;
  height: 28px;
  font-size: 12px;
  border: 1px solid var(--jd-line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: #111827;
}
#job-detail .job-line-tag-select {
  min-height: 28px;
  font-size: 12px;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  padding: 0 6px;
  background: #fff;
  color: #5b21b6;
  max-width: 8rem;
}
#job-detail .job-line-actions { display: inline-flex; flex-wrap: nowrap; gap: 4px; flex: none; }
#job-detail .job-line-details-btn,
#job-detail .job-line-dataset-btn,
#job-detail .job-line-remove-btn {
  min-height: 28px;
  min-width: 0;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--jd-line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}
#job-detail .job-line-details-btn:hover,
#job-detail .job-line-dataset-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
#job-detail .job-line-remove-btn {
  background: transparent;
  border-color: transparent;
  color: #b91c1c;
}
#job-detail .job-line-remove-btn:hover { background: #fef2f2; border-color: #fecaca; }
#job-detail .job-line-report-badge,
#job-detail .job-line-comment-badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  background: #ccfbf1;
  color: #115e59;
}
#job-detail .job-line-eq-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
#job-detail .job-line-detail {
  padding: 0 12px 10px;
  background: transparent;
}
#job-detail .job-line-detail-strip {
  border-top: 1px solid #eef2f7;
  padding-top: 8px;
}
#job-detail .job-line-extra {
  display: grid;
  grid-template-columns: minmax(8rem, 1.5fr) repeat(4, minmax(4.75rem, 1fr));
  gap: 4px 16px;
  align-items: start;
}
#job-detail .job-line-extra-l {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jd-muted);
}
#job-detail .job-line-extra-val { display: block; font-size: 12.5px; line-height: 1.35; color: #111827; word-break: break-word; }
#job-detail .job-line-extra-ph { display: block; font-size: 12.5px; color: #9ca3af; }
#job-detail .job-line-note { margin: 2px 0 0; color: #5b21b6; font-size: 12px; }
#job-detail ul.job-line-note { margin: 2px 0 0; }
#job-detail .job-line-eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 8px;
}
#job-detail .job-line-eq-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jd-green);
}
#job-detail .job-line-eq-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
}
#job-detail .job-line-eq-item { display: inline-flex; align-items: center; gap: 3px; }
#job-detail .job-line-eq-preset,
#job-detail .job-line-eq-add,
#job-detail .job-line-eq-qty-btn,
#job-detail .job-line-eq-text,
#job-detail .job-line-comment-add,
#job-detail .job-line-comment-text,
#job-detail .job-line-service,
#job-detail .job-line-service-date {
  min-height: 26px;
  height: 26px;
  font-size: 12px;
}
#job-detail .job-line-eq-preset {
  min-width: 0;
  padding: 0 8px;
  border-radius: 999px;
}
#job-detail .job-line-eq-qty { gap: 2px; }
#job-detail .job-line-eq-qty-btn { min-width: 22px; width: 22px; padding: 0; border-radius: 6px; }
#job-detail .job-line-eq-form { display: inline-flex; align-items: center; gap: 4px; margin: 0; width: auto; }
#job-detail .job-line-eq-text { width: 9rem; padding: 0 8px; border-radius: 8px; }
#job-detail .job-line-eq-add { min-width: 0; padding: 0 10px; border-radius: 8px; }
#job-detail .job-line-eq-saved { font-size: 12px; color: var(--jd-muted); }
#job-detail .job-line-detail-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}
#job-detail .job-line-tool {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--jd-muted);
}
#job-detail .job-line-service,
#job-detail .job-line-service-date {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  border: 1px solid var(--jd-line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: #111827;
  width: auto;
}
#job-detail .job-line-date-hint {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
  color: #0f766e;
  max-width: 16rem;
}
#job-detail .job-line-comment-form { display: flex; align-items: center; gap: 6px; flex: 1 1 12rem; margin: 0; }
#job-detail .job-line-comment-text {
  flex: 1;
  min-width: 8rem;
  padding: 4px 8px;
  border: 1px solid var(--jd-line);
  border-radius: 8px;
  resize: none;
}
#job-detail .job-line-comment-add { min-width: 0; margin: 0; padding: 0 10px; border-radius: 8px; }
#job-detail .job-line-comment { font-size: 12px; padding: 4px 0; border-top: 1px solid #eef2f7; color: #111827; }
#job-detail .job-line-comment-meta { font-size: 11px; color: var(--jd-muted); }
#job-detail #job-client-portal {
  margin: 0 0 14px;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius);
  background: var(--jd-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#job-detail #job-client-portal > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
  color: var(--jd-green);
  list-style: none;
}
#job-detail #job-client-portal > summary::-webkit-details-marker { display: none; }
#job-detail #job-client-portal-body { padding: 0 12px 12px; }
#job-detail .job-subtasks {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  border-radius: var(--jd-radius);
  padding: 10px 12px 12px;
}
#job-detail .job-subtasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
#job-detail .job-subtasks-head h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jd-green);
}
#job-detail .job-subtasks-home {
  border: 0;
  background: transparent;
  color: var(--jd-green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
#job-detail .job-subtasks-home:hover { text-decoration: underline; }
#job-detail .job-subtasks-empty { margin: 0 0 8px; font-size: 12px; color: var(--jd-muted); }
#job-detail .job-subtask-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  background: #fff;
  border: 1px solid #6ee7b7;
  border-left: 4px solid var(--jd-green);
  border-radius: 0 10px 10px 0;
  padding: 6px 8px;
  margin-bottom: 6px;
}
#job-detail .job-subtask-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--jd-green); flex: none; }
#job-detail .job-subtask-title { flex: 1 1 8rem; min-width: 0; font-size: 13px; color: #111827; }
#job-detail .job-subtask-row.is-done .job-subtask-title { text-decoration: line-through; opacity: 0.6; }
#job-detail .job-subtask-due { font-size: 11px; font-weight: 700; color: #b45309; }
#job-detail .job-subtask-pri { font-size: 11px; font-weight: 750; }
#job-detail .job-subtask-status {
  min-height: 26px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #fff;
  color: var(--jd-green);
  font-size: 11px;
  font-weight: 750;
  padding: 0 8px;
}
#job-detail .job-subtask-action {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
  padding: 0 2px;
  cursor: pointer;
}
#job-detail .job-subtask-action:hover { color: var(--jd-green); }
#job-detail .job-subtask-x {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
#job-detail .job-subtask-x:hover { color: #b91c1c; }
#job-detail .job-subtasks-add { display: flex; gap: 8px; margin-top: 4px; }
#job-detail #job-task-new {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
  color: #111827;
}
#job-detail .job-subtasks-add button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--jd-green);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
@media (min-width: 1500px) {
  #job-detail .job-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  #job-detail .job-line-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #job-detail .job-line-extra-item:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  #job-detail .job-meta-grid,
  #job-detail .job-line-extra { grid-template-columns: 1fr 1fr; }
}
[data-theme="dark"] #job-detail {
  --jd-purple: #c4b5fd;
  --jd-purple-deep: #a78bfa;
  --jd-green: #6ee7b7;
  --jd-line: #334155;
  --jd-muted: #cbd5e1;
}
[data-theme="dark"] #job-detail #job-detail-title,
[data-theme="dark"] #job-detail .job-line-desc,
[data-theme="dark"] #job-detail .job-line-fee,
[data-theme="dark"] #job-detail .job-meta-value,
[data-theme="dark"] #job-detail .job-line-extra-val,
[data-theme="dark"] #job-detail .job-subtask-title,
[data-theme="dark"] #job-detail .job-line-comment { color: #e2e8f0; }
[data-theme="dark"] #job-detail .job-meta-pair { background: rgba(109, 40, 217, 0.18); border-left-color: #a78bfa; }
[data-theme="dark"] #job-detail .job-detail-status-chip { background: rgba(109, 40, 217, 0.25); color: #ddd6fe; border-color: #7c3aed; }
[data-theme="dark"] #job-detail .job-detail-actions > button,
[data-theme="dark"] #job-detail #job-admin-tools > summary,
[data-theme="dark"] #job-detail #job-detail-priority-wrap:not(.hidden),
[data-theme="dark"] #job-detail .job-line-details-btn,
[data-theme="dark"] #job-detail .job-line-dataset-btn,
[data-theme="dark"] #job-detail .job-line-owner-input,
[data-theme="dark"] #job-detail .job-line-service,
[data-theme="dark"] #job-detail .job-line-service-date,
[data-theme="dark"] #job-detail .job-line-comment-text,
[data-theme="dark"] #job-detail .job-line-eq-text,
[data-theme="dark"] #job-detail .job-subtask-row,
[data-theme="dark"] #job-detail #job-task-new,
[data-theme="dark"] #job-detail .job-admin-menu { background: #1e293b; color: #e2e8f0; border-color: #334155; }
[data-theme="dark"] #job-detail .job-detail-actions > button:hover,
[data-theme="dark"] #job-detail #job-admin-tools > summary:hover { background: #334155; }
[data-theme="dark"] #job-detail #job-site-capture-btn { background: #6d28d9; border-color: #6d28d9; color: #fff; }
[data-theme="dark"] #job-detail .job-subtasks { background: rgba(4, 120, 87, 0.15); border-color: #065f46; }
[data-theme="dark"] #job-detail .job-line-status-ok,
[data-theme="dark"] #job-detail .job-line-eq-preset { background: #064e3b; color: #a7f3d0; border-color: #047857; }
[data-theme="dark"] #job-detail .job-line-eq-preset.on { background: #047857; color: #fff; }
[data-theme="dark"] #job-detail .job-line-detail-strip { border-top-color: #334155; }
[data-theme="dark"] #job-detail .job-line-dates,
[data-theme="dark"] #job-detail .job-meta-synced,
[data-theme="dark"] #job-detail .job-meta-empty,
[data-theme="dark"] #job-detail .job-task.is-done .job-task-text,
[data-theme="dark"] #job-detail .job-subtask-x { color: var(--ascend-text-body); }
[data-theme="dark"] #job-detail .job-task-mail,
[data-theme="dark"] #job-detail .job-line-subadd,
[data-theme="dark"] #job-detail .job-task-add-btn { color: var(--ascend-accent-ink); }
[data-theme="dark"] #job-detail .job-line-remove-btn,
[data-theme="dark"] #job-detail .job-subtask-x:hover { color: var(--ascend-danger); }
[data-theme="dark"] #job-detail .job-line-status { background: var(--ascend-surface); color: var(--ascend-text); border-color: var(--ascend-border); }
[data-theme="dark"] #job-detail .job-line-status-wait { background: #422006; color: #fde68a; border-color: #d97706; }
[data-theme="dark"] #job-detail .job-line-need { background: #064e3b; color: #a7f3d0; border-color: #047857; }
[data-theme="dark"] #job-detail .job-line-groups-toggle,
[data-theme="dark"] #job-detail .job-line-tag-select { background: var(--ascend-card-bg); color: var(--jd-purple); border-color: #6d28d9; }
