:root {
  color-scheme: dark;
  --hub-bg: var(--sv-color-canvas);
  --hub-bg-deep: var(--sv-color-canvas);
  --hub-panel: var(--sv-color-surface);
  --hub-panel-strong: var(--sv-color-surface-strong);
  --hub-line: var(--sv-color-border);
  --hub-line-soft: var(--sv-color-border-soft);
  --hub-text: var(--sv-color-text);
  --hub-muted: var(--sv-color-text-muted);
  --hub-faint: var(--sv-color-text-faint);
  --hub-lime: var(--sv-color-brand);
  --hub-lime-soft: rgba(var(--sv-brand-rgb), 0.08);
  --hub-cyan: var(--sv-color-text-muted);
  --hub-red: var(--sv-color-danger);
  --hub-amber: var(--sv-color-warning);
  --sidebar-width: 300px;
  --ease: cubic-bezier(0.22, 0.78, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 1120px;
  min-height: 720px;
  margin: 0;
}

html {
  background: var(--hub-bg-deep);
}

body {
  color: var(--hub-text);
  background: var(--hub-bg);
  font-family: var(--sv-font-sans);
  font-size: 14px;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-symbols {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.hub-shell {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.hub-sidebar {
  position: relative;
  z-index: 5;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: rgba(1, 7, 11, 0.92);
  border-right: 1px solid var(--hub-line);
  box-shadow: 22px 0 60px rgba(0, 0, 0, 0.18);
}

.hub-brand {
  position: relative;
  padding: 31px 30px 25px;
  border-bottom: 1px solid var(--hub-line-soft);
}

.hub-brand a {
  display: block;
  width: fit-content;
  color: var(--hub-lime);
  font-family: var(--sv-font-sans);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.hub-brand > span {
  display: block;
  margin-top: 7px;
  color: var(--sv-color-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.hub-brand i {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sv-color-text);
  font: 0.68rem/1 var(--sv-font-mono);
  font-style: normal;
}

.hub-brand i b,
.account-strip i,
.hub-nav-children i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--hub-lime);
  box-shadow: 0 0 10px rgba(var(--sv-brand-rgb), 0.45);
}

.hub-nav {
  min-height: 0;
  padding: 0 0 12px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--sv-brand-rgb), 0.2) transparent;
}

.hub-nav-item {
  position: relative;
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 0 25px 0 30px;
  color: var(--sv-color-text-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hub-line-soft);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}

.hub-nav-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}

.hub-nav-item:hover {
  color: var(--sv-color-text);
  background: rgba(var(--sv-color-wash-rgb), 0.024);
  padding-left: 34px;
}

.hub-nav-item.active {
  color: var(--hub-lime);
  background: linear-gradient(90deg, rgba(var(--sv-brand-rgb), 0.08), rgba(var(--sv-color-wash-rgb), 0.025));
}

.hub-nav-item.active::before {
  background: var(--hub-lime);
  box-shadow: 0 0 18px rgba(var(--sv-brand-rgb), 0.36);
}

.hub-nav-item svg {
  width: 24px;
  height: 24px;
}

.hub-nav-item span {
  min-width: 0;
  font-size: 0.96rem;
  letter-spacing: 0.035em;
}

.hub-nav-item em {
  min-width: 28px;
  padding: 3px 7px;
  color: var(--sv-color-text);
  background: rgba(var(--sv-color-wash-rgb), 0.025);
  border: 1px solid var(--hub-line);
  border-radius: 3px;
  font: normal 0.7rem/1.2 var(--sv-font-mono);
  text-align: center;
}

.hub-nav-item small {
  color: var(--hub-muted);
  font-size: 0.9rem;
}

.hub-nav-children {
  padding: 9px 24px 10px 47px;
  border-bottom: 1px solid var(--hub-line-soft);
}

.hub-nav-group.is-collapsed .hub-nav-children {
  display: none;
}

.hub-nav-children a {
  position: relative;
  min-height: 40px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--sv-color-text-muted);
}

.hub-nav-children a::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(151, 183, 199, 0.14);
}

.hub-nav-children a:hover {
  color: var(--sv-color-text);
}

.hub-nav-children i.muted,
.account-strip i.muted {
  background: #6a7478;
  box-shadow: none;
}

.platform-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  color: var(--sv-color-text);
  font-size: 0.54rem;
  font-weight: 800;
  font-style: normal;
  overflow: hidden;
}

.platform-mark.xhs {
  background: #ff3154;
}

.platform-mark.douyin {
  color: var(--sv-color-text);
  background: var(--sv-color-canvas);
  border: 1px solid var(--sv-color-border-strong);
  font-size: 1rem;
  text-shadow: -1px 0 var(--hub-cyan), 1px 0 var(--hub-red);
}

.agent-status {
  margin: 10px 18px 16px;
  padding: 17px 16px 15px;
  border: 1px solid var(--hub-line);
  border-radius: 4px;
  background: rgba(4, 12, 17, 0.68);
}

.agent-status header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sv-color-text-muted);
  font: 0.64rem/1 var(--sv-font-mono);
}

.agent-status header b {
  color: var(--hub-lime);
  font-weight: 500;
}

.agent-status dl {
  display: grid;
  gap: 12px;
  margin: 17px 0 0;
}

.agent-status dl > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.agent-status dt {
  color: var(--sv-color-text-muted);
  font: 0.64rem/1 var(--sv-font-mono);
}

.agent-status dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--sv-color-text-muted);
  font: 0.63rem/1 var(--sv-font-mono);
}

.agent-status dd > i {
  height: 6px;
  display: block;
  background: repeating-linear-gradient(90deg, rgba(151, 183, 199, 0.15) 0 4px, transparent 4px 7px);
  overflow: hidden;
}

.agent-status dd > i b {
  width: 0;
  height: 100%;
  display: block;
  background: repeating-linear-gradient(90deg, #24e879 0 4px, transparent 4px 7px);
  transition: width 500ms var(--ease);
}

.hub-sidebar-foot {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 0 28px 25px;
  color: var(--sv-color-text-muted);
  font: 0.64rem/1 var(--sv-font-mono);
}

.hub-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 20px;
  padding: 26px 28px 30px 34px;
  overflow: auto;
}

.hub-topbar {
  min-height: 57px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.hub-topbar > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
}

.hub-topbar p {
  margin: 0;
  color: var(--sv-color-text);
  font-size: clamp(1.3rem, 1.8vw, 1.76rem);
  font-weight: 560;
  letter-spacing: 0.02em;
}

.hub-topbar h1 {
  margin: 0;
  color: var(--sv-color-text);
  font-size: clamp(1.3rem, 1.8vw, 1.76rem);
  font-weight: 560;
  letter-spacing: 0.02em;
}

.hub-topbar h1 strong {
  color: inherit;
  font-weight: 700;
}

.hub-topbar-actions {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--hub-line);
  border-radius: 4px;
}

.hub-topbar-actions > a,
.hub-topbar-actions > button {
  position: relative;
  min-width: 60px;
  display: grid;
  place-items: center;
  color: var(--sv-color-text-muted);
  background: rgba(4, 12, 17, 0.65);
  border: 0;
  border-left: 1px solid var(--hub-line-soft);
  cursor: pointer;
}

.hub-topbar-actions > :first-child {
  border-left: 0;
}

.hub-topbar-actions > a:hover,
.hub-topbar-actions > button:hover {
  color: var(--hub-lime);
  background: var(--hub-lime-soft);
}

.hub-topbar-actions b {
  position: absolute;
  top: 7px;
  right: 10px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--sv-color-on-brand);
  background: var(--hub-lime);
  border-radius: 50%;
  font: 700 0.58rem/1 var(--sv-font-mono);
}

.sync-indicator {
  width: 177px;
  grid-template-columns: auto 22px !important;
  grid-template-rows: auto auto;
  column-gap: 9px;
  padding: 7px 13px;
  text-align: left;
}

.sync-indicator span {
  align-self: end;
  color: var(--hub-cyan);
  font: 0.64rem/1 var(--sv-font-mono);
}

.sync-indicator small {
  align-self: start;
  color: var(--sv-color-text-muted);
  font: 0.58rem/1.2 var(--sv-font-mono);
}

.sync-indicator svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 19px;
  height: 19px;
  color: var(--hub-cyan);
}

.sync-indicator.is-loading svg {
  animation: hub-spin 700ms linear infinite;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.metric-card {
  min-width: 0;
  min-height: 110px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 19px 23px;
  background: linear-gradient(135deg, rgba(10, 21, 28, 0.88), rgba(4, 12, 17, 0.88));
  border: 1px solid var(--hub-line);
  border-radius: 5px;
  transition: border-color 180ms ease, transform 180ms var(--ease), background 180ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 201, 255, 0.48);
  background: linear-gradient(135deg, rgba(10, 26, 35, 0.95), rgba(5, 15, 20, 0.95));
}

.metric-card > svg {
  width: 41px;
  height: 41px;
  color: var(--hub-cyan);
  stroke-width: 1.35;
}

.metric-card div {
  min-width: 0;
}

.metric-card span,
.metric-card small,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: var(--sv-color-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.metric-card strong {
  margin-top: 3px;
  color: var(--sv-color-text);
  font: 500 1.7rem/1 var(--sv-font-sans);
}

.metric-card small {
  margin-top: 7px;
  color: var(--hub-muted);
  font-size: 0.65rem;
}

.metric-card.is-unavailable > svg,
.metric-card.is-unavailable strong {
  color: var(--sv-color-text-faint);
}

.account-strip {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 9px 18px;
  border: 1px solid var(--hub-line);
  border-radius: 4px;
  background: rgba(5, 13, 18, 0.72);
}

.account-strip > span {
  flex: 0 0 auto;
  color: var(--sv-color-text-muted);
  font-size: 0.7rem;
}

.account-strip > a:not(.manage-link) {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 22px;
  border-right: 1px solid var(--hub-line-soft);
}

.account-strip strong {
  max-width: 220px;
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 0.75rem;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-strip .manage-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--hub-cyan);
  font-size: 0.72rem;
}

.account-strip .manage-link svg {
  width: 15px;
  height: 15px;
}

.hub-content-grid {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(540px, 1.58fr) minmax(400px, 0.98fr);
  gap: 20px;
}

.hub-content-primary,
.hub-content-secondary {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 20px;
}

.hub-content-primary {
  grid-template-rows: minmax(260px, 0.92fr) minmax(290px, 1.08fr);
}

.hub-content-secondary {
  grid-template-rows: minmax(230px, 1fr) minmax(205px, 0.78fr) minmax(112px, auto);
}

.hub-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(7, 17, 23, 0.94), rgba(3, 10, 14, 0.94));
  border: 1px solid var(--hub-line);
  border-radius: 5px;
  overflow: hidden;
}

.panel-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 17px;
  border-bottom: 1px solid var(--hub-line-soft);
}

.panel-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hub-lime);
  font-size: 0.9rem;
  font-weight: 520;
  letter-spacing: 0.035em;
}

.panel-head h2 svg {
  width: 21px;
  height: 21px;
}

.panel-head > span,
.panel-head p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.64rem;
}

.panel-head > div p {
  margin: 4px 0 0 31px;
}

.hub-panel > footer {
  min-height: 38px;
  display: grid;
  place-items: center;
  margin-top: auto;
  border-top: 1px solid var(--hub-line-soft);
}

.hub-panel > footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hub-cyan);
  font-size: 0.7rem;
}

.hub-panel > footer svg {
  width: 14px;
  height: 14px;
}

.panel-loading,
.panel-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--hub-faint);
  font-size: 0.72rem;
  text-align: center;
}

.panel-loading {
  position: relative;
  overflow: hidden;
}

.panel-loading::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--sv-brand-rgb), 0.24), transparent);
  transform: translateX(-65%);
  animation: hub-loading-line 1.4s ease-in-out infinite;
}

@keyframes hub-loading-line {
  to { transform: translateX(65%); }
}

.brief-list,
.hot-list,
.timeline-list,
.inbox-list {
  min-height: 0;
  flex: 1;
}

.brief-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 14px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--hub-line-soft);
}

.brief-row:last-child {
  border-bottom: 0;
}

.brief-row > b,
.brief-row-meta > b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--hub-lime);
  background: var(--hub-lime-soft);
  border: 1px solid rgba(var(--sv-brand-rgb), 0.38);
  border-radius: 4px;
  font: 500 0.7rem/1 var(--sv-font-mono);
}

.brief-row p {
  margin: 0;
  color: var(--sv-color-text);
  font-size: 0.74rem;
  line-height: 1.65;
}

.brief-row a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hub-cyan);
  font-size: 0.66rem;
  white-space: nowrap;
}

.brief-row a svg {
  width: 13px;
  height: 13px;
}
.brief-knowledge-links {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 3px;
}

