/* R18 Owner UI Polish — authoritative Owner-only layer.
   Loaded after app.css; all rules are scoped to Owner so client pages are untouched. */

body.owner-page{
  --o-bg:#071019;
  --o-bg-deep:#050c14;
  --o-panel:#0c1825;
  --o-panel-2:#0f1d2c;
  --o-panel-3:#122436;
  --o-input:#07111b;
  --o-text:#f2f7fd;
  --o-muted:#8190a5;
  --o-faint:#5d6c80;
  --o-line:rgba(138,166,198,.14);
  --o-line-strong:rgba(100,196,238,.26);
  --o-blue:#6977ff;
  --o-violet:#9b6cff;
  --o-cyan:#31d7f4;
  --o-green:#53e59e;
  --o-yellow:#f4bf5a;
  --o-red:#ff6d86;
  --o-shadow:0 18px 48px rgba(0,0,0,.18);
  --o-shadow-hover:0 22px 64px rgba(0,0,0,.24),0 0 34px rgba(49,215,244,.055);
  min-height:100vh;
  background:var(--o-bg)!important;
  color:var(--o-text);
  font-size:13px;
  overflow-x:hidden;
}
body.owner-page>.theme-toggle{display:none!important}
body.owner-page .layout{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.owner-page .toast{position:fixed;top:16px;left:50%;z-index:150;transform:translateX(-50%);margin:0;box-shadow:0 18px 60px rgba(0,0,0,.38)}

/* Ambient background: visible, calm, not a game UI. */
body.owner-page::before{
  opacity:.82!important;
  filter:none!important;
  background:
    radial-gradient(circle at 7% 18%,rgba(104,125,255,.95) 0 1px,transparent 1.6px),
    radial-gradient(circle at 23% 76%,rgba(49,215,244,.75) 0 1px,transparent 1.5px),
    radial-gradient(circle at 66% 22%,rgba(161,105,255,.70) 0 1px,transparent 1.5px),
    radial-gradient(circle at 84% 67%,rgba(49,215,244,.65) 0 1px,transparent 1.5px),
    linear-gradient(rgba(75,131,175,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(75,131,175,.021) 1px,transparent 1px)!important;
  background-size:190px 190px,240px 240px,280px 280px,330px 330px,64px 64px,64px 64px!important;
  background-position:0 0,30px 80px,90px 10px,140px 120px,0 0,0 0!important;
  animation:ownerR18StarDrift 42s linear infinite;
}
body.owner-page::after{
  opacity:1!important;
  background:
    radial-gradient(ellipse 48% 42% at 20% -8%,rgba(84,89,255,.17),transparent 68%),
    radial-gradient(ellipse 44% 36% at 88% 6%,rgba(28,205,239,.105),transparent 68%),
    radial-gradient(ellipse 36% 40% at 56% 102%,rgba(142,72,255,.07),transparent 70%),
    linear-gradient(180deg,rgba(5,13,22,.18),rgba(5,13,22,.76))!important;
  animation:ownerR18Aurora 18s ease-in-out infinite alternate;
}

/* Full-height app shell. */
body.owner-page .owner-ui-shell,
body.owner-page .owner-cc-shell{
  --owner-pointer-x:58%;
  --owner-pointer-y:8%;
  width:100%!important;
  max-width:none!important;
  min-height:100vh!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:236px minmax(0,1fr)!important;
  gap:0!important;
  align-items:stretch!important;
  isolation:isolate;
}
body.owner-page .owner-ui-shell::before,
body.owner-page .owner-cc-shell::before{
  content:"";
  position:fixed;
  z-index:-1;
  left:var(--owner-pointer-x);
  top:var(--owner-pointer-y);
  width:720px;
  height:720px;
  transform:translate(-50%,-50%);
  pointer-events:none;
  border-radius:50%;
  background:radial-gradient(circle,rgba(48,210,245,.105),rgba(100,93,255,.045) 33%,transparent 68%)!important;
  filter:blur(16px)!important;
  opacity:.92!important;
}

/* Sidebar. */
body.owner-page .owner-cc-sidebar{
  position:sticky!important;
  top:0!important;
  left:0!important;
  width:236px!important;
  height:100vh!important;
  max-height:none!important;
  padding:18px 14px 14px!important;
  border:0!important;
  border-right:1px solid rgba(120,161,196,.13)!important;
  border-radius:0!important;
  background:linear-gradient(180deg,rgba(7,18,29,.985),rgba(5,14,23,.985))!important;
  box-shadow:16px 0 60px rgba(0,0,0,.14),inset -1px 0 rgba(77,210,246,.018)!important;
  overflow:auto!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(103,128,158,.24) transparent;
}
body.owner-page .owner-cc-sidebar::before{
  content:"";
  position:absolute;
  top:0;right:-1px;bottom:0;
  width:1px;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 2%,rgba(76,220,250,.35) 18%,rgba(111,91,255,.22) 52%,rgba(76,220,250,.16) 80%,transparent 98%);
  filter:drop-shadow(0 0 8px rgba(53,213,246,.34));
  opacity:.56;
}
body.owner-page .owner-cc-sidebar::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 9% 3%,rgba(97,102,255,.10),transparent 22%),radial-gradient(circle at 88% 74%,rgba(40,203,236,.045),transparent 24%);
}
body.owner-page .owner-cc-brand{position:relative;z-index:2;padding:2px 5px 15px!important;gap:11px!important}
body.owner-page .owner-cc-brand b{font-size:15px!important;letter-spacing:-.02em}
body.owner-page .owner-cc-brand small{font-size:9px!important;color:#76869b!important}
body.owner-page .owner-cc-logo{
  width:42px!important;height:42px!important;border-radius:13px!important;
  background:linear-gradient(135deg,#665dff 0%,#338df8 46%,#29d7ed 100%)!important;
  box-shadow:0 10px 30px rgba(48,167,244,.22),0 0 24px rgba(95,91,255,.16)!important;
  isolation:isolate;
}
body.owner-page .owner-cc-logo::before{
  content:""!important;position:absolute!important;inset:-5px!important;border-radius:17px!important;
  border:1px solid rgba(91,218,255,.28)!important;
  box-shadow:0 0 16px rgba(69,208,249,.10),inset 0 0 11px rgba(112,94,255,.08)!important;
  animation:ownerR18LogoHalo 4.8s ease-in-out infinite!important;
}
body.owner-page .owner-cc-logo::after{
  content:"✦"!important;position:absolute!important;right:-8px!important;top:-9px!important;
  color:#c9f9ff!important;font-size:9px!important;text-shadow:0 0 10px #54ddff,0 0 22px rgba(122,105,255,.7)!important;
  animation:ownerR18Spark 2.7s ease-in-out infinite!important;
}
body.owner-page .owner-workspace-chip{
  position:relative;z-index:2;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
  margin:0 2px 11px!important;padding:8px 10px!important;
  border:1px solid rgba(128,157,190,.13)!important;border-radius:10px!important;
  background:linear-gradient(90deg,rgba(255,255,255,.018),rgba(56,201,237,.018))!important;
  color:#728197!important;font-size:9px!important;
}
body.owner-page .owner-workspace-chip strong{color:#c8d5e5!important;font-size:9px!important;font-weight:800!important;text-transform:capitalize}

body.owner-page .owner-cc-nav{position:relative;z-index:2;display:grid!important;gap:2px!important}
body.owner-page .owner-cc-nav p{margin:13px 8px 5px!important;color:#5c6e86!important;font-size:8px!important;font-weight:900!important;letter-spacing:.16em!important}
body.owner-page .owner-cc-nav a{
  position:relative!important;display:flex!important;align-items:center!important;gap:8px!important;
  min-height:38px!important;padding:8px 10px!important;border:1px solid transparent!important;border-radius:10px!important;
  color:#91a1b5!important;font-size:11px!important;font-weight:760!important;text-decoration:none!important;
  overflow:hidden!important;transition:transform .18s ease,color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
body.owner-page .owner-cc-nav a span{
  display:grid!important;place-items:center!important;width:20px!important;height:20px!important;flex:0 0 auto!important;
  border-radius:7px!important;color:#8da1bc!important;font-size:12px!important;
  transition:background .18s,color .18s,box-shadow .18s!important;
}
body.owner-page .owner-cc-nav a:hover{transform:translateX(2px)!important;color:#dbe7f5!important;background:rgba(255,255,255,.025)!important}
body.owner-page .owner-cc-nav a:hover span{background:rgba(73,206,242,.055)!important;color:#b7effc!important}
body.owner-page .owner-cc-nav a.active{
  color:#fff!important;
  border-color:rgba(79,186,233,.16)!important;
  background:linear-gradient(90deg,rgba(102,92,255,.18),rgba(38,208,238,.085))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.022),0 0 22px rgba(45,195,235,.035)!important;
}
body.owner-page .owner-cc-nav a.active span{background:linear-gradient(135deg,rgba(104,91,255,.22),rgba(42,211,240,.12))!important;color:#d8faff!important;box-shadow:0 0 14px rgba(49,215,244,.06)!important}
body.owner-page .owner-cc-nav a.active::before{
  content:""!important;position:absolute!important;left:0!important;top:7px!important;bottom:7px!important;width:2px!important;border-radius:99px!important;
  background:linear-gradient(180deg,#8b70ff,#39e6ff)!important;box-shadow:0 0 11px rgba(59,224,255,.82)!important;
}
body.owner-page .owner-cc-nav a.active::after{
  content:""!important;position:absolute!important;top:-35px!important;right:-70px!important;width:150px!important;height:100px!important;border-radius:50%!important;
  background:radial-gradient(circle,rgba(55,217,246,.12),transparent 68%)!important;
  animation:ownerR18NavBreath 4.2s ease-in-out infinite!important;
}
body.owner-page .owner-ui-sidebar-footer{position:relative;z-index:2;margin:15px 5px 0!important;padding:13px 4px 2px!important;border-top:1px solid rgba(144,168,194,.09)!important;font-size:9px!important}
body.owner-page .owner-ui-live{color:#8fa0b5!important}
body.owner-page .owner-ui-live i{background:var(--o-green)!important;box-shadow:0 0 0 4px rgba(83,229,158,.07),0 0 13px rgba(83,229,158,.36)!important;animation:ownerR18Live 2.3s ease-in-out infinite!important}

/* Main / top bar. */
body.owner-page .owner-ui-main,body.owner-page .owner-cc-main{min-width:0!important;background:linear-gradient(90deg,rgba(8,18,29,.10),rgba(11,17,38,.10))}
body.owner-page .owner-cc-topbar{
  position:sticky!important;top:0!important;z-index:40!important;
  height:64px!important;min-height:64px!important;margin:0!important;padding:0 24px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
  border:0!important;border-bottom:1px solid rgba(126,159,191,.13)!important;border-radius:0!important;
  background:rgba(6,16,26,.84)!important;backdrop-filter:blur(22px) saturate(1.22)!important;
  box-shadow:0 10px 28px rgba(0,0,0,0)!important;transition:box-shadow .2s ease,background .2s ease!important;
}
body.owner-scrolled .owner-cc-topbar{background:rgba(6,16,26,.94)!important;box-shadow:0 12px 34px rgba(0,0,0,.22)!important}
body.owner-page .owner-cc-topbar::before{content:""!important;position:absolute!important;inset:auto 0 -1px!important;height:1px!important;background:linear-gradient(90deg,transparent,rgba(107,92,255,.24),rgba(49,215,244,.22),transparent)!important;opacity:.55!important}
body.owner-page .owner-ui-menu-button{display:none!important}
body.owner-page .owner-top-crumbs{display:flex!important;align-items:center!important;gap:9px!important;color:#65768c!important;font-size:10px!important;white-space:nowrap!important;min-width:0}
body.owner-page .owner-top-crumbs b{color:#d9e5f2!important;font-weight:800!important}
body.owner-page .owner-top-crumbs span:last-child{overflow:hidden;text-overflow:ellipsis}
body.owner-page .owner-top-tools{display:flex!important;align-items:center!important;gap:8px!important;min-width:0}
body.owner-page .owner-global-search{
  width:min(360px,32vw)!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0 10px 0 11px!important;
  display:flex!important;align-items:center!important;gap:8px!important;
  border:1px solid rgba(130,159,190,.14)!important;border-radius:10px!important;
  background:rgba(255,255,255,.018)!important;color:#708096!important;
  font:inherit!important;font-size:9.5px!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,color .18s ease!important;
}
body.owner-page .owner-global-search:hover{border-color:rgba(73,202,241,.25)!important;background:rgba(48,198,235,.025)!important;color:#9fb2c8!important;box-shadow:0 0 22px rgba(49,215,244,.035)!important}
body.owner-page .owner-global-search>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.owner-page .owner-global-search-icon{color:#79dff5!important;text-shadow:0 0 10px rgba(73,218,249,.35)!important;font-size:13px!important}
body.owner-page kbd{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:20px;padding:0 5px;border:1px solid rgba(129,157,189,.14);border-bottom-color:rgba(129,157,189,.22);border-radius:6px;background:rgba(255,255,255,.025);color:#718399;font:700 8px/1 system-ui,sans-serif;box-shadow:inset 0 -1px rgba(0,0,0,.25)}
body.owner-page .owner-top-icon{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:1px solid rgba(131,159,190,.14)!important;border-radius:10px!important;background:rgba(255,255,255,.018)!important;color:#8ea0b4!important;box-shadow:none!important}
body.owner-page .owner-top-icon:hover{border-color:rgba(81,201,239,.25)!important;color:#dff9ff!important;box-shadow:0 0 20px rgba(49,215,244,.04)!important}
body.owner-page .owner-top-avatar{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:10px!important;background:linear-gradient(135deg,#6b60ff,#2fd4eb)!important;color:#fff!important;font-size:10px!important;font-weight:900!important;box-shadow:0 8px 24px rgba(49,181,240,.18),0 0 18px rgba(94,91,255,.10)!important}

body.owner-page .owner-ui-content{width:100%!important;max-width:1480px!important;margin:0 auto!important;padding:28px 34px 56px!important;min-width:0!important}
body.owner-page .owner-page-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:18px!important;margin:0 0 18px!important}
body.owner-page .owner-page-head .eyebrow{margin-bottom:7px!important;color:#7388a3!important;font-size:8.5px!important;letter-spacing:.18em!important}
body.owner-page .owner-page-head h1{font-size:29px!important;line-height:1.06!important;letter-spacing:-.038em!important}
body.owner-page .owner-page-head>div>p:last-child{margin-top:6px!important;color:var(--o-muted)!important;font-size:11.5px!important}
body.owner-page .owner-page-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}

/* Buttons and form controls. */
body.owner-page .btn,body.owner-page button:not(.owner-command-backdrop):not(.owner-ui-backdrop){
  min-height:36px!important;padding:8px 13px!important;border-radius:10px!important;font-size:11px!important;font-weight:820!important;letter-spacing:-.01em!important;
  transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease,filter .17s ease,background .17s ease!important;
}
body.owner-page .btn:hover,body.owner-page button:not(.owner-command-backdrop):not(.owner-ui-backdrop):hover{transform:translateY(-1px)!important}
body.owner-page .btn.primary,body.owner-page button.primary{
  position:relative!important;overflow:hidden!important;border:1px solid rgba(94,223,255,.12)!important;
  background:linear-gradient(105deg,#675dff 0%,#4e88fa 46%,#2cd5e9 100%)!important;color:#fff!important;
  box-shadow:0 10px 28px rgba(70,150,246,.18),inset 0 1px rgba(255,255,255,.11)!important;
}
body.owner-page .btn.primary::before,body.owner-page button.primary::before{
  content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 18%,rgba(255,255,255,.16) 42%,transparent 62%);transform:translateX(-125%);animation:ownerR18ButtonShine 5.8s ease-in-out infinite;
}
body.owner-page .btn.primary:hover,body.owner-page button.primary:hover{filter:brightness(1.06)!important;box-shadow:0 14px 34px rgba(66,157,246,.25),0 0 25px rgba(49,215,244,.10)!important}
body.owner-page .btn.ghost,body.owner-page button.ghost{border-color:rgba(131,159,190,.16)!important;background:rgba(255,255,255,.018)!important;color:#c2cfdd!important}
body.owner-page .btn.ghost:hover,body.owner-page button.ghost:hover{border-color:rgba(86,192,233,.24)!important;background:rgba(52,193,229,.028)!important;color:#effaff!important}
body.owner-page .btn.mini,body.owner-page button.mini{min-height:29px!important;padding:5px 9px!important;border-radius:8px!important;font-size:9.5px!important}
body.owner-page .owner-action-ripple{position:absolute;z-index:5;width:8px;height:8px;border-radius:50%;pointer-events:none;background:rgba(255,255,255,.55);transform:translate(-50%,-50%) scale(0);animation:ownerR18Ripple .62s ease-out forwards}

body.owner-page label{color:#7d8fa6!important;font-size:9.5px!important;letter-spacing:.065em!important;font-weight:850!important}
body.owner-page input,body.owner-page textarea,body.owner-page select{
  min-height:41px!important;margin-top:6px!important;padding:9px 11px!important;border:1px solid rgba(124,153,185,.15)!important;border-radius:10px!important;
  background:rgba(3,10,17,.72)!important;color:#eaf2fb!important;font-size:12px!important;line-height:1.45!important;outline:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.012)!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body.owner-page textarea{min-height:92px!important;resize:vertical}
body.owner-page input::placeholder,body.owner-page textarea::placeholder{color:#59687b!important}
body.owner-page input:focus,body.owner-page textarea:focus,body.owner-page select:focus{border-color:rgba(64,211,244,.45)!important;background:rgba(4,12,20,.88)!important;box-shadow:0 0 0 3px rgba(49,215,244,.055),0 0 22px rgba(49,215,244,.045)!important}
body.owner-page input[type=number]{appearance:textfield}
body.owner-page input[type=number]::-webkit-inner-spin-button,body.owner-page input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.owner-page .owner-check{display:flex!important;align-items:center!important;gap:9px!important;min-height:34px!important;margin:0!important;color:#b9c7d7!important;font-size:10.5px!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer}
body.owner-page .owner-check input[type=checkbox]{appearance:none!important;width:36px!important;height:20px!important;min-height:20px!important;flex:0 0 auto!important;margin:0!important;padding:0!important;border-radius:999px!important;border:1px solid rgba(135,160,189,.22)!important;background:radial-gradient(circle at 9px 50%,#7e8b9c 0 5px,transparent 5.6px),rgba(255,255,255,.035)!important;transition:.2s ease!important}
body.owner-page .owner-check input[type=checkbox]:checked{border-color:rgba(55,215,244,.36)!important;background:radial-gradient(circle at 26px 50%,#fff 0 5px,transparent 5.6px),linear-gradient(90deg,#675dff,#2fd5eb)!important;box-shadow:0 0 16px rgba(49,215,244,.08)!important}
body.owner-page .owner-form{display:grid!important;gap:12px!important}
body.owner-page .owner-form>label{margin:0!important}
body.owner-page .owner-form>.btn.primary{justify-self:end!important;min-width:170px!important;width:auto!important}
body.owner-page .owner-inline-form{gap:11px!important;align-items:end!important}
body.owner-page .owner-form-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:5px;padding-top:15px;border-top:1px solid rgba(139,163,190,.10)}
body.owner-page .owner-form-footer span{color:#68788e;font-size:9.5px}
body.owner-page .owner-form-footer .btn{min-width:220px}

/* Cards / metrics / ambient local glow. */
body.owner-page .owner-magic-surface{position:relative!important;overflow:hidden!important;isolation:isolate}
body.owner-page .owner-magic-surface::before{
  content:""!important;position:absolute!important;z-index:0!important;inset:0!important;pointer-events:none!important;
  background:radial-gradient(circle 220px at var(--card-x,82%) var(--card-y,0%),rgba(53,218,246,.095),rgba(108,88,255,.035) 34%,transparent 68%)!important;
  opacity:.62!important;transition:opacity .2s ease!important;
}
body.owner-page .owner-magic-surface::after{
  content:""!important;position:absolute!important;z-index:0!important;left:-35%!important;top:0!important;width:50%!important;height:1px!important;pointer-events:none!important;
  background:linear-gradient(90deg,transparent,rgba(125,103,255,.75),rgba(58,224,255,.95),transparent)!important;
  filter:drop-shadow(0 0 5px rgba(57,221,255,.55))!important;opacity:.46!important;animation:ownerR18EdgeTravel 9s ease-in-out infinite!important;
}
body.owner-page .owner-magic-surface.owner-hover-glow::before{opacity:1!important}
body.owner-page .owner-magic-surface.owner-hover-glow{border-color:rgba(80,196,237,.24)!important;box-shadow:var(--o-shadow-hover)!important}

body.owner-page .owner-dashboard-metrics,body.owner-page .owner-cc-kpis.small,body.owner-page .owner-user-metrics,body.owner-page .crm-user-kpis{gap:12px!important;margin-bottom:16px!important}
body.owner-page .owner-dashboard-metric,body.owner-page .owner-cc-kpi,body.owner-page .metric,body.owner-page .crm-user-kpi{
  min-height:112px!important;padding:17px 18px!important;border:1px solid var(--o-line)!important;border-radius:15px!important;
  background:linear-gradient(155deg,rgba(16,31,46,.96),rgba(9,21,33,.96))!important;box-shadow:var(--o-shadow)!important;
}
body.owner-page .owner-dashboard-metric-head span,body.owner-page .owner-cc-kpi span,body.owner-page .metric span,body.owner-page .crm-user-kpi span{color:#8192a8!important;font-size:10.5px!important;font-weight:780!important}
body.owner-page .owner-dashboard-metric b,body.owner-page .owner-cc-kpi b,body.owner-page .metric b,body.owner-page .crm-user-kpi b{display:block!important;margin-top:8px!important;color:#f6fbff!important;font-size:25px!important;line-height:1!important;letter-spacing:-.045em!important;text-shadow:0 0 24px rgba(113,204,245,.05)!important}
body.owner-page .owner-dashboard-metric small,body.owner-page .owner-cc-kpi small,body.owner-page .metric small,body.owner-page .crm-user-kpi small{display:block!important;margin-top:8px!important;color:#718197!important;font-size:9.5px!important}
body.owner-page .owner-dashboard-metric-head i{width:28px!important;height:28px!important;border-radius:9px!important;background:linear-gradient(135deg,rgba(105,91,255,.15),rgba(45,213,237,.08))!important;color:#a9c9ff!important;box-shadow:inset 0 0 0 1px rgba(117,153,209,.08),0 0 20px rgba(60,197,239,.035)!important}

body.owner-page .owner-dashboard-card,body.owner-page .owner-cc-card,body.owner-page .card,body.owner-page .automation-setting-card{
  border:1px solid var(--o-line)!important;border-radius:16px!important;
  background:linear-gradient(160deg,rgba(14,29,43,.965),rgba(8,20,31,.97))!important;
  box-shadow:var(--o-shadow)!important;
}
body.owner-page .owner-cc-card{padding:19px!important}
body.owner-page .owner-dashboard-card-head{padding:18px 19px 14px!important}
body.owner-page .owner-dashboard-card-head h2,body.owner-page .owner-cc-card-head h2,body.owner-page .section-head h2{font-size:16.5px!important;letter-spacing:-.022em!important}
body.owner-page .owner-dashboard-card-head p,body.owner-page .owner-cc-card-head p,body.owner-page .section-head p{font-size:10.5px!important;line-height:1.5!important}
body.owner-page .owner-dashboard-card-head>a{font-size:10px!important;color:#72dcf4!important}
body.owner-page .owner-cc-note{border-color:rgba(92,178,222,.16)!important;border-radius:12px!important;background:linear-gradient(90deg,rgba(61,127,255,.045),rgba(41,206,236,.025))!important;color:#91a3b9!important}
body.owner-page .owner-cc-note b{color:#d7e6f5!important}
body.owner-page .owner-cc-note.warn{border-color:rgba(244,191,90,.26)!important;background:rgba(244,191,90,.045)!important}

/* Overview attention / quick actions / integrations. */
body.owner-page .owner-dashboard-split{gap:14px!important;margin-bottom:16px!important;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr)!important}
body.owner-page .owner-attention-row{min-height:58px!important;padding:10px 14px!important}
body.owner-page .owner-attention-row b{font-size:10.5px!important}
body.owner-page .owner-attention-row small{font-size:9px!important;line-height:1.45!important}
body.owner-page .owner-attention-icon{width:27px!important;height:27px!important;border-radius:9px!important;box-shadow:0 0 16px rgba(49,215,244,.03)!important}
body.owner-page .owner-dashboard-quick{gap:9px!important;padding:0 15px 16px!important}
body.owner-page .owner-dashboard-quick a{min-height:62px!important;padding:12px 13px!important;border-color:rgba(132,159,190,.12)!important;background:rgba(255,255,255,.014)!important}
body.owner-page .owner-dashboard-quick a:hover{border-color:rgba(67,197,237,.23)!important;background:linear-gradient(135deg,rgba(103,92,255,.045),rgba(47,211,238,.025))!important;transform:translateY(-1px)!important}
body.owner-page .owner-dashboard-quick b{font-size:10.5px!important}
body.owner-page .owner-dashboard-quick small{font-size:8.8px!important}
body.owner-page .owner-live-grid{gap:10px!important;margin:0 18px 18px!important}
body.owner-page .owner-live-service{min-height:66px!important;padding:12px 13px!important;border:1px solid rgba(132,159,190,.12)!important;border-radius:12px!important;background:rgba(255,255,255,.014)!important}
body.owner-page .owner-live-service b{font-size:10.5px!important}
body.owner-page .owner-live-service small{font-size:8.8px!important}
body.owner-page .owner-live-pill{font-size:8px!important;box-shadow:0 0 13px rgba(83,229,158,.035)!important}

/* Page summaries added for sparse pages. */
body.owner-page .owner-compact-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
body.owner-page .owner-compact-stats>div{position:relative;min-height:78px;padding:13px 15px;border:1px solid var(--o-line);border-radius:13px;background:linear-gradient(155deg,rgba(15,29,43,.94),rgba(9,20,31,.95));box-shadow:0 12px 34px rgba(0,0,0,.10);overflow:hidden}
body.owner-page .owner-compact-stats span{display:block;color:#7f91a7;font-size:9.5px;font-weight:760}
body.owner-page .owner-compact-stats b{display:inline-block;margin-top:6px;font-size:22px;letter-spacing:-.04em}
body.owner-page .owner-compact-stats small{margin-left:8px;color:#63758a;font-size:8.8px}

/* Bot pickers and bot context. */
body.owner-page .owner-bot-picker{padding:16px!important}
body.owner-page .owner-bot-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(330px,1fr))!important;gap:12px!important}
body.owner-page .owner-bot-card{min-height:142px!important;padding:16px!important;border:1px solid rgba(134,160,191,.13)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(17,31,46,.92),rgba(9,21,32,.95))!important;box-shadow:0 12px 34px rgba(0,0,0,.10)!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important}
body.owner-page .owner-bot-card:hover{transform:translateY(-2px)!important;border-color:rgba(72,196,238,.25)!important;box-shadow:0 16px 44px rgba(0,0,0,.17),0 0 25px rgba(49,215,244,.045)!important}
body.owner-page .owner-bot-icon{width:38px!important;height:38px!important;border-radius:11px!important;background:linear-gradient(135deg,#4e68ff,#35d4ed)!important;box-shadow:0 8px 22px rgba(49,180,240,.16)!important}
body.owner-page .owner-bot-title h3{font-size:15px!important}
body.owner-page .owner-bot-meta{margin-top:12px!important;padding:10px 11px!important;border:1px solid rgba(132,158,188,.10)!important;border-radius:10px!important;background:rgba(0,0,0,.10)!important}
body.owner-page .owner-bot-footer{margin-top:12px!important;font-size:10.5px!important;color:#8fa1b7!important}

body.owner-page .owner-context-hero{margin:0!important;padding:17px 19px!important;border:1px solid rgba(100,189,231,.18)!important;border-radius:16px!important;background:linear-gradient(110deg,rgba(92,83,255,.10),rgba(36,205,235,.035) 44%,rgba(11,24,37,.97))!important;box-shadow:0 15px 44px rgba(0,0,0,.15),0 0 30px rgba(49,215,244,.025)!important}
body.owner-page .owner-context-main h2{font-size:18.5px!important}
body.owner-page .owner-context-main>div>p:not(.eyebrow){font-size:10px!important;color:#77889d!important}
body.owner-page .owner-context-tabs{
  position:sticky!important;top:64px!important;z-index:30!important;
  min-height:47px!important;margin:0 0 18px!important;padding:0 8px!important;gap:22px!important;
  border-bottom:1px solid rgba(134,159,188,.11)!important;
  background:linear-gradient(180deg,rgba(7,16,25,.965),rgba(7,16,25,.90))!important;backdrop-filter:blur(18px)!important;
}
body.owner-page .owner-context-tabs a{height:46px!important;font-size:10.5px!important;color:#7c8da2!important}
body.owner-page .owner-context-tabs a.active{color:#f3f9ff!important}
body.owner-page .owner-context-tabs a.active::after{height:2px!important;background:linear-gradient(90deg,#7f6bff,#39def7)!important;box-shadow:0 0 12px rgba(57,222,247,.58)!important}
body.owner-page .owner-ui-page-intro h2{font-size:21px!important}
body.owner-page .owner-ui-page-intro p{font-size:10.5px!important}

/* Automation / CRM. */
body.owner-page .automation-settings-grid{gap:12px!important}
body.owner-page .automation-setting-card{padding:17px!important}
body.owner-page .automation-setting-card h3{font-size:15px!important}
body.owner-page .automation-card-description{font-size:10.5px!important;line-height:1.52!important}
body.owner-page .automation-card-facts{padding:10px 12px!important;border:1px solid rgba(131,157,188,.10)!important;border-radius:10px!important;background:rgba(0,0,0,.10)!important}
body.owner-page .automation-card-facts span{font-size:9.5px!important}
body.owner-page .automation-status,body.owner-page .crm-contact,body.owner-page .status,body.owner-page .owner-badge{border:1px solid rgba(130,157,187,.11)!important;font-size:9px!important;box-shadow:0 0 13px rgba(49,215,244,.018)!important}
body.owner-page .status.active,body.owner-page .status.ready,body.owner-page .status.approved,body.owner-page .owner-badge.ok,body.owner-page .crm-contact.ok{border-color:rgba(83,229,158,.18)!important;background:rgba(83,229,158,.105)!important;color:#67ebb0!important;box-shadow:0 0 16px rgba(83,229,158,.04)!important}
body.owner-page .status.error,body.owner-page .status.failed,body.owner-page .status.declined,body.owner-page .owner-badge.bad,body.owner-page .crm-contact.bad{border-color:rgba(255,109,134,.18)!important;background:rgba(255,109,134,.105)!important;color:#ff8ca0!important;box-shadow:0 0 16px rgba(255,109,134,.04)!important}
body.owner-page .status.queued,body.owner-page .status.processing,body.owner-page .status.provider_requested,body.owner-page .status.lyrics_requested,body.owner-page .status.new,body.owner-page .owner-badge.warn,body.owner-page .crm-contact.warn{border-color:rgba(244,191,90,.18)!important;background:rgba(244,191,90,.09)!important;color:#f5ca76!important}
body.owner-page .status.canceled,body.owner-page .status.cancelled{border-color:rgba(143,160,181,.18)!important;background:rgba(143,160,181,.10)!important;color:#aebdce!important;box-shadow:none!important}
body.owner-page .crm-segments{gap:7px!important}
body.owner-page .crm-segment{min-height:35px!important;padding:8px 11px!important;border-radius:9px!important;font-size:10px!important}
body.owner-page .crm-segment.active{border-color:rgba(70,189,237,.27)!important;background:linear-gradient(90deg,rgba(100,91,255,.11),rgba(47,210,238,.045))!important;box-shadow:0 0 20px rgba(49,215,244,.025)!important}
body.owner-page .owner-user-filters{padding:12px!important;border:1px solid rgba(131,157,187,.10)!important;border-radius:12px!important;background:rgba(0,0,0,.08)!important}
body.owner-page .crm-user-workspace{gap:14px!important}
body.owner-page .crm-stage-card,body.owner-page .crm-problem-card{min-height:150px!important}
body.owner-page .crm-support-card-head h2{font-size:19px!important}
body.owner-page .crm-stage-dot{box-shadow:0 0 0 5px rgba(52,211,153,.08),0 0 18px currentColor!important}
body.owner-page .crm-data-section>summary{padding:15px 17px!important}
body.owner-page .crm-data-section>summary:hover{background:rgba(52,201,237,.018)!important}

/* Tables: more readable, still dense. */
body.owner-page .owner-table-card{padding:0!important;overflow:hidden!important}
body.owner-page .owner-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid rgba(136,161,190,.10);background:linear-gradient(90deg,rgba(255,255,255,.012),rgba(43,202,238,.012))}
body.owner-page .owner-table-toolbar h2{margin:0!important;font-size:15.5px!important}
body.owner-page .owner-table-toolbar p{margin-top:4px!important;color:#6f8196!important;font-size:9.5px!important}
body.owner-page .owner-table-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body.owner-page .owner-table-search{position:relative!important;display:flex!important;align-items:center!important;width:min(300px,36vw)!important;margin:0!important}
body.owner-page .owner-table-search>span{position:absolute;left:10px;z-index:2;color:#6edbf2;font-size:12px}
body.owner-page .owner-table-search input{height:34px!important;min-height:34px!important;margin:0!important;padding:7px 10px 7px 29px!important;border-radius:9px!important;font-size:10px!important;text-transform:none!important;letter-spacing:0!important}
body.owner-page .owner-log-level{width:145px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:6px 9px!important;font-size:10px!important}
body.owner-page .table-wrap{overflow:auto!important;scrollbar-width:thin;scrollbar-color:rgba(95,126,159,.28) transparent}
body.owner-page table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-size:11.5px!important}
body.owner-page th{position:sticky!important;top:0!important;z-index:3!important;padding:10px 11px!important;border-bottom:1px solid rgba(135,161,191,.11)!important;background:rgba(7,17,27,.97)!important;color:#8292a8!important;font-size:8.7px!important;font-weight:900!important;letter-spacing:.085em!important;white-space:nowrap!important}
body.owner-page td{padding:11px!important;border-bottom:1px solid rgba(134,160,190,.075)!important;color:#d9e4ef!important;vertical-align:middle!important;line-height:1.4!important}
body.owner-page tbody tr{transition:background .16s ease,box-shadow .16s ease!important}
body.owner-page tbody tr:hover{background:linear-gradient(90deg,rgba(100,91,255,.026),rgba(47,210,238,.018))!important;box-shadow:inset 2px 0 rgba(56,220,247,.18)!important}
body.owner-page tbody tr:last-child td{border-bottom:0!important}
body.owner-page td.muted{color:#74869d!important}
body.owner-page .owner-cell-clamp{display:-webkit-box;max-width:360px;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.42}
body.owner-page .owner-cell-clamp.wide{max-width:620px}
body.owner-page .owner-generations-table td:nth-child(8){min-width:300px}
body.owner-page .owner-generations-table td:nth-child(9){min-width:260px}
body.owner-page .owner-logs-table td:last-child{min-width:420px}
body.owner-page .owner-table-empty-filter{padding:20px;text-align:center;color:#687a90;font-size:10.5px;border-top:1px solid rgba(135,160,190,.08)}

/* System/settings/cards look intentional on sparse pages. */
body.owner-page .owner-settings-list>div{min-height:41px!important;padding:9px 11px!important;border-color:rgba(131,157,187,.10)!important;border-radius:9px!important;background:rgba(0,0,0,.085)!important}
body.owner-page .owner-settings-list span{font-size:9.5px!important;color:#74869b!important}
body.owner-page .owner-settings-list b{font-size:10.5px!important;color:#e7f0f9!important}
body.owner-page .owner-service-icon{box-shadow:0 8px 24px rgba(50,181,240,.14),0 0 18px rgba(90,91,255,.07)!important}
body.owner-page .owner-details{border:1px solid rgba(130,156,186,.11)!important;border-radius:11px!important;background:rgba(0,0,0,.075)!important;overflow:hidden}
body.owner-page .owner-details summary{padding:11px 12px!important;cursor:pointer!important;color:#c8d5e3!important;font-size:10.5px!important}
body.owner-page .owner-details[open] summary{border-bottom:1px solid rgba(130,156,186,.09)!important;background:rgba(58,199,234,.016)!important}
body.owner-page .owner-details-body{padding:12px!important}

/* Command palette. */
body.owner-page .owner-command-layer[hidden]{display:none!important}
body.owner-page .owner-command-layer{position:fixed;z-index:200;inset:0;display:grid;place-items:start center;padding-top:min(14vh,130px)}
body.owner-page .owner-command-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0!important;border-radius:0!important;background:rgba(2,7,12,.68)!important;backdrop-filter:blur(8px)!important;cursor:default!important;transform:none!important}
body.owner-page .owner-command-palette{position:relative;width:min(620px,calc(100vw - 28px));max-height:min(650px,72vh);display:flex;flex-direction:column;border:1px solid rgba(93,194,235,.24);border-radius:17px;background:linear-gradient(165deg,rgba(13,27,41,.99),rgba(6,17,27,.995));box-shadow:0 28px 100px rgba(0,0,0,.55),0 0 45px rgba(49,215,244,.07),0 0 80px rgba(104,91,255,.04);overflow:hidden;animation:ownerR18PaletteIn .18s cubic-bezier(.2,.8,.2,1) both}
body.owner-page .owner-command-palette::before{content:"";position:absolute;left:-15%;top:0;width:55%;height:1px;background:linear-gradient(90deg,transparent,#8f6fff,#3be4ff,transparent);animation:ownerR18EdgeTravel 6s ease-in-out infinite;filter:drop-shadow(0 0 6px rgba(58,225,255,.6))}
body.owner-page .owner-command-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid rgba(134,159,189,.11)}
body.owner-page .owner-command-search>span{font-size:18px;color:#68dff7;text-shadow:0 0 14px rgba(49,215,244,.35)}
body.owner-page .owner-command-search input{height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:13px!important}
body.owner-page .owner-command-list{padding:9px;overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(101,132,164,.28) transparent}
body.owner-page .owner-command-list>p{margin:4px 9px 7px;color:#5e7189;font-size:8px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
body.owner-page .owner-command-list a{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-height:56px;padding:8px 10px;border:1px solid transparent;border-radius:11px;color:#cedae8;text-decoration:none;transition:.15s ease}
body.owner-page .owner-command-list a>span{display:grid;place-items:center;width:31px;height:31px;border:1px solid rgba(130,158,189,.10);border-radius:9px;background:rgba(255,255,255,.02);color:#9cb8d6;font-size:13px}
body.owner-page .owner-command-list a b{display:block;font-size:11.5px}
body.owner-page .owner-command-list a small{display:block;margin-top:2px;color:#687b91;font-size:9.3px}
body.owner-page .owner-command-list a:hover,body.owner-page .owner-command-list a.selected{border-color:rgba(72,196,238,.18);background:linear-gradient(90deg,rgba(102,91,255,.09),rgba(43,210,238,.04));box-shadow:inset 2px 0 rgba(59,224,250,.38)}
body.owner-page .owner-command-list a.selected>span{color:#dffbff;background:linear-gradient(135deg,rgba(105,91,255,.18),rgba(47,210,238,.08));box-shadow:0 0 18px rgba(49,215,244,.035)}
body.owner-page .owner-command-empty{padding:28px;text-align:center;color:#66798e;font-size:11px}
body.owner-page .owner-command-footer{display:flex;justify-content:flex-end;gap:14px;padding:9px 13px;border-top:1px solid rgba(134,159,189,.10);color:#62748a;font-size:8.5px}
body.owner-page .owner-command-footer span{display:flex;align-items:center;gap:4px}
body.owner-command-open{overflow:hidden!important}

/* Light theme remains usable, but dark remains the intended Owner presentation. */
html[data-theme=light] body.owner-page{--o-bg:#eef4fa;--o-bg-deep:#e6eef7;--o-panel:#ffffff;--o-panel-2:#f8fbff;--o-panel-3:#eef5fb;--o-input:#fff;--o-text:#172235;--o-muted:#68788e;--o-line:rgba(31,61,92,.12);background:#eef4fa!important;color:#172235!important}
html[data-theme=light] body.owner-page::before{opacity:.18!important}
html[data-theme=light] body.owner-page::after{background:radial-gradient(ellipse 48% 42% at 20% -8%,rgba(84,89,255,.08),transparent 68%),radial-gradient(ellipse 44% 36% at 88% 6%,rgba(28,205,239,.06),transparent 68%),linear-gradient(180deg,rgba(248,252,255,.58),rgba(238,245,251,.90))!important}
html[data-theme=light] body.owner-page .owner-cc-sidebar{background:rgba(250,253,255,.985)!important}
html[data-theme=light] body.owner-page .owner-cc-topbar{background:rgba(249,252,255,.91)!important}
html[data-theme=light] body.owner-page .owner-dashboard-card,html[data-theme=light] body.owner-page .owner-cc-card,html[data-theme=light] body.owner-page .card,html[data-theme=light] body.owner-page .automation-setting-card,html[data-theme=light] body.owner-page .owner-dashboard-metric,html[data-theme=light] body.owner-page .owner-cc-kpi,html[data-theme=light] body.owner-page .metric,html[data-theme=light] body.owner-page .crm-user-kpi,html[data-theme=light] body.owner-page .owner-compact-stats>div{background:linear-gradient(160deg,rgba(255,255,255,.98),rgba(246,250,254,.98))!important}
html[data-theme=light] body.owner-page input,html[data-theme=light] body.owner-page textarea,html[data-theme=light] body.owner-page select{background:rgba(255,255,255,.90)!important;color:#172235!important}
html[data-theme=light] body.owner-page th{background:rgba(246,250,254,.97)!important}
html[data-theme=light] body.owner-page td{color:#27364a!important}
html[data-theme=light] body.owner-page .owner-context-tabs{background:rgba(239,246,252,.94)!important}

@keyframes ownerR18StarDrift{0%{background-position:0 0,30px 80px,90px 10px,140px 120px,0 0,0 0}100%{background-position:190px 95px,150px 200px,230px 150px,20px 260px,64px 64px,64px 64px}}
@keyframes ownerR18Aurora{0%{filter:saturate(1) brightness(1)}100%{filter:saturate(1.08) brightness(1.04)}}
@keyframes ownerR18LogoHalo{0%,100%{transform:scale(.98);opacity:.55}50%{transform:scale(1.04);opacity:1}}
@keyframes ownerR18Spark{0%,100%{transform:translateY(1px) rotate(0deg) scale(.8);opacity:.45}45%{transform:translateY(-2px) rotate(16deg) scale(1.15);opacity:1}}
@keyframes ownerR18Live{0%,100%{opacity:.72;transform:scale(.92)}50%{opacity:1;transform:scale(1.12)}}
@keyframes ownerR18NavBreath{0%,100%{opacity:.55;transform:translateX(0)}50%{opacity:1;transform:translateX(-10px)}}
@keyframes ownerR18ButtonShine{0%,70%{transform:translateX(-125%);opacity:0}76%{opacity:1}91%{transform:translateX(125%);opacity:.9}100%{transform:translateX(125%);opacity:0}}
@keyframes ownerR18EdgeTravel{0%,100%{transform:translateX(-12%);opacity:.22}50%{transform:translateX(225%);opacity:.8}}
@keyframes ownerR18Ripple{0%{transform:translate(-50%,-50%) scale(0);opacity:.62}100%{transform:translate(-50%,-50%) scale(22);opacity:0}}
@keyframes ownerR18PaletteIn{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}

@media(max-width:1180px){
  body.owner-page .owner-ui-shell,body.owner-page .owner-cc-shell{grid-template-columns:218px minmax(0,1fr)!important}
  body.owner-page .owner-cc-sidebar{width:218px!important}
  body.owner-page .owner-ui-content{padding:24px 24px 48px!important}
  body.owner-page .owner-dashboard-split{grid-template-columns:1fr!important}
  body.owner-page .owner-dashboard-metrics,body.owner-page .owner-cc-kpis.small{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.owner-page .owner-live-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.owner-page .owner-global-search{width:min(300px,30vw)!important}
}
@media(max-width:900px){
  body.owner-page .owner-ui-shell,body.owner-page .owner-cc-shell{display:block!important}
  body.owner-page .owner-cc-sidebar{position:fixed!important;z-index:90!important;left:10px!important;top:10px!important;bottom:10px!important;width:min(286px,calc(100vw - 34px))!important;height:auto!important;transform:translateX(calc(-100% - 26px));transition:transform .24s cubic-bezier(.2,.8,.2,1)!important;border:1px solid rgba(106,189,229,.19)!important;border-radius:17px!important;box-shadow:0 28px 85px rgba(0,0,0,.48)!important}
  body.owner-nav-open .owner-cc-sidebar{transform:none}
  body.owner-page .owner-ui-backdrop{position:fixed!important;display:block!important;inset:0!important;z-index:80!important;border:0!important;border-radius:0!important;background:rgba(2,7,12,.68)!important;backdrop-filter:blur(6px)!important;opacity:0;pointer-events:none;transition:opacity .2s;transform:none!important}
  body.owner-nav-open .owner-ui-backdrop{opacity:1;pointer-events:auto}
  body.owner-page .owner-ui-menu-button{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important}
  body.owner-page .owner-cc-topbar{padding:0 13px!important}
  body.owner-page .owner-ui-content{padding:20px 14px 42px!important}
  body.owner-page .owner-global-search{display:none!important}
  body.owner-page .owner-top-avatar{display:none!important}
  body.owner-page .owner-page-head{align-items:flex-start!important;flex-direction:column!important}
  body.owner-page .owner-context-tabs{top:64px!important;margin-inline:-14px!important;padding-inline:18px!important}
  body.owner-page .owner-compact-stats{grid-template-columns:1fr 1fr!important}
  body.owner-page .owner-table-toolbar{align-items:flex-start;flex-direction:column!important}
  body.owner-page .owner-table-tools{width:100%;justify-content:flex-start!important}
  body.owner-page .owner-table-search{width:100%!important}
}
@media(max-width:620px){
  body.owner-page .owner-dashboard-metrics,body.owner-page .owner-cc-kpis.small,body.owner-page .owner-user-metrics,body.owner-page .crm-user-kpis,body.owner-page .owner-live-grid,body.owner-page .owner-compact-stats{grid-template-columns:1fr!important}
  body.owner-page .owner-page-actions{width:100%!important}
  body.owner-page .owner-page-actions .btn{flex:1!important}
  body.owner-page .owner-bot-grid{grid-template-columns:1fr!important}
  body.owner-page .owner-form-footer{align-items:stretch;flex-direction:column!important}
  body.owner-page .owner-form-footer .btn{width:100%!important}
  body.owner-page .owner-command-footer{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  body.owner-page::before,body.owner-page::after,body.owner-page .owner-cc-logo::before,body.owner-page .owner-cc-logo::after,body.owner-page .owner-cc-nav a.active::after,body.owner-page .owner-ui-live i,body.owner-page .owner-magic-surface::after,body.owner-page .btn.primary::before,body.owner-page button.primary::before{animation:none!important}
  body.owner-page .owner-reveal{opacity:1!important;transform:none!important;transition:none!important}
  body.owner-page *,body.owner-page *::before,body.owner-page *::after{scroll-behavior:auto!important}
}

/* R19 Owner Layout Precision — fix geometry, not cosmetics. */
body.owner-page .owner-integration-grid{align-items:stretch!important;gap:14px!important}
body.owner-page .owner-integration-card{display:flex!important;flex-direction:column!important;min-height:100%!important;margin-bottom:14px!important}
body.owner-page .owner-integration-card .owner-cc-card-head{min-height:74px!important;margin-bottom:15px!important}
body.owner-page .owner-integration-card .owner-cc-card-head>div:has(.owner-service-icon){display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:11px!important;align-items:start!important}
body.owner-page .owner-integration-card .owner-service-icon{float:none!important;grid-column:1!important;grid-row:1/3!important;width:38px!important;height:38px!important;margin:0!important;border-radius:11px!important}
body.owner-page .owner-integration-card .owner-cc-card-head h2{grid-column:2!important;grid-row:1!important;margin:0 0 4px!important;line-height:1.25!important}
body.owner-page .owner-integration-card .owner-cc-card-head p{grid-column:2!important;grid-row:2!important;margin:0!important}
body.owner-page .owner-integration-form{display:flex!important;flex:1!important;flex-direction:column!important;gap:11px!important}
body.owner-page .owner-integration-form>label{display:block!important;margin:0!important}
body.owner-page .owner-integration-form>label small{min-height:14px!important}
body.owner-page .owner-integration-form>.owner-form-submit{justify-self:stretch!important;width:100%!important;min-width:0!important;margin-top:auto!important;min-height:40px!important}

body.owner-page .owner-proxy-card{padding:18px!important}
body.owner-page .owner-proxy-fields{display:grid!important;grid-template-columns:230px minmax(0,1fr)!important;gap:16px!important;align-items:start!important}
body.owner-page .owner-proxy-fields>label{display:block!important;margin:0!important}
body.owner-page .owner-proxy-fields input,body.owner-page .owner-proxy-fields select{width:100%!important;margin-top:6px!important}
body.owner-page .owner-card-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-top:14px!important;padding-top:14px!important;border-top:1px solid rgba(138,166,198,.10)!important}
body.owner-page .owner-card-actions form{margin:0!important}
body.owner-page .owner-card-actions .btn{min-width:190px!important}
body.owner-page .owner-proxy-actions>.btn.primary{min-width:190px!important}

body.owner-page .owner-connected-bots .owner-table-toolbar{padding:15px 17px!important}
body.owner-page .owner-table-title-row{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
body.owner-page .owner-table-title-row h2{margin:0!important}
body.owner-page .owner-count-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:22px!important;padding:3px 8px!important;border:1px solid rgba(93,192,233,.17)!important;border-radius:999px!important;background:rgba(49,215,244,.045)!important;color:#9cdef0!important;font-size:8.5px!important;font-weight:850!important;white-space:nowrap!important}
body.owner-page .owner-connected-bots .table-wrap{border-top:1px solid rgba(138,166,198,.08)!important}
body.owner-page .owner-connected-bots th:first-child,body.owner-page .owner-connected-bots td:first-child{padding-left:17px!important}
body.owner-page .owner-connected-bots th:last-child,body.owner-page .owner-connected-bots td:last-child{padding-right:17px!important}

@media(max-width:900px){
  body.owner-page .owner-integration-card .owner-cc-card-head{min-height:0!important}
  body.owner-page .owner-proxy-fields{grid-template-columns:1fr!important}
  body.owner-page .owner-card-actions{align-items:stretch!important;flex-direction:column-reverse!important}
  body.owner-page .owner-card-actions form,body.owner-page .owner-card-actions .btn{width:100%!important}
}

/* ==========================================================
   R20 — Bot workspace: less scrolling, clearer priority,
   operational attention + compact automation control center.
   ========================================================== */
body.owner-page .owner-bot-control-strip{
  display:grid!important;
  grid-template-columns:minmax(220px,.72fr) minmax(0,2.28fr)!important;
  align-items:center!important;
  gap:20px!important;
  margin:16px 0 14px!important;
  padding:16px 18px!important;
  border:1px solid rgba(82,189,232,.18)!important;
  border-radius:15px!important;
  background:
    radial-gradient(circle at 8% 0%,rgba(103,83,255,.10),transparent 30%),
    linear-gradient(135deg,rgba(16,31,46,.98),rgba(8,21,32,.98))!important;
  box-shadow:0 14px 42px rgba(0,0,0,.14),0 0 30px rgba(49,215,244,.025)!important;
}
body.owner-page .owner-bot-control-title h2{margin:2px 0 4px!important;font-size:18px!important;letter-spacing:-.02em!important}
body.owner-page .owner-bot-control-title>p:last-child{margin:0!important;color:#778a9f!important;font-size:9.5px!important;line-height:1.45!important}
body.owner-page .owner-bot-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
body.owner-page .owner-bot-kpi{position:relative;min-width:0;padding:10px 11px;border:1px solid rgba(127,156,187,.10);border-radius:10px;background:rgba(2,11,19,.18);overflow:hidden}
body.owner-page .owner-bot-kpi::after{content:"";position:absolute;left:0;bottom:0;width:42%;height:1px;background:linear-gradient(90deg,#745fff,transparent);opacity:.35}
body.owner-page .owner-bot-kpi>span{display:block;color:#7890a7;font-size:8.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.owner-page .owner-bot-kpi>b{display:block;margin-top:3px;color:#f3f8ff;font-size:20px;line-height:1;font-weight:850;letter-spacing:-.03em}
body.owner-page .owner-bot-kpi>small{display:block;margin-top:4px;color:#687d93;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.owner-page .owner-bot-kpi.danger{border-color:rgba(255,103,128,.18);background:rgba(91,17,34,.09)}
body.owner-page .owner-bot-kpi.danger::after{background:linear-gradient(90deg,#ff6681,transparent)}
body.owner-page .owner-bot-kpi.danger>b{color:#ff8fa2}
body.owner-page .owner-bot-control-actions{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:142px!important}
body.owner-page .owner-bot-control-actions .btn{width:100%!important;justify-content:center!important;white-space:nowrap!important}

body.owner-page .owner-bot-workspace-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.9fr) minmax(280px,.72fr)!important;
  gap:14px!important;
  align-items:start!important;
  margin-bottom:14px!important;
}
body.owner-page .owner-bot-workspace-grid>.card,
body.owner-page .owner-bot-side-stack>.card{margin:0!important}
body.owner-page .owner-bot-automation-panel{padding:16px!important}
body.owner-page .owner-bot-side-stack{display:grid!important;gap:14px!important;align-content:start!important}
body.owner-page .owner-bot-section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin-bottom:13px!important}
body.owner-page .owner-bot-section-head.compact{margin-bottom:9px!important}
body.owner-page .owner-bot-section-head h2{margin:2px 0 3px!important;font-size:17px!important}
body.owner-page .owner-bot-section-head p.muted{margin:0!important;font-size:9.5px!important;line-height:1.45!important}
body.owner-page .owner-bot-section-counter{flex:0 0 auto;padding:5px 8px;border:1px solid rgba(67,224,170,.15);border-radius:999px;background:rgba(39,183,127,.08);color:#65e8b0;font-size:8.5px;font-weight:850;white-space:nowrap}

body.owner-page .owner-bot-automation-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.owner-page .owner-bot-automation-tile{
  position:relative!important;
  display:flex!important;
  min-height:166px!important;
  padding:13px!important;
  flex-direction:column!important;
  border-radius:12px!important;
  background:linear-gradient(150deg,rgba(18,33,48,.90),rgba(8,20,31,.96))!important;
  overflow:hidden!important;
}
body.owner-page .owner-bot-automation-tile::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 0 0,rgba(105,86,255,.06),transparent 35%);opacity:.7}
body.owner-page .owner-bot-automation-tile.is-active::after{content:"";position:absolute;top:0;left:15px;right:15px;height:1px;background:linear-gradient(90deg,transparent,#54e1be,transparent);opacity:.35;filter:drop-shadow(0 0 5px rgba(84,225,190,.35))}
body.owner-page .owner-bot-automation-heading{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
body.owner-page .owner-bot-automation-icon{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border:1px solid rgba(84,209,239,.15);border-radius:9px;background:linear-gradient(135deg,rgba(97,79,255,.18),rgba(39,205,236,.10));color:#dcecff;font-size:13px;font-weight:900;box-shadow:0 0 14px rgba(58,216,242,.035)}
body.owner-page .owner-bot-automation-tile .automation-card-title{min-width:0!important}
body.owner-page .owner-bot-automation-tile .automation-card-title .eyebrow{margin-bottom:1px!important;font-size:7.7px!important}
body.owner-page .owner-bot-automation-tile .automation-card-title h3{margin:0!important;font-size:13.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.owner-page .owner-bot-automation-tile .automation-status{max-width:126px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.owner-page .automation-status-form{margin:0!important;display:flex!important;align-items:flex-start!important}
body.owner-page .automation-status-toggle{cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:66px!important;min-height:31px!important;padding:0 12px!important;border-radius:999px!important;font-size:10px!important;font-weight:850!important;letter-spacing:.04em!important;text-transform:uppercase!important;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease!important;white-space:nowrap!important}
body.owner-page .automation-status-toggle:hover{transform:translateY(-1px)!important}
body.owner-page .automation-status-toggle.active{border-color:rgba(78,226,165,.24)!important;background:rgba(29,153,105,.16)!important;color:#73f0b8!important;box-shadow:0 0 16px rgba(77,223,163,.12)!important}
body.owner-page .automation-status-toggle.draft{border-color:rgba(130,157,187,.16)!important;background:rgba(92,108,127,.12)!important;color:#b6c2d1!important;box-shadow:none!important}
body.owner-page .automation-status-toggle:focus-visible{outline:none!important;border-color:rgba(89,211,245,.38)!important;box-shadow:0 0 0 3px rgba(89,211,245,.12)!important}
body.owner-page .owner-bot-automation-tile .automation-card-description{display:-webkit-box!important;min-height:31px!important;margin:8px 0 9px!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;color:#7d8fa4!important;font-size:9.2px!important;line-height:1.48!important}
body.owner-page .owner-bot-fact-chips{display:flex!important;flex-wrap:wrap!important;gap:5px!important;padding:0!important;border:0!important;background:transparent!important}
body.owner-page .owner-bot-fact-chips span{display:inline-flex!important;align-items:center!important;min-height:24px!important;padding:4px 7px!important;border:1px solid rgba(125,153,183,.10)!important;border-radius:7px!important;background:rgba(1,9,16,.20)!important;color:#91a2b6!important;font-size:8px!important;line-height:1.25!important}
body.owner-page .owner-bot-tile-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:auto!important;padding-top:10px!important}
body.owner-page .owner-bot-tile-actions>.muted{font-size:8px!important;color:#596d84!important}
body.owner-page .owner-bot-tile-actions .automation-configure-btn{min-width:0!important;padding-inline:9px!important;border-color:rgba(75,202,236,.14)!important;color:#cfeaf5!important;background:rgba(37,151,184,.035)!important;font-size:8.5px!important}

body.owner-page .owner-bot-attention-card{padding:14px!important}
body.owner-page .owner-bot-attention-list{display:grid!important;gap:6px!important}
body.owner-page .owner-bot-attention-row{display:grid!important;grid-template-columns:8px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;min-height:52px!important;padding:8px 9px!important;border:1px solid rgba(126,153,183,.09)!important;border-radius:10px!important;background:rgba(0,0,0,.09)!important;color:inherit!important;text-decoration:none!important;transition:border-color .16s ease,background .16s ease,transform .16s ease!important}
body.owner-page .owner-bot-attention-row:hover{transform:translateX(2px)!important;border-color:rgba(61,207,239,.20)!important;background:rgba(43,175,210,.03)!important}
body.owner-page .owner-bot-attention-row>div{min-width:0!important}
body.owner-page .owner-bot-attention-row b{display:block;color:#dce7f2;font-size:9.7px!important;line-height:1.2!important}
body.owner-page .owner-bot-attention-row small{display:block;margin-top:3px;color:#63768d;font-size:7.8px!important;line-height:1.3!important}
body.owner-page .owner-bot-attention-row strong{min-width:26px;text-align:right;color:#dce7f2;font-size:16px!important;line-height:1!important}
body.owner-page .owner-bot-attention-dot{width:7px;height:7px;border-radius:999px;background:#6d8197;box-shadow:0 0 0 4px rgba(109,129,151,.05)}
body.owner-page .owner-bot-attention-row.bad .owner-bot-attention-dot{background:#ff6681;box-shadow:0 0 10px rgba(255,102,129,.35)}
body.owner-page .owner-bot-attention-row.bad strong{color:#ff8ca0}
body.owner-page .owner-bot-attention-row.warn .owner-bot-attention-dot{background:#f0bd59;box-shadow:0 0 10px rgba(240,189,89,.27)}
body.owner-page .owner-bot-attention-row.warn strong{color:#f4ca78}
body.owner-page .owner-bot-attention-row.ok .owner-bot-attention-dot{background:#4cd8a0;box-shadow:0 0 10px rgba(76,216,160,.28)}
body.owner-page .owner-bot-attention-row.neutral .owner-bot-attention-dot{background:#5e91d4}

body.owner-page .owner-bot-quick-card{padding:14px!important}
body.owner-page .owner-bot-quick-card .automation-broadcast-content{display:block!important}
body.owner-page .owner-bot-quick-card .automation-broadcast-content h2{margin:2px 0 4px!important;font-size:15px!important}
body.owner-page .owner-bot-quick-card .automation-broadcast-content p.muted{font-size:9px!important;line-height:1.45!important}
body.owner-page .owner-bot-quick-card .automation-broadcast-btn{width:100%!important;margin-top:12px!important;justify-content:center!important}
body.owner-page .owner-bot-quick-links{display:grid!important;gap:1px!important;margin-top:9px!important;border-top:1px solid rgba(126,153,183,.08)!important;padding-top:7px!important}
body.owner-page .owner-bot-quick-links a{padding:6px 2px;color:#7bcfe3;font-size:8.5px;text-decoration:none}
body.owner-page .owner-bot-quick-links a:hover{color:#b2effb}

body.owner-page .owner-bot-users-panel{margin-top:0!important;padding:0!important;overflow:hidden!important}
body.owner-page .owner-bot-users-panel>.owner-user-directory-head{padding:15px 16px 11px!important;margin:0!important;border-bottom:1px solid rgba(130,157,187,.085)!important}
body.owner-page .owner-bot-users-title-row{display:flex!important;align-items:center!important;gap:8px!important}
body.owner-page .owner-bot-users-title-row h2{margin:0!important;font-size:17px!important}
body.owner-page .owner-bot-users-title-row .owner-results-count{padding:4px 7px!important;font-size:8px!important}
body.owner-page .owner-bot-segments{display:flex!important;flex-wrap:nowrap!important;gap:5px!important;padding:9px 16px!important;margin:0!important;overflow-x:auto!important;border-bottom:1px solid rgba(130,157,187,.075)!important;scrollbar-width:thin!important}
body.owner-page .owner-bot-segments .crm-segment{flex:0 0 auto!important;min-height:30px!important;padding:6px 9px!important}
body.owner-page .owner-bot-user-filters{display:grid!important;grid-template-columns:minmax(220px,1fr) 170px auto auto!important;align-items:end!important;gap:8px!important;margin:10px 16px!important;padding:9px!important}
body.owner-page .owner-bot-user-filters label>span{margin-bottom:5px!important;font-size:7.8px!important;letter-spacing:.08em!important}
body.owner-page .owner-bot-user-filters input,body.owner-page .owner-bot-user-filters select{height:34px!important;min-height:34px!important;margin:0!important;font-size:9.5px!important}
body.owner-page .owner-bot-user-filters .btn{height:34px!important;min-height:34px!important;margin:0!important;white-space:nowrap!important}
body.owner-page .owner-bot-bulk-panel{margin:0 16px 10px!important;border:1px solid rgba(130,156,186,.10)!important;border-radius:10px!important;background:rgba(0,0,0,.075)!important;overflow:hidden!important}
body.owner-page .owner-bot-bulk-panel>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:36px!important;padding:8px 10px!important;cursor:pointer!important;color:#b9c8d8!important;font-size:9px!important;font-weight:750!important;list-style:none!important}
body.owner-page .owner-bot-bulk-panel>summary::-webkit-details-marker{display:none!important}
body.owner-page .owner-bot-bulk-panel>summary small{color:#697d94!important;font-size:8px!important;font-weight:600!important}
body.owner-page .owner-bot-bulk-panel[open]>summary{border-bottom:1px solid rgba(130,156,186,.08)!important;background:rgba(46,190,226,.018)!important}
body.owner-page .owner-bot-bulk-panel .crm-bulk-controls{padding:10px!important}
body.owner-page .owner-bot-bulk-panel>p{padding:0 10px 10px!important;margin:0!important}
body.owner-page .owner-bot-users-panel .owner-users-table-wrap{border-top:1px solid rgba(130,156,186,.07)!important}
body.owner-page .owner-bot-users-panel .crm-users-table th{top:0!important}
body.owner-page .owner-bot-users-panel .owner-user-avatar{width:30px!important;height:30px!important;min-width:30px!important;border-radius:9px!important;font-size:10px!important}
body.owner-page .owner-bot-users-panel .crm-user-name{font-size:10.5px!important}
body.owner-page .owner-bot-users-panel .owner-user-identity>div>span{font-size:8.2px!important}
body.owner-page .owner-bot-users-panel .crm-customer-summary b,body.owner-page .owner-bot-users-panel td>b{font-size:9.5px!important}
body.owner-page .owner-bot-users-panel .crm-customer-summary span,body.owner-page .owner-bot-users-panel td .muted{font-size:8.3px!important}

@media(max-width:1280px){
  body.owner-page .owner-bot-control-strip{grid-template-columns:1fr!important;gap:12px!important}
  body.owner-page .owner-bot-control-title{display:none!important}
  body.owner-page .owner-bot-control-actions{flex-direction:row!important;min-width:0!important}
  body.owner-page .owner-bot-control-actions .btn{width:auto!important}
  body.owner-page .owner-bot-workspace-grid{grid-template-columns:1fr!important}
  body.owner-page .owner-bot-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
  body.owner-page .owner-bot-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.owner-page .owner-bot-automation-grid{grid-template-columns:1fr!important}
  body.owner-page .owner-bot-side-stack{grid-template-columns:1fr!important}
  body.owner-page .owner-bot-user-filters{grid-template-columns:1fr 1fr!important}
  body.owner-page .owner-bot-user-filters .owner-search-field{grid-column:1/-1!important}
}
@media(max-width:620px){
  body.owner-page .owner-bot-control-strip{padding:12px!important}
  body.owner-page .owner-bot-control-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  body.owner-page .owner-bot-control-actions .btn{width:100%!important}
  body.owner-page .owner-bot-user-filters{grid-template-columns:1fr!important}
  body.owner-page .owner-bot-user-filters .owner-search-field{grid-column:auto!important}
  body.owner-page .owner-bot-users-panel>.owner-user-directory-head{display:block!important}
  body.owner-page .owner-bot-users-panel .crm-directory-actions{margin-top:10px!important;justify-content:flex-start!important}
}

html[data-theme=light] body.owner-page .owner-bot-control-strip{background:linear-gradient(135deg,rgba(255,255,255,.99),rgba(245,250,255,.99))!important}
html[data-theme=light] body.owner-page .owner-bot-kpi,html[data-theme=light] body.owner-page .owner-bot-attention-row{background:rgba(241,247,252,.85)!important}
html[data-theme=light] body.owner-page .owner-bot-kpi>b,html[data-theme=light] body.owner-page .owner-bot-attention-row b,html[data-theme=light] body.owner-page .owner-bot-attention-row strong{color:#183047!important}
html[data-theme=light] body.owner-page .owner-bot-automation-tile{background:linear-gradient(150deg,#fff,#f5f9fc)!important}
body.owner-page .owner-bot-page-context .owner-context-hero{padding:12px 15px!important;border-radius:13px!important}
body.owner-page .owner-bot-page-context .owner-context-main{gap:10px!important}
body.owner-page .owner-bot-page-context .owner-context-icon{width:38px!important;height:38px!important;border-radius:10px!important;font-size:10px!important}
body.owner-page .owner-bot-page-context .owner-context-main h2{font-size:16px!important}
body.owner-page .owner-bot-page-context .owner-context-main .eyebrow{font-size:7.5px!important}
body.owner-page .owner-bot-page-context .owner-context-main>div>p:not(.eyebrow){font-size:8.5px!important}
body.owner-page .owner-bot-page-context .owner-context-tabs{min-height:40px!important}
body.owner-page .owner-bot-page-context .owner-context-tabs a{height:39px!important;font-size:9px!important}
body.owner-page #owner-bot-automation,body.owner-page #owner-users-directory{scroll-margin-top:118px!important}


/* ===== R21: automation settings navigation simplification ===== */
body.owner-page .owner-automation-page-intro{margin-bottom:10px!important}
body.owner-page .owner-automation-page-intro h2{margin-bottom:3px!important}
body.owner-page .owner-automation-subnav{
  display:flex!important;align-items:center!important;gap:10px!important;
  min-height:46px!important;margin:0 0 12px!important;padding:7px 9px!important;
  border:1px solid rgba(117,151,185,.12)!important;border-radius:12px!important;
  background:linear-gradient(135deg,rgba(12,26,39,.88),rgba(7,18,29,.94))!important;
  box-shadow:0 12px 34px rgba(0,0,0,.10)!important;overflow-x:auto!important;
  scrollbar-width:thin!important;
}
body.owner-page .owner-automation-subnav-label{
  flex:0 0 auto;padding:0 7px;color:#60758b;font-size:7.8px;font-weight:850;
  letter-spacing:.13em;text-transform:uppercase;white-space:nowrap;
}
body.owner-page .owner-automation-subnav-items{display:flex!important;align-items:center!important;gap:5px!important;min-width:max-content!important}
body.owner-page .owner-automation-subnav-link{
  position:relative;display:inline-flex!important;align-items:center!important;gap:7px!important;
  min-height:30px!important;padding:6px 9px!important;border:1px solid transparent!important;
  border-radius:8px!important;color:#7f93a8!important;background:transparent!important;
  font-size:8.8px!important;font-weight:760!important;text-decoration:none!important;white-space:nowrap!important;
  transition:color .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
body.owner-page .owner-automation-subnav-link:hover{color:#d6e9f4!important;border-color:rgba(67,211,239,.13)!important;background:rgba(41,177,213,.035)!important}
body.owner-page .owner-automation-subnav-link.is-active{
  color:#eaf8ff!important;border-color:rgba(63,217,241,.24)!important;
  background:linear-gradient(135deg,rgba(91,74,255,.12),rgba(38,201,231,.09))!important;
  box-shadow:inset 0 0 0 1px rgba(68,221,242,.04),0 0 18px rgba(53,197,225,.05)!important;
}
body.owner-page .owner-automation-subnav-dot{width:6px;height:6px;border-radius:999px;background:#50667b;box-shadow:0 0 0 3px rgba(80,102,123,.04)}
body.owner-page .owner-automation-subnav-link.is-active .owner-automation-subnav-dot{background:#55dfbe;box-shadow:0 0 10px rgba(85,223,190,.45)}
body.owner-page .owner-automation-subnav + .card.glow{margin-top:0!important}
@media(max-width:760px){
  body.owner-page .owner-automation-subnav{align-items:flex-start!important;flex-direction:column!important;gap:5px!important}
  body.owner-page .owner-automation-subnav-label{padding-top:2px!important}
  body.owner-page .owner-automation-subnav-items{width:100%!important;overflow-x:auto!important;padding-bottom:1px!important}
}
html[data-theme=light] body.owner-page .owner-automation-subnav{background:linear-gradient(135deg,#fff,#f4f9fc)!important}
html[data-theme=light] body.owner-page .owner-automation-subnav-link.is-active{color:#183247!important;background:linear-gradient(135deg,rgba(91,74,255,.07),rgba(38,201,231,.07))!important}


/* ===== R23: one canonical action per destination ===== */
body.owner-page .owner-bot-side-stack:has(.owner-bot-attention-card:only-child){display:block!important}
body.owner-page .owner-bot-side-stack:has(.owner-bot-attention-card:only-child) .owner-bot-attention-card{position:sticky;top:104px!important}
body.owner-page .owner-bot-control-strip .owner-bot-kpis{width:100%!important}
@media(max-width:1280px){body.owner-page .owner-bot-control-strip{grid-template-columns:1fr!important}body.owner-page .owner-bot-control-title{display:block!important}}
@media(max-width:900px){body.owner-page .owner-bot-side-stack .owner-bot-attention-card{position:static!important}}


/* ===== R24: balanced bot workspace + one visible broadcast CTA ===== */
body.owner-page .owner-bot-control-strip{
  grid-template-columns:minmax(210px,.72fr) minmax(0,2.28fr) auto!important;
  gap:14px!important;
}
body.owner-page .owner-bot-primary-action{display:flex!important;align-items:stretch!important;justify-content:flex-end!important}
body.owner-page .owner-bot-primary-action .btn{min-width:150px!important;height:100%!important;min-height:56px!important;justify-content:center!important;white-space:nowrap!important}
body.owner-page .owner-bot-workspace-grid{
  grid-template-columns:1fr!important;
  gap:12px!important;
}
body.owner-page .owner-bot-side-stack{display:block!important}
body.owner-page .owner-bot-side-stack:has(.owner-bot-attention-card:only-child) .owner-bot-attention-card{position:static!important;top:auto!important}
body.owner-page .owner-bot-attention-card{
  display:grid!important;
  grid-template-columns:170px minmax(0,1fr)!important;
  align-items:center!important;
  gap:14px!important;
  padding:12px 14px!important;
}
body.owner-page .owner-bot-attention-card .owner-bot-section-head{margin:0!important}
body.owner-page .owner-bot-attention-list{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
}
body.owner-page .owner-bot-attention-row{min-height:58px!important;padding:8px 9px!important}
body.owner-page .owner-bot-automation-panel{width:100%!important}
body.owner-page .owner-bot-automation-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
}
body.owner-page .owner-bot-automation-tile{min-height:182px!important}
body.owner-page .owner-bot-automation-tile .automation-card-title h3{font-size:12.6px!important}
body.owner-page .owner-bot-tile-actions .automation-configure-btn{white-space:nowrap!important}
@media(max-width:1480px){
  body.owner-page .owner-bot-control-strip{grid-template-columns:minmax(190px,.65fr) minmax(0,2.35fr) auto!important}
  body.owner-page .owner-bot-automation-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.owner-page .owner-bot-attention-card{grid-template-columns:150px minmax(0,1fr)!important}
}
@media(max-width:1180px){
  body.owner-page .owner-bot-control-strip{grid-template-columns:1fr!important}
  body.owner-page .owner-bot-primary-action{justify-content:flex-start!important}
  body.owner-page .owner-bot-primary-action .btn{height:auto!important;min-height:38px!important;min-width:170px!important}
  body.owner-page .owner-bot-attention-card{grid-template-columns:1fr!important}
  body.owner-page .owner-bot-attention-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body.owner-page .owner-bot-attention-list{grid-template-columns:1fr!important}
  body.owner-page .owner-bot-automation-grid{grid-template-columns:1fr!important}
  body.owner-page .owner-bot-primary-action .btn{width:100%!important}
}
html[data-theme=light] body.owner-page .owner-bot-attention-card{background:linear-gradient(135deg,#fff,#f5f9fc)!important}

/* ===== R25: categorized Owner information architecture ===== */
body.owner-page .owner-system-tabs{
  position:sticky!important;top:58px!important;z-index:18!important;
  display:flex!important;align-items:center!important;gap:5px!important;
  margin:0 0 14px!important;padding:6px!important;
  border:1px solid rgba(112,151,190,.14)!important;border-radius:13px!important;
  background:rgba(5,17,28,.92)!important;backdrop-filter:blur(18px)!important;
  box-shadow:0 12px 35px rgba(0,0,0,.15)!important;
  overflow-x:auto!important;scrollbar-width:thin!important;
}
body.owner-page .owner-system-tabs a{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  min-height:34px!important;padding:7px 10px!important;border:1px solid transparent!important;
  border-radius:9px!important;color:#8095aa!important;text-decoration:none!important;
  font-size:9px!important;font-weight:800!important;white-space:nowrap!important;
  transition:.16s ease!important;
}
body.owner-page .owner-system-tabs a:hover{color:#dcecf6!important;border-color:rgba(53,208,237,.14)!important;background:rgba(43,182,216,.035)!important}
body.owner-page .owner-system-tabs a.active{
  color:#f1fbff!important;border-color:rgba(55,215,239,.22)!important;
  background:linear-gradient(135deg,rgba(93,76,255,.15),rgba(36,205,231,.10))!important;
  box-shadow:inset 0 0 0 1px rgba(70,222,242,.035),0 0 24px rgba(44,196,225,.055)!important;
}
body.owner-page .owner-system-tabs a.active span{color:#67e5f5!important;filter:drop-shadow(0 0 7px rgba(66,220,242,.42))}
body.owner-page .owner-system-section-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;margin:4px 0 12px!important;padding:0 2px!important}
body.owner-page .owner-system-section-head h2{margin:2px 0 4px!important;font-size:20px!important;letter-spacing:-.025em!important}
body.owner-page .owner-system-section-head p:not(.eyebrow){margin:0!important;color:#71869b!important;font-size:9.5px!important;line-height:1.5!important}
body.owner-page .owner-system-intro{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:12px!important;padding:15px 16px!important;border:1px solid rgba(83,193,224,.14)!important;border-radius:13px!important;background:linear-gradient(135deg,rgba(16,35,52,.92),rgba(7,20,31,.95))!important}
body.owner-page .owner-system-intro h2{margin:2px 0 4px!important;font-size:18px!important}
body.owner-page .owner-system-intro p:not(.eyebrow){margin:0!important;color:#73889d!important;font-size:9.5px!important}
body.owner-page .owner-system-status-grid{align-items:stretch!important}
body.owner-page .owner-system-status-grid>.owner-cc-card{height:100%!important}
body.owner-page .owner-access-card{max-width:760px!important}
body.owner-page .owner-compact-stats-bots{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.owner-page .owner-compact-stats-payments{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.owner-page .owner-connected-bots .owner-table-toolbar{align-items:center!important}
body.owner-page .owner-connected-bots .owner-table-search{min-width:260px!important}
@media(max-width:1180px){
  body.owner-page .owner-system-tabs{top:54px!important}
  body.owner-page .owner-compact-stats-payments{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body.owner-page .owner-system-tabs{top:52px!important;margin-inline:-2px!important;border-radius:10px!important}
  body.owner-page .owner-system-section-head{align-items:flex-start!important;flex-direction:column!important}
  body.owner-page .owner-system-intro{align-items:flex-start!important;flex-direction:column!important}
  body.owner-page .owner-compact-stats-bots,body.owner-page .owner-compact-stats-payments{grid-template-columns:1fr!important}
  body.owner-page .owner-connected-bots .owner-table-search{min-width:0!important;width:100%!important}
}
html[data-theme=light] body.owner-page .owner-system-tabs{background:rgba(249,252,255,.94)!important}
html[data-theme=light] body.owner-page .owner-system-intro{background:linear-gradient(135deg,#fff,#f4f9fd)!important}

/* ===== R26: user cancellations are neutral, not operational errors ===== */

/* R27 — saved settings/read mode ------------------------------------------------ */
body.owner-page .owner-config-form{position:relative}
body.owner-page .owner-config-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 12px;border:1px solid rgba(99,180,255,.14);border-radius:12px;background:linear-gradient(90deg,rgba(40,129,255,.055),rgba(42,220,225,.025))}
body.owner-page .owner-config-toolbar-copy{display:flex;align-items:center;gap:9px;min-width:0}
body.owner-page .owner-config-toolbar-copy strong{font-size:11px;color:#dbe9f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.owner-page .owner-config-state{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;border:1px solid rgba(72,223,162,.25);background:rgba(72,223,162,.09);color:#65e6aa;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
body.owner-page .owner-config-state::before{content:"✓";font-size:9px}
body.owner-page .owner-config-form[data-owner-configured="0"] .owner-config-state{border-color:rgba(255,190,77,.22);background:rgba(255,190,77,.07);color:#f2bd65}
body.owner-page .owner-config-form[data-owner-configured="0"] .owner-config-state::before{content:"•"}
body.owner-page .owner-config-edit{min-width:112px}
body.owner-page .owner-config-read-value{display:none;position:relative;width:100%;min-height:38px;padding:9px 12px;border:1px solid rgba(94,185,255,.15);border-radius:10px;background:linear-gradient(180deg,rgba(25,47,67,.72),rgba(15,32,48,.72));color:#edf7ff;font-size:11px;line-height:1.45;font-weight:700;overflow-wrap:anywhere;white-space:pre-wrap}
body.owner-page .owner-config-read-value::after{content:"Сохранено";position:absolute;right:9px;top:50%;transform:translateY(-50%);padding:3px 6px;border-radius:999px;background:rgba(61,220,160,.08);border:1px solid rgba(61,220,160,.16);color:#5bdda5;font-size:7px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
body.owner-page .owner-config-read-value.is-empty{color:#778ba0;font-weight:600}
body.owner-page .owner-config-read-value.is-empty::after{content:"Не задано";color:#d5a55b;border-color:rgba(218,168,83,.14);background:rgba(218,168,83,.06)}
body.owner-page .owner-config-read-value.is-secret{letter-spacing:.08em;color:#b9cae0}
body.owner-page .owner-config-form.is-locked input:not([type="hidden"]),
body.owner-page .owner-config-form.is-locked select,
body.owner-page .owner-config-form.is-locked textarea{display:none!important}
body.owner-page .owner-config-form.is-locked .owner-config-read-value{display:block}
body.owner-page .owner-config-form.is-locked label>small{display:none!important}
body.owner-page .owner-config-form.is-locked .owner-check .owner-config-read-value,
body.owner-page .owner-config-form.is-locked label[style*="display:flex"] .owner-config-read-value{width:auto;min-width:74px;min-height:30px;margin-left:auto;padding:6px 44px 6px 9px;white-space:nowrap}
body.owner-page .owner-config-form.is-locked .owner-config-check-label{display:flex!important;align-items:center!important;gap:10px!important}
body.owner-page .owner-config-form.is-locked .owner-config-check-label .owner-config-read-value{margin-left:auto}
body.owner-page .owner-config-form.is-locked button[type="submit"],
body.owner-page .owner-config-form.is-locked input[type="submit"]{display:none!important}
body.owner-page .owner-config-external-submit.owner-config-hidden{display:none!important}
body.owner-page .owner-config-form.is-editing .owner-config-toolbar{border-color:rgba(88,155,255,.25);background:linear-gradient(90deg,rgba(91,95,255,.10),rgba(44,210,232,.05))}
body.owner-page .owner-config-form.is-editing .owner-config-state{border-color:rgba(103,148,255,.24);background:rgba(103,148,255,.09);color:#9eb7ff}
body.owner-page .owner-config-form.is-editing .owner-config-state::before{content:"✎"}
body.owner-page .owner-config-form.is-editing .owner-config-read-value{display:none!important}
body.owner-page .owner-config-form.is-editing .owner-config-edit{border-color:rgba(255,255,255,.10)!important;background:rgba(255,255,255,.025)!important;color:#aebed0!important}
body.owner-page .owner-config-form.is-dirty .owner-config-state{color:#ffd073;border-color:rgba(255,208,115,.25);background:rgba(255,208,115,.07)}
body.owner-page .owner-config-form.is-dirty .owner-config-state::before{content:"•"}
body.owner-page .owner-config-form.is-dirty .owner-config-state-text::after{content:"Есть изменения";font-size:0}
body.owner-page .owner-config-form.is-dirty .owner-config-state-text{font-size:0}
body.owner-page .owner-config-form.is-dirty .owner-config-state-text::before{content:"Есть изменения";font-size:9px}
body.owner-page .owner-config-form .owner-config-read-value[data-owner-read-kind="checkbox"]{max-width:120px}
html[data-theme=light] body.owner-page .owner-config-toolbar{background:linear-gradient(90deg,rgba(47,128,237,.055),rgba(28,194,203,.025));border-color:rgba(40,110,180,.13)}
html[data-theme=light] body.owner-page .owner-config-toolbar-copy strong{color:#25384b}
html[data-theme=light] body.owner-page .owner-config-read-value{background:linear-gradient(180deg,rgba(243,249,255,.98),rgba(237,246,253,.98));border-color:rgba(38,112,180,.14);color:#203448}
@media(max-width:720px){body.owner-page .owner-config-toolbar{align-items:flex-start;flex-direction:column}body.owner-page .owner-config-edit{width:100%}}
body.owner-page .owner-config-form>.owner-config-toolbar{grid-column:1/-1;width:100%}
body.owner-page .owner-proxy-fields.owner-config-form>.owner-config-toolbar{grid-column:1/-1}

/* ===== R28: form clarity + aligned payment provider cards ===== */
/* Read mode already has one form-level "Сохранено" marker. Per-field save badges were visual noise
   and collided with boolean values ("ВыключеноСохранено"). Saved values now speak for themselves. */
body.owner-page .owner-config-read-value{padding-right:12px!important}
body.owner-page .owner-config-read-value::after{content:none!important;display:none!important}
body.owner-page .owner-config-read-value.is-empty{color:#d0a65e!important;border-color:rgba(222,173,82,.17)!important;background:linear-gradient(180deg,rgba(65,47,19,.23),rgba(38,31,20,.20))!important}
body.owner-page .owner-config-read-value.is-boolean{
  display:none; width:auto!important; min-width:88px!important; min-height:30px!important; padding:6px 12px!important;
  border-radius:10px!important; white-space:nowrap!important; text-align:center; font-size:10px!important; font-weight:900!important;
}
body.owner-page .owner-config-form.is-locked .owner-config-read-value.is-boolean{display:inline-flex!important;align-items:center;justify-content:center}
body.owner-page .owner-config-read-value.is-boolean.is-on{color:#60e7ac!important;border-color:rgba(56,223,157,.27)!important;background:rgba(50,207,145,.10)!important}
body.owner-page .owner-config-read-value.is-boolean.is-off{color:#9eabba!important;border-color:rgba(150,166,184,.16)!important;background:rgba(128,145,164,.07)!important}
/* app.css gives all .btn a display value, which can override the native hidden attribute. */
body.owner-page .owner-config-form button[hidden],
body.owner-page .owner-config-form input[type="submit"][hidden],
body.owner-page button.owner-config-external-submit.owner-config-hidden,
body.owner-page input.owner-config-external-submit.owner-config-hidden{display:none!important}

/* Payment system cards share one rigid skeleton: header / callback URLs / config / footer. */
body.owner-page .owner-payment-config-grid{align-items:stretch!important}
body.owner-page .owner-payment-provider-card{
  display:grid!important;
  grid-template-rows:auto auto 1fr auto!important;
  align-content:stretch!important;
  min-width:0!important;
  height:100%!important;
}
body.owner-page .owner-payment-provider-card>.owner-config-form{
  align-content:start!important;
  min-height:0!important;
  margin-top:14px!important;
}
body.owner-page .owner-payment-provider-card>.owner-config-form>.owner-config-toolbar{margin-top:0!important}
body.owner-page .owner-payment-provider-card .owner-url-box,
body.owner-page .owner-payment-provider-card .owner-url-stack{margin-bottom:0!important}
body.owner-page .owner-payment-card-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:54px!important;
  margin-top:14px!important;
  padding-top:12px!important;
  border-top:1px solid rgba(128,159,190,.10)!important;
}
body.owner-page .owner-payment-card-footer-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
body.owner-page .owner-payment-card-footer>.btn.primary{min-width:170px!important;margin-left:auto!important}
body.owner-page .owner-payment-test-mode-form{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important}
body.owner-page .owner-payment-test-mode-form .owner-check{margin:0!important;white-space:nowrap!important;text-transform:none!important;letter-spacing:0!important}
body.owner-page .owner-payment-test-mode-form .owner-check input{width:auto!important;margin:0 6px 0 0!important}
body.owner-page .owner-payment-test-mode-form .btn{min-height:30px!important}
html[data-theme=light] body.owner-page .owner-config-read-value.is-empty{background:rgba(255,190,77,.055)!important;color:#9b6d23!important}
@media(max-width:900px){
  body.owner-page .owner-payment-card-footer{align-items:stretch!important;flex-direction:column!important}
  body.owner-page .owner-payment-card-footer-left{width:100%!important}
  body.owner-page .owner-payment-card-footer>.btn.primary{width:100%!important;margin-left:0!important}
}

/* R29 — global maintenance mode */
body.owner-page .owner-maintenance-toggle-form{margin:0!important}
body.owner-page .owner-maintenance-toggle{height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border:1px solid rgba(245,186,73,.28);border-radius:10px;background:rgba(245,186,73,.07);color:#e8c980;font:inherit;cursor:pointer;transition:.18s ease;white-space:nowrap}
body.owner-page .owner-maintenance-toggle b{font-size:12px;color:#d8e5f2}
body.owner-page .owner-maintenance-toggle em{font-style:normal;font-size:9px;font-weight:800;letter-spacing:.08em;padding:3px 5px;border-radius:999px;background:rgba(255,255,255,.05);color:#a7b8ca}
body.owner-page .owner-maintenance-toggle:hover{border-color:rgba(245,186,73,.52);box-shadow:0 0 22px rgba(245,186,73,.08)}
body.owner-page .owner-maintenance-toggle.active{border-color:rgba(255,91,110,.55);background:rgba(255,72,95,.11);box-shadow:0 0 24px rgba(255,72,95,.09)}
body.owner-page .owner-maintenance-toggle.active b,body.owner-page .owner-maintenance-toggle.active em{color:#ffd8dc}
body.owner-page .owner-maintenance-toggle.active em{background:rgba(255,72,95,.18)}
body.owner-page .owner-maintenance-banner{display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 18px;border-bottom:1px solid rgba(255,91,110,.26);background:linear-gradient(90deg,rgba(111,20,36,.36),rgba(255,79,102,.09),rgba(111,20,36,.20));color:#d8e4ef;font-size:11px}
body.owner-page .owner-maintenance-banner strong{color:#ffd2d7;font-size:12px}
body.owner-page .owner-maintenance-banner span:last-child{color:#9fb0c1}
body.owner-page .owner-maintenance-pulse{width:8px;height:8px;border-radius:50%;background:#ff5269;box-shadow:0 0 0 0 rgba(255,82,105,.45);animation:owner-maintenance-pulse 1.8s infinite}
@keyframes owner-maintenance-pulse{0%{box-shadow:0 0 0 0 rgba(255,82,105,.45)}70%{box-shadow:0 0 0 8px rgba(255,82,105,0)}100%{box-shadow:0 0 0 0 rgba(255,82,105,0)}}
body.owner-page .owner-maintenance-settings{margin-top:14px}
@media(max-width:980px){body.owner-page .owner-maintenance-toggle b{display:none}body.owner-page .owner-maintenance-banner span:last-child{display:none}}
@media(max-width:720px){body.owner-page .owner-maintenance-toggle em{display:none}}
@media(prefers-reduced-motion:reduce){body.owner-page .owner-maintenance-pulse{animation:none}}


/* R31 — dedicated generation error diagnostics (entry only from Overview) */
body.owner-page .owner-error-kpis .owner-cc-kpi small{display:block;margin-top:3px;color:#6f879f;font-size:9px}
body.owner-page .owner-error-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.owner-page .owner-error-note .btn{margin-left:auto}
body.owner-page .owner-errors-table{min-width:1220px}
body.owner-page .owner-errors-table td{vertical-align:top}
body.owner-page .owner-errors-table td small{display:block;margin-top:4px;color:#6f879f;font-size:9px;line-height:1.35}
body.owner-page .owner-error-time{white-space:nowrap;color:#93a9bd}
body.owner-page .owner-error-user-link{color:#dbeaff;text-decoration:none}
body.owner-page .owner-error-user-link:hover{color:#53d3ff}
body.owner-page .owner-error-stage{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border:1px solid rgba(255,92,112,.20);border-radius:8px;background:rgba(255,92,112,.07);color:#ffc0c8;font-size:10px;font-weight:800;white-space:nowrap}
body.owner-page .owner-error-message{min-width:250px;max-width:390px;color:#c7d5e2}
body.owner-page details.owner-error-details{position:relative}
body.owner-page details.owner-error-details>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 9px;border:1px solid rgba(88,205,255,.18);border-radius:8px;background:rgba(88,205,255,.055);color:#bfeeff;font-size:10px;font-weight:800;white-space:nowrap}
body.owner-page details.owner-error-details>summary::-webkit-details-marker{display:none}
body.owner-page details.owner-error-details[open]>summary{border-color:rgba(88,205,255,.38);background:rgba(88,205,255,.10)}
body.owner-page .owner-error-details-panel{position:absolute;z-index:35;right:0;top:36px;width:min(720px,78vw);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border:1px solid rgba(83,209,255,.20);border-radius:12px;background:#0b1b2a;box-shadow:0 22px 60px rgba(0,0,0,.45)}
body.owner-page .owner-error-details-panel>div{min-width:0;padding:9px 10px;border:1px solid rgba(128,159,190,.10);border-radius:9px;background:rgba(255,255,255,.018)}
body.owner-page .owner-error-details-panel span{display:block;margin-bottom:4px;color:#728ba4;font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
body.owner-page .owner-error-details-panel b,body.owner-page .owner-error-details-panel p{display:block;margin:0;color:#dce8f3;font-size:10px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
body.owner-page .owner-error-details-wide{grid-column:1/-1}
body.owner-page .owner-error-details-wide p{color:#ffced4}
body.owner-page .owner-error-details-actions{display:flex;justify-content:flex-end;background:transparent!important;border:0!important;padding:2px!important}
body.owner-page .owner-error-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:26px 12px;text-align:center}
body.owner-page .owner-error-empty b{color:#bcefd3}
body.owner-page .owner-error-empty span{color:#728ba4;font-size:10px}
@media(max-width:900px){body.owner-page .owner-error-note .btn{width:100%;margin-left:0}body.owner-page .owner-error-details-panel{position:fixed;left:12px;right:12px;top:100px;width:auto;max-height:70vh;overflow:auto;grid-template-columns:1fr 1fr}body.owner-page .owner-error-details-wide{grid-column:1/-1}}
@media(max-width:620px){body.owner-page .owner-error-details-panel{grid-template-columns:1fr}.owner-page .owner-error-details-wide{grid-column:auto}}


/* R32 — error row opens a full Owner card instead of an inline <details> popover */
body.owner-page .owner-error-open{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
body.owner-page .owner-error-card{border:1px solid rgba(96,205,244,.14);border-radius:16px;background:linear-gradient(180deg,rgba(12,28,43,.98),rgba(8,20,31,.98));box-shadow:0 22px 70px rgba(0,0,0,.22);overflow:hidden}
body.owner-page .owner-error-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid rgba(126,158,188,.09)}
body.owner-page .owner-error-card-head h2{margin:9px 0 4px;color:#eef8ff;font-size:20px;line-height:1.15}
body.owner-page .owner-error-card-head p{margin:0;max-width:900px;color:#8299ae;font-size:10.5px;line-height:1.5}
body.owner-page .owner-error-card-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
body.owner-page .owner-error-card-time{color:#718aa1;font-size:9px;font-weight:700}
body.owner-page .owner-error-card-message{margin:18px 22px 0;padding:16px 17px;border:1px solid rgba(255,102,124,.17);border-radius:12px;background:rgba(255,86,110,.045)}
body.owner-page .owner-error-card-message span{display:block;margin-bottom:7px;color:#c88691;font-size:8.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
body.owner-page .owner-error-card-message p{margin:0;color:#ffd2d8;font-size:11px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
body.owner-page .owner-error-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 22px}
body.owner-page .owner-error-card-grid article{min-width:0;padding:15px;border:1px solid rgba(126,158,188,.09);border-radius:12px;background:rgba(255,255,255,.016)}
body.owner-page .owner-error-card-section-title{margin-bottom:12px}
body.owner-page .owner-error-card-section-title b{display:block;color:#dceaf6;font-size:11px}
body.owner-page .owner-error-card-section-title small{display:block;margin-top:3px;color:#667e95;font-size:8.5px}
body.owner-page .owner-error-card dl{display:grid;gap:0;margin:0}
body.owner-page .owner-error-card dl>div{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.3fr);gap:12px;padding:9px 0;border-top:1px solid rgba(126,158,188,.07)}
body.owner-page .owner-error-card dl>div:first-child{border-top:0}
body.owner-page .owner-error-card dt{color:#688198;font-size:8.5px;font-weight:750}
body.owner-page .owner-error-card dd{margin:0;color:#dce8f3;font-size:9.5px;font-weight:750;text-align:right;overflow-wrap:anywhere}
body.owner-page .owner-error-user-action{margin-top:10px}
body.owner-page .owner-error-finance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 22px 22px}
body.owner-page .owner-error-finance>div{padding:13px 14px;border:1px solid rgba(126,158,188,.09);border-radius:11px;background:rgba(255,255,255,.018)}
body.owner-page .owner-error-finance span{display:block;margin-bottom:5px;color:#6b8399;font-size:8.5px;font-weight:750}
body.owner-page .owner-error-finance b{display:block;color:#e4eef7;font-size:10.5px;overflow-wrap:anywhere}
@media(max-width:1050px){body.owner-page .owner-error-card-grid{grid-template-columns:1fr 1fr}body.owner-page .owner-error-card-grid article:last-child{grid-column:1/-1}body.owner-page .owner-error-finance{grid-template-columns:1fr 1fr}}
@media(max-width:700px){body.owner-page .owner-error-card-head{display:block;padding:17px}body.owner-page .owner-error-card-head>.btn{margin-top:13px}body.owner-page .owner-error-card-message{margin:14px 17px 0}body.owner-page .owner-error-card-grid{grid-template-columns:1fr;padding:14px 17px}body.owner-page .owner-error-card-grid article:last-child{grid-column:auto}body.owner-page .owner-error-finance{grid-template-columns:1fr;padding:0 17px 17px}body.owner-page .owner-error-card dl>div{grid-template-columns:1fr}body.owner-page .owner-error-card dd{text-align:left}}
