/* Additions for the web app only. style.css is the mockup's file, copied unchanged. */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.provisional { margin-top: 12px; font-style: italic; }
.btn.disabled { opacity: .5; pointer-events: none; }
a.btn { text-decoration: none; display: inline-block; }

/* Manage Missions at about 640-860px wide: the left menu leaves too little room for the table, so the table keeps a readable minimum width and scrolls sideways inside its card. */
@container (min-width: 641px) and (max-width: 860px) {
  .mm-card { overflow-x: auto; }
  .mm-table { min-width: 640px; }
  .mm-table.active .c-n, .mm-table.ended .c-n { width: 64px; }
}


/* "How to Complete" written in Markdown */
.md p { margin: 0 0 8px; line-height: 1.45; }
.md ol, .md ul { margin: 0 0 8px; padding-left: 20px; line-height: 1.45; }
.md li { margin-bottom: 4px; }
.md li > ol, .md li > ul { margin: 4px 0 0; }
.md > :last-child { margin-bottom: 0; }

/* Several screenshots in one submission */
.slot { margin-bottom: 14px; }
.rvp-imgs { display: flex; flex-direction: column; gap: 12px; }
.rvp-img .rvp-thumb { margin-top: 4px; }
.md-help > div { margin-bottom: 2px; }

/* Exclusive Perks: only the body sits in a framed card (the heading stays outside); the theme's light accent background and accent frame, with a faint glow so it stands out. */
.perks-card { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 6px 20px var(--accent-soft); }

/* several text answers: heading + entered content, one pair per field */
.txt-set { display: grid; gap: 10px; }
.txt-pair > .muted { margin-bottom: 2px; }

/* Highlight Link: a link shown as a card (teal/green, so it differs from the perks card) with a medium Copy button */
.link-card { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 6px 8px 6px 12px; background: rgba(52, 211, 153, .09); border: 1px solid rgba(52, 211, 153, .4); border-radius: 8px; }
.link-card .post-link { flex: 1 1 auto; min-width: 0; margin: 0; color: #6ee7b7; font-size: 13px; line-height: 1.3; }
.link-card .copy-btn { flex: 0 0 auto; padding: 6px 14px; min-height: 0; font-size: 13px; line-height: 1.3; border-radius: 8px; background: rgba(52, 211, 153, .2); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, .4); }
.af-tools { margin: 6px 0 4px; }

/* CEX/DEX: full-width bar (line - arrow label arrow - line) that opens / closes the cards after the first four */
.more-hidden { display: none !important; }
.cat-more { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 44px; margin-top: 20px; padding: 0 14px; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; color: var(--accent-hi); background: none; border: 0; border-radius: 12px; }
.cat-more::before, .cat-more::after { content: ""; flex: 1; height: 1px; background: var(--accent-line); }
.cat-more:hover { filter: brightness(1.2); }
.cat-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-arrow { width: 8px; height: 8px; flex: 0 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.cat-more.open .cat-arrow { transform: translateY(2px) rotate(-135deg); }

/* Register steps: fixed trade step row and up/down buttons */
.admin-form .af-fixed { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 0 12px; min-height: 40px; border: 1px dashed var(--accent-line); border-radius: 10px; color: var(--muted, #9aa3b5); font-size: 14px; }
.admin-form .af-mv { flex: 0 0 auto; padding: 0 10px; }
