:root { --bg: #fbfcfe; --ink: #171c25; --muted: #8390a2; --line: #e4eaf1; }
body.shelf-page { background: var(--bg); min-width: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #c6d1df; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
.portfolio-shell { width: min(1120px, calc(100% - 80px)); margin: auto; padding-top: max(36px, env(safe-area-inset-top)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
#labSceneDock .shelf-monogram.scene { width: 100%; height: 220px; margin-bottom: 14px; }
.shelf-monogram.scene { position: relative; inset: auto; width: 250px; height: 140px; flex: 0 0 250px; border: 0; z-index: 0; overflow: hidden; touch-action: pan-y; }
.shelf-monogram.scene canvas { width: 100%; height: 100%; display: block; }
.shelf-monogram .scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; transform: none; }
.shelf-monogram[data-scene-state="ready"] .scene-fallback { display: none; }
.shelf-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 6px 0 30px; }
.shelf-heading h1 { font-size: 38px; line-height: 1.3; font-weight: 700; }
.shelf-page .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; color: #627187; border: 1px solid #e5ecf4; border-radius: 50%; background: #ffffffa6; transition: background .2s, border-color .2s; }
.shelf-page .icon-button:hover { background: #edf5ff; border-color: #c6d9ef; }
.shelf-page .icon-button svg { width: 20px; height: 20px; stroke-width: 1.65; }
.shelf-search { display: flex; gap: 12px; align-items: center; padding-bottom: 26px; }
.shelf-search-input { display: flex; align-items: center; flex: 1; gap: 10px; min-width: 0; background: #fff; border: 1px solid #cbd8e8; border-radius: 8px; padding: 10px 14px; color: #7a8798; }
.shelf-search-input input { background: transparent; border: 0; color: var(--ink); width: 100%; min-width: 0; outline-offset: 2px; font-size: 16px; }
.shelf-favorites { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 8px; background: transparent; border: 1px solid #e4eaf1; font-size: 14px; }
.shelf-favorites.active { background: #eaf3ff; color: #0071e3; border-color: #a4c8f0; }
.shelf-section { margin-bottom: 36px; }
.shelf-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.shelf-section-heading h2 { font-size: 22px; font-weight: 650; line-height: 1.35; }
.shelf-section-symbol { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #2082ee; background: #f2f7ff; border: 1px solid #e0eafa; border-radius: 8px; }
.shelf-section-symbol svg { width: 21px; height: 21px; }
.shelf-section-count { display: inline-flex; justify-content: center; align-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 16px; background: #edf2f8; color: #627187; font: 500 14px/1 Space, sans-serif; }
.shelf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shelf-grid[data-kind="game"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelf-card { min-width: 0; position: relative; }
.shelf-card > a { color: inherit; text-decoration: none; cursor: pointer; }
.shelf-card-button { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; padding: 16px 22px 20px; text-align: left; border: 1px solid #e9eef5; border-radius: 8px; background: #ffffffb8; box-shadow: 0 6px 26px #355c8f05; backdrop-filter: blur(12px); transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; overflow: hidden; }
.shelf-card-art { width: 100%; height: 168px; object-fit: contain; margin-bottom: 9px; mix-blend-mode: multiply; transform: scale(var(--art-scale, 1)); transition: transform .32s ease; pointer-events: none; }
.shelf-card-label { width: 100%; display: grid; grid-template-rows: 1fr auto; align-self: stretch; gap: 8px; margin-top: auto; min-width: 0; }
.shelf-card-label h3 { min-width: 0; min-height: 2.9em; margin: 0; font-size: 18px; line-height: 1.45; font-weight: 550; overflow-wrap: anywhere; }
.shelf-card-label h3 span { display: block; }
.shelf-card-arrow { width: 30px; height: 30px; justify-self: end; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #e3ebf5; background: #fff; color: #6b7a90; box-shadow: 0 2px 7px #325c8b06; }
.shelf-card-arrow svg { width: 17px; height: 17px; stroke-width: 1.7; }
.shelf-grid[data-kind="software"] .shelf-card-button { display: grid; grid-template-rows: 176px 1fr; gap: 14px; }
.shelf-grid[data-kind="software"] .shelf-card-art { height: 176px; margin: 0; --art-scale: 1; }
.shelf-grid[data-kind="software"] .shelf-card-label { margin: 0; }
.shelf-grid[data-kind="software"] .shelf-card-arrow { align-self: flex-end; }
@media (hover: hover) and (pointer: fine) {
  .shelf-card-button:hover { border-color: #b8d4f4; box-shadow: 0 12px 36px #3b6b9f14; }
  .shelf-card-button:hover .shelf-card-art { transform: translateY(-5px) scale(calc(var(--art-scale, 1) * 1.035)); }
  .shelf-card-button:hover .shelf-card-arrow { background: #edf5ff; color: #0071e3; }
}
.shelf-card-button:active { transform: scale(.985); }
.shelf-grid[data-kind="game"] .shelf-card-button { flex-direction: row; align-items: center; gap: 18px; padding: 16px 22px; }
.shelf-grid[data-kind="game"] .shelf-card-art { width: 126px; height: 126px; margin: 0; }
.shelf-grid[data-kind="game"] .shelf-card-label { margin: 0; }
.shelf-lab { margin-top: 6px; border-top: 1px solid var(--line); }
.shelf-lab summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; color: #76869a; font-size: 14px; }
.shelf-lab summary::-webkit-details-marker { display: none; }
.shelf-lab summary > span:first-child { display: flex; align-items: center; gap: 8px; }
.shelf-lab[open] summary > span:last-child { transform: rotate(180deg); }
.shelf-lab-content { padding: 6px 0 22px; }
.sculpture-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sculpture-toolbar .material-controls { width: auto; flex: 1; min-width: 180px; border-radius: 6px; margin: 0; }
.sculpture-toolbar .material-button { flex: 1; padding: 10px 12px; }
.sculpture-toolbar .button { min-height: 40px; font-size: 12px; }
.shelf-lab .type-stage { height: 230px; margin: 16px 0; border-radius: 8px; background: #edf5ff; }
.shelf-lab .lab-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 0; border: 0; }
.shelf-lab .type-input { min-width: 160px; flex: 1; padding: 10px 12px; display: flex; border-radius: 6px; }
.shelf-lab .type-input input { width: 100%; min-width: 0; background: transparent; border: 0; font-size: 16px; }
.shelf-lab .field-controls { display: flex; gap: 5px; }
.shelf-lab .field-controls button { min-height: 40px; padding: 7px 12px; border-radius: 6px; }
.shelf-footer { border-top: 1px solid var(--line); padding: 20px 0 26px; color: #8b97a8; }
.shelf-footer-top, .shelf-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shelf-domain { font: 500 18px/1.5 Space, sans-serif; }
.shelf-footer-actions { display: flex; align-items: center; gap: 8px; }
.shelf-footer .text-button { font-size: 12px; padding: 10px 4px; }
.shelf-footer .icon-button { width: 34px; height: 34px; min-width: 34px; border-color: transparent; background: transparent; }
.shelf-footer .icon-button svg { width: 17px; height: 17px; }
.shelf-footer-bottom { font-size: 11px; margin-top: 14px; }
.shelf-footer-bottom svg { width: 13px; height: 13px; }
.shelf-page dialog { max-width: 720px; }
.shelf-page .dialog-media.cover-only { height: 220px; background: #f7faff; }
.shelf-page .dialog-media.cover-only img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.shelf-page .dialog-top { position: sticky; top: 0; z-index: 1; }
.shelf-page .dialog-info { padding: 24px; }
.shelf-page .dialog-info h2 { font-size: 26px; overflow-wrap: anywhere; }
.shelf-page .dialog-actions { flex-wrap: wrap; gap: 10px; }
.shelf-page .dialog-actions .button { min-height: 42px; }
.shelf-page .dialog-subtitle { font-size: 15px; }
.download-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.download-heading img { flex: 0 0 88px; width: 88px; height: 88px; object-fit: contain; }
.download-heading > div { min-width: 0; }
.download-heading p { margin: 8px 0 0; color: #637187; font-size: 13px; }
.shelf-page .download-actions { margin: 20px 0; }
.shelf-page .download-actions .button { white-space: normal; text-align: left; }
.download-size { font-size: 12px; opacity: .8; }
.shelf-page .download-detail .release-note { line-height: 1.75; }
@media (max-width: 480px) {
  .download-heading { gap: 12px; }
  .download-heading img { flex-basis: 64px; width: 64px; height: 64px; }
  .shelf-page .download-actions .button { width: 100%; justify-content: flex-start; }
  .download-size { margin-left: auto; }
}
.shelf-page .empty-state { padding: 36px 20px; }
.shelf-page .loading-state { padding: 60px 0; color: #738399; }
.shelf-page .noscript { color: var(--ink); padding: 24px; }
@media (max-width: 760px) {
  .portfolio-shell { width: calc(100% - 32px); padding-top: max(24px, env(safe-area-inset-top)); }
  .shelf-heading { margin: 0 0 24px; }
  .shelf-heading h1 { font-size: 30px; }
  .shelf-section { margin-bottom: 26px; }
  .shelf-section-heading { gap: 10px; margin-bottom: 12px; }
  .shelf-section-heading h2 { font-size: 18px; }
  .shelf-section-symbol { width: 30px; height: 30px; }
  .shelf-section-symbol svg { width: 18px; height: 18px; }
  .shelf-section-count { min-width: 26px; height: 22px; font-size: 12px; }
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shelf-card-button { padding: 8px 12px; }
  .shelf-card-art { height: 80px; margin-bottom: 4px; --art-scale: 1.35; }
  .shelf-card-label { gap: 6px; }
  .shelf-card-label h3 { font-size: 14px; font-weight: 550; line-height: 1.45; }
  .shelf-card-arrow { width: 24px; height: 24px; flex-basis: 24px; }
  .shelf-card-arrow svg { width: 15px; height: 15px; }
  .shelf-grid[data-kind="software"] .shelf-card-button { grid-template-rows: 104px 1fr; gap: 10px; padding: 12px; }
  .shelf-grid[data-kind="software"] .shelf-card-art { height: 104px; }
  .shelf-grid[data-kind="game"] .shelf-card-button { display: grid; grid-template-rows: 104px 1fr; padding: 12px; gap: 10px; }
  .shelf-grid[data-kind="game"] .shelf-card-art { width: 100%; height: 104px; --art-scale: 1; }
  .shelf-search { gap: 7px; padding-bottom: 18px; }
  .shelf-favorites { padding: 10px 8px; }
  .shelf-footer { padding-top: 14px; }
  .shelf-footer .text-button { font-size: 11px; }
  .shelf-domain { font-size: 16px; }
  .shelf-page dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .shelf-page .dialog-info { padding: 20px; }
  .shelf-page .dialog-info h2 { font-size: 23px; }
  .shelf-page .dialog-media.cover-only { height: 170px; }
  .shelf-page .filing-links:not([hidden]) { font-size: 10px; gap: 7px; }
}
@media (max-width: 360px) {
  .portfolio-shell { width: calc(100% - 28px); }
  .shelf-card-button { padding: 8px 9px 10px; }
  .shelf-card-art { height: 80px; }
  .shelf-card-label h3 { font-size: 13px; }
  .shelf-card-arrow { width: 22px; height: 22px; flex-basis: 22px; }
  .shelf-grid[data-kind="software"] .shelf-card-button { padding: 10px; grid-template-rows: 94px 1fr; }
  .shelf-grid[data-kind="software"] .shelf-card-art { height: 94px; }
}
body.paused .shelf-card-button { transition: none; transform: none !important; }
body.paused .shelf-card-art { transition: none; transform: scale(var(--art-scale, 1)) !important; }
@media (prefers-reduced-motion: reduce) {
  .shelf-card-button { transition: none; transform: none !important; }
  .shelf-card-art { transition: none; transform: scale(var(--art-scale, 1)) !important; }
}
