Выкатка / deploy (push) Successful in 4m17s
- AST-1: раздел «Ассистент» открыт студентам по умолчанию, две недели с плашкой «новое»; закрывается в «Видимости разделов». Раздел «ИИ» переименован в «MCP» и закрывается отдельно, ассистента не выключая. - AST-6: чат у человека один и живёт неделю (таблица assistant_messages, миграция 0030); старые реплики удаляются при обращении к чату. Чужой чат не видит никто, очистить может только хозяин; счётчик токенов чистка не трогает. Вопрос без ответа не сохраняется. - AST-3: страница присылает только текст вопроса, прошлое портал берёт из чата сам; модели уходят последние реплики в пределах потолков. - AST-9: модель с первого вопроса знает имя, роль и группы спрашивающего и не переспрашивает группу; задания студента — его инструментом. - Страница: заголовок без подзаголовка, чат во всю высоту окна, дни разделителями, поле с кнопкой внутри, «Скопировать» у ответа, время в поясе портала, компактная шапка на телефоне. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2580 lines
150 KiB
CSS
2580 lines
150 KiB
CSS
/* ============================================================
|
||
Плакат — визуальный язык портала.
|
||
Жёлтое поле, чёрные линейки, один тяжёлый гротеск. Три цвета:
|
||
жёлтый, чёрный и белый; синий — только для ссылок, красный —
|
||
только для ошибок и просрочки. Сложность и статусы кодируются
|
||
плотностью заливки, а не цветом.
|
||
Тёмная тема — инверсия: чёрное поле, жёлтые линейки.
|
||
============================================================ */
|
||
|
||
@font-face { font-family: "Unbounded"; font-weight: 500 800; font-display: swap;
|
||
src: local("Unbounded"), url("fonts/Unbounded-latin.woff2") format("woff2");
|
||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
|
||
@font-face { font-family: "Unbounded"; font-weight: 500 800; font-display: swap;
|
||
src: local("Unbounded"), url("fonts/Unbounded-cyrillic.woff2") format("woff2");
|
||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
|
||
@font-face { font-family: "Golos Text"; font-weight: 400 600; font-display: swap;
|
||
src: local("Golos Text"), url("fonts/GolosText-latin.woff2") format("woff2");
|
||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
|
||
@font-face { font-family: "Golos Text"; font-weight: 400 600; font-display: swap;
|
||
src: local("Golos Text"), url("fonts/GolosText-cyrillic.woff2") format("woff2");
|
||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
|
||
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap;
|
||
src: local("JetBrains Mono"), url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
|
||
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap;
|
||
src: local("JetBrains Mono Bold"), url("fonts/JetBrainsMono-Bold.woff2") format("woff2"); }
|
||
/* Шрифт для формул. MathML рисует браузер, но растягивать скобки он умеет только
|
||
шрифтом с математической таблицей: без него фигурная скобка у cases и скобки
|
||
вокруг дробей остаются строчного роста. Браузер скачивает файл только
|
||
на страницах, где есть формулы, — и не скачивает, если шрифт уже стоит. */
|
||
@font-face { font-family: "STIX Two Math"; font-display: swap;
|
||
src: local("STIX Two Math"), local("STIXTwoMath-Regular"), url("fonts/STIXTwoMath.otf") format("opentype"); }
|
||
|
||
/* ============================================================
|
||
Цветовые темы. Тема — это пара «поле и краска» плюс акцент: портал
|
||
нарисован как плакат, и палитра у него тоже плакатная, в два цвета.
|
||
Каждая тема — один блок переменных и ничего больше: то, что зависело
|
||
от светлоты (фон полей, какой логотип показывать), вынесено в такие же
|
||
переменные, иначе новая тема требовала бы правок в трёх местах.
|
||
|
||
У каждой пары проверен контраст: текст, приглушённый текст и ссылки
|
||
не ниже 4.5:1 к своему фону. Красиво — это ещё и читаемо.
|
||
============================================================ */
|
||
/* Жёлтое поле и чёрная краска — как на афише. */
|
||
:root[data-theme="amber"] {
|
||
color-scheme: light;
|
||
--bg: #f4c430;
|
||
--panel: #f4c430;
|
||
--panel-2: #f8d24f;
|
||
--ink: #111111;
|
||
--text: #111111;
|
||
--text-2: #3b3312;
|
||
--muted: #5b4f25;
|
||
--line: #111111;
|
||
--line-soft: rgba(0, 0, 0, .26);
|
||
--inv-bg: #111111;
|
||
--inv-text: #f4c430;
|
||
--accent: #1a45bd;
|
||
--err: #c1121f;
|
||
--err-text: #ffffff;
|
||
--code-key: #111111;
|
||
--code-str: #1a45bd;
|
||
--code-com: #5b4f25;
|
||
--code-num: #7a4b00;
|
||
--field-bg: #ffffff;
|
||
--field-text: #111111;
|
||
--placeholder: #7d7043;
|
||
--light-logo: block;
|
||
--dark-logo: none;
|
||
}
|
||
/* Тёплый лист, если жёлтое поле слишком громкое. */
|
||
:root[data-theme="parchment"] {
|
||
color-scheme: light;
|
||
--bg: #faf6ec;
|
||
--panel: #fffdf7;
|
||
--panel-2: #f2ecdd;
|
||
--ink: #14110c;
|
||
--text: #14110c;
|
||
--text-2: #43392a;
|
||
--muted: #6b6152;
|
||
--line: #14110c;
|
||
--line-soft: rgba(0, 0, 0, .26);
|
||
--inv-bg: #14110c;
|
||
--inv-text: #fffdf7;
|
||
--accent: #1b52c0;
|
||
--err: #b3261e;
|
||
--err-text: #ffffff;
|
||
--code-key: #14110c;
|
||
--code-str: #1b52c0;
|
||
--code-com: #6b6152;
|
||
--code-num: #8a4b00;
|
||
--field-bg: #ffffff;
|
||
--field-text: #14110c;
|
||
--placeholder: #8b8170;
|
||
--light-logo: block;
|
||
--dark-logo: none;
|
||
}
|
||
/* То же жёлтое по чёрному, только наоборот. */
|
||
:root[data-theme="coal"] {
|
||
color-scheme: dark;
|
||
--bg: #0f0e0a;
|
||
--panel: #0f0e0a;
|
||
--panel-2: #1a1810;
|
||
--ink: #f4c430;
|
||
--text: #f4e9c2;
|
||
--text-2: #dcc985;
|
||
--muted: #a8975a;
|
||
--line: #f4c430;
|
||
--line-soft: rgba(255, 255, 255, .28);
|
||
--inv-bg: #f4c430;
|
||
--inv-text: #0f0e0a;
|
||
--accent: #9dbcff;
|
||
--err: #ff5a5a;
|
||
--err-text: #111111;
|
||
--code-key: #f4c430;
|
||
--code-str: #9dbcff;
|
||
--code-com: #a8975a;
|
||
--code-num: #e8b96a;
|
||
--field-bg: #1a1810;
|
||
--field-text: #f4e9c2;
|
||
--placeholder: #8c7f4e;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
/* Синее поле и жёлтая краска — сочетание шведского флага. */
|
||
:root[data-theme="sweden"] {
|
||
color-scheme: dark;
|
||
--bg: #062f5c;
|
||
--panel: #062f5c;
|
||
--panel-2: #0b3f74;
|
||
--ink: #fecc00;
|
||
--text: #ffe89a;
|
||
--text-2: #f3d98a;
|
||
--muted: #c9b06a;
|
||
--line: #fecc00;
|
||
--line-soft: rgba(255, 255, 255, .28);
|
||
--inv-bg: #fecc00;
|
||
--inv-text: #062f5c;
|
||
--accent: #9dd0ff;
|
||
--err: #ff7b6b;
|
||
--err-text: #062f5c;
|
||
--code-key: #fecc00;
|
||
--code-str: #9dd0ff;
|
||
--code-com: #c9b06a;
|
||
--code-num: #ffe08a;
|
||
--field-bg: #0b3f74;
|
||
--field-text: #ffe89a;
|
||
--placeholder: #9d8a55;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* Зелёное поле и жёлтая краска — сочетание бразильского флага. */
|
||
:root[data-theme="brazil"] {
|
||
color-scheme: dark;
|
||
--bg: #063d20;
|
||
--panel: #063d20;
|
||
--panel-2: #0b5330;
|
||
--ink: #fedd00;
|
||
--text: #ffeb8f;
|
||
--text-2: #f0dc8a;
|
||
--muted: #c2ad63;
|
||
--line: #fedd00;
|
||
--line-soft: rgba(255, 255, 255, .28);
|
||
--inv-bg: #fedd00;
|
||
--inv-text: #063d20;
|
||
--accent: #8fd3ff;
|
||
--err: #ff7b6b;
|
||
--err-text: #063d20;
|
||
--code-key: #fedd00;
|
||
--code-str: #8fd3ff;
|
||
--code-com: #c2ad63;
|
||
--code-num: #ffe08a;
|
||
--field-bg: #0b5330;
|
||
--field-text: #ffeb8f;
|
||
--placeholder: #97874e;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* Белое поле и алая краска — сочетание японского флага. Текст почти чёрный:
|
||
алым набраны рамки, заголовочные плашки и знаки, а не строки подряд. */
|
||
:root[data-theme="japan"] {
|
||
color-scheme: light;
|
||
--bg: #faf7f6;
|
||
--panel: #fffdfc;
|
||
--panel-2: #f3e7e6;
|
||
--ink: #b3001f;
|
||
--text: #1f1412;
|
||
--text-2: #4a3634;
|
||
--muted: #6e5b58;
|
||
--line: #b3001f;
|
||
--line-soft: rgba(179, 0, 31, .26);
|
||
--inv-bg: #b3001f;
|
||
--inv-text: #fffdfc;
|
||
--accent: #1b52c0;
|
||
--err: #8a0016;
|
||
--err-text: #ffffff;
|
||
--code-key: #b3001f;
|
||
--code-str: #1b52c0;
|
||
--code-com: #6e5b58;
|
||
--code-num: #7a4b00;
|
||
--field-bg: #ffffff;
|
||
--field-text: #1f1412;
|
||
--placeholder: #9c8582;
|
||
--light-logo: block;
|
||
--dark-logo: none;
|
||
}
|
||
|
||
/* Тёмно-синее поле и кремовая краска с золотой ссылкой. */
|
||
:root[data-theme="oxford"] {
|
||
color-scheme: dark;
|
||
--bg: #0a1a3f;
|
||
--panel: #0a1a3f;
|
||
--panel-2: #132754;
|
||
--ink: #f3ead8;
|
||
--text: #f3ead8;
|
||
--text-2: #ddd2bc;
|
||
--muted: #b0a78f;
|
||
--line: #f3ead8;
|
||
--line-soft: rgba(243, 234, 216, .28);
|
||
--inv-bg: #f3ead8;
|
||
--inv-text: #0a1a3f;
|
||
--accent: #ffcf6b;
|
||
--err: #ff7b6b;
|
||
--err-text: #0a1a3f;
|
||
--code-key: #f3ead8;
|
||
--code-str: #ffcf6b;
|
||
--code-com: #b0a78f;
|
||
--code-num: #9ad7ff;
|
||
--field-bg: #132754;
|
||
--field-text: #f3ead8;
|
||
--placeholder: #8d8674;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* Мандариновое поле и чёрная краска. */
|
||
:root[data-theme="mandarin"] {
|
||
color-scheme: light;
|
||
--bg: #fb8b24;
|
||
--panel: #fb8b24;
|
||
--panel-2: #fd9e47;
|
||
--ink: #111111;
|
||
--text: #111111;
|
||
--text-2: #3a2207;
|
||
--muted: #4a2a06;
|
||
--line: #111111;
|
||
--line-soft: rgba(0, 0, 0, .26);
|
||
--inv-bg: #111111;
|
||
--inv-text: #fb8b24;
|
||
--accent: #0b2f8f;
|
||
--err: #8c1007;
|
||
--err-text: #ffffff;
|
||
--code-key: #111111;
|
||
--code-str: #0b2f8f;
|
||
--code-com: #4a2a06;
|
||
--code-num: #5a2d00;
|
||
--field-bg: #ffffff;
|
||
--field-text: #111111;
|
||
--placeholder: #8a5f30;
|
||
--light-logo: block;
|
||
--dark-logo: none;
|
||
}
|
||
|
||
/* Кислотный лайм и чёрная краска — самая громкая пара набора. */
|
||
:root[data-theme="lime"] {
|
||
color-scheme: light;
|
||
--bg: #d7f205;
|
||
--panel: #d7f205;
|
||
--panel-2: #e2f747;
|
||
--ink: #111111;
|
||
--text: #111111;
|
||
--text-2: #333c05;
|
||
--muted: #3f4a06;
|
||
--line: #111111;
|
||
--line-soft: rgba(0, 0, 0, .26);
|
||
--inv-bg: #111111;
|
||
--inv-text: #d7f205;
|
||
--accent: #0f3aa0;
|
||
--err: #a00d16;
|
||
--err-text: #ffffff;
|
||
--code-key: #111111;
|
||
--code-str: #0f3aa0;
|
||
--code-com: #3f4a06;
|
||
--code-num: #5a4a00;
|
||
--field-bg: #ffffff;
|
||
--field-text: #111111;
|
||
--placeholder: #6a7a20;
|
||
--light-logo: block;
|
||
--dark-logo: none;
|
||
}
|
||
|
||
/* Белое поле и синяя краска — сочетание финского флага. */
|
||
/* Тема по умолчанию: бело-синяя. Без выбора в браузере и без скрипта
|
||
страница получает её же — поэтому селектор с голым :root здесь. */
|
||
:root, :root[data-theme="finland"] {
|
||
color-scheme: light;
|
||
--bg: #f6f9fc;
|
||
--panel: #ffffff;
|
||
--panel-2: #e6eef7;
|
||
--ink: #002f6c;
|
||
--text: #0d1b2a;
|
||
--text-2: #33465c;
|
||
--muted: #3d566e;
|
||
--line: #002f6c;
|
||
--line-soft: rgba(0, 47, 108, .26);
|
||
--inv-bg: #002f6c;
|
||
--inv-text: #ffffff;
|
||
--accent: #0b5fbd;
|
||
--err: #b3261e;
|
||
--err-text: #ffffff;
|
||
--code-key: #002f6c;
|
||
--code-str: #0b5fbd;
|
||
--code-com: #3d566e;
|
||
--code-num: #7a4b00;
|
||
--field-bg: #ffffff;
|
||
--field-text: #0d1b2a;
|
||
--placeholder: #7d8fa3;
|
||
--light-logo: block;
|
||
--dark-logo: none;
|
||
}
|
||
|
||
/* Чёрное поле и кислотная зелень. */
|
||
:root[data-theme="neon"] {
|
||
color-scheme: dark;
|
||
--bg: #0b0e07;
|
||
--panel: #0b0e07;
|
||
--panel-2: #151a0d;
|
||
--ink: #c8ff2e;
|
||
--text: #d9ecb0;
|
||
--text-2: #c2d99a;
|
||
--muted: #8fa85f;
|
||
--line: #c8ff2e;
|
||
--line-soft: rgba(255, 255, 255, .28);
|
||
--inv-bg: #c8ff2e;
|
||
--inv-text: #0b0e07;
|
||
--accent: #7fd7ff;
|
||
--err: #ff6b6b;
|
||
--err-text: #0b0e07;
|
||
--code-key: #c8ff2e;
|
||
--code-str: #7fd7ff;
|
||
--code-com: #8fa85f;
|
||
--code-num: #ffd166;
|
||
--field-bg: #151a0d;
|
||
--field-text: #d9ecb0;
|
||
--placeholder: #6f8a44;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* Тёмная вода и ледяная бирюза. */
|
||
:root[data-theme="ice"] {
|
||
color-scheme: dark;
|
||
--bg: #051923;
|
||
--panel: #051923;
|
||
--panel-2: #0b2836;
|
||
--ink: #6fe3ff;
|
||
--text: #d7f2fb;
|
||
--text-2: #b3e0ef;
|
||
--muted: #6d97a8;
|
||
--line: #6fe3ff;
|
||
--line-soft: rgba(255, 255, 255, .28);
|
||
--inv-bg: #6fe3ff;
|
||
--inv-text: #051923;
|
||
--accent: #ffd166;
|
||
--err: #ff7b6b;
|
||
--err-text: #051923;
|
||
--code-key: #6fe3ff;
|
||
--code-str: #ffd166;
|
||
--code-com: #6d97a8;
|
||
--code-num: #a8e0c0;
|
||
--field-bg: #0b2836;
|
||
--field-text: #d7f2fb;
|
||
--placeholder: #5c7f8d;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* Почти чёрная слива и горячая фуксия. */
|
||
:root[data-theme="magenta"] {
|
||
color-scheme: dark;
|
||
--bg: #16041a;
|
||
--panel: #16041a;
|
||
--panel-2: #260a2c;
|
||
--ink: #ff59d6;
|
||
--text: #f6dff0;
|
||
--text-2: #e4c2dc;
|
||
--muted: #a87099;
|
||
--line: #ff59d6;
|
||
--line-soft: rgba(255, 255, 255, .28);
|
||
--inv-bg: #ff59d6;
|
||
--inv-text: #16041a;
|
||
--accent: #8fe3ff;
|
||
--err: #ff7b6b;
|
||
--err-text: #16041a;
|
||
--code-key: #ff59d6;
|
||
--code-str: #8fe3ff;
|
||
--code-com: #a87099;
|
||
--code-num: #ffd166;
|
||
--field-bg: #260a2c;
|
||
--field-text: #f6dff0;
|
||
--placeholder: #8a5c7f;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* Чёрный экран и зелёный фосфор терминала. Символы на фоне рисует
|
||
matrix.js — пока выбрана эта тема. */
|
||
:root[data-theme="matrix"] {
|
||
color-scheme: dark;
|
||
--bg: #020703;
|
||
--panel: #020703;
|
||
--panel-2: #08170c;
|
||
--ink: #00ff41;
|
||
--text: #c9f7d3;
|
||
--text-2: #a6e3b4;
|
||
--muted: #62ab75;
|
||
--line: #00ff41;
|
||
--line-soft: rgba(0, 255, 65, .26);
|
||
--inv-bg: #00ff41;
|
||
--inv-text: #020703;
|
||
--accent: #8cf5ff;
|
||
--err: #ff5f56;
|
||
--err-text: #020703;
|
||
--code-key: #00ff41;
|
||
--code-str: #8cf5ff;
|
||
--code-com: #62ab75;
|
||
--code-num: #e8ff6b;
|
||
--field-bg: #08170c;
|
||
--field-text: #c9f7d3;
|
||
--placeholder: #4b8a5c;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* Закат восьмидесятых: неоновая малина и бирюза на ночном фиолетовом.
|
||
Солнце и сетку до горизонта рисуют псевдоэлементы ниже, без скриптов. */
|
||
:root[data-theme="synthwave"] {
|
||
color-scheme: dark;
|
||
--bg: #14061f;
|
||
--panel: #14061f;
|
||
--panel-2: #241038;
|
||
--ink: #ff4fb0;
|
||
--text: #f7e8ff;
|
||
--text-2: #dcc6f0;
|
||
--muted: #a78bc6;
|
||
--line: #ff4fb0;
|
||
--line-soft: rgba(255, 255, 255, .26);
|
||
--inv-bg: #ff4fb0;
|
||
--inv-text: #14061f;
|
||
--accent: #36e8ee;
|
||
--err: #ff6b6b;
|
||
--err-text: #14061f;
|
||
--code-key: #ff4fb0;
|
||
--code-str: #36e8ee;
|
||
--code-com: #a78bc6;
|
||
--code-num: #ffd319;
|
||
--field-bg: #241038;
|
||
--field-text: #f7e8ff;
|
||
--placeholder: #8a6fa8;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* Полярная ночь: зелень сияния и фиолетовый отсвет — пара к «Финляндии». */
|
||
:root[data-theme="aurora"] {
|
||
color-scheme: dark;
|
||
--bg: #04121c;
|
||
--panel: #04121c;
|
||
--panel-2: #0a2331;
|
||
--ink: #6dffa8;
|
||
--text: #e2f6ee;
|
||
--text-2: #bfe3d6;
|
||
--muted: #7fa89c;
|
||
--line: #6dffa8;
|
||
--line-soft: rgba(255, 255, 255, .26);
|
||
--inv-bg: #6dffa8;
|
||
--inv-text: #04121c;
|
||
--accent: #c99bff;
|
||
--err: #ff7b7b;
|
||
--err-text: #04121c;
|
||
--code-key: #6dffa8;
|
||
--code-str: #c99bff;
|
||
--code-com: #7fa89c;
|
||
--code-num: #ffd166;
|
||
--field-bg: #0a2331;
|
||
--field-text: #e2f6ee;
|
||
--placeholder: #5f8579;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
|
||
/* ---------- праздничные темы ----------
|
||
Живут в свои даты (app/services/seasons.py): в меню появляются только
|
||
тогда, а сохранённый выбор после праздника не действует. */
|
||
|
||
/* Хэллоуин: свечной янтарь на почти чёрном фиолетовом — тыква без неона. */
|
||
:root[data-theme="halloween"] {
|
||
color-scheme: dark;
|
||
--bg: #120c14;
|
||
--panel: #120c14;
|
||
--panel-2: #1e1422;
|
||
--ink: #df8f45;
|
||
--text: #ece3d8;
|
||
--text-2: #d4c6b4;
|
||
--muted: #9c8d80;
|
||
--line: #df8f45;
|
||
--line-soft: rgba(255, 255, 255, .24);
|
||
--inv-bg: #df8f45;
|
||
--inv-text: #120c14;
|
||
--accent: #a995d6;
|
||
--err: #ff6b5e;
|
||
--err-text: #111111;
|
||
--code-key: #df8f45;
|
||
--code-str: #a995d6;
|
||
--code-com: #9c8d80;
|
||
--code-num: #9fc98a;
|
||
--field-bg: #1e1422;
|
||
--field-text: #ece3d8;
|
||
--placeholder: #85776b;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
/* Новый год: золото и праздничный красный на насыщенной ёлочной зелени. */
|
||
:root[data-theme="newyear"] {
|
||
color-scheme: dark;
|
||
--bg: #0a3324;
|
||
--panel: #0a3324;
|
||
--panel-2: #10422f;
|
||
--ink: #ffd34d;
|
||
--text: #fbf6e9;
|
||
--text-2: #dfe9e1;
|
||
--muted: #a9c4b4;
|
||
--line: #ffd34d;
|
||
--line-soft: rgba(255, 255, 255, .26);
|
||
--inv-bg: #ffd34d;
|
||
--inv-text: #0a3324;
|
||
--accent: #ff6f7d;
|
||
--err: #ff8a65;
|
||
--err-text: #111111;
|
||
--code-key: #ffd34d;
|
||
--code-str: #ff6f7d;
|
||
--code-com: #a9c4b4;
|
||
--code-num: #7ee0a1;
|
||
--field-bg: #10422f;
|
||
--field-text: #fbf6e9;
|
||
--placeholder: #86a595;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
/* День святого Валентина: малина на розовой бумаге — единственный светлый
|
||
праздник, чтобы не путать его с «Японией», поле заметно розовое. */
|
||
:root[data-theme="valentine"] {
|
||
color-scheme: light;
|
||
--bg: #fff0f5;
|
||
--panel: #ffffff;
|
||
--panel-2: #ffdde9;
|
||
--ink: #c2185b;
|
||
--text: #2a0b17;
|
||
--text-2: #5a2a3c;
|
||
--muted: #7d4a5e;
|
||
--line: #c2185b;
|
||
--line-soft: rgba(194, 24, 91, .26);
|
||
--inv-bg: #c2185b;
|
||
--inv-text: #ffffff;
|
||
--accent: #7a1fa2;
|
||
--err: #b3261e;
|
||
--err-text: #ffffff;
|
||
--code-key: #c2185b;
|
||
--code-str: #7a1fa2;
|
||
--code-com: #7d4a5e;
|
||
--code-num: #8a5a00;
|
||
--field-bg: #ffffff;
|
||
--field-text: #2a0b17;
|
||
--placeholder: #a98593;
|
||
--light-logo: block;
|
||
--dark-logo: none;
|
||
}
|
||
/* День космонавтики: звёздный свет и золото на почти чёрном индиго. */
|
||
:root[data-theme="cosmos"] {
|
||
color-scheme: dark;
|
||
--bg: #070a1d;
|
||
--panel: #070a1d;
|
||
--panel-2: #10163a;
|
||
--ink: #8ecbff;
|
||
--text: #e4ecff;
|
||
--text-2: #c3d0f2;
|
||
--muted: #8592bd;
|
||
--line: #8ecbff;
|
||
--line-soft: rgba(255, 255, 255, .26);
|
||
--inv-bg: #8ecbff;
|
||
--inv-text: #070a1d;
|
||
--accent: #ffcf5c;
|
||
--err: #ff6b6b;
|
||
--err-text: #070a1d;
|
||
--code-key: #8ecbff;
|
||
--code-str: #ffcf5c;
|
||
--code-com: #8592bd;
|
||
--code-num: #ff9f7a;
|
||
--field-bg: #10163a;
|
||
--field-text: #e4ecff;
|
||
--placeholder: #6b77a0;
|
||
--light-logo: none;
|
||
--dark-logo: block;
|
||
}
|
||
/* GTA VI: разовая тема под домашку, до 25 ноября 2026 (seasons.py).
|
||
Пастель логотипа VI — розовый, персик и сирень на тёплом светлом поле.
|
||
Сама пастель тексту не годится по контрасту, поэтому линии и ссылки —
|
||
её насыщенные родственники, а пастель уходит в заливки и рейку. */
|
||
:root[data-theme="vice"] {
|
||
color-scheme: light;
|
||
--bg: #fff5f0;
|
||
--panel: #ffffff;
|
||
--panel-2: #ffe9f0;
|
||
--ink: #d0216a;
|
||
--text: #2a1230;
|
||
--text-2: #533a57;
|
||
--muted: #765c74;
|
||
--line: #d0216a;
|
||
--line-soft: rgba(208, 33, 106, .24);
|
||
--inv-bg: #ffa6c6;
|
||
--inv-text: #2a1230;
|
||
--accent: #6a3fd1;
|
||
--err: #b3261e;
|
||
--err-text: #ffffff;
|
||
--code-key: #d0216a;
|
||
--code-str: #6a3fd1;
|
||
--code-com: #765c74;
|
||
--code-num: #a85200;
|
||
--field-bg: #ffffff;
|
||
--field-text: #2a1230;
|
||
--placeholder: #a28ca0;
|
||
--light-logo: block;
|
||
--dark-logo: none;
|
||
}
|
||
|
||
:root {
|
||
--rule: 3px;
|
||
--display: "Unbounded", "Arial Black", Impact, sans-serif;
|
||
--sans: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
||
--mono: "JetBrains Mono", Menlo, Consolas, monospace;
|
||
--rail: 88px;
|
||
/* Шрифт смайликов-украшений — явно и первым. Без этого Windows берёт для
|
||
старых символов (❄ ⭐ ✨) одноцветный Segoe UI Symbol вместо цветного
|
||
Segoe UI Emoji, а Linux — что найдёт. */
|
||
--emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
|
||
}
|
||
|
||
*, *::before, *::after { box-sizing: border-box; }
|
||
|
||
/* Правило класса вроде .inline-form { display: flex } перебивает браузерное
|
||
[hidden], и скрытый блок остаётся видимым. */
|
||
[hidden] { display: none !important; }
|
||
html { -webkit-text-size-adjust: 100%; }
|
||
body {
|
||
margin: 0; background: var(--bg); color: var(--text);
|
||
font-family: var(--sans); font-size: 15px; line-height: 1.5;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
a { color: inherit; text-decoration: none; }
|
||
/* Ссылки в тексте: подчёркивание вместо цвета — плакат остаётся трёхцветным.
|
||
На ховере — инверсия, как маркером по бумаге. */
|
||
main a:not([class]) { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
|
||
main a:not([class]):hover { background: var(--ink); color: var(--bg); text-decoration: none; }
|
||
::selection { background: var(--ink); color: var(--bg); }
|
||
/* На тёмных плашках обычное выделение совпадает с их фоном, и не видно,
|
||
выделился ли ключ или адрес, который надо скопировать. Там — обратное. */
|
||
.rail ::selection, .mobile-bar ::selection, .tabbar ::selection,
|
||
pre.snippet::selection, pre.snippet ::selection, .code-box::selection, .code-box ::selection,
|
||
.flash.ok::selection, .flash.ok ::selection, .badge.ok::selection, .badge.info::selection,
|
||
.nb-md code::selection { background: var(--inv-text); color: var(--inv-bg); }
|
||
:focus-visible { outline: var(--rule) solid var(--ink); outline-offset: 2px; }
|
||
|
||
.mono, .code-box { font-family: var(--mono); }
|
||
.num, .points, .value, .rank, .countdown, .bar-value { font-variant-numeric: tabular-nums; }
|
||
|
||
/* ---------- иконки ---------- */
|
||
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; vertical-align: -.18em; }
|
||
.icon.lg { width: 1.5em; height: 1.5em; }
|
||
.icon.xl { width: 2em; height: 2em; stroke-width: 1.8; }
|
||
|
||
/* ---------- метки капсом (общий приём) ---------- */
|
||
.lbl, h2, th, label, .badge, .stat .label, .eyebrow, .feed-day, .ticker-label, .brand-text, .nav a, .tabbar a, .nav-more > summary, .legend, .progress-line, .hm-legend, .heatmap-months, .heatmap-weekdays {
|
||
font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
|
||
}
|
||
|
||
/* ============================================================
|
||
Рейка — чёрный блок плаката
|
||
============================================================ */
|
||
body.with-rail { padding-left: var(--rail); }
|
||
.rail {
|
||
position: fixed; inset: 0 auto 0 0; width: var(--rail);
|
||
background: var(--inv-bg); color: var(--inv-text);
|
||
display: flex; flex-direction: column; z-index: 30;
|
||
}
|
||
.rail .brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 3px 12px; color: var(--inv-text); border-bottom: var(--rule) solid var(--inv-text); }
|
||
.rail .brand .icon { width: 30px; height: 30px; }
|
||
.rail .brand:hover { text-decoration: none; }
|
||
.brand-text { font-size: 9px; text-align: center; line-height: 1.3; }
|
||
.brand-logo { max-width: 82px; height: auto; display: block; }
|
||
/* Знак как маска: форма из SVG, цвет — текущий цвет текста. */
|
||
.brand-mark {
|
||
display: block; width: 84px; height: 60px;
|
||
background: currentColor;
|
||
-webkit-mask: var(--mark) center / contain no-repeat;
|
||
mask: var(--mark) center / contain no-repeat;
|
||
}
|
||
.brand-mark.small { width: 56px; height: 40px; }
|
||
.brand-mark.auth-mark { width: 182px; height: 130px; color: var(--ink); }
|
||
|
||
/* Переключатель темы: показываем иконку текущего состояния. */
|
||
.only-light { display: var(--light-logo); }
|
||
.only-dark { display: var(--dark-logo); }
|
||
|
||
.rail .nav { display: flex; flex-direction: column; }
|
||
/* Пункты прокручиваются, знак и подвал стоят на месте. Пока рейка была
|
||
сплошной, всё, что не влезало по высоте, обрезалось — вместе с выходом. */
|
||
.rail .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
|
||
/* Полосы прокрутки не видно, прокрутка колесом и пальцем остаётся. Видимая
|
||
полоса отнимала у рейки ширину, и «Интеграции» ломались на «ИНТЕГРАЦИ / И». */
|
||
.rail .nav::-webkit-scrollbar { display: none; }
|
||
.nav a, .tabbar a, .nav-more > summary {
|
||
display: flex; flex-direction: column; align-items: center; gap: 6px;
|
||
padding: 13px 4px 11px; color: var(--inv-text); font-size: 9.5px; letter-spacing: .06em;
|
||
border-bottom: 1px solid var(--line-soft); opacity: .78;
|
||
}
|
||
.nav a .icon, .tabbar a .icon, .nav-more > summary .icon { width: 20px; height: 20px; }
|
||
/* Подпись переносится: в английском и французском слова длиннее русских
|
||
и «ANNOUNCEMENTS» иначе вылезает за рейку. */
|
||
.nav a span, .tabbar a span, .nav-more > summary span { text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
|
||
.nav a:hover, .tabbar a:hover, .nav-more > summary:hover { opacity: 1; text-decoration: none; }
|
||
.nav a.active, .tabbar a.active, .nav-more.active > summary, .nav-more[open] > summary {
|
||
opacity: 1; background: var(--inv-text); color: var(--inv-bg); }
|
||
.nav-count { display: inline-block; min-width: 16px; padding: 0 4px; font-size: 9px; line-height: 15px;
|
||
background: var(--err); color: var(--err-text); font-weight: 800; }
|
||
.nav a.active .nav-count, .tabbar a.active .nav-count { background: var(--inv-bg); color: var(--inv-text); }
|
||
/* Плашка «новое» у свежего раздела. Сидит в углу пункта, а не строкой под
|
||
подписью: в нижней панели телефона на третью строку нет места. */
|
||
.nav a, .tabbar a, .nav-more > summary { position: relative; }
|
||
.nav-new { position: absolute; top: 4px; right: 3px; padding: 0 3px; font-size: 7.5px; line-height: 12px;
|
||
font-weight: 800; letter-spacing: .04em; background: var(--inv-text); color: var(--inv-bg); }
|
||
.nav a.active .nav-new, .tabbar a.active .nav-new,
|
||
.nav-more.active > summary .nav-new, .nav-more[open] > summary .nav-new { background: var(--inv-bg); color: var(--inv-text); }
|
||
/* В нижней панели телефона пункт шириной в иконку, и слово закрыло бы её —
|
||
там вместо слова квадратик у правого плеча иконки. */
|
||
.tabbar .nav-new { top: 6px; right: calc(50% - 17px); width: 8px; height: 8px; padding: 0;
|
||
font-size: 0; }
|
||
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 16px; border-top: var(--rule) solid var(--inv-text); }
|
||
.rail .whoami .avatar { width: 36px; height: 36px; }
|
||
.rail-btn { background: transparent; border: none; box-shadow: none; color: var(--inv-text); padding: 6px; opacity: .8; }
|
||
.rail-btn:hover { opacity: 1; background: transparent; transform: none; }
|
||
|
||
/* Подвал рейки: профиль, вид, оформление, язык, выход. Все кнопки одного
|
||
размера и без рамок — иначе строй сбивается: часть в рамке, часть без,
|
||
и столбик выглядит косым. Рамка у «RU» нужна на странице входа, где
|
||
переключатель стоит сам по себе, а здесь её роль играет сама рейка. */
|
||
.rail-foot .rail-btn,
|
||
.rail-foot .lang > summary {
|
||
display: flex; align-items: center; justify-content: center;
|
||
width: 36px; height: 36px; padding: 0;
|
||
border: 0; border-radius: 2px;
|
||
color: var(--inv-text); opacity: .75;
|
||
}
|
||
.rail-foot .rail-btn:hover,
|
||
.rail-foot .lang > summary:hover,
|
||
.rail-foot .lang[open] > summary { opacity: 1; }
|
||
.rail-foot .lang > summary { font-size: 12px; }
|
||
.rail-foot form { display: flex; }
|
||
|
||
/* ---------- «Ещё» в рейке ---------- */
|
||
.nav-more > summary { list-style: none; cursor: pointer; user-select: none; }
|
||
.nav-more > summary::-webkit-details-marker { display: none; }
|
||
/* Меню привязано к окну, а не к пункту: список пунктов прокручивается
|
||
и обрезал бы всё, что торчит за край рейки. */
|
||
.nav-more-menu {
|
||
position: fixed; left: calc(var(--rail) + 8px); bottom: 12px; z-index: 40;
|
||
display: flex; flex-direction: column; min-width: 230px; max-height: calc(100vh - 24px); overflow: auto;
|
||
background: var(--bg); color: var(--ink); border: var(--rule) solid var(--ink);
|
||
}
|
||
.nav-more-group {
|
||
margin: 0; padding: 10px 14px 4px; font-size: 10.5px; font-weight: 800;
|
||
letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
|
||
}
|
||
.nav .nav-more-menu a, .tabbar .nav-more-menu a {
|
||
flex-direction: row; align-items: center; gap: 10px; padding: 9px 14px;
|
||
border-bottom: none; opacity: 1; color: var(--ink);
|
||
font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500;
|
||
}
|
||
.nav .nav-more-menu a span, .tabbar .nav-more-menu a span { text-align: left; }
|
||
.nav .nav-more-menu a:hover, .tabbar .nav-more-menu a:hover { background: var(--ink); color: var(--bg); }
|
||
.nav .nav-more-menu a.active, .tabbar .nav-more-menu a.active { background: var(--ink); color: var(--bg); font-weight: 700; }
|
||
.nav-more-menu a .badge { margin-left: auto; font-size: 9px; padding: 1px 6px; }
|
||
|
||
/* ---------- меню аватарки ---------- */
|
||
.rail-menu { position: relative; }
|
||
.rail-menu > summary { list-style: none; cursor: pointer; display: flex; padding: 0; }
|
||
.rail-menu > summary::-webkit-details-marker { display: none; }
|
||
.rail-menu > summary .avatar { width: 36px; height: 36px; }
|
||
/* Круглая рамка с зазором — знак, что аватарка нажимается и за ней меню,
|
||
а не просто картинка. Тенью, а не border: рамка не съедает место у
|
||
инициалов и не сдвигает строй рейки. */
|
||
.rail-menu > summary .avatar {
|
||
box-shadow: 0 0 0 2px var(--inv-bg), 0 0 0 4px var(--inv-text);
|
||
transition: box-shadow .12s;
|
||
}
|
||
.rail-menu > summary:hover .avatar, .rail-menu[open] > summary .avatar {
|
||
box-shadow: 0 0 0 2px var(--inv-bg), 0 0 0 5px var(--inv-text);
|
||
}
|
||
.mobile-bar .avatar { background: var(--inv-text); color: var(--inv-bg); }
|
||
.mobile-bar .rail-menu > summary .avatar { width: 32px; height: 32px; }
|
||
/* На телефоне меню раскрывается вниз от правого края, а вложенные тема
|
||
и язык — прямо в нём: сбоку от узкого экрана места нет. */
|
||
.rail-menu.down .rail-menu-panel { left: auto; right: 0; top: calc(100% + 10px); bottom: auto; min-width: 240px; }
|
||
.rail-menu.down .lang-menu { position: static; min-width: 0; max-height: 50vh; border: 0; border-top: 1px solid var(--line-soft); }
|
||
.rail-menu-panel {
|
||
position: absolute; left: calc(100% + 14px); bottom: 0; z-index: 40;
|
||
display: flex; flex-direction: column; min-width: 220px;
|
||
background: var(--bg); color: var(--ink); border: var(--rule) solid var(--ink);
|
||
}
|
||
.rail-menu-name { margin: 0; padding: 12px 14px 8px; font-weight: 800; border-bottom: 1px solid var(--line-soft); }
|
||
.rail-menu-panel > a, .rail-menu-panel form button, .rail-menu-panel .lang.in-menu > summary {
|
||
display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px;
|
||
background: transparent; border: 0; border-radius: 0; box-shadow: none; opacity: 1;
|
||
color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; text-align: left;
|
||
height: auto; justify-content: flex-start;
|
||
}
|
||
.rail-menu-panel > a:hover, .rail-menu-panel form button:hover,
|
||
.rail-menu-panel .lang.in-menu > summary:hover, .rail-menu-panel .lang.in-menu[open] > summary {
|
||
background: var(--ink); color: var(--bg); text-decoration: none; transform: none;
|
||
}
|
||
.rail-menu-panel form { display: block; }
|
||
.rail-menu-panel .lang-code { margin-left: auto; font-weight: 700; font-size: 12px; }
|
||
|
||
/* ---------- выбор языка ---------- */
|
||
/* <details> вместо меню на скриптах: открывается силами браузера. */
|
||
.lang { position: relative; }
|
||
.lang > summary {
|
||
list-style: none; cursor: pointer; user-select: none;
|
||
font-size: 11px; font-weight: 700; letter-spacing: .04em;
|
||
padding: 5px 7px; border: 1px solid currentColor; border-radius: 2px;
|
||
opacity: .8; text-align: center;
|
||
}
|
||
.lang > summary::-webkit-details-marker { display: none; }
|
||
.lang > summary:hover, .lang[open] > summary { opacity: 1; }
|
||
.lang-menu {
|
||
position: absolute; bottom: 0; left: calc(100% + 8px); z-index: 40;
|
||
display: flex; flex-direction: column; min-width: 140px;
|
||
background: var(--bg); color: var(--ink);
|
||
border: var(--rule) solid var(--ink);
|
||
}
|
||
.lang.up .lang-menu { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; }
|
||
.lang-menu button {
|
||
display: block; width: 100%; text-align: left;
|
||
background: transparent; border: none; box-shadow: none; border-radius: 0;
|
||
color: inherit; font-size: 13px; padding: 9px 12px; letter-spacing: 0;
|
||
text-transform: none;
|
||
}
|
||
.lang-menu button:hover { background: var(--ink); color: var(--bg); transform: none; }
|
||
.lang-menu button.current { font-weight: 800; }
|
||
.lang-menu button.current::after { content: " ✓"; }
|
||
/* Выбор оформления: то же меню, что у языка, плюс образец цвета.
|
||
Образец рисуется своими значениями, а не переменными темы: иначе все
|
||
шесть квадратиков были бы одного цвета — текущего. */
|
||
.theme > summary { display: flex; align-items: center; justify-content: center; }
|
||
.theme-menu { max-height: min(70vh, 460px); overflow: auto; }
|
||
.theme-menu button { display: flex; align-items: center; gap: 10px; }
|
||
.theme-group {
|
||
margin: 0; padding: 8px 12px 2px;
|
||
font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
|
||
font-weight: 800; color: var(--muted);
|
||
}
|
||
.theme-menu .swatch {
|
||
width: 18px; height: 18px; flex: none;
|
||
border: 2px solid currentColor;
|
||
background: linear-gradient(135deg, var(--sw-a) 0 50%, var(--sw-b) 50% 100%);
|
||
}
|
||
.sw-amber { --sw-a: #f4c430; --sw-b: #111111; }
|
||
.sw-parchment { --sw-a: #fffdf7; --sw-b: #14110c; }
|
||
.sw-coal { --sw-a: #0f0e0a; --sw-b: #f4c430; }
|
||
.sw-sweden { --sw-a: #062f5c; --sw-b: #fecc00; }
|
||
.sw-brazil { --sw-a: #063d20; --sw-b: #fedd00; }
|
||
.sw-japan { --sw-a: #fffdfc; --sw-b: #b3001f; }
|
||
.sw-oxford { --sw-a: #0a1a3f; --sw-b: #f3ead8; }
|
||
.sw-mandarin { --sw-a: #fb8b24; --sw-b: #111111; }
|
||
.sw-lime { --sw-a: #d7f205; --sw-b: #111111; }
|
||
.sw-finland { --sw-a: #ffffff; --sw-b: #002f6c; }
|
||
.sw-neon { --sw-a: #0b0e07; --sw-b: #c8ff2e; }
|
||
.sw-ice { --sw-a: #051923; --sw-b: #6fe3ff; }
|
||
.sw-magenta { --sw-a: #16041a; --sw-b: #ff59d6; }
|
||
.sw-halloween { --sw-a: #120c14; --sw-b: #df8f45; }
|
||
.sw-newyear { --sw-a: #0a3324; --sw-b: #ffd34d; }
|
||
.sw-valentine { --sw-a: #fff0f5; --sw-b: #c2185b; }
|
||
.sw-cosmos { --sw-a: #070a1d; --sw-b: #8ecbff; }
|
||
.sw-vice { --sw-a: #ffa6c6; --sw-b: #8b6cf0; }
|
||
.sw-matrix { --sw-a: #020703; --sw-b: #00ff41; }
|
||
.sw-synthwave { --sw-a: #14061f; --sw-b: #ff4fb0; }
|
||
.sw-aurora { --sw-a: #04121c; --sw-b: #6dffa8; }
|
||
|
||
/* На странице входа рейки нет — переключатель стоит сам по себе. */
|
||
.lang.auth { display: inline-block; margin: 0 0 24px; }
|
||
.lang.auth > summary { display: inline-block; }
|
||
.lang.auth .lang-menu { bottom: auto; top: calc(100% + 8px); left: 0; }
|
||
/* Аватарка — у правого края: меню раскрывается от него вниз и влево. */
|
||
.mobile-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
|
||
.tabbar { display: none; }
|
||
.mobile-bar { display: none; }
|
||
|
||
/* ---------- строка события — инвертированная полоса ---------- */
|
||
.ticker {
|
||
position: sticky; top: 0; z-index: 20;
|
||
display: flex; align-items: center; gap: 12px;
|
||
min-height: 48px; padding: 8px 20px 8px 28px;
|
||
background: var(--inv-bg); color: var(--inv-text);
|
||
}
|
||
/* Ссылкой остаётся сама полоса, крестик — её сосед. */
|
||
.ticker-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; color: inherit; }
|
||
.ticker-main:hover, .ticker:hover { text-decoration: none; }
|
||
.ticker-hide .rail-btn { color: currentColor; opacity: .55; padding: 4px; }
|
||
.ticker-hide .rail-btn:hover { opacity: 1; color: var(--err); }
|
||
.ticker-hide .icon { width: 16px; height: 16px; }
|
||
.ticker-label { font-size: 10px; opacity: .8; }
|
||
.ticker-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
||
.ticker .countdown { margin-left: auto; background: transparent; color: var(--inv-text); border: 2px solid var(--inv-text); }
|
||
.ticker .countdown[data-state="live"] { background: var(--err); color: var(--err-text); border-color: var(--err); }
|
||
.ticker-go { display: inline-flex; }
|
||
|
||
main { max-width: 1180px; margin: 0 auto; padding: 34px 32px 90px; }
|
||
|
||
/* Подвал: виден, только если долистать, и не спорит со страницей. Отступ
|
||
снизу у main рассчитан на пустой низ — подвал забирает часть его. */
|
||
.site-foot { max-width: 1180px; margin: -50px auto 0; padding: 0 32px 28px; display: flex; justify-content: center; gap: 10px; color: var(--muted); opacity: .7; }
|
||
.site-foot a { color: inherit; display: inline-flex; padding: 2px; }
|
||
.site-foot a:hover, .site-foot a:focus-visible { color: var(--text); }
|
||
.site-foot .icon { width: 14px; height: 14px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||
|
||
/* ============================================================
|
||
Типографика
|
||
============================================================ */
|
||
h1 { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 10px; }
|
||
/* «ДВУХСТУПЕНЧАТЫЕ» крупным шрифтом шире телефона: длинное слово переносим. */
|
||
h1, .eyebrow { overflow-wrap: break-word; hyphens: auto; }
|
||
h2 { font-size: 11px; color: var(--text); margin: 38px 0 12px; display: flex; align-items: center; gap: 12px; }
|
||
h2::before { content: ""; width: 28px; height: var(--rule); background: var(--ink); flex: none; }
|
||
h2::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
|
||
h2 .icon { display: none; }
|
||
h3 { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; margin: 0 0 10px; line-height: 1.2; }
|
||
.eyebrow { font-size: 10px; color: var(--text); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
|
||
.eyebrow::before { content: "//"; opacity: .5; }
|
||
p.sub { color: var(--text-2); margin: 0 0 24px; max-width: 64ch; font-size: 15px; }
|
||
.muted { color: var(--muted); }
|
||
.small { font-size: 13px; }
|
||
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
|
||
|
||
/* ============================================================
|
||
Карточки — линейки, без заливки
|
||
============================================================ */
|
||
.card { background: var(--panel); border: var(--rule) solid var(--ink); padding: 20px 22px; margin-bottom: 16px; }
|
||
.card.flat { border-width: 1px; border-color: var(--line-soft); }
|
||
a.card { display: block; color: inherit; transition: background .12s, color .12s; }
|
||
a.card:hover { background: var(--inv-bg); color: var(--inv-text); text-decoration: none; }
|
||
a.card:hover .muted, a.card:hover h3 .icon { color: inherit; opacity: .85; }
|
||
|
||
/* ============================================================
|
||
Инвертированные блоки: карточка под курсором, шаг онбординга,
|
||
закреплённое объявление.
|
||
|
||
Меняем сами переменные, а не каждый вложенный элемент: бейдж, полоса
|
||
прогресса и линейки красятся «чернилами», и на чёрном фоне они просто
|
||
исчезали. Правка по месту чинила бы то, что уже есть, и ломалась бы
|
||
на каждой новой детали внутри.
|
||
============================================================ */
|
||
a.card:hover, .step:hover, .announce.pinned, .podium-card.p1 {
|
||
--ink: var(--inv-text);
|
||
--text: var(--inv-text);
|
||
--text-2: var(--inv-text);
|
||
--muted: var(--inv-text);
|
||
--line: var(--inv-text);
|
||
--line-soft: color-mix(in srgb, var(--inv-text) 35%, transparent);
|
||
--panel: var(--inv-bg);
|
||
--panel-2: var(--inv-bg);
|
||
}
|
||
/* Заливка бейджа внутри такого блока стала бы фоном в фон — оставляем контур. */
|
||
a.card:hover .badge, .step:hover .badge,
|
||
.announce.pinned .badge, .podium-card.p1 .badge {
|
||
background: transparent; color: var(--inv-text); border-color: var(--inv-text);
|
||
}
|
||
/* Красный несёт смысл сам по себе — его не трогаем. */
|
||
a.card:hover .badge.bad, .step:hover .badge.bad,
|
||
.announce.pinned .badge.bad, .podium-card.p1 .badge.bad {
|
||
background: var(--err); color: var(--err-text); border-color: var(--err);
|
||
}
|
||
.card.stretch { display: flex; flex-direction: column; }
|
||
.card.stretch .push-bottom { margin-top: auto; padding-top: 12px; }
|
||
.callout { border-left-width: 14px; }
|
||
.callout.warn { border-left-color: var(--err); }
|
||
|
||
.grid { display: grid; gap: 16px; }
|
||
/* Ячейка сетки по умолчанию не уже своего самого широкого содержимого:
|
||
одна формула или строка теста распирала всю страницу на телефоне. С нулём
|
||
широкое прокручивается внутри своего блока, а страница остаётся в экране. */
|
||
.grid > * { min-width: 0; }
|
||
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
|
||
.grid.three { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); counter-reset: sec; }
|
||
.grid.three > a.card h3::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); font-size: 12px; opacity: .55; margin-right: 6px; }
|
||
.grid.three > a.card h3 .icon { display: none; }
|
||
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: var(--rule) solid var(--ink); }
|
||
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
||
.between { justify-content: space-between; }
|
||
|
||
/* ---------- плитки статистики — ячейки одной таблицы ---------- */
|
||
.stat { padding: 18px 20px 20px; border-right: var(--rule) solid var(--ink); }
|
||
.stat:last-child { border-right: none; }
|
||
.stat .icon { display: none; }
|
||
.stat .value { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: .9; letter-spacing: -.03em; }
|
||
.stat .label { font-size: 10px; color: var(--text-2); margin-top: 10px; }
|
||
|
||
/* ---------- аватарки ---------- */
|
||
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 11px; font-weight: 800; flex: none; position: relative; overflow: hidden; background: var(--inv-bg); color: var(--inv-text); }
|
||
/* Картинка Gravatar лежит поверх инициалов: не загрузилась — остаются они. */
|
||
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
||
.avatar.sm { width: 24px; height: 24px; font-size: 9px; }
|
||
.avatar.lg { width: 60px; height: 60px; font-size: 20px; }
|
||
.rail .avatar { background: var(--inv-text); color: var(--inv-bg); }
|
||
|
||
/* ============================================================
|
||
Таблицы
|
||
============================================================ */
|
||
.table-wrap { overflow-x: auto; }
|
||
table { width: 100%; border-collapse: collapse; }
|
||
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
|
||
th { font-size: 10px; color: var(--text); border-bottom: var(--rule) solid var(--ink); }
|
||
tbody tr:hover { background: var(--panel-2); }
|
||
tbody tr:last-child td { border-bottom: none; }
|
||
.card.table-wrap { padding: 0 6px; }
|
||
|
||
/* ============================================================
|
||
Формы
|
||
============================================================ */
|
||
input[type=text], input[type=email], input[type=number], input[type=url], input[type=password], input[type=file], input[type=datetime-local], select, textarea {
|
||
width: 100%; padding: 10px 12px;
|
||
border: var(--rule) solid var(--ink); background: var(--field-bg); color: var(--field-text);
|
||
font: inherit; border-radius: 0;
|
||
}
|
||
/* Однострочные поля одной высоты: у select своя высота строки, у поля даты —
|
||
внутренние отступы, и в одном ряду низ полей шёл лесенкой. */
|
||
input[type=text], input[type=email], input[type=number], input[type=url], input[type=password], input[type=datetime-local], select {
|
||
height: calc(1.5em + 20px + 2 * var(--rule)); line-height: 1.5;
|
||
}
|
||
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--ink); }
|
||
input::placeholder, textarea::placeholder { color: var(--placeholder); }
|
||
textarea { min-height: 130px; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
|
||
label { display: block; font-size: 10px; color: var(--text); margin-bottom: 6px; }
|
||
label.check { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; cursor: pointer; }
|
||
label.check input { width: auto; margin: 0; accent-color: var(--ink); }
|
||
/* Выбор нескольких групп. Рамка как у поля ввода, чтобы читалось как один
|
||
контрол, а не россыпь галочек; длинный список прокручивается внутри. */
|
||
.check-list { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; max-height: 168px; overflow-y: auto; border: var(--rule) solid var(--ink); background: var(--field-bg); }
|
||
.check-list label.check { color: var(--field-text); margin: 0; }
|
||
.field { margin-bottom: 14px; }
|
||
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
|
||
.inline-form .field { margin-bottom: 0; }
|
||
|
||
/* ============================================================
|
||
Кнопки — чёрный блок / контур
|
||
============================================================ */
|
||
button, .btn {
|
||
display: inline-flex; align-items: center; gap: 8px;
|
||
padding: 10px 18px; border: var(--rule) solid var(--ink);
|
||
background: var(--inv-bg); color: var(--inv-text);
|
||
font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
|
||
cursor: pointer; white-space: nowrap; border-radius: 0;
|
||
transition: transform .08s, box-shadow .08s;
|
||
}
|
||
button:hover, .btn:hover { color: var(--inv-text); text-decoration: none; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
|
||
button:active, .btn:active { transform: none; box-shadow: none; }
|
||
button.ghost, .btn.ghost { background: transparent; color: var(--text); }
|
||
button.ghost:hover, .btn.ghost:hover { color: var(--text); }
|
||
button.danger, .btn.danger { background: transparent; color: var(--text); border-color: var(--line-soft); }
|
||
button.danger:hover, .btn.danger:hover { background: var(--err); color: var(--err-text); border-color: var(--err); transform: none; box-shadow: none; }
|
||
button.small, .btn.small { padding: 6px 11px; font-size: 10.5px; }
|
||
/* Запрос ушёл: кнопка не прыгает под курсором, чтобы её не хотелось жать снова. */
|
||
button[aria-busy="true"], button[aria-busy="true"]:hover { cursor: progress; opacity: .6; transform: none; box-shadow: none; }
|
||
|
||
/* ============================================================
|
||
Бейджи — плотность заливки вместо цвета
|
||
============================================================ */
|
||
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 10px; border: 1.5px solid var(--ink); color: var(--text); white-space: nowrap; line-height: 1.5; }
|
||
.badge .icon { width: 1em; height: 1em; }
|
||
.badge.easy { border-width: 1.5px; }
|
||
.badge.medium { border-width: 3px; padding: 1.5px 7.5px; }
|
||
.badge.hard, .badge.ok, .badge.info { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
|
||
.badge.warn { border-width: 3px; padding: 1.5px 7.5px; }
|
||
.badge.bad { background: var(--err); color: var(--err-text); border-color: var(--err); }
|
||
.badge.hot { background: var(--inv-bg); color: var(--inv-text); }
|
||
a.badge:hover { text-decoration: none; opacity: .85; }
|
||
.tag { display: inline-block; padding: 3px 9px; font-size: 12px; margin: 0 6px 6px 0; border: 1.5px solid var(--ink); }
|
||
|
||
/* ============================================================
|
||
Флеши
|
||
============================================================ */
|
||
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; border: var(--rule) solid var(--ink); }
|
||
.flash.ok { background: var(--inv-bg); color: var(--inv-text); }
|
||
.flash.err { background: var(--err); color: var(--err-text); border-color: var(--err); }
|
||
|
||
/* ============================================================
|
||
Прогресс
|
||
============================================================ */
|
||
.bar { height: 14px; border: 2px solid var(--ink); background: transparent; overflow: hidden; }
|
||
.bar > span { display: block; height: 100%; background: var(--ink); transition: width .3s; }
|
||
.progress-line { display: flex; justify-content: space-between; font-size: 10px; margin-top: 8px; color: var(--text-2); }
|
||
.progress-line b { color: var(--text); }
|
||
|
||
/* ============================================================
|
||
Матрица — вердикты плотностью
|
||
============================================================ */
|
||
.matrix td, .matrix th { text-align: center; padding: 6px 4px; }
|
||
.matrix td:first-child, .matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--panel); min-width: 190px; }
|
||
.matrix th a { color: var(--text); }
|
||
.cell { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid var(--ink); font-weight: 800; }
|
||
.cell .icon { width: 14px; height: 14px; stroke-width: 3.2; }
|
||
/* Заливка означает зачёт, а не факт решения: чёрная клетка — балл в кармане.
|
||
Решённое, но не зачтённое остаётся контуром, поэтому строка читается
|
||
с одного взгляда — сколько чёрного, столько и зачтено. */
|
||
.cell.solved_in_time { color: var(--text); }
|
||
.cell.solved_late { color: var(--muted); border-color: var(--line-soft); }
|
||
.cell.solved_before { border-style: dashed; color: var(--muted); }
|
||
.cell.not_solved { border-color: var(--line-soft); border-style: dotted; }
|
||
/* Ниже статусов: у них та же специфичность, и выиграет последнее правило —
|
||
иначе галка внутри чёрной клетки красится в цвет текста и пропадает. */
|
||
.cell.counted { background: var(--inv-bg); color: var(--inv-text); border-color: var(--ink); }
|
||
/* Точка вместо текстового «•»: у шрифта он прыгает по базовой линии. */
|
||
.cell .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
|
||
/* Код отклонён: зачёт снят, и это должно быть видно без наведения. */
|
||
.cell.rejected { background: transparent; border-color: var(--err); color: var(--err); }
|
||
/* Кода нет: уголок, который видно, не наводя мышь. Ставим только там,
|
||
где из-за него потерян зачёт, иначе матрица рябит. */
|
||
.cell.no-code { position: relative; }
|
||
.cell.no-code::after { content: ""; position: absolute; right: -2px; bottom: -2px;
|
||
border: 5px solid transparent; border-right-color: var(--err); border-bottom-color: var(--err); }
|
||
.cell a, .cell .cell-go { color: inherit; text-decoration: none; }
|
||
|
||
/* Поле для кода: моноширинный текст и высота в экран — решение вставляют
|
||
целиком, а не дописывают по строчке. */
|
||
/* ---------- страница задачи ---------- */
|
||
.test-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
|
||
.test-pair:last-child { border-bottom: none; }
|
||
.test-pair pre { margin: 4px 0 0; overflow-x: auto; }
|
||
/* Строка теста не переносится — порядок строк ввода важен, — а прокручивается. */
|
||
.test-pair > * { min-width: 0; }
|
||
.run-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
|
||
/* Развёрнутый редактор: колонка решения целиком — поверх страницы, редактор
|
||
во всю высоту. Слой выше рейки и нижней панели, но ниже подсказок
|
||
CodeMirror — иначе автодополнение пряталось бы под редактором. */
|
||
.editor-toolbar { display: flex; justify-content: flex-end; margin: -6px 0 8px; }
|
||
.editor-expand .when-expanded { display: none; }
|
||
.editor-expand span { display: inline-flex; align-items: center; gap: 6px; }
|
||
body.editor-expanded { overflow: hidden; }
|
||
body.editor-expanded .solution-pane {
|
||
position: fixed; inset: 0; z-index: 50; overflow-y: auto;
|
||
background: var(--bg); padding: 16px 24px 32px;
|
||
}
|
||
body.editor-expanded .editor-expand .when-collapsed { display: none; }
|
||
body.editor-expanded .editor-expand .when-expanded { display: inline-flex; }
|
||
body.editor-expanded .CodeMirror.CodeMirror,
|
||
body.editor-expanded .CodeMirror-scroll.CodeMirror-scroll { min-height: calc(100vh - 260px); max-height: none; }
|
||
@media (max-width: 640px) { body.editor-expanded .solution-pane { padding: 10px 12px 24px; } }
|
||
/* Прогон и сдача — разные действия с разной ценой, поэтому у каждой кнопки
|
||
своя подпись прямо под ней, а не общая строка где-то сбоку. */
|
||
.solution-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
|
||
.solution-action button { width: 100%; justify-content: center; }
|
||
.solution-action p { margin: 8px 0 0; }
|
||
@media (max-width: 640px) { .solution-actions { grid-template-columns: 1fr; } }
|
||
/* Итог прогона — первым и крупно: «принято» или «не принято» видно сразу,
|
||
подробности по тестам ниже. */
|
||
.verdict { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin-bottom: 12px;
|
||
font-weight: 600; border: var(--rule) solid var(--ink); }
|
||
.verdict.ok { background: var(--inv-bg); color: var(--inv-text); }
|
||
.verdict.bad { background: var(--err); color: var(--err-text); border-color: var(--err); }
|
||
.run-detail { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 4px 0 12px;
|
||
border-bottom: 1px solid var(--line-soft); }
|
||
.run-detail pre { margin: 4px 0 0; max-height: 220px; overflow: auto; }
|
||
.run-detail-wide { grid-column: 1 / -1; }
|
||
@media (max-width: 640px) { .run-detail { grid-template-columns: 1fr; } }
|
||
/* Редактор: рамка как у остальных полей, высота в экран. */
|
||
/* Редактор кода.
|
||
|
||
Селекторы удвоены не для красоты: стили CodeMirror подключаются на странице
|
||
задачи после общего файла, и при равной силе побеждали бы они — редактор
|
||
оставался бы белым на любой теме портала, а код в нём был бы набран
|
||
палитрой, рассчитанной на белый лист.
|
||
|
||
Высота по содержимому: короткое решение не оставляет пустого поля
|
||
в пол-экрана, длинное не заставляет писать в щель. */
|
||
.CodeMirror.CodeMirror {
|
||
border: var(--rule) solid var(--ink);
|
||
height: auto; min-height: 320px; max-height: 70vh;
|
||
font-family: var(--mono); font-size: 14px; line-height: 1.5;
|
||
background: var(--panel); color: var(--text);
|
||
}
|
||
.CodeMirror-scroll.CodeMirror-scroll { min-height: 320px; max-height: 70vh; }
|
||
.CodeMirror-gutters.CodeMirror-gutters {
|
||
background: var(--panel-2); border-right: 1px solid var(--line-soft);
|
||
}
|
||
.CodeMirror-linenumber.CodeMirror-linenumber { color: var(--muted); }
|
||
.CodeMirror-cursor.CodeMirror-cursor { border-left: 2px solid var(--ink); }
|
||
.CodeMirror-activeline-background.CodeMirror-activeline-background { background: var(--panel-2); }
|
||
.CodeMirror-selected.CodeMirror-selected { background: var(--line-soft); }
|
||
.CodeMirror-line::selection, .CodeMirror-line > span::selection { background: var(--line-soft); }
|
||
|
||
/* Подсветка берёт цвета темы, а не свои. Собственная палитра CodeMirror
|
||
рассчитана на белый лист: на «Угле» или «Неоне» фиолетовые ключевые слова
|
||
и тёмно-красные строки почти не видны.
|
||
|
||
В селекторе стоит `.cm-s-default` — это не украшение: свои цвета CodeMirror
|
||
задаёт так же, через имя темы, и при равной силе побеждал бы он. */
|
||
.CodeMirror.cm-s-default .cm-keyword,
|
||
.CodeMirror.cm-s-default .cm-builtin { color: var(--code-key); font-weight: 700; }
|
||
.CodeMirror.cm-s-default .cm-string,
|
||
.CodeMirror.cm-s-default .cm-string-2 { color: var(--code-str); }
|
||
.CodeMirror.cm-s-default .cm-comment { color: var(--code-com); font-style: italic; }
|
||
.CodeMirror.cm-s-default .cm-number,
|
||
.CodeMirror.cm-s-default .cm-atom { color: var(--code-num); }
|
||
.CodeMirror.cm-s-default .cm-def,
|
||
.CodeMirror.cm-s-default .cm-variable,
|
||
.CodeMirror.cm-s-default .cm-variable-2,
|
||
.CodeMirror.cm-s-default .cm-variable-3,
|
||
.CodeMirror.cm-s-default .cm-property,
|
||
.CodeMirror.cm-s-default .cm-operator,
|
||
.CodeMirror.cm-s-default .cm-punctuation,
|
||
.CodeMirror.cm-s-default .cm-bracket { color: var(--text); }
|
||
.CodeMirror.cm-s-default .cm-meta { color: var(--code-com); }
|
||
.CodeMirror.cm-s-default .cm-error { color: var(--err); }
|
||
.CodeMirror.cm-s-default .CodeMirror-matchingbracket {
|
||
color: var(--ink); font-weight: 800; text-decoration: underline;
|
||
}
|
||
|
||
/* Список автодополнения. Своя рамка и цвета: у аддона они белые с тенью,
|
||
на тёмной теме это светлый прямоугольник посреди кода. */
|
||
.CodeMirror-hints.CodeMirror-hints {
|
||
background: var(--panel); color: var(--text);
|
||
border: 2px solid var(--ink); border-radius: 0; box-shadow: 4px 4px 0 var(--line-soft);
|
||
font-family: var(--mono); font-size: 13px; z-index: 60;
|
||
}
|
||
.CodeMirror-hints li.CodeMirror-hint { color: var(--text); padding: 3px 8px; }
|
||
.CodeMirror-hints li.CodeMirror-hint-active { background: var(--inv-bg); color: var(--inv-text); }
|
||
|
||
/* Строка подсказок под редактором и отметка о черновике. */
|
||
.editor-hints { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; }
|
||
.editor-hints kbd {
|
||
font-family: var(--mono); font-size: 11px; padding: 1px 5px;
|
||
border: 1px solid var(--line-soft); border-radius: 3px;
|
||
}
|
||
|
||
.code-input {
|
||
font-family: var(--mono); font-size: 13px; line-height: 1.5;
|
||
min-height: 320px; white-space: pre; overflow-wrap: normal; overflow-x: auto;
|
||
tab-size: 4;
|
||
}
|
||
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 10px; margin-top: 12px; }
|
||
.legend span.item { display: inline-flex; align-items: center; gap: 8px; }
|
||
|
||
/* ============================================================
|
||
Лента
|
||
============================================================ */
|
||
.feed { display: flex; flex-direction: column; }
|
||
.feed-day { font-size: 10px; padding: 18px 0 8px; display: flex; align-items: center; gap: 12px; }
|
||
.feed-day::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
|
||
.feed-day:first-child { padding-top: 0; }
|
||
.feed-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
|
||
.feed-item:last-child { border-bottom: none; }
|
||
.feed-body { min-width: 0; flex: 1; }
|
||
.feed-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
|
||
.feed-head .who { font-weight: 600; color: var(--text); }
|
||
.feed-head .when { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
|
||
.feed-what { display: flex; align-items: baseline; gap: 10px; flex-wrap: nowrap; margin-top: 3px; }
|
||
.feed-what .tick { flex: none; font-family: var(--display); font-size: 10px; font-weight: 800; padding: 2px 6px; background: var(--inv-bg); color: var(--inv-text); line-height: 1.5; }
|
||
.feed-what .tick .icon { display: none; }
|
||
.feed-what .tick::before { content: "AC"; }
|
||
.feed-what .title-wrap { min-width: 0; }
|
||
.feed-what .title { font-weight: 600; color: var(--text); }
|
||
.feed-meta { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
|
||
|
||
/* ============================================================
|
||
Лидерборд
|
||
============================================================ */
|
||
.rank { font-family: var(--display); font-weight: 800; font-size: 18px; white-space: nowrap; width: 1%; text-align: center; }
|
||
.rank .icon { display: none; }
|
||
|
||
/* --- табло ------------------------------------------------------------- */
|
||
/* Подиум: первое место крупнее и выворочено, соседние — обычными карточками. */
|
||
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
|
||
.podium-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 2px solid var(--ink); text-decoration: none; color: inherit; }
|
||
.podium-card.p1 { order: 2; padding-top: 22px; background: var(--inv-bg); color: var(--inv-text); }
|
||
.podium-card.p2 { order: 1; } .podium-card.p3 { order: 3; }
|
||
.podium-card.me { outline: 3px solid var(--ink); outline-offset: 2px; }
|
||
.podium-card.p1.me { outline-color: var(--inv-bg); }
|
||
.podium-place { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .12em; }
|
||
.podium-name { font-weight: 700; font-size: 13px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
|
||
.podium-score { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
|
||
.podium-score .of { font-size: 14px; opacity: .6; }
|
||
.stat .value .of { font-size: 15px; opacity: .55; }
|
||
.podium-card.p1 .avatar { background: var(--inv-text); color: var(--inv-bg); }
|
||
|
||
/* Движение за неделю. Цветом не выделяем — плотность и стрелка и так читаются. */
|
||
.move { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700; margin-left: 2px; vertical-align: 2px; }
|
||
.move.down { opacity: .5; }
|
||
|
||
/* Клетка счёта: полоса доли и дробь рядом. */
|
||
.score-cell { display: flex; align-items: center; gap: 10px; }
|
||
.score-cell .bar { flex: 1; min-width: 60px; max-width: 220px; }
|
||
.score-cell .score-num { white-space: nowrap; }
|
||
.score-cell b { font-family: var(--display); font-size: 16px; }
|
||
|
||
@media (max-width: 640px) {
|
||
.podium { grid-template-columns: 1fr; }
|
||
.podium-card.p1, .podium-card.p2, .podium-card.p3 { order: 0; flex-direction: row; justify-content: flex-start; }
|
||
.score-cell .bar { display: none; }
|
||
}
|
||
tr.me { outline: var(--rule) solid var(--ink); outline-offset: -3px; }
|
||
.points { font-family: var(--display); font-weight: 800; font-size: 18px; }
|
||
|
||
/* ============================================================
|
||
Карта активности
|
||
============================================================ */
|
||
.heatmap-scroll { overflow-x: auto; padding-bottom: 4px; }
|
||
.heatmap-body { display: flex; gap: 8px; }
|
||
.heatmap { display: flex; gap: 3px; }
|
||
.hm-col { display: grid; grid-template-rows: repeat(7, 12px); gap: 3px; }
|
||
.heatmap i, .hm-legend i { width: 12px; height: 12px; display: block; border: 1px solid var(--line-soft); background: transparent; }
|
||
.heatmap i.l1, .hm-legend i.l1 { background: color-mix(in srgb, var(--ink) 25%, transparent); border-color: transparent; }
|
||
.heatmap i.l2, .hm-legend i.l2 { background: color-mix(in srgb, var(--ink) 50%, transparent); border-color: transparent; }
|
||
.heatmap i.l3, .hm-legend i.l3 { background: color-mix(in srgb, var(--ink) 75%, transparent); border-color: transparent; }
|
||
.heatmap i.l4, .hm-legend i.l4 { background: var(--ink); border-color: transparent; }
|
||
.heatmap i.future { border-color: transparent; }
|
||
.heatmap-weekdays { display: grid; grid-template-rows: repeat(7, 12px); gap: 3px; font-size: 8px; line-height: 12px; text-align: right; padding-right: 2px; letter-spacing: 0; }
|
||
.heatmap-months { display: flex; gap: 3px; height: 16px; font-size: 9px; margin-left: 26px; letter-spacing: .04em; }
|
||
.hm-slot { width: 12px; flex: none; white-space: nowrap; }
|
||
.hm-legend { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; }
|
||
.hm-legend i { width: 11px; height: 11px; }
|
||
|
||
/* ---------- полосы ---------- */
|
||
.bar-row { display: grid; grid-template-columns: minmax(72px, 30%) 1fr auto; align-items: center; gap: 12px; padding: 5px 0; font-size: 13px; }
|
||
.bar-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.bar-track { height: 12px; border: 2px solid var(--ink); overflow: hidden; }
|
||
.bar-fill { display: block; height: 100%; background: var(--ink); min-width: 2px; }
|
||
.bar-fill.easy { opacity: .35; } .bar-fill.medium { opacity: .65; } .bar-fill.hard { opacity: 1; }
|
||
.bar-value { min-width: 2.2em; text-align: right; font-weight: 600; font-size: 12px; }
|
||
|
||
/* ---------- профиль ---------- */
|
||
.rename-toggle {
|
||
background: transparent; border: none; box-shadow: none; padding: 2px 6px;
|
||
color: var(--muted); vertical-align: middle;
|
||
}
|
||
.rename-toggle:hover { background: transparent; color: var(--text); transform: none; box-shadow: none; }
|
||
|
||
|
||
.profile-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
|
||
.profile-sync { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
|
||
.assignment-line { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
|
||
.assignment-line:last-child { border-bottom: none; padding-bottom: 0; }
|
||
.assignment-line .bar { margin-top: 8px; }
|
||
|
||
/* ============================================================
|
||
Объявления и отсчёт
|
||
============================================================ */
|
||
.announce { position: relative; border: var(--rule) solid var(--ink); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--panel); }
|
||
.announce.pinned { background: var(--inv-bg); color: var(--inv-text); }
|
||
.announce.pinned .muted, .announce.pinned .announce-body { color: inherit; opacity: .85; }
|
||
.announce.pinned .badge { border-color: var(--inv-text); color: var(--inv-text); background: transparent; }
|
||
.announce.pinned .btn { background: var(--inv-text); color: var(--inv-bg); border-color: var(--inv-text); }
|
||
.announce.pinned .btn:hover { box-shadow: 4px 4px 0 var(--inv-text); color: var(--inv-bg); }
|
||
.announce.pinned .countdown { background: var(--inv-text); color: var(--inv-bg); border-color: var(--inv-text); }
|
||
/* Отступ справа — под крестик: он лежит вне потока, и без запаса на него
|
||
наезжал таймер, когда заголовок короткий и помещается в одну строку. */
|
||
.announce-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; padding-right: 28px; }
|
||
.announce-head h3 { margin: 0; font-size: 20px; }
|
||
/* Крестик «убрать с главной» держится за угол карточки, а не едет за
|
||
заголовком: у длинного названия голова переносится, и кнопка оказывалась
|
||
посреди карточки. Заметен при наведении — закрывают анонс один раз,
|
||
а читают каждый день. */
|
||
.announce-hide { position: absolute; top: 10px; right: 12px; }
|
||
.announce-hide .rail-btn { color: currentColor; opacity: .45; padding: 2px; }
|
||
.announce:hover .announce-hide .rail-btn { opacity: 1; }
|
||
.announce-hide .rail-btn:hover { color: var(--err); }
|
||
.announce-hide .icon { width: 16px; height: 16px; }
|
||
.announce .pin { display: none; }
|
||
.announce-meta { gap: 8px; margin: 0; }
|
||
.announce-body { margin: 0; color: var(--text-2); white-space: pre-line; }
|
||
|
||
.countdown { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .01em; padding: 6px 12px; white-space: nowrap; background: var(--inv-bg); color: var(--inv-text); border: 2px solid var(--inv-bg); }
|
||
.countdown[data-state="live"] { background: var(--err); color: var(--err-text); border-color: var(--err); display: inline-flex; align-items: center; gap: 8px; }
|
||
.countdown[data-state="live"]::before { content: ""; width: 8px; height: 8px; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
|
||
.countdown[data-state="past"] { opacity: .55; }
|
||
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
|
||
@media (prefers-reduced-motion: reduce) { .countdown[data-state="live"]::before { animation: none; } }
|
||
|
||
/* ---------- шаги первого запуска ---------- */
|
||
.steps { display: grid; gap: 0; counter-reset: step; border: var(--rule) solid var(--ink); }
|
||
.step { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: var(--rule) solid var(--ink); color: inherit; }
|
||
.step:last-child { border-bottom: none; }
|
||
.step:hover { background: var(--inv-bg); color: var(--inv-text); text-decoration: none; }
|
||
.step:hover .step-hint { color: inherit; opacity: .8; }
|
||
.step .num { counter-increment: step; width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--inv-bg); color: var(--inv-text); font-family: var(--display); font-weight: 800; font-size: 14px; }
|
||
.step:hover .num { background: var(--inv-text); color: var(--inv-bg); }
|
||
.step .num::before { content: counter(step, decimal-leading-zero); }
|
||
.step.done .num::before { content: "✓"; }
|
||
.step.done .step-title { text-decoration: line-through; opacity: .6; }
|
||
.step-title { font-family: var(--display); font-weight: 800; font-size: 15px; }
|
||
.step-hint { font-size: 13px; color: var(--muted); }
|
||
|
||
details.formula { margin-top: 6px; }
|
||
details.formula summary { cursor: pointer; color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-size: 13px; list-style: none; font-weight: 600; }
|
||
details.formula summary::-webkit-details-marker { display: none; }
|
||
details.formula summary::before { content: "▸ "; }
|
||
details.formula[open] summary::before { content: "▾ "; }
|
||
details.formula ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 13px; }
|
||
|
||
/* ---------- прочее ---------- */
|
||
.code-box { font-size: 16px; font-weight: 700; letter-spacing: .06em; background: var(--inv-bg); color: var(--inv-text); padding: 14px; word-break: break-all; user-select: all; text-align: center; }
|
||
.empty { color: var(--text-2); padding: 34px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; border: var(--rule) solid var(--line-soft); }
|
||
.empty .icon { opacity: .5; }
|
||
.card > .empty { margin: -8px; }
|
||
.auth-shell { max-width: 520px; margin: 8vh auto 0; }
|
||
.auth-logo { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: var(--inv-bg); color: var(--inv-text); margin-bottom: 22px; }
|
||
.auth-logo.bare { width: auto; height: auto; background: none; }
|
||
.auth-logo.bare img { max-height: 96px; max-width: 340px; width: auto; height: auto; }
|
||
.divider { height: 1px; background: var(--line-soft); margin: 16px 0; border: none; }
|
||
|
||
/* ============================================================
|
||
Адаптив
|
||
============================================================ */
|
||
@media (max-width: 900px) { .col-extra { display: none; } }
|
||
/* Невысокое окно ноутбука: пункты рейки плотнее, подпись под знаком прячется.
|
||
Прокрутка остаётся страховкой, но на обычных экранах до неё не доходит. */
|
||
@media (min-width: 761px) and (max-height: 820px) {
|
||
.rail .brand { padding: 10px 3px; }
|
||
.rail .brand-text { display: none; }
|
||
.nav a, .nav-more > summary { padding: 9px 4px 8px; gap: 4px; }
|
||
.rail-foot { padding: 10px 0 12px; }
|
||
}
|
||
@media (max-width: 760px) {
|
||
body.with-rail { padding-left: 0; padding-bottom: 70px; }
|
||
.rail { display: none; }
|
||
.mobile-bar {
|
||
display: flex; align-items: center; gap: 12px;
|
||
padding: 4px 10px 4px 14px; background: var(--inv-bg); color: var(--inv-text);
|
||
}
|
||
.mobile-bar .rail-btn { margin-left: auto; color: var(--inv-text); }
|
||
.mobile-brand {
|
||
display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0;
|
||
padding: 4px 0; color: var(--inv-text);
|
||
font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 11px;
|
||
}
|
||
.mobile-brand .icon { width: 28px; height: 28px; }
|
||
.mobile-brand:hover { text-decoration: none; }
|
||
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--inv-bg); padding: 0 0 env(safe-area-inset-bottom); border-top: var(--rule) solid var(--inv-text); }
|
||
.tabbar a { flex: 1; min-width: 0; padding: 9px 2px 7px; border-bottom: none; border-right: 1px solid var(--line-soft); font-size: 8px; letter-spacing: .04em; }
|
||
.tabbar a:last-child { border-right: none; }
|
||
.tabbar .nav-more { flex: 1; min-width: 0; display: flex; }
|
||
.tabbar .nav-more > summary { flex: 1; min-width: 0; padding: 9px 2px 7px; border-bottom: none; font-size: 8px; letter-spacing: .04em; }
|
||
.tabbar .nav-more > summary span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
||
.tabbar .nav-more-menu { left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); }
|
||
.tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
||
.ticker { padding: 8px 14px; gap: 10px; }
|
||
.ticker-label { display: none; }
|
||
.ticker .countdown { font-size: 11px; padding: 4px 8px; }
|
||
main { padding: 20px 16px 40px; }
|
||
.site-foot { margin-top: -16px; padding: 0 16px 24px; }
|
||
h1 { font-size: 30px; }
|
||
h2 { margin-top: 28px; }
|
||
.grid.two, .grid.three { grid-template-columns: 1fr; }
|
||
.grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||
.stat { border-right: none; border-bottom: var(--rule) solid var(--ink); }
|
||
.stat:nth-child(odd) { border-right: var(--rule) solid var(--ink); }
|
||
.stat .value { font-size: 40px; }
|
||
.profile-sync { align-items: flex-start; width: 100%; }
|
||
}
|
||
|
||
/* Карточка материала: кнопка скачивания прижата вниз, карточки в ряду равны. */
|
||
.material { display: flex; flex-direction: column; }
|
||
.material .row:last-child { margin-top: auto; }
|
||
input[type=file] { padding: 7px 9px; font-family: var(--mono); font-size: 12px; }
|
||
input[type=file]::file-selector-button { font: inherit; margin-right: 10px; padding: 4px 10px; border: 2px solid var(--ink); background: var(--inv-bg); color: var(--inv-text); cursor: pointer; }
|
||
|
||
/* --- показ ноутбука ----------------------------------------------------- */
|
||
.notebook { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
|
||
.nb-md { border-left: 3px solid var(--ink); padding: 2px 0 2px 14px; }
|
||
.nb-md > :first-child { margin-top: 0; }
|
||
.nb-md > :last-child { margin-bottom: 0; }
|
||
.nb-md h1, .nb-md h2, .nb-md h3 { font-family: var(--display); margin: 16px 0 8px; }
|
||
.nb-md h1 { font-size: 22px; } .nb-md h2 { font-size: 18px; } .nb-md h3 { font-size: 15px; }
|
||
.nb-md code { font-family: var(--mono); font-size: 12px; background: var(--inv-bg); color: var(--inv-text); padding: 1px 4px; }
|
||
.nb-md pre code { background: none; color: inherit; padding: 0; }
|
||
.nb-md table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 13px; display: block; overflow-x: auto; }
|
||
.nb-md th, .nb-md td { border: 1px solid var(--line-soft); padding: 5px 9px; text-align: left; vertical-align: top; }
|
||
.nb-md th { font-family: var(--display); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--line); }
|
||
.nb-md blockquote { margin: 10px 0; padding-left: 12px; border-left: 2px solid var(--line); color: var(--text-2); }
|
||
.nb-code { border: 2px solid var(--ink); position: relative; }
|
||
/* Сообщения преподавателя к заданию: как в мессенджере — свежие сверху,
|
||
ссылка кликабельна, под ней кнопка, по которой на паре попадают сразу. */
|
||
.messages { margin: 0 0 22px; }
|
||
.messages h2 { margin-top: 8px; }
|
||
.message-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
|
||
.message-form input[type="text"] { flex: 1 1 320px; min-width: 0; }
|
||
.message-list { display: flex; flex-direction: column; gap: 10px; }
|
||
.message { border: 2px solid var(--line); background: var(--panel); padding: 10px 14px 12px; }
|
||
.messages.fresh .message { border-left-width: 10px; }
|
||
.message-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); margin-bottom: 6px; }
|
||
.message-meta b { color: var(--text); }
|
||
.message-meta .avatar { width: 22px; height: 22px; font-size: 9px; }
|
||
.message-delete { margin-left: auto; }
|
||
.message-delete button { padding: 2px 6px; }
|
||
.message-body { overflow-wrap: anywhere; line-height: 1.5; }
|
||
.message-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
|
||
.message .btn { margin-top: 8px; }
|
||
/* Только что пришло — короткая подсветка, чтобы заметили. */
|
||
.message.arrived { animation: message-arrived 2.4s ease-out; }
|
||
@keyframes message-arrived { from { background: color-mix(in srgb, var(--ink) 18%, var(--panel)); } }
|
||
@media (prefers-reduced-motion: reduce) { .message.arrived { animation: none; } }
|
||
|
||
/* Подтверждение «убрать задачу» без скрипта: details раскрывает плашку
|
||
прямо в ячейке. Не поверх: таблица лежит в прокручиваемой рамке, и
|
||
всплывающее за её край обрезалось бы. */
|
||
.confirm-remove > summary { list-style: none; cursor: pointer; display: inline-flex; }
|
||
.confirm-remove > summary::-webkit-details-marker { display: none; }
|
||
.confirm-remove .confirm-box {
|
||
width: 260px; margin-top: 8px; padding: 10px 12px;
|
||
border: 2px solid var(--line); background: var(--panel); text-align: left; white-space: normal;
|
||
}
|
||
|
||
/* Ник на портале под именем из учётной записи вуза — у преподавателя. */
|
||
.nick { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; }
|
||
.nick::before { content: "«"; }
|
||
.nick::after { content: "»"; }
|
||
|
||
/* Похожие решения: процент, пара, улики, кнопка — в одну строку. */
|
||
.similar-pairs td { vertical-align: middle; }
|
||
.similar-pairs td:first-child, .similar-pairs td.num { width: 1%; white-space: nowrap; }
|
||
.similar-pairs td.num { text-align: right; }
|
||
.similar-pairs code { font-size: 12px; }
|
||
/* Два решения рядом: длинное не растягивает страницу, а прокручивается. */
|
||
.similar-sides .nb-code pre { max-height: 75vh; overflow: auto; margin: 0; }
|
||
.nb-lang { position: absolute; top: 0; right: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: var(--inv-bg); color: var(--inv-text); padding: 2px 7px; }
|
||
.nb-code pre { margin: 0; padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
|
||
.nb-out { border-top: 2px dashed var(--line); color: var(--text-2); white-space: pre-wrap; }
|
||
.nb-img { display: block; max-width: 100%; border-top: 2px dashed var(--line); padding: 12px 14px; }
|
||
.nb-raw { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; margin: 0; }
|
||
|
||
/* Подсветка кода (классы Pygments). Цветов немного: смысл несёт начертание. */
|
||
.nb-code .k, .nb-code .kn, .nb-code .kc, .nb-code .kd, .nb-code .kr, .nb-code .ow { color: var(--code-key); font-weight: 700; }
|
||
.nb-code .nf, .nb-code .nc, .nb-code .nd { color: var(--code-key); font-weight: 600; }
|
||
.nb-code .s, .nb-code .s1, .nb-code .s2, .nb-code .sb, .nb-code .sd, .nb-code .se, .nb-code .sh, .nb-code .si, .nb-code .sx, .nb-code .sr, .nb-code .ss { color: var(--code-str); }
|
||
.nb-code .c, .nb-code .c1, .nb-code .cm, .nb-code .cs, .nb-code .cp { color: var(--code-com); font-style: italic; }
|
||
.nb-code .m, .nb-code .mi, .nb-code .mf, .nb-code .mh, .nb-code .mo, .nb-code .il { color: var(--code-num); }
|
||
.nb-code .nb, .nb-code .bp { color: var(--code-key); }
|
||
.nb-code .err { color: var(--err); }
|
||
|
||
/* Формулы. MathML браузер рисует сам — нам остаются шрифт, размер и прокрутка. */
|
||
math { font-family: "STIX Two Math", math; }
|
||
/* Выравнивание столбцов из LaTeX (cases, aligned) приходит атрибутом
|
||
columnalign, а Chrome его не читает и центрирует всё подряд. */
|
||
mtd[columnalign="left"] { text-align: left; }
|
||
mtd[columnalign="right"] { text-align: right; }
|
||
.nb-md math, .nb-out math { font-size: 1.05em; }
|
||
.math-block { display: block; overflow-x: auto; margin: 12px 0; text-align: center; }
|
||
.math-block math { font-size: 1.15em; }
|
||
.math-raw { font-family: var(--mono); font-size: 12px; color: var(--err); }
|
||
|
||
|
||
/* Отметка посещаемости: крупные цели для пальца — её ставят на паре с телефона. */
|
||
.attend-row {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
gap: 12px; flex-wrap: wrap;
|
||
padding: 10px 0; border-bottom: 1px solid var(--line);
|
||
}
|
||
.attend-row:last-of-type { border-bottom: 0; }
|
||
.attend-name { font-weight: 600; }
|
||
.attend-states { display: flex; gap: 6px; flex-wrap: wrap; }
|
||
.attend-states .chip { cursor: pointer; }
|
||
.attend-states .chip input { position: absolute; opacity: 0; pointer-events: none; }
|
||
.attend-states .chip span {
|
||
display: inline-block; padding: 8px 14px; border: 2px solid var(--ink);
|
||
border-radius: 999px; font-size: .85rem; background: var(--panel);
|
||
}
|
||
.attend-states .chip input:checked + span { background: var(--ink); color: var(--panel); }
|
||
.attend-states .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||
input.narrow { max-width: 90px; }
|
||
|
||
/* Шапка ведомости в два этажа: сверху занятие, под ним его оценки. */
|
||
.matrix th.block-head { border-bottom: 2px solid var(--ink); }
|
||
/* Ведомость: ширины колонок заданы, а не выведены из текста. Иначе занятие
|
||
с длинным названием раздвигает свои клетки, и таблица идёт волнами. */
|
||
.matrix.sheet { table-layout: fixed; }
|
||
.matrix.sheet .col-name { width: 190px; }
|
||
.matrix.sheet .col-total { width: 78px; }
|
||
.matrix.sheet .col-mark { width: 58px; }
|
||
.matrix.sheet th.block-head {
|
||
font-size: 11px; text-transform: none; letter-spacing: .02em; line-height: 1.25;
|
||
}
|
||
/* Узкий блок — это одна клетка в 46 пикселей, и «Неделя 3 · лекция» в ней
|
||
разворачивается на четыре строки. Оставляем две, остальное — в подсказке. */
|
||
.matrix.sheet th.block-head a {
|
||
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
|
||
overflow: hidden; overflow-wrap: anywhere;
|
||
}
|
||
.matrix.sheet td:first-child { white-space: normal; overflow-wrap: anywhere; }
|
||
|
||
/* Подпись колонки не должна растягивать саму колонку: клетка — это значок,
|
||
а не слово. Полное название остаётся подсказкой. */
|
||
.matrix th.col-head {
|
||
max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||
/* Капс с разрядкой удлиняет слово на треть — в подписи над клеткой
|
||
шириной в значок это лишнее. */
|
||
text-transform: none; letter-spacing: 0; font-size: 11px;
|
||
}
|
||
/* Итоги стоят слева и не уезжают при прокрутке вправо — к ним возвращаются
|
||
чаще, чем к любой отдельной клетке. */
|
||
.matrix th.totals, .matrix td.totals {
|
||
position: sticky; background: var(--panel); white-space: nowrap;
|
||
border-right: 2px solid var(--line-soft);
|
||
}
|
||
.matrix th.totals:nth-child(2), .matrix td.totals:nth-child(2) { left: 190px; border-right: 0; }
|
||
.matrix th.totals:nth-child(3), .matrix td.totals:nth-child(3) { left: 268px; border-right: 0; }
|
||
.matrix th.totals:nth-child(4), .matrix td.totals:nth-child(4) { left: 346px; }
|
||
|
||
|
||
/* --- Оценки студента ---------------------------------------------------
|
||
Три числа вместо одного: баллы, зачёты и посещаемость складываются
|
||
по-разному в каждом курсе, поэтому портал показывает их рядом, а не
|
||
сводит в одну цифру. */
|
||
.stats .stat { display: flex; flex-direction: column; gap: 4px; }
|
||
.stat-label {
|
||
font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
|
||
font-weight: 800; color: var(--muted);
|
||
}
|
||
.stat-value { font-size: 2.4rem; line-height: 1.05; font-weight: 800; }
|
||
.stat-unit { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
|
||
.stat .bar {
|
||
display: block; height: 10px; margin-top: 6px;
|
||
border: 2px solid var(--ink); background: var(--panel);
|
||
}
|
||
.stat .bar-fill { display: block; height: 100%; background: var(--ink); }
|
||
|
||
/* Точка на занятие: видно не только сколько пропусков, но и где. */
|
||
.dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
|
||
.dot { width: 14px; height: 14px; border: 2px solid var(--ink); background: var(--panel); }
|
||
.dot.present { background: var(--ink); }
|
||
.dot.absent { background: var(--err); border-color: var(--err); }
|
||
.dot.excused { background: repeating-linear-gradient(
|
||
45deg, var(--ink), var(--ink) 2px, var(--panel) 2px, var(--panel) 5px); }
|
||
.dot.none { border-color: var(--line-soft); }
|
||
|
||
/* Раздел «MCP»: адрес, ключ и настройки клиентов — выделяются целиком одним
|
||
щелчком, чтобы скопировать без скрипта. */
|
||
pre.snippet { margin: 8px 0 0; padding: 10px 12px; overflow-x: auto; font-family: var(--mono); font-size: 12px;
|
||
background: var(--inv-bg); color: var(--inv-text); user-select: all; -webkit-user-select: all; }
|
||
.token-list, .tool-list { list-style: none; margin: 0; padding: 0; }
|
||
.token-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
|
||
border-bottom: 1px solid var(--line-soft); }
|
||
.tool-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0;
|
||
border-bottom: 1px solid var(--line-soft); }
|
||
/* Подпись — своей строкой под названием: в одну строку с именем она
|
||
переносилась бы посередине и читалась как продолжение бейджа. */
|
||
.tool-list .tool-hint { flex-basis: 100%; }
|
||
|
||
/* Вкладки внутри раздела: «Задачи» собирают списки, свои задачи и каталог. */
|
||
.subnav { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 18px; border-bottom: var(--rule) solid var(--ink); }
|
||
.subnav a {
|
||
padding: 8px 14px; color: var(--text); font-family: var(--sans); font-weight: 600; font-size: 11px;
|
||
text-transform: uppercase; letter-spacing: .08em;
|
||
}
|
||
.subnav a:hover { text-decoration: none; background: var(--ink); color: var(--bg); }
|
||
.subnav a.active { background: var(--ink); color: var(--bg); }
|
||
|
||
/* Выбор языка над редактором: подпись и список в одну строку. */
|
||
.language-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
|
||
.language-pick label { margin: 0; }
|
||
.language-pick select { width: auto; min-width: 200px; }
|
||
/* Языков у judge0 десятки — список выше обычного, с прокруткой. */
|
||
.check-list.language-list { max-height: 280px; margin-bottom: 8px; }
|
||
|
||
/* Кнопка «Скопировать» в углу плашки. Плашка тёмная — кнопка светлая. */
|
||
.copyable { position: relative; }
|
||
.copy-btn {
|
||
position: absolute; top: 8px; right: 8px; z-index: 1;
|
||
padding: 3px 8px; font-size: 10px; letter-spacing: .06em;
|
||
background: var(--inv-text); color: var(--inv-bg); border: 0; box-shadow: none;
|
||
}
|
||
.copy-btn:hover { transform: none; box-shadow: none; color: var(--inv-bg); opacity: .9; }
|
||
.copy-btn.copied { background: var(--accent); color: var(--inv-text); }
|
||
/* Место под кнопку, чтобы она не легла поверх текста. */
|
||
.copyable pre.snippet { padding-right: 110px; }
|
||
.copyable .code-box { padding-right: 110px; padding-left: 110px; }
|
||
/* У ввода примера кнопка — в строке подписи «Ввод», над полем: колонка
|
||
узкая, и кнопка поверх текста закрыла бы сам ввод. */
|
||
/* Ввод лежит без плашки, поэтому кнопка тихая, с тонкой рамкой. */
|
||
.test-pair .copy-btn { top: -22px; right: 0; padding: 2px 7px; font-size: 9px;
|
||
background: transparent; color: var(--muted); border: 1px solid var(--line-soft); }
|
||
.test-pair .copy-btn:hover { color: var(--text); border-color: var(--text); opacity: 1; }
|
||
.test-pair .copy-btn.copied { background: var(--accent); color: var(--inv-text); border-color: var(--accent); }
|
||
@media (max-width: 760px) {
|
||
.copyable .code-box { padding-left: 14px; padding-right: 104px; text-align: left; }
|
||
.copyable pre.snippet { padding-right: 96px; }
|
||
}
|
||
|
||
/* «Когда решали» на странице задания. Цвета — от темы: первые решения —
|
||
цвет текста, остальные посылки — он же, разбавленный фоном карточки. */
|
||
.timeline-card { --solves: var(--ink); --others: color-mix(in srgb, var(--ink) 35%, var(--panel)); }
|
||
.timeline { display: block; width: 100%; height: auto; margin: 6px 0 0; }
|
||
.timeline .grid { stroke: var(--line-soft); stroke-width: 1; }
|
||
.timeline .tick { font-size: 11px; fill: var(--muted); font-family: var(--sans); font-variant-numeric: tabular-nums; }
|
||
.timeline .solves { fill: var(--solves); }
|
||
.timeline .others { fill: var(--others); }
|
||
.timeline .hit { fill: transparent; }
|
||
.timeline .bar:hover .hit { fill: color-mix(in srgb, var(--ink) 8%, transparent); }
|
||
.timeline .deadline { stroke: var(--text); stroke-width: 2; }
|
||
.timeline .deadline-label { font-size: 11px; font-weight: 700; fill: var(--text); font-family: var(--sans); }
|
||
.timeline .after-deadline { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
|
||
.timeline-lead { margin: 0 0 4px; }
|
||
.timeline-lead strong { font-size: 22px; }
|
||
.legend .swatch { display: inline-block; width: 12px; height: 12px; }
|
||
.legend .swatch.solves { background: var(--solves); }
|
||
.legend .swatch.others { background: var(--others); }
|
||
.legend .swatch.after { background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line-soft); }
|
||
|
||
/* ---------- праздничные украшения ----------
|
||
Только смайлики в псевдоэлементах: сквозь них кликается, текст они не
|
||
перекрывают, а другая тема снимает их целиком. Гирлянде отдана своя
|
||
строка над содержимым страницы — поверх кнопок она не ляжет. */
|
||
:root[data-theme="newyear"] {
|
||
--garland: "🎄 ❄️ 🎁 ✨ ⭐ ❄️ 🎄 🎁 ✨ ⭐ ❄️ 🎄 🎁 ✨ ⭐ ❄️ 🎄 🎁 ✨ ⭐ ❄️ 🎄";
|
||
--corner: "🎅";
|
||
}
|
||
:root[data-theme="cosmos"] {
|
||
--garland: "🚀 ⭐ 🌍 🛰️ 🌙 ✨ 🪐 ☄️ ⭐ 🚀 🌍 🛰️ 🌙 ✨ 🪐 ☄️ ⭐ 🚀 🌍 🛰️ 🌙 ✨";
|
||
--corner: "🛰️";
|
||
}
|
||
:root[data-theme="valentine"] {
|
||
--garland: "💘 🌹 💌 💕 🍫 💖 🌹 💘 💌 💕 🍫 💖 🌹 💘 💌 💕 🍫 💖 🌹 💘 💌 💕";
|
||
--corner: "💘";
|
||
}
|
||
:root[data-theme="halloween"] main::before,
|
||
:root[data-theme="newyear"] main::before,
|
||
:root[data-theme="valentine"] main::before,
|
||
:root[data-theme="cosmos"] main::before {
|
||
content: var(--garland); font-family: var(--emoji);
|
||
display: block; margin: -14px 0 18px;
|
||
overflow: hidden; white-space: nowrap; text-align: center;
|
||
font-size: 18px; line-height: 1.2; letter-spacing: .3em;
|
||
pointer-events: none; user-select: none; -webkit-user-select: none;
|
||
}
|
||
:root[data-theme="halloween"] .rail-foot::before,
|
||
:root[data-theme="newyear"] .rail-foot::before,
|
||
:root[data-theme="valentine"] .rail-foot::before,
|
||
:root[data-theme="cosmos"] .rail-foot::before {
|
||
/* В рейке над аватаркой, а не в углу экрана: там фигурка ложилась
|
||
на кнопки страницы — «Сдать решение» у задачи. */
|
||
content: var(--corner); font-family: var(--emoji);
|
||
font-size: 26px; line-height: 1;
|
||
pointer-events: none; user-select: none; -webkit-user-select: none;
|
||
animation: season-float 6s ease-in-out infinite;
|
||
}
|
||
/* На Хэллоуин в рейке — силуэт мыши цветом иконок, а не цветной смайлик. */
|
||
:root[data-theme="halloween"] .rail-foot::before {
|
||
content: ""; width: 34px; height: 17px;
|
||
background: var(--inv-text);
|
||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath fill='%23000' d='M60 22 C57 16 54 15 52 18 L50 12 L48 19 C40 10 22 4 4 12 C12 16 14 24 12 30 C18 26 24 27 27 33 C31 29 37 30 40 36 C44 32 50 32 53 38 C56 34 58 34 60 40 C62 34 64 34 67 38 C70 32 76 32 80 36 C83 30 89 29 93 33 C96 27 102 26 108 30 C106 24 108 16 116 12 C98 4 80 10 72 19 L70 12 L68 18 C66 15 63 16 60 22 Z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath fill='%23000' d='M60 22 C57 16 54 15 52 18 L50 12 L48 19 C40 10 22 4 4 12 C12 16 14 24 12 30 C18 26 24 27 27 33 C31 29 37 30 40 36 C44 32 50 32 53 38 C56 34 58 34 60 40 C62 34 64 34 67 38 C70 32 76 32 80 36 C83 30 89 29 93 33 C96 27 102 26 108 30 C106 24 108 16 116 12 C98 4 80 10 72 19 L70 12 L68 18 C66 15 63 16 60 22 Z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||
}
|
||
@keyframes season-float {
|
||
0%, 100% { transform: translateY(0) rotate(-4deg); }
|
||
50% { transform: translateY(-8px) rotate(4deg); }
|
||
}
|
||
|
||
/* Новый год: вместо строки смайликов — гирлянда из огоньков. Четыре цвета —
|
||
четыре слоя с одинаковым шагом, сдвинутые на лампочку; сдвиг всех слоёв
|
||
на шаг по кругу и даёт «бегущие огни». Провод — тонкая линия сверху. */
|
||
:root[data-theme="newyear"] main::before {
|
||
content: "";
|
||
height: 28px; margin: -14px 0 18px; letter-spacing: 0;
|
||
background-image:
|
||
radial-gradient(circle at 12px 17px, #ff4d5e 0 5px, transparent 6px),
|
||
radial-gradient(circle at 12px 17px, #ffd34d 0 5px, transparent 6px),
|
||
radial-gradient(circle at 12px 17px, #3ddc84 0 5px, transparent 6px),
|
||
radial-gradient(circle at 12px 17px, #4cc9f0 0 5px, transparent 6px),
|
||
linear-gradient(transparent 8px, rgba(255, 255, 255, .35) 8px 9px, transparent 9px);
|
||
background-size: 96px 28px, 96px 28px, 96px 28px, 96px 28px, 100% 28px;
|
||
background-repeat: repeat-x;
|
||
background-position: 0 0, 24px 0, 48px 0, 72px 0, 0 0;
|
||
filter: drop-shadow(0 0 4px rgba(255, 211, 77, .55));
|
||
animation: lights-chase 2s steps(1) infinite;
|
||
}
|
||
@keyframes lights-chase {
|
||
0% { background-position: 0 0, 24px 0, 48px 0, 72px 0, 0 0; }
|
||
25% { background-position: 24px 0, 48px 0, 72px 0, 96px 0, 0 0; }
|
||
50% { background-position: 48px 0, 72px 0, 96px 0, 120px 0, 0 0; }
|
||
75% { background-position: 72px 0, 96px 0, 120px 0, 144px 0, 0 0; }
|
||
}
|
||
/* Снег — два слоя редких снежинок, мелкие падают быстрее. Над страницей,
|
||
но под рейкой и меню, и сквозь него кликается. */
|
||
:root[data-theme="newyear"] body::before,
|
||
:root[data-theme="newyear"] body::after {
|
||
content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
|
||
background-repeat: repeat;
|
||
}
|
||
:root[data-theme="newyear"] body::before {
|
||
background-image:
|
||
radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, .85), transparent),
|
||
radial-gradient(2px 2px at 140px 90px, rgba(255, 255, 255, .7), transparent),
|
||
radial-gradient(2px 2px at 230px 170px, rgba(255, 255, 255, .8), transparent),
|
||
radial-gradient(2px 2px at 80px 220px, rgba(255, 255, 255, .65), transparent);
|
||
background-size: 280px 280px;
|
||
animation: snow-fall 14s linear infinite;
|
||
}
|
||
:root[data-theme="newyear"] body::after {
|
||
background-image:
|
||
radial-gradient(3px 3px at 60px 60px, rgba(255, 255, 255, .8), transparent),
|
||
radial-gradient(4px 4px at 250px 140px, rgba(255, 255, 255, .7), transparent),
|
||
radial-gradient(3px 3px at 170px 300px, rgba(255, 255, 255, .75), transparent);
|
||
background-size: 380px 380px;
|
||
animation: snow-fall-slow 24s linear infinite;
|
||
}
|
||
@keyframes snow-fall { from { background-position: 0 0; } to { background-position: 40px 280px; } }
|
||
@keyframes snow-fall-slow { from { background-position: 0 0; } to { background-position: -50px 380px; } }
|
||
|
||
/* Хэллоуин: вместо строки цветных смайликов — нитка с тёплыми огоньками,
|
||
которые мерцают, как свечи. Спокойнее и не пестрит. */
|
||
:root[data-theme="halloween"] main::before {
|
||
content: "";
|
||
height: 24px; letter-spacing: 0;
|
||
background-image:
|
||
radial-gradient(circle at 18px 15px, #ffc477 0 3px, rgba(223, 143, 69, .45) 4px, transparent 8px),
|
||
linear-gradient(transparent 5px, rgba(236, 227, 216, .22) 5px 6px, transparent 6px);
|
||
background-size: 72px 24px, 100% 24px;
|
||
background-repeat: repeat-x;
|
||
filter: drop-shadow(0 0 4px rgba(223, 143, 69, .55));
|
||
animation: candle-flicker 4.2s ease-in-out infinite;
|
||
}
|
||
@keyframes candle-flicker {
|
||
0%, 100% { opacity: 1; }
|
||
18% { opacity: .7; }
|
||
22% { opacity: 1; }
|
||
55% { opacity: .82; }
|
||
60% { opacity: .95; }
|
||
}
|
||
/* Летучие мыши пролетают на фоне и надолго пропадают — заметно, но не
|
||
мельтешит. z-index: -1 кладёт их под содержимое: видно в просветах между
|
||
карточками, а текст, кнопки, рейку и меню они не перекрывают никогда.
|
||
Одна летит слева направо, вторая навстречу и позже. */
|
||
:root[data-theme="halloween"] body::before,
|
||
:root[data-theme="halloween"] body::after {
|
||
content: ""; position: fixed; z-index: -1; left: 0; top: 0;
|
||
width: 96px; height: 48px; opacity: .75;
|
||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath fill='%23050308' d='M60 22 C57 16 54 15 52 18 L50 12 L48 19 C40 10 22 4 4 12 C12 16 14 24 12 30 C18 26 24 27 27 33 C31 29 37 30 40 36 C44 32 50 32 53 38 C56 34 58 34 60 40 C62 34 64 34 67 38 C70 32 76 32 80 36 C83 30 89 29 93 33 C96 27 102 26 108 30 C106 24 108 16 116 12 C98 4 80 10 72 19 L70 12 L68 18 C66 15 63 16 60 22 Z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||
pointer-events: none;
|
||
will-change: transform;
|
||
}
|
||
:root[data-theme="halloween"] body::before {
|
||
animation: bat-flight 22s linear infinite;
|
||
}
|
||
:root[data-theme="halloween"] body::after {
|
||
width: 68px; height: 34px; opacity: .6;
|
||
/* backwards — пока ждёт вылета, мышь уже за краем экрана, а не в углу на знаке. */
|
||
animation: bat-flight-back 31s linear 7s infinite backwards;
|
||
}
|
||
@keyframes bat-flight {
|
||
0% { transform: translate(-60px, 22vh) rotate(-8deg); }
|
||
8% { transform: translate(25vw, 14vh) rotate(6deg); }
|
||
16% { transform: translate(50vw, 24vh) rotate(-6deg); }
|
||
24% { transform: translate(75vw, 12vh) rotate(8deg); }
|
||
32% { transform: translate(calc(100vw + 60px), 20vh) rotate(-4deg); }
|
||
100% { transform: translate(calc(100vw + 60px), 20vh); }
|
||
}
|
||
@keyframes bat-flight-back {
|
||
0% { transform: translate(calc(100vw + 60px), 58vh) scaleX(-1); }
|
||
10% { transform: translate(70vw, 50vh) scaleX(-1) rotate(-6deg); }
|
||
20% { transform: translate(40vw, 62vh) scaleX(-1) rotate(6deg); }
|
||
30% { transform: translate(10vw, 52vh) scaleX(-1) rotate(-6deg); }
|
||
38% { transform: translate(-60px, 56vh) scaleX(-1); }
|
||
100% { transform: translate(-60px, 56vh) scaleX(-1); }
|
||
}
|
||
/* Сцена: луна в углу неба и силуэт внизу — холмы, дом с горящими окнами,
|
||
сухое дерево, кресты и тыквы. Две неподвижные SVG-картинки: рисуются
|
||
один раз и больше ничего не стоят. z-index: -2 — под мышами, чтобы они
|
||
пролетали перед луной, а не за ней. На узком экране силуэт прижат
|
||
вправо — туда, где дом. */
|
||
:root[data-theme="halloween"] .shell::before {
|
||
content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
|
||
background:
|
||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E %3Cdefs%3E %3CradialGradient id='h'%3E%3Cstop offset='.42' stop-color='%23ffd68c' stop-opacity='.32'/%3E%3Cstop offset='1' stop-color='%23ffd68c' stop-opacity='0'/%3E%3C/radialGradient%3E %3CradialGradient id='m' cx='.42' cy='.4'%3E%3Cstop offset='0' stop-color='%23fff3cf'/%3E%3Cstop offset='1' stop-color='%23efc06c'/%3E%3C/radialGradient%3E %3C/defs%3E %3Ccircle cx='100' cy='100' r='100' fill='url(%23h)'/%3E %3Ccircle cx='100' cy='100' r='46' fill='url(%23m)'/%3E %3Cg fill='%23d9a552' fill-opacity='.5'%3E %3Ccircle cx='84' cy='86' r='9'/%3E%3Ccircle cx='117' cy='112' r='12'/%3E%3Ccircle cx='110' cy='76' r='5'/%3E%3Ccircle cx='88' cy='119' r='6'/%3E %3C/g%3E %3C/svg%3E") no-repeat right 5vw top 6vh / clamp(120px, 24vmin, 230px) auto,
|
||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260'%3E %3Cdefs%3E %3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23ff9a3c' stop-opacity='.2'/%3E%3Cstop offset='1' stop-color='%23ff9a3c' stop-opacity='0'/%3E%3C/radialGradient%3E %3C/defs%3E %3Cpath fill='%231c1123' d='M0 200 C120 160 240 150 360 175 C480 200 560 150 700 140 C820 130 900 95 1000 110 C1080 122 1140 150 1200 160 V260 H0 Z'/%3E %3Ccircle cx='928' cy='78' r='80' fill='url(%23g)'/%3E %3Cg fill='%23140b19'%3E %3Crect x='880' y='62' width='96' height='58'/%3E %3Cpolygon points='870,64 928,22 986,64'/%3E %3Crect x='948' y='30' width='26' height='50'/%3E %3Cpolygon points='942,32 961,4 980,32'/%3E %3Crect x='896' y='32' width='10' height='22'/%3E %3C/g%3E %3Cg fill='%23d9a05a'%3E %3Crect x='893' y='78' width='14' height='16'/%3E%3Crect x='921' y='78' width='14' height='16'/%3E%3Crect x='955' y='44' width='12' height='14'/%3E %3C/g%3E %3Cg stroke='%23140b19' stroke-width='2'%3E %3Cpath d='M900 78 v16 M893 86 h14 M928 78 v16 M921 86 h14 M961 44 v14'/%3E %3C/g%3E %3Crect x='946' y='94' width='16' height='26' fill='%230b070e'/%3E %3Cpath fill='%230b070e' d='M0 230 C160 205 300 215 450 222 C620 230 760 210 900 214 C1040 218 1120 228 1200 222 V260 H0 Z'/%3E %3Cpath fill='%230b070e' d='M152 216 L156 150 L140 120 L146 117 L160 141 L161 110 L149 84 L155 81 L168 105 L176 79 L182 81 L172 120 L190 99 L196 103 L172 140 L170 216 Z'/%3E %3Cg fill='%230b070e'%3E %3Cpath d='M372 223 v-22 a11 11 0 0 1 22 0 v22 Z'/%3E %3Crect x='428' y='194' width='5' height='30'/%3E%3Crect x='420' y='202' width='21' height='5'/%3E %3Cpath d='M478 225 v-16 a9 9 0 0 1 18 0 v16 Z'/%3E %3Cg transform='rotate(8 540 210)'%3E%3Crect x='538' y='192' width='4' height='28'/%3E%3Crect x='531' y='199' width='18' height='4'/%3E%3C/g%3E %3C/g%3E %3Cellipse cx='640' cy='219' rx='13' ry='10' fill='%23a9581f'/%3E %3Crect x='638' y='206' width='4' height='5' fill='%233d6b2a'/%3E %3Cg fill='%23120c14'%3E %3Cpolygon points='632,217 636,212 639,218'/%3E%3Cpolygon points='641,218 644,212 648,217'/%3E %3Cpath d='M632 222 Q640 228 648 222 Q640 225 632 222 Z'/%3E %3C/g%3E %3Cellipse cx='672' cy='223' rx='9' ry='7' fill='%238f4818'/%3E %3Crect x='671' y='214' width='3' height='4' fill='%233d6b2a'/%3E %3C/svg%3E") no-repeat right bottom / max(100vw, 1000px) auto;
|
||
}
|
||
/* Туман у нижнего края — клочья дымки плывут вбок. Слой вдвое шире
|
||
экрана и сдвигается на половину — на одну плитку, поэтому шва нет;
|
||
двигается слой целиком, без перерисовки. */
|
||
:root[data-theme="halloween"] .shell::after {
|
||
content: ""; position: fixed; left: 0; bottom: 0; width: 200vw; height: 160px; z-index: 2;
|
||
pointer-events: none;
|
||
background:
|
||
radial-gradient(ellipse 18% 60% at 20% 100%, rgba(200, 170, 255, .16), transparent 70%),
|
||
radial-gradient(ellipse 24% 75% at 55% 100%, rgba(185, 140, 255, .13), transparent 70%),
|
||
radial-gradient(ellipse 15% 50% at 86% 100%, rgba(200, 170, 255, .14), transparent 70%),
|
||
linear-gradient(to top, rgba(185, 140, 255, .1), transparent);
|
||
background-size: 50% 100%;
|
||
background-repeat: repeat-x;
|
||
animation: fog-drift 70s linear infinite, fog-breathe 9s ease-in-out infinite;
|
||
}
|
||
@keyframes fog-drift { to { transform: translateX(-50%); } }
|
||
@keyframes fog-breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
|
||
/* Тыквенное лицо — глаза и улыбка во весь экран — изредка проступает
|
||
поверх страницы еле заметным свечением и тает. Поверх, а не под
|
||
содержимым: под карточками его бы не было видно. Яркость не выше
|
||
семи сотых — читать не мешает; движется только прозрачность. */
|
||
:root[data-theme="halloween"]::after {
|
||
content: ""; position: fixed; left: 50%; top: 50%; z-index: 2; pointer-events: none;
|
||
width: min(86vw, 760px); aspect-ratio: 400 / 270;
|
||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 270'%3E %3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='7'/%3E%3C/filter%3E%3C/defs%3E %3Cg id='f' fill='%23ff8a1f' fill-rule='evenodd'%3E %3Cpolygon points='80,110 130,40 180,110'/%3E %3Cpolygon points='220,110 270,40 320,110'/%3E %3Cpolygon points='184,152 200,122 216,152'/%3E %3Cpath d='M60 165 Q200 215 340 165 Q300 250 200 256 Q100 250 60 165 Z M150 190 h22 v18 h-22 Z M228 190 h22 v18 h-22 Z M189 230 h22 v22 h-22 Z'/%3E %3C/g%3E %3Cuse href='%23f' filter='url(%23b)'/%3E %3C/svg%3E") center / contain no-repeat;
|
||
transform: translate(-50%, -50%);
|
||
opacity: 0;
|
||
animation: pumpkin-face 45s ease-in-out 12s infinite;
|
||
}
|
||
@keyframes pumpkin-face {
|
||
0%, 80%, 100% { opacity: 0; }
|
||
87% { opacity: .07; }
|
||
90% { opacity: .055; }
|
||
93% { opacity: .07; }
|
||
}
|
||
/* Паучок изредка спускается на нитке у правого края, качается и уползает.
|
||
Нитка — фон над ним; элемент выше экрана, поэтому она всегда тянется
|
||
от самого верха. */
|
||
:root[data-theme="halloween"] main::after {
|
||
content: ""; position: fixed; top: 0; right: 14px; z-index: -1;
|
||
width: 24px; height: calc(40vh + 24px); opacity: .55;
|
||
background:
|
||
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23cfc4b8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M15 20 Q8 14 4 18 M15 23 Q7 21 3 26 M15 26 Q8 28 5 34 M16 29 Q11 33 10 38 M25 20 Q32 14 36 18 M25 23 Q33 21 37 26 M25 26 Q32 28 35 34 M24 29 Q29 33 30 38'/%3E%3C/g%3E%3Cg fill='%23cfc4b8'%3E%3Cellipse cx='20' cy='25' rx='6' ry='7'/%3E%3Ccircle cx='20' cy='15' r='4'/%3E%3C/g%3E%3C/svg%3E") no-repeat 50% 100% / 24px 24px,
|
||
linear-gradient(rgba(236, 227, 216, .35), rgba(236, 227, 216, .35)) no-repeat 50% 0 / 1px calc(100% - 16px);
|
||
pointer-events: none;
|
||
transform-origin: 50% 0;
|
||
will-change: transform;
|
||
animation: spider-drop 26s ease-in-out 4s infinite backwards;
|
||
}
|
||
@keyframes spider-drop {
|
||
0% { transform: translateY(-100%); }
|
||
12% { transform: translateY(calc(-22vh - 28px)); }
|
||
14% { transform: translateY(calc(-24vh - 28px)); }
|
||
16% { transform: translateY(calc(-22vh - 28px)) rotate(0); }
|
||
21% { transform: translateY(calc(-22vh - 28px)) rotate(2deg); }
|
||
26% { transform: translateY(calc(-22vh - 28px)) rotate(-2deg); }
|
||
30% { transform: translateY(calc(-22vh - 28px)) rotate(0); }
|
||
42% { transform: translateY(-100%); }
|
||
100% { transform: translateY(-100%); }
|
||
}
|
||
|
||
/* День святого Валентина: гирлянда на нитке с розовым отсветом, сердце
|
||
в рейке бьётся, а не качается. */
|
||
:root[data-theme="valentine"] main::before {
|
||
padding-top: 8px;
|
||
background: linear-gradient(transparent 4px, rgba(194, 24, 91, .3) 4px 5px, transparent 5px) repeat-x;
|
||
filter: drop-shadow(0 0 4px rgba(255, 105, 160, .5));
|
||
}
|
||
:root[data-theme="valentine"] .rail-foot::before {
|
||
animation: heart-beat 1.6s ease-in-out infinite;
|
||
}
|
||
@keyframes heart-beat {
|
||
0%, 40%, 100% { transform: scale(1); }
|
||
10% { transform: scale(1.18); }
|
||
20% { transform: scale(1.02); }
|
||
30% { transform: scale(1.14); }
|
||
}
|
||
/* Сердечки поднимаются со дна экрана и покачиваются — под содержимым,
|
||
как мыши на Хэллоуин: видны в просветах и полях, текст не перекрывают. */
|
||
:root[data-theme="valentine"] body::before,
|
||
:root[data-theme="valentine"] body::after {
|
||
content: "💗"; position: fixed; z-index: -1; left: 0; top: 0;
|
||
font-family: var(--emoji); font-size: 56px; line-height: 1; opacity: .3;
|
||
pointer-events: none; user-select: none; -webkit-user-select: none;
|
||
will-change: transform;
|
||
}
|
||
:root[data-theme="valentine"] body::before {
|
||
animation: heart-rise 19s linear infinite;
|
||
}
|
||
:root[data-theme="valentine"] body::after {
|
||
content: "💕"; font-size: 44px; opacity: .26;
|
||
animation: heart-rise-other 26s linear 8s infinite backwards;
|
||
}
|
||
@keyframes heart-rise {
|
||
0% { transform: translate(18vw, calc(100vh + 60px)) rotate(-8deg); }
|
||
12% { transform: translate(22vw, 75vh) rotate(8deg); }
|
||
24% { transform: translate(16vw, 50vh) rotate(-8deg); }
|
||
36% { transform: translate(23vw, 25vh) rotate(8deg); }
|
||
48% { transform: translate(18vw, -80px) rotate(0); }
|
||
100% { transform: translate(18vw, -80px); }
|
||
}
|
||
@keyframes heart-rise-other {
|
||
0% { transform: translate(78vw, calc(100vh + 60px)) rotate(8deg); }
|
||
10% { transform: translate(72vw, 78vh) rotate(-8deg); }
|
||
20% { transform: translate(80vw, 55vh) rotate(8deg); }
|
||
30% { transform: translate(73vw, 30vh) rotate(-8deg); }
|
||
40% { transform: translate(78vw, -80px) rotate(0); }
|
||
100% { transform: translate(78vw, -80px); }
|
||
}
|
||
|
||
/* День космонавтики: звёздное небо плывёт в три слоя — дальние звёзды
|
||
медленнее ближних, отсюда глубина. Сдвиг каждого слоя за цикл кратен
|
||
его плитке, поэтому шва при повторе нет. Под содержимым, как мыши на
|
||
Хэллоуин: видно в полях и просветах, текст не перекрывает. */
|
||
:root[data-theme="cosmos"] body::before {
|
||
content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
|
||
background-image:
|
||
radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, .7), transparent),
|
||
radial-gradient(1px 1px at 97px 13px, rgba(255, 255, 255, .7), transparent),
|
||
radial-gradient(1px 1px at 151px 88px, rgba(255, 255, 255, .7), transparent),
|
||
radial-gradient(1px 1px at 61px 147px, rgba(255, 255, 255, .7), transparent),
|
||
radial-gradient(1px 1px at 178px 172px, rgba(255, 255, 255, .7), transparent),
|
||
radial-gradient(1.5px 1.5px at 42px 210px, rgba(220, 232, 255, .85), transparent),
|
||
radial-gradient(1.5px 1.5px at 133px 57px, rgba(220, 232, 255, .85), transparent),
|
||
radial-gradient(1.5px 1.5px at 251px 166px, rgba(220, 232, 255, .85), transparent),
|
||
radial-gradient(1.5px 1.5px at 205px 279px, rgba(220, 232, 255, .85), transparent),
|
||
radial-gradient(2px 2px at 88px 312px, #ffffff, transparent),
|
||
radial-gradient(2px 2px at 301px 104px, #ffffff, transparent),
|
||
radial-gradient(2px 2px at 377px 251px, #ffffff, transparent),
|
||
radial-gradient(ellipse 60% 45% at 82% 18%, rgba(124, 92, 255, .2), transparent),
|
||
radial-gradient(ellipse 55% 40% at 8% 92%, rgba(255, 107, 107, .1), transparent);
|
||
background-size: 200px 200px, 200px 200px, 200px 200px, 200px 200px, 200px 200px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 400px 400px, 400px 400px, 400px 400px, 100% 100%, 100% 100%;
|
||
background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
|
||
animation: stars-drift 120s linear infinite;
|
||
}
|
||
@keyframes stars-drift {
|
||
to { background-position: -200px 0, -200px 0, -200px 0, -200px 0, -200px 0, -600px 0, -600px 0, -600px 0, -600px 0, -1200px 0, -1200px 0, -1200px 0, 0 0, 0 0; }
|
||
}
|
||
/* Метеор — короткий росчерк раз в несколько секунд. */
|
||
:root[data-theme="cosmos"] body::after {
|
||
content: ""; position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
|
||
width: 180px; height: 2px; border-radius: 2px;
|
||
background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9));
|
||
opacity: 0;
|
||
animation: meteor 11s linear 3s infinite backwards;
|
||
}
|
||
@keyframes meteor {
|
||
0% { transform: translate(85vw, 8vh) rotate(155deg); opacity: 0; }
|
||
2% { opacity: 1; }
|
||
8% { transform: translate(calc(85vw - 420px), calc(8vh + 196px)) rotate(155deg); opacity: 0; }
|
||
100% { transform: translate(calc(85vw - 420px), calc(8vh + 196px)) rotate(155deg); opacity: 0; }
|
||
}
|
||
/* Ракета изредка пролетает снизу вверх наискосок — и надолго пропадает. */
|
||
:root[data-theme="cosmos"] .shell::after {
|
||
content: "🚀"; position: fixed; left: 0; top: 0; z-index: -1;
|
||
font-family: var(--emoji); font-size: 56px; line-height: 1; opacity: .35;
|
||
pointer-events: none; user-select: none; -webkit-user-select: none;
|
||
will-change: transform;
|
||
animation: rocket-flight 34s linear 10s infinite backwards;
|
||
}
|
||
@keyframes rocket-flight {
|
||
0% { transform: translate(-80px, calc(100vh + 40px)); }
|
||
15% { transform: translate(35vw, 55vh) rotate(-3deg); }
|
||
30% { transform: translate(calc(100vw + 80px), -100px); }
|
||
100% { transform: translate(calc(100vw + 80px), -100px); }
|
||
}
|
||
/* Гирлянда мерцает, как звёзды. */
|
||
:root[data-theme="cosmos"] main::before {
|
||
filter: drop-shadow(0 0 5px rgba(142, 203, 255, .6));
|
||
animation: star-twinkle 5s ease-in-out infinite;
|
||
}
|
||
@keyframes star-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
|
||
|
||
/* GTA VI: переливы логотипа — розовый, персик, сирень. Рейка и шапки
|
||
залиты пастелью целиком: тёмный текст на ней читается везде. */
|
||
:root[data-theme="vice"] .rail {
|
||
background: linear-gradient(180deg, #ffa6c6 0%, #ffc08f 50%, #c4adff 100%);
|
||
}
|
||
:root[data-theme="vice"] .mobile-bar,
|
||
:root[data-theme="vice"] .tabbar,
|
||
:root[data-theme="vice"] .ticker {
|
||
background: linear-gradient(90deg, #ffa6c6 0%, #ffc08f 50%, #c4adff 100%);
|
||
}
|
||
/* Заголовок — переливом, но насыщенным: пастель на светлом поле не
|
||
читается даже крупным кеглем. Заголовки внутри материалов (.nb-md) —
|
||
часть текста, их не трогаем. Кнопка в h1 профиля задаёт свой цвет
|
||
сама, поэтому прозрачный цвет заголовка её не прячет. */
|
||
:root[data-theme="vice"] main h1:not(.nb-md h1) {
|
||
background: linear-gradient(90deg, #e0357a 0%, #e8621f 50%, #6a3fd1 100%);
|
||
-webkit-background-clip: text; background-clip: text;
|
||
color: transparent; -webkit-text-fill-color: transparent;
|
||
/* Объём, как у букв VI: сдвинутая подложка сиреневым. */
|
||
filter: drop-shadow(3px 3px 0 #c4adff);
|
||
font-size: 52px;
|
||
}
|
||
/* Черта у подзаголовков — тем же переливом и пошире. */
|
||
:root[data-theme="vice"] h2::before {
|
||
width: 44px; height: 5px; border-radius: 3px;
|
||
background: linear-gradient(90deg, #e0357a, #e8621f, #6a3fd1);
|
||
}
|
||
/* Карточки — как кадры с обложки: жёсткая тень со сдвигом,
|
||
сиренево-персиковая. Плоские карточки остаются плоскими. */
|
||
:root[data-theme="vice"] .card:not(.flat) {
|
||
box-shadow: 7px 7px 0 #c4adff, 7px 7px 0 3px rgba(255, 166, 198, .55);
|
||
}
|
||
/* Кнопки в содержимом залиты переливом. В рейке и в меню кнопок много
|
||
и мелких — там перелив был бы рябью, их не трогаем. */
|
||
:root[data-theme="vice"] main button:not(.ghost):not(.danger),
|
||
:root[data-theme="vice"] main .btn:not(.ghost):not(.danger) {
|
||
background: linear-gradient(110deg, #ffa6c6 0%, #ffc08f 50%, #c4adff 100%);
|
||
}
|
||
:root[data-theme="vice"] main button:not(.ghost):not(.danger):hover,
|
||
:root[data-theme="vice"] main .btn:not(.ghost):not(.danger):hover {
|
||
box-shadow: 4px 4px 0 #6a3fd1;
|
||
}
|
||
/* Поле подёрнуто пастелью, как небо на обложке, — под содержимым. */
|
||
:root[data-theme="vice"] body::before {
|
||
content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
|
||
background:
|
||
radial-gradient(ellipse 50% 45% at 10% 10%, rgba(255, 140, 185, .7), transparent 70%),
|
||
radial-gradient(ellipse 45% 40% at 90% 40%, rgba(255, 176, 110, .65), transparent 70%),
|
||
radial-gradient(ellipse 60% 45% at 35% 90%, rgba(170, 140, 255, .7), transparent 70%);
|
||
animation: vice-sky 40s ease-in-out infinite alternate;
|
||
}
|
||
/* Сдвигается сам слой, а не фон: так дешевле, перерисовки нет. */
|
||
@keyframes vice-sky {
|
||
from { transform: translate(0, 0) rotate(0); }
|
||
to { transform: translate(6%, -5%) rotate(8deg); }
|
||
}
|
||
|
||
/* ---------- «Матрица» ----------
|
||
Заголовки — моноширинным, как в терминале, с зелёным свечением и
|
||
мигающим курсором. Бегущие столбцы символов — холст из matrix.js под
|
||
содержимым; сквозь него кликается. */
|
||
:root[data-theme="matrix"] {
|
||
--display: var(--mono);
|
||
}
|
||
:root[data-theme="matrix"] h1 { text-shadow: 0 0 12px rgba(0, 255, 65, .45); }
|
||
:root[data-theme="matrix"] main h1::after {
|
||
content: "_"; margin-left: .08em;
|
||
animation: cursor-blink 1.1s steps(1) infinite;
|
||
}
|
||
@keyframes cursor-blink { 50% { opacity: 0; } }
|
||
.matrix-rain {
|
||
position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%;
|
||
pointer-events: none; opacity: .5;
|
||
}
|
||
|
||
/* ---------- «Синтвейв» ----------
|
||
Три слоя под содержимым, по порядку отрисовки: небо, солнце, земля
|
||
с сеткой. Земля непрозрачная и закрывает низ солнца — получается закат.
|
||
Горизонт на 64% высоты окна. */
|
||
:root[data-theme="synthwave"] body::before {
|
||
content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
|
||
background: linear-gradient(to bottom, #14061f 0%, #2a0c47 38%, #5c1665 58%, #8a2a6e 64%);
|
||
}
|
||
/* Солнце в полоску: прорези — маской, поэтому сквозь них видно небо,
|
||
а не полосы фона. Книзу прорези шире, как на обложках кассет. */
|
||
:root[data-theme="synthwave"] .shell::before {
|
||
content: ""; position: fixed; z-index: -1; pointer-events: none;
|
||
left: 50%; top: calc(64vh - 36vmin); width: 44vmin; height: 44vmin; margin-left: -22vmin;
|
||
border-radius: 50%;
|
||
background: linear-gradient(to bottom, #ffe066 0%, #ff9a3c 42%, #ff4fb0 82%);
|
||
-webkit-mask-image: linear-gradient(to bottom, #000 0 46%, transparent 46% 48.5%, #000 48.5% 55%, transparent 55% 58.5%, #000 58.5% 64%, transparent 64% 68.5%, #000 68.5% 73%, transparent 73% 78.5%, #000 78.5%);
|
||
mask-image: linear-gradient(to bottom, #000 0 46%, transparent 46% 48.5%, #000 48.5% 55%, transparent 55% 58.5%, #000 58.5% 64%, transparent 64% 68.5%, #000 68.5% 73%, transparent 73% 78.5%, #000 78.5%);
|
||
filter: drop-shadow(0 0 28px rgba(255, 79, 176, .55));
|
||
opacity: .6;
|
||
}
|
||
/* Текст вне карточек бывает и над солнцем — тёмная тень держит его
|
||
читаемым; на тёмном фоне её не видно. */
|
||
:root[data-theme="synthwave"] main { text-shadow: 0 1px 3px rgba(20, 6, 31, .95), 0 0 1px rgba(20, 6, 31, .95); }
|
||
/* Земля — плоскость, наклонённая к горизонту. Едет навстречу сдвигом на
|
||
одну клетку по кругу: двигается слой целиком (transform), а не картинка
|
||
внутри, — браузер не перерисовывает её каждый кадр. Верхний край уходит
|
||
за горизонт на клетку, чтобы при сдвиге там не открывался просвет. */
|
||
:root[data-theme="synthwave"] body::after {
|
||
content: ""; position: fixed; z-index: -1; pointer-events: none;
|
||
left: -60vw; right: -60vw; top: 64vh; height: 140vh;
|
||
background-color: #14061f;
|
||
background-image:
|
||
linear-gradient(to bottom, #14061f 0, rgba(20, 6, 31, 0) 18%),
|
||
linear-gradient(to right, rgba(255, 79, 176, .75) 0 2px, transparent 2px),
|
||
linear-gradient(to bottom, rgba(255, 79, 176, .75) 0 2px, transparent 2px);
|
||
background-size: 100% 100%, 60px 60px, 60px 60px;
|
||
background-position: 0 0, center 0, 0 0;
|
||
transform-origin: 50% 0;
|
||
transform: perspective(320px) rotateX(62deg) translateY(-60px);
|
||
animation: grid-run 1.4s linear infinite;
|
||
box-shadow: 0 -2px 18px rgba(255, 79, 176, .7);
|
||
}
|
||
@keyframes grid-run {
|
||
from { transform: perspective(320px) rotateX(62deg) translateY(-60px); }
|
||
to { transform: perspective(320px) rotateX(62deg) translateY(0); }
|
||
}
|
||
|
||
/* ---------- «Северное сияние» ----------
|
||
Две размытые завесы — зелёная и фиолетовая — медленно колышутся
|
||
навстречу друг другу; движется слой целиком, без перерисовки. Под ними
|
||
редкие неподвижные звёзды. Всё под содержимым. */
|
||
:root[data-theme="aurora"] .shell::before {
|
||
content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
|
||
background-image:
|
||
radial-gradient(1px 1px at 37px 61px, rgba(255, 255, 255, .7), transparent),
|
||
radial-gradient(1px 1px at 151px 23px, rgba(255, 255, 255, .55), transparent),
|
||
radial-gradient(1.5px 1.5px at 229px 187px, rgba(255, 255, 255, .75), transparent),
|
||
radial-gradient(1px 1px at 97px 241px, rgba(255, 255, 255, .5), transparent);
|
||
background-size: 280px 280px;
|
||
}
|
||
:root[data-theme="aurora"] body::before,
|
||
:root[data-theme="aurora"] body::after {
|
||
content: ""; position: fixed; z-index: -1; pointer-events: none;
|
||
left: -15vw; right: -15vw;
|
||
/* Лучи — тёмные вертикальные прорези поверх цвета; форма завесы —
|
||
маской из двух эллипсов. Размытие лёгкое, чтобы лучи не пропали. */
|
||
filter: blur(2.5px);
|
||
will-change: transform, opacity;
|
||
}
|
||
:root[data-theme="aurora"] body::before {
|
||
top: 4vh; height: 58vh;
|
||
background:
|
||
repeating-linear-gradient(90deg, rgba(4, 18, 28, 0) 0 4px, rgba(4, 18, 28, .65) 4px 7px, rgba(4, 18, 28, 0) 7px 15px, rgba(4, 18, 28, .45) 15px 17px, rgba(4, 18, 28, 0) 17px 23px),
|
||
linear-gradient(to bottom, transparent 0%, rgba(201, 155, 255, .28) 22%, rgba(109, 255, 168, .5) 62%, rgba(150, 255, 200, .9) 76%, transparent 90%);
|
||
-webkit-mask-image:
|
||
radial-gradient(ellipse 34% 48% at 26% 56%, #000 35%, transparent 72%),
|
||
radial-gradient(ellipse 30% 42% at 70% 44%, #000 30%, transparent 70%);
|
||
mask-image:
|
||
radial-gradient(ellipse 34% 48% at 26% 56%, #000 35%, transparent 72%),
|
||
radial-gradient(ellipse 30% 42% at 70% 44%, #000 30%, transparent 70%);
|
||
transform-origin: 50% 100%;
|
||
animation: aurora-sway 17s ease-in-out infinite alternate;
|
||
}
|
||
:root[data-theme="aurora"] body::after {
|
||
top: -6vh; height: 52vh;
|
||
background:
|
||
repeating-linear-gradient(90deg, rgba(4, 18, 28, 0) 0 5px, rgba(4, 18, 28, .6) 5px 8px, rgba(4, 18, 28, 0) 8px 19px),
|
||
linear-gradient(to bottom, transparent 0%, rgba(255, 120, 200, .2) 25%, rgba(201, 155, 255, .55) 60%, rgba(120, 230, 255, .5) 78%, transparent 92%);
|
||
-webkit-mask-image: radial-gradient(ellipse 38% 46% at 52% 52%, #000 30%, transparent 72%);
|
||
mask-image: radial-gradient(ellipse 38% 46% at 52% 52%, #000 30%, transparent 72%);
|
||
transform-origin: 50% 100%;
|
||
animation: aurora-sway-back 23s ease-in-out infinite alternate;
|
||
}
|
||
@keyframes aurora-sway {
|
||
0% { transform: translateX(-4vw) skewX(-14deg) scaleY(.95); opacity: .7; }
|
||
50% { transform: translateX(1vw) skewX(6deg) scaleY(1.12); opacity: 1; }
|
||
100% { transform: translateX(5vw) skewX(-4deg) scaleY(1); opacity: .8; }
|
||
}
|
||
@keyframes aurora-sway-back {
|
||
0% { transform: translateX(5vw) skewX(12deg) scaleY(1.05); opacity: .55; }
|
||
50% { transform: translateX(0) skewX(-8deg) scaleY(.9); opacity: .9; }
|
||
100% { transform: translateX(-5vw) skewX(6deg) scaleY(1.1); opacity: .7; }
|
||
}
|
||
|
||
/* Значок праздника у аватарки: тем, у кого выбрана своя тема. Нажатие
|
||
включает праздничную тему. Появляется только скриптом — без него
|
||
выбирать тему всё равно нечем. */
|
||
.season-btn { font-family: var(--emoji); font-size: 20px; line-height: 1; opacity: 1; }
|
||
.season-btn:not([hidden]) { animation: season-nudge 3s ease-in-out infinite; }
|
||
@keyframes season-nudge {
|
||
0%, 80%, 100% { transform: rotate(0); }
|
||
85% { transform: rotate(-14deg); }
|
||
90% { transform: rotate(12deg); }
|
||
95% { transform: rotate(-6deg); }
|
||
}
|
||
.mobile-tools .season-btn { width: 36px; height: 36px; padding: 0; }
|
||
/* GTA VI: вместо смайлика — плашка «VI» переливом логотипа. Плашка
|
||
со своим фоном: кнопку видят те, у кого другая тема, и рейка под ней
|
||
любого цвета. Смайлик остаётся в разметке — для меню тем и подсказки.
|
||
В рейке кнопки приглушены; плашка — приглашение, ей нужен полный цвет.
|
||
Шириной она больше квадратной кнопки — на телефоне налезала на аватарку.
|
||
Зазор у кнопок 8px, и спрятанный смайлик сдвигал плашку от центра —
|
||
качалась она тогда тоже вкривь. */
|
||
.season-btn.season-vice,
|
||
.rail-foot .season-btn.season-vice,
|
||
.mobile-tools .season-btn.season-vice { font-size: 0; opacity: 1; width: auto; padding: 0 2px; gap: 0; }
|
||
.season-btn.season-vice::after {
|
||
content: "VI"; display: inline-block; padding: 6px 8px 5px; border-radius: 6px;
|
||
font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1; letter-spacing: -.02em;
|
||
color: #2a1230;
|
||
background: linear-gradient(135deg, #ffa6c6 0%, #ffc08f 50%, #c4adff 100%);
|
||
box-shadow: 0 0 0 2px #2a1230;
|
||
}
|
||
|
||
@media (max-width: 760px) {
|
||
:root[data-theme="halloween"] main::before,
|
||
:root[data-theme="newyear"] main::before,
|
||
:root[data-theme="valentine"] main::before,
|
||
:root[data-theme="cosmos"] main::before { font-size: 15px; margin: -8px 0 12px; }
|
||
:root[data-theme="vice"] main h1:not(.nb-md h1) { font-size: 30px; }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
:root[data-theme="halloween"] body::before,
|
||
:root[data-theme="halloween"] body::after { display: none; }
|
||
:root[data-theme="halloween"] main::before,
|
||
:root[data-theme="halloween"] .shell::after { animation: none; }
|
||
:root[data-theme="halloween"] main::after,
|
||
:root[data-theme="halloween"]::after { display: none; }
|
||
:root[data-theme="newyear"] body::before,
|
||
:root[data-theme="newyear"] body::after { display: none; }
|
||
:root[data-theme="newyear"] main::before { animation: none; }
|
||
:root[data-theme="valentine"] body::before,
|
||
:root[data-theme="valentine"] body::after { display: none; }
|
||
:root[data-theme="matrix"] main h1::after { animation: none; }
|
||
:root[data-theme="synthwave"] body::after { animation: none; transform: perspective(320px) rotateX(62deg); }
|
||
:root[data-theme="aurora"] body::before,
|
||
:root[data-theme="aurora"] body::after { animation: none; }
|
||
:root[data-theme="cosmos"] body::before,
|
||
:root[data-theme="cosmos"] main::before { animation: none; }
|
||
:root[data-theme="cosmos"] body::after,
|
||
:root[data-theme="cosmos"] .shell::after { display: none; }
|
||
:root[data-theme="vice"] body::before { animation: none; }
|
||
:root[data-theme="halloween"] .rail-foot::before,
|
||
:root[data-theme="newyear"] .rail-foot::before,
|
||
:root[data-theme="valentine"] .rail-foot::before,
|
||
:root[data-theme="cosmos"] .rail-foot::before,
|
||
.season-btn:not([hidden]) { animation: none; }
|
||
}
|
||
@media print {
|
||
main::before, main::after, .rail-foot::before, body::before, body::after, .shell::before, .shell::after,
|
||
:root::after, .matrix-rain { display: none !important; }
|
||
}
|
||
/* Высококонтрастный режим Windows и подобные: браузер сам убирает фоны,
|
||
и от украшений остались бы обрывки. Там — без них. */
|
||
@media (forced-colors: active) {
|
||
main::before, main::after, .rail-foot::before,
|
||
body::before, body::after, .shell::before, .shell::after, :root::after, .season-btn,
|
||
.matrix-rain { display: none !important; }
|
||
}
|
||
|
||
/* ============================================================
|
||
Соревнования — та же бумага, своя рейка.
|
||
Новых цветов нет: раздел отличается подписью под знаком и тем, что
|
||
выход обратно в учёбу отделён от пунктов тура линейкой. Табло читается
|
||
той же плотностью заливки, что матрица: чёрное — решено.
|
||
============================================================ */
|
||
.brand-area { font-size: 7px; letter-spacing: .06em; padding: 1px 5px; background: var(--inv-text); color: var(--inv-bg); font-weight: 800; }
|
||
.rail .nav a.area-switch { margin-top: auto; border-top: var(--rule) solid var(--inv-text); border-bottom: 0; }
|
||
.tabbar a.area-switch { border-left: 1px solid var(--line-soft); }
|
||
/* Угловая скобка знака раздела повторяется в мелочах: подзаголовок
|
||
начинается с «<>» вместо «//», черта перед заголовком — уголком «>».
|
||
Так раздел узнаётся и без рейки — на телефоне, на скриншоте. */
|
||
.area-contest .eyebrow::before { content: "<>"; }
|
||
.area-contest h2::before { width: 9px; height: 9px; background: none; margin: 0 6px 0 4px;
|
||
border: solid var(--ink); border-width: var(--rule) var(--rule) 0 0; transform: rotate(45deg); }
|
||
/* Часы тура крупнее строки события: на соревновании на них смотрят чаще всего. */
|
||
.contest-clock .countdown { font-size: 15px; padding: 4px 12px; }
|
||
.contest-clock .badge.warn { background: transparent; color: var(--inv-text); border-color: var(--inv-text); }
|
||
|
||
.phase { display: inline-flex; align-items: center; gap: 6px; }
|
||
.phase[data-phase="running"] { background: var(--err); color: var(--err-text); border-color: var(--err); }
|
||
.phase[data-phase="draft"] { border-style: dashed; }
|
||
|
||
.join-code { font-family: "JetBrains Mono", monospace; font-size: 28px; font-weight: 700; letter-spacing: .18em; }
|
||
.team-members { list-style: none; padding: 0; margin: 0; }
|
||
.team-members li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
|
||
.team-members li:last-child { border-bottom: 0; }
|
||
|
||
.letter { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px;
|
||
border: 2px solid var(--ink); font-family: "Unbounded", sans-serif; font-weight: 800; }
|
||
.letter.solved { background: var(--inv-bg); color: var(--inv-text); }
|
||
/* Пробовали, но не решили — красная рамка, как у неудачной клетки табло.
|
||
Не пунктир: пунктир на портале значит «студенту не видно». */
|
||
.letter.tried { border-color: var(--err); color: var(--err); }
|
||
/* Открытая сейчас — тень со сдвигом, как у поля в фокусе: заливка уже
|
||
значит «решено», красная рамка — «пробовали». */
|
||
.letter.current { box-shadow: 3px 3px 0 var(--ink); }
|
||
.letter-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
|
||
.letter-strip a.letter { text-decoration: none; color: inherit; }
|
||
.letter-strip a.letter.solved { color: var(--inv-text); }
|
||
.letter-strip a.letter.tried { color: var(--err); }
|
||
.letter-strip .small { margin-left: 6px; }
|
||
/* Буква в заголовке задачи — квадрат по высоте строки, буква по центру. */
|
||
h1 .letter { font-size: .62em; width: 1.5em; height: 1.5em; min-width: 0; padding: 0;
|
||
border-width: 3px; vertical-align: .12em; margin-right: .2em; line-height: 1; }
|
||
|
||
/* Табло: место, команда, клетка на задачу, итог. Клетка — плюс с числом
|
||
неудачных попыток и минутой, как на табло ICPC; в IOI — баллы. */
|
||
.standings { table-layout: fixed; }
|
||
.standings .c-place { width: 48px; }
|
||
.standings .c-problem { width: 76px; }
|
||
.standings .c-total { width: 90px; }
|
||
.standings td, .standings th { text-align: center; padding: 6px 4px; }
|
||
.standings td.team-cell { overflow: hidden; text-overflow: ellipsis; }
|
||
.standings td.team-cell, .standings th.team-cell { text-align: left; background: var(--panel); }
|
||
.standings tr.mine td { background: var(--panel-2); }
|
||
.standings tr.mine td.team-cell { background: var(--panel-2); }
|
||
.standings .place { font-family: "Unbounded", sans-serif; font-weight: 800; width: 44px; }
|
||
.standings .total { font-weight: 800; font-variant-numeric: tabular-nums; }
|
||
.standings .members { display: block; font-size: 11px; color: var(--muted); }
|
||
.run-cell { display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
|
||
min-width: 52px; min-height: 40px; padding: 2px 4px; border: 2px solid transparent; line-height: 1.15; font-variant-numeric: tabular-nums; }
|
||
.run-cell b { font-size: 15px; }
|
||
.run-cell small { font-size: 10px; opacity: .8; }
|
||
.run-cell.solved { background: var(--inv-bg); color: var(--inv-text); }
|
||
.run-cell.first { outline: 3px solid var(--accent); outline-offset: -1px; }
|
||
.run-cell.failed { border-color: var(--err); color: var(--err); }
|
||
.run-cell.partial { border-color: var(--ink); }
|
||
.run-cell.pending { border: 2px dashed var(--ink); }
|
||
.standings tfoot td { font-size: 11px; color: var(--muted); border-top: var(--rule) solid var(--ink); }
|
||
|
||
.contest-control { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
|
||
.contest-control form { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
|
||
.contest-control input[type="number"] { width: 80px; }
|
||
|
||
/* ============================================================
|
||
Пунктир — «студенту этого не видно».
|
||
Сплошная линия у блока значит, что его видят все; пунктирная — что
|
||
видит только преподаватель: раздел закрыт студентам флагом, задачи
|
||
соревнования до старта, живое табло в заморозку, черновик. Один знак
|
||
на весь портал — чтобы преподаватель не гадал, что видно группе.
|
||
============================================================ */
|
||
.staff-only.card, .card.staff-only,
|
||
button.staff-only, .btn.staff-only, .badge.staff-only { border-style: dashed; }
|
||
/* Блок без своей рамки (форма, строка текста) — пунктирная рамка вокруг. */
|
||
.staff-box { border: 1.5px dashed var(--line); padding: 10px 14px; }
|
||
p.staff-box { display: inline-block; padding: 4px 8px; }
|
||
.staff-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px;
|
||
border: var(--rule) dashed var(--ink); font-size: 13px; }
|
||
.staff-banner .icon { width: 16px; height: 16px; flex: none; }
|
||
.nav a.staff-only, .tabbar a.staff-only { outline: 1.5px dashed currentColor; outline-offset: -5px; }
|
||
.nav .nav-more-menu a.staff-only { outline: 1.5px dashed currentColor; outline-offset: -3px; }
|
||
tr.staff-only td { border-bottom-style: dashed; }
|
||
.staff-note { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .04em;
|
||
color: var(--muted); margin: 0 0 10px; }
|
||
.staff-note .icon { width: 14px; height: 14px; }
|
||
/* Длинная подпись в рейке («Соревнования») — чуть мельче, чтобы не рвалась. */
|
||
.nav a.nav-long span { font-size: 8px; letter-spacing: .02em; }
|
||
.nav-short { display: none; }
|
||
.tabbar .nav-full { display: none; }
|
||
.tabbar .nav-short { display: inline; }
|
||
|
||
/* Главная раздела соревнований: идущее — крупно сверху. */
|
||
.contest-live { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
|
||
.contest-live-title { display: block; font-family: var(--display); font-weight: 800; font-size: 24px;
|
||
line-height: 1.15; color: var(--text); text-transform: uppercase; }
|
||
.contest-live .grow { flex: 1 1 260px; min-width: 0; }
|
||
.contest-live .countdown { font-size: 18px; padding: 6px 14px; }
|
||
.contest-table { table-layout: fixed; }
|
||
.contest-table .c-when { width: 22%; }
|
||
.contest-table .c-me { width: 20%; }
|
||
.contest-table .c-phase { width: 130px; }
|
||
.contest-table td { vertical-align: middle; }
|
||
/* Форма настройки: ровная сетка, подписи в одну строку, пояснения под полем. */
|
||
/* Раскладка — от ширины самой формы, а не окна: та же форма стоит и на всю
|
||
ширину списка, и в узкой колонке пульта. auto-fit оставлял «Плановое
|
||
начало» одно во втором ряду. Узко — пары «правила и состав», «длительность
|
||
и заморозка», дата отдельно; средне — две группы рядами; широко — все пять. */
|
||
.contest-form { container-type: inline-size; }
|
||
.contest-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
|
||
.contest-fields > .field { grid-column: span 3; }
|
||
.contest-fields > .wide, .contest-fields > .when { grid-column: 1 / -1; }
|
||
@container (min-width: 600px) {
|
||
.contest-fields > .when, .contest-fields > .timing { grid-column: span 2; }
|
||
}
|
||
@container (min-width: 900px) {
|
||
.contest-fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
||
.contest-fields > .field:not(.wide) { grid-column: auto; }
|
||
}
|
||
.contest-form label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.contest-form textarea { min-height: 72px; }
|
||
.field-hint { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }
|
||
.contest-filter { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
|
||
|
||
/* Шаги пульта: что уже сделано и что дальше. Не `.steps` — так зовутся
|
||
карточки первых шагов на панели преподавателя, и рамка приезжала оттуда. */
|
||
.run-steps { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
|
||
.run-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
|
||
.run-steps li b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
|
||
border: 2px solid currentColor; font-size: 11px; }
|
||
.run-steps li.done { color: var(--text); }
|
||
.run-steps li.done b { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
|
||
.run-steps li.next { color: var(--text); font-weight: 700; }
|
||
|
||
/* ============================================================
|
||
Ассистент. Чат во всю высоту окна: лента прокручивается внутри,
|
||
поле ввода всегда под рукой. По-плакатному: реплика человека —
|
||
залитый блок справа, ответ — со знаком-искрой слева, что смотрел
|
||
на портале — моноширинной строкой над ответом, дни — линейками.
|
||
============================================================ */
|
||
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
||
.assistant { max-width: 880px; margin: 0 auto; }
|
||
.assistant-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
|
||
.assistant-head h1 { margin: 0; }
|
||
.assistant-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
|
||
.assistant-model { text-transform: none; }
|
||
.assistant-budget { display: flex; align-items: center; gap: 8px; }
|
||
.assistant-budget .bar { width: 96px; height: 10px; }
|
||
.assistant-budget .small { white-space: nowrap; }
|
||
|
||
.chat { border: var(--rule) solid var(--ink); background: var(--panel); display: flex; flex-direction: column;
|
||
height: max(480px, calc(100dvh - 210px)); margin-bottom: 16px; }
|
||
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 10px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
|
||
|
||
.chat-day { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin: 4px 0; }
|
||
.chat-day::before, .chat-day::after { content: ""; flex: 1; border-top: 1px solid var(--line-soft); }
|
||
|
||
.chat-empty { margin: auto; text-align: center; padding: 24px 0; width: 100%; max-width: 640px; }
|
||
.chat-empty[hidden] { display: none; }
|
||
.chat-empty h2 { font-family: var(--display); font-size: 22px; margin: 12px 0 18px; }
|
||
.chat-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; background: var(--inv-bg); color: var(--inv-text); }
|
||
.chat-mark .icon { width: 28px; height: 28px; }
|
||
.chat-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
|
||
.chat-example { white-space: normal; text-align: left; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; line-height: 1.4;
|
||
padding: 12px 14px; background: var(--field-bg); color: var(--field-text); border-width: 2px; }
|
||
.chat-example:hover { color: var(--field-text); }
|
||
.chat-example:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
|
||
|
||
.msg { display: flex; gap: 10px; max-width: 86%; }
|
||
.msg-body { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; min-width: 0; }
|
||
.msg-body > :first-child { margin-top: 0; }
|
||
.msg-body > :last-child { margin-bottom: 0; }
|
||
.msg-body p { margin: 0 0 10px; }
|
||
.msg-body ul, .msg-body ol { margin: 0 0 10px; padding-left: 22px; }
|
||
.msg-body li + li { margin-top: 3px; }
|
||
.msg-body h1, .msg-body h2, .msg-body h3 { font-family: var(--display); font-size: 15px; margin: 14px 0 6px; }
|
||
.msg-body code { font-family: var(--mono); font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--line-soft); padding: 0 4px; }
|
||
.msg-body pre { background: var(--field-bg); color: var(--field-text); border: 2px solid var(--ink); padding: 10px 12px; overflow-x: auto; margin: 0 0 10px; }
|
||
.msg-body pre code { background: none; border: 0; color: inherit; padding: 0; font-size: 12.5px; }
|
||
.msg-body table { border-collapse: collapse; display: block; overflow-x: auto; margin: 0 0 10px; font-size: 13px; }
|
||
.msg-body th, .msg-body td { border: 1px solid var(--line-soft); padding: 4px 8px; text-align: left; }
|
||
.msg-body th { background: var(--panel-2); }
|
||
.msg-body blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 2px solid var(--line); color: var(--text-2); }
|
||
.msg-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
||
|
||
.msg-user { align-self: flex-end; flex-direction: column; align-items: flex-end; gap: 4px; }
|
||
.msg-user .msg-body { background: var(--inv-bg); color: var(--inv-text); padding: 10px 14px; white-space: pre-wrap; }
|
||
.msg-user .msg-body p { margin: 0; }
|
||
|
||
.msg-bot { align-self: flex-start; }
|
||
.msg-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: var(--inv-bg); color: var(--inv-text); }
|
||
.msg-mark .icon { width: 16px; height: 16px; }
|
||
.msg-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 4px; }
|
||
.msg-steps { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
|
||
.msg-steps .trace::before { content: "→ "; }
|
||
.msg-steps .trace-failed { text-decoration: line-through; }
|
||
.msg-steps .trace-failed::before { content: "× "; }
|
||
.msg-tools { display: flex; align-items: center; gap: 12px; }
|
||
.msg-copy { padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 2px; opacity: 0; transition: opacity .15s; }
|
||
.msg-copy:hover, .msg-copy:focus-visible, .msg-copy.is-done { color: var(--text); transform: none; box-shadow: none; opacity: 1; }
|
||
.msg-bot:hover .msg-copy { opacity: 1; }
|
||
@media (hover: none) { .msg-copy { opacity: 1; } }
|
||
.msg-error .msg-body { color: var(--err); font-weight: 600; }
|
||
.msg-error .msg-mark { background: var(--err); color: var(--err-text); }
|
||
.msg-stopped { margin-top: 8px; }
|
||
|
||
.dots { display: inline-flex; gap: 5px; padding: 8px 0; }
|
||
.dots i { width: 8px; height: 8px; background: var(--ink); animation: chat-dot 1s infinite ease-in-out; }
|
||
.dots i:nth-child(2) { animation-delay: .15s; }
|
||
.dots i:nth-child(3) { animation-delay: .3s; }
|
||
@keyframes chat-dot { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
|
||
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .6; } }
|
||
|
||
.chat-compose { border-top: var(--rule) solid var(--ink); padding: 12px 14px 8px; background: var(--panel-2); }
|
||
.chat-field { display: flex; align-items: flex-end; gap: 6px; background: var(--field-bg); border: var(--rule) solid var(--ink); padding: 4px; transition: box-shadow .08s; }
|
||
.chat-field:focus-within { box-shadow: 4px 4px 0 var(--ink); }
|
||
.chat-field textarea { flex: 1; min-height: 40px; max-height: 220px; resize: none; border: 0; padding: 8px 8px; background: transparent;
|
||
font-family: inherit; font-size: 15px; line-height: 1.5; }
|
||
.chat-field textarea:focus { box-shadow: none; }
|
||
.chat-send { flex: none; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-width: 0; }
|
||
.chat-send:hover { transform: none; box-shadow: none; opacity: .85; }
|
||
.chat-send:disabled { opacity: .35; cursor: not-allowed; }
|
||
.chat-send .icon { width: 18px; height: 18px; }
|
||
.chat.is-waiting .chat-send { opacity: .5; }
|
||
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 7px; }
|
||
.chat-clear { padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 2px; }
|
||
.chat-clear:hover { color: var(--err); transform: none; box-shadow: none; }
|
||
.chat-clear[hidden] { display: none; }
|
||
.chat-noscript { padding: 0 14px 10px; }
|
||
.assistant-tools { margin-bottom: 24px; }
|
||
|
||
@media (max-width: 640px) {
|
||
/* Шапка в одну строку: на телефоне каждая строка над чатом отнимает
|
||
её у ленты, а поле ввода должно оставаться над нижней панелью. */
|
||
.assistant-head { flex-wrap: nowrap; margin-bottom: 10px; }
|
||
.assistant-head h1 { font-size: 26px; flex: none; hyphens: none; white-space: nowrap; }
|
||
.assistant-model { display: none; }
|
||
.assistant-meta { min-width: 0; }
|
||
.assistant-budget { flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
|
||
.assistant-budget .bar { width: 72px; }
|
||
.assistant-budget .small { font-size: 11px; white-space: normal; text-align: right; }
|
||
.chat { height: max(360px, calc(100dvh - 250px)); margin-left: -4px; margin-right: -4px; }
|
||
.chat-log { padding: 14px 12px 8px; }
|
||
.msg { max-width: 100%; }
|
||
.msg-user { max-width: 90%; }
|
||
.chat-examples { grid-template-columns: 1fr; }
|
||
.chat-hint { display: none; }
|
||
.chat-compose { padding: 10px 10px 6px; }
|
||
}
|