/* Shared operational UI scale. Secondary information is disclosure, not a hero. */
:root { --ui-body: 14px; --ui-meta: 12px; --ui-section: 18px; }
body { font-size: var(--ui-body); line-height: 1.45; }
body { --admin-text-xs: 12px; }
.admin-metrics > .metric-card { grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 8px; min-height: 96px; }
.admin-metrics .metric-icon { width: 36px; height: 36px; grid-column: 1; grid-row: 1 / 3; }
.admin-metrics .metric-card > span:nth-child(2) { grid-column: 2; grid-row: 1; }
.admin-metrics .metric-card > strong { grid-column: 2; grid-row: 2; }
.admin-metrics .metric-spark { display: none; }
.admin-tree-card { margin-left: var(--tree-card-offset); }
body:has(#app-shell:not([hidden])) .work-item { grid-template-columns: 4px minmax(0, 1fr); gap: 8px 12px; }
body:has(#app-shell:not([hidden])) .work-item-side { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; white-space: normal; }
body:has(#app-shell:not([hidden])) .work-item-kicker { flex-wrap: wrap; }
body:has(#app-shell:not([hidden])) .work-item-kicker > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
body:has(#app-shell:not([hidden])) .work-item-title { white-space: normal; overflow-wrap: anywhere; }
body .admin-header h1,
body:has(#app-shell:not([hidden])) .workspace-header h1 {
  font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.025em;
}
body:has(#app-shell:not([hidden])) .task-detail-head h2,
body:has(#app-shell:not([hidden])) .workgroup-detail-head h2 {
  font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
body:has(#app-shell:not([hidden])) .task-detail-section { margin-top: 18px; padding-top: 16px; }
body:has(#app-shell:not([hidden])) .task-copy-block p,
body:has(#app-shell:not([hidden])) .timeline-copy,
body:has(#app-shell:not([hidden])) .workgroup-overview > section > p:last-child,
body:has(#app-shell:not([hidden])) .workgroup-meeting > section > p:last-child { font-size: var(--ui-body); line-height: 1.5; }
body:has(#app-shell:not([hidden])) .work-item-title,
body:has(#app-shell:not([hidden])) .workgroup-meeting h3 { font-size: 16px; line-height: 1.35; }
.utility-disclosure { border-top: 1px solid #dfe3eb; margin-top: 12px; }
.utility-disclosure > summary {
  display: flex; align-items: center; gap: 10px; min-height: 40px;
  cursor: pointer; list-style: none; font-size: 14px; font-weight: 650; color: #263248;
}
.utility-disclosure > summary::-webkit-details-marker { display: none; }
.utility-disclosure > summary::before { content: '›'; font-size: 20px; width: 16px; text-align: center; }
.utility-disclosure[open] > summary::before { transform: rotate(90deg); }
.utility-disclosure > summary > span { margin-left: auto; font-size: 12px; font-weight: 500; color: #606e83; }
.utility-disclosure > summary:hover { background: #f5f6fa; }
.utility-disclosure > summary:focus-visible { outline: 2px solid #7440ec; outline-offset: 3px; border-radius: 4px; }
body:has(#app-shell:not([hidden])) .utility-disclosure .task-timeline,
.utility-disclosure .worklog-list { max-height: 360px; overflow: auto; padding: 8px 4px; }
body:has(#app-shell:not([hidden])) .lifecycle-label { white-space: normal; overflow: visible; line-height: 1.3; }
@media (max-width: 640px) {
  body:has(#app-shell:not([hidden])) .task-lifecycle { overflow-x: auto; }
  .utility-disclosure > summary { min-height: 44px; }
}
