.ld-dashboard { --ld-border:var(--border-color,rgba(150,158,164,.2)); --ld-muted:var(--text-muted,#a7afb8); --ld-accent:#8ccfbc; --ld-panel:var(--surface-1,#181c1f); color:var(--text-main,#eef0f2); max-width:1380px; margin:0 auto; padding:0 0 48px; letter-spacing:0; }
#work-view:has(#w-leadership.active) {padding:0!important;}
#w-leadership {padding:0!important;}
.ld-dashboard * { box-sizing:border-box; letter-spacing:0; }
/* The legacy stylesheet styles every section, header and button globally. */
#leadership-dashboard .ld-section {border:0!important;border-bottom:1px solid var(--ld-border)!important;border-radius:0!important;padding:0 0 26px!important;box-shadow:none!important;background:none!important;}
#leadership-dashboard .ld-metrics {border:0!important;border-block:1px solid var(--ld-border)!important;border-radius:0!important;padding:0!important;box-shadow:none!important;background:none!important;}
#leadership-dashboard button {border-radius:6px!important;box-shadow:none!important;}
#leadership-dashboard .ld-metric,#leadership-dashboard .ld-attention-row,#leadership-dashboard .ld-task,#leadership-dashboard .ld-inbox-row {border-radius:0!important;}
#leadership-dashboard .ld-header {position:static;width:auto;height:auto;min-height:0;flex:none;padding:0 0 24px;margin:0;border:0;background:none;box-shadow:none;}
#leadership-dashboard .ld-search input {border:0!important;background:none!important;padding:0!important;border-radius:0!important;}
#leadership-dashboard select {border-radius:5px!important;}
#leadership-dashboard :is(button,input,select):focus-visible {outline:2px solid var(--ld-accent)!important;outline-offset:3px;}
#leadership-dashboard .sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.ld-dashboard button,.ld-dashboard select,.ld-dashboard input { font:inherit; }
.ld-dashboard button { cursor:pointer; }
.ld-dashboard button:disabled { cursor:default; opacity:.5; }
.ld-dashboard button:focus-visible,.ld-dashboard input:focus-visible,.ld-dashboard select:focus-visible { outline:2px solid var(--ld-accent); outline-offset:3px; }
.ld-dashboard svg { width:18px; height:18px; flex:none; }
.ld-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; padding-bottom:24px; }
.ld-company { display:flex; gap:8px; align-items:center; color:var(--ld-muted); font-size:13px; margin-bottom:10px; }
.ld-header h2 { font-size:26px; line-height:1.3; font-weight:650; margin:0 0 8px; }
.ld-header p { font-size:13px; margin:0; }
.ld-header-actions,.ld-list-controls,.ld-row-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.ld-button,.ld-icon { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--ld-border); background:transparent; color:inherit; border-radius:6px; min-height:38px; padding:8px 12px; font-size:13px; }
.ld-icon { width:36px; height:36px; min-height:36px; padding:8px; flex:none; }
.ld-header-actions .ld-button[data-ld=briefing] { background:var(--ld-accent); border-color:var(--ld-accent); color:#112820; }
.ld-button:hover,.ld-icon:hover { background:rgba(128,143,152,.12); }
.ld-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; font-size:12px; padding:12px 0; border-top:1px solid var(--ld-border); }
.ld-muted,.ld-small { color:var(--ld-muted); }
.ld-small {font-size:12px;}
.ld-period { display:flex; align-items:center; gap:10px; color:var(--ld-muted); }
.ld-period select { border:1px solid var(--ld-border); border-radius:5px; background:var(--ld-panel); color:inherit; padding:7px 24px 7px 10px; font-size:12px; }
.ld-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-block:1px solid var(--ld-border); margin-bottom:30px; }
.ld-metric { display:flex; flex-direction:column; align-items:flex-start; gap:10px; min-width:0; padding:22px; border:0; border-right:1px solid var(--ld-border); border-radius:0; background:transparent; color:inherit; text-align:left; }
.ld-metric:first-child {padding-left:0;}
.ld-metric:last-child {border-right:0;}
.ld-metric:hover {background:rgba(128,143,152,.06);}
.ld-metric-label {display:flex; gap:8px; align-items:center; font-size:13px; color:var(--ld-muted);}
.ld-metric strong {font-size:32px; font-weight:650; font-variant-numeric:tabular-nums; line-height:1.2;}
.ld-metric>.ld-muted {font-size:12px;}
.ld-metric:nth-child(2) strong {color:var(--ld-accent);}
.ld-layout {display:grid; grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr); gap:36px;}
.ld-main,.ld-side {min-width:0;}
.ld-side {border-left:1px solid var(--ld-border); padding-left:30px;}
.ld-section {padding:0 0 26px; margin-bottom:28px; border-bottom:1px solid var(--ld-border); min-width:0; scroll-margin-top:90px;}
.ld-section-heading {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; min-height:36px;}
.ld-section-heading h3 {margin:0; font-size:17px; font-weight:600;}
.ld-count {font-size:12px; color:var(--ld-muted); font-variant-numeric:tabular-nums;}
.ld-attention-row {display:flex; align-items:center; gap:12px; width:100%; border:0; border-bottom:1px solid var(--ld-border); border-radius:0; padding:14px 0; background:none; color:inherit; text-align:left; font-size:13px;}
.ld-attention-row:last-child {border-bottom:0;}
.ld-attention-row>span {flex:1;}
.ld-attention-row>strong {font-variant-numeric:tabular-nums; min-width:32px; text-align:right;}
.ld-attention-row>svg:last-child {width:14px; color:var(--ld-muted);}
.ld-attention-row:hover {background:rgba(128,143,152,.06);}
.ld-attention-row.danger>svg:first-child,.ld-attention-row.danger>strong,.ld-late {color:#ef8c8c;}
.ld-attention-row.warning>svg:first-child,.ld-attention-row.warning>strong,.ld-priority {color:#dfbd6e;}
.ld-funnel {display:flex; flex-direction:column; gap:15px;}
.ld-stage>div {display:flex; justify-content:space-between; gap:12px; margin-bottom:6px; font-size:13px;}
.ld-stage strong {font-weight:500; font-variant-numeric:tabular-nums;}
.ld-stage meter {display:block; width:100%; height:6px; border:0; background:rgba(128,143,152,.12); border-radius:2px; appearance:none;}
.ld-stage meter::-webkit-meter-bar {background:rgba(128,143,152,.12);border:0;border-radius:2px;height:6px;}
.ld-stage meter::-webkit-meter-optimum-value {background:#87b4c6;border-radius:2px;}
.ld-stage meter::-moz-meter-bar {background:#87b4c6;}
.ld-stage:last-child meter::-webkit-meter-optimum-value {background:var(--ld-accent);}
.ld-section-footer {display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-top:18px; color:var(--ld-muted); font-size:11px;}
.ld-link {display:inline-flex; align-items:center; gap:6px; color:var(--ld-accent); background:none; border:0; padding:3px 0; font-size:12px; text-align:left; border-radius:0;}
.ld-link svg {width:14px;height:14px;}
.ld-link:hover {text-decoration:underline;}
.ld-inbox-row {display:flex; align-items:flex-start; width:100%; text-align:left; gap:12px; padding:14px 0; background:none; border:0; border-bottom:1px solid var(--ld-border); color:inherit; border-radius:0;}
.ld-inbox-row:last-child {border:0;}
.ld-inbox-icon {display:grid;place-items:center;width:32px;height:32px;background:rgba(128,143,152,.12);border-radius:6px;flex:none;}
.ld-inbox-row>span:nth-child(2) {display:flex;flex-direction:column;gap:5px;min-width:0;flex:1;}
.ld-inbox-row small {color:var(--ld-muted);font-size:11px;}
.ld-inbox-row strong {font-size:13px;font-weight:500;}
.ld-excerpt {overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--ld-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere;}
.ld-badge {font-size:11px;background:var(--ld-accent);color:#112820;padding:3px 6px;border-radius:4px;flex:none;}
.ld-task {width:100%;display:flex;align-items:flex-start;gap:10px;padding:12px 0;background:none;border:0;border-bottom:1px solid var(--ld-border);border-radius:0;color:inherit;text-align:left;}
.ld-task>span:first-of-type {min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;}
.ld-task strong {font-size:13px;font-weight:500;line-height:1.45;overflow-wrap:anywhere;}
.ld-task small {font-size:11px;color:var(--ld-muted);}
.ld-task>svg {width:15px;color:var(--ld-muted);margin-top:2px;}
.ld-priority svg {width:13px;}
.ld-table-wrap {overflow-x:auto;}
.ld-dashboard table {width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed;}
.ld-dashboard th {font-size:11px;font-weight:500;color:var(--ld-muted);text-align:left;padding:10px 12px;background:rgba(128,143,152,.06);}
.ld-dashboard td {padding:14px 12px;border-bottom:1px solid var(--ld-border);line-height:1.5;overflow-wrap:anywhere;}
.ld-dashboard tr:last-child td {border-bottom:0;}
.ld-dashboard td:first-child,.ld-dashboard th:first-child {padding-left:0;}
.ld-dashboard td:last-child,.ld-dashboard th:last-child {padding-right:0;}
.ld-deals th:first-child {width:38%;}
.ld-deals th:last-child {width:44px;}
.ld-deal-name {display:flex;flex-direction:column;gap:4px;color:inherit;text-align:left;background:none;border:0;padding:0;max-width:100%;}
.ld-deal-name small {color:var(--ld-muted);font-size:10px;}
.ld-deal-name strong {font-size:13px;font-weight:500;line-height:1.45;overflow-wrap:anywhere;}
.ld-deal-name:hover strong {color:var(--ld-accent);}
.ld-dept-name {display:flex;align-items:center;gap:10px;}
.ld-dept-name svg {color:var(--ld-muted);}
.ld-row-actions {justify-content:flex-end;}
.ld-search {display:flex;align-items:center;gap:8px;min-height:36px;border:1px solid var(--ld-border);padding:0 10px;border-radius:6px;max-width:100%;}
.ld-search svg {width:15px;color:var(--ld-muted);}
.ld-search input {background:none;border:0;color:inherit;width:170px;max-width:100%;min-width:0;height:34px;font-size:12px;}
.ld-empty {color:var(--ld-muted);font-size:13px;padding:28px 0;margin:0;}
.ld-notice {min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;font-size:14px;}
.ld-pagination {display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:16px;font-size:12px;color:var(--ld-muted);}
.ld-refresh.is-loading svg {animation:ld-spin 1s linear infinite;}
@keyframes ld-spin {to {transform:rotate(360deg);}}
html[data-theme=light] .ld-dashboard {--ld-accent:#267b63;--ld-panel:#fff;}
@media(max-width:1100px) {.ld-layout {grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr);gap:24px;} .ld-side {padding-left:24px;} .ld-metric {padding:18px 14px;} .ld-metric-label {font-size:12px;}}
@media(max-width:800px) {.ld-layout {grid-template-columns:1fr;gap:0;} .ld-side {border-left:0;padding-left:0;} .ld-metrics {grid-template-columns:repeat(2,minmax(0,1fr));} .ld-metric:nth-child(2) {border-right:0;} .ld-metric:nth-child(-n+2) {border-bottom:1px solid var(--ld-border);} .ld-metric:nth-child(3) {padding-left:0;} .ld-header h2 {font-size:22px;} .ld-header-actions {gap:8px;} .ld-dashboard table {min-width:580px;} .ld-deals table {min-width:700px;}}
@media(prefers-reduced-motion:reduce) {.ld-refresh.is-loading svg {animation:none;}}
@media(max-width:600px) {.ld-header-actions .ld-button {font-size:12px;min-height:44px;} .ld-icon {min-width:44px;min-height:44px;} .ld-header h2 {font-size:21px;} .ld-pagination {gap:6px;}}
