/* ===== Company page ===== */
.cp-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 16px; }
.cp-icon {
  width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; font-size: 52px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 201, 74, .25), rgba(47, 107, 255, .18));
  border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.cp-title h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.cp-sub { color: var(--muted); margin: 6px 0 10px; }
.cp-sub b { color: var(--text); }
.cp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.cp-tag img { width: 18px; height: 18px; border-radius: 50%; }
.cp-level { display: grid; gap: 8px; justify-items: end; min-width: 240px; }
.cp-level > b { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; }
.cp-level > span { color: var(--gold); letter-spacing: 2px; }
.cp-level > span i { color: rgba(255, 255, 255, .15); font-style: normal; }
.cp-level .btn { height: 42px; font-size: 13px; }

.cp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cp-grid .recipe { margin-top: 0; }
.cp-grid .res-chip em i { color: rgba(255, 255, 255, .2); font-style: normal; }
.cp-grid .res-chip.out em { color: var(--gold); letter-spacing: 1px; }
.kv b.warn { color: var(--red); }
.panel-title a.right { color: var(--gold); font-weight: 700; }

.workers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.worker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border-radius: 99px; background: rgba(255, 255, 255, .06); font-size: 12.5px; font-weight: 600; }
.w-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1f1400; font-size: 11px; font-weight: 800; }
.worker button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.worker button:hover { background: rgba(255, 77, 109, .2); color: var(--red); }
.small-btn { height: 38px; margin-top: 10px; font-size: 12.5px; }

/* ===== Page header (market / jobs) ===== */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pg-head h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4vw, 48px); letter-spacing: -1px; margin: 10px 0 6px; }
.pg-head p { color: var(--muted); }
.where-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(61, 255, 181, .08); border: 1px solid rgba(61, 255, 181, .3); font-weight: 600; font-size: 13px; }
.where-chip img { width: 20px; height: 20px; border-radius: 50%; }

/* ===== Market ===== */
.mk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.mk-layout > * { min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.filter.active { color: var(--text); border-color: rgba(255, 201, 74, .6); background: rgba(255, 201, 74, .1); }

.offer-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.offer-table th { text-align: left; font-size: 10.5px; letter-spacing: 1px; color: var(--muted); font-weight: 700; padding: 0 12px; }
.offer-table td { padding: 10px 12px; background: rgba(255, 255, 255, .035); font-size: 13px; }
.offer-table td:first-child { border-radius: 14px 0 0 14px; }
.offer-table td:last-child { border-radius: 0 14px 14px 0; text-align: right; }
.offer-table tr:hover td { background: rgba(255, 255, 255, .06); }
.prod-cell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.prod-cell .pe { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 19px; }
.prod-cell small { display: block; color: var(--gold); font-size: 9px; letter-spacing: 1px; font-weight: 500; }
.prod-cell small i { color: rgba(255, 255, 255, .15); font-style: normal; }
.buy-form { display: inline-flex; gap: 6px; }
.buy-form input { width: 74px; height: 36px; padding: 0 8px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; outline: none; }
.buy-form .btn { width: auto; height: 36px; padding: 0 12px; font-size: 12.5px; }
.mine-row td { background: rgba(34, 211, 255, .06); }

.side-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; position: sticky; top: 96px; }
.side-stack .panel-card { min-width: 0; }
.form-row select { width: 100%; text-overflow: ellipsis; }
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.inv-item { min-width: 0; overflow-wrap: anywhere; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: center; font-size: 11.5px; }
.inv-item span { display: block; font-size: 18px; }
.inv-item b { font-family: var(--font-mono); }

/* Currency exchange */
.fx-card { max-width: 620px; }
.fx-rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); margin-bottom: 12px; font-family: var(--font-mono); }
.fx-rate b { font-size: 18px; }
.fx-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.fx-dir button { height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); }
.fx-dir button.active { color: #1f1400; background: var(--grad); border-color: transparent; }
.fx-preview { margin-top: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 201, 74, .08); font-size: 13px; }
.wallet-list { display: grid; gap: 6px; }
.wallet-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 13px; }
.wallet-item img { width: 20px; height: 20px; border-radius: 50%; }
.wallet-item b { margin-left: auto; font-family: var(--font-mono); }

