:root {
  --navy-950: #081c2f;
  --navy-900: #102a43;
  --navy-800: #173f5f;
  --navy-700: #24577a;
  --blue-100: #eaf2f8;
  --green-700: #24745a;
  --green-600: #2f8b6c;
  --green-100: #e8f5ef;
  --red-700: #a23b3b;
  --red-100: #faecec;
  --amber-600: #c9820a;
  --amber-100: #fdf3d7;
  --ink: #17212b;
  --muted: #687786;
  --line: #dce4ea;
  --surface: #ffffff;
  --canvas: #f4f7f9;
  --shadow: 0 10px 32px rgba(16, 42, 67, .08);
  --shadow-sm: 0 4px 16px rgba(16, 42, 67, .07);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 252px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--canvas); line-height: 1.55; }
body.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
a { color: var(--navy-700); text-decoration: none; }
/* РџРѕРґСЃРІРµС‚РєР° С‚РѕР»СЊРєРѕ СЂРµР°Р»СЊРЅРѕ РёРЅС‚РµСЂР°РєС‚РёРІРЅРѕРіРѕ С‚РµРєСЃС‚Р°, Рё С‚РѕР»СЊРєРѕ С‚Р°Рј, РіРґРµ РµСЃС‚СЊ hover. */
@media (hover: hover) {
  a:hover { color: var(--green-700); }
  .text-button:hover { color: var(--green-700); }
  /* РљРѕРјРїРѕРЅРµРЅС‚С‹ СЃРѕ СЃРІРѕРёРј С†РІРµС‚РѕРј С‚РµРєСЃС‚Р° С‚РѕР¶Рµ РґР°СЋС‚ Р·Р°РјРµС‚РЅС‹Р№ РѕС‚РєР»РёРє РЅР° hover. */
  .compact-list > a:hover, .quick-actions > a:hover { color: var(--green-700); }
  .feed-card a:hover h2, .board-card:hover h3, .timeline a:hover { color: var(--green-700); }
  .community-note a:hover { color: white; }
}
/* РЎСЃС‹Р»РєРё РїРѕР»СѓС‡Р°СЋС‚ Р·Р°РјРµС‚РЅСѓСЋ СЂР°РјРєСѓ РёР· РіР»РѕР±Р°Р»СЊРЅРѕРіРѕ :focus-visible; С‚РµРєСЃС‚РѕРІС‹Рµ
   РєРЅРѕРїРєРё РґРѕРїРѕР»РЅРёС‚РµР»СЊРЅРѕ РјРµРЅСЏСЋС‚ С†РІРµС‚, РєР°Рє РїСЂРё РЅР°РІРµРґРµРЅРёРё. */
