/* Общая строка пути и действий, одинаковая ширина рабочих страниц. */
html { scrollbar-gutter: stable; }
main.workspace, main.report-view { width:100%; max-width:1208px; padding:28px 24px 64px; margin:0 auto; box-sizing:border-box; }
.path-nav { position:relative; z-index:35; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; padding:0 0 18px; margin:0 0 24px; border-bottom:1px solid var(--line); font-size:16px; line-height:1.4; }
.path-trail,.path-actions { display:flex; align-items:center; gap:8px; min-width:0; }
.path-trail { flex-wrap:wrap; }
.path-actions { margin-left:auto; }
main .path-nav .path-title { margin:0; font-size:20px; line-height:1.3; letter-spacing:0; font-weight:600; padding:8px 0; }
.path-title a { color:var(--primary); text-decoration:none; }
.path-home,.path-action,.path-add { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 0; color:var(--primary); text-decoration:none; box-sizing:border-box; }
.path-home { color:var(--muted); }
.path-action,.path-add { font-size:14px; }
.path-actions > a { padding-inline:8px; }
.path-divider { display:flex; color:var(--muted); flex:none; }
.path-picker { position:relative; min-width:0; }
.path-picker > summary { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 10px; border:0; border-radius:var(--btn-radius); color:var(--primary); background:transparent; cursor:pointer; list-style:none; font-size:inherit; font-weight:600; box-sizing:border-box; }
.path-picker > summary::-webkit-details-marker { display:none; }
.path-picker > summary::after { content:none; }
.path-picker > summary > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.path-picker svg,.path-add svg { flex:none; }
.path-org-picker { max-width:380px; }
.path-picker[open] > summary,.path-picker > summary:hover,.path-action:hover { background:var(--soft); }
.path-menu { position:absolute; z-index:40; top:calc(100% + 6px); left:0; width:320px; max-width:calc(100vw - 48px); max-height:min(420px,60vh); overflow:auto; padding:6px; border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); box-sizing:border-box; }
.path-menu a { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 12px; border-radius:6px; color:var(--ink); text-decoration:none; overflow-wrap:anywhere; }
.path-menu a:hover,.path-menu a[aria-current] { background:var(--soft); color:var(--primary); }
.path-menu a[aria-current] { font-weight:600; }
.path-menu a > svg:last-child { margin-left:auto; flex:none; }
.path-menu small { display:block; color:var(--muted); font-size:13px; font-weight:400; }
.path-data-picker { font-size:14px; }
.path-data-picker .path-menu { width:220px; left:auto; right:0; }
.path-nav :is(a,summary):focus-visible,.period-picker :is(a,summary):focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.org-badge { display:inline-flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px; border-radius:10px; font-size:14px; font-weight:600; color:var(--primary); background:var(--plus-soft); }
.org-tone-1 { background:#e2edf1; color:#355466; }
.org-tone-2 { background:#ece7df; color:#635944; }
.period-toolbar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.period-picker > summary { border:1px solid var(--line); background:var(--surface); padding:10px 14px; white-space:nowrap; font-weight:600; }
.period-picker .period-menu { width:290px; }
.period-menu p { color:var(--muted); padding:8px 12px 4px; font-size:13px; }
.period-menu a[aria-current]::after { content:'✓'; margin-left:auto; }
.archive-link { display:inline-flex; align-items:center; min-height:44px; }
.legal-name-form { display:grid; gap:12px; max-width:600px; margin-bottom:24px; }
.legal-name-form label { font-weight:600; }
.legal-name-form p { margin:0; }
.legal-name-form input { width:100%; }
.legal-name-form button { justify-self:start; }
@media(max-width:760px) {
  main.workspace,main.report-view { padding:20px 16px 48px; }
  .path-nav { gap:8px; margin-bottom:20px; font-size:14px; }
  main .path-nav .path-title { font-size:16px; }
  .path-trail { gap:4px; width:100%; }
  .path-org-picker { max-width:45%; }
  .path-org-picker > summary { padding-inline:4px; }
  .path-actions { margin-left:0; gap:8px; flex-wrap:wrap; }
  .path-picker { position:static; }
  .path-menu,.path-data-picker .path-menu { top:calc(100% + 4px); left:0; right:0; width:auto; max-width:100%; }
  .period-picker { position:relative; }
  .period-picker .period-menu { width:290px; max-width:calc(100vw - 32px); left:0; }
  .path-add { margin-left:auto; }
  .path-nav:has(.path-add) .path-trail { width:auto; }
}
