.btn{border:1px solid transparent;border-radius:4px;padding:7px 11px;font-weight:600;font-size:12px;line-height:1.15}.btn-primary{background:var(--primary);color:#fff}.btn-light{background:#fff;border-color:#d0d5dd;color:#344054}.btn-danger{background:#fff;border-color:#fda29b;color:#b42318}.btn-small{padding:5px 8px;font-size:11px}.btn-block{width:100%}.icon-btn{width:34px;height:34px;display:inline-grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:4px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.search-input{width:230px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.card-head{display:flex;justify-content:space-between;align-items:center;padding:11px 13px;border-bottom:1px solid var(--line)}.card-head h2{font-size:13px;margin:0}.card-body{padding:13px}
.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:9px;margin-bottom:14px}.kpi{background:#fff;border:1px solid var(--line);border-radius:5px;padding:12px;position:relative;overflow:hidden}.kpi:after{content:"";position:absolute;inset:auto 0 0 0;height:3px;background:var(--kpi,#155eef);transform:scaleX(0);transform-origin:left;animation:fill .8s ease forwards}@keyframes fill{to{transform:scaleX(1)}}.kpi-label{color:var(--muted);font-size:11px}.kpi-value{font-size:20px;font-weight:700;margin-top:5px}.kpi-note{font-size:10px;color:var(--muted);margin-top:3px}
.dashboard-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:12px;margin-bottom:12px}.chart-box{min-height:260px}.chart-canvas{width:100%;height:210px;display:block}.legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:11px}.legend span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--c);margin-right:5px}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:5px}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th{background:#f9fafb;color:#475467;text-align:left;font-size:11px;font-weight:700;padding:8px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:8px;border-bottom:1px solid #f0f2f5;vertical-align:middle}.data-table tbody tr:hover{background:#fafcff}.data-table tbody tr:last-child td{border-bottom:0}.actions{display:flex;gap:5px;white-space:nowrap}.empty-state{text-align:center;padding:32px;color:var(--muted)}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:700;background:#f2f4f7;color:#475467}.badge-success{background:#ecfdf3;color:#027a48}.badge-warning{background:#fffaeb;color:#b54708}.badge-danger{background:#fef3f2;color:#b42318}.badge-info{background:#eff8ff;color:#175cd3}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.form-grid .span-2{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:15px}.help-text{color:var(--muted);font-size:11px;font-weight:400}.section-title{font-size:14px;margin:0 0 10px}.notice{padding:9px 11px;border:1px solid #b2ddff;background:#eff8ff;color:#175cd3;border-radius:4px;margin-bottom:12px}.notice.warning{border-color:#fedf89;background:#fffaeb;color:#93370d}
.modal-backdrop{position:fixed;inset:0;background:rgba(16,24,40,.45);z-index:3000;display:grid;place-items:center;padding:18px}.modal{width:min(700px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:7px;box-shadow:0 20px 60px rgba(16,24,40,.2)}.modal-head{padding:13px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0;font-size:15px}.modal-body{padding:15px}.modal-close{border:0;background:transparent;font-size:20px;color:var(--muted)}
.toast-root{position:fixed;right:16px;bottom:16px;z-index:4000;display:grid;gap:7px}.toast{background:#101828;color:#fff;padding:10px 13px;border-radius:5px;box-shadow:0 8px 28px rgba(0,0,0,.2);animation:toastIn .2s ease}.toast.error{background:#b42318}.toast.success{background:#067647}@keyframes toastIn{from{transform:translateY(8px);opacity:0}}
.progress{height:7px;background:#eef2f6;border-radius:99px;overflow:hidden}.progress span{height:100%;display:block;background:linear-gradient(90deg,#155eef,#12b76a);width:0;animation:grow .9s ease forwards}@keyframes grow{to{width:var(--w)}}
.allocation-row{display:grid;grid-template-columns:1fr 120px 160px 34px;gap:7px;align-items:end;margin-bottom:7px}.allocation-total{display:flex;justify-content:flex-end;gap:16px;font-weight:700;padding-top:8px;border-top:1px solid var(--line)}
.timeline{display:grid;gap:8px}.timeline-item{display:grid;grid-template-columns:14px 1fr;gap:9px}.timeline-dot{width:10px;height:10px;border-radius:50%;background:#84adff;margin-top:4px;box-shadow:0 0 0 3px #eef4ff}.timeline-item strong{font-size:11px}.timeline-item p{margin:2px 0 0;color:var(--muted);font-size:11px}
@media(max-width:1200px){.kpi-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.dashboard-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.allocation-row{grid-template-columns:1fr 90px}.allocation-row>*:nth-child(3){grid-column:1/2}.search-input{width:100%}}

/* v0.2.0 workflow, evidence and access management */
.small{font-size:11px}.workspace-tabs{display:flex;gap:18px;border-bottom:1px solid var(--border,#e5e7eb);margin:-4px 0 14px}.workspace-tabs .tab{appearance:none;border:0;background:transparent;padding:9px 1px;font:inherit;color:#667085;cursor:pointer}.workspace-tabs .tab.active{color:#155eef;border-bottom:2px solid #155eef;font-weight:600}.workspace-body{min-height:180px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.detail-grid>div{border:1px solid #e6e9ef;border-radius:5px;padding:10px;background:#fbfcfe}.detail-grid span{display:block;color:#667085;font-size:11px;margin-bottom:3px}.report-text h3{font-size:12px;margin:14px 0 4px}.report-text p{margin:0;white-space:pre-wrap}.workflow-actions{border-top:1px solid #e6e9ef;padding-top:12px}.upload-panel{display:grid;grid-template-columns:150px 1fr 1fr auto;gap:8px;align-items:end;background:#f8fafc;border:1px solid #e6e9ef;padding:10px;border-radius:5px;margin-bottom:12px}.evidence-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}.evidence-card{border:1px solid #e6e9ef;border-radius:5px;padding:10px;display:flex;flex-direction:column;gap:6px;min-height:105px}.evidence-card span{font-size:11px;text-transform:uppercase;color:#667085}.evidence-card p{font-size:12px;margin:0;flex:1}.modal{max-width:720px}.modal:has(.workspace-tabs){max-width:980px}.compact-list>div{padding:10px 14px;border-bottom:1px solid #edf0f5;display:flex;justify-content:space-between;gap:12px}.compact-list span{color:#667085;font-size:12px}.chart-box{min-height:250px}@media(max-width:760px){.detail-grid{grid-template-columns:1fr}.upload-panel{grid-template-columns:1fr}.compact-list>div{display:block}.modal:has(.workspace-tabs){max-width:calc(100vw - 20px)}}

/* v0.4.0 activity impact fields */
.compact-impact{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.compact-impact label{font-size:12px}
.compact-impact input{min-height:34px}
@media(max-width:900px){.compact-impact{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.5.0b executive approval workspace */
.approval-inbox{display:grid}.approval-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid #edf0f5}.approval-item:last-child{border-bottom:0}.approval-item>div:first-child{display:grid;gap:3px}.approval-item span,.approval-item small{font-size:11px;color:var(--muted)}.executive-grid{grid-template-columns:1.35fr .65fr}@media(max-width:900px){.approval-item{align-items:flex-start;flex-direction:column}.executive-grid{grid-template-columns:1fr}}

/* v0.7.1 flexible allocation editor */
.allocation-row-v071 {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(110px, .65fr) minmax(150px, .9fr) minmax(180px, 1.15fr) 42px;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.allocation-row-v071 label { margin: 0; }
.allocation-total-v071 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}
.notice.success { border-color: #86efac; background: #f0fdf4; color: #166534; }
.notice.danger { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
@media (max-width: 900px) {
  .allocation-row-v071 { grid-template-columns: 1fr 1fr; }
  .allocation-row-v071 .remove { align-self: end; }
}
@media (max-width: 560px) {
  .allocation-row-v071 { grid-template-columns: 1fr; }
}

/* v0.7.2 activity planning controls */
.staff-field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:12px;font-weight:700;color:var(--text)}
.staff-checklist{min-height:116px;max-height:190px;overflow:auto;border:1px solid var(--border);border-radius:4px;background:#fff;padding:5px}
.staff-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;padding:8px 7px;border-radius:3px;cursor:pointer;font-weight:400!important}
.staff-choice:hover{background:#f5f8ff}.staff-choice input{width:15px!important;height:15px!important;min-height:auto!important;margin:0;flex:0 0 auto}
.staff-choice span{display:flex;flex-direction:column;gap:1px}.staff-choice strong{font-size:12px}.staff-choice small{font-size:11px;color:var(--muted)}
.empty-inline{padding:12px;color:var(--muted);font-size:12px;text-align:center}

/* v0.8.3 structured budget allocation editor */
.allocation-row-v071 {
  grid-template-columns: minmax(150px,1fr) minmax(170px,1.15fr) minmax(190px,1.25fr) minmax(160px,1fr) minmax(90px,.55fr) minmax(135px,.8fr) 42px;
}
.allocation-row-v071 .hidden { display:none; }
@media (max-width: 1200px) {
  .allocation-row-v071 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .allocation-row-v071 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .allocation-row-v071 { grid-template-columns: 1fr; }
}

/* v0.10.3 Admin View As / role preview */
.preview-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 18px;border-bottom:1px solid #f2cf77;background:#fff8e7;color:#744b00;font-size:13px;flex-wrap:wrap}
.preview-banner.hidden{display:none}
.preview-banner div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.preview-banner span{color:#7a6a49}
.admin-view-card{margin-bottom:16px}
.admin-view-card .card-head{align-items:center;gap:16px;flex-wrap:wrap}
.admin-role-shortcuts{display:flex;gap:8px;flex-wrap:wrap;padding:14px 16px 8px}
.admin-role-shortcuts button{border:1px solid var(--border,#d7dde8);background:#fff;border-radius:8px;padding:9px 13px;color:var(--text,#172033);font:inherit;cursor:pointer}
.admin-role-shortcuts button:hover{border-color:#155eef;color:#155eef}
.preview-groups{display:grid;gap:18px}
.preview-groups section{border-top:1px solid var(--border,#e1e6ef);padding-top:14px}
.preview-groups section:first-child{border-top:0;padding-top:0}
.preview-groups h3{margin:0 0 10px;font-size:14px}
.preview-role-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.preview-person{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:1px solid var(--border,#d7dde8);background:#fff;border-radius:9px;padding:12px;cursor:pointer;min-width:0}
.preview-person:hover{border-color:#155eef;background:#f7f9ff}
.preview-person strong{font-size:14px;color:var(--text,#172033)}
.preview-person span{font-size:12px;color:var(--muted,#667085);overflow-wrap:anywhere}
@media(max-width:700px){.preview-banner{padding:10px 12px}.preview-role-grid{grid-template-columns:1fr}.admin-role-shortcuts{padding-inline:12px}}

/* v0.10.3 language, strategy and chatter */
.language-switch,.login-lang{display:inline-flex;gap:2px;padding:2px;border:1px solid #dbe2ea;background:#f8fafc;border-radius:7px}.language-switch button,.login-lang button{border:0;background:transparent;padding:5px 7px;border-radius:5px;font-size:10px;font-weight:800;color:#667085}.language-switch button.active,.login-lang button.active{background:#155eef;color:#fff}.login-lang{margin:4px auto 10px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;background:#f1f5f9;border-radius:7px;padding:3px;margin-top:14px}.auth-tabs button{border:0;background:transparent;border-radius:5px;padding:7px;font-size:11px;color:#667085}.auth-tabs button.active{background:#fff;color:#155eef;font-weight:700;box-shadow:0 1px 2px rgba(16,24,40,.08)}
.strategy-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:24px;border-radius:14px;background:linear-gradient(120deg,#102a56,#155eef 60%,#0b8f74);color:#fff;box-shadow:0 12px 35px rgba(21,94,239,.16);margin-bottom:14px}.strategy-hero h2{font-size:28px;margin:10px 0 7px}.strategy-hero p{max-width:760px;line-height:1.6;margin:0;color:#eaf2ff}.strategy-lock{display:inline-flex;padding:5px 9px;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:rgba(255,255,255,.1);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.strategy-years{font-size:21px;font-weight:800;white-space:nowrap}.strategy-years span{opacity:.65;margin:0 8px}.strategy-nav{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}.strategy-nav button{border:1px solid #dce3ed;background:#fff;color:#475467;border-radius:8px;padding:8px 12px}.strategy-nav button.active{background:#155eef;border-color:#155eef;color:#fff}.strategy-three{display:grid;grid-template-columns:1.05fr 1.05fr 1.2fr;gap:12px;margin-bottom:14px}.strategy-card{border:1px solid #e1e7ef;background:#fff;border-radius:12px;padding:17px;box-shadow:var(--shadow)}.strategy-card small,.goal-detail small,.alignment-card small{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#667085}.strategy-card h3{margin:8px 0;font-size:18px}.strategy-card p{line-height:1.6;color:#475467}.strategy-card.vision{border-top:4px solid #155eef}.strategy-card.mission{border-top:4px solid #0b8f74}.strategy-card.values{border-top:4px solid #f79009}.value-line{display:flex;gap:8px;padding:5px 0;font-size:12px;line-height:1.45}.value-line span{color:#067647;font-weight:900}.goal-stack{display:grid;gap:12px}.goal-card{background:#fff;border:1px solid #e1e7ef;border-radius:12px;overflow:hidden}.goal-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#f8fbff;border-bottom:1px solid #e5ebf3}.goal-head>span{width:42px;height:32px;display:grid;place-items:center;border-radius:8px;background:#155eef;color:#fff;font-weight:800}.goal-head h3{margin:0;font-size:15px}.goal-card details{border-bottom:1px solid #eef2f6}.goal-card details:last-child{border-bottom:0}.goal-card summary{cursor:pointer;padding:12px 16px;color:#344054}.goal-detail{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 16px 14px}.goal-detail>div{background:#fafbfd;border:1px solid #edf1f5;border-radius:8px;padding:10px}.goal-detail p{font-size:11.5px;line-height:1.5;margin:5px 0 0;color:#475467}.alignment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}.alignment-card{background:#fff;border:1px solid #e1e7ef;border-radius:12px;padding:14px}.alignment-head{display:flex;justify-content:space-between;gap:10px}.alignment-head h3{margin:4px 0 8px}.alignment-head>span{font-size:10px;background:#eef4ff;color:#1849a9;padding:4px 7px;height:max-content;border-radius:999px}.align-row{display:grid;grid-template-columns:42px 1fr auto;gap:8px;align-items:center;padding:8px 0;border-top:1px solid #eef2f6}.align-row b{color:#155eef}.align-row span{font-size:11px}.align-row em{font-style:normal;font-size:9px;text-transform:uppercase;padding:3px 5px;border-radius:999px;background:#f2f4f7}.status-approved{color:#067647!important;background:#ecfdf3!important}.status-reviewed{color:#175cd3!important;background:#eff8ff!important}
.chatter-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px;min-height:68vh}.chatter-rail,.chatter-main{background:#fff;border:1px solid #e1e7ef;border-radius:12px;overflow:hidden}.chatter-rail{padding:10px;display:flex;flex-direction:column;gap:5px}.chatter-rail>button{border:0;background:transparent;text-align:left;padding:10px;border-radius:8px;color:#475467;font-weight:600}.chatter-rail>button.active{background:#eaf2ff;color:#155eef}.chatter-note{margin-top:auto;padding:10px;background:#fff8e7;border:1px solid #f5dfae;border-radius:8px;color:#7a5a1f;font-size:10.5px;line-height:1.45}.chatter-main{display:grid;grid-template-rows:auto 1fr auto;min-height:600px}.chatter-context-title{display:flex;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #edf1f5}.chatter-context-title span{font-size:11px;color:#667085}.chatter-activity-select{margin:10px;width:calc(100% - 20px)}.chatter-feed{padding:14px;overflow:auto;display:flex;flex-direction:column;gap:9px;max-height:58vh;background:linear-gradient(#fbfcfe,#fff)}.chat-message{display:flex;gap:8px;align-items:flex-start;max-width:78%}.chat-message.mine{align-self:flex-end;flex-direction:row-reverse}.chat-avatar{width:30px;height:30px;border-radius:9px;background:#eaf2ff;color:#155eef;display:grid;place-items:center;font-size:10px;font-weight:900;flex:0 0 30px}.chat-bubble{background:#f3f6fa;border:1px solid #e5ebf2;border-radius:5px 12px 12px 12px;padding:8px 10px;min-width:150px}.mine .chat-bubble{background:#eaf2ff;border-color:#d2e3ff;border-radius:12px 5px 12px 12px}.chat-meta{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-bottom:4px}.chat-meta strong{font-size:10.5px}.chat-meta span{font-size:9px;color:#7b8798}.chat-bubble p{margin:0;white-space:pre-wrap;line-height:1.45;font-size:12px}.mention{color:#155eef;font-weight:700}.chat-file{margin-top:7px;border:1px solid #d7e2ef;background:#fff;border-radius:6px;padding:5px 7px;color:#315b8d;font-size:10px}.chat-compose{padding:10px;border-top:1px solid #edf1f5;background:#fff}.chat-compose textarea{min-height:62px}.chat-compose>div{display:flex;align-items:center;justify-content:space-between;margin-top:7px}.chat-attach{font-size:11px;color:#52637a;cursor:pointer}.chat-attach input{display:none}.activity-chat .chatter-feed{min-height:300px;max-height:420px;border:1px solid #edf1f5;border-radius:9px}
@media(max-width:900px){.strategy-three,.goal-detail{grid-template-columns:1fr}.strategy-hero{align-items:flex-start;flex-direction:column}.chatter-shell{grid-template-columns:1fr}.chatter-rail{display:grid;grid-template-columns:repeat(3,1fr)}.chatter-note{grid-column:1/-1}.chatter-main{min-height:520px}.chat-message{max-width:94%}}
@media(max-width:560px){.language-switch{order:-1}.topbar-actions{gap:4px}.strategy-hero{padding:17px}.strategy-hero h2{font-size:22px}.chatter-rail{grid-template-columns:1fr}.chatter-note{grid-column:auto}}
.chatter-rail>button{display:flex;align-items:center;justify-content:space-between;gap:8px}.unread-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#d92d20;color:#fff;font-size:9px;font-weight:800}

/* v0.10.3 readability + soft-card + Galaxy-inspired Chatter refresh */
body{font-size:14px;line-height:1.55}
.card,.strategy-card,.goal-card,.alignment-card{box-shadow:0 5px 18px rgba(16,24,40,.055)}
.strategy-card{border:0!important;padding:20px}
.strategy-card.vision{background:#f3f7ff}.strategy-card.mission{background:#f1faf7}.strategy-card.values{background:#fff8ee}
.strategy-card small,.goal-detail small,.alignment-card small{font-size:11.5px}
.strategy-card h3{font-size:20px}.strategy-card p{font-size:14px;line-height:1.7}
.value-line{font-size:14px;line-height:1.6;padding:7px 0}
.goal-card{border:0;background:#fff}.goal-head{background:#f4f8fd;border-bottom:0;padding:16px 18px}.goal-head h3{font-size:17px}
.goal-card summary{padding:14px 18px;font-size:14px;font-weight:600}
.goal-detail{gap:12px;padding:0 18px 17px}.goal-detail>div{border:0;background:#f7f9fc;padding:13px;border-radius:11px}.goal-detail p{font-size:13.5px;line-height:1.65}
.alignment-card{border:0;background:#f8fbff;padding:17px}.alignment-head h3{font-size:17px}.align-row span{font-size:13px}.align-row em{font-size:10px}
.strategy-nav button{font-size:13px;padding:9px 13px}

.chatter-shell{grid-template-columns:230px minmax(0,1fr);gap:14px}.chatter-rail,.chatter-main{border:0;box-shadow:0 6px 22px rgba(16,24,40,.07);border-radius:16px}.chatter-rail{background:#f4f7fb;padding:12px}.chatter-rail>button{font-size:13.5px;padding:12px;border-radius:11px}.chatter-rail>button.active{background:#dfeaff;color:#0d4fc4}.chatter-note{border:0;background:#fff3d6;font-size:12px;line-height:1.55;padding:12px}
.chatter-main{background:#fff}.chatter-context-title{padding:15px 18px;border-bottom:0;background:#f8fafc}.chatter-context-title strong{font-size:15px}.chatter-context-title span{font-size:12.5px}.chatter-activity-select{font-size:14px;padding:10px 12px}
.chatter-feed{padding:18px;gap:12px;max-height:62vh;background:#eef3f9}
.chat-message{max-width:76%;gap:10px}.chat-message.mine{align-self:flex-end}.chat-message.incoming{align-self:flex-start}
.chat-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#dce7f5;color:#24517f;font-size:12px;border:0;overflow:hidden}.chat-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.chat-bubble{border:0;border-radius:7px 18px 18px 18px;padding:10px 13px;background:#ffffff;color:#24364b;box-shadow:0 2px 8px rgba(16,24,40,.08);min-width:170px}
.mine .chat-bubble{background:#2f6fe4;color:#fff;border-radius:18px 7px 18px 18px;box-shadow:0 3px 10px rgba(47,111,228,.22)}
.chat-meta{margin-bottom:5px;gap:12px}.chat-meta strong{font-size:12.5px}.chat-meta span{font-size:10.5px;color:#708196}.mine .chat-meta span{color:#dce8ff}.mine .chat-meta strong{color:#fff}
.chat-bubble p{font-size:14px;line-height:1.55}.mine .mention{color:#fff3a8}.mention{color:#155eef}.chat-file{font-size:11.5px;border:0;border-radius:10px;padding:7px 9px}.mine .chat-file{background:rgba(255,255,255,.16);color:#fff}
.chat-compose{padding:13px 15px 11px;border-top:0;background:#f8fafc}.chat-input-wrap{display:flex;align-items:flex-end;gap:9px;background:#dfe8f3;border-radius:22px;padding:7px 8px 7px 14px;box-shadow:inset 0 0 0 1px rgba(78,103,133,.12)}.chat-compose textarea{min-height:48px!important;max-height:140px;resize:none;border:0!important;background:transparent!important;box-shadow:none!important;padding:12px 4px!important;font-size:14px!important;line-height:1.45;color:#172b4d}.chat-compose textarea::placeholder{color:#647992}.chat-compose textarea:focus{outline:0!important}.chat-send-btn{width:40px;height:40px;flex:0 0 40px;border:0;border-radius:50%;background:#2f6fe4;color:#fff;font-size:18px;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 9px rgba(47,111,228,.28)}.chat-send-btn:hover{background:#245fc8}.chat-compose-foot{display:flex;justify-content:space-between;align-items:center;margin-top:7px!important;padding:0 5px;color:#687b91;font-size:11px}.chat-attach{font-size:12px;color:#405f83}.chat-message.sending{opacity:.74}.chat-message.send-failed .chat-bubble{outline:2px solid #d92d20}.activity-chat .chatter-feed{border:0;border-radius:14px;min-height:320px}
.profile-photo-editor{display:flex;align-items:center;gap:18px}.profile-photo-preview{width:92px;height:92px;flex:0 0 92px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#dce8f7;color:#22558e;font-size:26px;font-weight:800}.profile-photo-preview img{width:100%;height:100%;object-fit:cover}.profile-photo-editor strong{font-size:16px}.profile-photo-editor p{font-size:13px;max-width:420px}.profile-photo-button{display:inline-flex;margin-top:7px}.profile-photo-button input{display:none}.profile-photo-help{display:block;margin-top:7px;color:#7b8798}.user-avatar{overflow:hidden;border-radius:50%!important}.user-avatar img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:900px){.chat-message{max-width:88%}.strategy-card p,.value-line,.goal-detail p{font-size:14px}}
@media(max-width:560px){.chatter-feed{padding:12px}.chat-message{max-width:94%}.chat-avatar{width:34px;height:34px;flex-basis:34px}.chat-bubble p{font-size:14px}.profile-photo-editor{align-items:flex-start;flex-direction:column}}

/* v0.10.3 visual refinement: readable strategy + Galaxy-inspired Chatter */
.strategy-hero{padding:30px 28px;border-radius:16px;box-shadow:0 14px 34px rgba(25,67,130,.14);background:linear-gradient(120deg,#15366d 0%,#1764dc 58%,#138f83 100%)}
.strategy-hero h2{font-size:32px;letter-spacing:-.02em}.strategy-hero p{font-size:15px;line-height:1.7;max-width:850px}.strategy-lock{font-size:11px}.strategy-years{font-size:23px}
.goal-stack{gap:14px}.goal-card{border:0;box-shadow:0 6px 20px rgba(28,52,84,.055)}.goal-card:nth-child(3n+1){background:#fbfdff}.goal-card:nth-child(3n+2){background:#fbfefd}.goal-card:nth-child(3n){background:#fdfcff}
.goal-head{padding:16px 18px;background:rgba(234,242,255,.62);border-bottom:0}.goal-head h3{font-size:17px;line-height:1.45}.goal-head>span{width:46px;height:34px;font-size:14px}
.goal-card summary{padding:14px 18px;font-size:14.5px;line-height:1.5;font-weight:550}.goal-detail{padding:2px 18px 18px;gap:12px}.goal-detail>div{border:0;background:rgba(247,249,252,.9);padding:13px}.goal-detail p{font-size:14px;line-height:1.65}.value-line{font-size:14px;line-height:1.6}
.alignment-card{border:0;box-shadow:0 5px 18px rgba(28,52,84,.055)}.align-row span{font-size:13.5px;line-height:1.5}
.chatter-shell{grid-template-columns:250px minmax(0,1fr);gap:16px}.chatter-rail,.chatter-main{border:0;box-shadow:0 8px 28px rgba(28,52,84,.06)}.chatter-rail{background:#f8faff;padding:14px}.chatter-rail>button{font-size:15px;padding:14px 15px;border-radius:12px}.chatter-rail>button.active{background:#dce9ff;color:#1458b8}.chatter-note{font-size:13px;line-height:1.6;border:0;background:#fff3d7;padding:14px}
.chatter-main{border-radius:16px}.chatter-context-title{padding:17px 20px}.chatter-context-title strong{font-size:17px}.chatter-context-title span{font-size:13px}.chatter-feed{padding:20px 22px;gap:14px;background:#edf3fa;max-height:61vh}.chat-message{max-width:min(72%,760px);gap:10px}.chat-avatar{width:40px;height:40px;flex-basis:40px;border-radius:50%;font-size:13px;background:#d9e8fb;color:#194e82}.chat-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.chat-bubble{position:relative;border:0;background:#fff;border-radius:7px 18px 18px 18px;padding:12px 15px;min-width:190px;box-shadow:0 3px 10px rgba(30,56,86,.09)}.mine .chat-bubble{background:#2f73e6;color:#fff;border-radius:18px 7px 18px 18px}.chat-meta{gap:12px;margin-bottom:7px;flex-wrap:wrap;justify-content:flex-start}.chat-meta strong{font-size:13.5px}.chat-meta span{font-size:11.5px;color:#71839a}.mine .chat-meta span{color:#dce9ff}.chat-bubble p{font-size:15px;line-height:1.55}.mine .mention{color:#fff}.chat-file{font-size:12px}.mine .chat-file{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.28);color:#fff}
.chat-compose{padding:16px 18px;background:#f9fbfd}.chat-input-wrap{position:relative;display:flex;align-items:flex-end;gap:8px;background:#dfe9f6;border:1px solid #cbd9e9;border-radius:26px;padding:6px 7px 6px 12px}.chat-input-wrap textarea{border:0!important;background:transparent!important;box-shadow:none!important;font-size:15px;line-height:1.5;min-height:46px;padding:11px 6px;resize:none}.chat-send-btn{width:46px;height:46px;flex:0 0 46px;border:0;border-radius:50%;background:#2f73e6;color:#fff;font-size:19px;box-shadow:0 4px 12px rgba(47,115,230,.28);cursor:pointer}.chat-compose-foot{font-size:12.5px;color:#60738c}.chat-attach,.chat-emoji-btn{font-size:13px;color:#405a78}.chat-tools{display:flex;align-items:center;gap:10px}.chat-emoji-btn{border:0;background:transparent;cursor:pointer;padding:4px 6px;border-radius:8px}.chat-emoji-btn:hover{background:#e8eef6}
.emoji-picker{position:absolute;left:14px;bottom:74px;width:310px;max-width:calc(100vw - 48px);padding:12px;background:#fff;border:1px solid #dce5ef;border-radius:16px;box-shadow:0 14px 34px rgba(28,52,84,.18);z-index:30;display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.emoji-picker[hidden]{display:none}.emoji-picker button{border:0;background:transparent;border-radius:8px;font-size:21px;padding:5px;cursor:pointer}.emoji-picker button:hover{background:#eef4fb}
.chat-reaction-action{position:absolute;right:8px;bottom:-13px;border:0;background:#fff;border-radius:999px;box-shadow:0 2px 8px rgba(30,56,86,.15);font-size:13px;padding:3px 7px;cursor:pointer;opacity:0;transition:.15s}.chat-message:hover .chat-reaction-action{opacity:1}.mine .chat-reaction-action{right:auto;left:8px}.reaction-picker{position:absolute;bottom:-39px;right:0;display:flex;gap:3px;padding:4px 6px;border-radius:999px;background:#fff;box-shadow:0 5px 18px rgba(30,56,86,.18);z-index:15}.mine .reaction-picker{right:auto;left:0}.reaction-picker button{border:0;background:transparent;font-size:16px;cursor:pointer;padding:2px}.chat-reactions{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}.reaction-chip{border:0;border-radius:999px;background:#edf3fb;padding:2px 7px;font-size:12px;cursor:pointer}.mine .reaction-chip{background:rgba(255,255,255,.18);color:#fff}.reaction-chip.mine-reacted{outline:1px solid currentColor}
@media(max-width:900px){.chatter-shell{grid-template-columns:1fr}.chat-message{max-width:88%}.strategy-hero h2{font-size:28px}}
@media(max-width:560px){.chat-message{max-width:95%}.chatter-feed{padding:14px 12px}.chat-avatar{width:36px;height:36px;flex-basis:36px}.chat-bubble p{font-size:14.5px}.strategy-hero{padding:21px}.strategy-hero h2{font-size:25px}.goal-card summary{font-size:14px}}


/* v0.10.3 Chatter polish: HMM teal bubbles + large emoji-only messages */
.chatter-shell{margin-top:2px}
.chatter-feed{scroll-padding-top:18px}
.chat-message{max-width:min(68%,700px)}
.chat-bubble{background:#94b8b8;color:#fff;border-radius:8px 18px 18px 18px;padding:10px 14px;min-width:0;box-shadow:0 3px 10px rgba(52,88,88,.14)}
.mine .chat-bubble{background:#33cccc;color:#fff;border-radius:18px 8px 18px 18px;box-shadow:0 3px 10px rgba(51,204,204,.22)}
.chat-meta{margin-bottom:5px}.chat-meta strong,.chat-meta span,.incoming .chat-meta strong,.incoming .chat-meta span,.mine .chat-meta strong,.mine .chat-meta span{color:#fff}.chat-meta span{opacity:.86}
.chat-bubble p{color:#fff;font-size:15.5px;line-height:1.52}.incoming .mention,.mine .mention{color:#fff;font-weight:800;text-decoration:underline;text-decoration-color:rgba(255,255,255,.55)}
.incoming .chat-file,.mine .chat-file{background:rgba(255,255,255,.17);color:#fff;border:1px solid rgba(255,255,255,.28)}
/* Emoji-only posts float without any conversation bubble background. */
.chat-message.emoji-only .chat-bubble,.chat-message.emoji-only.mine .chat-bubble{background:transparent!important;box-shadow:none!important;padding:2px 4px;min-width:0;border-radius:0;color:inherit;overflow:visible}
.chat-message.emoji-only .chat-meta{margin:0 0 1px 2px}
.chat-message.emoji-only .chat-meta strong{color:#43566e!important;font-size:12px}.chat-message.emoji-only .chat-meta span{color:#6d8198!important;opacity:1;font-size:10.5px}
.chat-message.emoji-only .chat-bubble p{font-size:52px;line-height:1.12;letter-spacing:2px;color:inherit;margin:0;text-shadow:0 2px 5px rgba(30,56,86,.10)}
.chat-message.emoji-only .chat-reaction-action{bottom:-8px}
.chat-message.emoji-only .chat-reactions{margin-top:2px}
/* Contained, high-contrast emoji grid anchored to the composer. */
.chat-compose{position:relative}
.emoji-picker{left:18px;bottom:78px;width:390px;max-width:min(390px,calc(100vw - 56px));max-height:310px;overflow:auto;padding:14px;background:#fff;border:1px solid #d8e3eb;border-radius:18px;box-shadow:0 18px 42px rgba(25,55,80,.22);grid-template-columns:repeat(6,minmax(46px,1fr));gap:8px;z-index:120}
.emoji-picker button{min-width:46px;min-height:46px;display:grid;place-items:center;background:#f3f8f8;border:1px solid #e2eeee;border-radius:12px;font-size:31px;line-height:1;padding:6px;transition:transform .12s,background .12s,box-shadow .12s}
.emoji-picker button:hover{background:#dff5f5;transform:scale(1.08);box-shadow:0 3px 10px rgba(51,204,204,.16)}
.reaction-picker button{font-size:22px;padding:4px}.reaction-chip{font-size:13px}
@media(max-width:900px){.chat-message{max-width:82%}}
@media(max-width:560px){.chat-message{max-width:94%}.chat-message.emoji-only .chat-bubble p{font-size:46px}.emoji-picker{left:10px;bottom:82px;width:calc(100vw - 64px);max-width:calc(100vw - 64px);grid-template-columns:repeat(5,1fr);gap:6px}.emoji-picker button{min-width:42px;min-height:42px;font-size:28px}}

/* Keep the Chatter scope rail below the sticky application header while the page scrolls. */
@media(min-width:901px){.chatter-rail{position:sticky;top:86px;align-self:start;max-height:calc(100vh - 108px)}}

/* v0.10.4 Chatter collaboration refinement */
.chatter-rail>button{font-size:15px!important;font-weight:600}
.chatter-context-row{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#f8fafc}
.chatter-context-row .chatter-activity-select{flex:1;margin:0;min-width:0}
.context-actions{display:flex;align-items:center;gap:12px}.context-actions>span{color:#667085}
.presence-wrap{position:relative;margin-left:auto}.online-count{border:0;background:#eaf5f2;color:#246b5f;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:700;display:flex;align-items:center;gap:6px;cursor:pointer}.online-dot{width:8px;height:8px;border-radius:50%;background:#20b26b;box-shadow:0 0 0 3px rgba(32,178,107,.13);display:inline-block;flex:0 0 8px}.online-popover{position:absolute;right:0;top:calc(100% + 8px);width:300px;max-width:calc(100vw - 44px);max-height:320px;overflow:auto;background:#fff;border:1px solid #dfe7ef;border-radius:14px;box-shadow:0 14px 36px rgba(24,48,75,.18);padding:8px;z-index:150}.online-popover[hidden]{display:none}.online-person{display:grid;grid-template-columns:36px 1fr 10px;align-items:center;gap:9px;padding:8px;border-radius:10px}.online-person:hover{background:#f4f8fb}.online-person strong{display:block;font-size:12.5px;color:#243b53}.online-person span{display:block;font-size:11px;color:#718096;margin-top:1px}.online-person i{width:8px;height:8px;border-radius:50%;background:#20b26b}.online-mini-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#dceaf8;color:#20558c;font-size:11px;font-weight:800;overflow:hidden}.online-mini-avatar img{width:100%;height:100%;object-fit:cover}.online-empty{padding:12px;color:#718096;font-size:12px;line-height:1.45}
.chat-avatar{position:relative}.chat-avatar.is-online::after{content:"";position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border-radius:50%;background:#20b26b;border:2px solid #edf3fa}

/* Content-fitting bubbles. The compact metadata stacks so short messages stay short. */
.chat-message{width:fit-content;max-width:min(72%,700px);align-self:flex-start}.chat-message.mine{align-self:flex-end}.chat-bubble{display:inline-block;width:fit-content;min-width:0;max-width:620px;padding:10px 13px}.chat-meta{display:block;margin-bottom:5px}.chat-meta strong{display:block;font-size:13.5px;line-height:1.25}.chat-meta span{display:block;font-size:10.5px;line-height:1.3;margin-top:2px;white-space:nowrap}.chat-bubble p{width:auto;max-width:590px}.chat-message.emoji-only{margin-top:0;margin-bottom:0}.chat-message.emoji-only .chat-bubble p{font-size:44px;line-height:1.08;letter-spacing:1px}.chat-message.emoji-only .chat-meta{margin-bottom:1px}.chat-message.emoji-only+.chat-message.emoji-only{margin-top:-5px}

/* Message menu, reply quote and soft-delete state. */
.message-menu-wrap{position:absolute;top:5px;right:-31px;z-index:25}.mine .message-menu-wrap{right:auto;left:-31px}.message-menu-btn{width:27px;height:27px;border:0;border-radius:50%;background:#fff;color:#5b6b7e;box-shadow:0 2px 9px rgba(28,52,84,.15);font-size:18px;line-height:1;cursor:pointer;opacity:0;transition:.15s}.chat-message:hover .message-menu-btn,.message-menu-btn:focus{opacity:1}.message-menu{position:absolute;right:0;top:31px;width:170px;padding:5px;background:#fff;border:1px solid #e0e7ef;border-radius:11px;box-shadow:0 12px 28px rgba(25,50,78,.18);z-index:40}.mine .message-menu{right:auto;left:0}.message-menu[hidden]{display:none}.message-menu button{width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:8px;font-size:12px;color:#334e68;cursor:pointer}.message-menu button:hover{background:#f2f6f9}.message-menu button.danger{color:#b42318}.reply-quote{display:block;width:100%;max-width:430px;border:0;border-left:3px solid rgba(255,255,255,.75);background:rgba(255,255,255,.15);color:#fff;text-align:left;border-radius:7px;padding:7px 9px;margin:0 0 7px;cursor:pointer}.reply-quote strong,.reply-quote span{display:block;color:#fff}.reply-quote strong{font-size:11.5px}.reply-quote span{font-size:11px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.deleted-message .chat-bubble{background:#a8b8b8!important;box-shadow:none}.deleted-copy{opacity:.85}.deleted-copy em{font-style:italic}.composer-reply{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eaf5f5;border-left:4px solid #33cccc;border-radius:10px;padding:8px 10px;margin:0 0 9px}.composer-reply div{min-width:0}.composer-reply strong,.composer-reply span{display:block}.composer-reply strong{font-size:12px;color:#216f75}.composer-reply span{font-size:11.5px;color:#607782;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.composer-reply button{border:0;background:transparent;color:#607782;font-size:20px;cursor:pointer}.message-highlight .chat-bubble{animation:messageFlash 1.45s ease}@keyframes messageFlash{0%,100%{outline:0 solid rgba(255,214,10,0)}35%{outline:5px solid rgba(255,214,10,.38)}}

/* Typing indicator: lightweight WhatsApp-style bouncing dots. */
.typing-indicator{align-self:flex-start;display:flex;align-items:center;gap:8px;margin:1px 0 2px 48px;padding:7px 10px;border-radius:14px;background:rgba(255,255,255,.8);color:#63778d;box-shadow:0 2px 8px rgba(30,56,86,.06)}.typing-label{font-size:11px}.typing-dots{display:flex;gap:3px;align-items:center}.typing-dots i{width:6px;height:6px;border-radius:50%;background:#5d788f;animation:typingBounce 1s infinite ease-in-out}.typing-dots i:nth-child(2){animation-delay:.14s}.typing-dots i:nth-child(3){animation-delay:.28s}@keyframes typingBounce{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}@media(prefers-reduced-motion:reduce){.typing-dots i{animation:none;opacity:.8}}

/* Larger, easier-to-access emoji pack while keeping emoji tiles crisp. */
.emoji-picker{left:18px;bottom:80px;width:540px;max-width:min(540px,calc(100vw - 56px));max-height:400px;overflow:auto;padding:13px;background:#fff;border:1px solid #d8e3eb;border-radius:18px;box-shadow:0 18px 42px rgba(25,55,80,.22);display:block;z-index:160}.emoji-picker[hidden]{display:none}.emoji-picker-title{font-size:12px;font-weight:750;color:#40566d;padding:2px 4px 10px;position:sticky;top:-13px;background:#fff;z-index:2}.emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(48px,1fr));gap:7px}.emoji-grid button{min-width:48px;min-height:48px;display:grid;place-items:center;background:#f3f8f8;border:1px solid #e2eeee;border-radius:11px;font-size:29px;line-height:1;padding:5px;cursor:pointer}.emoji-grid button:hover{background:#dff5f5;transform:scale(1.06)}
.activity-chat-presence{font-size:12px;color:#526c7e;display:flex;align-items:center;gap:7px;margin:0 0 8px;padding:6px 4px}

@media(max-width:900px){.chat-message{max-width:86%}.chatter-context-row{flex-wrap:wrap}.presence-wrap{margin-left:0}.context-actions{gap:7px}}
@media(max-width:560px){.chat-message{max-width:94%}.chat-message.emoji-only .chat-bubble p{font-size:40px}.emoji-picker{left:8px;bottom:82px;width:calc(100vw - 58px);max-width:calc(100vw - 58px);max-height:360px}.emoji-grid{grid-template-columns:repeat(5,1fr);gap:6px}.emoji-grid button{min-width:43px;min-height:43px;font-size:27px}.message-menu-btn{opacity:1}.chat-meta span{white-space:normal}.online-popover{right:auto;left:0}.typing-indicator{margin-left:42px}}

/* v0.10.5 Chatter bubble + emoji ergonomics */
/* Messages stay low-profile vertically and use horizontal room before wrapping. */
.chat-message{width:fit-content;max-width:min(76%,780px)}
.chat-bubble{display:inline-block;width:fit-content;min-width:0;max-width:740px;padding:6px 11px}
.chat-meta{display:flex;align-items:baseline;justify-content:flex-start;gap:8px;margin-bottom:2px;white-space:nowrap}
.chat-meta strong{display:inline;font-size:12.5px;line-height:1.2}
.chat-meta span{display:inline;font-size:9.5px;line-height:1.2;margin-top:0;white-space:nowrap}
.chat-bubble p{width:auto;max-width:710px;line-height:1.35}
/* Sent emoji-only messages are intentionally much smaller than the picker tiles. */
.chat-message.emoji-only .chat-bubble{padding:2px 4px}
.chat-message.emoji-only .chat-bubble p{font-size:30px;line-height:1;letter-spacing:0}
.chat-message.emoji-only .chat-meta{margin-bottom:1px}
/* Emoji pack opens on the far-left side and above the writing field. */
.chat-compose{position:relative}
.emoji-picker{left:4px;right:auto;bottom:88px;width:560px;max-width:min(560px,calc(100% - 18px));height:330px;max-height:330px;overflow:hidden;padding:12px 10px 10px;background:#fff;border:1px solid #d8e3eb;border-radius:18px;box-shadow:0 18px 42px rgba(25,55,80,.22);z-index:160}
.emoji-picker-title{height:30px;padding:2px 5px 8px;position:static;background:#fff}
.emoji-grid{height:278px;overflow-y:auto;overscroll-behavior:contain;padding:2px 3px 8px;display:grid;grid-template-columns:repeat(10,minmax(38px,1fr));grid-auto-rows:40px;gap:4px;scrollbar-gutter:stable}
.emoji-grid button{min-width:38px;min-height:38px;width:100%;height:38px;font-size:23px;line-height:1;padding:3px;border-radius:9px}
@media(max-width:900px){.chat-message{max-width:90%}.chat-bubble{max-width:680px}.chat-bubble p{max-width:650px}.emoji-picker{left:2px;width:500px;max-width:calc(100% - 8px)}}
@media(max-width:560px){.chat-message{max-width:95%}.chat-bubble{padding:5px 9px;max-width:calc(100vw - 88px)}.chat-bubble p{max-width:calc(100vw - 110px)}.chat-meta{gap:5px;white-space:normal;flex-wrap:wrap}.chat-message.emoji-only .chat-bubble p{font-size:28px}.emoji-picker{left:0;bottom:84px;width:calc(100% - 2px);max-width:calc(100% - 2px);height:310px;max-height:310px}.emoji-grid{height:258px;grid-template-columns:repeat(7,minmax(36px,1fr));grid-auto-rows:38px}.emoji-grid button{min-width:36px;min-height:36px;height:36px;font-size:22px}}


/* v0.10.7 MB360 Chatter parity */
.chatter-shell{background:transparent!important;border:0!important;box-shadow:none!important}.chatter-main,.activity-chat{min-width:0!important;overflow:hidden!important;background:#edf3f9!important;border:0!important;border-radius:0!important;box-shadow:none!important}.chatter-context{border:0!important;border-radius:0!important;box-shadow:none!important}.chatter-feed{background:#edf3f9!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:18px!important}.chat-message{display:flex!important;gap:9px!important;align-items:flex-end!important;width:fit-content!important;max-width:min(76%,760px)!important}.chat-message.mine{align-self:flex-end!important;flex-direction:row-reverse!important}.chat-message.incoming{align-self:flex-start!important}.chat-content{min-width:0;display:flex;flex-direction:column}.chat-message.mine .chat-content{align-items:flex-end}.chat-message.incoming .chat-content{align-items:flex-start}.chat-avatar{width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#dbeafe!important;color:#1e4f83!important;font-size:12px!important;font-weight:850!important;position:relative!important}.chat-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}.chat-avatar.is-online:after{content:"";position:absolute;right:0;bottom:0;width:9px;height:9px;border-radius:50%;background:#22c55e;border:2px solid #edf3f9}.chat-bubble{position:relative!important;display:inline-block!important;width:fit-content!important;min-width:0!important;max-width:700px!important;padding:7px 11px 8px!important;border:0!important;border-radius:16px 16px 16px 5px!important;box-shadow:0 2px 8px rgba(15,23,42,.07)!important;background:#d9e6e6!important;color:#000!important}.chat-message.mine:not(.emoji-only) .chat-bubble{background:#6fb8b8!important;color:#fff!important;border-radius:16px 16px 5px 16px!important}.chat-message.incoming:not(.emoji-only) .chat-bubble{background:#d9e6e6!important;color:#000!important}.chat-message.mine:not(.emoji-only) .chat-bubble,.chat-message.mine:not(.emoji-only) .chat-bubble *{color:#fff!important}.chat-message.incoming:not(.emoji-only) .chat-bubble,.chat-message.incoming:not(.emoji-only) .chat-bubble *{color:#000!important}.chat-meta.time-only{display:flex!important;margin:0 0 3px!important;padding:0!important;line-height:1!important}.mine .chat-meta.time-only{justify-content:flex-end!important}.incoming .chat-meta.time-only{justify-content:flex-start!important}.chat-meta.time-only span{font-size:9px!important;font-weight:500!important;opacity:.68!important;color:inherit!important}.chat-bubble p{font-size:15px!important;line-height:1.42!important;margin:2px 0!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important;max-width:650px!important}.chat-message.emoji-only .chat-bubble,.chat-message.emoji-only.mine .chat-bubble{background:transparent!important;box-shadow:none!important;padding:2px 4px!important;color:inherit!important;border-radius:0!important}.chat-message.emoji-only .chat-bubble p{font-size:32px!important;line-height:1!important}.chat-message.emoji-only .chat-meta{display:none!important}.chat-below{display:flex;align-items:center;gap:7px;margin-top:3px;min-height:22px}.mine .chat-below{flex-direction:row-reverse}.chat-reactions{display:flex!important;gap:5px!important;flex-wrap:wrap!important;margin:0!important}.reaction-chip{border:0!important;background:transparent!important;padding:0 2px!important;font-size:17px!important;box-shadow:none!important}.reaction-chip.mine-reacted{outline:0!important;transform:scale(1.08)}.chat-quick-actions{display:flex;gap:2px;opacity:.72}.chat-quick-actions button{border:0;background:transparent;color:#64748b;font-size:14px;padding:2px 4px;cursor:pointer}.chat-deleted-line{font-size:11px;font-style:italic;color:#94a3b8;padding:2px 4px}.chat-deleted-line.mine{align-self:flex-end}.chat-deleted-line.incoming{align-self:flex-start}.chat-compose{position:sticky!important;bottom:0!important;z-index:70!important;background:#f8fafc!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:10px 12px!important}.chat-input-wrap{min-width:0!important;overflow:hidden!important}.chat-input-wrap textarea{min-width:0!important;width:100%!important;max-width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important;resize:none!important}.chat-compose-foot{border:0!important}.chat-emoji-btn{font-size:11px!important;padding:2px 4px!important}.emoji-picker{left:4px!important;right:auto!important;bottom:76px!important;width:520px!important;max-width:min(520px,calc(100% - 12px))!important;max-height:330px!important;overflow-y:auto!important;overflow-x:hidden!important;z-index:180!important}.emoji-grid{grid-template-columns:repeat(8,minmax(42px,1fr))!important}.emoji-grid button{min-width:42px!important;min-height:42px!important;font-size:25px!important}.typing-indicator{border:0!important;background:transparent!important;box-shadow:none!important}.chat-delete-overlay{position:fixed;inset:0;background:rgba(15,23,42,.28);display:grid;place-items:center;z-index:9999;padding:18px}.chat-delete-card{width:min(360px,94vw);background:#fff;border-radius:16px;padding:18px;box-shadow:0 20px 50px rgba(15,23,42,.25)}.chat-delete-card h3{margin:0 0 6px}.chat-delete-card p{margin:0 0 14px;color:#64748b;font-size:13px}.chat-delete-choices{display:grid;gap:8px}.chat-delete-choices button,.chat-delete-cancel{border:1px solid #dbe3ed;background:#fff;border-radius:10px;padding:10px 12px;text-align:left;cursor:pointer}.chat-delete-choices button.danger{color:#b42318}.chat-delete-cancel{margin-top:10px;width:100%;text-align:center;background:#f8fafc}html,body,.page-content{touch-action:pan-x pan-y pinch-zoom}@media(max-width:900px){.chat-message{max-width:90%!important}.chat-bubble p{font-size:17px!important;line-height:1.44!important}.chatter-feed{padding:13px 10px!important}.emoji-picker{width:calc(100% - 8px)!important;max-width:calc(100% - 8px)!important}.emoji-grid{grid-template-columns:repeat(6,1fr)!important}}@media(max-width:560px){.chat-message{max-width:95%!important}.chat-avatar{width:34px!important;height:34px!important;flex-basis:34px!important}.chat-bubble{max-width:calc(100vw - 94px)!important;padding:6px 9px 7px!important}.chat-bubble p{font-size:17px!important}.emoji-grid button{min-width:36px!important;min-height:36px!important;font-size:22px!important}.chat-compose{padding:8px!important}}
/* Annual budget: compact, accessible, horizontally scrollable only for wide financial tables */
.budget-panel{background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:17px;box-shadow:var(--shadow)}
.budget-title,.budget-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.budget-title h3{margin:0;font-size:19px}.budget-title p,.budget-actions span{color:#667085;font-size:12px;margin:5px 0 13px}
.budget-filters{display:flex;gap:9px;flex-wrap:wrap;background:#f7f9fc;padding:12px;margin:12px 0;border-radius:9px}.budget-filters label{display:flex;flex-direction:column;gap:5px;color:#475467;font-size:11px;font-weight:700;min-width:125px}.budget-filters select{padding:8px;border:1px solid #d8e0ea;background:white;border-radius:6px;color:#24324a;max-width:230px}
.budget-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.budget-stats>div{background:#eff7ff;padding:14px;border-radius:9px;display:flex;flex-direction:column;gap:7px}.budget-stats>div:nth-child(2){background:#eafbf5}.budget-stats>div:nth-child(3){background:#fff6e8}.budget-stats small{color:#526079;font-size:11px}.budget-stats strong{font-size:19px;color:#182f52}
.budget-table-wrap{overflow-x:auto;width:100%;margin:10px 0}.budget-table{border-collapse:collapse;width:100%;min-width:900px;font-size:12px}.budget-table th{background:#eff4fa;color:#344054;font-weight:750;text-align:left;padding:10px 9px;white-space:nowrap;border-bottom:1px solid #d8e1ed}.budget-table td{padding:10px 9px;border-bottom:1px solid #edf0f5;vertical-align:top}.budget-table td small{display:block;color:#8892a3;margin-top:4px}.budget-group td{background:#f4f8ff}.budget-total td{background:#e9f8f2;font-weight:800}.budget-cell-actions{white-space:nowrap}.budget-cell-actions button{border:0;border-radius:5px;background:#e5eefb;color:#16479d;padding:5px 7px;margin:2px;font-size:11px;cursor:pointer}.budget-cell-actions button:hover{background:#d0e0f8}.budget-empty{text-align:center;color:#667085;padding:24px!important}.budget-summary{margin-top:24px}.budget-summary h4{margin:0 0 10px}.budget-month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:10px 0}.budget-month-grid label{font-size:11px;display:flex;flex-direction:column;gap:4px}.budget-month-grid input{width:100%;min-width:0;padding:7px;border:1px solid #d9e1eb;border-radius:5px}.budget-form-total{padding:12px;background:#edf9f5;border-radius:7px}.budget-form-total strong{margin-left:10px;color:#087443}
@media(max-width:760px){.budget-stats{grid-template-columns:1fr}.budget-month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.budget-panel{padding:11px}}

/* v0.10.10 — compact, high-contrast, consistent annual budget actions */
.budget-cell-actions{white-space:nowrap;min-width:166px}
.budget-cell-actions button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:72px;height:30px;padding:0 5px;margin:2px 3px 2px 0;border:1px solid transparent;border-radius:4px;color:#fff;background:#2563eb;font-size:12px;font-weight:650;line-height:1;cursor:pointer;transition:background-color .16s ease,transform .16s ease,box-shadow .16s ease}
.budget-cell-actions button:hover{background:#1d4ed8;transform:translateY(-1px)}
.budget-cell-actions button:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
.budget-cell-actions button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.budget-cell-actions button[data-submit],.budget-cell-actions button[data-approve],.budget-cell-actions button[data-review]{background:#059669}
.budget-cell-actions button[data-submit]:hover,.budget-cell-actions button[data-approve]:hover,.budget-cell-actions button[data-review]:hover{background:#047857}
.budget-cell-actions button[data-edit]{background:#475569}
.budget-cell-actions button[data-edit]:hover{background:#334155}
.budget-cell-actions button[data-delete],.budget-cell-actions button[data-return]{background:#dc2626}
.budget-cell-actions button[data-delete]:hover,.budget-cell-actions button[data-return]:hover{background:#b91c1c}

/* v0.10.28 responsive annual budget */
.budget-panel,.budget-summary{min-width:0;max-width:100%}
.budget-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.budget-table{min-width:900px}
.budget-filters{display:flex;flex-wrap:wrap;gap:12px}
.budget-filters label{min-width:145px;flex:1 1 165px}
.budget-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
@media(max-width:650px){.budget-title{display:flex;flex-wrap:wrap;gap:12px}.budget-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.budget-filters label{min-width:0}.budget-filters select{max-width:100%;width:100%}.budget-actions .btn{min-height:44px}.budget-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.budget-stats>div{min-width:0}.budget-panel{overflow:hidden}}

/* v0.10.30: responsive budget matrix */
.budget-view-switch{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.budget-matrix-wrap{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.budget-matrix{min-width:1900px;border-collapse:separate;border-spacing:0}
.budget-matrix th,.budget-matrix td{white-space:nowrap;padding:10px 12px}
.budget-matrix th:first-child,.budget-matrix td:first-child{position:sticky;left:0;z-index:1;background:#f5f8fc;min-width:180px;max-width:230px;white-space:normal}
@media(max-width:700px){.budget-panel{min-width:0}.budget-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.budget-view-switch button{min-height:44px}.budget-matrix th:first-child,.budget-matrix td:first-child{min-width:125px;max-width:155px}}

/* v0.10.50 additive legacy portal and stakeholder styles */
.staff-checklist{min-height:116px;max-height:190px;overflow:auto;border:1px solid var(--border);border-radius:4px;background:#fff;padding:5px}
.staff-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;padding:8px 7px;border-radius:3px;cursor:pointer;font-weight:400!important}
.staff-choice:hover{background:#f5f8ff}
.staff-choice input{width:15px!important;height:15px!important;min-height:auto!important;margin:0;flex:0 0 auto}
.staff-choice span{display:flex;flex-direction:column;gap:1px}
.staff-choice strong{font-size:12px}
.staff-choice small{font-size:11px;color:var(--muted)}
.staff-hero{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:linear-gradient(100deg,#f4f9fd,#fff9ec);border:1px solid #dfe8ef;border-radius:8px;margin-bottom:10px;animation:softIn .28s ease}
.staff-hero .eyebrow{font-size:10px;font-weight:900;letter-spacing:.12em;color:#2671a8}
.staff-hero h2{margin:3px 0;color:#153c5d;font-size:21px}
.staff-hero p{margin:0;color:#6d5264}
.staff-hero-mark{width:48px;height:48px;border-radius:7px;background:#e6f2fb;display:grid;place-items:center;color:#1c679d}
.staff-hero-mark svg,.portal-tabs svg,.resource-grid svg,.jd-icon svg,.jd-reader-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-tabs{display:flex;gap:5px;overflow:auto;margin-bottom:10px}
.portal-tabs button{display:flex;align-items:center;gap:6px;border:1px solid #dde5eb;background:#fff;color:#4d5d69;border-radius:6px;padding:7px 10px;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer;transition:.2s}
.portal-tabs button svg{width:16px;height:16px}
.portal-tabs button:hover{transform:translateY(-1px);border-color:#8db6d3}
.portal-tabs button.active{background:#edf6fc;color:#155e91;border-color:#a8cce3}
.portal-panel.panel-in{animation:softIn .24s ease}
.staff-sections{margin-top:9px}
.staff-sections article{background:#fff;border:1px solid #e1e7ec;border-radius:7px;padding:12px}
.staff-sections h3{margin:0 0 8px;font-size:13px;color:#29495f}
.feature-chips{display:flex;flex-wrap:wrap;gap:6px}
.feature-chips span{font-size:11px;padding:5px 8px;border-radius:4px;background:#f2f6f8;color:#49606f}
.portal-toolbar{margin-bottom:8px}
.portal-toolbar input{max-width:360px}
.staff-directory,.jd-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.jd-card{align-items:flex-start;cursor:pointer}
.jd-icon{width:31px;height:31px;border-radius:5px;background:#fff4d8;color:#9b6a0b;display:grid;place-items:center;flex:0 0 auto}
.jd-icon svg{width:17px;height:17px}
.jd-card button{margin-left:auto;align-self:center}
.jd-reader{margin-top:8px;background:#fff;border:1px solid #dfe6eb;border-radius:8px;overflow:hidden;animation:softIn .25s ease}
.jd-reader header{display:flex;gap:12px;padding:16px;background:#f5f9fc}
.jd-reader header h2{font-size:20px;margin:2px 0;color:#173f5d}
.jd-reader header p,.jd-reader header span{margin:0;color:#687987;font-size:11px}
.jd-reader-icon{width:44px;height:44px;border-radius:7px;background:#e8f3fa;color:#226d9f;display:grid;place-items:center}
.jd-facts{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e5ebef;border-bottom:1px solid #e5ebef}
.jd-facts div{padding:10px 16px}
.jd-facts div+div{border-left:1px solid #e5ebef}
.jd-facts small{display:block;color:#7a8892;font-size:10px}
.jd-facts strong{color:#304a5c;font-size:12px}
.jd-reader section{padding:11px 16px}
.jd-reader section+section{border-top:1px solid #edf1f4}
.jd-reader section h3{margin:0 0 5px;color:#2a6387;font-size:12px}
.jd-reader section p,.jd-reader section li{font-size:11.5px;line-height:1.55;color:#465c6a}
.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.resource-grid article{display:flex;gap:10px;background:#fff;border:1px solid #e1e7ec;border-radius:7px;padding:12px}
.resource-grid svg{color:#377da8;flex:0 0 auto}
.resource-grid strong,.resource-grid span{display:block}
.resource-grid strong{font-size:12px;color:#2b4658}
.resource-grid span{font-size:11px;color:#6a7983;margin-top:3px}
.staff-directory,.jd-grid{grid-template-columns:repeat(2,1fr)}
.staff-hero-mark{display:none}
.portal-tabs button span{font-size:11px}
.jd-facts{grid-template-columns:1fr}
.jd-facts div+div{border-left:0;border-top:1px solid #e5ebef}
.staff-hero{background:linear-gradient(105deg,#e8f3f9,#f7f2e5);border-color:#cedde6;padding:17px 19px}
.staff-hero .eyebrow{font-size:10.5px;color:#25658d}
.staff-hero h2{font-size:21px;color:#153b55}
.staff-hero p{font-size:12px;color:#4e6475}
.staff-hero-mark{background:#dcecf6;color:#17618d}
.portal-tabs button{background:#f7fafc;color:#385267;border-color:#d3e0e8;font-size:12.5px}
.portal-tabs button:hover{background:#edf5fa}
.portal-tabs button.active{background:#dfeef7;color:#165b85;border-color:#bed7e6}
.staff-sections article{background:#f7fafc;border-color:#d7e2e9}
.staff-sections h3{font-size:13.5px;color:#24485f}
.feature-chips span{font-size:11.5px;background:#eaf1f5;color:#3c586b}
.jd-icon{background:#f5ead0;color:#84600f}
.jd-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#edf4f8;border:1px solid #d6e2e9;border-radius:7px}
.jd-toolbar strong,.jd-toolbar span{display:block}
.jd-toolbar strong{font-size:13px;color:#25465c}
.jd-toolbar span{font-size:11.5px;color:#536979;margin-top:2px}
.jd-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.jd-actions .btn{display:inline-flex;align-items:center;gap:5px;text-decoration:none}
.jd-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.jd-reader{background:#fbfdff;border-color:#d4e0e8}
.jd-reader header{background:#eaf3f8;padding:17px}
.jd-reader header h2{font-size:20px;color:#173f5a}
.jd-reader header p,.jd-reader header span{font-size:11.5px;color:#4f6575}
.jd-facts{border-color:#dce6ec}
.jd-facts div{padding:11px 16px}
.jd-facts small{font-size:10.8px;color:#5d7180}
.jd-facts strong{font-size:12.5px;color:#29475b}
.jd-reader section{padding:13px 17px}
.jd-reader section+section{border-top-color:#e2e9ee}
.jd-reader section h3{font-size:13px;color:#236188;margin-bottom:7px}
.jd-reader section p,.jd-reader section li{font-size:12.5px;line-height:1.6;color:#304b5d}
.jd-reader section ul{margin:4px 0 0;padding-left:20px}
.jd-reader section li+li{margin-top:5px}
.resource-grid article{background:#f6fafc;border-color:#d6e2e9}
.resource-grid strong{font-size:12.5px;color:#28475b}
.resource-grid span{font-size:11.5px;color:#526879}
.org-shell{display:grid;gap:10px}
.partner-band{display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid #dfd5b9;border-radius:8px;background:#f8f2df;color:#57491e}
.partner-band small,.partner-band strong,.partner-band span{display:block}
.partner-band small{font-size:9.8px;font-weight:850;letter-spacing:.08em}
.partner-band strong{font-size:15px;margin:1px 0}
.partner-band span{font-size:11.5px;color:#665a34}
.partner-icon{width:36px;height:36px;display:grid;place-items:center;background:#efe4bd;border-radius:7px;color:#725c10}
.partner-icon svg,.org-node svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.jd-actions{align-items:stretch}
.jd-actions .btn{justify-content:center}
.jd-reader section p,.jd-reader section li{font-size:12px}
.portal-tabs button{font-weight:600}
.staff-hero .eyebrow{font-weight:650}
.partner-band small{font-weight:650}
.crm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.crm-search{flex:1;max-width:520px}
.crm-search input{width:100%}
.crm-toolbar-actions{display:flex;gap:7px}
.crm-kpis{display:grid;grid-template-columns:repeat(8,minmax(105px,1fr));gap:7px;margin-bottom:10px}
.crm-kpi{appearance:none;border:1px solid #d5e0e7;background:#f7fafc;border-radius:6px;padding:10px;text-align:left;color:#2c485b;cursor:pointer;transition:.16s}
.crm-kpi:hover{background:#edf5f9;border-color:#bcd2df;transform:translateY(-1px)}
.crm-kpi span{display:block;font-size:10.5px;line-height:1.25;color:#526979;font-weight:500}
.crm-kpi strong{display:block;font-size:19px;line-height:1.1;margin-top:4px;font-weight:650;color:#173f59}
.crm-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:9px;padding:8px;background:#edf4f8;border:1px solid #d5e1e8;border-radius:6px}
.crm-filters select{min-width:160px}
.crm-list-head{display:flex;justify-content:flex-end;color:#657988;font-size:10.5px;margin:0 2px 5px}
.crm-table tbody tr{cursor:pointer}
.crm-table tbody tr:hover{background:#eaf3f8}
.crm-table td strong{font-weight:600}
.crm-table td{font-size:11.5px}
.crm-mini-tags,.crm-tags{display:flex;flex-wrap:wrap;gap:4px}
.crm-mini-tags span,.crm-tags span{display:inline-flex;padding:3px 6px;border-radius:4px;background:#e8f0f5;color:#3f5f72;font-size:10.5px}
.crm-due{color:#b42318!important;font-weight:600}
.crm-form{margin-top:0}
.crm-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.crm-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px;border:1px solid #dfe6eb;background:#f8fbfd;border-radius:5px}
.crm-check-grid label{display:flex;align-items:flex-start;gap:7px;font-weight:400!important;font-size:11.5px;color:#3f5666}
.crm-check-grid input{margin-top:2px}
.crm-source-block{border:1px solid #dbe4ea;border-radius:6px;background:#f8fbfd;padding:8px}
.crm-source-block summary{cursor:pointer;color:#315c76;font-weight:600}
.crm-source-block[open] summary{margin-bottom:9px}
.crm-profile{display:grid;gap:10px}
.crm-profile-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:13px 14px;background:#edf5f9;border:1px solid #d1e1ea;border-radius:7px}
.crm-profile-hero h3{margin:5px 0 2px;font-size:18px;color:#173f59}
.crm-profile-hero p{margin:0;color:#5b7180;font-size:11.5px}
.crm-profile-tags{display:flex;gap:5px;flex-wrap:wrap}
.crm-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.crm-profile-grid article{background:#f8fbfd;border:1px solid #dbe5eb;border-radius:6px;padding:9px}
.crm-profile-grid span{display:block;font-size:10px;color:#6a7e8b;margin-bottom:3px}
.crm-profile-grid strong{font-size:11.5px;font-weight:600;color:#27485d}
.crm-profile-tabs{margin:0}
.crm-tab-body{animation:softIn .18s ease}
.crm-two-col,.crm-source-compare{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.crm-info-panel,.crm-source-compare article{background:#f8fbfd;border:1px solid #dbe5eb;border-radius:6px;padding:11px}
.crm-info-panel h4,.crm-source-compare h4,.crm-panel-head h4{font-size:12px;color:#285c7a;margin:0 0 6px;font-weight:600}
.crm-info-panel h4:not(:first-child),.crm-source-compare h4:not(:first-child){margin-top:12px}
.crm-info-panel p,.crm-source-compare p{margin:0;color:#405967;font-size:11.5px;line-height:1.55;white-space:pre-wrap}
.crm-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.crm-panel-head h4{margin:0}
.crm-timeline,.crm-opportunity-list,.crm-contact-list{display:grid;gap:6px}
.crm-timeline article,.crm-opportunity-list article,.crm-contact-list article{background:#f8fbfd;border:1px solid #dce5ea;border-radius:6px;padding:9px}
.crm-timeline article>div,.crm-opportunity-list article>div,.crm-contact-list article>div{display:flex;justify-content:space-between;gap:8px}
.crm-timeline strong,.crm-opportunity-list strong,.crm-contact-list strong{font-size:11.5px;font-weight:600;color:#27495f}
.crm-timeline span,.crm-opportunity-list>article>span,.crm-contact-list>article>span{font-size:10.5px;color:#6b7e8b}
.crm-timeline p,.crm-opportunity-list p,.crm-contact-list p{font-size:11.5px;color:#415b6b;margin:5px 0}
.crm-timeline small,.crm-opportunity-list small,.crm-contact-list small{display:block;color:#627785;font-size:10.5px;margin-top:3px}
.crm-source-compare dl{margin:0;display:grid;grid-template-columns:120px 1fr;gap:5px 8px;font-size:11.5px}
.crm-source-compare dt{color:#6a7d89}
.crm-source-compare dd{margin:0;color:#2f4c5f;overflow-wrap:anywhere}
.crm-url-text{overflow-wrap:anywhere}
.crm-inline-check{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;padding-top:22px}
.crm-inline-check input{width:auto}
.crm-kpis{grid-template-columns:repeat(4,1fr)}
.crm-toolbar{align-items:stretch}
.crm-search{max-width:none}
.crm-kpis{grid-template-columns:repeat(2,1fr)}
.crm-filters{display:grid;grid-template-columns:1fr 1fr}
.crm-filters select{min-width:0;width:100%}
.crm-form-grid,.crm-profile-grid,.crm-two-col,.crm-source-compare{grid-template-columns:1fr}
.crm-check-grid{grid-template-columns:1fr}
.crm-profile-hero{display:block}
.crm-profile-hero .btn{margin-top:8px}
.crm-source-compare dl{grid-template-columns:1fr}
.crm-source-compare dd{margin-bottom:5px}
/* v0.10.53 Staff Portal responsive layout: scoped, no effect on other workspaces */
.portal-panel{min-width:0;width:100%;overflow-wrap:anywhere}
.portal-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:stretch}
.portal-summary-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:9px;padding:21px 22px;border:1px solid #e0e9ee;border-radius:12px;box-shadow:0 3px 12px rgba(35,63,88,.035)}
.portal-summary-card.portal-blue{background:#eaf4fc}.portal-summary-card.portal-gold{background:#fff7e7}.portal-summary-card.portal-mint{background:#eaf8f3}.portal-summary-card.portal-lilac{background:#f3effb}
.portal-card-kicker{font-size:11px;font-weight:800;letter-spacing:.095em;color:#426880;line-height:1.4}
.portal-summary-card h3{font-size:19px;line-height:1.3;color:#203d50;margin:0;font-weight:750;overflow-wrap:anywhere}
.portal-summary-card p{font-size:13px;line-height:1.7;color:#526a7b;margin:0;overflow-wrap:anywhere}
.portal-summary-card .portal-position,.portal-summary-card .portal-dept{display:block;margin:0 0 3px}
.portal-summary-card .btn{margin-top:auto;display:inline-flex;gap:7px;align-items:center;max-width:100%;white-space:normal;text-align:left}
.portal-summary-card .btn svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.portal-team-teaser{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding:18px 21px;background:#f6f9fc;border:1px solid #e0e9ef;border-radius:10px}
.portal-team-teaser h3,.portal-section-heading h3{font-size:18px;line-height:1.3;margin:5px 0;color:#23435b}
.portal-team-teaser p,.portal-section-heading p{margin:0;color:#6a7e8d;font-size:13px}
.portal-section-heading{margin:12px 0 18px}
.portal-team-grid .person-card{min-width:0}
.portal-empty{grid-column:1/-1;padding:18px;background:#f4f8fb;border-radius:9px;color:#607688}
.staff-hero{gap:14px;min-width:0}.staff-hero>div:first-child{min-width:0}.staff-hero h2{overflow-wrap:anywhere;line-height:1.22}
.staff-hero-mark{display:grid!important;flex:0 0 58px;width:58px;height:65px;overflow:hidden;border-radius:8px;font-size:18px;font-weight:800}
.staff-hero-mark img,.person-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.portal-tabs{max-width:100%;scrollbar-width:thin;padding-bottom:5px}
.portal-tabs button{flex:0 0 auto;min-height:40px}
@media(max-width:760px){
 .portal-summary-grid{grid-template-columns:1fr;gap:11px}
 .portal-summary-card{padding:18px 17px;gap:8px;border-radius:10px}
 .portal-summary-card h3{font-size:18px}
 .portal-summary-card p{font-size:13px;line-height:1.6}
 .staff-hero{padding:18px 15px;align-items:center}
 .staff-hero h2{font-size:21px;line-height:1.25}
 .staff-hero p{font-size:12px;line-height:1.55}
 .staff-hero-mark{flex-basis:50px;width:50px;height:60px}
 .portal-team-teaser{padding:16px;flex-direction:column;align-items:flex-start}
 .staff-directory,.jd-grid{grid-template-columns:1fr;min-width:0}
 .portal-tabs button span{font-size:12px}
 .portal-panel{overflow-x:hidden}
}
@media(max-width:400px){.staff-hero h2{font-size:19px}.staff-hero-mark{flex-basis:43px;width:43px;height:52px}.portal-summary-card h3{font-size:17px}}


/* v0.10.53 — visual-only corrections. Finance/budget code is unchanged. */
/* Dashboard KPI: reduce font size and prevent currency values from splitting digits. */
.kpi{min-width:0}
.kpi .kpi-value{font-size:clamp(14px,1.22vw,17px)!important;line-height:1.28!important;letter-spacing:-.025em;overflow-wrap:normal;word-break:normal;white-space:normal;font-variant-numeric:tabular-nums}
@media(max-width:680px){.kpi .kpi-value{font-size:16px!important}}
/* Restore the complete v0.9.9 organization chart structure and its refined colors. */
.org-view{text-align:center;background:#fff;border:1px solid #e1e7ec;border-radius:8px;padding:18px}.org-node{display:inline-flex;flex-direction:column;justify-content:center;padding:9px 12px;border:1px solid #b9cedc;border-radius:6px;background:#f7fbfd;color:#31536a;font-size:11px;min-width:130px}.org-node.executive{background:#eaf4fa;color:#174e73}.org-line{height:22px;width:1px;background:#aac0ce;margin:auto}.org-row{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.org-note{font-size:11px;color:#6e7c85;margin:15px 0 0}@keyframes softIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:900px){.compact-grid{grid-template-columns:repeat(2,1fr)}.staff-directory,.jd-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.compact-grid,.staff-directory,.jd-grid,.resource-grid{grid-template-columns:1fr}.staff-hero-mark{display:none}.portal-tabs button span{font-size:11px}.jd-facts{grid-template-columns:1fr}.jd-facts div+div{border-left:0;border-top:1px solid #e5ebef}}
.org-shell{display:grid;gap:10px}.partner-band{display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid #dfd5b9;border-radius:8px;background:#f8f2df;color:#57491e}.partner-band small,.partner-band strong,.partner-band span{display:block}.partner-band small{font-size:9.8px;font-weight:850;letter-spacing:.08em}.partner-band strong{font-size:15px;margin:1px 0}.partner-band span{font-size:11.5px;color:#665a34}.partner-icon{width:36px;height:36px;display:grid;place-items:center;background:#efe4bd;border-radius:7px;color:#725c10}.partner-icon svg,.org-node svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.org-view{background:#f7fafc;border-color:#d3e0e8;padding:18px}.org-node{background:#eef5f9;border-color:#c9dbe6;color:#294c63;font-size:11.5px}.org-node.board{background:#e9eef5;color:#283e56}.org-node.board svg{margin:0 auto 4px}.org-node.executive{background:#dcecf5;color:#164e70}.org-line{background:#9fb8c8;height:24px}.org-management-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:1100px;margin:auto}.org-branch{padding:11px;border-radius:7px;border:1px solid #d2dfe7;background:#f4f8fa;text-align:left;min-height:82px}.org-branch>strong{display:block;font-size:12.5px;color:#213f53}.org-branch>span,.org-subnodes span{display:block;font-size:11px;color:#4b6475;margin-top:5px}.org-subnodes{display:grid;gap:4px;margin-top:7px}.org-subnodes span{background:rgba(255,255,255,.62);border-radius:4px;padding:5px 6px;margin:0}.org-branch.finance{background:#edf6f2}.org-branch.fm{background:#edf5fb}.org-branch.production{background:#f3f0f8}.org-branch.followup{background:#eef7ef}.org-branch.pr{background:#faefed}.org-branch.admin{background:#f8f3e8}.org-note{font-size:11.5px;color:#4e6575;line-height:1.45}
/* Restore personnel card typography and layout lost during stylesheet consolidation. */
.portal-team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:13px;align-items:stretch}
.portal-team-grid .person-card{display:flex;align-items:center;gap:13px;padding:15px 16px;min-width:0;min-height:94px;background:#fff;border:1px solid #dae5ec;border-radius:10px;box-shadow:0 2px 9px rgba(22,51,76,.035)}
.portal-team-grid .person-card>div:last-child{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.portal-team-grid .person-card strong{display:block;font-size:14px;line-height:1.35;color:#213a50;font-weight:700;overflow-wrap:anywhere}
.portal-team-grid .person-card span{display:block;font-size:12px;line-height:1.4;color:#48667b;overflow-wrap:anywhere}
.portal-team-grid .person-card small{display:block;font-size:11px;line-height:1.35;color:#748799;overflow-wrap:anywhere}
.portal-team-grid .person-avatar{display:grid;place-items:center;flex:0 0 46px;width:46px;height:50px;overflow:hidden;border-radius:9px;background:#e5f0f9;color:#1e648e;font-size:13px;font-weight:750}
/* Organization hierarchy should remain legible on smaller screens. */
.org-view{max-width:100%;overflow-wrap:anywhere}
.org-node{display:inline-flex;flex-direction:column;align-items:center;gap:4px;max-width:100%}
.org-management-grid{margin:0 auto}
.org-branch{min-width:0}
.org-branch>strong,.org-branch>span,.org-subnodes span{overflow-wrap:anywhere;line-height:1.5}
@media(max-width:900px){.org-management-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.org-management-grid{grid-template-columns:1fr}.org-view{padding:12px}.portal-team-grid{grid-template-columns:1fr}}
/* v0.10.53: compact accessible staff photo controls */
.staff-hero-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;flex:0 0 auto}
.staff-photo-upload{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;background:#e6f2fb;border:1px solid #cbdde9;border-radius:6px;color:#205b83;font-size:11px;font-weight:700;cursor:pointer;line-height:1.3}
.staff-photo-upload:hover{background:#d8eafa}
.person-card .staff-photo-upload{align-self:flex-start;margin-top:5px}
@media(max-width:600px){.staff-hero-photo .staff-hero-mark{display:grid!important;width:48px;height:59px;flex-basis:59px}.staff-hero-photo .staff-photo-upload{font-size:10px;padding:4px 6px}}

/* v0.10.55a — consistent circular avatars and compact Chatter */
.staff-hero-mark,.staff-hero-photo .staff-hero-mark{display:grid!important;place-items:center!important;width:76px!important;height:76px!important;flex:0 0 76px!important;border-radius:50%!important;overflow:hidden!important;padding:0!important;border:2px solid #fff!important;cursor:pointer;background:#e4eff8!important;color:#1b628e!important;box-shadow:0 2px 9px #203e581c!important}
.staff-hero-mark:disabled{cursor:default}.staff-hero-mark img,.person-avatar img,.chat-avatar img,.online-mini-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.person-avatar,.portal-team-grid .person-avatar{border-radius:50%!important;width:48px!important;height:48px!important;flex:0 0 48px!important;overflow:hidden!important;padding:0!important;border:0!important;cursor:pointer}
.person-avatar:disabled{cursor:default}.staff-photo-trigger:hover:not(:disabled){filter:brightness(.96);outline:2px solid #9ed5e9;outline-offset:2px}
.staff-avatar-menu{position:absolute;z-index:1000;right:0;top:100%;min-width:156px;padding:5px;background:#fff;border:1px solid #dce5ed;border-radius:9px;box-shadow:0 9px 28px #122c4330;display:grid;gap:2px}.staff-avatar-menu button{border:0;background:transparent;padding:9px 11px;text-align:left;font-size:12px;color:#234158;cursor:pointer;border-radius:5px}.staff-avatar-menu button:hover{background:#edf6fb}
.chatter-feed{padding:10px 12px!important;gap:5px!important}.chat-message{margin-bottom:3px!important;gap:6px!important}.chat-avatar{width:30px!important;height:30px!important;flex-basis:30px!important;border-radius:50%!important;overflow:hidden!important}.chat-bubble{padding:6px 10px!important;border-radius:11px!important}.chat-bubble p{font-size:14px!important;line-height:1.38!important;margin:2px 0!important}.chat-meta{font-size:10px!important}.chat-below{min-height:16px!important;margin-top:1px!important}.chat-quick-actions button{font-size:12px!important;padding:1px 3px!important}.chat-message.emoji-only .chat-bubble p{font-size:23px!important;line-height:1.15!important}.reaction-chip{font-size:14px!important}.emoji-grid button{font-size:19px!important;min-width:33px!important;min-height:33px!important}.emoji-grid{grid-template-columns:repeat(9,minmax(32px,1fr))!important}.emoji-picker{max-height:260px!important}.chat-compose{padding:7px 10px!important}.chat-compose-foot{font-size:10px!important}@media(max-width:560px){.emoji-grid{grid-template-columns:repeat(7,minmax(32px,1fr))!important}.chat-bubble p{font-size:14px!important}.emoji-grid button{font-size:19px!important}}

/* v0.10.55b: clean circular avatars without uneven decorative white ring */
.staff-hero-mark,.staff-hero-photo .staff-hero-mark{border:0!important;outline:0!important;box-shadow:none!important;background-clip:padding-box!important;}
.staff-hero-mark img,.staff-hero-photo img{border:0!important;outline:0!important;box-shadow:none!important;display:block;object-fit:cover;border-radius:50%!important;}
.staff-hero-mark:focus-visible{outline:2px solid #276f9c!important;outline-offset:3px!important;}


/* v0.10.55c — one precise circular photo boundary. No nested white ring. */
.staff-hero-photo{min-width:0!important}
.staff-hero-mark,.staff-hero-photo .staff-hero-mark{
  display:grid!important;place-items:center!important;
  width:82px!important;height:82px!important;min-width:82px!important;min-height:82px!important;
  max-width:82px!important;max-height:82px!important;flex:0 0 82px!important;
  aspect-ratio:1/1!important;box-sizing:border-box!important;
  border:1px solid #526575!important;border-radius:50%!important;
  padding:0!important;margin:0!important;outline:0!important;
  box-shadow:none!important;filter:none!important;overflow:hidden!important;
  background:#e4eff8!important;background-clip:padding-box!important;
  appearance:none!important;-webkit-appearance:none!important;
}
.staff-hero-mark img,.staff-hero-photo .staff-hero-mark img{
  display:block!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;
  object-fit:cover!important;object-position:center!important;
  border:0!important;outline:0!important;box-shadow:none!important;
  border-radius:0!important;margin:0!important;padding:0!important;
}
.staff-hero-mark::before,.staff-hero-mark::after{content:none!important;display:none!important}
.staff-hero-mark:focus-visible{outline:2px solid #276f9c!important;outline-offset:3px!important}
.person-avatar,.portal-team-grid .person-avatar,.chat-avatar,.online-mini-avatar{
  box-sizing:border-box!important;aspect-ratio:1/1!important;border:1px solid #526575!important;
  border-radius:50%!important;box-shadow:none!important;outline:0!important;overflow:hidden!important;padding:0!important;
}
.person-avatar img,.chat-avatar img,.online-mini-avatar img{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:cover!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
@media(max-width:600px){.staff-hero-photo .staff-hero-mark{
  width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;
  max-width:64px!important;max-height:64px!important;flex:0 0 64px!important;
}}
/* v0.10.55d: distinct staff-directory rows, no concatenated labels */
.staff-directory:not(.portal-team-grid) .person-card{display:flex;align-items:center;gap:13px;min-width:0;padding:14px;background:#fff;border:1px solid #dce7ee;border-radius:9px}
.staff-directory .person-card>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;flex:1}
.staff-directory .person-card strong,.staff-directory .person-card span,.staff-directory .person-card small{display:block;line-height:1.4;overflow-wrap:anywhere}
.staff-directory .person-card strong{font-size:14px;color:#203c51}
.staff-directory .person-card span{font-size:12px;color:#4d6577}
.staff-directory .person-card small{font-size:11px;color:#728697}
.staff-directory .person-avatar{flex:0 0 56px;width:56px;height:56px;border-radius:50%;overflow:hidden;box-sizing:border-box}
/* v0.10.57 Department operational reporting */
.dw-report-card{padding:18px;background:#f5f9fc;border:1px solid #dae6ef;border-radius:7px;margin-bottom:12px;min-width:0}.dw-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.dw-status{font-size:12px;color:#46657c;text-transform:capitalize}.dw-status-control{margin:12px 0}.dw-reports{border-top:1px solid #dce6ed;padding-top:10px}.dw-reports h4{margin:4px 0 10px;font-size:14px}.dw-report-entry{background:white;padding:12px;margin-bottom:8px;border-radius:5px}.dw-report-entry p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.dw-empty{color:#64748b;font-size:13px}.dw-report-form{margin-top:12px;padding:12px;background:#eaf3f8;border-radius:5px}.dw-report-form summary{cursor:pointer;font-weight:700;color:#195578}.dw-report-form form{display:grid;gap:10px;margin-top:12px}.dw-report-form label{display:grid;gap:5px;font-size:13px}.dw-report-form input,.dw-report-form textarea{width:100%;box-sizing:border-box;padding:9px;border:1px solid #cbd5e1;border-radius:4px;font:inherit}.dw-report-form textarea{min-height:75px;resize:vertical}

/* v0.10.57 — Departmental operations overview */
.dw-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:14px 0 18px}
.dw-metric{background:#eaf3fa;border:1px solid #d8e5ef;border-radius:9px;padding:13px 15px;min-width:0}
.dw-metric span{display:block;font-size:12px;color:#526c80;font-weight:650}
.dw-metric strong{display:block;margin-top:5px;font-size:24px;color:#173c54;line-height:1.25}
.dw-metric:nth-child(3){background:#fff5e4}.dw-metric:nth-child(4){background:#e8f7f0}.dw-metric:nth-child(5){background:#fff0ee}
/* v0.10.58 — compact operational report review */
.dw-review-note{padding:9px 11px;background:#edf7f4;border-radius:4px;color:#21574b;font-size:13px}
.dw-review-pending{display:block;margin-top:8px;color:#64748b}
.dw-review-form{margin-top:10px;border-top:1px solid #e1e9ef;padding-top:9px}
.dw-review-form summary{cursor:pointer;color:#185b7b;font-weight:650;font-size:13px}
.dw-review-form form{display:grid;gap:9px;margin-top:10px}
.dw-review-form label{display:grid;gap:4px;font-size:13px}
.dw-review-form select,.dw-review-form textarea{width:100%;padding:8px;border:1px solid #cbd5e1;border-radius:4px;font:inherit;box-sizing:border-box}
.dw-review-form textarea{min-height:62px}
@media(max-width:680px){.dw-card-head{flex-wrap:wrap}.dw-report-card{padding:13px}.dw-status-control select{max-width:100%}}

/* v0.10.67: distinguish departmental budget groups from individual activities */
.budget-matrix tr.budget-department-heading td{background:#dceafa!important;color:#122d50;font-weight:800;border-top:2px solid #91b5e3;border-bottom:2px solid #c0d6ef;padding-top:14px;padding-bottom:14px}
.budget-matrix tr.budget-department-heading td:first-child{background:#dceafa!important;font-size:15px!important;min-width:220px;max-width:310px;white-space:normal;line-height:1.45;z-index:2}
.budget-matrix tr.budget-activity-row td:first-child{background:#fff!important;color:#344054;font-weight:450;padding-left:24px}
.budget-matrix tr.budget-activity-row:nth-child(even) td{background:#f9fbfe}
.budget-group .budget-dept-title{font-size:15px;font-weight:800;color:#122d50}
.budget-status-tag{display:inline-block;padding:4px 9px;background:#e0ebfc;border-radius:4px;color:#173b6e;font-weight:700;font-size:11px;text-transform:uppercase}
#budget-start{width:100%;min-width:145px!important;max-width:none!important;height:42px;appearance:auto;color:#172d4a;background:#fff}

/* v0.10.69 compact budget matrix and clear status hierarchy */
.budget-matrix th,.budget-matrix td{padding:7px 8px!important}
.budget-matrix th:first-child,.budget-matrix td:first-child{width:166px!important;min-width:166px!important;max-width:166px!important;box-sizing:border-box;border-right:1px solid #cbd6e3!important;box-shadow:2px 0 3px -3px #73859a}
.budget-matrix tr.budget-department-heading td{padding-top:7px!important;padding-bottom:7px!important;border-top:1px solid #9bbde2!important;border-bottom:1px solid #d2e0ef!important}
.budget-matrix tr.budget-department-heading td:first-child{font-size:12px!important;line-height:1.25!important;min-width:166px!important;max-width:166px!important;white-space:normal!important}
.budget-group .budget-dept-title{font-size:12px!important;font-weight:750!important;color:#173452!important;display:block}
.budget-status-badge{display:inline-block;margin-top:3px;font-size:10px;font-weight:700;line-height:1.25;white-space:normal;color:#167548}
.budget-status-badge.is-approved{color:#087345}.budget-status-badge.is-pending{color:#11845c}.budget-status-badge.is-draft{color:#a36516}
.budget-matrix tr.budget-activity-row td:first-child{padding-left:13px!important}
@media(max-width:700px){.budget-matrix th:first-child,.budget-matrix td:first-child{width:132px!important;min-width:132px!important;max-width:132px!important}}

/* v0.10.72: PR stakeholder contacts (read from existing Supabase fields) */
.crm-contact-preview{display:grid;grid-template-columns:68px minmax(140px,1fr);gap:3px 7px;max-width:340px;overflow-wrap:anywhere;font-size:12px;line-height:1.45}
.crm-contact-preview strong{font-weight:600}
.crm-contact-label{font-size:10px;color:#607588;text-transform:uppercase;letter-spacing:.025em}
.crm-profile-contact{background:#eef7fb;padding:14px 16px;margin:12px 0;border-radius:4px;display:flex;flex-wrap:wrap;gap:12px 24px;overflow-wrap:anywhere;font-size:13px}
.crm-profile-contact>div:not(.crm-contact-actions){max-width:100%}
.crm-contact-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
/* HMM reporting and relationship portfolios · v0.10.73 */
.gims-horizontal-nav{display:flex;gap:7px;overflow-x:auto;padding:5px 0 13px;margin-bottom:12px;scrollbar-width:thin}.gims-horizontal-nav button{border:1px solid #dbe4eb;background:#f0f4f7;color:#24394b;white-space:nowrap;font:600 13px inherit;font-weight:650;padding:11px 15px;cursor:pointer;border-radius:3px;transition:background .2s,transform .2s}.gims-horizontal-nav button:hover{background:#dcecf6;transform:translateY(-1px)}.gims-horizontal-nav button.active{background:#12609a;color:white;border-color:#12609a}.gims-info-grid,.gims-partner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.gims-info-grid article,.gims-partner-grid article{padding:17px;background:#f2f6f9;border-radius:4px}.gims-info-grid strong,.gims-partner-grid strong{color:#164a76}.gims-tag{display:inline-block;padding:3px 7px;margin-left:8px;background:#d6eafa;color:#164a76;font-size:11px}.gims-observation{padding:14px 0;border-bottom:1px solid #e4eaf0}.gims-studio-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;margin-bottom:16px;background:#eaf3fa;border-left:5px solid #16649b}.gims-studio-launch p{margin:5px 0 0;color:#526474}.gims-studio-grid{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);align-items:start;gap:20px}.gims-studio-controls{display:grid;gap:12px}.gims-studio-controls label{display:grid;gap:5px;font-weight:600;font-size:13px}.gims-studio-controls input,.gims-studio-controls select,.gims-studio-controls textarea{width:100%;font:inherit;padding:9px;border:1px solid #cbd7e2;background:#fff;color:#172638}.gims-studio-actions{display:flex;gap:8px;flex-wrap:wrap}.gims-report-preview{background:#d9e0e6;padding:20px;overflow:auto}.gims-report-document{max-width:820px;margin:0 auto;background:#fff;color:#18232e;box-shadow:0 9px 30px #122b3b24;font-family:Arial,Helvetica,sans-serif;line-height:1.6}.gims-report-cover{background:#f7f9fa;min-height:850px;position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.gims-report-brand{display:flex;align-items:center;gap:15px;padding:38px 45px;color:#163e60;font-weight:800;letter-spacing:1.1px}.gims-report-brand img{width:76px;height:76px;object-fit:contain}.gims-report-brand small{font-weight:400;color:#637587;letter-spacing:0}.gims-report-cover-inner{padding:45px;position:relative;z-index:1}.gims-report-eyebrow{display:inline-block;color:#176aab;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:2px}.gims-report-cover-inner h1{font-size:clamp(32px,4.3vw,56px);line-height:1.12;letter-spacing:-1px;margin:20px 0;color:#101b26}.gims-report-cover-inner h2{font-size:22px;color:#1b4f78;margin:16px 0 4px}.gims-report-rule{width:94px;height:6px;background:#176aab}.gims-report-cover-accent{height:130px;background:linear-gradient(135deg,#123c60 0%,#176aab 70%,#aab9c5 70%)}.gims-report-hero-image{height:265px;width:100%;object-fit:cover}.gims-report-cover-footer{position:absolute;bottom:12px;left:45px;color:white;font-size:11px;letter-spacing:1px}.gims-report-paper{padding:52px 55px}.gims-report-section-label{color:#1c6ca5;font-weight:800;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;border-top:1px solid #cfd9e1;padding-top:22px;margin-top:32px}.gims-report-paper h2{font-size:27px;line-height:1.25;color:#142e46;margin:10px 0 18px}.gims-report-paper p{white-space:normal;color:#263442}.gims-report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0}.gims-report-stats div{background:#eaf1f6;padding:16px}.gims-report-stats small{display:block;font-size:11px;color:#566a7b}.gims-report-stats strong{font-size:24px;color:#12588d}.gims-report-caution{padding:12px 15px;background:#f1f3f5;color:#4a5560!important;font-size:12px}.gims-report-table-wrap{overflow-x:auto}.gims-report-paper table{width:100%;border-collapse:collapse;font-size:12px}.gims-report-paper th{background:#174b73;color:#fff;text-align:left;padding:10px}.gims-report-paper td{padding:9px;border-bottom:1px solid #dce3e8}.gims-report-paper tr:nth-child(even){background:#f3f6f8}.gims-report-footer{display:flex;gap:12px;align-items:center;border-top:2px solid #1c6ca5;padding-top:15px;margin-top:42px;font-size:11px;color:#677681}.gims-report-footer img{width:44px;height:44px;object-fit:contain}.gims-report-readable{max-width:760px;margin:20px auto;padding:35px;background:white;box-shadow:0 2px 14px #0001}.gims-report-readable>img{width:85px}.gims-report-readable h2{color:#155789}.gims-report-readable p{white-space:pre-line}@media(max-width:920px){.gims-studio-grid{grid-template-columns:1fr}.gims-report-preview{padding:8px}.gims-report-cover{min-height:580px}.gims-report-paper{padding:25px}.gims-report-brand{padding:24px}.gims-report-cover-inner{padding:24px}.gims-report-stats{grid-template-columns:1fr 1fr}}@media print{.gims-report-cover,.gims-report-stats div,.gims-report-paper th{-webkit-print-color-adjust:exact;print-color-adjust:exact}.gims-report-section-label{break-after:avoid}}
/* v0.10.74 — multi-image report studio */
.gims-studio-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 17px}.gims-studio-toolbar select{padding:9px;max-width:250px;border:1px solid #cdd9e4;background:white}.gims-preview-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;background:#173e5e;color:#fff;font-size:12px;letter-spacing:.7px}.gims-preview-heading span{font-weight:400;color:#d3e1eb}.gims-photo-editor{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;padding:12px 0;border-bottom:1px solid #dce5ed}.gims-photo-editor>img{width:90px;height:100px;object-fit:cover}.gims-photo-editor>div{display:grid;gap:7px}.gims-photo-editor label{font-size:12px}.gims-photo-editor input,.gims-photo-editor select{padding:6px}.gims-photo-gallery{display:flex;flex-wrap:wrap;gap:15px;margin:18px 0}.gims-report-figure{margin:0;break-inside:avoid;background:#f2f5f7;padding:7px}.gims-report-figure.full{width:100%}.gims-report-figure.half{width:calc(50% - 8px)}.gims-report-figure.story{width:100%;display:grid;grid-template-columns:54% 1fr;gap:12px;align-items:center}.gims-report-figure img{width:100%;max-height:340px;object-fit:cover;display:block}.gims-report-figure figcaption{font-size:11px;color:#4e606e;padding:7px 4px}.gims-report-figure.story figcaption{font-size:14px;color:#243e52}@media(max-width:600px){.gims-report-figure.half{width:100%}.gims-report-figure.story{display:block}.gims-preview-heading span{display:none}}

/* v0.10.75: full three-panel report designer */
.gims-studio-grid.gims-studio-three{display:grid;grid-template-columns:minmax(265px,315px) minmax(430px,1fr) minmax(255px,305px);gap:16px;align-items:start;width:100%;max-width:none}
.gims-studio-three .gims-studio-controls,.gims-studio-three .gims-studio-media{min-width:0;padding:17px}
.gims-studio-three .gims-studio-preview-col{min-width:0}
.gims-studio-three .gims-report-preview{padding:18px;min-height:780px}
.gims-studio-three .gims-report-document{width:100%}
.gims-studio-three .gims-report-cover{min-height:660px}
.gims-studio-three .gims-report-brand{padding:26px}
.gims-studio-three .gims-report-cover-inner{padding:28px}
.gims-studio-three .gims-report-paper{padding:30px}
.gims-studio-three .gims-report-cover-inner h1{font-size:clamp(27px,3vw,46px)}
.gims-studio-media h3{margin-top:0}.gims-upload-zone{display:block!important;padding:18px 12px;border:2px dashed #a8c2d6;background:#eaf3fa;color:#164e78;text-align:center;cursor:pointer;font-weight:700!important}.gims-upload-zone input{display:block;margin-top:12px;font-size:12px;max-width:100%}
.gims-studio-media .gims-photo-editor{grid-template-columns:70px minmax(0,1fr)}.gims-studio-media .gims-photo-editor>img{width:70px;height:90px}.gims-studio-media .gims-photo-editor input,.gims-studio-media .gims-photo-editor select{min-width:0}
.gims-media-hint{margin-top:22px;padding:13px;background:#f0f3f5}.gims-media-hint small{display:block;margin-top:7px;color:#627386}.gims-palette{display:flex;margin-top:10px;gap:5px}.gims-palette i{display:block;width:32px;height:20px;background:#165d93}.gims-palette i:nth-child(2){background:#171d24}.gims-palette i:nth-child(3){background:#fff;border:1px solid #d2d9df}.gims-palette i:nth-child(4){background:#aeb8c2}
@media(max-width:1450px){.gims-studio-grid.gims-studio-three{grid-template-columns:minmax(245px,310px) minmax(390px,1fr)}.gims-studio-three .gims-studio-media{grid-column:1/-1}.gims-studio-three .gims-studio-media #rs-photo-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}}
@media(max-width:1000px){.gims-studio-grid.gims-studio-three{grid-template-columns:1fr}.gims-studio-three .gims-studio-media{grid-column:auto}.gims-studio-three .gims-report-cover{min-height:580px}}

/* v0.10.76: narrative, pictorial, preview workflow */
.gims-report-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0;padding:10px;background:#e9f0f6;border:1px solid #d6e2eb}.gims-report-tabs .btn{padding:11px 16px;font-weight:700}.gims-report-tabbed{display:block!important;width:100%!important}.gims-report-tabbed>.gims-studio-controls,.gims-report-tabbed>.gims-studio-media,.gims-report-tabbed>.gims-studio-preview-col{display:none!important}.gims-report-tabbed[data-active-tab="narrative"]>.gims-studio-controls{display:grid!important;max-width:860px;margin:0 auto}.gims-report-tabbed[data-active-tab="pictorial"]>.gims-studio-media{display:block!important;max-width:1050px;margin:0 auto}.gims-report-tabbed[data-active-tab="preview"]>.gims-studio-preview-col{display:block!important;max-width:1050px;margin:0 auto}.gims-report-tabbed .gims-studio-media #rs-photo-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.gims-report-tabbed .gims-report-preview{min-height:700px}.gims-report-tabbed .gims-report-document{max-width:794px}.gims-report-tabbed .gims-studio-controls textarea{min-height:120px}.gims-report-tabbed .gims-studio-controls label{margin-bottom:9px}@media(max-width:700px){.gims-report-tabs{display:grid;grid-template-columns:1fr}.gims-report-tabbed .gims-report-preview{padding:8px}.gims-report-tabbed .gims-report-paper{padding:20px}}

/* v0.10.77 Appreciation Studio */
.gims-letter-workspace{display:grid;grid-template-columns:minmax(310px,410px) minmax(0,1fr);gap:20px;align-items:start}.gims-letter-form{display:grid;gap:12px}.gims-letter-form label{display:grid;gap:5px;font-size:13px;font-weight:650}.gims-letter-form input,.gims-letter-form textarea,.gims-letter-form select{width:100%;font:inherit;padding:10px;border:1px solid #cad7e2;background:#fff;color:#1d2935}.gims-letter-form .gims-letter-check{display:flex;align-items:center;gap:9px}.gims-letter-check input{width:auto}.gims-letter-preview-frame{background:#dce4ea;padding:14px;overflow:auto}.gims-letter-page{position:relative;width:100%;max-width:794px;min-height:1060px;margin:0 auto;background:#fff;box-shadow:0 8px 24px #102c3b24;padding:58px 64px 70px;box-sizing:border-box;color:#1a2734;font:15px/1.55 Arial,sans-serif}.gims-letter-head{display:flex;align-items:center;gap:17px;color:#174c76}.gims-letter-head img{width:85px;height:60px;object-fit:contain}.gims-letter-head strong{display:block;font-size:18px;letter-spacing:1px}.gims-letter-head small{display:block;color:#7a8893;font-size:11px}.gims-letter-stripe{height:7px;background:#176eac;margin:23px 0 35px}.gims-letter-meta{display:flex;justify-content:space-between;font-size:13px;color:#516679;margin-bottom:30px}.gims-letter-recipient{margin-bottom:25px}.gims-letter-subject{font-weight:800;color:#123b5b;border-bottom:1px solid #d8e2e9;padding-bottom:12px;margin-bottom:24px}.gims-letter-body{margin:20px 0 28px;line-height:1.75;white-space:normal}.gims-letter-contribution{background:#edf3f7;padding:13px 16px;color:#1b4b6c}.gims-letter-signoff{margin-top:50px}.gims-letter-signoff strong,.gims-letter-signoff small{display:block}.gims-letter-signoff small{color:#6c7c89;font-size:12px}.gims-letter-footer{display:flex;gap:9px;align-items:center;margin-top:70px;border-top:2px solid #176eac;padding-top:10px;color:#677786;font-size:11px}.gims-letter-footer img{width:38px;height:38px;object-fit:contain}.gims-letter-draftmark{font-size:10px;color:#a2aeb8;letter-spacing:1px;text-align:center;margin-top:14px}@media(max-width:950px){.gims-letter-workspace{grid-template-columns:1fr}.gims-letter-page{padding:30px;min-height:850px}}

/* v0.10.80: clear tactile feedback on all studio actions */
.gims-studio-toolbar button,.gims-report-tabs button,.gims-studio-actions button,.gims-photo-editor button,.gims-studio-launch button{cursor:pointer;transition:transform .12s ease,filter .15s ease,box-shadow .15s ease!important}
.gims-studio-toolbar button:hover,.gims-report-tabs button:hover,.gims-studio-actions button:hover{filter:brightness(.94);box-shadow:0 3px 10px #153b5620}
.gims-studio-toolbar button:active,.gims-report-tabs button:active,.gims-studio-actions button:active,.gims-photo-editor button:active{transform:scale(.965)!important;filter:brightness(.87)}
.gims-studio-toolbar button:focus-visible,.gims-report-tabs button:focus-visible{outline:3px solid #1b86c6;outline-offset:2px}
.gims-studio-toolbar button:disabled{opacity:.65;cursor:wait}

/* v0.10.81 — visible save state and preview export */
.gims-report-save-status{margin:0 0 14px;padding:12px 15px;background:#eaf3f8;color:#16445f;font-weight:700;border-left:4px solid #2889bf;min-height:43px}
.gims-report-save-status[data-state="busy"]{background:#fff4d8;color:#704a00;border-left-color:#e6a400}
.gims-report-save-status[data-state="success"]{background:#e2f5ec;color:#126341;border-left-color:#17965c}
.gims-report-save-status[data-state="error"]{background:#fce9e9;color:#8e2525;border-left-color:#d64545}
.gims-preview-download-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px;background:#eef5fa;margin:0 0 12px}
.gims-preview-download-actions span{font-size:12px;color:#496374}
.gims-preview-download-actions button{cursor:pointer;transition:transform .13s ease,filter .13s ease}
.gims-preview-download-actions button:active{transform:scale(.96);filter:brightness(.87)}

/* v0.10.83 — HMM report header alignment */
.gims-studio-three .gims-report-brand,.gims-report-document .gims-report-brand{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-direction:row;width:100%;box-sizing:border-box}
.gims-report-document .gims-report-brand span{order:0;flex:1;text-align:left;font-weight:800;line-height:1.45}
.gims-report-document .gims-report-brand img{order:1;flex:none;width:92px;height:70px;object-fit:contain;object-position:right top}
.gims-studio-toolbar button,.gims-preview-download-actions button{transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}
.gims-studio-toolbar button:active,.gims-preview-download-actions button:active{transform:scale(.96);filter:brightness(.88)}

/* v0.10.87: departmental budget clarity */
.budget-approved-card{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:14px 18px;background:#e9f7f4;border-radius:5px;min-width:190px}.budget-approved-card small{color:#456}.budget-approved-card strong{font-size:1.25rem;color:#17644f}.budget-department-overview td{vertical-align:middle}.budget-department-overview .budget-cell-actions{min-width:190px}.budget-department-overview .budget-cell-actions button{margin:3px;padding:7px 10px}.budget-department-overview th{white-space:nowrap}

/* v0.10.89: budget summary actions and responsive cards */
.budget-department-overview{width:100%;border-collapse:collapse}
.budget-department-overview .budget-cell-actions{min-width:260px!important;width:300px;white-space:normal!important;vertical-align:middle}
.budget-department-overview .budget-cell-actions button{display:inline-flex!important;align-items:center;justify-content:center;max-width:100%;white-space:normal!important;overflow-wrap:normal;word-break:normal;text-align:center;line-height:1.3;min-height:33px;padding:7px 10px!important;margin:3px!important;font-size:11px!important;vertical-align:middle}
.budget-department-overview th:last-child{min-width:260px}
.budget-department-overview td{white-space:normal}
.budget-department-overview td:not(.budget-cell-actions){padding:10px 8px!important}
.budget-department-overview .budget-cell-actions button[data-submit]{background:#07835b!important;color:#fff!important;border-color:#07835b!important}
.budget-department-overview .budget-cell-actions button[data-open-dept]{background:#1d5df0!important;color:#fff!important;border-color:#1d5df0!important}
.budget-department-overview .budget-cell-actions button[data-add]{background:#e7efff!important;color:#1243a1!important;border-color:#bdd0fa!important}
.budget-department-overview{min-width:790px}
@media(max-width:1050px){.budget-department-overview .budget-cell-actions{width:250px;min-width:250px!important}}

/* Keep fourth summary card aligned with first three */
.budget-summary-cards,.budget-stat-cards,.budget-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:900px){.budget-summary-cards,.budget-stat-cards,.budget-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:540px){.budget-summary-cards,.budget-stat-cards,.budget-kpis{grid-template-columns:1fr!important}}

/* v0.10.89: quieter, legible controls */
.btn,.btn-small,.budget-actions .btn,.budget-panel button{font-weight:400;letter-spacing:0;line-height:1.3}
.budget-panel .btn-small{font-size:12px;white-space:normal}
.budget-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:850px){.budget-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.budget-stats{grid-template-columns:1fr}}

/* v0.10.90 budget action readability */
.budget-department-overview{table-layout:auto;width:100%}
.budget-department-overview th:last-child,.budget-department-overview td:last-child{min-width:310px;width:33%}
.budget-department-overview .budget-cell-actions{min-width:310px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.budget-department-overview .budget-cell-actions button{font-weight:400!important;font-size:12px!important;white-space:nowrap!important;min-width:max-content;min-height:34px;padding:8px 13px!important;margin:0!important;line-height:1.2!important}
.historical-2026 .card-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.historical-tag{background:#edf2f7;color:#475569;padding:5px 9px;font-size:12px;font-weight:400}
.historical-notice{background:#f0f5fa;color:#45566d;padding:13px 16px;margin:12px 16px;line-height:1.6;font-size:13px}
.historical-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 16px}
.historical-kpi{background:#eef6fc;padding:16px;min-width:0}.historical-kpi:nth-child(2){background:#e8f7f0}.historical-kpi:nth-child(3){background:#fff4e6}.historical-kpi:nth-child(4){background:#fceeea}
.historical-kpi small{display:block;color:#56677a;font-size:12px}.historical-kpi strong{display:block;margin-top:9px;font-size:17px;overflow-wrap:anywhere}
.historical-subhead{font-size:15px;margin:18px 16px 10px}.historical-details{margin:18px 16px}.historical-details summary{cursor:pointer;color:#155eef;padding:12px;background:#f0f5fa}.historical-foot{font-size:12px;color:#5a687a;padding:0 16px 18px}
@media(max-width:1000px){.historical-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-department-overview th:last-child,.budget-department-overview td:last-child{min-width:310px}}
@media(max-width:600px){.historical-kpis{grid-template-columns:1fr}.historical-2026 .table-wrap{overflow-x:auto}}

/* v0.10.91: stable action grid; overrides older fixed 72px buttons. */
.budget-department-overview{min-width:1050px!important;table-layout:auto!important}
.budget-department-overview th:last-child,.budget-department-overview td:last-child{width:430px!important;min-width:430px!important}
.budget-department-overview td.budget-cell-actions{display:table-cell!important;white-space:normal!important;vertical-align:middle!important}
.budget-department-overview td.budget-cell-actions button{display:inline-flex!important;box-sizing:border-box!important;width:auto!important;min-width:125px!important;max-width:none!important;height:36px!important;padding:8px 12px!important;margin:3px 4px 3px 0!important;white-space:nowrap!important;font-size:12px!important;font-weight:400!important;line-height:1.25!important;vertical-align:middle!important;border-radius:3px!important}
.budget-department-overview td.budget-cell-actions button[data-submit]{min-width:142px!important}
@media(max-width:1150px){.budget-table-wrap{overflow-x:auto!important}}

/* v0.10.93 — compact, readable budget actions; menu stays inside table cell */
.budget-table .budget-cell-actions{min-width:148px!important;width:auto!important;white-space:normal!important;vertical-align:middle!important}
.budget-table .budget-cell-actions button{width:auto!important;min-width:0!important;height:32px!important;min-height:32px!important;max-width:none!important;margin:2px 4px 2px 0!important;padding:5px 10px!important;font-size:12px!important;font-weight:400!important;line-height:1.2!important;white-space:nowrap!important;letter-spacing:0!important;border-radius:4px!important}
.budget-table .budget-action-menu{position:relative;display:inline-block;vertical-align:middle;min-width:0;margin:2px 4px 2px 0}
.budget-table .budget-action-menu summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:32px;box-sizing:border-box;padding:5px 11px;background:#e8effb;color:#18478d;border:1px solid #cad8ed;border-radius:4px;cursor:pointer;font-size:12px;font-weight:400;white-space:nowrap;list-style:none}
.budget-table .budget-action-menu summary::-webkit-details-marker{display:none}
.budget-table .budget-action-menu summary:hover{background:#dce9fb}
.budget-table .budget-action-menu summary:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.budget-table .budget-action-menu[open] .budget-action-popover{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:180px;margin-top:5px;padding:6px;background:#fff;border:1px solid #dce5ef;border-radius:5px;box-shadow:0 6px 18px #162a451c}
.budget-table .budget-action-menu .budget-action-popover button{display:block!important;width:100%!important;text-align:left!important;margin:0!important;font-weight:400!important}
.budget-table .budget-action-menu .budget-action-popover button[data-add]{background:#e7efff!important;color:#1243a1!important}
.budget-table .budget-action-menu .budget-action-popover button[data-submit]{background:#07835b!important;color:#fff!important}
.budget-table .budget-group td{vertical-align:middle}
.budget-department-overview td.budget-cell-actions{min-width:205px!important;width:215px!important}
.budget-department-overview td.budget-cell-actions button[data-open-dept]{min-width:0!important}

/* v0.10.95: compact, unclipped annual budget department overview */
.budget-panel .budget-table-wrap{min-width:0;max-width:100%;overflow-x:auto;overflow-y:visible;}
.budget-table.budget-department-overview{width:100%!important;min-width:670px!important;table-layout:fixed;border-collapse:collapse;}
.budget-department-overview th,.budget-department-overview td{box-sizing:border-box;overflow-wrap:normal;word-break:normal;}
.budget-department-overview th:first-child,.budget-department-overview td:first-child{width:26%;white-space:normal;overflow-wrap:break-word;}
.budget-department-overview th:nth-child(2),.budget-department-overview td:nth-child(2){width:16%;}
.budget-department-overview th:nth-child(3),.budget-department-overview td:nth-child(3){width:17%;}
.budget-department-overview th:nth-child(4),.budget-department-overview td:nth-child(4){width:17%;}
.budget-department-overview th:nth-child(5),.budget-department-overview td:nth-child(5){width:13%;}
.budget-department-overview th:nth-child(6),.budget-department-overview td:nth-child(6){width:11%;}
.budget-department-overview td.budget-cell-actions{width:11%!important;min-width:0!important;white-space:nowrap!important;overflow:visible!important;}
.budget-table .budget-action-menu{position:relative;display:inline-block;}
.budget-table .budget-action-menu summary{height:32px;min-height:32px;padding:5px 9px;font-size:12px;}
.budget-table .budget-action-menu[open] .budget-action-popover{position:fixed!important;z-index:10000!important;min-width:194px!important;max-width:min(260px,calc(100vw - 16px));margin:0!important;box-sizing:border-box;}
.budget-table .budget-action-menu .budget-action-popover button{min-height:32px!important;height:auto!important;white-space:nowrap!important;font-size:12px!important;}
@media(max-width:740px){.budget-table.budget-department-overview{min-width:670px!important;}.budget-department-overview th,.budget-department-overview td{font-size:11px;padding:8px 6px!important;}}

/* v0.10.95 login activity */
.gims-login-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.gims-login-cards>div{background:#eef5fc;padding:15px;border-radius:8px;color:#53677f}.gims-login-cards strong{display:block;font-size:25px;color:#18365d;margin-top:7px}.gims-login-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:18px}.gims-login-filters label{display:grid;gap:6px;font-size:13px}.gims-login-filters input,.gims-login-filters select{height:36px;padding:6px 10px;border:1px solid #d7e1eb;border-radius:5px}@media(max-width:720px){.gims-login-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.10.98 PAR internal preview — retains Report Studio publication styling */
.par-preview-document{margin:22px auto;max-width:210mm;box-shadow:0 8px 32px rgba(20,38,70,.15)}
.par-preview-document .gims-report-hero-image{object-fit:cover}
@media(max-width:900px){.par-preview-document{width:100%;max-width:100%;overflow:hidden}.par-preview-document .gims-report-cover{min-height:560px}}

/* v0.11.11: Accessible compact stakeholder classification */
.crm-check-fieldset{border:0;padding:0;margin:0;min-width:0}
.crm-check-fieldset legend{font-weight:700;font-size:13px;color:#233854;margin-bottom:9px;padding:0}
.crm-check-fieldset .crm-check-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px 12px!important;padding:12px!important;background:#f4f8fc;border:1px solid #dce6f2;border-radius:9px}
.crm-check-fieldset .crm-check-grid label{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-direction:row!important;gap:10px!important;min-width:0;width:auto!important;max-width:none!important;padding:9px 10px!important;margin:0!important;border:1px solid #e2eaf4;border-radius:7px;background:#fff;font-size:12px!important;font-weight:500!important;line-height:1.35!important;color:#29405d!important;text-align:left!important;cursor:pointer}
.crm-check-fieldset .crm-check-grid label:hover{border-color:#9abcf3;background:#f9fbff}
.crm-check-fieldset .crm-check-grid input[type=checkbox]{appearance:auto!important;display:block!important;position:static!important;float:none!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;margin:0!important;transform:none!important;accent-color:#155eef}
.crm-check-fieldset .crm-check-grid label span{display:block!important;flex:1!important;min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;position:static!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
@media(max-width:620px){.crm-check-fieldset .crm-check-grid{grid-template-columns:1fr!important;padding:8px!important;gap:6px!important}.crm-check-fieldset .crm-check-grid label{min-height:42px!important}}
/* v0.11.34.27 Visual Designer: shared preview/print section layout */
.gims-report-tabbed[data-active-tab="designer"]>.gims-layout-designer{display:block!important;max-width:1080px;margin:0 auto}
.gims-report-tabbed>.gims-layout-designer{display:none!important}
.gims-layout-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f1f6fb;border:1px solid #d6e2ed;border-radius:8px;padding:10px 12px;margin:8px 0;cursor:grab}
.gims-layout-row strong{flex:1 1 190px;color:#16375b}
.gims-layout-row label{display:flex;align-items:center;gap:5px;margin:0;font-size:13px}
.gims-layout-row input[type=checkbox]{width:auto;min-width:16px;height:16px}
.gims-layout-row select{width:auto;min-width:80px;padding:5px}
.gims-layout-handle{font-size:21px;color:#3e719f}
.gims-designed-section{min-width:0}
@media print{.gims-design-new-page{break-before:page!important;page-break-before:always!important}.gims-designed-section{break-inside:auto!important}}

/* v0.11.34.42: in-studio interactive page builder */
.gims-report-tabbed[data-active-tab="designer"]>.gims-layout-designer{max-width:none!important;width:100%!important;padding:14px!important}
.gims-builder-intro{padding:12px 16px;background:#eaf3fc;border-radius:8px;margin-bottom:12px}
.gims-builder-intro h2{margin:0 0 7px;color:#123d65}.gims-builder-intro p{margin:0 0 12px;color:#37516c}
.gims-publication-frame{min-height:900px}

/* v0.11.34.43: streamlined report studio */
.hmm-studio-topbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 12px}.hmm-studio-topbar>.btn{min-width:135px}.hmm-studio-more{position:relative;margin-left:auto}.hmm-studio-more>summary{list-style:none;cursor:pointer}.hmm-studio-more>summary::-webkit-details-marker{display:none}.hmm-studio-more-panel{position:absolute;z-index:80;right:0;top:calc(100% + 5px);width:230px;padding:10px;border:1px solid #ccd9e5;border-radius:8px;background:#fff;box-shadow:0 10px 24px #1c34502a;display:grid;gap:7px}.hmm-studio-more-panel .btn{text-align:left}.hmm-hidden-action{display:none!important}.gims-report-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.gims-report-tabs .btn{min-width:0;white-space:normal;line-height:1.3}.gims-report-tabbed[data-active-tab="designer"]>.gims-layout-designer{display:block!important;visibility:visible!important}.gims-report-tabbed>.gims-layout-designer{display:none!important}@media(max-width:720px){.gims-report-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.hmm-studio-more{margin-left:0}}

/* v78: keep annual budget item form accessible on short screens */
#modal-root .modal:has(#budget-item-form){display:flex;flex-direction:column;max-height:calc(100dvh - 28px);width:min(900px,100%);overflow:hidden}
#modal-root .modal:has(#budget-item-form) .modal-body{overflow-y:auto;min-height:0;overscroll-behavior:contain}
#modal-root .modal:has(#budget-item-form) .modal-head{flex-shrink:0}

/* v0.11.34.79: compact four-field allocation editor; prevent horizontal clipping. */
#modal-root .modal:has(.alloc-list){width:min(940px,calc(100vw - 32px));max-width:940px}
#modal-root .modal:has(.alloc-list) .modal-body{min-width:0;overflow-x:hidden}
#modal-root .modal:has(.alloc-list) .allocation-row-v071{grid-template-columns:minmax(145px,1.2fr) minmax(165px,1.3fr) minmax(100px,.7fr) minmax(135px,1fr) 36px;gap:8px}
#modal-root .modal:has(.alloc-list) .allocation-row-v071 > *{min-width:0}
@media(max-width:760px){#modal-root .modal:has(.alloc-list) .allocation-row-v071{grid-template-columns:repeat(2,minmax(0,1fr))}#modal-root .modal:has(.alloc-list) .allocation-row-v071 .remove{grid-column:2;justify-self:end}}
@media(max-width:440px){#modal-root .modal:has(.alloc-list) .allocation-row-v071{grid-template-columns:1fr}}

/* v84: compact annual-budget editor and reliable overlay stacking */
#modal-root .modal-backdrop{z-index:11000;}
#modal-root .modal{width:min(780px,calc(100vw - 24px));max-height:min(88vh,840px);display:flex;flex-direction:column;overflow:hidden;}
#modal-root .modal-head{flex:0 0 auto;}
#modal-root .modal-body{overflow-y:auto;min-height:0;padding:12px 15px;}
#modal-root .budget-quick-fill{gap:7px!important;padding:9px!important;margin:7px 0!important;}
#modal-root .budget-month-grid{gap:6px;}