/* ===== Jobs ===== */
.job-list { display: grid; gap: 10px; }
.job {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(24, 31, 54, .92), rgba(10, 14, 26, .96)); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.job:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.job.current { border-color: rgba(61, 255, 181, .5); box-shadow: 0 0 0 1px rgba(61, 255, 181, .25); }
.job .cc-icon { width: 52px; height: 52px; }
.job-name { font-weight: 800; font-size: 15px; }
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.job-meta img { width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; }
.job-pay { text-align: right; }
.job-pay b { display: block; font-family: var(--font-display); font-size: 20px; }
.job-pay small { color: var(--muted); font-size: 11.5px; }
.job .btn { width: auto; min-width: 120px; height: 42px; }
.my-job { margin-bottom: 18px; }

@media (max-width: 1000px) {
  .cp-hero { grid-template-columns: auto 1fr; }
  .cp-level { grid-column: 1 / -1; justify-items: stretch; }
  .cp-grid, .mk-layout { grid-template-columns: 1fr; }
  .side-stack { position: static; }
}
@media (max-width: 700px) {
  .page-main { padding-top: 84px; }
  .job { grid-template-columns: auto 1fr; }
  .job-pay { text-align: left; }
  .job .btn { grid-column: 1 / -1; width: 100%; }
  .offer-table thead { display: none; }
  .offer-table td { display: block; border-radius: 0 !important; text-align: left !important; }
  .offer-table tr td:first-child { border-radius: 14px 14px 0 0 !important; }
  .offer-table tr td:last-child { border-radius: 0 0 14px 14px !important; }
}

/* Move money / raw materials in and out of a company */
.stock-form { margin: 2px 0 10px; }
.stock-form .btn, #moneyForm .btn { padding: 0 14px; }

/* Waiting time before a new job */
.cooldown { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 201, 74, .08); border: 1px solid rgba(255, 201, 74, .35); font-size: 13.5px; }
.cooldown i { font-size: 26px; color: var(--gold); }

