:root { font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #142c30; background: #edf4f1; line-height: 1.5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.54rem, 4vw, 2.15rem); line-height: 1.2; }
h2 { font-size: 1.14rem; }
p { margin-top: .55rem; }
.activation-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.activation-card { width: min(100%, 30rem); }
.admin-layout { width: min(100% - 2rem, 58rem); margin: clamp(1.5rem, 5vw, 3.5rem) auto; }
.admin-layout header { margin-bottom: 1.2rem; }
.card { background: #fff; border: 1px solid #cfdfd9; border-radius: 1rem; padding: clamp(1rem, 4vw, 1.6rem); }
.card + .card { margin-top: .9rem; }
form { display: flex; flex-direction: column; align-items: start; gap: .45rem; margin-top: 1rem; }
label { display: block; font-weight: 650; }
input, textarea { display: block; width: 100%; border: 1px solid #afc7bd; border-radius: .43rem; min-height: 2.8rem; padding: .54rem .68rem; color: inherit; background: #f8fbfa; font: inherit; }
textarea { resize: vertical; font-family: ui-monospace, monospace; font-size: .92rem; }
input[type="number"] { width: 7rem; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid #4b9d87; outline-offset: 2px; }
button { min-height: 2.65rem; padding: .5rem .88rem; border: 1px solid transparent; border-radius: .48rem; background: #086451; color: #fff; font: inherit; font-weight: 680; cursor: pointer; }
form button, .issued button, #open-button, #more { margin-top: .25rem; }
button:hover { background: #044c3c; }
button:disabled { cursor: wait; opacity: .68; }
button.secondary { border-color: #c5d9ce; background: #f4f9f6; color: #154b3f; }
button.secondary:hover { background: #e1f1e9; }
.toolbar { display: flex; justify-content: flex-end; margin-bottom: .55rem; }
.inline-form { flex-direction: row; align-items: end; gap: .65rem; flex-wrap: wrap; }
.issued { margin-top: 1.1rem; }
.issued textarea { margin-top: .25rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
th, td { padding: .48rem .5rem; border-bottom: 1px solid #e2ece7; white-space: nowrap; }
th:first-child, td:first-child { padding-inline-start: 0; }
th { color: #36534e; }
.state-used { color: #066247; font-weight: 700; }
.advertisement-form { gap: .5rem; }
.advertisement-form label:not(:first-child) { margin-top: .25rem; }
.advertisement-form textarea { font-family: inherit; }
.advertisement-preview { display: block; max-width: 100%; width: 204px; height: 204px; object-fit: contain; background: #fff; border: 1px solid #d4e5df; border-radius: .5rem; }
.status { min-height: 1.25rem; color: #225b4f; overflow-wrap: anywhere; }
.status.error { color: #902e2e; }
.muted { color: #4d6765; font-size: .87rem; }
