/* Rock School — login.css: стили экрана входа (v314). До входа страница грузит только этот файл и js/00-start.js;
   полный styles.css 00-start.js догружает вместе с приложением. Это выборка правил styles.css, которые срабатывают
   на экранах входа, приглашения, выбора профиля, «загружаю», сообщения и баннера мессенджера (собрана автоматически
   в браузере). Меняете вид экрана входа в styles.css — поменяйте и здесь. */
:root { --bg: #f5f6f8; --panel: #ffffff; --ink: #14171f; --muted: #667085; --line: #dde2ea; --soft: #eef2f7; --accent: #0f766e; --accent-2: #b42318; --accent-3: #7c3aed; --warn: #b54708; --ok: #067647; --shadow: 0 14px 34px rgba(15, 23, 42, 0.09); --rock-bg: none; --blue-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(14, 165, 233, 0.92) 52%, rgba(20, 184, 166, 0.9)); --border: var(--line); --surface: var(--panel); --text: var(--ink); --card-bg: var(--panel); --danger: var(--accent-2); --success: var(--ok); --card: var(--panel); --accent-rgb: 15, 118, 110; }
@media (any-pointer: coarse) {
[data-onclick], [data-onmousedown] { cursor: pointer !important; }
}
* { box-sizing: border-box; }
html { min-height: 100%; overscroll-behavior: none; text-size-adjust: 100%; background: linear-gradient(180deg, rgba(245, 248, 252, 0.34), rgba(245, 246, 248, 0.72)),
    var(--rock-bg),
    var(--bg); }
body { margin: 0px; min-height: 100%; overflow-x: hidden; overscroll-behavior: none; color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: 0px; background: linear-gradient(180deg, rgba(245, 248, 252, 0.3), rgba(245, 246, 248, 0.64)),
    var(--rock-bg),
    var(--bg); }
button, input, select, textarea { font: inherit; }
button { border: 0px; }
.app-shell { min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); background: rgba(245, 246, 248, 0.18); }
.start-screen { min-height: 100vh; padding: calc(26px + env(safe-area-inset-top)) 16px calc(26px + env(safe-area-inset-bottom)); display: grid; place-items: center; background: var(--bg); }
.start-panel { width: min(100%, 520px); }
.start-logo { width: 180px; height: 104px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgb(0, 0, 0); overflow: hidden; padding: 4px; }
.start-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.start-panel h1 { margin: 18px 0px 0px; font-size: 31px; line-height: 1.08; }
.start-version { width: fit-content; margin-top: 8px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 800; }
.start-panel p { margin: 8px 0px 18px; color: var(--muted); font-size: 15px; line-height: 1.42; }
.start-actions { display: flex; margin: 0px 0px 14px; }
.entry-grid { display: grid; gap: 10px; }
.login-form { display: flex; flex-direction: column; gap: 0px; width: 100%; margin-top: 8px; }
.login-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; text-align: left; }
.login-field > span { font-size: 12px; font-weight: 760; color: var(--muted); }
.login-select { height: 42px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: rgb(255, 255, 255); color: var(--ink); padding: 8px 10px; font-size: 15px; outline: none; box-sizing: border-box; }
.login-actions { display: flex; gap: 10px; margin-top: 4px; }
.login-help { margin: 4px 0px 12px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: left; }
.start-panel .start-actions { flex-wrap: wrap; gap: 8px; }
.start-panel .login-form .login-select { font-size: 16px; }
.entry-card { width: 100%; min-height: 96px; display: grid; grid-template-columns: 54px minmax(0px, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 12px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); box-shadow: rgba(15, 23, 42, 0.04) 0px 6px 18px; }
.entry-card strong { align-self: end; font-size: 17px; line-height: 1.2; }
.entry-card small { align-self: start; color: var(--muted); font-size: 13px; line-height: 1.35; }
.entry-icon { grid-row: 1 / 3; width: 54px; height: 54px; border-radius: 8px; display: grid; place-items: center; background: rgb(230, 244, 241); color: var(--accent); }
.entry-icon.teacher { background: rgb(241, 236, 255); color: var(--accent-3); }
.entry-icon.admin { background: rgb(255, 241, 230); color: var(--warn); }
.entry-icon.director { background: rgb(238, 242, 255); color: rgb(53, 56, 205); }
.role-button, .chip, .tab-button, .icon-button, .primary-button, .ghost-button, .mini-button { min-height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; white-space: nowrap; }
.lesson-actions button:active, .icon-button:active, .primary-button:active, .ghost-button:active, .mini-button:active { transform: translateY(1px); }
.primary-button, .ghost-button, .mini-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 760; }
.primary-button { width: 100%; background: var(--accent); color: rgb(255, 255, 255); border-color: var(--accent); min-height: 46px; }
.primary-button:disabled { opacity: 0.5; cursor: not-allowed; }
.ghost-button { background: rgb(255, 255, 255); color: var(--ink); min-height: 42px; padding: 0px 12px; }
.icon { width: 18px; height: 18px; display: inline-block; position: relative; flex: 0 0 auto; }
.icon::before, .icon::after { content: ""; position: absolute; inset: 3px; border: 2px solid; border-radius: 3px; }
.icon.schedule::after { inset: 6px 3px auto; border-width: 2px 0px 0px; border-radius: 0px; }
.icon.rooms::before { inset: 3px; }
.icon.rooms::after { inset: 3px 8px; border-width: 0px 2px; border-radius: 0px; }
.icon.profile::before { inset: 2px 5px 9px; border-radius: 999px; }
.icon.profile::after { inset: 10px 3px 2px; border-radius: 999px 999px 4px 4px; }
.icon.reports::before { inset: 3px 4px; border-radius: 3px; }
.icon.reports::after { inset: auto 7px 5px; height: 7px; border-width: 0px 2px 2px; border-radius: 0px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 9999; max-width: 520px; margin: 0px auto; background: var(--blue-hero), #2563eb; color: rgb(255, 255, 255); padding: 12px 14px; border-radius: 10px; box-shadow: rgba(37, 99, 235, 0.32) 0px 14px 30px; font-size: 14px; }
.tg-escape-bar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0px; right: 0px; z-index: 10010; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgb(23, 33, 43); color: rgb(255, 255, 255); font-size: 12.5px; line-height: 1.3; box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 16px; }
.tg-escape-bar span { flex: 1 1 0px; }
.tg-escape-bar button { flex-shrink: 0; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 8px; padding: 8px 10px; background: rgb(46, 166, 255); color: rgb(255, 255, 255); font-size: 12.5px; font-weight: 760; white-space: nowrap; }
@media (min-width: 760px) {
.app-shell { padding-bottom: 24px; }
}
@media (max-width: 759.98px), (hover: none) and (pointer: coarse) {
.app-shell:has(.admin-week-section) { padding-bottom: 0px; }
}
@media print {
body { background: rgb(255, 255, 255) !important; color: rgb(0, 0, 0) !important; }
}
.app-shell:has(.admin-sched-side) { padding-left: 300px; padding-right: 300px; }
