/* ============================================================
   AIconsult-it Team App - Concept 2 page layouts (T-AIC-958, round 2)
   Loaded after app.css, work.css and ai-chat.css. Colours, the shell and the neutral avatars are the
   round-1 system; this file is the page structure from the concept: header blocks, KPI cards, tables
   with a detail panel, timelines, charts. Every rule here styles markup the app builds from real data.
   ============================================================ */
:root{
  --sidew:214px; --topbarh:50px;
  --tint-orange:#fde9df; --tint-blue:#e6eefc; --tint-green:#e1f3e8; --tint-grey:#eceff3; --tint-amber:#fcf0d0; --tint-peach:#fdeee4;
  --ink-orange:#c93d0a; --ink-blue:#2a52c4; --ink-green:#177a43; --ink-grey:#4a5363; --ink-amber:#7a4e00;
}
.ic{width:20px;height:20px;flex:none;display:block}

/* ---------- Shell: sidebar rows, top bar ---------- */
.side{padding:0 12px 14px}
.side-brand{margin:0 -12px 8px;padding:0 0 0 22px;min-height:var(--topbarh);height:var(--topbarh);border-bottom:1px solid var(--chrome-line)}
.side-nav{gap:2px;padding-top:12px}
.side-nav a{min-height:45px;font-size:14px;gap:13px;padding:0 12px;border-radius:10px}
.side-nav a::before{width:22px;height:22px}
.side-nav a.active{background:#1f232b;border-color:rgba(255,90,31,0.7)}
.side-foot{padding-top:12px}
.topbar{padding:0 22px;gap:12px}
.topbar .refresh{display:none}
.crumb{display:inline-flex;align-items:center;gap:12px;color:#fff;font-size:14px;font-weight:600;min-height:44px;padding:0 6px 0 0;border-radius:8px}
.crumb[hidden]{display:none}
.crumb-ico{display:inline-flex;color:#c7cedb}
.crumb:hover .crumb-ico{color:#fff}
#gsearch{width:clamp(220px,22vw,315px);height:34px;border-radius:8px;font-size:14px;padding:0 64px 0 38px;background-position:12px center;background-size:16px}
.search-wrap{position:relative;display:flex;align-items:center}
.kbd{position:absolute;right:8px;top:50%;transform:translateY(-50%);font:600 11.5px/1 'Inter',sans-serif;color:#c7cedb;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.14);border-radius:5px;padding:4px 6px;pointer-events:none}
#gsearch:focus ~ .kbd{opacity:0}
.bell{width:34px;height:34px;border-radius:8px}
.bell-dot{top:-9px;right:-9px;min-width:22px;height:18px;font-size:10.5px}
.topbar-user{padding:0 8px 0 2px;font-size:14px}
.topbar-user .av{width:32px;height:32px;font-size:12px}
.view{padding:18px 22px 44px}

/* ---------- Page header ---------- */
.ph{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap;margin:0 0 14px}
.ph-text{flex:1 1 360px;min-width:0}
.ph-title{font-size:clamp(30px,3vw,40px);font-weight:800;letter-spacing:-0.04em;line-height:1.1;color:var(--text);display:flex;align-items:center;gap:12px}
.ph-sub{color:var(--muted);font-size:15px;margin-top:8px;line-height:1.5;max-width:78ch}
.ph-under{margin-top:12px}
.ph-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;align-self:stretch;gap:10px;flex:none}
.ph-right.is-row{flex-direction:row;align-items:flex-end;justify-content:flex-end;flex-wrap:wrap}
.ph-meta{color:var(--muted);font-size:13px;white-space:nowrap}
.ph-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ph-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--orange)}
.ph-icon .ic{width:100%;height:100%}
.ph-icon-mark{width:52px;height:52px;margin-right:2px;align-self:center}
.ph-icon-tile{width:66px;height:66px;border-radius:12px;background:var(--btn-orange);color:#fff;align-self:center;padding:17px}
.ph.has-icon{align-items:center}
.ph.has-icon .ph-icon{margin-right:2px}
.ph-star{background:none;border:0;color:var(--muted-2);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;padding:0}
.ph-star .ic{width:22px;height:22px}
.ph-star:hover{color:var(--btn-orange);background:var(--wash)}
.ph-star[aria-pressed="true"]{color:var(--orange)}
.ph-star[aria-pressed="true"] .ic{fill:currentColor}
@media(max-width:880px){.ph{margin-bottom:12px}.ph-right{align-items:flex-start;align-self:auto;flex-direction:row;flex-wrap:wrap;width:100%}.ph-meta{display:none}}

/* The orange "+ New ..." button with its split chevron */
.btn-split{position:relative;display:inline-flex;align-items:stretch;border-radius:8px;box-shadow:var(--btn-orange-lift)}
.btn-split .btn{border-radius:0;box-shadow:none;min-height:44px;padding:0 18px;font-size:14px}
.btn-split-main{border-radius:8px 0 0 8px !important;gap:9px;border-right-color:transparent !important}
.btn-split-main .ic{width:17px;height:17px}
.btn-split-chev{border-radius:0 8px 8px 0 !important;padding:0 13px !important;border-left:1px solid var(--btn-orange-sep) !important;min-width:44px}
.btn-split-chev .ic{width:16px;height:16px}
.qc-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:190px;background:#fff;color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-pop);padding:6px;z-index:40}
.qc-menu[hidden]{display:none}
.qc-item{display:flex;align-items:center;width:100%;min-height:44px;padding:0 12px;background:none;border:0;border-radius:8px;font:inherit;font-size:14px;font-weight:500;color:var(--text);cursor:pointer;text-align:left}
.qc-item:hover{background:var(--panel-2)}

/* ---------- KPI cards ---------- */
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.kpi-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.kpi{position:relative;display:flex;align-items:center;gap:16px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px 18px 20px 16px;box-shadow:var(--shadow-card);min-width:0;color:var(--text)}
a.kpi:hover{border-color:var(--line-2);box-shadow:0 2px 8px rgba(16,24,40,0.08)}
.kpi-ico{flex:none;display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:var(--tint-orange);color:var(--ink-orange)}
.kpi-ico .ic{width:26px;height:26px}
.kpi.tone-green .kpi-ico{background:var(--tint-green);color:var(--ink-green)}
.kpi.tone-grey .kpi-ico{background:var(--tint-grey);color:var(--ink-grey)}
.kpi.tone-blue .kpi-ico{background:var(--tint-blue);color:var(--ink-blue)}
.kpi-body{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.kpi-val{font-size:26px;font-weight:700;letter-spacing:-0.03em;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kpi-lbl{font-size:14px;color:var(--muted);font-weight:500;line-height:1.3}
.kpi-trend{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;margin-top:5px;color:var(--muted)}
.kpi-trend b{font-weight:600}
.kpi-trend .ic{width:15px;height:15px}
.kpi-trend.is-good b,.kpi-trend.is-good .ic{color:var(--green-ink)}
.kpi-trend.is-bad b,.kpi-trend.is-bad .ic{color:var(--red-ink)}
.kpi-flat b{color:var(--text) !important}
.kpi-sub{color:var(--muted)}
.kpi-go{flex:none;color:var(--muted-2);display:inline-flex}
.kpi-go .ic{width:18px;height:18px}
@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.kpi-grid,.kpi-grid.cols-3{grid-template-columns:1fr}.kpi{padding:16px 14px}.kpi-ico{width:48px;height:48px}}

/* Tinted icon tiles used inside rows and timelines */
.rowico{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:8px;background:var(--tint-orange);color:var(--ink-orange)}
.rowico .ic{width:16px;height:16px}
.rowico.tone-blue{background:var(--tint-blue);color:var(--ink-blue)}
.rowico.tone-green{background:var(--tint-green);color:var(--ink-green)}
.rowico.tone-grey{background:var(--tint-grey);color:var(--ink-grey)}
.kbtn-ico{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;color:var(--muted)}
.kbtn-ico:hover{background:var(--wash-2);color:var(--text)}
.kbtn-ico .ic{width:18px;height:18px}
.sel-sm{height:34px;padding:0 32px 0 12px !important;font-size:13px !important;border-radius:8px !important;background-position:right 11px center !important;min-height:34px}
.sec-h{font-size:18px;font-weight:700;letter-spacing:-0.02em;margin:26px 0 12px}
.btn-sm .ic{width:15px;height:15px}
.btn-ghost .ic{width:15px;height:15px}

/* ---------- Dashboard ---------- */
.greet{display:flex;align-items:center;gap:14px;margin:0 0 14px}
.greet-ico{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:var(--tint-orange);color:var(--ink-orange);flex:none}
.greet-ico .ic{width:24px;height:24px}
.greet-hi{font-size:20px;font-weight:700;letter-spacing:-0.025em;line-height:1.2}
.greet-sub{color:var(--muted);font-size:14px;margin-top:2px}
.dash-main{display:grid;grid-template-columns:minmax(0,1.82fr) minmax(0,1fr);gap:14px;align-items:stretch;margin-bottom:14px}
.dash-main>.panel{margin-bottom:0}
.pw-tbl th{font-size:12px;padding:10px 12px}
.pw-tbl td{padding:7px 12px;font-size:13.5px}
.pw-tbl th:first-child,.pw-tbl td:first-child{padding-left:16px}
.pw-tbl .t-title{display:flex;align-items:center;gap:11px;border-bottom:0}
.pw-tbl tbody tr{height:44px}
.pw-tbl td.t-title{display:table-cell}
.pw-tbl .t-title .rowico{margin-right:11px;vertical-align:middle}
.pw-tbl .pw-name{vertical-align:middle;font-weight:500}
.pw-tbl .av-chip{font-size:13.5px}
.nw{white-space:nowrap}
.act .tl{padding:2px 0 6px}

/* Timeline */
.tl{position:relative}
.tl-item{position:relative;display:flex;gap:13px;padding:12px 18px 12px 16px;color:var(--text);border-bottom:1px solid var(--hair)}
a.tl-item:hover{background:var(--panel-2)}
.tl-item:last-child{border-bottom:0}
.tl-item::before{content:"";position:absolute;left:33px;top:0;bottom:0;width:1px;background:var(--line)}
.tl-item:first-child::before{top:30px}
.tl-item:last-child::before{bottom:calc(100% - 30px)}
.tl-item:only-child::before{display:none}
.tl-ico{position:relative;z-index:1;flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--tint-orange);color:var(--ink-orange);box-shadow:0 0 0 4px #fff}
.tl-ico .ic{width:17px;height:17px}
.tl-ico.tone-green{background:var(--tint-green);color:var(--ink-green)}
.tl-ico.tone-blue{background:var(--tint-blue);color:var(--ink-blue)}
.tl-ico.tone-grey{background:var(--tint-grey);color:var(--ink-grey)}
.tl-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.tl-top{display:flex;align-items:baseline;gap:10px;justify-content:space-between}
.tl-title{font-size:14px;font-weight:600}
.tl-when{font-size:12.5px;color:var(--muted);white-space:nowrap}
.tl-detail{font-size:13px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.tl-who{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px;margin-top:3px}
.tl-who .av-chip{font-size:13px;color:var(--muted)}

/* Project pipeline: four tinted columns */
.pipe2-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:2px 14px 14px}
.pipe2-col{border-radius:10px;overflow:hidden;background:var(--tint-grey);padding-bottom:6px;min-width:0}
.pipe2-col.tone-peach{background:var(--tint-peach)}
.pipe2-col.tone-blue{background:var(--tint-blue)}
.pipe2-col.tone-green{background:var(--tint-green)}
.pipe2-h{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;font-size:14px;font-weight:700}
.pipe2-col.tone-peach .pipe2-h{color:#8a3a0e}
.pipe2-col.tone-blue .pipe2-h{color:#1f3f93}
.pipe2-col.tone-green .pipe2-h{color:#145f35}
.pipe2-body{margin:0 6px;background:#fff;border-radius:8px;overflow:hidden;min-height:40px}
.pipe2-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--hair);min-width:0;color:var(--text)}
.pipe2-item:hover{background:var(--panel-2)}
.pipe2-item:last-child{border-bottom:0}
.pipe2-t{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.pipe2-t b{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pipe2-t span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pipe2-item .plogo{flex:none}
.pipe2-item .av-sm{width:26px;height:26px;font-size:10.5px}
.pipe2-more{display:block;padding:8px 12px;font-size:12.5px;color:var(--ink-orange);font-weight:600}
.pipe2-foot{padding:0 18px 14px}
.pipe2-foot a{color:var(--orange-ink);font-weight:600}
@media(max-width:1180px){.dash-main{grid-template-columns:1fr}.pipe2-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.pipe2-cols{grid-template-columns:1fr}}

/* ---------- Density pass: the concept's real proportions (measured against the 1672px proofs) ---------- */
.ph-title{font-size:clamp(28px,2.1vw,35px)}
.side-brand{margin-bottom:0}
.side-brand img{height:30px !important}
.side-nav{padding-top:14px}
.panel-head{min-height:50px;padding:9px 18px}
.panel-head h3{font-size:16.5px}
.kpi{padding:14px 18px 14px 16px;gap:15px}
.kpi-ico{width:52px;height:52px}
.kpi-ico .ic{width:24px;height:24px}
.kpi-val{font-size:25px;line-height:1.1}
.kpi-lbl{font-size:13.5px}
.kpi-trend{font-size:12.5px;margin-top:3px}
.greet{margin:0}
.greet-ico{width:42px;height:42px}
.greet-hi{font-size:19px}
.greet-sub{font-size:13.5px}
.ph.has-dash{align-items:flex-end}
.pw-tbl{table-layout:fixed}
.pw-tbl th:nth-child(2){width:84px}.pw-tbl th:nth-child(3){width:140px}.pw-tbl th:nth-child(4){width:150px}
.pw-tbl th:nth-child(5){width:108px}.pw-tbl th:nth-child(6){width:84px}.pw-tbl th:nth-child(7){width:48px}
.pw-tbl td{padding:4px 10px;font-size:13px}
.pw-tbl tbody tr{height:38px}
.pw-tbl td.t-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pw-tbl .av-chip{font-size:13px;color:var(--muted);gap:8px}
.pw-tbl .av-sm,.pipe2-item .av-sm{width:26px;height:26px;font-size:10px}
.pw-tbl .num{padding-right:8px}
.rowico{width:26px;height:26px}
.tl-item{padding:10px 18px 10px 16px}
.tl-ico{width:32px;height:32px}
.tl-item::before{left:32px}
.tl-title{font-size:13.5px}
.tl-detail,.tl-who{font-size:12.5px}
.tl-who .av-chip{font-size:12.5px}
.side-brand img{height:38px !important}
.tl-item{padding:8px 16px 8px 14px;gap:12px}
.tl-body{gap:0}
.tl-top{line-height:1.35}
.tl-detail{line-height:1.35}
.tl-who{margin-top:0;line-height:1.35}
.tl-ico{width:34px;height:34px;align-self:flex-start;margin-top:4px}
.tl-item::before{left:31px}
.kbtn-ico{width:28px;height:28px}
.pw-tbl td{font-size:12.5px}
.pipe2-body{min-height:120px}

/* ---------- Project page ---------- */
.project-sheet .back-link{min-height:30px;padding:0 12px 0 10px;gap:8px;background:#fff;border-radius:8px;font-size:12.5px;margin-bottom:12px}
.project-sheet .back-link-arrow{width:auto;height:auto;background:none;color:var(--text);font-size:15px}
.project-sheet .back-link:hover{transform:none}
.phd{display:flex;align-items:flex-start;gap:16px;margin:0 0 14px}
.phd .plogo{width:168px;height:58px;border-radius:10px;flex:none;font-size:22px}
.phd .plogo img{max-width:80%;max-height:70%;object-fit:contain}
.phd-main{flex:1 1 360px;min-width:0}
.phd-title{font-size:22px;font-weight:700;letter-spacing:-0.025em;display:flex;align-items:center;gap:8px;line-height:1.2}
.phd-title .ph-star{width:30px;height:30px}
.phd-title .ph-star .ic{width:20px;height:20px}
.phd-desc{font-size:13px;color:var(--muted);margin-top:3px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:84ch}
.phd-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px;align-items:center}
.tag{display:inline-flex;align-items:center;gap:6px;min-height:22px;padding:0 10px;font-size:12px;font-weight:500;background:#f3f4f7;border:1px solid var(--line);border-radius:6px;color:var(--muted)}
.phd-tags .pill{min-height:22px;padding:0 10px;font-size:12px;background:var(--tint-peach);border:1px solid #f6d6c3;border-radius:6px}
.phd-stats{display:flex;gap:10px;flex:none}
.mini{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 10px 9px 12px;min-width:146px;box-shadow:var(--shadow-card);color:var(--text)}
.mini:hover{border-color:var(--line-2)}
.mini-ico{display:inline-flex;color:var(--orange)}
.mini-ico .ic{width:22px;height:22px}
.mini-t{display:flex;flex-direction:column;line-height:1.2;flex:1}
.mini-t b{font-size:18px;font-weight:700}
.mini-t span{font-size:12px;color:var(--muted)}
.mini-go{color:var(--muted-2);display:inline-flex}
.mini-go .ic{width:15px;height:15px}
.phd>.btn-split{flex:none;align-self:center}
@media(max-width:1280px){.phd{flex-wrap:wrap}.phd-main{flex-basis:calc(100% - 190px)}.phd-stats{order:5}.phd>.btn-split{order:4}}
@media(max-width:700px){.phd .plogo{width:120px;height:46px}.phd-main{flex-basis:calc(100% - 140px)}.phd-stats{width:100%;order:5;flex-wrap:wrap}.mini{flex:1 1 140px}}
.project-tabs{margin-bottom:14px}
.project-columns{grid-template-columns:minmax(0,1.43fr) minmax(0,1fr)}
.ph-btns{display:flex;gap:8px;align-items:center}
.lnk{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--text)}
.lnk .ic{width:15px;height:15px}
.lnk:hover{color:var(--btn-orange)}
.sum-body{padding:12px 18px 6px}
.sum-desc{font-size:13.5px;color:var(--muted);line-height:1.55;margin-bottom:12px}
.kv2-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 40px;padding-bottom:6px}
.kv2{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center;padding:7px 0;font-size:13.5px;min-height:34px}
.kv2 .k{color:var(--muted)}
.kv2 .v{min-width:0;overflow-wrap:anywhere}
.tagrow{display:flex;gap:6px;flex-wrap:wrap}
.tagrow .tag{background:var(--tint-grey);border:0}
.tagrow .tag:nth-child(2){background:var(--tint-peach);color:var(--ink-orange)}
@media(max-width:700px){.kv2-grid{grid-template-columns:1fr}}
.ms-body{display:flex;align-items:center;gap:20px;padding:14px 18px 16px}
.ring{flex:none}
.ring-t{font-size:18px;font-weight:700;fill:var(--text)}
.ms-main{flex:1;min-width:0}
.ms-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ms-top b{font-size:17px;font-weight:700;letter-spacing:-0.02em}
.ms-top .pill{background:var(--tint-peach);border:1px solid #f6d6c3;border-radius:999px;padding:2px 10px;font-size:12px}
.ms-dates{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-top:6px}
.ms-dates .ic{width:15px;height:15px}
.ms-note{font-size:13px;color:var(--muted);margin:6px 0 10px;line-height:1.4}
.ms-bar{position:relative;height:8px;background:var(--tint-grey);border-radius:999px;margin-bottom:20px}
.ms-bar i{position:absolute;left:0;top:0;bottom:0;background:var(--orange);border-radius:999px}
.ms-n{position:absolute;right:0;top:12px;font-size:12px;color:var(--muted)}
.lb-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 18px 16px}
.lb-items>.muted{grid-column:1/-1}
.lb-card{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;min-width:0;background:#fff;color:var(--text)}
.lb-card:hover{border-color:var(--line-2);background:var(--panel-2)}
.lb-t{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.lb-t b{font-size:13px;font-weight:600}
.lb-t span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-path{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:13px}
.lb-path code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;color:var(--text);word-break:break-all;user-select:all}
.lb-go{display:inline-flex;color:var(--muted-2)}
.lb-go .ic{width:15px;height:15px}
@media(max-width:1100px){.lb-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.lb-items{grid-template-columns:1fr}}
.dv-tbl th{font-size:12px;padding:9px 14px}
.dv-tbl td{padding:6px 14px;font-size:12.5px}
.dv-tbl tbody tr{height:36px}
.dv-tbl td.t-title{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dv-tbl .av-chip{font-size:12.5px;color:var(--muted)}
.dv-tbl .av-sm{width:24px;height:24px;font-size:9.5px}
.dv-more{padding:8px 18px 12px}
.act .tl-item .tl-title{font-size:13.5px}
.next-act{display:flex;gap:12px;align-items:flex-start;margin:6px 8px 8px;padding:12px 14px;background:var(--tint-peach);border-radius:10px;border:1px solid #f6d6c3}
.na-body{flex:1;min-width:0}
.na-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.na-body b{font-size:13.5px;font-weight:700;color:#7a2d08}
.na-body p{font-size:13px;color:var(--text);margin-top:2px;line-height:1.4}
.na-who{margin-top:6px;font-size:12.5px}
.next-act .btn-ghost{background:#fff}
@media(max-width:700px){.next-act{flex-wrap:wrap}.next-act .btn{align-self:stretch;width:100%}}
.linkbar{display:block;padding:0}
.linkbar .lb-items{display:grid}
.linkbar .panel-head{padding:9px 18px}

/* ---------- Projects page ---------- */
.proj-layout{display:grid;grid-template-columns:minmax(0,1fr) 422px;gap:16px;align-items:start}
.proj-left,.tix-left{min-width:0}
.proj-left .kpi-grid,.tix-left .kpi-grid{margin-bottom:14px}
.tasks-page .kpi-grid{margin-bottom:0}
.kpi-btn{font:inherit;text-align:left;cursor:pointer;width:100%;color:var(--text)}
.kpi-btn:hover{border-color:var(--line-2);box-shadow:0 2px 8px rgba(16,24,40,0.08)}
.tcard{margin-bottom:0}
.tbar-card{margin-bottom:14px}
.tbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 16px}
.tbar-chips{padding:0 16px 12px;margin:0}
.tsearch{position:relative;flex:1 1 280px;min-width:200px;display:flex;align-items:center}
.tsearch-ico{position:absolute;left:12px;display:inline-flex;color:var(--muted-2);pointer-events:none}
.tsearch-ico .ic{width:16px;height:16px}
.tsearch input{width:100%;height:38px;padding:0 12px 0 36px;border:1px solid var(--line-2);border-radius:8px;background:#fff;font:inherit;font-size:13.5px;color:var(--text)}
.tsearch input:focus{outline:none;border-color:var(--btn-orange);box-shadow:0 0 0 3px rgba(255,90,31,0.14)}
.fsel{height:38px;min-width:132px;padding:0 34px 0 12px !important;font-size:13.5px !important;border-radius:8px !important;background-position:right 12px center !important}
.tbar .tb-end{margin-left:auto}
.ptbl th{padding:10px 14px;font-size:12px}
.ptbl td{padding:10px 14px;font-size:13px}
.ptbl tbody tr{height:66px;cursor:pointer}
.ptbl tbody tr.is-sel{background:var(--tint-peach);box-shadow:inset 3px 0 0 var(--orange)}
.ptbl tbody tr:focus-visible{outline:2px solid var(--btn-orange);outline-offset:-2px}
.ptbl .tt-brand{display:flex;align-items:center;gap:12px}
.ptbl .tt-brand .rowico{width:38px;height:38px;border-radius:50%}
.ptbl .tt-brand .rowico .ic{width:19px;height:19px}
.ptbl .tt-brand .plogo{flex:none}
.ptxt{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.ptxt b{font-weight:600;font-size:13.5px}
.ptxt b.plain{font-weight:600}
.ptxt .plain{font-size:13px}
.ptxt .t-sub{font-size:12px;color:var(--muted)}
.ptbl .go{width:44px;padding-left:0;padding-right:10px;text-align:right}
.ptbl .pill.stbtn{font-size:12.5px;font-weight:500}
.ptbl .av-chip{font-size:13px;color:var(--muted)}
.sortbtn{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;font:inherit;font-size:12px;font-weight:600;color:var(--muted-2);cursor:pointer;min-height:24px}
.sortbtn .ic{width:12px;height:12px;opacity:.7}
.sortbtn.on,.sortbtn:hover{color:var(--text)}
.tfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 18px;font-size:13px;border-top:1px solid var(--hair)}
.pager{display:flex;gap:6px}
.pgsize{display:inline-flex;align-items:center;gap:6px;margin-left:auto;margin-right:14px}
.pgsize select{height:32px;padding:0 24px 0 10px;border:1px solid var(--line-2);border-radius:8px;background:#fff;font:inherit;font-size:13px;font-weight:600;color:var(--text)}
.pg{min-width:34px;height:34px;border-radius:8px;border:1px solid var(--line-2);background:#fff;font:inherit;font-size:13px;font-weight:600;color:var(--text);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.pg .ic{width:15px;height:15px}
.pg.on{background:var(--btn-orange);border-color:var(--btn-orange);color:#fff}
.pg:disabled{opacity:.45;cursor:not-allowed}
.proj-side{margin-bottom:0;overflow-y:visible}
.sp-body{padding:4px 18px 18px}
.sp-top{display:flex;align-items:center;gap:12px;margin:6px 0 10px}
.sp-top .rowico{width:46px;height:46px;border-radius:50%;flex:none}
.sp-top .rowico .ic{width:22px;height:22px}
.sp-id{min-width:0;flex:1}
.sp-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sp-title b{font-size:15.5px;font-weight:700;letter-spacing:-0.02em}
.sp-title .pill{background:var(--tint-peach);border-radius:999px;padding:2px 10px;font-size:12px;border:1px solid #f6d6c3}
.sp-sub{font-size:12.5px;color:var(--muted);margin-top:2px}
.sp-desc{font-size:13px;color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;padding-bottom:10px;border-bottom:1px solid var(--hair)}
.sp-h{font-size:14px;font-weight:700;letter-spacing:-0.01em;margin:14px 0 8px}
.sp-links{display:grid;gap:8px}
.sp-kv .kv2{grid-template-columns:1fr 1fr;min-height:28px;padding:5px 0;border-bottom:1px solid var(--hair);font-size:13px}
.sp-kv .kv2:last-child{border-bottom:0}
.proj-side .next-act{margin:0}
@media(max-width:1180px){.proj-layout{grid-template-columns:1fr}}

/* ---------- Fixes found on the first side-by-sides ---------- */
.ph-right{justify-content:flex-end}
.ph-right:has(.ph-meta){justify-content:space-between}
.kbtn-ico{background:none;border:0;cursor:pointer;padding:0}
.next-act .btn-ghost{background:#fff}
.ptbl td.t-title{min-width:230px}
.ptbl td:nth-child(2){min-width:170px}
.ptxt .t-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}

/* ---------- Tickets page ---------- */
.tchips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tchip{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 14px;background:#fff;border:1px solid var(--line-2);border-radius:8px;font:inherit;font-size:13.5px;font-weight:500;color:var(--text);cursor:pointer}
.tchip:hover{border-color:#b7bfcc}
.tchip.on{background:var(--tint-peach);border-color:var(--orange);color:#9a3208}
.tc-n{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:22px;padding:0 7px;border-radius:999px;background:var(--tint-grey);font-size:12px;font-weight:600;color:var(--ink-grey)}
.tchip.on .tc-n{background:#fbd9c6;color:#8a2f08}
.tchip-link{color:var(--muted)}
.ph-under .tsw{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;margin:0;border:0;background:none;box-shadow:none;padding:0;overflow:visible}
.ph-under .tsw-cell{flex:none;flex-direction:row;align-items:baseline;gap:6px;padding:0;border:0;background:none}
.ph-under .tsw-n{font-size:13px;font-weight:700;letter-spacing:0}
.ph-under .tsw-l{font-size:12.5px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted)}
.ph-under .tsw-note{padding:0;flex:none;font-size:12px}
.tix-layout{display:grid;grid-template-columns:minmax(0,1fr) 500px;gap:16px;align-items:start}
.tbar-title{font-size:17px;font-weight:700;letter-spacing:-0.02em;margin-right:auto;white-space:nowrap}
.tbar .tsearch{flex:0 1 270px;min-width:160px}
.tbar .btn-icon{min-width:44px;padding:0}
.view-menu{position:relative}
.view-menu .qc-menu{min-width:240px;padding:10px;display:grid;gap:8px}
.view-menu .qc-menu[hidden]{display:none}
.vm-note{display:block}
.tfilters{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px 14px}
.tfilters[hidden]{display:none}
.ttbl th{padding:10px 14px;font-size:12px}
.ttbl td{padding:8px 14px;font-size:13px}
.ttbl tbody tr{height:62px;cursor:pointer}
.ttbl tbody tr.is-sel{background:var(--tint-peach);box-shadow:inset 3px 0 0 var(--orange)}
.ttbl tbody tr:focus-visible{outline:2px solid var(--btn-orange);outline-offset:-2px}
.ttbl td.t-title{font-weight:600;min-width:170px;max-width:260px}
.ttbl td.ref{color:var(--muted)}
.ttbl td.proj{max-width:150px;font-size:12.5px}
.ttbl .go{width:44px;padding:0 10px 0 0;text-align:right}
.ttbl .av-chip{font-size:13px;color:var(--muted)}
.ttbl .pill.stbtn{font-size:12.5px}
.tix-side{padding:0 0 16px;margin-bottom:0;overflow:visible}
.tix-side[hidden]{display:none}
.tp-head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px 0}
.tp-ref{font-size:13px;color:var(--muted)}
.tp-btns{display:flex;gap:2px}
.tp-title{font-size:18px;font-weight:700;letter-spacing:-0.025em;line-height:1.25;padding:6px 18px 0}
.tp-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 18px 12px;font-size:12.5px;border-bottom:1px solid var(--hair)}
.tp-kv{padding:6px 18px 4px;border-bottom:1px solid var(--hair)}
.tp-kv .kv2{grid-template-columns:104px 1fr;padding:6px 0;min-height:32px}
.tix-side .sp-h{padding:0;margin:14px 0 6px}
.tix-side>.sp-h,.tix-side>.tp-desc,.tix-side>.tp-ac,.tix-side>.tp-empty,.tix-side>.tp-ac-head,.tix-side>.tp-two,.tix-side>.tp-foot{margin-left:18px;margin-right:18px}
.tp-desc{font-size:13px;color:var(--muted);line-height:1.55}
.tp-ac-head{display:flex;align-items:center;justify-content:space-between}
.tp-ac{list-style:none;border:1px solid var(--line);border-radius:10px;padding:6px 12px}
.tp-ac li{padding:4px 0}
.crit-row{display:flex;align-items:center;gap:10px;font-size:13px;cursor:pointer;min-height:28px}
.crit-row input{width:17px;height:17px;accent-color:var(--btn-orange);flex:none}
.tp-empty{border:1px dashed var(--line-2);border-radius:10px;padding:12px;font-size:13px;color:var(--muted)}
.tp-two{display:grid;grid-template-columns:1.1fr 1fr;gap:14px}
.tp-two .next-act{margin:0;padding:10px 12px}
.tp-two .na-body p{font-size:13px;margin:0 0 8px}
.tp-evidence{display:grid;gap:8px}
.tp-foot{display:flex;justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px solid var(--hair)}
button.lb-card{font:inherit;text-align:left;width:100%;cursor:pointer}
@media(max-width:1280px){.tix-layout{grid-template-columns:minmax(0,1fr) 420px}}
@media(max-width:1100px){.tix-layout{grid-template-columns:1fr}.tp-two{grid-template-columns:1fr}}
.ph-under .tsw{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;margin:0;border:0;background:none;box-shadow:none;overflow:visible;border-radius:0}
.ph-under .tsw-cell{display:flex;flex-direction:row;align-items:baseline;gap:6px;padding:0;border:0;background:none;flex:none}
.ph-under .tsw-cell::before{display:none}
.ph-under .tsw-n{font-size:13px;font-weight:700;letter-spacing:0}
.ph-under .tsw-l{font-size:12.5px;font-weight:500;color:var(--muted)}
.ph-under .tsw-note{padding:0;flex:none;font-size:12px}
.next-act .btn{flex:none}
.next-act>.btn-ghost,.next-act>.btn-orange{align-self:flex-end}
.tp-two .next-act .btn-orange{align-self:auto}

/* ==========================================================================
   AI CONNECT, Concept 2 page 5: header with the spark and a project picker, then three columns
   (conversations, chat, context). On a phone the columns become one, switched by tabs.
   ========================================================================== */
.cw-connect{background:none;border:0;box-shadow:none}
.cw-connect .ac{height:calc(100dvh - 100px);min-height:640px;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible;gap:0}
.ac-bar{display:flex;align-items:center;gap:16px;padding:2px 0 26px;border:0;background:none}
.ac-spark{display:inline-flex;width:56px;height:56px;color:var(--orange);flex:none}
.ac-spark .ic{width:100%;height:100%;stroke-width:1.5}
.ac-head-t{flex:1;min-width:0}
.ac-head-t h2{font-size:clamp(28px,2.1vw,35px);font-weight:700;letter-spacing:-.035em;line-height:1.05;margin:0;text-transform:none;color:var(--text)}
.ac-head-t p{margin:4px 0 0;font-size:15px;color:var(--muted);line-height:1.35}
.ac-head-r{display:flex;align-items:center;gap:14px;flex:none}
.ac-livebox{display:flex;align-items:center;gap:6px}
.ac-live{font-size:12.5px;color:var(--muted)}
.ac-proj{position:relative;display:flex;align-items:center;gap:12px;min-width:380px;padding:10px 18px;background:#fff;border:1px solid var(--line);border-radius:12px;cursor:pointer;min-height:56px}
.ac-proj:hover{border-color:var(--line-2)}
.ac-proj-l{font-size:14px;color:var(--muted);margin-right:2px}
.ac-proj .plogo,.ac-lp .plogo{margin-right:0}
/* The initials tile only: a project WITH a logo uses the app's .plogo (white backing, vector) like every other page. */
.ac-plogo{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;overflow:hidden;background:var(--avatar);flex:none}
.ac-plogo.plogo-i{background:var(--avatar);color:#fff;font-weight:700;font-size:12px;letter-spacing:.02em}
.ac-plogo.lg{width:62px;height:62px;border-radius:10px;font-size:18px}
.ac-proj-t{flex:1;min-width:0;display:flex;align-items:center;gap:10px}
.ac-proj-t strong{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-proj-st{font-size:12px;font-weight:500;padding:3px 10px;border-radius:999px;background:var(--tint-peach);color:var(--orange-ink);white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.ac-proj-st::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--orange)}
.ac-proj-c{display:inline-flex;color:var(--muted)}
.ac-proj-c .ic{width:18px;height:18px}
.ac-proj select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.ac-proj:focus-within{outline:2px solid var(--btn-orange);outline-offset:2px}

.ac-body{display:grid;grid-template-columns:minmax(290px,350px) minmax(0,1fr) minmax(290px,365px);gap:12px;flex:1 1 auto;min-height:0}
.ac-rail,.ac-thread,.ac-ctx{background:#fff;border:1px solid var(--line);border-radius:14px;min-height:0;min-width:0;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.ac-rail{padding:18px 16px 12px;display:flex;flex-direction:column;overflow:hidden}
.ac-ctx{padding:18px 16px 16px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}
.ac-rail-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
.ac-rail-head h3{font-size:18px;font-weight:700;letter-spacing:-.02em}
.ac-ctx>.ac-rail-head{margin:0 2px 2px}
.ac-ctx>.ac-rail-head a{font-size:13px;color:var(--text);display:inline-flex;align-items:center;gap:6px}
.ac-search{display:flex;gap:8px;margin-bottom:10px}
.ac-sbox{flex:1;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:0 12px;min-height:44px;background:#fff;color:var(--muted)}
.ac-sbox:focus-within{border-color:var(--btn-orange);outline:2px solid var(--btn-orange);outline-offset:1px}
.ac-sbox input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:14px;color:var(--text);padding:0;box-shadow:none}
.ac-sico .ic{width:17px;height:17px}
.ac-fbtn{width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.ac-fbtn .ic{width:18px;height:18px}
.ac-fbtn[aria-expanded=true]{border-color:var(--btn-orange);color:var(--orange-ink)}
.ac-hidden-select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ac-business{margin-bottom:10px}
.ac-threads{display:flex;flex-direction:column;gap:0;overflow-y:auto;min-height:0;flex:1;margin:0 -16px;padding:0 0 8px}
.ac-thread-row{display:flex;align-items:center;gap:13px;padding:14px 16px;border-radius:0;border-bottom:1px solid var(--hair);position:relative;min-height:74px;background:none;text-align:left}
.ac-thread-row:last-child{border-bottom:0}
.ac-thread-row:hover{background:#fafbfc}
.ac-thread-row[aria-pressed=true]{background:var(--tint-peach);box-shadow:inset 3px 0 0 var(--orange)}
.ac-thread-row .ac-av{width:48px;height:48px;font-size:15px}
.ac-tr-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ac-tr-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.ac-thread-row .ac-tr-top strong{font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-thread-row .ac-tr-top time{grid-column:auto;padding:0;font-size:12.5px;color:var(--muted);flex:none}
.ac-thread-row .ac-tr-sub{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-unread{position:absolute;right:16px;bottom:16px;width:10px;height:10px;border-radius:50%;background:var(--orange)}
.ac-rail .cw-empty{margin:6px 0}
.ac-rail-close{display:none}

.ac-thread{display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.ac-thread-head{display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid var(--hair);background:none}
.ac-av-lg{width:50px;height:50px;font-size:16px;position:relative;flex:none}
.ac-presence{position:absolute;right:-1px;bottom:0;width:12px;height:12px;border-radius:50%;background:#98a0ae;border:2px solid #fff}
.ac-presence.is-on{background:var(--green)}
.ac-thread-title{flex:1;min-width:0}
.ac-thread-title h3{font-size:22px;font-weight:700;letter-spacing:-.025em;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-role{display:block;margin-top:3px;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-thread-actions{display:flex;align-items:center;gap:10px;flex:none}
.cw .ac-pctx{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font-size:13.5px;font-weight:500;cursor:pointer}
.cw .ac-pctx:hover{background:var(--panel-2)}
.ac-pctx .ic{width:16px;height:16px}
.ac-morewrap{position:relative}
.cw .ac-more-btn{width:46px;height:46px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);padding:0;display:inline-flex;align-items:center;justify-content:center}
.ac-more-btn .ic{width:20px;height:20px}
.ac-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:5;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(16,24,40,.14);padding:6px;display:grid}
.ac-menu button{background:none;border:0;text-align:left;padding:0 12px;min-height:44px;border-radius:8px;font-size:13.5px;color:var(--text);cursor:pointer}
.ac-menu button:hover{background:var(--panel-2)}
.ac-scroll{padding:18px 20px 12px}
.ac-msgs{max-width:none;margin:0;gap:18px}
.ac-day{margin:2px 0}
.ac-row{display:flex;flex-direction:row;align-items:flex-start;gap:14px;max-width:none;align-self:stretch}
.ac-row.is-claude,.ac-row.is-agent,.ac-row.is-codex,.ac-row.is-human{align-self:stretch;flex-direction:row;max-width:none;align-items:flex-start}
.ac-row .ac-av{width:46px;height:46px;font-size:15px;margin:0}
.ac-row.is-codex .ac-stack,.ac-row.is-human .ac-stack{align-items:flex-start}
.ac-stack{flex:0 1 640px;max-width:100%}
.ac-meta{margin-bottom:6px;gap:10px}
.ac-who{font-size:14.5px}
.ac-meta time{font-size:13px;color:var(--muted)}
.ac-bubble{background:#f1f3f6;border:0;border-radius:12px;padding:14px 18px;font-size:14.5px;line-height:1.6;max-width:none;text-align:left}
.ac-row.is-claude .ac-bubble,.ac-row.is-agent .ac-bubble{background:#fdeee6;border-radius:12px}
.ac-row.is-codex .ac-bubble,.ac-row.is-human .ac-bubble{background:#f1f3f6;text-align:left;border-radius:12px}
.ac-row.is-codex .ac-receipts,.ac-row.is-human .ac-receipts{justify-content:flex-start}
.ac-receipts{margin-top:8px}
.ac-attach{display:flex;align-items:center;gap:12px;margin-top:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);text-decoration:none;max-width:520px}
.ac-attach:hover{border-color:var(--line-2)}
.ac-attach-i{display:inline-flex;width:38px;height:38px;border-radius:8px;background:#eaf0ff;color:#3b63d9;align-items:center;justify-content:center;flex:none}
.ac-attach-i .ic{width:20px;height:20px}
.ac-attach-t{flex:1;min-width:0;display:flex;flex-direction:column}
.ac-attach-t strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-attach-t small{font-size:12.5px;color:var(--muted)}
.ac-attach-go{display:inline-flex;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;align-items:center;justify-content:center;color:var(--muted)}
.ac-attach-go .ic{width:15px;height:15px}

.ac-compose{border-top:0;background:none;padding:0 16px 14px}
.ac-compose>*{max-width:none;margin-left:0;margin-right:0}
.ac-targets{margin-bottom:8px}
.ac-inputrow{display:block;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 10px 8px 10px}
.ac-inputrow:focus-within{border-color:var(--btn-orange)}
.ac-compose textarea{display:block;width:100%;border:0;background:none;padding:14px 4px 8px;min-height:56px;outline:0;box-shadow:none}
.cw-connect .ac-compose textarea:focus-visible{outline:0}
.ac-tools{display:flex;align-items:center;gap:4px}
.ac-tools-sp{flex:1}
.cw .ac-tool{width:44px;height:44px;border:0;background:none;border-radius:8px;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.cw .ac-tool:hover:not(:disabled){background:var(--panel-2);color:var(--text)}
.cw .ac-tool:disabled{opacity:.45;cursor:not-allowed}
.ac-tool .ic{width:20px;height:20px}
.cw .ac-send{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:8px}
.ac-send .ic{width:16px;height:16px}
.ac-foot{margin-top:6px;text-align:left}

.ac-card{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fff}
.ac-card-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ac-card-h h4{font-size:14.5px;font-weight:700}
.ac-card-a{font-size:13px;color:var(--text);display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.ac-card-a:hover{color:var(--orange-ink)}
.ac-card-a .ic,.ac-ctx>.ac-rail-head a .ic{width:14px;height:14px}
.ac-all{margin-top:6px;min-height:32px}
.ac-lp{display:flex;gap:14px;align-items:center}
.ac-lp-t{display:flex;flex-direction:column;min-width:0}
.ac-lp-t strong{font-size:15.5px;font-weight:700;line-height:1.25}
.ac-lp-t span{font-size:13px;color:var(--muted)}
.ac-lp-d{margin:10px 0 8px;font-size:13px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ac-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.ac-tag2{display:inline-flex;align-items:center;min-height:26px;padding:0 12px;border-radius:6px;background:#f1f3f6;font-size:12.5px;color:var(--text);font-weight:500}
.ac-kv{display:grid;margin:6px 0 0}
.ac-kv>div{display:grid;grid-template-columns:104px 1fr;gap:10px;padding:9px 0;border-top:1px solid var(--hair);font-size:13.5px}
.ac-kv dt{color:var(--muted)}
.ac-kv dd{margin:0;overflow-wrap:anywhere}
.ac-tk{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.ac-tk-i{display:inline-flex;width:44px;height:44px;border-radius:10px;background:var(--tint-peach);color:var(--orange-ink);align-items:center;justify-content:center;flex:none}
.ac-tk-i .ic{width:22px;height:22px}
.ac-tk-t{flex:1;min-width:0;display:flex;flex-direction:column}
.ac-tk-t strong{font-size:14px;font-weight:700}
.ac-tk-t span{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cw .ac-chip.ac-wide{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px}
.ac-chip .ic{width:15px;height:15px}
.ac-files{list-style:none;display:grid;margin:0}
.ac-files li{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--hair)}
.ac-files li:first-child{border-top:0}
.ac-f-i{display:inline-flex;width:36px;height:36px;border-radius:8px;background:#eaf0ff;color:#3b63d9;align-items:center;justify-content:center;flex:none}
.ac-f-i .ic{width:18px;height:18px}
.ac-f-t{flex:1;min-width:0;display:flex;flex-direction:column}
.ac-f-t strong{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-f-t small{font-size:12.5px;color:var(--muted)}
.ac-lr{display:flex;align-items:center;gap:12px}
.ac-lr-i{display:inline-flex;width:40px;height:40px;border-radius:50%;background:#e9f7ef;color:var(--ac-ok);align-items:center;justify-content:center;flex:none}
.ac-lr-i .ic{width:22px;height:22px}
.ac-lr div{display:flex;flex-direction:column}
.ac-lr strong{font-size:13.5px;font-weight:600}
.ac-lr small{font-size:12.5px;color:var(--muted)}
.ac-ctx .ac-roster{margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:12px}
.ac-ctx .cw-empty{margin:0;font-size:13px}
.ac-tabs{display:none}

@media(max-width:1280px){.ac-body{grid-template-columns:minmax(250px,300px) minmax(0,1fr) minmax(250px,300px)}.ac-proj{min-width:0}.ac-proj-l{display:none}}
@media(max-width:1100px){
  .cw-connect .ac{height:auto;min-height:0}
  .ac-bar{flex-wrap:wrap}
  .ac-head-r{width:100%}
  .ac-head-r .ac-proj{flex:1;min-width:0}
  .ac-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 12px}
  .ac-tab{flex:1;min-height:44px;background:none;border:0;border-bottom:2px solid transparent;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;padding:0 8px}
  .ac-tab.on{color:var(--text);border-bottom-color:var(--btn-orange)}
  .ac-body{display:block;height:calc(100dvh - 300px);min-height:520px}
  .ac-rail,.ac-thread,.ac-ctx{display:none;height:100%}
  .ac[data-pane="rail"] .ac-rail{display:flex}
  .ac[data-pane="thread"] .ac-thread{display:grid}
  .ac[data-pane="ctx"] .ac-ctx{display:flex}
  .ac-rail-toggle,.cw .ac-rail-toggle{display:none!important}
}
@media(max-width:700px){
  .ac-spark{width:40px;height:40px}
  .ac-head-t p{font-size:13px}
  .ac-livebox .ac-live{display:none}
  .ac-thread-head{flex-wrap:wrap;padding:12px 14px}
  .ac-thread-actions{width:100%;justify-content:flex-end}
  .ac-thread-title h3{font-size:18px}
  .ac-row .ac-av{width:38px;height:38px;font-size:13px}
  .ac-row{gap:10px}
  .ac-scroll{padding:14px 12px 10px}
  .ac-compose{padding:0 10px 10px}
}

.view{position:relative}
.ai-tabs{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#fff;margin:0 0 12px;width:auto;border-bottom:1px solid var(--line)}
.ai-tabs .ptab{min-height:38px;padding:0 12px;border-radius:8px;border:0;font-size:12.5px}
.ai-tabs .ptab.on{background:var(--tint-peach);color:var(--orange-ink);box-shadow:none}
@media(min-width:1600px){.ai-tabs{position:absolute;top:38px;right:566px;margin:0;z-index:2}}

.ac-thread-row .ac-av{color:#fff}
.ac-t-row{display:flex;align-items:center;gap:10px;min-width:0}
.ac-t-row h3{min-width:0}
.ac-online{font-size:13px;font-weight:500;color:var(--muted);display:inline-flex;align-items:center;gap:6px;flex:none}
.ac-online::before{content:"";width:8px;height:8px;border-radius:50%;background:#98a0ae}
.ac-online.is-on{color:#177a43}
.ac-online.is-on::before{background:var(--green)}
button.ac-tk{width:100%;background:none;border:0;padding:0;margin:0;text-align:left;cursor:pointer;font:inherit;color:inherit;min-height:48px;border-radius:10px}
button.ac-tk:hover .ac-tk-t strong{color:var(--orange-ink)}
.ac-tk-go{display:inline-flex;color:var(--muted)}
.ac-tk-go .ic{width:18px;height:18px}
.ac-tk-t strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-suggest .cw-help{display:none}
.ac-suggest{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}
.ac-card{padding:12px 16px}
.ac-ctx{gap:10px;padding-top:14px}
.ac-kv>div{padding:7px 0}
.ac-lp-d{-webkit-line-clamp:3;margin:8px 0 6px}
.ac-files li{padding:7px 0}
.ac-compose textarea{padding:10px 4px 4px;min-height:44px}

.tix-tsw{padding:0 16px 14px}
.tix-tsw .tsw{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;margin:0;border:0;background:none;box-shadow:none;overflow:visible;border-radius:0;padding:10px 0 0;border-top:1px solid var(--hair)}
.tix-tsw .tsw-cell{display:flex;flex-direction:row;align-items:baseline;gap:6px;padding:0;border:0;background:none;flex:none}
.tix-tsw .tsw-cell::before{display:none}
.tix-tsw .tsw-n{font-size:13px;font-weight:700;letter-spacing:0}
.tix-tsw .tsw-l{font-size:12.5px;font-weight:500;color:var(--muted)}
.tix-tsw .tsw-note{padding:0;flex:none;font-size:12px}
.tix-tsw-board{padding:12px 0}

.ac-all{margin:0;min-height:0}
.ac-plogo.lg{width:56px;height:56px}
.ac-kv>div{padding:6px 0;font-size:13px}
.ac-card-h{margin-bottom:8px}

.ac-ctx{gap:8px}
.ac-card{padding:10px 14px}
.ac-files li{padding:5px 0}
.ac-lp-d{margin:6px 0 4px}
.ac-tags{margin-bottom:2px}
.ac-ctx>.ac-rail-head{margin-bottom:0}
@media(max-width:1100px){.ac-body{height:calc(100dvh - 120px);min-height:620px}}
@media(max-width:700px){.cw .ac-thread-title,.ac-thread-title{order:0;flex:1 1 0;flex-basis:0;min-width:0}.ac-thread-head .ac-av-lg{order:-1}}
.ac-proj select{box-sizing:border-box;min-width:0;max-width:100%;padding:0;border:0;margin:0}

.ac-lp-d{-webkit-line-clamp:2}
.ac-card{padding:9px 14px}
.ac-files li{padding:4px 0}
.ac-ctx{gap:6px}
.ac-kv>div{padding:5px 0}

/* ==========================================================================
   FINANCE (Concept 2 page 6) and the charts shared with Digital Marketing
   ========================================================================== */
.fin-tabs{margin-bottom:16px;padding:0 10px}
.fin-tabs .ptab{padding:0 26px 0 18px;font-size:14.5px}
.fin-tabs .ptab .ic{width:19px;height:19px}
.fin-tabs .ptab+.ptab{position:relative}
.fin-tabs .ptab.on .ic{color:var(--orange)}
.kpi-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.fin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,35%);gap:16px;align-items:start}
.fin-side{display:grid;gap:16px;min-width:0}
.fin-card{padding:0;overflow:visible}
.fc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 10px}
.fc-head h3{font-size:18px;font-weight:700;letter-spacing:-.02em}
.fc-head .btn{min-height:36px;font-size:13px}
.fc-head .btn .ic{width:15px;height:15px;margin-left:6px}
.fc-select{min-height:40px;padding:0 34px 0 14px;border-radius:8px;font-size:13.5px;width:auto}
.fin-scroll{overflow-x:auto;padding:0 6px 8px}
.fin-tbl th{font-size:12.5px;font-weight:600;color:var(--muted);padding:12px 12px}
.fin-tbl td{padding:0 12px;height:46px;font-size:13.5px;white-space:nowrap}
.fin-tbl td.t-title{font-weight:500}
.fin-tbl tbody tr{border-top:1px solid var(--hair)}
.fin-act{display:flex;align-items:center;gap:6px;height:46px}
.btn-view{min-height:32px;padding:0 16px;border-color:var(--orange);color:var(--orange-ink);background:#fff;font-weight:600;font-size:13px}
.btn-view:hover{background:var(--tint-peach)}
.rowmenu{position:relative}
.rowmenu summary{list-style:none;cursor:pointer}
.rowmenu summary::-webkit-details-marker{display:none}
.rowmenu-pop{position:absolute;right:0;top:calc(100% + 4px);z-index:20;min-width:190px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(16,24,40,.14);padding:6px;display:grid}
.rowmenu-pop a,.rowmenu-pop button{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;font:inherit;font-size:13.5px;color:var(--text);background:none;border:0;text-align:left;cursor:pointer;text-decoration:none}
.rowmenu-pop a:hover,.rowmenu-pop button:hover{background:var(--panel-2)}
.ps-list{list-style:none;padding:0 18px 8px}
.ps-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--hair)}
.ps-row:first-child{border-top:0}
.ps-row .rowico{width:38px;height:38px;border-radius:50%}
.ps-t{flex:1;min-width:0;display:flex;flex-direction:column}
.ps-t b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-t small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-amt{font-size:13.5px;font-weight:500;white-space:nowrap}
.ps-row .pill{font-size:12px;padding:2px 10px}
.empty-in{padding:20px 18px 22px;font-size:13.5px;color:var(--muted)}
.chart-wrap{padding:0 14px 4px}
.chart{display:block;width:100%;height:auto;max-height:260px}
.ch-grid{stroke:var(--hair);stroke-width:1}
.ch-ax{font-size:11px;fill:var(--muted);font-family:inherit}
.ch-bar{fill:var(--orange)}
.ch-area{fill:rgba(255,90,31,.12)}
.ch-line{stroke:var(--orange);stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.ch-dot{fill:#fff;stroke:var(--orange);stroke-width:2}
.chart-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:2px 18px 16px;font-size:12.5px;color:var(--text)}
.chart-legend small{flex-basis:100%;margin-left:18px;color:var(--muted);font-size:12px}
.lg-dot{width:9px;height:9px;border-radius:50%;background:var(--orange)}
@media(max-width:1200px){.fin-grid{grid-template-columns:1fr}.kpi-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.kpi-grid.cols-4{grid-template-columns:1fr}.fin-tabs .ptab{padding:0 14px 0 10px}.fin-tabs .ptab span{font-size:13.5px}}

.fin-grid>*,.fin-side>*{min-width:0}
.fin-tabs .ptab{min-height:48px}
.fin-tbl td{height:40px}
.fin-act{height:40px}
.fin-tbl th{padding:10px 12px}
.btn-view{min-height:30px;padding:0 15px}
.ps-row{padding:6px 0}
.ps-row .rowico{width:34px;height:34px}
.fc-head{padding:14px 18px 8px}
.fin-side .chart{max-height:170px}
.chart-legend{padding-bottom:12px}

.fin-card{margin:0}
.fin-side .chart{max-height:none}

.ps-row{padding:3px 0}
.ps-row .btn-view{min-height:28px}
.fc-head{padding:12px 18px 6px}
.fin-grid{gap:14px}.fin-side{gap:14px}
.chart-legend{padding:0 18px 10px;gap:6px}

/* ==========================================================================
   DIGITAL MARKETING (Concept 2 page 7)
   ========================================================================== */
.ph-sel{display:flex;gap:14px;align-items:stretch}
.sel-card{position:relative;display:flex;flex-direction:column;gap:2px;padding:10px 14px 10px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:210px}
.sel-card:focus-within{outline:2px solid var(--btn-orange);outline-offset:2px}
.sel-l{font-size:12.5px;color:var(--muted)}
.sel-card select{border:0;background-color:transparent;padding:0 22px 0 0;min-height:30px;font-size:14.5px;font-weight:500;width:100%;box-shadow:none;outline:0}
.sel-in{display:flex;align-items:center;gap:10px}
.sel-in .ic{width:18px;height:18px;flex:none}
.ph.has-icon .ph-text{flex:1 1 420px}
.kpi.kpi-empty .kpi-val{font-size:17px;font-weight:600;color:var(--muted);letter-spacing:0;line-height:1.5;margin:2px 0}
.gm-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,36%);gap:14px;align-items:start}
.gm-main,.gm-side{display:grid;gap:14px;min-width:0}
.gm-card{padding:0;margin:0;overflow:visible}
.ch-ico{display:inline-flex;vertical-align:middle;margin-right:12px;color:var(--text)}
.ch-ico .ic{width:20px;height:20px}
.gm-card .kpi-trend{display:inline-flex;align-items:center;gap:4px;margin:0}
.chart-note{padding:0 18px 14px;font-size:12px;color:var(--muted)}
.uc-list,.pa-list{list-style:none;padding:0 18px 4px}
.uc-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--hair)}
.uc-row:first-child{border-top:0}
.uc-row .rowico{width:40px;height:40px;border-radius:10px}
.uc-t{flex:1;min-width:0;display:flex;flex-direction:column}
.uc-t a{color:var(--text);text-decoration:none}
.uc-t b{font-size:13.5px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uc-t small{font-size:12px;color:var(--muted)}
.uc-own{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.uc-own small{font-size:11px;color:var(--muted)}
.uc-all{display:inline-flex;align-items:center;gap:8px;padding:6px 18px 16px;font-size:13.5px;font-weight:600;color:var(--orange-ink);text-decoration:none;min-height:44px}
.uc-all .ic{width:15px;height:15px}
.pa-row{display:flex;align-items:center;gap:12px;padding:6px 0;border-top:1px solid var(--hair);min-height:46px}
.pa-row:first-child{border-top:0}
.pa-box{width:20px;height:20px;accent-color:var(--btn-orange);flex:none;margin:0}
.pa-t{flex:1;min-width:0;display:flex;flex-direction:column}
.pa-t b{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pa-t small{font-size:12px;color:var(--muted)}
.pa-d{font-size:12.5px;white-space:nowrap}
.pa-row .pill{font-size:12px;padding:2px 12px}
.rowmenu-note{padding:12px;font-size:13px;color:var(--muted)}
.gm-side .btn-split .btn{min-height:38px}
@media(max-width:1200px){.gm-grid{grid-template-columns:1fr}.ph-sel{width:100%;flex-wrap:wrap}.sel-card{flex:1;min-width:180px}}

.kpi-empty .kpi-body{display:flex;flex-direction:column}
.kpi-empty .kpi-lbl{order:-1;font-weight:600;color:var(--text);font-size:14px}
.kpi-empty .kpi-trend{order:2}
.sel-card{min-width:236px}
.uc-row{padding:5px 0}
.uc-t small{white-space:nowrap}
.uc-own .av-sm{width:34px;height:34px;font-size:12px}

.ch-ax{font-size:9.5px}
.uc-row{padding:2px 0}
.uc-own .av-sm{width:30px;height:30px;font-size:11px}
.uc-own small{font-size:10.5px;line-height:1}
.uc-row .rowico{width:36px;height:36px}
.uc-all{padding:2px 18px 8px;min-height:40px}
.pa-row{min-height:42px;padding:3px 0}
.gm-side .fc-head{padding:10px 18px 4px}
.gm-side .fc-head .btn-split .btn{min-height:36px}
.gm-grid,.gm-main,.gm-side{gap:12px}

/* ==========================================================================
   CONTROL PANEL (Concept 2 page 8)
   ========================================================================== */
.ctl-tabs{margin-bottom:14px;padding:0 10px}
.ctl-tabs .ptab{padding:0 24px 0 16px;min-height:48px}
.ctl-tabs .ptab .ic{width:19px;height:19px}
.ctl-tabs .ptab.on .ic{color:var(--orange)}
.ctl-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,33%);gap:14px;align-items:start}
.ctl-side{display:grid;gap:14px;min-width:0}
.ctl-card{padding:0;margin:0;overflow:visible}
.cc-head{padding:16px 18px 10px}
.cc-head h3{font-size:19px;font-weight:700;letter-spacing:-.02em}
.cc-head p{margin:4px 0 0;font-size:13.5px;color:var(--muted);line-height:1.45;max-width:78ch}
.cc-split{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ctl-tbl th{font-size:12.5px;font-weight:600;color:var(--muted);padding:10px 14px;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);background:#fafbfc}
.ctl-tbl td{padding:8px 14px;font-size:13.5px;border-bottom:1px solid var(--hair);white-space:nowrap;height:56px}
.ctl-tbl tr:last-child td{border-bottom:0}
.ctl-user{cursor:pointer}
.ctl-user:hover{background:#fafbfc}
.m-cell{display:flex;align-items:center;gap:12px}
.ctl-av{width:40px;height:40px;font-size:13px}
.m-t{display:flex;flex-direction:column;min-width:0}
.m-t b{font-weight:600;font-size:14px}
.m-t small{color:var(--muted);font-size:12.5px;font-weight:400}
.m-t .missing{color:var(--muted)}
.m-act{text-align:left}
.chip-soft{display:inline-flex;align-items:center;min-height:26px;padding:0 12px;border-radius:6px;background:#f1f3f6;font-size:12.5px;color:var(--text)}
.st-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;background:#98a0ae}
.st-dot.is-ok{background:var(--green)}
.st-dot.is-wait{background:var(--orange)}
.ctl-foot{padding:10px 18px 14px}
.rp-list{list-style:none;padding:0 18px 10px}
.rp-row{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:6px 0;border:0;border-top:1px solid var(--hair);background:none;font:inherit;text-align:left;cursor:pointer;color:var(--text)}
.rp-list li:first-child .rp-row{border-top:0}
.rp-row b{flex:0 0 118px;font-size:13.5px;font-weight:600}
.rp-row span{flex:1;font-size:12.5px;color:var(--muted);line-height:1.4}
.rp-row .ic{width:16px;height:16px;color:var(--muted);flex:none}
.rp-row:hover b{color:var(--orange-ink)}
.rp-full{padding-bottom:14px}
.rp-line{display:flex;align-items:center;gap:18px;padding:14px 0;border-top:1px solid var(--hair)}
.rp-line:first-child{border-top:0}
.rp-line b{flex:0 0 150px;font-size:14.5px}
.rp-line span:not(.chip-soft){flex:1;color:var(--muted);font-size:13.5px;line-height:1.5}
.sec-list{list-style:none;padding:0 18px 12px}
.sec-row{display:flex;align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--hair)}
.sec-row:first-child{border-top:0}
.sec-row .rowico{width:40px;height:40px;border-radius:10px}
.sec-t{flex:1;min-width:0;display:flex;flex-direction:column}
.sec-t b{font-size:13.5px;font-weight:600}
.sec-t small{font-size:12.5px;color:var(--muted);line-height:1.35}
.sw{position:relative;flex:none;width:44px;height:26px;border-radius:999px;background:#d5dae2;display:inline-block}
.sw i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.sw.is-on{background:var(--btn-orange)}
.sw.is-on i{left:21px}
.org-kv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 18px;padding:4px 18px 18px}
.org-kv>div{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid var(--hair)}
.org-kv dt{font-size:12.5px;color:var(--muted)}
.org-kv dd{margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.ctl-sub{display:flex;gap:8px;margin:14px 0 12px;flex-wrap:wrap}
.ctl-sbtn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer}
.ctl-sbtn.on{background:var(--tint-peach);border-color:rgba(255,90,31,.45);color:var(--orange-ink)}
.ctl-sp{display:none}
.ctl-sp.on{display:block}
.int-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));align-items:start}
.int-head{display:flex;align-items:center;gap:14px;padding:16px 18px 6px}
.int-head .rowico{width:44px;height:44px;border-radius:10px;flex:none}
.int-t{flex:1;min-width:0}
.int-t h3{font-size:16.5px;font-weight:700}
.int-t p{margin:2px 0 0;font-size:13px;color:var(--muted);line-height:1.4}
.int-note{padding:6px 18px 16px;font-size:13px;color:var(--muted);line-height:1.5}
.int-card .xero-panel{margin:0 14px 14px;box-shadow:none}
@media(max-width:1200px){.ctl-grid{grid-template-columns:1fr}.org-kv{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cc-split{flex-direction:column}.rp-line{flex-wrap:wrap;gap:6px}.rp-line b{flex-basis:100%}.org-kv{grid-template-columns:1fr}.ctl-tabs .ptab{padding:0 14px 0 10px}.rp-row b{flex-basis:96px}}

.ctl-tbl td{height:50px;padding:4px 14px}
.cc-head{padding:14px 18px 8px}
.ctl-foot{padding:8px 18px 10px}
.pj-cell{display:flex;align-items:center;gap:9px}
.pj-cell .plogo{flex:none}

.act .tl-item{padding:6px 16px 6px 14px}
.act .tl-ico{margin-top:2px}
.pw-tbl th{padding:8px 10px}

/* ==========================================================================
   PHONES AND NARROW WINDOWS: one column, wide tables scroll inside their own box,
   44px touch targets, nothing pushes the page sideways.
   ========================================================================== */
:root{--ink-orange:#b6380a}
.panel,.proj-left,.tix-left,.tix-layout>*,.proj-layout>*,.dash-main>*,.gm-grid>*,.fin-grid>*,.ctl-grid>*,.ctl-side>*,.gm-main>*,.gm-side>*,.fin-side>*{min-width:0}
.pa-hit{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;margin:0 -8px 0 -12px;cursor:pointer}
.pa-hit .pa-box{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pa-fake{position:relative;width:44px;height:44px;display:block}
.pa-fake::before{content:"";position:absolute;left:12px;top:12px;width:20px;height:20px;border:2px solid var(--btn-orange);border-radius:5px;background:#fff}
.pa-box:checked+.pa-fake::before{background:var(--btn-orange)}
.pa-box:checked+.pa-fake::after{content:"";position:absolute;left:18px;top:16px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.pa-box:focus-visible+.pa-fake::before{outline:2px solid var(--btn-orange);outline-offset:2px}
.pa-box:disabled+.pa-fake{opacity:.5}
@media(max-width:900px){
  .pw-tbl{table-layout:auto}
  .pw-tbl th:nth-child(n),.pw-tbl td{white-space:nowrap}
  .ptbl,.ttbl{min-width:0}
  .dash-main{grid-template-columns:minmax(0,1fr)}
  .proj-layout,.tix-layout{grid-template-columns:minmax(0,1fr)}
  .tcard .tbar{flex-wrap:wrap}
  .tsearch{flex:1 1 100%}
  .tsearch input,input.tq,.fsel,.sel-sm,.tbar select,.toolbar select,.fc-select{min-height:44px}
  .sortbtn{min-height:44px}
  .kbtn-ico,.rowmenu summary.kbtn-ico{width:44px;height:44px}
  .kbtn-ico .ic{width:20px;height:20px}
  .pg{min-width:44px;height:44px}
  .pgsize select{height:44px}
  .back-link{min-height:44px;display:inline-flex;align-items:center}
  .ph-star,.phd-title .ph-star{width:44px;height:44px}
  .lnk,.pipe2-more,.tsw-cell,.uc-all{min-height:44px;display:inline-flex;align-items:center}
  .tix-tsw .tsw-cell{min-height:44px}
  .fc-head .btn,.btn-view,.btn-sm{min-height:44px}
  .ai-tabs .ptab{min-height:44px}
  .sel-card select{min-height:44px}
  .gm-side .btn-split .btn{min-height:44px}
  .ps-row .btn-view{min-height:44px}
  .ps-row,.uc-row,.pa-row{flex-wrap:wrap}
  .chart-wrap{padding:0 8px}
}
@media(max-width:700px){
  .ph{flex-wrap:wrap}
  .ph-right{width:100%}
  .ph-actions{width:100%;flex-wrap:wrap}
  .tchips{flex-wrap:wrap}
  .ph-sel{flex-direction:column}
  .org-kv{grid-template-columns:1fr}
}

/* visually-hidden labels inside table cells must be positioned against the cell, or they escape the scrolling panel and widen the page */
.tbl th,.tbl td{position:relative}

@media(max-width:880px){
  #gsearch{width:100%;min-width:0;padding-right:12px}
  .kbd{display:none}
  .crumb{padding:0;min-width:44px;justify-content:center}
  .crumb #crumb-label{display:none}
  .topbar-spacer{display:none}
  .bell{width:44px;height:44px}
}
@media(max-width:900px){
  .sortbtn{min-width:44px}
  .back-link{min-width:44px}
  .ph-star{min-width:44px}
  .gm-side .fc-head .btn-split{width:auto}
  .uc-t a{display:inline-flex;align-items:center;min-height:44px}
}

@media(max-width:900px){
  a.back-link,.project-sheet a.back-link{min-height:44px;padding-top:0;padding-bottom:0}
  .gm-side .fc-head .btn-split .btn{min-height:44px}
}

/* Dashboard tabs (Adam, 23/10/2026: "make sure you use the screen. And align it in each tab").
   The open pane is given the height left in the window (--dash-fill, set by fitDashPanes) and every
   panel in it stretches so the edges line up: no ragged bottoms, no half-empty screen. */
.dash-tabs{margin-bottom:14px}
.dash-tabs .ptab svg{width:18px;height:18px;flex:none}
.dash-pane{display:flex;flex-direction:column;gap:14px;min-height:var(--dash-fill,auto)}
.dash-pane[hidden]{display:none}
.dash-pane .panel,.dash-pane .stat-grid,.dash-pane .tsw{margin:0}
.dash-ov>.dash-main{flex:1;margin:0}
.dash-ov .dash-main>.panel{display:flex;flex-direction:column}
.dash-needs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.dash-needs:has(#ny-col[hidden]){grid-template-columns:minmax(0,1fr)}
#ny-col,.dash-col{display:flex;flex-direction:column;gap:14px;min-width:0}
#ny-col[hidden]{display:none}
#ny-col>.panel,.dash-col>.panel,.dash-col>#enq-panel{flex:1 1 auto}
#enq-panel{display:flex;flex-direction:column}
#enq-panel>.panel{flex:1}
#enq-panel:empty{display:none}
.dash-pipe>.pipe2{flex:1;display:flex;flex-direction:column}
.dash-pipe .pipe2-cols{flex:1;align-items:stretch}
.dash-pipe .pipe2-col{display:flex;flex-direction:column}
.dash-pipe .pipe2-body{flex:1}
.dash-tix>.dash-clients{flex:1}
@media(max-width:1000px){.dash-pane{min-height:0}.dash-needs{grid-template-columns:minmax(0,1fr)}}

/* T-AIC-966 workflow build 2: cost and profit per project, the timer, the cost list and the total profit and loss.
   Only variables that exist in app.css: --line --hair --muted --muted-2 --text --red-ink --panel --orange --r. */
.cost-card .cost-body{padding:14px 18px 16px}
.cost-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.cost-cols .cost-row{flex-direction:column;align-items:flex-start;gap:2px;border:1px solid var(--line);border-radius:var(--r);padding:10px 12px}
.cost-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border-bottom:1px solid var(--hair);font-size:14px}
.cost-sum .cost-row:last-child{border-bottom:0}
.cost-row small{display:block;font-size:12px;color:var(--muted-2);font-weight:400}
.cost-row b{font-variant-numeric:tabular-nums;white-space:nowrap}
.cost-neg{color:var(--red-ink)}
.timer-card{padding:14px 16px 6px}
.timer-live{margin-bottom:10px}
.timer-clock{font-size:34px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text);line-height:1.1}
.timer-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px}
.timer-row input[type=text]{box-sizing:border-box;flex:1 1 220px;min-width:0;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:inherit;font-size:13px}
.timer-row input[type=text]:focus{outline:2px solid color-mix(in srgb,var(--orange) 35%,transparent);border-color:var(--orange)}
.timer-bill{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.timer-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:10px}
.cost-share{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px 14px;max-height:190px;overflow:auto;padding:8px 10px;border:1px solid var(--line);border-radius:8px}
.cost-share label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:400;color:var(--text)}
.cost-share input{width:auto}
.cost-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.pnl-tbl th .t-sub{font-weight:400}
.pnl-profit td{font-size:15px}
.pnl-sec td{background:var(--panel-2);padding-top:10px;padding-bottom:10px;border-top:1px solid var(--line)}
.tu-row td{border-top:2px solid var(--line)}
.co-row td{border-top:2px solid var(--line)}
.tu-na{white-space:normal}
@media(max-width:1200px){.cost-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.cost-cols{grid-template-columns:minmax(0,1fr)}.timer-clock{font-size:28px}.timer-row .btn{width:100%}}

/* BUILD3 PROPOSALS - BEGIN (T-AIC-967): the proposal builder screen. Variables used: --line, --line-2, --hair, --muted, --text, --field-bg, --wash, --panel-2, --orange, --orange-ink, --green-ink, --red-ink, --r. */
.pb-btns{display:inline-flex;gap:8px}
.pb-num-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--orange-ink);border:1px solid var(--line-2);border-radius:6px;padding:1px 6px;margin-right:4px;vertical-align:1px}
.modal.wide:has(.pb){max-width:980px}
.pb{display:block}
.pb>*+*{margin-top:12px}
.pb-h{margin:20px 0 4px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--orange-ink)}
.pb-h .muted{text-transform:none;letter-spacing:0;font-weight:400}
.pb-sub{color:var(--muted);font-size:12.5px}
.pb-tabs{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pb-tab{background:none;border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:12.5px;color:var(--muted);cursor:pointer}
.pb-tab.on{border-color:var(--orange);color:var(--orange-ink);font-weight:600}
.pb-table{width:100%;border-collapse:collapse;font-size:13px}
.pb-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:6px 6px;border-bottom:1px solid var(--line)}
.pb-table td{padding:5px 4px;border-bottom:1px solid var(--hair);vertical-align:middle}
.pb-in{width:100%;min-width:0;background:var(--field-bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:7px 9px;font:inherit}
.pb-in:focus{outline:none;border-color:var(--orange)}
.pb-in:disabled{background:var(--wash);color:var(--muted)}
.pb-n{width:92px;text-align:right}.pb-u{width:78px}.pb-b{width:104px}.pb-w{width:230px;display:inline-block;margin:4px 6px 0 0}
.pb-c{text-align:center}
.pb-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.pb-act{white-space:nowrap}
.pb-x{background:none;border:0;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;padding:2px 8px;border-radius:8px}
.pb-x:hover{color:var(--red-ink);background:var(--wash)}
.pb-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pb-totals{margin-left:auto;max-width:300px}
.pb-totals>div{display:flex;justify-content:space-between;padding:3px 4px}
.pb-totals .pb-grand{border-top:2px solid var(--text);margin-top:4px;padding-top:7px;font-size:15px}
.pb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pb-grid label{display:grid;gap:5px;font-size:12px;color:var(--muted)}
.pb-note{font-size:12.5px;color:var(--orange-ink);min-height:0}
.pb-note.ok{color:var(--green-ink);background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r);padding:8px 12px}
.pb-note:empty{display:none}
.pb-doc{background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r);padding:10px 14px;margin-bottom:8px}
@media(max-width:700px){.pb-grid{grid-template-columns:minmax(0,1fr)}.pb-table{display:block;overflow-x:auto}}
/* BUILD3 PROPOSALS - END */

/* BUILD4 MICROSOFT 365 - BEGIN (T-AIC-968: the project section and the Control panel card; assets/m365-ui.js) */
.m3{padding:4px 16px 16px}
.m3-sec{padding:12px 0;border-bottom:1px solid var(--hair)}
.m3-sec:last-child{border-bottom:0}
.m3-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.m3-head h4{margin:0;font-size:14px}
.m3-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px;margin:10px 0}
.m3-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.m3-form label:has(textarea){grid-column:1 / -1}
.m3-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.m3-gap{flex:1}
.m3-words{color:var(--muted)}
.m3-note{background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r);padding:8px 12px;font-size:13px}
.m3-slots{display:flex;flex-wrap:wrap;gap:6px 14px;margin:8px 0}
.m3-slot{font-size:13px;display:inline-flex;align-items:center;gap:6px}
.m3-sent h5{margin:12px 0 4px;font-size:12px;color:var(--muted)}
.m3-perms{margin:0 18px 8px;padding-left:18px;font-size:13px;color:var(--muted)}
.m3-row .btn[disabled]{opacity:.55;cursor:not-allowed}
@media(max-width:700px){.m3-form{grid-template-columns:minmax(0,1fr)}}
/* BUILD4 MICROSOFT 365 - END */

/* BUILD5 PITCH, APP STORES AND MARKETING - BEGIN (T-AIC-969: the project page's three panels; assets/wf5-ui.js) */
.wf5{padding:4px 16px 16px}
.wf5 > p.muted{margin:8px 0 6px}
.wf5-kv{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:4px 14px;padding:8px 0;border-bottom:1px solid var(--hair);font-size:13px;align-items:baseline}
.wf5-kv .k{color:var(--muted)}
.wf5-kv .v{min-width:0;overflow-wrap:anywhere}
.wf5-note{display:block;background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r);padding:8px 12px}
.wf5-store{margin-top:12px}
.wf5-store h5,.wf5-reports h5{margin:0 0 2px;font-size:12px;color:var(--muted)}
.wf5-reports{margin-top:16px}
.wf5-edit{margin-top:12px}
.wf5-edit > summary{display:inline-block;cursor:pointer;list-style:none}
.wf5-edit > summary::-webkit-details-marker{display:none}
.wf5-check{flex-direction:row !important;align-items:center;gap:8px !important;color:var(--text) !important}
.wf5-ga4 label{display:flex;align-items:center;gap:8px}
.wf5-frame{width:100%;height:min(70vh,640px);border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
@media(max-width:700px){.wf5-kv{grid-template-columns:minmax(0,1fr)}}
/* BUILD5 PITCH, APP STORES AND MARKETING - END */
