.product-tabs { margin-bottom: 28px; flex-wrap: wrap; }
.product-tabs [aria-current="page"] { color: var(--purple-deep); border-bottom: 2px solid var(--purple); font-weight: 700; }
.product-overview-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 20px; align-items:stretch; }
.product-main, .product-aside, .product-columns > * { min-width: 0; }
.product-main, .product-aside { background:var(--surface); border-radius:14px; padding:26px; }
.product-aside { border-left:0; }
.product-aside section { margin-bottom: 34px; }
.product-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin: 0 0 22px; }
.product-section-head h2, .product-section-head h3 { margin: 0; }
.product-section-head > * { min-width: 0; overflow-wrap: anywhere; }
.product-flow { display: flex; border-bottom: 1px solid var(--line); padding-bottom: 20px; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.product-flow span:not(:last-child)::after { content: " →"; margin-left: 12px; color: var(--purple); }
.product-result { padding: 22px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.product-result h2, .product-result h3 { font-size: 18px; margin: 0 0 10px; }
.product-result p { line-height: 1.75; }
.product-empty { padding:44px 12px; max-width:none; text-align:center; }
.product-empty h3 { margin:0 0 14px; font-size:20px; }
.product-empty p { max-width:68ch; margin:0 auto 22px; color:var(--muted); }
.product-empty .actions { justify-content:center; gap:18px; }
.product-empty .button { color:var(--purple); border-color:var(--purple); }
.product-queue-item { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.product-queue-item p { margin: 8px 0 0; }
.product-meter { display: grid; grid-template-columns: 46px minmax(0,1fr) 35px; align-items: center; gap: 10px; margin: 14px 0; font-size: 12px; }
.product-meter meter { width: 100%; height: 12px; accent-color: var(--purple); }
.product-meter b { text-align: right; }
.product-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.product-columns label { display: block; }
.product-columns input:not([type="checkbox"]), .product-columns select, .product-columns textarea { width: 100%; box-sizing: border-box; }
.product-columns input[type="checkbox"] { width: auto; }
.product-search { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.product-search label { display: block; }
.product-search-text { flex: 1 1 320px; }
.product-search input[name="q"] { width: 100%; box-sizing: border-box; }
.product-subscription { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.product-subscription summary { overflow-wrap: anywhere; }
.product-alert { margin: 20px 0; }
.product-alert-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-bounded-form { max-width: 650px; margin-top: 28px; }
.product-columns blockquote { margin-left:0; padding:16px 18px; background:var(--soft); border-radius:6px; white-space:pre-wrap; }
@media (max-width: 1200px) { .product-overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .product-columns { grid-template-columns: 1fr; } .product-section-head { flex-wrap: wrap; } .product-search > label, .product-search > button { flex: 1 1 100%; } .product-tabs { gap: 12px; } }
.workbench-search-area, .product-stats-surface { background:var(--surface); border-radius:14px; padding:26px; margin-bottom:20px; }
.workbench-search { max-width:none; margin:0; }
.workbench-search > label { display:block; margin-bottom:18px; color:var(--ink); font-size:18px; font-weight:650; }
.workbench-search > div { display: flex; gap: 12px; }
.workbench-search input { flex: 1; min-width: 0; }
.workbench-search button { flex-shrink: 0; }
.workbench-search input { min-height:48px; }
.workbench-search button { min-width:144px; min-height:48px; }
.workbench-shortcuts { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:16px; }
.workbench-shortcuts a { display:inline-flex; align-items:center; min-height:32px; font-size:14px; }
.product-stats { grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; border:0; }
.product-stats > div { padding:0 24px; }
.product-stats > div:first-child { padding-left:0; }
.product-stats > div:last-child { padding-right:0; }
.product-stats > div > a { font-size:14px; color:var(--text); font-weight:600; }
.product-stats > div > a:hover { color:var(--purple); text-decoration:underline; }
.product-stats strong { font-size:32px; font-weight:650; line-height:1.4; margin:5px 0; color:var(--ink); font-variant-numeric:tabular-nums; }
.product-stats small { display:block; color:var(--muted); font-size:13px; line-height:1.6; }
.shell .product-stat-details { margin:20px 0 0; padding-top:4px; border-top:1px solid var(--line); }
.product-stat-details summary { color:var(--muted); font-size:13px; }
.shell .product-secondary { margin:0; padding:8px 0; border-top:1px solid var(--line); }
.product-secondary summary { color:var(--muted); font-size:14px; }
.product-back { padding:8px 0; font-size:14px; }
.product-search-panel { padding:24px !important; }
.product-search input, .product-search select { margin-top:6px; }
.product-search-options { flex-basis:100%; margin:0 !important; }
.product-search-options summary { padding:6px 0; color:var(--muted); font-size:13px; }
.product-search-options > div { display:flex; flex-wrap:wrap; gap:16px 24px; }
.product-search-options label { font-size:13px; }
.product-results-count { margin:24px 0 8px; color:var(--muted); font-size:13px; }
.product-result { padding:24px; background:var(--surface); border:0; border-radius:12px; margin-bottom:14px; }
.product-main .product-result { padding:20px 0; border-bottom:1px solid var(--line); border-radius:0; margin:0; }
.product-result > .product-section-head { margin-bottom:10px; }
.product-result > .actions { gap:12px 24px; font-size:13px; }
.product-result > p { max-width:75ch; }
.product-result > p:not(.hint) { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
@media (max-width:640px) {
  .workbench-search-area, .product-stats-surface, .product-main, .product-aside { padding:20px; }
  .product-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; }
  .product-stats > div { padding:0 10px; border-bottom:0; border-right:1px solid var(--line); }
  .product-stats > div:nth-child(2) { border-right:1px solid var(--line); }
  .product-stats > div:last-child { border-right:0; }
  .product-stats > div > a { display:block; min-height:44px; font-size:12px; }
  .product-stats small { display:none; }
  .product-stats strong { font-size:28px; }
  .product-empty { padding:24px 0; }
  .workbench-search > label { font-size:16px; }
  .workbench-shortcuts { gap:4px 14px; }
  .product-search-panel, .product-result { padding:20px !important; }
}
@media (max-width: 480px) { .workbench-search > div { flex-direction: column; } }