/* ===== Politics ===== */
.p-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 10px var(--pc); }
.role { display: inline-flex; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.role.pm { background: rgba(255, 201, 74, .15); color: var(--gold); }
.role.mp { background: rgba(56, 189, 248, .14); color: #8fdcff; }
.gov-top { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-bottom: 16px; }
.gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.pm-name { font-family: var(--font-display); font-weight: 900; font-size: 26px; display: flex; align-items: center; gap: 10px; }
.seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); text-align: center; min-width: 0; }
.seat span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #0a0f1c; font-weight: 900; box-shadow: 0 0 18px color-mix(in srgb, var(--pc) 60%, transparent); }
.seat b { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat small { color: var(--muted); font-size: 10.5px; }
.treasury { font-family: var(--font-display); font-weight: 900; font-size: 30px; margin-bottom: 6px; }

/* Every card on the politics page keeps the same gap from the next one */
.tab-panel > .panel-card { margin-bottom: 16px; }
.tab-panel > .panel-card:last-child { margin-bottom: 0; }
.pm-actions.locked .desk { opacity: .45; }
.desk { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.desk-item { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); min-width: 0; }
.desk-item h4 { font-size: 14px; margin-bottom: 2px; }
.desk-item .btn { margin-top: auto; height: 40px; font-size: 13px; }
.desk-item .hint { margin: 4px 0 10px; }

.proposals { display: grid; gap: 10px; }
.proposal { padding: 14px 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(24, 31, 54, .92), rgba(10, 14, 26, .96)); border: 1px solid var(--line); }
.proposal.passed { border-color: rgba(61, 255, 181, .4); }
.proposal.rejected, .proposal.failed { border-color: rgba(255, 77, 109, .35); opacity: .85; }
.pr-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pr-status { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pr-meta { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }
.pr-votes { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-vote { padding: 4px 10px; border-radius: 99px; font-size: 12px; background: rgba(255, 255, 255, .06); }
.pr-vote.yes { background: rgba(61, 255, 181, .14); color: var(--mint); }
.pr-vote.no { background: rgba(255, 77, 109, .14); color: #ff9aae; }
.pr-vote.wait { color: var(--muted); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .5; } }
.pr-actions { display: flex; gap: 8px; margin-top: 12px; }
.pr-actions .btn { width: auto; height: 38px; font-size: 13px; }

.election { margin-bottom: 16px; }
.ph-badge { margin-left: 6px; padding: 3px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.ph-badge.signup { background: rgba(56, 189, 248, .15); color: #8fdcff; }
.ph-badge.vote { background: rgba(255, 201, 74, .18); color: var(--gold); }
.ph-badge.open { background: rgba(179, 136, 255, .18); color: #cdb4ff; }
.cands { display: grid; gap: 6px; margin-bottom: 12px; }
.cand-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.cand-row small { color: var(--muted); font-size: 12px; }
.cand-row .btn { margin-left: auto; width: auto; height: 34px; padding: 0 14px; font-size: 12.5px; }
.election > .btn, #runLeader { width: auto; }
.result { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 201, 74, .08); font-size: 13px; line-height: 1.5; }
.result i { color: var(--gold); font-size: 18px; }

.demo-box { padding: 16px; border-radius: 20px; border: 1px dashed rgba(179, 136, 255, .5); background: rgba(179, 136, 255, .05); }
.toggle { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13.5px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: #b388ff; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.demo-actions .btn { width: auto; height: 38px; font-size: 13px; }

.my-party { margin-bottom: 20px; border-color: color-mix(in srgb, var(--pc) 45%, transparent); }
.mp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mp-head h2 { font-family: var(--font-display); font-weight: 900; font-size: 24px; }
.mp-head .btn { margin-left: auto; }
.mp-flag { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 40%, #000)); box-shadow: 0 0 30px color-mix(in srgb, var(--pc) 50%, transparent); flex-shrink: 0; }
.members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.member { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); font-size: 12.5px; }
.sub-title { font-size: 14px; margin-bottom: 10px; }
.party-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.party-card { position: relative; overflow: hidden; padding: 18px 16px 16px; border-radius: 20px; background: linear-gradient(160deg, rgba(24, 31, 54, .92), rgba(10, 14, 26, .96)); border: 1px solid var(--line); }
.pc-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--pc); box-shadow: 0 0 16px var(--pc); }
.party-card h3 { font-size: 16px; margin-bottom: 8px; }
.party-card h3 small { color: var(--gold); font-size: 11.5px; }
.party-card .btn { margin-top: 10px; height: 38px; }
.swatches { display: flex; gap: 8px; margin: 12px 0; }
.swatches input { display: none; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--pc); cursor: pointer; border: 3px solid transparent; }
.swatches input:checked + span { border-color: #fff; box-shadow: 0 0 14px var(--pc); }
.create-party { max-width: 520px; }

@media (max-width: 1100px) { .desk { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) {
  .gov-top, .gov-grid { grid-template-columns: 1fr; }
  .seats { grid-template-columns: repeat(3, 1fr); }
  .desk { grid-template-columns: 1fr; }
  .mp-head { flex-wrap: wrap; }
}

/* Defense deals between countries */
.deals { margin-bottom: 16px; }
.deal-list { display: grid; gap: 8px; }
.deal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(24, 31, 54, .92), rgba(10, 14, 26, .96)); border: 1px solid var(--line); }
.deal.accepted { border-color: rgba(61, 255, 181, .35); }
.deal.declined, .deal.cancelled { opacity: .6; }
.deal .flag { width: 28px; height: 28px; }
.deal-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13.5px; }
.deal-text small { color: var(--muted); font-size: 12px; }
.deal-actions { display: flex; gap: 6px; }
.deal-actions .btn { width: auto; height: 36px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 700px) { .deal { flex-wrap: wrap; } .deal-actions { width: 100%; } }

/* ===== Travel ===== */
.tr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pass {
  position: relative; padding: 24px; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 201, 74, .12), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(56, 189, 248, .12), transparent 55%),
    linear-gradient(160deg, rgba(24, 31, 54, .96), rgba(10, 14, 26, .98));
  border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.pass-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pass-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; letter-spacing: 2px; font-size: 14px; }
