/* Home only: preserve the document editor and inquiry detail typography. */
body.home-dashboard-enabled #view-home>*:not(#homeDashboard){display:none!important}
body.home-dashboard-enabled[data-huidi-view="home"] :is(.topbar,.workspace-r3-flowline,.workflow){display:none!important}
.hd-root{--hd-ink:#152442;--hd-muted:#596b83;color:var(--hd-ink);font-size:16px;line-height:1.6;padding-bottom:28px}
.hd-root *{box-sizing:border-box}
.hd-root button{font:inherit;cursor:pointer;color:inherit}
.hd-root button:focus-visible,.hd-root select:focus-visible{outline:3px solid #2364ef;outline-offset:3px}
.hd-root button:disabled{cursor:wait;opacity:.6}
.hd-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:22px 0 24px}
.hd-header h1{font-size:28px;letter-spacing:-.5px;line-height:1.3;margin:0 0 8px;font-weight:800}
.hd-header p{margin:0;color:var(--hd-muted);font-size:16px}
.hd-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.hd-header time{font-size:14px;color:var(--hd-muted)}
.hd-header select{font:inherit;font-size:15px;border:1px solid #d9e2ef;border-radius:9px;padding:9px 12px;background:white;max-width:220px;min-height:44px}
.hd-root .hd-refresh{background:white;border:1px solid #d9e2ef;border-radius:9px;width:44px;height:44px;font-size:24px;color:#4374cf}
.hd-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hd-root .hd-metric{min-width:0;background:#fff;border:1px solid #e4eaf3;border-radius:14px;text-align:left;padding:17px 18px 15px;box-shadow:0 5px 20px #18396a04;transition:transform .15s,border-color .15s}
.hd-root .hd-metric:hover{transform:translateY(-2px);border-color:#98b8fa}
.hd-metric-top{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:650;line-height:1.4;min-height:40px}
.hd-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:11px;color:var(--hd-tone);background:var(--hd-tint);flex:0 0 auto}
.hd-icon svg{width:24px;height:24px}
.hd-tone-blue{--hd-tone:#1673ed;--hd-tint:#e9f2ff}
.hd-tone-orange{--hd-tone:#e57324;--hd-tint:#fff0e7}
.hd-tone-purple{--hd-tone:#7852e6;--hd-tint:#f0ecff}
.hd-tone-green{--hd-tone:#149b6b;--hd-tint:#e7f8f0}
.hd-tone-pink{--hd-tone:#dd4e91;--hd-tint:#fff0f7}
.hd-tone-gold{--hd-tone:#ce8d15;--hd-tint:#fff5dc}
.hd-metric strong{display:block;font-size:30px;line-height:1.25;letter-spacing:-.4px;margin:10px 0 7px;font-variant-numeric:tabular-nums}
.hd-metric strong.hd-money{font-size:24px;overflow-wrap:anywhere}
body.huidi-local-workspace-rc5 .main .hd-root small{font-size:14px;line-height:1.6;color:var(--hd-muted)}
.hd-metric small{display:block}
.hd-money-note{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:12px 2px 22px;color:var(--hd-muted);font-size:14px}
.hd-root .hd-link{font-size:14px;color:#3965b5;padding:2px 0;border:0;background:none;white-space:nowrap;font-weight:600;min-height:36px}
.hd-content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);gap:18px;align-items:start}
.hd-content-main,.hd-content-side{display:flex;flex-direction:column;gap:18px;min-width:0}
.hd-content-grid .hd-panel{width:100%}
.hd-panel{background:#fff;border:1px solid #e4eaf3;border-radius:16px;min-width:0;padding:20px;box-shadow:0 6px 24px #18396a03}
.hd-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.hd-panel-head h2{display:flex;align-items:center;gap:10px;font-size:20px;line-height:1.4;margin:0;font-weight:750}
.hd-count{font-size:15px;font-weight:700;background:#eaf1ff;color:#2671e8;border-radius:6px;padding:2px 8px}
.hd-head-actions{display:flex;gap:18px;align-items:center}
.hd-subtle{font-size:14px;color:var(--hd-muted)}
.hd-table-wrap{overflow:auto;max-width:100%}
body.huidi-local-workspace-rc5 .main .hd-root table{width:100%;min-width:0;border-collapse:collapse;table-layout:auto;margin:0}
body.huidi-local-workspace-rc5 .main .hd-root table th{font-size:14px;color:var(--hd-muted);background:#f5f7fb;padding:10px 10px;white-space:nowrap;text-align:left;font-weight:600}
body.huidi-local-workspace-rc5 .main .hd-root table td{font-size:15px;line-height:1.55;padding:13px 10px;border-bottom:1px solid #edf1f7;vertical-align:middle;max-width:330px;overflow-wrap:anywhere}
.hd-root table tr:last-child td{border-bottom:0}
.hd-root td b{display:block;font-size:15px;line-height:1.55;font-weight:650}
.hd-root td p{font-size:14px;line-height:1.6;color:var(--hd-muted);margin:5px 0 0}
.hd-root td small{display:block;margin-top:4px}
.hd-owner{display:flex;align-items:center;gap:7px;font-size:14px;white-space:nowrap}
.hd-owner i{display:grid;place-items:center;font-size:11px;font-weight:700;font-style:normal;color:#2866ce;background:#eaf1ff;width:26px;height:26px;border-radius:50%;flex:0 0 auto}
.hd-task-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hd-root .hd-small-button{border:1px solid #d7e5ff;background:#edf4ff;color:#2866d4;border-radius:7px;font-size:14px;font-weight:600;min-height:36px;padding:5px 10px;white-space:nowrap}
.hd-root .hd-complete{border:0;background:none;font-size:14px;color:#237858;min-height:36px;padding:4px 2px;white-space:nowrap}
.hd-root .hd-overdue{color:#c14436!important;font-weight:600}
.hd-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hd-root .hd-quick{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px solid #e5eaf4;border-radius:12px;background:linear-gradient(180deg,#fff,#f7f9fc);min-height:120px;padding:16px 8px}
.hd-quick b{font-size:16px;line-height:1.4}
.hd-quick .hd-icon{width:44px;height:44px}
.hd-root .hd-quick:hover{border-color:#98b8fa;background:#f3f7ff}
.hd-stage-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.hd-root .hd-stage{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:left;border:0;background:#f4f7fc;border-radius:9px;padding:0;min-width:0;overflow:hidden}
.hd-stage-label{font-size:14px;font-weight:650;color:white;background:var(--hd-stage);padding:12px 10px;line-height:1.4;min-height:64px;display:flex;align-items:center;gap:5px;justify-content:space-between}
.hd-stage-label span{font-size:24px;opacity:.8}
.hd-stage-0{--hd-stage:#5597f1}.hd-stage-1{--hd-stage:#3379eb}.hd-stage-2{--hd-stage:#8965e8}.hd-stage-3{--hd-stage:#35a67d}.hd-stage-4{--hd-stage:#ef9750}
.hd-stage-info{padding:12px 10px 14px;display:flex;flex-direction:column;gap:8px}
.hd-stage-info strong{font-size:25px;line-height:1.3}
.hd-stage-info em{font-size:14px;font-style:normal;font-weight:400;margin-left:5px;color:var(--hd-muted)}
.hd-stage-info b{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.hd-stage-info small{font-size:14px}
.hd-root .hd-stage:hover{box-shadow:inset 0 0 0 2px #9abbf4}
.hd-timeline{padding-left:8px}
.hd-root .hd-event{position:relative;display:flex;gap:15px;width:100%;padding:0 0 17px 18px;text-align:left;border:0;border-left:2px solid #e3ecfc;background:none}
.hd-event:last-child{padding-bottom:0}
.hd-event-dot{position:absolute;left:-6px;top:7px;width:10px;height:10px;border-radius:50%;background:#4f8aed;border:2px solid white}
.hd-event-dot.inbound{background:#27a679}.hd-event-dot.stage{background:#8965e8}.hd-event-dot.document{background:#e9aa34}
.hd-event>div{min-width:0}
.hd-event-label{display:block;font-size:14px;color:#3d658b;overflow-wrap:anywhere}
.hd-event b{font-size:15px;line-height:1.55;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0}
.hd-event small{display:block}
.hd-event:hover b{color:#2363d3}
.hd-status{display:inline-block;padding:3px 7px;border-radius:6px;font-size:14px;margin-top:6px;background:#fff4df;color:#935a09}
.hd-status.high{background:#fff0ee;color:#b73a30}
.hd-team-caption{font-size:14px;margin:-4px 0 14px;color:var(--hd-muted)}
.hd-root .hd-team-owner{background:none;border:0;padding:0;min-height:36px;text-align:left}
.hd-team-bar{width:88px;max-width:100%;height:6px;background:#edf2fa;border-radius:3px;margin-top:8px;overflow:hidden}
.hd-team-bar i{display:block;height:100%;background:#5796f2;border-radius:3px}
.hd-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:150px;padding:24px 10px;text-align:center;color:var(--hd-muted)}
.hd-empty svg{width:32px;height:32px;color:#91afd9}
.hd-empty p{font-size:15px;margin:0}
.hd-load-error{padding:14px 18px;border:1px solid #edc3ad;background:#fff7ec;border-radius:10px;margin-bottom:15px;color:#8d4d20}
.hd-load-error button{margin-left:12px}
.hd-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-home-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px;font-size:15px;color:#3262b3}
@media(min-width:1780px){.hd-metrics{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:1250px){.hd-content-grid{grid-template-columns:1fr}.hd-content-main,.hd-content-side{display:contents}.hd-priority{order:1}.hd-shortcuts{order:2}.hd-flow{order:3}.hd-recent{order:4}.hd-risk{order:5}.hd-team{order:6}.hd-quick-grid{gap:8px}.hd-root .hd-quick{min-height:112px}.hd-recent .hd-timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px}}
@media(max-width:1000px){.hd-shortcuts{order:0}.hd-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.hd-header{align-items:flex-start}.hd-header-tools{max-width:230px}.hd-root .hd-quick{min-height:100px}.hd-quick b{font-size:15px}}
@media(max-width:650px){.hd-header{display:block;margin:18px 0}.hd-header h1{font-size:24px}.hd-header-tools{max-width:none;justify-content:flex-start;margin-top:16px;gap:10px}.hd-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hd-root .hd-metric{padding:14px 12px}.hd-metric-top{font-size:14px;gap:8px;min-height:38px}.hd-metric .hd-icon{width:32px;height:32px}.hd-metric strong{font-size:28px}.hd-metric strong.hd-money{font-size:21px}.hd-money-note{align-items:flex-start;margin:14px 0 18px}.hd-panel{padding:16px 14px}.hd-panel-head h2{font-size:19px}.hd-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hd-content-grid{gap:14px}.hd-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hd-stage:last-child{grid-column:1/-1}.hd-stage-label{min-height:44px;font-size:15px}.hd-stage-info{gap:6px}.hd-root .hd-priority table{min-width:610px}.hd-root .hd-risk table{min-width:630px}.hd-recent .hd-timeline{display:block}.hd-owner{white-space:normal;overflow-wrap:anywhere}.hd-root .hd-team table td{padding:12px 7px}.hd-root .hd-team table th{padding:10px 7px}.hd-team-bar{width:60px}}
@media(prefers-reduced-motion:reduce){.hd-root *{transition:none!important;scroll-behavior:auto!important}}

