@font-face{font-family:PTSansRU;src:url('/assets/fonts/PT_Sans-Web-Regular.woff2') format('woff2'),url('/assets/fonts/PT_Sans-Web-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:PTSansRU;src:url('/assets/fonts/PT_Sans-Web-Bold.woff2') format('woff2'),url('/assets/fonts/PT_Sans-Web-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:PTSerif;src:url('/assets/fonts/PT_Serif-Web-Regular.woff2') format('woff2'),url('/assets/fonts/PT_Serif-Web-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:PTSerif;src:url('/assets/fonts/PT_Serif-Web-Bold.woff2') format('woff2'),url('/assets/fonts/PT_Serif-Web-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
html[lang=ru] body,html[lang=ru] input,html[lang=ru] select,html[lang=ru] textarea,html[lang=ru] button{font-family:PTSansRU,Arial,sans-serif}
html[lang=ru] .section-menu,html[lang=ru] .sidenav-link,html[lang=ru] .button-selection,html[lang=ru] .abilityLabel{font-family:PTSansRU,Arial,sans-serif}
/* Layout below is shared by every language; these controls keep the Russian font on the Russian page. */
html[lang=ru] .div-button:has(>.button-icon) .button-selection,html[lang=ru] .cogButton .centered-tiny{font-family:PTSansRU,Arial,sans-serif}
html .prof-img,:root.light .prof-img{height:22px;width:76px;object-fit:contain}
html .prof-layout:has(>.prof-name:not(.prof-name-weapon)){display:flex;align-items:center;box-sizing:border-box;min-height:40px}
html .prof-layout>.prof-name:not(.prof-name-weapon){width:calc(10em + 10px);flex:0 0 calc(10em + 10px);height:auto}
html .prof-layout:has(>.prof-name:not(.prof-name-weapon))>.prof-section{flex:0 0 auto;margin-right:8px;vertical-align:middle}
html .prof-layout:has(>.prof-name:not(.prof-name-weapon))>.prof-section:has(.prof-img){display:flex;align-items:center;margin-right:10px}
html .prof-layout:has(>.prof-name:not(.prof-name-weapon)) .prof-img{display:block}
html .prof-layout:has(>.prof-name:not(.prof-name-weapon))>.prof-section:has(>.centered-tiny){min-width:2em}
html #container-section-skills>.rounded-rectangle:first-child>div:first-child{flex:1 1 0;min-width:0;margin-right:.5em!important;line-height:1.2}
html #container-section-skills>.rounded-rectangle:first-child>.grid-container{flex:0 0 auto!important}
html:not(.light) #root-no_character>.modal-content{background-image:none;background-color:#171a1e}
:root.light #root-no_character>.modal-content{background-image:url('/assets/images/ui/lm/parchment.jpg')}
html .modal-content{max-width:96vw;max-height:96vh}
html .section-menu,html .button-text{white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
html .div-button-simple{display:inline-flex;box-sizing:border-box;min-width:0;min-height:2em;align-items:center;justify-content:center;vertical-align:middle;line-height:1.2;text-align:center;padding:.35em .5em}
html .div-button-simple .button-simple{padding:0;line-height:1.2}
/* These native controls have inline display rules; override only their layout. */
html .layout-item:has(>.dice-button):has(>.prof-layout){display:flex;align-items:center;gap:8px;overflow-x:auto}
html .layout-item>.dice-button:has(+.prof-layout){display:inline-flex!important;flex-direction:row;align-items:center;justify-content:center;flex:0 0 auto;margin:0!important;white-space:nowrap;gap:.5em;width:auto!important}
html .layout-item>.dice-button:has(+.prof-layout)>img{margin:0!important;padding:0!important}
html .layout-item>.dice-button+.prof-layout{display:flex!important;align-items:center;flex:0 0 auto;margin:0!important}
html #root-no_character .div-button-simple{display:inline-flex!important;align-items:center;justify-content:center;padding:.5em 1em!important}
body:has(#root-no_character) #dice-switch{display:none!important}
html .div-button:has(>.button-icon){display:inline-flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:7.8em;min-height:7.1em;vertical-align:top;padding:.35em}
html .div-button:has(>.button-icon) .button-selection{display:flex;align-items:center;justify-content:center;min-height:2.6em;line-height:1.2;white-space:normal;overflow:visible;width:100%}
html .weapon-button{width:6.5em;min-width:6.5em}
html .cogButton{display:inline-grid;grid-template-rows:3.8em 2.6em;align-content:start;box-sizing:border-box;min-width:6.3em;width:6.3em;align-items:center;vertical-align:top;padding:.3em}
html .cogButton .centred-parent{height:3.8em}
html .cogButton .centred-parent img{max-width:3.8em;max-height:3.8em}
html .cogButton .centered-tiny{height:2.6em;align-items:flex-start;align-self:start;padding-top:.05em;line-height:1.2;white-space:pre-line;font-size:.68em}
html .section-top{height:auto;min-height:7em}
html .section-top>div>div:first-child{display:flex;align-items:stretch;gap:.3em}
html .section-top>div>div:first-child>div{display:flex!important;align-items:stretch}
html .section-top>div>div:first-child .div-button{box-sizing:border-box;margin:0;height:3.3em;min-height:3.3em;max-height:3.3em}
html .section-top>div>div:first-child .div-button-simple{margin:0}
html .section-top .button-show-plan{width:5em;min-height:0;height:auto;align-self:stretch;font-size:1em;line-height:1.15;justify-content:center;align-items:flex-start;text-align:left}
html .section-top .button-name{width:21.7em}
html .section-top .button-name>div:last-child{min-width:0;width:100%;align-items:center;margin-top:.15em!important}
html .section-top .button-name .button-selection{display:block!important;max-width:none!important;width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1}
html .armor-stat-line{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}
html .armor-stat-line>div{width:auto!important;flex:0 0 auto;white-space:nowrap}
html .armor-stat-line>.icon-ac{flex:0 0 auto;margin:0}
html .armor-stat-line>.icon-ac:nth-of-type(2){margin-left:2px}
html .speedsizerow{display:flex;flex-wrap:wrap;align-items:flex-start;row-gap:.35em;column-gap:.15em}
html .speedsizerow .speed-size-section{display:inline-flex;align-items:center;margin-right:.35em;flex:0 0 auto}
html .speedsizerow .speed-size-img{display:block;height:2.2em;width:auto;align-self:center}
html .speedsizerow .speed-size-right{display:flex;flex-direction:column;height:auto;line-height:1.2}
html .speedsizerow .speed-size-label{line-height:1.2}
html .speedsizerow .ability-span{width:3.4em;max-width:3.6em;margin-right:0;flex:1 0 3em}
/* The engine uses .hidden for unavailable controls; layout rules (some of them for every language) must respect it in every language. */
html .cogButton.hidden,html .div-button-simple.hidden,html .div-button.hidden:has(>.button-icon){display:none!important}
html .modal-buttons{display:flex;flex-wrap:wrap;gap:.45em;align-items:stretch}
html .modal-buttons>.modal-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:8em;min-height:3em;line-height:1.2;padding:.4em .5em;margin:0;white-space:normal;word-break:normal;overflow-wrap:normal}
html .table-gear-buttons{align-items:stretch;column-gap:.25em}
html .table-gear-buttons>.div-button-simple{width:auto!important;min-width:0;min-height:3.2em}
html .progress-bar-container{grid-template-rows:1.8em;overflow:hidden;min-height:0}
html .progress-bar{height:100%;min-height:0;box-sizing:border-box}
html .progress-bar-text{box-sizing:border-box;height:100%;line-height:1.2em;padding:.3em;min-height:0;overflow:hidden}
#beta-text{text-align:center;position:absolute;top:5em;left:50%;transform:translateX(-50%);width:28em;padding:1.1em 0;background:#222831;border-radius:10px}
#beta-text .beta-info{margin:0 0 1em;width:auto;font-size:1.1em}
#beta-text #p-version{margin:0}
html.light #beta-text{background:#fcf7eb;color:#510000}
html.light #ring-holder .lds-ring{background:#fcf7eb;color:#510000;border-color:#510000}
html.light #ring-holder .lds-ring>div{border-top-color:#510000}
#ring-holder .lds-ring{margin-top:20em;width:9em;height:9em;box-sizing:content-box;position:relative}
#ring-holder .lds-ring>div{left:50%;margin-left:-2.5em}
#language-transition{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:#171a1ef5}
.language-transition-card{display:flex;align-items:center;gap:1em;background:#222831;padding:1.5em 2em;border-radius:10px;font:16px PTSansRU,Arial,sans-serif}
.language-spinner{width:2em;height:2em;border:4px solid #ff572240;border-top-color:#ff5722;border-radius:50%;animation:language-spin .8s linear infinite}
html.light #language-transition{background:#f7f9fcf5}
html.light .language-transition-card{background:#e4eaf2;color:#171a1e}
html.light .application-language-picker{background:#fff;color:#171a1e}
/* The artwork has no baked frame (2026-11-13): the card draws the frame and the rounding, the picture covers it. */
.character-button-frame{position:relative;box-sizing:border-box;width:100%;max-width:467px;aspect-ratio:467/200;overflow:hidden;border:3px solid #465568;border-radius:18px;cursor:pointer;margin-bottom:8px;isolation:isolate;background:#222831}
:root.light .character-button-frame{border-color:#500000;background:#500000}
.character-button-frame:hover{border-color:#ff5722}
:root.light .character-button-frame:hover{border-color:#500000}
.character-button-frame>.new-load-buttons{position:absolute;display:block;width:100%;max-width:none;height:100%;left:0;top:0;object-fit:cover;border:0;border-radius:0;filter:none}
.character-button-frame>.new-load-buttons:hover{filter:none}
.character-button-frame{container-type:inline-size}
.character-button-label{position:absolute;right:2%;bottom:7.5%;z-index:1;pointer-events:none;white-space:pre;text-align:right;color:#fff;font:400 clamp(18px,6.4cqw,30px)/1.06 PTSerif,Georgia,serif;letter-spacing:-.035em;text-shadow:0 1px 2px #0009}
@keyframes language-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.language-spinner{animation-duration:2s}}
.application-language-picker{position:fixed;right:1em;bottom:.65em;z-index:2000;background:var(--background-color,#252831);color:inherit;border:1px solid #888;border-radius:4px;padding:.3em .5em;font:14px PTSansRU,Arial,sans-serif;box-shadow:0 1px 6px #0006}
.application-language-picker select{font:inherit;background:inherit;color:inherit;border:0;padding:.15em}
.application-account-picker{position:fixed;right:1em;top:.35em;z-index:2100;max-width:12em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#222831;color:#fff;border:1px solid #465568;border-radius:5px;padding:.35em .8em;font:14px PTSansRU,Arial,sans-serif;cursor:pointer}
.application-account-picker{transition:none}
body>.application-account-picker{display:none}
/* Keep controls out of the initial loader until the menu or character exists. */
body:not(:has(#root-no_character,.healthbar)) .application-account-picker,body:not(:has(#root-no_character,.healthbar)) .application-language-picker{visibility:hidden}
html.light .application-account-picker{background:#fcf7eb;color:#500000;border-color:#500000}
.application-account-picker:hover,.application-account-picker:focus-visible{border-color:#ff5722;outline:2px solid #ff5722;outline-offset:2px}
#root-no_character>.modal-content{width:min(499px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;flex-shrink:1}
.landing-controls{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);align-items:center;gap:20px;padding:32px 28px 18px;flex:0 0 auto}
/* Theme colors, images and controls change together without interpolation. */
.landing-controls,.landing-controls *{transition:none}
.landing-controls .application-account-picker,.landing-controls .application-language-picker{position:static;inset:auto;z-index:auto;box-sizing:border-box;height:36px;max-width:100%;margin:0;border:1px solid #66717e;border-radius:4px;background:#222831;color:#fff;box-shadow:none;font:13px PTSansRU,Arial,sans-serif}
.landing-controls .application-account-picker{justify-self:start;width:124px;padding:6px 10px;text-align:center}
.landing-controls .application-language-picker{justify-self:end;display:flex;align-items:center;gap:4px;padding:6px 7px;white-space:nowrap}
.landing-controls .application-language-picker select{min-width:0;width:auto;padding:0}
.landing-controls .application-language-picker:focus-within{outline:2px solid #ff5722;outline-offset:2px}
html.light .landing-controls .application-account-picker,html.light .landing-controls .application-language-picker{background:#fcf7eb;color:#500000;border-color:#967361}
.landing-theme-toggle{position:relative;display:block;box-sizing:border-box;justify-self:center;width:64px;height:32px;padding:0;border:1px solid #66717e;border-radius:18px;background:#2d4059;cursor:pointer;color:#2d4059}
.landing-theme-thumb{position:absolute;display:grid;place-items:center;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#e7edf5}
.landing-theme-thumb svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.landing-theme-sun{display:none}
html.light .landing-theme-toggle{background:#d8c5a7;border-color:#967361;color:#fcf7eb}
html.light .landing-theme-thumb{transform:translateX(32px);background:#500000}
html.light .landing-theme-moon{display:none}
html.light .landing-theme-sun{display:block}
.landing-theme-toggle:hover{border-color:#ff5722}
.landing-theme-toggle:focus-visible{outline:2px solid #ff5722;outline-offset:3px}
#mode-toggle-holder:has(+.menu-preferences){display:none}
.sidenav-body #sidenav-remaster-toggle{margin-bottom:13px!important}
.menu-preferences{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 10px;padding:0 12px}
.menu-theme-row{display:flex;align-items:center}
.menu-preferences,.menu-preferences *{transition:none}
.menu-preferences .application-language-caption{display:none}
.sidenav #sidenav-admin{font-size:inherit;text-decoration:none}
/* 14.11 (owner): the menu's switch is the short pill of the start page (the base 64 px rule and its thumb travel, scaled .85 as in home.css), no longer a long 82 px one. */
.menu-preferences .landing-theme-toggle{transform:scale(.85);transform-origin:right center;box-shadow:none}
.menu-preferences .application-language-picker{position:static;display:flex;align-items:center;justify-content:space-between;gap:16px;z-index:auto;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit;font:inherit}
html.light .menu-preferences .application-language-picker{background:transparent}
.menu-preferences .application-language-picker select{box-sizing:border-box;height:30px;background:#222831;color:#fff;border:1px solid #465568;border-radius:4px;padding:.3em .4em}
html.light .menu-preferences .application-language-picker select{background:#fcf7eb;color:#500000;border-color:#967361}
@media(max-width:420px){.landing-controls{gap:12px;padding:24px 16px 12px}.landing-controls .application-account-picker,.landing-controls .application-language-picker{font-size:12px}.landing-controls .application-account-picker{width:100%;padding-inline:5px}.landing-controls .application-language-picker{padding-inline:5px;gap:2px}}
@media print{.application-account-picker{display:none}}
@media print{.application-language-picker{display:none}@page{size:A4;margin:12mm}}

/* Keep the proficiency name, rank selector and numeric breakdown on one row. */
html body #root.modal .layout-item > .prof-layout:has(> .prof-name) {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
html body #root.modal .layout-item > .prof-layout > .prof-name {
  flex: 0 1 14em;
  width: auto !important;
  min-width: 0;
  height: auto;
}
html body #root.modal .layout-item > .prof-layout > .prof-section {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
  min-width: 2em;
}
html body #root.modal .layout-item > .prof-layout > .prof-section:has(.prof-img) {
  display: flex;
  align-items: center;
  min-width: 0;
}
html body #root.modal .layout-item > .prof-layout > .prof-section > .centered-tiny {
  width: auto !important;
}

/* Fixed two-line caption slot keeps every gear frame equal in both locales. */
html body .cogButton{display:inline-grid;box-sizing:border-box;width:6.3em;min-width:6.3em;height:auto!important;vertical-align:top;padding:.3em;grid-template-rows:3.8em 1.664em!important;align-content:start;align-items:center}
html body .cogButton>.centered-tiny{height:100%!important;min-height:0;box-sizing:border-box;line-height:1.15;margin-bottom:0;align-self:stretch;align-items:center}

/* Shared character summary geometry for both languages and themes. */
html body .section-top .speedsizerow{
 display:grid;grid-template-columns:9em 10.5em repeat(6,minmax(0,1fr));
 width:43em;max-width:100%;align-items:center;gap:0;
}
html body .section-top .speedsizerow .speed-size-section{
 display:flex;align-items:center;margin:0;min-width:0;
}
html body .section-top .speedsizerow .speed-size-img{
 display:block;height:2.2em;width:auto;flex:none;align-self:center;
}
html body .section-top .speedsizerow .speed-size-right{
 display:flex;flex-direction:column;height:auto;line-height:1.2;
}
html body .section-top .speedsizerow .ability-span{
 width:auto;max-width:none;min-width:0;margin:0;text-align:center;
}
html body .section-defenses{
 display:flex;align-items:flex-start;gap:1em;
}
html body .section-defenses .ac-holder{flex:none}
html body .section-defenses .defense-lines{
 display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:1em;
 flex:1;min-width:0;margin-left:0;
}
html body .section-defenses .defense-top-line{width:auto;min-width:0}
html body .section-defenses :is(.healthbar,.shield-healthbar){
 width:100%;box-sizing:border-box;margin-right:0!important;
}
html body .section-defenses .defense-second-line{width:auto;white-space:nowrap}
html body .section-defenses .saves-button{display:flex;align-items:center}
html body .section-defenses .saves-button .section-skill-total{flex:none}
@media(max-width:600px){
 html body .section-top .speedsizerow{grid-template-columns:repeat(6,minmax(0,1fr));row-gap:.4em}
 html body .section-top .speedsizerow .speed-size-section{grid-column:span 3}
}

/* Wrap only Lore labels; retain every skill font and proficiency total. */
.section-skill-name[data-pb-lore-label] { white-space: normal !important; overflow: visible; overflow-wrap: break-word; }

.pb-rule-note { color: var(--ui-muted, #a1a1a1); font-style: italic; }
html.light .pb-rule-note { color: var(--ui-muted, #505050); }

/* Match all six ability columns to the character-name field geometry. */
html body .section-top .speedsizerow.pb-aligned-abilities { grid-template-columns: 9em minmax(0,calc(var(--pb-ability-start) - 9em)) repeat(6,minmax(0,var(--pb-ability-width))) minmax(0,1fr); }

/* Quantity starts at the normal font size and shrinks only to fit its fixed slot. */
[data-pb-quantity-label] { font-size:inherit; width:var(--pb-quantity-width,4em) !important; white-space:nowrap; flex-shrink:0; text-align:center; }

/* Extra roll options share one centered row, without the engine's fixed 5em indent. */
#dice-buttons-roll>div>div:first-child>div:has(>.checkbox-container){display:flex;align-items:center;justify-content:center;gap:.5em;margin:0!important;padding:2px 0;box-sizing:border-box;max-width:100%;cursor:pointer}
#dice-buttons-roll>div>div:first-child>div>.checkbox-container{float:none;flex:0 0 auto;margin:0}
#dice-buttons-roll>div>div:first-child>div>.checkbox-container+span{margin:0!important;min-width:0;overflow-wrap:anywhere;text-align:center;line-height:1.25}
#dice-title{overflow-wrap:anywhere}

html[lang=ru] [data-pb-bonus-spells]{white-space:nowrap;min-width:max-content;width:auto!important}

[data-pb-quantity-bound]{cursor:pointer}
html body [data-pb-quantity-label]:is(:hover,:focus-visible){color:rgb(var(--ui-glow))}
/* Split the native bottom margin so the button borders share the label's center. */
[data-pb-quantity-adjust]{margin-block:.15em;touch-action:none;user-select:none;-webkit-user-select:none}
/* The label already has equal inline margins. Do not add the minus button's
   native right margin to the left gap; keep the plus-to-item spacing intact. */
[data-pb-quantity-adjust]:has(+[data-pb-quantity-label]){margin-inline-end:0}
.pb-quantity-editor{position:fixed;z-index:2147483000;padding:6px;border:1px solid #718096;border-radius:6px;background:#222831;box-shadow:0 3px 12px #0006}
.pb-quantity-editor input{box-sizing:border-box;width:112px;padding:5px 7px;border:1px solid #718096;border-radius:3px;background:#171b20;color:#fff;font:inherit;text-align:center}
html.light .pb-quantity-editor{background:#faf7eb;border-color:#7d7363}
html.light .pb-quantity-editor input{background:#fff;color:#181818}

/* Native proficiency lists share a max-content name column, including the bonus. */
html body .dm-skill_background:has(> .prof-layout > .prof-name){display:grid;grid-template-columns:max-content repeat(5,max-content);column-gap:8px;align-content:start;justify-content:start;box-sizing:border-box;min-width:0;overflow-x:auto}
html body .dm-skill_background > .prof-layout:has(> .prof-name){display:grid!important;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;column-gap:inherit;width:auto!important;min-width:0;min-height:40px;box-sizing:border-box}
html body .dm-skill_background > .prof-layout > .prof-name{width:auto!important;min-width:0;height:auto;white-space:nowrap!important}
html body .dm-skill_background > .prof-layout > .prof-section{margin:0!important;min-width:max-content}
html body .dm-skill_background:has(> .prof-layout) > :not(.prof-layout){grid-column:1/-1}

/* Stable planner roles, including native wrappers for level-specific extras. */
html body #divBuildLevels div:not(.hidden):not([style*="display: none"]):has(>.cogButton){display:flex!important;flex-wrap:wrap;align-items:flex-start}
/* 2026-11-04: any wrapper, not only a div — the class and deity skill buttons sit in a native <span>. */
html body #divBuildLevels div:not(.hidden):not([style*="display: none"]):has(>.cogButton)>:not(.cogButton):not(.hidden):not([style*="display: none"]):has(>.cogButton){display:contents!important}
html body #divBuildLevels .cogButton{order:40}
html body #divBuildLevels .cogButton[data-pb-planner-role="abilities"]{order:10}
html body #divBuildLevels .cogButton[data-pb-planner-role="skills"]{order:20}
html body #divBuildLevels .cogButton[data-pb-planner-role="class"]{order:30}
html body #divBuildLevels .cogButton[data-pb-planner-role="extra"]{order:100}

/* Small captions only; proficiency values retain their readable size. */
html body .prof-layout .prof-section>.centered-tiny.grey-text{font-size:.6em;line-height:1.15}

html body .prof-layout>.prof-section:has(>.centered-tiny.grey-text){box-sizing:border-box;width:1.8em!important;min-width:1.8em!important;flex:0 0 1.8em!important;margin:0!important;padding:0}
html body .prof-layout>.prof-section:has(>.centered-tiny.grey-text)>.centered-tiny{width:100%!important;text-align:center}

html body .prof-layout .prof-section>.centered-tiny.grey-text{white-space:nowrap}

/* Compact desktop breakdown: container gap must not undo narrow columns. */
html body #root.modal .layout-item > .prof-layout:has(> .prof-name){column-gap:2px}