.pass-brand i { color: var(--gold); font-size: 20px; }
.pass-type { font-size: 11px; letter-spacing: 3px; color: var(--muted); font-weight: 700; }
.pass-route { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 12px; margin-bottom: 20px; }
.pass-city { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.pass-city.to { justify-items: end; text-align: right; }
.pass-city small { font-size: 10.5px; letter-spacing: 3px; color: var(--muted); font-weight: 700; }
.pass-city img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.pass-city b { font-family: var(--font-display); font-weight: 900; font-size: clamp(18px, 2.4vw, 28px); line-height: 1.1; max-width: 100%; overflow-wrap: anywhere; }
.pass-city span { color: var(--muted); font-size: 13px; }
.pass-path { position: relative; height: 70px; }
.pass-path svg { width: 100%; height: 100%; }
.pass-path path { fill: none; stroke: rgba(255, 201, 74, .55); stroke-width: 2; stroke-dasharray: 6 6; }
.pass-plane { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); font-size: 26px; filter: drop-shadow(0 0 10px rgba(255, 201, 74, .6)); }
.pass-plane.fly { animation: fly 1.8s ease-in-out forwards; }
@keyframes fly {
  0% { left: 0%; top: 48px; transform: translateX(-50%) rotate(-25deg); }
  50% { left: 50%; top: 0; transform: translateX(-50%) rotate(0deg); }
  100% { left: 100%; top: 48px; transform: translateX(-50%) rotate(25deg); }
}
.pass-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field select { height: 44px; padding: 0 12px; border-radius: 12px; outline: none; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.field select:focus { border-color: var(--gold); }
.pass-details { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 18px; }
.pass-details div { padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); min-width: 0; }
.pass-details small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.pass-details b { font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pass-tear { height: 0; border-top: 2px dashed rgba(255, 255, 255, .12); margin: 0 -24px 18px; position: relative; }
.pass-tear::before, .pass-tear::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.pass-tear::before { left: -12px; }
.pass-tear::after { right: -12px; }
.pass-go { height: 54px; font-size: 15px; }

.tickets { margin-bottom: 12px; }
.ticket-count { display: flex; align-items: baseline; gap: 10px; }
.ticket-count span { font-size: 30px; }
.ticket-count b { font-family: var(--font-display); font-size: 34px; }
.ticket-count small { color: var(--muted); }
.quick { display: grid; gap: 6px; }
.quick-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: left; transition: background .2s, border-color .2s; }
.quick-item:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-strong); }
.quick-item > span { font-size: 20px; }
.quick-item div { flex: 1; min-width: 0; display: grid; }
.quick-item b { font-size: 13px; }
.quick-item small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-item img { width: 22px; height: 22px; border-radius: 50%; }
a.my-location { color: var(--red); }

@media (max-width: 1000px) { .tr-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .pass-details { grid-template-columns: repeat(3, 1fr); }
  .pass-pick { grid-template-columns: 1fr; }
  .pass-route { grid-template-columns: 1fr 0.8fr 1fr; }
}

/* ===== News ===== */
.news-tabs { grid-template-columns: repeat(5, 1fr); max-width: 800px; }
.news-tabs .seg-glider { width: calc((100% - 8px) / 5); }

