/* Workspace overview and compact program library. */
.workspace-page {
  --workspace-muted: #65738a;
  width: min(1360px, calc(100% - 72px));
  padding-top: 48px;
}
.workspace-page .page-head { align-items: center; margin-bottom: 30px; }
.workspace-page .eyebrow { margin-bottom: 10px; color: #697b97; font-size: 10px; letter-spacing: .16em; }
.workspace-page h1 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 780; text-wrap: balance; }
.workspace-subtitle { margin: 10px 0 0; color: var(--workspace-muted); font-size: 13px; line-height: 1.6; text-wrap: pretty; }
.workspace-page .date-chip { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding: 11px 14px; border-radius: 10px; color: #5c6c84; font-size: 12px; font-variant-numeric: tabular-nums; }
.workspace-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.workspace-page h2 { margin: 0; font-size: 20px; font-weight: 760; text-wrap: balance; }
.overview-panel { position: relative; isolation: isolate; overflow: hidden; padding: 26px 28px 0; border: 1px solid #263b59; border-radius: 22px; background: #192d48; color: #f7faff; box-shadow: 0 12px 30px #17243b12; }
.overview-art { position: absolute; z-index: -1; top: -45px; right: -75px; width: 500px; height: 300px; pointer-events: none; stroke: #aec9e7; stroke-opacity: .1; }
.overview-art .orbit-node { fill: #83d6c4; stroke: none; opacity: .6; }
.overview-heading { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.overview-heading h2 { font-size: 14px; }
.overview-heading > span { border-left: 1px solid #ffffff26; padding-left: 12px; color: #b4c5da; font-size: 9px; letter-spacing: .16em; }
.overview-panel .summary { position: relative; grid-template-columns: minmax(230px, 1.45fr) repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.overview-panel .metric { min-height: 140px; padding: 20px; border: 1px solid #ffffff17; border-radius: 14px; background: #ffffff06; box-shadow: none; }
.overview-panel .metric.briefing { grid-column: auto; align-self: center; min-height: 0; padding: 0 12px 0 0; border: 0; border-radius: 0; background: none; }
.overview-panel .metric-label { color: #c1cfe0; font-size: 12px; letter-spacing: 0; line-height: 1.5; }
.overview-panel .briefing .metric-label { color: #a7bcd5; font-size: 9px; letter-spacing: .13em; }
.overview-panel .metric-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.overview-panel .metric-top .workspace-icon { width: 18px; height: 18px; color: #91adce; }
.overview-panel .metric-value { display: flex; align-items: baseline; gap: 7px; margin-top: 19px; color: #fff; font-size: 35px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.overview-panel .metric-unit { color: #a9bed7; font-size: 12px; font-weight: 400; }
.overview-panel .briefing .metric-value { display: block; margin-top: 10px; font-size: clamp(19px, 1.65vw, 24px); font-weight: 650; line-height: 1.6; letter-spacing: -.04em; }
.overview-panel .briefing .metric-value strong { color: #8be2ca; font-weight: 720; }
.overview-panel .metric-note { margin-top: 10px; color: #aebfd4; font-size: 11px; line-height: 1.5; }
.workflow-art { display: flex; align-items: center; margin-top: 17px; color: #a4c8d1; }
.workflow-art > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #86bdbd38; border-radius: 8px; }
.workflow-art .workspace-icon { width: 15px; height: 15px; }
.workflow-art i { position: relative; width: 27px; height: 1px; background: #9cbbcb40; }
.workflow-art i::after { content: ''; position: absolute; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: #8be2ca; }
.overview-footer { display: flex; align-items: center; gap: 9px; min-height: 51px; border-top: 1px solid #ffffff17; color: #c1cfe0; font-size: 11px; }
.overview-footer > .workspace-icon { width: 15px; height: 15px; color: #91adce; }
.overview-footer p { margin: 12px 0; line-height: 1.6; }
.overview-footer a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 40px; margin-left: auto; color: #e0ebf9; font-size: 11px; }
.overview-footer a:hover { color: #8be2ca; }
.program-library { position: relative; margin-top: 30px; padding: 26px; border: 1px solid #e0e6ef; border-radius: 20px; background: #fff; box-shadow: 0 4px 18px #223e5e03; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.library-heading .eyebrow { margin-bottom: 8px; font-size: 9px; color: #667b9a; }
.library-title { display: flex; align-items: center; gap: 9px; }
.program-count { display: inline-grid; place-items: center; min-width: 25px; height: 24px; padding: 0 7px; border-radius: 7px; background: #edf1fb; color: #526ba6; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.library-description { margin: 8px 0 0; color: var(--workspace-muted); font-size: 12px; line-height: 1.6; }
.library-link { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; flex-shrink: 0; color: #536580; font-size: 12px; }
.library-link:hover { color: #315cc8; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 22px 0 18px; padding-top: 19px; border-top: 1px solid #edf0f5; }
.program-filters { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: #f2f4f8; }
.program-filters button { min-height: 32px; padding: 6px 15px; border: 0; border-radius: 7px; background: transparent; color: #64728a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.program-filters button[aria-pressed="true"] { background: #fff; color: #233956; box-shadow: 0 1px 4px #17243b12; }
.program-filters button:hover { color: #315cc8; }
.program-search { display: flex; align-items: center; gap: 8px; width: 225px; min-height: 40px; padding: 0 12px; border: 1px solid #e2e7ef; border-radius: 10px; color: #7c8ba1; background: #fff; }
.program-search .workspace-icon { width: 17px; height: 17px; }
.program-search input { width: 100%; min-width: 0; min-height: 38px; padding: 0; border: 0; outline: none; background: transparent; color: #233956; font-size: 12px; }
.program-search input::placeholder { color: #758197; }
.program-search:focus-within { outline: 2px solid #516fe8; outline-offset: 2px; }
.program-library .program-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.program-library .program-card { --program-accent: #078851; display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; grid-template-rows: auto 1fr auto; align-items: start; column-gap: 11px; row-gap: 12px; width: 100%; min-width: 0; min-height: 140px; padding: 16px; border: 1px solid #e2e7ed; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 2px 4px #17243b03; transition: transform 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out; overflow: visible; }
.program-library .program-card::before { display: none; }
.program-library .program-card.landing-card { --program-accent: #4b66ce; }
.program-library .program-card.attachment-card { --program-accent: #197b85; }
.program-library .program-card:hover { transform: translateY(-3px); border-color: var(--program-accent); box-shadow: 0 8px 20px #2538570c; }
.program-library .program-icon { width: 40px; height: 40px; border-radius: 11px; background: #08b84d; color: #fff; font-size: 23px; font-weight: 800; }
.program-library .program-icon.landing-icon { background: #eef1ff; color: #5369d3; }
.program-library .program-icon.attachment-icon { background: #e9f5f5; color: #197b85; }
.program-library .program-icon .workspace-icon { width: 23px; height: 23px; }
.program-library .program-copy { align-self: center; }
.program-category { display: block; margin-bottom: 5px; color: var(--program-accent); font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.program-library .program-title { font-size: 14px; font-weight: 750; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.program-variant { display: inline-block; margin-left: 3px; color: #64748b; font-size: 12px; font-weight: 500; }
.program-library .arrow { align-self: center; color: #90a0b4; font-size: 18px; line-height: 1; transition: transform 180ms ease-out, color 180ms ease-out; }
.program-library .program-card:hover .arrow { transform: translate(2px, -2px); color: var(--program-accent); }
.program-library .program-description { grid-column: 1 / -1; margin: 0; color: var(--workspace-muted); font-size: 12px; line-height: 1.7; word-break: keep-all; text-wrap: pretty; }
.program-library .tags { grid-column: 1 / -1; gap: 5px; }
.program-library .tag { padding: 4px 7px; border-radius: 5px; background: #f3f5f8; color: #627086; font-size: 10px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.program-library .tag.status { background: #e9f7f0; color: #15754c; }
.program-library .tag.status.off { background: #f0f2f5; color: #657184; }
.program-library .pending-card { border-style: dashed; background: #fbfcfe; }
.program-library .pending-card .program-icon { font-size: 15px; }
.program-empty { padding: 28px 16px; text-align: center; color: #233956; }
.program-empty strong { font-size: 15px; }
.program-empty p { color: var(--workspace-muted); font-size: 13px; line-height: 1.6; }
.program-empty button { min-height: 40px; padding: 8px 15px; border: 1px solid #dbe2ed; border-radius: 8px; background: #f8faff; color: #3756a2; font-size: 12px; }
.program-library [hidden] { display: none !important; }
.workspace-page :is(a, button):focus-visible { outline: 2px solid #516fe8; outline-offset: 4px; }
.overview-panel a:focus-visible { outline-color: #8be2ca; }
.workspace-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#listView.workspace-page .program-library { margin-top: 0; }
@keyframes workspace-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes workspace-signal { from { opacity: 0; transform: translateX(0); } 30%, 70% { opacity: 1; } to { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: no-preference) {
  .workspace-page .page-head { animation: workspace-enter 360ms ease-out both; }
  .overview-panel { animation: workspace-enter 420ms ease-out 40ms both; }
  .program-library { animation: workspace-enter 420ms ease-out 100ms both; }
  .workflow-art i::after { animation: workspace-signal 900ms ease-out 250ms 2 both; }
  .workflow-art i:nth-of-type(2)::after { animation-delay: 650ms; }
}
@media (max-width: 1180px) {
  .overview-panel .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-panel .metric.briefing { grid-column: 1 / -1; position: relative; }
  .overview-panel .briefing .metric-value { font-size: 22px; }
  .overview-panel .briefing .metric-value br { display: none; }
  .overview-panel .workflow-art { position: absolute; right: 0; bottom: 5px; margin: 0; }
  .overview-panel .metric { min-height: 135px; padding: 18px; }
  .overview-panel .metric-value { margin-top: 12px; font-size: 31px; }
  .program-library .program-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .workspace-page { width: calc(100% - 40px); padding-top: 34px; }
  .workspace-page .page-head { gap: 16px; }
  .workspace-page .date-chip { padding: 10px; }
  .workspace-subtitle { max-width: 380px; font-size: 12px; }
  .overview-panel { padding: 22px 20px 0; }
  .overview-panel .workflow-art { display: none; }
  .overview-panel .metric { padding: 16px 13px; }
  .overview-panel .metric-top .workspace-icon { display: none; }
  .program-library { padding: 22px 20px; }
  .program-library .program-card { padding: 16px; }
}
@media (max-width: 850px) and (min-width: 721px) {
  .workspace-page .page-head { align-items: flex-start; flex-direction: column; }
  .program-library .program-list { grid-template-columns: 1fr; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .program-filters { align-self: flex-start; }
  .program-search { width: 100%; }
}
@media (max-width: 720px) {
  .workspace-page { width: calc(100% - 28px); padding: 30px 0 48px; }
  .workspace-page .page-head { flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
  .workspace-page h1 { font-size: 25px; }
  .workspace-page .date-chip { padding: 8px 10px; font-size: 11px; }
  .workspace-page .date-chip .workspace-icon { width: 16px; height: 16px; }
  .overview-panel { padding: 22px 18px 0; border-radius: 18px; }
  .overview-heading { margin-bottom: 20px; }
  .overview-panel .summary { gap: 10px; margin-bottom: 18px; }
  .overview-panel .metric.briefing { margin-bottom: 8px; padding: 0; }
  .overview-panel .briefing .metric-value { font-size: 21px; }
  .overview-panel .briefing .metric-value br { display: block; }
  .overview-panel .metric { min-height: 105px; padding: 13px 10px; border-radius: 10px; }
  .overview-panel .metric-label { font-size: 10px; }
  .overview-panel .metric-value { gap: 3px; font-size: 28px; }
  .overview-panel .metric-unit { font-size: 10px; }
  .overview-panel .metric-note { display: none; }
  .overview-footer { flex-wrap: wrap; gap: 6px; padding: 6px 0; font-size: 10px; }
  .overview-footer p { flex: 1; margin: 5px 0; }
  .overview-footer a { font-size: 10px; min-height: 36px; }
  .program-library { margin-top: 22px; padding: 22px 18px; border-radius: 18px; }
  .workspace-page h2 { font-size: 18px; }
  .workspace-page .overview-heading h2 { font-size: 14px; }
  .library-description { font-size: 11px; }
  .library-link { gap: 4px; font-size: 11px; }
  .library-toolbar { align-items: stretch; flex-direction: column; gap: 12px; margin-top: 18px; padding-top: 16px; }
  .program-filters { align-self: flex-start; }
  .program-filters button { min-height: 36px; padding-inline: 14px; }
  .program-search { width: 100%; }
  .program-library .program-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .program-library .program-list { grid-template-columns: 1fr; gap: 10px; }
  .program-library .program-card { min-height: 0; row-gap: 12px; padding: 16px; }
  .program-library .program-description { font-size: 12px; }
  .program-library .program-title { font-size: 15px; }
  .program-library .program-category { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-page *, .workspace-page *::before, .workspace-page *::after { animation: none !important; transition: none !important; }
  .program-library .program-card:hover, .program-library .program-card:hover .arrow { transform: none; }
}
