.system-topbar-signature { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #827451; margin-left: 16px; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.system-topbar-signature img { width: 28px; height: 28px; object-fit: contain; background: transparent; border: 0; border-radius: 0; }
.topbar > .top-actions { margin-left: auto; }
.system-login-signature { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; color: #8c8067; }
.system-login-signature img { width: 32px; height: 32px; object-fit: contain; background: transparent; border: 0; border-radius: 0; }
.system-print-signature { margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 9px; }
.system-print-signature img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 700px) { .system-topbar-signature { margin-left: 7px; padding-left: 7px; font-size: 10px; gap: 4px; } .system-topbar-signature img { width: 22px; height: 22px; } .crumb { font-size: 10px; } }
.sidebar { isolation: isolate; }
.sidebar-toggle { align-self: flex-end; flex-shrink: 0; margin: -12px 0 14px; font-size: 23px; line-height: 1; }
.sidebar .nav { overflow-y: auto; min-height: 0; flex-shrink: 1; padding-bottom: 8px; }
.sidebar .brand,.sidebar .nav-label,.sidebar .salon-card,.sidebar .user-card { flex-shrink: 0; }
.app { transition: grid-template-columns .18s ease; }
[data-sidebar='collapsed'] .app { grid-template-columns: 72px minmax(0,1fr); }
[data-sidebar='collapsed'] .sidebar { padding-left: 10px; padding-right: 10px; }
[data-sidebar='collapsed'] .sidebar-toggle { align-self: center; }
[data-sidebar='collapsed'] .sidebar .brand { padding: 0 0 18px; justify-content: center; }
[data-sidebar='collapsed'] .sidebar .brand > div:not(.brand-mark),[data-sidebar='collapsed'] .sidebar .nav-label,[data-sidebar='collapsed'] .sidebar .salon-card,[data-sidebar='collapsed'] .sidebar .user-card > div:not(.avatar) { display: none; }
[data-sidebar='collapsed'] .sidebar .nav button { font-size: 0; gap: 0; justify-content: center; padding: 12px; min-height: 42px; }
[data-sidebar='collapsed'] .sidebar .nav .icon { font-size: 18px; flex-shrink: 0; }
[data-sidebar='collapsed'] .sidebar .user-card { margin-top: auto; padding: 14px 0 0; justify-content: center; }
[data-sidebar='collapsed'] .sidebar::before { background-size: 60px auto; }
@media(max-width:700px) {
  .app { display: block; }
  .sidebar { left: 0; width: 235px; }
  .main { margin-left: 72px; }
  [data-sidebar='collapsed'] .sidebar { width: 72px; }
  .mobile-menu { display: none; }
}
@media(prefers-reduced-motion:reduce) { .app { transition: none; } }
.sidebar::before { content: ''; position: absolute; inset: 0; background: url('assets/3l-system-transparent.png') center 64% / 94% auto no-repeat; opacity: .19; filter: saturate(.85) brightness(.82); pointer-events: none; z-index: -1; }
.theme-toggle { font-size: 21px; display: grid; place-items: center; }
.profile-menu { position: relative; }
.profile-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary:focus-visible, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.profile-dropdown { position: absolute; right: 0; top: calc(100% + 12px); z-index: 10; width: 230px; padding: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; box-shadow: 0 14px 40px #17141925; }
.profile-identity { padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.profile-identity b, .profile-identity span { display: block; overflow-wrap: anywhere; }
.profile-identity span { font-size: 12px; color: var(--muted); margin-top: 5px; }
.profile-dropdown button { display: block; width: 100%; padding: 11px; text-align: left; border: 0; border-radius: 8px; color: var(--ink); background: transparent; }
.profile-dropdown button:hover { background: var(--pale); }
:root[data-theme='dark'] { color-scheme: dark; --ink: #f0e7ec; --muted: #b2a2ad; --pink: #e397b1; --pale: #392c35; --line: #42343e; --surface: #251f27; --bg: #19161d; --green: #9bcaac; --shadow: 0 8px 24px #0002; }
[data-theme='dark'] .main { background: var(--bg); }
[data-theme='dark'] :is(.sidebar,.metric,.panel,.table-panel,.calendar-panel,.modal,.agenda-filters,.login-card,.finance-card,.profile-dropdown) { background: var(--surface); color: var(--ink); }
[data-theme='dark'] :is(input,select,textarea,.icon-button,.button.secondary,.close,.search input,.calendar-mode,.quick,.salon-card,.catalog-choice) { background: #2e2730; color: var(--ink); border-color: var(--line); }
[data-theme='dark'] :is(.data-table th,.other-month,.time-label,.cal-head,.time-head) { background: #211c24; color: var(--muted); }
[data-theme='dark'] :is(.data-table td,.appointment,.history-row,.user-card,.finance-entry,.day-slot,.day-slot-time,.month-cell,.week-day,.cal-cell,.week-day-head) { border-color: var(--line); }
[data-theme='dark'] :is(.nav button,.brand-sub,.crumb,.field label,.calendar-toolbar h2,.brand-name) { color: var(--ink); }
[data-theme='dark'] :is(.nav button.active,.nav button:hover,.calendar-mode.active,.quick:hover,.appointment.clickable:hover,.month-cell:hover,.week-day:hover,.day-slot:hover,.week-day.today,.history-row:hover) { background: var(--pale); color: #f1b6cb; }
[data-theme='dark'] .button:not(.secondary) { background: #a94f70; color: white; }
[data-theme='dark'] :is(.calendar-event,.day-event) { background: #49303d; color: #f6d9e5; }
[data-theme='dark'] .tag { background: #49303d; color: #f3bed3; }
[data-theme='dark'] .tag.confirmed { background: #253e32; color: #b5dfc2; }
[data-theme='dark'] .tag.pending { background: #47392a; color: #edd0a0; }
[data-theme='dark'] .avatar { background: #503446; color: #efb8ce; }
[data-theme='dark'] .dashboard-hero { background: linear-gradient(90deg,#251f27 0%,#251f27f0 35%,#251f2799 70%,#251f2730),var(--salon-logo) center/cover no-repeat; border-color: var(--line); }
[data-theme='dark'] .dashboard-hero-copy h1 { color: var(--ink); }
[data-theme='dark'] .dashboard-hero-copy p { color: var(--muted); }
[data-theme='dark'] .login-screen { background: radial-gradient(ellipse at top,#352c32,var(--bg)); }
[data-theme='dark'] .expense { color: #ef9baf; }
[data-theme='dark'] .system-topbar-signature { color: #c5b485; }
[data-theme='dark'] .sidebar::before { opacity: .07; filter: none; }
@media print { :root[data-theme='dark'] { color-scheme: light; } .sidebar::before,.profile-dropdown { display: none; } }