.text-button:focus-visible { color: var(--green-700); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { outline: none; }
:focus-visible { outline: 3px solid #68b9e8 !important; outline-offset: 3px; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: -80px; background: var(--navy-950); color: white; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.sidebar { position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; gap: 18px; padding: 24px 18px; background: var(--navy-950); color: #dce9f2; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy-950); }
.brand:hover { color: inherit; }
.sidebar .brand, .brand-light { color: white; }
/* Р›РѕРіРѕС‚РёРї СѓР¶Рµ РєСЂСѓРіР»С‹Р№ Рё СЃ РїСЂРѕР·СЂР°С‡РЅС‹Рј С„РѕРЅРѕРј: CSS РЅРµ РјР°СЃРєРёСЂСѓРµС‚ РєРІР°РґСЂР°С‚РЅСѓСЋ РїРѕРґР»РѕР¶РєСѓ. */
.brand-mark { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand b, .brand small { display: block; }
.brand b { font-size: .98rem; letter-spacing: -.01em; }
.brand small { margin-top: 1px; opacity: .68; font-size: .67rem; }
.side-nav { display: grid; gap: 5px; margin-top: 18px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #bfd0dc; border-radius: 10px; font-size: .91rem; font-weight: 600; }
.side-nav a svg { font-size: 1.15rem; }
.side-nav a:hover { color: white; background: rgba(255,255,255,.07); }
.side-nav a[aria-current="page"] { color: white; background: rgba(47,139,108,.27); box-shadow: inset 3px 0 var(--green-600); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 8px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user > span:last-child { min-width: 0; }
.sidebar-user b, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user b { color: white; font-size: .82rem; }
.sidebar-user small { color: #8da5b6; font-size: .7rem; }
.page { min-width: 0; }
.topbar { height: 65px; position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 16px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title-lg { font-size: 1.4rem; letter-spacing: -.02em; }
.topbar-subtitle { margin-left: 10px; font-weight: 500; color: var(--muted); }
.topbar-user { margin-left: auto; display: grid; text-align: right; line-height: 1.2; min-width: 0; }
.topbar-user b { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--navy-900); }
.topbar-user small { color: var(--muted); font-size: .7rem; }
.topbar .avatar-link { margin-left: 10px; }
.mobile-menu { display: none !important; }
.content { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.page-content { padding-block: 42px 70px; }
.narrow-content { width: min(920px, calc(100% - 48px)); padding-block: 38px 70px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-950); line-height: 1.16; letter-spacing: -.025em; }
h1 { margin-bottom: 14px; font-size: clamp(2rem, 3vw, 3.1rem); }
h2 { margin-bottom: 10px; font-size: 1.35rem; }
h3 { font-size: 1rem; }
p { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 8px; color: var(--green-700); font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .82rem; }
.breadcrumbs b { color: var(--ink); }
.page-heading { margin-bottom: 28px; }
.page-heading > p { max-width: 720px; margin-bottom: 0; }
.heading-with-action, .welcome-row, .board-title-row, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.heading-with-action .button, .welcome-row .button { flex: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; touch-action: manipulation; font-weight: 700; font-size: .86rem; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy-900); color: white; box-shadow: 0 5px 14px rgba(16,42,67,.18); }
.button-primary:hover { color: white; background: var(--navy-800); box-shadow: 0 7px 20px rgba(16,42,67,.24); }
.button-secondary { border-color: var(--line); background: white; color: var(--navy-900); }
.button-secondary:hover { color: var(--navy-900); border-color: #b8c8d3; box-shadow: var(--shadow-sm); }
.button-ghost { color: inherit; background: transparent; border-color: rgba(128,145,158,.26); }
.button-danger, .button-danger-soft { color: white; background: var(--red-700); }
.button-danger-soft { color: var(--red-700); background: var(--red-100); }
.button-wide { width: 100%; }
.button-large { min-height: 50px; padding-inline: 23px; }
.button-small { min-height: 34px; padding: 6px 11px; font-size: .76rem; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--navy-900); border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; touch-action: manipulation; }
.icon-button.danger { color: var(--red-700); }
.text-button { padding: 0; border: 0; color: var(--navy-700); background: none; cursor: pointer; font-weight: 700; }
/* РќРµРґРѕСЃС‚СѓРїРЅС‹Рµ СЌР»РµРјРµРЅС‚С‹ РЅРµ РІС‹РіР»СЏРґСЏС‚ Р°РєС‚РёРІРЅС‹РјРё Рё РЅРµ В«РїСЂС‹РіР°СЋС‚В» РїСЂРё РЅР°РІРµРґРµРЅРёРё. */
.button:disabled, .button[aria-disabled="true"], .icon-button:disabled, .text-button:disabled, .board-group-button:disabled { cursor: not-allowed; opacity: .55; }
@media (hover: hover) {
  .button:disabled:hover, .button[aria-disabled="true"]:hover, .board-group-button:disabled:hover { transform: none; box-shadow: none; }
}

.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: .83rem; font-weight: 800; }
.avatar-small { width: 28px; height: 28px; font-size: .7rem; }
.chip, .status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 999px; color: #526270; background: #eef2f5; font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.chip-green, .status-active { color: var(--green-700); background: var(--green-100); }
.status-paused { color: #8a631b; background: #fff5d8; }
.status-pending { color: #1c5a86; background: #e2f0fa; }
.status-completed, .status-archived { color: #536170; background: #e9eef2; }
.progress { height: 7px; overflow: hidden; border-radius: 8px; background: #e8eef2; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }

.public-page { min-height: 100vh; background: #f8fafb; }
.landing { max-width: 1440px; margin: auto; padding: 0 6vw 60px; }
.public-header { height: 90px; display: flex; align-items: center; justify-content: space-between; }
.hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); align-items: center; gap: 6vw; }
.hero-copy h1 { font-size: clamp(3rem, 5.5vw, 5.7rem); line-height: .98; }
.hero-copy > p { max-width: 590px; font-size: 1.15rem; }
.hero-copy > small { display: block; margin-top: 14px; color: var(--muted); }
.hero-note { display: flex; align-items: center; gap: 13px; max-width: 560px; margin-top: 20px; padding: 12px 18px 12px 13px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(180deg, #ffffff 0%, var(--blue-100) 100%); box-shadow: var(--shadow-sm); color: var(--navy-900); font-size: .9rem; line-height: 1.4; }
.hero-note-badge { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: white; background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); }
.hero-note-badge svg { width: 18px; height: 18px; }
.hero-note-text { font-weight: 500; color: var(--navy-800); }
.hero-note-text b { font-weight: 800; color: var(--navy-900); }
.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; border-radius: 34% 8% 30% 10%; background: linear-gradient(145deg, #dceee8, #dfeaf2); }
.preview-window { width: 90%; padding: 14px; border: 1px solid rgba(255,255,255,.75); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 28px 70px rgba(16,42,67,.18); transform: rotate(-2deg); }
.preview-bar { display: flex; gap: 5px; padding: 4px 3px 14px; }
.preview-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cdd8df; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 13px; border-radius: 12px; background: #eef3f6; }
.preview-column { min-height: 270px; padding: 13px; border-radius: 10px; background: rgba(255,255,255,.75); }
.preview-column b { font-size: .76rem; }
.preview-column span { display: block; height: 55px; margin-top: 11px; border: 1px solid #e0e7ec; border-radius: 8px; background: white; box-shadow: 0 3px 7px rgba(16,42,67,.05); }
.preview-column.active { outline: 2px solid rgba(47,139,108,.35); }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .85fr) minmax(520px, 1.15fr); }
.auth-panel { padding: clamp(40px, 7vw, 100px); }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--navy-950); }
/* На широком, но низком окне правая колонка выше вьюпорта, и space-between
   уводил подпись под сгиб. Панель ограничена высотой экрана и зафиксирована,
   поэтому весь текст виден без прокрутки, а форма прокручивается рядом. */
@media (min-width: 781px) {
  .auth-layout { align-items:start; }
  .auth-brand-panel { position:sticky; top:0; height:100vh; height:100dvh; }
}
.auth-brand-panel h1 { max-width: 650px; color: white; font-size: clamp(2.2rem, 4vw, 4.4rem); }
.auth-brand-panel p { color: #abc0ce; }
.auth-brand-panel .eyebrow { color: #72c7a7; }
.auth-form-panel { display: grid; place-items: center; }
.auth-form { width: min(460px, 100%); }
.auth-form h2, .auth-form h1 { font-size: 2rem; }
.auth-simple { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #eff6f3, #edf2f6); }
.auth-simple .form-card { width: min(480px, 100%); }
.text-center { text-align: center; }

.form-card, .panel { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.form-card { display: grid; gap: 20px; }
.form-card form { display: grid; gap: 18px; }
.form-heading p { margin-bottom: 0; }
label { display: grid; gap: 7px; color: var(--navy-900); font-size: .78rem; font-weight: 750; }
label small, .form-hint { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-height: 43px; padding: 9px 12px; color: var(--ink); border: 1px solid #cbd7df; border-radius: 9px; background: white; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(36,87,122,.12); }
input[readonly] { color: #5d6b76; background: #f1f4f6; }
.form-grid { display: grid; gap: 17px; }fieldset[data-panel] { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row-between, .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.drop-zone { position: relative; place-items: center; gap: 5px; padding: 28px; text-align: center; border: 1.5px dashed #9fb5c4; border-radius: 12px; background: #f7fafb; cursor: pointer; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--green-600); background: var(--green-100); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone .drop-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--blue-100); color: var(--navy-700); font-size: 1.3rem; }
.drop-zone > span { color: var(--muted); font-weight: 400; }
.drop-zone output { color: var(--green-700); font-size: .78rem; }
.drop-zone.compact { grid-template-columns: auto 1fr; justify-items: start; padding: 15px; text-align: left; }

.welcome-row { margin-bottom: 30px; }
.welcome-row > div { max-width: 820px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.metric-card { min-height: 146px; display: flex; flex-direction: column; gap: 7px; padding: 21px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 3px 14px rgba(16,42,67,.045); }
.metric-card:hover { color: var(--ink); border-color: #b8cbd6; }
.metric-card > span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.metric-card > strong:not(.status) { color: var(--navy-950); font-size: 2.25rem; line-height: 1; }
.metric-card .metric-date { font-size: 1.55rem !important; }
.metric-card small { margin-top: auto; color: var(--muted); }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 22px; }
.quick-actions > a { display: flex; align-items: center; gap: 14px; padding: 17px 20px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.quick-actions > a > span:nth-child(2) { min-width: 0; flex: 1; }
.quick-actions b, .quick-actions small { display: block; }
.quick-actions small { color: var(--muted); }
.quick-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; }
.quick-icon.success { color: var(--green-700); background: var(--green-100); }
.quick-icon.blue { color: var(--navy-700); background: var(--blue-100); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; }
.panel-heading { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; }
.panel-heading a { font-size: .78rem; font-weight: 700; }
.compact-list { display: grid; min-width: 0; }
.compact-list > a { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 4px; color: var(--ink); border-bottom: 1px solid #edf1f3; }
.compact-list > a > span:nth-child(2) { min-width: 0; flex: 1; overflow: hidden; }
.compact-list b, .compact-list small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-list b { overflow-wrap: anywhere; }
.compact-list small { color: var(--muted); }
.list-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; color: var(--navy-700); background: var(--blue-100); }
.unread-dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
/* РќРµРІРёРґРёРјР°СЏ Р·РѕРЅР° РІРѕРєСЂСѓРі С‚РѕС‡РєРё: Р»РµРіС‡Рµ РЅР°РІРµСЃС‚Рё РєСѓСЂСЃРѕСЂ Рё СѓРІРёРґРµС‚СЊ РїРѕРґСЃРєР°Р·РєСѓ,
   СЂР°Р·РјРµСЂ СЃР°РјРѕР№ С‚РѕС‡РєРё РїСЂРё СЌС‚РѕРј РЅРµ РјРµРЅСЏРµС‚СЃСЏ. */
.unread-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.unread-dot.is-unread { background: var(--amber-600); box-shadow: 0 0 0 4px var(--amber-100); }
.unread-dot.unread-dot-red { background: var(--red-700); box-shadow: 0 0 0 4px var(--red-100); }
.button-secondary.is-unread { color: var(--red-700); border-color: var(--red-100); background: var(--red-100); }
.activity-cell { display: inline-flex; align-items: center; gap: 8px; }
.feed-time { display: inline-flex; align-items: center; gap: 8px; }
.task-list { display: grid; gap: 5px; padding-top: 14px; }
.task-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 9px; }
.task-row.is-done a { color: var(--muted); text-decoration: line-through; }
.task-toggle { display: flex; flex: none; align-items: center; margin: 0; }
.task-checkbox { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border: 1.5px solid #aac0ce; border-radius: 5px; accent-color: var(--green-600); cursor: pointer; }
.task-row a { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.subsection { display: grid; gap: 7px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.subsection h3 { margin: 0 0 4px; }

.board-page { padding: 35px 0 55px; overflow: hidden; }
.board-header { margin-bottom: 22px; }
.board-title-row h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.board-title-row p { max-width: 760px; }
.header-actions { display: flex; flex: none; gap: 9px; }
.filter-bar { display: flex; align-items: end; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow-sm); }
.filter-bar label { min-width: 145px; }
.filter-bar input, .filter-bar select { min-height: 40px; }
.search-field { position: relative; min-width: 240px !important; flex: 1; }
.search-field svg { position: absolute; z-index: 1; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { padding-left: 37px; }
.board { display: flex; gap: 15px; padding: 3px max(24px, calc((100vw - var(--sidebar) - 1240px) / 2)) 24px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: #aebcc5 transparent; }
.board-column { flex: 0 0 315px; min-height: 470px; display: flex; flex-direction: column; padding: 14px; border: 1px solid #dfe6ea; border-radius: 15px; background: #edf2f4; scroll-snap-align: start; }
/* РћРґРёРЅР°РєРѕРІР°СЏ РјРёРЅРёРјР°Р»СЊРЅР°СЏ РІС‹СЃРѕС‚Р° header РІС‹СЂР°РІРЅРёРІР°РµС‚ РЅР°С‡Р°Р»Рѕ РєР°СЂС‚РѕС‡РµРє Рё РїСѓСЃС‚С‹С…
   СЃРѕСЃС‚РѕСЏРЅРёР№ РІРѕ РІСЃРµС… РєРѕР»РѕРЅРєР°С… РЅРµР·Р°РІРёСЃРёРјРѕ РѕС‚ РґР»РёРЅС‹ РЅР°Р·РІР°РЅРёСЏ Рё РѕРїРёСЃР°РЅРёСЏ. */
.board-column > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-height: 92px; }
.board-column > header > div { min-width: 0; }
.board-column > header h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px; font-size: 1rem; }
.board-column > header p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; margin-bottom: 6px; font-size: .73rem; line-height: 1.35; }
.column-count { display: block; min-height: 1.1em; color: var(--muted); font-size: .68rem; font-weight: 700; }
.card-stack { display: grid; gap: 10px; margin-top: 12px; }
.board-card { position: relative; display: block; padding: 15px; color: var(--ink); border: 1px solid #dce4e9; border-radius: 12px; background: white; box-shadow: 0 3px 9px rgba(16,42,67,.045); transition: transform .15s, box-shadow .15s, border .15s; }
.board-card:hover { color: var(--ink); transform: translateY(-2px); border-color: #b6cad6; box-shadow: var(--shadow-sm); }
.board-card.has-feedback { border-left: 3px solid var(--green-600); }
.board-card h3 { margin: 8px 0; font-size: .92rem; }
.board-card > p { margin-bottom: 13px; font-size: .76rem; }
.board-card footer { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .66rem; }
.board-card footer span:not(.avatar) { display: inline-flex; align-items: center; gap: 3px; }
.card-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.feedback-label { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--green-700); font-size: .67rem; font-weight: 800; }
.feedback-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }
.column-empty { display: grid; place-items: center; padding: 31px 10px; text-align: center; border: 1px dashed #c6d3da; border-radius: 11px; color: #85939d; }
.column-empty svg { font-size: 1.5rem; }
.column-empty p { margin: 6px 0 0; font-size: .76rem; }
.column-empty a { font-size: .7rem; font-weight: 700; }
.mobile-section-picker { display: none; }

.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; padding-block: 38px 70px; }
.reading-main, .history-panel { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.entry-header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.entry-header h1 { margin-top: 12px; }
.entry-byline { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.entry-byline b, .entry-byline small { display: block; }
.entry-byline small { color: var(--muted); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.prose { padding: 25px 0; color: #26343f; overflow-wrap: anywhere; }
.prose h1 { font-size: 1.8rem; }.prose h2 { font-size: 1.35rem; }.prose h3 { font-size: 1.1rem; }
.prose pre { overflow-x: auto; padding: 14px; border-radius: 9px; background: #eef2f4; }
.prose code { padding: 2px 4px; border-radius: 4px; background: #eef2f4; }
.prose table { width: 100%; border-collapse: collapse; }.prose th,.prose td { padding: 8px; border: 1px solid var(--line); }
.entry-section { padding: 24px 0; border-top: 1px solid var(--line); }
.entry-section:last-child { padding-bottom: 0; }
.attachment-list { display: grid; gap: 9px; }
.attachment-row { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.attachment-row > span:nth-of-type(2), .attachment-row > span:first-of-type:not(.file-icon) { min-width: 0; flex: 1; }
.attachment-row b, .attachment-row small { display: block; overflow-wrap: anywhere; }
.attachment-row small { color: var(--muted); }
.file-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; color: var(--navy-700); background: var(--blue-100); }
.image-preview { flex: 0 0 130px; }
.image-preview img { display: block; width: 130px; max-height: 100px; object-fit: cover; border-radius: 8px; }
.add-attachment form { display: flex; align-items: end; gap: 10px; }.add-attachment .drop-zone { flex: 1; }
.section-heading { display: flex; align-items: center; gap: 8px; }.section-heading h2 { margin: 0; }.section-heading span { color: var(--muted); }
.comment-list { display: grid; gap: 15px; margin-top: 17px; }
.comment { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; }
.comment header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.comment time { color: var(--muted); font-size: .7rem; }.comment p { margin: 6px 0; color: var(--ink); white-space: pre-wrap; }
.comment details summary { color: var(--navy-700); cursor: pointer; font-size: .73rem; }.comment details form { display: grid; gap: 8px; margin-top: 8px; }
.comment-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 21px; }
.history-panel { align-self: start; position: sticky; top: 90px; padding: 21px; }
.revision-list { display: grid; padding-top: 15px; }
.revision-list article { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 11px 0; border-bottom: 1px solid #edf1f3; }
.revision-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--navy-700); background: var(--blue-100); font-size: .68rem; font-weight: 800; }
.revision-list b, .revision-list small { display: block; }.revision-list small { color: var(--muted); font-size: .67rem; }.revision-list .text-button { font-size: .68rem; }.current-label { color: var(--green-700); font-size: .67rem; font-weight: 800; }

.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 25px; }
.feed { display: grid; gap: 15px; }
.feed-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.feed-card.pinned { border-top: 3px solid var(--green-600); }
.feed-meta { display: flex; justify-content: space-between; align-items: center; }.feed-meta time { color: var(--muted); font-size: .72rem; }
.feed-card h2 { margin-top: 15px; font-size: 1.45rem; }.feed-excerpt { color: var(--muted); }
.feed-card footer { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }.feed-count { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }.feed-count + .feed-count { margin-left: 0; }
.community-note { align-self: start; position: sticky; top: 90px; padding: 24px; border-radius: var(--radius); color: #dce8ee; background: var(--navy-900); }.community-note h2 { color: white; }.community-note p { color: #b9cbd6; }.community-note a { color: #8bd4b7; font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }.session-list { display: grid; gap: 10px; }.session-list > div { display: flex; gap: 9px; }.session-list b,.session-list small { display:block; }.session-list small { color: var(--muted); }.status-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--green-600); }

.admin-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 15px; margin-bottom: 26px; }
.admin-nav-card { display: flex; flex-direction: column; gap: 9px; padding: 20px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 3px 14px rgba(16,42,67,.045); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.admin-nav-card:hover, .admin-nav-card:focus-visible { color: var(--ink); transform: translateY(-2px); border-color: #b6cad6; box-shadow: var(--shadow-sm); }
.admin-nav-card.is-active { border-color: var(--green-600); box-shadow: inset 0 0 0 1px var(--green-600); }
.admin-nav-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--navy-700); background: var(--blue-100); font-size: 1.25rem; }
.admin-nav-card b { font-size: .98rem; color: var(--navy-950); }
.admin-nav-card small { color: var(--muted); }
.admin-nav-card.is-active .admin-nav-icon { color: var(--green-700); background: var(--green-100); }
.callout { display: grid; gap: 7px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid var(--green-600); border-radius: var(--radius-sm); background: var(--green-100); overflow-wrap: anywhere; }
.callout a { font-family: ui-monospace, monospace; font-size: .74rem; }
.blocked-state p { max-width: 520px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
/* РћРіСЂР°РЅРёС‡РµРЅРЅС‹Рµ РїСЂРѕРєСЂСѓС‡РёРІР°РµРјС‹Рµ РѕР±Р»Р°СЃС‚Рё: С‚Р°Р±Р»РёС†С‹, РёСЃС‚РѕСЂРёСЏ, Р»РµРЅС‚Р°.
   РљР»Р°СЃСЃ scoped-РјРѕРґРёС„РёРєР°С‚РѕСЂ, Р° РЅРµ РіР»РѕР±Р°Р»СЊРЅРѕРµ РїСЂР°РІРёР»Рѕ РґР»СЏ РІСЃРµС… С‚Р°Р±Р»РёС†. */
.limited-scroll { position: relative; min-width: 0; max-width: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-color: #aebcc5 transparent; }
.limited-scroll:focus-visible { outline: 3px solid #b7d3e2; outline-offset: 1px; }
.dashboard-scroll { max-height: 22rem; }
.table-scroll { max-height: 20.5rem; overflow: auto; }
.table-scroll .data-table thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 #e9eef1; }
.table-scroll .data-table td, .table-scroll .data-table th { overflow-wrap: anywhere; }
.table-scroll .data-table .row-actions { white-space: nowrap; }
/* На узком экране заголовки не переносятся: они задают минимальную ширину
   таблицы, поэтому она прокручивается внутри .table-scroll, а не сжимается
   до ширины телефона. Ячейки по-прежнему переносят длинные значения. */
@media (max-width: 780px) {
  .table-scroll .data-table th { white-space: nowrap; }
  .table-scroll .data-table td:first-child,
  .table-scroll .data-table th:first-child { min-width: 200px; }
  .table-scroll .data-table td:nth-child(2),
  .table-scroll .data-table th:nth-child(2) { min-width: 120px; }
}
.timeline-scroll { max-height: 22rem; }
.feed-scroll { max-height: 72vh; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.feed-scroll .feed { padding: 15px; }
.community-filters { margin-top: 18px; }
.content-group { display: grid; gap: 14px; min-width: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }.data-table th { color: var(--muted); background: #f7f9fa; text-align: left; font-size: .69rem; text-transform: uppercase; letter-spacing: .06em; }.data-table th,.data-table td { padding: 14px 16px; border-bottom: 1px solid #e9eef1; vertical-align: middle; }.data-table td b,.data-table td small { display: block; }.data-table td small { color: var(--muted); }
.admin-create { margin-top: 25px; }.inline-create { margin-bottom: 20px; }.inline-create form { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: end; }
.admin-filters { margin-bottom: 16px; flex-wrap: wrap; }.admin-filters label { flex: 1; }
.invitation-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }.invitation-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }.invitation-card header { display:flex; justify-content:space-between; align-items:center; }.invitation-card time { color:var(--muted); font-size:.7rem; }.invitation-card h2 { margin-top:15px; overflow-wrap:anywhere; }.copy-field { display:flex; gap:7px; }.copy-field input { font-family: ui-monospace, monospace; font-size:.7rem; }
.activity-filters { flex-wrap: wrap; align-items: end; }
.activity-filters label { flex: 1 1 160px; min-width: 0; }
.activity-filters select, .activity-filters input { width: 100%; max-width: 100%; box-sizing: border-box; }
.activity-panel { position: relative; margin-top: 18px; min-width: 0; }
.activity-scroll { max-height: 440px; overflow-y: auto; overflow-x: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); scrollbar-color: #aebcc5 transparent; }
.activity-scroll:focus-visible { outline: 3px solid #b7d3e2; outline-offset: 1px; }
.activity-list { display: grid; gap: 10px; min-width: 0; padding: 12px; }
.activity-item { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.activity-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.activity-summary:hover { background: #f7fafb; }
.activity-summary-main { display: grid; gap: 2px; min-width: 0; }
.activity-title { font-weight: 800; overflow-wrap: anywhere; }
.activity-meta { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.activity-summary time { flex: none; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.activity-detail { min-width: 0; padding: 0 14px 14px; border-top: 1px solid var(--line); }
.activity-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 12px 0; }
.activity-fields > div { min-width: 0; }
.activity-fields dt { color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .05em; }
.activity-fields dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.activity-comment-form { display: grid; gap: 8px; margin-top: 10px; }
.activity-comment-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.activity-controls { display: flex; gap: 8px; margin-top: 10px; }
.activity-side { display: flex; justify-content: flex-end; }
[data-activity-up] svg { transform: rotate(-90deg); }
[data-activity-down] svg { transform: rotate(90deg); }
.activity-more-wrap { margin-top: 12px; }
.timeline { display: grid; }.timeline article { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 24px; }.timeline article::before { content:""; position:absolute; left:6px; top:14px; bottom:0; width:1px; background:var(--line); }.timeline article:last-child::before { display:none; }.timeline article > i { z-index:1; width:13px; height:13px; margin-top:3px; border:3px solid var(--green-100); border-radius:50%; background:var(--green-600); }.timeline b,.timeline p,.timeline time { display:block; }.timeline p { margin:2px 0; }.timeline time { color:var(--muted); font-size:.7rem; }.timeline a { font-size:.73rem; font-weight:700; }.timeline.compact { padding-top:15px; }

.empty-state { padding: 35px; text-align: center; }.large-empty { min-height: 390px; display:grid; place-items:center; align-content:center; }.large-empty > * { max-width: 520px; }.empty-icon { display:grid; place-items:center; width:70px; height:70px; margin:auto; border-radius:22px; color:var(--navy-700); background:var(--blue-100); font-size:1.8rem; }.empty-inline { padding: 22px 8px; text-align:center; color:var(--muted); }.empty-inline p { margin-bottom:4px; }.centered-state { min-height: 78vh; display:grid; place-items:center; align-content:center; padding:30px; text-align:center; }.state-code { color:var(--green-600); font-size:5rem; font-weight:850; opacity:.35; }.notice { padding:12px 15px; border-radius:9px; background:var(--blue-100); }
.toast { position:fixed; z-index:100; right:24px; bottom:24px; max-width:min(420px,calc(100vw - 48px)); display:flex; align-items:center; gap:15px; padding:14px 17px; border-radius:11px; color:white; background:var(--green-700); box-shadow:0 14px 36px rgba(16,42,67,.24); animation:toast-in .25s ease-out; }.toast-error { background:var(--red-700); }.toast button { margin-left:auto; padding:0; color:inherit; border:0; background:none; cursor:pointer; font-size:1.2rem; }
.mode-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; margin:0; padding:0; border:0; }.mode-switch legend { margin-bottom:9px; color:var(--muted); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }.mode-option { position:relative; }.mode-option input { position:absolute; opacity:0; pointer-events:none; }.mode-option span { display:grid; gap:3px; min-width:0; padding:14px 16px; border:1px solid var(--line); border-radius:11px; background:#fbfcfd; cursor:pointer; overflow-wrap:anywhere; }.mode-option span b { font-size:.92rem; }.mode-option span small { color:var(--muted); }.mode-option input:checked + span { border-color:var(--green-600); background:var(--green-100); box-shadow:0 0 0 1px var(--green-600) inset; }.mode-option input:focus-visible + span { outline:3px solid #b7d3e2; outline-offset:1px; }.student-combo { position:relative; }.combo-list { position:absolute; z-index:20; left:0; right:0; top:calc(100% + 4px); max-height:260px; overflow:auto; margin:0; padding:6px; list-style:none; border:1px solid var(--line); border-radius:11px; background:white; box-shadow:0 16px 40px rgba(16,42,67,.16); }.combo-list li button { display:grid; width:100%; gap:2px; padding:9px 11px; border:0; border-radius:8px; background:none; text-align:left; cursor:pointer; }.combo-list li button:hover { background:var(--green-100); }.combo-list li button b,.combo-list li button small { display:block; }.combo-list li button small { color:var(--muted); }.combo-list .combo-empty { padding:12px 11px; color:var(--muted); }.invite-result { margin-top:22px; border-color:var(--green-600); }.invite-result p { max-width:760px; }.hint { display:block; margin-top:6px; color:var(--muted); font-size:.75rem; }
@keyframes toast-in { from { transform:translateY(20px); opacity:0; } }
.modal { width:min(430px,calc(100% - 32px)); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); padding:0; overflow:hidden; border:0; border-radius:16px; box-shadow:0 25px 80px rgba(8,28,47,.3); }.modal::backdrop { background:rgba(8,28,47,.55); backdrop-filter:blur(3px); }.modal form { position:relative; max-height:inherit; padding:28px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }.modal-close { position:absolute; right:16px; top:16px; }.modal-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:22px; }.consent-submit-error { margin:14px 0 0; }
.page-loader { position:fixed; z-index:150; left:var(--sidebar); right:0; top:0; height:3px; overflow:hidden; opacity:0; }.page-loader.htmx-request { opacity:1; }.page-loader span { display:block; width:35%; height:100%; background:var(--green-600); animation:loading 1s infinite ease-in-out; }@keyframes loading { from{transform:translateX(-100%)} to{transform:translateX(400%)} }

/* РњРµР¶РІРєР»Р°РґРѕС‡РЅРѕРµ СѓРІРµРґРѕРјР»РµРЅРёРµ Рѕ СЃРјРµРЅРµ Р°РєРєР°СѓРЅС‚Р° */
.session-conflict { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(8,28,47,.62); backdrop-filter: blur(3px); }
.session-conflict[hidden] { display: none; }
.session-conflict-card { width: min(520px, 100%); padding: 30px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); text-align: center; }
.session-conflict-card h2 { font-size: 1.25rem; }
.session-conflict-card p { margin-bottom: 20px; }

/* Р’Р°Р»РёРґР°С†РёСЏ С„РѕСЂРј */
.field-error { color: var(--red-700); font-size: .75rem; font-weight: 600; }
.field-error[hidden] { display: none; }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--red-700); box-shadow: 0 0 0 3px rgba(162,59,59,.14); }
.drop-zone.is-invalid { border-color: var(--red-700); background: var(--red-100); }
.drop-zone.has-file { border-color: var(--green-600); background: var(--green-100); }
.file-remove { justify-self: center; }
.drop-zone .field-error { margin-top: 2px; }

/* Р“Р»Р°РІРЅР°СЏ СЃС‚СѓРґРµРЅС‚Р° */
.board-cta { margin-bottom: 28px; }
.board-cta-button { min-height: 58px; padding-inline: 34px; font-size: 1.05rem; }
.board-cta .hint { margin-top: 10px; }
.metrics-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feedback-card { position: relative; }
.feedback-unread-label { font-size: 1.5rem !important; }
.feedback-count { position: absolute; right: 20px; bottom: 18px; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 9px; border-radius: 999px; color: white; background: var(--red-700); font-size: 1.15rem; font-weight: 800; }
.feedback-done { font-size: 1.35rem !important; }
.quick-action-icon { justify-content: flex-start; }
.discussion-reply { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.file-list { display: grid; gap: 6px; width: 100%; max-width: 100%; min-width: 0; margin: 8px 0 0; padding: 0; list-style: none; text-align: left; }
.file-row { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.file-row > * { min-width: 0; }
.file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; font-size: .76rem; font-weight: 600; }
.file-size { flex: none; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.existing-attachments { display: grid; gap: 8px; min-width: 0; max-width: 100%; }
/* Р”Р»РёРЅРЅС‹Рµ Рё URL-encoded РёРјРµРЅР° С„Р°Р№Р»РѕРІ РЅРµ РІС‹С…РѕРґСЏС‚ Р·Р° СЂР°РјРєРё Рё РЅРµ СЂР°СЃС‚СЏРіРёРІР°СЋС‚ СЃС‚СЂР°РЅРёС†Сѓ. */
.drop-zone { min-width: 0; max-width: 100%; }
.drop-zone > * { min-width: 0; max-width: 100%; }
.drop-zone output[data-file-name] { overflow-wrap: anywhere; word-break: break-word; }

/* Р”РѕСЃРєР°: РіСЂСѓРїРїС‹ СЂР°Р·РґРµР»РѕРІ Рё РЅР°РІРёРіР°С†РёСЏ */
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.board-groups { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.board-group-button { min-height: 40px; padding: 8px 20px; border: 0; border-radius: 9px; background: none; color: var(--navy-900); cursor: pointer; font-weight: 700; }
.board-group-button:hover { background: var(--blue-100); }
.board-group-button.is-active { color: white; background: var(--navy-900); box-shadow: 0 4px 12px rgba(16,42,67,.18); }
.board-region { min-width: 0; }
.board-empty { padding-block: 16px 40px; }
.board { scrollbar-width: none; }
.board::-webkit-scrollbar { display: none; }

/* РђРґРјРёРЅРєР°: РѕР±СЉРµРґРёРЅС‘РЅРЅС‹Рµ РєР°СЂС‚РѕС‡РєРё, Р±Р»РѕРє Р±РµР·РѕРїР°СЃРЅРѕСЃС‚Рё Рё С„РѕСЂРјР° РїСЂРѕРµРєС‚Р° */
.admin-metric { gap: 5px; }
.admin-metric .admin-nav-icon { margin-bottom: 5px; }
.admin-metric strong { font-size: 2.1rem; }
.security-block { margin-top: 22px; }
.security-block a { display: flex; align-items: center; gap: 14px; padding: 15px 19px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: transparent; }
.security-block a > svg:last-child { margin-left: auto; }
.security-block a:hover, .security-block a:focus-visible { color: var(--navy-900); border-color: #b8c8d3; background: white; }
.security-block b, .security-block small { display: block; }
.security-block b { color: var(--navy-950); }
.row-actions { width: 58px; text-align: right; }
.row-actions form { display: inline-flex; }
#new-project { scroll-margin-top: 88px; }
.modal [data-confirm-text] { white-space: pre-line; }
.invitation-card.is-new { border-color: var(--green-600); box-shadow: inset 0 0 0 1px var(--green-600); }
.student-picker-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.student-picker-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: white; }
.student-picker-list[hidden], .student-selected[hidden], .file-list[hidden], .student-picker[hidden] { display: none; }
.student-option { display: grid; width: 100%; gap: 2px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.student-option:hover, .student-option:focus-visible { border-color: var(--green-600); background: var(--green-100); }
.student-option b { display: block; }
.student-option small { color: var(--muted); overflow-wrap: anywhere; }
.student-selected { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--green-600); border-radius: 11px; background: var(--green-100); }
.student-selected-info { flex: 1; min-width: 0; }
.student-selected-info b, .student-selected-info small { display: block; overflow-wrap: anywhere; }
.student-selected-info small { color: var(--muted); }
.student-selected .button { flex: none; }
[data-panel][hidden] { display: none; }

@media (max-width: 1100px) {
  :root { --sidebar: 220px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-layout { grid-template-columns: minmax(0,1fr); }.history-panel { position:static; }
  .hero { grid-template-columns: 1fr 1fr; }.hero-copy h1 { font-size:clamp(3rem,6vw,4.5rem); }
  .filter-bar { flex-wrap:wrap; }.filter-bar label { flex:1; }.filter-bar .search-field { flex-basis:100%; }
}

@media (max-width: 780px) {
  body.app-shell { display:block; }
  .sidebar { position:fixed; left:0; width:min(310px,86vw); transform:translateX(-105%); transition:transform .2s ease; box-shadow:20px 0 50px rgba(8,28,47,.24); }.sidebar.is-open { transform:none; }
  .mobile-menu { display:grid !important; }.topbar { padding-inline:16px; }.topbar-title-lg { font-size:1.15rem; }.content,.narrow-content { width:min(100% - 28px, 700px); }.page-content,.narrow-content { padding-block:25px 50px; }
  .feed-scroll { max-height:66vh; }
  .page-loader { left:0; }.heading-with-action,.welcome-row,.board-title-row { display:grid; }.header-actions { flex-wrap:wrap; }
  .dashboard-grid,.feed-layout,.settings-grid { grid-template-columns:1fr; }.community-note { position:static; }.quick-actions { grid-template-columns:1fr; }
  .auth-layout { grid-template-columns:1fr; }.auth-brand-panel { min-height:0; justify-content:flex-start; gap:24px; }.auth-brand-panel h1 { font-size:2.2rem; }.auth-form-panel { padding:28px 18px; }
  .landing { padding-inline:20px; }.hero { min-height:0; grid-template-columns:1fr; padding:60px 0; }.hero-visual { min-height:380px; }
  .board-toolbar { flex-wrap: wrap; }
  .board-page { padding-top:22px; }.board-header .filter-bar { display:none; }.mobile-section-picker { display:grid; margin-top:18px; }.board { padding-inline:14px; scroll-snap-type:x mandatory; }.board-column { flex-basis:calc(100vw - 36px); max-width:380px; display:none; }.board-column.is-mobile-active,.board-column:first-child { display:block; }
  .reading-layout { width:calc(100% - 20px); padding-block:18px 45px; }.reading-main,.history-panel { padding:20px 16px; }.entry-actions { display:grid; grid-template-columns:1fr 1fr; }.entry-actions .button { width:100%; }.attachment-row { flex-wrap:wrap; }.attachment-row > span:nth-of-type(2) { flex-basis:calc(100% - 55px); }.image-preview { flex-basis:100%; }.image-preview img { width:100%; max-height:260px; }.add-attachment form,.comment-form { grid-template-columns:1fr; display:grid; }
  .two-columns,.invitation-grid,.inline-create form,.student-picker-filters { grid-template-columns:1fr; }.filter-bar { display:grid; }.filter-bar label { min-width:0 !important; }.form-actions { align-items:stretch; flex-direction:column-reverse; }.form-actions .button { width:100%; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns:1fr; }.metric-card { min-height:125px; }.public-header .brand small { display:none; }.preview-grid { grid-template-columns:1fr 1fr; }.preview-column:last-child { display:none; }.hero-visual { min-height:330px; }.auth-brand-panel { padding:30px 24px; gap:20px; }.modal { width:calc(100% - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); }.modal form { padding:24px 20px max(24px,env(safe-area-inset-bottom)); }.entry-actions { grid-template-columns:1fr; }.mode-switch { grid-template-columns:1fr; }
  .board-groups { width:100%; }.board-group-button { flex:1; padding-inline:10px; }.topbar-user b { max-width:110px; }.topbar-title-lg { font-size:1.05rem; }
  .file-row { flex-wrap:wrap; }.file-name { flex-basis:100%; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }


/* Правовые документы, подвал и уведомление о cookie */
.legal-page { padding-block: 38px 70px; }
.legal-meta { color: var(--muted); font-size: .82rem; }
.legal-draft { margin: 0 0 24px; }
.legal-document { max-width: 820px; }
.legal-document h2 { margin-top: 28px; }
.legal-document ul { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.legal-document li { margin-bottom: 6px; }
.legal-document a, .legal-nav a, .landing-legal a, .cookie-notice a { color: var(--navy-700); font-weight: 600; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; }
.legal-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.legal-list li { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.legal-list a { font-weight: 700; color: var(--navy-900); }
.landing-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; }
.cookie-notice { position: fixed; left: 50%; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 14px; width: min(680px, calc(100% - 28px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 14px 40px rgba(16,42,67,.18); transform: translateX(-50%); }
.cookie-notice p { margin: 0; font-size: .82rem; }
.cookie-notice .button { flex: none; }
.cookie-notice[hidden] { display: none; }
@media (max-width: 780px) {
  .cookie-notice { flex-direction: column; align-items: stretch; text-align: left; }
}