.brief-knowledge-links button {
  width: 100%;
  min-width: 0;
  min-height: 27px;
  padding: 5px 8px 5px 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(var(--sv-color-ink-rgb), 0.07);
  border-radius: 0;
  background: transparent;
  color: var(--hub-muted);
  font-size: 9px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.brief-knowledge-links button:last-child { border-bottom: 0; }
.brief-knowledge-links button:hover { padding-left: 5px; color: var(--hub-lime); background: rgba(var(--sv-brand-rgb), 0.025); }
.knowledge-preview-dialog { width: min(860px, calc(100vw - 44px)); height: min(760px, calc(100vh - 44px)); padding: 0; overflow: hidden; border: 1px solid rgba(var(--sv-color-ink-rgb), .16); border-radius: 18px; background: var(--sv-color-surface); color: var(--sv-color-text); box-shadow: 0 36px 110px rgba(0,0,0,.72); }
.knowledge-preview-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.knowledge-preview-dialog > section { height: 100%; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.knowledge-preview-dialog header { padding: 22px 24px 18px; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(var(--sv-color-ink-rgb), .09); }
.knowledge-preview-dialog header p { margin: 0 0 7px; color: var(--sv-color-brand); font: 700 9px/1 var(--sv-font-mono); letter-spacing: .13em; text-transform: uppercase; }
.knowledge-preview-dialog h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.knowledge-preview-dialog header button { width: 36px; height: 36px; border: 1px solid rgba(var(--sv-color-ink-rgb), .12); border-radius: 10px; background: var(--sv-color-surface-elevated); color: var(--sv-color-text-muted); cursor: pointer; }
.knowledge-preview-meta { padding: 12px 24px; border-bottom: 1px solid rgba(var(--sv-color-ink-rgb), .07); color: var(--sv-color-text-faint); font-size: 10px; }
.knowledge-preview-meta.is-ai-hot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--sv-color-text-muted); font-size: 11px; }
.knowledge-preview-body { padding: 28px 34px 50px; overflow: auto; color: var(--sv-color-text); font-size: 13px; line-height: 1.95; white-space: pre-wrap; }
.knowledge-preview-body.is-ai-hot-reader { padding: 22px 28px 44px; white-space: normal; }
.knowledge-preview-body.is-ai-hot-reader .ah-article h3 { margin: 0 0 10px; color: var(--sv-color-brand); font: 700 10px/1 var(--sv-font-mono); letter-spacing: .12em; text-transform: uppercase; }
.knowledge-preview-body.is-ai-hot-reader .ah-article p { margin: 0 0 18px; color: var(--sv-color-text); font-size: 13px; line-height: 1.85; }
.knowledge-preview-body.is-ai-hot-reader .ah-callout { margin: 18px 0; padding: 14px 16px; border: 1px solid rgba(239,75,55,.24); border-radius: 10px; background: rgba(239,75,55,.05); }
.knowledge-preview-body.is-ai-hot-reader .ah-callout h3 { margin: 0 0 10px; color: #ef7b6d; font: 700 10px/1 var(--sv-font-mono); letter-spacing: .12em; text-transform: uppercase; }
.knowledge-preview-body.is-ai-hot-reader .ah-why-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.knowledge-preview-body.is-ai-hot-reader .ah-why-list li { position: relative; padding-left: 18px; color: var(--sv-color-text-muted); font-size: 12px; line-height: 1.55; }
.knowledge-preview-body.is-ai-hot-reader .ah-why-list li::before { position: absolute; top: .25em; left: 0; display: grid; width: 12px; height: 12px; place-items: center; border-radius: 50%; background: #ef7b6d; color: var(--sv-color-text); content: "✓"; font-size: 8px; }
.knowledge-preview-body.is-ai-hot-reader .ah-source-box { margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(var(--sv-color-ink-rgb), .1); border-radius: 10px; background: rgba(0,0,0,.22); color: var(--sv-color-text-muted); font-size: 11px; line-height: 1.65; }
.knowledge-preview-body.is-ai-hot-reader .ah-source-box a { color: var(--sv-color-brand); word-break: break-all; }
.knowledge-preview-meta.is-ai-hot-meta .ah-detail-source { display: inline-flex; align-items: center; gap: 6px; color: var(--sv-color-text-muted); font-size: 11px; }
.knowledge-preview-meta.is-ai-hot-meta .ah-detail-source::before { display: inline-grid; width: 18px; height: 18px; place-items: center; border: 1px solid rgba(var(--sv-color-ink-rgb), .14); border-radius: 50%; content: "◆"; font-size: 8px; }
.knowledge-preview-meta.is-ai-hot-meta .ah-source-badge { padding: 3px 7px; border-radius: 5px; background: rgba(var(--sv-color-ink-rgb), .08); color: var(--sv-color-text-muted); font-size: 10px; }
.knowledge-preview-meta.is-ai-hot-meta .ah-time { color: var(--sv-color-text-muted); font-size: 10px; }
.knowledge-preview-meta.is-ai-hot-meta .ah-detail-heat { display: grid; grid-template-columns: auto auto minmax(90px, 1fr); align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--heat-color) 24%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--heat-color) 6%, transparent); color: var(--heat-color); }
.knowledge-preview-meta.is-ai-hot-meta .ah-detail-heat span { font-size: 11px; font-weight: 650; }
.knowledge-preview-meta.is-ai-hot-meta .ah-detail-heat strong { font: 500 28px/1 var(--sv-font-sans); }
.knowledge-preview-meta.is-ai-hot-meta .ah-detail-heat small { color: var(--sv-color-text-muted); font-size: 10px; }
.knowledge-preview-body.is-timeline-reader { padding: 18px 24px 44px; white-space: normal; }
.knowledge-preview-dialog footer { padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(var(--sv-color-ink-rgb), .09); }
.knowledge-preview-footer-primary { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.knowledge-preview-dialog footer a, .knowledge-preview-dialog footer button { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; border: 1px solid rgba(var(--sv-color-ink-rgb), .12); border-radius: 9px; background: var(--sv-color-surface-strong); color: var(--sv-color-text); font-size: 10px; text-decoration: none; cursor: pointer; }
.knowledge-preview-dialog footer #knowledgePreviewCollect { border-color: rgba(var(--sv-brand-rgb), .35); color: var(--sv-color-brand); }
.knowledge-preview-dialog footer #knowledgePreviewCollect:disabled { opacity: .55; cursor: not-allowed; }
.knowledge-preview-dialog footer a[hidden],
.knowledge-preview-dialog footer button[hidden] { display: none !important; }
.knowledge-preview-footer-actions { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.knowledge-preview-dialog footer #knowledgePreviewMarkRead { border-color: rgba(var(--sv-brand-rgb), .35); color: var(--sv-color-brand); }
.knowledge-preview-dialog footer #knowledgePreviewMarkRead:disabled { opacity: .55; cursor: wait; }
.knowledge-preview-dialog footer:has(a[hidden]) { justify-content: flex-end; }

.panel-footer-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.panel-footer-action svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.timeline-reader-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
  border: 1px solid rgba(var(--sv-color-ink-rgb), .09);
  border-radius: 12px;
  background: rgba(var(--sv-color-wash-rgb), .018);
}

.timeline-reader-overview > span {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(var(--sv-color-ink-rgb), .07);
  color: var(--sv-color-text-faint);
  font-size: 9px;
}

.timeline-reader-overview > span:last-child { border-right: 0; }
.timeline-reader-overview b { margin-right: 6px; color: var(--sv-color-text); font-size: 15px; font-weight: 620; }

.timeline-reader-rail { position: relative; }
.timeline-reader-rail::before {
  content: "";
  position: absolute;
  top: 27px;
  bottom: 28px;
  left: 99px;
  width: 1px;
  background: linear-gradient(var(--sv-color-brand), rgba(var(--sv-brand-rgb), .08));
}

.timeline-cluster { position: relative; border-bottom: 1px solid rgba(var(--sv-color-ink-rgb), .065); }
.timeline-cluster:last-child { border-bottom: 0; }
.timeline-cluster > summary {
  min-height: 82px;
  display: grid;
  grid-template-columns: 76px 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  list-style: none;
  cursor: pointer;
}

.timeline-cluster > summary::-webkit-details-marker { display: none; }
.timeline-cluster > summary > time { text-align: right; }
.timeline-cluster > summary > time strong,
.timeline-cluster > summary > time span { display: block; }
.timeline-cluster > summary > time strong { color: var(--sv-color-text); font-size: 11px; font-weight: 570; }
.timeline-cluster > summary > time span { margin-top: 4px; color: var(--sv-color-text-faint); font: 8px/1 var(--sv-font-mono); }

.timeline-cluster > summary > i {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--sv-color-brand);
  border: 1px solid rgba(var(--sv-brand-rgb), .28);
  border-radius: 10px;
  background: var(--sv-color-surface-strong);
  box-shadow: 0 0 0 5px #101210;
}

.timeline-cluster > summary > i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; }
.timeline-cluster > summary > span { min-width: 0; }
.timeline-cluster > summary small,
.timeline-cluster > summary strong,
.timeline-cluster > summary em { display: block; }
.timeline-cluster > summary small { color: var(--sv-color-text-faint); font-size: 8px; letter-spacing: .08em; }
.timeline-cluster > summary > span > strong { margin-top: 5px; overflow: hidden; color: var(--sv-color-text); font-size: 12px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.timeline-cluster > summary em { margin-top: 5px; color: var(--sv-color-text-faint); font-size: 8px; font-style: normal; }
.timeline-cluster > summary > b { color: var(--sv-color-text-faint); font: 600 11px/1 var(--sv-font-mono); }
.timeline-cluster[open] > summary > b { color: var(--sv-color-brand); }

.timeline-cluster-detail {
  margin: -2px 4px 12px 126px;
  overflow: hidden;
  border: 1px solid rgba(var(--sv-color-ink-rgb), .075);
  border-radius: 9px;
  background: rgba(var(--sv-color-wash-rgb), .012);
}

.timeline-cluster-row {
  width: 100%;
  min-height: 39px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid rgba(var(--sv-color-ink-rgb), .055);
  color: inherit;
  background: transparent;
  text-align: left;
}

.timeline-cluster-row:last-child { border-bottom: 0; }
button.timeline-cluster-row { cursor: pointer; }
button.timeline-cluster-row:hover { background: rgba(var(--sv-brand-rgb), .025); }
.timeline-cluster-row time { color: var(--sv-color-text-faint); font: 8px/1 var(--sv-font-mono); }
.timeline-cluster-row > span { min-width: 0; overflow: hidden; color: var(--sv-color-text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-cluster-row > small { color: var(--sv-color-text-faint); font-size: 8px; }
.timeline-reader-empty { color: var(--sv-color-text-faint); text-align: center; }

@media (max-width: 640px) {
  .knowledge-preview-body.is-timeline-reader { padding-inline: 14px; }
  .timeline-reader-rail::before { left: 35px; }
  .timeline-cluster > summary { grid-template-columns: 38px minmax(0, 1fr) 24px; }
  .timeline-cluster > summary > time { display: none; }
  .timeline-cluster-detail { margin-left: 50px; }
}

.timeline-list {
  position: relative;
  padding: 4px 16px 4px 76px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 12px;
  left: 72px;
  width: 1px;
  background: linear-gradient(var(--hub-lime), rgba(var(--sv-brand-rgb), 0.1));
}

.timeline-row {
  position: relative;
  min-height: 51px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--hub-line-soft);
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: -8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hub-lime);
  box-shadow: 0 0 10px rgba(var(--sv-brand-rgb), 0.45);
}

.timeline-row > time {
  position: absolute;
  right: calc(100% + 22px);
  color: var(--sv-color-text-muted);
  font: 0.66rem/1 var(--sv-font-mono);
}

.timeline-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--hub-cyan);
  border: 1px solid rgba(39, 201, 255, 0.45);
  border-radius: 4px;
}

.timeline-icon svg {
  width: 18px;
  height: 18px;
}

.timeline-row p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row small {
  padding: 3px 8px;
  color: var(--hub-cyan);
  background: rgba(39, 201, 255, 0.055);
  border: 1px solid rgba(39, 201, 255, 0.18);
  border-radius: 3px;
  font-size: 0.61rem;
}

.timeline-row[data-kind="task"] .timeline-icon,
.timeline-row[data-kind="task"] small {
  color: var(--hub-amber);
  border-color: rgba(255, 207, 50, 0.38);
}

.timeline-row[data-kind="agent"] .timeline-icon,
.timeline-row[data-kind="agent"] small {
  color: var(--hub-lime);
  border-color: rgba(var(--sv-brand-rgb), 0.32);
}

.hot-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 17px;
  border-bottom: 1px solid var(--hub-line-soft);
}

.hot-lead {
  position: relative;
  width: calc(100% - 32px);
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) 54px;
  align-items: stretch;
  gap: 0;
  margin: 10px 16px 5px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.1);
  border-radius: 11px;
  background: var(--sv-color-surface-strong);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.hot-lead:hover { border-color: rgba(var(--widget-accent-rgb, 215, 252, 0), 0.3); }
