/* The published stylesheet remains the design source; these rules cover the
   local gallery controls, accessible native dialog and anonymous feedback. */
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { font-size: 16px; }
main:focus { outline: none; }
.ui-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--secondary); color: var(--foreground); font: inherit; font-size: 14px; line-height: 1.4; text-align: center; }
.ui-button:hover { background: #30363e; }
.ui-button.primary, .project-open { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.ui-button.primary:hover { background: #ffac83; }
.ui-button:disabled { opacity: .55; cursor: default; }
.icon-control { flex: none; min-width: 44px; padding: 6px 12px; font-size: 26px; }
.loading-message, .status-message { color: #bdc2ca; margin: 16px 0; }
.navigation { margin-left: auto; }
.navigation a { min-height: 44px; }
.project-tabs { display: grid; }
.project-tab[data-slot=tabs-trigger] { font-family: inherit; }
.project-explorer { display: flex; flex-direction: column; }
.stage-image-button { cursor: zoom-in; }
.stage-image-button img { object-fit: cover; }
.showcase-model .stage-image-button img { object-fit: contain; }
.stage-alt { color: #bdc2ca; margin: 12px 2px 0; font-size: 14px; line-height: 1.5; }
.image-navigation button { background: transparent; border: 0; }
.filmstrip button { display: block; height: auto; min-height: 118px; padding: 3px; text-align: left; }
.filmstrip button.is-selected { padding: 2px; }
.filmstrip img { display: block; height: 80px; }
.filmstrip .strip-label { position: static; display: block; padding: 5px 4px 3px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.4; background: transparent; overflow-wrap: anywhere; }
.filmstrip .strip-number { bottom: auto; top: 57px; }
.about-web { margin-top: 38px; max-width: 850px; }
.about-web h2 { color: #eee; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.about-web p { color: #bdc2ca; margin: 10px 0; line-height: 1.65; }
.breadcrumb { color: #a9afb8; font-size: 14px; display: inline-block; margin: 0 0 18px; padding-block: 6px; }
.breadcrumb:hover { color: var(--primary); }
.version-toolbar { flex-wrap: wrap; margin-bottom: 18px; }
.version-list[data-slot=tabs-list] { display: flex; gap: 5px; }
.version-tab[data-slot=tabs-trigger] { background: transparent; border: 1px solid transparent; border-radius: 7px; font-family: var(--font-mono); font-size: 14px; white-space: nowrap; min-height: 44px; }
.version-tab[data-slot=tabs-trigger][aria-pressed=true] { background: var(--primary); color: #15100c; border-color: var(--primary); }
.gallery-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-modes .ui-button[aria-pressed=true] { border-color: var(--primary); color: #ffc6a8; background: #2b211c; }
.gallery-summary { flex-wrap: wrap; }
.version-summary { max-width: 950px; color: #bdc2ca; margin-bottom: 20px; font-size: 16px; line-height: 1.65; }
.photo-grid { align-items: start; }
.photo-tile:first-child { grid-area: span 2 / span 2; }
.photo-tile:first-child > button { height: auto; }
.photo-tile > button { cursor: zoom-in; }
.photo-tile img { aspect-ratio: var(--photo-aspect, 1.5); object-fit: contain; }
.photo-tile > button { aspect-ratio: var(--photo-aspect, 1.5); }
.photo-tile figcaption { display: block; color: #d4d8de; margin: 9px 2px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.photo-tile .photo-version { display: block; color: var(--primary); font-family: var(--font-mono); font-size: 14px; margin-bottom: 3px; }
.photo-credit { display: flex; gap: 5px 12px; flex-wrap: wrap; color: #a9afb8; font-size: 14px; margin-top: 5px; line-height: 1.5; }
.photo-credit a, .image-credits a { text-decoration: underline; text-underline-offset: 3px; }
.photo-change { flex-basis: 100%; }
.reference-grid { gap: 24px; }
.reference-grid figcaption small { text-align: left; }
.reference-note { font-size: 14px; }
.empty-gallery { text-align: center; padding: 28px; min-height: 220px; }
.empty-gallery p { max-width: 700px; }
.image-dialog[data-slot=dialog-content] { position: fixed; inset: 0; margin: auto; color: var(--foreground); border: 1px solid #49515c; }
.image-dialog:not([open]) { display: none; }
.image-dialog::backdrop { background: #000c; }
body.viewer-open { overflow: hidden; }
.viewer-image { min-height: 0; position: relative; }
.viewer-image img { max-height: calc(100dvh - 285px); }
.viewer-top { flex-shrink: 0; }
.viewer-top h2 { overflow-wrap: anywhere; }
.viewer-top .mini-label { font-size: 14px; letter-spacing: .06em; }
.viewer-top [data-slot=dialog-description] { font-size: 14px; }
.viewer-bottom { gap: 16px; flex-shrink: 0; }
.viewer-bottom > span { white-space: nowrap; font-size: 14px; }
.image-credits { align-items: center; font-size: 14px; flex-shrink: 0; }
.image-credits a { display: inline; }
.image-failure { margin: 0; text-align: center; }
.feedback-section { margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--border); }
.feedback-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.feedback-heading h2 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.rating-summary { color: #b9bec6; font-size: 14px; }
.feedback-intro { color: #bdc2ca; margin-bottom: 22px; }
.feedback-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px; align-items: start; }
.feedback-form { background: #171a1f; border: 1px solid var(--border); border-radius: 11px; padding: 22px; }
.feedback-form label, .feedback-form legend { font-size: 14px; color: #e4e6ea; font-weight: 600; display: block; margin-bottom: 8px; }
.feedback-form textarea { display: block; width: 100%; min-height: 130px; resize: vertical; padding: 12px; border: 1px solid var(--input); border-radius: 8px; background: #101317; color: var(--foreground); font: inherit; line-height: 1.5; }
.feedback-form fieldset { padding: 0; margin: 20px 0; border: 0; min-width: 0; }
.rating-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.rating-choice { display: block; position: relative; }
.rating-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.rating-choice span { display: flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--input); border-radius: 7px; background: #101317; font-size: 16px; }
.rating-choice input:checked + span { background: var(--primary); color: #15100c; border-color: var(--primary); }
.rating-choice input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; }
.rating-choice input:disabled { cursor: default; }
.rating-help, .character-count { color: #a9afb8; font-size: 14px; margin-top: 8px; }
.feedback-form .ui-button { width: 100%; }
.feedback-result { min-height: 21px; margin-top: 12px; font-size: 14px; }
.feedback-result.error { color: #ff9f9f; }
.feedback-result.success { color: #a1dbae; }
.feedback-list { display: flex; flex-direction: column; gap: 16px; }
.feedback-list article { background: #171a1f; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.comment-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; font-size: 14px; }
.comment-header time { color: #a9afb8; font-size: 14px; }
.comment-copy { color: #d4d8de; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 0; }
.feedback-empty { color: #a9afb8; font-size: 16px; }
.feedback-more { margin-top: 16px; }
.feedback-load-error { color: #ff9f9f; font-size: 14px; margin-bottom: 14px; }
@media (max-width: 850px) {
  .navigation { margin-left: 0; }
  .feedback-layout { grid-template-columns: 1fr; gap: 24px; }
  .photo-tile:first-child { grid-area: auto / span 2; }
}
@media (max-width: 520px) {
  .site-header { gap: 10px; }
  .navigation { justify-content: flex-start; gap: 2px; }
  .navigation a { font-size: 14px; padding-inline: 10px; }
  .project-tabs[data-slot=tabs-list] { grid-template-columns: 1fr; }
  .project-tab[data-slot=tabs-trigger] { font-size: 16px; min-height: 70px; }
  .project-tab small { font-size: 14px; }
  .project-number, .tab-image { display: block; }
  .tab-image { width: 64px; }
  .filmstrip button { width: 142px; min-height: 110px; }
  .filmstrip img { height: 74px; }
  .filmstrip .strip-number { top: 52px; }
  .photo-grid { grid-template-columns: 1fr; gap: 20px; }
  .photo-tile:first-child { grid-area: auto; }
  .version-toolbar > .mini-label { font-size: 14px; }
  .gallery-modes { margin-top: 8px; }
  .gallery-summary { font-size: 14px; }
  .viewer-image img { max-height: calc(100dvh - 305px); }
  .viewer-bottom { justify-content: space-between; gap: 5px; }
  .viewer-bottom .ui-button { padding: 9px 8px; }
  .viewer-bottom > span { font-size: 14px; }
  .feedback-form { padding: 18px 16px; }
  .feedback-heading h2 { font-size: 21px; }
  .site-footer { flex-wrap: wrap; font-size: 14px; }
}
@media (max-width: 360px) {
  .workspace { padding-inline: 12px; }
  .site-header { padding-inline: 12px; }
  .navigation a { padding-inline: 7px; }
  .tab-image { width: 52px; }
  .project-tab[data-slot=tabs-trigger] { padding-inline: 10px; }
  .image-dialog[data-slot=dialog-content] { padding: 10px; }
  .viewer-bottom .ui-button { font-size: 14px; padding-inline: 6px; }
  .rating-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
