/* My campaigns. Layout only; colours, type, buttons and panels come from theme.css. */
.top {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.brand { font-size: 16px; font-weight: 800; }
.brand span { font-weight: 600; color: var(--mid); }
.top .avatar { margin-left: auto; }
.wrap { max-width: 620px; margin: 0 auto; padding: 16px 12px 40px; display: flex; flex-direction: column; gap: 12px; }
h1 { font-size: 22px; font-weight: 800; }

.new { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.import { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -4px; }
.import .hint { margin: 0; }
.account-io { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.account-io .hint { margin: 0; }
.io-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
a.secondary.io { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--rule); text-decoration: none; font-weight: 700; color: var(--ink); background: var(--card); }
.sheet a.button { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 0; text-decoration: none; font-weight: 700; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.camp { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.camp .open { color: var(--ink); text-decoration: none; min-width: 0; }
.camp .open h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp .meta { color: var(--mid); font-size: 13px; }
.camp .meta b { color: var(--accent); font-weight: 700; }
.camp .links { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.camp.current { border-color: var(--accent); }
.camp .icon { min-height: 40px; min-width: 40px; font-size: 18px; }

.archived summary { cursor: pointer; list-style: none; padding: 6px 0; }
.archived summary::-webkit-details-marker { display: none; }
.archived summary .label::before { content: '▸ '; }
.archived[open] summary .label::before { content: '▾ '; }
.archived .camp { background: transparent; border-style: dashed; }

.sheet form, .sheet .buttons { display: flex; flex-direction: column; gap: 8px; }
.sheet .error { color: var(--well); font-weight: 600; font-size: 14px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 800; text-decoration: none; }
.avatar.demo { background: var(--stamina); }
h1 .count { font-size: 15px; font-weight: 600; color: var(--mid); margin-left: 6px; }
.full { margin: 0; padding: 10px 12px; border-left: 3px solid var(--bloodied); background: color-mix(in srgb, var(--bloodied) 10%, transparent); font-weight: 600; }
.credit { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--mid); line-height: 1.6; }
.credit a { color: var(--mid); }