.hot-lead-visual { position: relative; min-width: 0; overflow: hidden; background: radial-gradient(circle at 24% 25%, rgba(var(--widget-accent-rgb, 215, 252, 0), 0.14), transparent 24%), linear-gradient(135deg, var(--sv-color-surface-hover), var(--sv-color-canvas-raised)); }
.hot-lead-visual::after { content: "AI / TODAY"; position: absolute; left: 9px; bottom: 7px; color: var(--sv-color-text-muted); font: 600 7px/1 var(--sv-font-mono); letter-spacing: 0.12em; }
.hot-lead-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hot-lead-copy { min-width: 0; align-self: center; padding: 13px 12px; }
.hot-lead-copy small, .hot-lead-copy strong, .hot-lead-copy em { display: block; min-width: 0; }
.hot-lead-copy small { color: var(--hub-muted); font: 600 8px/1 var(--sv-font-mono); }
.hot-lead-copy strong { margin: 9px 0 8px; display: -webkit-box; overflow: hidden; color: var(--sv-color-text); font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hot-lead-copy em { overflow: hidden; color: var(--hub-faint); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.hot-lead-score { align-self: stretch; display: grid; align-content: center; justify-items: center; border-left: 1px solid rgba(var(--sv-color-ink-rgb), 0.08); background: rgba(0, 0, 0, 0.16); }
.hot-lead-score small { color: var(--hub-faint); font-size: 7px; writing-mode: vertical-rl; }
.hot-lead-score b { margin-top: 7px; color: #d88716; font: 500 23px/1 var(--sv-font-mono); }

.hot-row:last-child {
  border-bottom: 0;
}

.hot-row > span {
  color: var(--hub-cyan);
  font-size: 0.64rem;
}

.hot-row > a,
.hot-row > button {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sv-color-text);
  font-size: 0.71rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.hot-row > a:hover,
.hot-row > button:hover {
  color: var(--sv-color-text);
}

.hot-row > small {
  color: var(--hub-muted);
  font: 0.58rem/1 var(--sv-font-mono);
  white-space: nowrap;
}

.hot-row-score { color: #d88716; font: 500 9px/1 var(--sv-font-mono); }

.inbox-head {
  flex-wrap: wrap;
  min-height: 56px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.inbox-tabs {
  display: flex;
  align-self: stretch;
}

.inbox-tabs button {
  position: relative;
  padding: 0 10px;
  color: var(--sv-color-text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.66rem;
}

.inbox-tabs button::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: -8px;
  left: 9px;
  height: 2px;
  background: transparent;
}

.inbox-tabs button.active {
  color: var(--sv-color-text);
}

.inbox-tabs button.active::after {
  background: var(--hub-lime);
}

.inbox-tabs b {
  margin-left: 3px;
  color: var(--hub-lime);
  font: 500 0.65rem/1 var(--sv-font-mono);
}

.inbox-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 17px;
  border-bottom: 1px solid var(--hub-line-soft);
}

button.inbox-row {
  width: calc(100% - 34px);
  padding: 0;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--hub-line-soft);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.inbox-row:last-child { border-bottom: 0; }

button.inbox-row:hover,
.timeline-row.is-readable:hover {
  background: rgba(var(--sv-color-ink-rgb), 0.025);
}

.timeline-row.is-readable { cursor: pointer; }
.timeline-row.is-readable:focus-visible,
button.inbox-row:focus-visible,
.hot-row > button:focus-visible {
  outline: 1px solid rgba(var(--sv-brand-rgb), 0.68);
  outline-offset: 3px;
}

.inbox-row:last-child {
  border-bottom: 0;
}

.inbox-row.is-unread {
  padding-inline: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(var(--sv-brand-rgb, 215, 247, 42), 0.075), transparent 72%);
}

.inbox-row.is-unread strong {
  color: var(--sv-color-text, #f5f2ea);
  font-weight: 650;
}

.inbox-row strong,
.inbox-row span,
.inbox-row small {
  display: block;
}

.inbox-comment {
  display: grid;
  gap: 7px;
  margin: 0 17px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hub-line-soft);
}

.inbox-comment.is-unread {
  margin-block: 4px;
  padding-inline: 10px;
  border-radius: 9px;
  background: linear-gradient(105deg, rgba(var(--sv-brand-rgb, 215, 247, 42), 0.07), transparent 78%);
}

.inbox-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inbox-comment-head strong {
  color: var(--sv-color-text);
  font-size: 0.68rem;
  font-weight: 600;
}

.inbox-comment-head small,
.inbox-comment > a {
  color: var(--hub-muted);
  font-size: 0.58rem;
}

.inbox-comment > p {
  margin: 0;
  color: var(--sv-color-text-muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.inbox-comment > a:hover {
  color: var(--hub-lime);
}

.inbox-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.inbox-comment-actions button {
  min-height: 26px;
  padding: 0 9px;
  color: var(--sv-color-text-muted);
  background: var(--sv-color-surface-strong);
  border: 1px solid var(--hub-line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.58rem;
}

.inbox-comment-actions button.is-primary {
  color: var(--hub-lime);
  border-color: rgba(var(--sv-brand-rgb, 215, 247, 42), 0.3);
}

.inbox-row strong {
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 0.71rem;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-row span,
.inbox-row small {
  margin-top: 4px;
  color: var(--hub-muted);
  font-size: 0.61rem;
}

.mail-empty {
  min-height: 104px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  padding: 18px 22px;
}

.mail-empty svg {
  width: 27px;
  height: 27px;
  color: var(--sv-color-text-faint);
}

.mail-empty strong,
.mail-empty span {
  display: block;
}

.mail-empty strong {
  color: var(--sv-color-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.mail-empty span {
  margin-top: 5px;
  color: var(--hub-muted);
  font-size: 0.63rem;
  line-height: 1.55;
}

.approval-panel .panel-head {
  min-height: 48px;
}

.approval-panel .panel-head > b {
  min-width: 26px;
  padding: 3px 7px;
  color: var(--sv-color-text);
  border: 1px solid var(--hub-line);
  border-radius: 3px;
  font: 500 0.62rem/1 var(--sv-font-mono);
  text-align: center;
}

.approval-content {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 17px;
}

.approval-content span {
  min-width: 0;
  overflow: hidden;
  color: var(--sv-color-text-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-content a {
  min-width: 74px;
  padding: 8px 14px;
  color: var(--sv-color-on-brand);
  background: var(--hub-lime);
  border: 1px solid var(--hub-lime);
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 650;
  text-align: center;
}

@keyframes hub-spin {
  to { transform: rotate(360deg); }
}

@keyframes hub-enter {
  from { opacity: 0.86; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .metric-card.hub-enter-play,
  .account-strip.hub-enter-play,
  .hub-panel.hub-enter-play {
    animation: hub-enter 300ms var(--ease) both;
    animation-delay: var(--hub-enter-delay, 0ms) !important;
  }
}

@media (max-width: 1320px) {
  :root { --sidebar-width: 250px; }
  .hub-brand { padding-inline: 24px; }
  .hub-brand i { display: none; }
  .hub-nav-item { padding-inline: 24px 18px; }
  .hub-nav-item:hover { padding-left: 27px; }
  .hub-main { padding-left: 24px; }
  .metric-grid { gap: 14px; }
  .metric-card { grid-template-columns: 40px minmax(0, 1fr); padding-inline: 17px; }
  .metric-card > svg { width: 33px; height: 33px; }
  .hub-content-grid { grid-template-columns: minmax(500px, 1.45fr) minmax(380px, 1fr); }
}

@media (max-height: 850px) {
  .hub-main { gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .metric-card { min-height: 88px; }
  .account-strip { min-height: 50px; }
  .hub-content-grid { min-height: 570px; }
  .hub-nav-item { min-height: 51px; }
  .hub-nav-children a { min-height: 36px; }
  .agent-status { display: none; }
  .hub-sidebar { grid-template-rows: auto minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Personal hub v2 — compact rail + three-column operations desk */
:root {
  --sidebar-width: 238px;
  --sidebar-collapsed-width: 76px;
}

.hub-shell {
  transition: grid-template-columns 240ms var(--ease);
}

.hub-shell.is-nav-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.hub-shell:not(.is-nav-collapsed) {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.hub-sidebar {
  transition: width 240ms var(--ease);
}

.hub-brand {
  min-height: 98px;
  padding: 25px 22px 18px;
  overflow: hidden;
}

.hub-brand-mark {
  display: flex !important;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.hub-brand-mark img {
  width: 36px;
  height: auto;
  display: block;
}

.hub-brand > small {
  display: block;
  margin-top: 6px;
  color: var(--sv-color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.hub-brand i {
  right: 20px;
  bottom: 20px;
}

.sidebar-toggle {
  position: absolute;
  top: 17px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--sv-color-text-muted);
  background: rgba(var(--sv-color-wash-rgb), 0.018);
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

.sidebar-toggle:hover {
  color: var(--hub-lime);
  border-color: var(--hub-line);
}

.sidebar-toggle svg {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
  transition: transform 240ms var(--ease);
}

.is-nav-collapsed .sidebar-toggle svg {
  transform: rotate(0deg);
}

.hub-nav-item {
  min-height: 52px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  padding: 0 18px 0 21px;
}

.hub-nav-item:hover {
  padding-left: 24px;
}

.is-nav-collapsed .hub-brand {
  min-height: 108px;
  padding: 20px 0 52px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.is-nav-collapsed .hub-brand-mark strong {
  display: block;
}

.is-nav-collapsed .hub-brand-mark > span,
.is-nav-collapsed .hub-brand > small,
.is-nav-collapsed .hub-brand i,
.is-nav-collapsed .agent-status,
.is-nav-collapsed .hub-sidebar-foot {
  display: none;
}

.is-nav-collapsed .sidebar-toggle {
  top: 66px;
  right: 23px;
  bottom: auto;
  z-index: 3;
  color: var(--hub-lime);
  background: rgba(var(--sv-brand-rgb), 0.055);
  border-color: rgba(var(--sv-brand-rgb), 0.3);
  box-shadow: 0 0 16px rgba(var(--sv-brand-rgb), 0.06);
}

.is-nav-collapsed .hub-nav {
  padding-top: 0;
  overflow-x: hidden;
}

.is-nav-collapsed .hub-nav-item {
  width: 76px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.is-nav-collapsed .hub-nav-item:hover {
  padding-left: 0;
}

.is-nav-collapsed .hub-nav-item span,
.is-nav-collapsed .hub-nav-item em,
.is-nav-collapsed .hub-nav-item small,
.is-nav-collapsed .hub-nav-children {
  display: none;
}

.is-nav-collapsed .hub-nav-item svg {
  width: 22px;
  height: 22px;
}

.is-nav-collapsed .hub-sidebar {
  grid-template-rows: auto minmax(0, 1fr);
}

.hub-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px 28px;
}

.hub-topbar {
  min-height: 61px;
  align-items: center;
}

.hub-topbar > div:first-child {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.hub-topbar p,
.hub-topbar h1 {
  font-size: clamp(1.16rem, 1.6vw, 1.55rem);
}

.topbar-summary {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--sv-color-text-muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.topbar-summary a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.topbar-summary a:hover {
  color: var(--sv-color-text);
}

.topbar-summary b {
  color: var(--hub-lime);
  font: 650 0.9rem/1 var(--sv-font-mono);
}

.topbar-summary i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #78878d;
}

.hub-topbar-actions {
  flex: 0 0 auto;
}

.sync-indicator {
  width: 132px;
}

.hub-dashboard-grid {
  min-height: 650px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(310px, 0.86fr) minmax(390px, 1.12fr) minmax(390px, 1.08fr);
  gap: 18px;
}

.hub-center-stack,
.hub-right-stack {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 18px;
}

.hub-center-stack {
  grid-template-rows: minmax(280px, 0.86fr) minmax(330px, 1.14fr);
}

.hub-right-stack {
  grid-template-rows: minmax(380px, 1.48fr) minmax(170px, 0.68fr) minmax(100px, auto);
}

.brief-panel .panel-head,
.plan-panel .panel-head,
.hot-panel .panel-head {
  min-height: 60px;
}

.brief-panel .brief-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.brief-panel .brief-row {
  min-height: 0;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 10px;
  margin: 0 22px;
  padding: 20px 7px;
}

.brief-panel .brief-row-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brief-panel .brief-row > b,
.brief-panel .brief-row-meta > b {
  width: auto;
  height: auto;
  display: block;
  color: var(--hub-lime);
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  text-align: left;
}

.brief-panel .brief-row p {
  font-size: 0.77rem;
  line-height: 1.85;
}

.brief-panel .brief-row a {
  max-width: 52%;
  justify-self: auto;
  overflow: hidden;
  color: var(--sv-color-text-faint);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-panel .brief-row a svg {
  width: 11px;
  height: 11px;
  opacity: 0.55;
}

.brief-panel .brief-row a:hover {
  color: rgba(var(--widget-accent-rgb), 0.72);
}

.panel-head > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sv-color-text-muted);
  font-size: 0.68rem;
}

.panel-head > a:hover {
  color: var(--hub-cyan);
}

.panel-head > a svg {
  width: 14px;
  height: 14px;
}

.plan-list {
  min-height: 0;
  flex: 1;
  padding: 2px 17px;
}

.plan-row {
  min-height: 53px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--hub-line-soft);
}

.plan-row:last-child {
  border-bottom: 0;
}

.plan-row > i {
  width: 19px;
  height: 19px;
  border: 1px solid #aebbc0;
  border-radius: 2px;
}

.plan-row > div {
  min-width: 0;
}

.plan-row strong {
  display: block;
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 0.72rem;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-row small {
  display: block;
  margin-top: 4px;
  color: var(--hub-muted);
  font-size: 0.6rem;
}

.plan-row > span {
  padding: 3px 7px;
  color: var(--hub-amber);
  border: 1px solid rgba(255, 207, 50, 0.27);
  border-radius: 3px;
  font-size: 0.59rem;
}

.hot-panel .hot-list {
  overflow: hidden;
}

.hot-panel .hot-row {
  min-height: 34px;
  grid-template-columns: 24px minmax(0, 1fr) minmax(60px, 88px) 24px;
  gap: 9px;
  margin: 0 16px;
}

.hot-panel .hot-row > span {
  color: var(--sv-color-text);
  font: 500 0.64rem/1 var(--sv-font-mono);
}

.hot-panel .hot-row > a,
.hot-panel .hot-row > button {
  font-size: 0.68rem;
}

.hot-panel .hot-row > small {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-panel > footer {
  min-height: 34px;
}

.inbox-panel .inbox-list {
  overflow: visible;
}

.mail-empty {
  min-height: 105px;
}

.hub-dashboard-grid > .hub-panel:not(.hub-enter-play),
.hub-center-stack > .hub-panel:not(.hub-enter-play),
.hub-right-stack > .hub-panel:not(.hub-enter-play) {
  animation: none;
}

@media (max-width: 1450px) {
  .hub-main { padding-inline: 22px; }
  .hub-dashboard-grid {
    grid-template-columns: minmax(285px, 0.82fr) minmax(350px, 1.08fr) minmax(350px, 1fr);
    gap: 14px;
  }
  .hub-center-stack,
  .hub-right-stack { gap: 14px; }
  .topbar-summary { gap: 10px; }
  .sync-indicator { display: none !important; }
}

@media (max-width: 1180px) {
  .topbar-summary { display: none; }
  .hub-dashboard-grid {
    min-width: 1030px;
  }
}

@media (max-height: 820px) {
  .hub-main { padding-top: 14px; padding-bottom: 16px; gap: 12px; }
  .hub-dashboard-grid { min-height: 650px; }
  .hub-topbar { min-height: 52px; }
}

/* v4 — share the quiet, rounded visual language of the default gallery */
:root {
  --hub-bg: var(--sv-color-canvas);
  --hub-bg-deep: var(--sv-color-canvas);
  --hub-panel: var(--sv-color-surface);
  --hub-panel-strong: var(--sv-color-surface-strong);
  --hub-line: var(--sv-color-border);
  --hub-line-soft: var(--sv-color-border-soft);
  --hub-text: var(--sv-color-text);
  --hub-muted: var(--sv-color-text-muted);
  --hub-faint: var(--sv-color-text-faint);
  --hub-lime: var(--sv-color-brand);
  --hub-lime-soft: rgba(var(--sv-brand-rgb), 0.09);
  --hub-cyan: var(--sv-color-text-muted);
  --hub-red: var(--sv-color-danger);
  --hub-amber: var(--sv-color-warning);
  --sidebar-width: 224px;
  --sidebar-collapsed-width: 64px;
  --ease: var(--sv-ease-out);
}

body {
  background: var(--sv-color-canvas);
  color: var(--sv-color-text);
  font-family: var(--sv-font-sans);
}

.hub-sidebar {
  background: var(--sv-color-canvas);
  border-right-color: var(--sv-color-border-soft);
  box-shadow: none;
}

.hub-brand {
  border-bottom-color: transparent;
}

.hub-brand a,
.hub-brand-mark strong {
  color: var(--sv-color-brand);
}

.hub-brand-mark strong {
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.08);
  border-radius: 13px;
  background: rgba(var(--sv-color-wash-rgb), 0.04);
  font-family: var(--sv-font-sans);
  letter-spacing: -0.07em;
}

.is-nav-collapsed .hub-brand-mark strong {
  display: grid;
}

.hub-nav-item {
  width: calc(100% - 16px);
  min-height: 46px;
  margin: 3px 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--sv-radius-control);
  color: var(--sv-color-text-muted);
}

.hub-nav-item::before {
  display: none;
}

.hub-nav-item:hover {
  padding-left: 13px;
  color: var(--sv-color-text);
  background: var(--sv-color-selection-bg);
  border-color: var(--sv-color-selection-border);
}

.hub-nav-item.active {
  color: var(--sv-color-brand);
  background: rgba(var(--sv-brand-rgb), 0.075);
  border-color: transparent;
}

.hub-nav-item:active,
.sidebar-toggle:active,
.hub-topbar-actions a:active,
.hub-topbar-actions button:active {
  transform: scale(0.96);
}

.is-nav-collapsed .hub-nav-item {
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 4px auto;
  padding: 0;
}

.is-nav-collapsed .hub-nav-item:hover {
  padding-left: 0;
}

.hub-nav-children {
  margin: 2px 10px 8px;
  padding: 6px 8px 6px 35px;
  border: 0;
  border-radius: 10px;
  background: rgba(var(--sv-color-wash-rgb), 0.025);
}

.hub-nav-children a::before {
  border-left-color: var(--sv-color-border-soft);
}

.sidebar-toggle {
  border-radius: 10px;
  transition:
    color var(--sv-duration-fast) var(--sv-ease),
    background var(--sv-duration-fast) var(--sv-ease),
    border-color var(--sv-duration-fast) var(--sv-ease),
    transform var(--sv-duration-press) ease;
}

.is-nav-collapsed .sidebar-toggle {
  right: 17px;
  color: var(--sv-color-text-muted);
  background: rgba(var(--sv-color-wash-rgb), 0.035);
  border-color: var(--sv-color-border-soft);
  box-shadow: none;
}

.is-nav-collapsed .sidebar-toggle:hover {
  color: var(--sv-color-brand);
  background: rgba(var(--sv-brand-rgb), 0.08);
  border-color: rgba(var(--sv-brand-rgb), 0.24);
}

.agent-status {
  border-color: var(--sv-color-border-soft);
  border-radius: var(--sv-radius-panel);
  background: rgba(var(--sv-color-wash-rgb), 0.025);
}

.hub-main {
  gap: 16px;
  padding: 22px 26px 26px;
}

.hub-topbar p,
.hub-topbar h1 {
  color: var(--sv-color-text);
  letter-spacing: -0.025em;
}

.topbar-summary {
  gap: 13px;
  color: var(--sv-color-text-muted);
}

.topbar-summary b {
  color: var(--sv-color-brand);
}

.topbar-summary i {
  background: rgba(var(--sv-color-ink-rgb), 0.28);
}

.hub-topbar-actions {
  overflow: hidden;
  border-color: var(--sv-color-border-soft);
  border-radius: var(--sv-radius-panel);
  background: var(--sv-color-surface);
  box-shadow: var(--sv-shadow-panel);
}

.hub-topbar-actions > a,
.hub-topbar-actions > button {
  color: var(--sv-color-text-muted);
  background: transparent;
  border-left-color: var(--sv-color-border-soft);
  transition:
    color var(--sv-duration-fast) var(--sv-ease),
    background var(--sv-duration-fast) var(--sv-ease),
    transform var(--sv-duration-press) ease;
}

.hub-topbar-actions > a:hover,
.hub-topbar-actions > button:hover {
  color: var(--sv-color-text);
  background: var(--sv-color-selection-bg);
}

.sync-indicator span,
.sync-indicator svg {
  color: var(--sv-color-brand);
}

.hub-dashboard-grid,
.hub-center-stack,
.hub-right-stack {
  gap: 16px;
}

.hub-panel {
  background:
    linear-gradient(180deg, rgba(var(--sv-color-wash-rgb), 0.012), transparent 38%),
    var(--sv-color-surface);
  border-color: var(--sv-color-border-soft);
  border-radius: var(--sv-radius-panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.panel-head {
  padding-inline: 19px;
  border-bottom-color: var(--sv-color-border-soft);
}

.panel-head h2 {
  color: var(--sv-color-text);
  font-size: var(--sv-font-size-sm);
  font-weight: 650;
  letter-spacing: 0;
}

.panel-head h2 svg {
  color: var(--sv-color-brand);
}

.panel-head > a,
.hub-panel > footer a,
.brief-row a {
  color: var(--sv-color-text-muted);
}

.panel-head > a:hover,
.hub-panel > footer a:hover,
.brief-row a:hover {
  color: var(--sv-color-brand);
}

.hub-panel > footer {
  border-top-color: var(--sv-color-border-soft);
  background: rgba(var(--sv-color-wash-rgb), 0.012);
}

.brief-panel .brief-row {
  border-bottom-color: var(--sv-color-border-soft);
}

.brief-panel .brief-row > b,
.brief-panel .brief-row-meta > b {
  color: var(--sv-color-brand);
}

.brief-panel .brief-row p,
.plan-row strong,
.timeline-row p,
.hot-row > a,
.hot-row > button,
.inbox-row strong {
  color: var(--sv-color-text);
}

.plan-row,
.timeline-row,
.hot-row,
.inbox-row {
  border-bottom-color: var(--sv-color-border-soft);
}

.plan-row {
  margin: 4px 0;
  padding: 0 8px;
  border-radius: 9px;
  transition: background var(--sv-duration-fast) var(--sv-ease);
}

.plan-row:hover {
  background: var(--sv-color-selection-bg);
}

.plan-row > i {
  border-color: var(--sv-color-border);
  border-radius: 6px;
}

.plan-row > span,
.timeline-row small,
.approval-panel .panel-head > b {
  border-radius: 999px;
}

.timeline-list::before {
  background: linear-gradient(var(--sv-color-brand), rgba(var(--sv-brand-rgb), 0.04));
}

.timeline-icon {
  color: var(--sv-color-text-muted);
  border-color: var(--sv-color-border);
  border-radius: var(--sv-radius-control);
  background: rgba(var(--sv-color-wash-rgb), 0.025);
}

.timeline-row small {
  color: var(--sv-color-text-muted);
  background: rgba(var(--sv-color-wash-rgb), 0.035);
  border-color: var(--sv-color-border-soft);
}

.hot-panel .hot-row {
  border-radius: 7px;
}

.hot-panel .hot-row:hover {
  background: rgba(var(--sv-color-wash-rgb), 0.028);
}

.hot-panel .hot-row > span {
  color: var(--sv-color-text-faint);
}

.inbox-tabs {
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(var(--sv-color-wash-rgb), 0.035);
}

.inbox-tabs button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
}

.inbox-tabs button::after {
  display: none;
}

.inbox-tabs button.active {
  color: var(--sv-color-text);
  background: var(--sv-color-selection-bg);
}

.approval-content a {
  border-radius: var(--sv-radius-control);
  color: var(--sv-color-on-brand);
  background: var(--sv-color-brand);
  border-color: var(--sv-color-brand);
}

.platform-mark,
.hub-nav-item em {
  border-radius: var(--sv-radius-control);
}

@media (max-width: 1450px) {
  .hub-dashboard-grid,
  .hub-center-stack,
  .hub-right-stack { gap: 13px; }
}

/* The personal hub now uses the same global rail as the gallery. */
body.has-app-rail {
  padding-left: var(--app-rail-width, 64px);
}

.has-app-rail .hub-shell,
.has-app-rail .hub-shell.is-nav-collapsed,
.has-app-rail .hub-shell:not(.is-nav-collapsed) {
  width: 100%;
  height: 100dvh;
  display: block;
}

.has-app-rail .hub-sidebar {
  display: none;
}

.has-app-rail .hub-main {
  width: 100%;
  height: 100dvh;
}

/* Widget Registry MVP — quiet 12-column operations canvas */
.has-app-rail .hub-main {
  overflow: auto;
}

.hub-dashboard-grid {
  --dashboard-grid-gap: 14px;
  min-height: 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 44px;
  gap: var(--dashboard-grid-gap);
  align-content: start;
}

.hub-dashboard-grid > .hub-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.hub-dashboard-grid > .hub-panel[hidden] {
  display: none !important;
}

.dashboard-editor {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 10px 9px 15px;
  border: 1px solid rgba(var(--sv-brand-rgb), 0.2);
  border-radius: var(--sv-radius-panel);
  background:
    linear-gradient(90deg, rgba(var(--sv-brand-rgb), 0.075), transparent 46%),
    var(--sv-color-surface);
  box-shadow: var(--sv-shadow-panel);
}

.dashboard-editor[hidden],
.widget-library[hidden] {
  display: none !important;
}

.dashboard-editor > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 13px;
}

.dashboard-editor span {
  color: var(--sv-color-brand);
  font: 600 0.58rem/1.2 var(--sv-font-mono);
  letter-spacing: 0.11em;
}

.dashboard-editor strong {
  color: var(--sv-color-text);
  font-size: 0.72rem;
  font-weight: 620;
}

.dashboard-editor small {
  grid-column: 2;
  color: var(--sv-color-text-faint);
  font-size: 0.61rem;
}

.dashboard-editor nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-editor button,
.widget-library button {
  min-height: 32px;
  padding: 0 11px;
  color: var(--sv-color-text-muted);
  border: 1px solid var(--sv-color-border-soft);
  border-radius: var(--sv-radius-control);
  background: rgba(var(--sv-color-wash-rgb), 0.025);
  font: inherit;
  font-size: 0.65rem;
  cursor: pointer;
  transition:
    color var(--sv-duration-fast) var(--sv-ease),
    border-color var(--sv-duration-fast) var(--sv-ease),
    background var(--sv-duration-fast) var(--sv-ease),
    transform var(--sv-duration-press) ease;
}

.dashboard-editor button:hover,
.widget-library button:hover {
  color: var(--sv-color-text);
  border-color: var(--sv-color-border);
  background: var(--sv-color-selection-bg);
}

.dashboard-editor button:active,
.widget-library button:active {
  transform: scale(0.97);
}

.dashboard-editor button.is-primary {
  color: var(--sv-color-on-brand);
  border-color: var(--sv-color-brand);
  background: var(--sv-color-brand);
  font-weight: 680;
}

.widget-frame-controls {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: none;
  pointer-events: none;
}

.is-layout-editing .widget-frame-controls {
  display: flex;
}

.widget-frame-controls button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--sv-color-text-muted);
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.12);
  border-radius: 8px;
  background: var(--sv-color-canvas-raised);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  touch-action: none;
  pointer-events: auto;
}

.widget-frame-controls button:hover,
.widget-frame-controls button:focus-visible {
  color: var(--sv-color-brand);
  border-color: rgba(var(--sv-brand-rgb), 0.32);
  outline: none;
}

.widget-frame-controls button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.widget-frame-controls [data-widget-drag] {
  right: 40px;
  cursor: grab;
  font: 600 0.9rem/1 var(--sv-font-mono);
}

.widget-frame-controls [data-widget-drag]:active {
  cursor: grabbing;
}

.widget-frame-controls [data-widget-resize] {
  position: absolute;
  width: 18px;
  height: 18px;
  inset: auto 7px 7px auto;
  cursor: nwse-resize;
}

.widget-frame-controls [data-widget-resize]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.is-layout-editing {
  background-image:
    linear-gradient(to right, rgba(var(--sv-brand-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--sv-brand-rgb), 0.025) 1px, transparent 1px);
  background-size:
    calc((100% - 11 * var(--dashboard-grid-gap)) / 12 + var(--dashboard-grid-gap)) 100%,
    100% 58px;
  border-radius: var(--sv-radius-panel);
}

.is-layout-editing > .hub-panel {
  outline: 1px dashed rgba(var(--sv-brand-rgb), 0.22);
  outline-offset: -2px;
  transition:
    grid-column-start 190ms var(--sv-ease),
    grid-row-start 190ms var(--sv-ease),
    grid-column-end 190ms var(--sv-ease),
    grid-row-end 190ms var(--sv-ease),
    opacity var(--sv-duration-fast) var(--sv-ease),
    box-shadow var(--sv-duration-fast) var(--sv-ease);
}

.is-layout-editing > .hub-panel.is-widget-armed {
  outline-color: rgba(var(--sv-brand-rgb), 0.48);
}

.is-layout-editing > .hub-panel.is-widget-moving {
  z-index: 5;
  opacity: 0.92;
  outline-color: var(--sv-color-brand);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(var(--sv-brand-rgb), 0.28);
  transition: none;
  transform: translate3d(var(--widget-drag-x, 0), var(--widget-drag-y, 0), 0);
  pointer-events: none;
}

.hub-panel.is-widget-partial::after {
  content: "PARTIAL";
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 11px;
  color: var(--sv-color-warning);
  font: 600 0.52rem/1 var(--sv-font-mono);
  letter-spacing: 0.08em;
}

.is-layout-editing .hub-panel.is-widget-partial::after {
  right: 76px;
}

.widget-library {
  position: fixed;
  z-index: 1200;
  top: 82px;
  right: 22px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--sv-color-border);
  border-radius: 18px;
  background: var(--sv-color-surface-subtle);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(18px);
}

.widget-library header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3px 3px 13px;
}

.widget-library header small {
  color: var(--sv-color-brand);
  font: 600 0.55rem/1 var(--sv-font-mono);
  letter-spacing: 0.12em;
}

.widget-library header h2 {
  margin: 5px 0 0;
  color: var(--sv-color-text);
  font-size: 0.86rem;
}

.widget-library header > button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 1rem;
}

.widget-library-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 9px 8px 9px 11px;
  border-top: 1px solid var(--sv-color-border-soft);
}

.widget-library-row strong,
.widget-library-row small {
  display: block;
}

.widget-library-group {
  display: flex;
  flex-direction: column;
}

.widget-library-group h3 {
  margin: 0;
  padding: 10px 11px 4px;
  color: rgba(212, 198, 120, 0.82);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-butler-metrics,
.drive-butler-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 10px;
}

.gallery-butler-metrics small,
.drive-butler-metrics small {
  display: block;
  color: var(--sv-color-text-faint);
  font-size: 9px;
}

.gallery-butler-metrics strong,
.drive-butler-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--sv-color-text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.gallery-butler-list,
.archive-butler-list,
.fitness-butler-list,
.knowledge-hub-list {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-butler-row,
.archive-butler-row,
.fitness-butler-row,
.knowledge-hub-row {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 10px;
  background: rgba(var(--sv-color-wash-rgb), 0.02);
  color: inherit;
  text-align: left;
  text-decoration: none;
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.gallery-butler-row strong,
.archive-butler-row strong,
.fitness-butler-row strong,
.knowledge-hub-row strong {
  display: block;
  color: var(--sv-color-text);
  font-size: 12px;
}

.gallery-butler-row small,
.archive-butler-row small,
.fitness-butler-row small,
.knowledge-hub-row small {
  display: block;
  margin-top: 4px;
  color: var(--sv-color-text-muted);
  font-size: 10px;
}

.drive-butler-copy {
  margin: 0 16px 12px;
  color: var(--sv-color-text-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Widget visual composer — constrained materials keep the full canvas coherent. */
.widget-appearance[hidden] {
  display: none !important;
}

.widget-appearance {
  position: fixed;
  z-index: 1210;
  top: 82px;
  right: 22px;
  width: min(408px, calc(100vw - 32px));
  max-height: calc(100dvh - 104px);
  overflow: auto;
  padding: 15px;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.14);
  border-radius: 20px;
  background: var(--sv-color-surface-elevated);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(22px);
}

.widget-appearance > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 3px 14px;
}

.widget-appearance > header small,
.appearance-recipes > div > small {
  color: var(--sv-color-brand);
  font: 600 0.54rem/1 var(--sv-font-mono);
  letter-spacing: 0.13em;
}

.widget-appearance > header h2 {
  margin: 5px 0 4px;
  color: var(--sv-color-text);
  font-size: 0.88rem;
}

.widget-appearance > header p {
  margin: 0;
  color: var(--sv-color-text-faint);
  font-size: 0.6rem;
}

.widget-appearance button {
  color: var(--sv-color-text-muted);
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 8px;
  background: rgba(var(--sv-color-wash-rgb), 0.025);
  cursor: pointer;
}

.widget-appearance > header > button {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  font-size: 1rem;
}

.appearance-recipes {
  padding: 13px 11px 11px;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.08);
  border-radius: 12px;
  background: rgba(var(--sv-color-wash-rgb), 0.018);
}

.appearance-recipes > div:first-child {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.appearance-recipes > div > strong {
  color: var(--sv-color-text);
  font-size: 0.68rem;
}

#appearanceRecipeList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.appearance-recipe {
  min-width: 0;
  min-height: 94px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px;
  text-align: left;
}

.appearance-recipe:hover,
.appearance-field button:hover,
.appearance-field button.active {
  color: var(--sv-color-text);
  border-color: rgba(var(--sv-brand-rgb), 0.28);
  background: rgba(var(--sv-brand-rgb), 0.055);
}

.appearance-recipe > span {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.appearance-recipe i,
.appearance-field-accent i {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgb(var(--swatch));
  box-shadow: 0 0 0 2px rgba(var(--swatch), 0.12);
}

.appearance-recipe strong,
.appearance-recipe small {
  display: block;
}

.appearance-recipe strong {
  color: var(--sv-color-text);
  font-size: 0.62rem;
}

.appearance-recipe small {
  margin-top: 5px;
  color: var(--sv-color-text-faint);
  font-size: 0.52rem;
  line-height: 1.35;
}

.appearance-controls {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.appearance-field {
  min-width: 0;
  margin: 0;
  padding: 12px 3px;
  border: 0;
  border-top: 1px solid rgba(var(--sv-color-ink-rgb), 0.07);
}

.appearance-field legend {
  padding: 0;
  color: var(--sv-color-text-faint);
  font-size: 0.58rem;
}

.appearance-field > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.appearance-field button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 0.59rem;
}

.appearance-field button.active {
  color: rgb(var(--widget-composer-accent, 215, 247, 42));
}

.widget-appearance > footer {
  display: flex;
  justify-content: flex-end;
  padding: 9px 3px 1px;
}

.widget-appearance > footer button {
  min-height: 31px;
  padding: 0 11px;
  font-size: 0.6rem;
}

.hub-dashboard-grid > .hub-panel {
  --widget-accent-rgb: var(--sv-widget-lime-rgb);
  position: relative;
  isolation: isolate;
  transition:
    border-color var(--sv-duration-fast) var(--sv-ease),
    background var(--sv-duration-fast) var(--sv-ease),
    box-shadow var(--sv-duration-fast) var(--sv-ease);
}

.hub-panel[data-widget-depth="flat"] { box-shadow: none; }
.hub-panel[data-widget-depth="raised"] { box-shadow: var(--sv-shadow-card); }

.hub-panel[data-widget-surface="quiet"] {
  background: var(--sv-color-surface-subtle);
}

.hub-panel[data-widget-surface="outline"] {
  border-color: rgba(var(--widget-accent-rgb), 0.22);
  background: var(--sv-color-surface);
}

.hub-panel[data-widget-surface="tinted"] {
  border-color: rgba(var(--widget-accent-rgb), 0.16);
  background:
    radial-gradient(circle at 92% 0%, rgba(var(--widget-accent-rgb), 0.105), transparent 36%),
    linear-gradient(145deg, rgba(var(--widget-accent-rgb), 0.035), var(--sv-color-canvas-raised) 58%);
}

.hub-panel[data-widget-surface="spotlight"] {
  border-color: rgba(var(--widget-accent-rgb), 0.3);
  background:
    linear-gradient(90deg, rgba(var(--widget-accent-rgb), 0.08), transparent 42%),
    var(--sv-color-surface-subtle);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(var(--widget-accent-rgb), 0.25);
}

.hub-panel[data-widget-surface="spotlight"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 2px;
  background: rgb(var(--widget-accent-rgb));
  box-shadow: 0 0 18px rgba(var(--widget-accent-rgb), 0.42);
}

.hub-panel[data-widget-accent] .panel-head h2 svg,
.hub-panel[data-widget-accent] .brief-row > b,
.hub-panel[data-widget-accent] .brief-row-meta > b,
.hub-panel[data-widget-accent] .inbox-tabs b,
.hub-panel[data-widget-accent] > footer a:hover {
  color: rgb(var(--widget-accent-rgb));
}

.hub-panel[data-widget-accent] .inbox-tabs button.active::after {
  background: rgb(var(--widget-accent-rgb));
}

.hub-panel[data-widget-header="minimal"] .panel-head p,
.hub-panel[data-widget-header="minimal"] .panel-head > span,
.hub-panel[data-widget-header="minimal"] .operations-head > b {
  display: none;
}

.hub-panel[data-widget-header="hidden"] .panel-head h2,
.hub-panel[data-widget-header="hidden"] .panel-head > div > p {
  display: none;
}

.hub-panel[data-widget-density="compact"] .panel-head { min-height: 40px; padding-inline: 14px; }
.hub-panel[data-widget-density="compact"] .brief-row,
.hub-panel[data-widget-density="compact"] .plan-row,
.hub-panel[data-widget-density="compact"] .timeline-row,
.hub-panel[data-widget-density="compact"] .hot-row,
.hub-panel[data-widget-density="compact"] .inbox-row { min-height: 42px; margin-inline: 13px; }
.hub-panel[data-widget-density="compact"] > footer { min-height: 32px; }

.hub-panel[data-widget-density="relaxed"] .panel-head { min-height: 57px; padding-inline: 22px; }
.hub-panel[data-widget-density="relaxed"] .brief-row,
.hub-panel[data-widget-density="relaxed"] .plan-row,
.hub-panel[data-widget-density="relaxed"] .timeline-row,
.hub-panel[data-widget-density="relaxed"] .hot-row,
.hub-panel[data-widget-density="relaxed"] .inbox-row { min-height: 58px; margin-inline: 21px; }
.hub-panel[data-widget-density="relaxed"] > footer { min-height: 43px; }

/* Content layout changes the card's internal composition, not just its shell. */
.latest-lut-panel[data-widget-content-layout="vertical"] .latest-lut-hero {
  flex: 0 0 auto;
  min-height: 0;
  grid-template-columns: 1fr 18px;
  grid-template-rows: auto auto;
  align-items: stretch;
}

.latest-lut-panel[data-widget-content-layout="vertical"] .latest-lut-visual {
  grid-column: 1 / -1;
  min-height: 0;
  aspect-ratio: var(--media-aspect, 2 / 3);
  background-color: var(--sv-color-canvas-raised);
}

.latest-lut-panel[data-widget-content-layout="vertical"] .latest-lut-visual img {
  object-fit: contain;
}

.latest-lut-panel[data-widget-content-layout="vertical"] .latest-lut-content {
  display: flex;
  flex-direction: column;
}

.latest-lut-panel[data-widget-content-layout="vertical"] .latest-lut-hero > span {
  padding: 12px 14px 14px;
}

.latest-lut-panel[data-widget-content-layout="vertical"] .latest-lut-hero > svg {
  align-self: center;
  margin-right: 9px;
}

.latest-lut-panel[data-widget-content-layout="horizontal"] .latest-lut-hero {
  grid-template-columns: minmax(116px, 38%) minmax(0, 1fr) 18px;
}

.hot-panel[data-widget-content-layout="vertical"] .hot-lead {
  grid-template-columns: minmax(0, 1fr) 48px;
  grid-template-rows: minmax(150px, 1fr) auto;
}

.hot-panel[data-widget-content-layout="vertical"] .hot-lead-visual {
  grid-column: 1 / -1;
  min-height: 150px;
}

.hot-panel[data-widget-content-layout="vertical"] .hot-lead-copy { min-height: 86px; }

.hot-panel[data-widget-content-layout="vertical"] .hot-lead-score {
  border-top: 1px solid rgba(var(--sv-color-ink-rgb), 0.08);
  border-left: 1px solid rgba(var(--sv-color-ink-rgb), 0.08);
}

.hot-panel[data-widget-content-layout="horizontal"] .hot-lead {
  grid-template-columns: minmax(116px, 38%) minmax(0, 1fr) 54px;
  grid-template-rows: 1fr;
}

.hub-panel[data-widget-content-layout="icon"] {
  display: grid;
  place-items: center;
  min-height: 0;
}

.hub-panel[data-widget-content-layout="icon"] > :not(.panel-head):not(.widget-frame-controls) {
  display: none !important;
}

.hub-panel[data-widget-content-layout="icon"] .panel-head {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 0;
  text-align: center;
}

.hub-panel[data-widget-content-layout="icon"] .panel-head > :not(h2) {
  display: none !important;
}

.hub-panel[data-widget-content-layout="icon"] .panel-head h2 {
  display: grid;
  place-items: center;
  gap: 11px;
  color: var(--sv-color-text);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.hub-panel[data-widget-content-layout="icon"] .panel-head h2 svg {
  width: 36px;
  height: 36px;
  color: rgb(var(--widget-accent-rgb));
  filter: drop-shadow(0 0 16px rgba(var(--widget-accent-rgb), 0.22));
}

.hub-panel[data-widget-content-layout="icon"] .panel-head h2 span {
  display: inline;
}

.hub-panel[data-widget-content-layout="icon"][data-widget-surface="spotlight"]::before {
  top: 18%;
  bottom: 18%;
}

.widget-frame-controls [data-widget-style] {
  right: 73px;
  color: rgb(var(--widget-accent-rgb));
  font-size: 0.74rem;
}

.is-layout-editing .hub-panel.is-widget-partial::after {
  right: 108px;
}

/* Social pulse is an evidence surface: compact values, explicit provenance, no decorative charting. */
.social-pulse-panel {
  display: flex;
  flex-direction: column;
}

.social-pulse-head p {
  margin: 4px 0 0 30px;
  color: var(--sv-color-text-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-pulse-head > span {
  color: var(--sv-color-text-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.social-pulse-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 16px;
  overflow: hidden;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 9px;
  background: var(--sv-color-border-soft);
}

.social-pulse-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-pulse-head-actions button,
.operator-account-actions button {
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.1);
  border-radius: 999px;
  background: rgba(var(--sv-color-wash-rgb), 0.025);
  color: var(--sv-color-text-muted);
  padding: 7px 11px;
  font: 700 9px var(--sv-font-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.social-pulse-head-actions button:hover,
.operator-account-actions button:hover {
  border-color: rgba(var(--sv-brand-rgb), 0.35);
  color: var(--sv-color-brand);
}

.operator-account-strip {
  margin: 0 22px 15px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(var(--sv-brand-rgb), 0.13);
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(var(--sv-brand-rgb), 0.045), rgba(var(--sv-color-wash-rgb), 0.012) 58%, transparent);
}

.operator-account-strip.is-empty {
  border-style: dashed;
  border-color: var(--sv-color-border-soft);
  background: rgba(var(--sv-color-wash-rgb), 0.012);
}

.operator-account-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  border-radius: 11px;
  background: var(--sv-color-platform-red);
  color: var(--sv-color-on-platform-red);
  box-shadow: 0 9px 24px rgba(215, 53, 47, 0.18);
  text-align: center;
  line-height: 0.85;
}

.operator-account-mark span { font: 700 7px var(--sv-font-mono); letter-spacing: 0.18em; }
.operator-account-mark b { font: 900 11px var(--sv-font-mono); letter-spacing: -0.04em; }
.operator-account-copy { min-width: 0; display: grid; gap: 3px; }
.operator-account-copy small { color: var(--sv-color-text-faint); font: 700 8px var(--sv-font-mono); letter-spacing: 0.13em; text-transform: uppercase; }
.operator-account-copy strong { overflow: hidden; color: var(--sv-color-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.operator-account-copy span { color: var(--sv-color-text-muted); font-size: 9px; }
.operator-account-actions { display: flex; gap: 6px; }
.operator-account-actions button.is-primary { border-color: rgba(var(--sv-brand-rgb), 0.22); background: rgba(var(--sv-brand-rgb), 0.09); color: var(--sv-color-brand); }
.operator-account-actions button:disabled { opacity: 0.38; cursor: not-allowed; }

.operator-account-dialog {
  width: min(620px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.12);
  border-radius: 20px;
  background: var(--sv-color-surface);
  color: var(--sv-color-text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
}

.operator-account-dialog::backdrop { background: rgba(3, 4, 3, 0.8); backdrop-filter: blur(10px); }
.operator-account-dialog form { padding: 24px; display: grid; gap: 15px; }
.operator-account-dialog header { display: flex; justify-content: space-between; align-items: start; }
.operator-account-dialog header p { margin: 0 0 6px; color: var(--sv-color-brand); font: 700 8px var(--sv-font-mono); letter-spacing: 0.15em; }
.operator-account-dialog h2 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
.operator-account-dialog header button { border: 0; background: transparent; color: var(--sv-color-text-muted); font-size: 25px; cursor: pointer; }
.operator-account-boundary { padding: 13px; display: grid; grid-template-columns: 26px 1fr 26px 1fr; gap: 10px; border: 1px solid rgba(var(--sv-color-ink-rgb), .07); border-radius: 13px; background: rgba(var(--sv-color-wash-rgb), .018); }
.operator-account-boundary > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(var(--sv-brand-rgb), .1); color: var(--sv-color-brand); font: 800 8px var(--sv-font-mono); }
.operator-account-boundary div { display: grid; gap: 3px; }
.operator-account-boundary strong { font-size: 10px; }
.operator-account-boundary small { color: var(--sv-color-text-faint); font-size: 8px; line-height: 1.5; }
.operator-account-dialog label { display: grid; gap: 7px; }
.operator-account-dialog label > span { color: var(--sv-color-text-muted); font-size: 9px; }
.operator-account-dialog input { width: 100%; box-sizing: border-box; border: 1px solid rgba(var(--sv-color-ink-rgb), .09); border-radius: 11px; background: var(--sv-color-surface-elevated); color: var(--sv-color-text); padding: 11px 12px; outline: none; }
.operator-account-dialog input:focus { border-color: rgba(var(--sv-brand-rgb), .4); box-shadow: 0 0 0 3px rgba(var(--sv-brand-rgb), .055); }
.operator-account-dialog label small { color: var(--sv-color-text-faint); font-size: 8px; }
.operator-account-form-status { min-height: 16px; margin: 0; color: var(--sv-color-text-muted); font-size: 9px; }
.operator-account-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.operator-account-dialog footer button { border: 1px solid rgba(var(--sv-color-ink-rgb), .1); border-radius: 10px; padding: 9px 13px; background: transparent; color: var(--sv-color-text-muted); font: 700 9px var(--sv-font-mono); cursor: pointer; }
.operator-account-dialog footer button.is-primary { border-color: var(--sv-color-brand); background: var(--sv-color-brand); color: var(--sv-color-on-brand); }
.operator-account-dialog footer button:disabled { opacity: .45; cursor: wait; }

.hub-dashboard-grid > .social-pulse-panel > footer {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 760px) {
  .social-pulse-head-actions > span { display: none; }
  .operator-account-strip { grid-template-columns: 40px minmax(0, 1fr); }
  .operator-account-actions { grid-column: 1 / -1; }
  .operator-account-boundary { grid-template-columns: 26px 1fr; }
  .operator-account-dialog footer { flex-wrap: wrap; }
}

.social-pulse-metrics > div {
  min-width: 0;
  padding: 11px 13px 10px;
  background: var(--sv-color-surface);
}

.social-pulse-metrics small,
.social-pulse-metrics span {
  display: block;
  color: var(--sv-color-text-faint);
  font-size: 10px;
}

.social-pulse-metrics strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--sv-color-text);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.social-pulse-metrics .is-positive {
  color: var(--sv-color-success);
}

.social-pulse-evidence {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 16px 12px;
}

.social-pulse-evidence > p {
  grid-column: 1 / -1;
  align-self: center;
  margin: 0;
  color: var(--sv-color-text-faint);
  font-size: 11px;
}

.social-pulse-evidence > a {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(var(--sv-color-wash-rgb), 0.018);
}

.social-pulse-evidence > a:hover {
  border-color: rgba(var(--sv-brand-rgb), 0.28);
  background: rgba(var(--sv-brand-rgb), 0.045);
}

.social-pulse-evidence > a > b {
  color: var(--sv-color-text-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.social-pulse-evidence > a span,
.social-pulse-evidence > a strong,
.social-pulse-evidence > a small {
  min-width: 0;
  display: block;
}

.social-pulse-evidence > a strong {
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 11px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-pulse-evidence > a small {
  margin-top: 3px;
  color: var(--sv-color-text-faint);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.social-pulse-evidence > a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

@media (max-width: 900px) {
  .social-pulse-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-pulse-evidence { grid-template-columns: 1fr; }
}

/* Butler-driven console v1 — a calm editorial summary above the existing registry. */
.hub-main {
  gap: 12px;
  padding: 20px 28px 32px;
}

.hub-topbar {
  min-height: 42px;
}

.workspace-heading {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 18px;
}

.workspace-heading h1 {
  margin: 0;
  color: var(--sv-color-text);
  font-size: clamp(20px, 1.55vw, 28px);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.workspace-heading time {
  color: var(--sv-color-text-muted);
  font-size: 12px;
}

.workspace-heading button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--sv-color-text-muted);
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 9px;
  background: rgba(var(--sv-color-wash-rgb), 0.025);
  cursor: pointer;
}

.workspace-heading button svg {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
}

.workspace-menu[hidden] { display: none !important; }

.workspace-menu {
  position: absolute;
  z-index: 1250;
  top: 42px;
  right: 0;
  width: 250px;
  display: grid;
  padding: 7px;
  border: 1px solid var(--sv-color-border);
  border-radius: 13px;
  background: var(--sv-color-surface-subtle);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
}

.workspace-menu > a,
.workspace-menu > button {
  min-height: 56px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 4px;
  padding: 8px 11px;
  color: var(--sv-color-text-muted);
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.workspace-menu > :hover,
.workspace-menu > .is-active { background: rgba(var(--sv-color-wash-rgb), 0.04); }
.workspace-menu span { color: var(--sv-color-text); font-size: 12px; }
.workspace-menu small { color: var(--sv-color-text-faint); font-size: 10px; }
.workspace-menu > .is-active span::before { content: "•"; margin-right: 8px; color: var(--sv-color-brand); }

.hub-topbar-actions {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 8px;
}

.hub-topbar-actions > a,
.hub-topbar-actions > button {
  min-height: 38px;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 9px;
  background: rgba(var(--sv-color-wash-rgb), 0.025);
}

.hub-topbar-actions .manage-display-button,
.hub-topbar-actions .add-butler-card-button,
.hub-topbar-actions .theme-mode-button {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}

.theme-mode-button svg {
  width: 16px;
  height: 16px;
}

.theme-mode-button svg path {
  fill: currentColor;
  stroke: none;
}

.manage-display-button span,
.add-butler-card-button span,
.theme-mode-button span {
  white-space: nowrap;
  font-size: 12px;
}

.hub-topbar-actions .add-butler-card-button {
  color: var(--sv-color-brand);
  border-color: rgba(var(--sv-brand-rgb), 0.42);
  background: rgba(var(--sv-brand-rgb), 0.045);
}

.butler-overview {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(380px, 1.15fr) minmax(480px, 0.9fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: var(--sv-radius-panel);
  background:
    linear-gradient(120deg, rgba(var(--sv-color-wash-rgb), 0.018), transparent 44%),
    var(--sv-color-surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.butler-overview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 30px;
}

.butler-overview-copy p,
.butler-overview-copy h2,
.butler-overview-copy > span {
  margin: 0;
}

.butler-overview-copy p {
  margin-bottom: 7px;
  color: var(--sv-color-text-muted);
  font-size: 16px;
}

.butler-overview-copy h2 {
  color: var(--sv-color-text);
  font-size: clamp(25px, 2.15vw, 38px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.butler-overview-copy h2 strong {
  color: var(--sv-color-brand);
  font-weight: inherit;
}

.butler-overview-copy > span {
  margin-top: 10px;
  color: var(--sv-color-text-muted);
  font-size: 13px;
}

.butler-signal-list {
  display: grid;
  align-content: center;
  padding: 16px 26px;
  border-left: 1px solid var(--sv-color-border-soft);
}

.butler-signal {
  min-width: 0;
  min-height: 43px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 11px;
  color: inherit;
  border-bottom: 1px solid var(--sv-color-border-soft);
}

.butler-signal:last-child { border-bottom: 0; }
.butler-signal > i { width: 7px; height: 7px; border-radius: 50%; background: var(--sv-color-brand); }
.butler-signal.is-alert > i { background: #ff5f4a; }
.butler-signal.is-warn > i { background: #e0aa34; }
.butler-signal.is-muted > i { background: rgba(var(--sv-color-ink-rgb), 0.28); }
.butler-signal > span { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.butler-signal b { color: var(--sv-color-text); font-size: 12px; font-weight: 620; }
.butler-signal small { overflow: hidden; color: var(--sv-color-text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.butler-signal time { color: var(--sv-color-text-faint); font-size: 10px; white-space: nowrap; }
.butler-signal svg { width: 13px; height: 13px; color: var(--sv-color-text-faint); }

.butler-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.butler-kpi {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 11px 17px;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: var(--sv-radius-panel);
  background: var(--sv-color-surface);
  transition: border-color var(--sv-duration-fast) var(--sv-ease), transform var(--sv-duration-fast) var(--sv-ease);
}

.butler-kpi:hover { border-color: rgba(var(--sv-brand-rgb), 0.34); transform: translateY(-1px); }
.butler-kpi > svg { width: 22px; height: 22px; color: var(--sv-color-brand); }
.butler-kpi > span { min-width: 0; display: block; }
.butler-kpi small { display: block; color: var(--sv-color-text-muted); font-size: 10px; }
.butler-kpi strong { display: block; margin-top: 4px; color: var(--sv-color-text); font-size: 22px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.butler-kpi em { color: var(--sv-color-text-faint); font-size: 10px; font-style: normal; white-space: nowrap; }
a.butler-kpi { color: inherit; text-decoration: none; }
button.butler-kpi {
  appearance: none;
  width: 100%;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--sv-color-surface);
}
.is-dashboard-editing .butler-kpi {
  border-style: dashed;
  border-color: rgba(var(--sv-brand-rgb), 0.32);
}
.butler-kpi--editing {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
}
.butler-kpi--editing > svg { margin-top: 2px; }
.butler-kpi--editing > em { align-self: center; }
.butler-kpi-picker-wrap {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.butler-kpi-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(var(--sv-brand-rgb), 0.34);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--sv-color-text);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.butler-kpi-picker-trigger:hover {
  border-color: rgba(var(--sv-brand-rgb), 0.55);
  background: rgba(var(--sv-brand-rgb), 0.08);
}
.butler-kpi-picker-trigger svg {
  width: 14px;
  height: 14px;
  color: var(--sv-color-brand);
  transform: rotate(90deg);
  flex-shrink: 0;
}
.butler-kpi-picker {
  position: fixed;
  z-index: 1300;
  width: min(320px, calc(100vw - 20px));
  max-height: min(420px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--sv-brand-rgb), 0.28);
  border-radius: 14px;
  background: var(--sv-color-surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.butler-kpi-picker-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--sv-color-border-soft);
}
.butler-kpi-picker-head strong {
  display: block;
  color: var(--sv-color-text);
  font-size: 12px;
  font-weight: 620;
}
.butler-kpi-picker-head small {
  display: block;
  margin-top: 4px;
  color: var(--sv-color-text-faint);
  font-size: 10px;
  line-height: 1.45;
}
.butler-kpi-picker-body {
  overflow: auto;
  padding: 8px 10px 10px;
}
.butler-kpi-picker-group + .butler-kpi-picker-group {
  margin-top: 10px;
}
.butler-kpi-picker-group h4 {
  margin: 0 0 6px;
  padding: 0 4px;
  color: rgba(212, 198, 120, 0.82);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.butler-kpi-picker-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.butler-kpi-picker-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 10px;
  background: rgba(var(--sv-color-wash-rgb), 0.02);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.butler-kpi-picker-option:hover:not(:disabled) {
  border-color: rgba(var(--sv-brand-rgb), 0.34);
  background: rgba(var(--sv-brand-rgb), 0.08);
}
.butler-kpi-picker-option.is-active {
  border-color: rgba(var(--sv-brand-rgb), 0.5);
  background: rgba(var(--sv-brand-rgb), 0.12);
}
.butler-kpi-picker-option.is-disabled,
.butler-kpi-picker-option:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.butler-kpi-picker-option-icon svg {
  width: 18px;
  height: 18px;
  color: var(--sv-color-brand);
}
.butler-kpi-picker-option-copy b {
  display: block;
  color: var(--sv-color-text);
  font-size: 12px;
  font-weight: 620;
}
.butler-kpi-picker-option-copy small {
  display: block;
  margin-top: 2px;
  color: var(--sv-color-text-muted);
  font-size: 10px;
}
.butler-add-card-tile[hidden] { display: none !important; }

.hub-dashboard-grid {
  grid-auto-rows: 42px;
}

.panel-head > div > p,
.inbox-head > div > p {
  margin: 4px 0 0 29px;
  color: var(--sv-color-text-faint);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.brief-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.brief-panel > footer .panel-footer-action {
  width: auto;
  color: var(--sv-color-text-muted);
  font-size: 10px;
}

.butler-add-card-tile {
  min-height: 94px;
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 12px;
  margin-top: 1px;
  color: var(--sv-color-text-muted);
  border: 1px dashed rgba(var(--sv-color-ink-rgb), 0.13);
  border-radius: var(--sv-radius-panel);
  background: rgba(var(--sv-color-wash-rgb), 0.012);
  cursor: pointer;
}

.butler-add-card-tile i {
  grid-row: 1 / 3;
  align-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sv-color-border);
  border-radius: 50%;
  color: var(--sv-color-brand);
  font-style: normal;
  font-size: 18px;
}

.butler-add-card-tile strong { align-self: end; color: var(--sv-color-text); font-size: 12px; font-weight: 620; text-align: left; }
.butler-add-card-tile span { align-self: start; color: var(--sv-color-text-faint); font-size: 10px; text-align: left; }
.butler-add-card-tile:hover { border-color: rgba(var(--sv-brand-rgb), 0.35); background: rgba(var(--sv-brand-rgb), 0.025); }

.widget-library header p {
  margin: 5px 0 0;
  color: var(--sv-color-text-faint);
  font-size: 10px;
}

.widget-library > footer {
  display: grid;
  gap: 5px;
  padding: 12px 8px 3px;
  border-top: 1px solid var(--sv-color-border-soft);
}

.widget-library > footer a { color: var(--sv-color-brand); font-size: 11px; font-weight: 620; }
.widget-library > footer span { color: var(--sv-color-text-faint); font-size: 9px; line-height: 1.5; }

@media (max-width: 1280px) {
  .butler-overview { grid-template-columns: 1fr; }
  .butler-signal-list { border-top: 1px solid var(--sv-color-border-soft); border-left: 0; }
  .hub-topbar-actions .manage-display-button span { display: none; }
}

/* Operations pair — one diagnostic ledger, one image-led asset card. */
.project-health-panel,
.latest-lut-panel {
  display: flex;
  flex-direction: column;
}

.operations-head p {
  margin: 4px 0 0 30px;
  color: var(--sv-color-text-faint);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.operations-head > b {
  padding: 5px 8px;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 999px;
  color: var(--sv-color-text-faint);
  font-size: 9px;
  font-weight: 560;
  letter-spacing: 0.06em;
}

.operations-head > b[data-status="healthy"],
.operations-head > b[data-status="running"] {
  border-color: rgba(111, 178, 139, 0.25);
  color: var(--sv-color-success);
  background: rgba(111, 178, 139, 0.07);
}

.operations-head > b[data-status="attention"],
.operations-head > b[data-status="critical"] {
  border-color: rgba(208, 142, 101, 0.28);
  color: var(--sv-color-warning);
  background: rgba(208, 142, 101, 0.07);
}

.project-health-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 16px 8px;
  border-block: 1px solid var(--sv-color-border-soft);
}

.project-health-metrics > div {
  padding: 9px 10px;
  border-right: 1px solid var(--sv-color-border-soft);
}

.project-health-metrics > div:last-child { border-right: 0; }

.project-health-metrics small,
.project-health-metrics strong { display: block; }

.project-health-metrics small {
  color: var(--sv-color-text-faint);
  font-size: 9px;
}

.project-health-metrics strong {
  margin-top: 3px;
  color: var(--sv-color-text);
  font-size: 16px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.project-health-list {
  min-height: 0;
  flex: 1;
  padding: 0 16px 9px;
  overflow: auto;
}

.project-health-list > p,
.latest-lut-content > p {
  margin: 13px 0;
  color: var(--sv-color-text-faint);
  font-size: 11px;
}

.creation-latest {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(120px, 42%) minmax(0, 1fr) 18px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: rgba(var(--sv-color-wash-rgb), 0.018);
}

.creation-latest > img { width: 100%; height: 100%; min-height: 118px; object-fit: cover; background: var(--sv-color-surface-subtle); }
.creation-latest > span { min-width: 0; align-self: center; padding: 14px; }
.creation-latest small, .creation-latest strong, .creation-latest em { display: block; min-width: 0; }
.creation-latest small { color: var(--widget-accent); font: 700 8px/1 var(--sv-font-mono); letter-spacing: .12em; }
.creation-latest strong { margin-top: 10px; overflow: hidden; color: var(--sv-color-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.creation-latest em { margin-top: 7px; color: var(--sv-color-text-faint); font-size: 9px; font-style: normal; }
.creation-latest > svg { width: 14px; height: 14px; align-self: center; fill: none; stroke: var(--sv-color-text-faint); stroke-width: 1.6; }

.project-health-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(var(--sv-color-wash-rgb), 0.045);
}

.project-health-row > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #718095;
  box-shadow: 0 0 0 3px rgba(113, 128, 149, 0.08);
}

.project-health-row > i[data-state="active"] { background: #79a7c7; }
.project-health-row > i[data-state="blocked"] { background: #ce8c68; }
.project-health-row > i[data-state="done"] { background: #76ad8d; }

.project-health-row span,
.project-health-row strong,
.project-health-row small { min-width: 0; display: block; }

.project-health-row strong {
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-health-row small,
.project-health-row > b {
  color: var(--sv-color-text-faint);
  font-size: 9px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.project-health-row small { margin-top: 2px; }

.project-health-panel footer,
.latest-lut-panel footer {
  justify-content: space-between;
}

.project-health-panel footer > span,
.latest-lut-panel footer > span {
  color: var(--sv-color-text-faint);
  font-size: 9px;
}

.latest-lut-content {
  min-height: 0;
  flex: 1;
  padding: 0 16px 10px;
}

.latest-lut-hero {
  min-height: 105px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: rgba(var(--sv-color-wash-rgb), 0.018);
}

.latest-lut-hero:hover {
  border-color: rgba(var(--sv-brand-rgb), 0.28);
  background: rgba(var(--sv-brand-rgb), 0.04);
}

.latest-lut-visual {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 30%, rgba(var(--sv-color-wash-rgb), .04) 30% 31%, transparent 31% 68%, rgba(var(--sv-color-wash-rgb), .035) 68% 69%, transparent 69%),
    linear-gradient(145deg, var(--sv-color-surface-hover), var(--sv-color-surface-elevated) 46%, var(--sv-color-surface-hover));
}

.latest-lut-visual::after {
  content: "33³";
  position: absolute;
  right: 7px;
  bottom: 6px;
  color: var(--sv-color-text-muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.latest-lut-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.latest-lut-hero > span,
.latest-lut-hero small,
.latest-lut-hero strong,
.latest-lut-hero em { min-width: 0; display: block; }

.latest-lut-hero small {
  color: var(--sv-color-text-faint);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.latest-lut-hero strong {
  margin: 7px 0 8px;
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 14px;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-lut-hero em {
  color: var(--sv-color-text-faint);
  font-size: 9px;
  font-style: normal;
}

.latest-lut-hero > svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.latest-lut-rail {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.latest-lut-rail a {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px solid var(--sv-color-border-soft);
  border-radius: 7px;
  color: var(--sv-color-text-muted);
  font-size: 9px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .project-health-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-lut-hero { grid-template-columns: 96px minmax(0, 1fr) 16px; }
}

.widget-library-row strong {
  color: var(--sv-color-text);
  font-size: 0.7rem;
}

.widget-library-row small {
  margin-top: 4px;
  color: var(--sv-color-text-faint);
  font-size: 0.58rem;
}

@media (max-width: 1180px) {
  .hub-dashboard-grid {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .hub-dashboard-grid > .hub-panel {
    min-height: 310px;
  }

  .hub-dashboard-grid > .approval-panel {
    min-height: 110px;
  }

  #editDashboard {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-layout-editing > .hub-panel {
    transition: none;
  }
}

/* Butler console v3 — quieter charcoal surfaces, structure carried by space instead of rules. */
.butler-overview,
.butler-kpi,
.hub-dashboard-grid > .hub-panel {
  border-color: var(--sv-color-border-soft);
  background:
    linear-gradient(145deg, rgba(var(--sv-color-wash-rgb), 0.022), transparent 48%),
    var(--sv-color-feature-surface);
  box-shadow: var(--sv-shadow-card);
}

.hub-dashboard-grid {
  gap: 12px;
}

.hub-dashboard-grid > .hub-panel .panel-head {
  min-height: 54px;
  padding-inline: 22px;
  border-bottom: 0;
}

.hub-dashboard-grid > .hub-panel > footer {
  min-height: 38px;
  padding-inline: 22px;
  border-top: 0;
  background: transparent;
}

.hub-dashboard-grid > .inbox-panel > footer {
  display: flex;
  justify-content: space-between;
}

.inbox-mark-all-read {
  color: var(--sv-color-brand);
  font-size: 10px;
}

.inbox-mark-all-read:disabled {
  opacity: 0.5;
  cursor: wait;
}

.social-pulse-metrics {
  gap: 18px;
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.social-pulse-metrics > div {
  padding: 12px 0 10px;
  background: transparent;
}

.social-pulse-metrics > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(var(--sv-color-ink-rgb), 0.055);
}

.social-pulse-evidence {
  gap: 7px;
  padding: 10px 22px 14px;
}

.social-pulse-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.75fr);
  gap: 22px;
  padding: 4px 22px 10px;
}

.social-trend {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.social-trend > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.social-trend > header strong {
  color: var(--sv-color-text-muted);
  font-size: 10px;
  font-weight: 580;
}

.social-trend > header span {
  color: var(--sv-color-text-faint);
  font-size: 9px;
}

.social-trend-chart {
  position: relative;
  min-height: 135px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(rgba(var(--sv-color-ink-rgb), 0.045) 1px, transparent 1px),
    rgba(var(--sv-color-wash-rgb), 0.012);
  background-size: 100% 33.333%;
}

.social-trend-svg {
  position: absolute;
  inset: 0 0 22px;
  width: 100%;
  height: calc(100% - 22px);
  overflow: visible;
  color: var(--sv-color-brand);
}

.social-trend-area {
  fill: url(#socialTrendFill);
  stroke: none;
}

.social-trend-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.social-trend-svg circle {
  fill: var(--sv-color-brand);
  stroke: #151515;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.social-trend-labels {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  display: flex;
  justify-content: space-between;
}

.social-trend-labels time {
  color: var(--sv-color-text-faint);
  font-size: 8px;
}

.social-trend-empty {
  height: 100%;
  min-height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--sv-color-text-faint);
}

.social-trend-empty > svg { width: 25px; height: 25px; color: rgba(var(--sv-brand-rgb), 0.48); }
.social-trend-empty strong,
.social-trend-empty small { display: block; }
.social-trend-empty strong { color: var(--sv-color-text-muted); font-size: 11px; font-weight: 600; }
.social-trend-empty small { margin-top: 4px; color: var(--sv-color-text-faint); font-size: 9px; }

.social-pulse-body .social-pulse-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
}

.social-pulse-body .social-pulse-metrics > div {
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: rgba(var(--sv-color-wash-rgb), 0.022);
}

.butler-kpi:has(.butler-kpi-trend) {
  grid-template-columns: 40px minmax(86px, 0.75fr) minmax(72px, 0.45fr) auto;
}

.butler-kpi-trend {
  min-width: 72px;
  height: 32px;
  opacity: 0.22;
}

.butler-kpi-trend.has-trend { opacity: 1; }
.butler-kpi-trend svg { width: 100%; height: 100%; overflow: visible; }
.butler-kpi-trend path { fill: none; stroke: var(--sv-color-brand); stroke-width: 2; vector-effect: non-scaling-stroke; }

.social-pulse-evidence > a {
  border: 0;
  border-radius: 9px;
  background: rgba(var(--sv-color-wash-rgb), 0.028);
}

.brief-list,
.plan-list,
.inbox-list {
  padding-inline: 14px;
}

.brief-row,
.plan-row,
.inbox-row,
button.inbox-row,
.inbox-comment {
  border-bottom: 0;
}

.brief-row {
  min-height: 50px;
  margin: 3px 0;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(var(--sv-color-wash-rgb), 0.022);
}

.brief-row > b,
.brief-row-meta > b {
  border: 0;
  border-radius: 50%;
  background: rgba(var(--sv-brand-rgb), 0.09);
}

.plan-row {
  min-height: 49px;
  margin: 2px 0;
  padding-inline: 10px;
  border-radius: 9px;
}

.plan-row > span {
  border: 0;
  background: rgba(224, 170, 52, 0.08);
}

button.inbox-row,
.inbox-row {
  width: 100%;
  min-height: 48px;
  margin: 2px 0;
  padding-inline: 10px;
  border-radius: 9px;
}

button.inbox-row:hover,
.plan-row:hover,
.brief-row:hover {
  background: rgba(var(--sv-color-wash-rgb), 0.035);
}

.inbox-row.is-unread {
  background: rgba(var(--sv-brand-rgb), 0.052);
}

.butler-signal {
  border-bottom-color: var(--sv-color-border-soft);
}

.butler-kpi {
  min-height: 78px;
  padding-inline: 20px;
}

.butler-kpi > svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.13);
  border-radius: 11px;
}

.butler-add-card-tile {
  grid-column: 9 / span 4;
  grid-row: 7 / span 5;
  min-height: 0;
  margin: 0;
  border-color: var(--sv-color-border-soft);
  background: rgba(var(--sv-color-wash-rgb), 0.012);
}

body:not(.is-dashboard-editing) .hub-dashboard-grid > .hub-panel {
  outline: 0;
}

@media (max-width: 1180px) {
  .butler-add-card-tile {
    grid-column: auto;
    grid-row: auto;
    min-height: 160px;
  }
}

@media (max-width: 1380px) {
  .social-pulse-body { grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: 14px; }
  .butler-kpi-trend { display: none; }
  .butler-kpi:has(.butler-kpi-trend) { grid-template-columns: 40px minmax(0, 1fr) auto; }
}

/* Topbar inbox and account identity */
.workspace-notification-wrap,
.personal-hub-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.workspace-notification-button {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.09);
  border-radius: 9px;
  background: rgba(var(--sv-color-wash-rgb), 0.018);
  color: var(--sv-color-text);
  cursor: pointer;
}

.workspace-notification-button:hover,
.workspace-notification-button[aria-expanded="true"] {
  border-color: rgba(var(--sv-brand-rgb), 0.34);
  background: rgba(var(--sv-brand-rgb), 0.075);
  color: var(--sv-color-brand);
}

.workspace-notification-button > svg {
  width: 17px;
  height: 17px;
}

.workspace-notification-button > b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #080909;
  border-radius: 999px;
  background: var(--sv-color-brand);
  color: var(--sv-color-on-brand);
  font: 800 9px/1 var(--sv-font-mono, monospace);
}

.workspace-notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 250;
  width: min(390px, calc(100vw - 88px));
  overflow: hidden;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(var(--sv-brand-rgb), 0.045), transparent 38%),
    var(--sv-color-surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), inset 0 1px rgba(var(--sv-color-wash-rgb), 0.035);
  color: var(--sv-color-text, #f5f2ea);
}

.workspace-notification-panel[hidden] {
  display: none;
}

.workspace-notification-panel > header {
  min-height: 72px;
  padding: 16px 18px 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(var(--sv-color-ink-rgb), 0.075);
}

.workspace-notification-panel > header p {
  margin: 0 0 4px;
  color: var(--sv-color-brand);
  font: 700 9px/1.2 var(--sv-font-mono, monospace);
  letter-spacing: 0.16em;
}

.workspace-notification-panel > header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.workspace-notification-panel > header button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(var(--sv-color-ink-rgb), 0.1);
  border-radius: 8px;
  background: rgba(var(--sv-color-wash-rgb), 0.025);
  color: var(--sv-color-text-muted);
  cursor: pointer;
}

.workspace-notification-summary {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(var(--sv-color-ink-rgb), 0.065);
  color: var(--sv-color-text-muted);
  font-size: 11px;
}

.workspace-notification-summary i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sv-color-brand);
  box-shadow: 0 0 12px rgba(var(--sv-brand-rgb), 0.6);
}

.workspace-notification-list {
  max-height: min(470px, calc(100vh - 220px));
  overflow: auto;
  padding: 7px;
}

.workspace-notification-item {
  width: 100%;
  min-height: 63px;
  padding: 10px 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid rgba(var(--sv-color-ink-rgb), 0.055);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.workspace-notification-item:hover {
  background: rgba(var(--sv-color-wash-rgb), 0.035);
}

.workspace-notification-item > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--sv-brand-rgb), 0.2);
  border-radius: 9px;
  background: rgba(var(--sv-brand-rgb), 0.065);
  color: var(--sv-color-brand);
}

.workspace-notification-item.is-mail > i {
  border-color: rgba(83, 208, 220, 0.22);
  background: rgba(83, 208, 220, 0.07);
  color: var(--sv-color-info);
}

.workspace-notification-item.is-announce > i {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.1);
  color: var(--sv-color-warning);
}

.workspace-notification-item.is-announce-read {
  opacity: 0.72;
}

.workspace-notification-item.is-announce-read > i {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: var(--sv-color-text-muted);
}

.workspace-notification-item.is-warning > i {
  border-color: rgba(226, 168, 74, 0.25);
  background: rgba(226, 168, 74, 0.075);
  color: var(--sv-color-warning);
}

.workspace-notification-item > i svg {
  width: 15px;
  height: 15px;
}

.workspace-notification-item > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-notification-item strong {
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-notification-item small,
.workspace-notification-item time {
  color: var(--sv-color-text-muted);
  font-size: 10px;
}

.workspace-notification-item time {
  white-space: nowrap;
}

.workspace-notification-empty {
  min-height: 150px;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 12px;
}

.workspace-notification-empty > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(var(--sv-brand-rgb), 0.2);
  border-radius: 50%;
  color: var(--sv-color-brand);
}

.workspace-notification-empty div {
  display: grid;
  gap: 5px;
}

.workspace-notification-empty strong {
  font-size: 13px;
}

.workspace-notification-empty span {
  color: var(--sv-color-text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.workspace-notification-panel > footer {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(var(--sv-color-ink-rgb), 0.075);
  background: rgba(var(--sv-color-wash-rgb), 0.014);
}

.workspace-notification-panel > footer a {
  color: var(--sv-color-text-muted);
  font-size: 11px;
  text-decoration: none;
}

.workspace-notification-panel > footer a:hover {
  color: var(--sv-color-brand);
}

.personal-hub-avatar .app-top-avatar-wrap .sv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: none;
}

.personal-hub-avatar .sv-avatar:hover,
.personal-hub-avatar .sv-avatar[aria-expanded="true"] {
  border-color: rgba(var(--sv-brand-rgb), 0.38);
  box-shadow: 0 0 0 2px rgba(var(--sv-brand-rgb), 0.07);
}

.plugin-widget-panel .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.plugin-widget-mark { color: var(--pm-accent, var(--sv-color-brand)); font-size: 1rem; }
.plugin-widget-value {
  margin: auto 0 0;
  padding: 14px 20px 2px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  color: var(--pm-accent, inherit);
  font-family: var(--pm-font-display, inherit);
}
.plugin-widget-note { margin: 0; padding: 4px 20px 18px; color: var(--sv-color-text-muted); font-size: 0.76rem; line-height: 1.5; }
.plugin-widget-panel[data-plugin-theme] {
  border-radius: var(--pm-radius, inherit);
  box-shadow: var(--pm-shadow, none);
}

@media (max-width: 820px) {
  .workspace-notification-panel {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 76px;
    width: auto;
  }
}
