/* ============================================================
   UES · Оболочка порталов (сайдбар, топбар, страницы)
   ============================================================ */

body.portal { overflow-x: hidden; }

.shell { display: flex; min-height: 100vh; }

/* ---------- Сайдбар ---------- */
.sidebar {
  width: 262px; flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: #fff; border-right: 1px solid var(--line);
  z-index: 50;
}
.sb-logo {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 18px 16px; text-decoration: none !important;
}
.sb-logo .mark { width: 38px; height: 38px; flex: none; }
.sb-logo .nm { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.sb-logo .ds { font-size: 10.5px; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }

.sb-portal-tag {
  margin: 0 18px 12px; padding: 7px 12px; border-radius: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; gap: 7px;
}
.sb-portal-tag svg { width: 13px; height: 13px; }

.sb-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.sb-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 16px 8px 7px; }
.sb-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; margin: 1px 0; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: none !important; position: relative; transition: all .13s;
}
.sb-item svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.sb-item:hover { background: var(--card-2); color: var(--ink); }
.sb-item.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.sb-item.active svg { opacity: 1; }
.sb-item.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand-500);
}
.sb-item .cnt {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--brand-500); color: #fff; border-radius: 999px;
  padding: 1px 7px; line-height: 1.5;
}

.sb-user {
  border-top: 1px solid var(--line-2); padding: 14px 18px;
  display: flex; align-items: center; gap: 11px;
}
.sb-user .u-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sb-user .u-role { font-size: 11.5px; color: var(--ink-3); }

