*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #111827; background: #f9fafb; }
a { color: #0f766e; }
.top { position: sticky; left: 0; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px 24px; background: #ffffff; border-bottom: 1px solid #e5e7eb; }
.top h1 { margin: 0; font-size: 20px; font-weight: 600; }
.back { font-size: 14px; flex-basis: 100%; }
.status, .prs { margin: 0; font-size: 14px; color: #4b5563; }
.prs a { margin-right: 12px; }
.zoom { margin-left: auto; display: flex; gap: 4px; }
.zoom button { font: inherit; font-size: 13px; padding: 4px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #ffffff; color: #111827; cursor: pointer; }
.zoom button[aria-pressed="true"] { background: #111827; color: #ffffff; border-color: #111827; }
.zoom button:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
.list { max-width: 880px; margin: 24px auto; padding: 0 24px; }
.list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list li a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; color: inherit; }
.list li a:hover, .list li a:focus-visible { border-color: #0f766e; }
.item-title { font-weight: 600; }
.item-meta, .empty, .message { font-size: 14px; color: #4b5563; }
body.canvas-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.stage { overflow: auto; padding: 32px 24px 64px; }
.canvas-page .stage { flex: 1; min-height: 0; }
.stage-sizer { position: relative; overflow: hidden; }
.stage-inner { width: max-content; transform-origin: 0 0; }
.row { margin-bottom: 64px; }
.row-title { margin: 0 0 16px; font-size: 28px; font-weight: 700; }
.row-grid { display: grid; column-gap: 80px; align-items: start; }
.board { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.caption { padding: 24px 32px; display: flex; flex-direction: column; gap: 8px; }
.label { display: flex; gap: 12px; align-items: center; font-size: 15px; color: #4b5563; }
.pill { background: #111827; color: #ffffff; border-radius: 999px; padding: 2px 12px; font-weight: 600; }
.does { margin: 0; font-size: 20px; font-weight: 600; }
.sees { margin: 0; font-size: 16px; color: #374151; }
.shot { display: flex; justify-content: center; background: #f3f4f6; }
.shot-open { display: block; cursor: zoom-in; }
.shot-open:focus-visible { outline: 3px solid #0f766e; outline-offset: -3px; }
.shot img { display: block; max-width: 100%; height: auto; }
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(17, 24, 39, 0.96); color: #ffffff; }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer::backdrop { background: rgba(17, 24, 39, 0.6); }
.viewer-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 16px; align-items: center; padding: 12px 20px; background: rgba(17, 24, 39, 0.9); }
.viewer-caption { margin: 0; flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-hint { font-size: 13px; color: #d1d5db; white-space: nowrap; }
.viewer-close { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid #6b7280; border-radius: 6px; background: transparent; color: #ffffff; cursor: pointer; }
.viewer-img { max-width: calc(100vw - 160px); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); margin-top: 48px; object-fit: contain; background: #ffffff; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #ffffff; font-size: 32px; line-height: 1; cursor: pointer; }
.viewer-nav:disabled { opacity: 0.3; cursor: default; }
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
.viewer-close:focus-visible, .viewer-nav:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
@media (max-width: 640px) { .viewer-hint { display: none; } .viewer-img { max-width: 100vw; } .viewer-nav { top: auto; bottom: 16px; transform: none; } }
.missing { height: 360px; margin: 0 32px 32px; border: 2px dashed #9ca3af; display: flex; align-items: center; justify-content: center; padding: 24px; font-size: 18px; color: #374151; text-align: center; }
.account { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: #4b5563; }
.account button { font: inherit; font-size: 13px; padding: 4px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #ffffff; color: #111827; cursor: pointer; }
.account button:focus-visible, .primary:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
.auth { max-width: 440px; margin: 15vh auto 0; padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; }
.auth h1 { margin: 0; font-size: 24px; font-weight: 600; }
.lead { margin: 0; font-size: 16px; color: #374151; line-height: 1.5; }
.primary { font: inherit; font-size: 16px; font-weight: 600; padding: 12px 16px; border: 0; border-radius: 8px; background: #0f766e; color: #ffffff; cursor: pointer; }
.primary:disabled { opacity: 0.6; cursor: progress; }
.auth-status { margin: 0; min-height: 1.5em; font-size: 14px; color: #b91c1c; }
.lead strong { white-space: nowrap; }
