/* Admin, on top of app.css */

.admin .top { border-bottom: 1px solid var(--line); max-width: none; }
.a-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 90px; }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 44px 0 6px; }
.a-head h1 { margin: 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
.a-url { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); }
.pill {
  flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: none;
  padding: 7px 15px; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.pill.open { border-color: var(--fg); color: var(--fg); }
.a-tabs { justify-content: flex-start; gap: 34px; margin: 26px 0 0; flex-wrap: wrap; }
.a-note { margin: 4px 0 34px; max-width: 760px; font-size: 12.5px; color: var(--muted); }

.field.left { text-align: left; }
.btn.small { min-height: 38px; padding: 0 18px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .03em; }
select {
  -webkit-appearance: none; appearance: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--fg); font: 400 15px/1.4 var(--sans); padding: 10px 22px 10px 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 5px) 55%; background-size: 4px 4px; background-repeat: no-repeat;
}
select option { color: #111; }

/* flash */
.a-flash { border-bottom: 1px solid var(--line); background: var(--panel); }
.a-flash .a-wrap { padding: 18px 20px; }
.a-flash p { margin: 0; }
.a-flash.err p { color: #A1332B; }
[data-theme="dark"] .a-flash.err p { color: #E08A80; }
.share { margin: 12px 0; padding: 14px 16px; background: var(--soft); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

/* sections and thumbnails */
.a-sec { margin: 0 0 50px; }
.a-sec-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.a-sec-title { margin: 0; padding: 0; border: 0; background: none; color: var(--fg); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-family: var(--sans); outline: none; min-width: 0; flex: 0 1 auto; field-sizing: content; max-width: 60%; }
input.a-sec-title { border-bottom: 1px dashed transparent; }
input.a-sec-title:hover, input.a-sec-title:focus { border-bottom-color: var(--faint); }
.a-count { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.a-sec-tools { margin-left: auto; display: flex; gap: 16px; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; min-height: 12px; }
.a-thumb { position: relative; margin: 0; cursor: grab; }
.a-grid.static .a-thumb { cursor: default; }
.a-thumb img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.a-thumb figcaption { margin-top: 6px; font-size: 10.5px; letter-spacing: .05em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-grid.static .a-thumb figcaption { white-space: normal; }
.a-del {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 17px; line-height: 1; opacity: 0; transition: opacity .2s;
}
.a-thumb:hover .a-del, .a-del:focus-visible { opacity: 1; }
@media (hover: none) { .a-del { opacity: .85; } }
.sortable-ghost { opacity: .25; }
.sortable-chosen img { outline: 1px solid var(--fg); outline-offset: 2px; }
.a-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  margin-top: 16px; padding: 24px; border: 1px dashed var(--line);
  font-size: 12px; letter-spacing: .04em; color: var(--muted); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.a-drop:hover, .a-drop.over { border-color: var(--fg); color: var(--fg); }
.a-drop.over { background: var(--soft); }
.a-prog { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.a-prog .bar { display: block; width: min(280px, 70vw); height: 1px; background: var(--line); }
.a-prog .bar i { display: block; width: 0; height: 1px; background: var(--fg); transition: width .2s linear; }
.a-prog .txt { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.a-add { display: flex; align-items: center; gap: 16px; max-width: 560px; }

/* forms */
.a-form { display: flex; flex-direction: column; gap: 20px; max-width: 580px; margin: 38px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.a-form h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.a-form label { display: flex; flex-direction: column; gap: 2px; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.a-form label b { color: var(--fg); letter-spacing: .06em; text-transform: none; }
.a-form label .field, .a-form label select, .a-form textarea { text-transform: none; letter-spacing: 0; font-weight: 400; }
.a-form textarea.field { resize: vertical; line-height: 1.5; }
.a-form small { margin-top: 5px; font-size: 11px; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--faint); }
.a-form .btn { align-self: flex-start; }
.a-check { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: .01em !important; text-transform: none !important; color: var(--fg) !important; cursor: pointer; }
.a-check input { accent-color: var(--fg); width: 16px; height: 16px; }
.a-prefix { margin-top: 8px; font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--faint); }
.a-new { border-top: 0; margin-top: 56px; padding: 30px; background: var(--panel); border: 1px solid var(--line); }
.danger { margin-top: 60px; }

/* dashboard list */
.a-list { margin-top: 18px; border-top: 1px solid var(--line); }
.a-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 2fr) auto; align-items: center; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .25s var(--ease);
}
.a-row:hover { padding-left: 8px; }
.a-row-t { font-size: 16px; font-weight: 500; line-height: 1.2; }
.a-row-u, .a-row-s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-row-s b { color: var(--fg); font-weight: 500; }
@media (max-width: 760px) {
  .a-row { grid-template-columns: minmax(0, 1fr) auto; }
  .a-row-u { display: none; }
  .a-row-s { grid-column: 1 / -1; grid-row: 2; }
}

/* selection */
.a-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 13.5px; }
.a-table th { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.a-table td { padding: 15px 10px 15px 0; border-bottom: 1px solid var(--line); }
.a-table b { font-weight: 600; }
.r { text-align: right; }
.muted { color: var(--muted); }
.ok { color: var(--fg); }
.a-export { margin-top: 48px; }
.a-export h2, .a-h2 { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.a-h2 { margin-top: 52px; }
.a-export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 12px 0; }
.a-out { width: 100%; padding: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.a-empty { padding: 50px 0; font-size: 14px; color: var(--muted); }

/* comments */
.a-thread { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.a-thread > img { width: 112px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.a-fname { margin: 0 0 12px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.a-thread .comments li.new > b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: #A1332B; }
.a-thread .comments li form { display: inline; }
.a-thread .c-form input { font-size: 14px; }
@media (max-width: 600px) {
  .a-thread { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .a-thread > img { width: 72px; }
  .a-head { flex-wrap: wrap; }
}

/* look */
.a-look { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.a-look label { flex: 0 0 auto; }
.a-look input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.a-swatches { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.a-swatches i { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--line); }
.a-custom[hidden] { display: none !important; }
