/* Landing, upload flow, share page, catalog, map, review queue, 404 */

/* ---- 1 · select: flight deck ---- */
.select { flex: 1; display: flex; flex-direction: column; }
.deck { position: relative; flex: 1; overflow: hidden; }
.home { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 72px 24px 56px; display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; }
.hero { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; padding-top: 88px; min-width: 0; }
.hero p { font-size: 20px; font-weight: 500; line-height: 1.55; letter-spacing: -0.012em; color: var(--lede); max-width: 460px; }
.hero .eyebrow { font-size: 12px; letter-spacing: 0.1em; }
.hero .display { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.04; }
.hero .eyebrow { gap: 14px; }
.hero .eyebrow .rule { flex-basis: 80px; }
.hero .slash { width: 56px; height: 5px; background: var(--signal); transform: skewX(-30deg); }
.hero-link { align-self: flex-start; gap: 10px; }
.home > .card { flex: 1 1 560px; max-width: 772px; padding: 36px; gap: 32px; min-width: 0; }

/* Instrument decoration behind the hero: pitch ladders, frame corners, a heading arc with a sweeping
   yaw marker, a ridge line across the full width and a small drone flying a survey line above it. */
.hud { display: none; position: absolute; inset: 0; pointer-events: none; }
.hud .corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--tick); }
.hud .corner.tl { left: 24px; top: 48px; border-left-width: 1px; border-top-width: 1px; }
.hud .corner.tr { right: 24px; top: 48px; border-right-width: 1px; border-top-width: 1px; }
.hud .corner.bl { left: 24px; bottom: 16px; border-left-width: 1px; border-bottom-width: 1px; }
.hud .corner.br { right: 24px; bottom: 16px; border-right-width: 1px; border-bottom-width: 1px; }
.hud .ladder { position: absolute; top: 120px; height: 680px; max-height: calc(100% - 180px); display: flex; flex-direction: column; justify-content: space-between; }
.hud .ladder.l { left: 24px; }
.hud .ladder.r { right: 24px; align-items: flex-end; }
.hud .ladder div { display: flex; align-items: center; gap: 8px; height: 1px; }
.hud .ladder i { display: block; height: 1px; width: 6px; background: #4A4B50; }
.hud .ladder i.major { width: 12px; background: var(--faint); }
.hud .ladder span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.hud .arc { position: absolute; left: calc(50% - 390px); top: 0; width: 300px; height: 220px; }
.hud .ridge { position: absolute; left: 0; bottom: -10px; }
.ds-yaw { position: absolute; left: 0; top: 0; width: 34px; height: 34px; offset-path: path("M20 220 A 260 260 0 0 1 240 0"); offset-rotate: auto; offset-anchor: 17px 12px; animation: dsYaw 11s ease-in-out infinite alternate; }
@keyframes dsYaw { from { offset-distance: 12%; } to { offset-distance: 88%; } }
.ds-fly { position: absolute; left: 2%; bottom: 280px; width: 64px; height: 34px; animation: dsFly 52s ease-in-out infinite alternate; }
@keyframes dsFly { 0% { left: 2%; transform: translateY(0); } 20% { left: 18%; transform: translateY(-16px); } 40% { left: 36%; transform: translateY(2px); } 60% { left: 54%; transform: translateY(-12px); } 80% { left: 70%; transform: translateY(6px); } 100% { left: 86%; transform: translateY(-8px); } }
.ds-bob { position: relative; width: 64px; height: 34px; animation: dsBob 3.4s ease-in-out infinite; }
@keyframes dsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ds-bob .beam { position: absolute; left: -28px; top: 24px; }
.ds-bob .craft { position: absolute; left: 0; top: 0; }
.ds-prop { transform-box: fill-box; transform-origin: center; animation: dsProp 0.14s linear infinite; }
@keyframes dsProp { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.3); } 100% { transform: scaleX(1); } }
.ds-blink { animation: dsBlink 1.8s steps(1) infinite; }
@keyframes dsBlink { 0% { opacity: 1; } 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) { .ds-yaw, .ds-fly, .ds-bob, .ds-prop, .ds-blink { animation: none; } .ds-yaw { offset-distance: 40%; } }
.hud .corner, .hud .ladder { display: none; }
@media (min-width: 1100px) { .hud { display: block; } }
/* The ladders sit in the page margin, which only exists beside the 1280 px column on wide screens */
@media (min-width: 1440px) { .hud .corner { display: block; } .hud .ladder { display: flex; } }

.drop { border: 1.5px dashed var(--edge-2); border-radius: 12px; padding: 44px 24px 36px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; transition: border-color 0.15s, background 0.15s; }
.drop.over { border-color: var(--signal); background: var(--signal-tint); }
.drop-head { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.drop-head span { font-size: 15px; color: var(--sub); }
.drop .choose { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; width: 100%; padding-top: 4px; }
.drop .hint { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: pre-wrap; }
.drop input[type="file"] { display: none; }
.chip { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); max-width: 100%; text-align: left; }
.chip .mono { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip button { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; }
.chip button:hover { background: var(--raised); color: var(--text); }
.chip-note { font-size: 14px; color: var(--muted); margin-top: -8px; }

/* What the upload is for: a shared link, or just the stitched file */
.mode { display: flex; flex-direction: column; gap: 12px; }
.mode-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; padding: 5px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.mode-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-3); font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.mode-tabs button:hover { color: var(--text); }
.mode-tabs button[aria-checked="true"] { border-color: var(--signal); background: var(--signal-tint); color: var(--text); }
.mode-help { font-size: 14px; color: var(--sub); }
.stitch-info { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--lede); }
.stitch-info span { display: flex; align-items: flex-start; gap: 10px; }
.stitch-info svg { margin-top: 1px; }
.eyebrow .tag { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--edge); color: var(--text-3); }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
/* Title and author side by side; they stack when the card is narrow */
.sign { display: flex; flex-direction: column; gap: 10px; }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.rule { height: 1px; background: var(--line); }
.go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.blocker { font-size: 13px; color: var(--muted); }

/* ---- landing ----
   Viewer first: the featured panorama pans behind the hero, then the map, the most viewed, a call to
   pilots and the newest. */
.land-hero { position: relative; min-height: 680px; overflow: hidden; background: var(--void); display: flex; flex-direction: column; }
.land-hero .pano { position: absolute; inset: 0; overflow: hidden; }
/* Two copies of the panorama side by side; sliding by one copy loops without a seam. The hero shows the
   band from 29% to 82% of the height (landing.js loads tiles for that band only). */
