/* Рамка панели владельца и менеджера: левое меню, меню аккаунта, верхняя полоса на телефоне.
   Собрано из стилей прежней оболочки (app.css, design-a.css, land.css, legacy_panel.css) с приставкой pc-,
   чтобы не пересекаться со стилями страниц. Значения переменных — итог каскада оболочки (светлая и тёмная тема).
   Разметка — templates/components/panel_rail.html, поведение — panel-chrome.js. */
/* Шрифты как на land2: Onest в тексте, Golos Text в заголовках */
@font-face{font-family:'Onest';font-style:normal;font-weight:400 800;font-display:swap;src:url('/panel/static/fonts/onest-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 800;font-display:swap;src:url('/panel/static/fonts/onest-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 800;font-display:swap;src:url('/panel/static/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:'Golos Text';font-style:normal;font-weight:400 800;font-display:swap;src:url('/panel/static/fonts/golostext-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body.pc-chrome{--pc-amber:#D9480F;--pc-amber-dot:#D9480F;--pc-amber-soft:#FFF1E6;--pc-blue:#2563EB;--pc-blue-d:#2563EB;--pc-blue-soft:#EEF3FE;--pc-canvas:#FFFFFF;--pc-ds-brand:#2563EB;--pc-ds-brand-hover:#2563EB;--pc-ds-brand-soft:#EEF3FE;--pc-ds-ink:#0B1326;--pc-ds-line:#E3E8EF;--pc-ds-muted:#5A6579;--pc-ds-page-2:#EDF2F7;--pc-glass:rgba(255,255,255,.95);--pc-head-font:'Onest','Segoe UI',Arial,sans-serif;--pc-hover:#EDF2F7;--pc-ink:#0B1326;--pc-ink-2:#0B1326;--pc-line:#E3E8EF;--pc-mut:#5A6579;--pc-r-sm:6px;--pc-rail-bg:#FFFFFF;--pc-text:#3A4559;--pc-tint:#F7F7F8;--pc-wrap:1240px;}
html.dark body.pc-chrome{--pc-amber:var(--gt-warn);--pc-amber-dot:var(--gt-warn);--pc-amber-soft:var(--gt-warn-soft);--pc-blue:var(--gt-accent);--pc-blue-d:var(--gt-accent-text);--pc-blue-soft:var(--gt-accent-soft);--pc-canvas:var(--gt-surface);--pc-ds-brand:var(--gt-accent);--pc-ds-brand-hover:var(--gt-accent-hover);--pc-ds-brand-soft:var(--gt-accent-soft);--pc-ds-ink:var(--gt-text);--pc-ds-line:var(--gt-line-soft);--pc-ds-muted:var(--gt-text-2);--pc-ds-page-2:var(--gt-surface-2);--pc-glass:rgba(23,25,30,.95);--pc-head-font:'Onest','Segoe UI',Arial,sans-serif;--pc-hover:var(--gt-surface-2);--pc-ink:var(--gt-text);--pc-ink-2:var(--gt-text);--pc-line:var(--gt-line-soft);--pc-mut:var(--gt-text-2);--pc-r-sm:6px;--pc-rail-bg:var(--gt-rail);--pc-text:var(--gt-text-2);--pc-tint:var(--gt-surface-2);--pc-wrap:1240px;}
/* Графит: фон страницы, боковое меню и карточка аккаунта */
html.dark body.pc-chrome, html.dark body.pc-chrome.panel-app-content { background: var(--gt-bg); color: var(--gt-text); }
html.dark body.pc-chrome .pc-rail { background: var(--gt-rail); border-right: 1px solid var(--gt-line-soft); }
html.dark body.pc-chrome .pc-rail-foot { border-top-color: var(--gt-line-soft); }
html.dark body.pc-chrome .pc-nav a[aria-current="page"], html.dark body.pc-chrome .pc-nav a[aria-current="page"] .pc-i { color: var(--gt-accent-text); }
html.dark body.pc-chrome .pc-account-menu { background: var(--gt-surface-2); border: 1px solid var(--gt-line); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }

/* app.css */
svg.pc-i { width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round }
.pc-shell { display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh }
.pc-rail { position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px;padding:18px 12px 14px }
.pc-brand { display:flex;align-items:center;height:40px;padding:0 8px }
.pc-brand img { display:block;width:150px;height:52px;object-fit:cover;object-position:0 50%;margin-left:-6px }
.pc-brand .pc-brand-icon { display:none }
.pc-org-mark { display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--pc-blue);color:#fff;font-size:11px;font-weight:500;letter-spacing:.02em }
.pc-org-name { display:block;color:var(--pc-ink);font-size:13px;font-weight:500;line-height:1.2 }
.pc-org-plan { display:block;color:var(--pc-mut);font-size:11.5px }
.pc-nav { display:grid;gap:2px }
.pc-nav a { display:flex;align-items:center;gap:10px;height:34px;padding:0 10px;border-radius:8px;color:var(--pc-ink-2);font-size:13.5px;font-weight:500;text-decoration:none;transition:background .15s,color .15s }
.pc-nav a .pc-i { color:var(--pc-mut) }
.pc-nav a:hover { background:var(--pc-hover) }
.pc-nav a[aria-current="page"] { background:var(--pc-blue-soft);color:var(--pc-blue-d);font-weight:500 }
.pc-nav a[aria-current="page"] .pc-i { color:var(--pc-blue) }
.pc-nav-count { margin-left:auto;min-width:20px;padding:1px 6px;border-radius:10px;background:var(--pc-amber-dot);color:#fff;font-size:11px;font-weight:500;text-align:center }
.pc-rail-foot { display:grid;gap:2px }
.pc-nav-label { margin:6px 0 -10px;padding:0 10px;color:var(--pc-mut);font-size:11.5px;font-weight:500 }
.pc-nav-role { margin-left:6px;color:var(--pc-mut);font-size:11.5px;font-weight:500 }
.pc-nav a[aria-current="page"] .pc-nav-role { color:var(--pc-blue) }
.pc-nav-flow .pc-nav-count { margin-left:auto }
.pc-stage { min-width:0;display:flex;flex-direction:column;padding:0 14px 40px 0 }
.pc-m-top { display:none }
.pc-nav-dot { width:7px;height:7px;margin-left:auto;border-radius:50%;background:var(--pc-blue) }
.pc-acct { display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border:0;border-radius:var(--pc-r-sm);background:none;text-align:left }
.pc-acct:hover { background:var(--pc-hover) }
.pc-acct .pc-i { margin-left:auto;color:var(--pc-mut) }
.pc-acct-av { background:var(--pc-ink-2) }
.pc-acct-text { flex:1;min-width:0 }
.pc-acct-text .pc-org-name { overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2 }
.pc-brand-group { flex:none;min-width:0 }
body.pc-chrome:has(#pc-rail) .pc-rail .pc-brand-group .pc-brand { margin-bottom:0 }
.pc-brand-group:has(.pc-company) { margin-bottom:6px;padding-bottom:14px;border-bottom:1px solid var(--pc-line) }
.pc-company { min-width:0;margin-top:8px;padding:0 8px }
.pc-company-label { display:block;color:var(--pc-mut);font-size:12px;line-height:1.3 }
.pc-company-name { min-width:0;margin-top:1px;color:var(--pc-ink);font-size:17px;font-weight:700;line-height:1.25;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden }
@media (max-width:1280px) {
  .pc-acct>span:not(.pc-org-mark), .pc-acct .pc-i, .pc-nav-dot { display:none }
  .pc-acct { justify-content:center;padding:6px }
}
.pc-acct.on { background:var(--pc-blue-soft) }
.pc-acct.on .pc-org-name { color:var(--pc-blue-d) }
.pc-sheet-backdrop { display:none }
@media (max-width:1280px) {
  .pc-shell { grid-template-columns:64px minmax(0,1fr) }
  .pc-rail { padding:18px 10px 14px;align-items:center }
  .pc-brand { padding:0;justify-content:center }
  .pc-brand .pc-brand-full { display:none }
  .pc-brand .pc-brand-icon { display:block;width:30px;height:30px;margin:0;object-fit:contain }
  .pc-nav a span, .pc-nav-count, .pc-nav-role { display:none }
  .pc-nav-label { height:1px;margin:2px 10px;padding:0;background:var(--pc-line);font-size:0 }
  .pc-nav a { justify-content:center;width:40px;padding:0 }
}
@media (max-width:760px) {
  .pc-shell { display:block }
  .pc-rail { display:none }
  .pc-m-top { position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:8px;height:54px;padding:0 12px 0 16px;background:var(--pc-glass);backdrop-filter:blur(10px) }
  .pc-m-top img { width:124px;height:42px;object-fit:cover;object-position:0 50%;margin-left:-6px }
  .pc-stage { padding:0 0 32px }
  .pc-stage { padding-bottom:84px }
}
.pc-brand-word { display:none;align-items:center;gap:8px;color:var(--pc-ink);font-size:18px;font-weight:500;letter-spacing:-.01em }
.pc-brand .pc-brand-word img, .pc-m-top .pc-brand-word img { display:block;width:28px;height:28px;margin:0;object-fit:contain }
.pc-brand-word b { color:var(--pc-blue);font-weight:500 }
html.dark .pc-brand-full, html.dark .pc-m-top>img { display:none }
html.dark .pc-brand-word { display:inline-flex }
@media (max-width:1280px) {
  html.dark .pc-brand .pc-brand-word { display:none }
}
html.dark .pc-brand-icon { border-radius:8px }
@media (min-width:761px) and (max-width:1280px) {
  .pc-shell { grid-template-columns:200px minmax(0,1fr) }
  .pc-rail { align-items:stretch;padding:18px 12px 14px }
  .pc-brand { justify-content:flex-start;padding:0 8px }
  .pc-brand .pc-brand-full { display:block }
  .pc-brand .pc-brand-icon { display:none }
  .pc-acct { justify-content:flex-start }
  .pc-acct>span:not(.pc-org-mark) { display:block }
  .pc-nav a { justify-content:flex-start;width:auto;padding:0 10px }
  .pc-nav a span { display:inline }
  .pc-nav-count { display:block }
  .pc-nav-count[hidden] { display:none }
  .pc-nav-label { height:auto;margin:6px 0 -10px;padding:0 10px;font-size:11.5px;background:none }
}
.pc-nav a { min-height:44px }
.pc-rail { background:var(--pc-blue-soft) }
.pc-stage { background:var(--pc-canvas);border-left:1px solid var(--pc-line) }
.pc-nav a { font-size:14.5px }
.pc-org-name { font-size:14px }
.pc-org-plan { font-size:12.5px }
.pc-brand { height:58px }
.pc-brand>img.pc-brand-full { width:100%;max-width:205px;height:58px;margin:0;object-fit:contain;object-position:left center }
.pc-m-top>img { width:142px;height:52px;margin:0;object-fit:contain;object-position:left center }
@media (min-width:761px) and (max-width:1280px) {
  html.dark .pc-brand .pc-brand-word { display:inline-flex }
}
@media (max-width:760px) {
  .pc-stage { border-left:0 }
  .pc-brand { height:auto }
}
.pc-brand .pc-brand-word, .pc-m-top .pc-brand-word { display:inline-flex;font-size:20px }
.pc-brand .pc-brand-word img, .pc-m-top .pc-brand-word img { width:36px;height:36px }
.pc-m-top { background:#fff;backdrop-filter:none;border-bottom:1px solid var(--pc-line) }
.pc-nav-label, .pc-org-plan { font-size:14px }
.pc-nav a { min-height:44px;height:auto;font-size:15px }

/* design-a.css */
.pc-shell { grid-template-columns:216px minmax(0,1fr) }
.pc-rail { background:var(--pc-rail-bg);border-right:1px solid var(--pc-line);gap:22px;padding:18px 12px 12px }
.pc-stage { padding:0 32px 40px }
.pc-brand-word { font-family:var(--pc-head-font);font-weight:500 }
.pc-nav a { height:34px;border-radius:7px;color:var(--pc-text);font-weight:500 }
.pc-nav a:hover { background:var(--pc-hover) }
.pc-nav a[aria-current="page"] { background:var(--pc-blue-soft);color:var(--pc-blue-d);font-weight:500 }
.pc-nav .pc-nav-count { margin-left:auto;min-width:0;padding:0;background:none;color:var(--pc-amber);font-size:12.5px;font-weight:500 }
.pc-nav-label { height:auto;margin:-4px 0 -16px;padding:0 10px;background:none;color:var(--pc-mut);font-size:13px;font-weight:500 }
.pc-rail-foot { margin-top:auto;gap:6px }
.pc-rail-foot .pc-acct { border-top:1px solid var(--pc-line);border-radius:0;margin-top:6px;padding-top:12px }
.pc-acct { width:100%;border:0;border-radius:var(--pc-r-sm);background:none;text-align:left;cursor:pointer }
.pc-acct .pc-org-plan { color:var(--pc-mut) }
.pc-m-acct { border:0;background:none;padding:0;cursor:pointer }
.pc-m-top { align-items:center;justify-content:space-between }
.pc-m-top { background:var(--pc-canvas) }
@media (max-width:760px) {
  .pc-stage { padding:0 14px 90px }
}

/* land.css */
.pc-shell { grid-template-columns:248px minmax(0,1fr) }
.pc-rail { gap:26px;padding:22px 14px 14px;background:var(--pc-rail-bg);border-right:1px solid var(--pc-line) }
.pc-brand img { height:34px }
.pc-nav { gap:2px }
.pc-nav a { min-height:44px;height:auto;gap:12px;padding:0 12px;border-radius:10px;color:var(--pc-ink-2);font-size:15.5px;font-weight:520 }
.pc-nav a .pc-i { width:20px;height:20px;color:var(--pc-mut) }
.pc-nav a:hover { background:var(--pc-tint) }
.pc-nav a[aria-current="page"] { background:var(--pc-blue-soft);color:var(--pc-blue-d);font-weight:500 }
.pc-nav a[aria-current="page"] .pc-i { color:var(--pc-blue) }
.pc-nav .pc-nav-count { margin-left:auto;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:var(--pc-amber-soft);color:var(--pc-amber);font-size:13px;font-weight:500;line-height:22px;text-align:center }
.pc-nav-label { height:auto;margin:-8px 0 -20px;padding:0 12px;background:none;color:var(--pc-mut);font-size:13px;font-weight:500 }
.pc-rail-foot .pc-acct { padding:12px 8px 4px }
.pc-stage { padding:0 40px 64px }
.pc-stage>#page-profile, .pc-stage>#page-settings, .pc-stage>#page-pay-rules, .pc-stage>#page-employee-import, .pc-stage>#page-shift, .pc-stage>#page-notifications, .pc-stage>#page-referral, .pc-stage>#page-help, .pc-stage>#page-timesheet-history, .pc-stage>#page-audit { max-width:1040px }
.pc-stage>#page-plan { max-width:var(--pc-wrap) }
@media (max-width:1280px) {
  .pc-stage { padding:0 24px 56px }
}
@media (max-width:760px) {
  .pc-stage { padding:0 14px 96px }
}
.pc-rail-plan { display:grid;gap:2px;margin:0 8px 10px;padding:10px 12px;border-radius:10px;background:var(--pc-amber-soft);color:var(--pc-amber);font-size:14px;font-weight:500;text-decoration:none }
.pc-rail-plan span { color:var(--pc-text);font-size:13px;font-weight:500 }
.pc-rail-plan:hover { text-decoration:underline }
.pc-brand .pc-brand-logo, .pc-brand-logo { display:inline-flex;align-items:center;text-decoration:none }
.pc-brand-logo img { display:block;width:auto;height:46px }
.pc-m-top .pc-brand-logo img { height:38px }
.pc-nav a, .pc-nav-flow a { font-weight:500 }
.pc-nav a[aria-current="page"] { font-weight:500 }
body.pc-chrome .pc-nav a { height:42px;padding:0 12px;gap:12px;font-size:15.5px;font-weight:500;border-radius:6px }
body.pc-chrome .pc-nav a .pc-i { width:20px;height:20px }
body.pc-chrome .pc-nav a:hover { background:var(--pc-ds-page-2) }
body.pc-chrome .pc-nav a[aria-current="page"] { background:var(--pc-ds-page-2);color:var(--pc-ds-ink);font-weight:500;box-shadow:inset 3px 0 0 var(--pc-ds-brand) }
body.pc-chrome .pc-nav a[aria-current="page"] .pc-i { color:var(--pc-ds-ink) }
body.pc-chrome .pc-nav-label { font-size:13px;font-weight:500;color:var(--pc-ds-muted) }
body.pc-chrome .pc-nav a[aria-current="page"] { background:var(--pc-ds-brand-soft);color:var(--pc-ds-brand-hover);font-weight:500;box-shadow:inset 3px 0 0 var(--pc-ds-brand) }
body.pc-chrome .pc-nav a[aria-current="page"] .pc-i { color:var(--pc-ds-brand) }

/* legacy_panel.css */
body.pc-chrome:has(#pc-rail) .pc-shell { height:100dvh;min-height:0 }
body.pc-chrome:has(#pc-rail) .pc-rail { overflow-y:auto;overflow-x:hidden;gap:10px }
body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav, body.pc-chrome:has(#pc-rail) .pc-rail .pc-brand, body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav-label { flex:none }
body.pc-chrome:has(#pc-rail) .pc-rail-foot { margin-top:auto }
body.pc-chrome:has(#pc-rail) .pc-stage { height:100dvh;padding:0;overflow:hidden }
body.pc-chrome:has(#pc-rail) .pc-nav a { border-radius:10px }
body.pc-chrome:has(#pc-rail) .pc-nav a[aria-current="page"] { background:var(--pc-ds-brand-soft);color:var(--pc-ds-brand);box-shadow:none;font-weight:600 }
body.pc-chrome:has(#pc-rail) .pc-nav a[aria-current="page"] .pc-i { color:var(--pc-ds-brand) }
body.pc-chrome:has(#pc-rail) .pc-rail { border-right:1px solid var(--pc-ds-line) }
body.pc-chrome:has(#pc-rail) .pc-rail .pc-brand { margin-bottom:12px }
body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav-label { height:auto;min-height:18px;margin:10px 0 2px;padding:0 12px;background:none;color:var(--pc-ds-muted);font-size:12px;line-height:18px;font-weight:650 }
body.pc-chrome:has(#pc-rail) .pc-nav a { font-weight:560 }
body.pc-chrome:has(#pc-rail) .pc-nav a[aria-current="page"] { background:var(--pc-ds-brand-soft);color:#2563EB;font-weight:650 }
body.pc-chrome:has(#pc-rail) .pc-rail-foot { padding-top:12px;border-top:1px solid var(--pc-ds-line) }
body.pc-chrome:has(#pc-rail) .pc-account-row { border-top:0 }
body.pc-chrome:has(#pc-rail) .pc-account-menu { border-radius:16px;box-shadow:0 18px 44px -24px rgba(11,19,38,.42),0 2px 8px rgba(11,19,38,.08) }
body.pc-chrome:has(#pc-rail) .pc-nav button { display:flex;align-items:center;gap:10px;width:100%;height:34px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--pc-ink-2);font:inherit;font-size:14.5px;font-weight:500;text-align:left;cursor:pointer }
body.pc-chrome:has(#pc-rail) .pc-nav button:hover { background:var(--pc-hover) }
body.pc-chrome:has(#pc-rail) .pc-nav button .pc-i { color:var(--pc-mut) }
body.pc-chrome:has(#pc-rail) .pc-rail :where(a,button,span,div) { font-family:Onest,'Segoe UI',Arial,sans-serif!important }
body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav a, body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav button { height:40px;min-height:40px;border-radius:8px;font-size:14px;font-weight:500 }
body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav a[aria-current="page"] { font-weight:600 }
body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav-label { font-size:12px;font-weight:500 }
body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav svg.pc-i { width:18px;height:18px;stroke-width:1.75 }
body.pc-chrome:has(#pc-rail) .pc-account-menu { border-radius:12px;border-color:#CBD3DF;box-shadow:0 18px 44px -16px rgba(11,19,38,.38),0 2px 8px rgba(11,19,38,.10) }
html.dark body.pc-chrome:has(#pc-rail) .pc-account-menu { border-color:var(--gt-line);box-shadow:0 18px 40px -12px rgba(0,0,0,.7) }
@media (min-width:1025px) { .pc-account-menu .pc-support { display:none } }
body.pc-chrome:has(#pc-rail) .pc-account-menu :where(a,button) { border-radius:8px;font-size:14px;font-weight:500 }
.pc-menu-button { display:none }
.pc-account-row { display:flex;align-items:center;gap:6px;min-width:0;margin-top:6px;padding-top:8px;border-top:1px solid var(--pc-line) }
.pc-account-row .pc-acct { flex:1;min-width:0;margin:0;border-top:0;padding-top:7px }
.pc-notifications, .pc-mobile-notifications { display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:8px;color:var(--pc-ink-2) }
.pc-notifications:hover, .pc-mobile-notifications:hover, .pc-notifications[aria-current], .pc-mobile-notifications[aria-current] { background:var(--pc-hover);color:var(--pc-ink) }
.pc-notifications .pc-i, .pc-mobile-notifications .pc-i { width:18px;height:18px }
.pc-account-menu { position:fixed;z-index:60;width:220px;padding:6px;border:1px solid var(--pc-line);border-radius:10px;background:var(--pc-canvas);box-shadow:0 12px 30px rgba(15,23,42,.18) }
.pc-account-menu[hidden] { display:none }
.pc-account-menu a, .pc-account-menu button { display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:8px 10px;border:0;border-radius:6px;background:none;color:var(--pc-ink-2);font:inherit;font-size:14px;text-decoration:none;text-align:left;cursor:pointer }
.pc-account-menu a:hover, .pc-account-menu button:hover { background:var(--pc-hover);color:var(--pc-ink) }
.pc-account-menu .pc-i { width:18px;height:18px;color:var(--pc-mut) }
@media(max-width:1280px) and (min-width:761px) {
  body.pc-chrome:has(#pc-rail) .pc-shell { grid-template-columns:232px minmax(0,1fr) }
  body.pc-chrome:has(#pc-rail) .pc-rail { align-items:stretch;padding:18px 12px 14px }
  body.pc-chrome:has(#pc-rail) .pc-nav a, body.pc-chrome:has(#pc-rail) .pc-nav button { justify-content:flex-start;width:100%;padding:0 10px }
  body.pc-chrome:has(#pc-rail) .pc-nav a span, body.pc-chrome:has(#pc-rail) .pc-nav button span, body.pc-chrome:has(#pc-rail) .pc-acct>span:not(.pc-org-mark), body.pc-chrome:has(#pc-rail) .pc-acct .pc-i { display:block }
  body.pc-chrome:has(#pc-rail) .pc-nav-label { height:auto;margin:6px 0 -4px;padding:0 10px;background:none;font-size:11.5px }
}
@media(max-width:760px) {
  body.pc-chrome:has(#pc-rail) .pc-stage { height:100dvh;padding:0 }
  body.pc-chrome:has(#pc-rail) .pc-m-top { flex:none;z-index:31 }
  body.pc-chrome:has(#pc-rail) .pc-rail { display:flex;position:fixed;z-index:32;inset:54px auto 0 0;width:min(300px,85vw);height:calc(100dvh - 54px);padding:14px 12px;background:var(--pc-canvas);box-shadow:8px 0 30px rgba(0,0,0,.16);transform:translateX(-110%);transition:transform .2s }
  body.pc-chrome.pc-menu-open .pc-rail { transform:translateX(0) }
  body.pc-chrome:has(#pc-rail) .pc-nav a span, body.pc-chrome:has(#pc-rail) .pc-nav button span { display:block }
  body.pc-chrome:has(#pc-rail) .pc-nav a { justify-content:flex-start;width:100%;padding:0 10px }
  .pc-menu-button { display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:0;background:none;color:var(--pc-ink);cursor:pointer }
  .pc-menu-button .pc-i { width:22px;height:22px }
  body.pc-chrome:has(#pc-rail) .pc-m-acct { display:flex }
  body.pc-chrome:has(#pc-rail) .pc-m-top .pc-brand-logo { margin-right:auto }
  body.pc-chrome:has(#pc-rail) .pc-notifications { display:none }
}
.pc-rail { overflow-y: auto; gap: 12px; scrollbar-width: thin; }
.pc-rail .pc-nav-label { margin: 4px 0 -6px; }
.pc-account-row .pc-acct { border: 1.5px solid #B4C0D0; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: 0 1px 2px rgba(11,19,38,.08); }
.pc-account-row .pc-acct:hover { border-color: #2563EB; background: #F2F6FF; }
.pc-account-row .pc-acct .pc-i { color: #2563EB; }
.pc-notifications { border: 1.5px solid #B4C0D0; background: #fff; border-radius: 12px; color: #2563EB; }
.pc-notifications:hover { border-color: #2563EB; }
.pc-account-menu .pc-logout, .pc-account-menu .pc-logout .pc-i { color: #B42318; }
.pc-account-menu .pc-logout:hover { background: #FEF3F2; color: #B42318; }

/* ---------- Рамка внутри самой панели (без окна-фрейма) ---------- */
/* Страница прокручивается целиком; меню остаётся на месте */
body.pc-chrome:has(#pc-rail) .pc-shell { height: auto; min-height: 100dvh; }
body.pc-chrome:has(#pc-rail) .pc-stage { height: auto; min-height: 100dvh; padding: 0; overflow: visible; background: transparent; border-left: 0; }
body.pc-chrome:has(#pc-rail) .pc-rail { position: sticky; top: 0; height: 100dvh; }
body.pc-chrome { padding-bottom: 0 !important; font-family: inherit; }
body.pc-chrome .pc-account-menu, body.pc-chrome .pc-m-top { font-family: Inter, 'Segoe UI', Arial, sans-serif; }
@media (min-width: 1024px) { body.pc-chrome #timesheet-panel { width: 100%; margin-left: 0; } }
body.pc-chrome:has(#pc-rail) .pc-nav a { position: relative; }
.pc-lock { margin-left: auto; width: 14px; height: 14px; color: var(--pc-mut); }
.pc-notifications { position: relative; cursor: pointer; }
.pc-mobile-notifications { position: relative; display: none; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--pc-ink-2); cursor: pointer; }
.pc-badge { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; }
.pc-badge.hidden { display: none; }
.pc-menu-sep { height: 1px; margin: 6px 4px; background: var(--pc-line); }
.pc-account-menu { width: 252px; max-height: calc(100dvh - 24px); overflow-y: auto; }
.pc-account-menu .pc-nav-dot { margin-left: auto; }
.pc-m-acct { padding: 0; border: 0; background: none; cursor: pointer; }
@media (max-width: 760px) {
  /* Верхняя полоса лежит внутри .pc-stage, поэтому высота — весь экран, а не «экран минус полоса»: иначе подвал с документами стоит на 54 px выше низа. */
  body.pc-chrome:has(#pc-rail) .pc-stage { height: auto; min-height: 100vh; min-height: 100dvh; }
  body.pc-chrome:has(#pc-rail) .pc-m-top { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 12px 0 8px; }
  body.pc-chrome:has(#pc-rail) .pc-rail { position: fixed; top: 54px; height: calc(100dvh - 54px); }
  body.pc-chrome.pc-menu-open:has(#pc-rail) .pc-rail { transform: translateX(0); }
  body.pc-chrome:has(#pc-rail) .pc-rail { align-items: stretch; }
  body.pc-chrome:has(#pc-rail) .pc-brand { justify-content: flex-start; padding: 0 8px; }
  body.pc-chrome:has(#pc-rail) .pc-brand .pc-brand-full { display: block; }
  body.pc-chrome:has(#pc-rail) .pc-brand .pc-brand-icon { display: none; }
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav-label { height: auto; margin: 10px 0 2px; padding: 0 12px; background: none; font-size: 12px; }
  body.pc-chrome:has(#pc-rail) .pc-nav a { width: 100%; }
  body.pc-chrome:has(#pc-rail) .pc-acct { justify-content: flex-start; padding: 8px 10px; }
  body.pc-chrome:has(#pc-rail) .pc-acct > span:not(.pc-org-mark), body.pc-chrome:has(#pc-rail) .pc-acct .pc-i { display: block; }
  body.pc-chrome .pc-mobile-notifications { display: grid; }
  body.pc-chrome .pc-m-acct { display: flex; }
}
@media (min-width: 761px) { .pc-m-top { display: none; } }

/* ---------- Тёмная тема: карточка аккаунта, колокольчик, логотип ---------- */
html.dark .pc-account-row .pc-acct, html.dark .pc-notifications { background: var(--pc-canvas); border-color: var(--pc-line); box-shadow: none; }
html.dark .pc-account-row .pc-acct:hover, html.dark .pc-notifications:hover { background: var(--pc-hover); border-color: var(--pc-blue); }
html.dark .pc-account-row .pc-acct .pc-i, html.dark .pc-notifications { color: var(--pc-blue); }
html.dark .pc-org-mark.pc-acct-av { background: var(--pc-blue-soft); color: var(--pc-ink); }
html.dark .pc-account-menu .pc-logout, html.dark .pc-account-menu .pc-logout .pc-i { color: #F87171; }
html.dark .pc-account-menu .pc-logout:hover { background: rgba(248, 113, 113, .12); color: #F87171; }
html.dark .pc-m-top { background: var(--pc-canvas); border-color: var(--pc-line); }

/* ---------- Телефон: меню внизу (нижняя панель и «Ещё» из base.html), шторки слева нет ---------- */
@media (max-width: 760px) {
  body.pc-chrome:has(#pc-rail) .pc-rail { display: none; }
}
@media (min-width: 761px) {
  body.pc-chrome .mobile-tab-bar, body.pc-chrome .mobile-more-sheet, body.pc-chrome .mobile-more-overlay,
  body.pc-chrome .mobile-support-sheet { display: none !important; }
}

/* ---------- Единый вид с land2: шрифты, логотип, меню аккаунта, аватарка ---------- */
body.pc-chrome, body.pc-chrome .font-sans { font-family: Onest, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body.pc-chrome :is(h1, h2, h3, .page-heading) { font-family: 'Golos Text', Onest, sans-serif; letter-spacing: -.015em; }
body.pc-chrome :is(button, input, select, textarea) { font-family: inherit; }
body.pc-chrome .pc-brand .pc-brand-logo img { display: block; width: auto; height: 52px; max-width: 100%; margin: 0; object-fit: contain; }
body.pc-chrome .pc-m-top .pc-brand-logo img { width: auto; height: 38px; margin: 0; object-fit: contain; }
body.pc-chrome .pc-account-menu { border: 1.5px solid #B4C0D0; border-radius: 14px; background: #fff; box-shadow: 0 22px 48px -14px rgba(11, 19, 38, .42), 0 2px 10px rgba(11, 19, 38, .14); }
html.dark body.pc-chrome .pc-account-menu { border-color: var(--pc-line); background: var(--pc-canvas); box-shadow: 0 22px 48px -14px rgba(0, 0, 0, .7), 0 2px 10px rgba(0, 0, 0, .4); }
body.pc-chrome .pc-org-mark.pc-acct-av, html.dark body.pc-chrome .pc-org-mark.pc-acct-av { background: #2563EB; color: #fff !important; }
.pc-badge--inline { position: static; margin-left: auto; }

/* ---------- Движение (отключается при prefers-reduced-motion) ---------- */
@keyframes pc-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pc-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pc-flash { 0% { background-color: rgba(37, 99, 235, .22); } 100% { background-color: transparent; } }
@keyframes pc-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); color: #2563EB; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  /* Появление: экран не выпрыгивает целиком, блоки и строки проявляются по очереди */
  body.pc-chrome.pc-enter main.panel-main > :not([hidden], script, style, .pm, .modal-backdrop) { animation: pc-rise .26s cubic-bezier(.16, 1, .3, 1) both; }
  body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card) { animation: pc-rise .24s cubic-bezier(.16, 1, .3, 1) both; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(1) { animation-delay: 45ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(2) { animation-delay: 90ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(3) { animation-delay: 135ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(4) { animation-delay: 180ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(5) { animation-delay: 225ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(6) { animation-delay: 270ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(7) { animation-delay: 315ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(8) { animation-delay: 360ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(9) { animation-delay: 405ms; }
body.pc-chrome.pc-enter main.panel-main > :nth-child(10) { animation-delay: 450ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(1) { animation-delay: 155ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(2) { animation-delay: 190ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(3) { animation-delay: 225ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(4) { animation-delay: 260ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(5) { animation-delay: 295ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(6) { animation-delay: 330ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(7) { animation-delay: 365ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(8) { animation-delay: 400ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(9) { animation-delay: 435ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(10) { animation-delay: 470ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(11) { animation-delay: 505ms; }
body.pc-chrome.pc-enter main.panel-main :is(tbody > tr, .emp-card, .shift-card, .schedule-day-card):nth-child(12) { animation-delay: 540ms; }
  /* Живые изменения */
  .pc-flash > * { animation: pc-flash 1.5s ease-out; }
  .pc-bump { display: inline-block; animation: pc-bump .45s ease-out; }
  /* Отклик на действия: мягкий hover и нажатие */
  body.pc-chrome main.panel-main :is(button, a)[class*="px-"]:not([aria-label]):not(.stat-card), body.pc-chrome .pc-nav a, body.pc-chrome .pc-acct, body.pc-chrome .pc-notifications { transition: transform .16s ease, box-shadow .16s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
  body.pc-chrome main.panel-main :is(button, a)[class*="px-"]:not([aria-label]):not(.stat-card):hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(11, 19, 38, .35); }
  body.pc-chrome main.panel-main :is(button, a)[class*="px-"]:not([aria-label]):not(.stat-card):active, body.pc-chrome .pc-nav a:active { transform: translateY(1px) scale(.985); box-shadow: none; }
  body.pc-chrome main.panel-main :is(.emp-card, .shift-card, .stat-card, .plan-card, .schedule-day-card) { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .2s ease; }
  body.pc-chrome main.panel-main :is(.emp-card, .shift-card, a.stat-card):hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(11, 19, 38, .4); }
  body.pc-chrome main.panel-main :is(.schedule-seg button, .plan-tab-btn, .period-btn, [role="tab"]) { transition: background-color .22s ease, color .22s ease, box-shadow .22s ease; }
  body.pc-chrome main.panel-main .plan-card { transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease, border-color .22s ease; }
  body.pc-chrome main.panel-main .plan-card--selected { transform: translateY(-3px); }
  /* Переходы между состояниями: меню, окна, списки и панели появляются, а не мигают */
  .pc-account-menu:not([hidden]) { animation: pc-pop .16s ease-out; }
  #global-notification-panel:not(.hidden) { animation: pc-pop .18s ease-out; }
  .pm:not([hidden]) .pm-dialog { animation: pc-pop .22s cubic-bezier(.16, 1, .3, 1); }
  .pm:not([hidden]) .pm-backdrop { animation: pc-fade .2s ease-out; }
  .modal-backdrop:not(.hidden) { animation: pc-fade .18s ease-out; }
  details[open] > :not(summary) { animation: pc-fade .22s ease-out; }
  .mobile-more-sheet { transition: transform .28s cubic-bezier(.16, 1, .3, 1); }
}
/* Загрузка: логотип в кольце из чёрточек, которое крутится (вместо надписи «Загрузка…») */
@keyframes pc-spin { to { transform: rotate(360deg); } }
.pm-loading, .objedit-loading, .gt-loader { font-size: 0; }
.pm-loading, .objedit-loading { display: grid; place-items: center; }
.pm-loading::before, .objedit-loading::before, .gt-loader::before { content: ""; grid-area: 1 / 1; width: 96px; height: 96px; background: url('/panel/static/logo-icon.png') center / 44px 44px no-repeat; }
.pm-loading::after, .objedit-loading::after, .gt-loader::after { content: ""; grid-area: 1 / 1; width: 96px; height: 96px; border-radius: 50%;
  background: repeating-conic-gradient(#2563EB 0 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  animation: pc-spin 1.3s linear infinite; }
.gt-loader { display: grid; place-items: center; min-height: 140px; }
html.dark .pm-loading::after, html.dark .objedit-loading::after, html.dark .gt-loader::after { background: repeating-conic-gradient(#5C8DF8 0 9deg, transparent 9deg 22.5deg); }
@media (prefers-reduced-motion: reduce) { .pm-loading::after, .objedit-loading::after, .gt-loader::after { animation-duration: 4s; } }
.pc-account-menu img.pc-logo { flex: none; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* Логотип: в тёмной теме своя картинка без белой плашки */
.pc-logo-dark { display: none !important; }
html.dark .pc-logo-light { display: none !important; }
html.dark body.pc-chrome .pc-brand-logo img.pc-logo-dark, html.dark body.pc-chrome .pc-m-top .pc-brand-logo img.pc-logo-dark { display: block !important; }
html.dark body.pc-chrome .pc-brand-logo { padding: 0; background: none; }

/* Уведомления: на компьютере компактная панель рядом с меню (а не в правом верхнем углу) */
@media (min-width: 761px) {
  body.pc-chrome:has(#pc-rail) #global-notification-panel {
    top: 12px; bottom: auto; right: auto; left: calc(var(--pc-notif-left, 232px) + 10px); width: 360px; max-width: calc(100vw - var(--pc-notif-left, 232px) - 20px);
    max-height: min(520px, calc(100dvh - 24px)); border-radius: 16px; border-width: 1px; box-shadow: 0 18px 48px rgba(11,19,38,.2);
  }
  body.pc-chrome:has(#pc-rail) #global-notification-panel:not(.hidden) { display: flex; flex-direction: column; animation: pc-slide-in .2s ease-out; }
  body.pc-chrome:has(#pc-rail) #global-notification-panel #global-notification-list { flex: 1; min-height: 0; overflow-y: auto; max-height: none; }
  body.pc-chrome:has(#pc-rail) #global-notification-overlay { background: transparent; }
}
@keyframes pc-slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
html.dark body.pc-chrome #global-notification-panel { box-shadow: 0 18px 48px rgba(0,0,0,.55); }

/* Юридический подвал прижат к низу экрана, а не висит под коротким контентом */
body.pc-chrome:has(#pc-rail) .pc-stage > .gt-legal-footer { margin-top: auto; padding-top: 48px; }

/* Низкие экраны (ноутбук 14", окно браузера ~650–800px): меню целиком без прокрутки */
@media (min-width: 761px) and (max-height: 820px) {
  body.pc-chrome:has(#pc-rail) .pc-rail { gap: 6px; padding: 14px 12px 10px; }
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-brand { height: auto; margin-bottom: 0; }
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-brand-logo img { height: 36px; width: auto; }
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-brand-group { margin-bottom: 0; padding-bottom: 8px; }
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-company { margin-top: 4px; }
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav a, body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav button { height: 36px; min-height: 36px; }
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav-label { margin: 6px 0 0; }
  body.pc-chrome:has(#pc-rail) .pc-rail-foot { padding-top: 8px; gap: 2px; }
  body.pc-chrome:has(#pc-rail) .pc-account-row { margin-top: 2px; padding-top: 6px; }
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-acct { padding-top: 4px; padding-bottom: 4px; }
  body.pc-chrome:has(#pc-rail) .pc-notifications { height: 40px; }
}
@media (min-width: 761px) and (max-height: 690px) {
  body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav a, body.pc-chrome:has(#pc-rail) .pc-rail .pc-nav button { height: 33px; min-height: 33px; }
}
