/* KOTPROD Creative OS — component system shared by the CRM and Tasks. */
:root, .premium-theme, .workspace {
  --crm-shadow-soft: var(--os-shadow-sm) !important;
  --crm-shadow-card: var(--os-shadow-md) !important;
  --crm-shadow-float: var(--os-shadow-lg) !important;
}
body .premium-theme.premium-theme { --workspace-sidebar-width: 208px; --crm-dock-reserve: var(--os-sidebar-reserve); }
body:has(.crm-sidebar-root.is-compact) { --os-sidebar-reserve: 104px; }
body:has(.crm-sidebar-root.is-compact) .premium-theme.premium-theme { --workspace-sidebar-width: 76px; }
body .premium-theme :is(button,a,input,select,textarea) { -webkit-tap-highlight-color: transparent; }
body .premium-theme button { transition: background var(--os-duration-fast) var(--os-ease), color var(--os-duration-fast), box-shadow var(--os-duration-fast), transform var(--os-duration-fast); }
body .premium-theme button:not(:disabled):active { transform: translateY(1px); }
body :is(.premium-theme,.workspace) :is(input,textarea,select) { accent-color: var(--os-accent); border-radius: var(--os-radius-md); font-variant-numeric: tabular-nums; }
body .premium-theme :is(.clients-add-button,.crm-icon-add-button,.workspace-primary-button,.crm-login-submit,.crm-order-submit,.crm-client-submit):not(:disabled):hover,
body .workspace #newTaskBtn:hover { background: var(--os-accent-hover) !important; box-shadow: 0 3px 8px #d5232d25 !important; }
body .premium-theme :is(.clients-add-button,.crm-icon-add-button) { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--os-radius-md) !important; box-shadow: none !important; }
body .premium-theme :is(.clients-add-button,.crm-icon-add-button) svg { width: 20px; height: 20px; color: #fff !important; }
body .premium-theme :is(.crm-standalone-page,.team-page,.crm-account-page) { padding-top: 24px; }
body .premium-theme :is(.crm-standalone-inner,.crm-content-inner) { max-width: 1800px; }

/* Fixed light navigation. Group labels, rather than individual card frames. */
body .premium-theme .crm-sidebar { inset: 12px auto 12px 12px; padding: 16px 12px; background: var(--os-control) !important; border: 0 !important; border-radius: var(--os-radius-xl); box-shadow: var(--os-shadow-sm); transition: width 180ms var(--os-ease); }
body .premium-theme .crm-sidebar-brand { min-height: 92px; align-items: center; }
body .premium-theme .crm-sidebar-brand > img.crm-sidebar-wordmark { height: 92px; object-fit: contain; filter: none !important; }
body .premium-theme .crm-sidebar-welcome { margin: 12px 8px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--os-line-control); }
body .premium-theme .crm-sidebar-welcome > p { font-size: 11px; line-height: 1.4 !important; color: var(--os-muted-on-control); }
body .premium-theme .crm-sidebar-welcome > h2 { margin: 2px 0 12px; color: var(--os-on-control) !important; font-family: 'Geist Variable',sans-serif !important; font-size: 21px; line-height: 1.2 !important; font-weight: 550 !important; }
body .premium-theme .crm-sidebar-session { gap: 8px; align-items: center; flex-direction: row; font-size: 10px; }
body .premium-theme .crm-sidebar-session time > span:first-child { color: var(--os-muted); font-size: 9px; }
body .premium-theme .crm-sidebar-session time > span:last-child { color: var(--os-text); }
body .premium-theme .crm-sidebar-session button { color: var(--os-text) !important; background: transparent !important; border: 1px solid var(--os-line) !important; border-radius: 6px !important; padding: 5px 7px; min-height: 30px; box-shadow: none !important; }
body .premium-theme .crm-sidebar-session button:hover { background: #f0f0f0 !important; }
body .premium-theme .crm-sidebar > nav { scrollbar-width: thin; scrollbar-color: #444b57 transparent; padding: 0; }
.os-nav-group + .os-nav-group { margin-top: 18px; }
body .premium-theme .crm-sidebar-section-label { margin: 0 12px 8px; color: var(--os-muted); font-size: 10px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
body .premium-theme .crm-sidebar-items { gap: 3px; }
body .premium-theme button.crm-sidebar-item { border: 0 !important; border-radius: 8px !important; min-height: 40px; padding: 10px 12px; color: var(--os-text) !important; background: transparent !important; box-shadow: none !important; gap: 10px; font-size: 13px; font-weight: 450; line-height: 1.35; }
body .premium-theme button.crm-sidebar-item:hover { background: var(--os-control-raised) !important; color: var(--os-text) !important; }
body .premium-theme button.crm-sidebar-item.is-active { color: var(--os-accent) !important; background: var(--os-accent-soft) !important; font-weight: 550; }
body .premium-theme .crm-sidebar-item.is-active svg { color: var(--os-accent) !important; }
body .premium-theme .crm-sidebar-item > i { display: none; }
body .premium-theme .os-sidebar-collapse { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--os-muted); min-height: 28px; padding: 4px 8px; background: transparent; border: 0; font-size: 10px; cursor: pointer; }
.os-sidebar-collapse svg { flex-shrink: 0; }
body .premium-theme .os-sidebar-collapse:hover { color: var(--os-text); background: #f0f0f0; }
body .is-compact .crm-sidebar { padding-inline: 8px; }
body .is-compact .crm-sidebar-brand { min-height: 48px; }
body .is-compact .crm-sidebar-brand > img.crm-sidebar-wordmark { height: 44px; width: 44px; }
body .is-compact :is(.crm-sidebar-welcome > p,.crm-sidebar-welcome > h2,.crm-sidebar-session time,.crm-sidebar-session > span,.crm-sidebar-session button span,.crm-sidebar-item > span,.crm-sidebar-section-label,.os-sidebar-collapse > span) { display: none !important; }
body .is-compact .crm-sidebar-welcome { margin: 12px 0; padding-bottom: 12px; }
body .is-compact .crm-sidebar-session, body .is-compact .os-sidebar-collapse { justify-content: center; }
body .is-compact .crm-sidebar-session button { width: 40px; min-height: 36px; }
body .is-compact button.crm-sidebar-item { justify-content: center; padding-inline: 8px; min-height: 44px; }
body .is-compact .os-nav-group + .os-nav-group { padding-top: 12px; border-top: 1px solid var(--os-line-control); margin-top: 12px; }

/* One control surface contains the title, account and actual monthly earnings. */
body .premium-theme.premium-theme .crm-topbar-grid { display: grid !important; grid-template-columns: minmax(210px,.85fr) minmax(420px,1.35fr) !important; gap: 0 !important; align-items: stretch; background: var(--os-control); border-radius: var(--os-radius-xl); box-shadow: var(--os-shadow-sm); overflow: hidden; }
body .premium-theme.premium-theme .crm-topbar-grid :is(.crm-title-panel,.crm-profile-panel,.crm-dashboard-earnings) { background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; border-radius: 0 !important; min-height: 88px !important; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-title-panel { padding: 20px 24px !important; gap: 16px; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-title-panel h1 { font-size: 28px !important; }
body .premium-theme.premium-theme .crm-dashboard-account-summary { display: grid; grid-template-columns: minmax(230px,1.2fr) minmax(180px,.8fr) !important; gap: 0 !important; min-width: 0; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-profile-panel { padding: 16px 20px !important; border-left: 0 !important; }
body .premium-theme.premium-theme .crm-topbar-grid .os-profile-avatar { border: 2px solid var(--os-line) !important; background: var(--os-control-raised) !important; width: 44px !important; height: 44px !important; }
body .premium-theme .crm-topbar-grid .os-profile-avatar > div { color: var(--os-text) !important; }
body .premium-theme .crm-topbar-grid .os-profile-name { color: var(--os-on-control) !important; font-size: 13px !important; margin-bottom: 6px !important; font-weight: 550 !important; }
body .premium-theme .crm-topbar-grid :is(.os-profile-rank,.os-profile-kots) { border: 0 !important; background: var(--os-control-raised) !important; box-shadow: none !important; color: var(--os-text) !important; border-radius: 6px !important; }
body .premium-theme .crm-topbar-grid .os-profile-rank { font-size: 9px !important; padding: 0 7px !important; }
body .premium-theme .crm-topbar-grid .os-profile-kots { height: 24px !important; padding: 0 7px !important; gap: 5px !important; }
body .premium-theme .crm-topbar-grid .os-profile-kots :is(span,b) { color: var(--os-text) !important; }
body .premium-theme .crm-topbar-grid .os-profile-kots img { width: 15px !important; height: 15px !important; filter: none !important; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { background: linear-gradient(125deg,#fff5f2,#fbe8e4) !important; border-left: 0 !important; padding: 16px 20px !important; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings > span { color: var(--os-muted-on-control) !important; font-size: 10px !important; letter-spacing: .03em !important; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings > strong { color: #aa302b !important; font-size: 28px !important; font-weight: 650 !important; font-variant-numeric: tabular-nums; margin-top: 8px !important; letter-spacing: -.035em; text-shadow: none !important; }
body .premium-theme .crm-title-panel button[aria-label="Админ-инструменты"] { border: 0 !important; background: var(--os-control-raised) !important; color: var(--os-text) !important; box-shadow: none !important; }
body .premium-theme .crm-topbar-grid .account-mode-switch { background: #f0f0f0 !important; border: 0 !important; box-shadow: none !important; padding: 3px !important; }
body .premium-theme .crm-topbar-grid .account-mode-switch button { background: transparent !important; color: var(--os-muted) !important; border: 0 !important; box-shadow: none !important; }
body .premium-theme.premium-theme .crm-topbar-grid .account-mode-switch button.is-active { background: var(--os-accent) !important; color: #fff !important; }
body .premium-theme .crm-topbar-grid .account-mode-switch button.is-active :is(svg,[stroke]) { color: #fff !important; stroke: #fff !important; }
.os-value-change { animation: os-value-in 220ms var(--os-ease); }
@keyframes os-value-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Semantic order states share their hue across board, rows and analytics. */
[data-status] { --os-status: var(--os-status-new); --os-status-ink: #535f74; }
[data-status="in_progress"] { --os-status: var(--os-status-progress); --os-status-ink: #875807; }
[data-status="paid"] { --os-status: var(--os-status-payment); --os-status-ink: #365fc6; }
[data-status="completed"] { --os-status: var(--os-status-completed); --os-status-ink: #147040; }
[data-status="cancelled"], [data-status="failed"] { --os-status: var(--os-status-error); --os-status-ink: #bd202b; }
.os-order-status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; min-height: 22px; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb,var(--os-status) 11%,white); color: var(--os-status-ink); font-size: 10px; line-height: 1.4; font-weight: 550; white-space: nowrap; }
.os-order-status svg { flex-shrink: 0; }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-grid { gap: 12px !important; align-items: start; }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column { background: var(--os-well) !important; border: 0 !important; border-radius: var(--os-radius-lg) !important; box-shadow: none !important; backdrop-filter: none !important; padding: 0 !important; }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column-header { min-height: 52px; padding: 12px 12px 10px !important; gap: 9px; background: transparent !important; border: 0 !important; }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column-header h3 { font-size: 17px !important; flex: 1; min-width: 0; }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column-header > .crm-kanban-column-icon { color: var(--os-status) !important; width: 19px !important; height: 19px !important; background: transparent !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column-header > span { color: var(--os-status-ink) !important; background: #ffffffa6 !important; padding: 3px 8px !important; min-width: 24px; min-height: 24px; display: grid; place-items: center; font-family: 'Geist Variable',sans-serif !important; font-weight: 650; font-size: 11px !important; border: 0 !important; border-radius: 6px !important; font-variant-numeric: tabular-nums; }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column-header > button { border: 0 !important; margin-left: 0 !important; color: #737373 !important; background: transparent !important; width: 24px !important; min-width: 24px !important; height: 28px !important; border-radius: 6px !important; }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column-header > button:hover { background: #ffffff70 !important; }
body .premium-theme.premium-theme :is(.crm-kanban-column-body,.dashboard-column-orders-scroll) { background: transparent !important; border-radius: 0 !important; padding: 0 10px 10px !important; }
body .premium-theme .crm-kanban-column-body > div { color: var(--os-muted); }
body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column[data-status] .crm-kanban-column-body { background: transparent !important; }
body .premium-theme.premium-theme .crm-compact-order-card { border: 1px solid #eee !important; border-radius: var(--os-radius-md) !important; background: var(--os-card) !important; padding: 14px !important; margin-bottom: 10px; box-shadow: var(--os-shadow-sm) !important; transition: transform 160ms var(--os-ease),box-shadow 160ms var(--os-ease),opacity 180ms; color: var(--os-text); }
body .premium-theme.premium-theme .crm-compact-order-card:not(.is-static):hover { transform: translateY(-2px); box-shadow: var(--os-shadow-md) !important; }
body .premium-theme.premium-theme .crm-compact-order-card.is-dragging { transform: rotate(1deg) scale(1.015); box-shadow: var(--os-shadow-lg) !important; opacity: .86 !important; cursor: grabbing; }
body .premium-theme .crm-compact-order-heading { align-items: flex-start; gap: 10px; margin-bottom: 8px; }
body .premium-theme.premium-theme .crm-compact-order-heading h4 { font-family: 'Geist Variable',sans-serif !important; text-transform: none !important; font-size: 14px !important; line-height: 1.4; font-weight: 550 !important; letter-spacing: -.015em !important; }
body .premium-theme :is(.crm-compact-order-heading > strong,.crm-compact-price > strong,.crm-mobile-order-price > strong) { color: #a1242e !important; background: #fff0f1 !important; border: 0 !important; border-radius: 6px; padding: 5px 8px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
body .premium-theme .crm-compact-price > small { color: var(--os-muted); font-size: 10px; }
.os-order-state { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin-bottom: 10px; }
body .premium-theme :is(.os-order-state .crm-compact-deadline,.os-order-state .crm-compact-status-note) { color: var(--os-muted); font-size: 10px; }
body .premium-theme .os-order-state .is-urgent { color: var(--os-status-error); }
body .premium-theme .crm-compact-order-meta { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
body .premium-theme .crm-compact-tariff { border: 0; padding: 0; border-radius: 0; background: none; gap: 3px; }
body .premium-theme .crm-compact-tariff small { display: none; }
body .premium-theme .crm-compact-tariff strong { font-size: 12px; line-height: 1.45; color: #525252; font-weight: 500; }
body .premium-theme button.crm-compact-client { gap: 8px; min-height: 32px; }
body .premium-theme .crm-compact-client small { display: none; }
body .premium-theme .crm-compact-client strong { font-size: 12px; color: var(--os-text); font-weight: 550; }
body .premium-theme .crm-compact-avatar { border: 2px solid #fff; box-shadow: 0 0 0 1px var(--os-line); background: #f0f0f0; color: #737373; }
body .premium-theme .crm-compact-avatar.is-empty { border: 1px dashed #ccc; box-shadow: none; background: #f5f5f5; }
body .premium-theme .crm-compact-avatar.is-client { width: 30px; height: 30px; flex-basis: 30px; background: #f4f4f4; }
body .premium-theme .crm-compact-order-footer { display: flex; align-items: flex-end; gap: 4px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--os-line); }
body .premium-theme .crm-compact-order-team { flex: 1; min-width: 0; gap: 12px; }
body .premium-theme .crm-compact-role { font-size: 10px; color: var(--os-muted); margin-bottom: 2px; }
body .premium-theme .crm-compact-person { gap: 6px; }
body .premium-theme .crm-compact-person .crm-compact-avatar { width: 26px; height: 26px; flex-basis: 26px; }
body .premium-theme .crm-compact-person-name { font-size: 11px; line-height: 1.4; color: #525252; }
body .premium-theme button.crm-compact-more { align-self: flex-end; flex-shrink: 0; color: #737373; border-radius: 6px !important; }
body .premium-theme button.crm-compact-more:hover { color: var(--os-text); background: var(--os-soft) !important; }
body .premium-theme .crm-closed-order-card { background: var(--os-card) !important; box-shadow: var(--os-shadow-sm) !important; border: 0 !important; border-radius: var(--os-radius-md) !important; padding: 12px !important; margin-bottom: 10px !important; }
body .premium-theme .crm-closed-order-title { color: var(--os-text) !important; font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; }
body .premium-theme .crm-closed-order-card button { border: 0 !important; background: #f5f5f5 !important; color: #737373 !important; }
body .premium-theme .crm-closed-order-actions > span { color: var(--os-status-completed) !important; }
body .premium-theme .crm-compact-actions-menu { border: 1px solid var(--os-line); border-radius: 12px; padding: 6px; background: #fff; box-shadow: var(--os-shadow-lg); animation: os-menu-in 180ms var(--os-ease); }
body .premium-theme .crm-compact-actions-menu > button { border-radius: 7px !important; min-height: 40px; color: #525252; font-size: 13px; gap: 10px; padding: 9px 10px; }
body .premium-theme .crm-compact-actions-menu > button:hover, body .premium-theme .crm-compact-actions-menu > button:focus-visible { background: var(--os-soft) !important; color: var(--os-text); }
@keyframes os-menu-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
/* Directory headers, tables and the common work surface. */
body .premium-theme.premium-theme :is(.clients-header,.crm-page-header,.workspace-page-heading) { border: 0 !important; border-radius: var(--os-radius-xl) !important; box-shadow: var(--os-shadow-sm) !important; background: var(--os-control) !important; color: var(--os-on-control); padding: 24px 28px !important; }
body .premium-theme.premium-theme .clients-header { margin: 0 0 20px; }
body .premium-theme.premium-theme .clients-heading-row { justify-content: space-between; gap: 20px; }
body .premium-theme.premium-theme :is(.clients-heading,.workspace-page-heading h1) { font-size: 28px !important; line-height: 1.3 !important; }
body .premium-theme.premium-theme .crm-page-header h1 { font-size: 28px !important; }
body .premium-theme .workspace-page-heading > div > p { color: var(--os-muted); font-size: 10px; letter-spacing: .08em; }
body .premium-theme .crm-page-header > :is(p,div:first-child) { color: var(--os-muted-on-control) !important; }
body .premium-theme .clients-controls { max-width: none; margin-top: 20px; gap: 16px; }
body .premium-theme .clients-tabs { gap: 4px; background: var(--os-control-raised); padding: 4px; border-radius: var(--os-radius-md); }
body .premium-theme.premium-theme .clients-tab { background: transparent !important; border: 0 !important; border-radius: 6px !important; color: var(--os-muted) !important; box-shadow: none !important; min-height: 36px; font-size: 12px; text-transform: none; padding: 8px 14px; }
body .premium-theme.premium-theme .clients-tab:hover { background: #f0f0f0 !important; color: var(--os-text) !important; }
body .premium-theme.premium-theme .clients-tab.is-active, body .premium-theme.premium-theme .clients-tab[aria-pressed="true"] { background: #fff !important; color: var(--os-text) !important; }
body .premium-theme .clients-tab > span { border: 0 !important; background: #e5e5e5 !important; color: var(--os-text) !important; box-shadow: none !important; }
body .premium-theme .clients-tab.is-active > span { background: #fff !important; color: var(--os-accent) !important; }
body .premium-theme.premium-theme .clients-search { background: var(--os-control-raised) !important; border: 1px solid #d9dee6 !important; border-radius: var(--os-radius-md); min-height: 44px; box-shadow: none; color: var(--os-muted) !important; }
body .premium-theme .clients-search input { background: transparent !important; color: var(--os-text) !important; -webkit-text-fill-color: var(--os-text) !important; font-family: 'Geist Variable',sans-serif !important; font-size: 14px; border: 0 !important; text-transform: none; }
body .premium-theme .clients-search input::placeholder { color: var(--os-muted) !important; -webkit-text-fill-color: var(--os-muted) !important; }
body .premium-theme .clients-search svg { color: var(--os-muted) !important; }
body .premium-theme.premium-theme :is(.clients-table,.team-members-table,.crm-data-table,.workspace-surface,.workspace-metrics > article,.workspace-tool,.crm-account-details-card,.crm-account-summary-card) { background: var(--os-card) !important; border: 0 !important; border-radius: var(--os-radius-lg) !important; box-shadow: var(--os-shadow-md) !important; backdrop-filter: none !important; }
body .premium-theme.premium-theme :is(.clients-table-head,.team-members-head) { background: #fafafa !important; color: var(--os-muted) !important; border-bottom: 1px solid var(--os-line) !important; min-height: 40px; font-size: 10px !important; letter-spacing: .04em; font-weight: 600; }
body .premium-theme.premium-theme :is(.clients-table-row,.team-member-row) { background: #fff !important; border-bottom: 1px solid var(--os-line) !important; border-top-color: transparent; padding-block: 12px !important; transition: background 140ms; }
body .premium-theme.premium-theme :is(.clients-table-row,.team-member-row):hover { background: #fafafa !important; }
body .premium-theme.premium-theme :is(.clients-table-row,.crm-mobile-client-card) select { background: transparent !important; color: #525252 !important; border: 1px solid transparent !important; box-shadow: none !important; font-family: 'Geist Variable',sans-serif !important; font-size: 13px !important; font-weight: 500 !important; border-radius: 7px; }
body .premium-theme :is(.clients-table-row,.crm-mobile-client-card) select:hover, body .premium-theme :is(.clients-table-row,.crm-mobile-client-card) select:focus { background: var(--os-soft) !important; border-color: #ddd !important; }
body .premium-theme .clients-table-row :is(.clients-order-count,.clients-revenue) { font-variant-numeric: tabular-nums; color: var(--os-text) !important; }
body .premium-theme .team-member-row { min-height: 76px; }
body .premium-theme .team-member-row strong { font-weight: 600; }
body .premium-theme :is(.team-member-departments,.team-member-composition) > span { border: 0; border-radius: 5px; background: #f4f4f4; color: #525252; padding: 3px 7px; min-height: 23px; }
body .premium-theme .team-member-action button { border: 0; background: var(--os-soft); border-radius: 8px; }
body .premium-theme .team-member-action button:hover { color: var(--os-accent); background: var(--os-accent-soft); }
body .premium-theme .workspace-page-heading .workspace-secondary-button { color: var(--os-text); background: var(--os-control-raised); border: 0; box-shadow: none; }
body .premium-theme .workspace-page-toolbar { color: #737373; font-size: 13px; }
body .premium-theme .workspace-page-toolbar select { border: 0 !important; background: #f7f7f7 !important; min-height: 42px; padding: 10px 12px; box-shadow: var(--os-shadow-sm); color: var(--os-text); }
body .premium-theme .workspace-metrics { gap: 16px; }
body .premium-theme .workspace-metrics > article { padding: 20px; position: relative; overflow: hidden; }
body .premium-theme .workspace-metrics > article[data-status]::before { content: ''; position: absolute; top: 20px; right: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--os-status); }
body .premium-theme .workspace-metrics > article > span { color: var(--os-muted); font-size: 12px; }
body .premium-theme .workspace-metrics > article > strong { color: var(--os-text); font-size: 30px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
body .premium-theme .workspace-metrics > article > small { color: var(--os-muted); font-size: 11px; }
body .premium-theme .workspace-surface { padding: 24px; }
body .premium-theme .workspace-surface h2 { font-size: 20px; font-weight: 600; color: var(--os-text); }
body .premium-theme .workspace-status-list i { background: var(--os-status); }
body .premium-theme .workspace-status-list > div > div { background: #e5e9ef; height: 6px; }
body .premium-theme .workspace-month-chart i { background: linear-gradient(0deg,#aeb8c8,#56677e); }
body .premium-theme .workspace-month-chart > div > div { background: #edf0f5; border-radius: 6px 6px 0 0; }
body .premium-theme .workspace-personal-payouts table th { color: var(--os-muted); background: var(--os-soft); }
body .premium-theme .workspace-personal-payouts table td { border-color: var(--os-line); font-variant-numeric: tabular-nums; }
body .premium-theme .workspace-tool { min-height: 220px; padding: 24px; transition: transform 160ms var(--os-ease),box-shadow 160ms; }
body .premium-theme .workspace-tool:hover { transform: translateY(-3px); box-shadow: var(--os-shadow-lg) !important; }
body .premium-theme .workspace-tool-icon { background: #edf0f5; border: 0; border-radius: 10px; width: 44px; height: 44px; color: #4b5c73; margin-bottom: 24px; }
body .premium-theme .workspace-tool-action { color: var(--os-accent); font-weight: 550; font-size: 12px; }
body .premium-theme .workspace-tool-arrow { color: #728096; }
body .premium-theme .workspace-tool h2 { color: var(--os-text); font-size: 18px; }
body .premium-theme .workspace-tool p { color: var(--os-muted); font-size: 13px; }
body .premium-theme .workspace-settings-list { background: var(--os-card); border-radius: var(--os-radius-lg); overflow: hidden; box-shadow: var(--os-shadow-md); gap: 0; }
body .premium-theme .workspace-settings-list > * { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--os-line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 24px; }
body .premium-theme .workspace-settings-list > a:hover { background: var(--os-soft) !important; }
body .premium-theme .workspace-settings-list h2 { color: var(--os-text); font-size: 17px; }
body .premium-theme .workspace-settings-list p { color: var(--os-muted); font-size: 13px; }
body .premium-theme.premium-theme .workspace-access-card { background: var(--os-control) !important; color: var(--os-on-control); padding: 28px; }
body .premium-theme .workspace-access-card :is(h2,p,label) { color: var(--os-on-control) !important; }
body .premium-theme .workspace-access-card > p { color: var(--os-muted-on-control) !important; }
body .premium-theme .workspace-access-card > svg { color: #ff7d87; }
body .premium-theme .workspace-access-card input { background: var(--os-control-raised) !important; color: var(--os-text) !important; border: 1px solid var(--os-line) !important; padding: 12px; }
body .premium-theme .workspace-access-card .workspace-secondary-button { color: var(--os-text); background: var(--os-control-raised); border-color: var(--os-line); }
body .premium-theme .workspace-documents > * { border-color: var(--os-line); padding: 18px 0; color: var(--os-text); }
body .premium-theme .workspace-documents p { color: var(--os-muted); }

/* Personal data, payments and editing surfaces use the same light elevation. */
body .premium-theme.premium-theme :is(.crm-metric-card,.crm-payment-card,.crm-account-info-card,.crm-account-project-row,.team-profile-section,.team-project-card,.team-work-card,.team-info-card) { border: 0 !important; border-radius: var(--os-radius-lg) !important; background: var(--os-card) !important; box-shadow: var(--os-shadow-sm) !important; }
body .premium-theme.premium-theme .crm-payment-page .crm-metric-card:nth-child(n) { background: #fff !important; border: 0 !important; box-shadow: var(--os-shadow-md) !important; }
body .premium-theme .crm-payment-page .crm-metric-card::after { display: none !important; }
body .premium-theme .crm-payment-page .crm-metric-card > div:first-child { color: var(--os-muted) !important; }
body .premium-theme .crm-payment-page .crm-metric-card > div:last-child { color: var(--os-text) !important; font-family: 'Geist Variable',sans-serif !important; font-size: 28px !important; font-weight: 650; }
body .premium-theme .crm-payment-page .crm-payment-card { padding: 20px !important; box-shadow: var(--os-shadow-md) !important; }
body .premium-theme .crm-payment-page .crm-payment-payout-order-row { background: var(--os-soft) !important; border: 0 !important; border-radius: 8px !important; }
body .premium-theme.premium-theme .crm-account-overview { background: var(--os-control) !important; border-radius: var(--os-radius-xl); padding: 28px !important; box-shadow: var(--os-shadow-md); }
body .premium-theme .crm-account-identity { width: auto !important; min-width: 0; padding: 0; }
body .premium-theme .crm-account-avatar { width: 112px !important; height: 112px !important; border: 3px solid var(--os-line) !important; box-shadow: 0 8px 24px #00000028 !important; }
body .premium-theme .crm-account-avatar > span { background: var(--os-control-raised) !important; color: var(--os-text) !important; }
body .premium-theme .crm-account-identity [class*="font-kotprodru"] { line-height: 1.5 !important; }
body .premium-theme .crm-account-identity button { color: #fff !important; background: var(--os-accent) !important; border: 0 !important; box-shadow: var(--os-shadow-sm) !important; }
body .premium-theme .crm-account-identity [class*="rounded-full"]:not(button) { background: #f0f0f0; color: var(--os-muted); border-color: var(--os-line); }
body .premium-theme.premium-theme .crm-account-info-card { background: var(--os-soft) !important; box-shadow: none !important; border-radius: 8px !important; padding: 14px !important; }
body .premium-theme .crm-account-info-card p:first-child { color: var(--os-muted); }
body .premium-theme .crm-account-info-card p:last-child { color: #525252; }
body .premium-theme.premium-theme .crm-account-project-row { background: var(--os-soft) !important; border-radius: 7px !important; box-shadow: none !important; padding: 12px; }
body .premium-theme .crm-account-details-card, body .premium-theme .crm-account-summary-card { padding: 20px !important; }
body .premium-theme .crm-account-summary-card [class*="text-2xl"] { font-family: 'Geist Variable',sans-serif !important; -webkit-text-stroke: 0 !important; -webkit-text-fill-color: var(--os-text) !important; text-shadow: none !important; color: var(--os-text) !important; font-size: 28px; font-weight: 650; }
body .premium-theme .team-profile-section { background: var(--os-soft) !important; box-shadow: none !important; }
body .premium-theme :is(.team-profile-modal,.crm-drawer,.crm-modal-card), body [data-slot="dialog-content"] { background: #fff !important; border: 0 !important; border-radius: var(--os-radius-xl) !important; box-shadow: var(--os-shadow-lg) !important; color: var(--os-text); }
body .premium-theme :is(.crm-modal-overlay,.crm-drawer-overlay,.admin-suite-overlay), body [data-slot="dialog-overlay"] { background: rgba(15,21,31,.38) !important; backdrop-filter: blur(4px) !important; }
body .premium-theme .crm-modal-header { background: var(--os-soft); border-bottom: 1px solid var(--os-line) !important; padding: 20px 24px !important; }
body .premium-theme .crm-modal-header h2, body :is(.crm-account-edit-dialog,.team-onboarding-modal) h2 { font-size: 20px !important; }
body .premium-theme .crm-modal-body { padding: 24px !important; }
body .premium-theme :is(.crm-modal-card,.team-profile-modal,.crm-drawer) :is(input:not([type="checkbox"]):not([type="file"]),textarea,select), body [data-slot="dialog-content"] :is(input:not([type="checkbox"]):not([type="file"]),textarea,select) { background: #fff !important; color: var(--os-text) !important; -webkit-text-fill-color: var(--os-text) !important; border: 1px solid #ddd !important; border-radius: 8px !important; box-shadow: none !important; }
body :is(.crm-account-edit-dialog,.team-onboarding-modal) { font-family: 'Geist Variable',sans-serif; }
body .crm-account-edit-dialog [aria-pressed] { color: #525252 !important; }
body .crm-account-edit-dialog [aria-pressed="true"] { color: var(--os-accent) !important; background: var(--os-accent-soft) !important; border-color: #efb4bb !important; }
body .crm-account-edit-dialog .crm-account-profile-footer { background: #fff !important; border-top: 1px solid var(--os-line); }
body .crm-account-edit-dialog .crm-account-profile-footer > button:first-child { color: #525252 !important; }
body .premium-theme :is(.workspace-empty,.team-filter-empty,.crm-payment-empty-state), body .workspace .empty-state { background: var(--os-soft) !important; border: 1px dashed #bfc8d5 !important; border-radius: var(--os-radius-lg) !important; box-shadow: var(--os-shadow-inset) !important; color: var(--os-muted); }
body .premium-theme .workspace-feedback { background: #fff; border: 1px solid var(--os-line); box-shadow: var(--os-shadow-sm); border-radius: 10px; color: #525252; }
body .premium-theme .workspace-feedback.is-error { background: #fceeed; color: #bd202b; border-color: #efb4bb; }
/* Task planner: an inset work area and raised task rows, not nested white frames. */
body .workspace .planner-hero { background: var(--os-control); border-radius: var(--os-radius-lg); padding: 20px; box-shadow: var(--os-shadow-md); --text: var(--os-text) !important; --muted: var(--os-muted) !important; }
body .workspace .planner-hero .today-label { background: var(--os-control-raised); color: var(--os-text); border: 0; box-shadow: none; }
body .workspace .planner-hero #currentDate { color: var(--os-muted); }
body .workspace .planner-hero :is(.icon-button,.profile-button,#profileBtn) { border: 0; background: var(--os-control-raised); color: var(--os-text); }
body .workspace .hero-actions > button:not(#newTaskBtn) { color: var(--os-text); background: var(--os-control-raised); border: 0; box-shadow: none; }
body .workspace .hero-actions #overdueBtn { color: #ffa0a7; }
body .workspace .planner-sidebar { background: var(--os-soft); border: 0; border-radius: var(--os-radius-lg); box-shadow: var(--os-shadow-inset); }
body .workspace .workspace-main { background: var(--os-well); border: 0; border-radius: var(--os-radius-lg); box-shadow: var(--os-shadow-inset); }
body .workspace .workspace-header { background: transparent; border-bottom: 1px solid #17171712; padding: 20px; }
body .workspace .workspace-header .icon-button, body .workspace .workspace-period-tools :is(button,select) { background: #ffffffa6; border: 0; color: #525252; box-shadow: none; border-radius: 7px; }
body .workspace .task-list { padding: 12px; }
body .workspace .task-row { background: #fff; border: 0; border-radius: 10px; box-shadow: var(--os-shadow-sm); margin-bottom: 10px; transition: transform 160ms var(--os-ease), box-shadow 160ms; }
body .workspace .task-row:hover { transform: translateY(-1px); box-shadow: var(--os-shadow-md); }
body .workspace .task-row .row-title strong { font-family: 'Geist Variable',sans-serif !important; font-size: 13px; font-weight: 600; }
body .workspace .task-row .row-context > :is(a,div) { border: 0; box-shadow: none; background: var(--os-soft); border-radius: 7px; }
body .workspace .task-group-heading { background: transparent; }
body .workspace .task-checkbox { border: 1.5px solid #ccc; border-radius: 5px; background: #fff; }
body .workspace .task-checkbox.is-checked { background: #147040; border-color: #147040; color: #fff; }
body .workspace #workspaceNav { background: #e5e9ef; padding: 4px; border-radius: 9px; }
body .workspace #workspaceNav button { border: 0; background: transparent; color: #737373; }
body .workspace #workspaceNav button.is-active { color: var(--os-accent); background: var(--os-control); box-shadow: var(--os-shadow-sm); }
body .workspace .row-menu > div { background: #fff; border: 1px solid var(--os-line); border-radius: 10px; box-shadow: var(--os-shadow-lg); }
body .workspace :is(.task-tools,.filter-field) { border-radius: 8px; }
body .modal .modal-backdrop { background: rgba(15,21,31,.38) !important; backdrop-filter: blur(4px); }
body .modal :is(.modal-panel,.modal-dialog,.task-form) { background: #fff; border: 0; border-radius: 20px; box-shadow: var(--os-shadow-lg); }
body .modal :is(input,textarea,select) { border: 1px solid #ddd; border-radius: 8px; background: #fff; color: var(--os-text); }

/* The rank room is deliberately more expressive than ordinary work screens. */
body .workflow-page { margin-left: var(--os-sidebar-reserve) !important; background: transparent !important; }
body .workflow-rank-screen { background: var(--os-control) !important; border: 0 !important; border-radius: var(--os-radius-xl); box-shadow: var(--os-shadow-md); color: var(--os-text); }
body .workflow-prize-stack h1, body .workflow-kotseria-panel h2 { font-family: 'Geist Variable',sans-serif !important; color: var(--os-text); font-weight: 650; text-transform: uppercase; font-synthesis: none; font-size: 28px; line-height: 1.5; }
body .workflow-prize-stack > span { background: var(--os-control-raised) !important; color: var(--os-text) !important; }
body .workflow-prize-stack strong { color: #fff !important; background: var(--os-accent) !important; font-family: 'Geist Variable',sans-serif; font-size: 48px; font-weight: 650; letter-spacing: -.05em; }
body .workflow-rank-path { isolation: isolate; }
body .workflow-rank-path::before { content: ''; display: block !important; position: absolute; width: 240px; height: 140px; left: 50%; top: 50%; transform: translate(-50%,-50%); background: radial-gradient(ellipse,#d5232d2b,transparent 70%); z-index: -1; }
body .workflow-rank-arrow { background: var(--os-control-raised) !important; border: 0 !important; color: var(--os-text) !important; }
body .workflow-rank-lock { background: var(--os-control-raised); color: var(--os-text); border-color: var(--os-line); }
body :is(.workflow-rank-side-card,.workflow-rank-balance-card,.workflow-rank-progress-card) { background: var(--os-control-raised) !important; border: 0 !important; border-radius: 12px; }
body .workflow-rank-side-title span, body .workflow-rank-side-card p, body .workflow-rank-balance-card p, body .workflow-rank-balance-card span, body .workflow-kotseria-panel > p { color: var(--os-muted-on-control) !important; }
body .workflow-rank-side-title b, body .workflow-rank-progress-card > div b { background: #f0f0f0; color: var(--os-text); }
body .workflow-rank-side-card p strong, body .workflow-rank-balance-card strong, body .workflow-rank-progress-card h2 { color: var(--os-text); }
body .workflow-rank-progress-card .workflow-progress { background: #d9dee6 !important; }
body .workflow-kotseria-panel { border-top-color: var(--os-line-control); }
body .workflow-kotseria-day span { background: var(--os-control-raised); color: var(--os-text); }
body .workflow-kotseria-day.active span { background: var(--os-accent); color: #fff; }
body .workflow-kotseria-day small, body .workflow-kotseria-day b { color: var(--os-muted); }
body .premium-theme .tools-launcher-shell { background: var(--os-control); color: var(--os-text); }
body .premium-theme .tools-launcher-app-tile { background: var(--os-control-raised); border-color: #f0f0f0; color: var(--os-text); }
body .premium-theme .tools-launcher-app-tile:hover { background: var(--os-control-raised); }

/* Shared account modes and compact action/empty states. */
body .premium-theme.premium-theme .account-mode-switch { background: #f0f0f0 !important; border: 0 !important; box-shadow: none !important; padding: 4px; border-radius: 10px; }
body .premium-theme.premium-theme .account-mode-switch .account-mode-switch-button { background: transparent !important; color: #737373 !important; border: 0 !important; box-shadow: none !important; }
body .premium-theme.premium-theme .account-mode-switch .account-mode-switch-button.is-active { background: var(--os-accent) !important; color: #fff !important; box-shadow: var(--os-shadow-sm) !important; }
body .premium-theme.premium-theme .account-mode-switch .account-mode-switch-button.is-active :is(svg,[stroke]) { color: #fff !important; stroke: #fff !important; }
body .premium-theme .crm-topbar-grid .account-mode-switch { background: #f0f0f0 !important; }
body .premium-theme .crm-topbar-grid .account-mode-switch .account-mode-switch-button { color: var(--os-muted) !important; }
body .premium-theme .os-board-empty { display: grid !important; place-content: center; gap: 8px; padding: 24px 16px !important; text-align: center; }
.os-board-empty > svg { justify-self: center; color: #7f8a9c; margin-bottom: 4px; }
.os-board-empty strong { font: 550 13px/1.5 'Geist Variable',sans-serif; color: #737373; }
.os-board-empty small { font: 400 11px/1.5 'Geist Variable',sans-serif; color: #737373; }

/* Responsive composition: the phone keeps its drawer and flat order lists. */
@media (min-width:769px) and (max-width:1199px) {
 body .premium-theme.premium-theme .crm-topbar-grid { grid-template-columns: minmax(0,1fr) !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-title-panel { min-height: 76px !important; border-bottom: 1px solid var(--os-line-control) !important; }
 body .premium-theme.premium-theme .crm-dashboard-account-summary { grid-template-columns: minmax(240px,1fr) minmax(180px,.8fr) !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-profile-panel { border-left: 0 !important; min-height: 80px !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { min-height: 80px !important; }
 body .premium-theme .crm-title-panel h1 { font-size: 24px !important; }
 body .premium-theme .crm-topbar-grid .account-mode-switch button { min-width: 32px; }
}
@media (max-width:768px) {
 body, body:has(.crm-sidebar-root.is-compact) { --os-sidebar-reserve: 0px; }
 body .premium-theme.premium-theme { --crm-dock-reserve: 0px; }
 body .premium-theme .crm-mobile-appbar { background: var(--os-control) !important; color: var(--os-text) !important; border-bottom: 1px solid var(--os-line-control); box-shadow: 0 2px 6px #10182812; }
 body .premium-theme .crm-mobile-page-name { color: var(--os-text); font-size: 16px; }
 body .premium-theme .crm-mobile-menu-trigger, body .premium-theme .crm-mobile-menu-close { color: var(--os-text) !important; background: var(--os-control-raised) !important; border: 0 !important; border-radius: 8px !important; box-shadow: none !important; }
 body .premium-theme .crm-mobile-menu-backdrop { background: rgba(15,21,31,.4) !important; backdrop-filter: blur(4px); }
 body .premium-theme .crm-sidebar { inset: 0 auto 0 0; padding: 20px 16px; width: min(320px,calc(100vw - 32px)); border-radius: 0 20px 20px 0; }
 body .premium-theme .crm-sidebar-brand { min-height: 108px; }
 body .premium-theme .crm-sidebar-brand > img.crm-sidebar-wordmark { height: 108px; width: calc(100% - 48px); object-position: left center; }
 body .premium-theme .os-sidebar-collapse { display: none; }
 body .premium-theme .crm-sidebar-welcome { text-align: left; margin: 12px 8px 20px; }
 body .premium-theme .crm-sidebar-section-label { display: block; }
 body .premium-theme .crm-sidebar-items { gap: 4px; }
 body .premium-theme button.crm-sidebar-item { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 44px; font-size: 14px; gap: 12px; padding: 12px; }
 body .premium-theme .crm-sidebar-session button { min-height: 40px; width: auto; font-size: 12px; padding: 8px 10px; }
 body .premium-theme .crm-sidebar-session time { font-size: 10px; }
 body .premium-theme.premium-theme .crm-topbar-grid { grid-template-columns: minmax(0,1fr) !important; gap: 0 !important; border-radius: var(--os-radius-lg); }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-title-panel { display: flex !important; min-height: 60px !important; padding: 12px 16px !important; border-bottom: 1px solid var(--os-line-control) !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-title-panel h1 { font-size: 19px !important; }
 body .premium-theme.premium-theme .crm-dashboard-account-summary { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr) !important; gap: 0 !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-profile-panel { padding: 12px 14px !important; min-height: 76px !important; display: block !important; border-left: 0 !important; }
 body .premium-theme .crm-topbar-grid .os-profile-name { font-size: 12px !important; font-weight: 550 !important; margin-bottom: 8px !important; }
 body .premium-theme .crm-topbar-grid .os-profile-avatar, body .premium-theme .crm-topbar-grid .os-profile-rank { display: none !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { min-height: 76px !important; padding: 12px 14px !important; border-left: 1px solid var(--os-line-control) !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings > span { font-size: 8px !important; white-space: normal !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings > strong { font-size: 24px !important; margin-top: 6px !important; }
 body .premium-theme .crm-title-panel button { width: 40px !important; height: 40px !important; min-height: 40px !important; }
 body .premium-theme.premium-theme .crm-mobile-status-tabs, body .premium-theme .crm-performer-status-tabs { background: var(--os-well) !important; border: 0 !important; padding: 4px !important; border-radius: 10px !important; box-shadow: var(--os-shadow-inset); top: calc(var(--crm-mobile-header) + 8px); }
 body .premium-theme.premium-theme .crm-mobile-status-tab, body .premium-theme .crm-performer-status-tabs > button { border: 0 !important; border-radius: 7px !important; background: transparent !important; color: #737373 !important; box-shadow: none !important; min-height: 48px !important; }
 body .premium-theme.premium-theme .crm-mobile-status-tab.is-active, body .premium-theme .crm-performer-status-tabs > button[aria-pressed="true"] { background: #fff !important; color: var(--os-status-ink) !important; box-shadow: var(--os-shadow-sm) !important; }
 body .premium-theme.premium-theme .crm-mobile-status-tab > span { font-family: 'Geist Variable',sans-serif !important; -webkit-text-stroke: 0 !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; color: inherit !important; font-size: 9px !important; font-weight: 600; }
 body .premium-theme.premium-theme .crm-mobile-status-tab > strong { color: var(--os-status-ink); background: #ffffff60; font-size: 11px; }
 body .premium-theme.premium-theme .crm-mobile-status-tab.is-active > strong { background: color-mix(in srgb,var(--os-status) 12%,white); }
 body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column { background: #fff !important; box-shadow: var(--os-shadow-md) !important; border-radius: 12px !important; }
 body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column-body, body .premium-theme.premium-theme .dashboard-column-orders-scroll { padding: 4px 14px 10px !important; }
 body .premium-theme .crm-mobile-order-row { padding: 14px 0 12px; border-bottom: 1px solid var(--os-line); color: var(--os-text); }
 body .premium-theme .crm-mobile-order-title { font-size: 15px; font-weight: 550; letter-spacing: -.015em; }
 body .premium-theme .crm-mobile-order-context { font-size: 12px; color: #737373; }
 body .premium-theme .crm-mobile-order-price > strong { font-size: 12px; padding: 4px 7px; }
 body .premium-theme .crm-mobile-order-price > small { color: var(--os-muted); }
 body .premium-theme .crm-mobile-order-bottom { min-height: 36px; margin-top: 4px; }
 body .premium-theme .crm-mobile-order-people { color: #737373; font-size: 11px; }
 body .premium-theme .crm-mobile-order-state { font-size: 10px; color: var(--os-muted); max-width: none; }
 body .premium-theme .crm-mobile-order-state.is-urgent { color: var(--os-status-error); }
 .os-mobile-order-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
 .os-mobile-order-state .os-order-status { min-height: 20px; font-size: 9px; padding: 2px 6px; }
 body .premium-theme .crm-mobile-order-bottom > .crm-compact-more { align-self: center; margin-left: auto; width: 40px; flex-basis: 40px; }
 body .premium-theme .crm-compact-actions-menu > button { min-height: 44px; }
 body .premium-theme.premium-theme :is(.clients-header,.crm-page-header,.workspace-page-heading) { border-radius: 14px !important; padding: 20px 16px !important; }
 body .premium-theme.premium-theme :is(.clients-heading,.workspace-page-heading h1,.crm-page-header h1) { font-size: 22px !important; white-space: normal !important; }
 body .premium-theme.premium-theme .team-workspace-header .clients-heading { font-size: 20px !important; }
 body .premium-theme .clients-controls { gap: 12px; margin-top: 16px; }
 body .premium-theme .clients-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px !important; width: 100%; }
 body .premium-theme.premium-theme .clients-tab { font-size: 11px !important; min-height: 40px; padding: 8px; }
 body .premium-theme .team-filter-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
 body .premium-theme .clients-search input { font-size: 16px; }
 body .premium-theme.premium-theme .crm-mobile-client-card { background: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: var(--os-shadow-md) !important; padding: 16px !important; }
 body .premium-theme.premium-theme .clients-table-row, body .premium-theme.premium-theme .team-member-row { padding-block: 16px !important; }
 body .premium-theme .workspace-surface { padding: 18px !important; }
 body .premium-theme .workspace-metrics { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px; }
 body .premium-theme .workspace-metrics > article { padding: 16px; }
 body .premium-theme .workspace-metrics > article > strong { font-size: 25px; }
 body .premium-theme .workspace-metrics > article > small { font-size: 10px; }
 body .premium-theme .workspace-tools-grid, body .premium-theme .workspace-analytics-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
 body .premium-theme .workspace-tool { min-height: 190px; padding: 20px; }
 body .premium-theme .workspace-settings-list > * { padding: 20px; }
 body .premium-theme .workspace-passwords { flex-direction: column; }
 body .premium-theme .crm-account-overview { padding: 24px 16px !important; }
 body .premium-theme .crm-account-avatar { width: 96px !important; height: 96px !important; }
 body .premium-theme .crm-modal-header, body .premium-theme .crm-modal-body { padding: 18px !important; }
 body .workspace .planner-hero { padding: 20px 12px 16px; border-radius: 12px; }
 body .workspace .workspace-header { padding: 16px; }
 body .workspace .task-list { padding: 10px; }
 body .workspace .task-row { margin-bottom: 10px; }
 body .workspace .planner-sidebar { box-shadow: var(--os-shadow-lg); }
 body .workflow-page { margin-left: 0 !important; padding-top: calc(80px + env(safe-area-inset-top)) !important; }
 body .workflow-prize-stack h1 { font-size: 25px; }
 body .workflow-prize-stack strong { font-size: 42px; }
 body .workflow-rank-screen { padding: 24px 16px !important; }
}
@media (max-width:360px) {
 body .premium-theme.premium-theme :is(.clients-heading,.workspace-page-heading h1) { font-size: 19px !important; }
 body .premium-theme .team-filter-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
 body .premium-theme .workspace-metrics { grid-template-columns: minmax(0,1fr) !important; }
 body .premium-theme .crm-topbar-grid .os-profile-name { font-size: 11px !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings > strong { font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
 body .premium-theme .crm-compact-order-card:hover, body .premium-theme .workspace-tool:hover, body .workspace .task-row:hover { transform: none !important; }
}

/* Light surfaces throughout; all operational figures keep the interface face. */
body .premium-theme.premium-theme.premium-theme .crm-account-summary-card p.font-kotprodru { font-family: 'Geist Variable',sans-serif !important; font-size: 28px !important; font-weight: 650 !important; color: var(--os-text) !important; -webkit-text-fill-color: var(--os-text) !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; }
body .premium-theme .crm-account-summary-card svg { color: var(--os-muted) !important; }
body .workflow-page { padding: 24px 20px 24px 0 !important; }
body .workflow-kotseria-panel h2 { color: var(--os-text) !important; font-family: 'Geist Variable',sans-serif !important; font-size: 24px !important; font-weight: 400 !important; }
body .premium-theme :is(.crm-page-header,.crm-title-panel)::before, body .premium-theme :is(.crm-page-header,.crm-title-panel)::after { display: none !important; }
body .premium-theme [aria-label="Договоры исполнителя"] { background: var(--os-card) !important; border: 0 !important; border-radius: 14px !important; box-shadow: var(--os-shadow-sm); }
body .premium-theme [aria-label="Договоры исполнителя"] button { background: var(--os-accent) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; border-radius: 8px !important; min-height: 44px; }
@media (max-width:768px) { body .workflow-page { padding: 80px 12px 20px !important; } }

body .premium-theme.premium-theme .crm-dashboard-shell .crm-kanban-column-header h3 { font-size: 14px !important; text-transform: none !important; font-weight: 550 !important; letter-spacing: -.02em !important; }
body .workspace #dayDateTitle { font-size: 34px !important; }
body .workspace #workspaceTitle { font-size: 24px !important; }
body .workflow-prize-stack h1, body .workflow-kotseria-panel h2 { color: var(--os-text) !important; font-family: 'Geist Variable',sans-serif !important; font-weight: 650 !important; letter-spacing: -.025em; }
@media (max-width:768px) { body .workspace #dayDateTitle { font-size: 26px !important; } body .workspace #workspaceTitle { font-size: 20px !important; } }

/* Soft studio rhythm: compact actions, quiet surfaces and restrained warm accents. */
body .premium-theme.premium-theme .crm-sidebar-section-label { letter-spacing: .01em; text-transform: none; font-size: 11px; }
body .premium-theme.premium-theme .clients-tab { text-transform: none !important; font-weight: 450 !important; }
body .premium-theme.premium-theme .clients-tab.is-active, body .premium-theme.premium-theme .clients-tab[aria-pressed="true"] { background: #fff !important; color: var(--os-text) !important; box-shadow: var(--os-shadow-sm) !important; }
body .premium-theme .clients-tab.is-active > span { background: var(--os-accent-soft) !important; color: #a4352e !important; }
body .premium-theme .crm-dashboard-earnings { margin: 8px; border-radius: 16px !important; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { min-height: 72px !important; }
body .premium-theme .crm-title-panel .crm-icon-add-button { width: 42px !important; height: 42px !important; border-radius: 14px !important; }
body .premium-theme .crm-account-info-card { border: 0 !important; }
body .premium-theme :is(.workspace-surface,.workspace-tool,.workspace-metrics > article,.crm-payment-card) { border: 1px solid #eee !important; }
body .premium-theme .workspace-month-chart > div > div { background: #f1f3ed; border-radius: 8px; }
body .premium-theme .workspace-month-chart i { background: linear-gradient(180deg,#d5232d,#e6a3a8) !important; border-radius: 8px 8px 0 0; }
body .premium-theme .workspace-metrics > article:last-child { background: linear-gradient(135deg,#fff3f4,#fce8ea) !important; }
body .premium-theme .workspace-metrics > article:last-child > strong { color: #a1242e; }
body .premium-theme .team-member-row strong { font-weight: 550; }
body .premium-theme .crm-compact-tariff strong { font-size: 12px; color: var(--os-muted); }
body .workspace .planner-hero { box-shadow: var(--os-shadow-sm); }
body .workspace .workspace-main { background: #f0f0f0; box-shadow: none; }
body .workspace .task-row { border: 1px solid #eee; border-radius: 14px; }
@media (max-width:768px) {
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { border-left: 0 !important; padding: 12px !important; min-height: 72px !important; }
 body .premium-theme .crm-dashboard-earnings { margin: 6px; border-radius: 12px !important; }
 body .premium-theme .crm-mobile-status-tabs { background: #eaeaea !important; }
 body .premium-theme .crm-mobile-appbar { background: #fafafa !important; box-shadow: 0 1px 0 var(--os-line); }
 body .premium-theme .crm-title-panel h1 { text-transform: none !important; }
 body .premium-theme.premium-theme .clients-header { padding: 18px 16px !important; }
 body .premium-theme.premium-theme .crm-mobile-client-card { border: 1px solid #eee !important; }
 body .premium-theme .crm-mobile-client-card :is(.crm-mobile-client-stat,.crm-mobile-client-info) { border: 0 !important; }
}

body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { border-radius: 16px !important; }
body .premium-theme:has(.crm-order-detail-dialog), body .premium-theme .crm-dashboard-shell:has(.crm-order-detail-dialog) { z-index: 5000 !important; }
body .premium-theme .crm-order-detail-backdrop { background: rgba(52,57,46,.24) !important; backdrop-filter: blur(5px) !important; z-index: 6000 !important; }
body .premium-theme .crm-order-detail-dialog { z-index: 6001 !important; background: #fff !important; border: 0 !important; border-radius: 20px !important; box-shadow: var(--os-shadow-lg) !important; animation: os-detail-fade 200ms var(--os-ease) !important; }
@keyframes os-detail-fade { from { opacity: 0; } to { opacity: 1; } }
body .premium-theme .crm-order-detail-dialog > div { border-color: #eee !important; }
@media (max-width:768px) {
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { border-radius: 12px !important; }
 body .premium-theme.premium-theme.premium-theme .crm-mobile-status-tab > span { text-transform: none !important; font-size: 10px !important; font-weight: 500 !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings > span { font-size: 9px !important; line-height: 1.4; }
}
@media (prefers-reduced-motion:reduce) { body .premium-theme .crm-order-detail-dialog { animation: none !important; } }

/* Premium workspace: quiet chrome, no background grid and no header dividers. */
html:root, html:root body, html:root #root { background:#e9e9e9 !important; }
body .premium-theme.premium-theme { background:#f5f5f5 !important; }
body .premium-theme.premium-theme .crm-topbar-grid { background:transparent !important; box-shadow:none !important; border-radius:0 !important; overflow:visible; grid-template-columns:minmax(0,1fr) auto !important; gap:20px !important; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-title-panel { background:transparent !important; padding:8px 0 !important; min-height:64px !important; border:0 !important; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-profile-panel { background:#fff !important; padding:12px 16px !important; border:0 !important; border-radius:16px !important; min-height:64px !important; }
body .premium-theme.premium-theme .crm-dashboard-account-summary { display:flex !important; gap:10px !important; align-items:center; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { border:0 !important; border-radius:14px !important; min-height:64px !important; margin:0 !important; padding:12px 16px !important; background:#fff !important; }
body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings > strong { color:#171717 !important; font-size:23px !important; }
body .premium-theme .os-profile-rank, body .premium-theme .os-profile-kots { display:none !important; }
body .premium-theme .is-overview .crm-dashboard-earnings { display:none !important; }
body .premium-theme .is-overview .crm-profile-panel { grid-template-columns:40px minmax(0,1fr) auto !important; }
body .premium-theme.premium-theme .crm-content-shell { padding-top:24px !important; }
body .premium-theme.premium-theme .crm-kanban-column { background:#f2f2f2 !important; box-shadow:none !important; }
body .premium-theme .os-order-state { margin:0; }
body .premium-theme .crm-compact-order-card { border:0 !important; box-shadow:0 1px 3px #00000006 !important; }
body .premium-theme .studio-income-value, body .premium-theme .studio-brand-card > div > strong { color:#fff !important; }
@media (max-width:768px) {
 body .premium-theme.premium-theme .crm-topbar-grid { grid-template-columns:minmax(0,1fr) !important; gap:8px !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-title-panel { padding:8px 4px !important; min-height:52px !important; }
 body .premium-theme.premium-theme .crm-dashboard-account-summary { display:flex !important; gap:8px !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-profile-panel { flex:1; min-height:52px !important; padding:12px !important; border-radius:14px !important; }
 body .premium-theme .is-overview .crm-dashboard-account-summary { display:none !important; }
 body .premium-theme.premium-theme .crm-topbar-grid .crm-dashboard-earnings { min-height:52px !important; padding:10px 12px !important; }
 body .premium-theme.premium-theme .crm-content-shell { padding-top:12px !important; }
 body .premium-theme .crm-topbar-grid .os-profile-name { margin:0 !important; }
}