/* Тёмный сайдбар (внутренний портал) */
.sidebar.dark {
  background: linear-gradient(180deg, #0d1b30 0%, #0a1424 100%);
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar.dark .sb-logo .nm { color: #fff; }
.sidebar.dark .sb-logo .ds { color: #7e91ad; }
.sidebar.dark .sb-portal-tag { background: rgba(57,135,229,.16); color: #7fb4f0; }
.sidebar.dark .sb-sec { color: #5f7392; }
.sidebar.dark .sb-item { color: #a9bad2; }
.sidebar.dark .sb-item svg { opacity: .7; }
.sidebar.dark .sb-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar.dark .sb-item.active { background: rgba(57,135,229,.18); color: #fff; }
.sidebar.dark .sb-item.active::before { background: #3987e5; }
.sidebar.dark .sb-user { border-top-color: rgba(255,255,255,.08); }
.sidebar.dark .sb-user .u-name { color: #fff; }
.sidebar.dark .sb-user .u-role { color: #7e91ad; }
.sidebar.dark ::-webkit-scrollbar-thumb { background: #2a3b55; border-color: #0a1424; }

/* ---------- Основная область ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 28px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tb-title h1 { font-size: 17px; font-weight: 700; }
.tb-title .crumb { font-size: 11.5px; color: var(--ink-3); margin-bottom: 1px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.tb-search { position: relative; }
.tb-search input {
  width: 240px; padding: 8px 12px 8px 34px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card-2);
  outline: none; font-size: 13px; transition: all .15s;
}
.tb-search input:focus { background: #fff; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(42,120,214,.12); width: 280px; }
.tb-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-3); }

.tb-icon {
  position: relative; width: 36px; height: 36px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .13s;
}
.tb-icon:hover { background: var(--card-2); color: var(--ink); }
.tb-icon svg { width: 17px; height: 17px; }
.tb-icon .pip {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--st-crit); border: 2px solid #fff;
}
.tb-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 600;
  background: var(--st-good-bg); color: #0a7d0a; border: 1px solid #d4eed4;
}
.tb-chip svg { width: 13px; height: 13px; }

/* Выпадающее меню уведомлений */
.dropdown { position: relative; }
.dd-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-3); overflow: hidden; z-index: 90;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: all .18s;
}
.dropdown.open .dd-panel { opacity: 1; transform: none; pointer-events: auto; }
.dd-head { padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; }
.dd-list { max-height: 350px; overflow-y: auto; }
.dd-item { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); transition: background .12s; }
.dd-item:hover { background: var(--card-2); }
.dd-item:last-child { border-bottom: none; }
.dd-item .ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; }
.dd-item .ic svg { width: 15px; height: 15px; }
.dd-item .tt { font-size: 13px; font-weight: 600; line-height: 1.35; }
.dd-item .tx { font-size: 12px; color: var(--ink-2); line-height: 1.4; margin-top: 1px; }
.dd-item .tm { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.dd-foot { padding: 10px; text-align: center; border-top: 1px solid var(--line-2); }
.dd-foot a { font-size: 12.5px; font-weight: 600; }

/* ---------- Контент страницы ---------- */
.page { padding: 24px 28px 48px; max-width: 1440px; width: 100%; margin: 0 auto; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-intro h2 { font-size: 21px; letter-spacing: -.015em; }
.page-intro .sub { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* Ряд фильтров — один, над содержимым */
.filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.filter-row .select, .filter-row .input { width: auto; min-width: 150px; padding: 7px 12px; font-size: 13px; }
.filter-row .select { padding-right: 32px; }
.filter-row .fl-label { font-size: 12px; font-weight: 600; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.filter-row .fl-label svg { width: 14px; height: 14px; }

/* Сетки */
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-23 { grid-template-columns: 2fr 1fr; }
.g-32 { grid-template-columns: 1fr 2fr; }
.mt { margin-top: 16px; }
@media (max-width: 1200px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .g-4, .g-3, .g-2, .g-23, .g-32 { grid-template-columns: 1fr; } }

/* ---------- Стат-плитки ---------- */
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 17px 18px 15px;
  display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden;
}
.stat .s-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.stat .s-label .s-ic { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); }
.stat .s-label .s-ic svg { width: 14px; height: 14px; }
.stat .s-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.stat .s-value .unit { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.stat .s-delta { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat .s-delta.up { color: #067d06; }
.stat .s-delta.down { color: var(--st-crit); }
.stat .s-delta .vs { color: var(--ink-3); font-weight: 400; }
.stat .s-spark { position: absolute; right: 14px; bottom: 14px; width: 88px; height: 30px; opacity: .9; }

/* ---------- Контейнер графика ---------- */
.viz { width: 100%; }
.viz svg { width: 100%; height: auto; display: block; }

/* HTML-бары (рейтинги) */
.hbar-row { display: grid; grid-template-columns: 150px 1fr 76px; align-items: center; gap: 12px; padding: 7px 0; }
.hbar-row .hb-label { font-size: 13px; color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-row .hb-track { height: 14px; border-radius: 5px; background: var(--line-2); position: relative; overflow: hidden; }
.hbar-row .hb-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px 4px 4px 5px; background: var(--s1); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.hbar-row .hb-val { font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Метр / прогресс */
.meter { height: 8px; border-radius: 5px; background: var(--brand-100); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 5px; background: var(--brand-500); }
.meter.warn { background: var(--amber-100); } .meter.warn > i { background: var(--amber-500); }
.meter.crit { background: var(--st-crit-bg); } .meter.crit > i { background: var(--st-crit); }

/* ---------- Табы ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab {
  padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  border: none; background: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .13s; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand-600); border-bottom-color: var(--brand-500); }
.tab .cnt { background: var(--st-neutral-bg); color: var(--ink-2); border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 6px; }
.tab.active .cnt { background: var(--brand-100); color: var(--brand-600); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .25s ease; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Модальные окна ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,18,32,.5);
  backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 20px 20px; opacity: 0; pointer-events: none; transition: opacity .2s;
  overflow-y: auto;
}
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 560px; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-3); transform: translateY(14px) scale(.98); transition: transform .22s;
  overflow: hidden;
}
.modal-back.open .modal { transform: none; }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { font-size: 17px; }
.modal-head .x { width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--card-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.modal-head .x:hover { background: var(--line-2); color: var(--ink); }
.modal-head .x svg { width: 15px; height: 15px; }
.modal-body { padding: 16px 22px 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }

/* ---------- Тосты ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 11px; min-width: 300px; max-width: 380px;
  background: #101c2e; color: #fff; padding: 13px 16px; border-radius: 13px;
  box-shadow: var(--shadow-3); animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast.ok svg { color: #35d235; }
.toast.info svg { color: #6fb1f5; }
.toast .t-t { font-size: 13.5px; font-weight: 600; }
.toast .t-x { font-size: 12.5px; color: #b9c6da; margin-top: 1px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Шаги / маршрут согласования ---------- */
.route { display: flex; flex-direction: column; }
.route-step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.route-step:last-child { padding-bottom: 0; }
.route-step::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px;
  background: var(--line); border-radius: 2px;
}
.route-step:last-child::before { display: none; }
.route-step.done::before { background: #bfe6bf; }
.rs-dot {
  width: 32px; height: 32px; border-radius: 50%; flex: none; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line); background: #fff; color: var(--ink-3);
  font-size: 12px; font-weight: 700;
}
.rs-dot svg { width: 15px; height: 15px; }
.route-step.done .rs-dot { background: var(--st-good); border-color: var(--st-good); color: #fff; }
.route-step.now .rs-dot { border-color: var(--brand-500); color: var(--brand-600); box-shadow: 0 0 0 4px rgba(42,120,214,.15); }
.rs-body { padding-top: 3px; min-width: 0; flex: 1; }
.rs-title { font-size: 13.5px; font-weight: 600; }
.rs-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.rs-time { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- Документ А4 (предпросмотр) ---------- */
.doc-a4 {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 8px 28px rgba(16,24,40,.1);
  max-width: 720px; margin: 0 auto; padding: 56px 64px;
  font-size: 13px; line-height: 1.75; color: #1c2637;
}
.doc-a4 .d-org { text-align: center; font-weight: 700; font-size: 14px; }
.doc-a4 .d-req { text-align: center; color: #55637a; font-size: 11.5px; margin-top: 2px; }
.doc-a4 hr { border: none; border-top: 1.5px solid #1c2637; margin: 14px 0 18px; }
.doc-a4 .d-title { text-align: center; font-weight: 700; font-size: 15px; margin: 18px 0 4px; }
.doc-a4 .d-no { text-align: center; color: #55637a; font-size: 12px; margin-bottom: 18px; }
.doc-a4 p { margin: 9px 0; text-align: justify; }
.doc-a4 table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 12px; }
.doc-a4 table th, .doc-a4 table td { border: 1px solid #97a3b5; padding: 6px 9px; text-align: left; }
.doc-a4 table th { background: #f3f5f9; font-weight: 600; }
.doc-a4 .d-sign { display: flex; justify-content: space-between; gap: 30px; margin-top: 36px; }
.doc-a4 .d-sign .s-col { flex: 1; font-size: 12px; }
.doc-a4 .stamp {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2.5px solid var(--st-good); color: var(--st-good); border-radius: 10px;
  padding: 8px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; transform: rotate(-4deg); margin-top: 10px; text-align: center; line-height: 1.5;
}
.doc-a4 .stamp .big { font-size: 12px; }

/* ---------- Пустое состояние ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .5; }

/* ---------- Пагинация ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.pager .pg-btns { display: flex; gap: 5px; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.pager button.cur { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.pager button:hover:not(.cur) { background: var(--card-2); }

/* ---------- Дерево (оргструктура) ---------- */
.tree { list-style: none; }
.tree li { position: relative; padding: 4px 0 4px 26px; }
.tree li::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 1.5px; background: var(--line); }
.tree li:last-child::before { height: 20px; }
.tree li::after { content: ""; position: absolute; left: 9px; top: 19px; width: 13px; height: 1.5px; background: var(--line); }
.tree > li::before, .tree > li::after { display: none; }
.tree > li { padding-left: 0; }
.tree .tn {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 500;
}
.tree .tn:hover { border-color: var(--brand-400); }
.tree .tn svg { width: 15px; height: 15px; color: var(--brand-500); }
.tree .tn .n { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.tree ul { list-style: none; }

/* ---------- Логин ---------- */
body.auth {
  min-height: 100vh; display: flex; align-items: stretch;
  background: var(--navy-900);
}
.auth-brand {
  flex: 1.06; position: relative; overflow: hidden; padding: 52px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(900px 500px at -10% -20%, rgba(42,120,214,.4), transparent 60%),
    radial-gradient(700px 460px at 110% 115%, rgba(237,161,0,.14), transparent 55%),
    linear-gradient(160deg, #0a1628 0%, #0c1c36 100%);
  color: #fff;
}
.auth-brand .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 20%, #000 30%, transparent 75%); }
.auth-brand .ab-logo { display: flex; align-items: center; gap: 12px; position: relative; }
.auth-brand .ab-logo .nm { font-size: 19px; font-weight: 800; }
.auth-brand .ab-logo .ds { font-size: 11px; color: #8ea2bf; }
.auth-brand h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; position: relative; max-width: 480px; }
.auth-brand .ab-sub { color: #a9bad2; margin-top: 14px; max-width: 440px; font-size: 14.5px; position: relative; }
.auth-brand .ab-feats { position: relative; display: flex; flex-direction: column; gap: 13px; margin-top: 34px; }
.auth-brand .ab-feat { display: flex; gap: 12px; align-items: flex-start; }
.auth-brand .ab-feat .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(57,135,229,.16); border: 1px solid rgba(57,135,229,.25); display: flex; align-items: center; justify-content: center; flex: none; }
.auth-brand .ab-feat .ic svg { width: 16px; height: 16px; color: #7fb4f0; }
.auth-brand .ab-feat .t { font-size: 13.5px; font-weight: 600; }
.auth-brand .ab-feat .x { font-size: 12.5px; color: #8ea2bf; margin-top: 1px; }
.auth-brand .ab-foot { position: relative; font-size: 12px; color: #62748f; }

.auth-panel {
  flex: 1; background: var(--page); display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; border-radius: 26px 0 0 26px;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 22px; letter-spacing: -.015em; }
.auth-card .a-sub { color: var(--ink-2); font-size: 13.5px; margin: 5px 0 22px; }
.cert {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 13px; background: #fff;
  cursor: pointer; transition: all .14s; margin-bottom: 10px;
}
.cert:hover { border-color: var(--brand-300, #9ec5f4); }
.cert.sel { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(42,120,214,.12); }
.cert .c-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; flex: none; }
.cert .c-ic svg { width: 18px; height: 18px; }
.cert .c-nm { font-size: 13.5px; font-weight: 600; }
.cert .c-inn { font-size: 12px; color: var(--ink-3); }
.cert .c-ok { margin-left: auto; font-size: 11.5px; color: #0a7d0a; font-weight: 600; white-space: nowrap; }
.demo-note {
  margin-top: 18px; padding: 11px 14px; border-radius: 11px;
  background: var(--amber-100); border: 1px solid #f3ddb0; color: #7c5a10; font-size: 12.5px;
  display: flex; gap: 9px; align-items: flex-start;
}
.demo-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

@media (max-width: 940px) {
  .auth-brand { display: none; }
  .auth-panel { border-radius: 0; }
}

/* ---------- Мобильная адаптация портала ---------- */
.burger { display: none; }
@media (max-width: 1020px) {
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-3); }
  .sidebar.open { transform: none; }
  .burger { display: inline-flex; }
  .tb-search input { width: 150px; }
  .page { padding: 18px 16px 40px; }
  .topbar { padding: 10px 16px; }
  .hbar-row { grid-template-columns: 110px 1fr 66px; }
}

@media print {
  .sidebar, .topbar, .page-actions, .filter-row { display: none !important; }
}
