/* UI-02: scoped workspace overview, built on UI-01 tokens. */
.workspace-shell-ready .app-metrics.ws2-native-metrics { display: none !important; }
.ws2, .ws2 * { box-sizing: border-box; }
.ws2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); align-items: start; gap: 14px; margin-bottom: 24px; color: var(--ws-ink); font-size: 13px; }
.ws2-main, .ws2-side { min-width: 0; display: grid; gap: 14px; align-content: start; }
.ws2 svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ws2 a { color: var(--ws-blue); text-decoration: none; }
.ws2 a:hover { text-decoration: underline; }
.ws2 :is(a, button, input):focus-visible { outline: 2px solid var(--ws-blue); outline-offset: 3px; }
.ws2 [hidden] { display: none !important; }
.ws2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ws2-search { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 4px 4px 13px; background: var(--ws-panel); border: 1px solid var(--ws-blue); border-radius: 9px; box-shadow: var(--ws-shadow); }
.ws2-search > svg { color: var(--ws-muted); width: 20px; height: 20px; }
.ws2-search input { flex: 1; min-width: 0; height: 38px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--ws-ink); font: inherit; }
.ws2-search input::placeholder { color: var(--ws-muted); }
.ws2-search input:focus { outline: none; }
.ws2-search:focus-within { outline: 2px solid var(--ws-blue); outline-offset: 2px; }
.ws2-primary, .ws2-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; min-height: 38px; border-radius: 7px; font: inherit; font-weight: 650; white-space: nowrap; cursor: pointer; }
.ws2-primary { border: 1px solid #1359ff; background: #1359ff; color: #fff; }
.ws2-primary:hover:not(:disabled) { background: #0846d6; }
.ws2 button:disabled { cursor: not-allowed; opacity: .62; }
.ws2-message { margin: -5px 0 0; color: var(--app-warning); font-size: 12px; }
.ws2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ws2-kpi { min-width: 0; display: flex; align-items: flex-start; gap: 9px; padding: 13px 10px; border: 1px solid var(--ws-border); border-radius: 10px; background: var(--ws-panel); box-shadow: var(--ws-shadow); }
.ws2-icon { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border-radius: 50%; color: var(--ws-blue); background: var(--ws-active); }
.ws2-icon svg { width: 21px; height: 21px; }
.ws2-green .ws2-icon { color: var(--app-success); background: var(--ws-soft); }
.ws2-red .ws2-icon { color: var(--app-danger); background: var(--ws-soft); }
.ws2-kpi:first-child { background: color-mix(in srgb, var(--ws-panel) 94%, var(--ws-blue)); }
.ws2-green { background: color-mix(in srgb, var(--ws-panel) 96%, var(--app-success)); }
.ws2-red { background: color-mix(in srgb, var(--ws-panel) 96%, var(--app-danger)); }
.ws2-kpi > div { min-width: 0; display: grid; gap: 3px; }
.ws2-kpi span:not(.ws2-icon) { font-size: 11px; line-height: 1.35; min-height: 29px; }
.ws2-kpi strong { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ws2 small { color: var(--ws-muted); font-size: 11px; line-height: 1.45; }
.ws2-panel { min-width: 0; padding: 14px; background: var(--ws-panel); border: 1px solid var(--ws-border); box-shadow: var(--ws-shadow); border-radius: 10px; }
.ws2 h2 { display: flex; gap: 7px; align-items: center; margin: 0; font-size: 14px; line-height: 1.3; color: var(--ws-ink); }
.ws2 h2 svg, .ws2-cycle > svg { color: var(--ws-blue); width: 20px; height: 20px; }
.ws2 p { margin: 4px 0 0; color: var(--ws-muted); font-size: 11px; line-height: 1.45; }
.ws2-usage { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 11px; align-items: stretch; }
.ws2-cycle { display: flex; align-items: flex-start; gap: 8px; }
.ws2-quota { min-width: 0; border-left: 1px solid var(--ws-border); padding-left: 11px; display: grid; gap: 3px; align-content: start; }
.ws2-quota > span { font-size: 11px; }
.ws2-quota > strong { font-size: 14px; overflow-wrap: anywhere; }
.ws2-progress-row { display: flex; align-items: center; gap: 6px; }
.ws2-progress-row progress { appearance: none; width: 100%; min-width: 0; height: 8px; border: 0; border-radius: 10px; background: var(--ws-soft); overflow: hidden; color: var(--ws-blue); accent-color: var(--ws-blue); }
.ws2-progress-row progress::-webkit-progress-bar { background: var(--ws-soft); }
.ws2-progress-row progress::-webkit-progress-value { background: var(--ws-blue); border-radius: 10px; }
.ws2-progress-row progress::-moz-progress-bar { background: var(--ws-blue); border-radius: 10px; }
.ws2-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ws2-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px; margin-bottom: 13px; }
.ws2-panel-heading > div { min-width: 0; }
.ws2-panel-heading > a { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ws2-panel-heading > a svg { width: 13px; height: 13px; }
.ws2-table-wrap { overflow: auto; }
.ws2 table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
.ws2 th, .ws2 td { padding: 9px 5px; border-bottom: 1px solid var(--ws-border); text-align: left; vertical-align: top; }
.ws2 th { color: var(--ws-muted); background: var(--ws-soft); font-weight: 550; white-space: nowrap; }
.ws2 td { overflow-wrap: anywhere; }
.ws2 td:first-child { font-weight: 600; }
.ws2 td:last-child { white-space: nowrap; }
.ws2 tr:last-child td { border-bottom: 0; }
.ws2-activity { min-height: 40px; }
.ws2-activity-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; border-bottom: 1px solid var(--ws-border); padding: 9px 0; }
.ws2-activity-row:first-child { padding-top: 4px; }
.ws2-activity-row strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.ws2-activity-row small { display: block; }
.ws2-activity-status { display: inline-block; padding: 3px 7px; background: var(--ws-soft); color: var(--ws-muted); border-radius: 6px; font-size: 10px; white-space: nowrap; }
.ws2-activity-status[data-status="completed"] { color: var(--app-success); }
.ws2-activity-status[data-status="failed"] { color: var(--app-danger); }
.ws2-future { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ws-muted); font-size: 11px; }
.ws2-actions { display: grid; gap: 5px; }
.ws2-action { display: flex; align-items: center; gap: 9px; padding: 9px; min-width: 0; border: 1px solid var(--ws-border); border-radius: 8px; color: var(--ws-ink) !important; }
.ws2-action:hover { background: var(--ws-soft); text-decoration: none !important; }
.ws2-action > svg { color: var(--ws-muted); }
.ws2-action > svg:last-child:not(:first-child) { margin-left: auto; width: 13px; transform: rotate(-90deg); }
.ws2-action span { display: grid; min-width: 0; }
.ws2-action strong { font-size: 12px; }
.ws2-action-disabled { cursor: default; }
.ws2-action-disabled:hover { background: transparent; }
.ws2-plan-badge { flex: 0 0 auto; max-width: 45%; background: var(--ws-soft); color: var(--ws-blue); border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.ws2-plan dl { margin: 0 0 12px; border-top: 1px solid var(--ws-border); }
.ws2-plan dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--ws-border); padding: 10px 0; }
.ws2-plan dt { color: var(--ws-muted); font-size: 12px; }
.ws2-plan dd { font-size: 12px; font-weight: 600; margin: 0; text-align: right; overflow-wrap: anywhere; }
.ws2-outline { border: 1px solid var(--ws-blue); background: var(--ws-active); width: 100%; font-size: 12px; }
.ws2-refresh { justify-self: end; background: transparent; border: 0; color: var(--ws-blue); font: inherit; cursor: pointer; padding: 4px; }
.ws2-refresh-status { text-align: right; margin: -10px 0 0 !important; min-height: 16px; }
@media(max-width: 1240px) { .ws2-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } .ws2-kpi span:not(.ws2-icon) { min-height: 0; } .ws2-lower { grid-template-columns: 1fr; } }
@media(max-width: 1120px) and (min-width: 901px) { .ws2 { grid-template-columns: 1fr; } .ws2-side { grid-template-columns: repeat(2,minmax(0,1fr)); } .ws2-refresh, .ws2-refresh-status { grid-column: 1/-1; } }
@media(max-width: 760px) { .ws2 { grid-template-columns: 1fr; } .ws2-side { grid-template-columns: repeat(2,minmax(0,1fr)); } .ws2-refresh, .ws2-refresh-status { grid-column: 1/-1; } }
@media(max-width: 560px) { .ws2-side, .ws2-usage { grid-template-columns: 1fr 1fr; } .ws2-side { grid-template-columns: 1fr; } .ws2-usage > :nth-child(3) { border-left: 0; padding-left: 0; } .ws2-search { flex-wrap: wrap; padding: 8px; } .ws2-search input { flex-basis: calc(100% - 40px); } .ws2-primary { width: 100%; } .ws2-panel { padding: 12px; } .ws2-kpi { padding: 10px 8px; gap: 6px; } .ws2-kpi strong { font-size: 22px; } .ws2-icon { flex-basis: 28px; height: 28px; } .ws2-icon svg { width: 17px; height: 17px; } }
