.design-switch { margin: 6px 20px 0; flex-shrink: 0; }
.design-switch button {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    min-height: 38px; padding: 6px 10px; border: 1px solid #b7c7d1; border-radius: 8px;
    background: #dfe8ed; color: #3f5d6b; font-size: 12px; font-weight: 650; cursor: pointer;
}
.design-switch button:hover { background: #d1dfe7; }
.design-switch button:focus-visible { outline: 2px solid #527887; outline-offset: 3px; }
.design-switch .design-icon { font-size: 20px; line-height: 1; }
#sidebar .brand-mark picture { display: grid; width: 100%; height: 100%; }
.collapsed .design-switch { margin-inline: 10px; }
@media (max-width: 850px) { .design-switch { margin-inline: 8px; } .design-switch .nav-text { display: none; } }

.login-design-switch { align-self: flex-start; margin: 12px 0 0; }
.login-design-switch .nav-text { display: inline; }
.login-design-switch button {
    min-height: 42px; gap: 10px; padding: 5px 13px 5px 5px; border-radius: 999px;
    background: #eef4f5; border-color: #c4d5dc; color: #35515f;
}
.login-design-switch button:hover { background: #e2edf0; }
.theme-track {
    position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, 1fr);
    place-items: center; width: 54px; height: 28px; border-radius: 999px;
    background: #dce7ed; color: #536f80;
}
.theme-track::before {
    content: ""; position: absolute; inset: 3px auto 3px 3px; z-index: -1; width: 22px;
    border-radius: 50%; background: #fff8df; box-shadow: 0 1px 3px #182a3940;
}
.theme-track svg { width: 15px; height: 15px; }
.theme-sun { color: #80590e; }
.login-screen {
    background: linear-gradient(95deg, #dbe6ecf5, #dbe6ec82), url('/static/background.png') center/cover;
}
.login-story { color: #233f4a; }
.login-story :is(p, .eyebrow.light, .story-bottom) { color: #3f5d6b; }
.login-story .round-mark { background: #f5fafc99; border-color: #74919f; }

[data-design="new"] {
    --design-ink: #183035;
    --design-muted: #4e666a;
    --design-line: #cbded6;
    --design-shadow: 0 12px 28px #193c3c15, 0 2px 5px #193c3c16, inset 0 1px #fff;
    --design-sidebar: linear-gradient(155deg, #243d42, #172e34 82%);
}
[data-design="new"] body { color: var(--design-ink); }
[data-design="new"] #sidebar {
    background: var(--design-sidebar);
    border-color: #203c40; box-shadow: 5px 0 25px #1836342a;
}
[data-design="new"] #sidebar .brand-text,
[data-design="new"] #sidebar .brand-text b,
[data-design="new"] #sidebar .profile b,
[data-design="new"] #sidebar #sidebar-time { color: #edf6f2; }
[data-design="new"] #sidebar .brand-text small,
[data-design="new"] #sidebar .profile small,
[data-design="new"] #sidebar .nav-caption,
[data-design="new"] #sidebar .prototype small { color: #b1c9c5; }
[data-design="new"] #sidebar nav button,
[data-design="new"] #sidebar .sidebar-bottom > button { color: #e2efeb; }
[data-design="new"] #sidebar nav button { border: 1px solid transparent; border-radius: 11px; }
[data-design="new"] #sidebar nav button:hover { background: #ffffff12; }
[data-design="new"] #sidebar nav button.active,
[data-design="new"] #sidebar nav button[aria-current="page"] {
    background: linear-gradient(#426760, #335a53); border-color: #63897d;
    box-shadow: 0 4px 10px #0003, inset 0 1px #ffffff28;
}
[data-design="new"] #sidebar nav .nav-icon {
    display: inline-grid; place-items: center; border-radius: 9px; background: var(--nav-tile);
    box-shadow: 0 2px 5px #0004, inset 0 1px #fffc;
}
[data-design="new"] #sidebar nav .nav-icon img { width: 88%; height: 88%; object-fit: contain; }
[data-design="new"] [data-page="search"] { --nav-tile: #a9dec9; }
[data-design="new"] [data-page="crm"] { --nav-tile: #b4d9f4; }
[data-design="new"] [data-page="history"] { --nav-tile: #d6c9f0; }
[data-design="new"] [data-page="users"] { --nav-tile: #f6d3a0; }
[data-design="new"] [data-page="security"] { --nav-tile: #f2bfb9; }
[data-design="new"] #sidebar :is(.sidebar-clock,.sidebar-calendar,.prototype,.collapse) {
    background: #122a30; border-color: #56736f; color: #dce9e7;
}
[data-design="new"] #sidebar :is(.calendar-day,.calendar-heading b,.calendar-today,.calendar-weekdays) { color: #dce9e7; }
[data-design="new"] #sidebar .calendar-day.is-today { color: #173f38; background: #b4e0ce; }
[data-design="new"] #sidebar .hamburger i { background: #dce9e7; }
[data-design="new"] #sidebar .profile { border-color: #56736f; }
[data-design="new"] #sidebar .design-switch button,
[data-design="new"] .login-design-switch button,
[data-design="new"] #sidebar .api-balance-link a { background: #335851; border-color: #63897d; color: #f1faf7; }
[data-design="new"] #sidebar .design-switch button:hover,
[data-design="new"] .login-design-switch button:hover,
[data-design="new"] #sidebar .api-balance-link a:hover { background: #426760; }
[data-design="new"] .theme-track { background: #223f43; color: #edf6ff; }
[data-design="new"] .theme-track::before { left: 29px; background: #d7e8f8; }
[data-design="new"] .theme-sun { color: #e3d4a0; }
[data-design="new"] .theme-moon { color: #27415b; }
[data-design="new"] .workspace main { background: #e9efed; }
[data-design="new"] .workspace header { background: #f4f8f6; border-color: #d5e1df; }
[data-design="new"] .page-title {
    padding: clamp(14px,2.2vw,28px); border: 1px solid var(--design-line); border-radius: 20px;
    background: linear-gradient(90deg,#edf8f3 8%,#edf8f3e8 57%,#daede475), url('/static/background.png') right 44%/cover;
    box-shadow: var(--design-shadow);
}
[data-design="new"] .page-title h1 { color: var(--design-ink); letter-spacing: -.03em; }
[data-design="new"] .page-title p { color: var(--design-muted); }
[data-design="new"] :is(.panel,.metric,.role-cards > div,.offer-summary > div,.photo-item-result,.quote-card) {
    background: linear-gradient(145deg,#fff,#f8fbfa); border-color: #d5e0dc;
    border-radius: 17px; box-shadow: var(--design-shadow);
}
[data-design="new"] :is(.search-mode-tabs,.notice) { background: #e3ece8; border-color: var(--design-line); }
[data-design="new"] :is(.workspace,.login-card) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    border-color: #cbdad6; background-color: #f7faf8; color: var(--design-ink);
    box-shadow: inset 0 2px 3px #233d3610;
}
[data-design="new"] :is(.btn.primary,.btn.login-submit) {
    background: linear-gradient(#367d6d,#20594e); border-color: #20584b; color: white;
    box-shadow: 0 3px 0 #17483f, 0 7px 13px #12372e26, inset 0 1px #ffffff35;
}
[data-design="new"] :is(.btn.primary,.btn.login-submit):active {
    transform: translateY(2px); box-shadow: 0 1px 0 #17483f;
}
[data-design="new"] :is(.btn.primary,.btn.login-submit):disabled { opacity: .6; }
[data-design="new"] .workspace th { background: #edf4ef; color: #2c5147; }
[data-design="new"] .workspace td { border-color: #d5e1df; }
[data-design="new"] .login-screen {
    background: linear-gradient(95deg,#243d42f5,#172e3499), url('/static/background.png') center/cover;
}
[data-design="new"] .login-story { color: #edf6f2; }
[data-design="new"] .login-story :is(p, .eyebrow.light, .story-bottom) { color: #dce9e7; }
[data-design="new"] .login-story .round-mark { background: #122a3066; border-color: #89aaa2; }
[data-design="new"] .login-card { background: #f4f8f6; box-shadow: 0 20px 55px #122b3766, inset 0 1px #fff; }
@media (prefers-reduced-motion: reduce) {
    [data-design="new"] :is(.btn.primary,.btn.login-submit):active { transform: none; }
}