.land-hero .run { position: absolute; left: 0; top: -380px; display: flex; width: max-content; animation: heroPan 140s linear infinite; }
@keyframes heroPan { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.land-hero .strip { position: relative; flex: none; width: max(2600px, 100vw); aspect-ratio: 2 / 1; background-size: 100% 100%; }
.land-hero .strip img { position: absolute; display: block; }
.land-hero .pano.flat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.land-hero .shade { position: absolute; inset: 0; background: rgba(10, 10, 11, 0.42); }
.land-hero .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 280px; background: linear-gradient(180deg, rgba(14, 15, 17, 0) 0%, var(--ink) 100%); }
/* Buttons that sit on the photograph: dark glass instead of the near-transparent secondary */
.btn.onphoto { background: rgba(14, 15, 17, 0.55); color: var(--text); border-color: rgba(255, 255, 255, 0.18); }
.btn.onphoto:hover { background: rgba(14, 15, 17, 0.8); border-color: var(--faint); color: var(--text); }
.btn.secondary.onphoto { border-color: #6E7076; }
.land-hero .pitch { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 120px 24px 160px; display: flex; flex-direction: column; gap: 22px; }
.land-hero .eyebrow { gap: 14px; font-size: 12px; letter-spacing: 0.1em; color: #E6E7EA; }
.land-hero h1 { max-width: 760px; font-size: clamp(44px, 5.3vw, 76px); line-height: 1; letter-spacing: -0.04em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.land-hero .pitch p { max-width: 520px; font-size: 20px; font-weight: 500; line-height: 1.5; color: #E6E7EA; }
.land-hero .cta { padding-top: 6px; }
/* What is playing behind the hero, bottom right */
.now { position: absolute; z-index: 2; right: max(24px, calc(50% - 616px)); bottom: 48px; max-width: calc(100% - 48px); display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--text); }
.now:hover { color: var(--text); border-color: var(--edge-2); }
.now .play { width: 40px; height: 40px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--signal); color: var(--on-signal); }
.now .tx { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.now .tx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-text); }
.now .t { font-size: 15px; font-weight: 700; }
.now .s { font-size: 12px; color: var(--text-3); }

.land-sec { width: 100%; max-width: 1280px; margin: 0 auto; padding: 56px 24px 24px; display: flex; flex-direction: column; gap: 24px; }
.land-sec.last { padding: 24px 24px 64px; }
.land-sec .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.land-sec .eyebrow { font-size: 12px; letter-spacing: 0.1em; }
.land-sec h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.land-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.land-cards .cap .m { align-items: baseline; font-size: 13px; }
.land-cards .cap .m .by { color: var(--muted); }
.land-cards .cap .m .views { font-size: 12px; }
.land-cards .cap .m .place { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.land-cards .img .badge { letter-spacing: 0.06em; }
.pilot-sec { padding: 48px 24px; }
.pilot { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.pilot .ds-fly { left: 4%; top: 14px; bottom: auto; opacity: 0.55; animation: pilotFly 46s ease-in-out infinite alternate; }
@keyframes pilotFly { 0% { left: 4%; transform: translateY(0); } 25% { left: 24%; transform: translateY(-10px); } 50% { left: 46%; transform: translateY(4px); } 75% { left: 66%; transform: translateY(-8px); } 100% { left: 88%; transform: translateY(2px); } }
.pilot .tx { position: relative; display: flex; flex-direction: column; gap: 8px; max-width: 640px; padding-top: 18px; }
.pilot h2 { font-size: 32px; letter-spacing: -0.025em; line-height: 1.1; }
.pilot p { font-size: 16px; font-weight: 500; color: var(--lede); }
.strip.links { margin-top: auto; flex-wrap: wrap; }
.strip.links a { color: var(--faint); }
.strip.links a:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .land-hero .run, .pilot .ds-fly { animation: none; } }
@media (max-width: 900px) {
  /* No room beside the headline: the "now showing" card joins the column under the buttons */
  .land-hero { min-height: 0; }
  .land-hero .pitch { padding: 72px 24px 28px; }
  .now { position: relative; right: auto; bottom: auto; align-self: flex-start; margin: 0 24px 72px; }
}
@media (max-width: 640px) {
  .land-hero .pitch { padding: 48px 16px 24px; gap: 18px; }
  .land-hero .pitch p { font-size: 17px; }
  .land-hero .cta .btn { flex: 1 1 auto; }
  .now { margin: 0 16px 64px; max-width: calc(100% - 32px); }
  .land-sec { padding: 40px 16px 16px; gap: 20px; }
  .land-sec.last { padding: 16px 16px 48px; }
  .land-sec h2 { font-size: 30px; }
  .pilot-sec { padding: 32px 16px; }
  .pilot { padding: 28px 20px 24px; }
  .pilot h2 { font-size: 26px; }
  .pilot .btn { width: 100%; }
}

/* ---- 2 · ready ---- */
.files-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.files-head .name { font-family: var(--mono); font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.thumbs figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.thumbs .img { aspect-ratio: 4 / 3; border-radius: 6px; border: 1px solid var(--line); background: var(--well); overflow: hidden; }
.thumbs canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li svg { margin-top: 1px; }
.checks li.warn { color: var(--text-2); }
.checks li.bad { color: var(--danger); }
/* GPS: green like a passed check when found (it pins the map), muted while looking or when there is none */
.checks li.limit .t { display: flex; flex-direction: column; gap: 2px; }
.checks li.limit.bad .t > span:first-child { font-weight: 600; }
.checks li.limit .help { font-size: 13px; }
.files-head .over { color: var(--danger); }
.thumbs .more { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.thumbs.one { display: block; }
.thumbs.one .img { position: relative; aspect-ratio: 2 / 1; max-height: 380px; border-radius: 12px; }
.thumbs.one .img .badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; }
.checks li.gps { color: var(--text-2); }
.checks li.gps svg { color: var(--muted); }
.checks li.gps.on { color: inherit; }
.checks li.gps.on svg { color: var(--success); }

/* ---- 3 · processing ---- */
.stage-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stage-row .stage { font-size: 16px; color: var(--text-2); }
.pct { font-family: var(--mono); font-size: 32px; font-weight: 500; }
.steplist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.steplist li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--track); }
.steplist .dot { width: 32px; height: 32px; flex: none; border-radius: 8px; border: 1px solid var(--edge); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.steplist li.done .dot { border: 0; background: var(--success-tint); }
.steplist li.active .dot { border-radius: 999px; border: 3px solid var(--signal); border-right-color: var(--signal-dim); animation: spin 0.9s linear infinite; color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steplist li.active .dot { animation-duration: 3s; } }
.steplist .txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.steplist .txt b { font-weight: 600; font-size: 17px; color: var(--muted); }
.steplist li.done .txt b, .steplist li.active .txt b { color: var(--text); }
.steplist .txt span { font-size: 14px; color: var(--muted); }
/* Uploaded but not being worked on yet: in line, or held while the processing server is off. */
.steplist li.waiting .dot { border-color: var(--text-3); color: var(--text-3); }
.steplist li.waiting .txt b { color: var(--text); }
.steplist.offline li.waiting .dot { border-color: var(--warn); color: var(--warn); }
.waitbox { display: flex; gap: 18px; align-items: flex-start; padding: 24px 28px; border-radius: 18px; background: var(--panel); border: 1px solid var(--edge); }
.waitbox[hidden] { display: none; }
.waitbox .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--disabled); border: 1px solid var(--edge); color: var(--text); }
.waitbox .t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.waitbox .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.waitbox h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.waitbox p { font-size: 15px; color: var(--lede); }
.waitbox.offline { background: var(--warn-tint); border-color: var(--warn-edge); }
.waitbox.offline .ic { background: var(--warn-well); border-color: var(--warn-edge); color: var(--warn); }
.waitbox.offline .k { color: var(--warn); }
@media (max-width: 560px) { .waitbox { padding: 20px; gap: 14px; } .waitbox h2 { font-size: 19px; } }
.steplist .meta { font-family: var(--mono); font-size: 13px; color: var(--text-3); text-align: right; }
.linkbox { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 20px 24px; border-radius: 14px; border: 1px dashed var(--edge-2); }
.linkbox .t { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 0; }
.reserved { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reserved .pill-live { font-size: 15px; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; min-width: 0; }
/* Copy the reserved link in place: the button turns green, the link flashes and a tip rises above it */
.copy-wrap { position: relative; display: inline-flex; }
.copy-btn { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.02); color: var(--text); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.copy-btn:hover { border-color: var(--faint); background: rgba(255, 255, 255, 0.07); }
.copy-btn .i-done { display: none; }
.copy-tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 5px 9px; border-radius: 6px; background: var(--success-tint); border: 1px solid var(--success-edge); color: var(--success); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.copy-wrap.copied .copy-btn { border-color: var(--success-edge); background: var(--success-tint); color: var(--success); }
.copy-wrap.copied .i-copy { display: none; }
.copy-wrap.copied .i-done { display: block; animation: cpPop 0.35s ease-out; }
.copy-wrap.copied .copy-tip { display: block; animation: cpTip 1.8s ease-out forwards; }
.pill-live.flash { animation: cpFlash 0.9s ease-out; }
@keyframes cpPop { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
@keyframes cpTip { 0% { opacity: 0; transform: translate(-50%, 6px); } 15% { opacity: 1; transform: translate(-50%, 0); } 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes cpFlash { 0% { background: rgba(76, 195, 138, 0.28); } 100% { background: rgba(76, 195, 138, 0); } }
@media (prefers-reduced-motion: reduce) { .copy-wrap.copied .i-done, .copy-wrap.copied .copy-tip, .pill-live.flash { animation: none; } }
.logbox { border: 1px solid var(--line); border-radius: 10px; background: var(--inset); overflow: hidden; }
.loghead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 12px 4px 16px; border-bottom: 1px solid var(--line); }
.loghead .hint { font-size: 13px; color: var(--muted); letter-spacing: 0; text-transform: none; font-family: var(--font); }
.log { list-style: none; margin: 0; padding: 10px 16px; font: 12px/1.7 var(--mono); color: var(--muted); max-height: 260px; overflow-y: auto; scroll-behavior: smooth; }
.logbox.collapsed .log { max-height: none; overflow: hidden; }
.logbox.collapsed .log li:not(.tail) { display: none; }
.log li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; white-space: nowrap; cursor: pointer; }
.log li .txt { overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.log li.open { white-space: normal; }
.log li.open .txt { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.log li .t { color: var(--faint); }
.log li .dur { color: var(--muted); text-align: right; min-width: 60px; }
.log li.live .dur { color: var(--signal-text); }
.log li.live .txt { color: var(--text); }
.log li.err .txt { color: var(--danger); }
@media (max-width: 640px) { .log li { grid-template-columns: 1fr auto; } .log li .t { display: none; } }

/* ---- stitch & download ---- */
.main.mid { max-width: 1080px; }
.dl-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.dl-card .img { position: relative; width: 100%; aspect-ratio: 2 / 1; max-height: 420px; overflow: hidden; background: var(--well); }
.dl-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-card .img .badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; }
.dl-card .file { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dl-card .file .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-card .file .name { font-family: var(--mono); font-size: 16px; font-weight: 500; word-break: break-all; }
.dl-card .file .m { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dl-card .expiry { padding: 14px 28px; border-top: 1px solid var(--track); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--field); }
.dl-card .timer { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--lede); }
.dl-card .timer b { font-family: var(--mono); font-weight: 400; color: var(--text); }
.dl-card .addr { font-size: 13px; color: var(--muted); }
.dl-card .addr span { font-family: var(--mono); color: var(--text-3); overflow-wrap: anywhere; }
.dl-more { display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; }
.dl-more > section { flex: 1 1 320px; min-width: 0; }
.dl-more .checks { gap: 10px; }
.publish { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: var(--signal-tint); border: 1px solid var(--signal-edge); }
.publish h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.publish p { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.publish .btn { align-self: flex-start; }
.thumbs .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .dl-card .file { padding: 20px; } .dl-card .expiry { padding: 14px 20px; } }

/* ---- 4 · share ---- */
.share-input { flex: 1 1 320px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--edge); background: var(--field); color: var(--text); font-family: var(--mono); font-size: 15px; }
.share-input:focus { outline: 2px solid var(--signal-text); outline-offset: -1px; }
.preview-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.preview-card:hover { color: var(--text); border-color: var(--edge); }
.preview-card .img { position: relative; height: 340px; overflow: hidden; background: var(--well); }
.preview-card .img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.preview-card .img .badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; gap: 8px; background: rgba(14, 15, 17, 0.85); }
.preview-card .cap { padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.preview-card .cap .ttl { font-weight: 600; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stats .inset { display: flex; flex-direction: column; gap: 4px; }
.stats .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.stats .big { font-family: var(--mono); font-size: 30px; font-weight: 500; line-height: 1.5; }
.stats .v { font-size: 18px; font-weight: 600; }
.stats .s, .stats a { font-size: 13px; }
.owner-actions .btn.quiet + .btn.quiet { margin-top: -8px; }
.stats .s { color: var(--muted); }
dl.details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
dl.details div { display: flex; flex-direction: column; gap: 2px; }
dl.details dt { font-size: 13px; color: var(--muted); }
dl.details dd { margin: 0; font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }
dl.details dd.plain { font-family: inherit; font-weight: 600; }
dl.details dd .mp { color: var(--muted); }
.owner-actions { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; align-items: flex-start; }
/* Private manage link: the one secret of the page, set apart in a dashed signal frame */
.manage { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; border-radius: 18px; border: 1px dashed var(--signal-edge); background: #160E0D; }
.manage .head { display: flex; align-items: center; gap: 10px; color: var(--signal-text); }
.manage h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.manage p { font-size: 14px; color: var(--lede); }

/* ---- not published (automatic content check) ---- */
.rejected { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 24px; }
.rejected .lede { font-weight: 500; color: var(--lede); }
.page-center .rejected h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; }
.page-center .rejected .small { font-size: 14px; color: var(--muted); }
.rej-file { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.rej-file .ph { width: 88px; height: 56px; flex: none; border-radius: 8px; background: var(--track); display: flex; align-items: center; justify-content: center; color: #6E7076; }
.rej-file .tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rej-file .name { font-weight: 600; overflow-wrap: anywhere; }
.rej-file .m { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---- catalog ---- */
.search { position: relative; flex: 1 1 320px; }
.search svg { position: absolute; left: 16px; top: 12px; }
.search .input { min-height: 44px; padding: 0 16px 0 48px; font-size: 17px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cards a { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.cards a:hover { border-color: var(--edge-2); }
.cards .img { position: relative; height: 180px; overflow: hidden; background: var(--well); }
.cards .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cards .img .badge { position: absolute; left: 10px; top: 10px; }
.cards .img .badge.rank { left: auto; right: 10px; letter-spacing: 0; text-transform: none; }
.cards .cap { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.cards .cap b { font-weight: 600; font-size: 16px; letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards .cap .m { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; font-size: 14px; color: var(--muted); }
.cards .cap .m .who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cards .cap .m .by { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cards .cap .m .date { font-family: var(--mono); font-size: 12px; }
.cards .cap .m .views { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); border: 1px dashed var(--edge-2); border-radius: 14px; }

/* ---- explore · map ----
   OpenStreetMap data drawn by MapLibre in the app's own greys (the style lives in map.js): land a clear
   step above the sea (--map-sea, the same value as C.sea there), hairline borders, mono-caps labels. Red is kept for the pins. Controls float on glass. */
.map-main { flex: 1; width: 100%; max-width: 1392px; margin: 0 auto; padding: 8px 24px 16px; display: flex; flex-direction: column; }
.mapbox { position: relative; width: 100%; aspect-ratio: 2 / 1; min-height: 420px; max-height: max(420px, calc(100dvh - 150px)); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); --map-sea: #121315; background: var(--map-sea); isolation: isolate; }
.map-canvas { position: absolute; inset: 0; background: var(--map-sea); font: inherit; }
.map-canvas canvas { outline: none; }
.map-canvas:has(canvas:focus-visible) { box-shadow: inset 0 0 0 2px var(--signal-text); }
.map-glass { position: absolute; z-index: 3; background: rgba(14, 15, 17, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; }

.regions { left: 16px; top: 16px; max-width: calc(100% - 32px); display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; }
.mapbox.has-sel .regions { max-width: calc(100% - 370px); }
.regions button { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-3); font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.regions button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.regions button[aria-pressed="true"] { border-color: var(--signal); background: var(--signal-tint); color: var(--text); }

/* Pins: a signal dot ringed in the sea colour, with a faint signal halo so it reads on land too. The selected one grows, pulses and carries its place name. */
.pin { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 2; }
.pin .dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px; background: var(--signal); box-shadow: 0 0 0 2px var(--map-sea), 0 0 0 3px rgba(227, 38, 28, 0.45); transition: width 0.15s, height 0.15s, margin 0.15s; }
.pin:hover .dot { background: var(--signal-hover); box-shadow: 0 0 0 2px var(--map-sea), 0 0 0 3px var(--signal-text); }
.pin.on { z-index: 4; }
.pin.on .dot { width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: 0 0 0 3px var(--map-sea), 0 0 0 4px var(--signal-text); }
.pin .pulse, .pin .lbl { display: none; }
.pin.on .pulse { display: block; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 999px; background: var(--signal); animation: pinPulse 1.8s ease-out infinite; }
.pin.on .lbl { display: block; position: absolute; left: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; padding: 4px 8px; border-radius: 6px; background: rgba(14, 15, 17, 0.9); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); pointer-events: none; }
@keyframes pinPulse { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin.on .pulse { animation: none; opacity: 0.35; } }
/* Several panoramas too close to tell apart at this zoom: one mark with the count; a click zooms in */
.pin.cluster { width: 36px; height: 36px; }
.pin.cluster .dot { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: var(--signal-tint); box-shadow: 0 0 0 1px var(--signal), 0 0 0 3px var(--map-sea); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text); }
.pin.cluster:hover .dot { background: var(--signal-dim); box-shadow: 0 0 0 1px var(--signal-text), 0 0 0 3px var(--map-sea); }

.sel { right: 16px; top: 16px; width: 320px; max-width: calc(100% - 32px); border-radius: 14px; overflow: hidden; background: rgba(14, 15, 17, 0.92); }
.sel .img { position: relative; height: 150px; overflow: hidden; background: var(--well); }
.sel .img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.sel .img .badge { position: absolute; left: 10px; top: 10px; }
.sel .close { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: rgba(14, 15, 17, 0.86); color: var(--text); cursor: pointer; }
.sel .close:hover { background: var(--ink); }
.sel .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.sel .head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sel .ttl { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
.sel .place, .sel .byline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.sel .byline { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); white-space: pre; }

.legend { left: 16px; bottom: 16px; max-width: calc(100% - 420px); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 12px; color: var(--text-3); backdrop-filter: none; -webkit-backdrop-filter: none; }
.legend i { width: 10px; height: 10px; flex: none; border-radius: 999px; background: var(--signal); box-shadow: 0 0 0 2px var(--map-sea), 0 0 0 3px var(--signal); margin: 0 3px; }
.map-corner { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.map-corner > * { pointer-events: auto; }
.map-corner .zoom { position: static; display: flex; flex-direction: column; gap: 4px; padding: 4px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.zoom button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.zoom button:hover { background: rgba(255, 255, 255, 0.08); }
.zoom button:disabled { color: var(--tick); cursor: default; background: transparent; }
/* Map data credit, in the instrument voice instead of the library's white pill */
.credit { padding: 3px 8px; border-radius: 4px; background: rgba(14, 15, 17, 0.7); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.credit a { color: inherit; }
.credit a:hover { color: var(--text); }
.map-note { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 48px); padding: 16px 20px; border-radius: 12px; background: rgba(14, 15, 17, 0.9); border: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--text-2); }
.map-note b { display: block; font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }

/* Embedded on the landing page: the page scrolls past it, so it keeps its 2:1 shape on every screen */
.mapbox[data-embedded] { max-height: none; }
.maplibregl-cooperative-gesture-screen { font-family: var(--font); font-size: 15px; background: rgba(14, 15, 17, 0.6); }
@media (max-width: 900px) {
  .mapbox { aspect-ratio: auto; height: calc(100dvh - 150px); min-height: 460px; max-height: none; }
  .mapbox.has-sel .regions { max-width: calc(100% - 32px); }
  /* Too narrow for legend and credit side by side: the credit and zoom sit above the legend */
  .legend { max-width: calc(100% - 32px); }
  .map-corner { bottom: 60px; }
  /* The preview becomes a sheet along the bottom edge and takes the place of the legend */
  .sel { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-width: none; display: flex; }
  .sel .img { position: static; width: 132px; height: auto; flex: none; }
  .sel .img .badge { display: none; }
  .sel .body { flex: 1; min-width: 0; padding: 12px 48px 12px 14px; gap: 8px; }
  .sel .close { position: absolute; right: 6px; top: 6px; background: transparent; }
  .sel .ttl { font-size: 16px; }
  .mapbox.has-sel .legend, .mapbox.has-sel .map-corner { display: none; }
  .mapbox[data-embedded] { height: 460px; min-height: 0; }
}
@media (max-width: 640px) {
  .map-main { padding: 4px 12px 12px; }
  .mapbox { border-radius: 14px; height: calc(100dvh - 190px); }
  .mapbox[data-embedded] { height: 420px; }
  .regions { left: 12px; top: 12px; right: 12px; max-width: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .regions::-webkit-scrollbar { display: none; }
  .legend { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .map-corner { right: 12px; bottom: 60px; }
  .map-corner .zoom { display: none; }
  .credit { font-size: 9px; }
  .sel .img { width: 104px; }
  .sel .meta span:last-child { display: none; }
}

/* ---- admin · review queue (internal) ---- */
.admin-header { border-bottom: 1px solid #1E1F23; }
.admin-header .inner { max-width: 1392px; padding: 16px 24px; }
.admin-header .brand img { height: 26px; }
.admin-tag { padding: 4px 8px; border-radius: 6px; background: var(--signal-tint); border: 1px solid var(--signal-edge); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-text); }
.admin-header .note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.admin { flex: 1; width: 100%; max-width: 1392px; margin: 0 auto; padding: 32px 24px 56px; display: flex; flex-direction: column; gap: 24px; font-size: 15px; }
.admin h1 { font-size: 34px; letter-spacing: -0.025em; }
.admin .sub { font-size: 14px; color: var(--sub); max-width: 640px; }
.admin .counts { display: flex; gap: 10px; flex-wrap: wrap; }
.admin .counts div { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); min-width: 110px; font-family: var(--mono); }
.admin .counts .k { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.admin .counts .v { font-size: 22px; }
.admin .counts .v.hot { color: var(--signal-text); }
.admin .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin .tabs button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge); background: transparent; color: var(--text-3); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.admin .tabs button[aria-selected="true"], .admin .tabs button[aria-pressed="true"] { border-color: var(--signal); background: var(--signal-tint); color: var(--text); }
.admin .tabs button span { font-family: var(--mono); font-weight: 500; opacity: 0.8; }
.admin .table { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--field); }
.admin table { width: 100%; min-width: 1040px; border-collapse: collapse; font-size: 14px; }
.admin th { padding: 12px 16px; text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.admin td { padding: 12px 16px; border-bottom: 1px solid var(--well); line-height: 1.3; }
.admin tr:last-child td { border-bottom: 0; }
.admin th:last-child, .admin td:last-child { text-align: right; white-space: nowrap; }
.admin tr.removed > td:not(:last-child) { opacity: 0.5; }
.admin .pano { display: flex; align-items: center; gap: 12px; }
.admin .pano .th { width: 88px; height: 52px; flex: none; border-radius: 6px; overflow: hidden; background: var(--well); }
.admin .pano .th img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.admin .pano .tx { display: flex; flex-direction: column; min-width: 0; }
.admin .pano a { color: var(--text); font-weight: 600; }
.admin .pano a:hover { color: var(--signal-text-hover); }
.admin .pano .tx span, .admin .when { font-size: 12px; color: var(--muted); }
.admin .when { font-family: var(--mono); }
.admin .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--faint); }
.admin .pill.ok { background: #13261C; color: var(--success); border-color: #1F4A33; }
.admin .pill.warn { background: #2E2410; color: #F2B544; border-color: #5A4618; }
.admin .pill.bad { background: var(--signal-tint); color: var(--signal-text); border-color: var(--signal-edge); }
.admin .pill.live { color: var(--text-3); }
.admin .pill.verified { color: var(--text); border-color: var(--edge); }
.admin .pill.gone { color: var(--muted); border: 1px dashed var(--edge); }
.admin .act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px; margin-left: 6px; border-radius: 8px; border: 1px solid var(--edge); background: transparent; color: var(--text-3); font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.admin .act:hover { border-color: var(--faint); color: var(--text); }
.admin .act.ok { border-color: #1F4A33; background: #13261C; color: var(--success); }
.admin .act.danger { border-color: var(--signal-edge); color: var(--danger); }
.admin .act.feat { margin-left: 0; }
.admin .act.feat[aria-checked="true"] { border-color: var(--signal); background: var(--signal-tint); color: var(--signal-text); }
.admin .act:disabled { opacity: 0.4; cursor: not-allowed; border-color: var(--line); color: var(--faint); }
.admin .foot { font-size: 13px; color: var(--faint); }
.admin .gate { max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.admin-header .inner { flex-wrap: wrap; gap: 16px; }
.admin-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.admin-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-3); font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-nav a:hover { color: var(--text); }
.admin-nav a[aria-current="page"] { border-color: var(--signal); background: var(--signal-tint); color: var(--text); }
.admin-nav .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0; }
.admin-nav .badge.hot { background: var(--signal); color: var(--on-signal); }
.admin .counts .v.bad { color: #FF5347; }
.admin .act.purge { border-color: var(--signal); color: #FF5347; }
.admin .act.purge-solid { border-color: var(--signal); background: var(--signal); color: #fff; }
.admin .toast { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--edge); font-size: 14px; }
.admin .toast[hidden] { display: none; }
.admin .toast svg { color: var(--success); flex: none; }
.admin th.num, .admin td.num { text-align: right; }
.admin td.mono { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.admin .where b { display: block; font-weight: 600; }
.admin .where span { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.admin tr.detail > td { padding: 0 16px 16px; background: #111214; text-align: left; white-space: normal; }
.admin .sweep-err { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--signal-tint); border: 1px solid var(--signal-edge); font-family: var(--mono); font-size: 12px; color: var(--danger); overflow-wrap: anywhere; }
.admin table.dirs { min-width: 0; margin-top: 12px; font-size: 13px; }
.admin table.dirs th { padding: 8px 10px; font-size: 10px; border-bottom: 0; }
.admin table.dirs td { padding: 8px 10px; border-top: 1px solid var(--well); border-bottom: 0; }
.admin table.dirs td.path, .admin .pending-table td.path { font-family: var(--mono); font-size: 12px; color: var(--text); word-break: break-all; }
.admin table.dirs td.num { font-family: var(--mono); font-size: 12px; }
.admin .pending { display: flex; flex-direction: column; gap: 10px; }
.admin .pending[hidden] { display: none; }
.admin .pending h2 { font-size: 18px; }
.admin .pending-table td:last-child { white-space: normal; text-align: left; font-family: var(--mono); font-size: 12px; color: var(--danger); }
/* "Archive" under way: spinner in the status pill, a progress bar below it */
@keyframes delSpin { to { transform: rotate(360deg); } }
@keyframes delShine { from { background-position: -60px 0; } to { background-position: 160px 0; } }
.admin .del-spin { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--warn-edge); border-top-color: var(--warn); animation: delSpin 0.9s linear infinite; }
.admin .del-prog { margin-top: 8px; width: 150px; }
.admin .del-track { position: relative; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.admin .del-fill { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--warn); transition: width 0.6s ease; }
.admin .del-fill.live { background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); background-size: 60px 100%; background-repeat: no-repeat; animation: delShine 1.4s linear infinite; }
.admin .del-fill.stalled { background: var(--signal); }
.admin .del-fill.counting { background-color: transparent; background-size: 40% 100%; } /* no total yet: a sweep across the track */
.admin .del-text { margin-top: 5px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.admin .del-note { display: inline-block; max-width: 200px; white-space: normal; text-align: right; font-size: 12px; color: var(--muted); }
.admin .del-stall { display: inline-flex; align-items: center; gap: 4px; }
.admin .del-stall > span { max-width: 170px; white-space: normal; text-align: right; font-size: 12px; color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .admin .del-spin, .admin .del-fill.live { animation: none; } }
/* "Run sweep now": next to the machine filter; a run in progress shows as Running…, a manual one carries a badge */
.admin .sweep-bar { gap: 16px; }
.admin .sweep-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin .sweep-now .next { font-size: 13px; color: var(--muted); }
.admin .sweep-now .next[hidden] { display: none; }
.admin .sweep-now .next b { font-family: var(--mono); font-weight: 400; color: var(--text-3); }
.admin .run-sweep { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--signal); background: var(--signal); color: var(--on-signal); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.admin .run-sweep:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.admin .run-sweep.busy, .admin .run-sweep.busy:hover { border-color: var(--warn-edge); background: var(--warn-well); color: var(--warn); cursor: progress; }
.admin .run-sweep .ico { display: inline-flex; }
.admin .run-sweep .del-spin { border-color: rgba(242, 181, 68, 0.3); border-top-color: var(--warn); width: 12px; height: 12px; }
.admin .pill.run { background: var(--warn-well); color: var(--warn); border-color: var(--warn-edge); }
.admin .ran-by { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--edge); font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; }

/* ---- 404 ---- */
.page-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.page-center .box { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.page-center h1 { font-size: 48px; line-height: 1.08; }
.page-center p { font-size: 18px; color: var(--text-2); }
.page-center .label { font-size: 13px; overflow-wrap: anywhere; }
.page-center .deleted { gap: 20px; }
.page-center .deleted h1 { font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; }
.page-center .deleted p { font-size: 17px; color: var(--lede); overflow-wrap: anywhere; }
.page-center .ic-box { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); }
.reticle { position: relative; width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; }
.reticle i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--signal); }
.reticle i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.reticle i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }

@media (max-width: 640px) {
  .home { padding: 36px 16px 40px; gap: 32px; }
  .hero { padding-top: 0; gap: 20px; }
  .hero p { font-size: 17px; }
  .home > .card { padding: 20px; gap: 24px; }
  .drop { padding: 32px 16px 28px; gap: 18px; }
  .drop .choose { gap: 12px; }
  .drop .choose .btn { flex: 1 1 150px; }
  .radio { padding: 8px 16px; }
  .go { justify-content: flex-start; width: 100%; }
  .go .btn { flex: 1 1 auto; }
  .eyebrow .rule { display: none; }
  .page-center h1 { font-size: 34px; }
  .preview-card .img { height: 220px; }
  .linkbox { padding: 16px; }
}

/* ---- admin · reports ---- */
.admin .pill.link { cursor: pointer; font-weight: 500; }
.admin .pill.link:hover { border-color: var(--signal); color: var(--signal-text-hover); }
.admin .pill.reason:not(.bad):not(.warn) { color: var(--text-3); border-color: var(--edge); }
.admin .empty b { display: block; font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.admin .rep-open[hidden], .admin section[hidden] { display: none; }
.admin .rep-cards { display: flex; flex-direction: column; gap: 16px; }
.admin .rep-card { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); }
.admin .rep-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.admin .rep-thumb { display: block; height: 132px; border-radius: 8px; overflow: hidden; background: var(--well); }
.admin .rep-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.admin .rep-about { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.admin .rep-about a { color: var(--text); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.admin .rep-about a:hover { color: var(--signal-text-hover); }
.admin .rep-about > span { font-size: 13px; color: var(--muted); }
.admin .rep-about .by { margin-top: 4px; font-size: 12px; }
.admin .rep-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.admin .rep-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.admin .rep-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin .rep-head a { font-size: 13px; font-weight: 600; }
.admin .rep-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-text); }
.admin .rep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin .rep-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 14px; border-radius: 10px; background: #1A1B1E; border: 1px solid var(--track); }
.admin .rep-list .act { flex: none; margin-left: 0; }
.admin .rep-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.admin .rep-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin .rep-line .when { color: var(--faint); }
.admin .rep-note { font-size: 14px; line-height: 1.45; color: #E4E5E8; white-space: pre-line; overflow-wrap: anywhere; }
.admin .rep-note.none { font-size: 13px; font-style: italic; color: var(--faint); }
.admin .rep-foot { display: flex; justify-content: flex-end; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.admin .rep-foot .hint { margin-right: auto; font-size: 12px; color: var(--faint); }
.admin .rep-table td.rep-title { font-weight: 600; }
.admin .rep-table td.rep-details { max-width: 360px; color: var(--text-3); white-space: pre-line; overflow-wrap: anywhere; }
.admin .rep-table td.mono { font-size: 12px; color: var(--muted); }
.admin .rep-table td.admin-note { max-width: 260px; font-size: 13px; color: #E4E5E8; white-space: pre-line; overflow-wrap: anywhere; }
.admin .rep-table td.admin-note.none { color: var(--faint); }
/* The reviewer's reason under a "Taken down" pill */
.admin .takedown-note { margin-top: 6px; max-width: 180px; font-size: 12px; line-height: 1.35; color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
/* Archived: what is left of a panorama once its files are erased */
.admin .archive-table .pano .th { filter: grayscale(0.35); }
.admin .archive-table .badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.admin .archive-table td.archived { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.admin .archive-table td.archived .by { font-family: var(--font); color: var(--muted); }
.admin .archive-table td.archived .by.owner { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #F2B544; background: #2E2410; border: 1px solid #5A4618; }
.admin .archive-table th:last-child { text-align: left; }
.admin .archive-table td.reason { max-width: 300px; font-size: 13px; color: #E4E5E8; text-align: left; white-space: pre-line; overflow-wrap: anywhere; }
.admin .archive-table td.reason.none { color: var(--faint); font-style: italic; }

/* Reason dialog: take down, archive, decline (admin) and the uploader's delete */
.reason-dlg { width: calc(100% - 48px); max-width: 480px; margin: 220px auto auto; padding: 24px; border-radius: 16px; border: 1px solid var(--edge); background: var(--panel); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); }
.reason-dlg::backdrop { background: rgba(6, 6, 7, 0.72); }
.reason-dlg form { display: flex; flex-direction: column; gap: 18px; }
.reason-dlg .dlg-head { display: flex; flex-direction: column; gap: 8px; }
.reason-dlg .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.reason-dlg.danger .kicker { color: #FF5347; }
.reason-dlg h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.reason-dlg p { margin: 0; font-size: 14px; color: var(--text-3); }
.reason-dlg p.extra { font-size: 13px; color: var(--warn); }
.reason-dlg p.err { color: var(--danger); }
.reason-dlg .dlg-note { display: flex; flex-direction: column; gap: 6px; }
.reason-dlg label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.reason-dlg label span { font-weight: 500; color: var(--muted); }
.reason-dlg textarea { box-sizing: border-box; width: 100%; min-height: 80px; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--ink); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; }
.reason-dlg textarea:focus { outline: 2px solid var(--signal-text); outline-offset: -1px; }
.reason-dlg textarea::placeholder { color: var(--faint); }
.reason-dlg .dlg-foot { display: flex; justify-content: flex-end; gap: 4px; }
.reason-dlg .act { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; margin-left: 6px; border-radius: 8px; border: 1px solid var(--edge); background: transparent; color: var(--text-3); font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.reason-dlg .act:hover { border-color: var(--faint); color: var(--text); }
.reason-dlg .act.ok { border-color: var(--text); background: var(--text); color: var(--ink); }
.reason-dlg.danger .act.ok { border-color: var(--signal); background: var(--signal); color: var(--on-signal); }
.reason-dlg .act:disabled { opacity: 0.5; cursor: progress; }
.reason-dlg .hint { font-size: 12px; color: var(--faint); }
@media (max-width: 760px) {
  .admin .rep-card { grid-template-columns: 1fr; }
}

/* ---- admin · uploads log ---- */
.admin .counts .v.busy { color: var(--warn); }
.admin .up-bar { gap: 16px; }
.admin .up-search { position: relative; display: flex; align-items: center; color: var(--faint); }
.admin .up-search svg { position: absolute; left: 12px; pointer-events: none; }
.admin .up-search .input { width: 280px; max-width: 100%; min-height: 40px; padding: 0 12px 0 36px; font-size: 14px; }
.admin table.up-table { min-width: 1100px; }
.admin .up-name { font-weight: 600; }
.admin .up-name.anon { font-weight: 500; font-style: italic; color: var(--muted); }
.admin .up-ip, .admin .up-size { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.admin .up-status { max-width: 260px; }
.admin .up-note { margin-top: 5px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.admin .up-link { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.admin .up-link .none { color: var(--faint); }
.admin .up-empty { padding: 36px 16px; text-align: center !important; color: var(--muted); }
.admin .pill.plain { color: var(--text-3); border-color: var(--edge); }
.admin .pill.warn-line { color: #F2B544; border-color: #5A4618; }
/* Batch actions on the review table: a checkbox per row, and the bar that appears once one is ticked. */
.admin th.pick, .admin td.pick { width: 20px; padding-right: 0; }
.admin .pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--signal); cursor: pointer; display: block; }
.admin .pick input:disabled { cursor: default; opacity: 0.4; }
.admin tr.picked > td { background: #1E1416; }
.admin .batch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: #1E1416; border: 1px solid var(--signal-edge); font-size: 14px; }
.admin .batch[hidden] { display: none; }
.admin .batch .n { font-weight: 700; padding: 0 6px; }
.admin .batch i { width: 1px; height: 22px; background: var(--signal-edge); }
.admin .batch .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.admin .batch .act { margin-left: 0; }
.admin .batch .act.bare { margin-left: auto; border-color: transparent; background: transparent; color: var(--text-3); }
.admin .counts .v.ok { color: var(--success); }
/* Device stitches */
.admin .ds-cc { color: var(--faint); }
.admin .ds-dev { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.admin .ds-after { font-size: 13px; white-space: nowrap; }
.admin .ds-after .none { color: var(--faint); }
.admin .ds-after a { color: var(--signal-text); }
.admin .ds-steps { display: flex; flex-direction: column; gap: 8px; }
.admin .ds-steps .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.admin .ds-steps > div { display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); }
.admin .ds-steps .bar { height: 6px; border-radius: 3px; background: var(--well); overflow: hidden; }
.admin .ds-steps .bar i { display: block; height: 100%; background: var(--faint); }
.admin .ds-steps .t { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--muted); }
.admin .ds-steps .none .l { color: var(--faint); }
.admin .ds-steps .stopped .l { color: var(--danger); }
.admin .ds-steps .stopped .bar i { background: var(--signal); }
.admin .pill.dashed { border-style: dashed; }
.admin .up-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding-top: 12px; }
.admin .up-facts { margin: 0; display: grid; align-content: start; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.admin .up-facts dt { color: var(--faint); }
.admin .up-facts dd { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--text); word-break: break-all; }
.admin .up-timeline { display: flex; flex-direction: column; gap: 8px; }
.admin .up-timeline .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.admin .up-timeline ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.admin .up-timeline li { display: flex; gap: 12px; color: var(--text-3); }
.admin .up-timeline .t { flex: none; min-width: 64px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.admin .up-timeline .bad { color: #FF8075; }
.admin .up-timeline .last { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .admin .up-detail { grid-template-columns: 1fr; } .admin .up-facts { grid-template-columns: 120px 1fr; } }

/* ---- admin · workers ---- */
.admin .counts .v.warn { color: var(--warn); }
.admin .w-globals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.admin .w-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.admin .w-card .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin .w-card .kick { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.admin .w-card h2 { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.admin .w-card p { margin: 0; font-size: 14px; color: #C9CACE; }
.admin .w-card .now { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.admin .seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; border: 1px solid var(--line); background: #111214; }
.admin .seg button { min-height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; }
.admin .seg button:hover:not(:disabled) { color: var(--text); }
.admin .seg button[aria-checked="true"].main { border-color: var(--signal); background: var(--signal); color: #fff; }
.admin .seg button[aria-checked="true"].fallback { border-color: var(--warn); background: var(--warn-well); color: var(--warn); }
.admin .seg button[aria-checked="true"].off { border-color: #45464C; background: #26272B; color: var(--text); }
.admin .seg button:disabled { opacity: 0.35; cursor: not-allowed; }
.admin .w-alerts { display: flex; flex-direction: column; gap: 12px; }
.admin .w-alerts:empty { display: none; }
.admin .w-alert { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 12px; font-size: 14px; }
.admin .w-alert[hidden] { display: none; }
.admin .w-alert svg { flex: none; }
.admin .w-alert.bad { background: var(--signal-tint); border: 1px solid var(--signal-edge); color: #FFB4AC; }
.admin .w-alert.bad strong { color: #fff; }
.admin .w-alert.warn { background: var(--warn-well); border: 1px solid var(--warn-edge); color: #E2C27A; }
.admin .w-alert.warn strong { color: var(--text); }
.admin table.w-table { min-width: 1180px; }
.admin .w-table td { padding: 14px 16px; line-height: 1.35; vertical-align: top; }
.admin .w-table th:last-child, .admin .w-table td:last-child { text-align: left; }
.admin .w-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.admin .w-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #6E7076; }
.admin .w-dot.idle { background: var(--success); }
.admin .w-dot.busy { background: var(--warn); }
.admin .w-spec, .admin .w-seen { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.admin .w-seen { margin-top: 4px; font-size: 11px; color: #8A8C92; }
.admin .w-job { max-width: 280px; color: #8A8C92; }
.admin .w-job.on { color: #E4E5E8; }
.admin .w-bar { margin-top: 6px; width: 160px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.admin .w-bar i { display: block; height: 100%; background: var(--warn); }
.admin .w-note { margin-top: 6px; font-size: 12px; color: #C9A65A; }
.admin .w-forget { margin: 8px 0 0; min-height: 28px; padding: 0 10px; }

/* ---------- Stitching on the visitor's device ---------- */
.stitch-info .warn { color: #E2C27A; }
.stitch-info .warn svg { color: var(--warn); }
/* Ready view: what happens on this device (a computer), or a warning (a phone or tablet) */
.device-note { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.device-note[hidden] { display: none; }
.device-note > svg { flex: none; margin-top: 2px; color: var(--success); }
.device-note .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.device-note h2 { font-size: 15px; font-weight: 700; }
.device-note p { font-size: 14px; color: var(--sub); }
.device-note.warn { background: var(--warn-tint); border-color: var(--warn-edge); gap: 14px; }
.device-note.warn > svg { color: var(--warn); }
.device-note.warn .t { gap: 6px; }
.device-note.warn p { color: var(--text-2); }
.device-note.warn p.extra { font-size: 13px; color: #C9A65A; }
/* Processing: a phone may not make it, the upload can be retried, the tab has to stay open */
.waitbox.fail { background: #1A1010; border-color: var(--signal-edge); }
.waitbox.fail .ic { background: var(--signal-tint); border-color: var(--signal-edge); color: var(--signal-text); }
.waitbox.fail .k { color: var(--signal-text); }
.waitbox .acts { padding-top: 4px; }
.steplist li.failed .dot { border-color: var(--signal-edge); background: var(--signal-tint); color: var(--signal-text); }
.steplist li.failed .txt b { color: var(--danger); }
.keepbox { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 20px 24px; border-radius: 14px; border: 1px dashed var(--edge-2); }
.keepbox[hidden] { display: none; }
.keepbox > svg { flex: none; color: var(--signal-text); }
.keepbox .t { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; }
.keepbox .t b { font-size: 15px; font-weight: 700; }
.keepbox .t span { font-size: 14px; color: var(--muted); }
.keepbox .mem { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
/* Download of a file that only exists in this tab */
.dl-card .warnline { padding: 14px 28px; border-top: 1px solid var(--track); display: flex; align-items: center; gap: 10px; background: var(--field); font-size: 14px; color: var(--lede); }
.dl-card .warnline svg { flex: none; color: var(--warn); }
.dl-card .img img[hidden] { display: none; }
@media (max-width: 640px) { .dl-card .warnline { padding: 14px 20px; } }
.page-center .stopped { max-width: 620px; }
.page-center .stopped .label { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--mono); font-size: 12px; }
.page-center .stopped h1 { font-size: 44px; letter-spacing: -0.03em; }
.page-center .stopped p.small { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .page-center .stopped h1 { font-size: 32px; } }
/* Stacked (a phone): the device note, checks and details come before a long grid of thumbnails */
@media (max-width: 903px) { #view-ready .split > .side { order: -1; } }
