/* Dood Atlas creation page: the showcase layout (showcase.css) plus create / spot / publish. */
.sc-simflag { margin: 0; padding: 4px 12px; text-align: center; font: 700 12px/1.3 Outfit, system-ui; letter-spacing: .02em; color: #0b0614; background: #f6d98b; }
.ap-frame { position: absolute; z-index: 3; pointer-events: none; border: 2px dashed #5ee39b; border-radius: 3px; box-shadow: 0 0 0 1px #0b0614aa; }
.ap-frame[data-ok="false"] { border-color: #ff5a5a; border-style: solid; border-width: 3px; background: repeating-linear-gradient(45deg, #ff5a5a33 0 6px, transparent 6px 12px); }
.ap-frame[data-ok="false"] span { background: #b3261e; }
.ap-frame[data-ok="pending"] { border-color: #f6d98b; }
.ap-frame[data-drag="true"] { pointer-events: auto; cursor: grab; touch-action: none; }
.ap-frame[data-dragging="true"] { cursor: grabbing; }
.ap-frame:focus-visible { outline: 3px solid #3ee6ff; outline-offset: 2px; }
.ap-frame span { position: absolute; left: -2px; top: -22px; white-space: nowrap; font: 700 11px/1 Outfit, system-ui; padding: 4px 6px; border-radius: 6px; background: #0b0614e6; color: #fff; }
.ap-refresh { position: absolute; left: 12px; top: 12px; z-index: 4; background: #0b0614d9; }
.ap-cardtext { min-width: 0; }
.ap-desc { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 8.5em; overflow: auto; color: var(--ivory) !important; }
.ap-create { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: #ffffff06; border: 1px solid #ffffff14; }
.ap-sizes { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ap-sizes legend { font-size: 13px; color: var(--muted); padding: 0 0 4px; }
.ap-sizes label { display: inline-flex; align-items: center; cursor: pointer; }
.ap-sizes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-sizes span { padding: 6px 10px; border-radius: 999px; border: 1px solid #ffffff26; font-size: 13px; font-weight: 600; }
.ap-sizes input:checked + span { background: var(--gold); color: #0b0614; border-color: var(--gold); }
.ap-sizes input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.ap-sizes input:disabled + span { opacity: .45; cursor: not-allowed; }
.ap-draftrow { display: flex; gap: 10px; align-items: flex-start; }
.ap-thumb { width: 72px; height: 72px; flex: none; image-rendering: pixelated; border-radius: 10px; border: 1px solid #ffffff26; background: repeating-conic-gradient(#ffffff10 0 25%, #00000022 0 50%) 0 0 / 12px 12px; }
.ap-tools { gap: 6px; }
.ap-doodel { margin: 0; font-size: 13px; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: #ffffff08; }
.ap-label { font-weight: 600; font-size: 13.5px; margin-top: 6px; }
.ap-label small { color: var(--dim); font-weight: 400; }
.ap-create input:not([type="radio"]), .ap-create textarea { width: 100%; box-sizing: border-box; min-height: 40px; border-radius: 10px; border: 1px solid #ffffff26; background: #ffffff0d; color: var(--ivory); padding: 8px 10px; font: inherit; }
.ap-create textarea { resize: vertical; min-height: 72px; line-height: 1.4; }
.ap-count { margin: -2px 0 0; text-align: right; font-size: 12px; color: var(--dim); }
.ap-count[data-over="true"] { color: var(--bad); font-weight: 700; }
.ap-h3 { margin: 8px 0 0; font-size: 14px; }
.ap-latlon { display: flex; gap: 6px; align-items: flex-end; }
.ap-latlon label { flex: 1; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.ap-status { margin: 2px 0; font-size: 13.5px; color: var(--muted); }
.ap-status[data-ok="true"] { color: #5ee39b; } .ap-status[data-ok="false"] { color: #ff9a9a; }
.ap-publishrow { margin-top: 6px; align-items: center; }
.ap-small { margin: 0; font-size: 12px; color: var(--dim); }
.ap-galnote { font-weight: 400; color: var(--dim); font-size: 12px; }
.ap-col { flex-direction: column; align-items: stretch; } .ap-col .btn { width: 100%; justify-content: center; }
.ap-qr { display: block; margin: 6px auto; width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 6px; }
.ap-manifest { max-height: 40vh; overflow: auto; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; background: #0b0614; border: 1px solid #ffffff1a; border-radius: 10px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
body.sc .toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; width: min(440px, calc(100% - 24px)); }
body.sc .toast[data-kind="warn"] { border-left-color: var(--bad); }
body.sc .toast[data-kind="ok"] { border-left-color: var(--ok); }
body.sc .dlg-actions { flex-wrap: wrap; justify-content: flex-end; }
.a-report { margin: 0; padding-left: 18px; font-size: 13.5px; } .a-report .warn { color: var(--warn); }
.a-draw { display: grid; grid-template-columns: minmax(0, 512px) 1fr; gap: 12px; align-items: start; }
.a-draw canvas { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; touch-action: none; border-radius: 8px; background: repeating-conic-gradient(#ffffff10 0 25%, #00000022 0 50%) 0 0 / 16px 16px; cursor: crosshair; }
.a-tools { display: flex; flex-direction: column; gap: 10px; } .a-exact { display: flex; align-items: center; gap: 8px; } .a-exact input { width: 48px; height: 36px; border: 0; background: none; padding: 0; }
@media (max-width: 760px) {
  /* phone: the map gets the screen; the panel is a sheet at the bottom (peek ↔ open), toggled by its handle */
  .sc-side { max-height: 136px; padding-top: 0 !important; transition: max-height .22s ease; overscroll-behavior: contain; }
  body.sheet-open .sc-side { max-height: 72dvh; }
  body:not(.sheet-open) .sc-hero { display: none; }
  .ap-sheet { all: unset; box-sizing: border-box; position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; width: calc(100% + 24px); margin: 0 -12px; padding: 6px 14px 8px; background: #0f081c; border-bottom: 1px solid #ffffff14; cursor: pointer; }
  .ap-sheet .ap-grip { grid-column: 1 / -1; justify-self: center; width: 40px; height: 4px; border-radius: 4px; background: #ffffff40; margin-bottom: 4px; }
  .ap-sheet b { font-size: 15px; color: var(--gold-2); } .ap-sheet b::after { content: " ▲"; font-size: 11px; color: var(--dim); }
  body.sheet-open .ap-sheet b::after { content: " ▼"; }
  .ap-sheet small { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ap-sheet:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
  /* one-row top bar */
  .sc-top { flex-wrap: nowrap !important; padding: 6px 10px; gap: 8px; }
  .sc-brand b { font-size: 18px; } .sc-search { order: 0 !important; flex: 1; width: auto !important; min-width: 0; }
  .sc-search input { min-height: 36px; padding: 0 12px; } .sc-results { position: fixed; top: 52px; left: 8px; right: 8px; }
  .sc-count { display: none; } .sc-wallet { min-height: 36px !important; padding: 0 10px !important; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; }
  .sc-wmenu { top: 52px !important; }
  body.sc .toast { top: 8px; bottom: auto; }
  .ap-desc { max-height: 3.2em; margin-bottom: 4px !important; }
  .sc-card .sc-row { gap: 6px; } .sc-card .sc-row .btn { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
  .sc-card #cardInfo { font-size: 11.5px; } .ap-refresh { top: 8px; left: 8px; min-height: 34px; }
  .sc-simflag { font-size: 11px; padding: 3px 8px; }
  .a-draw { grid-template-columns: 1fr; } .a-tools { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) { body.sc .dlg-actions { flex-direction: column-reverse; align-items: stretch; } body.sc .dlg-actions .btn { width: 100%; } }
/* out.html (hand-off to XRPL Home) */
body.ap-authpage { min-height: 100dvh; display: grid; place-items: center; padding: 16px; box-sizing: border-box; }
.ap-auth { width: min(440px, 100%); background: var(--plum); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.ap-auth h1 { font: 400 24px/1.15 var(--display); color: var(--gold-2); margin: 0 0 8px; } .ap-auth p { color: var(--muted); }
.ap-authwallet { display: block; margin: 0 0 14px; padding: 8px 10px; border-radius: 10px; background: #0b0614; border: 1px solid var(--line); font: 600 12.5px ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
/* My artwork rows */
.ap-minelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-minerow { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff14; }
.ap-minethumb { width: 64px !important; flex: none; padding: 4px !important; } .ap-minethumb span { display: none; }
.ap-mineinfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .ap-mineinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ap-mineinfo small { color: var(--dim); font-size: 12px; }
.ap-allow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: #e2b95514; border: 1px solid #e2b95540; font-size: 13.5px; font-weight: 600; }
.ap-allow[data-full="true"] { background: #ffffff08; border-color: #ffffff1f; font-weight: 400; color: var(--muted); }
.ap-fine { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-nudge { display: inline-flex; gap: 4px; } .ap-nudge .btn { min-width: 38px; justify-content: center; padding: 0 8px; }
.ap-snap { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ap-movebar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 6; width: min(460px, calc(100% - 24px)); padding: 10px 12px; border-radius: 14px; background: #1c1033f2; border: 1px solid #3ee6ff88; box-shadow: 0 18px 40px -18px #000; }
.ap-movebar p { margin: 0 0 6px; font-size: 13.5px; }
@media (max-width: 760px) { .ap-movebar { top: 52px; } }
/* the sheet handle exists only on phones */
.ap-sheet { display: none; }
@media (max-width: 760px) { .ap-sheet { display: grid; } }
