.character-heading{display:flex;align-items:center;gap:26px;margin:8px 0}.character-heading .name-edit{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:8px 0}.name-pencil{width:25px;height:25px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.character-heading h1{font-size:34px;line-height:1.15}.hero-tokens{display:flex;align-items:center;gap:14px;flex-shrink:0}.level-die{width:88px;height:104px;position:relative;padding:0;border:0;background:transparent;border-radius:10px}.level-die:hover{background:#e8eadf}.level-die svg{position:absolute;inset:0 0 14px;width:88px;height:90px;fill:none;stroke:#8e7847;stroke-width:1.5}.level-die svg path:first-child{fill:#f0ecdf}.die-value{position:absolute;top:31px;left:0;right:0;font-size:27px;font-weight:600;line-height:1;z-index:1}.die-caption{position:absolute;bottom:1px;left:0;right:0;font-size:12px;color:var(--muted)}.pb-pennant{height:83px;width:57px;align-self:start;margin-top:2px;clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);background:#2a4d40;color:#f2ead6;text-align:center;padding:10px 2px 18px;border-top:3px solid #b89b5e}.pb-pennant span{display:block;font-size:12px;letter-spacing:.5px}.pb-pennant strong{display:block;font-size:27px;line-height:1.3}.hero-xp{text-align:right;font-size:13px;color:var(--muted);margin-bottom:4px}.restbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.restbar button{max-width:none;width:100%;min-height:46px}.overview-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-cards .statcard{min-width:0}.portrait-layout{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:22px;align-items:center;margin:12px 0}.portrait-column{min-width:0}.portrait-target{display:block;position:relative;cursor:pointer;border:1px solid #c6c8b5;border-radius:10px;overflow:hidden;aspect-ratio:1;background:#e9e5d8}.portrait-target:hover{outline:2px solid #9eaa85}.portrait-target:focus-visible{outline:3px solid #b49550}.portrait-target img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.portrait-hint{font-size:12px!important;text-align:center;line-height:1.5;margin-top:8px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap;border:0!important}.identity-fields{display:grid;gap:16px;min-width:0}.identity-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.selection-field{min-width:0;display:block}.selection-field>.label{display:block;margin-bottom:5px}.selection-button{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;overflow-wrap:anywhere;min-height:48px;padding:10px 12px;font-size:16px}.identity-form-fields{display:grid;gap:14px;margin-top:16px}.size-dropdown{position:relative;width:100%;min-width:0}.size-dropdown summary{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:var(--card);padding:10px 12px;min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:8px;list-style:none}.size-dropdown summary::-webkit-details-marker{display:none}.size-options{position:absolute;z-index:8;left:0;right:0;top:calc(100% + 4px);border:1px solid var(--line);border-radius:9px;background:var(--card);padding:4px;box-shadow:0 8px 22px #1d352222;max-height:230px;overflow:auto}.size-options button{display:block;width:100%;border:0;border-radius:5px;text-align:left;background:transparent;min-height:44px;padding:9px 8px;overflow-wrap:anywhere}.size-options button[aria-selected=true]{background:#e5ebdd;color:#2b513c}.catalog-entry{padding:16px 0;border-bottom:1px solid var(--line)}.catalog-entry h3{font-size:19px;margin-bottom:6px}.catalog-entry p{font-size:15px;line-height:1.6;margin:10px 0}.catalog-entry button{min-width:110px}.catalog-entry .badge{display:inline-block}.feature-group{padding:12px 0;border-bottom:1px solid var(--line)}.feature-group:first-child{padding-top:0}.feature-group:last-child{border:0;padding-bottom:0}.feature-group .sectionline{margin:0 0 5px}.feature-group h3{font-size:17px}.feature-group ul{margin:8px 0 10px;padding-left:20px;font-size:15px;line-height:1.7}.feature-group p{font-size:15px;line-height:1.6}.feature-group small{display:block;margin-top:7px;font-size:12px}.quiet{border:0;background:none;padding:8px;min-height:44px;color:var(--muted)}.conditions-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.conditions-buttons button{padding:10px 5px;width:100%;min-height:46px}.chosen-conditions{display:flex;flex-direction:column;gap:7px;margin-top:10px}.chosen-conditions:empty{margin:0}.chosen-condition{background:#edf0e5;border-radius:6px;padding:9px 12px;font-size:15px}.slot-controls{flex:1;justify-content:flex-end}.slot-controls button{width:64px;min-height:44px}.slot-controls strong{min-width:42px}.skill-ability-group{margin:20px 0}.skill-ability-group>h3{padding-bottom:7px;border-bottom:2px solid #d3dac8;font-size:18px}.skill-editor-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.skill-editor-line .expertise{margin:0;white-space:nowrap}.skill-editor-line>.checklabel:first-child{flex:1}.skill-editor p{margin-left:28px;font-size:13px}.manual-feature-heading{margin-top:24px;margin-bottom:10px;font-size:18px}.rest-resources{margin-bottom:16px}.rest-resources>summary{cursor:pointer;min-height:44px;padding:10px;background:#e8ecdf;border-radius:8px}.field input:disabled{opacity:1;color:#65715f;background:#e9ecdf}.modalactions{border-top:1px solid var(--line);padding-top:16px;margin-top:24px}
@media(max-width:1100px){.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.portrait-layout{grid-template-columns:180px minmax(0,1fr);gap:15px}.identity-pair{gap:8px}}@media(max-width:700px){.character-heading{gap:20px;align-items:center;margin:6px 0}.character-heading h1{font-size:26px}.character-heading .name-edit{gap:7px}.name-pencil{width:21px;height:21px}.hero-tokens{gap:9px}.level-die{width:66px;height:83px}.level-die svg{width:66px;height:70px}.die-value{top:24px;font-size:23px}.die-caption{font-size:11px;bottom:1px}.pb-pennant{width:44px;height:67px;padding-top:7px}.pb-pennant strong{font-size:23px}.pb-pennant span{font-size:11px}.hero-xp{font-size:12px}.restbar{gap:8px}.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.portrait-layout{grid-template-columns:140px minmax(0,1fr);gap:12px}.identity-pair{grid-template-columns:1fr}.slot-controls button{width:68px}.portrait-target{max-width:300px;margin:auto}}@media(max-width:540px){.portrait-layout{grid-template-columns:1fr}.portrait-column{max-width:280px;justify-self:center;width:100%}.identity-pair{grid-template-columns:1fr 1fr}.identity-fields{gap:12px;width:100%}.selection-button,.size-dropdown summary{font-size:15px;padding:9px}.character-heading h1{font-size:25px}}@media(max-width:360px){.character-heading{gap:16px}.hero-tokens{gap:6px}.character-heading h1{font-size:23px}.level-die{width:58px;height:77px}.level-die svg{width:58px;height:64px}.die-value{top:22px;font-size:21px}.pb-pennant{width:39px;height:62px}.name-pencil{width:19px;height:19px}.slot-controls button{width:54px}}
