

:root { --е-экрю: #FFF8EC; --е-беж: #F3E4D6; --е-терракот: #B4714E; --е-кора: #3B2A1F; --е-песок: #D9C39B; --е-дым: #6B5648; }


:where(input[type="checkbox"]:not(.тумблер)) {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0; vertical-align: middle;
  border: 1.5px solid var(--е-песок); border-radius: 4px; background: var(--е-экрю);
  display: inline-grid; place-items: center; cursor: pointer;
}
:where(input[type="checkbox"]:not(.тумблер)):checked { background: var(--е-терракот); border-color: var(--е-терракот); }
:where(input[type="checkbox"]:not(.тумблер)):checked::after {
  content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
:where(input[type="checkbox"]):disabled { opacity: .45; cursor: default; }

:where(input[type="radio"]) {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0; vertical-align: middle;
  border: 1.5px solid var(--е-песок); border-radius: 50%; background: var(--е-экрю);
  display: inline-grid; place-items: center; cursor: pointer;
}
:where(input[type="radio"]):checked { border-color: var(--е-терракот); }
:where(input[type="radio"]):checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--е-терракот); }

:where(input[type="checkbox"].тумблер) {
  -webkit-appearance: none; appearance: none; flex: none; position: relative;
  width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--е-песок);
  cursor: pointer; transition: background .15s; vertical-align: middle;
}
:where(input[type="checkbox"].тумблер)::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--е-экрю); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s;
}
:where(input[type="checkbox"].тумблер):checked { background: var(--е-терракот); }
:where(input[type="checkbox"].тумблер):checked::after { left: 19px; }


:where(input[type="range"]) { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: var(--е-песок); accent-color: var(--е-терракот); cursor: pointer; }
:where(input[type="range"])::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--е-терракот); border: 2px solid var(--е-экрю); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
:where(input[type="range"])::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--е-терракот);
  border: 2px solid var(--е-экрю); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
:where(input[type="range"])::-moz-range-track { height: 6px; border-radius: 999px; background: var(--е-песок); }


:where(input[type="number"]) { -moz-appearance: textfield; appearance: textfield; }
:where(input[type="number"])::-webkit-inner-spin-button,
:where(input[type="number"])::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.число-е { display: inline-flex; align-items: stretch; vertical-align: middle; border: 1px solid var(--е-песок);
  border-radius: 12px; background: var(--е-экрю); overflow: hidden; max-width: 100%; }
.число-е > input { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
  text-align: center; min-width: 0; outline-offset: -2px; }
.число-е > button { flex: none; width: 32px; border: 0; background: transparent; color: var(--е-кора);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.число-е > button:hover { background: var(--е-беж); }
.число-е > button:disabled { opacity: .35; cursor: default; }


@media (pointer: fine) {
  :where(*) { scrollbar-width: thin; scrollbar-color: #C9A98A transparent; }
}
@media (pointer: coarse) {
  :where(*) { scrollbar-width: none; }
  :where(*)::-webkit-scrollbar { display: none; width: 0; height: 0; }
}


.тройка-е { box-sizing: border-box !important; width: 34px !important; height: 34px !important; min-width: 0 !important;
  padding: 0 !important; border: 1.5px solid currentColor !important; border-radius: 50% !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 0 !important;
  color: var(--text-main, #3B2A1F) !important; background: none; line-height: 0 !important; }
.тройка-е [data-лк-имя], a.тройка-е > span { display: none !important; }
.тройка-е svg, .вопрос-е svg { width: 18px !important; height: 18px !important; fill: none !important;
  stroke: currentColor !important; stroke-width: 1.6 !important; pointer-events: none; }
.вопрос-е { line-height: 0 !important; font-size: 0 !important; }

h2.с-справкой .вопрос-е svg { width: 14px !important; height: 14px !important; stroke-width: 2 !important; }


:where(input[type="color"]) { -webkit-appearance: none; appearance: none; border: 1px solid var(--е-песок); border-radius: 4px;
  padding: 2px; background: var(--е-экрю); cursor: pointer; }
:where(input[type="color"])::-webkit-color-swatch-wrapper { padding: 0; }
:where(input[type="color"])::-webkit-color-swatch { border: 0; border-radius: 3px; }
:where(input[type="color"])::-moz-color-swatch { border: 0; border-radius: 3px; }


:root { --окно-заг: 20px; --окно-кн: 16px; }
@media (max-width: 640px), (orientation: landscape) and (max-height: 480px), (hover: none) and (pointer: coarse) {
  :root { --окно-заг: 17px; --окно-кн: 13px; } }
#старт-экран .старт-карточка, #modal-save-as .modal, .завеса > .окно:not(#помощь-завеса .окно), .оф-окно {
  max-width: 440px !important; border-radius: 12px !important; background: #FFF8EC !important; }
#старт-экран .старт-карточка h2, .modal-overlay .modal-header h2, .завеса > .окно > h3, .оф-окно h2, .оф-окно h3 {
  font: 400 var(--окно-заг)/1.25 "Playfair Display", Georgia, serif !important; letter-spacing: 0 !important; }

#старт-экран .старт-карточка h2 { align-self: stretch; text-align: left; margin: -10px -22px 0 !important;
  padding: 0 48px 14px 20px; border-bottom: 1px solid #eee; }
#старт-экран .старт-кноп, .завеса > .окно .кнопки > button, .завеса > .окно .кнопки > a, .завеса > .окно .кноп {
  font-size: var(--окно-кн) !important; font-weight: 600 !important; min-height: 44px; border-radius: 12px; }


select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none;
  background-color: #FFF8EC !important; color: #3B2A1F;
  border: 1px solid #D9C39B; border-radius: 12px;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4714E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 16px 16px !important;
}
select:not([multiple]):not([size]):focus { outline: none; border-color: #B4714E; }


#modal-import-progress { background: rgba(40, 28, 20, .18) !important; }
#modal-import-progress img { width: 96px !important; height: 96px !important; }

