.cabinet-bar { border-bottom: 1px solid var(--line); background: var(--paper, #f8f5ef); position: relative; z-index: 12; }
.cabinet-bar-inner { width: min(100% - 40px, 1380px); margin-inline: auto; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cabinet-brand, .cabinet-bar-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cabinet-brand .wordmark { flex: none; }
.cabinet-brand .wordmark img { display: block; width: 84px; height: auto; }
.cabinet-mode { color: var(--muted); font-size: .83rem; font-weight: 700; }
.cabinet-quick-create { color: var(--wine); font-size: .84rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.cabinet-quick-create:hover { text-decoration: underline; }
.cabinet-languages { display: inline-flex; gap: 2px; }
.cabinet-languages button { color: var(--muted); border: 0; background: transparent; padding: 7px 5px; font-size: .73rem; font-weight: 700; cursor: pointer; }
.cabinet-languages button[aria-pressed="true"] { color: #fff; background: var(--wine); border-radius: 5px; }
.cabinet-profile { position: relative; }
.cabinet-profile > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; color: var(--wine); min-height: 44px; }
.cabinet-profile > summary::-webkit-details-marker { display: none; }
.cabinet-profile > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
.cabinet-profile[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.cabinet-avatar { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--wine); color: #fff; font-size: .74rem; font-weight: 750; }
.cabinet-profile-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; font-weight: 700; }
.cabinet-profile-links { position: absolute; top: calc(100% + 8px); right: 0; display: grid; width: max-content; min-width: 200px; max-width: calc(100vw - 32px); background: #fffdf9; border: 1px solid var(--line); border-radius: 10px; padding: 5px; box-shadow: 0 12px 24px #30211e1a; }
.cabinet-profile-links > * { text-align: start; border: 0; background: transparent; color: var(--wine); text-decoration: none; padding: 11px 12px; border-radius: 6px; font: inherit; font-size: .86rem; cursor: pointer; overflow-wrap: anywhere; }
.cabinet-profile-links > *:hover { background: var(--pink, #f0e1db); }
.cabinet-side-links { display: grid; gap: 3px; }
.cabinet-side-links a { text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 7px; font-size: .88rem; overflow-wrap: anywhere; }
.cabinet-side-links a[aria-current="page"] { color: var(--wine); font-weight: 750; background: var(--pink, #f0e1db); box-shadow: inset 3px 0 var(--wine); }
.cabinet-side-links a:hover { color: var(--wine); text-decoration: underline; }
.cabinet-nav-toggle { display: none; }
@media(max-width: 700px) {
  .cabinet-bar-inner { width: calc(100% - 32px); min-height: 62px; gap: 8px; }
  .cabinet-brand { align-items: start; flex-direction: column; gap: 0; }
  .cabinet-brand .wordmark img { width: 58px; }
  .cabinet-mode { font-size: .69rem; }
  .cabinet-bar-actions { gap: 9px; }
  .cabinet-profile-name, .cabinet-quick-create { display: none; }
  .cabinet-nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--wine); background: transparent; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
  .cabinet-nav-toggle::after { content: "⌄"; }
  .cabinet-side:not(.cabinet-nav-open) .cabinet-side-links { display: none; }
  .cabinet-side-links { margin-top: 8px; }
}
