/* Hootag Platform 0.8.9.0 · Design System v2
   Progressive override layer. Loaded after legacy/module styles.
   Organization branding remains the skin; structure stays shared. */

.r-shell.ui-v6{
 --ds-bg:var(--app-bg,#f4f7fb);
 --ds-surface:var(--surface,#ffffff);
 --ds-surface-2:var(--surface-alt,#f7f9fc);
 --ds-surface-3:color-mix(in srgb,var(--ds-surface-2) 78%,var(--ds-surface));
 --ds-border:var(--border,#dce4ee);
 --ds-text:var(--text,#152235);
 --ds-muted:var(--muted,#6b7b90);
 --ds-primary:var(--brand-primary,#2487f5);
 --ds-secondary:var(--brand-secondary,#22d3ee);
 --ds-accent:var(--brand-accent,var(--brand-secondary,#22d3ee));
 --ds-success:var(--success,#168e5a);
 --ds-warning:var(--warning,#d38a00);
 --ds-danger:var(--danger,#d3485a);
 --ds-font-heading:var(--font-heading,Inter);
 --ds-font-body:var(--font-body,Inter);
 --ds-font-ui:var(--font-ui,Inter);
 --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;--ds-space-5:20px;--ds-space-6:24px;--ds-space-7:32px;--ds-space-8:40px;--ds-space-9:48px;
 --ds-radius-xs:8px;--ds-radius-sm:11px;--ds-radius-md:14px;--ds-radius-lg:18px;--ds-radius-xl:24px;--ds-radius-2xl:30px;--ds-radius-pill:999px;
 --ds-shadow-xs:0 1px 2px color-mix(in srgb,var(--ds-text) 7%,transparent);
 --ds-shadow-sm:0 8px 24px color-mix(in srgb,var(--ds-text) 8%,transparent);
 --ds-shadow-md:0 18px 48px color-mix(in srgb,var(--ds-text) 10%,transparent);
 --ds-shadow-lg:0 30px 90px color-mix(in srgb,var(--ds-text) 14%,transparent);
 --ds-focus:0 0 0 3px color-mix(in srgb,var(--ds-primary) 18%,transparent);
 --ds-fast:140ms;--ds-medium:220ms;
 --ds-sidebar-w:258px;--ds-sidebar-collapsed:78px;--ds-topbar-h:68px;
 min-height:100vh;background:var(--ds-bg);color:var(--ds-text);font-family:var(--ds-font-body),ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.r-shell.ui-v6.platform-context{
 --ds-bg:#060a12;--ds-surface:#0d1420;--ds-surface-2:#111b2a;--ds-border:#26354a;--ds-text:#f4f7fb;--ds-muted:#94a3b8;--ds-primary:#8b5cf6;--ds-secondary:#22d3ee;--ds-accent:#d946ef;
}
.r-shell.ui-v6.theme-dark{color-scheme:dark}.r-shell.ui-v6.theme-light{color-scheme:light}
.r-shell.ui-v6 *{scrollbar-color:color-mix(in srgb,var(--ds-muted) 45%,transparent) transparent}
.r-shell.ui-v6 *:focus-visible{outline:none;box-shadow:var(--ds-focus)}

/* Unified app shell */
.r-shell.ui-v6{grid-template-columns:var(--ds-sidebar-w) minmax(0,1fr);transition:grid-template-columns var(--ds-medium) ease}
.r-shell.ui-v6.sidebar-collapsed{grid-template-columns:var(--ds-sidebar-collapsed) minmax(0,1fr)}
.r-shell.ui-v6 .r-sidebar{position:sticky;top:0;z-index:40;width:auto;height:100vh;min-height:0;padding:14px 12px 12px;gap:10px;border-right:1px solid var(--ds-border);background:color-mix(in srgb,var(--ds-surface) 94%,var(--ds-bg));box-shadow:8px 0 30px color-mix(in srgb,var(--ds-text) 4%,transparent);overflow:visible}
.r-shell.ui-v6 .sidebar-platform-row{min-height:48px;display:flex;align-items:center;gap:8px;padding:4px 3px 8px}
.r-shell.ui-v6 .platform-identity,.r-shell.ui-v6 .sidebar-org-brand,.r-shell.ui-v6 .sidebar-global-brand{border-radius:var(--ds-radius-md)}
.r-shell.ui-v6 .platform-identity{min-width:0;flex:1;display:flex;align-items:center;gap:9px;padding:5px 7px;color:var(--ds-text)}
.r-shell.ui-v6 .platform-identity>div{min-width:0}.r-shell.ui-v6 .platform-identity b,.r-shell.ui-v6 .platform-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r-shell.ui-v6 .platform-identity b{font:800 11px var(--ds-font-ui),sans-serif}.r-shell.ui-v6 .platform-identity small{margin-top:2px;color:var(--ds-muted);font:750 7px var(--ds-font-ui),sans-serif;letter-spacing:.09em}
.r-shell.ui-v6 .sidebar-toggle{width:30px;height:30px;flex:0 0 auto;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface-2);color:var(--ds-muted);cursor:pointer;transition:var(--ds-fast) ease}
.r-shell.ui-v6 .sidebar-toggle:hover{color:var(--ds-text);border-color:color-mix(in srgb,var(--ds-primary) 35%,var(--ds-border));background:color-mix(in srgb,var(--ds-primary) 6%,var(--ds-surface-2))}
.r-shell.ui-v6 .sidebar-org-brand,.r-shell.ui-v6 .sidebar-global-brand{margin:0 2px;padding:11px;border:1px solid var(--ds-border);background:linear-gradient(145deg,color-mix(in srgb,var(--ds-primary) 6%,var(--ds-surface-2)),var(--ds-surface));box-shadow:var(--ds-shadow-xs)}
.r-shell.ui-v6 .organization-identity{display:flex;align-items:center;gap:10px;min-width:0}.r-shell.ui-v6 .organization-identity-copy{min-width:0}.r-shell.ui-v6 .organization-identity-copy b,.r-shell.ui-v6 .organization-identity-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r-shell.ui-v6 .organization-identity-copy b{font:800 11px var(--ds-font-ui),sans-serif}.r-shell.ui-v6 .organization-identity-copy small{margin-top:3px;color:var(--ds-muted);font:750 7px var(--ds-font-ui),sans-serif;letter-spacing:.09em}
.r-shell.ui-v6 .brand-logo-shell,.r-shell.ui-v6 .brand-logo-fallback{display:grid;place-items:center;flex:0 0 auto;border:1px solid var(--ds-border);background:var(--ds-surface);overflow:hidden}.r-shell.ui-v6 .brand-logo-shell img{display:block;max-width:100%;max-height:100%;object-fit:contain}.r-shell.ui-v6 .brand-logo-shell.lg,.r-shell.ui-v6 .brand-logo-fallback.lg{width:42px;height:42px;border-radius:13px;padding:6px}.r-shell.ui-v6 .brand-logo-shell.sm,.r-shell.ui-v6 .brand-logo-fallback.sm{width:34px;height:34px;border-radius:11px;padding:5px}.r-shell.ui-v6 .brand-logo-shell.xs,.r-shell.ui-v6 .brand-logo-fallback.xs{width:30px;height:30px;border-radius:10px;padding:4px}.r-shell.ui-v6 .brand-logo-fallback{background:linear-gradient(145deg,color-mix(in srgb,var(--ds-primary) 82%,#4f76ff),var(--ds-primary));color:#fff;font-weight:900}
.r-shell.ui-v6 .org-switcher{margin:0 2px}.r-shell.ui-v6 .org-switch-current{min-height:40px;border:1px solid var(--ds-border);border-radius:var(--ds-radius-sm);background:var(--ds-surface-2);color:var(--ds-text);box-shadow:none}.r-shell.ui-v6 .org-switch-current:hover{border-color:color-mix(in srgb,var(--ds-primary) 35%,var(--ds-border))}
.r-shell.ui-v6 .sidebar-scroll{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding:4px 1px 12px;overscroll-behavior:contain}
.r-shell.ui-v6 .nav-groups{gap:3px}.r-shell.ui-v6 .nav-section{display:block;margin:15px 8px 6px;color:color-mix(in srgb,var(--ds-muted) 82%,transparent);font:850 7px var(--ds-font-ui),sans-serif;letter-spacing:.12em;text-transform:uppercase}
.r-shell.ui-v6 .nav-row{position:relative;min-height:40px;display:flex;align-items:center;gap:10px;margin:1px 0;padding:9px 10px;border:1px solid transparent;border-radius:12px;color:color-mix(in srgb,var(--ds-text) 72%,var(--ds-muted));font:700 10px var(--ds-font-ui),sans-serif;transition:background var(--ds-fast),border-color var(--ds-fast),color var(--ds-fast),transform var(--ds-fast)}
.r-shell.ui-v6 .nav-row:hover{transform:translateX(1px);background:color-mix(in srgb,var(--ds-primary) 5%,var(--ds-surface-2));border-color:color-mix(in srgb,var(--ds-primary) 12%,var(--ds-border));color:var(--ds-text)}
.r-shell.ui-v6 .nav-row.active{background:color-mix(in srgb,var(--ds-primary) 10%,var(--ds-surface));border-color:color-mix(in srgb,var(--ds-primary) 24%,var(--ds-border));color:var(--ds-text);box-shadow:inset 3px 0 var(--ds-primary)}
.r-shell.ui-v6 .nav-ico{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;font-size:13px;filter:saturate(.82)}
.r-shell.ui-v6 .sidebar-user-v2{min-height:48px;width:100%;display:flex;align-items:center;gap:9px;padding:7px 8px;border:1px solid var(--ds-border);border-radius:14px;background:var(--ds-surface-2);color:var(--ds-text);text-align:left;cursor:pointer}.r-shell.ui-v6 .sidebar-user-copy{min-width:0}.r-shell.ui-v6 .sidebar-user-copy b,.r-shell.ui-v6 .sidebar-user-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r-shell.ui-v6 .sidebar-user-copy b{font-size:10px}.r-shell.ui-v6 .sidebar-user-copy small{margin-top:2px;color:var(--ds-muted);font-size:7px;letter-spacing:.08em}
.r-shell.ui-v6 .sidebar-user-menu,.r-shell.ui-v6 .user-popover,.r-shell.ui-v6 .org-switch-menu{border:1px solid var(--ds-border);border-radius:var(--ds-radius-lg);background:color-mix(in srgb,var(--ds-surface) 96%,transparent);color:var(--ds-text);box-shadow:var(--ds-shadow-lg);backdrop-filter:blur(20px)}
.r-shell.ui-v6.sidebar-collapsed .platform-identity>div,.r-shell.ui-v6.sidebar-collapsed .sidebar-org-brand .organization-identity-copy,.r-shell.ui-v6.sidebar-collapsed .sidebar-global-brand>div,.r-shell.ui-v6.sidebar-collapsed .org-switch-current>span,.r-shell.ui-v6.sidebar-collapsed .nav-row>span:not(.nav-ico),.r-shell.ui-v6.sidebar-collapsed .nav-section,.r-shell.ui-v6.sidebar-collapsed .sidebar-user-copy{display:none}
.r-shell.ui-v6.sidebar-collapsed .r-sidebar{padding-left:9px;padding-right:9px}.r-shell.ui-v6.sidebar-collapsed .platform-identity,.r-shell.ui-v6.sidebar-collapsed .nav-row,.r-shell.ui-v6.sidebar-collapsed .sidebar-user-v2{justify-content:center}.r-shell.ui-v6.sidebar-collapsed .sidebar-org-brand{padding:8px}.r-shell.ui-v6.sidebar-collapsed .organization-identity{justify-content:center}

.r-shell.ui-v6 .r-workspace{min-width:0;min-height:100vh;background:radial-gradient(circle at 16% -10%,color-mix(in srgb,var(--ds-primary) 7%,transparent),transparent 34rem),var(--ds-bg)}
.r-shell.ui-v6 .unified-topbar{position:sticky;top:0;z-index:35;min-height:var(--ds-topbar-h);display:grid;grid-template-columns:auto minmax(220px,620px) auto auto auto;align-items:center;gap:10px;padding:10px clamp(16px,2.2vw,30px);border-bottom:1px solid color-mix(in srgb,var(--ds-border) 88%,transparent);background:color-mix(in srgb,var(--ds-bg) 82%,transparent);backdrop-filter:blur(20px) saturate(1.15);transition:box-shadow var(--ds-medium),background var(--ds-medium)}
.r-shell.ui-v6 .unified-topbar.is-scrolled{background:color-mix(in srgb,var(--ds-bg) 91%,transparent);box-shadow:0 10px 30px color-mix(in srgb,var(--ds-text) 6%,transparent)}
.r-shell.ui-v6 .unified-context-identity{min-width:0;display:flex;align-items:center;gap:9px;padding:4px 5px;border-radius:12px}.r-shell.ui-v6 .unified-context-copy{min-width:0}.r-shell.ui-v6 .unified-context-copy b,.r-shell.ui-v6 .unified-context-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r-shell.ui-v6 .unified-context-copy b{font:800 10px var(--ds-font-ui),sans-serif}.r-shell.ui-v6 .unified-context-copy small{margin-top:2px;color:var(--ds-muted);font:750 7px var(--ds-font-ui),sans-serif;letter-spacing:.09em}
.r-shell.ui-v6 .unified-search{height:42px;display:flex;align-items:center;gap:8px;justify-self:center;width:min(100%,620px);padding:0 11px;border:1px solid var(--ds-border);border-radius:13px;background:color-mix(in srgb,var(--ds-surface) 91%,transparent);box-shadow:var(--ds-shadow-xs)}.r-shell.ui-v6 .unified-search>span{color:var(--ds-muted);font-size:14px}.r-shell.ui-v6 .unified-search input{min-width:0;flex:1;border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important;color:var(--ds-text)!important;font:600 10px var(--ds-font-body),sans-serif}.r-shell.ui-v6 .unified-search input::placeholder{color:color-mix(in srgb,var(--ds-muted) 86%,transparent)}.r-shell.ui-v6 .search-kbd{padding:4px 6px;border:1px solid var(--ds-border);border-radius:7px;background:var(--ds-surface-2);color:var(--ds-muted);font-size:7px}
.r-shell.ui-v6 .unified-new{min-height:40px;padding:0 14px;border-radius:12px}.r-shell.ui-v6 .unified-health-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--ds-border);border-radius:12px;background:var(--ds-surface);font-size:13px}.r-shell.ui-v6 .unified-user-button{min-height:42px;display:flex;align-items:center;gap:8px;padding:4px 7px;border:1px solid var(--ds-border);border-radius:13px;background:var(--ds-surface);color:var(--ds-text)}.r-shell.ui-v6 .unified-user-button>div{max-width:126px;min-width:0}.r-shell.ui-v6 .unified-user-button b,.r-shell.ui-v6 .unified-user-button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r-shell.ui-v6 .unified-user-button b{font-size:9px}.r-shell.ui-v6 .unified-user-button small{font-size:7px;color:var(--ds-muted)}
.r-shell.ui-v6 .mobile-menu{display:none}
.r-shell.ui-v6 .r-main{width:min(100%,1640px);margin:0 auto;padding:clamp(22px,3vw,38px) clamp(16px,3vw,42px) 72px;min-width:0}

/* Shared page hierarchy */
.r-shell.ui-v6 .r-head,.r-shell.ui-v6 .ds-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 20px;padding:0;background:none;border:0}
.r-shell.ui-v6 .r-head h1,.r-shell.ui-v6 .ds-page-header h1{margin:4px 0 6px;color:var(--ds-text);font:850 clamp(27px,3vw,38px)/1.05 var(--ds-font-heading),var(--ds-font-body),sans-serif;letter-spacing:-.035em}
.r-shell.ui-v6 .r-head p,.r-shell.ui-v6 .ds-page-header p{max-width:780px;margin:0;color:var(--ds-muted);font-size:11px;line-height:1.6}.r-shell.ui-v6 .r-head small,.r-shell.ui-v6 .ds-eyebrow{color:var(--ds-primary);font:850 8px var(--ds-font-ui),sans-serif;letter-spacing:.12em;text-transform:uppercase}.r-shell.ui-v6 .ds-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.r-shell.ui-v6 .ds-page-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.r-shell.ui-v6 .section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:26px 0 12px}.r-shell.ui-v6 .section-title h2{margin:3px 0 0;font:800 17px var(--ds-font-heading),sans-serif;letter-spacing:-.018em}.r-shell.ui-v6 .section-title small{color:var(--ds-muted);font:800 7px var(--ds-font-ui),sans-serif;letter-spacing:.1em}.r-shell.ui-v6 .section-title>a{color:var(--ds-primary);font-size:9px;font-weight:800}

/* Cards, KPI and surfaces */
.r-shell.ui-v6 .r-card,.r-shell.ui-v6 .ds-card,.r-shell.ui-v6 .r-kpi,.r-shell.ui-v6 .core-stat-card{border:1px solid var(--ds-border);background:color-mix(in srgb,var(--ds-surface) 96%,transparent);color:var(--ds-text);box-shadow:var(--ds-shadow-xs)}
.r-shell.ui-v6 .r-card,.r-shell.ui-v6 .ds-card{border-radius:var(--ds-radius-lg);padding:18px}.r-shell.ui-v6 .r-card:hover{border-color:color-mix(in srgb,var(--ds-primary) 16%,var(--ds-border))}
.r-shell.ui-v6 .ds-card-elevated{box-shadow:var(--ds-shadow-md)}.r-shell.ui-v6 .ds-card-soft{background:var(--ds-surface-2)}.r-shell.ui-v6 .ds-pad-sm{padding:12px}.r-shell.ui-v6 .ds-pad-md{padding:18px}.r-shell.ui-v6 .ds-pad-lg{padding:24px}
.r-shell.ui-v6 .r-kpi,.r-shell.ui-v6 .core-stat-card,.r-shell.ui-v6 .ds-kpi{min-width:0;border-radius:var(--ds-radius-lg);padding:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--ds-primary) 4%,var(--ds-surface)),var(--ds-surface));transition:transform var(--ds-fast),border-color var(--ds-fast),box-shadow var(--ds-fast)}
.r-shell.ui-v6 .r-kpi:hover,.r-shell.ui-v6 .core-stat-card:hover,.r-shell.ui-v6 .ds-kpi:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--ds-primary) 24%,var(--ds-border));box-shadow:var(--ds-shadow-sm)}
.r-shell.ui-v6 .ds-kpi-top,.r-shell.ui-v6 .kpi-top{display:flex;align-items:center;justify-content:space-between;gap:9px}.r-shell.ui-v6 .ds-kpi-icon,.r-shell.ui-v6 .kpi-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--ds-primary) 10%,var(--ds-surface-2));color:var(--ds-primary)}.r-shell.ui-v6 .ds-kpi-label,.r-shell.ui-v6 .kpi-label{color:var(--ds-muted);font-size:8px;font-weight:800;letter-spacing:.04em}.r-shell.ui-v6 .ds-kpi>strong,.r-shell.ui-v6 .r-kpi>b{display:block;margin-top:10px;font:850 27px/1 var(--ds-font-heading),sans-serif;letter-spacing:-.035em}.r-shell.ui-v6 .ds-kpi-foot,.r-shell.ui-v6 .kpi-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.r-shell.ui-v6 .ds-kpi-foot small,.r-shell.ui-v6 .kpi-foot small{color:var(--ds-muted);font-size:8px}.r-shell.ui-v6 .ds-kpi-foot em,.r-shell.ui-v6 .kpi-foot em{color:var(--ds-success);font-size:8px;font-style:normal;font-weight:800}

/* Buttons */
.r-shell.ui-v6 .r-btn,.r-shell.ui-v6 .ds-btn{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid transparent;border-radius:11px;background:linear-gradient(135deg,color-mix(in srgb,var(--ds-primary) 84%,#3979ff),var(--ds-primary));color:#fff;font:800 10px var(--ds-font-ui),sans-serif;text-decoration:none;cursor:pointer;box-shadow:none;transition:transform var(--ds-fast),border-color var(--ds-fast),background var(--ds-fast),box-shadow var(--ds-fast),opacity var(--ds-fast)}
.r-shell.ui-v6 .r-btn:hover,.r-shell.ui-v6 .ds-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px color-mix(in srgb,var(--ds-primary) 18%,transparent)}.r-shell.ui-v6 .r-btn:disabled,.r-shell.ui-v6 .ds-btn:disabled,.r-shell.ui-v6 .ds-btn[aria-disabled="true"]{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
.r-shell.ui-v6 .r-btn.ghost,.r-shell.ui-v6 .ds-btn-secondary,.r-shell.ui-v6 .ds-btn-ghost{border-color:var(--ds-border);background:var(--ds-surface-2);color:var(--ds-text)}.r-shell.ui-v6 .r-btn.ghost:hover,.r-shell.ui-v6 .ds-btn-secondary:hover,.r-shell.ui-v6 .ds-btn-ghost:hover{border-color:color-mix(in srgb,var(--ds-primary) 32%,var(--ds-border));background:color-mix(in srgb,var(--ds-primary) 5%,var(--ds-surface-2));box-shadow:none}.r-shell.ui-v6 .r-btn.danger,.r-shell.ui-v6 .ds-btn-danger{background:color-mix(in srgb,var(--ds-danger) 11%,var(--ds-surface));border-color:color-mix(in srgb,var(--ds-danger) 30%,var(--ds-border));color:var(--ds-danger)}.r-shell.ui-v6 .r-btn.whatsapp{background:#168d54;color:#fff}.r-shell.ui-v6 .ds-btn-sm{min-height:32px;padding:0 10px;font-size:8px}.r-shell.ui-v6 .ds-btn-lg{min-height:46px;padding:0 17px;font-size:11px}

/* Fields and forms */
.r-shell.ui-v6 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),.r-shell.ui-v6 select,.r-shell.ui-v6 textarea,.r-shell.ui-v6 .ds-input{border:1px solid var(--ds-border);border-radius:11px;background:var(--ds-surface-2);color:var(--ds-text);box-shadow:none;outline:none;transition:border-color var(--ds-fast),box-shadow var(--ds-fast),background var(--ds-fast)}
.r-shell.ui-v6 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,.r-shell.ui-v6 select:focus,.r-shell.ui-v6 textarea:focus,.r-shell.ui-v6 .ds-input:focus{border-color:color-mix(in srgb,var(--ds-primary) 58%,var(--ds-border));box-shadow:var(--ds-focus);background:var(--ds-surface)}
.r-shell.ui-v6 input::placeholder,.r-shell.ui-v6 textarea::placeholder{color:color-mix(in srgb,var(--ds-muted) 72%,transparent)}
.r-shell.ui-v6 .r-field,.r-shell.ui-v6 .ds-field{display:flex;flex-direction:column;gap:6px}.r-shell.ui-v6 .r-field>span,.r-shell.ui-v6 .ds-field-label{color:var(--ds-muted);font:750 9px var(--ds-font-ui),sans-serif}.r-shell.ui-v6 .ds-field-label b{color:var(--ds-danger)}.r-shell.ui-v6 .ds-field-hint{color:var(--ds-muted);font-size:8px;line-height:1.4}.r-shell.ui-v6 .ds-field-error{color:var(--ds-danger);font-size:8px;line-height:1.4}.r-shell.ui-v6 .ds-field.has-error input,.r-shell.ui-v6 .ds-field.has-error select,.r-shell.ui-v6 .ds-field.has-error textarea{border-color:color-mix(in srgb,var(--ds-danger) 55%,var(--ds-border))}
.r-shell.ui-v6 .r-error{border:1px solid color-mix(in srgb,var(--ds-danger) 32%,var(--ds-border));border-radius:12px;background:color-mix(in srgb,var(--ds-danger) 8%,var(--ds-surface));color:var(--ds-danger)}

/* Lists, table-like rows, badges */
.r-shell.ui-v6 .r-list-row,.r-shell.ui-v6 .r-task-row,.r-shell.ui-v6 .r-project-item,.r-shell.ui-v6 .legal-check-row,.r-shell.ui-v6 .legal-doc-row,.r-shell.ui-v6 .legal-version-row{border-color:var(--ds-border);color:var(--ds-text)}
.r-shell.ui-v6 .r-list-row,.r-shell.ui-v6 .r-project-item{background:var(--ds-surface-2);border-radius:13px}.r-shell.ui-v6 .r-list-row:hover,.r-shell.ui-v6 .r-project-item:hover{border-color:color-mix(in srgb,var(--ds-primary) 22%,var(--ds-border));background:color-mix(in srgb,var(--ds-primary) 3%,var(--ds-surface-2))}
.r-shell.ui-v6 .r-badge,.r-shell.ui-v6 .ds-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:1px solid var(--ds-border);border-radius:var(--ds-radius-pill);background:var(--ds-surface-2);color:var(--ds-muted);font:800 7px var(--ds-font-ui),sans-serif;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.r-shell.ui-v6 .ds-badge-primary{border-color:color-mix(in srgb,var(--ds-primary) 26%,var(--ds-border));background:color-mix(in srgb,var(--ds-primary) 8%,var(--ds-surface-2));color:var(--ds-primary)}.r-shell.ui-v6 .ds-badge-success,.r-shell.ui-v6 .r-badge.active,.r-shell.ui-v6 .r-badge.done,.r-shell.ui-v6 .r-badge.completed{border-color:color-mix(in srgb,var(--ds-success) 30%,var(--ds-border));background:color-mix(in srgb,var(--ds-success) 7%,var(--ds-surface));color:var(--ds-success)}.r-shell.ui-v6 .ds-badge-warning,.r-shell.ui-v6 .r-badge.pending,.r-shell.ui-v6 .r-badge.payment-pending{border-color:color-mix(in srgb,var(--ds-warning) 32%,var(--ds-border));background:color-mix(in srgb,var(--ds-warning) 7%,var(--ds-surface));color:var(--ds-warning)}.r-shell.ui-v6 .ds-badge-danger,.r-shell.ui-v6 .r-badge.lost,.r-shell.ui-v6 .r-badge.cancelled,.r-shell.ui-v6 .r-badge.inactive{border-color:color-mix(in srgb,var(--ds-danger) 30%,var(--ds-border));background:color-mix(in srgb,var(--ds-danger) 7%,var(--ds-surface));color:var(--ds-danger)}

/* Empty/loading/error/common states */
.r-shell.ui-v6 .r-empty,.r-shell.ui-v6 .ds-empty{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px;border:1px dashed color-mix(in srgb,var(--ds-border) 90%,var(--ds-muted));border-radius:var(--ds-radius-lg);background:color-mix(in srgb,var(--ds-surface-2) 72%,transparent);color:var(--ds-muted)}.r-shell.ui-v6 .ds-empty-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:10px;border-radius:15px;background:color-mix(in srgb,var(--ds-primary) 8%,var(--ds-surface));color:var(--ds-primary);font-size:20px}.r-shell.ui-v6 .ds-empty strong{color:var(--ds-text);font-size:12px}.r-shell.ui-v6 .ds-empty p{max-width:480px;margin:6px 0 0;font-size:9px;line-height:1.55}.r-shell.ui-v6 .ds-empty-action{margin-top:13px}
.r-shell.ui-v6 .ds-state{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border:1px solid var(--ds-border);border-radius:12px;background:var(--ds-surface-2);font-size:9px}.r-shell.ui-v6 .ds-state-info{border-color:color-mix(in srgb,var(--ds-primary) 24%,var(--ds-border));background:color-mix(in srgb,var(--ds-primary) 6%,var(--ds-surface))}.r-shell.ui-v6 .ds-state-success{border-color:color-mix(in srgb,var(--ds-success) 28%,var(--ds-border));background:color-mix(in srgb,var(--ds-success) 6%,var(--ds-surface))}.r-shell.ui-v6 .ds-state-warning{border-color:color-mix(in srgb,var(--ds-warning) 30%,var(--ds-border));background:color-mix(in srgb,var(--ds-warning) 6%,var(--ds-surface))}.r-shell.ui-v6 .ds-state-error{border-color:color-mix(in srgb,var(--ds-danger) 30%,var(--ds-border));background:color-mix(in srgb,var(--ds-danger) 6%,var(--ds-surface))}
.r-shell.ui-v6 .ds-skeleton{display:grid;gap:8px}.r-shell.ui-v6 .ds-skeleton i{display:block;height:12px;border-radius:8px;background:linear-gradient(90deg,var(--ds-surface-2),color-mix(in srgb,var(--ds-primary) 5%,var(--ds-surface)),var(--ds-surface-2));background-size:220% 100%;animation:ds-shimmer 1.4s linear infinite}.r-shell.ui-v6 .ds-skeleton i:last-child{width:68%}@keyframes ds-shimmer{to{background-position:-220% 0}}

/* Dialogs and command surfaces */
.r-shell.ui-v6 .ds-modal-backdrop,.r-shell.ui-v6 .r-modal-wrap,.r-shell.ui-v6 .command-backdrop{position:fixed;inset:0;z-index:1000;background:color-mix(in srgb,#06101b 72%,transparent);backdrop-filter:blur(10px);padding:20px}
.r-shell.ui-v6 .ds-modal-backdrop,.r-shell.ui-v6 .r-modal-wrap{display:grid;place-items:center}.r-shell.ui-v6 .ds-modal,.r-shell.ui-v6 .r-modal,.r-shell.ui-v6 .command-palette{border:1px solid var(--ds-border);border-radius:var(--ds-radius-xl);background:color-mix(in srgb,var(--ds-surface) 97%,transparent);color:var(--ds-text);box-shadow:var(--ds-shadow-lg);backdrop-filter:blur(22px)}
.r-shell.ui-v6 .ds-modal{width:min(520px,100%);padding:20px}.r-shell.ui-v6 .ds-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.r-shell.ui-v6 .ds-modal-head small{color:var(--ds-primary);font:850 7px var(--ds-font-ui),sans-serif;letter-spacing:.11em}.r-shell.ui-v6 .ds-modal-head h2{margin:4px 0 0;font:800 19px var(--ds-font-heading),sans-serif;letter-spacing:-.02em}.r-shell.ui-v6 .ds-modal-message{margin:15px 0;color:var(--ds-muted);font-size:10px;line-height:1.6}.r-shell.ui-v6 .ds-modal input{width:100%;padding:11px}.r-shell.ui-v6 .ds-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.r-shell.ui-v6 .ds-icon-btn{width:34px;height:34px;border:1px solid var(--ds-border);border-radius:11px;background:var(--ds-surface-2);color:var(--ds-text);cursor:pointer}.r-shell.ui-v6 .command-palette{overflow:hidden}.r-shell.ui-v6 .quick-create-action{border:1px solid var(--ds-border);border-radius:13px;background:var(--ds-surface-2);color:var(--ds-text)}.r-shell.ui-v6 .quick-create-action:hover{border-color:color-mix(in srgb,var(--ds-primary) 30%,var(--ds-border));background:color-mix(in srgb,var(--ds-primary) 5%,var(--ds-surface-2))}

/* Maintenance/status */
.r-shell.ui-v6 .platform-state-banner{margin:12px clamp(16px,3vw,42px) 0;padding:11px 13px;border-radius:13px;border:1px solid color-mix(in srgb,var(--ds-warning) 30%,var(--ds-border));background:color-mix(in srgb,var(--ds-warning) 7%,var(--ds-surface));color:var(--ds-text);box-shadow:var(--ds-shadow-xs)}

/* Responsiveness */
@media(max-width:1180px){
 .r-shell.ui-v6{--ds-sidebar-w:226px}
 .r-shell.ui-v6 .unified-topbar{grid-template-columns:auto minmax(180px,1fr) auto auto}.r-shell.ui-v6 .unified-user-wrap{display:none}.r-shell.ui-v6 .unified-context-copy{display:none}
}
@media(max-width:900px){
 .r-shell.ui-v6{display:block}.r-shell.ui-v6 .r-sidebar{position:fixed;left:0;top:0;bottom:0;z-index:90;width:min(292px,86vw);height:100dvh;transform:translateX(-102%);transition:transform var(--ds-medium) ease;box-shadow:var(--ds-shadow-lg)}.r-shell.ui-v6.nav-open .r-sidebar{transform:translateX(0)}.r-shell.ui-v6.sidebar-collapsed .r-sidebar{width:min(292px,86vw);padding:14px 12px}.r-shell.ui-v6.sidebar-collapsed .platform-identity>div,.r-shell.ui-v6.sidebar-collapsed .sidebar-org-brand .organization-identity-copy,.r-shell.ui-v6.sidebar-collapsed .sidebar-global-brand>div,.r-shell.ui-v6.sidebar-collapsed .org-switch-current>span,.r-shell.ui-v6.sidebar-collapsed .nav-row>span:not(.nav-ico),.r-shell.ui-v6.sidebar-collapsed .nav-section,.r-shell.ui-v6.sidebar-collapsed .sidebar-user-copy{display:initial}.r-shell.ui-v6.sidebar-collapsed .platform-identity,.r-shell.ui-v6.sidebar-collapsed .nav-row,.r-shell.ui-v6.sidebar-collapsed .sidebar-user-v2,.r-shell.ui-v6.sidebar-collapsed .organization-identity{justify-content:flex-start}.r-shell.ui-v6 .nav-scrim{position:fixed;inset:0;z-index:80;border:0;background:rgba(5,10,18,.58);backdrop-filter:blur(5px)}.r-shell.ui-v6 .unified-topbar{grid-template-columns:auto minmax(0,1fr) auto auto;padding-left:14px;padding-right:14px}.r-shell.ui-v6 .mobile-menu{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--ds-border);border-radius:12px;background:var(--ds-surface);color:var(--ds-text)}.r-shell.ui-v6 .unified-context-identity{display:none}.r-shell.ui-v6 .unified-search{justify-self:stretch}.r-shell.ui-v6 .search-kbd{display:none}.r-shell.ui-v6 .r-main{padding-top:24px}
}
@media(max-width:640px){
 .r-shell.ui-v6 .unified-topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:7px}.r-shell.ui-v6 .unified-health-button{display:none}.r-shell.ui-v6 .unified-new{min-width:40px;padding:0 10px;font-size:0}.r-shell.ui-v6 .unified-new::first-letter{font-size:14px}.r-shell.ui-v6 .unified-search{height:40px}.r-shell.ui-v6 .r-main{padding:20px 12px 64px}.r-shell.ui-v6 .r-head,.r-shell.ui-v6 .ds-page-header{flex-direction:column;align-items:stretch}.r-shell.ui-v6 .ds-page-actions{justify-content:flex-start}.r-shell.ui-v6 .r-head h1,.r-shell.ui-v6 .ds-page-header h1{font-size:28px}.r-shell.ui-v6 .r-kpis,.r-shell.ui-v6 .r-kpis.six{grid-template-columns:repeat(2,minmax(0,1fr))}.r-shell.ui-v6 .ds-modal-actions{flex-direction:column-reverse}.r-shell.ui-v6 .ds-modal-actions .r-btn{width:100%}
}
@media(max-width:420px){.r-shell.ui-v6 .r-kpis,.r-shell.ui-v6 .r-kpis.six{grid-template-columns:1fr}.r-shell.ui-v6 .unified-search input{font-size:9px}}

@media(prefers-reduced-motion:reduce){.r-shell.ui-v6 *,.r-shell.ui-v6 *::before,.r-shell.ui-v6 *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
