/* Product workspace extends the existing issue split layout and planning controls. */
.product-workspace{--ink:#16105c;--muted:#7972b5;--purple:#9650ef;display:grid;grid-template-columns:minmax(368px,40.25%) minmax(0,1fr);width:100%;height:100%;min-height:0;overflow:hidden;background:#fcfbff;color:var(--ink);font:13px Roboto,Arial,sans-serif}
.product-stream-pane{min-width:0;min-height:0;overflow:hidden;border-right:1px solid #eeebfa}.product-stream-pane .stream-chat{height:100%;border-radius:0;min-height:0}.product-stream-skeleton{padding:18px}
.product-details-pane{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 18px 22px;background:#fdfcff}.product-workspace button,.product-workspace select{font:inherit;cursor:pointer}.product-workspace a{color:var(--purple);text-decoration:none}.product-workspace button:focus-visible,.product-workspace a:focus-visible,.product-workspace select:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.product-header button{border:0;background:none;color:inherit;padding:0}.product-breadcrumb{display:flex;gap:5px;font-size:10px;margin:0 0 18px;color:var(--purple)}.product-title-row{display:flex;align-items:flex-start;gap:14px}.product-icon{display:grid;place-items:center;flex:0 0 64px;height:64px;border-radius:17px;background:#f1eafd;color:var(--purple)}.product-icon .mud-icon-root{font-size:35px}.product-title-copy{flex:1;min-width:0}.product-title-copy h1{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:700;line-height:1.3;margin:3px 0 5px;overflow-wrap:anywhere}.product-title-copy p{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 7px;white-space:pre-wrap;overflow-wrap:anywhere}.product-header .product-favorite{color:#ffb52d;display:inline-flex}.product-labels{display:flex;flex-wrap:wrap;gap:6px}.product-labels button{padding:4px 9px;border-radius:5px;background:#f1eafd;color:#793bce;font-size:10px}.product-header .product-edit{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;background:#f1eafd;color:var(--purple);border-radius:6px;white-space:nowrap;font-size:11px;margin-top:3px}
.product-metadata{display:flex;justify-content:space-between;gap:12px;margin:26px 0 20px}.product-metadata>div{min-width:0;flex:1;border-left:1px solid #eee8fa;padding-left:14px}.product-metadata>div:first-child{border:0;padding:0;flex:1.4}.product-metadata small{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.product-metadata button,.product-metadata time,.product-metadata>div>span{display:flex;align-items:center;gap:6px;font-size:11px;min-height:25px}.product-members{display:flex;gap:0;align-items:center}.product-person{display:inline-flex;align-items:center;gap:7px!important;border:0;background:transparent;color:inherit;padding:0;max-width:100%}.product-person>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-avatar{width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#ece4ff;color:#3e257d;font-size:10px;flex-shrink:0;overflow:hidden}.product-avatar img{height:100%;width:100%;object-fit:cover}.product-person-popover{padding:16px;display:flex;flex-direction:column;gap:7px;min-width:160px}.product-status i,.product-workspace i.todo,.product-workspace i.progress,.product-workspace i.done,.product-workspace i.risk,.product-workspace i.off{display:inline-block;width:7px;height:7px;border-radius:50%;background:#9650ef;flex-shrink:0}.product-workspace i.progress{background:#289eff}.product-workspace i.done{background:#25c59a}.product-workspace i.risk{background:#ffb333}.product-workspace i.off{background:#f45c86}
.product-tabs{display:flex;gap:3px;overflow:auto;border-bottom:1px solid #eeebfa;margin:0 -18px 16px;padding:0 18px;background:#fdfcff;position:sticky;top:-16px;z-index:3}.product-tabs>a{padding:12px 12px 11px;border-bottom:3px solid transparent;color:var(--ink);font-size:11px;white-space:nowrap}.product-tabs>a.active{color:var(--purple);border-color:var(--purple);font-weight:600}.product-tabs span{border-radius:10px;background:#f1eafd;color:#6947ad;padding:2px 6px;margin-left:4px;font-size:10px}
.product-overview{display:grid;gap:14px}.product-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-card{background:#fff;border:1px solid #ede9f8;border-radius:9px;padding:14px;min-width:0;box-shadow:0 2px 8px #50307003}.product-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.product-card h2{font-size:13px;font-weight:600;margin:0}.product-card header>a{font-size:10px;white-space:nowrap}.product-card select{font-size:10px;max-width:130px;padding:5px 8px;border:1px solid #ede9f8;background:white;border-radius:6px;color:var(--ink)}.product-summary-card{padding:12px 14px;min-height:140px}.product-summary-main{display:block;color:var(--ink)!important}.product-summary-main>span{display:flex;align-items:center;gap:10px;font-size:12px}.product-summary-icon{display:grid;place-items:center;background:#f5f1ff;border-radius:10px;width:34px;height:34px;flex-shrink:0}.product-summary-icon svg{width:24px;height:24px}.product-summary-main>b{display:block;font-size:24px;line-height:1.2;margin:13px 0}.product-summary-statuses{display:flex;gap:7px;flex-wrap:wrap;font-size:9px}.product-summary-statuses a{color:var(--muted);display:flex;gap:4px;align-items:center}.product-analytics-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:10px}.product-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-bottom-grid>.product-card{min-height:240px}.product-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:165px;text-align:center;color:var(--muted);font-size:12px;padding:16px}.product-empty small{max-width:300px;font-size:10px}.product-error{padding:12px;background:#fff0f0;color:#943c3c;border-radius:7px;margin:8px 0}.product-error button{border:0;background:#f1eafd;border-radius:5px;padding:5px 10px;margin-left:8px}.product-donut-layout{display:flex;align-items:center;justify-content:center;gap:14px}.product-donut{position:relative;flex-shrink:0;width:150px;height:150px}.product-donut .mud-chart{width:150px!important;height:150px!important}.product-donut-center{pointer-events:none;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.product-donut-center strong{font-size:20px}.product-donut-center small{font-size:11px;color:var(--muted)}.product-distribution-legend{display:grid;gap:18px;flex:1;min-width:0}.product-distribution-legend a{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--ink);white-space:nowrap}.product-distribution-legend a>span{flex:1}.product-distribution-legend b{font-weight:400}.product-distribution-legend small{color:var(--muted);width:28px;text-align:right}.product-chart-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-bottom:8px}.product-chart-legend span{display:flex;gap:5px;align-items:center}.product-line-chart{position:relative}.product-chart-tooltip{position:absolute;right:8px;top:5px;display:grid;gap:5px;padding:10px;background:#fff;border:1px solid #ede9f8;border-radius:7px;box-shadow:0 3px 12px #50307015;font-size:11px;pointer-events:none}.product-goal-row{display:flex;width:100%;align-items:center;gap:12px;border:0;background:transparent;padding:9px 0;text-align:left;color:var(--ink)}.product-goal-row>svg,.product-activity-row>svg{width:25px;height:25px;flex-shrink:0}.product-goal-row>span:first-of-type{flex:1;min-width:0}.product-goal-row strong{font-size:11px;font-weight:400;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-goal-progress{display:flex;align-items:center;gap:8px;margin-top:6px}.product-goal-progress progress{flex:1;width:100%;height:6px;appearance:none;border:0;border-radius:9px;background:#f2eff9}.product-goal-progress progress::-webkit-progress-bar{background:#f2eff9;border-radius:9px}.product-goal-progress progress::-webkit-progress-value{background:#36c59c;border-radius:9px}.product-goal-progress progress.risk::-webkit-progress-value{background:#ffb333}.product-goal-progress progress.off::-webkit-progress-value{background:#f45c86}.product-goal-progress progress::-moz-progress-bar{background:#36c59c;border-radius:9px}.product-goal-progress small{font-size:10px;color:var(--muted)}.product-goal-row .planning-status{font-size:10px;white-space:nowrap}.product-activity-row{display:flex;align-items:flex-start;gap:11px;width:100%;border:0;background:transparent;padding:7px 0;text-align:left;color:var(--ink);font-size:11px!important;line-height:1.45}.product-activity-row strong{font-weight:400;color:#7941cc}.product-activity-row time{display:block;color:var(--muted);font-size:10px;margin-top:2px}.product-entity-list{min-height:260px}.product-filter{display:flex;gap:12px;color:var(--muted);font-size:12px}.product-file{padding:14px 0;border-bottom:1px solid #eeebfa}.product-file .image-wrap{max-width:240px}.product-mobile-switch{display:none}
@media(min-width:1600px){.product-workspace{grid-template-columns:minmax(414px,36.8%) minmax(0,1fr)}}
@media(max-width:1350px){.product-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-metadata{flex-wrap:wrap}.product-metadata>div{flex:1 1 26%}.product-metadata>div:first-child{flex:1 1 26%}.product-analytics-grid,.product-bottom-grid{grid-template-columns:1fr}.product-donut-layout{justify-content:flex-start}.product-distribution-legend{max-width:240px}}
@media(max-width:950px){.product-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.product-mobile-switch{display:flex;gap:6px;padding:8px 14px;border-bottom:1px solid #eeebfa;background:#fff}.product-mobile-switch a{padding:7px 16px;border-radius:6px;background:#f5f1fc;color:var(--ink)}.product-mobile-switch a.active{background:#eee4ff;color:var(--purple)}.product-stream-pane{display:none}.product-show-stream .product-stream-pane{display:block}.product-show-stream .product-details-pane{display:none}.product-details-pane{padding:14px}.product-tabs{top:-14px;margin-left:-14px;margin-right:-14px;padding:0 14px}.product-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-analytics-grid{grid-template-columns:1.5fr 1fr}.product-bottom-grid{grid-template-columns:1fr 1fr}.product-title-copy h1{font-size:20px}}
@media(max-width:720px){.product-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-analytics-grid,.product-bottom-grid{grid-template-columns:1fr}.product-title-row{flex-wrap:wrap;gap:10px}.product-title-copy{flex-basis:calc(100% - 80px)}.product-header .product-edit{margin-left:74px}.product-metadata{gap:12px;margin:20px 0}.product-metadata>div,.product-metadata>div:first-child{flex:1 1 26%}.product-tabs>a{padding-left:10px;padding-right:10px}}
@media(max-width:420px){.product-summary-grid{grid-template-columns:1fr}.product-summary-card{min-height:125px}.product-metadata>div,.product-metadata>div:first-child{flex:1 1 40%}.product-donut-layout{gap:8px}.product-donut{width:135px;height:135px}.product-donut .mud-chart{width:135px!important;height:135px!important}.product-goal-row{gap:7px}}

.product-stream-filters{display:flex;gap:7px;padding:10px 16px;overflow:auto;flex-shrink:0}.product-stream-filters button{border:0;border-radius:10px;background:#f5f3fa;color:var(--ink);font-size:11px;padding:8px 12px;white-space:nowrap}.product-stream-filters button.active{background:#eee4ff;color:var(--purple)}.product-goal-row,.product-activity-row{justify-content:flex-start}.product-stream-pane .compact-issue-chat .chat-header .stream-avatar{display:flex;background:#f1eafd;border-radius:12px}.product-stream-pane .compact-issue-chat .chat-header .heading small{display:block}

.product-line-chart .mud-charts-xaxis text,.product-line-chart .mud-charts-yaxis text{font-size:17px;fill:var(--muted)}.product-line-chart .mud-charts-line-series path{vector-effect:non-scaling-stroke}.product-line-chart .mud-charts-grid path{stroke:#eeeaf8;vector-effect:non-scaling-stroke;stroke-width:1px}

.product-donut svg{width:100%;height:100%}

.product-details-drawer .mud-drawer-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}.product-details-drawer .product-workspace{flex:1;min-height:0;height:auto}.product-drawer-close{position:absolute;top:8px;right:8px;z-index:8;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:#fff;color:#7972b5;cursor:pointer}.product-drawer-close:hover{background:#f1eafd}.product-drawer-close:focus-visible{outline:2px solid #9650ef;outline-offset:2px}.product-details-drawer .product-breadcrumb{padding-right:30px}.product-object-icon{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;border-radius:inherit;flex-shrink:0}.product-object-icon img{width:100%;height:100%;object-fit:cover}.substream-heading>.product-object-icon{width:26px;height:26px;border-radius:7px;background:#f1eafd;color:#9650ef;margin-right:7px}.substream-heading>.product-object-icon svg{width:20px;height:20px}.product-icon-editor{display:flex;align-items:center;gap:14px}.product-icon-preview{display:inline-flex;width:52px;height:52px;background:#f1eafd;color:#9650ef;border-radius:12px;overflow:hidden;flex-shrink:0}.product-icon-editor input{max-width:100%;font-size:12px}.product-owner-select{width:100%;min-width:100px;border:0;background:transparent;color:inherit;font:inherit;min-height:28px}.product-owner-field{display:flex;align-items:center;gap:5px}.product-owner-field .product-person{flex-shrink:0}.product-header .product-share{padding:8px;display:flex;color:#9650ef}.bm-container:has(.product-management){z-index:1400}
@media(min-width:1351px){.product-details-drawer .product-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-details-drawer .product-donut-layout{flex-direction:column}.product-details-drawer .product-distribution-legend{width:100%;gap:10px}.product-details-drawer .product-metadata{flex-wrap:wrap}.product-details-drawer .product-metadata>div{flex:1 1 26%}}

/* Keep the shared ChatView; only the product split receives the roomier gutters. */
.product-stream-pane .stream-chat.compact-issue-chat .message-history,
.product-stream-pane .stream-chat.compact-issue-chat .chat-header,
.product-stream-pane .stream-chat.compact-issue-chat .composer,
.product-stream-pane .stream-chat.compact-issue-chat .typing-layer{padding-inline:16px}
@media(max-width:950px){.product-details-drawer .product-mobile-switch{padding-right:52px}}