/* Newspaper channels */
.paper-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.paper-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: 30px; background: linear-gradient(135deg, #fff1c9, #c98f35); color: #1f1400; flex-shrink: 0; }
.paper-head h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.1; }
.paper-head .hint { margin-top: 4px; }
.paper-head .btn { width: auto; margin-left: auto; }
.art-meta a.paper { color: var(--gold); font-weight: 600; }
.open-channel { max-width: 560px; }
.art-list { display: grid; gap: 10px; }
.art-card { display: flex; gap: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, rgba(24, 31, 54, .92), rgba(10, 14, 26, .96)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.art-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.vote-box { flex-shrink: 0; width: 54px; height: 64px; border-radius: 14px; display: grid; place-items: center; align-content: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.vote-box i { font-size: 20px; }
.vote-box b { font-family: var(--font-mono); font-size: 15px; color: var(--text); }
.vote-box:hover { border-color: rgba(255, 201, 74, .5); }
.vote-box.on { background: rgba(255, 201, 74, .14); border-color: rgba(255, 201, 74, .6); color: var(--gold); }
.art-main { flex: 1; min-width: 0; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.art-meta .cat { padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--text); font-weight: 600; }
.art-main h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: 21px; line-height: 1.25; margin: 6px 0; }
.art-main p { color: #b8c2dd; font-size: 13.5px; line-height: 1.55; }
.art-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }

.art-full { max-width: 760px; margin: 0 auto 20px; padding: 30px; border-radius: 24px; background: linear-gradient(160deg, rgba(24, 31, 54, .92), rgba(10, 14, 26, .96)); border: 1px solid var(--line); }
.art-full h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 12px 0 8px; }
.byline { color: var(--muted); margin-bottom: 22px; }
.byline b { color: var(--text); }
.art-body p { font-family: 'Newsreader', Georgia, serif; font-size: 19px; line-height: 1.7; color: #dbe3f7; margin-bottom: 16px; }
.art-actions { margin-top: 20px; }
.art-actions .btn { width: auto; }
.comments { max-width: 760px; margin: 0 auto; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.comment .w-av { width: 32px; height: 32px; flex-shrink: 0; font-size: 13px; }
.comment small { color: var(--muted); margin-left: 6px; }
.comment p { margin-top: 3px; font-size: 13.5px; line-height: 1.5; }

.write-card { max-width: 820px; }
.write-card textarea { width: 100%; padding: 14px; border-radius: 12px; outline: none; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); resize: vertical; font-family: 'Newsreader', Georgia, serif; font-size: 17px; line-height: 1.6; }
.write-card textarea:focus { border-color: var(--gold); }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick input { display: none; }
.cat-pick span { display: inline-flex; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; }
.cat-pick input:checked + span { border-color: rgba(255, 201, 74, .7); background: rgba(255, 201, 74, .12); color: var(--gold); }
.write-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 600px) { .art-full { padding: 20px; } .art-card { padding: 12px; } }
.art-main { cursor: pointer; }
.art-main h3 a:hover { color: var(--gold); }

/* ===== Profile ===== */
.co-tabs.four { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
.co-tabs.four .seg-glider { width: calc((100% - 8px) / 4); }

.pf-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-bottom: 16px; }
.pf-avatar { position: relative; width: 120px; height: 120px; border-radius: 32px; overflow: hidden; display: grid; place-items: center; background: var(--grad); color: #1f1400; font-family: var(--font-display); font-weight: 900; font-size: 52px; box-shadow: 0 0 0 4px rgba(255, 201, 74, .25), 0 20px 50px rgba(0, 0, 0, .45); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar.editable { cursor: pointer; }
.pf-avatar i { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: rgba(5, 8, 16, .75); color: #fff; opacity: 0; transition: opacity .2s; }
.pf-avatar.editable:hover i { opacity: 1; }
.pf-id h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3.5vw, 40px); }
.pf-sub { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 4px 0 10px; }
.pf-sub i { color: var(--gold); }
.pf-xp { height: 8px; max-width: 360px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-bottom: 12px; }
.pf-xp div { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--mint)); border-radius: 8px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.role-tag { background: rgba(255, 201, 74, .1); border-color: rgba(255, 201, 74, .35); color: var(--gold); }
.pf-actions { display: grid; gap: 8px; min-width: 230px; }
.pf-actions .btn { height: 42px; font-size: 13px; }

.pf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.pf-main, .pf-side { display: grid; gap: 16px; min-width: 0; }

