:root {
  --canvas:#f5f6f2; --ink:#1d2b24; --muted:#606e64; --line:#dce2da;
  --nav:#25392c; --nav-muted:#677369; --accent:#c3ee78; --green:#356440;
  --green-soft:#e6f1df; --red:#9c4635; --red-soft:#f9e8e2; --radius:14px;
}
.cabinet-v2 { --rail-width:218px; grid-template-columns:var(--rail-width) minmax(0,1fr); }
.cabinet-v2 .sidebar { width:var(--rail-width); padding:0 15px; overflow:visible; background:#fafbf7; border-right:1px solid var(--line); }
.cabinet-v2 .brand { height:75px; flex:none; margin:0; padding:0 10px; gap:10px; color:var(--ink); }
.cabinet-v2 .brand-name { color:var(--ink); font-size:26px; letter-spacing:-1.5px; font-weight:750; }
.cabinet-v2 .brand-symbol { width:36px; height:36px; border-radius:10px; background:var(--accent); transform:rotate(-3deg); }
.cabinet-v2 .brand-symbol .icon { width:25px; height:25px; stroke-width:2.9; transform:rotate(3deg); }
.cabinet-nav-scroll { flex:1; min-height:0; overflow-y:auto; padding:21px 0 16px; }
.cabinet-v2 .nav-label { padding:0 12px; margin:0 0 9px; color:#677369; font-size:10px; font-weight:690; letter-spacing:1.1px; }
.cabinet-v2 .cabinet-label-spaced { margin-top:27px; }
.cabinet-v2 .nav-item { min-height:40px; padding:8px 12px; gap:11px; color:#48554b; font-size:14px; font-weight:520; letter-spacing:0; }
.cabinet-v2 .nav-item .icon { color:inherit; }
.cabinet-v2 .nav-item:hover { background:#ebeee6; color:#1c3020; }
.cabinet-v2 .nav-item.active { background:#e2efce; color:#263a25; font-weight:650; }
.cabinet-v2 .nav-item .label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cabinet-back,.cabinet-all-projects { display:flex; align-items:center; gap:7px; margin:0 10px 14px; font-size:13px; color:var(--muted); text-decoration:none; }
.cabinet-all-projects { margin:8px 12px; }
.cabinet-back .icon { width:15px; height:15px; }
.cabinet-back:hover,.cabinet-all-projects:hover { text-decoration:underline; }
.cabinet-v2 .project-context { padding:4px 7px 15px; margin:0 0 15px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; }
.cabinet-v2 .project-context select { font-weight:620; font-size:13px; }
.cabinet-site-mark { width:23px; height:23px; display:inline-grid; flex:none; place-items:center; color:#574237; background:#eee1d8; border:1px solid #e5d8cf; border-radius:6px; font:italic 700 16px/1 Georgia,serif; }
.cabinet-site-mark.mark-2 { background:#e5e3f2; color:#544b77; border-color:#dcd7ec; }
.cabinet-site-mark.mark-0 { background:#e5edda; color:#455a38; border-color:#d9e4cc; }
.project-context .cabinet-site-mark { width:30px; height:30px; font-size:19px; }
.cabinet-user { position:relative; flex:none; border-top:1px solid var(--line); padding:13px 3px; }
.cabinet-account-menu summary,.cabinet-local-account { display:flex; list-style:none; align-items:center; gap:10px; min-height:43px; padding:4px; color:var(--ink); }
.cabinet-account-menu summary::-webkit-details-marker { display:none; }
.cabinet-account-menu summary { cursor:pointer; }
.cabinet-account-menu summary>.icon { width:14px; margin-left:auto; }
.cabinet-avatar { display:grid; width:34px; height:34px; place-items:center; flex:none; border:1px solid #d3dacc; border-radius:50%; background:#e4e9db; color:#35412d; font-size:14px; font-weight:650; }
.cabinet-account-copy { min-width:0; line-height:1.35; }
.cabinet-account-copy strong,.cabinet-account-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cabinet-account-copy small,.cabinet-local-account { color:var(--muted); font-size:12px; }
.cabinet-account-menu>div { position:absolute; bottom:100%; inset-inline:0; padding:5px; box-shadow:0 7px 20px #22332220; border-radius:10px; border:1px solid var(--line); background:white; }
.cabinet-account-menu>div :is(a,button) { display:block; color:var(--ink); text-decoration:none; padding:9px; font:inherit; text-align:left; width:100%; border:0; border-radius:5px; background:white; cursor:pointer; }
.cabinet-account-menu>div :is(a,button):hover { background:#eef2e8; }
.cabinet-v2 .topbar { height:63px; background:#fafbf8; padding:0 clamp(24px,2.8vw,48px); }
.cabinet-v2 .breadcrumb { font-size:12px; color:var(--muted); }
.cabinet-home-crumb { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.cabinet-home-crumb .icon { width:15px; height:15px; }
.cabinet-v2 .breadcrumb a:not(.cabinet-home-crumb) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cabinet-v2 .topbar-right { flex:none; }
.cabinet-search-button,.cabinet-bell { font:inherit; display:inline-flex; align-items:center; justify-content:center; gap:7px; color:#506155; cursor:pointer; border:0; background:transparent; padding:6px; border-radius:7px; }
.cabinet-search-button { font-size:12px; }
.cabinet-search-button kbd { font:inherit; font-size:10px; padding:1px 4px; background:#f1f3ee; border:1px solid #dbe0d7; border-radius:4px; }
.cabinet-bell { position:relative; width:36px; height:36px; }
.cabinet-bell i { position:absolute; right:7px; top:6px; height:7px; width:7px; background:#60943f; border:1px solid #fafbf8; border-radius:50%; }
.cabinet-bell i[hidden] { display:none; }
.cabinet-search-button:hover,.cabinet-bell:hover { background:#edf2e8; }
.cabinet-search-body { display:grid; gap:8px; }
.cabinet-search-body input[type=search] { width:100%; }
.cabinet-search-body [data-cabinet-hits] { max-height:50dvh; overflow:auto; }
.cabinet-search-hit { display:flex; gap:10px; align-items:center; padding:10px 5px; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--line); }
.cabinet-search-hit:hover { background:#f1f4ec; }
.cabinet-search-hit strong { min-width:0; overflow-wrap:anywhere; }
.cabinet-search-hit small { color:var(--muted); margin-left:auto; text-align:right; overflow-wrap:anywhere; }
.cabinet-v2 .content { width:100%; max-width:1632px; padding:30px clamp(24px,2.8vw,48px) 40px; }
.cabinet-tabs { display:flex; flex-wrap:wrap; gap:3px; min-width:0; padding:0 0 9px; margin:0 0 18px; border-bottom:1px solid var(--line); }
.cabinet-tabs a { padding:7px 12px; text-decoration:none; color:#526057; border:1px solid transparent; border-radius:7px; font-size:13px; font-weight:550; line-height:1.4; }
.cabinet-tabs a:hover { background:#e9eee3; }
.cabinet-tabs .active { background:white; color:#243e27; border-color:#cfdacc; }
.cabinet-v2 .panel,.cabinet-v2 .stat { border-radius:var(--radius); box-shadow:none; }
.cabinet-v2 .panel-header h2 { color:var(--ink); font-size:16px; }
.cabinet-v2 .page-heading h1,.cabinet-v2 .qt-heading h1 { font-size:clamp(26px,2.2vw,35px); letter-spacing:-1.25px; }
.cabinet-v2 .button:not(:disabled):not(.danger):not(.project-delete-action) { color:#314a35; border-radius:8px; }
.cabinet-v2 .button.primary:not(:disabled),.cabinet-v2 .button.accent:not(:disabled) { color:#24351e; background:var(--accent); border-color:#b8df78; }
.cabinet-v2 select:not([multiple]),dialog select:not([multiple]) { border-radius:7px; border-color:#cfd8cd; color:var(--ink); }
.cabinet-v2 .project-context select { border:0; }
@media (min-width:801px) and (max-width:1100px) {
  .cabinet-v2 { --rail-width:192px; }
  .cabinet-v2 .sidebar { padding-inline:11px; }
  .cabinet-v2 .nav-item { font-size:13px; padding-inline:10px; }
}
@media (max-width:800px) {
  .cabinet-v2 .content { padding:20px 15px 30px; }
  .cabinet-v2 .mobile-header { gap:4px; background:#fafbf8; color:var(--ink); border-color:var(--line); }
  .cabinet-v2 .mobile-header-context strong,.cabinet-v2 .mobile-header-context a { color:var(--ink); }
  .cabinet-v2 .mobile-header .icon-button:hover { background:#ebeee6; color:var(--ink); }
  .cabinet-v2 .mobile-header :is(.cabinet-search-button,.cabinet-bell) { min-width:38px; height:44px; }
  .app-shell.cabinet-v2>.sidebar { width:min(270px,calc(100vw - 36px)); padding:12px 14px 18px; }
  .cabinet-v2 .sidebar .brand { height:49px; margin:0; }
  .cabinet-nav-scroll { padding-top:12px; }
  .cabinet-v2 .sidebar .nav-label { display:block; }
  .cabinet-v2 .cabinet-user { display:none; }
  .cabinet-v2 .cabinet-nav-scroll nav { display:block; }
  .cabinet-v2 .sidebar .project-context { display:flex; }
  .cabinet-tabs { flex-wrap:nowrap; overflow-x:auto; margin-bottom:13px; padding-bottom:6px; }
  .cabinet-tabs a { min-height:39px; display:flex; align-items:center; white-space:nowrap; padding:7px 9px; }
}
.cabinet-period-empty { padding:36px 20px; text-align:center; }
.cabinet-period-empty h2 { margin:0; font-size:20px; }
.cabinet-period-empty p { color:var(--muted); margin:8px 0; }
.cabinet-period-empty .actions { justify-content:center; margin-top:16px; }
.positions-page:has(.cabinet-period-empty) .page-heading [data-action="check-positions"] { display:none; }
.cabinet-export,.cabinet-project-actions { position:relative; }
.cabinet-export summary,.cabinet-project-actions summary { display:flex; align-items:center; justify-content:center; min-height:35px; padding:5px 11px; background:white; color:var(--ink); border:1px solid var(--line); border-radius:7px; cursor:pointer; list-style:none; }
.cabinet-export summary::-webkit-details-marker,.cabinet-project-actions summary::-webkit-details-marker { display:none; }
.cabinet-export summary::after { content:""; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin:-3px 0 0 8px; }
.cabinet-export>div,.cabinet-project-actions>div { display:grid; gap:4px; padding:5px; margin-top:3px; z-index:4; position:absolute; right:0; width:max-content; max-width:220px; background:white; border:1px solid var(--line); border-radius:9px; box-shadow:0 5px 18px #1f38251c; }
.cabinet-project-actions summary { width:35px; font-size:18px; line-height:1; }
.cabinet-list-options { margin:0 0 14px; width:fit-content; max-width:100%; }
.cabinet-list-options summary,.cabinet-backups summary { width:fit-content; min-height:34px; padding-block:7px; color:var(--muted); cursor:pointer; }
.cabinet-list-options[open] { width:100%; }
.cabinet-backups .backup-actions { margin-block:6px; }
.cabinet-v2 .positions-desk-profile label,.cabinet-v2 .positions-desk-profile select { min-width:0; max-width:100%; }
@media(max-width:600px) {
  .cabinet-export summary,.cabinet-project-actions summary { min-height:44px; }
  .cabinet-export>div { position:static; }
  .cabinet-period-empty .actions { flex-wrap:wrap; }
}
