/* Воины: крупные поля для ввода в зале, закреплённая навигация. */
.warrior-window, .warrior-session-window { box-sizing: border-box; width: min(94vw, 680px); max-width: 680px !important; height: 88vh; height: 88dvh; max-height: 92dvh; padding: 20px !important; display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.warrior-window > .reader-heading, .warrior-window > .reader-summary, .warrior-window > .reader-tabs, .warrior-window > .reader-toolbar, .warrior-session-window > .reader-heading, .warrior-session-footer, .warrior-save-bar { flex-shrink: 0; }
.warrior-scroll { overflow-y: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.warrior-window .reader-toolbar > button { flex: 1 1 0; }
.warrior-window [hidden], .warrior-session-window [hidden], .warrior-editor-window [hidden] { display: none !important; }
.warrior-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#warrior-filters { background: #191714; border: 1px solid #454036; border-radius: 8px; padding: 12px; margin-bottom: 14px; }
.warrior-active-list { margin-bottom: 16px; display: grid; gap: 8px; }
.warrior-active-list > button { text-align: left; overflow-wrap: anywhere; }
.warrior-exercise-choices { margin: 8px 0; border: 1px solid #454036; border-radius: 6px; padding: 10px; min-width: 0; }
.warrior-exercise-choices legend { font-size: 13px; color: #c4b89e; }
.warrior-session-overlay { z-index: 500110; }
.warrior-editor-overlay { z-index: 500120; }
.warrior-save-bar { margin: 0 0 12px; }
#warrior-save-state { color: #a8bf94; margin: 0; font-size: 12px; line-height: 1.4; }
#warrior-save-state.reader-error { color: #ffa19b; }
#warrior-retry { margin-top: 8px; }
.warrior-session-footer { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid #454036; }
.warrior-session-footer button { flex: 1 1 0; }
.warrior-exercise-block { background: #191714; border: 1px solid #514235; border-radius: 8px; padding: 12px; margin: 0 0 14px; }
.warrior-exercise-heading { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.warrior-exercise-heading h3 { margin: 0; font-size: 16px; color: #eed9aa; overflow-wrap: anywhere; }
.warrior-set { display: grid; grid-template-columns: 20px repeat(2, minmax(0, 1fr)) 42px 32px; gap: 5px; align-items: end; padding: 8px 0; border-bottom: 1px solid #332d27; }
.warrior-set.warrior-set-single { grid-template-columns: 20px minmax(0, 1fr) 42px 32px; }
.warrior-set-number { color: #c4b89e; font-size: 12px; align-self: center; }
.warrior-set-field { color: #b5aa99; display: flex; flex-direction: column; gap: 4px; font-size: 11px; min-width: 0; }
.warrior-set-field input { font: 16px 'Courier New', monospace; min-width: 0; width: 100%; min-height: 44px; padding: 8px 5px; text-align: center; background: #0d0d0d; color: #eee; border: 1px solid #575044; border-radius: 6px; box-sizing: border-box; }
.warrior-set-field input::placeholder { color: #78736a; }
.warrior-small-remove { padding: 0; min-width: 32px; width: 32px; min-height: 44px; color: #c99892; border-color: transparent; background: transparent; font-size: 20px; }
.warrior-set-check { cursor: pointer; position: relative; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.warrior-set-check input { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.warrior-set-check span { display: flex; align-items: center; justify-content: center; width: 38px; height: 42px; border: 1px solid #575044; border-radius: 6px; color: #81755c; box-sizing: border-box; }
.warrior-set-check input:checked + span { color: #ecdfac; background: #4b4223; border-color: #d4af37; }
.warrior-set-check input:focus-visible + span { outline: 2px solid #ffd166; }
.warrior-set-done .warrior-set-number { color: #ffd166; }
.warrior-previous { grid-column: 2 / -1; margin: 0; font-size: 11px; color: #9b9383; line-height: 1.5; }
.warrior-add-exercise { padding: 10px; border: 1px dashed #665335; border-radius: 8px; margin-bottom: 18px; }
.warrior-add-exercise summary { cursor: pointer; color: #eed9aa; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.warrior-add-exercise button { margin: 5px 4px 5px 0; }
@media (max-width: 700px) {
    .warrior-window, .warrior-session-window { width: calc(100vw - 20px); padding: 16px 12px !important; height: 90vh; height: 90dvh; }
    .warrior-window .reader-heading h2, .warrior-session-window .reader-heading h2 { font-size: 17px; }
    .warrior-window .reader-heading h2 img { display: none; }
}
@media (max-width: 360px) {
    .warrior-exercise-block { padding: 8px; }
    .warrior-set { grid-template-columns: 16px repeat(2, minmax(0, 1fr)) 38px 28px; gap: 3px; }
    .warrior-set-check span { width: 34px; }
    .warrior-small-remove { min-width: 28px; width: 28px; }
}