.doll { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: ". helmet ." "gloves figure vest" "knees . boots"; gap: 12px; align-items: center; margin-bottom: 16px; }
.slot-helmet { grid-area: helmet; } .slot-gloves { grid-area: gloves; } .slot-vest { grid-area: vest; }
.slot-knees { grid-area: knees; } .slot-boots { grid-area: boots; }
.doll-figure { grid-area: figure; display: grid; place-items: center; }
.doll-figure span { font-size: 110px; filter: drop-shadow(0 0 30px rgba(56, 189, 248, .35)); }
.gear-item {
  position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--lc) 14%, transparent), rgba(0, 0, 0, .25));
  border: 1px solid color-mix(in srgb, var(--lc) 55%, transparent); transition: transform .15s, box-shadow .2s;
}
.gear-item:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--lc) 30%, transparent); }
.gear-item.sel { box-shadow: 0 0 0 2px var(--lc), 0 0 24px color-mix(in srgb, var(--lc) 45%, transparent); }
.gear-item:disabled { cursor: default; }
.gi-emoji { font-size: 30px; }
.gi-lvl { position: absolute; top: 7px; left: 8px; padding: 1px 6px; border-radius: 6px; background: var(--lc); color: #0a0f1c; font-size: 10.5px; font-weight: 900; }
.gi-lock { position: absolute; top: 6px; right: 8px; font-size: 12px; }
.gear-item b { font-size: 12.5px; }
.gear-item small { color: var(--muted); font-size: 11px; }
.gear-empty { display: grid; place-items: center; gap: 2px; padding: 14px 8px; border-radius: 16px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; font-size: 11.5px; }
.gear-empty span { font-size: 26px; opacity: .35; }
.bonus-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.bonus { padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); min-width: 0; }
.bonus span { display: block; font-size: 12px; font-weight: 600; }
.bonus b { font-family: var(--font-mono); font-size: 18px; color: var(--gold); }
.bonus small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.3; }

.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 12px; }
.bag-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bag-actions > .btn { width: auto; }
.bag-actions .form-row { flex: 1; margin: 0; min-width: 260px; }
.merge-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(179, 136, 255, .08); border: 1px solid rgba(179, 136, 255, .35); }
.merge-box small { display: block; color: var(--muted); margin-top: 2px; }
.merge-box .btn { width: auto; }

