/* /prototypes — gallery, list and thumbnail views, search and filters, sign-in. Built on the light editorial tokens. */
.pt-hero { min-height: calc(40svh + var(--bar-h)); }
@media (min-width: 880px) { .pt-hero { min-height: calc(46svh + var(--bar-h)); } .pt-hero .dx-hero-inner { padding: 64px 0 56px; } }
.pt-wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.pt [hidden] { display: none !important; }
.pt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* toolbar */
.pt-tools { position: sticky; top: var(--bar-h); z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.pt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pt-row-2 { margin-top: 10px; }
.pt-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-3); }
.pt-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.pt-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px/1.2 Inter, system-ui, sans-serif; color: var(--ink); }
.pt-views { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper-2); }
.pt-views button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 13.5px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.pt-views button:hover { color: var(--ink); }
.pt-views button[aria-checked="true"] { background: #fff; color: var(--blue-deep); box-shadow: 0 1px 3px rgba(10,26,51,.12); }
.pt-views button:focus-visible, .pt-link:focus-visible, .pt-lh button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pt-field { display: inline-flex; align-items: center; gap: 8px; }
.pt-field > span { font: 500 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.pt-field select { min-height: 40px; max-width: 220px; padding: 0 30px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235B6B85' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font: 500 14px/1.2 Inter, system-ui, sans-serif; color: var(--ink); }
.pt-field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.pt-count { margin: 0 0 0 auto; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.pt-auth { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; }
.pt-who { color: var(--ink-3); }
.pt-link { border: 0; background: none; padding: 6px 2px; font: 600 13.5px/1 Inter, system-ui, sans-serif; color: var(--blue-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 719px) {
  .pt-tools { position: static; }
  .pt-views { width: 100%; }
  .pt-views button { flex: 1; justify-content: center; padding: 0 8px; }
  .pt-row-2 { display: grid; grid-template-columns: 1fr 1fr; }
  .pt-field { display: grid; gap: 5px; }
  .pt-field select { max-width: none; width: 100%; }
  .pt-count { margin: 0; }
  .pt-auth { justify-content: flex-end; flex-wrap: wrap; gap: 0 10px; }
  .pt-who { font-size: 12.5px; }
}

/* results */
.pt-results { padding: 28px 0 72px; }
.pt[data-state="loading"] #pt-empty { visibility: hidden; }
.pt-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.pt-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pt-shot.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, #0B1F3A, #1E5EFF); }
.pt-shot.is-empty span { font: 600 clamp(18px, 3vw, 34px)/1 "Space Grotesk", Inter, sans-serif; color: rgba(255,255,255,.92); letter-spacing: .04em; }
.pt time { display: inline-flex; gap: 6px; }
.pt-t { color: var(--ink-3); }
.pt-lock, .pt-open { display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.pt-lock { color: var(--navy); }
.pt-lock svg { width: 13px; height: 13px; }
.pt-open { color: var(--ink-3); }
a:is(.pt-card, .pt-lr, .pt-tile) { text-decoration: none; color: inherit; }
a:is(.pt-card, .pt-lr, .pt-tile):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* gallery */
.pt-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pt-card { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); transition: box-shadow .2s, border-color .2s; }
.pt-card:hover { border-color: var(--line-2); box-shadow: 0 18px 40px rgba(10,26,51,.10); }
.pt-card .pt-shot { border-bottom: 1px solid var(--line); }
.pt-card-b { display: grid; gap: 8px; align-content: start; padding: 18px 20px 20px; }
.pt-meta { font: 500 10.5px/1.5 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pt-name { font: 600 20px/1.2 "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.pt-card:hover .pt-name { color: var(--blue-deep); }
.pt-sum { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.pt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.pt-upd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.pt-upd svg { width: 15px; height: 15px; color: var(--ink-3); }

/* list */
.pt-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.pt-lh, .pt-lr { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 100px 150px; gap: 16px; align-items: center; padding: 12px 18px; }
.pt-lh { background: var(--paper-2); border-bottom: 1px solid var(--line); font: 500 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pt-lh button { display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; padding: 4px 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-2); cursor: pointer; }
.pt-arrow { color: var(--blue); }
.pt-lr { border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pt-lr:last-child { border-bottom: 0; }
.pt-lr:hover { background: var(--paper-2); }
.pt-lr:hover .pt-name { color: var(--blue-deep); }
.pt-lname { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.pt-lname .pt-shot { border-radius: 8px; border: 1px solid var(--line); }
.pt-lname > span:last-child { display: grid; gap: 3px; min-width: 0; }
.pt-lr .pt-name { font-size: 16px; }
.pt-lr .pt-sum { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-lr .pt-upd time { flex-direction: column; gap: 2px; }
@media (max-width: 859px) {
  .pt-lh { display: none; }
  .pt-lr { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .pt-lname { grid-column: 1 / -1; grid-template-columns: 96px minmax(0, 1fr); }
  .pt-lr .pt-lc[data-l]::before { content: attr(data-l); display: block; font: 500 10px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .pt-lr .pt-upd time { flex-direction: row; }
  .pt-lr .pt-lc.pt-upd { display: block; }
}

/* thumbnails */
.pt-thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.pt-tile { position: relative; display: grid; gap: 6px; }
.pt-tile .pt-shot { border-radius: 10px; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.pt-tile:hover .pt-shot { box-shadow: 0 12px 28px rgba(10,26,51,.14); transform: translateY(-2px); }
.pt-tile-lock { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgba(11,31,58,.82); color: #fff; }
.pt-tile-lock svg { width: 14px; height: 14px; }
.pt-tile-n { font: 600 14px/1.3 Inter, system-ui, sans-serif; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tile:hover .pt-tile-n { color: var(--blue-deep); }
.pt-tile-u { font-size: 12px; color: var(--ink-2); }

/* empty, sign-in */
.pt-empty { display: grid; justify-items: center; gap: 16px; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: 18px; text-align: center; background: var(--paper-2); }
.pt-empty-h { margin: 0; font: 600 20px/1.3 "Space Grotesk", Inter, sans-serif; color: var(--ink); }
.pt-dialog { margin: auto; width: min(420px, 100% - 32px); padding: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(10,26,51,.3); }
.pt-dialog::backdrop { background: rgba(8,9,12,.55); backdrop-filter: blur(2px); }
.pt-form { display: grid; gap: 14px; padding: 26px; }
.pt-form h2 { font-size: 26px; margin: -8px 0 4px; }
.pt-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pt-form input { box-sizing: border-box; width: 100%; background: #fff; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; font: 400 16px/1.2 Inter, system-ui, sans-serif; color: var(--ink); }
.pt-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.pt-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #9B1C1C; font-size: 14px; }
.pt-form-a { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pt-noscript { display: grid; gap: 8px; }
