.tcg-shell{max-width:1200px;margin:24px auto;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#e8edf3;background:#0d1117;border:1px solid #30363d;border-radius:12px;padding:22px}.tcg-header{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #30363d;padding-bottom:16px}.tcg-header h2{margin:0 0 4px}.tcg-header p{margin:0;color:#8b949e}.tcg-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:18px 0}.tcg-controls label{font-size:13px;color:#9da7b3}.tcg-controls input,.tcg-controls select{display:block;width:100%;margin-top:5px;padding:9px 10px;background:#161b22;color:#e6edf3;border:1px solid #30363d;border-radius:7px;box-sizing:border-box}.tcg-check{display:flex;align-items:center;gap:8px;padding-top:22px}.tcg-check input{width:auto;margin:0}.tcg-button{border:1px solid #3c4755;background:#21262d;color:#fff;border-radius:7px;padding:9px 14px;cursor:pointer}.tcg-primary{background:#238636;border-color:#2ea043}.tcg-button:disabled{opacity:.5}.tcg-status{color:#8b949e;font-size:13px;margin:8px 0 16px}.tcg-output{display:grid;gap:14px}.tcg-card{background:#161b22;border:1px solid #30363d;border-radius:9px;padding:16px}.tcg-summary{display:flex;justify-content:space-between;align-items:center}.tcg-summary h3{font-size:26px;margin:0}.tcg-summary p{color:#8b949e;margin:4px 0 0}.tcg-cash{font-size:22px;font-weight:700}.tcg-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tcg-card h4{margin:0 0 12px;font-size:16px}.tcg-attrs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tcg-attrs div{background:#0d1117;border:1px solid #30363d;padding:10px;border-radius:7px;display:flex;justify-content:space-between}.tcg-skills{columns:2;margin:0;padding-left:18px}.tcg-tablewrap{overflow:auto}.tcg-card table{width:100%;border-collapse:collapse;font-size:13px}.tcg-card th,.tcg-card td{padding:8px;border-bottom:1px solid #30363d;text-align:left;vertical-align:top}.tcg-tag{display:inline-block;margin:2px 4px 2px 0;padding:5px 8px;border:1px solid #44515f;border-radius:999px;font-size:12px}.tcg-tag.good{border-color:#2ea043}.tcg-tag.warn{border-color:#d29922}.tcg-tag.bad{border-color:#f85149}.tcg-muted{color:#8b949e}.tcg-story p{line-height:1.65}.tcg-actions{display:flex;gap:8px}.tcg-actions pre,#tcg-jsonout{white-space:pre-wrap;word-break:break-word;background:#010409;padding:14px;border-radius:7px;overflow:auto}@media(max-width:760px){.tcg-grid{grid-template-columns:1fr}.tcg-header{align-items:flex-start;flex-direction:column}.tcg-primary{width:100%}.tcg-skills{columns:1}.tcg-attrs{grid-template-columns:repeat(2,1fr)}}
.tcg-form{margin:0}.tcg-error{color:#ff7b72;font-weight:600}.tcg-success{color:#3fb950;font-weight:600}.tcg-jsonout{white-space:pre-wrap;word-break:break-word;background:#010409;padding:14px;border-radius:7px;overflow:auto}.tcg-output{margin-top:10px}
.tcg-modebar{display:flex;gap:8px;margin:0 0 18px}.tcg-mode{padding:9px 14px;border:1px solid #31404f;border-radius:8px;text-decoration:none!important;color:inherit}.tcg-mode.active{background:#173b27;border-color:#2d7b4a}.tcg-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 18px}.tcg-progress span{padding:10px;border:1px solid #2b3641;border-radius:8px;text-align:center;opacity:.55}.tcg-progress span.on{opacity:1;background:#121b24}.tcg-stephead{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-bottom:18px;border-bottom:1px solid #28343f;padding-bottom:12px}.tcg-stephead b{font-size:1.15rem}.tcg-stephead span{opacity:.7}.tcg-attrs-large{margin:12px 0 20px}.tcg-attrs-large div{display:flex;flex-direction:column;gap:2px;align-items:center}.tcg-attrs-large small{opacity:.65}.tcg-origin-grid{display:grid;grid-template-columns:minmax(240px,420px);gap:12px}.tcg-hint{opacity:.8}.tcg-skill-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin:12px 0 18px}.tcg-skill-picker label{border:1px solid #2b3641;border-radius:7px;padding:9px}.tcg-career-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:18px 0}.tcg-career-card{display:grid;grid-template-columns:auto 1fr;grid-template-areas:'r b' 'r s' 'x x';gap:3px 8px;border:1px solid #2b3641;border-radius:9px;padding:12px;cursor:pointer}.tcg-career-card input{grid-area:r;align-self:start;margin-top:5px}.tcg-career-card b{grid-area:b}.tcg-career-card small{grid-area:s;opacity:.7}.tcg-career-card select{grid-area:x;margin-top:7px;width:100%}@media(max-width:700px){.tcg-progress{grid-template-columns:1fr 1fr}.tcg-stephead{display:block}.tcg-stephead span{display:block;margin-top:4px}.tcg-career-picker{grid-template-columns:1fr}}
.tcg-required-skill{margin:14px 0 8px;padding:12px 14px;border:1px solid #355a43;border-radius:8px;background:#102218;color:#d9f5e2}.tcg-required-skill span{font-weight:700;color:#8fe0a8}.tcg-rule-note{margin-top:12px;padding:10px 12px;border-left:3px solid #48647a;background:#101820;color:#aeb9c4;font-size:.92em}.tcg-skill-picker label.tcg-is-required{opacity:.55;background:#102218}.tcg-skill-picker label.tcg-is-required:after{content:' bereits durch Heimatwelt';font-size:.78em;color:#8fe0a8;margin-left:6px}
.tcg-career-focus{margin:16px 0}.tcg-radio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:14px 0}.tcg-radio-grid label{display:flex;flex-direction:column;gap:4px;border:1px solid #2b3641;border-radius:8px;padding:12px;background:#10161d;cursor:pointer}.tcg-radio-grid input{width:auto;margin:0 0 6px}.tcg-radio-grid small{color:#8b949e}.tcg-alert{border-color:#9e6a03;background:#211a0d}.tcg-success-card{border-color:#2ea043;background:#0f2116}.tcg-inline-form{margin:0}.tcg-inline-form select{width:100%;max-width:420px;background:#161b22;color:#e6edf3;border:1px solid #30363d;border-radius:7px;padding:9px;margin:8px 0 14px}.tcg-log{max-height:420px;overflow:auto}.tcg-log p{border-bottom:1px solid #28343f;padding-bottom:8px}.tcg-log small{color:#8b949e}.tcg-card .tcg-actions form{margin:0}@media(max-width:700px){.tcg-radio-grid{grid-template-columns:1fr}}
.tcg-career-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:16px 0}.tcg-career-choice{display:flex;flex-direction:column;gap:8px}.tcg-career-choice>label{display:flex;gap:8px;align-items:center}.tcg-career-choice select{width:100%;background:#161b22;color:#e6edf3;border:1px solid #30363d;border-radius:7px;padding:9px}.tcg-career-choice input[type=radio]{width:auto}.tcg-career-choice.tcg-card{padding:12px}@media(max-width:700px){.tcg-career-grid{grid-template-columns:1fr}}
.tcg-event-decision{border-left:3px solid #3d8f5a}.tcg-event-decision .tcg-radio-grid label{min-height:72px}.tcg-event-decision p b{color:#d8e7dc}

.tcg-export-actions{flex-wrap:wrap}.tcg-precareer{margin:14px 0}.tcg-local-status{margin-top:8px}@media print{body *{visibility:hidden!important}.tcg-output,.tcg-output *{visibility:visible!important}.tcg-output{position:absolute;left:0;top:0;width:100%;color:#000;background:#fff}.tcg-output .tcg-card{background:#fff;color:#000;border-color:#bbb}.tcg-output .tcg-actions,.tcg-jsonout{display:none!important}.tcg-output .tcg-muted{color:#444}}
.tcg-v3-tools{margin:18px 0}.tcg-v3-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.tcg-v3-title h3{margin:0 0 4px}.tcg-version-badge{border:1px solid currentColor;border-radius:999px;padding:4px 9px;font-size:12px;opacity:.8}.tcg-v3-toolgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}.tcg-v3-toolgrid>div{border:1px solid rgba(127,255,160,.18);padding:12px;border-radius:8px}.tcg-v3-toolgrid h4{margin:0 0 9px}.tcg-inline{display:flex;gap:8px;flex-wrap:wrap}.tcg-inline input,.tcg-inline select,.tcg-import-json{min-width:0;flex:1}.tcg-world-results,.tcg-library-list{margin-top:8px;display:grid;gap:6px}.tcg-world-result,.tcg-library-row{display:flex;align-items:center;gap:8px;width:100%;text-align:left}.tcg-world-result{background:transparent;border:1px solid rgba(127,255,160,.18);padding:8px;color:inherit;cursor:pointer}.tcg-world-result small,.tcg-library-row small{margin-left:auto;opacity:.65}.tcg-link{border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer;text-align:left}.tcg-mini{border:0;background:none;color:inherit;cursor:pointer;font-size:18px}.tcg-import-json{width:100%;box-sizing:border-box;margin-bottom:8px}.tcg-validation{margin-top:8px}.tcg-imported-character{margin:18px 0}.tcg-character-sheet{break-inside:avoid}@media(max-width:760px){.tcg-v3-toolgrid{grid-template-columns:1fr}.tcg-v3-title{flex-direction:column}.tcg-world-result,.tcg-library-row{align-items:flex-start;flex-wrap:wrap}.tcg-world-result small,.tcg-library-row small{margin-left:0;width:100%}}
@media print{.tcg-v3-tools,.tcg-modebar,.tcg-export-actions,.tcg-actions,.tcg-header{display:none!important}.tcg-shell{background:#fff!important;color:#000!important}.tcg-card{border:1px solid #999!important;box-shadow:none!important;break-inside:avoid}}
.tcg-specialisations{margin-top:14px;padding-top:12px;border-top:1px solid rgba(127,255,160,.18);display:grid;gap:8px}.tcg-specialisations h5{margin:0}.tcg-specialisations label{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,2fr);gap:8px;align-items:center}

/* 3.1 – interaktiver Charakterbogen */
.tcg-viewbar{display:flex;gap:8px;margin:4px 0 10px}.tcg-view-button{border:1px solid #3c4755;background:#161b22;color:inherit;border-radius:7px;padding:8px 12px;cursor:pointer}.tcg-view-button.active{background:#e8e1cf;color:#171717;border-color:#c8bea4}.tcg-paper-sheet{background:#eee8d8;color:#222;border:1px solid #b7ad95;border-radius:2px;padding:18px;font-family:Arial,Helvetica,sans-serif;box-shadow:0 8px 28px rgba(0,0,0,.25)}
.tcg-paper-sheet h4{margin:0 0 7px;font-size:16px;font-style:italic}.tcg-paper-top{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;margin-bottom:12px}.tcg-paper-id,.tcg-paper-species{display:grid;gap:3px}.tcg-paper-sheet label{font-size:12px}.tcg-sheet-input,.tcg-paper-sheet input,.tcg-paper-sheet textarea{background:transparent;color:#222;border:0;border-bottom:1px solid #777;border-radius:0;padding:2px 4px;font:inherit;box-sizing:border-box}.tcg-paper-sheet textarea{border:1px solid #8c846f;resize:vertical;width:100%}.tcg-paper-id input,.tcg-paper-species input{width:72%}.tcg-age-input{max-width:80px}.tcg-sheet-upper{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:16px}.tcg-sheet-attributes table{width:100%;border-collapse:collapse;font-size:10px}.tcg-sheet-attributes th,.tcg-sheet-attributes td{border:1px solid #888;text-align:center;height:20px;padding:0}.tcg-sheet-attributes th:first-child{width:35px;border-left:0}.tcg-sheet-attributes td.is-current{background:#777;color:#fff}.tcg-sheet-attributes .tcg-attr-editor{width:70px;border:0;padding-left:5px}.tcg-sheet-attributes .tcg-attr-editor input{width:38px;text-align:center}.tcg-sheet-attributes .tcg-attr-editor small{display:block;font-size:9px}.tcg-sheet-armor{border:1px solid #8c846f;padding:10px;display:grid;gap:9px;align-content:start}.tcg-sheet-armor label{display:grid;gap:3px}.tcg-sheet-armor input{width:100%}.tcg-sheet-armor textarea{min-height:60px}.tcg-sheet-skills{margin-top:12px}.tcg-sheet-skillcols{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.tcg-sheet-skillcols label{display:grid;grid-template-columns:1fr 38px;gap:5px;align-items:end;border-bottom:1px solid #999;min-height:23px}.tcg-sheet-skillcols label input{width:38px;text-align:center;border:0}.tcg-sheet-lower{display:grid;grid-template-columns:150px .85fr 1.65fr;gap:14px;margin-top:14px}.tcg-sheet-finance{border:1px solid #8c846f;padding:8px;display:grid;gap:7px}.tcg-sheet-finance label{display:grid;gap:2px}.tcg-sheet-finance input{width:100%}.tcg-sheet-equipment textarea{min-height:145px}.tcg-sheet-equipment>label{display:block;margin-top:5px;text-align:right}.tcg-sheet-equipment>label input{width:70px}.tcg-sheet-weaponrows{display:grid;gap:5px}.tcg-weapon-row{display:grid;grid-template-columns:1.2fr .8fr .8fr 1.5fr;gap:5px}.tcg-weapon-row input{width:100%;font-size:11px}.tcg-sheet-bottom{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin-top:14px}.tcg-sheet-relations,.tcg-sheet-career{border:1px solid #8c846f;padding:8px}.tcg-sheet-career table{width:100%;border-collapse:collapse;font-size:10px}.tcg-sheet-career th,.tcg-sheet-career td{border-bottom:1px solid #aaa;padding:4px;text-align:left;vertical-align:top}.tcg-sheet-note{font-size:10px;margin-top:8px;color:#5e574a}.tcg-paper-sheet input:focus,.tcg-paper-sheet textarea:focus{outline:2px solid #706a5c;outline-offset:1px;background:#fffdf4}.tcg-detail-view[hidden],.tcg-sheet-view[hidden]{display:none!important}
@media(max-width:900px){.tcg-paper-sheet{overflow-x:auto}.tcg-paper-top,.tcg-sheet-upper,.tcg-sheet-lower,.tcg-sheet-bottom{grid-template-columns:1fr}.tcg-sheet-skillcols{grid-template-columns:repeat(2,minmax(210px,1fr));min-width:470px}.tcg-sheet-attributes{min-width:650px}.tcg-sheet-armor{width:auto}.tcg-weapon-row{grid-template-columns:1fr 1fr}.tcg-paper-id input,.tcg-paper-species input{width:100%}}
@media(max-width:560px){.tcg-sheet-skillcols{grid-template-columns:1fr;min-width:280px}.tcg-paper-sheet{padding:10px}.tcg-weapon-row{grid-template-columns:1fr}.tcg-viewbar{position:sticky;top:0;z-index:5;background:#0d1117;padding:6px 0}}
@media print{.tcg-viewbar,.tcg-detail-view,.tcg-sheet-note{display:none!important}.tcg-sheet-view{display:block!important}.tcg-paper-sheet{box-shadow:none;border:0;padding:0;width:100%;font-size:9pt;background:#fff!important;color:#000!important}.tcg-paper-sheet input,.tcg-paper-sheet textarea{color:#000!important}.tcg-sheet-skillcols{grid-template-columns:repeat(4,1fr)}.tcg-paper-top{grid-template-columns:1.1fr .9fr}.tcg-sheet-upper{grid-template-columns:minmax(0,1fr) 170px}.tcg-sheet-lower{grid-template-columns:140px .85fr 1.65fr}.tcg-sheet-bottom{grid-template-columns:1fr 2fr}}

/* 3.2 – Benutzerfreundlichkeit, transparente Ergebnisse, manuelles Speichern/Laden */
.tcg-ux-intro{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 16px;padding:10px 12px;border:1px solid #2b3641;border-radius:8px;background:#10161d}.tcg-ux-intro b{margin-right:4px}.tcg-ux-intro span{padding:4px 8px;border-radius:999px;background:#161b22;border:1px solid #30363d;font-size:12px}.tcg-status-prominent{padding:12px 14px;border:1px solid #f85149;border-radius:8px;background:rgba(248,81,73,.08)}
.tcg-result-strip{display:flex;gap:12px;align-items:flex-start;margin:10px 0 16px;padding:10px 12px;border-left:4px solid #58a6ff;background:rgba(88,166,255,.08);border-radius:0 7px 7px 0}.tcg-result-strip b{white-space:nowrap}.tcg-result-strip span{color:#c9d1d9}
.tcg-latest-result{border-color:#2ea043;background:linear-gradient(180deg,rgba(46,160,67,.08),rgba(22,27,34,1))}.tcg-result-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.tcg-result-head h4{margin:0}.tcg-result-head span{font-size:12px;padding:4px 8px;border:1px solid #2ea043;border-radius:999px}.tcg-result-events{display:grid;gap:7px}.tcg-result-events>div{display:grid;gap:2px;padding:8px 10px;border-left:3px solid #30363d;background:#0d1117}.tcg-result-events>div.is-latest{border-left-color:#3fb950;background:rgba(63,185,80,.08)}.tcg-result-events small{color:#8b949e}.tcg-result-events b{font-weight:600}.tcg-history-caption{margin:12px 0 8px;color:#9da7b3;font-size:13px}
.tcg-save-workspace{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px}.tcg-save-panel{border:1px solid rgba(127,255,160,.18);border-radius:9px;padding:14px;background:#10161d}.tcg-save-panel h4{margin:0 0 6px}.tcg-save-name-label{display:grid;gap:6px;margin:12px 0}.tcg-save-name{width:100%;box-sizing:border-box;padding:9px 10px;background:#161b22;color:#e6edf3;border:1px solid #30363d;border-radius:7px}.tcg-library-list{max-height:310px;overflow:auto;padding-right:2px}.tcg-library-row{position:relative;border:1px solid #30363d;border-radius:7px;padding:9px 38px 9px 9px;background:#0d1117;cursor:pointer}.tcg-library-row:has(input:checked){border-color:#58a6ff;background:rgba(88,166,255,.08)}.tcg-library-row input{flex:0 0 auto}.tcg-library-row>span{display:grid;gap:2px;min-width:0}.tcg-library-row small{margin:0!important}.tcg-library-row .tcg-mini{position:absolute;right:7px;top:50%;transform:translateY(-50%)}.tcg-manual-loadbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid #28343f}.tcg-selected-save{font-size:12px}.tcg-extra-tools{margin-top:14px;border-top:1px solid #28343f;padding-top:12px}.tcg-extra-tools summary{cursor:pointer;font-weight:700}.tcg-import-file{display:block;width:100%;margin-bottom:8px}.tcg-v3-status{margin-top:12px;padding:9px 11px;border-radius:7px;background:#0d1117;border:1px solid #30363d}.tcg-v3-status.tcg-success{border-color:#2ea043;color:#3fb950}.tcg-v3-status.tcg-error{border-color:#f85149;color:#ff7b72}
.tcg-loaded-banner{display:grid;gap:3px;margin:-4px -4px 14px;padding:10px 12px;border-left:4px solid #58a6ff;background:rgba(88,166,255,.08)}.tcg-loaded-banner span{font-size:12px;color:#9da7b3}.tcg-output-actions{border-color:#58a6ff}.tcg-validation{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-radius:7px}.tcg-validation-ok{border:1px solid #2ea043;background:rgba(46,160,67,.08)}.tcg-validation-bad{border:1px solid #f85149;background:rgba(248,81,73,.08)}.tcg-validation span{font-size:12px;color:#9da7b3}
@media(max-width:900px){.tcg-save-workspace{grid-template-columns:1fr}.tcg-result-strip{flex-direction:column;gap:4px}.tcg-result-head{align-items:flex-start;flex-direction:column}}
@media print{.tcg-ux-intro,.tcg-save-workspace,.tcg-output-actions,.tcg-validation,.tcg-latest-result,.tcg-history-caption{display:none!important}}

/* 3.3 – klarer Einstieg und getrennte Arbeitsbereiche */
.tcg-section-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;padding:10px 12px;border:1px solid #2b3641;border-radius:9px;background:#0d1117}.tcg-section-nav span{font-weight:700}.tcg-launcher{padding:8px 0 20px}.tcg-launcher-intro{max-width:760px;margin:0 auto 24px;text-align:center}.tcg-launcher-intro h3{font-size:1.6rem;margin:0 0 8px}.tcg-launcher-intro p{margin:0;color:#9da7b3}.tcg-launcher-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tcg-launch-card{display:grid;grid-template-rows:auto auto 1fr auto;gap:9px;min-height:210px;padding:22px;border:1px solid #30363d;border-radius:13px;background:linear-gradient(180deg,#151c24,#0d1117);color:inherit!important;text-decoration:none!important;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.tcg-launch-card:hover{transform:translateY(-2px);border-color:#58a6ff;box-shadow:0 12px 30px rgba(0,0,0,.22)}.tcg-launch-icon{font-size:30px;line-height:1}.tcg-launch-card b{font-size:1.18rem}.tcg-launch-card small{font-size:.9rem;line-height:1.45;color:#9da7b3}.tcg-launch-card em{font-style:normal;font-weight:700;color:#58a6ff}.tcg-workspace{margin-top:18px}.tcg-empty-workspace{display:grid;gap:5px;place-items:center;text-align:center;min-height:160px;padding:24px;border:1px dashed #30363d;border-radius:10px;color:#9da7b3}.tcg-empty-workspace b{color:#e6edf3}.tcg-load-panel,.tcg-npc-panel,.tcg-save-current{margin-top:12px}.tcg-v3-tools>.tcg-save-panel+.tcg-save-panel{margin-top:14px}.tcg-loaded-banner{margin:0 0 12px}.tcg-workspace .tcg-output{margin-top:0}
@media(max-width:850px){.tcg-launcher-grid{grid-template-columns:1fr}.tcg-launch-card{min-height:150px}.tcg-section-nav{align-items:flex-start;flex-direction:column}}
@media print{.tcg-section-nav,.tcg-launcher,.tcg-empty-workspace,.tcg-loaded-banner{display:none!important}}

/* 3.3.1 – Karriereauswahl nach Attributsvoraussetzungen */
.tcg-career-legend{display:flex;gap:14px;flex-wrap:wrap;margin:8px 0 12px;font-size:12px;color:#9da7b3}.tcg-career-legend .is-available{color:#6ee7b7}.tcg-career-legend .is-unavailable{color:#7d8590}.tcg-career-choice{transition:opacity .15s ease,border-color .15s ease,background .15s ease}.tcg-career-choice.is-available{border-color:#334454}.tcg-career-choice.is-available:has(input[type=radio]:checked){border-color:#2fbf9f;background:rgba(47,191,159,.07)}.tcg-career-choice.is-disabled{opacity:.42;filter:saturate(.35);background:#090d12!important;border-color:#242c35!important;cursor:not-allowed}.tcg-career-choice.is-disabled label,.tcg-career-choice.is-disabled select{cursor:not-allowed}.tcg-career-choice.is-disabled select{color:#7d8590;background:#0b1015}.tcg-career-status{margin:9px 0 10px!important;font-size:12px;font-weight:650}.tcg-career-status.ok{color:#6ee7b7}.tcg-career-status.no{color:#8b949e}

/* 3.3.2 – kompakter, einseitiger Druckbogen */
.tcg-sheet-attributes table{table-layout:fixed}
.tcg-sheet-attributes thead th,.tcg-sheet-attributes tbody th,.tcg-sheet-attributes tbody td{height:22px;min-height:22px;max-height:22px}
.tcg-sheet-attributes thead th:not(:first-child),.tcg-sheet-attributes tbody td:not(.tcg-attr-editor){width:auto}
.tcg-paper-top{grid-template-columns:2fr .55fr 1.65fr 1fr 1.7fr;gap:10px;align-items:end}
.tcg-paper-top>.tcg-paper-id,.tcg-paper-top>.tcg-paper-species{display:contents}
.tcg-paper-top label{display:flex;align-items:center;gap:5px;white-space:nowrap;min-width:0}
.tcg-paper-top label input{width:100%!important;min-width:0}

@media print{
  @page{size:A4 portrait;margin:5mm}
  html,body{margin:0!important;padding:0!important}
  .tcg-output{position:static!important;width:auto!important;min-width:0!important}
  .tcg-sheet-view{width:100%!important;overflow:visible!important}
  .tcg-paper-sheet{
    width:100%!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
    font-size:7.4pt!important;
    line-height:1.05!important;
    zoom:.76;
    overflow:visible!important;
    page-break-before:avoid!important;
    page-break-after:avoid!important;
    break-before:avoid-page!important;
    break-after:avoid-page!important;
  }
  .tcg-paper-sheet h4{font-size:10.5pt!important;margin:0 0 3px!important}
  .tcg-paper-sheet label{font-size:7.4pt!important}
  .tcg-paper-top{grid-template-columns:2fr .48fr 1.6fr .9fr 1.65fr!important;gap:7px!important;margin-bottom:5px!important}
  .tcg-paper-top label{display:flex!important;align-items:center!important;gap:3px!important;white-space:nowrap!important}
  .tcg-paper-top label:nth-child(5){font-size:0!important}
  .tcg-paper-top label:nth-child(5)::before{content:'Merkmale:';font-size:7.4pt!important}
  .tcg-paper-top input{font-size:7.4pt!important;padding:0 2px!important;height:16px!important}

  .tcg-sheet-upper{grid-template-columns:minmax(0,1fr) 145px!important;gap:9px!important;align-items:start!important}
  .tcg-sheet-attributes{min-width:0!important;overflow:hidden!important}
  .tcg-sheet-attributes table{width:100%!important;table-layout:fixed!important;font-size:6.6pt!important}
  .tcg-sheet-attributes th,.tcg-sheet-attributes td{height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;box-sizing:border-box!important}
  .tcg-sheet-attributes th:first-child{width:25px!important;min-width:25px!important;max-width:25px!important;border-left:1px solid #888!important}
  .tcg-sheet-attributes .tcg-attr-editor{display:none!important}
  .tcg-sheet-armor{width:auto!important;min-width:0!important;box-sizing:border-box!important;padding:5px!important;gap:3px!important;overflow:hidden!important}
  .tcg-sheet-armor h4{margin-bottom:1px!important}
  .tcg-sheet-armor label{gap:1px!important}
  .tcg-sheet-armor input{height:15px!important;padding:0 2px!important}
  .tcg-sheet-armor textarea{min-height:30px!important;height:30px!important;padding:2px!important;resize:none!important}

  .tcg-sheet-skills{margin-top:5px!important}
  .tcg-sheet-skillcols{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;min-width:0!important}
  .tcg-sheet-skillcols label{grid-template-columns:minmax(0,1fr) 25px!important;gap:2px!important;min-height:15px!important;height:15px!important;line-height:1!important}
  .tcg-sheet-skillcols label span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .tcg-sheet-skillcols label input{width:25px!important;height:14px!important;padding:0!important;font-size:6.8pt!important}

  .tcg-sheet-lower{grid-template-columns:115px .85fr 1.75fr!important;gap:8px!important;margin-top:6px!important}
  .tcg-sheet-finance{padding:4px!important;gap:2px!important}
  .tcg-sheet-finance label{gap:0!important}
  .tcg-sheet-finance input{height:15px!important;padding:0 2px!important}
  .tcg-sheet-equipment textarea{min-height:70px!important;height:70px!important;resize:none!important;padding:2px!important}
  .tcg-sheet-equipment>label{margin-top:2px!important}
  .tcg-sheet-equipment>label input{height:15px!important}
  .tcg-sheet-weaponrows{gap:2px!important}
  .tcg-weapon-row{grid-template-columns:1.15fr .8fr .7fr 1.35fr!important;gap:3px!important}
  .tcg-weapon-row input{height:16px!important;padding:0 2px!important;font-size:6.8pt!important}

  .tcg-sheet-bottom{grid-template-columns:.95fr 2.05fr!important;gap:8px!important;margin-top:6px!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .tcg-sheet-relations,.tcg-sheet-career{padding:4px!important}
  .tcg-sheet-relations textarea{height:68px!important;min-height:68px!important;resize:none!important;padding:2px!important;font-size:6.5pt!important;line-height:1.05!important}
  .tcg-sheet-career table{font-size:6.2pt!important;line-height:1!important;table-layout:fixed!important}
  .tcg-sheet-career th,.tcg-sheet-career td{padding:2px!important;line-height:1.05!important}
  .tcg-sheet-career th:nth-child(1){width:14%!important}.tcg-sheet-career th:nth-child(2){width:15%!important}.tcg-sheet-career th:nth-child(3){width:48%!important}.tcg-sheet-career th:nth-child(4){width:7%!important}.tcg-sheet-career th:nth-child(5){width:16%!important}
  .tcg-sheet-career td{overflow-wrap:anywhere!important}
  .tcg-sheet-note{display:none!important}
}


/* 3.3.3 – isolierter Einseiten-PDF-Druck im A4-Querformat */
.tcg-print-overlay{display:none}
.tcg-print-overlay.tcg-print-preparing{
  display:block!important;
  position:fixed!important;
  left:-200vw!important;
  top:0!important;
  width:297mm!important;
  height:210mm!important;
  padding:5mm!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  background:#fff!important;
  z-index:-1!important;
}
.tcg-print-overlay.tcg-print-preparing .tcg-print-page{
  width:287mm!important;
  height:200mm!important;
  overflow:hidden!important;
  position:relative!important;
}

@media print{
  @page{size:A4 landscape;margin:0!important}
  html,body{width:297mm!important;height:210mm!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}

  /* Beim PDF-Druck existiert layouttechnisch nur der isolierte Bogen. */
  body.tcg-printing > *:not(.tcg-print-overlay){display:none!important}
  body.tcg-printing .tcg-print-overlay,
  body.tcg-printing .tcg-print-overlay *{visibility:visible!important}
  body.tcg-printing .tcg-print-overlay{
    display:block!important;
    position:static!important;
    width:297mm!important;
    height:210mm!important;
    padding:5mm!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.tcg-printing .tcg-print-page{
    display:block!important;
    position:relative!important;
    width:287mm!important;
    height:200mm!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  body.tcg-printing .tcg-paper-sheet{
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
    zoom:1!important;
    background:#fff!important;
    color:#000!important;
    overflow:visible!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  /* Querformat nutzt die zusätzliche Breite und reduziert die notwendige Höhe. */
  body.tcg-printing .tcg-paper-top{grid-template-columns:2.2fr .48fr 1.8fr .8fr 2fr!important;gap:8px!important;margin-bottom:4px!important}
  body.tcg-printing .tcg-sheet-upper{grid-template-columns:minmax(0,1fr) 165px!important;gap:10px!important}
  body.tcg-printing .tcg-sheet-skillcols{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
  body.tcg-printing .tcg-sheet-skillcols label{height:14px!important;min-height:14px!important}
  body.tcg-printing .tcg-sheet-lower{grid-template-columns:125px 1fr 2.35fr!important;gap:9px!important;margin-top:5px!important}
  body.tcg-printing .tcg-sheet-equipment textarea{height:62px!important;min-height:62px!important}
  body.tcg-printing .tcg-sheet-bottom{grid-template-columns:.9fr 2.5fr!important;gap:9px!important;margin-top:5px!important}
  body.tcg-printing .tcg-sheet-relations textarea{height:58px!important;min-height:58px!important}
  body.tcg-printing .tcg-sheet-career table{font-size:6.4pt!important}
  body.tcg-printing .tcg-sheet-note{display:none!important}
}

/* Druck-Vorbereitung außerhalb des Print-Mediums, damit die automatische
   Skalierung exakt mit dem späteren Querformat-Layout rechnet. */
.tcg-print-preparing .tcg-paper-sheet{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;font-size:7.4pt!important;line-height:1.05!important;background:#fff!important;color:#000!important;overflow:visible!important}
.tcg-print-preparing .tcg-paper-sheet h4{font-size:10.5pt!important;margin:0 0 3px!important}
.tcg-print-preparing .tcg-paper-sheet label{font-size:7.4pt!important}
.tcg-print-preparing .tcg-paper-top{grid-template-columns:2.2fr .48fr 1.8fr .8fr 2fr!important;gap:8px!important;margin-bottom:4px!important}
.tcg-print-preparing .tcg-paper-top label{display:flex!important;align-items:center!important;gap:3px!important;white-space:nowrap!important}
.tcg-print-preparing .tcg-paper-top input{font-size:7.4pt!important;padding:0 2px!important;height:16px!important}
.tcg-print-preparing .tcg-sheet-upper{grid-template-columns:minmax(0,1fr) 165px!important;gap:10px!important;align-items:start!important}
.tcg-print-preparing .tcg-sheet-attributes{min-width:0!important;overflow:hidden!important}
.tcg-print-preparing .tcg-sheet-attributes table{width:100%!important;table-layout:fixed!important;font-size:6.6pt!important}
.tcg-print-preparing .tcg-sheet-attributes th,.tcg-print-preparing .tcg-sheet-attributes td{height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;box-sizing:border-box!important}
.tcg-print-preparing .tcg-sheet-attributes th:first-child{width:25px!important;min-width:25px!important;max-width:25px!important}
.tcg-print-preparing .tcg-sheet-attributes .tcg-attr-editor{display:none!important}
.tcg-print-preparing .tcg-sheet-armor{padding:5px!important;gap:3px!important;overflow:hidden!important}
.tcg-print-preparing .tcg-sheet-armor input{height:15px!important;padding:0 2px!important}
.tcg-print-preparing .tcg-sheet-armor textarea{min-height:30px!important;height:30px!important;padding:2px!important;resize:none!important}
.tcg-print-preparing .tcg-sheet-skills{margin-top:5px!important}
.tcg-print-preparing .tcg-sheet-skillcols{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;min-width:0!important}
.tcg-print-preparing .tcg-sheet-skillcols label{grid-template-columns:minmax(0,1fr) 25px!important;gap:2px!important;height:14px!important;min-height:14px!important;line-height:1!important}
.tcg-print-preparing .tcg-sheet-skillcols label span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.tcg-print-preparing .tcg-sheet-skillcols label input{width:25px!important;height:13px!important;padding:0!important;font-size:6.8pt!important}
.tcg-print-preparing .tcg-sheet-lower{grid-template-columns:125px 1fr 2.35fr!important;gap:9px!important;margin-top:5px!important}
.tcg-print-preparing .tcg-sheet-finance{padding:4px!important;gap:2px!important}
.tcg-print-preparing .tcg-sheet-finance input{height:15px!important;padding:0 2px!important}
.tcg-print-preparing .tcg-sheet-equipment textarea{height:62px!important;min-height:62px!important;resize:none!important;padding:2px!important}
.tcg-print-preparing .tcg-sheet-weaponrows{gap:2px!important}
.tcg-print-preparing .tcg-weapon-row{grid-template-columns:1.15fr .8fr .7fr 1.35fr!important;gap:3px!important}
.tcg-print-preparing .tcg-weapon-row input{height:16px!important;padding:0 2px!important;font-size:6.8pt!important}
.tcg-print-preparing .tcg-sheet-bottom{grid-template-columns:.9fr 2.5fr!important;gap:9px!important;margin-top:5px!important}
.tcg-print-preparing .tcg-sheet-relations,.tcg-print-preparing .tcg-sheet-career{padding:4px!important}
.tcg-print-preparing .tcg-sheet-relations textarea{height:58px!important;min-height:58px!important;resize:none!important;padding:2px!important;font-size:6.5pt!important;line-height:1.05!important}
.tcg-print-preparing .tcg-sheet-career table{font-size:6.4pt!important;line-height:1!important;table-layout:fixed!important}
.tcg-print-preparing .tcg-sheet-career th,.tcg-print-preparing .tcg-sheet-career td{padding:2px!important;line-height:1.05!important}
.tcg-print-preparing .tcg-sheet-note{display:none!important}
