/* Silver workspace surfaces; frosted chrome stays in the existing app shell. */
.page:has(.nest-workbench, .pairing-planner, #showcase-content) > .page-header h1 { font-size: 28px; line-height: 1.3; }
.page:has(.nest-workbench, .pairing-planner, #showcase-content) > .page-header p:empty { display: none; }
.loft-muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.loft-prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.loft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pairing-planner { padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.pairing-pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.loft-picker { position: relative; min-width: 0; }
.loft-picker > label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.loft-picker-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 0 12px; }
.loft-picker-input > svg { width: 18px; flex: 0 0 18px; color: var(--muted); }
.loft-picker-input input { width: 100%; min-width: 0; height: 46px; border: 0; background: none; outline-offset: 0; font-size: 16px; }
.loft-picker-results { position: absolute; top: 76px; left: 0; right: 0; z-index: 5; max-height: 280px; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #24323d24; }
.loft-picker-results button { width: 100%; display: grid; gap: 5px; border: 0; border-radius: 4px; background: transparent; text-align: left; min-height: 58px; padding: 9px 10px; overflow-wrap: anywhere; }
.loft-picker-results button:hover, .loft-picker-results button[aria-selected="true"] { background: var(--accent-soft); }
.loft-picker-results small, .loft-picker-selected { color: var(--muted); font-size: 12px; }
.loft-picker-selected { min-height: 30px; padding-top: 6px; }
.loft-picker-selected span { display: flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.loft-picker-selected svg { width: 14px; color: var(--success); }
.pairing-evidence { padding: 12px 0; min-height: 80px; }
.pairing-evidence p { margin: 6px 0; }
.pair-evidence-heading { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.pair-evidence-heading svg { flex: 0 0 20px; width: 20px; }
.pair-evidence-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pair-evidence-list button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.pair-evidence-list svg { width: 16px; flex-shrink: 0; }
.loft-pair-history { margin-top: 24px; }
.loft-pair-history .pair-strip, .nest-workbench > .pair-strip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.loft-pair-history .pair-card .icon-button, .nest-workbench .pair-card .icon-button { flex: 0 0 44px; min-width: 44px; }
.loft-pair-history .pair-card > .inline-actions, .nest-workbench .pair-card > .inline-actions { flex-wrap: wrap; }
.nest-summary { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 8px 0 24px; border-bottom: 1px solid var(--line); }
.nest-summary span { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; }
.nest-summary strong { color: var(--ink); font-size: 24px; font-variant-numeric: tabular-nums; }
.nest-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.nest-toolbar h2 { font-size: 18px; margin: 0; }
.nest-layout { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 24px; align-items: start; }
.nest-list { display: grid; gap: 6px; max-height: 560px; overflow: auto; padding: 2px; }
.nest-list > button { display: flex; align-items: flex-start; gap: 12px; width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 14px 12px; min-height: 80px; background: transparent; text-align: left; }
.nest-list > button[aria-pressed="true"] { border-color: var(--line-strong); background: #fff; box-shadow: 0 2px 8px #20304008; }
.nest-list > button > span { flex: 1; min-width: 0; display: grid; gap: 8px; }
.nest-list strong { font-size: 14px; overflow-wrap: anywhere; }
.nest-list small { font-size: 12px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.nest-list em { flex-shrink: 0; font-style: normal; font-size: 12px; color: var(--muted); padding-top: 2px; }
.nest-sheet { min-width: 0; scroll-margin-top: 90px; border-left: 1px solid var(--line); padding-left: 24px; }
.nest-sheet > header { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 0 0 18px; }
.nest-sheet > header small { color: var(--muted); font-size: 12px; }
.nest-sheet > header h2 { margin: 8px 0 0; font-size: 24px; }
.nest-sheet > section, .nest-foster { padding: 20px 0; border-top: 1px solid var(--line); }
.nest-sheet h3 { margin: 0; font-size: 15px; }
.nest-sheet .section-heading { margin-bottom: 10px; }
.nest-sheet .section-heading > span { color: var(--muted); font-size: 13px; }
.nest-sheet .data-row { border: 0; padding: 12px 0; gap: 12px; background: transparent; box-shadow: none; }
.nest-parents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 0 20px; }
.loft-identity { display: flex; align-items: center; width: 100%; gap: 10px; min-width: 0; min-height: 72px; padding: 8px 4px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.loft-identity > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; flex: 1; }
.loft-identity strong { font-size: 14px; overflow-wrap: anywhere; }
.loft-identity small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.loft-identity > svg { width: 16px; flex-shrink: 0; color: var(--muted); }
.loft-avatar { width: 44px; height: 52px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: #e4e9ec; }
.loft-avatar img { width: 100%; height: 100%; object-fit: cover; }
.loft-avatar .pigeon-avatar { width: 100%; height: 100%; min-width: 0; border-radius: 0; }
.loft-avatar svg { width: 26px; height: 26px; color: var(--icon); }
.nest-young { padding: 0 0 10px; }
.nest-foster summary { cursor: pointer; min-height: 44px; font-size: 14px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.showcase-item { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.showcase-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; border-radius: 8px; background: #e3e8eb; }
.showcase-photo img { width: 100%; height: 100%; object-fit: contain; }
.showcase-photo .pigeon-avatar { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 0; background: transparent; }
.showcase-photo .pigeon-avatar svg { width: 64px; height: 64px; }
.showcase-photo > svg { width: 64px; height: 64px; color: var(--icon); }
.showcase-copy { padding-top: 16px; }
.showcase-copy > small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.showcase-copy h2 { margin: 8px 0; font-size: 20px; }
.showcase-copy h2 button { background: none; padding: 0; min-height: 44px; border: 0; text-align: left; font-weight: 600; overflow-wrap: anywhere; }
.showcase-copy p { font-size: 14px; margin: 10px 0; }
.showcase-copy footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#showcase-error { color: var(--danger); font-size: 13px; }
@media (hover: hover) { .loft-identity:hover { background: #e8edf1; } .showcase-copy h2 button:hover { color: var(--accent); } }
@media (prefers-reduced-motion: no-preference) {
  .loft-identity, .nest-list > button, .pair-evidence-list button { transition: background-color 160ms, border-color 160ms; }
  .showcase-item { animation: workspace-in 220ms var(--motion-ease); }
}
@media (max-width: 1100px) { .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nest-layout { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 16px; } .nest-sheet { padding-left: 16px; } .nest-parents { grid-template-columns: 1fr; } }
@media (max-width: 699px) {
  .page:has(.nest-workbench, .pairing-planner, #showcase-content) > .page-header h1 { font-size: 24px; }
  .pairing-pickers { grid-template-columns: 1fr; gap: 10px; }
  .loft-actions { display: grid; grid-template-columns: 1fr; }
  .loft-actions button { width: 100%; }
  .nest-summary { gap: 12px 18px; }
  .nest-summary strong { font-size: 22px; }
  .nest-summary span { font-size: 12px; gap: 6px; }
  .nest-layout { grid-template-columns: 1fr; gap: 20px; }
  .nest-list { max-height: 220px; }
  .nest-sheet { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .nest-sheet .data-row { flex-wrap: wrap; }
  .nest-sheet .inline-actions { flex-wrap: wrap; }
  .nest-parents { grid-template-columns: 1fr 1fr; }
  .loft-identity { gap: 6px; }
  .loft-identity > svg { display: none; }
  .loft-avatar { width: 34px; height: 44px; flex-basis: 34px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
  .showcase-photo { aspect-ratio: 3 / 2; }
}