.medal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.medal { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); opacity: .5; filter: grayscale(1); }
.medal.on { opacity: 1; filter: none; border-color: rgba(255, 201, 74, .45); background: rgba(255, 201, 74, .07); }
.medal span { grid-row: span 2; font-size: 22px; }
.medal b { font-size: 12.5px; }
.medal small { color: var(--muted); font-size: 11px; }
.hist { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.hist:last-child { border-bottom: none; }
.hist small { color: var(--muted); font-size: 11.5px; }
.previewing .pf-hero { box-shadow: 0 0 0 2px rgba(56, 189, 248, .5); }

.gear-market { display: grid; gap: 8px; }
.gear-offer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--lc) 10%, transparent), rgba(10, 14, 26, .95)); border: 1px solid color-mix(in srgb, var(--lc) 40%, transparent); }
.go-emoji { font-size: 30px; }
.go-main { display: grid; gap: 2px; min-width: 0; }
.go-main small { color: var(--muted); font-size: 12px; }
.go-lvl { padding: 1px 7px; border-radius: 6px; background: var(--lc); color: #0a0f1c; font-size: 11px; font-weight: 900; margin-left: 4px; }
.go-price { font-family: var(--font-display); font-weight: 900; font-size: 18px; white-space: nowrap; }
.gear-offer .btn { width: auto; min-width: 110px; height: 40px; }

@media (max-width: 1100px) { .pf-layout { grid-template-columns: 1fr; } .bonus-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .pf-hero { grid-template-columns: auto 1fr; }
  .pf-actions { grid-column: 1 / -1; }
  .pf-avatar { width: 84px; height: 84px; font-size: 36px; border-radius: 24px; }
  .doll-figure span { font-size: 70px; }
  .bonus-list { grid-template-columns: repeat(2, 1fr); }
  .gear-offer { grid-template-columns: auto 1fr; }
  .co-tabs.four button { font-size: 11px; }
}

/* Gear auctions */
.auction { display: grid; grid-template-columns: 130px 120px minmax(0, 1fr) 200px; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--lc) 10%, transparent), rgba(10, 14, 26, .95)); border: 1px solid color-mix(in srgb, var(--lc) 40%, transparent); }
.au-person { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.au-person small { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }
.au-person b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.au-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.au-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.au-action { display: grid; gap: 6px; justify-items: end; text-align: right; }
.au-time { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.au-price { font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.au-bid { display: flex; gap: 6px; }
.au-bid input { width: 90px; height: 38px; padding: 0 8px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-family: var(--font-mono); outline: none; }
.au-bid .btn { width: auto; height: 38px; padding: 0 16px; }
.au-leading { color: var(--mint); font-weight: 700; font-size: 13px; }
#sellGear select { flex: 0 0 76px; }
@media (max-width: 900px) {
  .auction { grid-template-columns: 1fr 1fr; }
  .au-item { grid-column: 1 / -1; order: -1; }
  .au-action { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
}

/* Gear doll — items placed on a body silhouette (overrides the older grid layout) */
.doll { position: relative; display: block; height: 470px; max-width: 560px; margin: 0 auto 16px; }
.doll-body { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); height: 450px; width: auto; filter: drop-shadow(0 0 30px rgba(126, 168, 255, .25)); }
.doll-slot { position: absolute; width: 132px; }
.slot-helmet { left: 50%; top: 0; transform: translateX(-50%); }
.slot-vest   { left: 50%; top: 150px; transform: translateX(-50%); }
.slot-gloves { left: 0; top: 190px; }
.slot-knees  { left: 0; top: 330px; }
.slot-boots  { right: 0; top: 330px; }
.doll-slot .gear-item, .doll-slot .gear-empty { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.doll-slot .gear-empty { background: rgba(10, 14, 26, .6); }
@media (max-width: 600px) {
  .doll { height: 400px; }
  .doll-body { height: 380px; }
  .doll-slot { width: 104px; }
  .slot-vest { top: 130px; }
  .slot-gloves { top: 160px; }
  .slot-knees, .slot-boots { top: 280px; }
}

@media (max-width: 1000px) { .nav-links a { padding: 9px 9px; } .nav .pill { padding: 0 10px; } .nav .pill small { display: none; } }

/* Gear art — studio photos on their gray backdrop, 4:3 */
.gi-art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 14px 0 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.gi-art.gear-art-emoji { display: grid; place-items: center; font-size: 34px; background: rgba(0, 0, 0, .2); }
.au-art { width: 96px; flex: 0 0 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.au-art.gear-art-emoji { display: grid; place-items: center; font-size: 30px; background: rgba(0, 0, 0, .2); }
/* Doll spacing for the taller photo cards */
.doll { height: 620px; }
.doll-body { height: 600px; }
.slot-vest   { top: 205px; }
.slot-gloves { top: 250px; }
.slot-knees  { top: 440px; }
.slot-boots  { top: 440px; }
@media (max-width: 600px) {
  .doll { height: 560px; }
  .doll-body { height: 520px; }
  .slot-vest { top: 180px; }
  .slot-gloves { top: 220px; }
  .slot-knees, .slot-boots { top: 390px; }
}

/* Money market */
.fx-main { display: grid; gap: 16px; min-width: 0; }
.fx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-stat { padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); min-width: 0; }
.fx-stat small { display: block; color: var(--muted); font-size: 11px; }
.fx-stat b { display: block; font-family: var(--font-mono); font-size: 15px; margin: 3px 0 1px; overflow-wrap: anywhere; }
.fx-seller { display: flex; align-items: center; gap: 8px; }
.fx-seller .flag { width: 20px; height: 20px; border-radius: 50%; }
.fx-cost { display: block; margin-top: 4px; color: var(--gold); font-size: 11.5px; min-height: 14px; }
.panel-title .cur-flag { width: 20px; height: 20px; border-radius: 50%; }
.wallet-item .cur-flag { width: 20px; height: 20px; border-radius: 50%; }
@media (max-width: 700px) { .fx-stats { grid-template-columns: 1fr; } }

/* Military units */
.unit-list { display: grid; gap: 10px; }
.unit-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.unit-card .btn { width: auto; height: 38px; padding: 0 14px; font-size: 12.5px; margin-left: auto; flex-shrink: 0; }
.unit-emblem { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; font-size: 28px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 201, 74, .18), rgba(0, 0, 0, .3)); border: 1px solid rgba(255, 201, 74, .35); }
.unit-emblem.big { width: 84px; height: 84px; font-size: 46px; border-radius: 24px; }
.unit-info { display: grid; gap: 3px; min-width: 0; }
.unit-info small { color: var(--muted); font-size: 12px; }
.unit-info h2 { font-family: var(--font-display); font-size: 24px; }
.unit-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.unit-hero .btn { width: auto; margin-left: auto; }
.unit-rank { justify-self: start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.unit-rank.commander { background: rgba(255, 201, 74, .15); color: var(--gold); }
.unit-rank.officer { background: rgba(56, 189, 248, .15); color: var(--cyan); }
.emblems { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.emblems button { height: 38px; border-radius: 10px; font-size: 20px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.emblems button.active { border-color: var(--gold); background: rgba(255, 201, 74, .15); }
.unit-order.on { border-color: rgba(255, 201, 74, .45); }
.order-line { font-size: 14px; line-height: 1.6; }
.order-line .flag { width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; flex-wrap: wrap; }
.member-row:last-child { border-bottom: none; }
.member-row .m-name { font-weight: 600; min-width: 120px; }
.member-row .m-acts { margin-left: auto; display: flex; gap: 6px; }
.mini { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text); }
.mini.danger { color: var(--red); }
.mini:disabled { opacity: .4; }
.kv.lv-now span, .kv.lv-now b { color: var(--gold); }
.unit-note { color: var(--gold); font-weight: 700; }
@media (max-width: 700px) { .unit-hero { flex-wrap: wrap; } .unit-card { flex-wrap: wrap; } .unit-card .btn { margin-left: 0; width: 100%; } }

/* Achievements */
.ach-list { display: grid; gap: 8px; }
.ach { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.ach.on { border-color: rgba(255, 201, 74, .3); }
.ach-icon { font-size: 22px; width: 30px; text-align: center; filter: grayscale(1); opacity: .6; }
.ach.on .ach-icon { filter: none; opacity: 1; }
.ach-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ach-body b { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.ach-body b small { display: flex; gap: 3px; }
.ach-body b small i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.ach-body b small i.got { background: var(--gold); }
.ach-body > small { color: var(--muted); font-size: 11px; }
.ach-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ach-bar div { height: 100%; background: var(--grad); }

.pf-xp-text { color: var(--muted); font-size: 11.5px; margin-top: 5px; font-family: var(--font-mono); }

/* Military: battles tab */
.mil-tabs { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
.mil-tabs .seg-glider { width: calc((100% - 8px) / 2); }
.battle-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.battle-card { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, rgba(24, 31, 54, .92), rgba(10, 14, 26, .96)); border: 1px solid var(--line); }
.battle-card.mine { border-color: rgba(255, 77, 109, .45); box-shadow: 0 0 30px rgba(255, 77, 109, .08); }
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; }
.bc-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bc-side img { width: 26px; height: 26px; border-radius: 50%; }
.bc-vs { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.bc-bar { height: 8px; border-radius: 4px; background: #22d3ff; overflow: hidden; }
.bc-bar div { height: 100%; background: #ff4d6d; }
.bc-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.bc-meta b { color: var(--text); }
.bc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-tags span { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.tag-mine { background: rgba(255, 77, 109, .15); color: #ff8aa0; }
.tag-order { background: rgba(255, 201, 74, .15); color: var(--gold); }
.tag-muted { background: rgba(255, 255, 255, .06); color: var(--muted); }
.battle-card .btn { height: 42px; display: inline-flex; align-items: center; justify-content: center; }

.training-link { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 18px; border: 1px dashed rgba(255, 201, 74, .45); background: rgba(255, 201, 74, .05); color: var(--text); }
.training-link:hover { background: rgba(255, 201, 74, .1); }
.training-link span { font-size: 26px; }
.training-link small { display: block; color: var(--muted); font-size: 12px; }
.training-link i { margin-left: auto; color: var(--gold); }

/* Admin page: the code form and the lists */
.admin-form { display: grid; gap: 10px; margin-bottom: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 16px; }
.admin-grid .field { min-width: 0; }
.admin-grid .field label { display: block; white-space: normal; line-height: 1.3; margin-bottom: 4px; }
.admin-grid .field input { width: 100%; box-sizing: border-box; }
.admin-list { display: grid; gap: 6px; }
.btn-mini { padding: 3px 9px; font-size: 12px; margin-left: 8px; width: auto; }

/* Sign-up: agreeing to the terms, and the links in the footer */
.lg-agree { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; margin: 4px 0 2px; }
.lg-agree input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 16px; accent-color: var(--gold); }
.lg-agree a { color: var(--cyan); }
.footer-links a { color: var(--muted); }

/* Admin page: air between the panels */
.co-page .page-main > .panel-card { margin-bottom: 18px; }
