/* Workspace: visão geral, projetos, página do projeto e listas por tipo.
   Mesma família visual do OS (Inter, 2 px, tokens Prism); sem cor inventada. */
.wv-page { min-height: 100%; background: var(--surface-raised); }
.wv-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 40px 32px 64px; }
.wv-page-inner { min-width: 0; }

.wv-head { min-width: 0; }
.wv-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.wv-eyebrow a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.wv-eyebrow a:hover { color: var(--text-strong); }
.wv-sep { color: var(--text-tertiary); }
.wv-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.wv-title { color: var(--text-strong); font-size: 30px; font-weight: 600; line-height: 38px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.wv-title:focus { outline: none; }
.wv-lead { margin-top: 8px; color: var(--text-secondary); font-size: 16px; line-height: 26px; }
.wv-counts { margin-top: 10px; color: var(--text-secondary); font-size: 13px; line-height: 20px; }
.wv-note { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--border-strong); background: var(--surface); color: var(--text-secondary); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }

.wv-section { margin-top: 36px; }
.wv-h2 { color: var(--text-strong); font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-h2); }
.wv-h3 { margin-top: 18px; color: var(--text-strong); font-size: 15px; font-weight: 600; line-height: 22px; }
.wv-cat-group { margin-top: 18px; }

.wv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; list-style: none; }
.wv-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius, 2px); background: var(--surface); }
.wv-card-link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; color: inherit; }
.wv-card-link:hover { background: var(--hover); }
.wv-card-cat { color: var(--text-secondary); font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.wv-card h3 { color: var(--text-strong); font-size: 16px; font-weight: 600; line-height: 22px; overflow-wrap: anywhere; }
.wv-card-obj { display: -webkit-box; overflow: hidden; color: var(--text-secondary); font-size: 14px; line-height: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wv-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }

.wv-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; list-style: none; }
.wv-item { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius, 2px); background: var(--surface); }
.wv-item:focus { outline: 2px solid var(--text-strong); outline-offset: 2px; }
.wv-item-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wv-item h4 { color: var(--text-strong); font-size: 15px; font-weight: 600; line-height: 22px; overflow-wrap: anywhere; }
.wv-item h4 a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.wv-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wv-meta { margin-top: 4px; color: var(--text-secondary); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.wv-sub { margin-top: 4px; font-size: 13px; line-height: 20px; }
.wv-sub a, .wv-ref { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.wv-ref:hover, .wv-sub a:hover { text-decoration-color: currentColor; }
.wv-text { margin-top: 8px; color: var(--text); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.wv-consequence { margin-top: 6px; color: var(--text-secondary); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.wv-consequence strong { color: var(--text); }
.wv-deps { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 8px; color: var(--text-secondary); font-size: 13px; line-height: 20px; }
.wv-dep-label { font-weight: 600; color: var(--text); }
.wv-dot { color: var(--text-tertiary); }

.wv-badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--border); border-radius: var(--radius, 2px); background: var(--surface-sunken); color: var(--text-strong); font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.wv-linear { color: var(--text-strong); font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.wv-linear:hover { text-decoration-color: currentColor; }
.wv-muted { color: var(--text-secondary); font-size: 12px; }

.wv-evidence { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.wv-evidence code { color: var(--text); font-family: var(--font-mono); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.wv-commit { color: var(--text-secondary); font-family: var(--font-mono); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }

.wv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.wv-facts div { min-width: 0; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius, 2px); background: var(--surface); }
.wv-facts dt { color: var(--text-secondary); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.wv-facts dd { margin-top: 4px; color: var(--text); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }

.wv-tabs-wrap { margin-top: 28px; }
.wv-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); }
.wv-tab { min-height: 40px; padding: 8px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; line-height: 20px; cursor: pointer; }
.wv-tab:hover { background: var(--hover); color: var(--text-strong); }
.wv-tab[aria-selected="true"] { border-bottom-color: var(--text-strong); color: var(--text-strong); }
.wv-tab:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 2px; }
.wv-tab-count { margin-left: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 500; }
.wv-panel { padding-top: 16px; }

.wv-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.wv-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wv-field span { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.wv-field select { min-height: 40px; max-width: 100%; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius, 2px); background: var(--surface); color: var(--text-strong); font: inherit; font-size: 14px; }
.wv-field select:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 2px; }
.wv-result-count { margin-top: 12px; color: var(--text-secondary); font-size: 13px; line-height: 20px; }

.wv-empty { margin-top: 16px; padding: 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius, 2px); background: var(--surface); color: var(--text-secondary); font-size: 14px; line-height: 22px; }
.wv-loading { padding: 24px 0; color: var(--text-secondary); font-size: 14px; line-height: 22px; }
.wv-error { padding: 8px 0; }
.wv-error p { margin-top: 10px; color: var(--text-secondary); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.wv-actions { margin-top: 18px; }
.wv-primary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius, 2px); background: var(--text-strong); color: var(--surface); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wv-primary:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 2px; }

@container os-body (max-width: 640px) {
  .wv-wrap { padding: 20px 16px 40px; }
  .wv-title { font-size: 26px; line-height: 34px; }
  .wv-lead { font-size: 15px; line-height: 24px; }
  .wv-section { margin-top: 28px; }
  .wv-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wv-filters { flex-direction: column; gap: 10px; }
  .wv-field select { width: 100%; }
  .wv-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; }
  .wv-tab { flex: 0 0 auto; white-space: nowrap; }
  .wv-facts { grid-template-columns: minmax(0, 1fr); }
}
