/* Shared presentation layer. Game rules and source documents keep their own data. */
:root {
  --bg:#101715; --sidebar:#121c19; --surface:#19231f;
  --surface2:#202d27; --surface3:#293a31;
  --line:rgba(219,231,218,.10); --line-strong:rgba(219,231,218,.20);
  --text:#f0f0e7; --muted:#b0bdb3; --faint:#92a196;
  --gold:#d2b780; --gold-light:#ebd4a6; --teal:#8ac7a8;
  --red:#e69a94; --blue:#94bfdf; --radius:14px;
  --border:var(--line); --panel:var(--surface);
  --nav-width:246px; --page-gap:24px;
}
html {scroll-padding-top:96px; scrollbar-color:#45564a var(--bg);}
body {font-size:14px; line-height:1.65; background:radial-gradient(ellipse at 80% 0,#273a2426,transparent 55%),var(--bg);}
::selection {background:#d2b78044; color:#fff;}
button,input,select,textarea,a {touch-action:manipulation;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:2px solid var(--gold-light);outline-offset:3px;}
button:disabled {opacity:.42;}
button {transition:background .15s,border-color .15s,color .15s;}
h1 {font-size:clamp(26px,2.3vw,36px);line-height:1.35;letter-spacing:-.035em;overflow-wrap:anywhere;}
h2 {font-size:23px;line-height:1.4;letter-spacing:-.02em;}
h3 {font-size:19px;line-height:1.5;}
small {font-size:12px;}
.eyebrow,.overline {font-size:10px;letter-spacing:.12em;line-height:1.6;}
.hint {font-size:13px;line-height:1.8;color:var(--muted);}
.count-text,.source-tag,.subtext {font-size:11px;line-height:1.65;}
.badge {font-size:11px;padding:4px 9px;line-height:1.4;border-radius:6px;}
.badge.neutral {color:var(--muted);background:#ffffff06;}
.tag-row {gap:7px;flex-wrap:wrap;}
.btn {font-size:12px;min-height:40px;padding:9px 14px;border-radius:8px;gap:8px;font-weight:500;line-height:1.5;white-space:normal;}
.btn.small {font-size:11px;min-height:34px;padding:7px 11px;}
.btn.primary {background:var(--gold);border-color:var(--gold);color:#182019;box-shadow:0 2px 8px #0002;}
.btn.primary:hover {background:var(--gold-light);border-color:var(--gold-light);}
.btn.ghost {background:#ffffff03;border:1px solid var(--line-strong);color:var(--text);}
.btn.ghost:hover {background:var(--surface3);border-color:#d2b78066;}
.btn.text {color:var(--gold-light);background:none;border-color:transparent;}
.icon-button {width:38px;height:38px;border-radius:8px;flex-shrink:0;}
.icon-button:hover {background:var(--surface2);}
.inline-link {font-size:12px;color:var(--gold-light);}
.page-actions {gap:9px;flex-wrap:wrap;align-items:center;}
.input,.filter-select,.field input:not([type=checkbox]):not([type=range]),.field select,.field textarea {font-size:13px;background:#111b16;border:1px solid var(--line-strong);border-radius:8px;padding:10px 12px;min-height:42px;color:var(--text);}
select {color-scheme:dark;}
select option {background:#19231f;}
input[type=checkbox],input[type=range] {accent-color:var(--gold);}
input[type=checkbox] {width:16px;height:16px;flex-shrink:0;}
input[type=file] {font-size:12px;max-width:100%;padding:8px 0;}
input[type=file]::file-selector-button {font:inherit;background:var(--surface3);color:var(--text);border:1px solid var(--line-strong);border-radius:7px;padding:8px 12px;margin-right:10px;cursor:pointer;}
.field label,.field>label,.checkbox-label {font-size:12px;line-height:1.6;color:var(--muted);}
.field {min-width:0;}
.form-grid {gap:18px;}
textarea {resize:vertical;line-height:1.75;}
.note {font-size:13px;line-height:1.8;border-radius:9px;padding:16px 18px;}
.note.error {color:#f0c4be;background:#d87c6f12;border-color:#d87c6f44;}

/* Navigation uses the same grouping for everyone, with visible active states. */
.app-shell {grid-template-columns:var(--nav-width) minmax(0,1fr);}
.sidebar {width:var(--nav-width);padding:28px 17px 18px;background:var(--sidebar);overflow-y:auto;overflow-x:hidden;}
.brand {padding:0 13px 29px;gap:12px;justify-content:flex-start;flex-shrink:0;}
.brand>span {display:block;}
.brand b {font-size:24px;letter-spacing:.16em;}
.brand small {font-size:8px;letter-spacing:.16em;color:var(--gold);margin-top:3px;}
.brand img {width:37px;height:43px;}
#navigation {gap:23px;}
.nav-group,.dm-nav-group {display:grid;gap:4px;}
.nav-group-label {font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);padding:0 13px 8px;}
.nav-item {font-size:12px;min-height:45px;gap:12px;padding:11px 13px;border-radius:9px;justify-content:flex-start;line-height:1.5;}
.nav-item>span {display:block;}
.nav-item .icon {width:19px;height:19px;opacity:.85;}
.nav-item.active {background:#d2b78013;color:var(--gold-light);box-shadow:inset 0 0 0 1px #d2b7801c;}
.nav-item.active:before {left:-17px;top:11px;bottom:11px;width:3px;}
.nav-item:hover {background:#ffffff06;}
.sidebar-bottom {padding-top:26px;}
.character-switch {padding:18px 7px 2px;gap:10px;justify-content:flex-start;}
.character-switch>span:not(.avatar) {display:block;}
.character-switch b {font-size:12px;max-width:147px;}
.character-switch small {font-size:11px;}
.avatar.small {width:35px;height:35px;}
.avatar img {object-fit:contain;}
.topbar {height:76px;padding:0 34px;position:sticky;top:0;z-index:35;background:#101715ed;backdrop-filter:blur(18px);}
.breadcrumb {font-size:12px;gap:11px;}
.breadcrumb>span {font-size:9px;color:var(--gold);}
.top-actions {gap:15px;}
.global-search {font-size:12px;padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:#ffffff03;}
.global-search kbd {font-size:10px;margin-left:18px;padding:1px 4px;color:var(--faint);}
.save-status {font-size:10px;color:var(--muted);}
#main {max-width:1510px;padding:32px 34px 48px;}
.page-heading {align-items:flex-start;gap:20px;margin-bottom:26px;}
.page-heading p {font-size:13px;margin-top:8px;max-width:720px;line-height:1.75;}
.page-heading .eyebrow {margin-bottom:9px;}
.page-heading>.page-actions {justify-content:flex-end;padding-top:5px;}
.footer {font-size:10px;padding:24px 34px;gap:16px;}
.footer button {font-size:10px;color:var(--muted);}
.footer>span:nth-child(2) {display:none;}
.mobile-menu {display:none;}

/* Dashboard: character first, then resources, useful actions, location and party. */
.hero.dashboard-command {min-height:0;padding:27px 29px;margin:0;border:1px solid #d2b7803b;border-radius:16px;background:linear-gradient(105deg,#24352b,#19251f 65%,#253021);display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:26px;overflow:visible;}
.hero.dashboard-command:after {display:none;}
.dashboard-identity {display:flex;align-items:center;gap:23px;min-width:0;}
.dashboard-avatar {width:94px;height:112px;border-radius:12px;font-size:34px;background:#101d15;border-color:#d2b78055;}
.dashboard-avatar img {object-fit:contain;}
.dashboard-identity h2 {font-size:31px;color:var(--text);margin:9px 0 5px;overflow-wrap:anywhere;}
.hero.dashboard-command p {font-size:12px;line-height:1.7;color:var(--muted);margin:0;max-width:600px;}
.dashboard-identity .page-actions {margin-top:18px;}
.dashboard-metrics {display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding-left:27px;border-left:1px solid var(--line-strong);flex-shrink:0;}
.dashboard-metrics small {font-size:9px;letter-spacing:.1em;color:var(--faint);display:block;}
.dashboard-metrics strong {display:block;font-size:25px;font-weight:500;color:var(--text);margin-top:8px;font-variant-numeric:tabular-nums;white-space:nowrap;}
.dashboard-metrics strong span {display:block;font:11px var(--sans);color:var(--muted);margin-top:3px;}
.dashboard-metrics .bad strong {color:var(--red);}
.resource-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px;}
.resource-card {padding:19px 21px;border-radius:12px;background:var(--surface);}
.resource-label {font-size:11px;color:var(--muted);}
.resource-number {font-size:30px;line-height:1.2;font-weight:500;margin-top:10px;font-variant-numeric:tabular-nums;}
.resource-number>span {font-size:12px;color:var(--muted);}
.resource-card .bar {height:5px;margin-top:14px;}
.resource-card .subtext {font-size:11px;margin-top:10px;}
.resource-card .inline-link {font-size:11px;}
.dashboard-notice {display:flex;gap:13px;align-items:center;margin:0 0 24px;border:1px solid #d2b78055;padding:15px 18px;background:#d2b7800a;border-radius:12px;}
.dashboard-notice>.icon,.dashboard-notice>span {color:var(--gold);}
.dashboard-notice>div {flex:1;}
.dashboard-notice b {font-size:12px;font-weight:500;}
.dashboard-notice p {font-size:12px;color:var(--muted);margin-top:4px;}
.dashboard-grid {display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:start;}
.dashboard-grid>.panel {height:100%;}
.dashboard-shortcuts {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.dashboard-shortcut {display:flex;gap:13px;align-items:center;text-align:left;padding:18px 15px;background:#101a1577;border:1px solid var(--line);border-radius:10px;min-width:0;min-height:91px;width:100%;}
.dashboard-shortcut:hover {background:var(--surface2);border-color:#d2b78055;}
.shortcut-icon {width:37px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:9px;color:var(--gold);background:#d2b7800c;border:1px solid #d2b78018;}
.dashboard-shortcut>span:nth-child(2) {flex:1;min-width:0;}
.dashboard-shortcut b {font-size:13px;font-weight:500;line-height:1.5;display:block;}
.dashboard-shortcut small {font-size:11px;color:var(--muted);line-height:1.6;display:block;margin-top:4px;}
.dashboard-shortcut>.icon {width:15px;color:var(--faint);}
.dashboard-last-roll {display:flex;gap:13px;align-items:center;margin-top:22px;padding-top:19px;border-top:1px solid var(--line);}
.dashboard-last-roll>span {color:var(--gold);}
.dashboard-last-roll small {font-size:9px;letter-spacing:.1em;color:var(--faint);display:block;}
.dashboard-last-roll b {display:block;font-size:12px;font-weight:500;margin:4px 0;}
.dashboard-last-roll p {font-size:11px;color:var(--muted);line-height:1.6;}
.dashboard-first-step {padding-top:20px;border-top:1px solid var(--line);margin-top:21px;}
.dashboard-map {margin:0 0 14px;}
.dashboard-map-empty {min-height:165px;display:flex;align-items:center;justify-content:center;gap:18px;background:#101a15;border:1px dashed var(--line-strong);border-radius:10px;padding:25px;margin:0 0 17px;}
.dashboard-map-empty .icon {width:38px;height:38px;color:var(--gold);}
.dashboard-map-empty p {font-size:12px;color:var(--muted);max-width:250px;}
.dashboard-journey h2 {font-size:21px;overflow-wrap:anywhere;}
.party-heading {margin:32px 0 18px;align-items:center;gap:18px;}
.party-heading h2 {font-size:25px;margin-top:6px;}
.live-dot {font-size:11px;}
.party-portraits {grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:18px;margin-bottom:0;}
.party-portrait {border-radius:13px;padding-bottom:19px;min-width:0;position:relative;}
.party-portrait>div {aspect-ratio:auto;height:240px;background:radial-gradient(ellipse at 50% 40%,#31463266,#101a15 80%);}
.party-portrait img {width:100%;height:100%;object-fit:contain;}
.party-portrait h3 {font-size:19px;margin:16px 18px 0;overflow-wrap:anywhere;}
.party-portrait p {font-size:12px;margin:5px 18px 0;}
.party-portrait small {font-size:11px;line-height:1.8;margin:9px 18px 0;}
.dashboard-library {margin-top:34px;}
.dashboard-library .section-heading {margin-bottom:18px;}
.dashboard-library .section-heading h2 {margin-top:7px;}
.dashboard-library-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.dashboard-library-grid .dashboard-shortcut {background:var(--surface);min-height:92px;}

/* Consistent panels, catalog cards, disclosure groups and tables. */
.panel {padding:24px;border-radius:var(--radius);box-shadow:0 3px 12px #0000000a;}
.panel-head {gap:16px;margin-bottom:21px;align-items:center;flex-wrap:wrap;}
.panel-head h2 {font-size:21px;}
.panel-head .eyebrow {margin-bottom:6px;}
.panel-head .overline {font-size:10px;}
.panel-head .btn.text {font-size:12px;}
.stack {gap:22px;}
.split,.two-col,.three-col {gap:24px;}
.section-heading {align-items:center;gap:18px;}
.section-heading h2 {font-size:23px;}
.section-heading p {font-size:13px;line-height:1.75;margin-top:6px;}
.tabs {gap:6px;margin:24px 0;border-bottom:1px solid var(--line-strong);padding-bottom:6px;}
.tab {font-size:12px;padding:10px 15px;border-radius:7px;border:1px solid transparent;min-height:41px;}
.tab.active {color:var(--gold-light);background:#d2b78012;border:1px solid #d2b78044;}
.tab:hover {background:#ffffff05;}
.search-row {gap:12px;margin:0 0 23px;}
.filter-select {max-width:270px;}
.search-row .count-text {margin-left:auto;}
.card-grid {grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:21px;align-items:stretch;}
.catalog-card {border-radius:12px;background:var(--surface);box-shadow:0 3px 12px #0000000b;}
.catalog-card:hover {transform:none;border-color:#d2b78055;}
.catalog-card .card-body {padding:21px;gap:0;}
.catalog-card .card-top {margin-bottom:12px;gap:9px;flex-wrap:wrap;}
.catalog-card .card-top .overline {font-size:10px;line-height:1.6;}
.catalog-card h3 {font-size:19px;}
.catalog-card p {font-size:13px;line-height:1.75;margin-top:11px;-webkit-line-clamp:3;}
.catalog-card .card-footer {padding-top:21px;gap:9px;flex-wrap:wrap;}
.catalog-card .card-footer .btn {font-size:11px;padding:7px 10px;}
.catalog-card .stat-tags {font-size:11px;gap:11px;line-height:1.6;color:var(--muted);}
.catalog-card .stat-tags b {color:var(--text);}
.family-tier {padding:13px 18px;font-size:12px;border-radius:0 0 12px 12px;gap:14px;}
.family-tier select {font-size:12px;min-height:36px;padding:7px 10px;max-width:120px;}
.world-category,.ability-category {background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:19px 22px;margin:0 0 18px;}
.world-category>summary,.ability-category>summary {font:20px/1.6 var(--serif);padding:0;color:var(--text);cursor:pointer;}
.world-category>summary small,.ability-category>summary small {font:11px/1.6 var(--sans);color:var(--muted);}
.world-category .card-grid,.ability-category .card-grid {margin-top:22px;}
.world-category .catalog-card,.ability-category .catalog-card {background:#111b1680;}
.table-wrap {overflow-x:auto;border:1px solid var(--line);border-radius:10px;}
table {font-size:13px;border-collapse:collapse;}
th {font-size:11px;letter-spacing:.025em;color:var(--muted);background:#111b16;}
td,th {padding:13px 14px;vertical-align:top;line-height:1.7;}
tbody tr:hover {background:#ffffff04;}
.inventory-table td small {font-size:11px;}
.inventory-table .btn {min-height:32px;}
.pagination {font-size:12px;gap:18px;margin:26px 0 8px;}
.pagination .btn {min-width:90px;}
.char-header {background:linear-gradient(110deg,#24352b,#19231f);padding:26px;border-radius:14px;}
.char-header h1 {font-size:30px;}
.char-header p {font-size:12px;}
.char-header .char-right small {font-size:10px;}
.attribute-grid {gap:10px;}
.attribute {padding:18px 10px;border-radius:10px;}
.attribute .attr-label {font-size:10px;color:var(--muted);}
.attribute small {font-size:10px;line-height:1.6;}
.attr-buttons {gap:5px;}
.attr-buttons button {width:29px;height:31px;border-radius:6px;}
.talent-panel {overflow:hidden;}
.talent-panel .panel-head h2 {font-size:19px;}
.talent-row {font-size:12px;padding:13px 16px;}
.stat-line {padding:15px 0;font-size:13px;line-height:1.6;}
.stat-line small {font-size:11px;line-height:1.65;}
.mini-stats small {font-size:10px;}
.equipment-slot {border-radius:10px;padding:14px 12px;background:#121d17;min-height:88px;}
.equipment-slot small {font-size:10px;line-height:1.6;}
.equipment-slot button {font-size:12px;overflow-wrap:anywhere;}
.request-card {gap:18px;padding:20px 0;font-size:13px;}
.request-card small {line-height:1.75;}
.craft-materials li {font-size:13px;padding:10px 0;}
.game-item-list article {padding:18px 0;font-size:13px;}
.game-item-list article>span {font-size:12px;line-height:1.75;}
.npc-locations dt {font-size:10px;color:var(--faint);}
.npc-locations dd {font-size:13px;line-height:1.7;margin-top:5px;}
.npc-attitude-filter {font-size:12px;padding:9px 13px;border-radius:8px;min-height:38px;}
.npc-search-field label,.npc-image-field>label {font-size:12px;}
.npc-text,.country-profile dd,.country-source-text {font-size:14px;line-height:1.9;}
.npc-edit-stamp,.media-stamp {font-size:11px;line-height:1.8;}
.country-profile dt {font-size:11px;}
.country-profile>div {padding:17px;border-radius:9px;}
.npc-toolbar {gap:14px;}

/* Pictures retain their complete composition; 100% originals open independently. */
.catalog-card .card-art,.catalog-card .npc-portrait {display:block;width:100%;height:235px;object-fit:contain;object-position:center;background:#101914;padding:10px;}
.npc-card-image {padding:0;}
.detail-art {display:block;width:auto;max-width:100%;height:auto!important;max-height:none;object-fit:contain;background:#101914;border:1px solid var(--line);border-radius:10px;margin:0 auto 10px;}
.npc-detail-head>.npc-portrait,.npc-image-field .npc-portrait {width:100%;height:auto;max-height:none;object-fit:contain;border-radius:10px;background:#101914;}
.npc-placeholder {min-height:230px;}
.npc-detail-head {align-items:start;}
.icon-form-preview {width:auto;height:auto;max-width:100%;max-height:300px;object-fit:contain;border-radius:9px;display:block;}
.token-detail-image {height:auto;max-height:none;object-fit:contain;border-radius:9px;}
.map-form-preview,.media-preview {height:auto;max-height:none;object-fit:contain;background:#101914;}
.creature-admin-grid img {height:240px;object-fit:contain;background:#101914;padding:10px;}
.campaign-map>img,.nation-map>img {width:100%;height:auto;max-height:none;display:block;}
.campaign-map {border-radius:10px;border-color:var(--line-strong);}
.country-source-art {height:auto;max-height:none;object-fit:contain;}
.has-original-image {position:relative;}
.original-image-control {display:inline-flex;align-items:center;gap:7px;font-size:11px;line-height:1.4;color:var(--gold-light);padding:8px 11px;min-height:34px;border:1px solid var(--line-strong);border-radius:7px;background:#142019f5;margin:0 0 15px;cursor:zoom-in;}
.original-image-control svg {width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.original-image-control:hover {border-color:var(--gold);background:#26372b;}
.has-original-image>.original-image-control {position:absolute;right:10px;top:10px;z-index:3;margin:0;box-shadow:0 3px 12px #0005;}
.has-original-image>.original-image-control span {display:none;}
.has-original-image>.original-image-control:hover span,.has-original-image>.original-image-control:focus-visible span {display:inline;}
.campaign-map>.original-image-control,.nation-map>.original-image-control {position:absolute;right:10px;top:10px;margin:0;}
.original-viewer {position:fixed;inset:0;z-index:22000;background:#08100df5;backdrop-filter:blur(12px);padding:18px;display:flex;align-items:stretch;}
.original-dialog {width:100%;height:100%;display:flex;flex-direction:column;min-width:0;background:#111b16;border:1px solid var(--line-strong);border-radius:14px;overflow:hidden;box-shadow:0 24px 100px #0008;}
.original-header {display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 23px;border-bottom:1px solid var(--line-strong);background:var(--surface);flex-shrink:0;}
.original-header h2 {font-size:21px;margin:3px 0;overflow-wrap:anywhere;}
.original-header p {font-size:11px;color:var(--muted);}
.original-header .eyebrow {font-size:9px;}
.original-close {font-size:25px;border:1px solid var(--line-strong);}
.original-viewport {overflow:auto;flex:1;min-height:0;min-width:0;background:repeating-conic-gradient(#151f19 0% 25%,#18231c 0% 50%) 50% / 24px 24px;}
.original-canvas {width:max-content;min-width:100%;min-height:100%;display:grid;place-items:center;padding:24px;}
.original-image {display:block;max-width:none!important;max-height:none!important;object-fit:contain;flex-shrink:0;}
.original-viewer[data-fit=true] .original-canvas {width:100%;height:100%;min-height:0;min-width:0;padding:18px;}
.original-viewer[data-fit=true] .original-image {width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;}

/* Modal hierarchy and readable long source texts. */
.overlay {padding:26px;background:#080f0bd9;backdrop-filter:blur(8px);z-index:1000;}
.modal {background:var(--surface);border:1px solid #d2b78040;border-radius:16px;max-width:700px;max-height:92dvh;box-shadow:0 25px 110px #0008;}
.modal.wide {max-width:1060px;}
.modal-head {padding:21px 25px;gap:18px;border-bottom:1px solid var(--line);background:#202d27;}
.modal-head h2 {font-size:23px;line-height:1.5;}
.modal-body {padding:25px;line-height:1.8;}
.modal-footer {padding:18px 25px;gap:10px;border-top:1px solid var(--line);background:#152019;}
.detail-body {font-size:14px;line-height:1.9;}
.detail-body h3 {font-size:20px;margin:22px 0 12px;}
.detail-stats {gap:14px;margin:22px 0;}
.detail-stats small {font-size:11px;}
.detail-stats b {font-size:18px;overflow-wrap:anywhere;}
.formatted-source {font-size:14px;line-height:1.9;}
.formatted-source p {margin-bottom:18px;}
.formatted-source table {font-size:13px;}
.weapon-ability {padding:19px;border-radius:10px;}
.weapon-ability h3 {font-size:19px;}
.weapon-ability p {font-size:13px;line-height:1.8;}
.weapon-ability small {font-size:11px;}
.auth-scene {background:linear-gradient(90deg,#0b160eee,#101b15c7),url('assets/arebor-hero.webp') center/cover;}
.auth-card {background:#18251ef5;border:1px solid #d2b78044;border-radius:18px;box-shadow:0 30px 100px #0006;max-width:520px;}
.auth-card h1 {font-size:31px;line-height:1.5;}
.auth-card p {font-size:14px;line-height:1.9;}
.auth-form label,.auth-footer,.auth-account {font-size:12px;}

/* Spielleitung has the same clear navigation and typography. */
.dm-shell {max-width:1680px;padding:30px 36px 48px;}
.dm-shell:has(.dm-primary-tabs) {margin-left:var(--nav-width);}
.dm-primary-tabs {position:fixed;inset:0 auto 0 0;width:var(--nav-width);padding:28px 17px 20px;background:var(--sidebar);border-right:1px solid var(--line);margin:0;display:flex;flex-direction:column;flex-wrap:nowrap;gap:23px;overflow-y:auto;z-index:100;}
.dm-primary-tabs .brand {padding-bottom:6px;}
.dm-primary-tabs .active {background:#d2b78013;border:0;color:var(--gold-light);}
.dm-portal-link {font-size:12px;color:var(--gold-light);padding:17px 12px 0;border-top:1px solid var(--line);margin-top:auto;}
.dm-header {padding-bottom:25px;margin-bottom:27px;gap:19px;align-items:flex-start;}
.dm-header>img {display:none;}
.dm-header h1 {font-size:30px;}
.dm-header p {font-size:13px;line-height:1.8;max-width:620px;}
.dm-header .page-actions {gap:9px;}
.dm-mobile-menu {display:none;}
.dm-stats {gap:16px;margin:24px 0;}
.dm-stats .panel {padding:19px 22px;border-radius:12px;}
.dm-stats small {font-size:10px;}
.dm-stats strong {font-size:32px;margin-top:7px;}
.dm-grid {gap:23px;}
.dm-player {padding:24px;border-radius:13px;background:var(--surface);border-color:var(--line);}
.dm-player-head h2 {font-size:22px;}
.dm-player-head small {font-size:11px;margin-top:6px;}
.dm-character {padding:19px 0;}
.dm-character h3 {font-size:18px;}
.dm-character>div:first-child {gap:14px;}
.dm-player .btn {font-size:11px;}
.dm-resources {gap:16px;margin:14px 0;font-variant-numeric:tabular-nums;}
.dm-resources span {font-size:12px;}
.dm-toolbar {gap:13px;margin:22px 0;flex-wrap:wrap;}
.dm-toolbar .input {max-width:480px;flex:1;min-width:220px;}
.dm-toolbar select {font-size:13px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:8px;min-height:42px;}
.dm-settings-title {font-size:20px;line-height:1.6;}
.discord-settings {margin-bottom:24px;}
.discord-settings:has(details:not([open])) {background:#16201a;}
.dm-detail-summary {gap:10px;}
.dm-detail-summary small {font-size:10px;}
.dm-detail-summary b {font-size:27px;}
.dm-tabs {gap:6px;padding-bottom:6px;}
.dm-tabs button {font-size:12px;min-height:40px;padding:10px 13px;}
.dm-list-field {font-size:14px;padding:15px 0;}
.dm-list-field p {font-size:13px;line-height:1.9;}

/* Combat keeps its grid mechanics while sharing the new visual language. */
.combat-toolbar .field {min-width:220px;}
.battle-layout {grid-template-columns:minmax(0,1fr) 285px;gap:20px;}
.battle-panel {padding:19px;}
.battle-panel .panel-head h2 {font-size:23px;}
.battle-aside {gap:18px;}
.initiative-panel {padding:20px;}
.initiative-panel li button {gap:12px;padding:14px 0;}
.initiative-panel li button>span:nth-child(2) {font-size:12px;}
.initiative-panel li small {font-size:10px;line-height:1.7;}
.initiative-panel .current-turn {border-radius:7px;padding:0 9px;margin:0 -9px;background:#d2b78012;}
.token-details {padding:20px;}
.token-details .btn {font-size:12px;}
.token-details .detail-stats b {font-size:17px;}
.turn-action {padding:18px;border-radius:11px;background:#10201655;}
.turn-action h3 {font-size:19px;}
.turn-action p {font-size:12px;}
.turn-panel>.hint {font-size:12px;margin-bottom:18px;}
.battle-event {gap:18px;padding:16px 0;}
.battle-event b {font-size:13px;font-weight:500;}
.battle-event small {font-size:12px;line-height:1.8;}
.battle-event>span {font-size:10px;min-width:60px;}
.combat-fullscreen {background:var(--bg);padding:20px;}
.combat-fullscreen .battle-layout {grid-template-columns:minmax(0,1fr) 310px;}
.combat-fullscreen .battle-aside {top:12px;}
.fullscreen-toggle {background:var(--surface2)!important;border-color:var(--line-strong);}
.reaction-dialog {background:linear-gradient(145deg,#293c2d,#16211a);border-radius:16px;}
.reaction-dialog h2 {font-family:var(--serif);font-size:30px;}
.reaction-dialog p {font-size:14px;}
.reaction-value small {font-size:12px;}
.music-dock {left:auto;right:20px;bottom:18px;border-radius:11px;background:#19271ff7;border-color:#d2b78044;max-width:min(350px,calc(100vw - 28px));}
.music-toggle {font-size:12px;min-height:44px;padding:12px 16px;}
#music-controls {max-height:70dvh;overflow:auto;}
#toast.dm-toast,#toast.visible {z-index:25000;max-width:min(600px,calc(100vw - 32px));font-size:13px;line-height:1.7;padding:13px 19px;background:#273c2c;border:1px solid #8ac7a855;color:var(--text);border-radius:10px;}

@media (min-width:1850px) {
  .dashboard-command {padding:32px;}
  .party-portrait>div {height:280px;}
}
@media (max-width:1320px) {
  :root {--nav-width:222px;}
  #main {padding:27px 27px 44px;}
  .topbar {padding:0 27px;}
  .dashboard-metrics {gap:17px;padding-left:20px;}
  .dashboard-identity {gap:17px;}
  .dashboard-avatar {width:75px;height:100px;}
  .dashboard-identity h2 {font-size:26px;}
  .dashboard-grid {grid-template-columns:1fr 1fr;gap:20px;}
  .dashboard-shortcuts {grid-template-columns:1fr;gap:9px;}
  .dashboard-shortcut {min-height:72px;padding:13px 14px;}
  .global-search>span:not(#search-icon) {display:none;}
  .global-search kbd {margin-left:7px;}
  .dm-shell {padding:28px;}
  .battle-layout {grid-template-columns:minmax(0,1fr) 265px;}
  .dm-header {flex-wrap:wrap;}
  .dm-header .page-actions {margin-left:0;}
}
@media (max-width:1100px) {
  .hero.dashboard-command {align-items:stretch;flex-direction:column;gap:23px;}
  .dashboard-metrics {border-left:0;padding:18px 0 0;border-top:1px solid var(--line-strong);gap:22px;grid-template-columns:repeat(3,1fr);}
  .dashboard-metrics strong span {display:inline;}
  .resource-card {padding:17px;}
  .resource-number {font-size:27px;}
  .resource-label {font-size:10px;}
  .dashboard-library-grid {grid-template-columns:1fr;gap:11px;}
  .dashboard-library-grid .dashboard-shortcut {min-height:74px;}
  .battle-layout {grid-template-columns:1fr;}
  .battle-aside {display:grid;grid-template-columns:1fr 1fr;align-items:start;}
  .battle-aside>section {min-width:0;}
  .dm-grid {grid-template-columns:1fr;}
  .combat-toolbar {align-items:flex-start;flex-direction:column;}
  .dm-detail-summary {grid-template-columns:repeat(4,1fr);}
}
@media (max-width:900px) {
  .app-shell {display:block;}
  .workspace {width:100%;}
  .sidebar {width:246px;transform:translateX(-100%);transition:transform .2s;box-shadow:15px 0 70px #0008;z-index:120;}
  .sidebar.open {transform:translateX(0);}
  .sidebar .brand>span,.sidebar .nav-item>span,.sidebar .nav-group-label {display:block;}
  .sidebar .brand {justify-content:flex-start;padding:0 13px 29px;}
  .sidebar .nav-item,.sidebar.open .nav-item {justify-content:flex-start;padding:11px 13px;}
  .sidebar .character-switch>span:not(.avatar) {display:block;}
  .mobile-menu {display:grid;}
  .topbar {height:68px;padding:0 23px;}
  .top-actions {gap:10px;}
  .breadcrumb {flex:1;font-size:12px;}
  #main {padding:27px 23px 40px;}
  .hero.dashboard-command {flex-direction:row;align-items:center;padding:25px;}
  .dashboard-metrics {border:0;border-left:1px solid var(--line-strong);padding:0 0 0 21px;grid-template-columns:1fr;gap:13px;}
  .dashboard-metrics strong {font-size:21px;margin-top:3px;}
  .dashboard-metrics small {font-size:8px;}
  .dashboard-metrics strong span {font-size:10px;}
  .dashboard-shortcuts {grid-template-columns:1fr 1fr;}
  .dashboard-grid {grid-template-columns:1fr;}
  .dashboard-journey .dashboard-map {max-width:700px;}
  .party-portraits {grid-template-columns:repeat(auto-fit,minmax(165px,1fr));}
  .party-portrait>div {height:230px;}
  .split {grid-template-columns:1fr;}
  .dm-shell:has(.dm-primary-tabs) {margin-left:0;}
  .dm-primary-tabs {width:246px;transform:translateX(-100%);box-shadow:15px 0 70px #0008;transition:transform .2s;}
  .dm-nav-open .dm-primary-tabs {transform:translateX(0);}
  .dm-mobile-menu {display:grid;border:1px solid var(--line-strong);}
  .dm-header {align-items:center;}
  .dm-header h1 {font-size:27px;}
  .dm-header>div:not(.page-actions) {flex:1;}
  .dm-header .page-actions {width:100%;}
  .combat-fullscreen .battle-layout {grid-template-columns:1fr;}
  .combat-fullscreen .battle-aside {position:static;max-height:none;display:grid;grid-template-columns:1fr 1fr;}
}
@media (max-width:600px) {
  h1 {font-size:26px;}
  h2 {font-size:21px;}
  #main {padding:23px 16px 35px;}
  .topbar {padding:0 14px;gap:9px;height:64px;}
  .breadcrumb {font-size:11px;gap:8px;min-width:0;}
  .breadcrumb>span,.breadcrumb>i {display:none;}
  .top-actions {gap:5px;}
  .save-status {display:none;}
  .global-search {width:36px;height:36px;border:0;padding:8px;}
  .global-search kbd {display:none;}
  .top-dice,.account-button {width:35px;height:35px;}
  .page-heading {flex-wrap:wrap;gap:13px;margin-bottom:20px;}
  .page-heading>.page-actions {justify-content:flex-start;padding:0;}
  .page-heading p {font-size:12px;}
  .page-heading .btn {font-size:11px;min-height:36px;padding:7px 11px;}
  .hero.dashboard-command {padding:20px;flex-direction:column;align-items:stretch;gap:21px;}
  .dashboard-identity {gap:16px;align-items:flex-start;}
  .dashboard-avatar {width:62px;height:90px;margin-top:4px;}
  .dashboard-identity h2 {font-size:23px;margin-top:8px;}
  .dashboard-identity .page-actions {margin-top:15px;gap:8px;}
  .dashboard-identity .btn {font-size:11px;min-height:36px;padding:7px 10px;}
  .hero.dashboard-command p {font-size:11px;}
  .dashboard-metrics {border:0;border-top:1px solid var(--line-strong);padding:17px 0 0;grid-template-columns:repeat(3,1fr);gap:10px;}
  .dashboard-metrics strong {font-size:23px;}
  .dashboard-metrics strong span {display:block;font-size:10px;}
  .resource-grid {grid-template-columns:1fr 1fr;gap:11px;margin:13px 0 20px;}
  .resource-card {padding:16px;}
  .resource-number {font-size:28px;}
  .resource-number>span {font-size:11px;}
  .resource-label {font-size:11px;}
  .resource-card .subtext {font-size:10px;}
  .resource-card .inline-link {font-size:10px;}
  .resource-card .icon {width:16px;height:16px;}
  .dashboard-notice {gap:10px;padding:14px;flex-wrap:wrap;}
  .dashboard-notice>div {min-width:170px;}
  .dashboard-notice>.btn {margin-left:30px;}
  .dashboard-grid {gap:18px;}
  .dashboard-shortcuts {grid-template-columns:1fr;gap:9px;}
  .dashboard-shortcut {min-height:75px;padding:13px;gap:12px;}
  .dashboard-shortcut b {font-size:13px;}
  .dashboard-shortcut small {font-size:12px;}
  .panel {padding:20px;border-radius:12px;}
  .panel-head {gap:12px;margin-bottom:18px;}
  .panel-head h2 {font-size:20px;}
  .section-heading {align-items:flex-start;flex-wrap:wrap;}
  .section-heading h2 {font-size:22px;}
  .party-heading {align-items:flex-start;margin-top:27px;gap:14px;}
  .party-heading h2 {font-size:23px;}
  .party-portraits {grid-template-columns:1fr 1fr;gap:12px;}
  .party-portrait>div {height:200px;}
  .party-portrait h3 {font-size:16px;margin:14px 12px 0;}
  .party-portrait p {font-size:11px;margin:5px 12px 0;}
  .party-portrait small {font-size:10px;margin:8px 12px 0;}
  .live-dot {font-size:10px;}
  .card-grid {grid-template-columns:1fr;gap:18px;}
  .catalog-card .card-body {padding:20px;}
  .catalog-card .card-art,.catalog-card .npc-portrait {height:260px;}
  .catalog-card h3 {font-size:20px;}
  .catalog-card p {font-size:13px;}
  .tabs {margin:20px 0;}
  .tab {font-size:12px;padding:9px 12px;}
  .form-grid {gap:16px;}
  .two-col,.three-col {grid-template-columns:1fr;gap:18px;}
  .attribute-grid {grid-template-columns:repeat(3,1fr);gap:9px;}
  .attribute {padding:15px 8px;}
  .attribute .attr-label {font-size:10px;}
  .char-header {padding:20px;gap:15px;}
  .char-header h1 {font-size:26px;}
  .char-header .avatar.large {width:70px;height:85px;border-radius:10px;}
  .search-row {gap:10px;}
  .filter-select {max-width:100%;font-size:12px;flex:1;min-width:130px;}
  .search-row .count-text {margin-left:0;}
  .world-category,.ability-category {padding:17px;}
  .world-category>summary,.ability-category>summary {font-size:18px;}
  .npc-detail-head,.npc-editor-layout {grid-template-columns:1fr;}
  .npc-image-field {max-width:100%;}
  .npc-detail-head>.npc-portrait,.npc-image-field .npc-portrait {height:auto;}
  .npc-attitude-filter {font-size:11px;}
  .npc-toolbar>.field {min-width:130px;}
  .npc-search-field {flex-basis:100%;}
  .overlay {padding:10px;}
  .modal {max-height:95dvh;border-radius:13px;}
  .modal-head {padding:17px 18px;}
  .modal-head h2 {font-size:20px;}
  .modal-body {padding:19px;}
  .modal-footer {padding:15px 18px;flex-wrap:wrap;}
  .detail-stats {grid-template-columns:1fr 1fr;gap:12px;}
  .original-viewer {padding:0;}
  .original-dialog {border-radius:0;border:0;}
  .original-header {padding:15px;gap:12px;flex-wrap:wrap;}
  .original-header h2 {font-size:19px;}
  .original-header>div:first-child {max-width:100%;}
  .original-header .page-actions {gap:7px;width:100%;}
  .original-header .btn {font-size:10px;min-height:35px;padding:7px 10px;}
  .original-header .original-close {margin-left:auto;width:35px;height:35px;}
  .original-canvas {padding:12px;}
  .dm-shell {padding:22px 16px 40px;}
  .dm-header {gap:12px;}
  .dm-header h1 {font-size:25px;}
  .dm-header p {font-size:12px;}
  .dm-header .eyebrow {font-size:9px;}
  .dm-header .page-actions .btn {font-size:11px;}
  .dm-stats {grid-template-columns:1fr 1fr;gap:12px;}
  .dm-stats .panel {padding:17px;}
  .dm-stats small {font-size:9px;}
  .dm-stats strong {font-size:30px;}
  .dm-player {padding:20px;}
  .dm-player-head h2 {font-size:21px;}
  .dm-character>div:first-child {flex-wrap:wrap;align-items:flex-start;}
  .dm-resources {gap:12px;}
  .dm-detail-summary {grid-template-columns:repeat(3,1fr);}
  .dm-settings-title {font-size:18px;}
  .discord-setup-grid {grid-template-columns:1fr;gap:24px;}
  .battle-aside,.combat-fullscreen .battle-aside {grid-template-columns:1fr;}
  .battle-panel {padding:13px;}
  .battle-panel .panel-head h2 {font-size:21px;}
  .turn-actions {grid-template-columns:1fr;gap:12px;}
  .battle-event {gap:12px;}
  .battle-event>span {min-width:48px;font-size:9px;}
  .combat-fullscreen {padding:12px;}
  .reaction-dialog {padding:23px;}
  .reaction-dialog h2 {font-size:26px;}
  .music-dock {left:auto;right:12px;bottom:12px;}
  .music-toggle {font-size:11px;min-height:41px;}
  .footer {font-size:9px;padding:22px 16px;}
  .footer button {font-size:10px;}
  #toast.visible,#toast.dm-toast {left:50%;font-size:12px;bottom:16px;}
}
@media (prefers-reduced-motion:reduce) {*,*:before,*:after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
@media print {
  :root {--text:#111;--muted:#444;--faint:#555;--bg:#fff;--surface:#fff;--line:#ccc;}
  body {background:#fff;color:#111;}
  .original-image-control,.original-viewer,.music-dock,.dm-primary-tabs,.dm-mobile-menu,.dashboard-actions {display:none!important;}
  .dm-shell:has(.dm-primary-tabs) {margin:0;}
  .panel,.catalog-card,.char-header {box-shadow:none;background:#fff;}
  .resource-card .resource-number,.resource-card .resource-label {color:#111;}
  .detail-art {max-width:100%;height:auto!important;}
}

.map-stage>.original-image-control {position:absolute;right:12px;top:12px;z-index:5;margin:0;}
.npc-detail-head>.original-image-control {top:10px;left:10px;right:auto;}
.battle-panel .original-image-control {margin:0;cursor:zoom-in;}
.nav-dismiss {display:none;position:absolute;top:9px;right:8px;color:var(--muted);font-size:22px;}
@media(max-width:900px){.nav-dismiss{display:grid;}.dm-nav-open:before{content:"";position:fixed;inset:0;background:#0006;z-index:90;pointer-events:none;}}

.card-footer .media-inline-action{margin:0;}

.school-tabs{gap:8px;margin-bottom:23px;}
.school-tabs button{font-size:12px;min-height:36px;padding:7px 12px;border-radius:7px;}
.school-tabs button.active{color:var(--gold-light);background:#d2b78012;border-color:#d2b78055;}
.activity{font-size:13px;padding:19px;gap:14px;border-radius:10px;}
.activity b{font-size:13px;font-weight:500;}
.activity small{font-size:11px;line-height:1.8;}
.archive-text{font-size:14px;line-height:1.95;color:var(--muted);}
.archive-index{top:98px;}
.archive-link{font-size:12px;line-height:1.7;padding:11px 13px;}
.trait-card h3{font-size:19px;}
.trait-card p{font-size:13px;line-height:1.8;}
.rule-review summary{font-size:13px;line-height:1.8;}
.rule-review p{font-size:12px;line-height:1.9;}
.concentration-note{font-size:13px;line-height:1.8;padding:16px;border-radius:9px;}
.rune-craft-panel{margin-bottom:20px;}
.rune-source-frame{border-radius:14px;background:var(--bg);border-color:var(--line-strong);}
@media(max-width:900px){.archive-index{position:static;}.school-tabs button{font-size:11px;}}
@media(max-width:600px){.activity{padding:15px;}.activity b{font-size:12px;}.activity small{font-size:11px;}.school-tabs{gap:7px;}.school-tabs button{min-height:34px;padding:7px 10px;}.archive-text{font-size:13px;}}
/* Fassung 1.1 — progression, the shared question archive and map objects. */
.top-social-status{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid #c5a46955;border-radius:8px;padding:7px 10px;color:#d8c29a;font-size:11px;font-weight:600;letter-spacing:.02em}
.weekly-summary{display:flex;align-items:center;gap:24px;justify-content:space-between;border-left:3px solid #c8aa72;margin:20px 0}.weekly-summary h2{font-size:21px;line-height:1.45;max-width:820px;margin:8px 0}.weekly-summary .btn{flex-shrink:0}.question-order{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.weekly-questions #revision-question-search{width:100%;margin:18px 0}.question-history{display:grid;gap:12px}.question-history article{padding:20px 22px;border:1px solid #d4be8b25;border-radius:12px;background:#ffffff03}.question-history article>div:first-child{display:flex;justify-content:space-between;color:var(--muted,#a19b90);font-size:11px;gap:12px}.question-history h3{font-size:18px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0}.question-history .page-actions{justify-content:flex-end}.weekly-questions #revision-question-turn{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.weekly-questions select{width:auto;margin-left:10px}.revision-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.revision-stats>div{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #ffffff12;border-radius:10px;background:#ffffff03}.revision-stats small{font-size:9px;letter-spacing:.1em;color:#ada496}.revision-stats b{font:26px Georgia,serif;color:#d8c29a}.revision-stats span{font-size:11px;color:#a49d92}.advancement-panel{margin:20px 0}.character-points{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.character-point{flex:1;min-width:140px;padding:15px;display:flex;flex-direction:column;gap:10px;border:1px solid #b99a6533;border-radius:10px}.character-point.locked{opacity:.5}.character-point>span{font-size:11px}.prepared-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.prepared-columns fieldset{border:1px solid #ffffff18;padding:15px;border-radius:10px;min-width:0}.prepared-columns legend{padding:0 8px;color:#d3b982}.prepared-columns label{font-size:12px;padding:8px 0;line-height:1.6}.prepared-loadout{margin:20px 0}.prepared-loadout>summary{font-size:18px;color:#d8c29a;cursor:pointer}.durability-panel{margin:20px 0}.durability-list{display:grid;gap:10px;margin-top:20px}.durability-list article{display:flex;align-items:center;gap:18px;padding:14px 16px;border:1px solid #ffffff13;border-radius:10px}.durability-list article>div{min-width:180px;flex:1;display:flex;flex-direction:column;gap:6px}.durability-list small{color:#a69d91;font-size:11px}.durability-list meter{width:110px;height:12px;accent-color:#a6bc92}.durability-list .broken{border-color:#c46b6555;color:#df928b}.rulebook-chapter{border-top:1px solid #ffffff12;padding:18px 0}.rulebook-chapter>summary{display:flex;align-items:center;gap:14px;cursor:pointer;font-size:17px;list-style:none}.rulebook-chapter>summary:after{content:'+';color:#c6aa78;margin-left:14px}.rulebook-chapter[open]>summary:after{content:'−'}.rulebook-chapter>summary>span{display:grid;place-items:center;width:32px;height:32px;border:1px solid #c4a66d44;border-radius:7px;color:#c9ad7a;font-size:12px}.rulebook-chapter>summary small{margin-left:auto;font-size:10px;color:#b0a698}.rulebook .formatted-source{overflow-x:auto;padding:20px 0;line-height:1.85;font-size:13px}.tandro-circles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.tandro-circles details{background:#ffffff03;border:1px solid #ffffff15;border-radius:10px;padding:14px}.tandro-circles p{font-size:12px;line-height:1.8;color:#b5ac9e}.tandro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tandro-card{background:linear-gradient(145deg,#c0a2730c,#ffffff02);border:1px solid #c3a67333;border-radius:12px;padding:22px;min-width:0}.tandro-card>small{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#ae9b7d}.tandro-card h3{font:22px Georgia,serif;color:#d9c399;margin:12px 0 20px}.tandro-aspects{font-size:12px;line-height:1.9;margin-top:12px}.tandro-aspects b{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.12em}.tandro-aspects.positive b{color:#90b9a3}.tandro-aspects.negative b{color:#c3959d}.tandro-rules{margin-top:26px;padding:20px 0}.battle-objects{position:absolute;inset:0;pointer-events:none;z-index:2}.battle-object{position:absolute;border:2px dashed #b3a58a;background:#b3a58a30;overflow:hidden;box-sizing:border-box}.battle-object>img{width:100%;height:100%;object-fit:contain;opacity:.7}.battle-object>span{position:absolute;bottom:0;left:0;right:0;color:#fff;background:#111b;font-size:9px;line-height:1.4;padding:3px 4px;text-align:center;overflow-wrap:anywhere}.battle-object.object-poison{border-color:#b5cf6f;background:#a0ba5040}.battle-object.object-burn,.battle-object.object-scorched{border-color:#eea46a;background:#d46d4640}.battle-object.object-frozen,.battle-object.object-iced{border-color:#83c5eb;background:#6ea4cc40}.battle-object.blocking{background:repeating-linear-gradient(45deg,#292831a0,#292831a0 6px,#9992a33d 6px,#9992a33d 10px);border-style:solid}.battle-token{z-index:4}.elevation-badge{display:inline-block;border:1px solid #88bbd6aa;border-radius:5px;background:#172e40;color:#beddf0;padding:2px 5px;font-size:9px;white-space:nowrap}.battle-token>.elevation-badge{position:absolute;top:-14px;left:50%;transform:translateX(-50%);font-size:10px;z-index:6}.initiative-panel .elevation-badge{margin-left:7px}.map-objects-panel article{padding:12px 0;border-top:1px solid #ffffff15;overflow-wrap:anywhere}.map-objects-panel img{width:100%;max-height:150px;object-fit:contain;background:#0003;margin-bottom:12px}.map-objects-panel p{font-size:11px;line-height:1.7;margin:8px 0}.map-objects-panel small{display:block;font-size:11px;line-height:1.7;color:#aaa297}.component:disabled{opacity:.7;cursor:default}.status-deaf,.status-scorched,.status-rested,.status-inspired{background:#324854;border-color:#b6b4a5}
@media(max-width:1100px){.revision-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tandro-grid,.tandro-circles{grid-template-columns:repeat(2,minmax(0,1fr))}.top-social-status{font-size:10px;padding:6px 8px}}
@media(max-width:650px){.weekly-summary{align-items:flex-start;flex-direction:column;gap:12px}.revision-stats{gap:8px}.revision-stats>div{padding:12px}.revision-stats b{font-size:22px}.prepared-columns,.tandro-grid,.tandro-circles{grid-template-columns:1fr}.durability-list article{flex-wrap:wrap;gap:10px}.durability-list article>div{min-width:150px}.durability-list meter{width:80px}.top-social-status{max-width:130px;white-space:normal;line-height:1.3}.question-history article{padding:16px}.rulebook-chapter>summary{font-size:14px;gap:8px}.rulebook-chapter>summary small{white-space:nowrap}}

/* Campaign update: casting-art budgets and readable tactical cover. */
.way-budgets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.way-budgets>div{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line,#39433e);border-radius:10px;padding:14px;background:rgba(123,168,151,.06)}
.way-budgets span{font-size:12px;color:var(--muted)}
.battle-object.cover-half{background:repeating-linear-gradient(135deg,rgba(206,164,83,.35),rgba(206,164,83,.35) 5px,rgba(206,164,83,.08) 5px,rgba(206,164,83,.08) 11px);border:2px dashed #dfbe75}
.battle-object.cover-full{background:repeating-linear-gradient(90deg,rgba(130,148,165,.58),rgba(130,148,165,.58) 8px,rgba(58,71,82,.7) 8px,rgba(58,71,82,.7) 10px);border:2px solid #c4d2dc}
.battle-object.cover-half span,.battle-object.cover-full span{background:#17201ff0;color:#fff;padding:3px 6px;border-radius:5px;font-weight:600;text-shadow:0 1px 2px #000}
#battle-cover-form .form-grid{align-items:start}
@media(max-width:720px){.way-budgets{grid-template-columns:1fr}}

/* Reise, Gepäck und Ausrüstung: klare Hauptwerte, Details bei Bedarf. */
.inventory-main{margin-bottom:22px}.inventory-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 0;border-bottom:1px solid var(--line,#ffffff15)}.inventory-overview small{display:block;font-size:9px;letter-spacing:.1em;color:var(--muted);margin-bottom:8px}.inventory-overview b{font-size:15px;font-weight:600}.inventory-toolbar{display:flex;align-items:end;gap:16px;padding:20px 0}.inventory-toolbar .field:first-child{flex:1}.inventory-toolbar .field{margin:0;min-width:0}.inventory-toolbar select{min-width:190px}.inventory-toolbar .count-text{padding-bottom:13px;white-space:nowrap}.inventory-durable{min-width:760px;width:100%}.inventory-durable th{white-space:nowrap}.inventory-durable td{vertical-align:middle;padding-top:16px;padding-bottom:16px}.inventory-durable td:first-child{min-width:170px;max-width:310px}.inventory-name{display:flex;align-items:center;gap:8px;text-align:left;padding:0}.inventory-name b{font-size:13px;font-weight:600}.inventory-effect{display:block;font-size:10px;line-height:1.65;color:var(--muted);margin-top:7px}.inventory-place{display:block;font-size:9px;line-height:1.6;max-width:95px;margin-top:7px;color:var(--muted)}.inventory-hp{display:flex;flex-direction:column;align-items:start;gap:5px;min-width:95px}.inventory-hp>b{font-size:13px;font-variant-numeric:tabular-nums}.inventory-hp meter{width:94px;height:8px;accent-color:#91b9a6}.inventory-hp>small{font-size:9px;color:#9bb9a9}.inventory-hp.is-broken>b,.inventory-hp.is-broken>small{color:#e4a49b}.inventory-broken{background:#be6d5010}.inventory-hp .btn{padding:5px 8px;font-size:9px}.inventory-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line,#ffffff15);padding-top:18px;margin-top:12px;font-size:12px}.inventory-footer label{display:flex;align-items:center;gap:12px;color:var(--muted)}.inventory-footer input{width:105px}.inventory-main .quantity-step{white-space:nowrap}.inventory-scroll{max-height:620px;overflow:auto}.inventory-durable thead{position:sticky;top:0;background:#192722;z-index:1}.equipment-groups{display:grid;gap:18px}.equipment-group>summary{font-size:13px;padding:8px 0 12px;cursor:pointer;color:var(--gold)}.equipment-group .equipment-body{margin:0;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}.equipment-slot{min-height:78px;background:#ffffff03;border-radius:9px;border:1px solid var(--line,#ffffff15);padding:12px}.equipment-slot>small{font-size:9px;letter-spacing:.07em;line-height:1.6}.equipment-slot button{display:flex;flex-direction:column;align-items:start;gap:4px;width:100%;text-align:left;padding:8px 0;border-top:1px solid #ffffff0b}.equipment-slot button b{font-size:12px;font-weight:500}.equipment-slot button span{font-size:9px;color:var(--muted)}.equipment-slot .equipment-inactive{color:#dba59a}.equipment-sheet .hint{line-height:1.9}.empty-inline{padding:20px;color:var(--muted);font-size:12px;line-height:1.8}.journey-map{position:relative;isolation:isolate;overflow:hidden;background:#111c19}.journey-map>img{width:100%;height:auto;display:block}.journey-lines,.journey-markers{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.journey-lines{z-index:2;overflow:visible}.journey-lines polyline{fill:none;stroke:#ef7770;stroke-width:3;stroke-dasharray:7 6;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #160000b0)}.journey-markers{z-index:3}.journey-stop{display:grid;place-items:center;position:absolute;transform:translate(-50%,-50%);width:24px;height:24px;border-radius:50%;border:2px solid #ffc2b9;background:#793e3be8;box-shadow:0 2px 8px #0008;color:#fff;font:600 10px Inter,Arial,sans-serif;pointer-events:auto}.journey-map .current-location-pin{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;transform:translate(-50%,-50%);width:auto;height:auto;background:none;border:0;box-shadow:none;text-shadow:none;pointer-events:auto;z-index:4;color:#ead49e}.current-location-pin i{font-size:25px;font-style:normal;line-height:1;text-shadow:0 2px 6px #000,0 0 4px #000}.current-location-pin b{display:block;font-size:9px;background:#172820ef;color:#f4dfad;border:1px solid #d7bb75aa;padding:4px 7px;border-radius:5px;white-space:nowrap}.journey-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;color:var(--muted);font-size:10px;line-height:1.8;margin:14px 0}.legend-route:before{content:'';display:inline-block;width:24px;border-top:2px dashed #ef7770;margin-right:8px;vertical-align:middle}.legend-current{color:#d5bd83}.journey-log,.location-stations{border-top:1px solid var(--line,#ffffff15);padding:14px 0}.journey-log>summary,.location-stations>summary{font-size:12px;cursor:pointer;color:#d5d7c9}.journey-log ol{margin:16px 0;padding-left:22px}.journey-log li{font-size:12px;padding:8px 0}.journey-log time{font-size:10px;color:var(--muted);margin-left:10px}.journey-log p{line-height:1.7;white-space:pre-wrap;color:var(--muted);font-size:11px;margin:5px 0}.location-stations .tag-row{margin-top:14px}.journey-tools{padding:16px;background:#ffffff03;border:1px solid var(--line,#ffffff15);border-radius:10px;margin:18px 0}.segmented-control{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.journey-tools>.field{margin:8px 0 14px}.journey-editor{cursor:crosshair}.journey-editor .journey-markers{pointer-events:none}.journey-editor .journey-stop{pointer-events:none}.journey-history{margin:22px 0}.journey-stop-card{border:1px solid var(--line,#ffffff15);border-radius:9px;padding:12px;margin-top:9px}.journey-stop-card>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}.journey-stop-card>summary>span{background:#713c37;color:#ffcdc3;width:24px;height:24px;border-radius:50%;font-size:11px;display:grid;place-items:center;flex-shrink:0}.journey-stop-card summary b{font-size:12px;font-weight:500;overflow-wrap:anywhere}.journey-stop-card summary small{margin-left:auto;color:var(--muted);font-size:9px}.journey-stop-card .form-grid{margin-top:18px}.journey-stop-card .page-actions{margin-top:14px}.journey-stations>summary{padding:14px 0;cursor:pointer;font-size:13px}.dialog-save-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;border-top:1px solid var(--line,#ffffff15);padding-top:18px}.dialog-save-row p{margin:0}.party-location>.panel-head{align-items:start}.party-location>.panel-head h2{overflow-wrap:anywhere}.dashboard-journey .journey-map{margin-top:8px}.dashboard-shortcuts{gap:10px}.dashboard-command{padding-top:26px;padding-bottom:26px}.dashboard-notice{margin-bottom:20px}.request-archive>summary{font-size:12px;color:var(--muted);cursor:pointer;padding:15px 0}
@media(max-width:1050px){.inventory-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.inventory-toolbar{flex-wrap:wrap}.inventory-toolbar .count-text{padding-bottom:0}.equipment-group .equipment-body{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.inventory-toolbar .field{flex:1 1 100%}.inventory-toolbar select{min-width:0;width:100%}.inventory-footer{align-items:start;flex-direction:column}.inventory-overview b{font-size:13px}.inventory-durable{min-width:730px}.equipment-group .equipment-body{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-stop{width:20px;height:20px;font-size:9px}.current-location-pin b{font-size:8px;padding:3px 5px}.journey-stop-card>summary{flex-wrap:wrap}.journey-stop-card summary small{margin-left:34px}.dialog-save-row{flex-direction:column;align-items:stretch}.journey-tools{padding:12px}.party-location>.panel-head{flex-direction:column;gap:14px}}

/* Keep the always-visible social status clear of mobile navigation. */
@media(max-width:650px){
  .topbar{display:grid;grid-template-columns:35px minmax(0,1fr);height:auto;min-height:64px;padding:10px 14px;gap:7px 12px}
  .breadcrumb{min-width:0}
  .breadcrumb b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .top-actions{grid-column:1 / -1;justify-content:flex-end;min-width:0;gap:8px}
  .top-social-status{margin-right:auto;max-width:none;white-space:nowrap}
  .modal-body .form-grid{grid-template-columns:1fr}
  .inventory-scroll{max-height:none;overflow:visible;border:0}
  .inventory-durable{display:block;min-width:0;width:100%}
  .inventory-durable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .inventory-durable tbody{display:grid;gap:14px}
  .inventory-durable tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 12px;padding:16px;border:1px solid var(--line);border-radius:9px;background:#ffffff02}
  .inventory-durable tbody tr.inventory-broken{background:#be6d5010}
  .inventory-durable td{display:block;min-width:0;padding:0;border:0;font-size:12px}
  .inventory-durable td:first-child{grid-column:1 / -1;min-width:0;max-width:none;padding-bottom:12px;border-bottom:1px solid var(--line)}
  .inventory-durable td:not(:first-child)::before{display:block;margin-bottom:8px;color:var(--muted);font-size:9px;letter-spacing:.04em}
  .inventory-durable td:nth-child(2){grid-column:1;grid-row:2}.inventory-durable td:nth-child(2)::before{content:'Anzahl'}
  .inventory-durable td:nth-child(3){grid-column:1;grid-row:3}.inventory-durable td:nth-child(3)::before{content:'Gewicht'}
  .inventory-durable td:nth-child(4){grid-column:2;grid-row:2 / span 2}.inventory-durable td:nth-child(4)::before{content:'Haltbarkeit'}
  .inventory-durable td:nth-child(5)::before{content:'Schutz'}
  .inventory-durable td:nth-child(6)::before{content:'Angelegt'}
  .inventory-durable td:nth-child(7){grid-column:1 / -1;padding-top:12px;border-top:1px solid var(--line)}
  .inventory-durable td:nth-child(7) .page-actions{justify-content:flex-end}
  .inventory-name{max-width:100%}.inventory-name b{overflow-wrap:anywhere}
}

/* Deckungen direkt auf der Karte aufziehen. */
.cover-draw-toolbar{border:1px solid #d3b77b55;border-radius:12px;padding:18px;margin:0 0 18px;background:linear-gradient(120deg,#29372b,#1b2922)}
.cover-draw-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px}.cover-draw-heading h3{font-size:23px;margin-top:4px}.cover-draw-heading .eyebrow{font-size:8px}
.cover-type-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cover-type-choice{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #ffffff20;border-radius:9px;padding:13px 15px;background:#0b171280;color:var(--muted)}.cover-type-choice i{font-style:normal;font-size:25px;color:#b5b7a7;line-height:1}.cover-type-choice b{display:block;font-size:13px;font-weight:600}.cover-type-choice small{display:block;font-size:10px;margin-top:4px}.cover-type-choice.active{border-color:#d7bb7e;background:#d7bb7e12;color:#f1e3bf;box-shadow:inset 0 0 0 1px #d7bb7e30}.cover-type-choice.active i{color:#e6c680}
.cover-design-options{border-top:1px solid var(--line);margin-top:15px;padding-top:12px}.cover-design-options>summary{color:var(--gold);font-size:12px;cursor:pointer}.cover-design-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:14px}.cover-design-choice{padding:5px;border:1px solid #ffffff20;border-radius:9px;background:#122019;text-align:left;color:var(--muted);min-width:0}.cover-design-choice.active{border-color:#dac18e;background:#cbb27d16;color:#f1e2bf;box-shadow:0 0 0 1px #cbb27d33}.cover-design-choice b{display:block;font-size:10px;line-height:1.4;font-weight:500;padding:8px 3px 5px;overflow-wrap:anywhere}.cover-design-swatch{display:block;height:52px;border-radius:5px;border:1px solid #ffffff18;background-repeat:repeat;background-size:64px}
.cover-style-stone{--cover-art:url('assets/cover/stone.svg')}.cover-style-timber{--cover-art:url('assets/cover/timber.svg')}.cover-style-crates{--cover-art:url('assets/cover/crates.svg')}.cover-style-hedge{--cover-art:url('assets/cover/hedge.svg')}.cover-style-rocks{--cover-art:url('assets/cover/rocks.svg')}
.cover-design-swatch,.battle-object.cover-half[class*="cover-style-"],.battle-object.cover-full[class*="cover-style-"]{background-image:var(--cover-art);background-repeat:repeat;background-size:64px;background-color:#314137}.battle-object.cover-half[class*="cover-style-"]{border:2px dashed #f4ca79;box-shadow:inset 0 0 0 2px #2c241885}.battle-object.cover-full[class*="cover-style-"]{border:2px solid #dce1d5;box-shadow:inset 0 0 0 2px #17201cb0}
.battle-stage.cover-drawing{cursor:crosshair;user-select:none}.battle-stage.cover-drawing .battle-token{cursor:crosshair}.battle-object.cover-draft{z-index:8;pointer-events:none;display:flex;align-items:center;justify-content:center;min-height:0;color:#fff;font-size:13px;font-weight:700;text-shadow:0 2px 3px #000,0 0 5px #000;outline:2px solid #f3d08c;outline-offset:2px;box-shadow:0 0 24px #d9b06e66!important;opacity:.85}
.cover-draw-toolbar .hint{font-size:11px;line-height:1.8;margin:12px 0 0}.cover-draw-toolbar #cover-draw-status{color:#e4ce9d}.cover-design-editor{margin:20px 0}.cover-design-editor h3{font-size:20px}.cover-advanced{border-top:1px solid var(--line);padding:16px 0}.cover-advanced>summary{font-size:13px;cursor:pointer;color:var(--gold)}.cover-advanced>.form-grid,.cover-advanced>.checkbox-label{margin-top:18px}.cover-advanced [hidden]{display:none!important}
@media(max-width:700px){.cover-draw-toolbar{padding:14px}.cover-type-choice{padding:11px 9px;gap:8px}.cover-type-choice i{font-size:19px}.cover-type-choice b{font-size:11px}.cover-type-choice small{font-size:9px}.cover-design-grid{grid-template-columns:repeat(auto-fit,minmax(74px,1fr))}.cover-design-swatch{height:48px}}
