:root {
  --ink: #1f2440;
  --muted: #6b7190;
  --paper: #ffffff;
  --panel: #fbfbff;
  --line: #e2e5f3;
  --accent: #4f6bff;
  --accent-ink: #ffffff;
  --good: #1fae74;
  --warn: #d9822b;
  --star: #ffb400;
  --key: #f3f4fa;
  --key-edge: #c9cde0;
  --bar: rgba(22, 26, 52, 0.88);
  --radius: 14px;
  --shadow: 0 18px 40px rgba(20, 24, 60, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #2a3a8f;
  user-select: none;
}

button { font: inherit; cursor: pointer; }
h1, h2 { margin: 0; }

#app { height: 100%; }

/* ------------------------------------------------------------ обои */
.start, .map, .desk {
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 110%, #3fb58a 0 40%, transparent 41%),
    radial-gradient(ellipse 70% 45% at 85% 115%, #2f9d78 0 40%, transparent 41%),
    radial-gradient(circle at 80% 18%, #ffe7a3 0 6%, transparent 6.5%),
    linear-gradient(180deg, #5a7dff 0%, #8fb2ff 60%, #c7dcff 100%);
}

/* ------------------------------------------------------------ кнопки */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.08s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--big { font-size: 24px; padding: 16px 34px; border-radius: 16px; box-shadow: 0 6px 0 #3448c4; }
.btn--big:active { box-shadow: 0 3px 0 #3448c4; transform: translateY(3px); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--ink); filter: none; }
.btn--small { font-size: 15px; padding: 6px 10px; }
.btn--hint { background: #fff4d6; color: #8a5a00; margin-top: 12px; align-self: flex-start; }

/* ------------------------------------------------------------ старт */
.start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  color: #fff;
}
.start__logo { font-size: 96px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.start h1 { font-size: 56px; text-shadow: 0 4px 16px rgba(20,24,60,.35); }
.start__sub { font-size: 22px; margin: 0 0 12px; max-width: 640px; }
.start .muted { color: rgba(255,255,255,.85); }
.start .btn--ghost { color: #fff; text-decoration: underline; }
.warn { background: #fff4e5; color: #8a4b00; padding: 10px 16px; border-radius: 10px; max-width: 560px; margin: 0; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------ карта уровней */
.map { display: flex; flex-direction: column; align-items: center; padding: 32px 24px 48px; gap: 24px; overflow-y: auto; }
.map__head { text-align: center; color: #fff; }
.map__head h1 { font-size: 44px; text-shadow: 0 4px 16px rgba(20,24,60,.35); }
.map__head p { font-size: 22px; margin: 6px 0 0; }
.map__levels { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; max-width: 1240px; }
.map__foot .btn--ghost { color: #fff; }

.lvl {
  width: 220px;
  min-height: 230px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow), 0 8px 0 #d6daf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 18px;
  color: var(--ink);
  transition: transform 0.12s;
}
.lvl:hover:not(:disabled) { transform: translateY(-4px); }
.lvl__n {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 32px; font-weight: 700;
}
.lvl--done .lvl__n { background: var(--good); }
.lvl--locked { opacity: 0.6; cursor: default; }
.lvl--locked .lvl__n { background: #c9cde0; }
.lvl__title { font-size: 22px; font-weight: 700; text-align: center; }
.lvl__keys { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lvl__stars { color: var(--star); font-weight: 700; font-size: 18px; margin-top: auto; }

/* ------------------------------------------------------------ клавиши */
kbd {
  display: inline-block;
  min-width: 2em;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--key);
  border: 1px solid var(--key-edge);
  border-bottom-width: 4px;
  font: 700 0.95em 'Segoe UI', sans-serif;
  color: var(--ink);
  text-align: center;
}
.combo { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.plus { color: var(--muted); font-weight: 700; }
.then { color: var(--muted); margin: 0 8px; font-size: 0.85em; }

/* ------------------------------------------------------------ рабочий стол */
.desk {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: 1fr 56px;
}

.panel {
  grid-row: 1;
  margin: 20px 0 20px 20px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.panel__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -10px 10px; }
.panel__lvl { color: var(--muted); font-size: 14px; }
.panel__title { font-size: 28px; margin-bottom: 6px; }
.panel__story { font-size: 18px; line-height: 1.45; color: #3a4060; margin: 0 0 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 19px;
  line-height: 1.4;
  transition: background 0.2s, opacity 0.2s;
}
.step__mark {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
  background: #e6e9f6; color: var(--muted);
}
.step__body { display: flex; flex-direction: column; gap: 8px; }
.step__keys { font-size: 18px; }
.step--now { background: #eef1ff; box-shadow: inset 0 0 0 2px var(--accent); }
.step--now .step__mark { background: var(--accent); color: #fff; }
.step--done { opacity: 0.6; }
.step--done .step__mark { background: var(--good); color: #fff; }
.step--next { opacity: 0.45; }
.step__keys.hit kbd { animation: keyhit 0.45s ease-out; }
@keyframes keyhit {
  0% { background: var(--good); color: #fff; transform: translateY(2px) scale(1.1); }
  100% { background: var(--key); }
}

.windows {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
  min-width: 0;
}

.win {
  position: relative;
  flex: 1 1 0;
  max-width: 600px;
  height: min(62vh, 420px);
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: 3px solid transparent;
  transition: outline-color 0.15s, transform 0.2s;
}
.win--active { outline-color: var(--accent); }
.win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #eef0f8;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  cursor: default;
}
.win__title { font-weight: 600; flex: 1; }
.win__btns { display: flex; gap: 14px; color: var(--muted); font-style: normal; }
.win__btns i { font-style: normal; font-size: 13px; }
.win textarea {
  flex: 1;
  border: 0;
  resize: none;
  outline: none;
  padding: 18px 20px;
  font: 26px/1.5 'Segoe UI', sans-serif;
  color: var(--ink);
  background: transparent;
  user-select: text;
}
.win textarea::selection { background: #b8c6ff; }
.win--letter { background: #fffaf0; }
.win--letter .win__bar { background: #fbefd6; }
.win--letter textarea { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; }

.win--happy { animation: happy 0.6s ease-out; }
@keyframes happy {
  30% { transform: scale(1.03); box-shadow: 0 0 0 6px var(--good), var(--shadow); }
  100% { transform: scale(1); }
}
.shake { animation: shake 0.4s; }
@keyframes shake {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* кот, который ходит по клавиатуре */
.cat {
  position: absolute;
  bottom: 18px;
  left: -80px;
  font-size: 64px;
  animation: catwalk 1.7s linear forwards;
  pointer-events: none;
}
.cat__say {
  position: absolute;
  top: -26px; left: 10px;
  font-size: 16px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0 6px;
}
@keyframes catwalk {
  from { left: -80px; }
  to { left: calc(100% + 20px); }
}

/* панель задач */
.taskbar {
  grid-column: 1 / -1;
  grid-row: 2;
  background: var(--bar);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #fff;
}
.tb__start {
  width: 44px; height: 40px;
  border: 0; border-radius: 8px;
  background: transparent; color: #8fb2ff;
  font-size: 24px;
}
.tb__start.flash { animation: flash 0.7s; }
@keyframes flash { 30% { background: #4f6bff; color: #fff; } }
.tb__app {
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 8px 14px;
  font-size: 15px;
  border-bottom: 3px solid transparent;
}
.tb__app--active { background: rgba(255,255,255,.18); border-bottom-color: #8fb2ff; }
.tb__clock { margin-left: auto; font-size: 15px; opacity: .9; }

/* ------------------------------------------------------------ всплывашки */
#overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(20, 24, 60, 0.45);
  z-index: 10;
}
#overlay.show { display: grid; }
.card {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  animation: cardin 0.25s ease-out;
}
@keyframes cardin { from { transform: scale(0.9); opacity: 0; } }
.card h2 { font-size: 32px; }
.card p { font-size: 18px; margin: 0; }
.card__kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.learn { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.learn__row {
  display: flex; align-items: center; gap: 16px;
  text-align: left; font-size: 18px; line-height: 1.4;
  background: #f5f6fc; border-radius: 12px; padding: 12px 16px;
}
.learn__keys { flex: none; font-size: 22px; }
.tip { color: #8a5a00; background: #fff4d6; border-radius: 10px; padding: 8px 14px; }
.stars { font-size: 64px; letter-spacing: 6px; }
.star { color: #e1e4f0; display: inline-block; }
.star--on { color: var(--star); animation: starpop 0.5s ease-out backwards; }
.star--on:nth-child(2) { animation-delay: 0.15s; }
.star--on:nth-child(3) { animation-delay: 0.3s; }
@keyframes starpop { from { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3); } }
.big-stars { font-size: 40px; color: var(--star); font-weight: 700; }

/* сочетание крупно посреди экрана */
#pop {
  position: fixed;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 20;
  text-align: center;
  opacity: 0;
}
#pop.pop--go { animation: pop 1.1s ease-out; }
.pop__keys { font-size: 44px; }
.pop__keys kbd { box-shadow: 0 8px 24px rgba(20,24,60,.3); }
.pop__text {
  margin-top: 10px;
  display: inline-block;
  background: var(--good);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
}
@keyframes pop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
  15% { opacity: 1; transform: translateX(-50%) scale(1.08); }
  30% { transform: translateX(-50%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

#toasts {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
}
.toast {
  background: rgba(22, 26, 52, 0.92);
  color: #fff;
  font-size: 18px;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: cardin 0.2s ease-out;
  white-space: nowrap;
}

/* ------------------------------------------------------------ окна-приложения */
.app { flex: 1; position: relative; outline: none; overflow: hidden; min-height: 0; }

/* Рисовалка */
.board {
  position: absolute;
  inset: 0;
  background-color: #fff;
  background-image: radial-gradient(#e3e6f3 1px, transparent 1px);
  background-size: 22px 22px;
  cursor: default;
}
.shape {
  position: absolute;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 52px;
  line-height: 1;
  border-radius: 10px;
  cursor: grab;
}
.shape--sel { outline: 3px dashed var(--accent); outline-offset: 2px; background: rgba(79, 107, 255, 0.08); }
.shape--blot::before {
  content: '';
  width: 58px;
  height: 46px;
  background: radial-gradient(circle at 35% 40%, #3b2f4a 0 55%, transparent 56%),
    radial-gradient(circle at 70% 60%, #3b2f4a 0 40%, transparent 41%),
    radial-gradient(circle at 20% 75%, #3b2f4a 0 18%, transparent 19%),
    radial-gradient(circle at 88% 22%, #3b2f4a 0 12%, transparent 13%);
}

/* Проводник */
.app--files { display: flex; flex-direction: column; background: #fff; }
.fx__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fc;
}
.fx__up {
  width: 36px; height: 32px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 16px;
}
.fx__up:disabled { opacity: 0.35; cursor: default; }
.fx__path {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}
.fx__grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 14px;
  overflow: auto;
}
.fx__item {
  width: 128px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 2px solid transparent;
  text-align: center;
  cursor: default;
}
.fx__item:hover { background: #f1f4ff; }
.fx__item--sel { background: #dfe6ff; border-color: #9fb0ff; }
.fx__item--cut .fx__icon { opacity: 0.35; }
.fx__item:has(.fx__rename) { width: 240px; }
.fx__icon { font-size: 46px; line-height: 1.1; }
.fx__name { font-size: 15px; line-height: 1.25; word-break: break-word; margin-top: 4px; }
.fx__rename {
  width: 100%;
  margin-top: 4px;
  font: 15px 'Segoe UI', sans-serif;
  padding: 2px 4px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  text-align: center;
  user-select: text;
}
.fx__empty { color: var(--muted); font-size: 17px; padding: 20px; }

/* ------------------------------------------------------------ Alt+Tab */
#switcher {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 25;
  background: rgba(20, 24, 60, 0.35);
  pointer-events: none;
}
#switcher.show { display: flex; }
.sw {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: rgba(30, 34, 64, 0.94);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.sw__item {
  width: 170px;
  padding: 18px 10px;
  border-radius: 12px;
  border: 3px solid transparent;
  color: #fff;
  text-align: center;
  font-size: 17px;
}
.sw__item--on { border-color: #8fb2ff; background: rgba(255, 255, 255, 0.1); }
.sw__icon { font-size: 54px; margin-bottom: 6px; }
.sw__hint { color: #fff; font-size: 17px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

#debug {
  position: fixed;
  right: 8px;
  top: 8px;
  z-index: 30;
  font: 12px Consolas, monospace;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}
#debug:empty { display: none; }

/* ------------------------------------------------------------ выбор задания */
.tnavs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tnav {
  width: 34px; height: 34px;
  border: 2px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--muted);
  font-size: 15px; font-weight: 700;
}
.tnav:hover { border-color: var(--accent); color: var(--accent); }
.tnav--done { background: #e3f6ee; border-color: #9ad9bd; color: var(--good); }
.tnav--cur, .tnav--cur:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.pick { width: 100%; text-align: left; }
.pick summary { cursor: pointer; color: var(--accent); text-align: center; font-size: 17px; }
.pick__list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 260px; overflow: auto; }
.pick__item {
  display: flex; align-items: center; gap: 12px;
  border: 0; border-radius: 10px;
  background: #f5f6fc; color: var(--ink);
  padding: 8px 12px; font-size: 17px; text-align: left;
}
.pick__item:hover { background: #e8ecff; }
.pick__n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none;
}
.pick__title { flex: 1; }
.pick__stars { color: var(--star); }

/* ------------------------------------------------------------ не сохранено, свет мигнул */
.win__dirty { display: none; color: var(--warn); }
.win--dirty .win__dirty { display: inline; }
#blink { position: fixed; inset: 0; background: #0b0d1a; opacity: 0; pointer-events: none; z-index: 40; }
#blink.go { animation: blink 0.9s; }
@keyframes blink { 10%, 30% { opacity: 0.95; } 20% { opacity: 0.4; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ Ctrl+F */
.find {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: #fff8e1;
  border-bottom: 1px solid #f1dfa8;
}
.find__input {
  flex: 1;
  font: 18px 'Segoe UI', sans-serif;
  padding: 4px 8px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  outline: none;
  user-select: text;
}
.find__hint { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ Анкета */
.app--form { background: #fff; overflow: auto; }
.form { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.form__row { display: flex; flex-direction: column; gap: 4px; }
.form__label { font-size: 15px; color: var(--muted); }
.form__input {
  font: 22px 'Segoe UI', sans-serif;
  padding: 6px 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  outline: none;
  user-select: text;
}
.form__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.15); }

/* ------------------------------------------------------------ Браузер */
.app--browser { display: flex; flex-direction: column; background: #fff; }
.br__tabs { display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px 0; background: #e4e7f2; overflow: hidden; }
.br__tab {
  display: flex; align-items: center; gap: 8px;
  max-width: 170px; min-width: 0;
  padding: 7px 10px;
  border-radius: 10px 10px 0 0;
  background: #d3d8ea;
  font-size: 14px;
  cursor: default;
}
.br__tab--on { background: #fff; }
.br__tabtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br__x { color: var(--muted); font-size: 11px; padding: 2px 4px; border-radius: 4px; }
.br__x:hover { background: #f3c2c2; color: #900; }
.br__new { padding: 4px 10px 8px; font-size: 20px; color: var(--muted); cursor: default; }
.br__bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.br__btn { width: 30px; text-align: center; font-size: 18px; color: var(--muted); cursor: default; border-radius: 6px; }
.br__btn:hover { background: #eef0f8; }
.br__addr {
  flex: 1;
  font: 17px 'Segoe UI', sans-serif;
  padding: 5px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #f5f6fb;
  user-select: text;
}
.br__addr:focus { border-color: var(--accent); background: #fff; }
.br__page {
  flex: 1;
  border: 0;
  resize: none;
  outline: none;
  padding: 16px 20px;
  font: 21px/1.5 'Segoe UI', sans-serif;
  color: var(--ink);
  user-select: text;
}
.br__page--flash { animation: reload 0.5s; }
@keyframes reload { from { opacity: 0.2; } }

/* строчка «на вспоминание» */
.step__recall {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 15px; color: #8a5a00; background: #fff4d6;
  border-radius: 8px; padding: 4px 6px 4px 10px; align-self: flex-start;
}
.step__recall .btn--hint { margin: 0; background: #ffe7a6; }
/* что не так в набранном: «Забыл запятую…» */
.step__tip {
  font-size: 16px; font-weight: 600; color: #a3261b; background: #ffe3df;
  border-radius: 8px; padding: 5px 10px; align-self: flex-start;
}

/* ------------------------------------------------------------ выбор курса */
.courses { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.course {
  width: 340px;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow), 0 8px 0 #d6daf0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 26px;
  color: var(--ink);
  text-align: center;
  transition: transform 0.12s;
}
.course:hover { transform: translateY(-4px); }
.course__icon { font-size: 72px; line-height: 1; }
.course__title { font-size: 26px; font-weight: 700; }
.course__sub { font-size: 17px; color: #3a4060; line-height: 1.4; }
.course__meta { color: var(--star); font-weight: 700; margin-top: 6px; }
.map__head { position: relative; width: min(1240px, 100%); }
.map__back { position: absolute; left: 0; top: 4px; color: #fff; }
.map__sheet { position: absolute; right: 0; top: 4px; }
.map__foot { display: flex; gap: 12px; align-items: center; }
.btn--sheet { background: #fff4d6; color: #7a4f00; }
.btn--sheet:hover { filter: brightness(1.03); }
.lvl__icon { font-size: 26px; }
.learn__icon { font-size: 30px; display: inline-block; width: 44px; text-align: center; }
.panel__lvl { color: var(--muted); font-size: 14px; margin-bottom: 4px; }

/* ------------------------------------------------------------ карман буфера обмена */
.clipbox {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef6ff;
  border: 2px dashed #9fc2ff;
  font-size: 16px;
  color: #2b4a80;
}
.clipbox b { color: var(--ink); }

/* ------------------------------------------------------------ окна: свернуть / развернуть / закрыть */
.windows { position: relative; }
.windows--icons { padding-left: 130px; }
.win--min, .win--closed { display: none; }
.win--max { position: absolute; inset: 14px; max-width: none; height: auto; z-index: 3; }

/* окна двигаются за шапку и тянутся за край (app.js, «окна: двигать за шапку») */
.windows--free { overflow: hidden; }
/* слои окон (--z растёт с каждым щелчком) — только внутри стола: карточка «Готово», Пуск и меню
   всегда сверху (Юрий 15.10: карточка оказалась под окнами) */
.windows { isolation: isolate; }
.windows .win.win--free:not(.win--max) {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  max-width: none; min-height: 0; flex: none; margin: 0; z-index: var(--z, 1);
}
.win:not(.win--max) .win__bar { cursor: move; }
.win__btns { cursor: default; }
.win__edge { position: absolute; z-index: 6; }
.win--max .win__edge { display: none; }
.win__edge--l, .win__edge--r { top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.win__edge--l { left: 0; }
.win__edge--r { right: 0; }
.win__edge--b { left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.win__edge--lb, .win__edge--rb { bottom: 0; width: 18px; height: 18px; }
.win__edge--lb { left: 0; cursor: nesw-resize; }
.win__edge--rb { right: 0; cursor: nwse-resize; }
/* уголок «тяни меня», как в Windows */
.win__edge--rb::after {
  content: ''; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px;
  background: linear-gradient(135deg, transparent 0 45%, #b7bdd1 45% 55%, transparent 55% 70%, #b7bdd1 70% 80%, transparent 80%);
}
/* пока тянем — курсор не мигает и текст не выделяется */
body[class*="dragging--"] { user-select: none; }
body[class*="dragging--"] * { cursor: inherit !important; }
body.dragging--move { cursor: move; }
body.dragging--l, body.dragging--r { cursor: ew-resize; }
body.dragging--b { cursor: ns-resize; }
body.dragging--lb { cursor: nesw-resize; }
body.dragging--rb { cursor: nwse-resize; }
.windows--icons .win--max { left: 130px; }
.win__btns i { cursor: default; padding: 2px 6px; border-radius: 4px; }
.win__btns i:hover { background: #dde2f2; color: var(--ink); }
.win__btns i[data-wbtn="close"]:hover { background: #e5484d; color: #fff; }
.tb__app--closed { display: none; }
.tb__app--min { opacity: 0.6; border-bottom-color: transparent; }

.desk-icons {
  position: absolute;
  left: 18px; top: 18px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 1;
}
.dicon {
  width: 96px;
  padding: 8px 4px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  cursor: default;
  border: 2px solid transparent;
}
.dicon:hover { background: rgba(255, 255, 255, 0.15); }
.dicon--sel { background: rgba(255, 255, 255, 0.28); border-color: rgba(255, 255, 255, 0.6); }
.dicon__img { font-size: 46px; line-height: 1.1; }
.dicon__name { font-size: 15px; margin-top: 2px; }

/* ------------------------------------------------------------ меню по правой кнопке */
.cmenu {
  position: fixed;
  z-index: 60;
  min-width: 230px;
  padding: 6px;
  background: #fff;
  border: 1px solid #d5d9ea;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20, 24, 60, 0.25);
  font-size: 16px;
  user-select: none;
}
.cmenu--sub { position: absolute; left: 100%; top: -6px; display: none; }
.cmenu__item { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: default; }
.cmenu__item:hover { background: #eef1ff; }
.cmenu__item--sub:hover > .cmenu--sub { display: block; }
.cmenu__item--off { color: #a0a5bd; }
.cmenu__item--off:hover { background: transparent; }
.cmenu__icon { width: 22px; text-align: center; }
.cmenu__label { flex: 1; }
.cmenu__hint { color: var(--muted); font-size: 13px; }
.cmenu__sep { height: 1px; background: #e6e8f2; margin: 4px 6px; }

/* ------------------------------------------------------------ тренажёр мышки */
.app--mouse { background: #fffdf5; }
.mfield { position: absolute; inset: 0; }
.mtarget {
  position: absolute;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  font-size: 58px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.3s;
}
.mtarget:hover { transform: scale(1.12); }
.mtarget--done { cursor: default; }
.mtarget--done:hover { transform: none; }
.mtarget--gone { opacity: 0; transform: scale(1.6); }
.wiggle { animation: wiggle 0.4s; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ------------------------------------------------------------ клавиатура */
.app--keyboard { background: #f4f5fb; display: flex; align-items: center; overflow: auto; }
.kb { display: flex; flex-direction: column; gap: 6px; padding: 14px; width: 100%; }
.kb__row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 10px; transition: background 0.2s; }
.kb__row--show { background: #fff1c2; box-shadow: inset 0 0 0 2px #f2c94c; }
.kb__title { width: 86px; flex: none; font-size: 12px; color: var(--muted); text-align: right; line-height: 1.1; }
.kb__row--show .kb__title { color: #8a5a00; font-weight: 700; }
.kb__keys { flex: 1; display: flex; gap: 4px; }
.kb__key {
  flex: 1;
  min-width: 0;
  height: 34px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--key-edge);
  border-bottom-width: 3px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.kb__key--mark { background: #ffe08a; border-color: #e0b33a; }
.kb__key--was { background: #e3f6ee; }
.kb__key--hit { animation: kbhit 0.45s ease-out; }
@keyframes kbhit { 0% { background: var(--good); color: #fff; transform: translateY(2px); } }

/* ------------------------------------------------------------ шпаргалка */
#sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(20, 24, 60, 0.5);
}
#sheet.show { display: grid; }
.sheet {
  width: min(980px, calc(100% - 32px));
  height: calc(100vh - 40px);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet__tools { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f7f8fc; }
.sheet__tab { border: 0; border-radius: 10px; padding: 8px 14px; background: transparent; color: var(--muted); font-size: 16px; }
.sheet__tab--on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); font-weight: 600; }
.sheet__gap { flex: 1; }
.sheet__body { overflow: auto; padding: 18px 28px 28px; user-select: text; }
.sheet__body h2 { font-size: 28px; margin-bottom: 8px; }
.sh__block { margin-top: 18px; }
.sh__block h3 { font-size: 21px; margin: 0 0 10px; }
.sh__block p { font-size: 16px; margin: 8px 0; }
.sh__list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; font-size: 16px; line-height: 1.45; }
.sh__list--keys { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.sh__list--table { list-style: none; padding: 0; gap: 6px; }
.sh__list--table li { display: grid; grid-template-columns: 210px 1fr 56px; gap: 12px; align-items: center; padding: 4px 0; border-bottom: 1px solid #f0f1f7; }
.sh__lvl { color: var(--muted); font-size: 13px; text-align: right; }
.sh__note { background: #eef6ff; border-radius: 12px; padding: 10px 14px; }
.sh__wbtn { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 5px; background: #eef0f8; font-weight: 700; }
.sheet .kb { padding: 6px 0; }
.sheet .kb__key { height: 30px; }

@media print {
  html, body { overflow: visible; height: auto; background: #fff; }
  body:not(.print-cert) > *:not(#sheet) { display: none !important; }
  body.print-cert > *:not(#cert) { display: none !important; }
  body.print-cert #cert { display: block !important; }
  body.print-cert .cert { border-width: 6px; padding: 60px 40px; margin-top: 40px; }
  #sheet { position: static; display: block !important; background: none; }
  .sheet { width: auto; height: auto; box-shadow: none; border-radius: 0; overflow: visible; }
  .sheet__tools { display: none; }
  .sheet__body { overflow: visible; padding: 0; }
  .sh__block { break-inside: avoid; }
}

.win:has(.app--keyboard) { max-width: 1080px; flex-basis: 1080px; height: min(62vh, 430px); }
.win .kb__key { height: 40px; font-size: 14px; }
.win .kb__title { font-size: 13px; }

/* клавиша с двумя буквами: русская крупно, английская мельче (как на настоящей клавиатуре) */
.kb__key--two { display: flex; align-items: center; justify-content: center; gap: 5px; }
.kb__ru { font-size: 1.05em; }
.kb__en { font-size: 0.85em; color: var(--accent); font-weight: 700; }
.sheet .kb__key { height: 34px; font-size: 13px; }

/* ------------------------------------------------------------ карта уровней (переделка 14.10) */
/* солнце — маленькое, в самом углу, чтобы не лезло под карточки */
.start, .map, .desk {
  background:
    radial-gradient(ellipse 80% 50% at 20% 110%, #3fb58a 0 40%, transparent 41%),
    radial-gradient(ellipse 70% 45% at 85% 115%, #2f9d78 0 40%, transparent 41%),
    radial-gradient(circle at 96% 4%, #ffe7a3 0 70px, transparent 72px),
    linear-gradient(180deg, #5a7dff 0%, #8fb2ff 60%, #c7dcff 100%);
}
.topbar {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.topbar__back { justify-self: start; color: #fff; font-size: 17px; }
.topbar .btn--sheet { justify-self: end; }
.topbar__title { text-align: center; color: #fff; }
.topbar__title h1 { font-size: 38px; line-height: 1.15; text-shadow: 0 4px 16px rgba(20, 24, 60, 0.35); }
.topbar__title p { margin: 4px 0 0; font-size: 19px; opacity: 0.95; }

.levels {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.levels .lvl {
  width: auto;
  min-height: 0;
  align-items: stretch;
  text-align: left;
  gap: 10px;
  padding: 18px 20px 16px;
  border-radius: 20px;
}
.levels .lvl:hover:not(:disabled) { transform: translateY(-3px); }
.lvl__top { display: flex; align-items: center; justify-content: space-between; }
.levels .lvl__n { width: 46px; height: 46px; font-size: 22px; }
.levels .lvl__stars { margin: 0; font-size: 16px; }
.levels .lvl__title {
  font-size: 20px;
  text-align: left;
  line-height: 1.25;
  min-height: 2.5em;
}
.levels .lvl__keys {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-size: 14px;
}
.levels .lvl__keys kbd { font-size: 13px; padding: 2px 7px; }
.levels .lvl__icon { font-size: 24px; }
.lvl__more { color: var(--muted); font-size: 14px; }
.lvl__bar { height: 8px; border-radius: 99px; background: #eceef7; overflow: hidden; margin-top: auto; }
.lvl__bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffc93c, #ffb400); border-radius: 99px; }
.lvl--done .lvl__bar i { background: linear-gradient(90deg, #39c98d, #1fae74); }

/* выбор курса — та же шапка без кнопок по краям */
.map .courses { margin-top: 8px; }

/* ------------------------------------------------------------ карта по главам (15.10.2026) */
/* «▶ Продолжить» — главная кнопка карты: куда идти дальше, не выбирая */
.cont {
  width: min(1200px, 100%);
  display: flex; align-items: center; gap: 18px;
  border: 0; border-radius: 22px; padding: 16px 24px;
  background: linear-gradient(135deg, #2fbf83, #1fae74); color: #fff;
  box-shadow: var(--shadow), 0 7px 0 #168a5b;
  font: inherit; text-align: left; cursor: pointer;
  transition: transform 0.15s;
}
.cont:hover { transform: translateY(-3px); }
.cont__play {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-size: 26px;
}
.cont__text { display: flex; flex-direction: column; gap: 2px; }
.cont__text b { font-size: 26px; }
.cont__text small { font-size: 17px; opacity: 0.95; }
.cont--all { background: #fff4d6; color: #7a4f00; box-shadow: var(--shadow); font-size: 20px; font-weight: 600; cursor: default; }
.cont--all:hover { transform: none; }

.chapters { width: min(1200px, 100%); display: flex; flex-direction: column; gap: 16px; }
.ch { background: rgba(255, 255, 255, 0.16); border-radius: 24px; padding: 6px; }
.ch[open] { background: rgba(255, 255, 255, 0.24); padding-bottom: 18px; }
.ch__head {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 6px 16px;
  background: var(--paper); border-radius: 20px; padding: 14px 20px;
  box-shadow: 0 6px 18px rgba(20, 24, 60, 0.18);
}
.ch__head::-webkit-details-marker { display: none; }
.ch[open] .ch__head { margin-bottom: 16px; }
.ch__num {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 22px; font-weight: 700;
}
.ch--done .ch__num { background: var(--good); }
.ch--locked .ch__num { background: #c9cde0; }
.ch__name { display: flex; flex-direction: column; min-width: 0; }
.ch__name small { color: var(--muted); font-size: 14px; }
.ch__name b { font-size: 23px; line-height: 1.2; }
.ch__badge { font-size: 15px; font-weight: 600; color: var(--muted); background: #f1f2f9; border-radius: 99px; padding: 5px 12px; }
.ch__badge--done { color: #126b47; background: #dcf5ea; }
.ch__badge--lock { color: #7a4f00; background: #fff4d6; }
.ch__stars { color: var(--star); font-weight: 700; font-size: 17px; white-space: nowrap; }
.ch__arrow { font-size: 20px; color: var(--muted); transition: transform 0.2s; }
.ch[open] .ch__arrow { transform: rotate(180deg); }
.ch__bar { grid-column: 2 / -1; height: 8px; border-radius: 99px; background: #eceef7; overflow: hidden; }
.ch__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffc93c, #ffb400); }
.ch--done .ch__bar i { background: linear-gradient(90deg, #39c98d, #1fae74); }
.ch .levels { width: 100%; padding: 0 12px; }
@media (max-width: 760px) {
  .ch__head { grid-template-columns: auto 1fr auto; }
  .ch__badge { grid-column: 2 / -1; justify-self: start; }
  .ch__stars { grid-column: 2; }
}

/* полоски глав на карточке курса */
.course__chs { display: flex; gap: 6px; width: 100%; }
.course__chs i { flex: 1; height: 8px; border-radius: 99px; background: #eceef7; overflow: hidden; }
.course__chs b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffc93c, #ffb400); }

/* цифры: сверху — символ с Shift (английский и, где отличается, русский) */
.kb__key--sym { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; gap: 2px; }
.kb__sh { font-size: 0.8em; color: var(--muted); display: flex; gap: 5px; }
.kb__shru { color: var(--accent); }
.kb__main { font-size: 1.05em; }
.sheet .kb__key, .win .kb__key { height: 40px; }

/* ------------------------------------------------------------ заставка уровня: фраза + плитки */
.intro { font-size: 21px; line-height: 1.35; color: #3a4060; margin: 0; }
.tiles { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.tile {
  background: #f5f6fc;
  border-radius: 16px;
  padding: 14px 8px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.tile__head { font-size: 20px; min-height: 40px; display: flex; align-items: center; }
.tile__head .learn__icon { font-size: 38px; width: auto; }
.tile__text { font-size: 16px; font-weight: 600; line-height: 1.25; }
.tiles__more { color: var(--muted); font-size: 15px; margin: -4px 0 0; }

.kb__key--sym .kb__sh { font-size: 12px; font-weight: 700; }
.kb__key--sym .kb__main { font-size: 15px; }

/* плитки: длинное сочетание (Ctrl+Shift+N) переносится и не налезает на соседей */
.card:has(.tiles) { width: min(640px, calc(100% - 32px)); }
.tile { min-width: 0; overflow: hidden; }
.tile__head { flex-wrap: wrap; justify-content: center; max-width: 100%; }
.tile__head .combo { flex-wrap: wrap; justify-content: center; row-gap: 4px; white-space: normal; }
.tile__head kbd { font-size: 15px; padding: 2px 7px; min-width: 1.7em; }

/* язык клавиатуры на панели задач, как в Windows */
.tb__lang {
  margin-left: auto;
  min-width: 52px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.04em;
}
.tb__lang--en { background: #4f6bff; }
.tb__lang.flash { animation: langflash 0.8s; }
@keyframes langflash { 0%, 40% { transform: scale(1.35); box-shadow: 0 0 0 4px rgba(255, 220, 120, 0.8); } }
.tb__lang + .tb__clock { margin-left: 12px; }

.tb__lang--unknown { background: rgba(255, 255, 255, 0.22); color: #ffe7a3; }

/* ------------------------------------------------------------ меню «Пуск» */
.sm {
  position: fixed;
  left: 12px;
  bottom: 66px;
  z-index: 45;
  width: 440px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(30, 34, 64, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  color: #fff;
  display: none;
  flex-direction: column;
  gap: 14px;
  transform-origin: left bottom;
}
.sm.show { display: flex; animation: smin 0.18s ease-out; }
@keyframes smin { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.sm__user { display: flex; align-items: center; gap: 12px; }
.sm__ava {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(135deg, #7c5cff, #4f6bff);
}
.sm__who { display: flex; flex-direction: column; gap: 2px; }
.sm__who b { font-size: 18px; }
.sm__who span { font-size: 13px; color: #c9cff5; }
.sm__label { font-size: 13px; color: #aab2e8; text-transform: uppercase; letter-spacing: 0.06em; }
.sm__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sm__tile {
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 12px 4px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px;
  line-height: 1.2;
}
.sm__tile:hover { background: rgba(255, 255, 255, 0.18); }
.sm__icon { font-size: 28px; }
.sm__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 12px; }
.sm__tip { font-size: 12px; color: #aab2e8; }
.sm__power {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
}
.sm__power:hover { background: #e5484d; }
.tb__start--on { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* кот, который пробегает по рабочему столу */
.deskcat {
  position: absolute;
  bottom: 10px;
  left: -90px;
  font-size: 70px;
  z-index: 6;
  pointer-events: none;
  animation: deskcat 4s linear forwards;
}
@keyframes deskcat { to { left: calc(100% + 40px); } }

/* конфетти */
.confetti {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  z-index: 70;
  pointer-events: none;
  animation: confetti linear forwards;
}
@keyframes confetti { to { top: 105vh; transform: rotate(720deg) translateX(40px); } }

/* ------------------------------------------------------------ обои */
body.wall-sunset .start, body.wall-sunset .map, body.wall-sunset .desk {
  background:
    radial-gradient(ellipse 80% 50% at 20% 110%, #7a3b69 0 40%, transparent 41%),
    radial-gradient(ellipse 70% 45% at 85% 115%, #5c2a5a 0 40%, transparent 41%),
    radial-gradient(circle at 70% 78%, #ffd36b 0 90px, transparent 92px),
    linear-gradient(180deg, #4a3a8f 0%, #c25b8a 45%, #ff9a6b 75%, #ffd8a0 100%);
}
body.wall-night .start, body.wall-night .map, body.wall-night .desk {
  background:
    radial-gradient(ellipse 80% 50% at 20% 110%, #16334a 0 40%, transparent 41%),
    radial-gradient(ellipse 70% 45% at 85% 115%, #0f2638 0 40%, transparent 41%),
    radial-gradient(circle at 92% 9%, #fff6d8 0 46px, transparent 48px),
    radial-gradient(circle at 89% 7%, #1b2357 0 44px, transparent 46px),
    radial-gradient(circle at 20% 15%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 45% 8%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 63% 22%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 35%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 33% 32%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 55% 40%, #fff 0 1px, transparent 1.5px),
    linear-gradient(180deg, #0b1033 0%, #1b2357 60%, #2c3a7a 100%);
}
body.wall-space .start, body.wall-space .map, body.wall-space .desk {
  background:
    radial-gradient(circle at 85% 80%, #ff8a5c 0 70px, #c2410c 71px 90px, transparent 91px),
    radial-gradient(ellipse 50% 35% at 25% 30%, rgba(167, 89, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(56, 189, 248, 0.35), transparent 70%),
    radial-gradient(circle at 12% 70%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 40% 85%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 60% 55%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 90% 30%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 30% 10%, #fff 0 1.5px, transparent 2px),
    linear-gradient(180deg, #07081a 0%, #141238 100%);
}

/* ------------------------------------------------------------ контрольные */
#cert { display: none; }
.levels .lvl--exam { background: linear-gradient(160deg, #fff8e1, #ffeec2); box-shadow: inset 0 0 0 3px #f2c45a, var(--shadow); }
.levels .lvl--exam .lvl__n { background: #f2b632; }
.panel__nohint { font-size: 14px; color: #7a4f00; background: #fff4d6; border-radius: 10px; padding: 6px 10px; }
.panel--exam .panel__lvl { color: #9a6a00; font-weight: 600; }
.panel--exam .panel__title { font-size: 24px; }
.panel--exam .panel__story { font-size: 16px; margin-bottom: 10px; }
.panel--exam .steps { gap: 4px; }
.goal { padding: 6px 10px; font-size: 17px; line-height: 1.3; }
.goal .step__mark { width: 24px; height: 24px; font-size: 14px; }
.goal .step__mark { background: #fff; box-shadow: inset 0 0 0 2px var(--key-edge); }
.goal--done { opacity: 0.55; }
.goal--done .step__body { text-decoration: line-through; }
.goals__left { list-style: none; margin-top: 4px; color: var(--muted); font-size: 16px; padding-left: 12px; }
.exam-res { font-size: 18px; margin: 0; }
/* четыре окна — сеткой 2 × 2 */
.windows[data-n="4"] { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 16px; padding: 18px; align-items: stretch; }
.windows[data-n="4"].windows--icons { padding-left: 130px; }
.windows[data-n="4"] .win { height: auto; max-width: none; min-height: 0; }
.windows[data-n="4"] .win--max { position: absolute; }
.windows[data-n="4"] .win textarea { font-size: 19px; padding: 12px 14px; }
.cert__input { width: 100%; font: 24px 'Segoe UI', sans-serif; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; outline: none; text-align: center; }
.cert__input:focus { border-color: var(--accent); }
.card--cert { width: min(640px, calc(100% - 32px)); }
.cert {
  width: 100%;
  border: 4px double #d9a520;
  border-radius: 18px;
  padding: 26px 24px;
  background: linear-gradient(180deg, #fffdf5, #fff6dc);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  color: var(--ink);
}
.cert .star { animation: none; }
.cert__seal { font-size: 46px; }
.cert__head { font-size: 44px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: #b8860b; }
.cert__line { font-size: 17px; color: var(--muted); }
.cert__name { font-size: 32px; font-weight: 700; border-bottom: 2px solid #e6c56a; min-width: 60%; padding: 4px 12px; margin: 4px 0 8px; }
.cert__what { font-size: 24px; font-weight: 700; }
.cert__stars { display: flex; align-items: center; gap: 10px; font-size: 30px; margin-top: 8px; }
.cert__stars span:last-child { font-size: 16px; color: var(--muted); }
.cert__date { font-size: 14px; color: var(--muted); margin-top: 8px; }
.cert__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------ «Проверь себя», «Не умею», итог */
.course-wrap { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.course__check { background: #fff4d6; color: #7a4f00; font-size: 17px; }
.course__check:hover { filter: brightness(1.03); }
.goals__group { list-style: none; margin: 10px 0 2px; font-size: 14px; font-weight: 700; color: var(--muted); }
.goals__group:first-child { margin-top: 0; }
.goal .step__body { flex: 1; gap: 3px; }
.goal__skip { align-self: flex-start; border: 0; border-radius: 8px; padding: 2px 8px; font-size: 13px; background: transparent; color: var(--muted); cursor: pointer; }
.goal__skip:hover { background: #ffe2e2; color: #b42318; }
.course-wrap .course { flex: 1; }
.goal--skip { opacity: 0.75; }
.goal--skip .step__mark { background: #ffe2e2; color: #b42318; box-shadow: none; }
.goal--skip .step__body { color: #b42318; }
.card__sub { display: block; font-size: 16px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.card--res { width: min(640px, calc(100% - 32px)); }
.result { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.adv { width: 100%; text-align: left; border-radius: 14px; padding: 12px 16px; }
.adv h3 { margin: 0 0 6px; font-size: 18px; }
.adv ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.adv--know { background: #e7f8ef; }
.adv--need { background: #fff4e5; }
.adv__why { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.card--cert .adv { margin-top: 4px; }
.lvl__mark { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 99px; vertical-align: middle; }
.lvl__mark--know { background: #e7f8ef; color: #12805a; }
.lvl__mark--pass { background: #fff0d6; color: #9a5b00; }
@media print {
  body.print-cert #cert .adv { break-inside: avoid; margin-top: 16px; }
}

/* ------------------------------------------------------------ вход ученика */
.auth { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.auth__btn { font-size: 20px; padding: 14px 26px; background: #fff; color: var(--ink); }
.who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; background: rgba(255, 255, 255, 0.9); border-radius: 14px; padding: 8px 14px; color: var(--ink); }
.who__name { font-weight: 700; font-size: 18px; }
.who__st { color: var(--muted); font-size: 15px; }
.card--auth { gap: 12px; }
.auth__row { width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 15px; color: var(--muted); }
.auth__row .cert__input { text-align: left; font-size: 22px; }
.auth__show { align-self: flex-start; font-size: 15px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
#authmsg { min-height: 1.2em; margin: 0; }
.who .btn--ghost { color: var(--accent); }
#authmsg:empty { display: none; }
.exam-finish { margin-top: 14px; align-self: stretch; position: sticky; bottom: 0; box-shadow: 0 -10px 12px 2px var(--panel), 0 22px 0 4px var(--panel); flex: none; z-index: 2; background: #fff4d6; color: #7a4f00; font-size: 17px; }
.exam-finish:hover { filter: brightness(1.03); }

/* ------------------------------------------------------------ «Что-то не так?» */
.report-btn { margin-top: 12px; align-self: flex-start; border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.report-btn:hover { background: #eef0f8; color: var(--ink); }
.card--fb { gap: 12px; }
.fb__kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.fb__kind { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; color: var(--ink); cursor: pointer; }
.fb__kind span { font-size: 28px; }
.fb__kind:hover { border-color: #b9c3ff; }
.fb__kind--on { border-color: var(--accent); background: #eef1ff; }
.fb__text { font-size: 18px; text-align: left; }
#fbmsg:empty { display: none; }

/* ------------------------------------------------------------ рейтинг */
.tb__rank { border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; border-radius: 8px; padding: 4px 10px; font-size: 14px; margin-left: auto; margin-right: 8px; cursor: pointer; white-space: nowrap; }
.tb__rank:hover { background: rgba(255, 255, 255, 0.22); }
.tb__rank--up { animation: rankglow 1.6s ease-out; }
@keyframes rankglow {
  0% { background: #ffc93c; color: #3a2a00; transform: scale(1.15); box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.8); }
  40% { box-shadow: 0 0 0 10px rgba(255, 201, 60, 0); }
  100% { background: rgba(255, 255, 255, 0.12); color: #fff; transform: none; }
}
.rankup {
  position: fixed; right: 90px; bottom: 64px; z-index: 80; pointer-events: none;
  background: linear-gradient(135deg, #ffd86b, #ffb400); color: #3a2a00; font-weight: 700; font-size: 18px;
  padding: 8px 16px; border-radius: 99px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: rankup 3.6s ease-out forwards;
}
@keyframes rankup {
  0% { opacity: 0; transform: translateY(14px) scale(0.9); }
  12% { opacity: 1; transform: translateY(0) scale(1.05); }
  20% { transform: scale(1); }
  80% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-24px); }
}
.card--board { width: min(620px, calc(100% - 32px)); }
.brd { width: 100%; border-collapse: collapse; font-size: 16px; text-align: left; }
.brd th { font-size: 13px; color: var(--muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.brd td { padding: 6px 8px; border-bottom: 1px solid #f0f1f7; }
.brd__place { width: 54px; text-align: center; font-weight: 700; }
.brd__me td { background: #eef1ff; font-weight: 700; }
.brd__bar { display: inline-block; width: 60px; height: 6px; border-radius: 99px; background: #eceef7; margin-left: 8px; vertical-align: middle; overflow: hidden; }
.brd__bar i { display: block; height: 100%; background: linear-gradient(90deg, #39c98d, #1fae74); }
.tb__rank + .tb__lang { margin-left: 0; }
.brd__bot td { color: #5a6080; }

/* ------------------------------------------------------------ версия */
.ver__bump { background: #fff4d6; color: #7a4f00; }
.upd { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 90; border: 0; border-radius: 99px; padding: 10px 20px; font-size: 17px; font-weight: 600; background: #ffc93c; color: #3a2a00; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); cursor: pointer; animation: cardin 0.3s ease-out; }

/* ------------------------------------------------------------ постоянная панель рейтинга */
.mb { cursor: pointer; border-radius: 14px; padding: 10px 12px; background: linear-gradient(180deg, #1d2560, #141a46); color: #fff; box-shadow: 0 6px 18px rgba(20, 24, 60, 0.25); border: 1px solid rgba(255, 201, 60, 0.45); }
.mb:hover { border-color: #ffc93c; }
.mb__title { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: #ffc93c; margin-bottom: 6px; }
.mb__me { font-size: 12px; color: #fff; background: rgba(255, 255, 255, 0.14); border-radius: 99px; padding: 1px 8px; }
.mb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mb__row { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-size: 13px; }
.mb__row--bot .mb__name { color: #c8cdf0; }
.mb__row--me { background: linear-gradient(90deg, #4f6bff, #7c5cff); font-weight: 700; }
.mb__row--up { animation: mbup 1.8s ease-out; }
@keyframes mbup { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.9); transform: scale(1.05); } 60% { box-shadow: 0 0 0 8px rgba(255, 201, 60, 0); } 100% { transform: none; } }
.mb__place { width: 22px; text-align: center; font-weight: 700; color: #c8cdf0; flex: none; }
.mb__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb__done { color: #ffc93c; font-weight: 800; }
.mb__gap { text-align: center; color: #8d94c8; line-height: 0.8; }
.mb__note { margin-top: 6px; font-size: 12px; color: #c8cdf0; text-align: center; }
.mb--panel { margin-top: auto; flex: none; position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -12px 14px 2px var(--panel), 0 22px 0 4px var(--panel), 0 6px 18px rgba(20, 24, 60, 0.25); }
.panel .report-btn { margin-bottom: 10px; }
/* в контрольной снизу ещё кнопка «Я сделал всё, что смог» — панель рейтинга над ней */
.panel--exam .mb--panel { bottom: 62px; }
.panel--exam .exam-finish { z-index: 3; }
.mb--map { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); width: 230px; z-index: 2; }
@media (max-width: 1720px) {
  .mb--map { position: static; transform: none; width: min(420px, 100%); margin: 0 auto 16px; }
}

/* ------------------------------------------------------------ версия везде, профиль */
#appver { position: fixed; right: 14px; bottom: 10px; z-index: 30; font-size: 13px; color: rgba(255, 255, 255, 0.9); display: flex; gap: 10px; align-items: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
#appver.appver--hide { display: none; }
.tb__ver { color: rgba(255, 255, 255, 0.55); font-size: 12px; margin-left: 8px; }
.who__name { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 18px; color: var(--ink); cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.who__name:hover { background: #eef1ff; }
.card--prof { width: min(600px, calc(100% - 32px)); gap: 12px; }
.avs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; width: 100%; }
.av { font-size: 28px; padding: 6px 0; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.av:hover { border-color: #b9c3ff; }
.av--on { border-color: var(--accent); background: #eef1ff; transform: scale(1.06); }
#profmsg:empty { display: none; }
.brd__real { display: block; font-size: 12px; color: #9a6a00; font-weight: 400; }
.mb__real { color: #ffd98a; font-weight: 400; font-size: 11px; }

/* ------------------------------------------------------------ Проводник: места (Корзина, Флешка) */
.fx__places { display: flex; gap: 6px; padding: 6px 10px; background: #f4f6fc; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fx__place { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.fx__place:hover { border-color: #b9c3ff; }
.fx__place--on { border-color: var(--accent); background: #eef1ff; font-weight: 600; }
.fx__place--drive { animation: cardin 0.3s ease-out; }
.fx__eject { padding: 0 4px; border-radius: 4px; }
.fx__eject:hover { background: #dde2f2; }

/* ------------------------------------------------------------ окно «Сохранение» и «Сохранить изменения?» */
.wdlg { position: absolute; inset: 0; z-index: 5; background: rgba(20, 24, 60, 0.35); display: grid; place-items: center; }
.wdlg__box { width: min(360px, 92%); background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.wdlg__title { font-weight: 700; font-size: 16px; }
.wdlg__label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.wdlg__folders { display: flex; flex-wrap: wrap; gap: 6px; }
.wdlg__folder { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 14px; cursor: pointer; }
.wdlg__folder--on { border-color: var(--accent); background: #eef1ff; font-weight: 600; }
.wdlg__name, .wdlg__type { font: inherit; font-size: 16px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 8px; color: var(--ink); }
.wdlg__name:focus { border-color: var(--accent); outline: none; }
.wdlg__btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.wdlg__q { margin: 0; font-size: 16px; }

/* ------------------------------------------------------------ «Пуск»: программы, поиск; закреплённые */
.sm__search { width: 100%; font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 10px; border: 0; margin: 4px 0 8px; background: rgba(255, 255, 255, 0.92); color: var(--ink); outline: none; }
.sm__search:focus { box-shadow: 0 0 0 3px #7c8dff; }
.sm__progs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.sm__prog { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 13px; cursor: pointer; }
.sm__prog:hover { background: rgba(255, 255, 255, 0.18); }
.sm__prog[hidden] { display: none; }
.sm__hint { font-weight: 400; opacity: 0.7; font-size: 12px; margin-left: 6px; }
.tb__app--pinned { opacity: 0.75; border-bottom-color: transparent; }
.dicon--new { animation: cardin 0.3s ease-out; }

/* ------------------------------------------------------------ ловушка в браузере, викторина */
.app--browser { position: relative; }
.br__trap { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); border: 0; border-radius: 14px; padding: 14px 26px; font-size: 20px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff3d6e, #ff9a00); box-shadow: 0 8px 22px rgba(255, 61, 110, 0.5); cursor: pointer; animation: trap 0.9s ease-in-out infinite alternate; }
@keyframes trap { to { transform: translateX(-50%) scale(1.07); } }
.app--quiz { overflow: auto; }
.qz { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.qz__n { font-size: 13px; color: var(--muted); }
.qz__q { font-size: 20px; font-weight: 600; line-height: 1.35; }
.qz__opts { display: flex; flex-direction: column; gap: 8px; }
.qz__opt { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 17px; cursor: pointer; color: var(--ink); }
.qz__opt:hover { border-color: #b9c3ff; }
.qz__opt--right { border-color: var(--good); background: #e7f8ef; }
.qz__opt--wrong { border-color: #e5484d; background: #ffe2e2; }
.qz__why { font-size: 15px; color: #b42318; background: #fff1f1; border-radius: 10px; padding: 8px 12px; }
.qz__done { font-size: 22px; font-weight: 700; color: var(--good); text-align: center; padding: 30px 0; }

.brd__edit { border: 0; background: transparent; cursor: pointer; font-size: 13px; padding: 0 4px; border-radius: 6px; }
.brd__edit:hover { background: #eef1ff; }
#stmsg:empty { display: none; }

.lvl__lock { font-size: 14px; color: #8a6d1f; background: #fff4d6; border-radius: 8px; padding: 3px 8px; }
.levels .lvl--locked { opacity: 0.75; filter: grayscale(0.4); }

/* ------------------------------------------------------------ Блокнот: строка меню, «Открытие», «Шрифт» (уровень 13) */
.np-menu { display: flex; align-items: center; gap: 2px; padding: 3px 8px; background: #fff; border-bottom: 1px solid var(--line); font-size: 15px; }
.np-menu__btn { border: 0; background: transparent; font: inherit; color: var(--ink); padding: 3px 10px; cursor: pointer; }
.np-menu__btn:hover { background: #e6ebff; }
.win10 .np-menu__btn { border-radius: 0; }
.win10 .np-menu { background: #fafafa; }
.win11 .np-menu__btn { border-radius: 6px; }
.np-menu__gear { margin-left: auto; font-size: 17px; }
.wdlg__box--open, .wdlg__box--font { width: min(520px, 94%); }
.odlg { display: grid; grid-template-columns: 170px 1fr; gap: 10px; min-height: 120px; }
.odlg__folders { display: flex; flex-direction: column; gap: 4px; }
.odlg__folders .wdlg__folder { text-align: left; }
.odlg__files { border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 3px; max-height: 190px; overflow: auto; }
.odlg__file { border: 0; background: transparent; text-align: left; font: inherit; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.odlg__file:hover { background: #f1f3fb; }
.odlg__file--on { background: #dfe5ff; font-weight: 600; }
.odlg__empty { color: var(--muted); padding: 6px; }
.fdlg { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.fdlg__col { display: flex; flex-direction: column; gap: 4px; }
.fdlg__opt, .fdlg__size { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 8px; font-size: 15px; text-align: left; cursor: pointer; }
.fdlg__sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.fdlg__size { text-align: center; }
.fdlg__opt--on { border-color: var(--accent); background: #eef1ff; font-weight: 600; }
.fdlg__sample { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; min-height: 64px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }

/* вопрос «Какой Windows?» — две маленькие панели задач */
.winask { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.winask__opt { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; font: inherit; font-size: 17px; cursor: pointer; }
.winask__opt:hover { border-color: var(--accent); background: #f4f6ff; }
.winask__bar { width: 100%; height: 34px; border-radius: 6px; background: #1f2440; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.winask__bar--11 { justify-content: center; background: #e9edf7; }
.winask__bar i { font-style: normal; color: #4fa3ff; font-size: 20px; }
.winask__bar b { width: 16px; height: 16px; border-radius: 4px; background: #8fa0c8; }
/* персонаж хвалит после задания */
.buddy { margin: 0; font-size: 17px; color: #4a3a8a; background: #f1edff; border-radius: 12px; padding: 8px 14px; }

/* ------------------------------------------------------------ Проводник: виды, панель, поиск, рамка (уровень 14) */
.fx__grid { position: relative; }
.fx__grid--big .fx__item { width: 170px; }
.fx__grid--big .fx__icon { font-size: 92px; }
.fx__pic { display: inline-block; width: 120px; height: 100px; line-height: 100px; border-radius: 10px; background: linear-gradient(135deg, #e8f3ff, #fff2e0); box-shadow: inset 0 0 0 2px #fff, 0 2px 6px rgba(20, 24, 60, 0.15); font-size: 70px; }
.fx__grid--list { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
.fx__grid--list .fx__item { width: auto; display: flex; align-items: center; gap: 10px; text-align: left; padding: 3px 8px; }
.fx__grid--list .fx__icon { font-size: 22px; }
.fx__grid--list .fx__name { margin: 0; }
.fx__grid--table { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 6px 10px; }
.fx__thead, .fx__grid--table .fx__item { display: grid; grid-template-columns: 2.2fr 1.2fr 1.4fr 0.9fr; gap: 10px; align-items: center; }
.fx__thead { position: sticky; top: -6px; background: #fff; border-bottom: 1px solid var(--line); z-index: 1; }
.fx__th { font-size: 13px; color: var(--muted); padding: 6px 4px; cursor: pointer; border-radius: 6px; }
.fx__th:hover { background: #f1f4ff; }
.fx__th--on { color: var(--accent); font-weight: 700; }
.fx__grid--table .fx__item { width: auto; text-align: left; padding: 3px 4px; border-radius: 6px; }
.fx__cell { font-size: 14px; color: #4a5070; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx__cell--name { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.fx__cell--name .fx__icon { font-size: 20px; }
.fx__cell--name .fx__name { margin: 0; font-size: 15px; }
.fx__cell--size { text-align: right; }
.fx__where { font-size: 12px; color: var(--muted); }
.fx__tools { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.fx__tb { border: 0; background: transparent; font: inherit; font-size: 14px; padding: 5px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.fx__tb:hover { background: #eef1fb; }
.fx__tools--10 { background: #f3f3f3; padding: 0 6px; gap: 0; }
.fx__tab { border: 0; background: transparent; font: inherit; font-size: 14px; padding: 7px 14px; cursor: pointer; color: var(--ink); border-bottom: 2px solid transparent; }
.fx__tab:hover { background: #e5f1fb; }
.fx__tab[data-fxm="view"] { color: #0063b1; }
.fx__search { margin-left: auto; width: 220px; font: inherit; font-size: 14px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; user-select: text; }
.fx__tools--10 .fx__search { margin: 4px 0 4px auto; border-radius: 0; }
.fx__search:focus { outline: none; border-color: var(--accent); }
.fx__band { position: absolute; border: 1px solid #3f6bff; background: rgba(79, 107, 255, 0.15); pointer-events: none; z-index: 2; }
.fx__ghost { position: fixed; z-index: 100; pointer-events: none; background: #fff; border: 2px solid var(--accent); border-radius: 8px; padding: 4px 10px; font-size: 15px; box-shadow: 0 6px 16px rgba(20, 24, 60, 0.25); }
.fx__item--drop, .fx__place--drop { background: #d4f5e6 !important; border-color: #1fae74 !important; }

/* ------------------------------------------------------------ окна к краю, «свернуть всё» (уровень 15) */
.snap-hint { position: absolute; top: 6px; bottom: 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.35); border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 30px rgba(79, 107, 255, 0.4); pointer-events: none; z-index: 0; }
.snap-hint--left { left: 6px; width: calc(50% - 9px); }
.snap-hint--right { right: 6px; width: calc(50% - 9px); }
.snap-hint--top { left: 6px; right: 6px; }
.tb__showdesk { align-self: stretch; width: 10px; margin: -6px -10px -6px 6px; border: 0; border-left: 1px solid rgba(255, 255, 255, 0.25); background: transparent; cursor: pointer; }
.tb__showdesk:hover { background: rgba(255, 255, 255, 0.25); }

/* ------------------------------------------------------------ значки у часов (уровень 16) */
.tray { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.tray + .tb__clock { margin-left: 4px; }
.tb__clock { border: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.tb__clock:hover, .tray__ic:hover, .tray__group:hover { background: rgba(255, 255, 255, 0.18); }
.tray__ic, .tray__group { position: relative; border: 0; background: transparent; color: #fff; font-size: 17px; padding: 5px 6px; border-radius: 6px; cursor: pointer; line-height: 1; }
.tray__group { padding: 6px 10px; letter-spacing: 2px; }
.tray__no { position: absolute; right: 1px; bottom: 1px; font-style: normal; font-size: 10px; color: #fff; background: #e5484d; border-radius: 50%; width: 13px; height: 13px; line-height: 13px; text-align: center; letter-spacing: 0; }
.traynotes { display: flex; align-items: center; }
.tray__badge { position: absolute; top: -2px; right: -4px; background: #4f6bff; color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 5px; font-style: normal; }
.tray__badge--11 { position: static; border: 0; cursor: pointer; font-size: 12px; padding: 2px 7px; margin-left: 2px; }
.traypop { position: fixed; right: 12px; bottom: 64px; width: 340px; max-height: calc(100vh - 90px); overflow: auto; z-index: 70; background: #f7f8fc; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(10, 14, 40, 0.4); padding: 14px; display: flex; flex-direction: column; gap: 12px; animation: cardin 0.15s ease-out; }
.win10 .traypop { border-radius: 0; background: #f2f2f2; }
.tp__title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tp__back { border: 0; background: #e6e9f5; border-radius: 6px; font-size: 18px; width: 28px; cursor: pointer; }
.tp__row { display: flex; align-items: center; gap: 10px; }
.tp__mute { border: 0; background: #e6e9f5; border-radius: 8px; font-size: 20px; width: 40px; height: 36px; cursor: pointer; }
.tp__vol { flex: 1; accent-color: var(--accent); }
.tp__val { width: 30px; text-align: right; }
.tp__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp__tile { border: 0; border-radius: 10px; background: #e6e9f5; padding: 10px; display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.tp__tile span { flex: 1; }
.tp__tile i { font-style: normal; font-size: 18px; color: var(--muted); }
.tp__tile--on { background: var(--accent); color: #fff; }
.tp__tile--on i { color: #fff; }
.tp__nets { display: flex; flex-direction: column; gap: 4px; }
.tp__net { background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.tp__net:hover { background: #eef1ff; }
.tp__net--on { box-shadow: inset 3px 0 0 var(--good); }
.tp__nethead { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.tp__nethead small { color: var(--muted); }
.tp__ok { color: var(--good) !important; margin-left: auto; }
.tp__pass { display: flex; gap: 6px; }
.tp__passin { flex: 1; font: inherit; font-size: 15px; padding: 5px 8px; border: 2px solid var(--line); border-radius: 6px; user-select: text; }
.tp__passin:focus { outline: none; border-color: var(--accent); }
.tp__bat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.tp__bat .btn { margin-left: auto; }
.tp__notes { display: flex; flex-direction: column; gap: 6px; }
.tp__note, .npop { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.tp__notehead { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.tp__notehead button { margin-left: auto; border: 0; background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); }
.tp__empty { color: var(--muted); font-size: 14px; }
.npop { position: fixed; right: 12px; bottom: 64px; width: 320px; z-index: 71; box-shadow: 0 14px 34px rgba(10, 14, 40, 0.35); cursor: pointer; animation: cardin 0.25s ease-out; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal__head button { border: 0; background: #e6e9f5; border-radius: 6px; width: 32px; height: 28px; font-size: 18px; cursor: pointer; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal__grid i { font-style: normal; font-size: 12px; color: var(--muted); }
.cal__d { border: 0; background: transparent; border-radius: 50%; aspect-ratio: 1; font: inherit; font-size: 14px; cursor: pointer; }
.cal__d:hover { background: #e6e9f5; }
.cal__d--today { background: var(--accent); color: #fff; }
.cal__d--pick { box-shadow: inset 0 0 0 2px var(--good); font-weight: 700; }
.cal__pick { margin-top: 8px; font-size: 14px; text-align: center; min-height: 20px; }

/* ------------------------------------------------------------ загрузки, «Ножницы» (уровень 17) */
.br__pic { font-size: 84px; text-align: center; padding: 6px 0 0; line-height: 1.1; }
.br__dl { align-self: flex-start; margin: 0 16px 12px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 16px; padding: 8px 16px; cursor: pointer; }
.br__dl:hover { filter: brightness(1.08); }
.br__dlbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); background: #f3f5fb; font-size: 14px; }
.br__dlshow { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.br__dlbar .br__x { margin-left: auto; cursor: pointer; }
.snip { position: fixed; inset: 0; z-index: 120; background: rgba(10, 14, 40, 0.45); cursor: crosshair; }
.snip__hint { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 18px; font-size: 17px; box-shadow: var(--shadow); pointer-events: none; }
.snip__box { position: absolute; display: none; border: 2px solid #fff; background: rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 9999px rgba(10, 14, 40, 0.2); pointer-events: none; }
.snipflash { position: fixed; inset: 0; z-index: 121; background: #fff; pointer-events: none; animation: snipflash 0.45s ease-out forwards; }
@keyframes snipflash { from { opacity: 0.9; } to { opacity: 0; } }

/* ------------------------------------------------------------ питание, блокировка, «не отвечает» (уровень 18) */
.pwr { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; text-align: center; animation: pwrin 0.35s ease-out; }
@keyframes pwrin { from { opacity: 0; } to { opacity: 1; } }
.pwr--sleep, .pwr--off { background: #000; }
.pwr--boot, .pwr--upd { background: #0b1a3a; }
.pwr--block { background: rgba(10, 14, 40, 0.75); }
.pwr--lock { background: linear-gradient(160deg, #1d2b64, #3b5bdb 55%, #f8cdda); }
.pwr__sleep { font-size: 70px; opacity: 0.35; animation: pwrbreath 2.4s ease-in-out infinite; }
@keyframes pwrbreath { 50% { opacity: 0.1; } }
.pwr__small { font-size: 18px; opacity: 0.8; max-width: 560px; }
.pwr__big { font-size: 28px; font-weight: 600; }
.pwr__btn { width: 110px; height: 110px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.6); background: transparent; color: #fff; font-size: 54px; cursor: pointer; }
.pwr__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.pwr__logo { font-size: 90px; color: #4fa3ff; }
.pwr__spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: pwrspin 0.9s linear infinite; }
@keyframes pwrspin { to { transform: rotate(360deg); } }
.pwr__card { background: #fff; color: var(--ink); border-radius: 16px; padding: 26px 30px; max-width: 560px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.pwr__card .pwr__small { opacity: 1; color: #3a4060; }
.pwr__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pwr__time { font-size: 110px; font-weight: 300; line-height: 1; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
.pwr__date { font-size: 28px; margin-bottom: 30px; }
.pwr__ava { width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-size: 64px; }
.pwr__pin { display: flex; gap: 6px; }
.pwr__pin--shake { animation: pwrshake 0.4s; }
@keyframes pwrshake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.pwr__pinin { width: 220px; font: inherit; font-size: 22px; padding: 8px 12px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.9); text-align: center; letter-spacing: 6px; user-select: text; }
.pwr__pinin:focus { outline: none; border-color: #fff; }
.pwr__go { width: 48px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.3); color: #fff; font-size: 24px; cursor: pointer; }
.pwr__msg { min-height: 24px; font-size: 17px; color: #ffe3df; }
.pwr__forgot { border: 0; background: transparent; color: #fff; text-decoration: underline; font: inherit; font-size: 16px; cursor: pointer; opacity: 0.85; }
.sm__user--btn { cursor: pointer; border-radius: 10px; padding: 4px 6px; margin: -4px -6px; }
.sm__user--btn:hover { background: rgba(79, 107, 255, 0.1); }
.win--hung .win__title::after { content: ' (Не отвечает)'; color: #b42318; font-weight: 400; }
.win--hung > textarea, .win--hung > .app { filter: grayscale(1) brightness(1.15); opacity: 0.6; cursor: wait; }
.upd-dlg { position: absolute; right: 24px; bottom: 24px; width: 360px; z-index: 50; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; animation: cardin 0.3s ease-out; }

/* ------------------------------------------------------------ глава 4: «Параметры» */
.app--settings { display: flex; flex-direction: column; background: #f3f3f3; position: relative; }
.set { flex: 1; display: flex; min-height: 0; font-size: 15px; color: var(--ink); }
.set--11 { background: #f3f6fb; }
.set__home { flex: 1; padding: 16px 20px; overflow: auto; }
.set__title { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.set__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.set__tile { border: 1px solid transparent; background: #fff; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: 14px; cursor: pointer; text-align: center; }
.set__tile span { font-size: 28px; }
.set__tile:hover { border-color: #9ec9f0; background: #eef6fd; }
.set__split { flex: 1; display: flex; min-height: 0; }
.set__side { width: 210px; flex: none; background: #fbfbfb; border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.set__split--11 .set__side { background: transparent; border: 0; }
.set__nav, .set__home-btn { border: 0; background: transparent; font: inherit; font-size: 14px; text-align: left; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.set__nav:hover, .set__home-btn:hover { background: #e8ecf6; }
.set__nav--on { background: #e1e8fb; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.set--10 .set__nav--on { border-radius: 0; box-shadow: inset 4px 0 0 #0078d4; background: #e5e5e5; }
.set__cat { font-weight: 700; padding: 8px 10px 4px; }
.set__page { flex: 1; padding: 14px 20px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.set__page h3 { margin: 0 0 4px; font-size: 20px; }
.set__crumb { color: var(--muted); font-size: 14px; }
.set__crumb button { border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.set__cards { display: flex; flex-direction: column; gap: 4px; }
.set__card { border: 0; background: #fff; border-radius: 8px; padding: 12px 14px; display: flex; justify-content: space-between; font: inherit; cursor: pointer; text-align: left; }
.set__card:hover { background: #eef1fb; }
.set__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: 8px; padding: 10px 12px; }
.set__row > span:first-child { flex: 1; min-width: 160px; }
.set__row select, .set__row input[type="range"] { font: inherit; }
.set__tog { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 6px; font: inherit; cursor: pointer; }
.set__tog i { width: 40px; height: 20px; border-radius: 99px; border: 2px solid #555; position: relative; }
.set__tog i::after { content: ''; position: absolute; top: 2px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #555; transition: left 0.15s; }
.set__tog--on i { background: var(--accent); border-color: var(--accent); }
.set__tog--on i::after { left: 22px; background: #fff; }
.set__note { color: var(--muted); font-size: 14px; margin: 0; }
.set__ok { color: var(--good); margin: 0; font-weight: 600; }
.set__bad { color: #b42318; margin: 0; font-weight: 600; }
.set__list { display: flex; flex-direction: column; gap: 4px; }
.set__item { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; border: 0; }
.set__item b { flex: none; }
.set__item small { flex: 1; color: var(--muted); }
.set__item--btn { cursor: pointer; text-align: left; }
.set__item--btn:hover { background: #eef1ff; }
.set__walls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.set__wall { height: 70px; border: 3px solid transparent; border-radius: 8px; cursor: pointer; color: #fff; font: inherit; font-size: 13px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; text-shadow: 0 1px 2px #000; }
.set__wall--on { border-color: var(--accent); }
.set__disk { background: #fff; border-radius: 8px; padding: 10px 12px; }
.set__bar { height: 10px; border-radius: 99px; background: #e5e7ef; overflow: hidden; margin-top: 6px; }
.set__bar i { display: block; height: 100%; background: var(--accent); }
.set__bar--red i { background: #e5484d; }
.set__check { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 6px; padding: 6px 10px; flex-wrap: wrap; }
.set__check small { color: var(--muted); }
.set__check em { width: 100%; color: #b42318; font-size: 13px; font-style: normal; }
.set__msg { min-height: 18px; color: #b42318; font-size: 14px; }
.set__beg { align-items: center; text-align: center; }
.set__link { border: 0; background: transparent; color: #9aa0b8; font-size: 12px; cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------------ глава 4: мастер установки */
.app--installer { display: flex; flex-direction: column; background: #fff; position: relative; }
.ins { flex: 1; display: flex; min-height: 0; }
.ins__side { width: 140px; flex: none; background: linear-gradient(#2b4fd8, #6a38c9); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 54px; text-align: center; padding: 10px; }
.ins__side span { font-size: 15px; font-weight: 700; }
.ins__side small { font-size: 12px; opacity: 0.8; }
.ins__main { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; overflow: auto; font-size: 15px; }
.ins__main h3 { margin: 0; font-size: 18px; }
.ins__main p { margin: 0; }
.ins__box { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 13px; max-height: 90px; overflow: auto; background: #fafafa; }
.ins__radio { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.ins__radio--big { flex-wrap: wrap; background: #f5f6fb; border-radius: 8px; padding: 8px 10px; }
.ins__radio--big small { width: 100%; padding-left: 24px; color: var(--muted); }
.ins__checks { display: flex; flex-direction: column; gap: 6px; }
.ins__checks--scroll { height: 96px; overflow-y: scroll; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.ins__filler { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ins__check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ins__btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: auto; padding-top: 6px; }
.ins__btn { border: 1px solid #b9bfd4; background: #f3f4f8; border-radius: 4px; padding: 5px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.ins__btn--main { border-color: #0067c0; background: #0067c0; color: #fff; }
.ins__btn:disabled { opacity: 0.45; cursor: default; }
.ins__path { border: 1px solid var(--line); padding: 5px 8px; font-family: Consolas, monospace; font-size: 13px; }
.ins__bar { height: 12px; border-radius: 99px; background: #e5e7ef; overflow: hidden; }
.ins__bar i { display: block; height: 100%; width: 30%; background: var(--good); animation: insbar 1.6s ease-in-out forwards; }
@keyframes insbar { to { width: 100%; } }
.ins__offer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: linear-gradient(#fff7d6, #fff); border-radius: 12px; padding: 12px; }
.ins__offer-icon { font-size: 48px; }
.ins__accept { border: 0; border-radius: 10px; background: linear-gradient(#3fd27f, #1fae74); color: #fff; font: inherit; font-size: 20px; font-weight: 700; padding: 12px 34px; cursor: pointer; box-shadow: 0 6px 16px rgba(31, 174, 116, 0.4); }
.ins__decline { border: 0; background: transparent; color: #c3c7d4; font-size: 12px; cursor: pointer; }
.ins__ss { flex: 1; background: #0063b1; color: #fff; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.ins__ss h2 { margin: 0; font-size: 26px; font-weight: 400; }
.ins__ss p { margin: 0; }
.ins__more { align-self: flex-start; border: 0; background: transparent; color: #fff; text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.ins__ss-btns { margin-top: auto; display: flex; gap: 10px; justify-content: flex-end; }
.ins__ss-btn { border: 2px solid #fff; background: transparent; color: #fff; font: inherit; padding: 6px 16px; cursor: pointer; }

/* ------------------------------------------------------------ глава 4: вид стола, мусор, печать, сайты */
.desk--dark .win { background: #23263a; }
.desk--dark .win__bar, .desk--dark .np-menu { background: #2c3048; color: #e9ebf7; border-color: #3a3f5c; }
.desk--dark .win > textarea { color: #e9ebf7; }
.desk--dark .br__page { background: #23263a; color: #e9ebf7; }
.desk--dark .app--browser, .desk--dark .br__bar { background: #2c3048; }
.desk--dark .np-menu__btn { color: #e9ebf7; }
.desk--dark .np-menu__btn:hover { background: #3a3f5c; }
.desk--dark .win__btns { color: #b9bdd6; }
.desk--scaled .win textarea { font-size: calc(26px * var(--ts, 1)) !important; }
.desk--scaled .fx__name, .desk--scaled .set, .desk--scaled .br__page { font-size: calc(15px * var(--ts, 1)); }
.desk--scaled .br__page { font-size: calc(22px * var(--ts, 1)); }
.look-ov { position: fixed; inset: 0; z-index: 8; pointer-events: none; mix-blend-mode: multiply; }
body.cursor-2, body.cursor-2 * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M4 4 L4 40 L14 30 L22 46 L28 43 L20 28 L34 28 Z' fill='white' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") 4 4, auto !important; }
body.cursor-3, body.cursor-3 * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M6 6 L6 66 L23 50 L36 76 L46 71 L33 46 L56 46 Z' fill='%23ffd23f' stroke='black' stroke-width='3'/%3E%3C/svg%3E") 6 6, auto !important; }
.dicon--junk .dicon__img { filter: drop-shadow(0 0 6px #ff5a5a); }
.wdlg__box--print { width: min(420px, 94%); }
.wdlg__name--short { width: 80px; padding: 3px 8px; font-size: 14px; }
.scan-dlg { right: auto; left: 50%; bottom: auto; top: 30%; transform: translateX(-50%); }
.br__fakes { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px; justify-content: center; }
.br__fake { border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-size: 19px; font-weight: 800; color: #fff; background: linear-gradient(#ff5a3c, #d6281b); box-shadow: 0 4px 10px rgba(214, 40, 27, 0.4); cursor: pointer; animation: fakeblink 1.2s infinite; }
.br__fake:nth-child(2) { background: linear-gradient(#3fd27f, #1fae74); animation-delay: 0.4s; }
.br__fake:nth-child(3) { background: linear-gradient(#4f8bff, #2b55d8); animation-delay: 0.8s; }
@keyframes fakeblink { 50% { transform: scale(1.05); } }
.br__dl--small { background: transparent; color: var(--accent); text-decoration: underline; font-size: 14px; padding: 4px 16px; }

/* пять окон (контрольная 4) — сеткой, как четыре */
.windows[data-n="5"] { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 16px; padding: 18px; align-items: stretch; }
.windows[data-n="5"].windows--icons { padding-left: 130px; }
.windows[data-n="5"] .win { height: auto; max-width: none; min-height: 0; }
.windows[data-n="5"] .win--max { position: absolute; }
.windows[data-n="5"] .win textarea { font-size: 19px; padding: 12px 14px; }

/* «Параметры» и установщик — окна побольше; длинные подписи в списках не распирают окно */
.win:has(.app--settings), .win:has(.app--installer) { max-width: 760px; flex-basis: 760px; height: min(68vh, 500px); }
.set__page { min-width: 0; }
.set__item small { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ «Быстрые клавиши» 11–15: Win+V, Диспетчер задач, закладки */
.cliphist { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); width: 360px; z-index: 72; background: #f7f8fc; border-radius: 14px; box-shadow: 0 18px 40px rgba(10, 14, 40, 0.4); padding: 12px; display: flex; flex-direction: column; gap: 6px; animation: cardin 0.15s ease-out; }
.cliphist__item { border: 0; background: #fff; border-radius: 8px; padding: 9px 12px; text-align: left; font: inherit; font-size: 15px; cursor: pointer; }
.cliphist__item:hover { background: #e6ebff; }
.tm { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); width: 440px; z-index: 72; background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(10, 14, 40, 0.4); display: flex; flex-direction: column; overflow: hidden; font-size: 14px; }
.tm__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-weight: 700; background: #f3f4f8; }
.tm__x { border: 0; background: transparent; font-size: 16px; cursor: pointer; }
.tm__cols, .tm__row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; padding: 6px 14px; }
.tm__cols { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.tm__row { border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.tm__row:hover { background: #eef2ff; }
.tm__row--on { background: #dde5ff; }
.tm__hung { color: #b42318; }
.tm__foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); }
.br__marks { display: flex; gap: 6px; padding: 4px 10px; border-bottom: 1px solid var(--line); background: #f8f9fd; }
.br__mark { border: 0; background: transparent; border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 13px; cursor: pointer; }
.br__mark:hover { background: #e6ebff; }

/* ------------------------------------------------------------ «Word» (глава 5, js/doc.js) */
.win:has(.app--doc) { max-width: 1040px; flex: 1.7 1 0; height: min(80vh, 700px); }
.app--doc { display: flex; flex-direction: column; background: #f3f2f1; font-size: 13px; }
.dw__tabs { display: flex; gap: 2px; padding: 0 8px; background: #2b579a; flex: none; }
.dw__tab { border: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; padding: 6px 12px 5px; border-radius: 4px 4px 0 0; cursor: pointer; }
.dw__tab:hover { background: rgba(255, 255, 255, 0.15); }
.dw__tab--on { background: #f3f2f1; color: #2b579a; font-weight: 600; }
.dw__tab--file { font-weight: 600; }
.dw__ribbon { display: flex; flex-wrap: wrap; row-gap: 2px; gap: 2px; padding: 4px 6px 0; background: #f3f2f1; border-bottom: 1px solid #d6d6d6; flex: none; min-height: 64px; }
.dw__grp { display: flex; flex-direction: column; padding: 0 6px; border-right: 1px solid #dcdcdc; flex: none; }
.dw__grpbody { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; max-width: 440px; flex: 1; }
.dw__grpbody--col { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; }
.dw__grpbody--col .dw__b { justify-content: flex-start; height: 23px; }
.dw__grplabel { font-size: 11px; color: #666; text-align: center; padding: 2px 0 3px; }
.dw__b { border: 1px solid transparent; background: transparent; border-radius: 3px; min-width: 24px; height: 26px; padding: 0 4px; font: inherit; font-size: 13px; color: #222; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 2px; white-space: nowrap; }
.dw__b:hover { background: #e1dfdd; border-color: #c8c6c4; }
.dw__b--on { background: #c8d7f0; border-color: #8aa9db; }
.dw__b b, .dw__b i, .dw__b u { font-family: 'Times New Roman', serif; font-size: 16px; }
.dw__combo { background: #fff; border-color: #c8c6c4; justify-content: space-between; min-width: 46px; }
.dw__combo--font { min-width: 112px; }
.dw__a { font-weight: 700; border-bottom: 3px solid #e01b1b; line-height: 1; font-size: 15px; }
.dw__hl { border-bottom: 3px solid #ffef3a; line-height: 1; }
.dw__clear { font-weight: 700; font-size: 15px; position: relative; }
.dw__clear::after { content: '🧽'; position: absolute; right: -9px; bottom: -4px; font-size: 10px; }
.dw__sh1 { color: #2f5496; font-size: 14px; }
.dw__sh2 { color: #2f5496; font-size: 12px; }
.dw__sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.25); vertical-align: middle; }
.dw__body { flex: 1; min-height: 0; overflow: auto; position: relative; background: #e6e6e6; padding: 18px 20px 40px; }
.dw__wrap { position: relative; width: max-content; margin: 0 auto; }
.dw__wrap--notes { padding-right: 200px; }
.dw__sheet {
  position: relative; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
  padding: 56px 60px; outline: none; user-select: text; cursor: text; overflow: hidden;
  font: 17.6px/1.15 Calibri, 'Segoe UI', sans-serif; color: #000; caret-color: #000;
}
.dw__sheet ::selection { background: #b4cdf5; }
.dw__sheet p { margin: 0 0 8px; min-height: 1em; }
.dw__sheet h1 { font-size: 25.6px; font-weight: 600; color: #2f5496; margin: 14px 0 8px; }
.dw__sheet h2 { font-size: 20.8px; font-weight: 600; color: #2f5496; margin: 10px 0 6px; }
.dw__sheet ul, .dw__sheet ol { margin: 0 0 8px; padding-left: 34px; }
.dw__sheet li { margin: 0 0 3px; }
.dw__sheet table.dtab { border-collapse: collapse; width: 100%; margin: 4px 0 10px; table-layout: fixed; }
.dw__sheet table.dtab td, .dw__sheet table.dtab th { border: 1px solid #555; padding: 4px 6px; vertical-align: top; height: 26px; word-wrap: break-word; }
.dpb { display: block; position: relative; margin: 0 -60px; height: 30px; user-select: none; }
.dpb::before { content: '···················· Разрыв страницы ····················'; position: absolute; left: 0; right: 0; top: 4px; text-align: center; font-size: 11px; color: #8a8a8a; white-space: nowrap; overflow: hidden; }
.dpic { display: inline-block; position: relative; vertical-align: bottom; margin: 2px 4px; user-select: none; cursor: pointer; background: #eef3fb; border-radius: 6px; aspect-ratio: 4 / 3; container-type: inline-size; }
.dpic__img { display: grid; place-items: center; width: 100%; height: 100%; font-size: 60cqw; line-height: 1; }
.dpic--wrap { float: right; margin: 4px 0 8px 14px; }
.dpic--wrapl { float: left; margin: 4px 14px 8px 0; }
.dpic__h { display: none; position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: #fff; border: 2px solid #2b579a; border-radius: 2px; cursor: nwse-resize; }
.dpic--sel { outline: 2px solid #2b579a; outline-offset: 1px; }
.dpic--sel .dpic__h { display: block; }
.dwide { width: 700px; margin: 6px 0; padding: 18px 0; text-align: center; font-size: 30px; font-weight: 700; color: #b42318; background: linear-gradient(90deg, #fff3b0, #ffd6e7); border-radius: 10px; user-select: none; }
.dw__sheet--cut { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22), inset -4px 0 0 #e01b1b; }
.dcm { background: #fde7a7; border-bottom: 2px solid #e8a400; }
.dw__over { position: absolute; left: 0; top: 0; pointer-events: none; }
.dw__pageline { position: absolute; left: 0; border-top: 2px dashed #b9b9b9; }
.dw__pageline span { position: absolute; right: 6px; top: 2px; font-size: 10px; color: #9a9a9a; }
.dw__pnum { position: absolute; left: 0; display: flex; justify-content: center; font-size: 13px; color: #444; }
.dw__pnum--right { justify-content: flex-end; padding-right: 60px; }
.dw__sq { position: absolute; height: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='4'%3E%3Cpath d='M0 3 L1.5 1 L3 3 L4.5 1 L6 3' fill='none' stroke='%23e01b1b' stroke-width='1'/%3E%3C/svg%3E") repeat-x; }
.dw__cut { position: absolute; top: 120px; background: #e01b1b; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.dw__notes { position: absolute; right: 0; top: 0; width: 186px; display: none; }
.dw__notes--on { display: block; }
.dw__note { position: absolute; left: 0; right: 0; background: #fff8dc; border: 1px solid #e8c766; border-left: 4px solid #e8a400; border-radius: 6px; padding: 7px 8px; font-size: 13px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; gap: 4px; }
.dw__notebtns { display: flex; gap: 4px; flex-wrap: wrap; }
.dw__notebtns .btn--small { padding: 3px 7px; font-size: 12px; }
.dw__status { flex: none; display: flex; gap: 18px; padding: 3px 12px; background: #2b579a; color: #fff; font-size: 12px; }
.dw__statusr { margin-left: auto; }
.dw__find { position: absolute; right: 16px; top: 8px; z-index: 6; width: 280px; background: #fff; border: 1px solid #c8c6c4; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.dw__find label { display: flex; flex-direction: column; gap: 2px; color: #555; }
.dw__find input { font: inherit; font-size: 15px; padding: 5px 8px; border: 2px solid #c8c6c4; border-radius: 6px; user-select: text; }
.dw__find input:focus { border-color: #2b579a; outline: none; }
.dw__findhead { display: flex; justify-content: space-between; font-weight: 700; }
.dw__findbtns { display: flex; gap: 6px; justify-content: flex-end; }
.dw__x { border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.dw__grid { position: absolute; z-index: 7; background: #fff; border: 1px solid #c8c6c4; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); padding: 8px; }
.dw__gridhead, .dw__gridsize { font-size: 12px; color: #444; padding: 2px 0 6px; }
.dw__cells { display: grid; grid-template-columns: repeat(8, 18px); gap: 3px; }
.dw__cells i { width: 18px; height: 18px; border: 1px solid #bbb; background: #fff; cursor: pointer; }
.dw__cells i.on { background: #fde7a7; border-color: #e8a400; }
.dw__dlg { z-index: 8; }

/* ------------------------------------------------------------ глава 6: «живые» сайты (js/web.js) */
.br__site { flex: 1; min-height: 0; overflow: auto; outline: none; background: #fff; position: relative; font-size: 15px; user-select: text; }
/* Браузер с «живым» сайтом (почта, поиск, облако) — окно побольше */
.win:has(.br__site) { max-width: 920px; flex: 1.6 1 0; height: min(76vh, 620px); }
.sr:not(.sr--home) { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.sr:not(.sr--home) .sr__tabs, .sr:not(.sr--home) .sr__out { grid-column: 1 / -1; }
.sr__out { display: flex; flex-direction: column; gap: 4px; }
.br__verdict { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 12px; border-top: 1px solid var(--line); background: #f8f9fd; font-size: 14px; }
.br__vmark { color: var(--muted); font-weight: 600; margin-left: auto; }
/* Искалка */
.sr { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.sr--home { align-items: center; padding-top: 40px; }
.sr__logo { font-size: 26px; color: #e8590c; }
.sr--home .sr__logo { font-size: 40px; }
.sr__logo b { color: #1c7ed6; }
.sr__form { display: flex; gap: 6px; width: min(560px, 100%); }
.sr__q { flex: 1; font: inherit; font-size: 17px; padding: 8px 12px; border: 2px solid #e8590c; border-radius: 10px; outline: none; user-select: text; }
.sr__go { border: 0; background: #e8590c; color: #fff; border-radius: 10px; padding: 0 16px; font-weight: 600; }
.sr__tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.sr__tab { border: 0; background: transparent; padding: 6px 10px; font: inherit; color: var(--muted); border-bottom: 3px solid transparent; }
.sr__tab--on { color: var(--ink); border-bottom-color: #e8590c; font-weight: 600; }
.sr__count { color: var(--muted); font-size: 12px; }
.sr__res { padding: 6px 8px; border-radius: 8px; }
.sr__res--ad { background: #fff8e6; }
.sr__ad { display: inline-block; font-size: 11px; font-weight: 700; color: #b06000; border: 1px solid #e0b060; border-radius: 4px; padding: 0 5px; margin-bottom: 2px; }
.sr__title { display: block; color: #1a0dab; font-size: 17px; cursor: pointer; text-decoration: underline; }
.sr__url { color: #0b7a3e; font-size: 13px; }
.sr__snip { color: #3a4060; font-size: 14px; }
.sr__none { padding: 16px; background: #f3f5fb; border-radius: 10px; line-height: 1.5; }
.sr__imgs { display: flex; flex-wrap: wrap; gap: 10px; }
.sr__img { width: 120px; height: 110px; border-radius: 10px; background: #eef3fb; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 54px; cursor: context-menu; }
.sr__img span { font-size: 11px; color: var(--muted); }
.sr__hint { color: var(--muted); font-size: 13px; }
/* чат-бот и картинка нейросети */
.bot { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.bot__head { font-weight: 700; font-size: 17px; }
.bot__head small { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 6px; }
.bot__msg { background: #eef1ff; border-radius: 12px; padding: 10px 14px; max-width: 85%; }
.bot__msg--me { align-self: flex-end; background: #d3f5d3; }
.bot__ask { font-weight: 600; }
.bot__btns { display: flex; gap: 8px; }
.bot__res { background: #e9f9ef; border-radius: 10px; padding: 10px 14px; }
.odd { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.odd__title { font-weight: 800; color: #c92a2a; }
.odd__pic { position: relative; height: 230px; border-radius: 12px; overflow: hidden; background: linear-gradient(#9ad0ff, #d8f0ff 60%, #8bc34a 61%); cursor: crosshair; }
.odd__sun { position: absolute; font-size: 34px; }
.odd__cat { position: absolute; left: 34%; top: 20%; font-size: 130px; line-height: 1; }
.odd__eye { position: absolute; left: 49%; top: 29%; font-size: 22px; }
.odd__bus { position: absolute; left: 72%; top: 64%; font-size: 40px; }
.odd__sign { position: absolute; left: 10%; top: 68%; background: #fff; border: 3px solid #1c7ed6; border-radius: 6px; padding: 2px 6px; font-size: 12px; font-weight: 800; color: #1c7ed6; line-height: 1.1; }
.odd__spot { position: absolute; border-radius: 10px; }
.odd__spot--on { outline: 3px solid #e01b1b; background: rgba(224, 27, 27, 0.12); }
.odd__note { color: var(--muted); font-size: 14px; }
/* Кот-почта */
.ml { display: flex; flex-direction: column; height: 100%; position: relative; }
.ml__top { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #1c7ed6; color: #fff; font-size: 14px; }
.ml__wrap { flex: 1; display: flex; min-height: 0; }
.ml__side { width: 150px; flex: none; display: flex; flex-direction: column; gap: 3px; padding: 8px; border-right: 1px solid var(--line); background: #f8f9fd; }
.ml__new { border: 0; background: #1c7ed6; color: #fff; border-radius: 10px; padding: 8px; font: inherit; font-weight: 600; margin-bottom: 6px; }
.ml__folder { border: 0; background: transparent; text-align: left; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; }
.ml__folder b { background: #1c7ed6; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 12px; }
.ml__folder--on { background: #dfe9ff; font-weight: 600; }
.ml__main { flex: 1; min-width: 0; overflow: auto; }
.ml__row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #eef0f6; cursor: pointer; font-size: 14px; }
.ml__row:hover { background: #f1f5ff; }
.ml__row--new { font-weight: 700; }
.ml__who, .ml__rsubj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml__date { color: var(--muted); font-size: 12px; text-align: right; }
.ml__empty { padding: 20px; color: var(--muted); text-align: center; }
.ml__letter, .ml__compose, .ml__set { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.ml__subj, .ml__h { font-size: 18px; font-weight: 700; }
.ml__h small { font-weight: 400; color: var(--muted); font-size: 12px; }
.ml__from { color: var(--muted); font-size: 13px; }
.ml__body { white-space: pre-wrap; line-height: 1.5; font-size: 15px; }
.ml__atts { display: flex; flex-wrap: wrap; gap: 6px; }
.ml__att { display: inline-flex; align-items: center; gap: 6px; background: #f1f3f9; border-radius: 8px; padding: 4px 8px; font-size: 14px; }
.ml__att b { cursor: pointer; color: #c92a2a; }
.ml__link { border: 2px solid #1c7ed6; background: #fff; color: #1c7ed6; border-radius: 10px; padding: 6px 12px; font: inherit; font-weight: 600; }
.ml__danger { border: 0; background: #e8590c; color: #fff; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; align-self: flex-start; }
.ml__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ml__f { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ml__f input { flex: 1; font: inherit; font-size: 15px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 8px; color: var(--ink); user-select: text; }
.ml__f input:focus, .ml__text:focus { border-color: #1c7ed6; outline: none; }
.ml__text { min-height: 110px; font: inherit; font-size: 15px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 8px; resize: vertical; user-select: text; }
.ml__meter { height: 10px; background: #eef0f6; border-radius: 5px; overflow: hidden; }
.ml__meter i { display: block; height: 100%; transition: width 0.2s; }
.ml__mlabel { font-size: 13px; color: var(--muted); }
.ml__ask { position: absolute; inset: 0; background: rgba(20, 24, 60, 0.35); display: grid; place-items: center; }
.ml__askbox { background: #fff; border-radius: 12px; padding: 14px 18px; max-width: 320px; box-shadow: var(--shadow); }
/* облако */
.cl { display: flex; flex-direction: column; height: 100%; }
.cl .ml__top { background: #0b7285; }
.cl__main { flex: 1; overflow: auto; }
.cl__list { display: flex; flex-direction: column; }
.cl__item { padding: 10px 14px; border-bottom: 1px solid #eef0f6; cursor: pointer; }
.cl__item:hover { background: #effaf9; }
.cl__item small { color: var(--muted); margin-left: 6px; }
.cl__file, .cl__paper, .cl__hist { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.cl__doc { background: #fafafa; border: 1px solid var(--line); border-radius: 8px; padding: 14px; white-space: pre-wrap; }
.cl__rows { display: flex; flex-direction: column; gap: 4px; }
.cl__row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center; }
.cl__who { font-weight: 600; font-size: 14px; }
.cl__row input { font: inherit; font-size: 15px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; user-select: text; }
.cl__ver { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.cl__ver .btn { margin-left: auto; }
/* Проводник: облако */
.fx__sync { display: block; font-size: 12px; }
.fx__link { font-family: Consolas, monospace; font-size: 13px; background: #f1f3f9; border-radius: 6px; padding: 6px 8px; user-select: text; }

/* ------------------------------------------------------------ «Чаты» и «Телефон» (js/chat.js) */
.app--chat { background: #fff; }
.cht { display: flex; height: 100%; font-size: 15px; }
.cht__list { width: 170px; flex: none; border-right: 1px solid var(--line); overflow: auto; background: #f8f9fd; }
.cht__item { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 9px 10px; text-align: left; font: inherit; font-size: 14px; position: relative; }
.cht__item--on { background: #dfe9ff; }
.cht__ava { font-size: 22px; }
.cht__nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cht__badge { background: #e8590c; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 12px; }
.cht__main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cht__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.cht__more { margin-left: auto; border: 0; background: transparent; font-size: 20px; padding: 0 8px; border-radius: 6px; }
.cht__more:hover { background: #eef0f6; }
.cht__msgs { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: #f3f6fb; }
.cht__msg { align-self: flex-start; max-width: 80%; background: #fff; border-radius: 12px; padding: 7px 11px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); user-select: text; display: flex; flex-direction: column; gap: 4px; }
.cht__msg--me { align-self: flex-end; background: #d7f1d7; }
.cht__from { font-size: 12px; font-weight: 700; color: #1c7ed6; }
.cht__link { border: 1px solid #1c7ed6; background: #fff; color: #1c7ed6; border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 13px; align-self: flex-start; }
.cht__form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.cht__input { flex: 1; font: inherit; font-size: 15px; padding: 7px 12px; border: 2px solid var(--line); border-radius: 18px; outline: none; user-select: text; }
.cht__input:focus { border-color: #1c7ed6; }
.cht__send { border: 0; background: #1c7ed6; color: #fff; border-radius: 50%; width: 36px; height: 36px; font-size: 16px; }
.cht__blocked { padding: 10px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.cht__post { align-self: stretch; background: #fff; border: 2px dashed #1c7ed6; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.cht__postnote { font-size: 13px; color: var(--muted); }
.cht__pitem { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cht__post .btn { align-self: flex-start; margin-top: 4px; }
.win:has(.app--phone) { max-width: 260px; flex: 0 0 240px; }
.app--phone { background: #222; padding: 8px; }
.ph { background: #f3f6fb; border-radius: 18px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.ph__top { display: flex; justify-content: space-between; padding: 4px 12px; font-size: 11px; background: #fff; }
.ph__title { font-weight: 700; padding: 6px 12px; }
.ph__list { flex: 1; overflow: auto; padding: 6px 8px; display: flex; flex-direction: column; gap: 6px; }
.ph__sms { background: #fff; border-radius: 10px; padding: 7px 9px; font-size: 13px; user-select: text; animation: cardin 0.2s ease-out; }
.ph__empty { color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }

/* ------------------------------------------------------------ «Звонок» (js/call.js) */
.win:has(.app--call) { max-width: 820px; flex: 1.4 1 0; }
.app--call { background: #1b1f2e; color: #fff; }
.cw { position: relative; height: 100%; display: flex; flex-direction: column; }
.cw--lobby { align-items: center; justify-content: center; gap: 12px; }
.cw__lobbytitle { font-size: 18px; font-weight: 700; }
.cw__me--big { width: 240px; height: 150px; border-radius: 14px; background: #2d3348; display: grid; place-items: center; font-size: 64px; position: relative; }
.cw__off { font-size: 14px; color: #aab; }
.cw__muted { position: absolute; right: 8px; bottom: 6px; font-size: 18px; }
.cw__lobbybtns { display: flex; gap: 8px; }
.cw__tip { font-size: 13px; color: #aab; }
.cw__grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; min-height: 0; }
.cw__tile { position: relative; background: #2d3348; border-radius: 12px; display: grid; place-items: center; min-height: 80px; outline: 3px solid transparent; }
.cw__tile--talk { outline-color: #40c057; }
.cw__tile--me { background: #34405f; }
.cw__face { font-size: 46px; }
.cw__nm { position: absolute; left: 8px; bottom: 6px; font-size: 12px; background: rgba(0, 0, 0, 0.4); border-radius: 6px; padding: 1px 6px; }
.cw__cat { position: absolute; top: 6px; left: 6px; font-size: 13px; font-weight: 800; color: #ffd43b; animation: shake 0.4s infinite; }
.cw__hand { position: absolute; top: 6px; right: 8px; font-size: 26px; }
.cw__sub { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.75); border-radius: 10px; padding: 8px 14px; font-size: 15px; max-width: 90%; text-align: center; }
.cw__sharing { text-align: center; font-size: 14px; padding: 4px; background: #2b8a3e; }
.cw__bar { display: flex; justify-content: center; gap: 6px; padding: 8px; background: #141824; flex-wrap: wrap; }
.cw__b { border: 0; background: #2d3348; color: #fff; border-radius: 12px; padding: 6px 10px; font: inherit; font-size: 20px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; cursor: pointer; }
.cw__b small { font-size: 11px; }
.cw__b--off { background: #c92a2a; }
.cw__b--on { background: #1c7ed6; }
.cw__b--leave { background: #e03131; }
.cw--lobby .cw__b { flex-direction: row; font-size: 14px; }
.cw__chat { position: absolute; right: 8px; top: 8px; bottom: 70px; width: 260px; background: #fff; color: var(--ink); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; z-index: 2; }
.cw__chathead { display: flex; justify-content: space-between; padding: 8px 10px; font-weight: 700; border-bottom: 1px solid var(--line); }
.cw__msgs { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.cw__msg--me { align-self: flex-end; background: #d7f1d7; border-radius: 8px; padding: 3px 7px; }
.cw__form { display: flex; gap: 4px; padding: 6px; border-top: 1px solid var(--line); }
.cw__form input { flex: 1; font: inherit; font-size: 14px; padding: 5px 8px; border: 2px solid var(--line); border-radius: 14px; user-select: text; }
.cw__choose { display: flex; flex-direction: column; gap: 6px; }
.cw__opt { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font: inherit; text-align: left; color: var(--ink); }
.cw__opt small { color: var(--muted); font-size: 12px; }
.cw__opt:hover { border-color: var(--accent); background: #eef1ff; }
.cw--end { display: grid; place-items: center; }
.cw__endbox { text-align: center; font-size: 20px; }
.cw__endbox small { font-size: 14px; color: #aab; }
/* поля писем — не как Блокнот (.win textarea крупный), кнопки звонка — в один ряд */
.win textarea.ml__text { flex: none; font-size: 15px; line-height: 1.4; padding: 8px 10px; border: 2px solid var(--line); background: #fff; }
.ml__side { width: 172px; }
.ml__folder { white-space: nowrap; }
.cw__b { min-width: 62px; padding: 5px 7px; font-size: 18px; }
.cw__b small { font-size: 10px; white-space: nowrap; }

/* ------------------------------------------------------------ глава 7: «Фото» (js/photos.js) */
.win:has(.app--photos), .win:has(.app--player), .win:has(.app--clip) { max-width: 900px; flex: 1.6 1 0; height: min(76vh, 600px); }
.app--photos { background: #1f1f1f; color: #fff; }
.pf__frame { width: 100%; height: 100%; display: grid; place-items: center; transition: transform 0.25s; }
.pf__box, .pf__cropbox { position: relative; width: min(100%, calc(100cqh * 4 / 3)); max-height: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; container-type: size; }
.pf__cropbox { aspect-ratio: auto; }
.pf__cropin { position: absolute; container-type: size; }
.pf__cropin .pf__scene { position: absolute; inset: 0; }
.pf__scene { position: absolute; inset: 0; overflow: hidden; }
.pf__it { position: absolute; transform: translate(-50%, -50%); line-height: 1; }
.pf__frame--side .pf__box, .pf__frame--side .pf__cropbox { width: min(100cqh, calc(100cqw * 4 / 3)); }
.pv { height: 100%; display: flex; flex-direction: column; }
.pv--empty { display: grid; place-items: center; color: #aaa; }
.pv__bar { display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: #2b2b2b; flex-wrap: wrap; }
.pv__name { font-weight: 600; margin-right: auto; font-size: 14px; }
.pv__b { border: 0; background: transparent; color: #fff; border-radius: 6px; padding: 5px 9px; font: inherit; font-size: 14px; cursor: pointer; }
.pv__b:hover { background: #3d3d3d; }
.pv__b--on { background: #4a2b37; }
.pv__stage { flex: 1; min-height: 0; position: relative; padding: 10px 50px; container-type: size; display: grid; overflow: hidden; }
.pv__bar, .pv__strip { position: relative; z-index: 3; }
.pe__stage, .pv--show { overflow: hidden; }
.pv__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; width: 38px; height: 60px; border-radius: 8px; font-size: 30px; cursor: pointer; }
.pv__arrow:disabled { opacity: 0.2; cursor: default; }
.pv__arrow--l { left: 6px; }
.pv__arrow--r { right: 6px; }
.pv__strip { display: flex; gap: 6px; padding: 6px 10px; overflow-x: auto; background: #2b2b2b; flex: none; }
.pv__thumb { position: relative; width: 74px; height: 56px; flex: none; border: 2px solid transparent; border-radius: 6px; padding: 0; background: #111; overflow: hidden; cursor: pointer; container-type: size; }
.pv__thumb--on { border-color: #4f9dff; }
.pv__thumb i { position: absolute; right: 2px; bottom: 0; font-style: normal; font-size: 12px; }
.pv--show { cursor: pointer; padding: 10px; container-type: size; display: grid; position: relative; }
.pv__showhint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.6); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.pe { height: 100%; display: flex; flex-direction: column; }
.pe__bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #2b2b2b; }
.pe__main { flex: 1; display: flex; min-height: 0; }
.pe__stage { flex: 1; display: grid; place-items: center; padding: 16px; min-width: 0; container-type: size; }
.pe__img { position: relative; width: min(100%, calc(100cqh * 4 / 3)); aspect-ratio: 4 / 3; container-type: size; }
.pe__img .pf__frame { position: absolute; inset: 0; }
.pe__crop { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55); outline: 2px solid #fff; z-index: 2; }
.pe__h { position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 3px; z-index: 3; }
.pe__h--tl { left: -8px; top: -8px; cursor: nwse-resize; }
.pe__h--tr { right: -8px; top: -8px; cursor: nesw-resize; }
.pe__h--bl { left: -8px; bottom: -8px; cursor: nesw-resize; }
.pe__h--br { right: -8px; bottom: -8px; cursor: nwse-resize; }
.pe__side { width: 230px; flex: none; background: #2b2b2b; padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.pe__tabs { display: flex; gap: 2px; }
.pe__tab { flex: 1; border: 0; background: #3a3a3a; color: #ddd; border-radius: 6px; padding: 5px 2px; font: inherit; font-size: 12px; cursor: pointer; }
.pe__tab--on { background: #4f6bff; color: #fff; }
.pe__grp { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pe__row { display: flex; gap: 6px; }
.pe__chip { border: 1px solid #555; background: #333; color: #fff; border-radius: 6px; padding: 4px 9px; font: inherit; font-size: 13px; cursor: pointer; }
.pe__chip--on { border-color: #4f9dff; background: #24426e; }
.pe__note { font-size: 12px; color: #aaa; }
.pe__filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pe__filter { border: 2px solid transparent; background: #111; border-radius: 6px; padding: 0 0 2px; color: #ddd; font: inherit; font-size: 11px; cursor: pointer; display: flex; flex-direction: column; container-type: inline-size; }
.pe__filter .pf__frame { aspect-ratio: 4 / 3; height: auto; container-type: size; }
.pe__filter--on { border-color: #4f9dff; }
/* «Медиаплеер» */
.app--player { background: #111; color: #fff; }
.mp { height: 100%; display: flex; flex-direction: column; }
.mp__top { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #1c1c28; font-size: 14px; }
.mp__nm { color: #aab; margin-right: auto; }
.mp__wrap { flex: 1; display: flex; min-height: 0; }
.mp__screen { flex: 1; position: relative; display: grid; place-items: center; background: radial-gradient(#2b3a6b, #0b0f1e); overflow: hidden; }
.mp__screen--audio { background: linear-gradient(135deg, #5f3dc4, #1c7ed6); }
.mp__scene { font-size: 110px; line-height: 1; }
.mp__say { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 22px; font-weight: 800; color: #ffd43b; letter-spacing: 2px; }
.mp__sub { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.75); border-radius: 6px; padding: 4px 12px; font-size: 18px; max-width: 90%; text-align: center; }
.mp__sub:empty { display: none; }
.mp__pl { width: 220px; background: #1c1c28; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mp__pli { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.mp__time { display: flex; align-items: center; gap: 10px; padding: 6px 12px 0; font-size: 12px; color: #ccd; }
.mp__bar { position: relative; flex: 1; height: 8px; border-radius: 4px; background: #333; cursor: pointer; }
.mp__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #4f9dff; border-radius: 4px; }
.mp__bar b { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; }
.mp__ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; flex-wrap: wrap; }
.mp__b { border: 0; background: #2a2a38; color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.mp__b:hover { background: #3a3a4c; }
.mp__b--on { background: #1c7ed6; }
.mp__b--play { font-size: 20px; width: 50px; background: #4f6bff; }
.mp__vol { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.mp__vol input { width: 90px; }
.mp--full .mp__top, .mp--full .mp__time { display: none; }
.mp--full .mp__scene { font-size: 170px; }
/* «Камера», «Звукозапись», запись экрана */
.app--camera { background: #111; color: #fff; }
.cam { height: 100%; display: flex; flex-direction: column; position: relative; }
.cam__light { position: absolute; left: 10px; top: 8px; z-index: 2; font-size: 12px; background: rgba(0, 0, 0, 0.5); padding: 2px 8px; border-radius: 10px; }
.cam__view { flex: 1; position: relative; display: grid; place-items: center; background: linear-gradient(#d8c3a5, #a58d6f); }
.cam__view--flash { background: #fff; }
.cam__me { font-size: 120px; line-height: 1; }
.cam__cat { position: absolute; right: 22%; bottom: 10%; font-size: 64px; }
.cam__count { position: absolute; font-size: 90px; font-weight: 800; color: #fff; text-shadow: 0 0 20px #000; }
.cam__rec { position: absolute; top: 10px; right: 12px; color: #ff6b6b; font-weight: 700; }
.cam__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #1c1c1c; }
.cam__t { border: 0; background: #333; color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.cam__shot { width: 58px; height: 58px; border-radius: 50%; border: 4px solid #fff; background: #ddd; cursor: pointer; }
.cam__shot--video { background: #e03131; }
.cam__shot--on { border-radius: 14px; animation: blink 1s infinite; }
.cam__modes { display: flex; gap: 4px; }
.cam__m { border: 0; background: transparent; color: #aaa; font: inherit; font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.cam__m--on { color: #fff; background: #333; }
.cam__roll { display: flex; gap: 6px; padding: 4px 10px; background: #1c1c1c; min-height: 34px; font-size: 22px; }
.cam__roll small { font-size: 10px; }
.app--recorder { background: #f5f6fb; }
.rec { height: 100%; display: flex; flex-direction: column; }
.rec__title { padding: 8px 12px; font-weight: 700; }
.rec__main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rec__list { order: 2; flex: none; max-height: 120px; border-top: 1px solid var(--line); overflow: auto; background: #fff; }
.rec__item { padding: 8px 10px; border-bottom: 1px solid #eef0f6; cursor: pointer; display: flex; flex-direction: column; }
.rec__item--on { background: #e7efff; }
.rec__item small { color: var(--muted); font-size: 12px; }
.rec__ren { font: inherit; font-size: 14px; padding: 2px 4px; user-select: text; }
.rec__empty { padding: 12px; color: var(--muted); font-size: 14px; }
.rec__panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; padding: 8px; }
.rec__btns { flex-wrap: wrap; justify-content: center; }
.rec__wave { display: flex; gap: 2px; font-size: 26px; color: #c5cae0; }
.rec__wave--on i { color: #4f6bff; animation: pop 0.6s infinite alternate; }
.rec__time { height: 20px; font-weight: 700; color: #e03131; }
.rec__big { width: 76px; height: 76px; border-radius: 50%; border: 0; background: #4f6bff; color: #fff; font-size: 34px; cursor: pointer; box-shadow: var(--shadow); }
.rec__big--on { background: #e03131; }
.rec__btns { display: flex; gap: 6px; }
.app--screenrec { background: #fff; }
.sn { height: 100%; display: flex; flex-direction: column; }
.sn__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sn__new { border: 0; background: #4f6bff; color: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.sn__modes { display: flex; gap: 2px; background: #f1f3f9; border-radius: 8px; padding: 2px; }
.sn__m { border: 0; background: transparent; border-radius: 6px; padding: 4px 10px; font-size: 18px; cursor: pointer; }
.sn__m--on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.sn__body { flex: 1; display: grid; place-items: center; padding: 10px; color: var(--muted); text-align: center; }
.sn__done { color: var(--ink); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gb { height: 100%; background: #1b1b1f; color: #fff; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.gb__head { font-weight: 700; }
.gb__row { display: flex; gap: 8px; }
.gb__b { border: 0; background: #333; color: #fff; border-radius: 8px; width: 48px; height: 40px; font-size: 20px; cursor: pointer; }
.gb__b--rec { background: #2f9e44; }
.gb__note { font-size: 13px; color: #bbb; }
.srbar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 80; background: #1b1b1f; color: #fff; border-radius: 20px; padding: 6px 8px 6px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; box-shadow: var(--shadow); }
.srbar__dot { color: #ff4d4d; animation: blink 1s infinite; }
.srbar__stop { border: 0; background: #e03131; color: #fff; border-radius: 14px; padding: 4px 10px; font: inherit; cursor: pointer; }
.srgo { position: fixed; left: 50%; top: 60px; transform: translateX(-50%); z-index: 2; border: 0; background: #e03131; color: #fff; border-radius: 10px; padding: 10px 18px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
/* видеоредактор */
.app--clip { background: #1e1b2e; color: #fff; }
.cc { height: 100%; display: flex; flex-direction: column; }
.cc__top { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #2a2540; }
.cc__top span { color: #aab; margin-right: auto; }
.cc__main { flex: 1; display: flex; min-height: 0; }
.cc__bin { width: 210px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #241f38; font-size: 13px; overflow: auto; }
.cc__file { display: flex; align-items: center; justify-content: space-between; gap: 4px; background: #332c50; border-radius: 8px; padding: 5px 7px; }
.cc__file span { display: flex; flex-direction: column; }
.cc__file small { color: #aab; }
.cc__tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cc__tools .btn--ghost { color: #fff; }
.cc__preview { flex: 1; position: relative; display: grid; place-items: center; background: #000; margin: 8px; border-radius: 8px; }
.cc__scene { font-size: 90px; }
.cc__say { position: absolute; top: 10px; left: 0; right: 0; text-align: center; color: #ffd43b; font-weight: 800; }
.cc__text { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 22px; font-weight: 800; text-shadow: 0 2px 6px #000; }
.cc__empty { color: #889; }
.cc__tform { display: flex; gap: 6px; padding: 6px 10px; background: #2a2540; }
.cc__tform input { flex: 1; font: inherit; padding: 5px 8px; border-radius: 6px; border: 0; user-select: text; }
.cc__line { background: #15121f; padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.cc__track { display: flex; gap: 3px; min-height: 40px; align-items: stretch; }
.cc__track--text, .cc__track--music { min-height: 24px; }
.cc__seg { position: relative; background: #5f3dc4; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; flex: none; }
.cc__seg span { display: flex; flex-direction: column; align-items: center; overflow: hidden; white-space: nowrap; padding: 0 10px; }
.cc__seg--on { outline: 2px solid #ffd43b; }
.cc__hl, .cc__hr { position: absolute; top: 0; bottom: 0; width: 9px; background: #ffd43b; cursor: ew-resize; display: none; }
.cc__hl { left: 0; border-radius: 6px 0 0 6px; }
.cc__hr { right: 0; border-radius: 0 6px 6px 0; }
.cc__seg--on .cc__hl, .cc__seg--on .cc__hr { display: block; }
.cc__chip { background: #1c7ed6; border-radius: 6px; padding: 3px 10px; font-size: 12px; }
.cc__track--music .cc__chip { background: #2f9e44; }
.cc__hintline { color: #889; font-size: 13px; padding: 10px; }
.cc__selbar { font-size: 12px; color: #ccd; padding: 4px 10px; background: #15121f; display: flex; align-items: center; gap: 10px; }
.cc__selbar .btn--ghost { color: #fff; }
.set__h4 { margin: 14px 0 2px; }
.sr__lic { font-size: 10px; border-radius: 4px; padding: 0 4px; margin-top: 2px; }
.sr__lic--free { background: #d3f5d3; color: #126b47; }
.sr__lic--copy { background: #ffe3e3; color: #b42318; }

/* ------------------------------------------------------------ глава 8: PowerPoint (js/slides.js) */
.win:has(.app--slides), .win:has(.app--sheet) { max-width: 1040px; flex: 1.7 1 0; height: min(80vh, 680px); }
.app--slides { background: #f3f2f1; display: flex; flex-direction: column; font-size: 13px; }
.pp { height: 100%; display: flex; flex-direction: column; position: relative; }
.pp__tabs { display: flex; gap: 2px; padding: 0 8px; background: #c43e1c; flex: none; }
.pp__tab { border: 0; background: transparent; color: #fff; font: inherit; padding: 6px 10px 5px; border-radius: 4px 4px 0 0; cursor: pointer; }
.pp__tab--on { background: #f3f2f1; color: #c43e1c; font-weight: 600; }
.pp__ribbon { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid #d6d6d6; min-height: 46px; }
.pp__b { border: 1px solid transparent; background: transparent; border-radius: 4px; padding: 5px 8px; font: inherit; cursor: pointer; }
.pp__b:hover { background: #e1dfdd; border-color: #c8c6c4; }
.pp__b--on { background: #f6d5cb; border-color: #e0a090; }
.pp__lbl { color: #666; font-size: 12px; margin: 0 6px; }
.pp__theme { width: 70px; height: 40px; border: 2px solid #ccc; border-radius: 6px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pp__theme small { font-size: 9px; font-weight: 400; margin-top: 2px; }
.pp__theme--on { border-color: #c43e1c; box-shadow: 0 0 0 2px #f6d5cb; }
.pp__main { flex: 1; display: flex; min-height: 0; }
.pp__list { width: 150px; flex: none; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid #ddd; }
.pp__thumb { display: flex; gap: 4px; align-items: flex-start; cursor: pointer; }
.pp__num { font-size: 11px; color: #666; width: 18px; }
.pp__mini { flex: 1; aspect-ratio: 16 / 9; border: 2px solid #ccc; border-radius: 3px; overflow: hidden; container-type: inline-size; pointer-events: none; }
.pp__thumb--on .pp__mini { border-color: #c43e1c; }
.pp__work { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 12px; gap: 8px; background: #e6e6e6; }
.pp__stage { flex: 1; min-height: 0; display: grid; place-items: center; container-type: size; }
.pp__stage .sl { width: min(100cqw, calc(100cqh * 16 / 9)); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); }
.pp__notes { height: 54px; flex: none; resize: none; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; user-select: text; }
.win textarea.pp__notes { flex: none; font-size: 14px; padding: 6px 8px; background: #fff; }
.pp__status { background: #c43e1c; color: #fff; font-size: 12px; padding: 3px 12px; }
.sl { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; container-type: inline-size; display: flex; flex-direction: column; padding: 5cqw 6cqw; gap: 2cqw; font-family: 'Segoe UI', sans-serif; }
.sl--title { justify-content: center; align-items: center; text-align: center; }
.sl__t { font-size: 5.2cqw; font-weight: 700; line-height: 1.15; outline: none; min-height: 1.2em; }
.sl__t--title { font-size: 7cqw; }
.sl__sub { font-size: 3.4cqw; outline: none; min-height: 1.2em; opacity: 0.9; }
.sl__row { flex: 1; display: flex; gap: 3cqw; min-height: 0; }
.sl__body { flex: 1; font-size: 3.4cqw; line-height: 1.35; outline: none; min-height: 1.2em; }
.sl__body ul { margin: 0; padding-left: 1.2em; }
.sl__body[contenteditable] > div::before, .sl__body[contenteditable]:not(:empty)::before { content: none; }
.sl__body[contenteditable] > div { display: list-item; list-style: disc; margin-left: 1.2em; }
[data-ph]:empty::before { content: attr(data-ph); opacity: 0.45; }
[data-ph][contenteditable]:empty { outline: 1px dashed rgba(0, 0, 0, 0.35); }
.sl__pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; flex: none; align-self: center; container-type: inline-size; }
.sl__pice { font-size: 70cqw; line-height: 1; }
.sl--title .sl__pic { position: absolute; right: 4cqw; bottom: 4cqw; }
.sl__pic--ed { outline: 1px dashed rgba(0, 0, 0, 0.3); cursor: context-menu; }
.sl__pich { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; background: #fff; border: 2px solid #c43e1c; cursor: nwse-resize; }
.sl__chart { flex: none; width: 45%; align-self: center; font-size: 2.2cqw; }
.pp__show { position: absolute; inset: 0; z-index: 20; background: #000; display: grid; place-items: center; outline: none; container-type: size; cursor: pointer; }
.pp__showwrap { width: min(100cqw, calc(100cqh * 16 / 9)); }
.pp__showhint { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); color: #aaa; font-size: 12px; }
.pp__end { color: #fff; font-size: 18px; }
.pp__tr--fade { animation: ppfade 0.6s ease-out; }
.pp__tr--push { animation: pppush 0.5s ease-out; }
.pp__tr--wipe { animation: ppwipe 0.6s ease-out; }
@keyframes ppfade { from { opacity: 0; } }
@keyframes pppush { from { transform: translateX(100%); } }
@keyframes ppwipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ------------------------------------------------------------ Excel (js/sheet.js) */
.app--sheet { background: #fff; display: flex; flex-direction: column; font-size: 13px; }
.xl { height: 100%; display: flex; flex-direction: column; }
.xl__tabs { display: flex; gap: 2px; padding: 0 8px; background: #217346; flex: none; }
.xl__tab { border: 0; background: transparent; color: #fff; font: inherit; padding: 6px 10px 5px; border-radius: 4px 4px 0 0; cursor: pointer; }
.xl__tab--on { background: #f3f2f1; color: #217346; font-weight: 600; }
.xl__ribbon { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #f3f2f1; border-bottom: 1px solid #d6d6d6; min-height: 42px; flex-wrap: wrap; }
.xl__b { border: 1px solid transparent; background: transparent; border-radius: 4px; padding: 5px 9px; font: inherit; cursor: pointer; }
.xl__b:hover { background: #e1dfdd; border-color: #c8c6c4; }
.xl__b b { font-family: 'Times New Roman', serif; font-size: 15px; }
.xl__lbl { color: #666; font-size: 12px; }
.xl__fbar { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-bottom: 1px solid #ddd; }
.xl__name { width: 50px; border: 1px solid #ccc; padding: 2px 6px; font-size: 13px; }
.xl__fx { color: #888; font-style: italic; }
.xl__formula { flex: 1; font: inherit; font-size: 14px; padding: 3px 6px; border: 1px solid #ccc; user-select: text; }
.xl__wrap { flex: 1; overflow: auto; position: relative; outline: none; }
.xl__t { border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.xl__t th { background: #f3f3f3; color: #555; font-weight: 400; border: 1px solid #d4d4d4; height: 24px; position: relative; user-select: none; }
.xl__corner { width: 34px; }
.xl__rh { width: 34px; }
.xl__h--on { background: #d6e8dd !important; color: #217346 !important; font-weight: 600 !important; }
.xl__resize { position: absolute; right: -3px; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 2; }
.xl__c { border: 1px solid #e1e1e1; height: 24px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; cursor: cell; }
.xl__c--num { text-align: right; }
.xl__c--b { font-weight: 700; }
.xl__c--sel { background: #e5f1ea; }
.xl__c--cur { outline: 2px solid #217346; outline-offset: -2px; background: #fff; }
.xl__c--fill { outline: 1px dashed #217346; outline-offset: -2px; }
.xl__fill { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; background: #217346; border: 1px solid #fff; cursor: crosshair; z-index: 2; }
.xl__in { width: 100%; height: 22px; border: 0; outline: none; font: inherit; padding: 0; user-select: text; }
.xl__charts { position: absolute; left: 0; top: 0; }
.xl__chart { position: absolute; width: 300px; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); padding: 8px; font-size: 13px; }
.xc { display: flex; flex-direction: column; gap: 6px; }
.xc__title { font-weight: 700; text-align: center; outline: none; min-height: 1.2em; border-radius: 4px; }
.xc__title[contenteditable]:hover { background: #f1f3f9; }
.xc__bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 0 4px; border-bottom: 1px solid #999; }
.xc__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.xc__col i { width: 70%; border-radius: 3px 3px 0 0; min-height: 2px; }
.xc__col small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-top: 2px; position: relative; top: 16px; height: 0; }
.xc__v { font-size: 11px; color: #555; }
.xc__pie { width: 140px; aspect-ratio: 1; border-radius: 50%; align-self: center; }
.xc__legend { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 12px; }
.xc__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.xc__bars { margin-bottom: 16px; }
/* диаграмма на слайде — в долях слайда, чтобы и миниатюра, и показ были в пропорции */
.sl__chart .xc { gap: 0.6cqw; font-size: 1.8cqw; }
.sl__chart .xc__title { font-size: 2cqw; }
.sl__chart .xc__bars { height: 20cqw; margin-bottom: 2.4cqw; }
.sl__chart .xc__v, .sl__chart .xc__col small { font-size: 1.6cqw; }
.sl__chart .xc__col small { top: 1.8cqw; }
.sl__chart .xc__pie { width: 18cqw; }
.sl__chart .xc__legend { font-size: 1.6cqw; }
