/* Ete internal workspace v2
   Fluent-inspired enterprise structure on the existing HTML/CSS/JS stack. */

:root{
  --bg:#f4f7f6;
  --surface:#ffffff;
  --surface-subtle:#f8faf9;
  --surface-green:#eef8f4;
  --ink:#17221f;
  --muted:#66736f;
  --muted-2:#89948f;
  --line:#e2e9e6;
  --line-strong:#d3ded9;
  --primary:#00876a;
  --primary2:#006f58;
  --green:#00876a;
  --amber:#c47b15;
  --red:#c94343;
  --violet:#6d5db2;
  --shadow:0 12px 34px rgba(17,55,44,.055);
  --shadow-float:0 22px 70px rgba(8,39,31,.18);
  --radius:16px;
}

html{background:var(--bg)}
body{
  color:var(--ink);
  background:var(--bg);
  font-family:"Noto Sans SC Variable","Noto Sans SC","MiSans","HarmonyOS Sans SC","Segoe UI","PingFang SC","Microsoft YaHei UI",sans-serif;
  text-rendering:optimizeLegibility;
}
button,input,select,textarea{font-family:inherit}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(0,135,106,.18);
  outline-offset:2px;
}
button:active{transform:translateY(1px)}

/* Core application shell */
.app-shell{
  min-height:100dvh;
  grid-template-columns:256px minmax(0,1fr);
  background:
    radial-gradient(circle at 90% -10%,rgba(0,135,106,.055),transparent 28%),
    var(--bg);
}
.sidebar{
  width:256px;
  height:100dvh;
  padding:18px 14px 16px;
  color:var(--ink);
  background:rgba(255,255,255,.96);
  border-right:1px solid var(--line);
  box-shadow:none;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width:thin;
}
.sidebar *{min-width:0}
.sidebar-health,.sidebar-user,.sidebar-brand{max-width:100%}
.sidebar-brand{
  min-height:56px;
  gap:11px;
  padding:3px 8px 18px;
  border-bottom:1px solid var(--line);
}
.sidebar-brand .brand-logo-frame{
  width:38px;
  height:38px;
  padding:5px;
  border-radius:12px;
  border-color:#d8e8e2;
  background:linear-gradient(145deg,#f7fffc,#e8f6f1);
  box-shadow:0 7px 18px rgba(0,110,86,.09);
}
.sidebar-brand b{
  color:#11211d;
  font-size:15px;
  letter-spacing:-.01em;
}
.sidebar-brand small{
  color:#87938e;
  font-size:10px;
  margin-top:3px;
}
.sidebar nav{
  display:block;
  padding-top:12px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.sidebar nav p{
  margin:14px 10px 6px;
  padding:0;
  color:#9aa39f;
  font-size:10px;
  font-weight:650;
  letter-spacing:.08em;
}
.nav-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  min-height:42px;
  padding:9px 11px;
  margin:2px 0;
  border:1px solid transparent;
  border-radius:11px;
  color:#5d6965;
  background:transparent;
  font-size:13px;
  font-weight:600;
  transition:color .16s ease,background .16s ease,border-color .16s ease;
}
.nav-item i{
  width:20px;
  color:#7a8681;
  font-size:19px;
  text-align:center;
  transition:color .16s ease;
}

/* Tabler's icon font sits slightly high against Chinese text. Correct the
   optical baseline only inside the authenticated workspace. */
.app-shell i[class^="ti "],
.app-shell i[class*=" ti-"]{
  position:relative;
  top:1px;
  line-height:1;
  vertical-align:middle;
}

.checkbox-line.is-capability-disabled{
  opacity:.46;
  cursor:not-allowed;
}
.checkbox-line.is-capability-disabled input{cursor:not-allowed}

.nav-item span{
  width:auto;
  color:inherit;
  font-size:13px;
  text-align:left;
}
.nav-item:hover{
  color:#20302b;
  background:#f4f8f6;
  border-color:#edf1ef;
}
.nav-item:hover i{color:#2d5a4d}
.nav-item.active{
  color:#006c55;
  background:#eaf6f1;
  border-color:#d9ece5;
  box-shadow:none;
}
.nav-item.active:before{
  content:"";
  position:absolute;
  left:-6px;
  top:11px;
  width:3px;
  height:20px;
  border-radius:3px;
  background:var(--primary);
}
.nav-item.active i{color:var(--primary)}
.sidebar-health{
  margin-top:auto;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid #dce7e3;
  border-radius:14px;
  color:var(--ink);
  background:linear-gradient(145deg,#fbfdfc,#f3f8f6);
  box-shadow:0 7px 20px rgba(24,67,53,.045);
}
.wecom-account-avatar{
  width:38px;
  height:38px;
  display:grid!important;
  place-items:center;
  overflow:hidden;
  border:1px solid #d4e6df;
  border-radius:12px;
  color:#08765f;
  background:#eaf5f1;
  font-size:19px;
}
.wecom-account-avatar img{width:100%;height:100%;object-fit:cover}
.wecom-account-copy{
  min-width:0;
  display:block!important;
}
.wecom-account-heading{
  min-width:0;
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:6px;
}
.wecom-account-heading b{
  min-width:0;
  overflow:hidden;
  color:#22332d;
  font-size:11px;
  font-weight:720;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wecom-account-copy>small{
  display:block;
  margin-top:4px;
  overflow:hidden;
  color:#7d8985;
  font:500 8.5px/1.25 "Noto Sans SC","Microsoft YaHei",sans-serif;
  letter-spacing:.005em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wecom-account-state{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#909a96;
  font-size:8px;
  font-weight:650;
}
.wecom-account-state.is-online{color:#08765f}
.wecom-account-state.is-waiting{color:#9a7112}
.status-dot{flex:none;background:#a4ada9}
.wecom-account-state .status-dot{width:5px;height:5px}
.status-dot.online{
  background:#0aa77c;
  box-shadow:0 0 0 3px rgba(0,135,106,.1);
}

.main{min-width:0}
.topbar{
  height:72px;
  padding:0 28px;
  background:rgba(255,255,255,.88);
  border-color:var(--line);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
}
.topbar-title{display:flex;flex-direction:column;min-width:130px}
.topbar h2{
  margin:2px 0 0;
  color:#1b2925;
  font-size:17px;
  font-weight:720;
  letter-spacing:-.015em;
}
.topbar #breadcrumb{color:#8c9792;font-size:10px}
.top-actions{gap:8px}
.command-button{
  min-width:196px;
  height:38px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 9px 0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  color:#68736f;
  background:#f8faf9;
  font-size:11px;
  text-align:left;
}
.command-button span{flex:1}
kbd{
  min-width:42px;
  padding:3px 6px;
  border:1px solid #dbe3e0;
  border-bottom-color:#cbd5d1;
  border-radius:6px;
  color:#87918d;
  background:#fff;
  box-shadow:0 1px 0 #d8e0dd;
  font:600 9px/1.2 "Segoe UI",sans-serif;
  text-align:center;
}
.user-cluster{
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:4px;
  padding-left:12px;
  border-left:1px solid var(--line);
}
.avatar,.entity-avatar{
  color:#006f58;
  background:linear-gradient(145deg,#dff3eb,#f0f8f5);
  border:1px solid #d7e9e2;
}
.avatar{
  width:34px;
  height:34px;
  border-radius:11px;
}
.user-meta{min-width:0}
.user-name-line{display:flex;align-items:center;gap:5px;min-width:0}
.user-meta b{
  max-width:126px;
  overflow:hidden;
  color:#26332f;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.user-meta small{color:#8a9490}
.identity-source{
  flex:none;
  padding:2px 5px;
  border:1px solid #dbe7ff;
  border-radius:5px;
  color:#3568b6;
  background:#f2f6ff;
  font-size:8px;
  font-weight:700;
  line-height:1.1;
}
.icon-button,.quiet-button,.text-button{
  border-color:var(--line);
  color:#5f6c67;
  background:#fff;
  box-shadow:none;
}
.icon-button{display:grid;place-items:center}
.icon-button i{font-size:18px}
.quiet-button{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 12px;
}
.quiet-button:hover,.icon-button:hover{
  color:var(--primary);
  border-color:#bcd8ce;
  background:#f5fbf8;
}
.text-button{color:var(--primary)}

.content{
  width:100%;
  max-width:1540px;
  padding:28px 32px 56px;
}
.page{animation:none}
.page.active{animation:etePageIn .2s ease both}
@keyframes etePageIn{
  from{opacity:0;transform:translateY(3px)}
  to{opacity:1;transform:none}
}
.section-kicker{
  color:#28806b;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
}
.welcome-row,.page-heading{
  min-height:58px;
  margin-bottom:20px;
  align-items:center;
}
.welcome-row h1,.page-heading h1{
  margin:5px 0 4px;
  color:#16241f;
  font-size:27px;
  font-weight:730;
  letter-spacing:-.035em;
}
.welcome-row p,.page-heading p{
  color:#74807b;
  font-size:12px;
  line-height:1.6;
}
.primary{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 16px;
  border:1px solid #00785f;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(180deg,#069475,#008267);
  box-shadow:0 7px 16px rgba(0,112,88,.15),inset 0 1px 0 rgba(255,255,255,.16);
  font-weight:680;
  transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.primary:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg,#068c70,#00775e);
  box-shadow:0 10px 22px rgba(0,112,88,.2),inset 0 1px 0 rgba(255,255,255,.14);
}
.primary i{font-size:16px}

/* Dashboard */
.hero-status{
  min-height:178px;
  padding:28px 30px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  color:#f5fbf8;
  background:
    radial-gradient(circle at 87% 16%,rgba(89,209,164,.2),transparent 27%),
    radial-gradient(circle at 60% 120%,rgba(255,255,255,.06),transparent 34%),
    linear-gradient(125deg,#103c32,#0a2f28);
  box-shadow:0 18px 38px rgba(11,54,43,.13);
}
.hero-status h3{
  margin:13px 0 6px;
  font-size:23px;
  font-weight:700;
  letter-spacing:-.025em;
}
.hero-status p{color:#bcd1c9;font-size:12px}
.live-badge{
  color:#99dcc4;
  font-size:9px;
  letter-spacing:.1em;
}
.live-badge i{background:#3bd2a2;box-shadow:0 0 0 4px rgba(59,210,162,.12)}
.hero-tags{gap:7px;margin-top:20px}
.hero-tags span{
  padding:6px 9px;
  border-color:rgba(255,255,255,.12);
  border-radius:8px;
  color:#d4e3de;
  background:rgba(255,255,255,.055);
  font-size:10px;
}
.queue-summary{
  min-width:150px;
  padding:18px 20px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  background:rgba(255,255,255,.075);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
  text-align:left;
}
.queue-summary>span{
  display:block;
  font-size:34px;
  font-weight:750;
  line-height:1;
}
.queue-summary small{display:block;margin:6px 0 15px;color:#b8cec6;font-size:10px}
.queue-summary button{
  padding:0;
  border:0;
  color:#a8e7d1;
  background:none;
  font-size:10px;
  font-weight:650;
}
.metric-grid{
  gap:0;
  margin:16px 0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 28px rgba(19,58,47,.04);
}
.metric{
  min-height:104px;
  gap:13px;
  padding:18px 20px;
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.metric:last-child{border-right:0}
.metric-icon,.metric-icon.blue,.metric-icon.violet,.metric-icon.green,.metric-icon.amber{
  width:38px;
  height:38px;
  flex:none;
  border-radius:11px;
  color:#08745c;
  background:#eaf6f1;
}
.metric-icon i{font-size:19px}
.metric-alert .metric-icon{color:#b86516;background:#fff4e8}
.metric small{color:#75817c;font-size:10px}
.metric strong{margin:1px 0;color:#15231e;font-size:23px;font-variant-numeric:tabular-nums}
.metric em{color:#9aa49f;font-size:9px}
.dashboard-grid{gap:16px}
.dashboard-priority-grid{grid-template-columns:1.18fr .82fr}
.panel{
  border-color:var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
}
.panel-head{padding:19px 20px 14px}
.panel-head h3{margin:3px 0;color:#1b2925;font-size:15px}
.panel-head p{color:#87918d;font-size:10px}
.attention-list{padding:0 20px 18px}
.attention-loading,.attention-item,.attention-clear{
  min-height:62px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-top:1px solid #edf1ef;
}
.attention-list>:first-child{border-top:0}
.attention-loading>span{
  width:34px;
  height:34px;
  border-radius:10px;
  background:linear-gradient(90deg,#edf3f0,#f8faf9,#edf3f0);
  background-size:200% 100%;
  animation:skeleton 1.4s ease infinite;
}
@keyframes skeleton{to{background-position:-200% 0}}
.attention-loading div,.attention-item>div,.attention-clear>div{
  min-width:0;
  display:flex;
  flex:1;
  flex-direction:column;
  gap:3px;
}
.attention-loading b,.attention-item b,.attention-clear b{color:#25332e;font-size:11px}
.attention-loading small,.attention-item small,.attention-clear small{color:#87918d;font-size:9px}
.attention-icon{
  width:34px;
  height:34px;
  display:grid;
  flex:none;
  place-items:center;
  border-radius:10px;
  color:#a45c19;
  background:#fff2e4;
}
.attention-item.critical .attention-icon{color:#b83f3f;background:#fff0ef}
.attention-item.good .attention-icon,.attention-clear .attention-icon{color:#08745c;background:#eaf7f2}
.attention-item button{
  flex:none;
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:8px;
  color:#426159;
  background:#fff;
  font-size:9px;
  font-weight:650;
}
.quick-grid{gap:8px;padding:0 16px 16px}
.quick-grid button{
  min-height:76px;
  grid-template-columns:32px 1fr;
  padding:13px;
  border-color:#e4ebe8;
  border-radius:12px;
  background:#fafcfb;
}
.quick-grid button:hover{
  border-color:#c6ded5;
  background:#f4faf7;
}
.quick-grid i{
  width:32px;
  height:32px;
  display:grid;
  grid-row:1/3;
  place-items:center;
  border-radius:9px;
  color:#08745c;
  background:#eaf6f1;
  font-size:17px;
}
.quick-grid b{color:#26342f;font-size:11px}
.quick-grid small{color:#8a9490;font-size:9px}
.service-panel{margin-top:16px}
.service-head-actions{display:flex;align-items:center;gap:8px}
.service-head-actions .text-button{display:inline-flex;align-items:center;gap:5px}
.service-repair-button{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 11px;
  border:1px solid #bcd8ce;
  border-radius:9px;
  color:#08745c;
  background:#f4faf7;
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
}
.service-repair-button:hover{border-color:#08745c;background:#eaf6f1}
.service-repair-button:disabled{cursor:wait;opacity:.58}
.service-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding:0 20px 18px;
}
.service-row{
  min-width:0;
  padding:12px 15px;
  border-top:1px solid #edf1ef;
  border-left:1px solid #edf1ef;
}
.service-row:first-child{border-top:1px solid #edf1ef;border-left:0}
.service-row>span:first-child{
  width:32px;
  height:32px;
  color:#08745c;
  background:#eef7f3;
}
.service-row b{font-size:10px}
.service-row small{overflow:hidden;color:#8a9490;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.guardian-control{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 20px 18px;
  padding:13px 14px;
  border:1px solid #d9e8e2;
  border-radius:13px;
  background:linear-gradient(105deg,#f7fbf9 0%,#fbfdfc 66%,#f0f8f4 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.guardian-control.is-warning{border-color:#eadcc9;background:linear-gradient(105deg,#fffaf4,#fdfcf9)}
.guardian-control.is-critical{border-color:#ead3d1;background:linear-gradient(105deg,#fff8f7,#fdfbfa)}
.guardian-identity{
  min-width:0;
  display:grid;
  grid-template-columns:36px minmax(150px,1fr) auto;
  align-items:center;
  gap:11px;
}
.guardian-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid #d4e8e0;
  border-radius:11px;
  color:#08745c;
  background:rgba(255,255,255,.76);
  font-size:18px;
}
.guardian-identity b{display:block;color:#26342f;font-size:11px}
.guardian-identity small{
  display:block;
  max-width:540px;
  margin-top:2px;
  overflow:hidden;
  color:#7f8b86;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.guardian-actions{display:flex;align-items:center;gap:7px}
.guardian-button{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 10px;
  border:1px solid #d4e3dd;
  border-radius:9px;
  color:#53635d;
  background:rgba(255,255,255,.88);
  font-size:10px;
  font-weight:600;
  white-space:nowrap;
}
.guardian-button:hover{color:#08745c;border-color:#bcd8ce;background:#fff}
.guardian-button.guardian-primary{color:#fff;border-color:#08745c;background:#08745c}
.guardian-button.guardian-primary:hover{color:#fff;border-color:#06634f;background:#066b55}
.guardian-button:disabled{cursor:not-allowed;opacity:.48;transform:none}
.runtime-console{
  margin:0 20px 20px;
  overflow:hidden;
  border:1px solid #294139;
  border-radius:13px;
  color:#d8e4df;
  background:#111d19;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 34px rgba(19,48,39,.12);
}
.runtime-console-head{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 13px;
  border-bottom:1px solid rgba(220,239,232,.09);
  background:#16241f;
}
.runtime-console-title{display:flex;align-items:center;gap:10px;min-width:0}
.runtime-console-title>div{min-width:0}
.runtime-console-title b{display:block;color:#f0f6f3;font-size:12px}
.runtime-console-title small{display:block;margin-top:2px;color:#8da199;font-size:9px}
.runtime-console-icon{
  width:34px;
  height:34px;
  display:grid;
  flex:0 0 auto;
  place-items:center;
  border:1px solid rgba(77,177,142,.28);
  border-radius:10px;
  color:#65c4a4;
  background:rgba(33,104,80,.17);
  font-size:17px;
}
.runtime-console-tools{display:flex;align-items:center;gap:7px}
.runtime-log-filters{
  display:flex;
  gap:2px;
  padding:3px;
  border:1px solid rgba(220,239,232,.09);
  border-radius:9px;
  background:rgba(5,13,10,.28);
}
.runtime-log-filters button,.runtime-tool-button{
  min-height:30px;
  border:0;
  border-radius:7px;
  color:#94a9a1;
  background:transparent;
  font-size:10px;
  font-weight:600;
  white-space:nowrap;
}
.runtime-log-filters button{padding:0 9px}
.runtime-log-filters button:hover,.runtime-log-filters button.active{color:#eaf5f1;background:rgba(79,174,141,.18)}
.runtime-tool-button{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:0 9px;
  border:1px solid rgba(220,239,232,.10);
}
.runtime-tool-button:hover,.runtime-tool-button.active{color:#dff2eb;border-color:rgba(92,190,155,.30);background:rgba(79,174,141,.12)}
.runtime-log-viewport{
  height:286px;
  overflow:auto;
  padding:9px 0;
  scrollbar-color:#3b5b50 transparent;
}
.runtime-log-lines{min-width:680px}
.runtime-log-line{
  min-height:29px;
  display:grid;
  grid-template-columns:68px 76px minmax(0,1fr);
  align-items:start;
  gap:8px;
  padding:6px 14px;
  border-left:2px solid transparent;
  color:#b7c7c1;
}
.runtime-log-line:hover{background:rgba(255,255,255,.025)}
.runtime-log-line time{padding-top:1px;color:#657b73;font:10px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
.runtime-log-line>span{padding-top:1px;color:#79b9a2;font-size:10px;line-height:1.6}
.runtime-log-line code{color:inherit;font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,"Noto Sans SC",monospace;white-space:pre-wrap;word-break:break-word}
.runtime-log-line.is-success{border-left-color:#3dab84;color:#cce8de}
.runtime-log-line.is-warn{border-left-color:#c49a55;color:#e5d2ad;background:rgba(137,96,35,.055)}
.runtime-log-line.is-error{border-left-color:#c76865;color:#edc0bd;background:rgba(129,44,42,.07)}
.runtime-log-empty{
  height:100%;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:7px;
  color:#72867e;
  font-size:10px;
}
.runtime-log-empty i{color:#4e7768;font-size:22px}
.runtime-console-foot{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 13px;
  border-top:1px solid rgba(220,239,232,.08);
  color:#778d85;
  background:#14211d;
  font-size:9px;
}
.runtime-console-foot label{display:flex;align-items:center;gap:6px;cursor:pointer}
.runtime-console-foot input{width:13px;height:13px;accent-color:#3ca77f}
.runtime-stream-state{display:inline-flex;align-items:center;gap:7px;color:#8ba097}
.runtime-stream-state::before{width:6px;height:6px;border-radius:50%;background:#6f837b;content:""}
.runtime-stream-state.is-online{color:#8fd4bb}
.runtime-stream-state.is-online::before{background:#45bd91;box-shadow:0 0 0 3px rgba(69,189,145,.10)}
.runtime-stream-state.is-error{color:#d59792}
.runtime-stream-state.is-error::before{background:#c76865}

/* Tables and toolbars */
.table-panel{border-radius:16px}
.toolbar{
  min-height:62px;
  gap:10px;
  padding:12px 16px;
  border-color:var(--line);
  background:#fff;
}
.search{
  min-width:260px;
  height:38px;
  gap:7px;
  border-color:var(--line-strong);
  border-radius:10px;
  background:#fbfcfc;
}
.search i{color:#8b9691;font-size:16px}
.search input{font-size:11px}
.toolbar select{
  height:38px;
  min-width:142px;
  padding:0 30px 0 11px;
  border-color:var(--line-strong);
  border-radius:10px;
  color:#5d6965;
  background-color:#fff;
  font-size:11px;
}
.toolbar-hint{margin-left:auto;color:#9ba49f;font-size:9px}
.table-wrap{scrollbar-width:thin;scrollbar-color:#cfdad5 transparent}
table{font-variant-numeric:tabular-nums}
th{
  position:sticky;
  top:0;
  z-index:1;
  padding:11px 16px;
  color:#7b8681;
  background:#f7f9f8;
  border-color:var(--line);
  font-size:9px;
  font-weight:700;
  letter-spacing:.04em;
}
td{
  height:56px;
  padding:11px 16px;
  color:#56635e;
  border-color:#edf1ef;
  font-size:11px;
}
tbody tr{transition:background .12s ease}
tbody tr:hover{background:#f8fbfa}
#logRows tr{cursor:pointer}
#logRows tr:focus-visible{outline:2px solid rgba(0,135,106,.35);outline-offset:-2px}
#page-logs table{min-width:1180px;table-layout:fixed}
#page-logs th:nth-child(1){width:128px}
#page-logs th:nth-child(2){width:68px}
#page-logs th:nth-child(3){width:68px}
#page-logs th:nth-child(4){width:176px}
#page-logs th:nth-child(5){width:112px}
#page-logs th:nth-child(6){width:150px}
#page-logs th:nth-child(8){width:78px}
#page-logs th:nth-child(9){width:82px}
#page-logs td:nth-child(7){
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.log-object-cell{display:flex;align-items:baseline;min-width:0}
.log-object-cell strong{
  min-width:0;overflow:hidden;text-overflow:ellipsis;color:#24322d;font-size:11px;font-weight:700
}
.log-object-cell small{flex:0 0 auto;color:#8b9691;font-size:9px}
.log-sender-name{
  display:block;overflow:hidden;text-overflow:ellipsis;color:#3f504a;font-weight:650
}
.row-action{
  margin-left:5px;
  border:1px solid #dce8e3;
  color:#08745c;
  background:#f4faf7;
}
.badge{
  padding:4px 7px;
  border-radius:7px;
  font-size:9px;
  font-weight:680;
}
.badge.good{color:#08745c;background:#e8f6f0}
.badge.bad{color:#b33d3d;background:#fff0ef}
.badge.warn{color:#aa651d;background:#fff4e8}
.badge.neutral{color:#68736f;background:#eef2f0}
.empty{
  min-height:180px;
  display:grid;
  place-items:center;
  padding:40px;
  color:#8b9691;
  font-size:11px;
}

/* Message composer */
.send-progress{
  display:flex;
  align-items:center;
  gap:8px;
  margin:-4px 0 16px;
  color:#909a96;
  font-size:10px;
}
.send-progress span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-radius:8px;
}
.send-progress span+span:before{
  content:"";
  width:24px;
  height:1px;
  margin-right:2px;
  background:#dfe6e3;
}
.send-progress .active{color:#08745c;background:#eaf6f1}
.send-layout{grid-template-columns:320px minmax(0,1fr);gap:16px}
.recipient-panel,.compose-panel{min-height:580px}
.recipient-panel .panel-head{padding-bottom:12px}
.segmented{
  margin:0 16px 12px;
  border:1px solid #e7ecea;
  border-radius:10px;
  background:#f4f7f6;
}
.segmented button.active{
  color:#08745c;
  box-shadow:0 3px 10px rgba(19,58,47,.06);
}
.recipient-panel>.search{margin:0 16px}
.recipient-list{margin:10px 7px 0;max-height:445px}
.recipient-item{
  min-height:52px;
  padding:8px 10px;
  border:1px solid transparent;
}
.recipient-item:hover{background:#f5f9f7}
.recipient-item.active{
  border-color:#d7e9e2;
  background:#eaf6f1;
}
.compose-panel{padding:20px}
.compose-to{min-height:64px;padding-bottom:16px}
.compose-to b{color:#25322e}
.single-recipient-note{
  margin-left:auto;
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border-radius:8px;
  color:#71807a!important;
  background:#f3f7f5;
}
.message-types{
  gap:4px;
  margin:16px 0 14px;
  padding-bottom:12px;
  overflow-x:auto;
  scrollbar-width:thin;
}
.message-types button{
  flex:none;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:10px;
}
.message-types button:hover{color:#2b4a41;background:#f4f7f6}
.message-types button.active{
  border-color:#d7e9e2;
  color:#08745c;
  background:#eaf6f1;
}
.compose-panel textarea{
  min-height:250px;
  padding:15px;
  border-color:var(--line-strong);
  border-radius:12px;
  color:#23312c;
  background:#fcfdfd;
  line-height:1.7;
}
.compose-footer{
  min-height:58px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.compose-footer small{display:flex;align-items:center;gap:5px;color:#87928d}

/* Forms and settings */
.settings-layout{gap:16px}
.settings-main,.settings-side{gap:16px}
.form-panel{padding-bottom:20px}
.form-panel label,.modal-card label{color:#47554f;font-size:11px}
.form-panel input,.form-panel textarea,.modal-card input,.modal-card textarea,.modal-card select,.extra-fields input,.extra-fields textarea{
  min-height:40px;
  padding:10px 12px;
  border-color:var(--line-strong);
  border-radius:10px;
  color:#26332f;
  background:#fff;
  font-size:11px;
}
.form-panel input:focus,.form-panel textarea:focus,.modal-card input:focus,.modal-card textarea:focus,.modal-card select:focus,.extra-fields input:focus,.extra-fields textarea:focus{
  border-color:#65aa98;
  box-shadow:0 0 0 3px rgba(0,135,106,.09);
}
.switch-list i{background:#d5ddda}
.switch-list input:checked+i{background:var(--primary)}
.notice-card{
  border-color:#eee2c9;
  border-radius:14px;
  background:#fffaf1;
}
.notice-card p{color:#7d6b4e}
.save-settings{position:sticky;bottom:16px;z-index:3}

/* Modal and toast system */
.modal{
  padding:24px;
  background:rgba(8,25,20,.5);
  backdrop-filter:blur(14px) saturate(115%);
  -webkit-backdrop-filter:blur(14px) saturate(115%);
}
.modal-card{
  max-height:calc(100dvh - 48px);
  overflow:auto;
  padding:26px;
  border:1px solid rgba(255,255,255,.74);
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-float),inset 0 1px 0 rgba(255,255,255,.9);
}
.modal-card h2{
  color:#1b2925;
  font-size:20px;
  letter-spacing:-.02em;
}
.modal-card p{color:#74807b}
.modal-close{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  right:12px;
  top:10px;
  border-radius:9px;
  color:#87928d;
  font-size:20px;
}
.modal-close:hover{color:#31423c;background:#edf3f0}
.modal-actions{
  padding:17px 0 0;
  border-top:1px solid var(--line);
}
.modal-actions .secondary{
  min-height:38px;
  border-color:var(--line-strong);
  border-radius:10px;
  color:#56635e;
  background:#fff;
}
.modal-heading-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#08745c;
  background:#eaf6f1;
  font-size:20px;
}
.modal-title-block{padding-right:34px}
.modal-title-block h2{text-align:left;margin:0 0 5px}
.modal-title-block p{text-align:left}
.send-confirm-card{width:min(520px,100%)}
.send-review{
  margin:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fbfcfc;
}
.send-review>div{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:12px;
  padding:12px 14px;
  border-top:1px solid var(--line);
}
.send-review>div:first-child{border-top:0}
.send-review dt{color:#89938f;font-size:10px}
.send-review dd{margin:0;color:#2a3833;font-size:11px;font-weight:600}
.send-review .review-content dd{
  max-height:150px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  font-weight:450;
  line-height:1.65;
}
.modal:has(.detail-drawer){place-items:stretch end;padding:0}
.detail-drawer{
  width:min(600px,100%);
  height:100dvh;
  max-height:none;
  margin:0;
  border-radius:18px 0 0 18px;
  animation:drawerIn .22s ease both;
}
@keyframes drawerIn{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
.log-detail-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.log-detail-item{
  padding:12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fafcfb;
}
.log-detail-item.wide{grid-column:1/-1}
.log-detail-item small{display:block;margin-bottom:5px;color:#87928d;font-size:9px}
.log-detail-item strong,.log-detail-item pre{margin:0;color:#2a3833;font-size:11px}
.log-detail-item pre{overflow:auto;white-space:pre-wrap;word-break:break-word;font-family:inherit;line-height:1.65}
.toast{
  right:22px;
  top:20px;
  min-width:250px;
  padding:12px 15px 12px 42px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  color:#f2faf7;
  background:#173d33;
  box-shadow:0 16px 38px rgba(8,39,31,.22);
}
.toast:before{
  content:"\f704";
  position:absolute;
  left:15px;
  top:12px;
  font-family:"tabler-icons";
  font-size:17px;
}
.toast.error{background:#8f3131}
.toast.error:before{content:"\ea05"}

/* Command palette */
.command-modal{align-items:flex-start;padding-top:min(15vh,140px)}
.command-card{
  width:min(620px,100%);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.78);
  border-radius:16px;
  background:rgba(255,255,255,.97);
  box-shadow:0 28px 90px rgba(5,29,22,.28);
}
.command-search{
  height:58px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 16px;
  border-bottom:1px solid var(--line);
}
.command-search>i{color:#66736f;font-size:20px}
.command-search input{
  min-width:0;
  flex:1;
  border:0;
  outline:0;
  color:#1f2d28;
  background:transparent;
  font-size:13px;
}
.command-results{max-height:360px;overflow:auto;padding:8px}
.command-item{
  width:100%;
  min-height:48px;
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:10px;
  padding:7px 10px;
  border:0;
  border-radius:10px;
  color:#34423d;
  background:transparent;
  text-align:left;
}
.command-item:hover,.command-item.active{background:#edf7f3}
.command-item>i{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#08745c;
  background:#e6f4ef;
  font-size:17px;
}
.command-item b{display:block;font-size:11px}
.command-item small{display:block;margin-top:2px;color:#8a9490;font-size:9px}
.command-item>span{color:#9ba49f;font-size:9px}
.command-empty{padding:30px;color:#87928d;font-size:11px;text-align:center}
.command-footer{
  display:flex;
  justify-content:flex-end;
  gap:15px;
  padding:9px 15px;
  border-top:1px solid var(--line);
  color:#99a29e;
  background:#fafcfb;
  font-size:9px;
}

/* Responsive behavior */
@media(max-width:1180px){
  .command-button{min-width:38px;width:38px;padding:0;justify-content:center}
  .command-button span,.command-button kbd{display:none}
  .service-list{grid-template-columns:1fr 1fr}
  .service-row:nth-child(3){border-left:0}
  .dashboard-priority-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .app-shell{display:block}
  .sidebar{left:-274px;width:256px;box-shadow:18px 0 50px rgba(18,49,40,.18)}
  .sidebar.open{left:0}
  .topbar{padding:0 16px}
  .content{padding:22px 16px 46px}
  .user-cluster{padding-left:8px}
  .send-layout{grid-template-columns:1fr}
  .recipient-panel{min-height:0}
  .recipient-list{max-height:260px}
  .compose-panel{min-height:500px}
  .settings-layout{display:block}
}
@media(max-width:680px){
  .topbar-title{display:none}
  .top-actions{margin-left:auto}
  .topbar .quiet-button span,.user-meta{display:none}
  .user-cluster{border-left:0}
  .content{padding:18px 12px 38px}
  .welcome-row,.page-heading{gap:14px}
  .welcome-row h1,.page-heading h1{font-size:24px}
  .hero-status{align-items:flex-start;padding:22px}
  .queue-summary{display:none}
  .metric-grid{grid-template-columns:1fr 1fr}
  .metric{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .metric:nth-child(2n){border-right:0}
  .metric:nth-last-child(-n+2){border-bottom:0}
  .service-list{grid-template-columns:1fr}
  .service-row,.service-row:first-child{border-left:0}
  .guardian-control{align-items:stretch;flex-direction:column;margin:0 12px 14px}
  .guardian-identity{grid-template-columns:36px minmax(0,1fr) auto}
  .guardian-identity small{white-space:normal}
  .guardian-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .guardian-button{padding-inline:6px}
  .runtime-console{margin:0 12px 14px}
  .runtime-console-head{align-items:flex-start;flex-direction:column}
  .runtime-console-tools{width:100%;flex-wrap:wrap}
  .runtime-log-filters{flex:1}
  .runtime-log-filters button{flex:1}
  .quick-grid{grid-template-columns:1fr 1fr}
  .send-progress{overflow-x:auto}
  .single-recipient-note{display:none!important}
  .toolbar{align-items:stretch}
  .toolbar .search{width:100%;flex:auto}
  .toolbar-hint{display:none}
  .log-detail-content{grid-template-columns:1fr}
  .log-detail-item.wide{grid-column:auto}
  .detail-drawer{border-radius:0}
}
@media(max-width:440px){
  .metric-grid{grid-template-columns:1fr}
  .metric{border-right:0;border-bottom:1px solid var(--line)}
  .metric:nth-last-child(-n+2){border-bottom:1px solid var(--line)}
  .metric:last-child{border-bottom:0}
  .quick-grid{grid-template-columns:1fr}
  .compose-footer{align-items:stretch}
  .compose-footer .primary{width:100%}
  .send-review>div{grid-template-columns:1fr;gap:5px}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
@media(prefers-reduced-transparency:reduce){
  .topbar,.modal,.command-card,.modal-card{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .topbar{background:#fff}
  .modal{background:rgba(8,25,20,.72)}
  .modal-card,.command-card{background:#fff}
}

/* Jingnie brand assets use their original transparent PNG canvases.
   These crop ratios reveal only the artwork without adding a colored tile. */
body .brand-logo-frame,
body .sidebar-brand .brand-logo-frame,
body .login-card-mark,
body .login-landing-state .login-brand .brand-logo-frame{
  overflow:hidden;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body .brand-logo-frame img{
  position:absolute;
  width:220.6%;
  height:165.4%;
  max-width:none;
  inset:auto;
  left:-73.4%;
  top:-32.7%;
  object-fit:fill;
  transform:none;
  filter:none;
}
.sidebar-brand .brand-logo-frame{
  width:40px;
  height:40px;
}
.login-hero-wordmark{
  position:relative;
  display:block;
  width:clamp(208px,18vw,248px);
  aspect-ratio:590/344;
  margin:0 auto 20px;
  overflow:hidden;
  border:0;
  background:transparent;
  box-shadow:none;
}
.login-hero-wordmark img{
  position:absolute;
  width:202.7%;
  height:261.6%;
  max-width:none;
  left:-26.9%;
  top:-80.8%;
  object-fit:fill;
  filter:
    drop-shadow(0 0 1px rgba(242,249,246,.76))
    drop-shadow(0 1px 2px rgba(242,249,246,.18))
    drop-shadow(0 13px 26px rgba(0,12,8,.34));
}
.login-landing-copy h1{
  margin:0 0 18px;
  white-space:nowrap;
  font-size:clamp(31px,2.5vw,38px);
}
.login-landing-copy .login-hero-summary{
  display:grid;
  gap:3px;
  max-width:620px;
  margin:0 auto;
  color:rgba(235,241,239,.82);
  font-size:14px;
  font-weight:450;
  line-height:1.72;
  letter-spacing:.018em;
  text-wrap:balance;
}
.login-hero-summary span{
  display:block;
  white-space:nowrap;
}

/* Procedural particle globe inspired by the reference landing page.
   It is an isolated background layer, so the existing login layout stays intact. */
.login-particle-field{
  position:absolute;
  z-index:-1;
  top:50%;
  left:50%;
  width:min(92vw,1120px);
  aspect-ratio:1;
  overflow:visible;
  transform:translate(-50%,-48%);
  opacity:.74;
  pointer-events:none;
  mix-blend-mode:screen;
  filter:drop-shadow(0 0 34px rgba(44,224,164,.12));
  transition:opacity .5s ease,filter .5s ease,transform .6s cubic-bezier(.22,1,.36,1);
}
.login-particle-field::before{
  position:absolute;
  inset:17%;
  border-radius:50%;
  background:
    radial-gradient(circle at 38% 34%,rgba(205,255,237,.10),transparent 24%),
    radial-gradient(circle,rgba(14,176,127,.08),rgba(4,57,43,.035) 44%,transparent 69%);
  box-shadow:0 0 120px rgba(1,157,112,.09);
  content:"";
}
.login-particle-globe{
  position:absolute;
  inset:-8%;
  width:116%;
  height:116%;
  display:block;
}
.login-view:has(.login-form-state:not(.hidden)) .login-particle-field{
  opacity:.34;
  filter:drop-shadow(0 0 26px rgba(44,224,164,.08));
  transform:translate(-56%,-48%) scale(.94);
}
@media(max-width:900px){
  .login-particle-field{
    top:54%;
    width:min(132vw,880px);
    opacity:.62;
  }
  .login-view:has(.login-form-state:not(.hidden)) .login-particle-field{
    opacity:.24;
    transform:translate(-50%,-48%) scale(.9);
  }
}
@media(max-width:520px){
  .login-particle-field{
    top:55%;
    width:154vw;
    opacity:.52;
  }
}
@media(prefers-reduced-transparency:reduce){
  .login-particle-field{mix-blend-mode:normal;opacity:.42}
}
.login-landing-state .login-nav-actions{
  display:flex;
  align-items:center;
  gap:6px;
  padding-left:5px;
  border-left:1px solid rgba(255,255,255,.18);
}
.login-landing-state .login-nav-link{
  display:inline-flex;
  height:36px;
  align-items:center;
  padding:0 9px;
  color:rgba(240,249,246,.84);
  font-size:13px;
  font-weight:560;
  letter-spacing:.02em;
  user-select:none;
}
.login-landing-state .login-nav-button{
  height:36px;
  padding:0 14px;
  border:1px solid rgba(98,238,190,.48);
  border-radius:11px;
  background:linear-gradient(135deg,#0ca678,#058b68);
  box-shadow:0 8px 18px rgba(0,102,76,.22),inset 0 1px 0 rgba(255,255,255,.18);
}
.login-landing-state .login-nav-button:hover{
  background:linear-gradient(135deg,#11b987,#079b73);
}
.login-hero-wordmark{
  width:clamp(106px,9vw,118px);
  margin-bottom:18px;
}
.login-landing-copy .login-hero-summary span:first-child{
  color:rgba(241,249,246,.91);
  font-weight:520;
}
.login-landing-copy .login-hero-summary span:last-child{
  color:rgba(221,236,229,.70);
  font-size:.94em;
}

/* 账号运营中心：与现有控制台保持同一翡翠色层级，不新增第二套视觉语言。 */
.operations-grid{grid-template-columns:1.15fr 1fr 1fr}
.account-center-list,.operations-feed,.template-list{display:grid;gap:8px}
.account-center-row,.operations-feed-row,.template-item{
  display:flex;align-items:center;gap:10px;min-height:54px;padding:9px 10px;border:1px solid rgba(14,78,61,.09);
  border-radius:12px;background:rgba(250,253,252,.78);transition:transform .18s ease,background .18s ease,border-color .18s ease
}
.account-center-row.active{background:linear-gradient(135deg,rgba(14,151,113,.12),rgba(245,252,249,.94));border-color:rgba(14,151,113,.25)}
.account-center-row .entity-avatar{width:32px;height:32px;flex:0 0 32px}
.account-center-row>div,.operations-feed-row>div,.template-item>div{min-width:0;display:grid;gap:2px}
.account-center-row b,.operations-feed-row b,.template-item b{font-size:13px;color:#18352d}
.account-center-row small,.operations-feed-row small,.template-item small{font-size:11px;color:#778983;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-center-row .badge,.operations-feed-row .text-button,.template-item .badge{margin-left:auto;flex:0 0 auto}
.feed-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eff5f2;color:#658078}
.feed-icon.good{background:#e5f6ee;color:#078a65}.feed-icon.warn{background:#fff2df;color:#b5681c}
.template-create-row{display:flex;align-items:center;gap:12px;justify-content:flex-start;max-width:680px;margin:2px 0 16px}
.template-name-field{display:flex;align-items:center;gap:9px;min-width:0;flex:1;height:42px;padding:0 13px;border:1px solid rgba(15,93,71,.2);border-radius:12px;background:linear-gradient(135deg,#fff 0%,#f7fbf9 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 5px 14px rgba(29,76,62,.045);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.template-name-field:focus-within{border-color:rgba(0,142,110,.62);background:#fff;box-shadow:0 0 0 4px rgba(0,142,110,.1),0 7px 18px rgba(29,76,62,.08)}
.template-name-field i{flex:0 0 auto;color:#09876a;font-size:17px}
.template-name-field input{width:100%;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:#17372e;font:inherit;font-size:13px}
.template-name-field input::placeholder{color:#91a39d}
.template-save-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;height:42px;padding:0 16px;border:1px solid #008a6b;border-radius:12px;background:linear-gradient(135deg,#00a77f 0%,#00866c 100%);color:#fff;box-shadow:0 9px 18px rgba(0,132,103,.18),inset 0 1px 0 rgba(255,255,255,.18);font:700 13px/1 var(--font-sans);letter-spacing:.01em;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.template-save-button i{font-size:16px;transition:transform .18s ease}
.template-save-button:hover{filter:brightness(1.035);box-shadow:0 12px 22px rgba(0,132,103,.25);transform:translateY(-1px)}
.template-save-button:hover i{transform:translate(2px,-2px)}
.template-save-button:active{transform:translateY(0);box-shadow:0 5px 12px rgba(0,132,103,.18)}
.template-save-button:focus-visible{outline:3px solid rgba(0,151,116,.28);outline-offset:2px}
.permission-template-apply{display:flex;align-items:end;gap:10px;margin:12px 0 2px;padding:11px 12px;border:1px solid rgba(14,151,113,.14);border-radius:12px;background:rgba(238,250,245,.55)}
.permission-template-apply label{display:grid;gap:6px;flex:1;font-size:12px;font-weight:650;color:#426359}.permission-template-apply select{height:36px}
.template-apply-button{
  display:inline-flex;
  height:36px;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 13px;
  border:1px solid #badfd3;
  border-radius:10px;
  color:#08745c;
  background:linear-gradient(180deg,#fff 0%,#f1f9f6 100%);
  box-shadow:0 4px 12px rgba(20,82,64,.055),inset 0 1px 0 #fff;
  font:700 12px/1 var(--font-sans);
  white-space:nowrap;
  cursor:pointer;
  transition:border-color .18s ease,color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.template-apply-button i{font-size:15px}
.template-apply-button:hover{
  border-color:#72bda7;
  color:#05634f;
  background:#e9f7f2;
  box-shadow:0 7px 17px rgba(8,116,92,.12);
  transform:translateY(-1px);
}
.template-apply-button:active{transform:translateY(0) scale(.985)}
.template-apply-button:focus-visible{outline:3px solid rgba(0,151,116,.18);outline-offset:2px}
@media(max-width:1100px){.operations-grid{grid-template-columns:1fr}.permission-template-panel{margin-top:16px}}
@media(max-width:620px){.template-create-row,.permission-template-apply{align-items:stretch;flex-direction:column}.template-name-field,.template-save-button,.permission-template-apply button{width:100%}.account-center-row small,.operations-feed-row small,.template-item small{white-space:normal}.operations-feed-row{align-items:flex-start}}
@media(max-width:680px){
  .login-hero-wordmark{
    width:min(106px,34vw);
    margin-bottom:17px;
  }
  .login-landing-copy h1{
    margin-bottom:15px;
    white-space:normal;
  }
  .login-landing-copy .login-hero-summary{
    max-width:320px;
    gap:1px;
    font-size:12px;
    line-height:1.75;
  }
  .login-hero-summary span{
    white-space:normal;
  }
  .login-landing-state .login-nav-link{padding:0 6px;font-size:12px}
  .login-landing-state .login-nav-button{padding:0 11px}
}

.reply-rule-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-height:46px;
  padding:12px 14px;
  border:1px solid rgba(13,148,116,.14);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(13,148,116,.07),rgba(255,255,255,.82));
  color:#557069;
  font-size:12px;
  line-height:1.7;
}
.reply-rule-note i{
  margin-top:2px;
  color:#0d9474;
  font-size:16px;
}
#roomKeywordField{transition:opacity .18s ease}
#roomKeywordField.is-rule-disabled{opacity:.46}

/* Custom select surface. The original select stays in the DOM as the value source. */
.smart-select{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
  color:var(--ink);
}
.smart-select-native{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.smart-select-trigger{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 12px 9px 13px;
  border:1px solid #d5dfdb;
  border-radius:10px;
  color:#33423d;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,250,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(15,51,41,.025);
  font-size:11px;
  font-weight:590;
  line-height:1.35;
  text-align:left;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.smart-select-trigger:hover{
  border-color:#b8cdc5;
  background:#fff;
}
.smart-select-trigger i{
  flex:0 0 auto;
  color:#7b8984;
  font-size:15px;
  transition:transform .16s ease,color .16s ease;
}
.smart-select.open .smart-select-trigger{
  border-color:#6aab99;
  background:#fff;
  box-shadow:0 0 0 3px rgba(0,135,106,.1),0 8px 24px rgba(18,63,50,.08);
}
.smart-select.open .smart-select-trigger i{
  color:var(--primary);
  transform:rotate(180deg);
}
.smart-select.disabled{opacity:.62}
.smart-select-menu{
  position:absolute;
  z-index:360;
  top:calc(100% + 7px);
  left:0;
  right:0;
  max-height:260px;
  overflow:auto;
  padding:6px;
  border:1px solid rgba(205,221,215,.96);
  border-radius:12px;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
  box-shadow:0 18px 46px rgba(16,55,44,.16),inset 0 1px 0 rgba(255,255,255,.92);
  scrollbar-width:thin;
  scrollbar-color:#cad9d3 transparent;
}
.smart-select-option{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  color:#4b5954;
  background:transparent;
  font-size:11px;
  font-weight:520;
  line-height:1.45;
  text-align:left;
  transition:background .12s ease,color .12s ease;
}
.smart-select-option:hover,
.smart-select-option.active{
  color:#17382f;
  background:#eff7f4;
}
.smart-select-option.selected{
  color:#006f58;
  background:#e8f5f0;
  font-weight:680;
}
.smart-select-option i{
  flex:0 0 auto;
  color:var(--primary);
  font-size:15px;
  opacity:0;
}
.smart-select-option.selected i{opacity:1}
.smart-select-option:disabled{color:#a7b0ac;cursor:not-allowed}
.toolbar .smart-select{width:auto;min-width:152px}
.toolbar .smart-select-trigger{min-height:38px;padding-top:7px;padding-bottom:7px}
.member-mode .smart-select{width:min(100%,340px);min-width:220px}
.form-panel .smart-select,.modal-card .smart-select{margin-top:0}

/* Recipient IDs remain available to the send logic and search, but are not exposed visually. */
.recipient-item .recipient-arrow{
  margin-left:auto;
  color:#a1ada8;
  font-size:15px;
  transition:transform .15s ease,color .15s ease;
}
.recipient-item:hover .recipient-arrow,
.recipient-item.active .recipient-arrow{
  color:var(--primary);
  transform:translateX(2px);
}
.recipient-item small{
  color:#8a9691;
  letter-spacing:.02em;
}

@media(max-width:520px){
  .login-hero-wordmark{width:88px;margin-bottom:14px;border-radius:20px}
  .toolbar .smart-select,.member-mode .smart-select{width:100%;min-width:0}
}

@media(prefers-reduced-transparency:reduce){
  .smart-select-menu,.login-hero-wordmark{
    background:#fff;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}

body .login-form-state .login-card .login-auth-mark{
  width:58px;
  height:58px;
  margin:0 auto;
  overflow:hidden;
  border:0!important;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
}
body .login-form-state .login-card .login-auth-mark img{
  filter:drop-shadow(0 8px 12px rgba(0,35,24,.22));
}
.login-method-divider{
  display:flex;
  width:100%;
  align-items:center;
  gap:10px;
  color:rgba(213,226,223,.45);
  font-size:9px;
  line-height:1;
  text-align:center;
}
.login-method-divider::before,
.login-method-divider::after{
  height:1px;
  flex:1;
  background:rgba(219,233,229,.11);
  content:"";
}
.login-method-divider span{white-space:nowrap}
.feishu-auth-button{
  display:grid;
  width:min(100%,230px);
  min-height:42px;
  grid-template-columns:18px 1fr 18px;
  align-items:center;
  justify-self:center;
  gap:8px;
  padding:0 13px;
  border:1px solid rgba(195,222,213,.20);
  border-radius:11px;
  color:rgba(242,248,246,.88);
  background:rgba(176,215,202,.075);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 8px 22px rgba(0,12,9,.10);
  font-size:12px;
  font-weight:600;
  letter-spacing:.01em;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.feishu-auth-button:hover{
  border-color:rgba(174,225,207,.37);
  background:rgba(122,193,169,.13);
  transform:translateY(-1px);
}
.feishu-auth-button:active{transform:scale(.985)}
.feishu-auth-button i{
  color:rgba(159,224,201,.82);
  font-size:16px;
}
.feishu-auth-button i:last-child{font-size:14px;justify-self:end}
.feishu-auth-button.is-loading{pointer-events:none;opacity:.72}
.feishu-auth-button[aria-disabled="true"],
.feishu-landing-button[aria-disabled="true"]{opacity:.56}
.feishu-login-hint{
  margin:-7px 0 0!important;
  color:rgba(200,216,211,.46)!important;
  font-size:9px!important;
  line-height:1.45!important;
  text-align:center;
}
.feishu-login-hint.is-ready{color:rgba(151,217,193,.67)!important}
.login-form-state .login-card{gap:13px}
.user-cluster .avatar{overflow:hidden}
.user-cluster .avatar img{width:100%;height:100%;object-fit:cover}

@media(max-width:520px){
  body .login-form-state .login-card .login-auth-mark{width:52px;height:52px}
}

@media(prefers-reduced-transparency:reduce){
  .feishu-landing-button{background:#16362e;backdrop-filter:none;-webkit-backdrop-filter:none}
  .feishu-auth-button{background:#193a31}
}

/* Final interaction polish: restrained topbar control, porcelain login surface and system dialogs. */
#refreshAll{
  min-height:34px;
  height:34px;
  gap:6px;
  padding:0 11px;
  border-radius:9px;
  color:#64716c;
  font-size:11px;
  font-weight:620;
  line-height:1;
  letter-spacing:0;
  white-space:nowrap;
}
#refreshAll i{font-size:14px}
#refreshAll:hover{color:#08745c;background:#f4faf7}

body .login-form-state .login-card{
  gap:13px;
  padding:27px 28px 24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.82);
  color:#20322c;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.98),transparent 35%),
    linear-gradient(145deg,rgba(250,253,251,.965),rgba(237,246,242,.935));
  backdrop-filter:blur(9px) saturate(112%);
  -webkit-backdrop-filter:blur(9px) saturate(112%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(119,159,144,.12),
    0 26px 72px rgba(1,16,12,.30),
    0 0 0 1px rgba(20,96,73,.08);
}
body .login-form-state .login-card:before{
  height:34%;
  opacity:.72;
  background:linear-gradient(180deg,rgba(255,255,255,.62),transparent);
}
body .login-form-state .login-card:after{
  inset:1px;
  border-color:rgba(28,104,81,.09);
}
body .login-form-state .login-card .login-auth-mark{
  width:56px;
  height:56px;
  margin:0 auto 1px;
  transform:translateX(5px);
}
body .login-form-state .login-card .login-auth-mark img{
  filter:drop-shadow(0 7px 10px rgba(0,72,49,.14));
}
.login-form-state .login-card-head .section-kicker{
  color:#397565;
  font-size:9px;
  font-weight:720;
  letter-spacing:.12em;
}
.login-form-state .login-card h2{
  margin:4px 0 2px;
  color:#183028;
  text-shadow:none;
}
.login-form-state .login-card-head p{
  color:#71817b;
  font-size:11px;
}
.login-form-state .login-card label{
  color:#35463f;
  font-size:11px;
  font-weight:670;
}
.login-form-state .login-card input{
  border-color:#cedbd6;
  color:#1d3029;
  background:rgba(255,255,255,.78);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  box-shadow:inset 0 1px 1px rgba(15,61,47,.035),0 1px 0 rgba(255,255,255,.78);
}
.login-form-state .login-card input:hover{
  border-color:#aebfb9;
  background:rgba(255,255,255,.9);
}
.login-form-state .login-card input:focus{
  border-color:#4a9b81;
  color:#152a23;
  background:#fff;
  box-shadow:0 0 0 3px rgba(0,135,106,.105),inset 0 1px 0 rgba(255,255,255,.96);
}
.login-form-state .login-card input::placeholder{color:#94a19d}
.login-form-state .login-card .reveal{
  color:#397565;
  background:#e9f3ef;
}
.login-form-state .login-card .reveal:hover{color:#006f58;background:#dceee7}
.login-form-state .login-button{
  border-color:rgba(0,105,82,.24);
  color:#f7fbf9;
  background:linear-gradient(135deg,#079878,#007b61);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.19),0 10px 22px rgba(0,91,69,.20);
}
.login-form-state .login-button:hover{
  border-color:rgba(0,96,74,.30);
  background:linear-gradient(135deg,#0aa080,#00765d);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.21),0 12px 25px rgba(0,83,64,.23);
}
.login-method-divider{color:#899792}
.login-method-divider::before,
.login-method-divider::after{background:#d6e1dd}
.feishu-auth-button{
  border-color:#cbdad4;
  color:#344841;
  background:rgba(255,255,255,.60);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 7px 18px rgba(20,62,49,.06);
}
.feishu-auth-button:hover{
  border-color:#a9c9bd;
  color:#17634f;
  background:rgba(255,255,255,.88);
}
.feishu-auth-button i{color:#4d8b77}
.feishu-login-hint{color:#879590!important}
.feishu-login-hint.is-ready{color:#3c7c68!important}
.login-form-state .security-note{color:#7d8c87!important}
.login-form-state .security-note span{color:#1f8064}

.system-dialog-open{overflow:hidden}
.system-dialog-modal{
  z-index:180;
  background:rgba(7,24,19,.54);
  backdrop-filter:blur(10px) saturate(112%);
  -webkit-backdrop-filter:blur(10px) saturate(112%);
}
.system-dialog-card{
  width:min(420px,100%);
  gap:0;
  padding:25px;
  overflow:visible;
  border:1px solid rgba(255,255,255,.78);
  border-radius:19px;
  background:rgba(250,253,251,.985);
  box-shadow:0 26px 72px rgba(6,31,23,.25),inset 0 1px 0 #fff;
}
.system-dialog-close{
  position:absolute;
  top:13px;
  right:13px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:9px;
  color:#7a8883;
  background:transparent;
  font-size:17px;
}
.system-dialog-close:hover{color:#263c34;background:#ebf2ef}
.system-dialog-close:focus-visible,
.system-dialog-actions button:focus-visible{
  outline:3px solid rgba(0,135,106,.18);
  outline-offset:2px;
}
.system-dialog-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  margin-bottom:17px;
  border:1px solid #cfe6de;
  border-radius:13px;
  color:#08745c;
  background:#eaf6f1;
  font-size:20px;
}
.system-dialog-copy{padding-right:24px}
.system-dialog-copy .section-kicker{
  color:#4c7e6e;
  font-size:9px;
  letter-spacing:.12em;
}
.system-dialog-card .system-dialog-copy h2{
  margin:7px 0 7px;
  color:#1b3029;
  font-size:21px;
  font-weight:740;
  line-height:1.3;
  letter-spacing:-.025em;
  text-align:left;
}
.system-dialog-card .system-dialog-copy p{
  max-width:340px;
  color:#687972;
  font-size:12px;
  line-height:1.72;
  text-align:left;
}
.system-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:22px;
  padding-top:17px;
  border-top:1px solid #e3ebe8;
}
.system-dialog-actions button{
  min-width:84px;
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
}
.system-dialog-actions .secondary{
  border:1px solid #cedbd6;
  color:#54655f;
  background:#fff;
}
.system-dialog-actions .secondary:hover{border-color:#afc1ba;color:#31473f;background:#f7faf9}
.system-dialog-actions .primary{
  border:1px solid rgba(0,109,85,.20);
  background:linear-gradient(135deg,#078e70,#00775e);
  box-shadow:0 8px 18px rgba(0,91,69,.17),inset 0 1px 0 rgba(255,255,255,.17);
}
.system-dialog-modal[data-tone="warning"] .system-dialog-icon{
  border-color:#eadab9;
  color:#9b6417;
  background:#fff7e8;
}
.system-dialog-modal[data-tone="danger"] .system-dialog-icon{
  border-color:#efcecf;
  color:#b7373d;
  background:#fff1f1;
}
.system-dialog-modal[data-tone="danger"] .system-dialog-actions .primary{
  border-color:#a52b31;
  background:#b93a40;
  box-shadow:0 8px 18px rgba(151,37,43,.17),inset 0 1px 0 rgba(255,255,255,.16);
}
.system-dialog-modal[data-tone="danger"] .system-dialog-actions .primary:hover{background:#a93238}

@media(max-width:800px){
  #systemConfirmModal{padding:18px}
  #systemConfirmModal .system-dialog-card{
    width:min(420px,100%)!important;
    max-width:420px!important;
    min-height:0;
    padding:22px!important;
    border-radius:18px!important;
  }
}
@media(max-width:520px){
  #refreshAll{width:34px;padding:0}
  body .login-form-state .login-card{
    padding:23px 21px 21px;
    border-radius:17px;
  }
  body .login-form-state .login-card .login-auth-mark{
    width:51px;
    height:51px;
    transform:translateX(4px);
  }
  .system-dialog-copy{padding-right:18px}
}
@media(prefers-reduced-transparency:reduce){
  body .login-form-state .login-card{
    background:#f5faf7;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .system-dialog-modal{
    background:rgba(7,24,19,.72);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}

/* Precision spacing for account identity labels in contacts and message delivery. */
.contact-type-stack{
  display:inline-grid;
  grid-template-columns:68px max-content;
  align-items:center;
  column-gap:8px;
  white-space:nowrap;
}
.contact-type-stack .badge{
  justify-self:start;
  min-width:0;
}
.contact-type-stack .ut-badge{justify-self:start}
.recipient-item .recipient-copy{
  min-width:0;
  display:flex;
  align-items:center;
}
.recipient-name-line{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
}
.recipient-name-line b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.recipient-channel{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:19px;
  padding:0 6px;
  border:1px solid transparent;
  border-radius:6px;
  font-size:10px;
  font-weight:680;
  line-height:1;
  letter-spacing:.01em;
}
.recipient-channel.wecom{
  border-color:#cce5f7;
  color:#2c6e99;
  background:#eef8fd;
}
.recipient-channel.wechat{
  border-color:#cce9d4;
  color:#267348;
  background:#effaf2;
}

/* Motion is reserved for hierarchy, state change and direct interaction feedback. */
@media(prefers-reduced-motion:no-preference){
  .login-landing-state .login-topbar{animation:eteLandingBarIn .52s cubic-bezier(.22,1,.36,1) both}
  .login-landing-copy>*{animation:eteLandingReveal .62s cubic-bezier(.22,1,.36,1) both}
  .login-landing-copy .login-hero-wordmark{animation-delay:.08s}
  .login-landing-copy h1{animation-delay:.15s}
  .login-landing-copy .login-hero-summary{animation-delay:.22s}
  .login-landing-copy .login-proof{animation-delay:.29s}
  .login-landing-copy .login-primary-cta{animation-delay:.36s}
  .login-background{animation:eteBackdropDrift 18s ease-in-out infinite alternate}
  .login-form-state .login-card{animation:eteLoginCardIn .5s cubic-bezier(.22,1,.36,1) both}
  .login-form-state .login-card>*{animation:eteFormReveal .44s cubic-bezier(.22,1,.36,1) both}
  .login-form-state .login-card>*:nth-child(2){animation-delay:.05s}
  .login-form-state .login-card>*:nth-child(3){animation-delay:.1s}
  .login-form-state .login-card>*:nth-child(4){animation-delay:.15s}
  .login-form-state .login-card>*:nth-child(5){animation-delay:.2s}
  .login-form-state .login-card>*:nth-child(6){animation-delay:.25s}
  .page.active{animation:etePageIn .34s cubic-bezier(.22,1,.36,1) both}
  .page.active .panel{animation:etePanelIn .38s cubic-bezier(.22,1,.36,1) both}
  .page.active .panel:nth-of-type(2){animation-delay:.045s}
  .page.active .panel:nth-of-type(3){animation-delay:.09s}
  .nav-item,.recipient-item,.segmented button,.row-action,.quiet-button,.icon-button,.command-button,.primary,.secondary{
    transition:transform .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
  }
  .nav-item:hover{transform:translateX(2px)}
  .recipient-item:hover{transform:translateX(2px)}
  .segmented button:active,.row-action:active,.quiet-button:active,.icon-button:active,.command-button:active,.primary:active,.secondary:active{transform:translateY(1px) scale(.985)}
  .modal:not(.hidden){animation:eteOverlayIn .2s ease both}
  .modal:not(.hidden) .modal-card{animation:eteModalIn .34s cubic-bezier(.22,1,.36,1) both}
}
@keyframes eteLandingBarIn{from{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes eteLandingReveal{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes eteBackdropDrift{from{transform:scale(1.01) translate3d(0,0,0)}to{transform:scale(1.045) translate3d(-.7%,-.45%,0)}}
@keyframes eteLoginCardIn{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes eteFormReveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes etePanelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes eteOverlayIn{from{opacity:0}to{opacity:1}}
@keyframes eteModalIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}
@media(max-width:520px){
  .contact-type-stack{grid-template-columns:64px max-content;column-gap:6px}
  .recipient-name-line{gap:7px}
  .recipient-channel{min-height:18px;padding:0 5px;font-size:9px}
}

/* AI 模型作为鲸涅产品导航中的独立分页面加载，由同一 8780 服务托管。 */
.ai-model-module{
  position:absolute;
  inset:0;
  z-index:0;
  min-height:100dvh;
  padding-top:88px;
  background:#f8fbf9;
}
.ai-model-module-frame{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:calc(100dvh - 88px);
  border:0;
  background:#f8fbf9;
}
.ai-model-module-loading{
  position:absolute;
  z-index:1;
  inset:88px 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:#234b3a;
  background:linear-gradient(135deg,#f8fbf9,#eef9f4);
}
.ai-model-module-loading .brand-logo-frame{width:46px;height:46px}
.ai-model-module-loading div{display:grid;gap:3px}
.ai-model-module-loading b{font-size:14px}
.ai-model-module-loading small{font-size:11px;color:#73857c}
@media(max-width:760px){
  .ai-model-module{padding-top:76px}
  .ai-model-module-frame{height:calc(100dvh - 76px)}
  .ai-model-module-loading{inset:76px 0 0}
}

/* Personnel + permissions workspace, draggable Agent, and precise topbar alignment. */
.topbar{align-items:center;padding-inline:32px}
.topbar-title{display:grid;align-content:center;justify-items:start;gap:4px;padding:0;margin:0}
.topbar-title #breadcrumb,.topbar-title h2{display:block;margin:0;padding:0;line-height:1;transform:none}
.topbar-title #breadcrumb{font-size:10px;letter-spacing:.015em}
.topbar-title h2{font-size:17px;line-height:1.18}
.people-access-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px;padding:5px;border:1px solid #dbe8e3;border-radius:16px;background:#f4f8f6}
.people-access-tabs button{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 13px;border:1px solid transparent;border-radius:12px;color:#667c74;background:transparent;text-align:left;transition:.16s}
.people-access-tabs button>i{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:10px;color:#5e7c72;background:#e7efec;font-size:17px}
.people-access-tabs button span{display:grid;min-width:0;gap:2px}.people-access-tabs button b{font-size:11px}.people-access-tabs button small{overflow:hidden;color:#8b9994;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.people-access-tabs button.active{border-color:#c4dfd5;color:#17634f;background:#fff;box-shadow:0 5px 15px rgba(22,72,57,.06)}.people-access-tabs button.active>i{color:#087b60;background:#e1f3ec}
.identity-directory-card.identity-directory-embedded{width:100%;height:auto;max-height:none;border-radius:17px;background:#f8fbfa}
.identity-directory-embedded .identity-directory-head{padding-right:22px}.identity-directory-embedded .identity-directory-list{max-height:560px}.identity-directory-embedded>footer>button{min-width:150px}
.user-audit-workspace{overflow:hidden}.user-audit-workspace>header{display:flex;align-items:center;gap:12px;padding:18px;border-bottom:1px solid #e5eeea;background:linear-gradient(110deg,#fff,#f2faf7)}.user-audit-workspace>header>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#087b60;background:#e5f5ef;font-size:19px}.user-audit-workspace>header>div{display:grid;gap:2px}.user-audit-workspace>header b{color:#29483d;font-size:13px}.user-audit-workspace>header small{color:#81918b;font-size:9px}.user-audit-workspace .user-audit-rows{padding:5px 18px 14px;border-top:0}
.permission-default{display:flex;align-items:center;gap:4px}.permission-default i{color:#4b927d;font-size:11px}
.module-permission-section{display:grid;gap:10px;padding:13px;border:1px solid #dce8e3;border-radius:13px;background:#fbfdfc}.module-permission-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.module-permission-section>header>div{display:grid;gap:2px}.module-permission-section>header b{color:#354d44;font-size:11px}.module-permission-section>header small{color:#84938d;font-size:8.5px}.module-permission-section>header button{padding:5px 9px;border:1px solid #d4e5df;border-radius:7px;color:#08765d;background:#fff;font-size:8px;font-weight:800}
.module-permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.module-permission-grid label{position:relative;min-width:0;cursor:pointer}.module-permission-grid input{position:absolute;width:1px!important;height:1px!important;opacity:0}.module-permission-grid label>span{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:7px;min-height:41px;padding:7px 8px;border:1px solid #e0e9e6;border-radius:9px;color:#64766f;background:#fff;transition:.15s}.module-permission-grid label>span>i{grid-row:1/3;display:grid;place-items:center;width:24px;height:24px;border-radius:7px;color:#799087;background:#eef4f1}.module-permission-grid label b{overflow:hidden;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.module-permission-grid label small{color:#8a9993;font-size:7px}.module-permission-grid input:checked+span{border-color:#9bc9b9;color:#12624e;background:#edf8f4;box-shadow:inset 0 0 0 1px rgba(7,151,116,.06)}.module-permission-grid input:checked+span>i{color:#087b60;background:#d9f0e7}.module-permission-grid.is-super{opacity:.68}.module-permission-grid .is-required{cursor:default}

.agent-assistant-scrim{display:none!important;pointer-events:none!important}
.agent-launcher{position:fixed;right:22px;bottom:22px;z-index:89;display:grid;place-items:center;width:58px;height:58px;padding:0;border:1px solid rgba(177,211,199,.9);border-radius:18px;color:#08775e;background:rgba(255,255,255,.96);box-shadow:0 14px 36px rgba(13,73,55,.2),0 3px 9px rgba(13,73,55,.08);backdrop-filter:blur(12px);transition:.18s}
.agent-launcher:hover,.agent-launcher[aria-expanded="true"]{border-color:#76b7a2;background:#f5fcf9;box-shadow:0 17px 42px rgba(13,73,55,.23);transform:translateY(-2px)}
.agent-launcher-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:transparent;box-shadow:none;overflow:hidden}.agent-launcher-mark img{display:block;width:45px;height:45px;object-fit:contain}.agent-launcher-mark em{right:1px;bottom:1px;width:9px;height:9px}
.agent-launcher-tooltip{position:absolute;right:68px;display:block;width:max-content;padding:7px 10px;border-radius:8px;color:#fff;background:#22473b;box-shadow:0 7px 18px rgba(18,55,43,.16);font-size:9px;font-weight:800;opacity:0;pointer-events:none;transform:translateX(5px);transition:.15s}.agent-launcher:hover .agent-launcher-tooltip,.agent-launcher:focus-visible .agent-launcher-tooltip{opacity:1;transform:none}
.agent-assistant-panel{top:auto;right:22px;bottom:94px;width:430px;height:min(690px,calc(100dvh - 118px));min-width:360px;min-height:420px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);resize:both;transform:translateY(10px) scale(.985);transform-origin:bottom right}
.agent-assistant-panel.is-open{transform:none}.agent-assistant-panel.is-dragging{transition:none;box-shadow:0 30px 90px rgba(15,50,39,.26),0 4px 14px rgba(15,50,39,.1)}
.agent-assistant-head{cursor:grab;touch-action:none;user-select:none}.agent-assistant-panel.is-dragging .agent-assistant-head{cursor:grabbing}.agent-assistant-head button,.agent-assistant-head a{cursor:pointer;touch-action:auto}
.agent-assistant-brand{overflow:hidden;color:inherit;background:#fff;box-shadow:0 7px 16px rgba(0,115,88,.13)}.agent-assistant-brand img{width:37px;height:37px;object-fit:contain}
.agent-drag-hint{display:flex;align-items:center;gap:4px;color:#8a9993;font-size:7px}.agent-drag-hint i{font-size:9px}
@media(max-width:900px){
  .topbar{padding-inline:12px}.topbar-title #breadcrumb{display:none}.agent-launcher{right:13px;bottom:82px;width:52px;height:52px;border-radius:16px}.agent-launcher-mark{width:44px;height:44px}.agent-launcher-mark img{width:41px;height:41px}.agent-launcher-tooltip{display:none}
  .agent-assistant-panel{inset:auto 12px 146px auto;width:min(430px,calc(100vw - 24px));height:min(70dvh,650px);min-width:0;min-height:360px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 80px);border:1px solid rgba(192,216,208,.92);border-radius:18px;resize:none;transform:translateY(12px) scale(.985)}
  .agent-assistant-open{overflow:auto}.agent-assistant-open .mobile-bottom-nav{transform:none;pointer-events:auto}
}
@media(max-width:720px){.identity-directory-card.identity-directory-embedded{height:auto;max-height:none}.identity-directory-embedded .identity-directory-list{max-height:58vh}}
@media(max-width:620px){.people-access-tabs{grid-template-columns:1fr}.people-access-tabs button{padding:8px 10px}.module-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.agent-assistant-panel{inset:auto 8px 142px auto;width:calc(100vw - 16px);height:66dvh;border:1px solid rgba(192,216,208,.92);border-radius:16px}.agent-assistant-head{min-height:64px;padding-top:10px}.agent-assistant-foot{min-height:34px;padding-bottom:0}.agent-launcher{right:9px;bottom:75px}}

/* 2026-08: enterprise pagination, task composer and friend onboarding */
.pagination-host{border-top:1px solid #e6eeeb;background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%)}
.pagination-bar{min-height:68px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#6f807a;font-size:13px}
.pager-summary{display:flex;align-items:center;gap:6px;white-space:nowrap}.pager-summary b{color:#18362e;font-size:14px}.pager-summary span{color:#91a09b}
.pager-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pager-controls label{display:flex;align-items:center;gap:7px;color:#73847e;font-weight:600;white-space:nowrap}
.pager-controls input{width:62px;height:34px;padding:0 8px;border:1px solid #d8e4e0;border-radius:9px;background:#fff;color:#19352e;font:inherit;text-align:center;box-shadow:0 1px 0 rgba(14,74,58,.02)}
.pager-controls input:focus{outline:0;border-color:#46a58b;box-shadow:0 0 0 3px rgba(13,146,112,.1)}
.pager-controls button{height:34px;padding:0 11px;border:1px solid #d8e4e0;border-radius:9px;background:#fff;color:#4d625b;font:600 12px/1 inherit;display:inline-flex;align-items:center;gap:4px;transition:.18s ease}
.pager-controls button:hover:not(:disabled){border-color:#9ecabe;color:#087d61;background:#f5fbf8;transform:translateY(-1px)}
.pager-controls button:disabled{opacity:.4;cursor:not-allowed}.pager-current{min-width:58px;text-align:center;color:#173a31;font-weight:700;font-variant-numeric:tabular-nums}

.capability-pill{height:38px;padding:0 13px;border:1px solid #dbe7e3;border-radius:12px;background:#fff;display:inline-flex;align-items:center;gap:7px;color:#71827c;font-size:12px;font-weight:700}.capability-pill.is-ready{color:#087b60;border-color:#c9e7dd;background:#f3fbf7}.capability-pill.is-unavailable{color:#b34e4e;border-color:#f0d2d2;background:#fff7f7}
.friend-automation-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:18px;align-items:start}.friend-automation-primary,.friend-event-panel{padding:24px}.automation-switch-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.automation-switch-card{position:relative;min-height:92px;padding:17px 66px 17px 16px;border:1px solid #dfe9e6;border-radius:16px;background:#fbfdfc;display:flex;align-items:center;gap:12px;cursor:pointer;transition:.2s ease}.automation-switch-card:hover{border-color:#b9d9d0;background:#f7fcfa}.automation-switch-card.is-disabled{opacity:.52;cursor:not-allowed}.automation-switch-card>input{position:absolute;opacity:0;pointer-events:none}.automation-switch-card>i{position:absolute;right:17px;top:50%;width:38px;height:22px;border-radius:20px;background:#cdd8d4;transform:translateY(-50%);transition:.2s ease}.automation-switch-card>i::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(23,56,46,.2);transition:.2s ease}.automation-switch-card>input:checked+i{background:#069875}.automation-switch-card>input:checked+i::after{transform:translateX(16px)}
.automation-switch-icon{width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:#e9f7f2;color:#07866a;display:grid;place-items:center;font-size:20px}.automation-switch-card span:nth-child(2){display:grid;gap:4px}.automation-switch-card b{color:#16362d;font-size:14px}.automation-switch-card small{color:#81908b;line-height:1.5}
.friend-welcome-field{margin-top:16px;display:grid;gap:8px;color:#3a514a;font-size:13px;font-weight:700}.friend-welcome-field textarea{min-height:132px;padding:14px 15px;border:1px solid #d9e5e1;border-radius:14px;background:#fff;resize:vertical;line-height:1.7;color:#1d3a32}.friend-welcome-field textarea:focus{outline:0;border-color:#48a990;box-shadow:0 0 0 4px rgba(4,147,111,.09)}.friend-welcome-field small{color:#82928c;font-weight:400}
.friend-automation-actions{margin-top:18px;padding-top:18px;border-top:1px solid #e6eeeb;display:flex;align-items:center;justify-content:space-between;gap:16px}.friend-automation-actions>span{display:flex;align-items:center;gap:7px;color:#71847d;font-size:12px}.friend-event-list{margin-top:12px;display:grid;gap:8px}.friend-event-item{min-height:72px;padding:12px;border:1px solid #e3ece9;border-radius:14px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;background:#fcfefd}.friend-event-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#edf5f2;color:#6b817a}.friend-event-icon.good{background:#e6f7f1;color:#078267}.friend-event-icon.bad{background:#fff0f0;color:#c35151}.friend-event-item>div{display:grid;gap:2px;min-width:0}.friend-event-item b,.friend-event-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-event-item b{font-size:13px;color:#18362e}.friend-event-item small,.friend-event-item time{font-size:11px;color:#879791}.friend-event-empty{min-height:220px;display:grid;place-items:center;align-content:center;gap:7px;color:#8b9a95;text-align:center}.friend-event-empty i{font-size:30px;color:#8ec5b6}.friend-event-empty b{color:#4e655e}

.task-message-composer{margin-top:14px}.task-composer-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:10px}.task-composer-head>div{display:grid;gap:3px}.task-composer-head b{color:#17372f;font-size:14px}.task-composer-head small{color:#87968f}.task-composer-head>span{padding:5px 9px;border-radius:9px;background:#e9f7f2;color:#087e62;font-size:11px;font-weight:800}
.task-message-parts{display:grid;gap:10px}.task-message-part{border:1px solid #dfe9e6;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 4px 16px rgba(35,75,63,.035)}.task-message-part>header{height:48px;padding:0 11px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #ebf0ee;background:#f9fcfb}.task-part-order{font:700 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#9aa9a4}.task-part-kind{height:26px;padding:0 9px;border-radius:8px;background:#e9f7f2;color:#087f63;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800}.task-part-kind.image{background:#edf5ff;color:#4274a8}.task-part-kind.file{background:#f4f1fb;color:#705aa1}.task-part-sequence{color:#9aa7a3;font-size:11px}.task-part-actions{margin-left:auto;display:flex;gap:4px}.task-part-actions button{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#70847d;display:grid;place-items:center}.task-part-actions button:hover:not(:disabled){background:#eaf5f1;color:#087d61}.task-part-actions button.danger:hover:not(:disabled){background:#fff0f0;color:#c34f4f}.task-part-actions button:disabled{opacity:.25}
.task-message-part>label{padding:12px;display:grid;gap:7px;color:#50645e;font-size:11px;font-weight:700}.task-message-part textarea{width:100%;padding:10px 11px;border:1px solid #e0e9e6;border-radius:11px;background:#fbfdfc;color:#19372f;line-height:1.65;resize:vertical}.task-message-part textarea:focus{outline:0;border-color:#4ea990;box-shadow:0 0 0 3px rgba(4,147,111,.08);background:#fff}
.task-attachment-field{padding:12px}.task-attachment-field>label{display:grid;gap:7px;color:#50645e;font-size:11px;font-weight:700}.task-attachment-field input{height:40px;padding:0 11px;border:1px solid #dfe9e6;border-radius:11px;background:#fbfdfc;color:#263f38;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.task-attachment-actions{display:flex;gap:8px;margin-top:9px}.task-attachment-actions button,.task-upload-button{height:34px;padding:0 11px;border:1px solid #d7e5e0;border-radius:9px;background:#fff;color:#467067;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;cursor:pointer}.task-upload-button input{display:none}.task-attachment-field>small{display:flex;align-items:flex-start;gap:5px;margin-top:9px;color:#8a9994;font-size:10px;line-height:1.5}
.task-add-parts{margin-top:10px;padding:9px 10px;border:1px dashed #cddfd9;border-radius:13px;background:#f8fcfa;display:flex;align-items:center;gap:7px}.task-add-parts>span{margin-right:auto;color:#81928c;font-size:11px}.task-add-parts button{height:31px;padding:0 10px;border:1px solid #dce8e4;border-radius:9px;background:#fff;color:#46635a;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700}.task-add-parts button:hover{border-color:#9dcbbf;color:#087e62}
.task-variable-guide{margin-top:10px;padding:11px 12px;border-radius:13px;background:#f3f8f6;border:1px solid #e0ebe7}.task-variable-guide>span{display:flex;align-items:center;gap:6px;color:#547068;font-size:11px;font-weight:800}.task-variable-guide>div{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.task-variable-guide button{height:26px;padding:0 8px;border:1px solid #d8e6e1;border-radius:8px;background:#fff;color:#2f5f53;font-size:10px}.task-variable-guide button:hover{border-color:#77b8a6;color:#087f63}.task-variable-guide>small{color:#82928d;font-size:10px;line-height:1.5}

.task-datetime-field{position:relative;grid-column:1/-1;display:grid;gap:7px}.task-datetime-trigger{height:46px;padding:0 14px;border:1px solid #d8e5e0;border-radius:12px;background:#fff;color:#1d3c33;display:flex;align-items:center;justify-content:space-between;text-align:left}.task-datetime-trigger>span{display:flex;align-items:center;gap:9px}.task-datetime-trigger i{color:#16886c}.task-datetime-trigger:hover{border-color:#9dcdbf;background:#fbfefd}.task-datetime-popover{position:absolute;left:0;top:76px;width:min(360px,100%);z-index:30;padding:14px;border:1px solid rgba(163,187,179,.65);border-radius:16px;background:rgba(255,255,255,.98);box-shadow:0 22px 50px rgba(21,54,44,.18)}.task-calendar-head{display:grid;grid-template-columns:34px 1fr 34px;align-items:center}.task-calendar-head b{text-align:center;color:#18372f}.task-calendar-head button,.task-calendar-foot button{border:0;border-radius:9px;background:#f0f6f4;color:#46625a}.task-calendar-head button{width:34px;height:34px;display:grid;place-items:center}.task-calendar-week,.task-calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.task-calendar-week{margin-top:12px}.task-calendar-week span{text-align:center;color:#9aa8a3;font-size:10px}.task-calendar-days{margin-top:6px}.task-calendar-days button{aspect-ratio:1;border:0;border-radius:9px;background:transparent;color:#415a53;font-size:11px}.task-calendar-days button:hover{background:#edf7f3;color:#087e62}.task-calendar-days button.is-outside{color:#c5cecb}.task-calendar-days button.is-today{box-shadow:inset 0 0 0 1px #89c4b5}.task-calendar-days button.is-selected{background:#079774;color:#fff;box-shadow:0 5px 12px rgba(7,151,116,.22)}.task-calendar-inputs{display:grid;grid-template-columns:1fr 92px;gap:8px;margin-top:11px;padding-top:11px;border-top:1px solid #edf1f0}.task-calendar-inputs label{display:grid;gap:5px;color:#72847d;font-size:10px}.task-calendar-inputs input{height:36px;padding:0 9px;border:1px solid #dce7e3;border-radius:9px;background:#fbfdfc;font-variant-numeric:tabular-nums}.task-calendar-foot{display:flex;justify-content:space-between;gap:8px;margin-top:10px}.task-calendar-foot>div{display:flex;gap:5px}.task-calendar-foot button{height:32px;padding:0 9px;font-size:10px}.task-calendar-foot .calendar-confirm{background:#079774;color:#fff;padding:0 14px;font-weight:800}
.task-recipient-toolbar .search{min-width:0;border:1px solid #d9e5e1!important;border-radius:12px!important;background:#fff!important;overflow:hidden;box-shadow:none!important}.task-recipient-toolbar .search:focus-within{border-color:#46a78d!important;box-shadow:0 0 0 3px rgba(4,147,111,.08)!important}.task-recipient-toolbar .search input{border:0!important;box-shadow:none!important;background:transparent!important}

@media(max-width:1080px){.friend-automation-layout{grid-template-columns:1fr}.friend-event-list{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-switch-list{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.pagination-bar{align-items:flex-start;flex-direction:column}.pager-controls{justify-content:flex-start}.friend-automation-primary,.friend-event-panel{padding:18px}.automation-switch-list,.friend-event-list{grid-template-columns:1fr}.friend-automation-actions{align-items:flex-start;flex-direction:column}.task-add-parts{align-items:flex-start;flex-wrap:wrap}.task-add-parts>span{width:100%;margin:0}.task-datetime-popover{position:fixed;left:14px;right:14px;top:50%;width:auto;transform:translateY(-50%)}.task-calendar-inputs{grid-template-columns:1fr 90px}}

.member-sync-toolbar{align-items:center!important}
.member-sync-status{display:flex;align-items:baseline;gap:10px;min-width:0}
.member-sync-status #roomMemberCount{color:#253d34;font-size:13px;font-weight:680;white-space:nowrap}
.member-sync-status small{color:#83918c;font-size:10px;line-height:1.4;white-space:nowrap}
@media(max-width:620px){
  .member-sync-toolbar{align-items:flex-start!important;flex-direction:column}
  .member-sync-status{align-items:flex-start;flex-direction:column;gap:3px}
  .member-sync-status small{white-space:normal}
}

/* ===== Jingnie black particle-stage landing ===== */
body .login-view{
  background:#050505;
}
body .login-background{
  opacity:0;
  visibility:hidden;
}
body .login-scrim{
  background:
    radial-gradient(ellipse 55% 42% at 50% 56%,rgba(255,255,255,.035),transparent 72%),
    linear-gradient(180deg,#050505 0%,#070707 48%,#0a0a0b 100%);
}
body .login-landing-state{
  z-index:1;
}
body .login-landing-state::before,
body .login-landing-state::after,
body .login-landing-content::before,
body .login-landing-content::after{
  content:none!important;
  display:none!important;
}
body .login-landing-content{
  min-height:100dvh;
  max-width:none;
  align-items:flex-start;
  justify-content:center;
  padding:clamp(92px,10vh,120px) 24px 72px;
}
body .login-landing-copy{
  width:min(920px,100%);
  max-width:none;
  margin:0 auto;
  text-align:center;
  color:#f7f7f5;
  text-shadow:none;
}
.login-hero-kicker{
  display:inline-flex;
  height:38px;
  align-items:center;
  gap:9px;
  padding:0 13px 0 9px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  color:rgba(238,239,236,.58);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 14px 40px rgba(0,0,0,.20);
  font-size:10px;
  font-weight:690;
  letter-spacing:.12em;
}
.login-hero-kicker .brand-logo-frame{
  position:relative;
  width:24px!important;
  height:24px!important;
  flex:0 0 24px;
}
.login-hero-kicker>i{
  color:rgba(255,255,255,.42);
  font-size:13px;
}
body .login-landing-copy h1{
  display:grid;
  gap:0;
  margin:37px 0 18px;
  white-space:normal;
  color:#f5f5f3;
  font-size:clamp(49px,5.4vw,76px);
  font-weight:430;
  line-height:1.06;
  letter-spacing:-.055em;
}
body .login-landing-copy h1 span{
  display:block;
}
body .login-landing-copy h1 span:last-child{
  color:#f2f2f0;
}
body .login-landing-copy h1 em{
  margin-right:.08em;
  color:#a7a7aa;
  font-family:"Times New Roman","Noto Serif SC","Songti SC",serif;
  font-weight:400;
  letter-spacing:-.045em;
}
body .login-landing-copy .login-hero-summary{
  display:block;
  max-width:680px;
  margin:0 auto;
  color:rgba(228,229,226,.48);
  font-size:13px;
  font-weight:430;
  line-height:1.8;
  letter-spacing:.025em;
  text-wrap:balance;
}
.wecom-hero-composer{
  position:relative;
  width:min(720px,92vw);
  margin:42px auto 0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.17);
  border-radius:18px;
  color:#e9e9e7;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.055),transparent 30%),
    linear-gradient(145deg,rgba(31,31,32,.92),rgba(19,19,20,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(0,0,0,.38),
    0 24px 70px rgba(0,0,0,.52),
    0 0 0 8px rgba(255,255,255,.018);
  backdrop-filter:blur(18px) saturate(115%);
  -webkit-backdrop-filter:blur(18px) saturate(115%);
  text-align:left;
}
.wecom-hero-composer::before{
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(115deg,rgba(255,255,255,.035),transparent 32%,transparent 70%,rgba(255,255,255,.018));
  content:"";
  pointer-events:none;
}
.wecom-hero-compose{
  position:relative;
  min-height:136px;
  padding:17px 22px 15px;
}
.wecom-hero-tools{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:18px;
}
.wecom-hero-tools span{
  position:relative;
  display:grid;
  width:25px;
  height:25px;
  place-items:center;
  border-radius:7px;
  color:rgba(240,240,237,.48);
  transition:color .18s ease,background .18s ease,transform .18s ease;
}
.wecom-hero-tools span:hover{
  color:rgba(255,255,255,.88);
  background:rgba(255,255,255,.06);
  transform:translateY(-1px);
}
.wecom-hero-tools i{font-size:17px}
.wecom-hero-tools b{
  position:absolute;
  right:-2px;
  bottom:4px;
  width:0;
  height:0;
  border-top:3px solid rgba(255,255,255,.34);
  border-right:3px solid transparent;
  border-left:3px solid transparent;
}
.wecom-hero-prompt{
  display:flex;
  min-height:33px;
  align-items:center;
  color:rgba(234,234,231,.36);
  font-size:13px;
  letter-spacing:.012em;
}
.wecom-hero-prompt i{
  width:1px;
  height:19px;
  margin-left:7px;
  background:rgba(255,255,255,.82);
  box-shadow:0 0 9px rgba(255,255,255,.20);
}
.wecom-agent-chip{
  display:inline-flex;
  height:29px;
  align-items:center;
  gap:7px;
  margin-top:8px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:8px;
  color:rgba(235,236,232,.58);
  background:rgba(255,255,255,.028);
  font-size:10px;
  font-weight:620;
}
.wecom-agent-chip .pulse{
  width:5px;
  height:5px;
  flex:0 0 5px;
  background:#c8fff0;
  box-shadow:0 0 0 4px rgba(104,234,195,.08),0 0 9px rgba(138,255,221,.30);
}
.wecom-hero-composer footer{
  position:relative;
  display:flex;
  min-height:54px;
  align-items:center;
  justify-content:space-between;
  padding:8px 14px 8px 21px;
  border-top:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.035));
}
.wecom-hero-composer footer>span{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(238,238,235,.50);
  font-size:11px;
}
.wecom-hero-composer footer>span i{font-size:15px}
.wecom-hero-composer footer button{
  display:inline-flex;
  height:36px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:10px;
  color:#111;
  background:#f3f3f0;
  box-shadow:0 7px 20px rgba(0,0,0,.20),inset 0 1px 0 #fff;
  font-size:11px;
  font-weight:760;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.wecom-hero-composer footer button:hover{
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.28),0 0 0 4px rgba(255,255,255,.06);
  transform:translateY(-1px);
}
.wecom-hero-composer footer button:active{transform:translateY(0) scale(.98)}
.wecom-hero-composer footer button:focus-visible{outline:3px solid rgba(255,255,255,.24);outline-offset:3px}
.wecom-hero-caption{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:22px 0 0!important;
  color:rgba(224,225,222,.30)!important;
  font-size:10px!important;
  letter-spacing:.025em;
}
.wecom-hero-caption strong{color:rgba(238,239,236,.62);font-weight:680}
.wecom-hero-caption span::before{margin-right:10px;color:rgba(255,255,255,.16);content:"—"}
.login-particle-field{
  top:70%;
  width:min(112vw,1420px);
  opacity:1;
  mix-blend-mode:screen;
  filter:none;
  transform:translate(-50%,-50%);
}
.login-particle-field::before{
  inset:19%;
  background:radial-gradient(circle,rgba(255,255,255,.025),transparent 66%);
  box-shadow:0 0 170px rgba(255,255,255,.025);
}
.login-particle-globe{
  inset:-5%;
  width:110%;
  height:110%;
  border:0;
  outline:0;
}
.login-view:has(.login-form-state:not(.hidden)) .login-particle-field{
  top:58%;
  opacity:.42;
  filter:none;
  transform:translate(-58%,-50%) scale(.9);
}
@media(prefers-reduced-motion:no-preference){
  .wecom-hero-prompt i{animation:wecomCursorBlink 1.05s steps(1,end) infinite}
  .login-hero-kicker{animation:eteLandingReveal .54s cubic-bezier(.22,1,.36,1) both}
  .wecom-hero-composer{animation:wecomComposerIn .7s .2s cubic-bezier(.22,1,.36,1) both}
}
@keyframes wecomCursorBlink{0%,46%{opacity:1}47%,100%{opacity:0}}
@keyframes wecomComposerIn{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:760px){
  body .login-landing-content{padding:78px 18px 54px}
  .login-hero-kicker{height:34px;font-size:8px;letter-spacing:.08em}
  body .login-landing-copy h1{margin-top:29px;font-size:clamp(39px,11vw,58px)}
  body .login-landing-copy .login-hero-summary{max-width:430px;font-size:12px}
  .wecom-hero-composer{margin-top:34px}
  .login-particle-field{top:71%;width:166vw}
}
@media(max-width:520px){
  body .login-landing-content{padding-top:66px}
  .login-hero-kicker{max-width:94%;padding-right:10px}
  .login-hero-kicker>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body .login-landing-copy h1{font-size:39px;line-height:1.09}
  .wecom-hero-compose{min-height:128px;padding:15px 16px 13px}
  .wecom-hero-tools{gap:3px;margin-bottom:16px}
  .wecom-hero-prompt{font-size:11px}
  .wecom-hero-composer footer{padding-left:16px}
  .wecom-hero-caption{flex-direction:column;gap:4px}
  .wecom-hero-caption span::before{display:none}
  .login-particle-field{top:73%;width:195vw}
}

/* Compact product switcher restored as a single, calm navigation surface. */
.login-landing-state .landing-product-nav{
  inset:22px auto auto 50%;
  width:max-content;
  max-width:calc(100vw - 28px);
  height:52px;
  padding:6px;
  gap:5px;
  overflow-x:auto;
  overflow-y:hidden;
  border-color:rgba(255,255,255,.12);
  border-radius:15px;
  background:rgba(21,22,23,.78);
  box-shadow:0 16px 42px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.06);
  scrollbar-width:none;
}
.login-landing-state .landing-product-nav::-webkit-scrollbar{display:none}
.landing-product-nav .login-brand{
  flex:0 0 auto;
  padding-right:8px;
}
.landing-product-nav .login-brand b{
  color:rgba(248,248,245,.9);
  font-size:12px;
}
.landing-product-nav .login-nav-actions{
  flex:0 0 auto;
  gap:2px;
  padding-left:6px;
  border-left-color:rgba(255,255,255,.10);
}
.landing-product-nav .login-nav-link{
  height:34px;
  padding:0 10px;
  border:0;
  border-radius:9px;
  color:rgba(232,233,230,.56);
  background:transparent;
  font-size:11px;
  font-weight:650;
  letter-spacing:0;
  white-space:nowrap;
  cursor:pointer;
  transition:color .18s ease,background .18s ease,transform .18s ease;
}
.landing-product-nav .login-nav-link:hover{
  color:rgba(255,255,252,.9);
  background:rgba(255,255,255,.055);
}
.landing-product-nav .login-nav-link.is-current{color:rgba(246,247,244,.82)}
.landing-product-nav .login-nav-button{
  height:34px;
  padding:0 13px;
  border-radius:9px;
  font-size:11px;
  white-space:nowrap;
}
@media(max-width:760px){
  body .login-landing-content{padding-top:102px}
  .login-landing-state .landing-product-nav{
    top:12px;
    left:14px;
    width:calc(100vw - 28px);
    max-width:none;
    transform:none;
    justify-content:flex-start;
  }
  .landing-product-nav .login-brand{position:sticky;left:0;z-index:2;background:rgba(21,22,23,.96)}
  .landing-product-nav .login-nav-link{padding-inline:9px}
}

/* Login alignment contract:
   the card and the particle stage share the exact viewport center. */
.login-form-state .login-stage{
  min-height:100dvh;
  padding:64px 20px;
  align-items:center;
  justify-content:center;
}
.login-form-state .login-card{
  margin:0;
}
.login-view:has(.login-form-state:not(.hidden)) .login-particle-field{
  top:50%;
  left:50%;
  opacity:.42;
  filter:none;
  transform:translate(-50%,-50%) scale(.9);
  transform-origin:center;
}
@media(max-width:520px){
  .login-form-state .login-stage{padding:64px 14px}
  .login-view:has(.login-form-state:not(.hidden)) .login-particle-field{
    top:50%;
    left:50%;
    width:154vw;
    transform:translate(-50%,-50%) scale(.9);
  }
}

/* Permission template library */
.permission-template-panel{margin-top:18px;overflow:hidden}
.template-library-head{align-items:center;padding-bottom:14px}
.library-action-button{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 13px;
  border:1px solid #cfe2db;border-radius:10px;color:#08745c;background:#f6fbf9;
  font-size:11px;font-weight:700;white-space:nowrap;transition:background .18s ease,border-color .18s ease,transform .18s ease
}
.library-action-button:hover{border-color:#9fcabd;background:#edf8f4;transform:translateY(-1px)}
.library-action-button i{font-size:15px}
.template-library-summary{
  display:flex;align-items:center;gap:11px;margin:0 20px 13px;padding:11px 13px;
  border:1px solid #dcebe5;border-radius:12px;background:linear-gradient(135deg,#f5fbf8,#fbfdfc)
}
.template-library-mark{
  display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #cce7dd;
  border-radius:10px;color:#087b60;background:#e8f6f1;font-size:18px
}
.template-library-summary>div{display:grid;gap:2px;min-width:0}
.template-library-summary b{color:#233b33;font-size:12px}
.template-library-summary small{color:#7c8d87;font-size:10px}
.template-library-hint{display:inline-flex;align-items:center;gap:5px;margin-left:auto;color:#7d8f89;font-size:9px;white-space:nowrap}
.template-list-head,.template-directory-row{
  display:grid;grid-template-columns:minmax(190px,1.15fr) minmax(170px,1fr) minmax(135px,.75fr) minmax(155px,.9fr) 112px;
  align-items:center;column-gap:14px
}
.template-list-head{min-height:35px;padding:0 20px;color:#88968f;background:#f7f9f8;border-top:1px solid #edf2f0;border-bottom:1px solid #edf2f0;font-size:9px;font-weight:700}
.template-library-list{display:block}
.template-directory-row{
  position:relative;min-height:70px;padding:10px 20px;border:0;border-bottom:1px solid #edf2f0;border-radius:0;
  background:#fff;cursor:pointer;transition:background .16s ease,box-shadow .16s ease
}
.template-directory-row:last-child{border-bottom:0}
.template-directory-row:hover,.template-directory-row:focus-visible{outline:0;background:#f8fcfa;box-shadow:inset 3px 0 #0b9573}
.template-directory-row>span{min-width:0;display:grid;gap:3px}
.template-directory-row>span>b,.template-directory-row .template-identity b{overflow:hidden;color:#263a33;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.template-directory-row>span>small,.template-directory-row .template-identity small{overflow:hidden;color:#83918c;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.template-identity{display:flex!important;align-items:center;gap:9px}
.template-identity>i{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:9px;color:#0b8063;background:#eaf6f2;font-size:16px}
.template-identity>span{display:grid;gap:3px;min-width:0}
.template-rule b{font-weight:680}
.template-row-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:5px}
.icon-row-button{
  display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #dce8e3;border-radius:8px;
  color:#547067;background:#fff;font-size:14px;transition:color .16s ease,border-color .16s ease,background .16s ease
}
.icon-row-button:hover{color:#08745c;border-color:#a9d0c3;background:#eef8f4}
.icon-row-button.danger:hover{color:#b34747;border-color:#edc6c6;background:#fff4f3}
.template-chevron{margin-left:1px;color:#a5b2ad;font-size:15px}
.library-empty{
  min-height:118px;display:flex;align-items:center;justify-content:center;gap:12px;padding:24px;color:#71827c
}
.library-empty>span{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #d6e7e1;border-radius:12px;color:#198066;background:#f0f8f5;font-size:19px}
.library-empty>div{display:grid;gap:3px;max-width:430px}
.library-empty b{color:#31483f;font-size:12px}.library-empty small{font-size:10px;line-height:1.6}
.library-empty .text-button{margin-left:8px;color:#08745c;font-size:10px}

/* AI preset workspace */
.ai-page-heading{align-items:center}
.ai-search-module{grid-column:1/-1;overflow:hidden;padding:0}
.ai-search-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 22px;border-bottom:1px solid #e5efeb;background:linear-gradient(118deg,#f5fbf8,#fbfaf4)}
.ai-search-title{display:flex;align-items:center;gap:13px;min-width:0}.ai-search-title>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#def3eb;color:#078565;font-size:21px}.ai-search-title>div{display:grid;gap:3px}.ai-search-title small{color:#078565;font-size:9px;font-weight:800;letter-spacing:.12em}.ai-search-title h3{margin:0;color:#24433a;font-size:16px}.ai-search-title p{margin:0;color:#71847c;font-size:10px;line-height:1.55}.ai-search-health{display:grid;justify-items:end;gap:6px;white-space:nowrap}.ai-search-health small{color:#84958e;font-size:9px}
.ai-search-config{display:grid;grid-template-columns:1.4fr 1.8fr repeat(4,minmax(105px,.65fr));gap:10px;padding:18px 22px}.ai-search-config>label,.ai-search-advanced label{display:grid;gap:6px;color:#556b62;font-size:9px;font-weight:750}.ai-search-config input,.ai-search-config select,.ai-search-advanced input{height:38px;border:1px solid #dce9e4;border-radius:10px;background:#fbfdfc;padding:0 11px;color:#2e473e;font:inherit}.ai-search-master{display:flex!important;align-items:center;justify-content:space-between;gap:14px;border:1px solid #d7ebe3;border-radius:12px;background:#f2faf7;padding:10px 12px}.ai-search-master span{display:grid;gap:2px}.ai-search-master b{font-size:10px;color:#295044}.ai-search-master small{font-size:8px;color:#789087;line-height:1.4}.ai-search-master input{position:absolute;opacity:0}.ai-search-master i{position:relative;width:34px;height:20px;border-radius:20px;background:#bdcdc7;flex:0 0 auto}.ai-search-master i:after{content:"";position:absolute;width:14px;height:14px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.2s}.ai-search-master input:checked+i{background:#079873}.ai-search-master input:checked+i:after{transform:translateX(14px)}.ai-search-key{position:relative}.ai-search-key .badge{position:absolute;right:8px;top:-3px}.ai-search-key input{padding-right:105px}
.ai-search-advanced{margin:0 22px 16px;border:1px solid #e2ece8;border-radius:12px;background:#fbfdfc}.ai-search-advanced summary{display:flex;align-items:center;gap:9px;padding:11px 13px;cursor:pointer;list-style:none;color:#315347}.ai-search-advanced summary>span{display:grid;gap:2px}.ai-search-advanced summary b{font-size:10px}.ai-search-advanced summary small{font-size:8px;color:#80918b}.ai-search-advanced summary>i:last-child{margin-left:auto}.ai-search-advanced>div{display:grid;grid-template-columns:1.4fr 1.2fr .7fr .75fr .85fr;gap:10px;padding:0 13px 13px}.ai-search-advanced .checkbox-line{align-content:center;display:flex;align-items:center;gap:7px;padding-top:14px}
.ai-search-lab{margin:0 22px 16px;padding:14px;border:1px solid #dcece6;border-radius:14px;background:#f7fbf9}.ai-search-lab>div:first-child{display:flex;align-items:center;gap:9px}.ai-search-lab>div:first-child>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e4f3ee;color:#078466}.ai-search-lab>div:first-child>div{display:grid;gap:2px}.ai-search-lab b{color:#2f4c42;font-size:10px}.ai-search-lab small{color:#7c8e87;font-size:8px}.ai-search-query{display:grid!important;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.ai-search-query input{height:40px;border:1px solid #d8e6e1;border-radius:10px;padding:0 12px;background:#fff}.ai-search-query button{min-width:104px;border:0;border-radius:10px;background:#087f63;color:#fff;font-size:10px;font-weight:750}.ai-search-results{display:grid!important;gap:0;margin-top:12px;border:1px solid #e1ebe7;border-radius:11px;background:#fff;overflow:hidden}.ai-search-results.hidden{display:none!important}.ai-search-results>header{padding:10px 12px;background:#f7faf9}.ai-search-results>header>div{display:flex;justify-content:space-between;align-items:center}.ai-search-results article{display:grid;grid-template-columns:26px 1fr;gap:9px;padding:11px 12px;border-top:1px solid #edf2f0}.ai-search-results article>span{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#e8f4f0;color:#087b61;font-size:9px;font-weight:800}.ai-search-results article>div{display:grid;gap:4px}.ai-search-results p{margin:0;color:#5f746c;font-size:9px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ai-search-results a{width:max-content;color:#078566;font-size:9px;font-weight:700;text-decoration:none}.ai-search-module>footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 22px;border-top:1px solid #e5eeea;background:#fbfcfc}.ai-search-module>footer small{color:#71857d;font-size:9px}.ai-search-module>footer button{min-width:140px}
.search-permission-card{display:grid!important;grid-template-columns:36px 1fr minmax(150px,.7fr);align-items:center;gap:10px;border:1px solid #dcebe5;border-radius:12px;background:#f5faf8;padding:10px!important}.search-permission-card>span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e2f3ed;color:#078767;font-size:16px}.search-permission-card>span:nth-child(2){display:grid;gap:2px}.search-permission-card b{color:#315047;font-size:10px}.search-permission-card small{color:#7c8f87;font-size:8px;line-height:1.45}.search-permission-card select{height:36px;border:1px solid #d8e6e1;border-radius:9px;background:#fff;padding:0 9px;color:#385148;font-size:9px}
.page-heading-actions{display:flex;align-items:center;gap:8px}
.page-heading-actions button,.save-settings{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.ai-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.ai-preset-library{overflow:hidden;min-width:0}
.ai-library-head{align-items:center;padding-bottom:17px}
.ai-library-stat{display:grid;justify-items:end;line-height:1}
.ai-library-stat b{color:#08775e;font-size:24px;font-variant-numeric:tabular-nums}
.ai-library-stat span{margin-top:5px;color:#87958f;font-size:9px}
.preset-table-head,.preset-directory-row{
  display:grid;grid-template-columns:minmax(175px,1fr) minmax(200px,1.12fr) minmax(210px,1.18fr) 98px 156px;
  align-items:center;column-gap:14px
}
.preset-table-head{min-height:38px;padding:0 18px;color:#84938d;background:#f7f9f8;border-top:1px solid #edf2f0;border-bottom:1px solid #e9efec;font-size:9px;font-weight:700}
.ai-preset-library .preset-list{margin:0}
.ai-preset-library .preset-item{
  min-height:76px;margin:0;padding:11px 18px;border:0;border-bottom:1px solid #edf2f0;border-radius:0;background:#fff
}
.ai-preset-library .preset-item:last-child{border-bottom:0}
.ai-preset-library .preset-item:hover{background:#f9fcfb}
.preset-directory-row>span{min-width:0}
.preset-identity{display:flex;align-items:center;gap:9px}
.preset-identity>span:last-child,.preset-state,.preset-connection,.preset-persona{display:grid;gap:3px;min-width:0}
.preset-model-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #d4e9e1;border-radius:10px;color:#078362;background:#ecf8f3;font-size:16px}
.preset-directory-row b{overflow:hidden;color:#273b34;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.preset-directory-row small{overflow:hidden;color:#83918c;font-size:9px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
.preset-connection small{display:flex;align-items:center;gap:4px;color:#71847d}
.preset-persona small{max-width:100%}
.preset-state{justify-items:start}
.preset-state .badge{width:max-content}
.preset-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.preset-row-actions .row-action{display:inline-flex;align-items:center;gap:5px;margin:0;padding:7px 9px;border-color:#cee4dc;background:#f1f9f6;font-size:9px}
.preset-empty{min-height:150px}
.ai-control-column{display:grid;gap:14px;align-content:start}
.ai-scope-panel{overflow:hidden}
.ai-scope-panel .panel-head{padding-bottom:8px}
.ai-scope-panel>label{margin:0 20px}
.ai-scope-panel textarea{min-height:72px}
.runtime-settings-disclosure{overflow:hidden}
.runtime-settings-disclosure>summary{
  display:flex;align-items:center;gap:10px;min-height:68px;padding:13px 16px;list-style:none;cursor:pointer
}
.runtime-settings-disclosure>summary::-webkit-details-marker{display:none}
.runtime-summary-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;color:#08785f;background:#ebf6f2;font-size:16px}
.runtime-settings-disclosure summary>span:nth-child(2){display:grid;gap:3px;min-width:0}
.runtime-settings-disclosure summary b{color:#2d423a;font-size:11px}
.runtime-settings-disclosure summary small{color:#87958f;font-size:9px}
.runtime-summary-arrow{margin-left:auto;color:#899891;transition:transform .18s ease}
.runtime-settings-disclosure[open] .runtime-summary-arrow{transform:rotate(180deg)}
.runtime-settings-body{padding:2px 16px 16px;border-top:1px solid #edf2f0}
.runtime-settings-body .form-grid{grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}
.runtime-settings-body label{display:grid;gap:6px;color:#52635d;font-size:9px;font-weight:680}
.runtime-settings-body input{width:100%;height:36px;padding:0 10px;border:1px solid #d9e4e0;border-radius:9px;outline:0;background:#fbfcfc;color:#2c4038;font-size:10px}
.runtime-settings-body input:focus{border-color:#80bba9;box-shadow:0 0 0 3px rgba(8,139,105,.09)}
.ai-control-column .notice-card{border-color:#e1ebe7;background:#f8fbfa}
.ai-control-column .notice-card>span{color:#08785f;background:#e7f5f0}
.ai-control-column .notice-card p{color:#6d7f78}
.ai-control-column .save-settings{min-height:42px;border-radius:11px;font-size:11px}

/* Configuration editors */
.modal-card.permission-template-editor{width:min(880px,96vw)}
.modal-card.ai-preset-editor{width:min(980px,96vw)}
.permission-template-editor,.ai-preset-editor{max-height:92vh;overflow:auto;padding:0;gap:0;border:1px solid rgba(255,255,255,.7);border-radius:18px}
.editor-modal-head{display:flex;align-items:center;gap:12px;padding:20px 22px 17px;border-bottom:1px solid #edf2f0;background:linear-gradient(135deg,#fbfdfc,#f5faf8)}
.editor-modal-head>div{display:grid;gap:2px}
.editor-modal-head h2{margin:0;color:#20372f;text-align:left;font-size:18px}
.editor-modal-head p{margin:1px 0 0;color:#7c8d87;text-align:left;font-size:10px}
.editor-modal-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #cce5dc;border-radius:12px;color:#087b60;background:#e8f6f1;font-size:20px}
.permission-template-editor .modal-close,.ai-preset-editor .modal-close{right:15px;top:14px;display:grid;place-items:center;width:32px;height:32px;border:1px solid #dce7e3;border-radius:9px;background:rgba(255,255,255,.8);color:#73837d;font-size:17px}
.permission-editor-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:14px;padding:18px 22px}
.preset-editor-grid{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);gap:14px;padding:18px 22px}
.preset-persona-section{grid-column:1/-1}
.editor-section{display:grid;align-content:start;gap:13px;padding:16px;border:1px solid #e2ebe7;border-radius:13px;background:#fff}
.editor-section-head{display:flex;align-items:center;gap:9px;padding-bottom:11px;border-bottom:1px solid #edf2f0}
.editor-section-head>span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;color:#08775e;background:#eaf6f2;font-size:9px;font-weight:800}
.editor-section-head>div{display:grid;gap:2px}.editor-section-head b{color:#2a4038;font-size:11px}.editor-section-head small{color:#899790;font-size:9px}
.editor-section>label,.editor-section .form-grid label{display:grid;gap:6px;color:#4d6059;font-size:10px;font-weight:700}
.editor-section label>small{display:flex;align-items:center;gap:4px;color:#8a9892;font-size:9px;font-weight:450;line-height:1.45}
.editor-section input,.editor-section select,.editor-section textarea{
  width:100%;padding:10px 11px;border:1px solid #d8e4df;border-radius:9px;outline:0;color:#263c34;background:#fbfcfc;font-size:11px
}
.editor-section input,.editor-section select{height:38px}
.editor-section textarea{resize:vertical;line-height:1.7}
.editor-section input:focus,.editor-section select:focus,.editor-section textarea:focus{border-color:#7db8a7;background:#fff;box-shadow:0 0 0 3px rgba(8,139,105,.09)}
.editor-section .form-grid{gap:11px;margin:0}
.member-capture-summary,.prompt-writing-tip{
  display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #dfeae6;border-radius:10px;color:#5c756c;background:#f7faf9
}
.member-capture-summary>i,.prompt-writing-tip>i{color:#168269;font-size:17px}
.member-capture-summary>span,.prompt-writing-tip>span{display:grid;gap:2px}
.member-capture-summary b,.prompt-writing-tip b{color:#3a5148;font-size:10px}
.member-capture-summary small,.prompt-writing-tip small{color:#83928c;font-size:9px;line-height:1.45}
.editor-check-line{display:flex!important;align-items:flex-start;gap:9px;padding:11px;border:1px solid #dfe9e5;border-radius:10px;background:#fafcfb;cursor:pointer}
.editor-check-line input{flex:0 0 auto;width:15px;height:15px;margin:1px 0 0;padding:0;accent-color:#078b69;box-shadow:none!important}
.editor-check-line>span{display:grid;gap:2px}.editor-check-line b{color:#344b42;font-size:10px}.editor-check-line small{color:#84928d;font-size:9px;font-weight:450;line-height:1.45}
.editor-modal-foot{
  position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:13px 22px;border-top:1px solid #e5edea;background:rgba(251,253,252,.96);backdrop-filter:blur(10px)
}
.editor-modal-foot>span{display:flex;align-items:center;gap:6px;color:#7e8e88;font-size:9px}
.editor-modal-foot .modal-actions{display:flex;gap:8px;margin:0}
.editor-modal-foot button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 13px;font-size:10px}

@media(max-width:1180px){
  .ai-search-config{grid-template-columns:1fr 1fr 1fr}.ai-search-master,.ai-search-key{grid-column:span 2}.ai-search-advanced>div{grid-template-columns:1fr 1fr}
  .ai-workspace{grid-template-columns:1fr}
  .ai-control-column{grid-template-columns:1fr 1fr}
  .ai-control-column .save-settings,.ai-control-column .notice-card{grid-column:1/-1}
}
@media(max-width:920px){
  .template-list-head,.preset-table-head{display:none}
  .template-directory-row{grid-template-columns:1fr 1fr 88px;gap:10px}
  .template-directory-row>span:nth-child(4){display:none}
  .preset-directory-row{grid-template-columns:1fr 1fr 116px;gap:10px}
  .preset-persona,.preset-state{display:none}
}
@media(max-width:700px){
  .ai-search-head{align-items:flex-start;padding:16px}.ai-search-health{display:none}.ai-search-config{grid-template-columns:1fr;padding:14px 16px}.ai-search-master,.ai-search-key{grid-column:auto}.ai-search-advanced{margin:0 16px 14px}.ai-search-advanced>div{grid-template-columns:1fr}.ai-search-lab{margin:0 16px 14px}.ai-search-query{grid-template-columns:1fr!important}.ai-search-module>footer{align-items:stretch;flex-direction:column;padding:12px 16px}.search-permission-card{grid-template-columns:34px 1fr}.search-permission-card select{grid-column:1/-1}
  .page-heading-actions{width:100%;flex-wrap:wrap}
  .page-heading-actions button{flex:1}
  .template-library-summary{align-items:flex-start}
  .template-library-hint{display:none}
  .template-directory-row{grid-template-columns:1fr auto}
  .template-directory-row>span:nth-child(2),.template-directory-row>span:nth-child(3),.template-directory-row>span:nth-child(4){display:none}
  .preset-directory-row{grid-template-columns:1fr auto}
  .preset-connection,.preset-persona,.preset-state{display:none}
  .ai-control-column{grid-template-columns:1fr}
  .ai-control-column .save-settings,.ai-control-column .notice-card{grid-column:auto}
  .permission-editor-layout,.preset-editor-grid{grid-template-columns:1fr}
  .preset-persona-section{grid-column:auto}
  .editor-modal-head{padding-right:58px}
  .editor-modal-foot{align-items:stretch;flex-direction:column}
  .editor-modal-foot .modal-actions{width:100%}.editor-modal-foot .modal-actions button{flex:1}
}
@media(max-width:520px){
  .template-library-summary{margin-inline:14px}
  .template-library-summary small{white-space:normal}
  .template-directory-row,.preset-directory-row{padding-inline:14px}
  .library-empty{align-items:flex-start;flex-direction:column}
  .library-empty .text-button{margin-left:0}
  .runtime-settings-body .form-grid{grid-template-columns:1fr}
  .permission-editor-layout,.preset-editor-grid{padding:14px}
}

/* Conversation summary permission */
.summary-permission-card{
  display:grid!important;grid-template-columns:auto 38px minmax(0,1fr);align-items:center;gap:11px;
  min-height:68px;padding:12px 14px!important;border:1px solid #d7e9e2;border-radius:12px;
  background:linear-gradient(135deg,#f8fcfa,#f2faf7);cursor:pointer
}
.summary-permission-card>input{
  width:16px!important;height:16px!important;margin:0;accent-color:#078b69;box-shadow:none!important
}
.summary-permission-icon{
  display:grid;place-items:center;width:38px;height:38px;border:1px solid #cce7dd;border-radius:11px;
  color:#087b60;background:#e7f6f0;font-size:17px
}
.summary-permission-card>span:last-child{display:grid;gap:3px;min-width:0}
.summary-permission-card b{color:#294239;font-size:11px}
.summary-permission-card small{color:#72847d;font-size:9px;font-weight:480;line-height:1.55}
.summary-permission-card:has(input:checked){border-color:#8bc7b5;background:linear-gradient(135deg,#f3fbf8,#e9f7f2);box-shadow:0 0 0 3px rgba(7,139,105,.06)}
.summary-history-control{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:-5px;padding:0 4px;
  color:#819089;font-size:8px
}
.summary-history-control>span{display:flex;align-items:center;gap:5px;line-height:1.45}
.summary-history-control button{
  flex:0 0 auto;min-height:28px;padding:0 9px;border:1px solid #dce7e3;border-radius:8px;
  color:#6d7f78;background:#fff;font-size:8px;font-weight:700
}
.summary-history-control button:hover{border-color:#d6b8b4;color:#9a5954;background:#fff8f7}

/* Scheduled notification workspace */
.task-safety-strip{
  display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 15px;border:1px solid #d8e8e2;
  border-radius:13px;background:linear-gradient(120deg,#f8fcfa,#f1f8f5);box-shadow:0 8px 22px rgba(39,78,65,.04)
}
.task-safety-strip>div{display:grid;gap:2px;min-width:0}
.task-safety-strip b{color:#2a433a;font-size:11px}
.task-safety-strip small{color:#75877f;font-size:9px;line-height:1.5}
.task-safety-strip .text-button{margin-left:auto;flex:0 0 auto}
.task-safety-icon{
  display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #cce5dc;
  border-radius:11px;color:#087b60;background:#e8f6f1;font-size:18px
}
#page-tasks .table-wrap{overflow:auto}
#page-tasks table{min-width:1180px}
#page-tasks th:last-child,#page-tasks td:last-child{text-align:right}
.task-name-cell,.task-target-cell{display:grid;gap:3px;min-width:0}
.task-name-cell strong,.task-target-cell b{overflow:hidden;color:#2a4038;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.task-name-cell small,.task-target-cell small,.task-next-run{color:#83928c;font-size:9px}
.task-schedule-label{
  display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border:1px solid #dce8e3;border-radius:8px;
  color:#476057;background:#f7faf9;font-size:9px;font-weight:680;white-space:nowrap
}
.task-protection-label{
  display:inline-flex;align-items:center;gap:5px;color:#28725d;font-size:9px;font-weight:700;white-space:nowrap
}
.task-protection-label i{font-size:13px}
.task-status{display:inline-flex;align-items:center;gap:6px;color:#7d8c86;font-size:9px;font-weight:700;white-space:nowrap}
.task-status .dot{width:6px;height:6px;border-radius:50%;background:#aab5b1}
.task-status.on{color:#08775e}.task-status.on .dot{background:#0aa17a;box-shadow:0 0 0 4px rgba(10,161,122,.1)}
.task-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}
.task-actions button{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:30px;padding:0 9px;
  border:1px solid #d7e4df;border-radius:8px;color:#52655e;background:#fff;font-size:9px;font-weight:700;
  transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease
}
.task-actions button:hover{border-color:#afd1c5;color:#08775e;background:#f2faf7;transform:translateY(-1px)}
.task-actions .run-btn{border-color:#c6e3d9;color:#08775e;background:#edf8f4}
.task-actions .toggle-on{color:#8a5f38;background:#fffaf5;border-color:#ead9ca}
.task-actions .toggle-off{color:#08775e;background:#edf8f4;border-color:#c6e3d9}
.task-actions .del-btn{width:30px;padding:0;color:#a35c58}

/* Task editor */
.modal-card.task-editor-card{
  display:flex;flex-direction:column;width:min(1120px,calc(100vw - 40px));
  height:min(860px,94dvh);max-height:94dvh;overflow:hidden;padding:0;gap:0;
  border:1px solid rgba(255,255,255,.82);border-radius:19px;background:#f7faf9;
  box-shadow:0 30px 90px rgba(22,48,39,.22)
}
.task-editor-card .modal-close{
  right:16px;top:15px;z-index:5;display:grid;place-items:center;width:32px;height:32px;
  border:1px solid #dbe7e2;border-radius:9px;color:#75857f;background:rgba(255,255,255,.88)
}
.task-editor-card>form{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden}
.task-editor-head{flex:0 0 auto;padding-right:62px;background:linear-gradient(135deg,#fbfdfc,#f0f8f5)}
.task-editor-layout{
  display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.68fr);gap:15px;
  flex:1 1 auto;min-height:0;padding:16px 18px 18px;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-gutter:stable
}
.task-editor-main,.task-editor-aside{display:grid;align-content:start;align-self:start;gap:13px;min-width:0}
.task-editor-section{
  display:grid;gap:13px;padding:15px;border:1px solid #dfe9e5;border-radius:14px;background:#fff;
  box-shadow:0 8px 22px rgba(44,73,63,.035)
}
.task-section-title{display:flex;align-items:center;gap:9px;padding-bottom:11px;border-bottom:1px solid #edf2f0}
.task-section-title>span{
  display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:9px;
  color:#08785f;background:#e9f6f1;font-size:15px
}
.task-section-title>div{display:grid;gap:2px;min-width:0}
.task-section-title b{color:#2b4139;font-size:11px}
.task-section-title small{color:#87958f;font-size:9px;line-height:1.45}
.task-editor-section label{display:grid;gap:6px;color:#51635c;font-size:9px;font-weight:700}
.task-editor-section input,.task-editor-section select,.task-editor-section textarea{
  width:100%;border:1px solid #d7e3de;border-radius:9px;outline:0;color:#293f37;background:#fbfcfc;font-size:10px
}
.task-editor-section input,.task-editor-section select{height:37px;padding:0 10px}
.task-editor-section textarea{padding:10px 11px;line-height:1.65;resize:vertical}
.task-editor-section input:focus,.task-editor-section select:focus,.task-editor-section textarea:focus{
  border-color:#79b8a5;background:#fff;box-shadow:0 0 0 3px rgba(8,139,105,.08)
}
.task-mode-switch{
  display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid #e0e9e5;border-radius:10px;background:#f3f6f5
}
.task-mode-switch button{
  min-height:31px;border:0;border-radius:7px;color:#788882;background:transparent;font-size:9px;font-weight:700
}
.task-mode-switch button.active{color:#08775e;background:#fff;box-shadow:0 3px 10px rgba(53,78,69,.08)}
.task-schedule-pane>label{display:grid;gap:6px}
.task-schedule-pane label small{color:#87958f;font-size:9px;font-weight:450;line-height:1.5}
.task-schedule-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.task-schedule-fields .span-2{grid-column:1/-1}
.field-label{display:block;margin-bottom:6px;color:#51635c;font-size:9px;font-weight:700}
.weekday-picker{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.weekday-picker label{display:block;cursor:pointer}
.weekday-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.weekday-picker span{
  display:grid;place-items:center;min-height:30px;border:1px solid #dde7e3;border-radius:8px;
  color:#71827b;background:#fafcfc;font-size:8px;font-weight:700
}
.weekday-picker input:checked+span{border-color:#9bcbbb;color:#08775e;background:#eaf7f2}
.task-recipient-toolbar{display:flex;align-items:center;gap:10px}
.task-recipient-toolbar .segmented{flex:0 0 145px;margin:0}
.task-recipient-toolbar .search{flex:1;min-width:0}
.task-recipient-layout{
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px;
  height:clamp(232px,31dvh,310px);min-height:232px
}
.task-recipient-options,.task-selected-panel{
  min-width:0;min-height:0;height:100%;overflow-x:hidden;overflow-y:auto;
  border:1px solid #e0e9e5;border-radius:11px;background:#fafcfc;
  scrollbar-gutter:stable
}
.task-recipient-option{
  display:grid!important;grid-template-columns:auto 31px minmax(0,1fr);align-items:center;gap:9px;
  min-height:52px;padding:8px 10px!important;border-bottom:1px solid #edf2f0;cursor:pointer
}
.task-recipient-option:last-child{border-bottom:0}
.task-recipient-option:hover,.task-recipient-option.is-selected{background:#eff8f5}
.task-recipient-option>input{width:14px!important;height:14px!important;margin:0;accent-color:#078b69;box-shadow:none!important}
.task-recipient-option .entity-avatar{width:31px;height:31px;font-size:10px}
.task-recipient-option>span:last-child{display:grid;gap:2px;min-width:0}
.task-recipient-option b{overflow:hidden;color:#344a42;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.task-recipient-option small{color:#87958f;font-size:8px;font-weight:480}
.task-selected-panel{display:flex;flex-direction:column;overflow:hidden;background:#fff}
.task-selected-head{
  display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:0 11px;
  border-bottom:1px solid #e9efed;color:#52665e;font-size:9px
}
.task-selected-head span{color:#08775e;font-weight:750}
.task-selected-targets{display:grid;align-content:start;flex:1 1 auto;gap:0;min-height:0;overflow-x:hidden;overflow-y:auto}
.task-selected-target{
  display:grid;grid-template-columns:31px minmax(0,1fr) auto auto;align-items:center;gap:8px;
  min-height:54px;padding:8px 10px;border-bottom:1px solid #edf2f0
}
.task-selected-target .entity-avatar{width:31px;height:31px;font-size:10px}
.task-selected-target>span:nth-child(2){display:grid;gap:2px;min-width:0}
.task-selected-target b{overflow:hidden;color:#344a42;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.task-selected-target small{color:#84928d;font-size:8px}
.task-selected-target button{
  display:grid;place-items:center;min-height:27px;padding:0 7px;border:1px solid #d8e5e0;border-radius:7px;
  color:#527067;background:#f8fbfa;font-size:8px;font-weight:700
}
.task-selected-target button:hover{border-color:#a7cfc1;color:#08775e;background:#edf8f4}
.task-selected-target [data-task-remove]{width:27px;padding:0;color:#9b6a65}
.task-selected-empty,.task-option-empty{
  display:flex;align-items:center;justify-content:center;gap:7px;min-height:170px;padding:20px;
  color:#8a9892;font-size:9px;text-align:center
}
.task-selected-empty{flex-direction:column}.task-selected-empty i{font-size:24px;color:#a7bbb3}
.task-safety-card{border-color:#d5e8e1;background:linear-gradient(145deg,#fff,#f8fcfa)}
.task-safety-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0}
.task-safety-summary>div{display:grid;gap:3px;padding:9px 10px;border:1px solid #e0ebe7;border-radius:9px;background:#fff}
.task-safety-summary dt{color:#84948e;font-size:8px}
.task-safety-summary dd{margin:0;color:#2f4a40;font-size:10px;font-weight:750}
.task-safety-details{overflow:hidden;border:1px solid #dfe9e5;border-radius:10px;background:#fff}
.task-safety-details>summary{
  display:flex;align-items:center;justify-content:space-between;min-height:37px;padding:0 10px;
  list-style:none;color:#4f665e;font-size:9px;font-weight:700;cursor:pointer
}
.task-safety-details>summary::-webkit-details-marker{display:none}
.task-safety-details[open]>summary{border-bottom:1px solid #e9efed}
.task-safety-details[open]>summary i{transform:rotate(180deg)}
.task-safety-details .form-grid{grid-template-columns:1fr 1fr;gap:8px;padding:10px}
.task-safety-details input{height:34px}
.task-compliance-check{
  display:flex!important;align-items:flex-start;gap:9px;padding:11px!important;border:1px solid #d8e7e1;
  border-radius:10px;background:#f7fbf9;cursor:pointer
}
.task-compliance-check>input{flex:0 0 auto;width:15px!important;height:15px!important;margin:1px 0 0;accent-color:#078b69;box-shadow:none!important}
.task-compliance-check>span{display:grid;gap:3px}.task-compliance-check b{color:#395148;font-size:9px}.task-compliance-check small{color:#7c8e87;font-size:8px;font-weight:480;line-height:1.5}
.task-preview-card{
  display:flex;align-items:flex-start;gap:9px;padding:13px;border:1px solid #dce8e3;border-radius:13px;
  background:#fff;box-shadow:0 8px 22px rgba(44,73,63,.035)
}
.task-preview-card>span{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:9px;color:#08785f;background:#e9f6f1}
.task-preview-card>div{display:grid;gap:3px}.task-preview-card b{color:#30483f;font-size:10px}.task-preview-card small{color:#7c8d86;font-size:9px;line-height:1.55}
.task-editor-foot{flex:0 0 auto}
.task-editor-foot .modal-actions{display:flex;gap:8px}

/* 附件选择与日期时间使用同一套紧凑控件比例 */
.task-editor-section .task-attachment-actions{
  display:flex;align-items:center;gap:7px;margin-top:9px
}
.task-editor-section .task-upload-button,
.task-editor-section .task-attachment-actions button{
  display:inline-flex;align-items:center;justify-content:center;grid-auto-flow:column;gap:6px;
  width:auto;min-width:92px;height:32px;margin:0;padding:0 11px;border:1px solid #cfe2dc;
  border-radius:8px;color:#31675a;background:#f7fbf9;font-size:9px;font-weight:720;line-height:1;
  cursor:pointer;box-shadow:0 1px 0 rgba(255,255,255,.9);transition:.16s ease
}
.task-editor-section .task-upload-button{border-color:#bcdcd1;color:#08775e;background:#edf8f4}
.task-editor-section .task-upload-button:hover,
.task-editor-section .task-attachment-actions button:hover{
  border-color:#8fc3b3;color:#076d58;background:#e7f5f0;transform:translateY(-1px)
}
.task-editor-section .task-upload-button:active,
.task-editor-section .task-attachment-actions button:active{transform:translateY(0) scale(.98)}
.task-editor-section .task-upload-button i,
.task-editor-section .task-attachment-actions button i{font-size:13px;line-height:1}
.task-editor-section .task-upload-button input{display:none!important}

.task-editor-section .task-datetime-field{gap:6px}
.task-editor-section .task-datetime-trigger{
  width:100%;height:42px;padding:0 11px;border:1px solid #d5e3de;border-radius:10px;
  color:#29443b;background:linear-gradient(180deg,#fff,#fafcfb);cursor:pointer;
  box-shadow:0 1px 0 rgba(255,255,255,.9),0 4px 12px rgba(36,70,58,.035);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease
}
.task-editor-section .task-datetime-trigger:hover{
  border-color:#9ccabd;background:#fff;box-shadow:0 0 0 3px rgba(8,139,105,.06)
}
.task-editor-section .task-datetime-trigger>span{gap:8px;min-width:0}
.task-editor-section .task-datetime-trigger>span>i{
  display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:7px;
  color:#087b61;background:#eaf6f2;font-size:13px
}
.task-editor-section .task-datetime-trigger b{
  overflow:hidden;color:#29443b;font-size:10px;font-weight:720;line-height:1.2;
  letter-spacing:0;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap
}
.task-editor-section .task-datetime-trigger>i{font-size:12px;color:#6f8880}
.task-editor-section .task-calendar-head b{font-size:12px;font-weight:760;letter-spacing:0}
.task-editor-section .task-calendar-inputs input{font-size:10px}

/* Per-room mention picker */
.nested-modal{z-index:120}
.modal-card.task-at-card{
  width:min(520px,calc(100vw - 32px));max-height:82vh;overflow:hidden;padding:20px;border-radius:17px
}
.task-at-card .modal-title-block{padding-right:42px}
.task-at-card .modal-title-block h2{margin:3px 0;color:#263e35;font-size:17px;text-align:left}
.task-at-card .modal-title-block p{margin:4px 0 0;color:#7b8c85;font-size:9px;line-height:1.5;text-align:left}
.task-at-card .search{margin:10px 0}
.task-at-member-list{display:grid;align-content:start;min-height:180px;max-height:430px;overflow:auto;border:1px solid #e0e9e5;border-radius:11px}
.task-at-member-list>label{
  display:grid;grid-template-columns:auto 34px minmax(0,1fr);align-items:center;gap:9px;
  min-height:54px;padding:8px 11px;border-bottom:1px solid #edf2f0;cursor:pointer
}
.task-at-member-list>label:last-child{border-bottom:0}
.task-at-member-list>label:hover{background:#f3faf7}
.task-at-member-list input{width:15px;height:15px;accent-color:#078b69}
.task-at-member-list .entity-avatar{width:34px;height:34px}
.task-at-member-list>label>span:last-child{display:grid;gap:2px;min-width:0}
.task-at-member-list b{overflow:hidden;color:#344a42;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.task-at-member-list small{overflow:hidden;color:#87958f;font-size:8px;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:920px){
  .task-editor-layout{grid-template-columns:1fr}
  .task-editor-aside{grid-template-columns:1fr 1fr}
  .task-preview-card{height:max-content}
}
@media(max-width:700px){
  .task-safety-strip{align-items:flex-start;flex-wrap:wrap}
  .task-safety-strip .text-button{margin-left:50px}
  .modal-card.task-editor-card{width:calc(100vw - 20px);height:96dvh;max-height:96dvh}
  .task-editor-layout{padding:12px}
  .task-recipient-toolbar{align-items:stretch;flex-direction:column}
  .task-recipient-toolbar .segmented{flex-basis:auto}
  .task-recipient-layout{grid-template-columns:1fr;height:auto;min-height:0}
  .task-recipient-options,.task-selected-panel{height:240px}
  .task-editor-aside{grid-template-columns:1fr}
  .task-editor-foot{align-items:stretch;flex-direction:column}
  .task-editor-foot .modal-actions{width:100%}
  .task-editor-foot .modal-actions button{flex:1}
}
@media(max-width:520px){
  .task-schedule-fields,.task-safety-details .form-grid{grid-template-columns:1fr}
  .task-schedule-fields .span-2{grid-column:auto}
  .weekday-picker{grid-template-columns:repeat(4,1fr)}
  .task-safety-summary{grid-template-columns:1fr 1fr}
}

/* Unified message center */
.delivery-page-heading{margin-bottom:15px}
.delivery-switcher{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(720px,100%);
  margin:0 0 18px;padding:5px;border:1px solid #dfe9e5;border-radius:14px;background:#edf3f1
}
.delivery-switcher>button{
  display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:58px;padding:10px 14px;
  border:1px solid transparent;border-radius:10px;color:#63756e;background:transparent;text-align:left;
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease
}
.delivery-switcher>button>span{display:flex;align-items:center;gap:8px;white-space:nowrap}
.delivery-switcher>button i{font-size:17px}
.delivery-switcher>button b{font-size:11px}
.delivery-switcher>button small{font-size:8px;line-height:1.45;text-align:right}
.delivery-switcher>button.active{border-color:#cde2da;color:#08775e;background:#fff;box-shadow:0 5px 15px rgba(43,77,65,.07)}
.delivery-pane{animation:delivery-pane-in .22s ease both}
.delivery-pane[hidden]{display:none!important}
.scheduled-pane-head{
  display:flex;align-items:end;justify-content:space-between;gap:20px;margin:2px 0 15px
}
.scheduled-pane-head h2{margin:5px 0 3px;color:#18342b;font-size:22px;letter-spacing:-.02em}
.scheduled-pane-head p{margin:0;color:#7b8c86;font-size:10px}
#deliveryScheduledPane .table-wrap{overflow:auto}
#deliveryScheduledPane table{min-width:1180px}
#deliveryScheduledPane th:last-child,#deliveryScheduledPane td:last-child{text-align:right}
@keyframes delivery-pane-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* AI content generation and pre-send review */
.content-ai-assistant{
  display:grid;gap:11px;margin-top:14px;padding:14px;border:1px solid #d5e8e1;border-radius:13px;
  background:linear-gradient(135deg,#f8fcfa,#f0f8f5);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)
}
.ai-assistant-head{display:flex;align-items:center;gap:9px}
.ai-assistant-head>span:first-child{
  display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #cce5dc;
  border-radius:9px;color:#087b60;background:#e7f6f0;font-size:15px
}
.ai-assistant-head>div{display:grid;gap:2px;min-width:0}
.ai-assistant-head b{color:#29443a;font-size:10px}
.ai-assistant-head small{color:#788a83;font-size:8px;line-height:1.45}
.ai-assistant-state{margin-left:auto;color:#788a83;font-size:8px;font-weight:650;white-space:nowrap}
.ai-assistant-fields{display:grid;grid-template-columns:minmax(170px,.65fr) minmax(0,1.35fr);gap:10px}
.ai-assistant-fields label{display:grid;gap:6px;color:#50645c;font-size:9px;font-weight:700}
.ai-assistant-fields select,.ai-assistant-fields textarea{
  width:100%;border:1px solid #d4e2dd;border-radius:9px;outline:0;color:#294139;background:rgba(255,255,255,.9);font-size:10px
}
.ai-assistant-fields select{height:38px;padding:0 10px}
.ai-assistant-fields textarea{min-height:54px;padding:9px 10px;line-height:1.55;resize:vertical}
.ai-assistant-fields select:focus,.ai-assistant-fields textarea:focus{border-color:#79b8a5;background:#fff;box-shadow:0 0 0 3px rgba(8,139,105,.08)}
.ai-assistant-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ai-assistant-actions button,.ai-apply-button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 11px;
  border:1px solid #c5dfd6;border-radius:9px;font-size:9px;font-weight:740;transition:.16s ease
}
.ai-generate-button{color:#fff;background:#078b69;box-shadow:0 5px 13px rgba(7,139,105,.15)}
.ai-review-button{color:#176b56;background:#fff}
.ai-assistant-actions button:hover:not(:disabled),.ai-apply-button:hover{transform:translateY(-1px);box-shadow:0 6px 15px rgba(28,89,71,.11)}
.ai-assistant-actions button:disabled{cursor:wait;opacity:.72}
.ai-assistant-actions>small{margin-left:auto;color:#7f9089;font-size:8px}
.ai-spin{animation:ai-spin .8s linear infinite}
@keyframes ai-spin{to{transform:rotate(360deg)}}
.ai-review-result{display:grid;gap:10px;padding:11px;border:1px solid #cfe4dc;border-radius:10px;background:#fff}
.ai-review-result.is-pass{border-color:#bfe2d5;background:#f7fcfa}
.ai-review-result.is-revise{border-color:#ead9b8;background:#fffcf6}
.ai-review-result.is-stale{opacity:.55}
.ai-review-result.is-stale:before{content:"正文已修改，请重新核查";color:#8a6b3d;font-size:8px;font-weight:750}
.ai-review-summary{display:flex;align-items:flex-start;gap:8px}
.ai-review-summary>span{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;color:#08775e;background:#e8f6f1}
.is-revise .ai-review-summary>span{color:#a36c1d;background:#fff1d6}
.ai-review-summary>div{display:grid;gap:2px}.ai-review-summary b{color:#2c443b;font-size:9px}.ai-review-summary p{margin:0;color:#6f817a;font-size:8px;line-height:1.55;text-align:left}
.ai-review-result ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.ai-review-result li{display:grid;grid-template-columns:70px minmax(0,1fr);gap:3px 8px;padding:8px;border:1px solid #ebe6da;border-radius:8px;background:rgba(255,255,255,.75);font-size:8px}
.ai-review-result li b{color:#8c631f}.ai-review-result li span{color:#4d6259}.ai-review-result li small{grid-column:2;color:#74867f}
.ai-apply-button{justify-self:start;color:#fff;background:#078b69}
.task-ai-assistant{margin-top:0;padding:12px}
.task-ai-assistant .ai-assistant-fields{grid-template-columns:minmax(150px,.65fr) minmax(0,1.35fr)}
.task-ai-assistant .ai-assistant-fields select{height:35px}
.task-ai-assistant .ai-assistant-fields textarea{min-height:50px}
.task-immediate-note{
  display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid #cfe4dc;border-radius:10px;background:#f4faf7
}
.task-immediate-note>i{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;color:#08775e;background:#e4f4ee;font-size:14px}
.task-immediate-note>span{display:grid;gap:3px}.task-immediate-note b{color:#2d493f;font-size:9px}.task-immediate-note small{color:#74867f;font-size:8px;line-height:1.5}

@media(max-width:800px){
  .delivery-switcher{grid-template-columns:1fr}
  .delivery-switcher>button small{text-align:left}
  .scheduled-pane-head{align-items:stretch;flex-direction:column}
  .scheduled-pane-head .primary{align-self:flex-start}
  .ai-assistant-fields,.task-ai-assistant .ai-assistant-fields{grid-template-columns:1fr}
  .ai-assistant-actions>small{width:100%;margin-left:0}
}
@media(prefers-reduced-motion:reduce){.delivery-pane{animation:none}.ai-spin{animation-duration:1.8s}}

/* 日期面板固定在任务编辑器的可视中心，避免被滚动区和固定底栏裁切。 */
.task-datetime-popover{
  position:fixed;
  left:50%;
  top:50%;
  right:auto;
  width:360px;
  max-width:calc(100% - 32px);
  transform:translate(-50%,-50%);
  z-index:80;
}
@media(max-width:720px){
  .task-datetime-popover{
    left:50%;
    right:auto;
    width:calc(100% - 28px);
    transform:translate(-50%,-50%);
  }
}

/* Responsive density and scrollbar polish: keep every workspace inside the viewport. */
:root{
  --scrollbar-track:rgba(216,230,224,.38);
  --scrollbar-thumb:#8eb8aa;
  --scrollbar-thumb-hover:#5f9d89;
}
*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track)}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-track{background:var(--scrollbar-track);border-radius:999px}
*::-webkit-scrollbar-thumb{
  border:2px solid transparent;border-radius:999px;background:var(--scrollbar-thumb);background-clip:padding-box
}
*::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover);background-clip:padding-box}
html,body,.app-shell,.main-shell,.content,.page{max-width:100%;overflow-x:hidden}
.modal-card{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.table-wrap,#page-tasks .table-wrap,#deliveryScheduledPane .table-wrap{
  width:100%;max-width:100%;overflow-x:hidden!important;overflow-y:visible
}
.table-wrap table,#page-logs table,#page-tasks table,#deliveryScheduledPane table{
  width:100%;min-width:0!important;table-layout:fixed
}
th,td{overflow-wrap:anywhere;word-break:break-word}
th{padding:12px 10px;font-size:11px}
td{height:auto;min-height:56px;padding:12px 10px;font-size:12px;line-height:1.5}
#page-logs th{width:auto!important}
#page-logs td:nth-child(7){white-space:normal}
.task-actions{flex-wrap:wrap;white-space:normal}
.message-types,.send-progress{flex-wrap:wrap;overflow-x:hidden}
.message-types button{font-size:12px}
.form-panel label,.modal-card label{font-size:12px}
.summary-history-control,.summary-history-control button{font-size:11px}

@media(max-width:1180px){
  #page-logs th:nth-child(6),#page-logs td:nth-child(6){display:none}
  #page-logs th:nth-child(5),#page-logs td:nth-child(5){display:none}
  #page-tasks th:nth-child(5),#page-tasks td:nth-child(5),
  #deliveryScheduledPane th:nth-child(5),#deliveryScheduledPane td:nth-child(5){display:none}
}

@media(max-width:760px){
  .table-wrap>table>thead{display:none}
  :is(#contactRows,#roomRows,#logRows,#taskRows,#userRows,#roomMemberRows){display:grid;gap:10px;padding:10px;background:#f5f9f7}
  :is(#contactRows,#roomRows,#logRows,#taskRows,#userRows,#roomMemberRows)>tr{
    display:grid;width:100%;padding:8px 12px;border:1px solid #dfe9e5;border-radius:13px;background:#fff;
    box-shadow:0 5px 16px rgba(33,75,61,.045)
  }
  :is(#contactRows,#roomRows,#logRows,#taskRows,#userRows,#roomMemberRows)>tr>td{
    display:grid!important;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:10px;
    min-height:42px;padding:9px 0;border-bottom:1px solid #edf2f0;text-align:left!important
  }
  :is(#contactRows,#roomRows,#logRows,#taskRows,#userRows,#roomMemberRows)>tr>td:last-child{border-bottom:0}
  :is(#contactRows,#roomRows,#logRows,#taskRows,#userRows,#roomMemberRows)>tr>td:before{
    color:#7a8b84;font-size:10px;font-weight:750;letter-spacing:.02em
  }
  #contactRows td:nth-child(1):before{content:"联系人"}#contactRows td:nth-child(2):before{content:"类型"}
  #contactRows td:nth-child(3):before{content:"用户 ID"}#contactRows td:nth-child(4):before{content:"AI 预设"}
  #contactRows td:nth-child(5):before{content:"状态"}#contactRows td:nth-child(6):before{content:"同步时间"}
  #contactRows td:nth-child(7):before{content:"操作"}
  #roomRows td:nth-child(1):before{content:"群聊"}#roomRows td:nth-child(2):before{content:"标签"}
  #roomRows td:nth-child(3):before{content:"成员"}#roomRows td:nth-child(4):before{content:"会话 ID"}
  #roomRows td:nth-child(5):before{content:"AI 预设"}#roomRows td:nth-child(6):before{content:"状态"}
  #roomRows td:nth-child(7):before{content:"同步时间"}#roomRows td:nth-child(8):before{content:"操作"}
  #logRows td:nth-child(1):before{content:"时间"}#logRows td:nth-child(2):before{content:"方向"}
  #logRows td:nth-child(3):before{content:"类型"}#logRows td:nth-child(4):before{content:"会话对象"}
  #logRows td:nth-child(5):before{content:"名称"}#logRows td:nth-child(6):before{content:"会话 ID"}
  #logRows td:nth-child(7):before{content:"内容"}#logRows td:nth-child(8):before{content:"耗时"}
  #logRows td:nth-child(9):before{content:"状态"}
  #taskRows td:nth-child(1):before{content:"任务"}#taskRows td:nth-child(2):before{content:"计划"}
  #taskRows td:nth-child(3):before{content:"对象"}#taskRows td:nth-child(4):before{content:"下次执行"}
  #taskRows td:nth-child(5):before{content:"安全状态"}
  #taskRows td:nth-child(6):before{content:"状态"}#taskRows td:nth-child(7):before{content:"操作"}
  #userRows td:nth-child(1):before{content:"账号"}#userRows td:nth-child(2):before{content:"权限"}
  #userRows td:nth-child(3):before{content:"状态"}#userRows td:nth-child(4):before{content:"创建时间"}
  #userRows td:nth-child(5):before{content:"最近登录"}
  #roomMemberRows td:nth-child(1):before{content:"选择"}#roomMemberRows td:nth-child(2):before{content:"成员"}
  #roomMemberRows td:nth-child(3):before{content:"备注"}#roomMemberRows td:nth-child(4):before{content:"账号 ID"}
  #roomMemberRows td:nth-child(5):before{content:"角色"}#roomMemberRows td:nth-child(6):before{content:"账号类型"}
  .row-action,.task-actions button{min-height:34px;font-size:11px}
  .modal{padding:10px}.modal-card{max-height:calc(100dvh - 20px);padding:18px;border-radius:15px}
  .summary-history-control{align-items:flex-start;flex-direction:column}
}

/* Permanent conversation history */
.history-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:14px;padding:14px 16px}
.history-toolbar .search{flex:1;max-width:620px;margin:0}
.history-toolbar small{margin-left:auto;color:#768981;font-size:11px}
.history-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:14px;min-width:0}
.history-conversations,.history-timeline{min-width:0;min-height:620px;overflow:hidden}
.history-conversations{display:flex;flex-direction:column;align-self:start}
.history-conversation-pagination{margin-top:auto;padding:12px;border-top:1px solid #e5ece9;color:#73847e;font-size:12px}
.history-pager-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-variant-numeric:tabular-nums}
.history-pager-summary b{color:#31564a;font-weight:600}
.history-pager-summary label{display:flex;align-items:center;gap:6px;margin:0;color:inherit;font-size:inherit;font-weight:500;white-space:nowrap}
.history-pager-summary select{width:68px;min-height:30px;height:30px;margin:0;padding:0 6px;border:1px solid #d8e4e0;border-radius:8px;background:#fff;color:#31564a;font:inherit}
.history-pager-summary .smart-select{width:76px}
.history-pager-summary .smart-select-trigger{height:30px;min-height:30px;padding:0 8px;gap:4px;border-radius:8px;font:inherit}
.history-pager-summary .smart-select-menu{top:auto;bottom:calc(100% + 6px);left:auto;min-width:100px}
.history-pager-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px}
.history-pager-controls button{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:0;height:32px;padding:0 6px;border:1px solid #d8e4e0;border-radius:9px;background:#fff;color:#4d625b;font:inherit;font-weight:600;white-space:nowrap}
.history-pager-controls button:hover:not(:disabled){border-color:#9ecabe;color:#087d61;background:#f5fbf8}
.history-pager-controls button:disabled{opacity:.4;cursor:not-allowed}
.history-pager-controls button:focus-visible,.history-pager-summary select:focus-visible{outline:2px solid #46a58b;outline-offset:2px}
.history-conversation-list{display:grid;max-height:560px;overflow-x:hidden;overflow-y:auto;padding:0 8px 12px}
.history-conversation{
  display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;
  min-height:62px;padding:9px;border:1px solid transparent;border-radius:11px;color:#52645d;background:transparent;text-align:left
}
.history-conversation:hover{background:#f3f8f6}.history-conversation.active{border-color:#cce3da;background:#eaf6f1}
.history-conversation>span:nth-child(2){display:grid;gap:3px;min-width:0}
.history-conversation b,.history-conversation small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-conversation b{color:#263c34;font-size:12px}.history-conversation small{color:#7b8d86;font-size:10px}
.history-conversation em{color:#6f837b;font-size:10px;font-style:normal;white-space:nowrap}
.history-timeline{display:flex;flex-direction:column}
.history-timeline-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #e5ece9}
.history-timeline-head>div{display:grid;flex:1 1 180px;min-width:0;gap:3px}.history-timeline-head h3{margin:0;color:#21372f;font-size:18px;overflow-wrap:anywhere}
.history-timeline-head>button{flex:0 0 auto;max-width:100%}
@media(max-width:600px){.history-timeline-head>div{flex:0 1 auto;width:100%}}
.history-timeline-head small{color:#7a8d85;font-size:10px}
.history-message-list{display:flex;flex:1;flex-direction:column;gap:10px;max-height:570px;overflow-x:hidden;overflow-y:auto;padding:18px 20px;background:#f7faf9}
.history-message{display:grid;gap:7px;width:min(78%,720px);padding:12px 14px;border:1px solid #dfe9e5;border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(34,74,61,.04)}
.history-message.is-out{align-self:flex-end;border-color:#cde4da;background:#eaf6f1}.history-message.is-in{align-self:flex-start}
.history-message header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.history-message header b{color:#294139;font-size:11px}.history-message header span{color:#82928c;font-size:9px}
.history-message p{margin:0;color:#354b43;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.history-message>small{display:flex;align-items:center;gap:5px;color:#628177;font-size:10px}
.history-media-preview{display:block;overflow:hidden;width:min(100%,360px);max-height:260px;border:1px solid #d7e6e0;border-radius:10px;background:#eef5f2}
.history-media-preview img{display:block;width:100%;height:auto;max-height:260px;object-fit:contain}
.history-media-link{display:inline-flex;align-items:center;gap:6px;justify-self:start;padding:6px 9px;border:1px solid #c9e1d8;border-radius:8px;color:#08745c;background:#f2faf7;font-size:10px;font-weight:750;text-decoration:none}
.history-media-link:hover{border-color:#8fc5b2;background:#e6f5ef}
.history-file-card,.history-article-card{display:flex;align-items:center;gap:11px;min-width:0;padding:11px;border:1px solid #d6e6e0;border-radius:11px;color:#294139;background:#f8fcfa;text-decoration:none}
.history-file-icon{display:grid;place-items:center;flex:0 0 45px;height:48px;border-radius:9px;color:#08745c;background:#e2f3ec;font-size:9px;font-weight:850;letter-spacing:.04em}
.history-file-copy,.history-article-copy{display:grid;gap:4px;min-width:0;flex:1}.history-file-copy b,.history-article-copy b{overflow:hidden;color:#263f37;font-size:12px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.history-file-copy small,.history-article-copy small{overflow:hidden;color:#7a8d86;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.history-file-card>a,.history-file-state{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;padding:6px 8px;border-radius:8px;color:#08745c;background:#e8f6f0;font-size:9px;font-weight:750;text-decoration:none}.history-file-card>a:hover{background:#d9eee6}.history-file-state{color:#798982;background:#eef3f1;font-weight:650}
.history-article-card{position:relative;border-color:#cfe4dc;background:linear-gradient(135deg,#f8fcfa,#eff8f4)}.history-article-card:hover{border-color:#91c5b3;background:#eaf6f1}.history-article-card.is-unavailable{cursor:default;opacity:.78}
.history-article-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:10px;color:#08745c;background:#dff1ea;font-size:17px}.history-article-copy em{display:-webkit-box;overflow:hidden;color:#61766e;font-size:10px;font-style:normal;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.history-article-arrow{flex:0 0 auto;color:#7ca898;font-size:15px}
@media(max-width:900px){.history-layout{grid-template-columns:1fr}.history-conversations,.history-timeline{min-height:0}.history-conversation-list{max-height:280px}.history-message-list{max-height:620px}}
@media(max-width:600px){.history-toolbar{align-items:stretch;flex-direction:column}.history-toolbar small{margin-left:0}.history-message{width:94%}.history-timeline-head{align-items:flex-start;flex-direction:column}.history-file-card,.history-article-card{padding:10px}.history-file-card{align-items:flex-start;flex-wrap:wrap}.history-file-card>a,.history-file-state{margin-left:56px}.history-article-copy b{white-space:normal}}

/* Overflow-free tables and room editor polish (2026-08). */
:root{
  --ui-scroll-thumb:#83aa9e;
  --ui-scroll-thumb-hover:#5c9483;
  --ui-row-divider:#e6eeeb;
}
html,body{overflow-x:clip}
*::-webkit-scrollbar{width:7px;height:7px}
*::-webkit-scrollbar:horizontal{height:0}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{
  min-height:34px;
  border:2px solid transparent;
  border-radius:999px;
  background:var(--ui-scroll-thumb);
  background-clip:padding-box;
}
*::-webkit-scrollbar-thumb:hover{background:var(--ui-scroll-thumb-hover);background-clip:padding-box}

/* Tables fit their own panel. Row separators are drawn once across the row. */
.table-wrap,#page-tasks .table-wrap,#deliveryScheduledPane .table-wrap{
  min-width:0;
  overflow-x:hidden!important;
  overscroll-behavior-x:none;
}
.table-wrap table{
  min-width:0!important;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  white-space:normal;
}
.table-wrap th,.table-wrap td{border-bottom:0!important}
.table-wrap thead tr{box-shadow:inset 0 -1px 0 var(--ui-row-divider)}
.table-wrap tbody tr:not(:last-child){box-shadow:inset 0 -1px 0 var(--ui-row-divider)}
.table-wrap th,.table-wrap td{min-width:0;overflow:hidden;text-overflow:ellipsis}
.message-types,.send-progress,.landing-product-nav,.login-nav-actions{overflow-x:hidden;flex-wrap:wrap}

/* Room editor: one vertical scroller, stable footer, and no horizontal drag bar. */
#roomModal{padding:clamp(10px,2vw,24px)}
#roomModal .modal-card.wide{
  width:min(920px,calc(100vw - 32px));
  max-width:920px;
  height:min(900px,calc(100dvh - 32px));
  max-height:92dvh;
  padding:0;
  gap:0;
  grid-template-rows:auto auto minmax(0,1fr);
  overflow:hidden;
  border:1px solid rgba(218,231,226,.9);
  border-radius:20px;
}
#roomModal .modal-card.wide>h2{
  padding:23px 30px 14px;
  color:#203a31;
  text-align:left;
  font-size:20px;
}
#roomModal .modal-close{
  top:15px;
  right:18px;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid #dce8e3;
  border-radius:10px;
  background:rgba(255,255,255,.92);
  color:#71847d;
  font-size:18px;
}
#roomModal .room-tabs{min-width:0;padding:0 30px;overflow:hidden}
#roomModal #roomForm{
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  min-width:0;
  min-height:0;
  overflow:hidden;
}
#roomModal .room-tab-content{min-width:0}
#roomModal .room-tab-content.active{
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:20px 30px 18px;
  scrollbar-color:var(--ui-scroll-thumb) transparent;
}
#roomModal .modal-actions{
  position:relative;
  z-index:2;
  margin:0;
  padding:14px 30px 18px;
  border-top:1px solid var(--ui-row-divider);
  background:rgba(255,255,255,.96);
  box-shadow:0 -8px 22px rgba(35,69,58,.035);
}
#roomModal .member-sync-toolbar{min-width:0;padding:10px 14px;border:1px solid #e7efec;border-radius:12px}
#roomModal .permission-template-apply{min-width:0}
#roomModal .member-mode select{width:min(100%,360px);min-width:0}

/* Member columns use proportions instead of conflicting minimum widths. */
#roomModal .member-table{width:100%;min-width:0!important;table-layout:fixed}
#roomModal .member-table th,#roomModal .member-table td{
  height:58px;
  min-width:0;
  padding:9px 10px;
  border-bottom:0!important;
  overflow:hidden;
  vertical-align:middle;
}
#roomModal .member-table thead tr{box-shadow:inset 0 -1px 0 #dfe9e5}
#roomModal .member-table tbody tr:not(:last-child){box-shadow:inset 0 -1px 0 #e9efed}
#roomModal .member-table .col-check{width:6%!important;min-width:0;text-align:center}
#roomModal .member-table .col-name{width:22%!important;min-width:0}
#roomModal .member-table .col-remark{width:24%!important;min-width:0}
#roomModal .member-table .col-wxid{width:26%!important;min-width:0}
#roomModal .member-table .col-role{width:11%!important;min-width:0}
#roomModal .member-table .col-type{width:11%!important;min-width:0}
#roomModal .member-table .entity{min-width:0}
#roomModal .member-table .entity>div{min-width:0;overflow:hidden}
#roomModal .member-table .entity strong,
#roomModal .member-table .wxid-text{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#roomModal .member-remark-input{min-width:0;height:38px;padding:0 10px;border-radius:10px}
#roomModal .member-table .badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:760px){
  #roomModal{padding:8px}
  #roomModal .modal-card.wide{width:100%;height:calc(100dvh - 16px);max-height:none;border-radius:16px}
  #roomModal .modal-card.wide>h2{padding:19px 20px 12px;font-size:18px}
  #roomModal .room-tabs{padding:0 14px}
  #roomModal .room-tab-btn{flex:1;padding:11px 7px;font-size:12px}
  #roomModal .room-tab-content.active{padding:15px 14px}
  #roomModal .modal-actions{padding:12px 14px calc(12px + env(safe-area-inset-bottom))}
  #roomModal .modal-close{top:11px;right:12px}
  #roomModal .member-table tbody tr{box-shadow:none}
  #roomModal .member-table td{height:auto;overflow:visible;text-overflow:clip}
}

/* Member permission table correction: preserve real table cells and all identity fields. */
#roomModal .modal-card.wide{width:min(1120px,calc(100vw - 32px));max-width:1120px}
#roomModal .member-table th,#roomModal .member-table td{
  display:table-cell!important;
  overflow:visible;
  text-overflow:clip;
  word-break:normal;
  overflow-wrap:normal;
}
#roomModal .member-table th{height:44px;white-space:nowrap;font-size:11px;letter-spacing:.035em}
#roomModal .member-table td{height:64px}
#roomModal .member-table .col-check{width:5%!important}
#roomModal .member-table .col-name{width:24%!important}
#roomModal .member-table .col-remark{width:23%!important}
#roomModal .member-table .col-wxid{width:27%!important}
#roomModal .member-table .col-role{width:10%!important}
#roomModal .member-table .col-type{width:11%!important}
#roomModal .member-identity{display:flex;align-items:center;gap:11px;min-width:0}
#roomModal .member-identity>.entity-avatar,#roomModal .member-identity>img{flex:0 0 auto}
#roomModal .member-identity-text{display:grid;gap:3px;min-width:0}
#roomModal .member-identity-text strong{overflow:hidden;min-width:0;color:#233a32;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
#roomModal .member-identity-text small{overflow:hidden;min-width:0;color:#8a9893;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
#roomModal .member-identity-text small.remark-tag{color:#168267}
#roomModal .member-table .wxid-text{display:block;overflow:visible;color:#65756f;font-size:10.5px;line-height:1.4;text-overflow:clip;white-space:nowrap}
#roomModal .member-remark-input{width:100%;max-width:none}

/* Smart conversation insights */
.nav-item{position:relative}.nav-count{display:grid;place-items:center;min-width:20px;height:20px;margin-left:auto;padding:0 6px;border-radius:999px;color:#fff;background:#d95858;font-size:9px;font-style:normal;font-weight:800}
.insight-page-heading{align-items:center}
.insight-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}
.insight-metric{display:flex;align-items:center;gap:13px;min-width:0;padding:17px;border:1px solid #e1eae7;border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(25,63,51,.04);text-align:left;transition:.18s ease}
.insight-metric:hover{border-color:#b9d7cd;box-shadow:0 11px 27px rgba(25,63,51,.08);transform:translateY(-1px)}
.insight-metric>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;font-size:19px}
.insight-metric>div{display:grid;min-width:0}.insight-metric small{color:#71827c;font-size:10px;font-weight:750}.insight-metric strong{margin:1px 0;color:#1f372e;font-size:24px;line-height:1.15}.insight-metric em{overflow:hidden;color:#94a19c;font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.insight-metric.action>span{color:#087e62;background:#e9f7f2}.insight-metric.confirmation>span{color:#4a6fb0;background:#eef3fc}.insight-metric.feedback>span{color:#bb6741;background:#fff2eb}.insight-metric.risk>span{color:#b24747;background:#fff0ef}
.insight-workspace{display:grid;grid-template-columns:minmax(0,1fr) 292px;align-items:start;gap:16px;min-width:0}
.insight-main-panel{min-width:0;overflow:hidden}
.insight-toolbar{display:grid;grid-template-columns:minmax(250px,1fr) repeat(3,minmax(120px,auto));gap:9px;padding:14px 16px;border-bottom:1px solid #e7eeeb;background:#fbfcfc}
.insight-toolbar .search{width:100%;min-width:0}.insight-toolbar select{height:38px;min-width:0;padding:0 30px 0 11px;border:1px solid #dce7e3;border-radius:10px;outline:0;color:#53655e;background:#fff;font-size:10px}
.insight-toolbar select:focus{border-color:#78b7a5;box-shadow:0 0 0 3px rgba(7,151,116,.08)}
.insight-list{display:grid;gap:11px;padding:14px;background:#f6f9f8}
.insight-card{overflow:hidden;border:1px solid #e0e9e6;border-left:3px solid #74a99a;border-radius:14px;background:#fff;box-shadow:0 5px 17px rgba(28,65,53,.035)}
.insight-card.action{border-left-color:#49a78d}.insight-card.confirmation{border-left-color:#6688c2}.insight-card.feedback{border-left-color:#d27b55}.insight-card.risk{border-left-color:#d35f5f}.insight-card.status-resolved,.insight-card.status-archived{opacity:.78}
.insight-card>header{display:flex;align-items:center;gap:7px;padding:11px 14px 0}
.insight-type-badge,.insight-priority,.insight-status{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;border-radius:7px;font-size:9px;font-weight:780}
.insight-type-badge{color:#275548;background:#edf6f3}.insight-card.confirmation .insight-type-badge{color:#466da8;background:#eef3fc}.insight-card.feedback .insight-type-badge{color:#a34f2f;background:#fff1eb}.insight-card.risk .insight-type-badge{color:#aa4141;background:#fff0ef}
.insight-origin{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:7px;color:#6e7e78;background:#f1f5f3;font-size:8.5px;font-weight:780}.insight-origin.commitment{color:#7b5e21;background:#fff6dd}
.insight-priority{color:#6f7f79;background:#f1f4f3}.insight-priority i{width:6px;height:6px;border-radius:50%;background:#95a39e}.insight-priority.critical{color:#a83b3b;background:#fff0ef}.insight-priority.critical i{background:#d85656;box-shadow:0 0 0 3px rgba(216,86,86,.1)}.insight-priority.high{color:#a25e32;background:#fff3e9}.insight-priority.high i{background:#d8834d}
.insight-status{margin-left:auto;color:#667871;background:#f1f5f3}
.insight-execution-state{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 7px;border-radius:7px;font-size:8px;font-weight:800}.insight-execution-state.blocked{color:#a55331;background:#fff0e8}.insight-execution-state.overdue{color:#b13e45;background:#fff0f1}.insight-execution-state.unassigned{color:#8a681f;background:#fff7df}
.insight-card-body{display:grid;gap:9px;padding:11px 14px}.insight-card-heading,.insight-card-summary{display:grid;gap:3px}.insight-card-heading>small,.insight-card-summary>small,.insight-card blockquote small{color:#789087;font-size:8px;font-weight:800;letter-spacing:.06em}.insight-card-body h3{margin:0;color:#20372f;font-size:15px;line-height:1.45}.insight-card-summary{padding-left:10px;border-left:2px solid #cce3da}.insight-card-summary p{margin:0;color:#596c65;font-size:10.5px;line-height:1.65}
.insight-card blockquote{display:flex;align-items:flex-start;gap:8px;margin:0;padding:9px 11px;border:0;border-radius:9px;color:#718079;background:#f6f9f8;font-size:10px;line-height:1.55}.insight-card blockquote i{flex:0 0 auto;margin-top:2px;color:#8eb3a7}.insight-card blockquote>div{display:grid;gap:2px;min-width:0}.insight-card blockquote span{overflow-wrap:anywhere}
.insight-facts{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 11px}.insight-facts>span{display:grid;grid-template-columns:20px auto;column-gap:6px;min-width:128px;padding:7px 9px;border:1px solid #e8efed;border-radius:9px;background:#fbfcfc}.insight-facts i{grid-row:1/3;align-self:center;color:#5f9987;font-size:14px}.insight-facts b{overflow:hidden;max-width:180px;color:#43564f;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.insight-facts small{color:#93a09b;font-size:8px}
.insight-facts>span.is-overdue{border-color:#f0cfd1;background:#fff8f8}.insight-facts>span.is-overdue i,.insight-facts>span.is-overdue small{color:#bd5157}.insight-facts>span.is-blocked{border-color:#efd7c9;background:#fffaf7}.insight-facts>span.is-blocked i,.insight-facts>span.is-blocked small{color:#ad613e}.insight-facts>span.is-missing{border-style:dashed;background:#fffdf6}.insight-facts>span.is-missing i{color:#a1802f}
.insight-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #edf2f0;background:#fcfdfd}.insight-card>footer>div:first-child{display:flex;gap:8px;color:#8c9a95;font-size:8px}.insight-card>footer time{padding-left:8px;border-left:1px solid #dfe7e4}.insight-actions{display:flex;align-items:center;gap:6px}.insight-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:31px;padding:0 9px;border:1px solid #dce8e4;border-radius:8px;color:#52675f;background:#fff;font-size:9px;font-weight:750}.insight-actions button:hover{border-color:#9fcabb;color:#08765d;background:#f4faf8}.insight-actions .insight-primary-action{border-color:#078d6e;color:#fff;background:#079774}.insight-actions .insight-primary-action:hover{color:#fff;background:#078466}.insight-actions .insight-more-action{width:31px;padding:0;color:#7f8e89}
.insight-empty{display:grid;place-items:center;min-height:380px;padding:48px;text-align:center}.insight-empty>span{display:grid;place-items:center;width:58px;height:58px;border-radius:17px;color:#729c8f;background:#edf6f3;font-size:27px}.insight-empty h3{margin:13px 0 2px;color:#314a41;font-size:15px}.insight-empty p{margin:0 0 15px;color:#87958f;font-size:10px}
.insight-side{display:grid;gap:14px}.insight-guide-card,.insight-engine-card{padding:18px}.insight-guide-icon{display:grid;place-items:center;width:38px;height:38px;margin-bottom:14px;border-radius:11px;color:#a46a26;background:#fff4df;font-size:18px}.insight-guide-card h3{margin:6px 0;color:#253e35;font-size:15px}.insight-guide-card>p{margin:0;color:#75857f;font-size:10px;line-height:1.7}.insight-guide-chips{display:grid;gap:6px;margin-top:14px}.insight-guide-chips span{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:8px;color:#768680;background:#f4f8f6;font-size:9px}.insight-guide-chips b{color:#235144;font-size:11px}
.insight-engine-card header{display:flex;align-items:center;gap:10px;padding-bottom:13px;border-bottom:1px solid #e8efec}.insight-engine-card header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#087b60;background:#e9f6f1}.insight-engine-card header>div{display:grid}.insight-engine-card header b{color:#2b4139;font-size:11px}.insight-engine-card header small{color:#87958f;font-size:8px}.insight-engine-card ul{display:grid;gap:13px;margin:15px 0 0;padding:0;list-style:none}.insight-engine-card li{display:flex;align-items:flex-start;gap:9px}.insight-engine-card li>i{margin-top:1px;color:#4c907c}.insight-engine-card li>span{display:grid;gap:2px}.insight-engine-card li b{color:#4b5e57;font-size:10px}.insight-engine-card li small{color:#8b9893;font-size:8px;line-height:1.5}
.insight-scenario-card{padding:16px}.insight-scenario-card>header{display:flex;align-items:center;gap:9px;padding-bottom:11px}.insight-scenario-card>header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#9b6530;background:#fff2df}.insight-scenario-card>header>div{display:grid}.insight-scenario-card>header b{color:#384d45;font-size:11px}.insight-scenario-card>header small{color:#8a9892;font-size:8px}.insight-scenario-card>div{display:grid;gap:6px}.insight-scenario-card button{display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:8px;border:1px solid #e3ebe8;border-radius:10px;color:#50655d;background:#fbfcfc;text-align:left;transition:.16s}.insight-scenario-card button:hover{border-color:#9bc9ba;background:#f3faf7;transform:translateX(2px)}.insight-scenario-card button>i{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;color:#438672;background:#eaf5f1}.insight-scenario-card button>span{display:grid;gap:1px;min-width:0}.insight-scenario-card button b{font-size:9px}.insight-scenario-card button small{overflow:hidden;color:#8a9892;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.insight-scenario-card button em{color:#25846c;font-size:7.5px;font-style:normal;font-weight:780}

@media(max-width:1100px){.insight-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insight-workspace{grid-template-columns:1fr}.insight-side{grid-template-columns:1fr 1fr}}
@media(max-width:900px){
  #roomModal .member-table thead{display:none}
  #roomModal #roomMemberRows{display:grid;gap:10px;padding:0;background:transparent}
  #roomModal #roomMemberRows>tr{display:grid;grid-template-columns:44px minmax(0,1fr);gap:0;width:100%;padding:8px 12px;border:1px solid #e0e9e6;border-radius:13px;background:#fff;box-shadow:none}
  #roomModal #roomMemberRows>tr>td{display:grid!important;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:10px;width:auto!important;height:auto;min-height:42px;padding:8px 0;border-bottom:1px solid #edf2f0!important;white-space:normal}
  #roomModal #roomMemberRows>tr>td.col-check{grid-row:1/6;grid-column:1;display:flex!important;align-items:flex-start;justify-content:center;padding-top:18px;border-bottom:0!important}
  #roomModal #roomMemberRows>tr>td:not(.col-check){grid-column:2}
  #roomModal #roomMemberRows>tr>td:last-child{border-bottom:0!important}
  #roomModal #roomMemberRows>tr>td:not(.col-check):before{color:#7b8b85;font-size:9px;font-weight:750}
  #roomModal #roomMemberRows>tr>td:nth-child(2):before{content:"成员名称"}
  #roomModal #roomMemberRows>tr>td:nth-child(3):before{content:"成员备注"}
  #roomModal #roomMemberRows>tr>td:nth-child(4):before{content:"账号 ID"}
  #roomModal #roomMemberRows>tr>td:nth-child(5):before{content:"群内角色"}
  #roomModal #roomMemberRows>tr>td:nth-child(6):before{content:"账号类型"}
  #roomModal .member-table .wxid-text{white-space:normal;word-break:break-all}
}
@media(max-width:720px){.insight-toolbar{grid-template-columns:1fr 1fr}.insight-toolbar .search{grid-column:1/-1}.insight-side{grid-template-columns:1fr}.insight-card>footer{align-items:flex-start;flex-direction:column}.insight-actions{width:100%;flex-wrap:wrap}.insight-actions .insight-chat-action{margin-right:auto}}
@media(max-width:520px){.insight-metric-grid{grid-template-columns:1fr}.insight-toolbar{grid-template-columns:1fr}.insight-toolbar .search{grid-column:auto}.insight-card>header{flex-wrap:wrap}.insight-status{margin-left:0}.insight-facts{display:grid;grid-template-columns:1fr 1fr}.insight-facts>span{min-width:0}.insight-card>footer>div:first-child{flex-direction:column}.insight-card>footer time{padding-left:0;border-left:0}.insight-actions button{flex:1}.insight-actions .insight-more-action{flex:0 0 31px}}

/* 2026-08 system refinement: calm green surfaces, durable AI work and zero stray horizontal bars */
*{scrollbar-width:thin;scrollbar-color:#8eb7aa #edf3f1}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-track{border-radius:999px;background:#edf3f1}
*::-webkit-scrollbar-thumb{border:2px solid #edf3f1;border-radius:999px;background:#8eb7aa}
*::-webkit-scrollbar-thumb:hover{background:#619887}
.hero-status{color:#18372d!important;border:1px solid #cfe5dc;background:radial-gradient(circle at 86% 12%,rgba(49,181,139,.16),transparent 31%),linear-gradient(120deg,#fff 0%,#f1faf6 56%,#e5f5ef 100%)!important;box-shadow:0 16px 38px rgba(30,91,70,.09)!important}
.hero-status h3{color:#18372d}.hero-status p{color:#668078!important}.hero-status .live-badge{color:#148069}.hero-status .hero-tags span{color:#3e675b;border-color:#cfe3dc;background:rgba(255,255,255,.72)}
.hero-status .queue-summary{color:#0f765d;border-color:#b9ddd0;background:rgba(255,255,255,.75);box-shadow:0 12px 30px rgba(27,105,79,.09)}
.hero-status .queue-summary small{color:#69857b}.hero-status .queue-summary button{color:#08795f;border-color:#c7e1d8;background:#f8fcfa}
.table-panel .table-wrap{overflow-x:hidden}.table-panel table{table-layout:fixed;white-space:normal}.table-panel th,.table-panel td{overflow:hidden;text-overflow:ellipsis}.table-panel td:last-child{overflow:visible}.table-panel td:last-child .row-action{margin:2px}
#roomModal .member-table tr.is-current-account{background:#f1faf6}
#roomModal .member-table tr.is-current-account input[type=checkbox]{opacity:1;accent-color:#079774}
.current-account-badge{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;color:#08775e;background:#dff4ec;font-size:8px;font-style:normal;font-weight:800;vertical-align:middle}
.history-message-row{display:flex;align-items:flex-start;gap:8px;width:min(82%,770px)}.history-message-row.is-out{align-self:flex-end;flex-direction:row-reverse}.history-message-row.is-in{align-self:flex-start}.history-message-row>.entity-avatar{flex:0 0 32px;width:32px;height:32px;border-radius:10px}.history-message-row .history-message{width:100%;align-self:auto}
.insight-toolbar .search{display:flex!important;min-width:0!important;max-width:none!important}.insight-toolbar .search input{display:block!important;flex:1!important;width:100%!important;min-width:0!important;max-width:none!important}
.insight-analysis-banner{display:flex;align-items:center;gap:13px;margin:-7px 0 16px;padding:14px 16px;border:1px solid #bfe0d4;border-radius:15px;background:linear-gradient(105deg,#f4fbf8,#e9f7f2);box-shadow:0 8px 22px rgba(28,91,69,.06)}
.insight-analysis-banner.is-complete{border-color:#9fd4c1;background:linear-gradient(105deg,#effaf6,#dcf3ea)}.insight-analysis-banner.is-failed{border-color:#efc2bd;background:#fff6f5}
.insight-analysis-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;color:#087b60;background:#d9f0e8;font-size:20px}.is-failed .insight-analysis-icon{color:#b44747;background:#fde5e2}
.insight-analysis-copy{display:grid;flex:1;gap:6px;min-width:0}.insight-analysis-copy>div{display:flex;justify-content:space-between;gap:10px}.insight-analysis-copy b{color:#24453a;font-size:12px}.insight-analysis-copy em{color:#087b60;font-size:11px;font-style:normal;font-weight:800}.insight-analysis-copy p{margin:0;color:#6b8179;font-size:10px}.insight-analysis-copy>span{overflow:hidden;height:5px;border-radius:999px;background:#dceae5}.insight-analysis-copy>span i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0a9a75,#51b99a);transition:width .35s ease}.is-failed .insight-analysis-copy>span i{background:#d75c55}
.insight-batch-toolbar{display:grid;grid-template-columns:max-content max-content minmax(128px,1fr) max-content;align-items:center;gap:7px 10px;padding:9px 16px;border-bottom:1px solid #e5eeeb;background:#fff}.insight-batch-toolbar label{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#53685f;font-size:10px;font-weight:750}.insight-batch-toolbar input{accent-color:#079774}.insight-batch-toolbar>span{white-space:nowrap;color:#087b60;font-size:10px;font-weight:800}.insight-batch-toolbar select{width:100%;min-width:0;height:31px;padding:0 28px 0 9px;border:1px solid #dce8e4;border-radius:8px;color:#52675f;background:#fff;font-size:9px}.insight-batch-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;height:31px;padding:0 10px;border:1px solid #b9d9ce;border-radius:8px;color:#08765d;background:#f1faf7;font-size:9px;font-weight:800}.insight-batch-toolbar small{display:flex;grid-column:1/-1;align-items:center;gap:4px;color:#8a9994;font-size:8px}
.insight-card-select{display:grid;place-items:center;width:22px;height:22px}.insight-card-select input{position:absolute;opacity:0}.insight-card-select i{display:grid;place-items:center;width:15px;height:15px;border:1px solid #b9cbc5;border-radius:4px;background:#fff}.insight-card-select input:checked+i{border-color:#079774;background:#079774}.insight-card-select input:checked+i:after{content:'✓';color:#fff;font-size:10px;font-weight:900}
.insight-ai-state{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:7px;font-size:9px;font-weight:780}.insight-ai-state.analyzed{color:#7055a5;background:#f2edfb}.insight-ai-state.pending{color:#778680;background:#f1f4f3}
.insight-closure-state{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:7px;font-size:9px;font-weight:780}.insight-closure-state.auto{color:#08765d;background:#e2f5ed}.insight-closure-state.pending{color:#9a682b;background:#fff3df}.insight-resolution-note{display:grid;grid-template-columns:28px minmax(0,1fr) max-content;align-items:center;gap:8px;padding:9px 10px;border:1px solid #eadfc9;border-radius:9px;color:#92642c;background:#fff9ee}.insight-resolution-note.auto{border-color:#c8e5da;color:#08765d;background:#eef9f5}.insight-resolution-note>i{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.72);font-size:15px}.insight-resolution-note>span{display:grid;gap:2px;min-width:0}.insight-resolution-note b{font-size:9px}.insight-resolution-note small{color:#71827b;font-size:8px;line-height:1.5}.insight-resolution-note em{font-size:9px;font-style:normal;font-weight:850}
.insight-ai-modal-card{width:min(560px,100%);gap:18px}.insight-ai-modal-card>header{display:flex;align-items:center;gap:13px}.insight-ai-modal-card>header>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#087b60;background:#e6f6f0;font-size:23px}.insight-ai-modal-card h2,.insight-ai-modal-card p{text-align:left}.insight-ai-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}.insight-ai-form label{display:grid;gap:6px}.insight-ai-form select,.insight-ai-form input[type=number]{width:100%;height:42px;padding:0 11px;border:1px solid #dce7e3;border-radius:10px;outline:0;background:#fff}.insight-ai-form label>small{color:#88968f;font-size:9px;line-height:1.5}.insight-ai-switch{grid-column:1/-1;display:flex!important;align-items:center;gap:10px;padding:11px;border:1px solid #e2ebe8;border-radius:11px;background:#f8faf9}.insight-ai-switch input{position:absolute;opacity:0}.insight-ai-switch span{display:grid;flex:1;gap:2px}.insight-ai-switch span small{color:#83918c;font-size:9px}.insight-ai-switch>i{position:relative;width:38px;height:22px;border-radius:999px;background:#cedad6}.insight-ai-switch>i:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.18);transition:.2s}.insight-ai-switch input:checked~i{background:#079774}.insight-ai-switch input:checked~i:after{transform:translateX(16px)}.insight-ai-modal-note{display:flex;align-items:center;gap:10px;padding:11px;border-radius:11px;color:#18765f;background:#edf8f4}.insight-ai-modal-note>span{display:grid;gap:2px}.insight-ai-modal-note small{color:#6d8b81;font-size:9px}.insight-ai-modal-card>footer{display:flex;justify-content:flex-end;gap:9px}
.task-variable-guide{display:grid!important;gap:10px;padding:13px!important}.task-variable-guide>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.task-variable-guide>header>span{display:flex;align-items:center;gap:6px;color:#365e52;font-size:11px;font-weight:850}.task-variable-guide>header label{display:flex;align-items:center;gap:6px;min-width:220px;height:32px;padding:0 9px;border:1px solid #dbe7e3;border-radius:9px;background:#fff}.task-variable-guide>header input{width:100%;padding:0;border:0;outline:0;font-size:9px}.task-variable-catalog{display:grid!important;gap:9px!important;margin:0!important}.task-variable-catalog section{display:grid;grid-template-columns:90px 1fr;align-items:start;gap:9px}.task-variable-catalog section>b{padding-top:7px;color:#61776f;font-size:9px}.task-variable-catalog section>div{display:flex;flex-wrap:wrap;gap:5px;margin:0}.task-variable-catalog button{height:28px!important}.task-custom-variables{border-top:1px solid #e3ece9;padding-top:9px}.task-custom-variables summary{display:flex;align-items:center;justify-content:space-between;color:#47675e;font-size:10px;font-weight:800;cursor:pointer}.task-custom-variables>div{display:grid;gap:6px;margin:8px 0}.task-custom-variables>div>p{margin:0;color:#87958f;font-size:9px}.task-custom-variable-row{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(130px,1.4fr) 30px 30px;gap:6px}.task-custom-variable-row input{height:32px!important;padding:0 8px!important;border:1px solid #dbe7e3!important;border-radius:8px!important;font-size:9px}.task-custom-variable-row button,.task-custom-variables>button{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:30px;border:1px solid #d6e5df;border-radius:8px;color:#2d6d5c;background:#fff;font-size:9px}.task-custom-variables>small{display:block;margin-top:6px;color:#84938e;font-size:8px}.task-variable-guide>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#788c85;font-size:9px}.task-variable-guide>footer span{display:flex;align-items:center;gap:5px}.task-variable-guide>footer button{height:30px}.task-variable-preview-result{padding:10px;border:1px dashed #afd2c6;border-radius:9px;color:#3e5c52;background:#fff;white-space:pre-wrap;font-size:10px;line-height:1.6}
@media(max-width:900px){.table-panel .table-wrap{overflow-x:clip!important;max-width:100%}.table-panel table{width:100%!important;min-width:0!important;table-layout:fixed}.table-panel th,.table-panel td{overflow:hidden;white-space:normal;overflow-wrap:anywhere;text-overflow:ellipsis}.history-message-row{width:96%}}

/* Personnel lifecycle and Feishu binding */
.user-security-banner{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:13px;margin-bottom:14px;padding:15px 17px;border:1px solid #cfe4dc;border-radius:15px;background:linear-gradient(135deg,#f1faf6,#fbfdfc);box-shadow:0 7px 22px rgba(26,94,72,.04)}
.user-security-banner>span:first-child{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#087b61;background:#dff2ea;font-size:20px}.user-security-banner b{display:block;margin-bottom:3px;color:#244139;font-size:13px}.user-security-banner p{margin:0;color:#688078;font-size:11px;line-height:1.6}
.user-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.user-metrics article{display:flex;align-items:center;gap:12px;min-width:0;padding:15px 17px;border:1px solid #e0eae6;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(32,70,57,.035)}.user-metrics article>span{width:36px;height:36px;display:grid;flex:0 0 auto;place-items:center;border-radius:11px;color:#168269;background:#edf8f4;font-size:17px}.user-metrics article div{display:grid;min-width:0}.user-metrics b{color:#233c34;font-size:21px;line-height:1.1}.user-metrics small{margin-top:3px;color:#82928c;font-size:10px}
.user-directory-panel{overflow:hidden}.user-toolbar .search{flex:1;max-width:440px}.user-table th:nth-child(1){width:23%}.user-table th:nth-child(2){width:13%}.user-table th:nth-child(3){width:20%}.user-table th:nth-child(4){width:13%}.user-table th:nth-child(5){width:13%}.user-table th:nth-child(6){width:18%}.user-table td{vertical-align:middle}.user-table tr.is-disabled{background:#fbfbfb}.user-table tr.is-disabled td:not(:last-child){opacity:.72}.user-table tr.is-legacy{background:#fffaf4}.user-identity{align-items:center;min-width:0}.user-identity>span:last-child{display:grid;min-width:0}.user-identity strong{display:flex;align-items:center;gap:6px;overflow:hidden;color:#293d36;text-overflow:ellipsis;white-space:nowrap}.user-identity strong em{padding:2px 5px;border-radius:5px;color:#08765d;background:#e7f5ef;font-size:8px;font-style:normal}.user-identity small{overflow:hidden;color:#81908a;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.user-identity .user-note{margin-top:2px;color:#657b73}.permission-default,.binding-detail{display:block;margin-top:5px;color:#86958f;font-size:9px;line-height:1.45}.user-last-login{color:#60736c;font-size:10px}.user-row-actions{display:flex;flex-wrap:wrap;gap:5px}.user-action{min-height:27px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 7px;border:1px solid #dce8e3;border-radius:8px;color:#557068;background:#fff;font-size:9px;font-weight:680;white-space:nowrap}.user-action:hover:not(:disabled){border-color:#abcfc2;color:#08755d;background:#f1faf6}.user-action.bind{color:#2770a5;border-color:#d4e3f0;background:#f4f9fd}.user-action.warning{color:#966323;border-color:#ecdcbc;background:#fffaf0}.user-action.enable{color:#08755d;background:#edf8f3}.user-action.danger{color:#a84b4b;border-color:#eed6d4;background:#fff8f7}.user-action:disabled{opacity:.38;cursor:not-allowed}
.user-audit-panel{margin-top:14px;overflow:hidden}.user-audit-panel>summary{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:11px;padding:15px 17px;cursor:pointer;list-style:none}.user-audit-panel>summary::-webkit-details-marker{display:none}.user-audit-panel>summary>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#6b7f77;background:#eff5f2}.user-audit-panel>summary div{display:grid}.user-audit-panel>summary b{color:#30473f;font-size:12px}.user-audit-panel>summary small{color:#83928c;font-size:9px}.user-audit-panel[open]>summary>i{transform:rotate(180deg)}.user-audit-rows{display:grid;padding:0 17px 13px;border-top:1px solid #edf2f0}.user-audit-rows>p{color:#87958f;font-size:10px}.user-audit-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf2f0}.user-audit-row:last-child{border-bottom:0}.user-audit-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:#16836a;background:#edf8f4}.user-audit-row div{display:grid;min-width:0}.user-audit-row b{color:#40564e;font-size:10px}.user-audit-row small{overflow:hidden;color:#83918c;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.user-audit-row time{color:#8b9893;font-size:9px;white-space:nowrap}
.modal-card.user-editor-card{width:min(590px,calc(100vw - 24px));gap:15px}.modal-card.user-editor-card.compact{width:min(480px,calc(100vw - 24px))}.user-editor-card .form-grid{margin-top:2px}.user-editor-card textarea{resize:vertical}.user-role-choice{display:flex!important;align-items:flex-start;gap:10px;padding:13px!important;border:1px solid #dce8e3;border-radius:12px;background:#f8fbfa;cursor:pointer}.user-role-choice>input{width:16px!important;height:16px!important;flex:0 0 auto;margin:2px 0 0;accent-color:#078265}.user-role-choice>span{display:grid;gap:3px}.user-role-choice b{color:#344b43;font-size:11px}.user-role-choice small{color:#7c8d86;font-size:9px;line-height:1.55}.user-editor-card .modal-actions{display:flex;justify-content:flex-end;gap:8px}.user-editor-card .modal-actions button{min-width:92px}
@media(max-width:1040px){.user-table th:nth-child(5),.user-table td:nth-child(5){display:none}.user-table th:nth-child(1){width:25%}.user-table th:nth-child(2){width:14%}.user-table th:nth-child(3){width:23%}.user-table th:nth-child(4){width:14%}.user-table th:nth-child(6){width:24%}}
@media(max-width:760px){.user-security-banner{grid-template-columns:38px minmax(0,1fr)}.user-security-banner>.badge{grid-column:2;justify-self:start}.user-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.user-toolbar{align-items:stretch}.user-toolbar .search,.user-toolbar select{width:100%;max-width:none}.user-table td{display:grid!important}.user-table td:before{content:attr(data-label)!important}.user-table td:nth-child(5){display:grid!important}.user-row-actions{justify-content:flex-start}.user-action{min-height:32px;padding:5px 9px;font-size:10px}.user-audit-row{grid-template-columns:30px minmax(0,1fr)}.user-audit-row time{grid-column:2}.user-editor-card .form-grid{grid-template-columns:1fr}.user-editor-card .span-2{grid-column:auto}}
@media(max-width:460px){.user-page-heading{align-items:stretch;flex-direction:column}.user-page-heading .page-heading-actions{display:grid;grid-template-columns:1fr 1fr}.user-metrics{gap:8px}.user-metrics article{padding:12px}.user-security-banner{padding:13px}.user-editor-card .modal-actions button{flex:1;min-width:0}}
.insight-card-select input:checked+i:after{content:'✓'}
@media(max-width:600px){.insight-batch-toolbar{grid-template-columns:1fr 1fr}.insight-batch-toolbar select,.insight-batch-toolbar button,.insight-batch-toolbar small{grid-column:1/-1}.insight-ai-form{grid-template-columns:1fr}.insight-ai-switch{grid-column:auto}.task-variable-guide>header{align-items:stretch;flex-direction:column}.task-variable-guide>header label{min-width:0}.task-variable-catalog section{grid-template-columns:1fr}.task-custom-variable-row{grid-template-columns:1fr 1fr 30px 30px}}

/* 2026-08 deep refinement: history, business insights and variable orchestration. */
.history-toolbar{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center}
.history-toolbar .search{display:flex;width:100%;max-width:none;margin:0;overflow:hidden;border:1px solid #d8e5e0!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;transition:border-color .18s ease,box-shadow .18s ease}
.history-toolbar .search:focus-within{border-color:#57aa92!important;box-shadow:0 0 0 3px rgba(7,151,116,.09)!important}
.history-toolbar .search input,.history-toolbar .search input:focus,.history-toolbar .search input:focus-visible{width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important}
.history-conversation{grid-template-columns:38px minmax(0,1fr) 48px;min-height:60px;padding:8px 10px}
.history-conversation>span:nth-child(2){gap:5px}.history-conversation>span:nth-child(2)>small{display:flex;align-items:center;gap:4px}.history-conversation>span:nth-child(2)>small i{flex:0 0 auto;color:#73a596}
.history-conversation>em{display:grid;justify-items:end;gap:1px}.history-conversation>em>b{color:#31564a;font-size:11px}.history-conversation>em>small{color:#98a49f;font-size:8px}

.insight-metric{position:relative;min-height:92px;padding:15px 16px}.insight-metric>span{border:1px solid rgba(104,151,136,.1);font-size:20px}.insight-metric strong{margin:3px 0 0;font-size:20px}.insight-metric small{font-size:10px}.insight-metric em{margin-top:2px;font-size:8.5px}
.insight-toolbar{grid-template-columns:minmax(260px,2fr) repeat(3,minmax(108px,1fr))}
#insightStakeholder{grid-column:1/3}#insightDomain{grid-column:3/5}
.insight-analysis-actions{display:flex;align-items:center;gap:8px}.insight-analysis-actions .quiet-button{height:34px;padding:0 11px;white-space:nowrap;font-size:9px}

.task-variable-guide>header{display:grid;grid-template-columns:1fr;align-items:start}.task-variable-guide>header label{width:100%;min-width:0;height:38px;border-radius:11px}.task-variable-guide>header input{font-size:10px}
.task-variable-rules{display:grid!important;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:10px!important;margin:0!important;padding:10px;border:1px solid #dce9e4;border-radius:11px;background:linear-gradient(100deg,#fff,#f3faf7)}
.task-variable-rules>span{display:grid;gap:2px}.task-variable-rules>span b{color:#365f53;font-size:10px}.task-variable-rules>span small{color:#8b9994;font-size:8px}.task-variable-rules>div{display:flex;flex-wrap:wrap;gap:6px!important;margin:0!important}.task-variable-rules button{display:inline-flex;align-items:center;gap:5px;height:30px!important;border-color:#cfe2da!important;color:#276655!important;background:#fff!important}.task-variable-rules button:hover{border-color:#70b39f!important;background:#edf8f4!important}
.task-custom-variable-row.is-missing input[data-task-custom-value]{border-color:#dfb36e!important;background:#fffaf0!important}.task-custom-variable-row.is-missing input[data-task-custom-value]::placeholder{color:#b68034}
#taskVariableHealth.is-good{color:#31745f}.task-variable-guide>footer #taskVariableHealth.is-warning{color:#a06a24}.task-variable-guide>footer #taskVariableHealth.is-error{color:#b54c4c}
.task-variable-preview-result{display:grid;gap:7px;white-space:normal}.task-variable-preview-result b{color:#2c6554}.task-variable-preview-result pre{margin:0;padding:9px;border-radius:8px;background:#f5f8f7;white-space:pre-wrap;font:inherit}.task-variable-preview-result small{color:#a0652d}.task-variable-preview-result.has-issues{border-color:#dfb36e;background:#fffaf1}
.ai-assistant-actions .ai-compose-button{border-color:#70b5a0;color:#fff;background:linear-gradient(135deg,#078f70,#16a27f);box-shadow:0 7px 16px rgba(7,143,112,.14)}
.task-ai-compose-result{display:grid;gap:8px;margin-top:10px;padding:11px;border:1px solid #cde4db;border-radius:11px;background:#f6fbf9}.task-ai-compose-result header{display:flex;align-items:center;gap:6px;color:#176e57}.task-ai-compose-result p{margin:0;color:#657970;font-size:9px}.task-ai-compose-result>div{display:flex;flex-wrap:wrap;gap:6px}.task-ai-compose-result>div>span{display:grid;gap:2px;padding:6px 8px;border:1px solid #d7e7e1;border-radius:8px;background:#fff}.task-ai-compose-result>div>span b{color:#3b5c51;font-size:9px}.task-ai-compose-result>div>span small{color:#899791;font-size:8px}.task-ai-compose-result>div>span.is-missing{border-color:#e7c68e;background:#fffaf0}.task-ai-compose-result footer{display:flex;align-items:center;gap:5px;color:#9a6525;font-size:9px}.task-ai-compose-result footer.is-ready{color:#28745e}
@media(max-width:720px){#insightStakeholder,#insightDomain{grid-column:auto}.task-variable-rules{grid-template-columns:1fr}}
@media(max-width:600px){.history-toolbar{grid-template-columns:1fr}.history-toolbar small{margin-left:0}.insight-analysis-banner{align-items:flex-start;flex-wrap:wrap}.insight-analysis-actions{width:100%;justify-content:flex-end}}

/* Business identity directory */
.identity-directory-card{display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr) auto;width:min(820px,100%);height:min(88vh,760px);max-height:760px;padding:0;overflow:hidden;border-radius:20px;background:#f8fbfa}.identity-directory-card>.modal-close{top:17px;right:17px;z-index:2}
.identity-directory-head{display:flex;align-items:flex-start;gap:14px;padding:22px 58px 18px 22px;border-bottom:1px solid #e1ebe7;background:linear-gradient(112deg,#fff 0%,#eff9f5 100%)}.identity-directory-head>span{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #cce5dc;border-radius:14px;color:#087b60;background:#e5f5ef;font-size:22px}.identity-directory-head>div{display:grid;gap:3px}.identity-directory-head small{color:#079774;font-size:9px;font-weight:850;letter-spacing:.08em}.identity-directory-head h2{margin:0;color:#1d3b31;font-size:21px;text-align:left}.identity-directory-head p{max-width:650px;margin:3px 0 0;color:#688078;font-size:10px;line-height:1.65;text-align:left}
.identity-directory-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:14px 18px 8px}.identity-directory-stats>span{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:1px 8px;min-width:0;padding:9px 10px;border:1px solid #dfeae6;border-radius:11px;background:#fff}.identity-directory-stats i{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#168069;background:#eaf6f1}.identity-directory-stats small{overflow:hidden;color:#7b8d86;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.identity-directory-stats b{color:#294c40;font-size:15px}
.identity-directory-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:9px;padding:8px 18px}.identity-directory-toolbar label{display:flex;align-items:center;gap:7px;min-width:0;height:38px;padding:0 11px;border:1px solid #d8e6e1;border-radius:10px;background:#fff}.identity-directory-toolbar label:focus-within{border-color:#64ad98;box-shadow:0 0 0 3px rgba(7,151,116,.08)}.identity-directory-toolbar label i{color:#79a194}.identity-directory-toolbar input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:10px}.identity-directory-toolbar select{height:38px;min-width:0;padding:0 30px 0 10px;border:1px solid #d8e6e1;border-radius:10px;outline:0;color:#52685f;background:#fff;font-size:10px}
.identity-policy-note{display:flex;align-items:center;gap:9px;margin:0 18px 8px;padding:9px 11px;border:1px solid #cfe6dd;border-radius:10px;color:#1b765e;background:#edf8f4}.identity-policy-note>i{font-size:17px}.identity-policy-note>span{display:grid;gap:1px}.identity-policy-note b{font-size:9px}.identity-policy-note small{color:#718a81;font-size:8px}
.identity-directory-list{display:grid;gap:7px;min-height:0;padding:3px 18px 12px;overflow-x:hidden;overflow-y:auto}.identity-person{display:grid;grid-template-columns:38px minmax(0,1fr) minmax(215px,260px);align-items:center;gap:11px;min-width:0;padding:10px 11px;border:1px solid #e0e9e6;border-radius:12px;background:#fff;transition:.16s}.identity-person.is-dirty{border-color:#8ac4b2;background:#f7fcfa;box-shadow:0 0 0 2px rgba(7,151,116,.05)}.identity-person>.entity-avatar{width:38px;height:38px;border-radius:11px}.identity-person-main{display:grid;gap:2px;min-width:0}.identity-person-main header{display:flex;align-items:center;gap:6px;min-width:0}.identity-person-main header>b{overflow:hidden;color:#263f36;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.identity-person-main>small{overflow:hidden;color:#8a9993;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.identity-person-main>em{display:flex;align-items:center;gap:4px;margin-top:2px;color:#698078;font-size:8px;font-style:normal}.identity-role{display:inline-flex;flex:0 0 auto;padding:2px 6px;border-radius:999px;font-size:8px;font-weight:800}.identity-role.employee{color:#08765d;background:#e3f4ed}.identity-role.customer{color:#8c6531;background:#fff3df}.identity-role.unknown{color:#6f7e79;background:#eef2f1}
.identity-person-control{display:grid;grid-template-columns:max-content minmax(90px,1fr);align-items:center;gap:8px}.identity-person-control>label{position:relative;display:flex;align-items:center;gap:7px;color:#496158;font-size:9px;font-weight:780;cursor:pointer}.identity-person-control>label input{position:absolute;width:1px!important;height:1px!important;margin:0!important;opacity:0}.identity-person-control>label i{position:relative;width:34px;height:19px;border-radius:999px;background:#cad7d2;transition:.18s}.identity-person-control>label i:after{content:'';position:absolute;left:3px;top:3px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.16);transition:.18s}.identity-person-control>label input:checked+i{background:#079774}.identity-person-control>label input:checked+i:after{transform:translateX(15px)}.identity-person-control>input{width:100%;min-width:0;height:32px;padding:0 8px;border:1px solid #dfe8e5;border-radius:8px;outline:0;color:#50665e;background:#fbfcfc;font-size:8.5px}.identity-person-control>input:focus{border-color:#75b5a2;background:#fff}.identity-person-fixed{display:flex;align-items:center;justify-content:flex-end;gap:6px;color:#668078;font-size:8.5px}.identity-person-fixed i{color:#43917b}
.identity-directory-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;border-top:1px solid #dee9e5;background:#fff}.identity-directory-card>footer>span{color:#72867e;font-size:9px}.identity-directory-card>footer>div{display:flex;gap:8px}.identity-directory-card>footer button{height:36px}.identity-directory-card>footer button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:720px){.identity-directory-stats{grid-template-columns:1fr 1fr}.identity-directory-toolbar{grid-template-columns:1fr}.identity-person{grid-template-columns:38px minmax(0,1fr)}.identity-person-control,.identity-person-fixed{grid-column:1/-1;justify-content:stretch}.identity-person-control{grid-template-columns:max-content 1fr}.identity-directory-card{height:94vh;max-height:94vh}}

/* 客户服务台：保持鲸涅的墨绿中性色，信息密度高但不依赖横向滚动。 */
.case-purpose-strip{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(520px,1.5fr);align-items:center;gap:18px;margin-bottom:14px;padding:14px 16px;border:1px solid #dbe8e3;border-radius:15px;background:linear-gradient(112deg,#fff,#f1f8f5)}.case-purpose-strip>header{display:flex;align-items:flex-start;gap:10px;min-width:0}.case-purpose-strip>header>span{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border-radius:10px;color:#087b60;background:#e4f4ee}.case-purpose-strip>header>div{display:grid;gap:2px}.case-purpose-strip>header b{color:#28473c;font-size:10px}.case-purpose-strip>header small{color:#758880;font-size:8px;line-height:1.55}.case-purpose-strip ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0;padding:0;list-style:none}.case-purpose-strip li{display:grid;grid-template-columns:27px minmax(0,1fr);align-items:center;gap:7px;min-width:0;padding:7px;border:1px solid #e2ebe7;border-radius:9px;background:rgba(255,255,255,.82)}.case-purpose-strip li>i{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;color:#4a8976;background:#edf6f2}.case-purpose-strip li>span{display:grid;gap:1px;min-width:0}.case-purpose-strip li b{overflow:hidden;color:#486158;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.case-purpose-strip li small{overflow:hidden;color:#899791;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1050px){.case-purpose-strip{grid-template-columns:1fr}.case-purpose-strip ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.case-purpose-strip{padding:12px}.case-purpose-strip ol{grid-template-columns:1fr}}
.case-heading-note{display:flex;align-items:center;gap:10px;max-width:360px;padding:11px 14px;border:1px solid #cfe4dc;border-radius:13px;color:#176d58;background:#f1f9f6}.case-heading-note>i{font-size:20px}.case-heading-note>span{display:grid;gap:2px}.case-heading-note b{font-size:10px}.case-heading-note small{color:#71877f;font-size:8px;line-height:1.45}.case-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}.case-metric-grid article{display:flex;align-items:center;gap:11px;min-width:0;padding:14px 15px;border:1px solid #e0e9e6;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(24,63,50,.035)}.case-metric-grid article>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#087b60;background:#eaf6f1;font-size:18px}.case-metric-grid article>div{display:grid}.case-metric-grid small{color:#778981;font-size:9px}.case-metric-grid strong{color:#23473b;font-size:21px}.case-workspace{display:grid;grid-template-columns:minmax(480px,1.04fr) minmax(420px,.96fr);gap:15px;align-items:start}.case-list-panel,.case-detail-panel{overflow:hidden;min-width:0}.case-toolbar{display:grid;grid-template-columns:minmax(210px,1fr) 130px 135px;gap:8px;padding:13px;border-bottom:1px solid #e4ece9;background:#fbfdfc}.case-toolbar .search{display:flex!important;min-width:0!important}.case-toolbar select{min-width:0;height:38px;padding:0 27px 0 9px;border:1px solid #dce7e3;border-radius:9px;color:#50645d;background:#fff;font-size:9px}.case-list{display:grid;max-height:650px;overflow-y:auto;overflow-x:hidden}.case-card{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;width:100%;min-width:0;padding:14px;border:0;border-bottom:1px solid #e8efec;color:inherit;background:#fff;text-align:left;transition:.16s}.case-card:hover{background:#f8fbfa}.case-card.active{background:#edf8f4;box-shadow:inset 3px 0 #079774}.case-card>.entity-avatar{width:38px;height:38px;border-radius:11px}.case-card-main{display:grid;gap:5px;min-width:0}.case-card-main>header{display:flex;align-items:center;gap:8px}.case-card-main>header b{overflow:hidden;color:#334b43;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.case-status{margin-left:auto;padding:3px 7px;border-radius:999px;color:#7a6744;background:#fff4df;font-size:8px;font-weight:800}.case-status.processing,.case-status.reopened{color:#166d59;background:#e3f5ee}.case-status.resolved,.case-status.closed{color:#6f7d78;background:#eef2f1}.case-card h3{overflow:hidden;margin:0;color:#223b32;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.case-card p{display:flex;flex-wrap:wrap;gap:5px;margin:0}.case-card p span{padding:2px 6px;border-radius:5px;color:#70817a;background:#f1f5f3;font-size:7.5px}.case-card footer{display:flex;align-items:center;gap:9px;color:#82908b;font-size:8px}.case-card footer span,.case-card footer em{display:flex;align-items:center;gap:3px;font-style:normal}.case-card footer em{color:#a3692b}.case-card footer em.ready{color:#178066}.case-card footer time{margin-left:auto}.case-detail-panel{position:sticky;top:97px;min-height:590px;max-height:calc(100vh - 120px)}.case-detail-empty{display:grid;place-items:center;min-height:590px;padding:40px;text-align:center}.case-detail-empty>span{display:grid;place-items:center;width:58px;height:58px;border-radius:17px;color:#579582;background:#eaf6f1;font-size:25px}.case-detail-empty h3{margin:14px 0 3px;color:#344d44;font-size:14px}.case-detail-empty p{max-width:300px;margin:0;color:#84928d;font-size:9px;line-height:1.7}.case-detail{display:grid;max-height:calc(100vh - 120px);overflow-y:auto}.case-detail-head{display:flex;justify-content:space-between;gap:12px;padding:17px 18px;border-bottom:1px solid #e4ece9;background:linear-gradient(110deg,#fff,#f2faf7)}.case-detail-head>div{display:grid;gap:3px;min-width:0}.case-detail-head span{color:#079774;font-size:8px;font-weight:850;letter-spacing:.06em}.case-detail-head h2{margin:0;color:#203d33;font-size:16px;line-height:1.4}.case-detail-head p{margin:0;color:#75877f;font-size:8.5px}.case-detail-head select{align-self:start;height:34px;padding:0 26px 0 9px;border:1px solid #cfe0da;border-radius:8px;color:#315b4d;background:#fff;font-size:9px}.case-completeness{display:flex;align-items:center;gap:10px;margin:13px 15px 0;padding:11px;border:1px solid #eadcbc;border-radius:11px;background:#fff9ee}.case-completeness.ready{border-color:#c9e5da;background:#edf9f4}.case-completeness>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#a86b24;background:#ffedca}.case-completeness.ready>span{color:#087b60;background:#dff2ea}.case-completeness>div{display:grid;gap:2px}.case-completeness b{color:#5a4a32;font-size:10px}.case-completeness.ready b{color:#245043}.case-completeness p{margin:0;color:#8b785e;font-size:8.5px;line-height:1.5}.case-completeness.ready p{color:#70877f}.case-fact-section,.case-message-section,.case-event-section{display:grid;gap:9px;margin:13px 15px 0;padding-bottom:13px;border-bottom:1px solid #e8efec}.case-fact-section>header,.case-message-section>header,.case-event-section>header{display:flex;align-items:center;justify-content:space-between}.case-fact-section header b,.case-message-section header b,.case-event-section header b{color:#395047;font-size:10px}.case-fact-section header small,.case-event-section header small{color:#8c9994;font-size:8px}.case-fact-section>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.case-fact-section>div span{display:grid;gap:3px;min-width:0;padding:8px 9px;border:1px solid #e4ece9;border-radius:9px;background:#fbfcfc}.case-fact-section>div small{color:#8a9893;font-size:7.5px}.case-fact-section>div b{overflow:hidden;color:#4b5e57;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.case-fact-section>footer{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.case-fact-section>footer small{color:#8b9994;font-size:8px}.case-fact-section>footer em{padding:3px 7px;border-radius:999px;color:#986228;background:#fff2dd;font-size:8px;font-style:normal}.case-message-section header button{border:0;color:#08765d;background:transparent;font-size:8px;font-weight:800}.case-message-section>div{display:grid;gap:6px}.case-message-section article{display:grid;gap:3px;padding:8px 9px;border-radius:9px;background:#f5f8f7}.case-message-section article.is-out{margin-left:24px;background:#eaf6f1}.case-message-section article.is-in{margin-right:24px}.case-message-section article b{color:#55675f;font-size:8px}.case-message-section article p{margin:0;color:#394d46;font-size:9px;line-height:1.55}.case-message-section article time{color:#92a09b;font-size:7px}.case-event-section{border-bottom:0}.case-event-section ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}.case-event-section li{display:flex;gap:8px}.case-event-section li>i{width:7px;height:7px;margin-top:4px;border-radius:50%;background:#58a58f;box-shadow:0 0 0 3px #e8f4f0}.case-event-section li>div{display:grid;gap:2px}.case-event-section li b{color:#596b64;font-size:8.5px}.case-event-section li small,.case-muted{margin:0;color:#8c9994;font-size:8px}
.case-sla-overview{overflow:hidden;margin-bottom:15px;border-color:#d9e7e2}.case-sla-overview>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #e3ece8;background:linear-gradient(110deg,#f3faf7,#fff)}.case-sla-overview>header>div{display:flex;align-items:center;gap:10px}.case-sla-overview>header>div>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#08785f;background:#dff2ea;font-size:18px}.case-sla-overview>header>div>div{display:grid;gap:2px}.case-sla-overview>header small{color:#16806a;font-size:6.5px;font-weight:850;letter-spacing:.1em}.case-sla-overview>header b{color:#335047;font-size:10px}.case-sla-overview>header p{margin:0;color:#83928c;font-size:7px}.case-sla-overview>header em{padding:5px 8px;border-radius:7px;color:#18765f;background:#e9f6f1;font-size:7px;font-style:normal;font-weight:800}.case-sla-overview>div{display:grid;grid-template-columns:repeat(4,1fr)}.case-sla-overview article{display:grid;grid-template-columns:1fr auto;gap:1px 8px;padding:11px 15px;border-right:1px solid #e7eeeb}.case-sla-overview article:last-child{border-right:0}.case-sla-overview article small{color:#7d9088;font-size:7px}.case-sla-overview article strong{grid-row:1/3;grid-column:2;color:#17775f;font-size:19px}.case-sla-overview article span{color:#9aa5a1;font-size:6.5px}.case-sla-overview article.is-risk strong{color:#b27a2a}.case-sla-overview article.is-breach strong,.case-sla-overview article.is-escalation strong{color:#ba514a}.case-sla-badge{padding:3px 6px;border-radius:999px;color:#17765f;background:#e8f5f0;font-size:6.5px;font-weight:800;white-space:nowrap}.case-sla-badge.is-at_risk{color:#a66e24;background:#fff0d9}.case-sla-badge.is-breached{color:#b74e48;background:#ffeae8}.case-sla-badge.is-paused{color:#6f5b9d;background:#f0ecf8}
.case-sla-control{display:grid;gap:9px;margin:12px 14px 0;padding:11px;border:1px solid #cfe3db;border-radius:12px;background:#f4faf7}.case-sla-control>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.case-sla-control>header>div{display:flex;gap:8px;min-width:0}.case-sla-control>header>div>span{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:10px;color:#08775e;background:#dcf0e8;font-size:16px}.case-sla-control>header>div>div{display:grid;gap:2px}.case-sla-control>header small{color:#188069;font-size:6.8px;font-weight:800}.case-sla-control>header b{color:#355149;font-size:9.5px}.case-sla-control>header p{margin:0;color:#82918c;font-size:7px}.case-sla-control>header>em{padding:4px 6px;border-radius:6px;color:#14755e;background:#fff;font-size:6.5px;font-style:normal;font-weight:850}.case-sla-control.is-at_risk{border-color:#ead8b7;background:#fffaf0}.case-sla-control.is-breached{border-color:#ebcfcb;background:#fff6f5}.case-sla-control.is-breached>header>div>span{color:#b64c47;background:#ffe3e0}.case-sla-control.is-paused{border-color:#ddd4eb;background:#f9f7fc}.case-sla-control>form{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:6px}.case-sla-control label{display:grid;gap:3px;color:#71857d;font-size:6.5px}.case-sla-control select,.case-dependency-board input{min-width:0;height:30px;padding:0 7px;border:1px solid #d8e5e0;border-radius:7px;color:#475f56;background:#fff;font-size:7px}.case-sla-control form>button,.case-dependency-board form>button{align-self:end;height:30px;padding:0 8px;border:1px solid #83b8a8;border-radius:7px;color:#fff;background:#138469;font-size:7px}.case-dependency-board{display:grid;gap:6px;padding-top:7px;border-top:1px solid rgba(114,156,142,.2)}.case-dependency-board>header{display:flex;align-items:center;justify-content:space-between}.case-dependency-board>header b{color:#486158;font-size:7.5px}.case-dependency-board>header span{color:#85948e;font-size:6.5px}.case-dependency-board>div{display:grid;gap:5px}.case-dependency-board article{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:7px;padding:6px 7px;border:1px solid #e0e9e6;border-radius:8px;background:#fff}.case-dependency-board article>i{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;color:#16765f;background:#e7f4ef}.case-dependency-board article>span{display:grid;gap:1px;min-width:0}.case-dependency-board article b{overflow:hidden;color:#4b625a;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.case-dependency-board article small{color:#8b9893;font-size:6.5px}.case-dependency-board article button{height:23px;padding:0 6px;border:1px solid #d7e3df;border-radius:6px;color:#667c74;background:#fff;font-size:6.5px}.case-dependency-board article>div{display:flex;gap:4px}.case-dependency-board article.is-escalation{border-color:#ead2ce;background:#fff8f7}.case-dependency-board article.is-escalation>i{color:#b4524b;background:#ffe9e6}.case-dependency-board>div>p{margin:0;color:#8c9994;font-size:7px}.case-dependency-board>form{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:6px}
.identity-person-control.is-employee{grid-template-columns:max-content minmax(120px,1fr) minmax(90px,1fr)}.identity-person-control>select{width:100%;min-width:0;height:32px;padding:0 25px 0 8px;border:1px solid #dfe8e5;border-radius:8px;outline:0;color:#50665e;background:#fbfcfc;font-size:8.5px}.identity-person-control>select:focus{border-color:#75b5a2;background:#fff}
@media(max-width:1180px){.case-workspace{grid-template-columns:1fr}.case-detail-panel{position:static;max-height:none}.case-detail{max-height:none}.case-list{max-height:520px}}
@media(max-width:760px){.case-metric-grid{grid-template-columns:1fr 1fr}.case-toolbar{grid-template-columns:1fr 1fr}.case-toolbar .search{grid-column:1/-1}.case-heading-note{display:none}.identity-person-control.is-employee{grid-template-columns:1fr 1fr}.identity-person-control.is-employee>label{grid-column:1/-1}}
@media(max-width:760px){.case-sla-overview>header p{display:none}.case-sla-overview>div{grid-template-columns:1fr 1fr}.case-sla-overview article:nth-child(2){border-right:0}.case-sla-overview article:nth-child(-n+2){border-bottom:1px solid #e7eeeb}.case-sla-control>form{grid-template-columns:1fr 1fr}.case-sla-control form>button{width:100%}.case-dependency-board>form{grid-template-columns:1fr}.case-dependency-board>form button{width:100%}}
@media(max-width:520px){.case-metric-grid{grid-template-columns:1fr}.case-toolbar{grid-template-columns:1fr}.case-toolbar .search{grid-column:auto}.case-fact-section>div{grid-template-columns:1fr}.identity-person-control.is-employee{grid-template-columns:1fr}}

/* AI 应用编排：把模型连接与实际业务能力放在同一个可继承的配置体系中。 */
.ai-feature-routing{margin:18px;border:1px solid #dce9e4;border-radius:16px;overflow:hidden;background:#f8fbfa}
.ai-feature-routing>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #e1ebe7;background:linear-gradient(112deg,#fff,#eef8f4)}
.ai-feature-routing-title{display:flex;align-items:flex-start;gap:12px;min-width:0}.ai-feature-routing-title>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;color:#087b60;background:#e2f3ec;font-size:19px}.ai-feature-routing-title>div{display:grid;gap:2px}.ai-feature-routing-title small{color:#079774;font-size:8px;font-weight:850;letter-spacing:.1em}.ai-feature-routing-title h3{margin:0;color:#244238;font-size:15px}.ai-feature-routing-title p{max-width:680px;margin:2px 0 0;color:#73877f;font-size:9px;line-height:1.6}
.ai-feature-routing-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.ai-feature-routing-actions>span{color:#72867e;font-size:9px}.ai-feature-routing-actions button{height:36px;padding:0 14px;font-size:10px}.ai-feature-routing-actions button:disabled{opacity:.48;cursor:not-allowed;transform:none}
.ai-routing-precedence{display:flex;align-items:center;gap:6px;padding:10px 20px;border-bottom:1px solid #e5edea;color:#71837c;background:#fff;font-size:8px}.ai-routing-precedence>span{margin-right:4px;color:#87968f}.ai-routing-precedence b{padding:4px 7px;border-radius:7px;color:#47665c;background:#edf5f2;font-size:8px}.ai-routing-precedence i{color:#9aaba5;font-size:9px}
.ai-feature-list{display:grid;gap:15px;padding:17px}.ai-feature-group{display:grid;gap:8px}.ai-feature-group>h4{margin:0;color:#657a72;font-size:9px;letter-spacing:.06em}.ai-feature-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ai-feature-card{display:grid;gap:10px;min-width:0;padding:13px;border:1px solid #e0e9e6;border-radius:13px;background:#fff;transition:.16s}.ai-feature-card.is-configured{border-color:#badbce;box-shadow:0 4px 14px rgba(17,92,70,.045)}.ai-feature-card>header{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px}.ai-feature-card>header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#148168;background:#e9f6f1}.ai-feature-card>header>div{display:grid;gap:2px;min-width:0}.ai-feature-card>header b{color:#2b443b;font-size:10px}.ai-feature-card>header small{color:#82918b;font-size:8px;line-height:1.45}.ai-feature-card>label{display:grid;gap:5px;color:#526a61;font-size:8.5px;font-weight:780}.ai-feature-card>label select{width:100%;height:34px;padding:0 28px 0 9px;border:1px solid #dbe6e2;border-radius:9px;outline:0;color:#40594f;background:#fbfcfc;font-size:9px}.ai-feature-card>label select:focus{border-color:#6eb19e;box-shadow:0 0 0 3px rgba(7,151,116,.07)}
.ai-feature-switch{position:relative!important;display:grid!important;grid-template-columns:30px!important;justify-items:center;gap:2px!important;color:#778a83!important;cursor:pointer}.ai-feature-switch input{position:absolute;opacity:0}.ai-feature-switch i{position:relative;width:30px;height:17px;border-radius:999px;background:#cad7d2;transition:.18s}.ai-feature-switch i:after{content:'';position:absolute;left:3px;top:3px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.15);transition:.18s}.ai-feature-switch input:checked+i{background:#079774}.ai-feature-switch input:checked+i:after{transform:translateX(13px)}.ai-feature-switch em{font-size:7px;font-style:normal;font-weight:700;white-space:nowrap}
.ai-feature-card details{border-top:1px dashed #e2eae7;padding-top:8px}.ai-feature-card summary{display:grid;grid-template-columns:1fr auto 12px;align-items:center;gap:6px;color:#526a61;cursor:pointer;list-style:none;font-size:8.5px;font-weight:780}.ai-feature-card summary::-webkit-details-marker{display:none}.ai-feature-card summary>span{display:flex;align-items:center;gap:5px}.ai-feature-card summary>small{color:#899891;font-size:7.5px;font-weight:500}.ai-feature-card details[open] summary>i{transform:rotate(180deg)}.ai-feature-card details textarea{width:100%;min-height:76px;margin-top:8px;padding:9px 10px;border:1px solid #dce7e3;border-radius:9px;outline:0;resize:vertical;color:#40584f;background:#fbfcfc;font-size:9px;line-height:1.6}.ai-feature-card details textarea:focus{border-color:#6eb19e;background:#fff;box-shadow:0 0 0 3px rgba(7,151,116,.07)}.ai-feature-card details p{display:flex;align-items:center;gap:5px;margin:6px 0 0;color:#899891;font-size:7.5px}
@media(max-width:980px){.ai-feature-group>div{grid-template-columns:1fr}}
@media(max-width:620px){.ai-feature-routing{margin:12px}.ai-feature-routing>header{align-items:flex-start;flex-direction:column}.ai-feature-routing-actions{width:100%;justify-content:space-between}.ai-routing-precedence{overflow-x:auto;white-space:nowrap}.ai-feature-list{padding:12px}.ai-feature-card>header{grid-template-columns:34px minmax(0,1fr)}.ai-feature-switch{grid-column:1/-1!important;grid-template-columns:30px auto!important;justify-self:end;align-items:center}}

/* 人员身份：列表只展示结论，复杂设置按人展开，避免行尾堆叠开关/下拉/输入框。 */
.identity-person{grid-template-columns:38px minmax(0,1fr) auto;padding:11px 12px;align-items:center}.identity-person.is-editing{border-color:#93c8b7;background:#fbfefd;box-shadow:0 7px 22px rgba(19,92,71,.07)}
.identity-person-main header .ut-badge{flex:0 0 auto}.identity-person-status{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:210px}.identity-person-status>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:31px;padding:0 10px;border:1px solid #d8e5e0;border-radius:8px;color:#45655a;background:#f8fbfa;font-size:8.5px;font-weight:780;transition:.16s}.identity-person-status>button:hover{border-color:#8ebfae;color:#087b60;background:#f0faf6}.identity-person-status>.identity-person-fixed{justify-content:flex-end;white-space:nowrap}
.identity-person-editor{grid-column:1/-1;display:grid;gap:12px;margin:1px -2px -2px;padding:14px;border:1px solid #dce9e4;border-radius:12px;background:#f5faf8}.identity-person-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.identity-person-editor>header>div{display:grid;gap:2px}.identity-person-editor>header b{color:#29493e;font-size:10px}.identity-person-editor>header small{color:#7d8f88;font-size:8px;line-height:1.5}.identity-person-editor>header>span{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:999px;color:#8b6128;background:#fff0d8;font-size:7.5px;font-weight:780;white-space:nowrap}
.identity-role-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.identity-role-options label{position:relative;min-width:0;cursor:pointer}.identity-role-options input{position:absolute;opacity:0}.identity-role-options label>span{display:grid;grid-template-columns:29px minmax(0,1fr);align-items:center;gap:1px 8px;min-height:54px;padding:9px;border:1px solid #dce7e3;border-radius:10px;background:#fff;transition:.16s}.identity-role-options label>span>i{grid-row:1/3;display:grid;place-items:center;width:29px;height:29px;border-radius:8px;color:#6a8078;background:#edf3f1;font-size:14px}.identity-role-options b{overflow:hidden;color:#40584f;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.identity-role-options small{overflow:hidden;color:#8a9993;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.identity-role-options input:checked+span{border-color:#70b39f;background:#f2faf7;box-shadow:0 0 0 2px rgba(7,151,116,.06)}.identity-role-options input:checked+span>i{color:#087b60;background:#ddf1ea}
.identity-editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.identity-editor-fields label{display:grid;grid-template-columns:minmax(110px,.65fr) minmax(150px,1.35fr);align-items:center;gap:10px;padding:9px 10px;border:1px solid #e0e9e6;border-radius:10px;background:#fff}.identity-editor-fields label>span{display:grid;gap:1px;color:#496158;font-size:8.5px;font-weight:780}.identity-editor-fields label small{color:#8b9994;font-size:7px;font-weight:500}.identity-editor-fields input,.identity-editor-fields select{width:100%;min-width:0;height:32px;padding:0 9px;border:1px solid #dce6e2;border-radius:8px;outline:0;color:#425a51;background:#fbfcfc;font-size:8.5px}.identity-editor-fields input:focus,.identity-editor-fields select:focus{border-color:#72b29f;background:#fff;box-shadow:0 0 0 3px rgba(7,151,116,.06)}
@media(max-width:760px){.identity-person{grid-template-columns:38px minmax(0,1fr)}.identity-person-status{grid-column:1/-1;justify-content:space-between;min-width:0}.identity-role-options{grid-template-columns:1fr}.identity-editor-fields{grid-template-columns:1fr}.identity-editor-fields label{grid-template-columns:1fr}.identity-person-editor{grid-column:1/-1}}

/* Provider-aware AI presets */
.ai-preset-editor select,.ai-preset-editor textarea{width:100%;min-width:0;border:1px solid #dce7e3;border-radius:10px;outline:0;color:#354e45;background:#fff;transition:.18s}
.ai-preset-editor select{height:42px;padding:0 34px 0 11px}.ai-preset-editor textarea{padding:11px 12px;resize:vertical}
.ai-preset-editor select:focus,.ai-preset-editor textarea:focus{border-color:#60ac96;box-shadow:0 0 0 3px rgba(7,151,116,.08)}
.provider-guide{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;padding:10px 11px;border:1px solid #d9e9e3;border-radius:11px;background:linear-gradient(110deg,#fff,#f1f9f6)}
.provider-guide>span{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:#087b60;background:#e4f4ee;font-size:18px}.provider-guide>div{display:grid;gap:2px}.provider-guide b{color:#304c42;font-size:10px}.provider-guide small{color:#778b83;font-size:8.5px;line-height:1.5}
.provider-fields{display:grid;gap:10px}.provider-chip{display:inline-flex;margin-right:6px;padding:2px 6px;border-radius:999px;color:#08785f;background:#e7f5ef;font-size:7.5px;font-weight:800;vertical-align:1px}
.ai-preset-editor .editor-check-line.hidden{display:none!important}
.preset-model-icon.provider-fastgpt{color:#2d72a8;background:#eaf4fb}.preset-model-icon.provider-dify{color:#7758b5;background:#f1edfb}
.preset-test.is-loading i{animation:spin .9s linear infinite}.preset-row-actions{flex-wrap:wrap}

/* Mobile navigation and adaptive shell */
.sidebar-scrim,.mobile-bottom-nav{display:none}
@media(max-width:900px){
  .app-shell{display:block}.main{width:100%;min-width:0}
  .sidebar{position:fixed!important;inset:0 auto 0 0!important;left:0!important;width:min(82vw,278px)!important;height:100dvh!important;padding-top:calc(18px + env(safe-area-inset-top));padding-bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-105%);transition:transform .24s ease;box-shadow:18px 0 50px rgba(18,49,40,.2);z-index:82}
  .sidebar.open{transform:translateX(0)}.sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}.sidebar-health{flex:0 0 auto}
  .sidebar-scrim{position:fixed;inset:0;z-index:81;display:block;border:0;background:rgba(15,35,29,.34);opacity:0;pointer-events:none;transition:opacity .2s}.sidebar-scrim.open{opacity:1;pointer-events:auto}.nav-drawer-open{overflow:hidden}
  .menu-button{display:inline-grid!important;place-items:center;flex:0 0 42px;width:42px;height:42px;border-color:#dbe7e2;color:#41675b;background:#fff}
  .topbar{height:64px;padding:0 12px;gap:10px}.topbar-title{display:flex!important;min-width:0;flex:1}.topbar-title #breadcrumb{display:none}.topbar-title h2{overflow:hidden;margin:0;font-size:clamp(15px,4.2vw,18px);text-overflow:ellipsis;white-space:nowrap}
  .top-actions{margin-left:0}.command-button{display:none}.user-cluster{padding-left:0;border-left:0}.topbar .quiet-button{width:40px;padding:0}.topbar .quiet-button span{display:none}
  .content{padding:clamp(14px,3.5vw,22px) clamp(11px,3.2vw,18px) calc(92px + env(safe-area-inset-bottom))}
  .mobile-bottom-nav{position:fixed;left:8px;right:8px;bottom:calc(7px + env(safe-area-inset-bottom));z-index:70;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));min-height:60px;padding:5px;border:1px solid rgba(205,225,217,.92);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 12px 34px rgba(25,64,51,.17);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .mobile-bottom-nav button{position:relative;display:grid;place-items:center;align-content:center;gap:2px;min-width:0;min-height:48px;padding:3px 1px;border:0;border-radius:13px;color:#778b83;background:transparent;font-size:9px;font-weight:750}.mobile-bottom-nav button i{font-size:19px}.mobile-bottom-nav button.active{color:#087b60;background:#eaf7f2}.mobile-bottom-nav button.active i{transform:translateY(-1px)}
  .mobile-nav-badge{position:absolute;top:3px;left:calc(50% + 7px);display:grid;place-items:center;min-width:15px;height:15px;padding:0 3px;border:2px solid #fff;border-radius:999px;color:#fff;background:#d94c4c;font-size:7px;font-style:normal}
  .welcome-row,.page-heading{align-items:stretch}.page-heading-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.page-heading-actions button{width:100%;min-width:0}
  .preset-directory-row{grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important}.preset-identity{grid-column:1/-1}.preset-connection{grid-column:1/-1;display:grid!important}.preset-state{display:flex!important;align-items:center;gap:7px}.preset-persona{display:none!important}.preset-row-actions{justify-content:flex-end}
  .ai-preset-editor{height:100dvh!important;max-height:100dvh!important}.ai-preset-editor .editor-modal-foot{padding-bottom:calc(13px + env(safe-area-inset-bottom))}
}
@media(max-width:520px){
  .topbar{height:58px}.topbar .user-cluster{display:none}.topbar #logoutButton{width:38px;height:38px}.content{padding-top:12px}
  .mobile-bottom-nav{left:5px;right:5px;bottom:calc(4px + env(safe-area-inset-bottom));min-height:58px;border-radius:16px}.mobile-bottom-nav button{min-height:46px;font-size:8px}.mobile-bottom-nav button i{font-size:18px}
  .welcome-row h1,.page-heading h1{font-size:clamp(20px,6vw,24px)}.page-heading p{line-height:1.6}.panel{border-radius:14px}
  .preset-directory-row{margin:0 10px 9px!important;padding:12px!important}.preset-row-actions .row-action{min-width:72px}.preset-row-actions .icon-row-button{width:36px;height:36px}
  .provider-guide{grid-template-columns:32px minmax(0,1fr)}.provider-guide>span{width:32px;height:32px}.provider-fields .form-grid{grid-template-columns:1fr}
}
@media(max-width:360px){.mobile-bottom-nav button span{font-size:7.5px}.mobile-bottom-nav button i{font-size:17px}.topbar{padding-inline:8px;gap:7px}.menu-button{width:38px;height:38px;flex-basis:38px}.topbar #logoutButton{width:36px;height:36px}}

/* Native AI Agent assistant: same visual language as the authenticated workspace. */
.agent-launcher{
  display:flex;align-items:center;gap:9px;height:42px;padding:5px 11px 5px 6px;border:1px solid #d5e7e0;border-radius:12px;
  color:#31584b;background:linear-gradient(135deg,#f7fcfa,#edf8f4);box-shadow:0 5px 16px rgba(20,85,65,.055);transition:.18s
}
.agent-launcher:hover,.agent-launcher[aria-expanded="true"]{border-color:#acd4c6;color:#006e57;background:#e8f6f1;box-shadow:0 7px 20px rgba(0,115,88,.1);transform:translateY(-1px)}
.agent-launcher-mark{position:relative;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#fff;background:linear-gradient(145deg,#079774,#006f58);box-shadow:0 6px 13px rgba(0,117,89,.2);font-size:15px}
.agent-launcher-mark em{position:absolute;right:-2px;bottom:-2px;width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#35c695;box-shadow:0 0 0 2px rgba(53,198,149,.13)}
.agent-launcher-copy{display:grid;gap:1px;text-align:left}.agent-launcher-copy b{font-size:11px;line-height:1.15}.agent-launcher-copy small{color:#748981;font-size:8px;line-height:1.15}
.agent-assistant-scrim{position:fixed;inset:0;z-index:87;background:rgba(18,45,36,.12);opacity:0;pointer-events:none;transition:opacity .2s ease}
.agent-assistant-scrim.is-open{opacity:1}
.agent-assistant-panel{
  position:fixed;top:94px;right:18px;z-index:88;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:clamp(390px,32vw,450px);
  height:min(760px,calc(100dvh - 112px));overflow:hidden;border:1px solid rgba(192,216,208,.92);border-radius:20px;color:#243b33;background:#fff;
  box-shadow:0 26px 80px rgba(15,50,39,.2),0 3px 12px rgba(15,50,39,.08);opacity:0;transform:translateY(12px) scale(.985);transform-origin:top right;
  pointer-events:none;transition:opacity .2s ease,transform .2s ease
}
.agent-assistant-panel.is-open{opacity:1;transform:none;pointer-events:auto}
.agent-assistant-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:70px;padding:12px 13px 11px 14px;border-bottom:1px solid #e2ece8;background:linear-gradient(115deg,#fff,#f0f9f6)}
.agent-assistant-brand{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#fff;background:linear-gradient(145deg,#099b77,#006b55);box-shadow:0 8px 18px rgba(0,115,88,.18);font-size:18px}
.agent-assistant-head>div:nth-child(2){display:grid;gap:2px;min-width:0}.agent-assistant-status{display:flex;align-items:center;gap:5px;color:#5c8f7f;font-size:7.5px;font-weight:850;letter-spacing:.11em}.agent-assistant-status i{width:6px;height:6px;border-radius:50%;background:#27bc8c;box-shadow:0 0 0 3px rgba(39,188,140,.1)}
.agent-assistant-panel[data-connection="loading"] .agent-assistant-status i{background:#d2983c;box-shadow:0 0 0 3px rgba(210,152,60,.11);animation:agentStatusPulse 1.2s ease-in-out infinite}.agent-assistant-panel[data-connection="error"] .agent-assistant-status{color:#b46666}.agent-assistant-panel[data-connection="error"] .agent-assistant-status i{background:#cb5555;box-shadow:0 0 0 3px rgba(203,85,85,.1)}
.agent-assistant-head h2{margin:0;color:#19362c;font-size:14px;letter-spacing:-.01em}
.agent-assistant-actions{display:flex;align-items:center;gap:4px}.agent-assistant-actions button,.agent-assistant-actions a{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;color:#658078;background:transparent;font-size:16px;text-decoration:none;transition:.16s}.agent-assistant-actions button:hover,.agent-assistant-actions a:hover{color:#08775e;background:#e7f4ef}.agent-assistant-actions button:focus-visible,.agent-assistant-actions a:focus-visible{outline:3px solid rgba(0,135,106,.18);outline-offset:1px}
.agent-assistant-body{position:relative;min-height:0;overflow:hidden;background:#f5f8f7}.agent-assistant-body iframe{display:block;width:100%;height:100%;border:0;background:#f5f8f7;opacity:0;transition:opacity .24s}.agent-assistant-panel.is-ready .agent-assistant-body iframe{opacity:1}
.agent-assistant-loading,.agent-assistant-error{position:absolute;inset:0;z-index:2;display:grid;place-content:center;justify-items:center;gap:7px;padding:28px;color:#496159;text-align:center;background:linear-gradient(145deg,#f8fbfa,#eef6f3)}
.agent-assistant-loading>span,.agent-assistant-error>span{display:grid;place-items:center;width:48px;height:48px;margin-bottom:5px;border-radius:15px;color:#08775e;background:#e0f2eb;font-size:20px}.agent-assistant-loading>span{animation:agentBreathe 1.6s ease-in-out infinite}.agent-assistant-loading b,.agent-assistant-error b{font-size:12px}.agent-assistant-loading small,.agent-assistant-error small{color:#82918c;font-size:9px}.agent-assistant-error button{display:flex;align-items:center;gap:6px;margin-top:7px;padding:9px 13px;border:1px solid #c8e0d7;border-radius:9px;color:#08755d;background:#fff;font-size:10px;font-weight:800}
.agent-assistant-foot{display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;border-top:1px solid #e6edea;color:#81908b;background:#fbfcfc;font-size:8px}.agent-assistant-foot i{color:#4e9b83;font-size:12px}
@keyframes agentBreathe{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(0,135,106,.08)}50%{transform:scale(1.05);box-shadow:0 0 0 9px rgba(0,135,106,0)}}
@keyframes agentStatusPulse{0%,100%{opacity:.45}50%{opacity:1}}
@media(max-width:900px){
  .agent-launcher{width:42px;padding:5px}.agent-launcher-copy{display:none}.agent-launcher-mark{width:30px;height:30px}
  .agent-assistant-scrim{z-index:90;background:rgba(13,38,30,.38);pointer-events:auto}.agent-assistant-panel{inset:8px;top:8px;right:8px;z-index:91;width:auto;height:auto;max-height:none;border-radius:18px;transform:translateY(18px) scale(.99);transform-origin:center bottom}
  .agent-assistant-open{overflow:hidden}.agent-assistant-open .mobile-bottom-nav{transform:translateY(130%);pointer-events:none}
}
@media(max-width:520px){
  .agent-launcher{width:38px;height:38px;padding:4px;border-radius:10px}.agent-launcher-mark{width:28px;height:28px;border-radius:8px}
  .agent-assistant-panel{inset:0;top:0;right:0;border:0;border-radius:0}.agent-assistant-head{min-height:calc(65px + env(safe-area-inset-top));padding-top:calc(10px + env(safe-area-inset-top));padding-inline:11px}.agent-assistant-foot{min-height:calc(34px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
  .agent-assistant-actions{gap:1px}.agent-assistant-actions button,.agent-assistant-actions a{width:32px;height:32px}
}
@media(prefers-reduced-motion:reduce){.agent-assistant-panel,.agent-assistant-scrim,.agent-assistant-body iframe{transition:none}.agent-assistant-loading>span{animation:none}}

/* Correct mobile table labels and keep every desktop action available. */
@media(max-width:760px){
  #contactRows td:nth-child(1):before{content:"联系人"}#contactRows td:nth-child(2):before{content:"类型"}#contactRows td:nth-child(3):before{content:"用户 ID"}#contactRows td:nth-child(4):before{content:"AI 预设"}#contactRows td:nth-child(5):before{content:"状态"}#contactRows td:nth-child(6):before{content:"同步时间"}#contactRows td:nth-child(7):before{content:"操作"}
  #roomRows td:nth-child(1):before{content:"群聊"}#roomRows td:nth-child(2):before{content:"成员"}#roomRows td:nth-child(3):before{content:"会话 ID"}#roomRows td:nth-child(4):before{content:"AI 预设"}#roomRows td:nth-child(5):before{content:"状态"}#roomRows td:nth-child(6):before{content:"同步时间"}#roomRows td:nth-child(7):before{content:"操作"}
  #logRows td:nth-child(1):before{content:"时间"}#logRows td:nth-child(2):before{content:"方向"}#logRows td:nth-child(3):before{content:"类型"}#logRows td:nth-child(4):before{content:"会话对象"}#logRows td:nth-child(5):before{content:"名称"}#logRows td:nth-child(6):before{content:"会话 ID"}#logRows td:nth-child(7):before{content:"内容摘要"}#logRows td:nth-child(8):before{content:"耗时"}#logRows td:nth-child(9):before{content:"状态"}
  #taskRows td:nth-child(1):before{content:"任务"}#taskRows td:nth-child(2):before{content:"计划"}#taskRows td:nth-child(3):before{content:"对象"}#taskRows td:nth-child(4):before{content:"下次执行"}#taskRows td:nth-child(5):before{content:"安全状态"}#taskRows td:nth-child(6):before{content:"状态"}#taskRows td:nth-child(7):before{content:"操作"}
  :is(#contactRows,#roomRows,#logRows,#taskRows)>tr>td{display:grid!important}
}

/* Final shell overrides must stay last: older responsive/Agent blocks above are compatibility rules. */
@media(min-width:901px){
  .topbar{align-items:center;justify-content:flex-start!important;gap:0;padding-inline:32px}
  .topbar .menu-button{display:none!important}
  .topbar-title{display:grid!important;align-content:center;justify-items:start;gap:4px;min-width:130px;margin:0!important;padding:0!important}
  .topbar-title #breadcrumb,.topbar-title h2{display:block;margin:0;padding:0;line-height:1;transform:none}
  .topbar-title h2{line-height:1.18}
  .topbar .top-actions{margin-left:auto}
}
.agent-assistant-scrim{display:none!important;pointer-events:none!important}
.agent-launcher{position:fixed!important;right:22px!important;bottom:22px!important;z-index:89!important;display:grid!important;place-items:center!important;width:58px!important;height:58px!important;padding:0!important;border:1px solid rgba(177,211,199,.9)!important;border-radius:18px!important;color:#08775e!important;background:rgba(255,255,255,.96)!important;box-shadow:0 14px 36px rgba(13,73,55,.2),0 3px 9px rgba(13,73,55,.08)!important;backdrop-filter:blur(12px);transition:.18s!important}
.agent-launcher:hover,.agent-launcher[aria-expanded="true"]{border-color:#76b7a2!important;background:#f5fcf9!important;box-shadow:0 17px 42px rgba(13,73,55,.23)!important;transform:translateY(-2px)!important}
.agent-launcher-mark{display:grid!important;place-items:center!important;width:48px!important;height:48px!important;border-radius:14px!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important}.agent-launcher-mark img{display:block;width:45px;height:45px;object-fit:contain}.agent-launcher-mark em{right:1px;bottom:1px;width:9px;height:9px}
.agent-launcher-tooltip{position:absolute;right:68px;display:block;width:max-content;padding:7px 10px;border-radius:8px;color:#fff;background:#22473b;box-shadow:0 7px 18px rgba(18,55,43,.16);font-size:9px;font-weight:800;opacity:0;pointer-events:none;transform:translateX(5px);transition:.15s}.agent-launcher:hover .agent-launcher-tooltip,.agent-launcher:focus-visible .agent-launcher-tooltip{opacity:1;transform:none}
.agent-assistant-panel{inset:auto 22px 94px auto;top:auto;right:22px;bottom:94px;left:auto;width:430px!important;height:min(690px,calc(100dvh - 118px))!important;min-width:360px!important;min-height:420px!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;border:1px solid rgba(192,216,208,.92)!important;border-radius:20px!important;resize:both;transform:translateY(10px) scale(.985)!important;transform-origin:bottom right!important}
.agent-assistant-panel.is-open{transform:none!important}.agent-assistant-panel.is-dragging{transition:none!important;box-shadow:0 30px 90px rgba(15,50,39,.26),0 4px 14px rgba(15,50,39,.1)!important}
.agent-assistant-head{cursor:grab;touch-action:none;user-select:none}.agent-assistant-panel.is-dragging .agent-assistant-head{cursor:grabbing}.agent-assistant-head button,.agent-assistant-head a{cursor:pointer;touch-action:auto}
.agent-assistant-brand{overflow:hidden!important;color:inherit!important;background:#fff!important;box-shadow:0 7px 16px rgba(0,115,88,.13)!important}.agent-assistant-brand img{width:37px;height:37px;object-fit:contain}.agent-drag-hint{display:flex;align-items:center;gap:4px;color:#8a9993;font-size:7px}.agent-drag-hint i{font-size:9px}
@media(max-width:900px){
  .agent-launcher{right:13px!important;bottom:82px!important;width:52px!important;height:52px!important;border-radius:16px!important}.agent-launcher-mark{width:44px!important;height:44px!important}.agent-launcher-mark img{width:41px;height:41px}.agent-launcher-tooltip{display:none!important}
  .agent-assistant-panel{inset:auto 12px 146px auto;top:auto;right:12px;bottom:146px;left:auto;width:min(430px,calc(100vw - 24px))!important;height:min(70dvh,650px)!important;min-width:0!important;min-height:360px!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 80px)!important;border:1px solid rgba(192,216,208,.92)!important;border-radius:18px!important;resize:none;transform:translateY(12px) scale(.985)!important}
  .agent-assistant-panel.is-open{transform:none!important}.agent-assistant-open{overflow:auto!important}.agent-assistant-open .mobile-bottom-nav{transform:none!important;pointer-events:auto!important}
}
@media(max-width:520px){.agent-assistant-panel{inset:auto 8px 142px auto;right:8px;bottom:142px;width:calc(100vw - 16px)!important;height:66dvh!important;border-radius:16px!important}.agent-assistant-head{min-height:64px!important;padding-top:10px!important}.agent-assistant-foot{min-height:34px!important;padding-bottom:0!important}.agent-launcher{right:9px!important;bottom:75px!important}}
.agent-launcher{cursor:grab;touch-action:none;user-select:none}.agent-launcher.is-dragging{cursor:grabbing!important;transition:none!important;transform:none!important;box-shadow:0 20px 46px rgba(13,73,55,.26),0 4px 12px rgba(13,73,55,.1)!important}.agent-launcher[data-dragged="true"]:hover{transform:none!important}

/* Auditable insight analysis: mirrors the compact mint cards used by 智能事项. */
.insight-actions .insight-calibrate-action{border-color:#d8d1ef;color:#7158a4;background:#faf8ff}.insight-actions .insight-calibrate-action:hover{border-color:#b9a9df;color:#5f4299;background:#f3effd}
.intent-calibration-modal-card{display:block;width:min(1180px,calc(100vw - 32px));max-height:min(92dvh,940px);padding:0;overflow:auto;border:1px solid #d6e7e1;border-radius:22px;background:#f5f9f7;box-shadow:0 30px 100px rgba(19,65,50,.24)}
.intent-calibration-modal-card>.modal-close{top:18px;right:18px;z-index:8}.intent-calibration-head{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:14px;padding:22px 62px 19px 22px;border-bottom:1px solid #dce9e4;background:linear-gradient(135deg,#effaf6 0%,#fff 72%)}
.intent-calibration-head>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#08765d;background:#dff3eb;font-size:21px}.intent-calibration-head>div{display:grid;gap:3px}.intent-calibration-head h2{margin:0;color:#203f35;font-size:20px}.intent-calibration-head p{margin:0;max-width:760px;color:#70847d;font-size:10px;line-height:1.55}.intent-calibration-head>em{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:9px;color:#08765d;background:#e9f7f2;font-size:8px;font-style:normal;font-weight:800}
.intent-calibration-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:14px 18px 0}.intent-calibration-metrics article{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:12px 13px;border:1px solid #dce9e4;border-radius:13px;background:#fff}.intent-calibration-metrics small{color:#7d9089;font-size:8px}.intent-calibration-metrics strong{grid-row:1/3;grid-column:2;color:#08765d;font-size:22px;line-height:1}.intent-calibration-metrics span{color:#9aa7a2;font-size:7.5px}
.intent-calibration-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:12px;padding:14px 18px}.intent-calibration-source,.intent-calibration-form{min-width:0;border:1px solid #d9e8e3;border-radius:16px;background:#fff;overflow:hidden}.intent-calibration-source>header,.intent-calibration-form>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #e3ece9;background:#f9fcfb}.intent-calibration-source>header>div,.intent-calibration-form>header>div{display:grid;gap:2px}.intent-calibration-source>header b,.intent-calibration-form>header b{color:#294a3f;font-size:11px}.intent-calibration-source>header small,.intent-calibration-form>header small{color:#86968f;font-size:8px}.intent-calibration-source>header>span,.intent-calibration-form>header>span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:8px;color:#08765d;background:#eaf7f2;font-size:8px;font-weight:800}
.intent-calibration-conversation{display:flex;align-items:center;gap:8px;margin:11px 12px;padding:0 11px;border:1px solid #d8e6e1;border-radius:11px;background:#fbfdfc}.intent-calibration-conversation i{color:#0a8065;font-size:16px}.intent-calibration-conversation select{width:100%;height:40px;border:0!important;background:transparent!important;color:#315248;font-size:10px;font-weight:750;outline:0}
.intent-calibration-messages{display:grid;gap:7px;max-height:480px;padding:0 12px 12px;overflow:auto}.intent-calibration-message{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:9px;padding:10px 11px;border:1px solid #e0ebe7;border-radius:12px;background:#fbfdfc;cursor:pointer;transition:.16s ease}.intent-calibration-message:hover{border-color:#b8d6cb;background:#f5fbf8}.intent-calibration-message.is-selected{border-color:#69b49e;background:#eef9f5;box-shadow:0 0 0 2px rgba(37,149,116,.08)}.intent-calibration-message.is-out{margin-left:28px}.intent-calibration-message.is-disabled{opacity:.55;cursor:not-allowed}.intent-calibration-message>input{position:absolute;opacity:0;pointer-events:none}.intent-calibration-check{display:grid;place-items:center;width:19px;height:19px;margin-top:1px;border:1px solid #bdd1ca;border-radius:6px;color:transparent;background:#fff;font-size:12px}.intent-calibration-message.is-selected .intent-calibration-check{border-color:#0a8d6c;color:#fff;background:#0a8d6c}.intent-calibration-message>div{display:grid;gap:5px;min-width:0}.intent-calibration-message header{display:flex;align-items:center;justify-content:space-between;gap:10px}.intent-calibration-message header b{overflow:hidden;color:#315047;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.intent-calibration-message header small{color:#95a39e;font-size:7px}.intent-calibration-message p{margin:0;color:#526a62;font-size:9px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.intent-calibration-message footer{display:flex;flex-wrap:wrap;gap:5px}.intent-calibration-message footer em{padding:3px 6px;border-radius:6px;color:#6d817a;background:#edf3f1;font-size:7px;font-style:normal}.intent-calibration-message footer em.action{color:#08765d;background:#e6f5ef}.intent-calibration-message footer em.feedback,.intent-calibration-message footer em.risk{color:#a25337;background:#fff0e8}
.intent-calibration-form{display:grid;align-content:start;padding-bottom:14px}.intent-calibration-form>header{margin-bottom:11px}.intent-calibration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 13px}.intent-calibration-form label{display:grid;gap:5px;color:#5f756d;font-size:8px;font-weight:750}.intent-calibration-form>label{margin:10px 13px 0}.intent-calibration-form input,.intent-calibration-form select,.intent-calibration-form textarea{width:100%;border:1px solid #d7e5e0;border-radius:10px;background:#fbfdfc;color:#304e45;font-size:9px;outline:0}.intent-calibration-form input,.intent-calibration-form select{height:38px;padding:0 10px}.intent-calibration-form textarea{min-height:104px;padding:10px;line-height:1.55;resize:vertical}.intent-calibration-form input:focus,.intent-calibration-form select:focus,.intent-calibration-form textarea:focus{border-color:#79b7a4;box-shadow:0 0 0 3px rgba(27,144,109,.09)}.intent-calibration-form label.is-disabled{opacity:.45}.intent-calibration-impact{display:flex;gap:10px;margin:11px 13px;padding:10px 11px;border:1px solid #d9e9e3;border-radius:11px;background:#f3faf7}.intent-calibration-impact>i{color:#08765d;font-size:18px}.intent-calibration-impact>div{display:grid;gap:2px}.intent-calibration-impact b{color:#315249;font-size:9px}.intent-calibration-impact p{margin:0;color:#788a84;font-size:8px;line-height:1.5}.intent-calibration-form>button{justify-self:end;margin:0 13px;min-height:39px;padding:0 17px;border-radius:10px;font-size:9px;font-weight:850}
.intent-calibration-empty{display:flex;align-items:center;justify-content:center;gap:8px;min-height:110px;color:#81928c;font-size:9px}.intent-calibration-empty i{font-size:18px}.intent-calibration-empty.is-loading i{animation:spin .8s linear infinite}.intent-calibration-recent{margin:0 18px 14px;border:1px solid #d9e8e3;border-radius:15px;background:#fff;overflow:hidden}.intent-calibration-recent>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #e3ece9;background:#fafcfb}.intent-calibration-recent>header>div{display:grid;gap:2px}.intent-calibration-recent>header b{color:#315047;font-size:10px}.intent-calibration-recent>header small{color:#879790;font-size:8px}.intent-calibration-recent>header>span{color:#755aa8;font-size:8px;font-weight:800}.intent-calibration-recent>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px}.intent-calibration-recent article{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;padding:9px;border:1px solid #e4ece9;border-radius:10px;background:#fbfdfc}.intent-calibration-recent article>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#755aa8;background:#f0ecfa;font-size:14px}.intent-calibration-recent article>div{display:grid;gap:3px;min-width:0}.intent-calibration-recent article header{display:flex;align-items:center;gap:6px}.intent-calibration-recent article b{overflow:hidden;color:#37554c;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.intent-calibration-recent article em{padding:2px 5px;border-radius:5px;color:#08765d;background:#e8f5f0;font-size:6.5px;font-style:normal}.intent-calibration-recent article p{margin:0;color:#6f817b;font-size:7.5px;line-height:1.45}.intent-calibration-recent article small{color:#9aa6a2;font-size:6.8px}.intent-calibration-modal-card>footer{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 18px;border-top:1px solid #dce9e4;background:rgba(255,255,255,.97);backdrop-filter:blur(14px)}.intent-calibration-modal-card>footer>span{display:flex;align-items:center;gap:6px;color:#71877f;font-size:8px}.intent-calibration-modal-card>footer>span i{color:#0a8065}.intent-calibration-modal-card>footer button{min-height:36px;padding:0 16px;border-radius:10px;font-size:9px;font-weight:800}
@media(max-width:900px){.intent-calibration-head{grid-template-columns:42px 1fr}.intent-calibration-head>em{display:none}.intent-calibration-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.intent-calibration-workspace{grid-template-columns:1fr}.intent-calibration-messages{max-height:42dvh}.intent-calibration-recent>div{grid-template-columns:1fr}}
@media(max-width:560px){.intent-calibration-modal-card{width:calc(100vw - 12px);max-height:94dvh;border-radius:17px}.intent-calibration-head{padding:18px 48px 15px 14px}.intent-calibration-head p{font-size:9px}.intent-calibration-metrics,.intent-calibration-workspace{padding-left:9px;padding-right:9px}.intent-calibration-grid{grid-template-columns:1fr}.intent-calibration-message.is-out{margin-left:12px}.intent-calibration-recent{margin-left:9px;margin-right:9px}.intent-calibration-modal-card>footer>span{display:none}.intent-calibration-modal-card>footer button{width:100%}}
.insight-actions .insight-analysis-action{border-color:#cfe3dc;color:#08765d;background:#f5fbf9}.insight-actions .insight-analysis-action:hover{border-color:#8ec3b2;color:#006e57;background:#eaf7f2}
.insight-trace-modal-card{display:block;width:min(860px,calc(100vw - 32px));max-height:min(88dvh,820px);padding:0;overflow:auto;border:1px solid #d8e8e2;border-radius:20px;background:#f8fbfa;box-shadow:0 28px 90px rgba(23,63,50,.22)}
.insight-trace-modal-card>.modal-close{top:18px;right:18px;z-index:2}
.insight-trace-head{display:flex;align-items:center;gap:13px;padding:22px 58px 18px 22px;border-bottom:1px solid #e2ece8;background:linear-gradient(135deg,#f3fbf8,#fff)}
.insight-trace-head>span{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;color:#08765d;background:#def3eb;font-size:19px}.insight-trace-head>div{display:grid;gap:3px}.insight-trace-head h2{margin:0;color:#213f36;font-size:19px;line-height:1.25}.insight-trace-head p{margin:0;color:#7b8d87;font-size:10px}.insight-trace-head .section-kicker{color:#159174;font-size:8px}
.insight-trace-verdict{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;margin:16px 18px 12px;padding:14px 16px;border:1px solid #d7e8e2;border-radius:14px;background:#fff}.insight-trace-verdict>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:#08765d;background:#e5f5ef;font-size:19px}.insight-trace-verdict>div{display:grid;gap:2px}.insight-trace-verdict small{color:#789087;font-size:8px;font-weight:750}.insight-trace-verdict b{color:#23443a;font-size:14px}.insight-trace-verdict p{margin:2px 0 0;color:#657a72;font-size:10px;line-height:1.55}.insight-trace-verdict>em{padding:6px 9px;border-radius:9px;color:#08765d;background:#edf8f4;font-size:11px;font-style:normal;font-weight:850}.insight-trace-verdict.is-processing>span,.insight-trace-verdict.is-processing>em{color:#a56b12;background:#fff5df}.insight-trace-verdict.is-open>span,.insight-trace-verdict.is-open>em{color:#667a73;background:#eff4f2}.insight-trace-verdict.is-loading i{animation:spin .8s linear infinite}
.insight-trace-work{display:grid;gap:11px;margin:0 18px 14px;padding:14px;border:1px solid #d9e9e3;border-radius:15px;background:linear-gradient(145deg,#f3faf7,#fff)}.insight-trace-work>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.insight-trace-work>header>div{display:flex;align-items:center;gap:9px}.insight-trace-work>header>div>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#08765d;background:#dff2eb;font-size:16px}.insight-trace-work>header>div>div{display:grid;gap:2px}.insight-trace-work>header b{color:#29483e;font-size:11px}.insight-trace-work>header small{color:#80928b;font-size:8px}.insight-trace-work>header>em{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:8px;font-size:8px;font-style:normal;font-weight:800}.insight-trace-work>header>em.is-ready{color:#08765d;background:#e6f5ef}.insight-trace-work>header>em.is-blocked{color:#a65332;background:#fff0e8}.insight-work-loading{display:flex;align-items:center;justify-content:center;gap:7px;min-height:80px;color:#71857d;font-size:9px}.insight-work-loading i{animation:spin .8s linear infinite}
.insight-work-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.insight-work-metrics article{display:grid;gap:2px;min-width:0;padding:9px 10px;border:1px solid #e1ece8;border-radius:10px;background:#fff}.insight-work-metrics small{color:#8a9993;font-size:7.5px}.insight-work-metrics b{overflow:hidden;color:#335248;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.insight-work-metrics span{overflow:hidden;color:#82918c;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.insight-work-metrics article.is-overdue{border-color:#efcdcf;background:#fff9f9}.insight-work-metrics article.is-overdue b,.insight-work-metrics article.is-overdue span{color:#ae454b}.insight-work-metrics article.is-blocked{border-color:#efd6c7;background:#fffaf7}.insight-work-metrics article.is-blocked b{color:#a05232}
.insight-work-form{display:grid;grid-template-columns:minmax(130px,1fr) minmax(155px,1fr) minmax(180px,1.4fr) auto;align-items:end;gap:7px;padding:9px;border:1px solid #e0ebe7;border-radius:11px;background:#fff}.insight-work-form label{display:grid;gap:4px;min-width:0}.insight-work-form label>span{color:#6f827a;font-size:8px;font-weight:750}.insight-work-form input,.insight-work-form select,.insight-dependency-board form input,.insight-dependency-board form select{width:100%;height:33px;min-width:0;padding:0 9px;border:1px solid #dce8e4;border-radius:8px;outline:0;color:#435a52;background:#fbfdfc;font-size:8.5px}.insight-work-form input:focus,.insight-work-form select:focus,.insight-dependency-board form input:focus,.insight-dependency-board form select:focus{border-color:#74b4a2;box-shadow:0 0 0 3px rgba(7,151,116,.07)}.insight-work-form>button,.insight-dependency-board form button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:33px;padding:0 11px;border:1px solid #078c6d;border-radius:8px;color:#fff;background:#079774;font-size:8.5px;font-weight:800}.insight-work-form>button:disabled,.insight-dependency-board form button:disabled{opacity:.55}
.insight-dependency-board{display:grid;grid-template-columns:1fr 1fr;gap:8px}.insight-dependency-board>section{display:grid;align-content:start;gap:8px;min-width:0;padding:10px;border:1px solid #e1ebe8;border-radius:11px;background:#fff}.insight-dependency-board>section>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.insight-dependency-board>section>header>div{display:grid;gap:2px}.insight-dependency-board>section>header b{color:#36554b;font-size:9px}.insight-dependency-board>section>header small{color:#899892;font-size:7px}.insight-dependency-board>section>header>span{padding:3px 6px;border-radius:6px;color:#08765d;background:#eaf6f2;font-size:7px;font-weight:800}.insight-dependency-board>section>div{display:grid;gap:5px;max-height:145px;overflow:auto}.insight-dependency-board>section>div>p{margin:0;padding:11px;border-radius:8px;color:#879690;background:#f7faf9;text-align:center;font-size:8px}.insight-dependency-board article{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px;border:1px solid #e4ece9;border-radius:9px;background:#fbfdfc}.insight-dependency-board article>i{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;color:#4c8f7b;background:#e8f4f0}.insight-dependency-board article>span{display:grid;gap:2px;min-width:0}.insight-dependency-board article b{overflow:hidden;color:#3b574e;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.insight-dependency-board article small{overflow:hidden;color:#899690;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.insight-dependency-board article button{padding:4px 6px;border:1px solid #e2cfc5;border-radius:6px;color:#9c5739;background:#fff9f5;font-size:7px;font-weight:750}.insight-dependency-board article em{color:#6d9487;font-size:7px;font-style:normal}.insight-dependency-board article.is-active{border-color:#ecd8cd;background:#fffaf7}.insight-dependency-board article.is-active>i{color:#a75b38;background:#ffede3}.insight-dependency-board form{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto;gap:5px}.insight-dependency-board article.commitment-open>i{color:#a87524;background:#fff3d8}.insight-dependency-board article.commitment-resolved>i{color:#08765d;background:#e2f4ed}
.insight-trace-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 18px 14px}.insight-trace-stage{display:grid;grid-template-columns:28px 1fr;gap:10px;padding:12px;border:1px solid #e0eae6;border-radius:13px;background:#fff}.insight-trace-stage>span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;color:#08765d;background:#e6f5ef;font-size:10px;font-weight:850}.insight-trace-stage>div{min-width:0}.insight-trace-stage header{display:flex;align-items:center;justify-content:space-between;gap:8px}.insight-trace-stage header b{color:#29483e;font-size:11px}.insight-trace-stage header em{color:#159174;font-size:8px;font-style:normal}.insight-trace-stage p{margin:5px 0 0;color:#6e817a;font-size:9px;line-height:1.6}.insight-trace-stage dl{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 0}.insight-trace-stage dl div{display:flex;gap:4px;padding:4px 6px;border-radius:6px;background:#f2f7f5;font-size:8px}.insight-trace-stage dt{color:#899991}.insight-trace-stage dd{margin:0;color:#3b574e;font-weight:750}.insight-trace-stage.is-pending>span{color:#a56b12;background:#fff5df}.insight-trace-stage.is-pending header em{color:#a56b12}
.insight-trace-messages{margin:0 18px 16px;padding:14px;border:1px solid #dfeae6;border-radius:14px;background:#fff}.insight-trace-messages>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.insight-trace-messages>header>div{display:grid;gap:2px}.insight-trace-messages>header b{color:#29483e;font-size:11px}.insight-trace-messages>header small{color:#8a9993;font-size:8px}.insight-trace-messages>header>span{padding:4px 7px;border-radius:7px;color:#08765d;background:#edf8f4;font-size:8px;font-weight:800}#insightTraceMessageList{display:grid;gap:8px;max-height:270px;overflow:auto;padding-right:3px}
.insight-trace-message{padding:10px 11px;border:1px solid #e6eeeb;border-left:3px solid #cbd9d4;border-radius:10px;background:#fcfdfd}.insight-trace-message>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.insight-trace-message>header>div{display:flex;align-items:center;gap:6px}.insight-trace-message>header b{color:#345249;font-size:9px}.insight-trace-message>header span{padding:2px 5px;border-radius:5px;color:#71857d;background:#eef4f2;font-size:7px}.insight-trace-message>header time{color:#94a29d;font-size:7px}.insight-trace-message>p{margin:7px 0;color:#465e56;font-size:9px;line-height:1.55}.insight-trace-message>footer{display:flex;align-items:center;gap:7px}.insight-trace-message>footer>span{display:inline-flex;align-items:center;gap:4px;color:#536b63;font-size:8px;font-weight:750}.insight-trace-message>footer small{color:#87978f;font-size:8px}.insight-trace-message>footer em{margin-left:auto;padding:3px 6px;border-radius:6px;color:#08765d;background:#e4f5ee;font-size:7px;font-style:normal;font-weight:800}.insight-trace-message.tone-success{border-left-color:#16a17e;background:#f8fcfa}.insight-trace-message.tone-success>footer>span{color:#08765d}.insight-trace-message.tone-negative{border-left-color:#dc5f5f;background:#fffafa}.insight-trace-message.tone-negative>footer>span{color:#bd4141}.insight-trace-message.tone-pending{border-left-color:#d49a35;background:#fffdf8}.insight-trace-empty{padding:18px;color:#8a9993;text-align:center;font-size:9px}
.insight-trace-modal-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid #e2ece8;background:#fff}.insight-trace-modal-card>footer>span{display:flex;align-items:center;gap:5px;color:#82928c;font-size:8px}.insight-trace-modal-card>footer>span i{color:#159174}.insight-trace-modal-card>footer button{min-width:72px}
@media(max-width:720px){.insight-trace-modal-card{width:calc(100vw - 18px);max-height:90dvh;border-radius:16px}.insight-trace-stages{grid-template-columns:1fr}.insight-trace-verdict{grid-template-columns:38px 1fr}.insight-trace-verdict>em{grid-column:2;justify-self:start}.insight-work-metrics{grid-template-columns:1fr 1fr}.insight-work-form{grid-template-columns:1fr 1fr}.insight-work-form .insight-work-blocker{grid-column:1/-1}.insight-work-form>button{grid-column:1/-1}.insight-dependency-board{grid-template-columns:1fr}.insight-trace-modal-card>footer>span{display:none}.insight-trace-modal-card>footer{justify-content:flex-end}}
@media(max-width:480px){.insight-trace-work{margin:0 10px 10px;padding:10px}.insight-trace-work>header{align-items:flex-start;flex-direction:column}.insight-work-metrics,.insight-work-form{grid-template-columns:1fr}.insight-work-form .insight-work-blocker,.insight-work-form>button{grid-column:auto}.insight-dependency-board form{grid-template-columns:1fr}.insight-dependency-board form button{width:100%}}

/* Unified identity notes: one contact-level value, read-only for employees outside 人员与权限. */
#roomModal .member-note-editor{display:grid;gap:4px;min-width:0;color:#71867e;font-size:8px;font-weight:600}
#roomModal .member-note-editor>small,#roomModal .member-note-readonly>small{display:flex;align-items:center;gap:4px;overflow:hidden;color:#879791;font-size:7.5px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
#roomModal .member-note-editor>small i{color:#159174}
#roomModal .member-note-readonly{display:grid;gap:4px;min-width:0;padding:7px 9px;border:1px solid #e2ebe7;border-radius:9px;background:#f7faf9}
#roomModal .member-note-readonly>span{overflow:hidden;color:#6b7d76;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
#roomModal .member-note-readonly.has-note>span{color:#168267;font-weight:750}
#roomModal .member-note-readonly>small i{color:#659387}
.identity-note-chip{display:inline-flex!important;align-items:center;gap:4px;align-self:start;max-width:100%;margin-top:3px;padding:3px 7px;border-radius:7px;color:#14775f!important;background:#eaf6f1;font-size:8px!important;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.identity-note-chip i{flex:0 0 auto;color:#159174}
.identity-role-locked-note{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;padding:10px 11px;border:1px solid #dce9e4;border-radius:10px;background:#fff}
.identity-role-locked-note>i{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:#087b60;background:#e5f4ee;font-size:16px}
.identity-role-locked-note>span{display:grid;gap:2px}.identity-role-locked-note b{color:#3b574e;font-size:9px}.identity-role-locked-note small{color:#7f9089;font-size:8px;line-height:1.5}
.identity-editor-fields .identity-note-field:only-child{grid-column:1/-1}
.insight-identity-fact small{color:#168267!important}
.identity-note-inline{max-width:150px;padding:2px 5px;border-radius:5px;color:#14775f;background:#e8f5f0;font-size:7px;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Persistent AI/system audit records shown inside 分析思路. */
.insight-trace-records{margin:0 18px 12px;padding:14px;border:1px solid #dbe9e4;border-radius:14px;background:linear-gradient(145deg,#f5fbf8,#fff)}
.insight-trace-records>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.insight-trace-records>header>div{display:grid;gap:2px}.insight-trace-records>header b{color:#29483e;font-size:11px}.insight-trace-records>header small{color:#82938c;font-size:8px}.insight-trace-records>header>span{padding:4px 7px;border-radius:7px;color:#08765d;background:#e6f5ef;font-size:8px;font-weight:800}
#insightTraceRecordList{display:grid;gap:8px;max-height:310px;padding-right:3px;overflow:auto}
.insight-analysis-record{display:grid;grid-template-columns:31px minmax(0,1fr);gap:9px;padding:10px;border:1px solid #e1ebe7;border-radius:11px;background:#fff}
.insight-analysis-record>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#08765d;background:#e7f5f0;font-size:14px}.insight-analysis-record.phase-closure>span{color:#08765d;background:#ddf2ea}
.insight-analysis-record>div{display:grid;gap:4px;min-width:0}.insight-analysis-record header{display:flex;align-items:center;gap:6px;min-width:0}.insight-analysis-record header b{color:#2f5146;font-size:9px}.insight-analysis-record header em{padding:2px 5px;border-radius:5px;color:#667d74;background:#eef4f2;font-size:7px;font-style:normal}.insight-analysis-record header time{margin-left:auto;color:#91a09a;font-size:7px}
.insight-analysis-record h4{margin:0;color:#263f36;font-size:10px;line-height:1.45}.insight-analysis-record p{margin:0;color:#70827b;font-size:8.5px;line-height:1.55}.insight-analysis-record footer{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}.insight-analysis-record footer span{padding:3px 6px;border-radius:6px;color:#587068;background:#f1f6f4;font-size:7.5px}

/* Launcher children never steal a mouse drag from the fixed button. */
.agent-launcher>*{pointer-events:none!important}.agent-launcher img{-webkit-user-drag:none;user-select:none}.agent-launcher.is-dragging{will-change:left,top}
body.agent-launcher-drag-active{user-select:none!important}body.agent-launcher-drag-active::after{content:'';position:fixed;inset:0;z-index:88;cursor:grabbing;background:transparent}

/* 2026-08 workflow clarity and mobile ergonomics */
.mobile-work-command{display:none}
.work-mode-guide{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(500px,1.28fr);align-items:stretch;gap:12px;margin-bottom:15px;padding:13px;border:1px solid #d8e8e2;border-radius:16px;background:linear-gradient(118deg,#f5fbf8,#fff);box-shadow:0 7px 22px rgba(25,76,58,.045)}
.work-mode-guide>header{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:10px;padding:8px 9px}.work-mode-guide>header>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#08785f;background:#e0f3eb;font-size:18px}.work-mode-guide>header>div{display:grid;gap:2px}.work-mode-guide>header small{color:#148269;font-size:8px;font-weight:850;letter-spacing:.09em}.work-mode-guide>header b{color:#28463c;font-size:12px;line-height:1.45}.work-mode-guide>header p{margin:2px 0 0;color:#788a83;font-size:9px;line-height:1.55}
.work-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.work-mode-options>button{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;padding:10px 11px;border:1px solid #dfe9e5;border-radius:12px;color:#405a51;background:#fff;text-align:left;transition:.16s}.work-mode-options>button:hover:not(:disabled){border-color:#94c6b6;background:#f6fbf9;transform:translateY(-1px)}.work-mode-options>button:disabled{opacity:.48;cursor:not-allowed}.work-mode-options>button>i{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:#3f806d;background:#eaf5f1;font-size:17px}.work-mode-options>button>span{display:grid;gap:1px;min-width:0}.work-mode-options>button small{color:#81918b;font-size:7.5px}.work-mode-options>button b{color:#314e44;font-size:10.5px}.work-mode-options>button p{overflow:hidden;margin:2px 0 0;color:#80908a;font-size:8px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.work-mode-options>button>em{padding:4px 7px;border-radius:7px;color:#168068;background:#edf8f4;font-size:8px;font-style:normal;font-weight:800;white-space:nowrap}.work-mode-guide.service-active .work-mode-options>.service,.work-mode-guide.action-active .work-mode-options>.action{border-color:#82bfae;background:#edf8f4;box-shadow:inset 0 0 0 1px rgba(7,151,116,.05)}.work-mode-guide.service-active .work-mode-options>.service>i,.work-mode-guide.action-active .work-mode-options>.action>i{color:#fff;background:linear-gradient(145deg,#159c7a,#08735b)}
.work-mode-guide>footer{grid-column:1/-1;display:flex;align-items:center;gap:5px;padding:8px 10px;border-top:1px solid #e5eeeb;color:#71847d;font-size:8.5px}.work-mode-guide>footer i{color:#168269;font-size:13px}.work-mode-guide>footer b{color:#47645a}

.case-insight-section{display:grid;gap:9px;margin:13px 15px 0;padding-bottom:13px;border-bottom:1px solid #e8efec}.case-insight-section>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.case-insight-section>header>div{display:grid;gap:2px}.case-insight-section>header b{color:#395047;font-size:10px}.case-insight-section>header small{color:#87968f;font-size:8px}.case-insight-section>header>span{padding:3px 7px;border-radius:7px;color:#08765d;background:#e9f6f1;font-size:8px;font-weight:800}.case-insight-section>div{display:grid;gap:6px}.case-insight-section button{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:8px 9px;border:1px solid #dfeae6;border-radius:10px;color:#486158;background:#fbfdfc;text-align:left}.case-insight-section button:hover{border-color:#99c8b9;background:#f1faf6}.case-insight-section button>i{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#087b60;background:#e6f4ef}.case-insight-section button>span{display:grid;gap:2px;min-width:0}.case-insight-section button b{overflow:hidden;color:#36564b;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.case-insight-section button small{color:#84928d;font-size:7.5px}.case-insight-section button em{display:flex;align-items:center;gap:2px;color:#08765d;font-size:8px;font-style:normal;font-weight:800}.insight-actions .insight-case-action{border-color:#d7e3ef;color:#376f9e;background:#f5f9fd}.insight-actions .insight-case-action:hover{border-color:#9fc0db;color:#245f91;background:#edf6fc}.insight-card.is-focus-target{border-color:#35a383;box-shadow:0 0 0 4px rgba(7,151,116,.12),0 14px 30px rgba(24,89,68,.12);transition:.25s}

.security-password-card{width:min(510px,calc(100vw - 24px))!important;padding:0!important;gap:0!important;overflow:hidden;border:1px solid #d5e7e0;background:#fff;box-shadow:0 30px 90px rgba(18,57,44,.25)!important}.security-password-head{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:13px;padding:24px 58px 20px 24px;border-bottom:1px solid #e1ece8;background:linear-gradient(120deg,#f1faf6,#fff)}.security-password-head>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#fff;background:linear-gradient(145deg,#159d7b,#08715a);box-shadow:0 9px 20px rgba(7,133,103,.19);font-size:22px}.security-password-head>div{display:grid;gap:3px}.security-password-head small{color:#108269;font-size:8px;font-weight:850;letter-spacing:.09em}.security-password-head h2{margin:0!important;color:#213e34;font-size:20px!important;line-height:1.3;text-align:left!important}.security-password-head p{margin:2px 0 0!important;color:#71847d!important;font-size:10px!important;line-height:1.6!important;text-align:left!important}.security-password-fields{display:grid;gap:14px;padding:20px 24px 6px}.security-password-fields .password-field{display:grid!important;gap:7px;color:#3d574e;font-size:10px;font-weight:780}.password-input-shell{display:grid;grid-template-columns:20px minmax(0,1fr) 36px;align-items:center;min-height:46px;padding:0 5px 0 12px;border:1px solid #d6e4df;border-radius:12px;background:#fbfdfc;transition:.16s}.password-input-shell:focus-within{border-color:#64ad98;background:#fff;box-shadow:0 0 0 4px rgba(7,151,116,.08)}.password-input-shell>i{color:#6f9588;font-size:15px}.password-input-shell input{height:44px!important;padding:0 8px!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font-size:12px!important}.password-input-shell button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;color:#69827a;background:transparent;font-size:16px}.password-input-shell button:hover{color:#08765d;background:#e8f5f0}.password-safety-note{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:9px;margin:14px 24px 0;padding:10px 11px;border:1px solid #d8e9e3;border-radius:11px;color:#21745e;background:#f2faf7}.password-safety-note>i{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#dff2ea;font-size:14px}.password-safety-note>span{display:grid;gap:2px}.password-safety-note b{font-size:9px}.password-safety-note small{color:#74877f;font-size:8px;line-height:1.45}.password-safety-note.warning{border-color:#eadfc8;color:#8b642d;background:#fffaf1}.password-safety-note.warning>i{background:#ffedca}.security-password-actions{position:static!important;display:grid!important;grid-template-columns:1fr 1fr;gap:9px!important;margin:0!important;padding:18px 24px 22px!important;border:0!important;background:#fff!important;box-shadow:none!important}.required-password-card .security-password-actions{grid-template-columns:1fr}.security-password-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:43px;min-width:0!important}.security-modal-close,.trace-close-button{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;padding:0!important;border:1px solid #d6e6e0!important;border-radius:11px!important;color:#527168!important;background:rgba(255,255,255,.94)!important;box-shadow:0 5px 13px rgba(24,75,57,.07)!important;font-size:17px!important;transition:.16s}.security-modal-close:hover,.trace-close-button:hover{border-color:#91c1b2!important;color:#006e57!important;background:#edf8f4!important;transform:none!important}.security-password-card>.security-modal-close{top:16px!important;right:16px!important;z-index:2}
.insight-trace-modal-card>.trace-close-button{top:17px!important;right:17px!important;z-index:4}.insight-trace-modal-card>footer .secondary{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 15px;border-color:#cfe0da;border-radius:9px;color:#41635a;background:#f8fbfa;font-size:9px;font-weight:780}

.agent-launcher{touch-action:none!important;-webkit-tap-highlight-color:transparent}.agent-launcher:focus-visible{outline:4px solid rgba(7,151,116,.17)!important;outline-offset:3px}.agent-launcher.is-dragging{opacity:.96}.agent-launcher.is-dragging *{pointer-events:none!important}body.agent-launcher-drag-active::after{pointer-events:none!important}

@media(max-width:1050px){.work-mode-guide{grid-template-columns:1fr}.work-mode-guide>footer{grid-column:auto}}
@media(max-width:900px){
  .mobile-work-command{display:grid;gap:10px;margin-bottom:12px;padding:13px;border:1px solid #d7e8e1;border-radius:16px;background:linear-gradient(135deg,#f0faf6,#fff);box-shadow:0 8px 24px rgba(27,89,68,.055)}.mobile-work-command>header{display:flex;align-items:end;justify-content:space-between;gap:10px}.mobile-work-command>header>div{display:grid;gap:1px}.mobile-work-command h2{margin:1px 0 0;color:#244238;font-size:16px}.mobile-work-command>header>small{color:#7a8d85;font-size:8px}.mobile-work-command-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-work-command-grid>button{position:relative;display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:11px 9px;border:1px solid #dce8e4;border-radius:12px;color:#3d584f;background:#fff;text-align:left}.mobile-work-command-grid>button>span{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;color:#08775e;background:#e6f5ef;font-size:17px}.mobile-work-command-grid>button>div{display:grid;gap:1px;min-width:0}.mobile-work-command-grid small{color:#779087;font-size:7.5px}.mobile-work-command-grid b{color:#29483e;font-size:10.5px}.mobile-work-command-grid p{overflow:hidden;margin:2px 0 0;color:#84938d;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.mobile-work-command-grid em{position:absolute;top:7px;right:7px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;color:#fff;background:#079774;font-size:8px;font-style:normal;font-weight:850}.mobile-work-command-grid>button>i{color:#91a29c;font-size:14px}.mobile-work-command>footer{display:flex;align-items:flex-start;gap:5px;color:#70847c;font-size:8px;line-height:1.5}.mobile-work-command>footer i{margin-top:1px;color:#178168}
  #page-dashboard .welcome-row{display:flex;align-items:center;flex-direction:row;margin-bottom:11px}.welcome-row>div{min-width:0}.welcome-row .section-kicker{font-size:8px}.welcome-row h1{margin:2px 0;font-size:21px!important}.welcome-row p{font-size:9px}.welcome-row>.primary{flex:0 0 auto;min-height:38px;padding:0 12px;border-radius:10px;font-size:10px}
  #page-dashboard .hero-status{min-height:0;padding:16px 17px;border-radius:15px}.hero-status h3{margin:8px 0 4px;font-size:17px}.hero-status p{font-size:9px}.hero-tags{gap:5px;margin-top:12px}.hero-status .hero-tags span{padding:5px 7px;font-size:7.5px}
  #page-dashboard .metric-grid{grid-template-columns:1fr 1fr!important;margin:11px 0;border-radius:14px}.metric{min-height:72px;padding:11px!important;gap:9px}.metric-icon{width:34px;height:34px;border-radius:10px}.metric strong{font-size:19px}.metric small{font-size:8px}.metric em{font-size:7px}.dashboard-grid{gap:11px}.panel-head{padding:15px 15px 11px}.panel-head h3{font-size:13px}.panel-head p{font-size:9px}.quick-grid{grid-template-columns:1fr 1fr!important;gap:7px;padding:0 13px 13px}.quick-grid button{padding:11px;grid-template-columns:30px 1fr}.quick-grid span{width:30px;height:30px}.quick-grid b{font-size:9px}.quick-grid small{font-size:7.5px}
  .work-mode-guide{gap:8px;padding:9px;border-radius:14px}.work-mode-guide>header{grid-template-columns:35px minmax(0,1fr);padding:5px}.work-mode-guide>header>span{width:35px;height:35px;border-radius:10px;font-size:16px}.work-mode-guide>header b{font-size:10px}.work-mode-guide>header p{font-size:8px}.work-mode-options{gap:6px}.work-mode-options>button{grid-template-columns:32px minmax(0,1fr) auto;padding:8px}.work-mode-options>button>i{width:32px;height:32px}.work-mode-options>button p{display:none}.work-mode-guide>footer{padding:7px 5px 3px;font-size:8px}
  .case-metric-grid,.insight-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.case-metric-grid article,.insight-metric{min-height:68px;padding:10px!important}.insight-metric{gap:9px}.insight-metric>span{width:35px;height:35px;flex-basis:35px}.insight-metric strong{font-size:19px}.insight-metric em{display:none}.case-metric-grid article>span{width:34px;height:34px}.case-metric-grid strong{font-size:18px}
}
@media(max-width:560px){
  #passwordModal,#userPasswordModal{align-items:end;padding:10px 7px 0!important}.security-password-card{width:100%!important;min-height:0!important;max-height:calc(100dvh - 10px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;border-radius:22px 22px 0 0!important}.security-password-head{grid-template-columns:42px minmax(0,1fr);gap:11px;padding:20px 52px 16px 17px}.security-password-head>span{width:42px;height:42px;border-radius:12px;font-size:19px}.security-password-head h2{font-size:18px!important}.security-password-head p{font-size:9px!important}.security-password-fields{gap:11px;padding:16px 17px 3px}.password-input-shell{min-height:45px}.password-safety-note{margin:12px 17px 0}.security-password-actions{padding:15px 17px calc(16px + env(safe-area-inset-bottom))!important}.security-password-card>.security-modal-close{top:13px!important;right:13px!important}
  .insight-trace-modal-card>.trace-close-button{position:sticky!important;float:right;top:10px!important;right:10px!important;margin:10px 10px -46px 0}.insight-trace-head{padding:18px 54px 14px 15px}.insight-trace-head>span{width:38px;height:38px;flex-basis:38px}.insight-trace-head h2{font-size:16px}.insight-trace-verdict{margin:12px 10px 9px;padding:11px}.insight-trace-stages{padding:0 10px 10px}.insight-trace-records,.insight-trace-messages{margin:0 10px 10px;padding:11px}.insight-trace-modal-card>footer{position:sticky;bottom:0;padding:10px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}
  .mobile-work-command-grid{grid-template-columns:1fr}.mobile-work-command>header>small{display:none}.work-mode-options{grid-template-columns:1fr}.work-mode-options>button p{display:block;white-space:normal}.work-mode-options>button>em{align-self:start}.case-metric-grid,.insight-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.case-toolbar{grid-template-columns:1fr 1fr!important}.case-toolbar .search{grid-column:1/-1!important}.insight-toolbar{grid-template-columns:1fr 1fr!important}.insight-toolbar .search{grid-column:1/-1!important}.insight-secondary-filter{grid-column:auto!important}.case-insight-section button{grid-template-columns:30px minmax(0,1fr) auto}.insight-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.insight-actions button{width:100%;min-width:0}.insight-actions .insight-more-action{width:31px;grid-column:2;justify-self:end}
}

/* Mobile overview: a deliberate phone layout, not a compressed desktop dashboard. */
@media(max-width:600px){
  #page-dashboard.active{display:flex!important;flex-direction:column;padding-bottom:76px}
  #page-dashboard>.welcome-row{order:1}
  #page-dashboard>.hero-status{order:2}
  #page-dashboard>.metric-grid{order:3}
  #page-dashboard>.mobile-work-command{order:4}
  #page-dashboard>.dashboard-priority-grid{order:5}
  #page-dashboard>.operations-grid{order:6}
  #page-dashboard>.permission-template-panel{order:7}
  #page-dashboard>.service-panel{order:8}
  #page-dashboard .welcome-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    width:100%;
    min-height:0;
    margin:0 0 12px!important;
    padding:14px 15px;
    border:1px solid #d8e8e2;
    border-radius:16px;
    background:linear-gradient(135deg,#f2faf7 0%,#fff 72%);
    box-shadow:0 7px 22px rgba(19,78,59,.05)
  }
  #page-dashboard .welcome-row>div{display:grid;gap:2px;width:auto!important;min-width:0}
  #page-dashboard .welcome-row .section-kicker{color:#138168;font-size:8px;line-height:1.2;letter-spacing:.1em}
  #page-dashboard .welcome-row h1{
    overflow:hidden;
    margin:1px 0!important;
    color:#183b30;
    font-size:20px!important;
    line-height:1.35;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  #page-dashboard .welcome-row p{overflow:hidden;margin:0;color:#73877f;font-size:9px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
  #page-dashboard .welcome-row>.primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    width:auto!important;
    min-width:82px;
    min-height:40px;
    padding:0 12px!important;
    border-radius:11px;
    white-space:nowrap;
    font-size:10px;
    box-shadow:0 7px 16px rgba(0,126,96,.16)
  }
  #page-dashboard .welcome-row>.primary i{font-size:14px}

  #page-dashboard .mobile-work-command{
    gap:11px;
    margin:0 0 12px;
    padding:14px;
    border-color:#d5e6e0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 24px rgba(22,76,58,.055)
  }
  #page-dashboard .mobile-work-command>header{align-items:center}
  #page-dashboard .mobile-work-command h2{margin-top:2px;font-size:15px;line-height:1.35}
  #page-dashboard .mobile-work-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  #page-dashboard .mobile-work-command-grid>button{
    grid-template-columns:1fr;
    align-content:start;
    gap:7px;
    min-height:116px;
    padding:12px;
    border-color:#dce8e4;
    border-radius:13px;
    background:#fbfdfc
  }
  #page-dashboard .mobile-work-command-grid>button:active{border-color:#76b7a3;background:#eef8f4;transform:scale(.99)}
  #page-dashboard .mobile-work-command-grid>button>span{width:42px;height:42px;border-radius:12px;font-size:19px}
  #page-dashboard .mobile-work-command-grid>button>div{gap:2px}
  #page-dashboard .mobile-work-command-grid small{font-size:8px}
  #page-dashboard .mobile-work-command-grid b{font-size:11px}
  #page-dashboard .mobile-work-command-grid p{display:-webkit-box;margin-top:2px;font-size:8px;line-height:1.45;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  #page-dashboard .mobile-work-command-grid em{top:11px;right:11px;min-width:22px;height:22px;font-size:8px}
  #page-dashboard .mobile-work-command-grid>button>i{display:none}
  #page-dashboard .mobile-work-command>footer{padding-top:1px;font-size:8px}

  #page-dashboard .hero-status{
    display:grid!important;
    min-height:0!important;
    margin:0 0 12px;
    padding:16px!important;
    border-radius:16px;
    background:radial-gradient(circle at 92% 8%,rgba(89,209,164,.22),transparent 34%),linear-gradient(135deg,#0d5c4b,#073e35);
    box-shadow:0 12px 28px rgba(8,70,56,.16)
  }
  #page-dashboard .hero-status>div:first-child{min-width:0}
  #page-dashboard .live-badge{display:flex;align-items:center;gap:2px;font-size:8px;line-height:1.2}
  #page-dashboard .hero-status h3{margin:8px 0 3px;font-size:17px;line-height:1.35}
  #page-dashboard .hero-status p{overflow:hidden;margin:0;font-size:9px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}
  #page-dashboard .hero-tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
  #page-dashboard .hero-status .hero-tags span{overflow:hidden;padding:6px 5px;border-radius:8px;font-size:7.5px;text-align:center;text-overflow:ellipsis;white-space:nowrap}

  #page-dashboard .metric-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;
    margin:0 0 12px!important;
    border-color:#dce8e4;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(22,76,58,.045)
  }
  #page-dashboard .metric{
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    align-items:center;
    gap:9px;
    min-width:0;
    min-height:76px;
    padding:11px!important;
    border-right:1px solid #e3ebe8!important;
    border-bottom:1px solid #e3ebe8!important
  }
  #page-dashboard .metric:nth-child(2n){border-right:0!important}
  #page-dashboard .metric:nth-last-child(-n+2){border-bottom:0!important}
  #page-dashboard .metric>div{min-width:0}
  #page-dashboard .metric-icon{width:34px;height:34px;border-radius:10px}
  #page-dashboard .metric small{font-size:8px}
  #page-dashboard .metric strong{font-size:18px;line-height:1.2}
  #page-dashboard .metric em{overflow:hidden;font-size:7px;text-overflow:ellipsis;white-space:nowrap}

  #page-dashboard .dashboard-grid{display:grid;grid-template-columns:1fr!important;gap:12px;margin:0 0 12px}
  #page-dashboard .panel{overflow:hidden;border-color:#dce7e3;border-radius:15px;box-shadow:0 7px 22px rgba(23,71,56,.045)}
  #page-dashboard .panel-head{align-items:center;gap:10px;padding:14px 14px 10px}
  #page-dashboard .panel-head>div{min-width:0}
  #page-dashboard .panel-head h3{margin:2px 0;font-size:13px}
  #page-dashboard .panel-head p{overflow:hidden;margin:0;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
  #page-dashboard .panel-head .text-button{flex:0 0 auto;min-height:32px;padding:6px 8px;font-size:8px}
  #page-dashboard .attention-list{padding:0 14px 12px}
  #page-dashboard .attention-loading,#page-dashboard .attention-item,#page-dashboard .attention-clear{min-height:56px;padding:10px 0}
  #page-dashboard .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px;padding:0 12px 12px}
  #page-dashboard .quick-grid button{min-height:66px;padding:10px;grid-template-columns:29px minmax(0,1fr);column-gap:8px}
  #page-dashboard .quick-grid i{width:29px;height:29px;font-size:15px}
  #page-dashboard .quick-grid b{font-size:9px}
  #page-dashboard .quick-grid small{overflow:hidden;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
  #page-dashboard .operations-grid{margin-top:0}
  #page-dashboard .permission-template-panel{margin-top:0}
  #page-dashboard .service-panel{margin-top:0}
}

@media(max-width:350px){
  #page-dashboard .welcome-row{padding:12px}
  #page-dashboard .welcome-row>.primary{min-width:42px;width:42px!important;padding:0!important;font-size:0}
  #page-dashboard .welcome-row>.primary i{font-size:15px}
  #page-dashboard .hero-tags{grid-template-columns:1fr}
}

/* Automation governance center: one control plane for every outbound execution. */
.governance-page-heading{align-items:center}.governance-page-heading>div:first-child{max-width:820px}.governance-heading-actions{display:flex;align-items:center;gap:10px}.governance-heading-actions>span{display:flex;align-items:center;gap:6px;color:#678078;font-size:9px;font-weight:750}.governance-heading-actions>span i{width:7px;height:7px;border-radius:50%;background:#33bd8e;box-shadow:0 0 0 4px rgba(51,189,142,.1)}
.governance-hero{display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:142px;margin-bottom:14px;padding:22px 24px;border:1px solid #cfe4dc;border-radius:19px;color:#173c30;background:radial-gradient(circle at 87% 12%,rgba(81,200,157,.14),transparent 29%),linear-gradient(125deg,#edf9f4,#fff);box-shadow:0 12px 32px rgba(16,83,61,.07)}.governance-hero-mark{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;color:#fff;background:linear-gradient(145deg,#159d7b,#08705a);box-shadow:0 12px 25px rgba(7,125,97,.19);font-size:28px}.governance-hero>div{display:grid;gap:3px;min-width:0}.governance-hero>div>small{color:#16836a;font-size:8px;font-weight:850;letter-spacing:.12em}.governance-hero h2{margin:0;color:#1b3b31;font-size:21px;line-height:1.35}.governance-hero p{margin:2px 0;color:#6e8179;font-size:10px;line-height:1.6}.governance-hero>div>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.governance-hero>div>div span{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #d7e8e2;border-radius:8px;color:#4b6b60;background:rgba(255,255,255,.84);font-size:8px}.governance-hero>aside{display:grid;justify-items:end;gap:9px;min-width:145px}.governance-hero>aside b{color:#46645a;font-size:9px}.governance-hero>aside span{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:9px;color:#13765f;background:#e2f4ed;font-size:8px;font-weight:800}.governance-hero>aside span i{width:6px;height:6px;border-radius:50%;background:#25ba88}.governance-hero>aside span.is-open{color:#ad6228;background:#fff0df}.governance-hero>aside span.is-open i{background:#d77c31}.governance-hero.is-manual{border-color:#e4d8be;background:radial-gradient(circle at 88% 12%,rgba(224,166,71,.13),transparent 30%),linear-gradient(125deg,#fffaf0,#fff)}.governance-hero.is-manual .governance-hero-mark{background:linear-gradient(145deg,#d2993c,#a96720)}.governance-hero.is-locked{border-color:#ead2d2;background:radial-gradient(circle at 88% 12%,rgba(215,81,81,.1),transparent 30%),linear-gradient(125deg,#fff5f5,#fff)}.governance-hero.is-locked .governance-hero-mark{background:linear-gradient(145deg,#d75a5a,#a53d3d)}
.governance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.governance-metrics article{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:11px;min-height:88px;padding:14px;border:1px solid #dfe9e6;border-radius:14px;background:#fff;box-shadow:0 6px 19px rgba(24,68,53,.035)}.governance-metrics article>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#08775e;background:#e7f5ef;font-size:19px}.governance-metrics article.warning>span{color:#bd5e3f;background:#fff0eb}.governance-metrics article.simulation>span{color:#7857b5;background:#f2edfb}.governance-metrics article>div{display:grid;min-width:0}.governance-metrics small{color:#72867e;font-size:8px}.governance-metrics strong{color:#1e3e34;font-size:22px;line-height:1.25;font-variant-numeric:tabular-nums}.governance-metrics em{overflow:hidden;color:#929f9a;font-size:7.5px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.governance-workspace{display:grid;grid-template-columns:minmax(520px,1.12fr) minmax(360px,.88fr);gap:14px;align-items:start;margin-bottom:14px}.governance-policy-panel,.governance-preview-panel,.governance-events-panel{overflow:hidden;border-color:#dce8e3}.governance-policy-panel>header,.governance-preview-panel>header{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:17px 18px;border-bottom:1px solid #e2ebe8;background:linear-gradient(115deg,#fff,#f2f9f6)}.governance-policy-panel>header>span,.governance-preview-panel>header>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#08765d;background:#e3f3ed;font-size:19px}.governance-preview-panel>header>span{color:#7556ae;background:#f0ebfa}.governance-policy-panel>header>div,.governance-preview-panel>header>div{display:grid;gap:2px;min-width:0}.governance-policy-panel>header small,.governance-preview-panel>header small{color:#16836a;font-size:7px;font-weight:850;letter-spacing:.12em}.governance-policy-panel>header h3,.governance-preview-panel>header h3{margin:0;color:#234238;font-size:14px}.governance-policy-panel>header p,.governance-preview-panel>header p{overflow:hidden;margin:0;color:#81918b;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.governance-policy-panel>header>em,.governance-preview-panel>header>em{padding:5px 8px;border-radius:8px;color:#13765f;background:#e6f5ef;font-size:7.5px;font-style:normal;font-weight:800}.governance-preview-panel>header>em{color:#7254aa;background:#f1ecfa}
#governancePolicyForm,#governancePreviewForm{display:grid;gap:13px;padding:16px 18px 18px}.governance-policy-modes{display:grid;grid-template-columns:1fr 1fr;gap:9px}.governance-policy-panel label,.governance-preview-panel label{display:grid;gap:5px;color:#4b645b;font-size:8.5px;font-weight:780}.governance-policy-panel label small{color:#8a9893;font-size:7px;font-weight:500;line-height:1.45}.governance-policy-panel input,.governance-policy-panel select,.governance-preview-panel input,.governance-preview-panel select,.governance-preview-panel textarea{width:100%;min-width:0;border:1px solid #dce7e3;border-radius:9px;outline:0;color:#3e574e;background:#fbfcfc;font-size:9px}.governance-policy-panel input,.governance-policy-panel select,.governance-preview-panel input,.governance-preview-panel select{height:36px;padding:0 9px}.governance-preview-panel textarea{padding:10px;resize:vertical;line-height:1.55}.governance-policy-panel input:focus,.governance-policy-panel select:focus,.governance-preview-panel input:focus,.governance-preview-panel select:focus,.governance-preview-panel textarea:focus{border-color:#6caf9c;background:#fff;box-shadow:0 0 0 3px rgba(7,151,116,.07)}.governance-stop{position:relative!important}.governance-stop>input{position:absolute;opacity:0}.governance-stop>span{display:grid;grid-template-columns:35px minmax(0,1fr);gap:1px 9px;padding:10px 11px;border:1px solid #e6dedd;border-radius:11px;background:#fffafa;cursor:pointer}.governance-stop>span>i{grid-row:1/3;display:grid;place-items:center;width:35px;height:35px;border-radius:10px;color:#b65a52;background:#ffecea;font-size:17px}.governance-stop b{align-self:end;color:#704943;font-size:9px}.governance-stop small{align-self:start;color:#977a75!important}.governance-stop input:checked+span{border-color:#d76a63;background:#fff1f0;box-shadow:0 0 0 3px rgba(202,76,68,.07)}.governance-stop input:checked+span>i{color:#fff;background:#c84e47}.governance-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.governance-change-summary input{height:38px!important}.governance-policy-panel form>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px}.governance-policy-panel form>footer>span{display:flex;align-items:center;gap:5px;color:#82918b;font-size:7.5px}.governance-policy-panel form>footer>span i{color:#16846a}.governance-policy-panel form>footer button{min-height:38px;padding:0 13px;font-size:9px}.governance-policy-panel form :disabled{opacity:.58;cursor:not-allowed}
.governance-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.governance-preview-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:1px solid #bda9dd;border-radius:10px;color:#65449e;background:#f5f1fc;font-size:9px;font-weight:800}.governance-preview-button:hover{border-color:#9e82ce;background:#eee7f8}.governance-preview-result{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 18px 18px;padding:12px;border:1px solid #cce4da;border-radius:12px;background:#f1faf6}.governance-preview-result>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#08765d;background:#daf0e7;font-size:18px}.governance-preview-result>div{display:grid;gap:2px}.governance-preview-result small{color:#16836a;font-size:7.5px;font-weight:800}.governance-preview-result b{color:#29483e;font-size:10px}.governance-preview-result p{margin:0;color:#7a8b84;font-size:8px}.governance-preview-result>em{padding:5px 7px;border-radius:7px;color:#08765d;background:#fff;font-size:8px;font-style:normal;font-weight:850}.governance-preview-result.is-block{border-color:#ead1cf;background:#fff5f4}.governance-preview-result.is-block>span{color:#b44e48;background:#ffe4e1}.governance-preview-result.is-block small,.governance-preview-result.is-block>em{color:#ae4e48}
.governance-events-panel>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px 13px}.governance-events-panel>header>div{display:grid;gap:2px}.governance-events-panel>header h3{margin:0;color:#253f36;font-size:14px}.governance-events-panel>header p{margin:0;color:#83918c;font-size:8px}.governance-events-panel>header>span{padding:5px 8px;border-radius:8px;color:#18755f;background:#eaf6f1;font-size:8px;font-weight:800}.governance-event-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 130px 130px;gap:8px;padding:0 18px 13px;border-bottom:1px solid #e6eeeb}.governance-event-toolbar .search{display:flex!important;min-width:0}.governance-event-toolbar select{min-width:0;height:38px;padding:0 28px 0 9px;border:1px solid #dce7e3;border-radius:9px;color:#52675f;background:#fff;font-size:8.5px}.governance-event-list{display:grid}.governance-event{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 18px;border-bottom:1px solid #e9efed;background:#fff}.governance-event:last-child{border-bottom:0}.governance-event:hover{background:#fbfdfc}.governance-event-state{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#08765d;background:#e5f4ee;font-size:16px}.governance-event.is-blocked .governance-event-state,.governance-event.is-failed .governance-event-state{color:#b64f49;background:#ffeceb}.governance-event.is-simulated .governance-event-state{color:#7352a9;background:#f0ebf8}.governance-event-main{display:grid;gap:3px;min-width:0}.governance-event-main header{display:flex;align-items:center;gap:7px;min-width:0}.governance-event-main header b{color:#3c594f;font-size:8.5px}.governance-event-main header em{padding:2px 5px;border-radius:5px;color:#4b7769;background:#eaf5f1;font-size:7px;font-style:normal}.governance-event-main header em.risk-high,.governance-event-main header em.risk-critical{color:#a65b31;background:#fff0e4}.governance-event-main header time{margin-left:auto;color:#96a39e;font-size:7px}.governance-event-main h4{overflow:hidden;margin:0;color:#263d35;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.governance-event-main p{overflow:hidden;margin:0;color:#7b8984;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.governance-event-main footer{display:flex;flex-wrap:wrap;gap:8px;color:#81918b;font-size:7.5px}.governance-event-main footer span{display:flex;align-items:center;gap:3px}.governance-event>strong{padding:5px 8px;border-radius:8px;color:#17765f;background:#e9f6f1;font-size:8px;white-space:nowrap}.governance-event.is-blocked>strong,.governance-event.is-failed>strong{color:#ac4d47;background:#ffefed}.governance-event.is-simulated>strong{color:#6d4ca4;background:#f1ecf9}.governance-event-empty{display:grid;justify-items:center;gap:4px;padding:36px;color:#82928c;text-align:center}.governance-event-empty>i{display:grid;place-items:center;width:46px;height:46px;margin-bottom:5px;border-radius:14px;color:#08765d;background:#e5f4ee;font-size:21px}.governance-event-empty b{color:#476157;font-size:10px}.governance-event-empty small{font-size:8px}
.automation-monitor-panel{overflow:hidden;margin-bottom:14px;border-color:#d7e7e1;background:linear-gradient(180deg,#fff,#fbfdfc)}.automation-monitor-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;border-bottom:1px solid #e1ece8;background:radial-gradient(circle at 88% 0,rgba(42,177,134,.1),transparent 34%),linear-gradient(115deg,#f4fbf8,#fff)}.automation-monitor-heading>div{display:flex;align-items:center;gap:11px;min-width:0}.automation-monitor-icon{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border-radius:13px;color:#08775e;background:#dff3eb;font-size:20px}.automation-monitor-heading>div>div{display:grid;gap:2px}.automation-monitor-heading small{color:#16836a;font-size:7px;font-weight:850;letter-spacing:.1em}.automation-monitor-heading h3{margin:0;color:#234238;font-size:14px}.automation-monitor-heading p{margin:0;color:#7e9189;font-size:8px;line-height:1.5}.automation-monitor-heading>aside{display:grid;grid-template-columns:auto auto;align-items:center;justify-items:end;gap:5px 9px;flex:0 0 auto}.automation-monitor-heading>aside>span{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:8px;color:#14755f;background:#e5f5ef;font-size:7.5px;font-weight:800}.automation-monitor-heading>aside>span i{width:6px;height:6px;border-radius:50%;background:#21b283}.automation-monitor-heading>aside>small{color:#84948e;font-size:7px;letter-spacing:0}.automation-monitor-heading>aside>button{grid-column:1/-1;min-height:32px;padding:0 10px;font-size:8px}
.automation-monitor-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e3ece9}.automation-monitor-metrics article{display:grid;grid-template-columns:1fr auto;gap:1px 10px;padding:13px 17px;border-right:1px solid #e7eeec}.automation-monitor-metrics article:last-child{border-right:0}.automation-monitor-metrics small{align-self:end;color:#788c84;font-size:7.5px}.automation-monitor-metrics strong{grid-row:1/3;grid-column:2;align-self:center;color:#16765f;font-size:21px;font-variant-numeric:tabular-nums}.automation-monitor-metrics span{color:#9aa6a1;font-size:7px}.automation-monitor-metrics .is-warning strong{color:#b37a28}.automation-monitor-metrics .is-danger strong{color:#bd554d}.automation-monitor-metrics .is-proposal strong{color:#7052a5}
.automation-slo-board{border-bottom:1px solid #e3ece9;background:#fbfdfc}.automation-slo-board>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 16px}.automation-slo-board>header>div{display:grid;gap:1px}.automation-slo-board>header b{color:#38564c;font-size:8.5px}.automation-slo-board>header small{color:#91a09a;font-size:6.8px}.automation-slo-board>header>span{display:flex;align-items:center;gap:4px;padding:4px 7px;border-radius:7px;color:#6a5b92;background:#f1eef8;font-size:6.8px}.automation-slo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0 13px 13px}.automation-slo{display:grid;gap:3px;min-width:0;padding:9px 10px;border:1px solid #e0e9e6;border-radius:10px;background:#fff}.automation-slo>header{display:flex;align-items:center;justify-content:space-between;gap:7px}.automation-slo>header span{display:flex;align-items:center;gap:4px;color:#14765f;font-size:6.3px;font-weight:800}.automation-slo>header span i{width:5px;height:5px;border-radius:50%;background:#23af82}.automation-slo>header small{color:#9ba6a2;font-size:6px}.automation-slo>b{overflow:hidden;color:#435e55;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.automation-slo>div{display:flex;align-items:baseline;justify-content:space-between;gap:5px}.automation-slo strong{color:#1b745f;font-size:13px;font-variant-numeric:tabular-nums}.automation-slo em{color:#96a29e;font-size:6px;font-style:normal;white-space:nowrap}.automation-slo p{overflow:hidden;margin:0;color:#8c9994;font-size:6px;text-overflow:ellipsis;white-space:nowrap}.automation-slo.is-warning{border-color:#ead9b8;background:#fffaf1}.automation-slo.is-warning>header span,.automation-slo.is-warning strong{color:#ae7424}.automation-slo.is-warning>header span i{background:#c6882c}.automation-slo.is-breached{border-color:#ebceca;background:#fff7f6}.automation-slo.is-breached>header span,.automation-slo.is-breached strong{color:#b84f48}.automation-slo.is-breached>header span i{background:#c6544c}.automation-slo.is-pending{opacity:.65}
.automation-monitor-workspace{display:grid;grid-template-columns:minmax(520px,1.15fr) minmax(380px,.85fr);align-items:start}.automation-rule-board{min-width:0;border-right:1px solid #e2ebe8}.automation-rule-board>header,.automation-response-board>section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #e7eeeb}.automation-rule-board>header>div,.automation-response-board>section>header>div{display:grid;gap:2px}.automation-rule-board>header b,.automation-response-board>section>header b{color:#345248;font-size:9.5px}.automation-rule-board>header small,.automation-response-board>section>header small{color:#8d9b96;font-size:7px}.automation-rule-board>header>span,.automation-response-board>section>header>span{padding:4px 7px;border-radius:7px;color:#16745e;background:#edf7f3;font-size:7px;font-weight:800}.automation-rule-list{display:grid;max-height:510px;overflow:auto}.automation-rule{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 15px;border-bottom:1px solid #edf2f0;background:#fff}.automation-rule:last-child{border-bottom:0}.automation-rule:hover{background:#fcfefd}.automation-rule>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#0c8267;background:#e5f5ef;font-size:15px}.automation-rule.is-breached>span,.automation-rule.is-unknown>span{color:#bd5b45;background:#fff0eb}.automation-rule.is-pending>span{color:#8069aa;background:#f1edfa}.automation-rule.is-disabled{opacity:.55}.automation-rule>div{display:grid;gap:3px;min-width:0}.automation-rule header{display:flex;align-items:center;gap:6px}.automation-rule header b{overflow:hidden;color:#344f46;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.automation-rule header em{padding:2px 5px;border-radius:5px;color:#5e746c;background:#edf3f1;font-size:6.5px;font-style:normal}.automation-rule header em.severity-critical,.automation-rule header em.severity-high{color:#a9553e;background:#fff0e9}.automation-rule header small{margin-left:auto;color:#769087;font-size:6.5px}.automation-rule p{overflow:hidden;margin:0;color:#82918c;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.automation-rule footer{display:flex;flex-wrap:wrap;gap:7px;color:#98a39f;font-size:6.5px}.automation-rule footer strong{color:#14765f}.automation-rule>button{min-width:45px;height:28px;border:1px solid #d9e6e1;border-radius:8px;color:#658078;background:#fff;font-size:7px}.automation-rule>button:hover{border-color:#8ebdaf;color:#0b795f;background:#f2faf7}.automation-rule>button:disabled{cursor:not-allowed}
.automation-response-board{display:grid;min-width:0}.automation-response-board>section+section{border-top:1px solid #e2ebe8}.automation-incident-list,.automation-proposal-list{display:grid;max-height:230px;overflow:auto}.automation-incident,.automation-proposal{display:grid;gap:4px;padding:11px 14px;border-bottom:1px solid #edf2f0}.automation-incident:last-child,.automation-proposal:last-child{border-bottom:0}.automation-incident>header,.automation-proposal>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.automation-incident>header span,.automation-proposal>header span{padding:2px 5px;border-radius:5px;color:#a96036;background:#fff1e5;font-size:6.5px;font-weight:800}.automation-incident.severity-critical>header span{color:#b54843;background:#ffebe9}.automation-incident time,.automation-proposal time{color:#9ba6a2;font-size:6.5px}.automation-incident>b,.automation-proposal>b{color:#344e45;font-size:8.5px}.automation-incident>p,.automation-proposal>p{overflow:hidden;margin:0;color:#7e8e88;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.automation-incident>footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.automation-incident>footer small{color:#8e9d97;font-size:6.5px}.automation-incident>footer div,.automation-proposal>footer{display:flex;align-items:center;justify-content:flex-end;gap:5px}.automation-incident button,.automation-proposal button{height:25px;padding:0 7px;border:1px solid #dce7e3;border-radius:7px;color:#557168;background:#fff;font-size:6.5px}.automation-proposal>div{display:flex;flex-wrap:wrap;gap:5px}.automation-proposal>div span{display:flex;align-items:center;gap:3px;padding:3px 5px;border-radius:6px;color:#6d7f78;background:#f1f6f4;font-size:6.5px}.automation-proposal button.is-primary{border-color:#9d8bc4;color:#64499b;background:#f2edfa}.automation-proposal footer small{margin-right:auto;color:#7b8d86;font-size:7px}.automation-monitor-empty{display:flex;align-items:center;justify-content:center;gap:6px;min-height:72px;color:#83968f;font-size:7.5px}.automation-monitor-empty i{color:#17846a;font-size:16px}.automation-last-execution{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;margin:8px 12px 12px;padding:8px 9px;border:1px solid #d7e7e1;border-radius:10px;background:#f3faf7}.automation-last-execution>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#14765f;background:#dcf1e8;font-size:14px}.automation-last-execution>div{display:grid;gap:1px}.automation-last-execution b{color:#3d584f;font-size:7.5px}.automation-last-execution small{color:#889791;font-size:6.5px}.automation-last-execution em{padding:3px 5px;border-radius:5px;color:#14765f;background:#fff;font-size:6.5px;font-style:normal;font-weight:800}
.capability-portfolio-panel{overflow:hidden;margin-bottom:14px;border-color:#dce6e3}.capability-portfolio-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #e4ece9;background:linear-gradient(115deg,#fff,#f5faf8)}.capability-portfolio-panel>header>div{display:flex;align-items:center;gap:11px;min-width:0}.capability-portfolio-mark{display:grid;place-items:center;flex:0 0 auto;width:43px;height:43px;border-radius:12px;color:#68499e;background:#f0ebfa;font-size:20px}.capability-portfolio-panel>header>div>div{display:grid;gap:2px}.capability-portfolio-panel>header small{color:#7657ac;font-size:7px;font-weight:850;letter-spacing:.1em}.capability-portfolio-panel>header h3{margin:0;color:#2d443d;font-size:14px}.capability-portfolio-panel>header p{margin:0;color:#83918c;font-size:8px}.capability-portfolio-panel>header>aside{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:4px;color:#7354a8}.capability-portfolio-panel>header>aside strong{font-size:25px}.capability-portfolio-panel>header>aside span{font-size:7px;font-weight:800}.capability-portfolio-summary{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #e4ece9}.capability-portfolio-summary span{display:flex;align-items:baseline;justify-content:center;gap:5px;padding:10px;border-right:1px solid #e8eeec;color:#81918b;font-size:7px}.capability-portfolio-summary span:last-child{border-right:0}.capability-portfolio-summary b{color:#1b7a62;font-size:15px}.capability-portfolio-summary span:nth-child(2) b{color:#7454aa}.capability-portfolio-summary span:nth-child(3) b{color:#b07725}.capability-portfolio-summary span:nth-child(4) b{color:#87948f}.capability-portfolio-workspace{display:grid;grid-template-columns:minmax(440px,.8fr) minmax(520px,1.2fr);min-height:390px}.capability-domain-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:7px;padding:13px;border-right:1px solid #e4ece9;background:#fbfdfc}.capability-domain-grid button{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:59px;padding:8px;border:1px solid #e2ebe8;border-radius:10px;color:#526b62;background:#fff;text-align:left}.capability-domain-grid button:hover,.capability-domain-grid button.active{border-color:#8ebdad;background:#f2faf7;box-shadow:0 5px 13px rgba(22,103,78,.06)}.capability-domain-grid button>span{position:relative;display:grid;place-items:center;width:30px;height:30px;overflow:hidden;border-radius:9px;color:#14765f;background:#e5f4ee;font-size:9px}.capability-domain-grid button>span i{position:absolute;right:0;bottom:0;left:0;height:3px;background:linear-gradient(90deg,#1aa27e var(--capability-progress),#d6e5df var(--capability-progress))}.capability-domain-grid button>div{display:grid;gap:2px;min-width:0}.capability-domain-grid strong{overflow:hidden;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.capability-domain-grid small{color:#95a19d;font-size:6px;white-space:nowrap}.capability-domain-grid em{color:#7657aa;font-size:6.5px;font-style:normal;font-weight:800}.capability-domain-detail{min-width:0;background:#fff}.capability-domain-detail>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #e7eeeb;background:#fcfdfd}.capability-domain-detail>header>div{display:grid;gap:2px}.capability-domain-detail>header small{color:#7456aa;font-size:6.5px;font-weight:850;letter-spacing:.09em}.capability-domain-detail>header b{color:#344f46;font-size:10px}.capability-domain-detail>header span{color:#8b9994;font-size:6.5px}.capability-domain-detail>header>strong{color:#7556aa;font-size:18px}.capability-domain-detail>div{max-height:337px;overflow:auto}.capability-domain-detail article{display:grid;grid-template-columns:52px minmax(0,1fr) 25px;align-items:start;gap:8px;padding:9px 14px;border-bottom:1px solid #edf2f0}.capability-domain-detail article:last-child{border-bottom:0}.capability-domain-detail article>span{padding:3px 4px;border-radius:5px;color:#87958f;background:#eef3f1;font-size:6px;text-align:center}.capability-domain-detail article>span.is-complete{color:#15735d;background:#e4f4ed}.capability-domain-detail article>span.is-partial{color:#6f50a2;background:#f0ebf8}.capability-domain-detail article>span.is-developing{color:#a86e24;background:#fff2df}.capability-domain-detail article>div{display:grid;gap:2px;min-width:0}.capability-domain-detail article b{color:#3a544b;font-size:7.5px}.capability-domain-detail article p{margin:0;color:#84928d;font-size:6.8px;line-height:1.45}.capability-domain-detail article em{color:#81918b;font-size:6.5px;font-style:normal}.capability-detail-empty{display:grid!important;place-items:center;align-content:center;gap:4px;min-height:390px;color:#84958e;text-align:center}.capability-detail-empty i{font-size:24px}.capability-detail-empty b{color:#486158;font-size:9px}.capability-detail-empty small{font-size:7px}
@media(max-width:1050px){.governance-workspace{grid-template-columns:1fr}.governance-preview-panel{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(380px,1.25fr)}.governance-preview-panel>header{border-right:1px solid #e2ebe8;border-bottom:0}.governance-preview-result{grid-column:1/-1}}
@media(max-width:1050px){.automation-monitor-workspace{grid-template-columns:1fr}.automation-rule-board{border-right:0;border-bottom:1px solid #e2ebe8}.automation-rule-list{max-height:420px}.automation-response-board{grid-template-columns:1fr 1fr}.automation-response-board>section+section{border-top:0;border-left:1px solid #e2ebe8}}
@media(max-width:1050px){.automation-slo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.capability-portfolio-workspace{grid-template-columns:1fr}.capability-domain-grid{grid-template-columns:repeat(5,minmax(0,1fr));border-right:0;border-bottom:1px solid #e4ece9}.capability-domain-detail>div{max-height:400px}}
@media(max-width:760px){.governance-page-heading{align-items:stretch}.governance-heading-actions{justify-content:space-between}.governance-hero{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:17px}.governance-hero-mark{width:48px;height:48px;border-radius:14px;font-size:22px}.governance-hero h2{font-size:17px}.governance-hero>aside{grid-column:1/-1;grid-template-columns:1fr auto;align-items:center;justify-items:start;min-width:0}.governance-metrics{grid-template-columns:1fr 1fr}.governance-workspace{grid-template-columns:1fr}.governance-preview-panel{display:block}.governance-preview-panel>header{border-right:0;border-bottom:1px solid #e2ebe8}.governance-policy-modes{grid-template-columns:1fr}.governance-policy-grid{grid-template-columns:1fr 1fr}.governance-event-toolbar{grid-template-columns:1fr 1fr}.governance-event-toolbar .search{grid-column:1/-1}.governance-event{grid-template-columns:34px minmax(0,1fr)}.governance-event>strong{grid-column:2;justify-self:start}.governance-event-main header time{display:none}}
@media(max-width:760px){.automation-monitor-heading{align-items:flex-start;flex-direction:column}.automation-monitor-heading>aside{grid-template-columns:1fr auto;width:100%;justify-items:start}.automation-monitor-heading>aside>button{grid-column:2;grid-row:1/3}.automation-monitor-metrics{grid-template-columns:1fr 1fr}.automation-monitor-metrics article:nth-child(2){border-right:0}.automation-monitor-metrics article:nth-child(-n+2){border-bottom:1px solid #e7eeec}.automation-response-board{grid-template-columns:1fr}.automation-response-board>section+section{border-top:1px solid #e2ebe8;border-left:0}.automation-rule{grid-template-columns:32px minmax(0,1fr)}.automation-rule>button{grid-column:2;justify-self:start}.automation-rule header small{display:none}}
@media(max-width:760px){.capability-domain-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.capability-domain-detail article{grid-template-columns:48px minmax(0,1fr) 24px}}
@media(max-width:480px){.governance-heading-actions>span{display:none}.governance-heading-actions button{width:100%}.governance-hero>div>div{display:grid;grid-template-columns:1fr}.governance-metrics article{grid-template-columns:34px minmax(0,1fr);min-height:76px;padding:10px}.governance-metrics article>span{width:34px;height:34px}.governance-metrics strong{font-size:19px}.governance-policy-panel>header,.governance-preview-panel>header{grid-template-columns:38px minmax(0,1fr);padding:14px}.governance-policy-panel>header>span,.governance-preview-panel>header>span{width:38px;height:38px}.governance-policy-panel>header>em,.governance-preview-panel>header>em{grid-column:2;justify-self:start}.governance-policy-grid{grid-template-columns:1fr}.governance-policy-panel form>footer{align-items:stretch;flex-direction:column}.governance-policy-panel form>footer button{width:100%}.governance-preview-grid{grid-template-columns:1fr}.governance-preview-result{grid-template-columns:34px minmax(0,1fr);margin-inline:12px}.governance-preview-result>em{grid-column:2;justify-self:start}.governance-event-toolbar{grid-template-columns:1fr}.governance-event-toolbar .search{grid-column:auto}.governance-events-panel>header{align-items:flex-start}.governance-events-panel>header>span{white-space:nowrap}.governance-event-main footer span:nth-child(2){display:none}}
@media(max-width:480px){.automation-monitor-heading>div{align-items:flex-start}.automation-monitor-heading p{max-width:260px}.automation-monitor-heading>aside{grid-template-columns:1fr}.automation-monitor-heading>aside>button{grid-column:1;grid-row:auto;width:100%}.automation-monitor-metrics article{padding:10px}.automation-monitor-metrics strong{font-size:18px}.automation-rule footer span:nth-child(n+3){display:none}}
@media(max-width:480px){.automation-slo-board>header{align-items:flex-start}.automation-slo-board>header>span{display:none}.automation-slo-grid{grid-template-columns:1fr}.automation-slo p{display:none}}
@media(max-width:480px){.capability-portfolio-panel>header{align-items:flex-start}.capability-portfolio-panel>header p{display:none}.capability-portfolio-summary{grid-template-columns:1fr 1fr}.capability-portfolio-summary span:nth-child(2){border-right:0}.capability-portfolio-summary span:nth-child(-n+2){border-bottom:1px solid #e8eeec}.capability-domain-grid{grid-template-columns:1fr 1fr;padding:10px}.capability-domain-grid button{min-height:52px}.capability-domain-detail article p{font-size:6.5px}}

/* Group operations: evidence-only risk radar, health score and responsibility boundary. */
.room-heading-actions{display:flex;align-items:center;gap:8px}.group-risk-hero{overflow:hidden;margin-bottom:14px;border:1px solid #d5e7e0;border-radius:18px;background:linear-gradient(150deg,#f4fbf8,#fff);box-shadow:0 10px 30px rgba(23,77,59,.05)}.group-risk-hero>header{display:flex;align-items:center;gap:12px;padding:17px 19px;border-bottom:1px solid #dfebe7;background:radial-gradient(circle at 91% 0,rgba(26,169,126,.11),transparent 33%)}.group-risk-hero>header>span{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:13px;color:#08775e;background:#dcf2e9;font-size:21px}.group-risk-hero>header>div{display:grid;gap:2px;min-width:0}.group-risk-hero>header small{color:#16836a;font-size:7px;font-weight:850;letter-spacing:.1em}.group-risk-hero>header h2{margin:0;color:#223f35;font-size:15px}.group-risk-hero>header p{margin:0;color:#7d8f88;font-size:8px;line-height:1.5}.group-risk-hero>header>em{display:flex;align-items:center;gap:6px;margin-left:auto;padding:6px 9px;border-radius:9px;color:#14765f;background:#e5f5ef;font-size:7.5px;font-style:normal;font-weight:800;white-space:nowrap}.group-risk-hero>header>em i{width:6px;height:6px;border-radius:50%;background:#1caf7f;box-shadow:0 0 0 4px rgba(28,175,127,.1)}
.group-risk-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e3ece9;background:#fff}.group-risk-metrics article{display:grid;grid-template-columns:1fr auto;gap:1px 9px;padding:12px 16px;border-right:1px solid #e7eeeb}.group-risk-metrics article:last-child{border-right:0}.group-risk-metrics small{align-self:end;color:#7a8c85;font-size:7.5px}.group-risk-metrics strong{grid-row:1/3;grid-column:2;align-self:center;color:#16765f;font-size:21px;font-variant-numeric:tabular-nums}.group-risk-metrics span{color:#9aa5a1;font-size:7px}.group-risk-metrics article:nth-child(2) strong{color:#bb5848}.group-risk-metrics article:nth-child(3) strong{color:#b57a28}.group-risk-workspace{display:grid;grid-template-columns:minmax(520px,1.15fr) minmax(380px,.85fr)}.group-risk-workspace>section{min-width:0}.group-risk-workspace>section+section{border-left:1px solid #e2ebe8}.group-risk-workspace>section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;border-bottom:1px solid #e8efec}.group-risk-workspace>section>header>div{display:grid;gap:2px}.group-risk-workspace>section>header b{color:#38554b;font-size:9.5px}.group-risk-workspace>section>header small{color:#8b9994;font-size:7px}.group-risk-workspace>section>header>span{padding:4px 7px;border-radius:7px;color:#14765f;background:#eaf6f1;font-size:7px;font-weight:800}
.group-risk-event-list,.group-health-list{display:grid;max-height:360px;overflow:auto;background:#fff}.group-risk-event-list>article{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid #edf2f0}.group-risk-event-list>article:last-child{border-bottom:0}.group-risk-event-list>article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#a5642f;background:#fff0df;font-size:16px}.group-risk-event-list>article.severity-high>span,.group-risk-event-list>article.severity-critical>span{color:#b74848;background:#ffeaea}.group-risk-event-list>article>div{display:grid;gap:3px;min-width:0}.group-risk-event-list header{display:flex;align-items:center;gap:6px}.group-risk-event-list header b{overflow:hidden;color:#344f46;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.group-risk-event-list header em{margin-left:auto;padding:2px 5px;border-radius:5px;color:#93603a;background:#fff2e7;font-size:6.5px;font-style:normal;white-space:nowrap}.group-risk-event-list p{overflow:hidden;margin:0;color:#7d8d87;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.group-risk-event-list footer{display:flex;flex-wrap:wrap;gap:7px;color:#94a09b;font-size:6.5px}.group-risk-event-list footer span{display:flex;align-items:center;gap:3px}.group-risk-event-list>article>aside{display:flex;flex-direction:column;align-items:stretch;gap:4px}.group-risk-event-list>article>aside button{height:24px;padding:0 7px;border:1px solid #d9e6e1;border-radius:6px;color:#557168;background:#fff;font-size:6.5px}.group-risk-event-list>article>aside button:first-of-type{border-color:#9cc9ba;color:#08765d;background:#eff8f5}.group-risk-event-list>article>aside em{padding:4px 6px;border-radius:6px;color:#08765d;background:#e7f5ef;text-align:center;font-size:6.5px;font-style:normal;font-weight:800}
.group-health-list>button{display:grid;grid-template-columns:42px minmax(0,1fr) 16px;align-items:center;gap:9px;width:100%;padding:10px 13px;border:0;border-bottom:1px solid #edf2f0;color:#4c625a;background:#fff;text-align:left}.group-health-list>button:last-child{border-bottom:0}.group-health-list>button:hover{background:#f7fbf9}.group-health-score{--health:100;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:conic-gradient(#159877 calc(var(--health)*1%),#e2ebe8 0);position:relative}.group-health-score:after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.group-health-score b{position:relative;z-index:1;color:#16765f;font-size:11px}.group-health-score.state-attention{background:conic-gradient(#d29a3c calc(var(--health)*1%),#eee5d5 0)}.group-health-score.state-risk,.group-health-score.state-critical{background:conic-gradient(#d55b56 calc(var(--health)*1%),#f0dedd 0)}.group-health-list>button>div{display:grid;gap:3px;min-width:0}.group-health-list header{display:flex;align-items:center;gap:6px}.group-health-list header b{overflow:hidden;color:#344f46;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.group-health-list header em{display:flex;align-items:center;gap:3px;margin-left:auto;color:#168069;font-size:6.5px;font-style:normal;font-weight:800}.group-health-list p{overflow:hidden;margin:0;color:#81918b;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.group-health-list footer{display:flex;gap:7px;color:#94a09b;font-size:6.5px}.group-health-list>button>i{color:#9aaba4}.group-risk-empty{display:flex;align-items:center;justify-content:center;gap:9px;min-height:90px;color:#82938c}.group-risk-empty>i{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#08765d;background:#e4f4ed;font-size:17px}.group-risk-empty>span{display:grid;gap:2px}.group-risk-empty b{color:#496158;font-size:8.5px}.group-risk-empty small{font-size:7px}
.room-entity>span{display:grid;gap:2px;min-width:0}.room-entity>span strong,.room-entity>span small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-entity>span small{max-width:180px;color:#8c9994;font-size:7px}.room-member-risk,.room-preset-state{display:grid;gap:2px}.room-member-risk b,.room-preset-state b{color:#465e55;font-size:8.5px}.room-member-risk small,.room-preset-state small{color:#929f9a;font-size:7px}.room-member-risk em{color:#b45348;font-size:7px;font-style:normal}.room-health-badge{display:inline-grid;grid-template-columns:auto auto;align-items:center;gap:5px;margin-right:4px;padding:4px 6px;border-radius:7px;color:#14755e;background:#e7f5ef}.room-health-badge>b{font-size:9px}.room-health-badge small{display:flex;align-items:center;gap:2px;font-size:6.5px}.room-health-badge.state-attention{color:#9e6b20;background:#fff3dd}.room-health-badge.state-risk,.room-health-badge.state-critical{color:#ad4747;background:#ffebeb}
.room-governance-card{overflow:hidden;border:1px solid #d7e8e2;border-radius:13px;background:linear-gradient(145deg,#f3faf7,#fff)}.room-governance-card>header{display:flex;align-items:center;gap:9px;padding:11px 12px;border-bottom:1px solid #e1ebe7}.room-governance-card>header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#08765d;background:#dff2eb;font-size:16px}.room-governance-card>header>div{display:grid;gap:2px}.room-governance-card>header b{color:#315147;font-size:9.5px}.room-governance-card>header small{color:#87968f;font-size:7px}.room-governance-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:11px}.room-governance-grid label{display:grid;gap:5px;min-width:0}.room-governance-grid label.span-2{grid-column:1/-1}.room-governance-grid input,.room-governance-grid select,.room-governance-grid textarea{width:100%;min-width:0;border:1px solid #dce8e4;border-radius:8px;outline:0;color:#435a52;background:#fff;font-size:8.5px}.room-governance-grid select{height:34px;padding:0 9px}.room-governance-grid textarea{padding:8px;resize:vertical;line-height:1.5}.room-governance-grid input:focus,.room-governance-grid select:focus,.room-governance-grid textarea:focus{border-color:#72b3a1;box-shadow:0 0 0 3px rgba(7,151,116,.07)}.room-governance-grid>aside{display:flex;align-items:center;gap:5px;align-self:end;min-height:34px;padding:7px 8px;border-radius:8px;color:#876a31;background:#fff6e5;font-size:7px;line-height:1.45}
@media(max-width:1050px){.group-risk-workspace{grid-template-columns:1fr}.group-risk-workspace>section+section{border-top:1px solid #e2ebe8;border-left:0}.group-risk-event-list,.group-health-list{max-height:320px}}
@media(max-width:760px){.room-heading-actions{width:100%;justify-content:space-between}.group-risk-hero>header{align-items:flex-start}.group-risk-hero>header>em{display:none}.group-risk-metrics{grid-template-columns:1fr 1fr}.group-risk-metrics article:nth-child(2){border-right:0}.group-risk-metrics article:nth-child(-n+2){border-bottom:1px solid #e7eeeb}.group-risk-event-list>article{grid-template-columns:32px minmax(0,1fr)}.group-risk-event-list>article>aside{grid-column:2;flex-direction:row;flex-wrap:wrap}.group-risk-event-list>article>aside button{flex:1}.room-governance-grid{grid-template-columns:1fr}.room-governance-grid label.span-2{grid-column:auto}}
@media(max-width:480px){.room-heading-actions{display:grid;grid-template-columns:1fr 1fr}.room-heading-actions button{width:100%;padding-inline:8px}.group-risk-hero>header{padding:14px}.group-risk-hero>header>span{width:38px;height:38px;flex-basis:38px}.group-risk-hero>header p{display:none}.group-risk-metrics article{padding:10px}.group-risk-metrics strong{font-size:18px}.group-risk-event-list p{white-space:normal;line-height:1.45}.group-health-list footer span:nth-child(2){display:none}}

/* Customer operations: stable identity, explainable health and evidence-backed success plans. */
.customer-heading-actions{display:flex;align-items:center;gap:8px}.customer-heading-actions .is-loading i{animation:eteSpin .75s linear infinite}.customer-ops-hero{overflow:hidden;margin-bottom:14px;border:1px solid #d4e7df;border-radius:18px;background:linear-gradient(150deg,#f3fbf8,#fff);box-shadow:0 11px 32px rgba(23,77,59,.055)}
.customer-ops-hero>header{display:flex;align-items:center;gap:12px;padding:17px 19px;border-bottom:1px solid #deebe6;background:radial-gradient(circle at 89% 0,rgba(40,177,133,.12),transparent 34%)}.customer-ops-hero>header>span{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:13px;color:#08775e;background:#dcf2e9;font-size:21px}.customer-ops-hero>header>div{display:grid;gap:2px;min-width:0}.customer-ops-hero>header small{color:#16836a;font-size:7px;font-weight:850;letter-spacing:.1em}.customer-ops-hero>header h2{margin:0;color:#223f35;font-size:15px}.customer-ops-hero>header p{margin:0;color:#7d8f88;font-size:8px;line-height:1.5}.customer-ops-hero>header>em{display:flex;align-items:center;gap:6px;margin-left:auto;padding:6px 9px;border-radius:9px;color:#14765f;background:#e5f5ef;font-size:7.5px;font-style:normal;font-weight:800;white-space:nowrap}.customer-ops-hero>header>em i{width:6px;height:6px;border-radius:50%;background:#1caf7f;box-shadow:0 0 0 4px rgba(28,175,127,.1)}
.customer-ops-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e3ece9;background:#fff}.customer-ops-metrics article{display:grid;grid-template-columns:1fr auto;gap:1px 9px;padding:12px 16px;border-right:1px solid #e7eeeb}.customer-ops-metrics article:last-child{border-right:0}.customer-ops-metrics small{align-self:end;color:#7a8c85;font-size:7.5px}.customer-ops-metrics strong{grid-row:1/3;grid-column:2;align-self:center;color:#16765f;font-size:21px;font-variant-numeric:tabular-nums}.customer-ops-metrics span{color:#9aa5a1;font-size:7px}.customer-ops-metrics article:nth-child(2) strong{color:#bd554d}.customer-ops-metrics article:nth-child(3) strong{color:#6e58a6}.customer-ops-metrics article:nth-child(4) strong{color:#b47b29}
.customer-ops-board>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e8efec;background:#fbfdfc}.customer-ops-board>header>div{display:grid;gap:2px}.customer-ops-board>header b{color:#38554b;font-size:9.5px}.customer-ops-board>header small{color:#8b9994;font-size:7px}.customer-ops-board>header>span{padding:4px 7px;border-radius:7px;color:#14765f;background:#eaf6f1;font-size:7px;font-weight:800}.customer-ops-list{display:grid;grid-template-columns:1fr 1fr;max-height:355px;overflow:auto;background:#fff}.customer-ops-list>button{display:grid;grid-template-columns:42px 34px minmax(0,1fr) 14px;align-items:center;gap:9px;width:100%;padding:10px 13px;border:0;border-right:1px solid #edf2f0;border-bottom:1px solid #edf2f0;color:#4c625a;background:#fff;text-align:left}.customer-ops-list>button:nth-child(2n){border-right:0}.customer-ops-list>button:hover{position:relative;background:#f7fbf9}.customer-ops-list>button>.entity-avatar{width:34px;height:34px;border-radius:10px}.customer-ops-list>button>div{display:grid;gap:3px;min-width:0}.customer-ops-list header{display:flex;align-items:center;gap:5px}.customer-ops-list header b{overflow:hidden;color:#344f46;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.customer-ops-list header em,.customer-ops-list header span{padding:2px 5px;border-radius:5px;font-size:6.5px;font-style:normal;white-space:nowrap}.customer-ops-list header em{color:#537269;background:#edf5f2}.customer-ops-list header em.tier-important{color:#986b25;background:#fff2de}.customer-ops-list header em.tier-strategic{color:#6f50a4;background:#f1ecfa}.customer-ops-list header span{display:flex;align-items:center;gap:3px;margin-left:auto;color:#16765f;background:#e9f6f1}.customer-ops-list header span.state-risk,.customer-ops-list header span.state-critical{color:#b54e49;background:#ffedeb}.customer-ops-list header span.state-attention{color:#a16c23;background:#fff3df}.customer-ops-list p{overflow:hidden;margin:0;color:#81918b;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.customer-ops-list footer{display:flex;flex-wrap:wrap;gap:7px;color:#94a09b;font-size:6.5px}.customer-ops-list>button>i{color:#9aaba4}
.customer-health-score{--customer-health:100;position:relative;display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:conic-gradient(#159877 calc(var(--customer-health)*1%),#e2ebe8 0)}.customer-health-score:after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.customer-health-score b{position:relative;z-index:1;color:#16765f;font-size:11px;font-variant-numeric:tabular-nums}.customer-health-score.state-attention{background:conic-gradient(#d29a3c calc(var(--customer-health)*1%),#eee5d5 0)}.customer-health-score.state-risk,.customer-health-score.state-critical{background:conic-gradient(#d55b56 calc(var(--customer-health)*1%),#f0dedd 0)}.customer-health-score.state-risk b,.customer-health-score.state-critical b{color:#ad4a47}.customer-row-health{display:inline-grid;grid-template-columns:auto auto;align-items:center;gap:4px;margin-right:4px;padding:4px 6px;border-radius:7px;color:#14755e;background:#e7f5ef}.customer-row-health>b{font-size:9px}.customer-row-health small{display:flex;align-items:center;gap:2px;font-size:6.5px}.customer-row-health.state-attention{color:#9e6b20;background:#fff3dd}.customer-row-health.state-risk,.customer-row-health.state-critical{color:#ad4747;background:#ffebeb}.customer-profile-action{border-color:#a9cfc2!important;color:#08765d!important;background:#f1faf6!important}.customer-ops-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:9px;min-height:100px;color:#82938c}.customer-ops-empty>i{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#08765d;background:#e4f4ed;font-size:17px}.customer-ops-empty>span{display:grid;gap:2px}.customer-ops-empty b{color:#496158;font-size:8.5px}.customer-ops-empty small{font-size:7px}
.modal-card.customer-ops-modal-card{width:min(1180px,calc(100vw - 32px));max-width:1180px;height:min(92dvh,900px);max-height:92dvh;padding:0;gap:0;overflow:hidden;border:1px solid #cfdfd9;border-radius:20px;background:#f7faf9;box-shadow:0 30px 90px rgba(15,55,43,.2)}.customer-ops-modal-card>.modal-close{z-index:4;top:14px;right:14px}.customer-ops-modal-head{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:18px 58px 16px 20px;border-bottom:1px solid #dbe8e3;background:radial-gradient(circle at 87% 0,rgba(35,174,130,.13),transparent 32%),#fff}.customer-ops-modal-avatar{display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border-radius:14px;color:#08765d;background:#e2f3ed}.customer-ops-modal-avatar .entity-avatar{width:48px;height:48px;border-radius:14px;font-size:14px}.customer-ops-modal-head>div{display:grid;gap:2px;min-width:0}.customer-ops-modal-head small{color:#16836a;font-size:7px;font-weight:850;letter-spacing:.1em}.customer-ops-modal-head h2{overflow:hidden;margin:0;color:#223f35;font-size:17px;text-overflow:ellipsis;white-space:nowrap}.customer-ops-modal-head p{overflow:hidden;margin:0;color:#7c8e87;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.customer-ops-modal-head>em{display:flex;align-items:center;gap:6px;padding:6px 9px;border-radius:9px;color:#14765f;background:#e5f5ef;font-size:7px;font-style:normal;font-weight:800;white-space:nowrap}.customer-ops-modal-head>em i{width:6px;height:6px;border-radius:50%;background:#20b183}.customer-ops-modal-body{display:grid;align-content:start;gap:12px;min-height:0;padding:14px;overflow:auto}.customer-ops-modal-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #dce8e4;background:#fff}.customer-ops-modal-card>footer>span{display:flex;align-items:center;gap:5px;color:#72877f;font-size:7.5px}.customer-ops-modal-card>footer>span i{color:#148067}.customer-ops-modal-card>footer button{min-width:78px}.customer-ops-loading{display:flex;align-items:center;justify-content:center;gap:8px;min-height:300px;color:#668078;font-size:9px}.customer-ops-loading i{color:#0b8368;font-size:18px;animation:eteSpin .75s linear infinite}
.customer-detail-overview{display:grid;grid-template-columns:minmax(250px,.68fr) minmax(560px,1.32fr);gap:10px}.customer-detail-score,.customer-component-grid article,.customer-profile-control,.customer-playbook-section,.customer-success-section,.customer-journey-section{border:1px solid #dae7e2;border-radius:13px;background:#fff}.customer-detail-score{display:flex;align-items:center;gap:13px;padding:14px;background:linear-gradient(135deg,#f0faf6,#fff)}.customer-detail-score .customer-health-score{width:62px;height:62px;flex-basis:62px}.customer-detail-score .customer-health-score:after{inset:7px}.customer-detail-score .customer-health-score b{font-size:16px}.customer-detail-score>div{display:grid;gap:3px;min-width:0}.customer-detail-score small{color:#7d9088;font-size:7px}.customer-detail-score>div>b{display:flex;align-items:center;gap:5px;color:#1c735d;font-size:12px}.customer-detail-score p{margin:0;color:#71827b;font-size:7.5px;line-height:1.45}.customer-detail-score>div>span{color:#99866d;font-size:7px}.customer-component-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.customer-component-grid article{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:7px;padding:9px}.customer-component-grid article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#08765d;background:#e6f5ef;font-size:14px}.customer-component-grid article>div{display:grid;gap:1px;min-width:0}.customer-component-grid small{color:#81918b;font-size:6.5px}.customer-component-grid b{color:#315048;font-size:9px}.customer-component-grid em{overflow:hidden;color:#96a29e;font-size:6px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.customer-component-grid article.is-risk{border-color:#ebd3cd;background:#fff8f6}.customer-component-grid article.is-risk>span{color:#b85549;background:#ffebe7}
.customer-profile-control{overflow:hidden}.customer-profile-control>header,.customer-playbook-section>header,.customer-success-section>header,.customer-journey-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #e5eeeb;background:#fbfdfc}.customer-profile-control>header>div,.customer-playbook-section>header>div,.customer-success-section>header>div,.customer-journey-section>header>div{display:grid;gap:2px}.customer-profile-control>header b,.customer-playbook-section>header b,.customer-success-section>header b,.customer-journey-section>header b{color:#345248;font-size:9px}.customer-profile-control>header small,.customer-playbook-section>header small,.customer-success-section>header small,.customer-journey-section>header small{color:#8d9b96;font-size:7px}.customer-profile-control>header>span,.customer-playbook-section>header>span,.customer-success-section>header>span,.customer-journey-section>header>span{padding:4px 7px;border-radius:7px;color:#16745e;background:#edf7f3;font-size:7px;font-weight:800}.customer-profile-control>form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:11px 13px}.customer-profile-control label{display:grid;gap:4px;min-width:0;color:#536b62;font-size:7.5px;font-weight:750}.customer-profile-control label.span-2{grid-column:span 2}.customer-profile-control input,.customer-profile-control select,.customer-profile-control textarea,.customer-success-section input{width:100%;min-width:0;border:1px solid #dce8e4;border-radius:8px;outline:0;color:#425b52;background:#fff;font-size:8px}.customer-profile-control input,.customer-profile-control select,.customer-success-section input{height:33px;padding:0 8px}.customer-profile-control textarea{padding:7px 8px;resize:vertical;line-height:1.45}.customer-profile-control input:focus,.customer-profile-control select:focus,.customer-profile-control textarea:focus,.customer-success-section input:focus{border-color:#72b3a1;box-shadow:0 0 0 3px rgba(7,151,116,.07)}.customer-stage-lock{display:flex!important;align-items:center;gap:7px;padding:5px 7px;border:1px solid #e3ebe8;border-radius:8px;background:#fafcfc}.customer-stage-lock>input{width:14px!important;height:14px!important;accent-color:#078265}.customer-stage-lock>span{display:grid;gap:1px}.customer-stage-lock b{color:#486158;font-size:7.5px}.customer-stage-lock small{color:#8b9994;font-size:6.5px}.customer-profile-control form>button{display:flex;align-items:center;justify-content:center;gap:5px;align-self:end;height:33px;border:1px solid #078064;border-radius:8px;color:#fff;background:#078064;font-size:8px;font-weight:800}.customer-account-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 13px 12px}.customer-account-chips>span{display:grid;grid-template-columns:25px auto;align-items:center;gap:0 6px;padding:5px 7px;border:1px solid #e0ebe7;border-radius:9px;background:#f9fcfb}.customer-account-chips .entity-avatar{grid-row:1/3;width:25px;height:25px;border-radius:7px;font-size:7px}.customer-account-chips b{color:#4b645b;font-size:7.5px}.customer-account-chips small{color:#909d98;font-size:6px}
.customer-detail-workspace{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}.customer-playbook-section,.customer-success-section,.customer-journey-section{overflow:hidden}.customer-playbook-section>div,.customer-success-section>div,.customer-journey-section>div{display:grid;max-height:260px;overflow:auto}.customer-playbook-section article{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #edf2f0}.customer-playbook-section article:last-child{border-bottom:0}.customer-playbook-section article>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;color:#9a6927;background:#fff2df;font-size:15px}.customer-playbook-section article>div{display:grid;gap:2px;min-width:0}.customer-playbook-section article header{display:flex;align-items:center;gap:5px}.customer-playbook-section article header b{overflow:hidden;color:#3c574e;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.customer-playbook-section article header em{padding:2px 4px;border-radius:4px;color:#a15f38;background:#fff0e7;font-size:6px;font-style:normal}.customer-playbook-section article p{margin:0;color:#81908b;font-size:7px;line-height:1.45}.customer-playbook-section article small{color:#168069;font-size:6.5px}.customer-playbook-section article aside{display:grid;gap:4px}.customer-playbook-section article button,.customer-success-plan button{height:24px;padding:0 7px;border:1px solid #a6cdbf;border-radius:6px;color:#08765d;background:#f3faf7;font-size:6.5px}.customer-playbook-section article aside button+button{border-color:#dfe7e4;color:#71827c;background:#fff}.customer-playbook-section article>strong{color:#16755e;font-size:7px}.customer-success-plan{border-bottom:1px solid #eaf0ee}.customer-success-plan>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;background:#fbfdfc}.customer-success-plan>header>div{display:grid;gap:2px;min-width:0}.customer-success-plan>header b{color:#3c574e;font-size:8px}.customer-success-plan>header small{overflow:hidden;color:#899791;font-size:6.5px;text-overflow:ellipsis;white-space:nowrap}.customer-success-plan>header>em{color:#16755e;font-size:6.5px;font-style:normal}.customer-success-plan>div{display:grid;padding:0 11px}.customer-success-plan>div>span{display:grid;grid-template-columns:14px minmax(0,1fr) auto auto;align-items:center;gap:6px;padding:7px 0;border-bottom:1px dashed #e5ece9}.customer-success-plan>div>span:last-child{border-bottom:0}.customer-success-plan>div>span>i{color:#1a9877}.customer-success-plan>div b{color:#526a61;font-size:7px}.customer-success-plan>div small,.customer-success-plan>div em{color:#929e99;font-size:6.5px;font-style:normal}.customer-success-plan>form,.customer-plan-create{display:grid;grid-template-columns:minmax(120px,1fr) 145px auto;gap:5px;padding:8px 11px}.customer-success-plan>form button,.customer-plan-create button{height:32px;padding:0 9px;border:1px solid #9ac4b6;border-radius:8px;color:#08765d;background:#f1faf6;font-size:7px;font-weight:800}.customer-plan-create{grid-template-columns:1fr 1.4fr 145px auto;border-top:1px solid #e6eeeb;background:#fbfdfc}.customer-plan-create button{color:#fff;background:#078064}.customer-detail-empty{display:flex!important;align-items:center;justify-content:center;min-height:72px;margin:0;color:#899891;font-size:7.5px}
.customer-journey-section>div{max-height:300px;padding:4px 12px}.customer-journey-section article{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;padding:8px 0}.customer-journey-section article:not(:last-child):after{content:"";position:absolute;top:39px;bottom:-5px;left:15px;width:1px;background:#dce9e4}.customer-journey-section article>span{z-index:1;display:grid;place-items:center;width:32px;height:32px;border:1px solid #d8e8e2;border-radius:10px;color:#08765d;background:#edf8f4;font-size:14px}.customer-journey-section article>div{display:grid;gap:3px;min-width:0}.customer-journey-section article header{display:flex;align-items:center;gap:6px}.customer-journey-section article header b{overflow:hidden;color:#39564c;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.customer-journey-section article header em{padding:2px 5px;border-radius:5px;color:#6c5aa0;background:#f1eef9;font-size:6px;font-style:normal}.customer-journey-section article time{margin-left:auto;color:#98a39f;font-size:6.5px}.customer-journey-section article p{margin:0;color:#7f8f89;font-size:7px;line-height:1.45}
.customer-governance-grid{display:grid;grid-template-columns:minmax(600px,1.2fr) minmax(410px,.8fr);gap:10px;align-items:start}.customer-governance-side{display:grid;gap:10px}.customer-preference-section,.customer-tag-section,.customer-quality-section,.customer-relationship-section,.customer-value-section,.customer-identity-governance{overflow:hidden;border:1px solid #d9e7e2;border-radius:13px;background:#fff}.customer-preference-section>header,.customer-tag-section>header,.customer-quality-section>header,.customer-relationship-section>header,.customer-value-section>header,.customer-identity-governance>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #e5eeeb;background:#fbfdfc}.customer-preference-section>header>div,.customer-tag-section>header>div,.customer-quality-section>header>div,.customer-relationship-section>header>div,.customer-value-section>header>div,.customer-identity-governance>header>div{display:grid;gap:2px}.customer-preference-section>header b,.customer-tag-section>header b,.customer-quality-section>header b,.customer-relationship-section>header b,.customer-value-section>header b,.customer-identity-governance>header b{color:#345248;font-size:9px}.customer-preference-section>header small,.customer-tag-section>header small,.customer-quality-section>header small,.customer-relationship-section>header small,.customer-value-section>header small,.customer-identity-governance>header small{color:#8d9b96;font-size:7px}.customer-preference-section>header>span,.customer-tag-section>header>span,.customer-quality-section>header>span,.customer-relationship-section>header>span,.customer-value-section>header>span,.customer-identity-governance>header>span{display:flex;align-items:center;gap:4px;padding:4px 7px;border-radius:7px;color:#16745e;background:#edf7f3;font-size:7px;font-weight:800;white-space:nowrap}.customer-preference-section>header>span.is-blocked,.customer-quality-section>header>span.has-issues{color:#b44e48;background:#ffedeb}
.customer-preference-section>form{display:grid;grid-template-columns:1.15fr repeat(3,minmax(0,1fr));gap:8px;padding:11px 13px}.customer-preference-section label,.customer-value-section label{display:grid;gap:4px;min-width:0;color:#536b62;font-size:7.5px;font-weight:750}.customer-preference-section label.span-2,.customer-value-section label.span-2{grid-column:span 2}.customer-preference-section input,.customer-preference-section select,.customer-preference-section textarea,.customer-tag-section input,.customer-relationship-section input,.customer-relationship-section select,.customer-value-section input,.customer-identity-governance input,.customer-identity-governance select{width:100%;min-width:0;border:1px solid #dce8e4;border-radius:8px;outline:0;color:#425b52;background:#fff;font-size:8px}.customer-preference-section input,.customer-preference-section select,.customer-tag-section input,.customer-relationship-section input,.customer-relationship-section select,.customer-value-section input,.customer-identity-governance input,.customer-identity-governance select{height:33px;padding:0 8px}.customer-preference-section textarea{padding:7px 8px;resize:vertical;line-height:1.45}.customer-preference-section input:focus,.customer-preference-section select:focus,.customer-preference-section textarea:focus,.customer-tag-section input:focus,.customer-relationship-section input:focus,.customer-relationship-section select:focus,.customer-value-section input:focus,.customer-identity-governance input:focus,.customer-identity-governance select:focus{border-color:#72b3a1;box-shadow:0 0 0 3px rgba(7,151,116,.07)}.customer-contact-toggle{grid-column:span 2;position:relative;display:flex!important;align-items:center;gap:8px;padding:7px 9px;border:1px solid #dce9e4;border-radius:9px;background:#f6fbf9}.customer-contact-toggle>input{width:15px!important;height:15px!important;accent-color:#078265}.customer-contact-toggle>span{display:grid;gap:1px}.customer-contact-toggle b{color:#36564b;font-size:8px}.customer-contact-toggle small{color:#899891;font-size:6.5px;font-weight:500;line-height:1.4}.customer-preference-section fieldset{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0;margin:0;padding:6px 8px;border:1px solid #e1ebe7;border-radius:9px}.customer-preference-section fieldset.span-2{grid-column:span 2}.customer-preference-section legend{padding:0 4px;color:#647c73;font-size:6.5px;font-weight:800}.customer-preference-section fieldset label{display:flex;align-items:center;gap:3px;padding:3px 5px;border-radius:5px;background:#f2f7f5;font-size:6.5px}.customer-preference-section fieldset input{width:12px!important;height:12px!important;accent-color:#078265}.customer-preference-section form>button,.customer-tag-section form>button,.customer-relationship-section form>button,.customer-value-section form>button,.customer-identity-governance form>button{display:flex;align-items:center;justify-content:center;gap:4px;align-self:end;height:33px;padding:0 9px;border:1px solid #078064;border-radius:8px;color:#fff;background:#078064;font-size:7.5px;font-weight:800}
.customer-tag-cloud{display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px;min-height:44px;max-height:128px;padding:9px;overflow:auto}.customer-tag-cloud>span{position:relative;display:grid;grid-template-columns:13px minmax(0,1fr) auto;align-items:center;gap:1px 4px;padding:5px 7px;border:1px solid #dce9e4;border-radius:8px;color:#4f6d62;background:#f5faf8}.customer-tag-cloud>span>i{grid-row:1/3;color:#138067;font-size:11px}.customer-tag-cloud b{font-size:7px}.customer-tag-cloud small{grid-column:2/4;color:#8c9a95;font-size:5.8px}.customer-tag-cloud button{grid-column:3;grid-row:1;width:17px;height:17px;padding:0;border:0;border-radius:5px;color:#8a9993;background:#fff}.customer-tag-cloud .source-manual{border-color:#dcd2ed;color:#674d99;background:#f7f3fc}.customer-tag-cloud .source-manual>i{color:#7456a8}.customer-tag-cloud .is-conflict{border-color:#ebcfb4;color:#9b602b;background:#fff7ed}.customer-tag-section>form{display:grid;grid-template-columns:1fr 1fr 72px 132px;gap:5px;padding:8px 9px;border-top:1px solid #e9efed;background:#fbfdfc}.customer-tag-section>form #customerTagEvidence{grid-column:span 3}.customer-tag-section>form button{grid-column:4}
.customer-quality-section>div{display:grid;max-height:185px;overflow:auto}.customer-quality-section article{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px 10px;border-bottom:1px solid #edf2f0}.customer-quality-section article:last-child{border-bottom:0}.customer-quality-section article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#a66e29;background:#fff1de;font-size:14px}.customer-quality-section article.severity-critical>span,.customer-quality-section article.severity-high>span{color:#b34e47;background:#ffebe9}.customer-quality-section article>div{display:grid;gap:2px;min-width:0}.customer-quality-section article header{display:flex;align-items:center;gap:5px}.customer-quality-section article b{overflow:hidden;color:#3b574d;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.customer-quality-section article em{margin-left:auto;padding:2px 4px;border-radius:4px;color:#9d622a;background:#fff1df;font-size:5.8px;font-style:normal}.customer-quality-section article p{margin:0;color:#82918c;font-size:6.5px;line-height:1.4}.customer-quality-section article small{color:#99a49f;font-size:5.8px}.customer-quality-section article button{height:24px;padding:0 6px;border:1px solid #a9cdbf;border-radius:6px;color:#08765d;background:#f2faf7;font-size:6px}.customer-quality-section article>strong{color:#17775f;font-size:6.5px}.customer-quality-section article.status-resolved{opacity:.65}
.customer-network-value-grid{grid-template-columns:1fr 1fr}.customer-relationship-list{display:grid;max-height:210px;overflow:auto}.customer-relationship-list article{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 11px;border-bottom:1px solid #edf2f0}.customer-relationship-list article:last-child{border-bottom:0}.customer-relationship-list article>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#08765d;background:#e6f5ef;font-size:14px}.customer-relationship-list article>div{display:grid;gap:2px;min-width:0}.customer-relationship-list article header{display:flex;align-items:center;gap:5px}.customer-relationship-list article b{overflow:hidden;color:#3b574d;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.customer-relationship-list article em{padding:2px 4px;border-radius:4px;color:#684d9b;background:#f1edf9;font-size:5.8px;font-style:normal}.customer-relationship-list article p{margin:0;color:#82918c;font-size:6.5px}.customer-relationship-list article small{color:#98a39f;font-size:5.8px}.customer-relationship-list article button{height:23px;padding:0 6px;border:1px solid #dfe7e4;border-radius:6px;color:#75847f;background:#fff;font-size:6px}.customer-relationship-list article.status-revoked{opacity:.5}.customer-relationship-section>form{display:grid;grid-template-columns:1fr 1fr 120px 90px;gap:5px;padding:8px 10px;border-top:1px solid #e7eeeb;background:#fbfdfc}.customer-relationship-section>form #customerRelationEvidence{grid-column:span 3}.customer-relationship-section>form button{grid-column:4}
.customer-value-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid #e8efec}.customer-value-summary article{display:grid;gap:2px;padding:9px;border-right:1px solid #e8efec}.customer-value-summary article:last-child{border-right:0}.customer-value-summary small{color:#899791;font-size:6px}.customer-value-summary b{overflow:hidden;color:#3d5a50;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.customer-value-summary .is-net{background:#eff8f4}.customer-value-summary .is-net b{color:#08765d}.customer-value-section>form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:9px 11px}.customer-value-section>form>button{grid-column:4}.customer-value-section>p{display:flex;align-items:center;gap:5px;margin:0;padding:8px 11px;border-top:1px solid #e8efec;color:#73877f;background:#fbfdfc;font-size:6.5px}.customer-value-section>p i{color:#7153a5}
.customer-identity-governance>header>span{color:#6e54a1;background:#f2eef9}.customer-identity-governance>div{display:grid;grid-template-columns:minmax(360px,.72fr) minmax(520px,1.28fr)}.customer-identity-governance>div>form{display:grid;align-content:start;gap:7px;padding:11px;border-right:1px solid #e4ece9;background:#fbfdfc}.customer-identity-governance>div>form>button{margin-top:2px}.customer-identity-proposals{display:grid;max-height:235px;overflow:auto}.customer-identity-proposals article{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid #edf2f0}.customer-identity-proposals article:last-child{border-bottom:0}.customer-identity-proposals article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#7052a4;background:#f0ebf8;font-size:16px}.customer-identity-proposals article.status-executed>span{color:#08765d;background:#e5f4ee}.customer-identity-proposals article.status-reverted>span{color:#99702f;background:#fff2df}.customer-identity-proposals article>div{display:grid;gap:3px;min-width:0}.customer-identity-proposals article header{display:flex;align-items:center;gap:5px}.customer-identity-proposals article b{color:#39564c;font-size:8px}.customer-identity-proposals article em{padding:2px 5px;border-radius:5px;color:#6e51a1;background:#f0ecf8;font-size:6px;font-style:normal}.customer-identity-proposals article p{overflow:hidden;margin:0;color:#7f8f89;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.customer-identity-proposals footer{display:flex;flex-wrap:wrap;gap:6px;color:#96a19d;font-size:6px}.customer-identity-proposals aside{display:grid;gap:4px}.customer-identity-proposals aside button{height:24px;padding:0 7px;border:1px solid #b5a5d1;border-radius:6px;color:#694b9e;background:#f5f1fb;font-size:6.5px}.customer-identity-proposals aside button+button{border-color:#dfe7e4;color:#74827d;background:#fff}.customer-identity-proposals aside strong{color:#7e8e88;font-size:6.5px}
@media(max-width:1050px){.customer-ops-list{grid-template-columns:1fr}.customer-ops-list>button{border-right:0}.customer-detail-overview{grid-template-columns:1fr}.customer-component-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.customer-profile-control>form{grid-template-columns:1fr 1fr 1fr}.customer-profile-control label.span-2{grid-column:span 2}.customer-detail-workspace{grid-template-columns:1fr}}
@media(max-width:1050px){.customer-governance-grid,.customer-network-value-grid{grid-template-columns:1fr}.customer-governance-side{grid-template-columns:1fr 1fr}.customer-identity-governance>div{grid-template-columns:1fr}.customer-identity-governance>div>form{border-right:0;border-bottom:1px solid #e4ece9}.customer-identity-proposals{max-height:300px}}
@media(max-width:760px){.customer-heading-actions{width:100%;justify-content:space-between}.customer-ops-hero>header{align-items:flex-start}.customer-ops-hero>header>em{display:none}.customer-ops-metrics{grid-template-columns:1fr 1fr}.customer-ops-metrics article:nth-child(2){border-right:0}.customer-ops-metrics article:nth-child(-n+2){border-bottom:1px solid #e7eeeb}.modal-card.customer-ops-modal-card{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:none;border-radius:16px}.customer-ops-modal-head{grid-template-columns:42px minmax(0,1fr);padding:15px 50px 14px 15px}.customer-ops-modal-avatar,.customer-ops-modal-avatar .entity-avatar{width:42px;height:42px}.customer-ops-modal-head>em{grid-column:2;justify-self:start}.customer-component-grid{grid-template-columns:1fr 1fr}.customer-profile-control>form{grid-template-columns:1fr 1fr}.customer-profile-control label.span-2{grid-column:1/-1}.customer-plan-create{grid-template-columns:1fr 1fr}.customer-plan-create button{grid-column:1/-1}.customer-success-plan>form{grid-template-columns:1fr 1fr}.customer-success-plan>form button{grid-column:1/-1}.customer-journey-section article time{display:none}}
@media(max-width:760px){.customer-governance-side{grid-template-columns:1fr}.customer-preference-section>form{grid-template-columns:1fr 1fr}.customer-contact-toggle,.customer-preference-section label.span-2,.customer-preference-section fieldset.span-2{grid-column:1/-1}.customer-tag-section>form{grid-template-columns:1fr 1fr}.customer-tag-section>form #customerTagEvidence{grid-column:1/-1}.customer-tag-section>form button{grid-column:1/-1}.customer-relationship-section>form{grid-template-columns:1fr 1fr}.customer-relationship-section>form #customerRelationEvidence{grid-column:1/-1}.customer-relationship-section>form button{grid-column:1/-1}.customer-value-section>form{grid-template-columns:1fr 1fr}.customer-value-section label.span-2{grid-column:1/-1}.customer-value-section>form>button{grid-column:1/-1}.customer-value-summary{grid-template-columns:1fr 1fr}.customer-value-summary article:nth-child(2n){border-right:0}.customer-value-summary .is-net{grid-column:1/-1}.customer-identity-proposals article{grid-template-columns:32px minmax(0,1fr)}.customer-identity-proposals aside{grid-column:2;grid-template-columns:1fr 1fr}}
@media(max-width:480px){.customer-heading-actions{display:grid;grid-template-columns:1fr 1fr}.customer-heading-actions button{width:100%;padding-inline:7px}.customer-ops-hero>header{padding:14px}.customer-ops-hero>header>span{width:38px;height:38px;flex-basis:38px}.customer-ops-hero>header p{display:none}.customer-ops-metrics article{padding:10px}.customer-ops-metrics strong{font-size:18px}.customer-ops-list>button{grid-template-columns:38px 30px minmax(0,1fr);padding:9px}.customer-ops-list>button>.entity-avatar{width:30px;height:30px}.customer-ops-list>button>i{display:none}.customer-ops-list footer span:nth-child(n+3){display:none}.customer-ops-modal-head>em{display:none}.customer-ops-modal-body{padding:9px}.customer-component-grid{grid-template-columns:1fr}.customer-profile-control>form{grid-template-columns:1fr}.customer-profile-control label.span-2{grid-column:auto}.customer-profile-control form>button{width:100%}.customer-playbook-section article{grid-template-columns:30px minmax(0,1fr)}.customer-playbook-section article aside,.customer-playbook-section article>strong{grid-column:2}.customer-playbook-section article aside{grid-template-columns:1fr 1fr}.customer-success-plan>div>span{grid-template-columns:14px minmax(0,1fr) auto}.customer-success-plan>div>span small{display:none}.customer-success-plan>form,.customer-plan-create{grid-template-columns:1fr}.customer-success-plan>form button,.customer-plan-create button{grid-column:auto}.customer-ops-modal-card>footer>span{display:none}.customer-ops-modal-card>footer button{width:100%}}
@media(max-width:480px){.customer-preference-section>header,.customer-tag-section>header,.customer-quality-section>header,.customer-relationship-section>header,.customer-value-section>header,.customer-identity-governance>header{align-items:flex-start}.customer-preference-section>header>span,.customer-identity-governance>header>span{display:none}.customer-preference-section>form,.customer-tag-section>form,.customer-relationship-section>form,.customer-value-section>form{grid-template-columns:1fr}.customer-contact-toggle,.customer-preference-section label.span-2,.customer-preference-section fieldset.span-2,.customer-tag-section>form #customerTagEvidence,.customer-tag-section>form button,.customer-relationship-section>form #customerRelationEvidence,.customer-relationship-section>form button,.customer-value-section label.span-2,.customer-value-section>form>button{grid-column:auto}.customer-quality-section article{grid-template-columns:28px minmax(0,1fr)}.customer-quality-section article button,.customer-quality-section article>strong{grid-column:2;justify-self:start}.customer-relationship-list article{grid-template-columns:29px minmax(0,1fr)}.customer-relationship-list article button{grid-column:2;justify-self:start}.customer-value-summary{grid-template-columns:1fr}.customer-value-summary article{border-right:0;border-bottom:1px solid #e8efec}.customer-identity-governance>div>form{padding:9px}.customer-identity-proposals footer span:nth-child(n+4){display:none}}

/* Unified work operations: personal execution, team capacity and evidence quality */
.work-ops-heading{align-items:flex-end}.work-ops-heading>button{flex:none}.work-ops-hero{overflow:hidden;margin-bottom:10px;border:1px solid #d7e8e2;border-radius:16px;background:linear-gradient(118deg,#fbfefd 0%,#eef8f4 58%,#f5f1fb 100%);box-shadow:0 12px 35px rgba(16,72,57,.045)}
.work-ops-hero>header{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(204,225,217,.8)}.work-ops-hero>header>span{display:grid;place-items:center;width:46px;height:46px;border:1px solid #cfe6dd;border-radius:14px;color:#08795f;background:#fff;font-size:22px;box-shadow:0 8px 22px rgba(8,121,95,.08)}.work-ops-hero>header>div{display:grid;gap:2px}.work-ops-hero>header small{color:#158067;font-size:7px;font-weight:850;letter-spacing:.08em}.work-ops-hero>header h2{margin:0;color:#294a3f;font-size:17px;letter-spacing:-.02em}.work-ops-hero>header p{margin:0;color:#71857d;font-size:8px;line-height:1.5}.work-ops-hero>header>em{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #d5e7e0;border-radius:9px;color:#55756a;background:rgba(255,255,255,.82);font-size:7px;font-style:normal;font-weight:800;white-space:nowrap}.work-ops-hero>header>em i{width:7px;height:7px;border-radius:50%;background:#08a17c;box-shadow:0 0 0 4px rgba(8,161,124,.1)}
.work-ops-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.work-ops-metrics article{display:grid;gap:2px;padding:11px 13px;border-right:1px solid #deebe6}.work-ops-metrics article:last-child{border-right:0}.work-ops-metrics small{color:#81928b;font-size:6.5px}.work-ops-metrics strong{color:#2f5549;font-size:18px;line-height:1.15}.work-ops-metrics span{color:#95a19c;font-size:6px}.work-ops-metrics article:nth-child(2) strong,.work-ops-metrics article:nth-child(4) strong{color:#b25a4e}.work-ops-metrics article:nth-child(3) strong,.work-ops-metrics article:nth-child(5) strong{color:#a66b25}.work-ops-metrics article:nth-child(6) strong{color:#7053a3}
.work-ops-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 10px}.work-ops-tabs>button{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;min-height:49px;padding:7px 10px;border:1px solid #dfe9e5;border-radius:12px;color:#6c7e77;background:#fff;text-align:left;transition:.18s ease}.work-ops-tabs>button>i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#668078;background:#f1f6f4;font-size:16px}.work-ops-tabs>button span{display:grid;gap:1px}.work-ops-tabs>button b{color:#425e54;font-size:8.5px}.work-ops-tabs>button small{color:#92a09b;font-size:6.5px}.work-ops-tabs>button.active{border-color:#9ccbbb;color:#08775e;background:#eef8f4;box-shadow:inset 0 0 0 1px rgba(7,128,100,.04)}.work-ops-tabs>button.active>i{color:#fff;background:#0a8b6d;box-shadow:0 6px 14px rgba(10,139,109,.18)}.work-ops-tabs>button.active b{color:#08745b}
.work-ops-today-grid{display:grid;grid-template-columns:minmax(650px,1.55fr) minmax(350px,.75fr);gap:10px;align-items:start}.work-queue-panel,.work-reminder-panel,.work-blocker-panel,.work-handoff-panel,.work-load-panel,.work-shift-panel,.work-fairness-panel,.work-playbook-panel,.work-repetition-panel,.work-review-panel,.work-coaching-panel,.work-skill-panel,.work-goal-panel{overflow:hidden;border-color:#dfe9e5}.work-queue-panel>header,.work-today-side section>header,.work-team-grid section>header,.work-standard-grid section>header,.work-quality-grid section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #e8efec;background:#fbfdfc}.work-queue-panel>header>div,.work-today-side section>header>div,.work-team-grid section>header>div,.work-standard-grid section>header>div,.work-quality-grid section>header>div{display:grid;gap:2px}.work-queue-panel>header b,.work-today-side section>header b,.work-team-grid section>header b,.work-standard-grid section>header b,.work-quality-grid section>header b{color:#37534a;font-size:9px}.work-queue-panel>header small,.work-today-side section>header small,.work-team-grid section>header small,.work-standard-grid section>header small,.work-quality-grid section>header small{color:#8d9b96;font-size:6.5px}.work-queue-panel>header>span,.work-today-side section>header>span,.work-team-grid section>header>span,.work-standard-grid section>header>span,.work-quality-grid section>header>span{padding:4px 7px;border-radius:7px;color:#15745d;background:#edf7f3;font-size:6.5px;font-weight:800;white-space:nowrap}
.work-queue-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 125px 135px;gap:6px;padding:8px 10px;border-bottom:1px solid #e9efed}.work-queue-toolbar label{position:relative}.work-queue-toolbar label i{position:absolute;left:9px;top:50%;color:#82938c;transform:translateY(-50%)}.work-queue-toolbar input{padding-left:28px!important}.work-queue-toolbar input,.work-queue-toolbar select,.work-batch-bar input,.work-batch-bar select{width:100%;height:32px;border:1px solid #dce8e4;border-radius:8px;outline:0;color:#466058;background:#fff;font-size:7.5px}.work-queue-toolbar input:focus,.work-queue-toolbar select:focus,.work-batch-bar input:focus,.work-batch-bar select:focus{border-color:#7db9a7;box-shadow:0 0 0 3px rgba(7,139,105,.07)}
.work-batch-bar{display:grid;grid-template-columns:auto 115px minmax(105px,1fr) auto;align-items:center;gap:6px;padding:7px 10px;border-bottom:1px solid #e6eeeb;background:#f7faf9}.work-batch-bar>span:first-child{color:#71857d;font-size:7px;white-space:nowrap}.work-batch-bar>span:first-child b{color:#08765d;font-size:9px}.work-batch-bar #workBatchTagFields{display:grid;grid-template-columns:1fr 1fr;gap:5px}.work-batch-bar>button{display:flex;align-items:center;justify-content:center;gap:5px;height:32px;padding:0 10px;border:1px solid #14876c;border-radius:8px;color:#fff;background:#078265;font-size:7px;font-weight:850;white-space:nowrap}.work-batch-bar>button:disabled{border-color:#dbe5e1;color:#9aa6a1;background:#edf2f0;cursor:not-allowed}
.work-ops-list{display:grid;max-height:580px;overflow:auto}.work-ops-list>article{position:relative;display:grid;grid-template-columns:22px 34px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:73px;padding:9px 11px;border-bottom:1px solid #edf2f0;background:#fff;cursor:pointer;transition:.15s ease}.work-ops-list>article:last-child{border-bottom:0}.work-ops-list>article:hover{z-index:1;background:#f7fbf9;box-shadow:inset 3px 0 #209779}.work-ops-list>article.is-overdue{background:linear-gradient(90deg,#fff8f6,#fff 28%)}.work-ops-list>article.is-due{background:linear-gradient(90deg,#fffaf0,#fff 25%)}.work-select{display:grid;place-items:center}.work-select input{width:14px;height:14px;accent-color:#078265}.work-source-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#08795f;background:#e9f6f1;font-size:16px}.work-item-main{display:grid;gap:4px;min-width:0}.work-item-main>header{display:flex;align-items:center;gap:5px;min-width:0}.work-item-main>header em,.work-item-main>header span{padding:2px 5px;border-radius:5px;font-size:5.8px;font-style:normal;font-weight:800;white-space:nowrap}.work-item-main>header em{color:#687c74;background:#edf3f1}.work-item-main>header b{overflow:hidden;color:#345148;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.work-item-main>header span.priority-critical{color:#b44343;background:#ffe9e7}.work-item-main>header span.priority-high{color:#a56322;background:#fff0dc}.work-item-main>header span.priority-normal{color:#08745d;background:#e8f5f0}.work-item-main>header span.priority-low{color:#74857e;background:#edf2f0}.work-item-main>p{margin:0;color:#80918a;font-size:6.5px}.work-item-main>footer{display:flex;flex-wrap:wrap;gap:4px 10px;color:#94a19c;font-size:5.9px}.work-item-main>footer span{display:flex;align-items:center;gap:3px}.work-item-main>footer .has-risk{color:#ae5048}.work-ops-list>article>aside{display:flex;align-items:center;gap:7px;color:#9da7a3}.work-ops-list>article>aside>span{display:flex;align-items:center;gap:4px;padding:4px 6px;border-radius:6px;color:#5c776e;background:#edf5f2;font-size:6.3px;font-weight:800;white-space:nowrap}.work-ops-list>article>aside>span.status-waiting{color:#a56a27;background:#fff2df}.work-ops-list>article>aside>span.status-review{color:#6c4f9d;background:#f1ecf8}.work-ops-list>article>aside>span.status-completed{color:#0b7c60;background:#e5f5ee}
.work-today-side{display:grid;gap:10px}.work-today-side section>div{display:grid;max-height:220px;overflow:auto}.work-today-side article,.work-shift-list article,.work-playbook-panel>div article,.work-repetition-panel>div article,.work-review-panel>div article,.work-coaching-panel>div article,.work-skill-panel>div article,.work-goal-panel>div article{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px 10px;border-bottom:1px solid #edf2f0}.work-today-side article:last-child,.work-shift-list article:last-child,.work-playbook-panel>div article:last-child,.work-repetition-panel>div article:last-child,.work-review-panel>div article:last-child,.work-coaching-panel>div article:last-child,.work-skill-panel>div article:last-child,.work-goal-panel>div article:last-child{border-bottom:0}.work-today-side article>span,.work-shift-list article>span,.work-playbook-panel>div article>span,.work-repetition-panel>div article>span,.work-review-panel>div article>span,.work-coaching-panel>div article>span,.work-skill-panel>div article>span,.work-goal-panel>div article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#08775e;background:#e9f5f0;font-size:14px}.work-today-side article>div,.work-shift-list article>div,.work-playbook-panel>div article>div,.work-repetition-panel>div article>div,.work-review-panel>div article>div,.work-coaching-panel>div article>div,.work-skill-panel>div article>div,.work-goal-panel>div article>div{display:grid;gap:2px;min-width:0}.work-today-side article b,.work-shift-list article b,.work-playbook-panel>div article b,.work-repetition-panel>div article b,.work-review-panel>div article b,.work-coaching-panel>div article b,.work-skill-panel>div article b,.work-goal-panel>div article b{overflow:hidden;color:#3c574e;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.work-today-side article p,.work-shift-list article p,.work-playbook-panel>div article p,.work-repetition-panel>div article p,.work-review-panel>div article p,.work-coaching-panel>div article p,.work-skill-panel>div article p,.work-goal-panel>div article p{overflow:hidden;margin:0;color:#809089;font-size:6.2px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.work-today-side article small,.work-shift-list article small,.work-playbook-panel>div article small,.work-repetition-panel>div article small,.work-review-panel>div article small,.work-coaching-panel>div article small,.work-skill-panel>div article small,.work-goal-panel>div article small{color:#99a49f;font-size:5.8px}.work-today-side article aside,.work-repetition-panel article aside{display:grid;gap:3px}.work-today-side article button,.work-repetition-panel article button,.work-review-panel article button,.work-coaching-panel article button{height:23px;padding:0 6px;border:1px solid #cfe2da;border-radius:6px;color:#08745d;background:#f5faf8;font-size:5.8px}.work-blocker-panel article>span{color:#ad594a;background:#ffebe8}.work-handoff-panel article>span{color:#6d52a1;background:#f0ebf8}.work-side-empty,.work-ops-empty{display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:65px;margin:0;padding:12px;color:#899891;font-size:6.5px;text-align:center}.work-ops-empty i{font-size:18px}.work-ops-empty span{display:grid;gap:2px}.work-ops-empty b{color:#64786f;font-size:8px}.work-ops-empty small{font-size:6.5px}
.work-team-grid{display:grid;grid-template-columns:minmax(530px,1.15fr) minmax(430px,.85fr);gap:10px;align-items:start}.work-load-panel{grid-row:span 2}.work-load-list{display:grid;max-height:560px;overflow:auto}.work-load-list article{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid #edf2f0}.work-load-ring{--work-load:0;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:conic-gradient(#0b8b6d calc(var(--work-load)*1%),#e5eeeb 0);position:relative}.work-load-ring:after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.work-load-ring b{z-index:1;color:#35574b;font-size:7px}.work-load-list article>div{display:grid;gap:3px;min-width:0}.work-load-list header{display:flex;gap:6px;align-items:center}.work-load-list header b{color:#38554b;font-size:8px}.work-load-list header em{padding:2px 5px;border-radius:5px;color:#15745d;background:#ebf6f2;font-size:5.8px;font-style:normal}.work-load-list p{margin:0;color:#7f9089;font-size:6.5px}.work-load-list footer{display:flex;gap:10px;color:#98a39f;font-size:5.8px}.work-load-list article>strong{padding:4px 6px;border-radius:6px;color:#58776c;background:#edf6f2;font-size:6px}.work-load-list article.is-overload .work-load-ring{background:conic-gradient(#c8574d calc(var(--work-load)*1%),#f4e6e4 0)}.work-load-list article.is-overload>strong{color:#b34e48;background:#ffebe9}.work-load-list article.is-available>strong{color:#694f9b;background:#f1ecf8}
.work-coverage-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 9px;border-bottom:1px solid #e4ece9;background:#f7faf9}.work-coverage-list article{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px;padding:7px;border:1px solid #dce8e4;border-radius:9px;background:#fff}.work-coverage-list article>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#08775f;background:#e7f5f0;font-size:13px}.work-coverage-list article.has-gap{border-color:#efd5ce;background:#fffaf8}.work-coverage-list article.has-gap>span{color:#b7564a;background:#ffeae6}.work-coverage-list article>div{display:grid;gap:2px;min-width:0}.work-coverage-list header{display:flex;align-items:center;gap:5px}.work-coverage-list b{overflow:hidden;color:#3c594f;font-size:6.5px;white-space:nowrap;text-overflow:ellipsis}.work-coverage-list em{margin-left:auto;padding:2px 4px;border-radius:4px;color:#16735d;background:#eaf6f1;font-size:5.4px;font-style:normal}.work-coverage-list .has-gap em{color:#b65047;background:#ffe9e5}.work-coverage-list p{margin:0;color:#7f9089;font-size:5.8px}.work-coverage-list small{color:#9a746d;font-size:5.5px}.work-coverage-list footer{display:flex;align-items:center;gap:3px;color:#725a99;font-size:5.5px}.work-shift-list{display:grid;max-height:250px;overflow:auto}.work-shift-list article>em{color:#8b9893;font-size:5.8px;font-style:normal}.work-shift-panel>form,.work-playbook-panel>form,.work-skill-panel>form,.work-goal-panel>form{display:grid;gap:5px;padding:9px 10px;border-top:1px solid #e7efec;background:#fbfdfc}.work-shift-panel>form{grid-template-columns:1fr 1fr 1fr}.work-shift-panel>form input,.work-shift-panel>form select,.work-playbook-panel>form input,.work-playbook-panel>form textarea,.work-skill-panel>form input,.work-skill-panel>form select,.work-goal-panel>form input,.work-goal-panel>form select{width:100%;min-width:0;border:1px solid #dce8e4;border-radius:7px;outline:0;color:#425d53;background:#fff;font-size:7px}.work-shift-panel>form input,.work-shift-panel>form select,.work-playbook-panel>form input,.work-skill-panel>form input,.work-skill-panel>form select,.work-goal-panel>form input,.work-goal-panel>form select{height:31px;padding:0 7px}.work-shift-panel>form button,.work-playbook-panel>form button,.work-skill-panel>form button,.work-goal-panel>form button{display:flex;align-items:center;justify-content:center;gap:4px;height:31px;border:1px solid #078064;border-radius:7px;color:#fff;background:#078064;font-size:6.5px;font-weight:800}.work-fairness-panel>div{display:grid;max-height:250px;overflow:auto}.work-fairness-panel article{display:grid;grid-template-columns:31px minmax(0,1fr);gap:8px;padding:9px 11px;border-bottom:1px solid #edf2f0}.work-fairness-panel article>span,.work-fairness-ok>i{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#a46727;background:#fff1de;font-size:15px}.work-fairness-panel article div,.work-fairness-ok span{display:grid;gap:2px}.work-fairness-panel article b,.work-fairness-ok b{color:#3c584e;font-size:7.5px}.work-fairness-panel article p{margin:0;color:#7f9089;font-size:6.5px}.work-fairness-panel article small,.work-fairness-ok small{color:#98a39f;font-size:5.8px}.work-fairness-ok{display:flex;align-items:center;gap:8px;padding:12px}.work-fairness-ok>i{color:#08765d;background:#e8f5f0}
.work-standard-grid{display:grid;grid-template-columns:minmax(600px,1.2fr) minmax(390px,.8fr);gap:10px;align-items:start}.work-playbook-panel>div,.work-repetition-panel>div,.work-review-panel>div,.work-coaching-panel>div,.work-skill-panel>div,.work-goal-panel>div{display:grid;max-height:300px;overflow:auto}.work-playbook-panel>form{grid-template-columns:1fr 1fr 1fr}.work-playbook-panel>form textarea{padding:7px;resize:vertical;line-height:1.4}.work-playbook-panel>form #workPlaybookDescription,.work-playbook-panel>form #workPlaybookSteps{grid-column:1/-1}.work-playbook-panel>form>label{display:flex;align-items:center;gap:5px;color:#64786f;font-size:6.5px}.work-playbook-panel>form>label input{width:13px;height:13px;accent-color:#078265}.work-playbook-panel>form>button{grid-column:3}.work-repetition-panel article>span{color:#6d52a1;background:#f0ebf8}.work-repetition-panel article header,.work-playbook-panel article header{display:flex;align-items:center;gap:5px}.work-repetition-panel article em,.work-playbook-panel article em{margin-left:auto;color:#6b5398;font-size:5.8px;font-style:normal}.work-repetition-panel article>strong{color:#71827b;font-size:6px}
.work-quality-grid{display:grid;grid-template-columns:repeat(2,minmax(450px,1fr));gap:10px;align-items:start}.work-review-panel article>span{color:#a86127;background:#fff0dd}.work-coaching-panel article>span{color:#6d51a1;background:#f0ebf8}.work-skill-panel>div article>.work-skill-meter{--skill:0;position:relative;display:grid!important;place-items:center;width:34px;height:34px;border-radius:50%;overflow:hidden;background:conic-gradient(#0b9876 calc(var(--skill)*1%),#e5efeb 0)}.work-skill-panel>div article>.work-skill-meter:after{position:absolute;inset:4px;border-radius:50%;background:#fff;content:""}.work-skill-meter b{position:relative;z-index:1;color:#08745d;font-size:6px}.work-skill-panel>form{grid-template-columns:1fr 1fr 1fr}.work-skill-panel>form #workSkillEvidence{grid-column:span 2}.work-goal-panel>form{grid-template-columns:1fr 1fr 1fr}.work-goal-panel>form #workGoalDescription{grid-column:span 2}
.modal-card.work-item-modal-card{width:min(1180px,calc(100vw - 32px));height:min(860px,calc(100dvh - 32px));max-height:none;padding:0;overflow:hidden;border-radius:18px}.work-item-modal-head,.work-batch-modal-head{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:11px;padding:14px 54px 14px 16px;border-bottom:1px solid #dce9e4;background:linear-gradient(110deg,#eff9f5,#fafdfc 60%,#f2eef9)}.work-item-modal-head>span,.work-batch-modal-head>span{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:#fff;background:linear-gradient(140deg,#069171,#08745d);font-size:21px;box-shadow:0 8px 20px rgba(7,128,100,.16)}.work-item-modal-head>div,.work-batch-modal-head>div{display:grid;gap:2px}.work-item-modal-head small,.work-batch-modal-head small{color:#148067;font-size:6.5px;font-weight:850;letter-spacing:.06em}.work-item-modal-head h2,.work-batch-modal-head h2{margin:0;color:#2d4c42;font-size:16px}.work-item-modal-head p,.work-batch-modal-head p{margin:0;color:#7b8d86;font-size:7px}.work-item-modal-head>em,.work-batch-modal-head>em{display:flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #d4e6df;border-radius:8px;color:#56766b;background:#fff;font-size:6.5px;font-style:normal;font-weight:800}.work-item-modal-head>em i{width:6px;height:6px;border-radius:50%;background:#08a17c}.work-item-modal-body{height:calc(100% - 128px);padding:10px;overflow:auto;background:#f6f9f8}.work-item-modal-card>footer,.work-batch-modal-card>footer{display:flex;align-items:center;gap:8px;min-height:55px;padding:9px 14px;border-top:1px solid #dfe9e5;background:#fff}.work-item-modal-card>footer>span,.work-batch-modal-card>footer>span{display:flex;align-items:center;gap:5px;margin-right:auto;color:#73867e;font-size:6.5px}.work-item-loading{display:flex;align-items:center;justify-content:center;gap:7px;min-height:260px;color:#788b83;font-size:8px}.work-item-loading i{animation:spin .8s linear infinite}
.work-detail-summary{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:9px;padding:10px 12px;border:1px solid #dbe8e3;border-radius:13px;background:#fff}.work-detail-summary>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#08785f;background:#e8f5f0;font-size:18px}.work-detail-summary>div:not(.work-detail-scores){display:grid;gap:2px}.work-detail-summary small{color:#96a29d;font-size:6px}.work-detail-summary b{color:#36534a;font-size:8.5px}.work-detail-summary p{margin:0;color:#84938e;font-size:6.3px}.work-detail-scores{display:grid!important;grid-template-columns:repeat(3,58px);gap:5px}.work-detail-scores span{display:grid;place-items:center;gap:1px;padding:6px;border-radius:8px;background:#f2f7f5}.work-detail-scores b{color:#08765d;font-size:11px}.work-detail-scores small{font-size:5.7px}.work-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:9px}.work-control-section,.work-collaboration-section,.work-checklist-section,.work-detail-blockers,.work-review-create,.work-goal-link{overflow:hidden;border:1px solid #dbe7e3;border-radius:13px;background:#fff}.work-control-section>header,.work-collaboration-section>header,.work-checklist-section>header,.work-detail-blockers>header,.work-review-create>header,.work-goal-link>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;border-bottom:1px solid #e8efec;background:#fbfdfc}.work-control-section>header>div,.work-collaboration-section>header>div,.work-checklist-section>header>div,.work-detail-blockers>header>div,.work-review-create>header>div,.work-goal-link>header>div{display:grid;gap:1px}.work-control-section>header b,.work-collaboration-section>header b,.work-checklist-section>header b,.work-detail-blockers>header b,.work-review-create>header b,.work-goal-link>header b{color:#38554b;font-size:8px}.work-control-section>header small,.work-collaboration-section>header small,.work-checklist-section>header small,.work-detail-blockers>header small,.work-review-create>header small,.work-goal-link>header small{color:#8c9b95;font-size:6px}.work-control-section>header>span,.work-collaboration-section>header>span,.work-checklist-section>header>span,.work-detail-blockers>header>span,.work-review-create>header>span,.work-goal-link>header>span{color:#17755f;font-size:6px;font-weight:800}.work-control-section>form,.work-collaboration-section>form,.work-handoff-create>form,.work-checklist-section>form,.work-review-create>form,.work-goal-link>form{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:9px 10px}.work-control-section label,.work-review-create label{display:grid;gap:3px;color:#5a7168;font-size:6.5px;font-weight:750}.work-control-section label.span-2{grid-column:span 2}.work-control-section input,.work-control-section select,.work-collaboration-section input,.work-collaboration-section select,.work-handoff-create input,.work-handoff-create select,.work-handoff-create textarea,.work-checklist-section select,.work-checklist-section input,.work-review-create input,.work-review-create textarea,.work-goal-link input,.work-goal-link select{width:100%;min-width:0;border:1px solid #dce8e4;border-radius:7px;color:#405b51;background:#fff;font-size:6.8px}.work-control-section input,.work-control-section select,.work-collaboration-section input,.work-collaboration-section select,.work-handoff-create input,.work-handoff-create select,.work-checklist-section select,.work-review-create input,.work-goal-link input,.work-goal-link select{height:30px;padding:0 7px}.work-control-section button,.work-collaboration-section form button,.work-handoff-create button,.work-checklist-section form button,.work-review-create form button,.work-goal-link form button{display:flex;align-items:center;justify-content:center;gap:4px;height:30px;border:1px solid #078064;border-radius:7px;color:#fff;background:#078064;font-size:6.3px;font-weight:800}.work-owner-recommendations{display:grid;padding:0 10px 9px}.work-owner-recommendations>header{display:flex;justify-content:space-between;padding:8px 0 6px}.work-owner-recommendations>header b{color:#425f55;font-size:7px}.work-owner-recommendations>header small{color:#94a09b;font-size:5.8px}.work-owner-recommendations article{display:grid;grid-template-columns:20px minmax(0,1fr) 30px auto;align-items:center;gap:6px;padding:6px;border:1px solid #e3ebe8;border-radius:8px;margin-bottom:4px}.work-owner-recommendations article>span{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;color:#7053a2;background:#f0ecf8;font-size:6px;font-weight:850}.work-owner-recommendations article div{display:grid;gap:1px}.work-owner-recommendations article b{color:#3d5a50;font-size:6.8px}.work-owner-recommendations article p{margin:0;color:#87958f;font-size:5.7px}.work-owner-recommendations article strong{color:#6b50a0;font-size:8px}.work-owner-recommendations article button{height:23px;padding:0 6px;border:1px solid #c9bde0;border-radius:6px;color:#684d9c;background:#f6f2fb;font-size:5.8px}
.work-collaboration-section>div,.work-checklist-section>div,.work-detail-blockers>div{display:grid;max-height:250px;overflow:auto}.work-collaboration-section>div>article,.work-checklist-section>div>article,.work-detail-blockers>div>article{display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px 10px;border-bottom:1px solid #edf2f0}.work-collaboration-section article>span,.work-checklist-section article>span,.work-detail-blockers article>span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;color:#08775e;background:#e8f5f0;font-size:13px}.work-collaboration-section article>div,.work-checklist-section article>div,.work-detail-blockers article>div{display:grid;gap:2px;min-width:0}.work-collaboration-section article b,.work-checklist-section article b,.work-detail-blockers article b{color:#3a584e;font-size:6.8px}.work-collaboration-section article p,.work-checklist-section article p,.work-detail-blockers article p{margin:0;color:#81918b;font-size:6px}.work-collaboration-section article small,.work-checklist-section article small,.work-detail-blockers article small{color:#98a39f;font-size:5.7px}.work-collaboration-section article button,.work-checklist-section article button,.work-detail-blockers article button{height:23px;padding:0 6px;border:1px solid #cfe2da;border-radius:6px;color:#08745d;background:#f5faf8;font-size:5.8px}.work-handoff-create{border-top:1px solid #e8efec}.work-handoff-create>header{display:flex;justify-content:space-between;padding:8px 10px 0}.work-handoff-create>header b{color:#4a645b;font-size:6.8px}.work-handoff-create>header small{color:#94a09b;font-size:5.7px}.work-handoff-create textarea,.work-review-create textarea{padding:7px;resize:vertical;line-height:1.4}.work-handoff-create textarea{grid-column:span 2}.work-checklist-section>form,.work-goal-link>form{grid-template-columns:minmax(0,1fr) auto}.work-checklist-section article.status-completed{opacity:.68}.work-detail-blockers article>span{color:#ad594a;background:#ffebe8}.work-detail-blockers article>aside{display:grid;gap:3px}.work-review-create textarea{grid-column:span 2}.work-review-create form>button{grid-column:span 2}.work-goal-link article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:8px 10px;border-bottom:1px solid #edf2f0}.work-goal-link article div{display:grid;gap:2px}.work-goal-link article b{color:#3b584e;font-size:7px}.work-goal-link article p{margin:0;color:#84938e;font-size:6px}.work-goal-link article strong{color:#08765d;font-size:6.5px}
.modal-card.work-batch-modal-card{width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;overflow:hidden;border-radius:17px}.work-batch-modal-body{max-height:560px;padding:10px;overflow:auto;background:#f6f9f8}.work-batch-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:8px}.work-batch-summary>span{display:grid;gap:2px;padding:9px;border:1px solid #dce8e4;border-radius:9px;background:#fff}.work-batch-summary b{color:#315449;font-size:11px}.work-batch-summary small{color:#8b9994;font-size:6px}.work-batch-preview-list{display:grid;border:1px solid #dce8e4;border-radius:10px;overflow:hidden;background:#fff}.work-batch-preview-list article{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.75fr);gap:8px;padding:8px 10px;border-bottom:1px solid #edf2f0}.work-batch-preview-list article:last-child{border-bottom:0}.work-batch-preview-list article div{display:grid;gap:2px}.work-batch-preview-list b{color:#38554b;font-size:7px}.work-batch-preview-list p{margin:0;color:#83928c;font-size:6px}.work-batch-preview-list aside{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#6c8178;font-size:6px}.work-batch-preview-list aside i{color:#149174}
@media(max-width:1180px){.work-ops-metrics{grid-template-columns:repeat(3,1fr)}.work-ops-metrics article:nth-child(3){border-right:0}.work-ops-metrics article:nth-child(-n+3){border-bottom:1px solid #deebe6}.work-ops-today-grid,.work-team-grid,.work-standard-grid{grid-template-columns:1fr}.work-today-side{grid-template-columns:repeat(3,1fr)}.work-team-grid .work-load-panel{grid-row:auto}.work-quality-grid{grid-template-columns:1fr}}
@media(max-width:820px){.work-ops-tabs{grid-template-columns:1fr 1fr}.work-ops-hero>header{grid-template-columns:42px minmax(0,1fr)}.work-ops-hero>header>em{grid-column:2;justify-self:start}.work-queue-toolbar{grid-template-columns:1fr 1fr}.work-queue-toolbar label{grid-column:1/-1}.work-batch-bar{grid-template-columns:1fr 1fr}.work-batch-bar>button{grid-column:1/-1}.work-today-side{grid-template-columns:1fr}.work-detail-grid{grid-template-columns:1fr}.work-shift-panel>form,.work-playbook-panel>form,.work-skill-panel>form,.work-goal-panel>form{grid-template-columns:1fr 1fr}.work-playbook-panel>form>button,.work-skill-panel>form #workSkillEvidence,.work-goal-panel>form #workGoalDescription{grid-column:1/-1}.modal-card.work-item-modal-card{width:calc(100vw - 16px);height:calc(100dvh - 16px)}}
@media(max-width:560px){.work-ops-heading{align-items:flex-start}.work-ops-heading>button{width:100%}.work-ops-hero>header{padding:12px}.work-ops-hero>header p,.work-ops-hero>header>em{display:none}.work-ops-metrics{grid-template-columns:1fr 1fr}.work-ops-metrics article:nth-child(3){border-right:1px solid #deebe6}.work-ops-metrics article:nth-child(2n){border-right:0}.work-ops-metrics article:nth-child(-n+4){border-bottom:1px solid #deebe6}.work-ops-tabs>button{grid-template-columns:29px minmax(0,1fr);padding:6px}.work-ops-tabs>button>i{width:29px;height:29px}.work-ops-tabs>button small{display:none}.work-batch-bar{grid-template-columns:1fr}.work-batch-bar>button{grid-column:auto}.work-ops-list>article{grid-template-columns:20px 30px minmax(0,1fr);padding:8px}.work-source-icon{width:30px;height:30px}.work-ops-list>article>aside{grid-column:3;justify-content:space-between}.work-item-main>footer span:nth-child(n+3){display:none}.work-detail-summary{grid-template-columns:34px minmax(0,1fr)}.work-detail-scores{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.work-item-modal-head,.work-batch-modal-head{grid-template-columns:40px minmax(0,1fr);padding:12px 48px 12px 12px}.work-item-modal-head>span,.work-batch-modal-head>span{width:40px;height:40px}.work-item-modal-head>em,.work-batch-modal-head>em{display:none}.work-control-section>form,.work-collaboration-section>form,.work-handoff-create>form,.work-review-create>form{grid-template-columns:1fr}.work-control-section label.span-2,.work-handoff-create textarea,.work-review-create textarea,.work-review-create form>button{grid-column:auto}.work-owner-recommendations article{grid-template-columns:20px minmax(0,1fr) auto}.work-owner-recommendations article strong{display:none}.work-shift-panel>form,.work-playbook-panel>form,.work-skill-panel>form,.work-goal-panel>form{grid-template-columns:1fr}.work-playbook-panel>form #workPlaybookDescription,.work-playbook-panel>form #workPlaybookSteps,.work-playbook-panel>form>button,.work-skill-panel>form #workSkillEvidence,.work-goal-panel>form #workGoalDescription{grid-column:auto}.work-batch-summary{grid-template-columns:1fr}.work-batch-preview-list article{grid-template-columns:1fr}.work-batch-preview-list aside{justify-content:flex-start}.work-item-modal-card>footer>span,.work-batch-modal-card>footer>span{display:none}}

/* Work operations evidence, goal and batch-preview refinements. */
.work-smart-defaults{display:grid;margin:0 10px 8px;border:1px solid #ddd7ed;border-radius:9px;overflow:hidden;background:#fbf9fe}.work-smart-defaults>header{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;border-bottom:1px solid #e9e4f3}.work-smart-defaults>header b{color:#624d8d;font-size:6.8px}.work-smart-defaults>header small{display:flex;align-items:center;gap:3px;color:#7a6a99;font-size:5.6px}.work-smart-defaults>div{display:grid;grid-template-columns:1fr 1fr}.work-smart-defaults section{display:grid;align-content:start;gap:3px;min-width:0;padding:7px 8px}.work-smart-defaults section+section{border-left:1px solid #e9e4f3}.work-smart-defaults section>em{color:#8b7da7;font-size:5.6px;font-style:normal;font-weight:850}.work-smart-defaults section>span{display:grid;grid-template-columns:minmax(70px,.7fr) minmax(0,1.3fr);gap:5px;padding:3px 0;border-bottom:1px dashed #e8e2f0}.work-smart-defaults section b,.work-smart-defaults section small{overflow:hidden;font-size:5.6px;text-overflow:ellipsis;white-space:nowrap}.work-smart-defaults section b{color:#594979}.work-smart-defaults section small{color:#807593}.work-smart-defaults section p{margin:0;color:#9c93aa;font-size:5.6px}.work-goal-link article{grid-template-columns:29px minmax(0,1fr);align-items:center}.work-goal-link article>span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;color:#6c51a0;background:#f0ebf8;font-size:13px}.work-goal-link article small{overflow:hidden;color:#84938e;font-size:6px;text-overflow:ellipsis;white-space:nowrap}.work-batch-summary{grid-template-columns:repeat(4,1fr)}.work-batch-preview-list article{grid-template-columns:30px minmax(0,1fr)}.work-batch-preview-list article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;color:#08775e;background:#e9f5f1;font-size:14px}.work-batch-preview-list article.has-warning>span{color:#ad594a;background:#ffebe8}.work-batch-preview-list footer{display:flex;flex-wrap:wrap;gap:5px;color:#6c8178;font-size:5.8px}.work-batch-preview-list footer span{padding:2px 4px;border-radius:4px;background:#f2f6f5}.work-batch-preview-list footer em{padding:2px 4px;border-radius:4px;color:#a44d45;background:#ffebe8;font-style:normal;font-weight:750}
@media(max-width:560px){.work-coverage-list,.work-smart-defaults>div{grid-template-columns:1fr}.work-smart-defaults section+section{border-top:1px solid #e9e4f3;border-left:0}.work-batch-summary{grid-template-columns:1fr 1fr}.work-batch-preview-list article{grid-template-columns:30px minmax(0,1fr)}}

/* AI execution center: one operational queue from source facts to human-controlled action. */
.execution-command-center{display:grid;gap:0;margin:0 0 16px;overflow:hidden;border:1px solid #cfe2db;border-radius:18px;background:#fff;box-shadow:0 12px 35px rgba(15,72,55,.055)}
.execution-command-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #dceae5;background:radial-gradient(circle at 88% 10%,rgba(111,88,173,.1),transparent 24%),linear-gradient(115deg,#edf8f4,#fff 62%,#f6f2fb)}.execution-command-head>div{display:flex;align-items:center;gap:12px;min-width:0}.execution-command-mark{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;color:#fff;background:linear-gradient(145deg,#009976,#04755d);font-size:22px;box-shadow:0 10px 24px rgba(0,135,106,.18)}.execution-command-head>div>span:last-child{display:grid;gap:2px;min-width:0}.execution-command-head small{color:#16836b;font-size:7px;font-weight:850;letter-spacing:.08em}.execution-command-head h2{margin:0;color:#22463a;font-size:18px;letter-spacing:-.02em}.execution-command-head p{margin:0;color:#70847d;font-size:8px}
#executionRuntimeStrip{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}#executionRuntimeStrip>span{display:flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid #dce7e3;border-radius:8px;color:#70847d;background:rgba(255,255,255,.86);font-size:6.5px;white-space:nowrap}#executionRuntimeStrip>span i{width:6px;height:6px;border-radius:50%;background:#b8c4c0}#executionRuntimeStrip>span b{color:#48675c;font-size:6.5px}#executionRuntimeStrip>span.is-good i{background:#0aa17b;box-shadow:0 0 0 3px rgba(10,161,123,.1)}#executionRuntimeStrip>span.is-warning{color:#9d671b;border-color:#ecd9b8;background:#fffaf0}#executionRuntimeStrip>span.is-warning i{background:#d48a23}
.execution-metric-grid{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid #e2ece8;background:#fff}.execution-metric-grid article{display:grid;gap:2px;padding:13px 16px;border-right:1px solid #e7efec}.execution-metric-grid article:last-child{border:0}.execution-metric-grid small{color:#7e908a;font-size:7px;font-weight:750}.execution-metric-grid strong{color:#294e42;font-size:20px;line-height:1.2}.execution-metric-grid span{color:#9ba8a3;font-size:6.3px}.execution-metric-grid .is-approval strong{color:#67519a}.execution-metric-grid .is-blocked strong{color:#b36534}.execution-metric-grid .is-rate strong{color:#078267}
.execution-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto;gap:8px;padding:10px 12px;border-bottom:1px solid #e3ece9;background:#f8fbfa}.execution-toolbar label{display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #d6e3de;border-radius:9px;background:#fff}.execution-toolbar label i{color:#6ca08f}.execution-toolbar input,.execution-toolbar select{width:100%;min-height:36px;border:0;background:transparent;font-size:8px}.execution-toolbar select{padding:0 10px;border:1px solid #d6e3de;border-radius:9px;background:#fff}.execution-toolbar .quiet-button{min-height:36px}
.execution-today-list{display:grid;gap:7px;padding:10px;background:#f7faf9}.execution-task-card{display:grid;grid-template-columns:33px minmax(0,1fr) minmax(160px,.26fr);align-items:stretch;overflow:hidden;border:1px solid #dce7e3;border-left:3px solid #9ec0b5;border-radius:12px;background:#fff;box-shadow:0 5px 15px rgba(23,69,55,.025);cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}.execution-task-card:hover,.execution-task-card:focus-visible{border-color:#79b8a5;box-shadow:0 9px 24px rgba(17,91,70,.09);transform:translateY(-1px)}.execution-task-card.priority-critical{border-left-color:#cf4949}.execution-task-card.priority-high{border-left-color:#dc834b}.execution-task-card.is-overdue{background:linear-gradient(90deg,#fff9f7,#fff 18%)}.execution-rank{display:grid;place-items:center;color:#a4b3ae;background:#f6f9f8;font-size:7px;font-weight:850}.execution-task-main{display:grid;gap:4px;min-width:0;padding:11px 14px}.execution-task-main header{display:flex;align-items:center;gap:5px}.execution-source,.execution-state,.execution-risk{display:inline-flex;align-items:center;gap:3px;padding:3px 6px;border-radius:6px;font-size:6px;font-weight:800}.execution-source{color:#147a62;background:#e8f5f0}.execution-state{color:#60726b;background:#edf2f0}.execution-state.state-approval{color:#654b9a;background:#f0ebfa}.execution-state.state-warn{color:#a66b16;background:#fff4de}.execution-state.state-bad{color:#b24747;background:#ffe9e9}.execution-state.state-good{color:#08785e;background:#e6f5ef}.execution-state.state-violet{color:#654b9a;background:#f0ebfa}.execution-risk{margin-left:auto;color:#9e611f;background:#fff3df}.execution-risk.risk-critical,.execution-risk.risk-high{color:#b34942;background:#ffebe8}.execution-task-main h3{overflow:hidden;margin:0;color:#29493e;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.execution-task-main p{overflow:hidden;margin:0;color:#768880;font-size:7.5px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.execution-task-main footer{display:flex;flex-wrap:wrap;gap:9px;color:#87968f;font-size:6.3px}.execution-task-main footer span{display:flex;align-items:center;gap:3px}.execution-task-main footer .is-overdue{color:#c15448;font-weight:800}.execution-task-card>aside{display:grid;align-content:center;gap:3px;padding:10px 12px;border-left:1px solid #e7eeeb;background:#fbfdfc}.execution-task-card>aside small{color:#91a09a;font-size:6px}.execution-task-card>aside b{overflow:hidden;color:#44675c;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.execution-task-card>aside button{display:flex;align-items:center;justify-content:space-between;margin-top:3px;padding:6px 7px;border:1px solid #cde2da;border-radius:7px;color:#0b7b61;background:#eef8f4;font-size:6.5px;font-weight:800}.execution-command-center>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 13px;border-top:1px solid #dfe9e5;color:#74877f;background:#fff;font-size:6.5px}.execution-command-center>footer span{display:flex;align-items:center;gap:4px}.execution-command-center>footer i{color:#078267}.execution-command-center>footer button{border:0;color:#087a61;background:transparent;font-size:6.5px;font-weight:850}
.execution-loading,.execution-empty{display:flex;align-items:center;justify-content:center;gap:10px;min-height:120px;color:#7c8e87}.execution-loading>i{color:#0b876a;font-size:20px;animation:spin .8s linear infinite}.execution-loading span,.execution-empty div{display:grid;gap:2px}.execution-loading b,.execution-empty b{color:#49665c;font-size:8px}.execution-loading small,.execution-empty small{font-size:6.5px}.execution-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:#087d63;background:#eaf6f2;font-size:20px}.execution-empty.is-error>span{color:#b35a4d;background:#ffebe8}
.modal-card.execution-task-modal-card{width:min(1260px,calc(100vw - 28px));height:min(920px,calc(100dvh - 28px));max-height:none;padding:0;overflow:hidden;border:1px solid #cadfd7;border-radius:20px;background:#f5f9f7;box-shadow:0 32px 100px rgba(12,57,43,.24)}.execution-task-modal-card>.modal-close{z-index:5;top:14px;right:14px}.execution-detail-head{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:17px 58px 16px 19px;border-bottom:1px solid #d5e5df;background:radial-gradient(circle at 88% 0,rgba(111,88,173,.11),transparent 28%),#fff}.execution-detail-head>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#fff;background:linear-gradient(145deg,#009675,#08755e);font-size:22px}.execution-detail-head>div{display:grid;gap:2px;min-width:0}.execution-detail-head small{overflow:hidden;color:#16816a;font-size:6.5px;font-weight:850;letter-spacing:.06em;text-overflow:ellipsis;white-space:nowrap}.execution-detail-head h2{overflow:hidden;margin:0;color:#294a3f;font-size:17px;text-overflow:ellipsis;white-space:nowrap}.execution-detail-head p{overflow:hidden;margin:0;color:#7c8e87;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.execution-detail-head>em{display:flex;align-items:center;gap:4px;padding:6px 9px;border-radius:8px;color:#587268;background:#eef3f1;font-size:6.5px;font-style:normal;font-weight:850}.execution-detail-head>em.state-approval{color:#654b9a;background:#efeafa}.execution-detail-head>em.state-warn{color:#9d671b;background:#fff3dd}.execution-detail-head>em.state-bad{color:#ad4848;background:#ffe8e8}.execution-detail-head>em.state-good{color:#087a61;background:#e8f5f0}.execution-detail-body{height:calc(100% - 131px);padding:11px;overflow:auto;background:#f4f8f6}.execution-detail-footer{display:flex;align-items:center;gap:10px;min-height:62px;padding:9px 13px;border-top:1px solid #d8e6e1;background:#fff}.execution-detail-footer>span{display:flex;align-items:center;gap:4px;margin-right:auto;color:#71857d;font-size:6.3px}.execution-detail-footer>span i{color:#087e64}.execution-detail-footer>div{display:flex;align-items:center;gap:6px}.execution-detail-footer button{min-height:34px;padding:7px 11px;font-size:7px}.execution-detail-footer .execution-send-action{background:#00876a}.execution-detail-footer .danger{color:#ad4b48}
.execution-detail-summary{display:grid;grid-template-columns:1.2fr 1fr .8fr;margin-bottom:9px;border:1px solid #d8e6e1;border-radius:11px;overflow:hidden;background:#fff}.execution-detail-summary article{display:grid;gap:2px;padding:10px 12px;border-right:1px solid #e4ece9}.execution-detail-summary article:last-child{border:0}.execution-detail-summary small{color:#8b9994;font-size:6px}.execution-detail-summary b{color:#315348;font-size:8px}.execution-detail-summary p{overflow:hidden;margin:0;color:#7f918a;font-size:6.5px;text-overflow:ellipsis;white-space:nowrap}.execution-detail-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:9px}.execution-detail-column{display:grid;align-content:start;gap:9px;min-width:0}.execution-detail-section{overflow:hidden;border:1px solid #d8e5e0;border-radius:11px;background:#fff}.execution-detail-section>header{display:flex;align-items:center;gap:8px;padding:9px 10px;border-bottom:1px solid #e6eeeb;background:#fbfdfc}.execution-detail-section>header>span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;color:#087d64;background:#e9f5f1;font-size:14px}.execution-detail-section>header>div{display:grid;gap:1px}.execution-detail-section>header b{color:#35574c;font-size:7.5px}.execution-detail-section>header small{color:#8c9a95;font-size:5.8px}.execution-fact-list{display:grid;margin:0;padding:6px 10px}.execution-fact-list>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;padding:7px 0;border-bottom:1px dashed #e5ece9}.execution-fact-list>div:last-child{border:0}.execution-fact-list dt{color:#80918a;font-size:6.3px}.execution-fact-list dd{margin:0;color:#47665c;font-size:7px;line-height:1.5}.execution-fact-list dd em{display:inline-block;margin:0 4px 3px 0;padding:3px 5px;border-radius:5px;color:#0b785f;background:#edf8f4;font-style:normal}.execution-mapping-current{display:grid;gap:2px;margin:8px 9px;padding:8px;border:1px solid #d6e6e0;border-radius:8px;background:#f2f9f6}.execution-mapping-current b{color:#28715d;font-size:7.5px}.execution-mapping-current small{color:#7c9189;font-size:6px}.execution-mapping-search{display:flex;align-items:center;gap:5px;margin:0 9px 7px;padding:0 7px;border:1px solid #d6e3de;border-radius:8px}.execution-mapping-search i{color:#6b9b8c}.execution-mapping-search input{width:100%;min-height:31px;border:0;background:transparent;font-size:7px}.execution-mapping-results{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:150px;padding:0 9px 9px;overflow:auto}.execution-mapping-results button{display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:6px;padding:6px;border:1px solid #dfe9e5;border-radius:8px;text-align:left;background:#fff}.execution-mapping-results button:hover{border-color:#7db8a6;background:#f2faf7}.execution-mapping-results button>i{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;color:#087d64;background:#eaf5f1}.execution-mapping-results button span{display:grid;gap:1px;min-width:0}.execution-mapping-results button b,.execution-mapping-results button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.execution-mapping-results button b{color:#3b5d52;font-size:6.5px}.execution-mapping-results button small{color:#98a5a0;font-size:5.5px}.execution-mapping-results button em{color:#71877e;font-size:5.5px;font-style:normal}.execution-detail-section>textarea,.execution-decision-section label textarea,.execution-decision-section label input{width:calc(100% - 18px);margin:8px 9px;padding:8px;border:1px solid #d4e2dd;border-radius:8px;color:#35564b;background:#fff;font-size:7px;line-height:1.65;resize:vertical}.execution-detail-section>textarea:read-only{color:#6d7e78;background:#f4f7f6}.execution-draft-meta{display:flex;gap:9px;padding:0 10px 8px;color:#73867f;font-size:6px}.execution-draft-meta span{display:flex;align-items:center;gap:3px}.execution-draft-meta i{color:#087d64}
.execution-customer-strip{display:grid;grid-template-columns:repeat(4,1fr);margin:8px;border:1px solid #dde8e4;border-radius:8px;overflow:hidden}.execution-customer-strip span{display:grid;gap:2px;padding:7px;border-right:1px solid #e6eeeb}.execution-customer-strip span:last-child{border:0}.execution-customer-strip small{color:#8f9c97;font-size:5.5px}.execution-customer-strip b{overflow:hidden;color:#42645a;font-size:6.3px;text-overflow:ellipsis;white-space:nowrap}.execution-context-list{display:grid;gap:5px;max-height:230px;padding:0 8px 8px;overflow:auto}.execution-context-list article{display:grid;gap:3px;width:82%;padding:7px 8px;border-radius:8px;background:#f1f5f3}.execution-context-list article.is-out{justify-self:end;background:#e8f6f1}.execution-context-list article header{display:flex;justify-content:space-between;color:#658078;font-size:5.7px}.execution-context-list article p{margin:0;color:#425d54;font-size:6.5px;line-height:1.5;white-space:pre-wrap}.execution-open-insights{display:grid;gap:4px;margin:0 8px 8px;padding:7px;border-radius:8px;background:#fff7e9}.execution-open-insights>b{color:#a16b21;font-size:6.5px}.execution-open-insights span{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;color:#725e40;font-size:6px}.execution-open-insights em{font-style:normal}.execution-ai-reason>article{display:grid;gap:4px;margin:7px;padding:7px;border:1px solid #e1dcee;border-radius:8px;background:#fbf9fe}.execution-ai-reason>article header{display:flex;justify-content:space-between}.execution-ai-reason>article b{color:#604d8c;font-size:6.5px}.execution-ai-reason>article em{color:#8879a5;font-size:5.6px;font-style:normal}.execution-ai-reason>article p,.execution-ai-reason>article small{margin:0;color:#756b86;font-size:6px}.execution-ai-reason details{display:grid;padding-top:3px}.execution-ai-reason summary{color:#695393;font-size:5.8px;cursor:pointer}.execution-ai-reason del,.execution-ai-reason ins{display:block;margin-top:4px;padding:5px;border-radius:5px;font-size:5.7px;text-decoration:none;white-space:pre-wrap}.execution-ai-reason del{color:#a1544d;background:#ffeded}.execution-ai-reason ins{color:#24745d;background:#e9f7f1}.execution-timeline{display:grid;max-height:390px;padding:7px 8px;overflow:auto}.execution-timeline article{display:grid;grid-template-columns:11px minmax(0,1fr);gap:5px}.execution-timeline article>i{position:relative;width:7px;height:7px;margin-top:3px;border:2px solid #fff;border-radius:50%;background:#0d9070;box-shadow:0 0 0 1px #9dcabb}.execution-timeline article>i:after{position:absolute;top:8px;left:2px;width:1px;height:calc(100% + 13px);content:"";background:#d9e7e2}.execution-timeline article:last-child>i:after{display:none}.execution-timeline article>div{display:grid;gap:2px;padding-bottom:10px}.execution-timeline article header{display:flex;justify-content:space-between;gap:6px}.execution-timeline article b{color:#3d5e53;font-size:6.4px}.execution-timeline article time,.execution-timeline article p,.execution-timeline article small{margin:0;color:#899791;font-size:5.6px}.execution-timeline article small{color:#687d75;line-height:1.45}.execution-decision-section{padding-bottom:8px}.execution-decision-section>header{margin-bottom:2px}.execution-decision-section label{display:grid;color:#71867e;font-size:6px}.execution-decision-section label textarea,.execution-decision-section label input{margin-top:3px}.execution-none{margin:0;padding:10px;color:#98a59f;font-size:6.3px;text-align:center}
@media(max-width:980px){.execution-command-head{align-items:flex-start;flex-direction:column}.execution-metric-grid{grid-template-columns:repeat(3,1fr)}.execution-metric-grid article:nth-child(3){border-right:0}.execution-metric-grid article:nth-child(-n+3){border-bottom:1px solid #e7efec}.execution-detail-grid{grid-template-columns:1fr}.execution-detail-footer>span{display:none}}
@media(max-width:760px){#page-dashboard>.execution-command-center{order:2}#page-dashboard>.hero-status{order:6}#page-dashboard>.metric-grid{order:7}#page-dashboard>.mobile-work-command{order:3}#page-dashboard>.dashboard-priority-grid{order:8}#page-dashboard>.operations-grid{order:9}#page-dashboard>.permission-template-panel{order:10}#page-dashboard>.service-panel{order:11}.execution-command-center{margin:0 0 11px;border-radius:15px}.execution-command-head{gap:10px;padding:14px}.execution-command-mark{width:40px;height:40px;flex-basis:40px}.execution-command-head h2{font-size:15px}.execution-command-head p{display:none}#executionRuntimeStrip{display:grid;grid-template-columns:1fr 1fr;width:100%}#executionRuntimeStrip>span{justify-content:center}.execution-metric-grid{grid-template-columns:1fr 1fr}.execution-metric-grid article{padding:10px 12px}.execution-metric-grid article:nth-child(2n){border-right:0}.execution-metric-grid article:nth-child(-n+4){border-bottom:1px solid #e7efec}.execution-metric-grid article.is-rate{grid-column:1/-1;border:0}.execution-toolbar{grid-template-columns:1fr 120px}.execution-toolbar label{grid-column:1/-1}.execution-toolbar .quiet-button{font-size:0;width:36px;padding:0}.execution-toolbar .quiet-button i{font-size:14px}.execution-task-card{grid-template-columns:28px minmax(0,1fr)}.execution-task-card>aside{grid-column:2;display:flex;align-items:center;justify-content:space-between;padding:7px 11px;border-top:1px solid #e8efec;border-left:0}.execution-task-card>aside small{display:none}.execution-task-card>aside button{margin:0}.execution-task-main{padding:10px}.execution-task-main h3{font-size:9px}.execution-task-main footer span:nth-child(n+3){display:none}.execution-command-center>footer span{display:none}.execution-command-center>footer button{width:100%;padding:5px}.modal-card.execution-task-modal-card{width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:15px}.execution-detail-head{grid-template-columns:40px minmax(0,1fr);padding:12px 48px 12px 12px}.execution-detail-head>span{width:40px;height:40px}.execution-detail-head>em{grid-column:2;justify-self:start}.execution-detail-body{height:calc(100% - 155px);padding:7px}.execution-detail-summary{grid-template-columns:1fr}.execution-detail-summary article{border-right:0;border-bottom:1px solid #e4ece9}.execution-detail-summary article:last-child{border:0}.execution-detail-footer{min-height:78px;overflow-x:auto}.execution-detail-footer>div{width:max-content}.execution-detail-footer button{white-space:nowrap}.execution-customer-strip{grid-template-columns:1fr 1fr}.execution-customer-strip span:nth-child(2){border-right:0}.execution-customer-strip span:nth-child(-n+2){border-bottom:1px solid #e6eeeb}}
@media(max-width:480px){.execution-command-head>div{align-items:flex-start}.execution-command-head small{font-size:5.8px}.execution-metric-grid strong{font-size:17px}.execution-metric-grid span{display:none}.execution-toolbar{grid-template-columns:minmax(0,1fr) 38px}.execution-toolbar select{min-width:0}.execution-task-main header{flex-wrap:wrap}.execution-task-main h3{white-space:normal;line-height:1.45}.execution-task-main p{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.execution-task-main footer{gap:5px}.execution-rank{font-size:6px}.execution-task-card>aside b{font-size:6.5px}.execution-mapping-results{grid-template-columns:1fr}.execution-fact-list>div{grid-template-columns:1fr}.execution-detail-footer{padding:7px}.execution-detail-footer button{min-height:36px}.execution-detail-head p{display:none}.execution-detail-head>em{display:none}}
@media (max-width: 720px){.execution-today-list{padding:7px}.execution-task-card{border-radius:10px}}

/* Profile dialogs and selected-recipient identity use the same mint interaction language. */
.selected-recipient-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;overflow:hidden;border:1px solid #cae3da;border-radius:13px;background:#e8f6f1;box-shadow:0 6px 16px rgba(19,91,68,.08)}
.selected-recipient-avatar>.entity-avatar{width:44px;height:44px;border-radius:12px;font-size:13px}
.selected-recipient-avatar>img.entity-avatar{object-fit:cover}
.profile-modal-close{top:15px!important;right:16px!important;z-index:8!important;display:grid!important;place-items:center!important;width:36px!important;height:36px!important;padding:0!important;border:1px solid #d2e4de!important;border-radius:11px!important;color:#507268!important;background:rgba(255,255,255,.96)!important;box-shadow:0 6px 16px rgba(24,75,57,.08)!important;font-size:17px!important;transition:.16s}
.profile-modal-close:hover{border-color:#8ebfae!important;color:#006e57!important;background:#edf8f4!important;transform:none!important}
.contact-relationship-footer{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 18px;border-top:1px solid #dce9e4;background:rgba(255,255,255,.97);backdrop-filter:blur(14px)}
.contact-relationship-footer>span{display:flex;align-items:center;gap:6px;color:#71877f;font-size:8px}.contact-relationship-footer>span i{color:#0a8065;font-size:14px}
.contact-relationship-footer>button,.customer-ops-modal-card>footer>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:0 16px;border-color:#cfe0da;border-radius:10px;color:#41645a;background:#f8fbfa;font-size:9px;font-weight:800}
.contact-relationship-footer>button:hover,.customer-ops-modal-card>footer>button:hover{border-color:#93c2b3;color:#006e57;background:#edf8f4}
@media(max-width:560px){.profile-modal-close{top:12px!important;right:12px!important}.contact-relationship-footer>span{display:none}.contact-relationship-footer>button{width:100%;min-height:40px}}

/* Contact conversation graph and quoted-message chain. */
.contact-directory-entity>span{display:flex;min-width:0;flex-direction:column;gap:3px}.contact-directory-entity>span small{color:var(--muted);font-size:11px}.relationship-action{color:#087f6b!important;border-color:rgba(10,151,125,.2)!important;background:rgba(13,154,126,.06)!important}.contact-relationship-modal{width:min(1180px,94vw);max-height:92vh;overflow:auto;padding:0}.contact-relationship-head{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:24px 28px 20px;border-bottom:1px solid var(--line);background:rgba(250,253,252,.96);backdrop-filter:blur(16px)}.contact-relationship-head>#contactRelationshipIdentity .entity-avatar{width:58px;height:58px;border-radius:18px}.contact-relationship-head h2{margin:3px 0 5px;font-size:24px}.contact-relationship-head p{margin:0;color:var(--muted)}.contact-relationship-body{padding:22px 28px 30px;background:linear-gradient(180deg,rgba(235,249,245,.55),transparent 190px)}.contact-relationship-loading{display:flex;min-height:300px;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.contact-relationship-loading i{animation:spin 1s linear infinite}.contact-relation-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.contact-relation-metrics article{display:flex;flex-direction:column;gap:5px;padding:16px 18px;border:1px solid rgba(12,138,113,.14);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(26,72,63,.045)}.contact-relation-metrics small,.contact-relation-metrics span{color:var(--muted)}.contact-relation-metrics b{font-size:26px;color:#087c68}.contact-relation-metrics span{font-size:11px}.contact-relation-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:16px}.contact-relation-grid>section{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff}.contact-relation-grid>section>header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line);background:rgba(245,250,248,.8)}.contact-relation-grid>section>header div{display:flex;flex-direction:column;gap:3px}.contact-relation-grid>section>header b{font-size:14px}.contact-relation-grid>section>header small,.contact-relation-grid>section>header span{font-size:11px;color:var(--muted)}.contact-relation-groups>div,.contact-relation-assets>div,.contact-relation-timeline>div{max-height:350px;overflow:auto;padding:8px}.contact-relation-groups article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px;border-radius:13px}.contact-relation-groups article:hover,.contact-relation-assets article:hover{background:#f4faf8}.contact-relation-groups article>.entity-avatar{width:38px;height:38px;border-radius:12px}.contact-relation-groups article>div,.contact-relation-assets article>div{display:flex;min-width:0;flex-direction:column;gap:3px}.contact-relation-groups article b,.contact-relation-assets article b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.contact-relation-groups article small,.contact-relation-groups article em,.contact-relation-assets article small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap;font-style:normal}.contact-relation-groups aside,.contact-relation-assets aside{display:flex;gap:6px}.contact-relation-groups button,.contact-relation-assets button,.contact-relation-assets a{display:grid;height:30px;place-items:center;border:1px solid rgba(12,138,113,.2);border-radius:9px;background:#fff;color:#087c68;padding:0 9px;font-size:11px}.contact-relation-assets article{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border-radius:13px}.contact-relation-assets article>span{display:grid;width:42px;height:42px;place-items:center;border-radius:11px;background:#e7f7f2;color:#087c68;font-size:9px;font-weight:800}.contact-relation-timeline{grid-column:1/-1}.contact-relation-timeline>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:420px}.contact-relation-event{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding:11px 12px;border-radius:13px;background:#f8fbfa}.contact-relation-event>span{display:grid;width:31px;height:31px;place-items:center;border-radius:10px;background:#e7f7f2;color:#087c68}.contact-relation-event>div{min-width:0}.contact-relation-event header{display:flex;gap:7px;align-items:center}.contact-relation-event header b{font-size:11px}.contact-relation-event header em{overflow:hidden;color:#79938d;font-size:10px;text-overflow:ellipsis;white-space:nowrap;font-style:normal}.contact-relation-event p{margin:4px 0;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.contact-relation-event small{color:var(--muted);font-size:10px}.contact-relation-event>a{color:#087c68}.contact-relation-empty{padding:28px;text-align:center;color:var(--muted);font-size:12px}.history-quote{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:9px;margin:0 0 9px;padding:9px 10px;border-left:3px solid rgba(8,134,111,.45);border-radius:4px 10px 10px 4px;background:rgba(225,243,238,.72)}.history-quote>span{color:#168d78}.history-quote>div{min-width:0}.history-quote small{display:block;color:#698a82!important;font-size:10px!important}.history-quote p{margin:3px 0 0!important;overflow:hidden;color:#486a62!important;font-size:11px!important;text-overflow:ellipsis;white-space:nowrap}.history-quote>a{color:#0a8b73}.history-quote.is-snapshot{border-left-color:#b5c9c4;background:#f3f7f6}.history-quote.is-snapshot>span{color:#819b95}
@media(max-width:900px){.contact-relationship-head{grid-template-columns:auto 1fr;padding:19px}.contact-relationship-head>.primary{grid-column:1/-1}.contact-relationship-body{padding:16px}.contact-relation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-relation-grid{grid-template-columns:1fr}.contact-relation-timeline{grid-column:auto}.contact-relation-timeline>div{grid-template-columns:1fr}}
@media(max-width:560px){.contact-relationship-modal{width:100vw;max-height:100vh;border-radius:0}.contact-relationship-head{grid-template-columns:1fr;padding-top:54px}.contact-relationship-head>#contactRelationshipIdentity{display:none}.contact-relation-metrics{gap:8px}.contact-relation-metrics article{padding:12px}.contact-relation-groups article{grid-template-columns:auto minmax(0,1fr)}.contact-relation-groups aside,.contact-relation-assets aside{grid-column:1/-1;justify-content:flex-end}.contact-relation-assets article{grid-template-columns:38px minmax(0,1fr)}.contact-relation-assets article>span{width:36px;height:36px}}
/* Jn automation catalog and deterministic message triggers */
.rpa-page-heading{align-items:flex-end}.rpa-page-heading h1{letter-spacing:-.035em}.rpa-page-heading p{max-width:760px}
.rpa-sync-state{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #d8e7e2;border-radius:12px;background:#f8fbfa;color:#56706a;font-size:12px;font-weight:700}.rpa-sync-state i{width:8px;height:8px;border-radius:50%;background:#a2b7b1}.rpa-sync-state.is-ready{color:#08755f;background:#eff9f5;border-color:#c9e9de}.rpa-sync-state.is-ready i{background:#16a079;box-shadow:0 0 0 4px rgba(22,160,121,.11)}.rpa-sync-state.is-syncing i{background:#e1a23a;animation:pulse 1s infinite}.rpa-sync-state.is-error{color:#b34b48;background:#fff5f4;border-color:#f1d0cd}.rpa-sync-state.is-error i{background:#d95e58}
.rpa-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.rpa-metric-grid article{display:flex;align-items:center;gap:14px;min-height:112px;padding:18px;border:1px solid #e0ebe7;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbfa);box-shadow:0 8px 24px rgba(20,74,61,.045)}.rpa-metric-grid article>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:#08785f;background:#eaf7f2;font-size:20px}.rpa-metric-grid article.safe>span{color:#426c9c;background:#edf4fb}.rpa-metric-grid article div{display:flex;flex-direction:column;gap:2px}.rpa-metric-grid small,.rpa-metric-grid em{color:#748983;font-size:11px;font-style:normal}.rpa-metric-grid strong{color:#183c34;font-size:24px;line-height:1.2}
.rpa-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,.8fr);gap:16px;align-items:start}.rpa-catalog-panel,.rpa-rules-panel,.rpa-execution-panel{padding:20px}.rpa-catalog-panel>header,.rpa-rules-panel>header,.rpa-execution-panel>header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.rpa-catalog-panel header small,.rpa-rules-panel header small,.rpa-execution-panel header small{color:#00876a;font-size:10px;font-weight:800;letter-spacing:.12em}.rpa-catalog-panel h3,.rpa-rules-panel h3,.rpa-execution-panel h3{margin:3px 0;color:#173b33}.rpa-catalog-panel header p,.rpa-rules-panel header p,.rpa-execution-panel header p{margin:3px 0 0;color:#71847f;font-size:12px}.rpa-search{display:flex;align-items:center;gap:7px;min-width:220px;padding:0 11px;border:1px solid #dce8e4;border-radius:11px;background:#fafcfb}.rpa-search i{color:#7d918b}.rpa-search input{width:100%;height:38px;padding:0;border:0;background:transparent;box-shadow:none}
.rpa-application-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rpa-app-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px;border:1px solid #e0ebe7;border-radius:15px;background:#fff;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.rpa-app-card:hover{transform:translateY(-2px);border-color:#bedfd4;box-shadow:0 10px 24px rgba(20,93,73,.08)}.rpa-app-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#00876a;background:#eaf7f2;font-size:18px}.rpa-app-card>div{min-width:0}.rpa-app-card header{display:flex;align-items:center;gap:7px}.rpa-app-card b{overflow:hidden;color:#173b33;text-overflow:ellipsis;white-space:nowrap}.rpa-app-card em{padding:3px 7px;border-radius:7px;background:#f1f5f4;color:#6a807a;font-size:10px;font-style:normal}.rpa-app-card small,.rpa-app-card code{display:block;overflow:hidden;margin-top:4px;color:#81928e;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.rpa-app-card button{display:flex;align-items:center;gap:5px;padding:8px 10px;border:0;border-radius:10px;background:#eaf7f2;color:#00765d;font-weight:700}.rpa-app-card button:hover{background:#00876a;color:#fff}
.rpa-rule-list{display:flex;flex-direction:column;gap:11px}.rpa-rule-card{padding:15px;border:1px solid #dce9e5;border-radius:15px;background:linear-gradient(160deg,#fff,#f9fcfb)}.rpa-rule-card.is-disabled{opacity:.64}.rpa-rule-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.rpa-rule-card>header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf7f2;color:#00876a}.rpa-rule-card header div{display:flex;min-width:0;flex-direction:column}.rpa-rule-card header b{color:#173b33}.rpa-rule-card header small{color:#7b8f89;font-size:10px}.rpa-rule-card header em{padding:4px 8px;border-radius:10px;background:#e9f7f1;color:#078065;font-size:10px;font-style:normal}.rpa-rule-card.is-disabled header em{background:#eef1f0;color:#70827e}.rpa-rule-keyword{display:flex;align-items:center;gap:8px;margin:12px 0;padding:9px 10px;border-radius:10px;background:#f3f8f6}.rpa-rule-keyword small{color:#748983}.rpa-rule-keyword code{overflow:hidden;color:#006f58;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.rpa-rule-card dl{display:grid;gap:6px;margin:0}.rpa-rule-card dl div{display:flex;justify-content:space-between;gap:12px;font-size:11px}.rpa-rule-card dt{color:#81918d}.rpa-rule-card dd{margin:0;color:#405b54;text-align:right}.rpa-rule-card footer{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #edf2f0}.rpa-rule-card footer button{display:flex;align-items:center;gap:5px;padding:6px 9px;border:0;border-radius:8px;background:#eef6f3;color:#08745d;font-size:11px}.rpa-rule-card footer button.danger{background:#fff1f0;color:#b14b47}
.rpa-execution-panel{margin-top:16px}.rpa-execution-list{display:flex;flex-direction:column}.rpa-execution-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 4px;border-top:1px solid #edf2f0}.rpa-execution-row:first-child{border-top:0}.rpa-execution-row>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf7f2;color:#08775f}.rpa-execution-row.is-blocked>span,.rpa-execution-row.is-failed>span{background:#fff0ef;color:#c0524d}.rpa-execution-row header{display:flex;align-items:center;gap:8px}.rpa-execution-row header b{color:#213f38}.rpa-execution-row header em{padding:3px 7px;border-radius:8px;background:#f0f5f3;color:#647b75;font-size:10px;font-style:normal}.rpa-execution-row p{margin:3px 0 0;color:#7c8f8a;font-size:11px}.rpa-execution-row aside{display:flex;align-items:flex-end;flex-direction:column;gap:4px}.rpa-execution-row time,.rpa-execution-row code{color:#81918d;font-size:10px}
.rpa-rule-editor{width:min(780px,calc(100vw - 32px));max-height:min(880px,calc(100vh - 32px));overflow:auto}.rpa-rule-form-grid{margin-top:18px}.rpa-any-sender{display:flex!important;align-items:center!important;flex-direction:row!important;gap:10px;padding:12px;border:1px solid #f0d7bb;border-radius:12px;background:#fffbf5}.rpa-any-sender input{width:auto}.rpa-any-sender span{display:flex;flex-direction:column}.rpa-any-sender small{color:#926b3e}.rpa-rule-safety{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:13px 14px;border:1px solid #cde6dd;border-radius:13px;background:#f1faf6;color:#235d4f}.rpa-rule-safety>i{margin-top:2px;color:#00876a;font-size:19px}.rpa-rule-safety span{display:flex;flex-direction:column;gap:2px}.rpa-rule-safety small{color:#617e76}
@media(max-width:1100px){.rpa-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rpa-layout{grid-template-columns:1fr}.rpa-application-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.rpa-page-heading{align-items:stretch}.rpa-page-heading .page-heading-actions{align-items:stretch;flex-direction:column}.rpa-metric-grid{grid-template-columns:1fr 1fr}.rpa-metric-grid article{min-height:96px;padding:13px}.rpa-application-list{grid-template-columns:1fr}.rpa-catalog-panel>header,.rpa-execution-panel>header{align-items:stretch;flex-direction:column}.rpa-search{width:100%;min-width:0}.rpa-execution-row{grid-template-columns:auto minmax(0,1fr)}.rpa-execution-row aside{grid-column:2;align-items:flex-start}.rpa-rule-form-grid{grid-template-columns:1fr}.rpa-rule-form-grid .span-2{grid-column:auto}}

/* Intent optimization: isolated evaluation and controlled strategy publishing. */
.intent-strategy-board{display:grid;gap:8px;margin:0 18px 14px;padding:12px;border:1px solid #d9e8e3;border-radius:15px;background:#f8fcfa}.intent-strategy-board>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.intent-strategy-board>header>div{display:grid;gap:2px}.intent-strategy-board>header b{color:#315047;font-size:10px}.intent-strategy-board>header small{color:#879790;font-size:8px;line-height:1.5}.intent-strategy-board>header>span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:8px;color:#6c559b;background:#f0ecfa;font-size:8px;font-weight:800}.intent-strategy-board>div{display:grid;gap:7px}.intent-strategy-board article{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;padding:10px;border:1px solid #e0ebe7;border-radius:11px;background:#fff}.intent-strategy-board article>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#a56b12;background:#fff5df;font-size:14px}.intent-strategy-board article.is-active{border-color:#b9dfd1;background:#fbfffd}.intent-strategy-board article.is-active>span{color:#08765d;background:#e5f5ef}.intent-strategy-board article>div{display:grid;gap:5px;min-width:0}.intent-strategy-board article header{display:flex;align-items:center;gap:7px}.intent-strategy-board article header b{overflow:hidden;color:#36554b;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.intent-strategy-board article header em{padding:2px 6px;border-radius:5px;color:#876522;background:#fff4db;font-size:7px;font-style:normal;font-weight:800}.intent-strategy-board article.is-active header em{color:#08765d;background:#e6f5ef}.intent-strategy-board article p{margin:0;color:#6f817b;font-size:8px;line-height:1.55}.intent-strategy-board article footer{display:flex;gap:10px}.intent-strategy-board article footer small{color:#91a099;font-size:7px}.intent-strategy-board article aside{display:flex;align-items:center;gap:5px}.intent-strategy-board article aside button{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 8px;border:1px solid #d8e7e1;border-radius:7px;color:#4f7166;background:#fbfdfc;font-size:7.5px;font-weight:800}.intent-strategy-board article aside button.is-primary{border-color:#078c6d;color:#fff;background:#079774}.intent-calibration-recent article em.sample-role{color:#755aa8;background:#f0ecfa}
@media(max-width:560px){.intent-strategy-board{margin-left:9px;margin-right:9px}.intent-strategy-board>header{align-items:flex-start;flex-direction:column}.intent-strategy-board article{grid-template-columns:28px minmax(0,1fr)}.intent-strategy-board article aside{grid-column:2}.intent-strategy-board article aside button{flex:1;justify-content:center}}
