.codex-dialog{width:min(760px,94vw);max-height:88vh;overflow:auto;padding:24px;border:1px solid #697452;border-radius:16px;background:#17271e;color:#e6eadf}.codex-dialog::backdrop{background:#07110ce0}.codex-dialog .toolbar h2{margin-right:auto}.codex-dialog label{display:grid;gap:6px;margin:12px 0}.codex-dialog label:has(input[type=checkbox]){display:flex;align-items:center}.codex-dialog textarea{width:100%;resize:vertical}.codex-dialog [data-recipients]{display:flex;flex-wrap:wrap;gap:12px;border:1px solid #455b43}.codex-dialog [data-recipients][hidden]{display:none}.codex-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.codex-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.codex-image{max-width:100%;max-height:65vh;object-fit:contain;border-radius:10px}.campaign-results{display:grid;gap:8px;max-height:55vh;overflow:auto;margin-top:20px}.campaign-results button{text-align:left;display:grid;gap:6px;padding:14px}.campaign-results small{opacity:.75;overflow-wrap:anywhere}.codex-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:20px}.codex-card{padding:20px;text-align:left;background:linear-gradient(145deg,#213b2b,#18291e);border:1px solid #516348;border-radius:12px;min-height:150px;overflow-wrap:anywhere}.codex-card strong{display:block;font:700 22px Georgia,serif;margin:12px 0}.codex-card p{font-weight:400;line-height:1.55}.codex-eyebrow{color:#d6bd80;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.codex-graph-wrap{overflow:auto;max-height:70vh;border:1px solid #465e46;border-radius:14px;margin:20px 0}.codex-graph{width:100%;min-width:600px}.codex-graph line{stroke:#7f9973;stroke-width:2}.codex-graph rect{fill:#294634;stroke:#b69d65}.codex-graph text{fill:#e8e4cc;font-size:13px;paint-order:stroke;stroke:#17271e;stroke-width:4px;stroke-linejoin:round}.codex-graph [data-entry]{cursor:pointer}.codex-graph [data-entry]:focus rect{stroke:#ffe8a7;stroke-width:3}.desk-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,310px);gap:20px}.desk-layout [data-desk-main]{min-width:0}.desk-widgets{display:grid;align-content:start;gap:16px}.desk-widgets>section{border:1px solid #475b43;background:#172a20;padding:16px;border-radius:12px;overflow-wrap:anywhere}.desk-widgets select{width:100%}.desk-widgets [data-desk-log]{font-size:12px;max-height:320px;overflow:auto}.desk-widgets [data-note-preview]{max-height:300px;overflow:auto}.desk-hero{display:flex;align-items:center}.desk-hero img{width:80px;height:100px;object-fit:contain;image-rendering:pixelated}.desk-layout .map-workspace{grid-template-columns:minmax(0,1fr)}.desk-layout .board-wrap{max-height:65vh}.campaign-guide{padding:0;list-style:none;display:grid;gap:14px}.campaign-guide li{display:flex;gap:16px;border:1px solid #475b43;padding:16px;border-radius:10px}.campaign-guide li>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#4b5434;color:#f4ddb0}.campaign-guide .guide-done>span{background:#3d704c}.campaign-guide p{font-size:13px;line-height:1.5}.dice-calculation{padding:10px 14px;border:1px solid #64704a;border-radius:8px;margin-top:10px}.dice-calculation table{width:100%;border-collapse:collapse;font-size:12px}.dice-calculation td,.dice-calculation th{padding:6px;text-align:left;border-bottom:1px solid #455641}.dice-calculation summary{cursor:pointer;color:#e2c88b}.dice-calculation .calculation-total{font-weight:700}
@media(max-width:1100px){.desk-layout{grid-template-columns:minmax(0,1fr)}.desk-widgets{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}@media(max-width:600px){.codex-fields{grid-template-columns:1fr;gap:0}.codex-dialog{padding:16px}.codex-cards{grid-template-columns:1fr}.codex-graph{min-width:540px}}

.server-version-warning{border:1px solid #aa8850;padding:12px 16px;border-radius:10px;background:#42351e;color:#f0dbac;line-height:1.5}
