:root {
/* 文件职责：网站全局样式：负责布局、组件和主题视觉；优先复用现有类名，避免页面间样式互相污染。 */
/* 维护提示：只为跨页面复用的视觉规则写说明，单个属性不需要注释。 */
  --bg: #f5f9fb;
  --panel: #ffffff;
  --panel-soft: #f6f9fd;
  --ink: #1f2732;
  --muted: #7c8796;
  --line: #e8eef6;
  --line-strong: #d6dfec;
  --sidebar: #222934;
  --sidebar-line: #303948;
  --accent: #111827;
  --accent-dark: #05070a;
  --blue: #111827;
  --amber: #f6a536;
  --red: #df4545;
  --purple: #70549c;
  --shadow: 0 14px 36px rgba(38, 76, 135, 0.08);
  /* 列表页浮层层级：表格行 < 工具面板/视图菜单 < 分组菜单 < 表头字段菜单 < 原生 dialog。 */
  --z-list-view-menu: 900;
  --z-list-tool-popover: 1000;
  --z-list-group-row-open: 1490;
  --z-list-group-menu: 1500;
  --z-list-header-menu: 1600;
  /* 主导航二级目录必须高于页面内目录、表头菜单等业务浮层。 */
  --z-app-sidebar: 5000;
  --z-app-submenu: 5100;
  --app-topbar-height: 42px;
}

.market-competitor-table {
  min-width: 1880px;
}

.market-competitor-logo {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

/* Top100 复用多维表模板的工具栏和表格能力，页面只保留顶部筛选，不再使用左侧日期栏。 */
.market-top100-page {
  display: block;
  gap: 0;
  margin: 0;
  min-width: 0;
  height: 100%;
  min-height: 0;
  background: #ffffff;
}

.market-top100-layout {
  display: grid;
  grid-template-columns: var(--market-top100-directory-width, 224px) 8px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  min-height: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}

.market-top100-layout.collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.market-top100-layout.collapsed .market-top100-content {
  border-radius: 0;
}

.market-top100-layout.collapsed .market-top100-directory-resizer {
  display: none;
}

.content-panel.market-top100-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 9px 12px 10px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.market-top100-content .product-info-view-shell {
  margin-top: 0;
}

#marketTop100TableView {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.market-top100-content #marketTop100TableView .product-info-table-wrap {
  min-height: 0;
  max-height: none;
  height: auto;
  border-radius: 8px;
}

/* 顶部导航固定后，超级多维表在剩余工作区内滚动，避免浏览器右侧产生第二根滚动条。 */
.main-panel:has(.market-top100-page) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.main-panel:has(.market-top100-page) .page[data-view="workspace-module"].active-page {
  height: calc(100vh - var(--app-topbar-height));
  min-height: 0;
  overflow: hidden;
}

/* 工作模块实际内容挂载在 #moduleView，必须同样收敛到导航栏下方的可视工作区。 */
.main-panel:has(#moduleView .market-top100-page) .page.active-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--app-topbar-height));
  min-height: 0;
  overflow: hidden;
}

#moduleView:has(.market-top100-page) {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

html:has(.market-top100-page),
body:has(.market-top100-page) {
  overflow: hidden;
}

.market-top100-directory {
  position: relative;
  top: auto;
  z-index: calc(var(--z-list-header-menu) + 2);
  min-height: 0;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

/* 左侧目录始终保留窄滚动条，长目录可直接识别并滚动。 */
.market-top100-directory:hover,
.market-top100-directory:focus-within,
.market-top100-directory.is-scrolling {
  scrollbar-color: #cbd5e1 transparent;
}

.market-top100-directory::-webkit-scrollbar {
  width: 8px;
}

.market-top100-directory::-webkit-scrollbar-track {
  background: transparent;
}

.market-top100-directory::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbd5e1;
  background-clip: padding-box;
}

.market-top100-directory:hover::-webkit-scrollbar-thumb,
.market-top100-directory:focus-within::-webkit-scrollbar-thumb,
.market-top100-directory.is-scrolling::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
}

/* 菜单展开时不裁切目录浮层，维持字段和目录菜单均可完整查看。 */
.market-top100-directory:has(.market-top100-directory-menu),
.market-top100-directory:has(.market-top100-create-menu) {
  overflow: visible;
}

.market-top100-layout.collapsed .market-top100-directory {
  display: none;
}

.market-top100-directory-resizer {
  position: relative;
  top: auto;
  z-index: 2;
  display: block;
  width: 8px;
  min-height: calc(100vh - 42px);
  height: 100%;
  padding: 0;
  border: 0;
  background: #ffffff;
  cursor: ew-resize;
}

.market-top100-directory-resizer::before {
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  margin: 0 auto;
  background: var(--line-strong);
  transition: none;
}

.market-top100-directory-resizer:hover::before,
body.market-top100-directory-resizing .market-top100-directory-resizer::before {
  background: #2563eb;
}

.market-top100-directory-resizer:hover,
body.market-top100-directory-resizing .market-top100-directory-resizer {
  background: #ffffff;
}

body.market-top100-directory-resizing,
body.market-top100-directory-resizing * {
  cursor: ew-resize !important;
  user-select: none;
}

.market-top100-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.market-top100-directory-search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
}

.market-top100-directory-search:focus-within {
  border-color: #bfdbfe;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.market-top100-directory-search span {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
}

.market-top100-directory-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.market-top100-directory-search input::placeholder {
  color: #94a3b8;
}

.market-top100-directory-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.market-top100-directory-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-top100-directory-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.market-top100-directory-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-top100-directory-toggle,
.market-top100-directory-create,
.market-top100-inline-toggle {
  display: inline-grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5f6875;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.market-top100-directory-create {
  font-size: 22px;
}

.market-top100-inline-toggle {
  margin-right: 4px;
}

.market-top100-directory-toggle:hover,
.market-top100-directory-create:hover,
.market-top100-directory-create.active,
.market-top100-inline-toggle:hover {
  background: #eff6ff;
  color: #2563eb;
}

.market-top100-directory-list {
  display: grid;
  gap: 3px;
  padding: 6px;
}

.market-top100-directory-folder {
  display: grid;
  gap: 3px;
  margin-left: calc(var(--folder-depth, 0) * 4px);
  border-radius: 8px;
}

.market-top100-directory-folder.root {
  margin-left: 0;
}

.market-top100-directory-folder + .market-top100-directory-folder {
  margin-top: 3px;
}

.market-top100-directory-folder-header {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 30px;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
}

.market-top100-directory-folder-header:hover {
  background: #f4f7fb;
}

.market-top100-directory-folder.selected > .market-top100-directory-folder-header {
  background: #eef4ff;
}

.market-top100-directory-folder-caret {
  display: grid;
  place-items: center;
  width: 20px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.market-top100-directory-folder-caret:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.market-top100-directory-folder-name {
  min-width: 0;
  overflow: hidden;
  padding: 4px 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-top100-directory-folder-name:hover,
.market-top100-directory-folder.selected > .market-top100-directory-folder-header .market-top100-directory-folder-name {
  color: #1d4ed8;
  font-weight: 850;
}

.market-top100-directory-folder-body {
  display: grid;
  gap: 3px;
}

.market-top100-directory-empty {
  padding: 4px 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 750;
}

.market-top100-directory-item-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
}

.market-top100-directory-item-wrap:hover,
.market-top100-directory-item-wrap.active {
  border-color: #dbeafe;
  background: #eef4ff;
}

.market-top100-directory-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.market-top100-directory-item.active {
  color: #1d4ed8;
  font-weight: 850;
}

.market-top100-directory-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-top100-directory-icon {
  display: inline-grid;
  flex: 0 0 20px;
  place-items: center;
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.market-top100-directory-more {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  font-weight: 900;
  opacity: 0;
}

.market-top100-directory-item-wrap:hover .market-top100-directory-more,
.market-top100-directory-folder-header:hover .market-top100-directory-more,
.market-top100-directory-more.active {
  opacity: 1;
}

.market-top100-directory-more:hover,
.market-top100-directory-more.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.market-top100-directory-menu,
.market-top100-create-menu,
.market-top100-move-menu {
  position: absolute;
  z-index: var(--z-list-header-menu);
  display: grid;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.market-top100-create-menu {
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
}

.market-top100-directory-menu {
  top: 34px;
  right: 0;
}

.market-top100-move-menu {
  top: 116px;
  left: calc(100% - 8px);
}

.market-top100-folder-menu .market-top100-move-menu {
  top: 42px;
}

.market-top100-menu-divider {
  height: 1px;
  margin: 6px 2px;
  background: var(--line);
}

.market-top100-directory-menu button,
.market-top100-create-menu button,
.market-top100-move-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.market-top100-directory-menu button.danger {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.market-top100-directory-menu button:hover,
.market-top100-create-menu button:hover,
.market-top100-move-menu button:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}

.market-top100-move-empty {
  padding: 8px 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.market-top100-directory-item[draggable="true"] {
  cursor: grab;
}

.market-top100-directory-item[draggable="true"]:active,
.market-top100-directory-item-wrap.dragging .market-top100-directory-item {
  cursor: grabbing;
}

.market-top100-directory-item-wrap.dragging {
  opacity: 0.56;
}

.market-top100-directory-item-wrap.drag-over,
.market-top100-directory-folder.drag-over {
  background: #dbeafe;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.market-top100-dashboard {
  display: grid;
  gap: 12px;
}

.market-top100-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--line);
}

.market-top100-dashboard-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.market-top100-dashboard-head span,
.market-top100-dashboard-head strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.market-top100-dashboard-head strong {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.market-top100-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market-top100-dashboard-kpis article,
.market-top100-dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.market-top100-dashboard-kpis article {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 13px;
}

.market-top100-dashboard-kpis span,
.market-top100-dashboard-kpis em,
.market-top100-dashboard-panel header span,
.market-top100-dashboard-bar-row em,
.market-top100-month-bar em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.market-top100-dashboard-kpis strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.market-top100-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.market-top100-dashboard-panel {
  display: grid;
  gap: 12px;
  min-height: 300px;
  padding: 14px;
}

.market-top100-dashboard-panel.wide {
  min-width: 0;
}

.market-top100-dashboard-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-top100-dashboard-panel header strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.market-top100-dashboard-panel header span {
  display: block;
  margin-top: 3px;
}

.market-top100-dashboard-bar-list {
  display: grid;
  gap: 8px;
}

.market-top100-dashboard-bar-list.compact {
  gap: 7px;
}

.market-top100-dashboard-bar-row {
  display: grid;
  grid-template-columns: 22px minmax(110px, 180px) minmax(120px, 1fr) minmax(58px, auto) minmax(42px, auto);
  align-items: center;
  gap: 8px;
  min-height: 27px;
}

.market-top100-dashboard-bar-list.compact .market-top100-dashboard-bar-row {
  grid-template-columns: 22px minmax(96px, 1fr) minmax(86px, 1fr) minmax(52px, auto);
}

.market-top100-dashboard-rank {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.market-top100-dashboard-brand {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-top100-dashboard-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.market-top100-dashboard-bar-track span {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, #2563eb);
}

.market-top100-dashboard-bar-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.market-top100-dashboard-product-list {
  display: grid;
  gap: 7px;
}

.market-top100-dashboard-product-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-top100-dashboard-product-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #edf2f7;
  border-radius: 7px;
  background: #fbfdff;
}

.market-top100-dashboard-product-row div:nth-child(2) {
  min-width: 0;
}

.market-top100-dashboard-product-row strong,
.market-top100-dashboard-product-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-top100-dashboard-product-row strong {
  color: var(--ink);
  font-size: 12px;
}

.market-top100-dashboard-product-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.market-top100-dashboard-product-row em {
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.market-top100-dashboard-empty-inline {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.market-top100-month-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(56px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 222px;
  padding-top: 8px;
}

.market-top100-month-bar {
  display: grid;
  grid-template-rows: 150px auto auto;
  gap: 6px;
  align-items: end;
  min-width: 0;
  text-align: center;
}

.market-top100-month-column {
  display: flex;
  align-items: end;
  height: 150px;
  padding: 0 7px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.market-top100-month-column span {
  display: block;
  width: 100%;
  height: var(--bar);
  min-height: 6px;
  border-radius: 7px 7px 4px 4px;
  background: #0f766e;
}

.market-top100-month-bar strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-top100-dashboard-empty {
  padding: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .market-top100-layout {
    grid-template-columns: var(--market-top100-directory-width, 224px) 8px minmax(0, 1fr);
  }

  .market-top100-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-top100-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .market-top100-layout,
  .market-top100-layout.collapsed {
    grid-template-columns: 1fr;
  }

  .market-top100-directory {
    position: static;
    min-height: auto;
    border-right: 0;
    border-radius: 0;
  }

  .market-top100-directory-resizer {
    display: none;
  }

  .market-top100-layout.collapsed .market-top100-directory {
    display: none;
  }

  .market-top100-dashboard-head {
    align-items: start;
    flex-direction: column;
  }

  .market-top100-dashboard-kpis,
  .market-top100-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .market-top100-dashboard-product-list.two-column {
    grid-template-columns: 1fr;
  }

  .market-top100-dashboard-bar-row,
  .market-top100-dashboard-bar-list.compact .market-top100-dashboard-bar-row {
    grid-template-columns: 22px minmax(0, 1fr) minmax(72px, auto);
  }

  .market-top100-dashboard-bar-track,
  .market-top100-dashboard-bar-row em {
    grid-column: 2 / -1;
  }

  .market-top100-month-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.market-top100-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-content: space-between;
  margin: 8px 0;
}

.market-top100-toolbar .search-field {
  display: grid;
  min-width: min(280px, 100%);
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-top100-toolbar input,
.market-top100-toolbar select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
}

.market-top100-date-field {
  flex: 0 0 150px;
}

.market-top100-status {
  padding: 7px 9px;
  border-radius: 7px;
  color: #38617f;
  background: #f0f7fc;
  font-size: 12px;
  font-weight: 700;
}

.market-top100-page .product-info-view-tabs {
  gap: 10px;
  min-height: 34px;
  padding: 0 0 6px;
}

.market-top100-page .product-info-view-tab-wrap,
.market-top100-page .product-info-view-tab-wrap.active {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.market-top100-page .product-info-view-tab {
  min-height: 30px;
  padding: 0 2px;
  color: #64748b;
  font-size: 14px;
  font-weight: 850;
}

.market-top100-page .product-info-view-tab-wrap.active .product-info-view-tab {
  color: var(--ink);
}

.market-top100-page .product-info-view-more {
  width: 22px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  font-size: 18px;
}

.market-top100-page .product-info-view-more:hover,
.market-top100-page .product-info-view-more.active {
  background: #f1f5f9;
  color: #2563eb;
}

.market-top100-page .product-info-view-add {
  width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 22px;
}

.market-top100-page .product-info-view-add:hover,
.market-top100-page .product-info-view-add:focus-visible {
  background: #eff6ff;
}

.market-top100-page .product-info-view-refresh-groups {
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.market-top100-page .product-info-view-refresh-groups:hover,
.market-top100-page .product-info-view-refresh-groups:focus-visible {
  background: #eff6ff;
  color: #2563eb;
}

.market-top100-page .product-info-view-refresh-groups:disabled {
  color: #94a3b8;
  cursor: wait;
}

.market-top100-page .product-info-tool-row {
  gap: 14px;
  min-height: 34px;
  /* 横向浏览只由数据表承载，工具栏换行而不产生页面顶部的第二根滚动条。 */
  flex-wrap: wrap;
  overflow: visible;
  padding: 4px 0;
}

.market-top100-page .product-info-tool-button {
  min-height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
}

.market-top100-page .product-info-tool-button:hover,
.market-top100-page .product-info-tool-button:focus-visible,
.market-top100-page .product-info-tool-button.active {
  background: #f1f5f9;
}

.product-info-table.market-top100-table {
  /* 列宽由视图字段实际宽度计算，避免 TOP100 与 Lovepop 被统一的超大最小宽度撑开。 */
  min-width: 0;
}

.product-info-table.market-top100-table th,
.product-info-table.market-top100-table td {
  max-width: 240px;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-info-table.market-top100-table th:nth-child(1),
.product-info-table.market-top100-table td:nth-child(1) {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
}

.product-info-table.market-top100-table th:nth-child(2),
.product-info-table.market-top100-table td:nth-child(2) {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
}

.product-info-table.market-top100-table th:nth-child(6),
.product-info-table.market-top100-table td:nth-child(6) {
  min-width: 96px;
  max-width: 110px;
}

.product-info-table.market-top100-table th:nth-child(7),
.product-info-table.market-top100-table td:nth-child(7) {
  min-width: 180px;
  max-width: 220px;
}

.product-info-table.market-top100-table .list-page-row-number-header,
.product-info-table.market-top100-table .list-page-row-number-calc,
.product-info-table.market-top100-table .list-page-row-number-cell {
  position: sticky;
  left: 0;
  z-index: 6;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  background: var(--panel);
  color: #64748b;
  text-align: center;
}

.product-info-table.market-top100-table .list-page-header-row th {
  height: 34px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.product-info-table.market-top100-table .list-page-calc-row th {
  top: 34px;
  height: 20px;
  padding-top: 1px;
  padding-bottom: 1px;
}

.product-info-table.market-top100-table .list-page-column-trigger {
  min-height: 24px;
  padding-top: 0;
  padding-bottom: 0;
}

.product-info-table.market-top100-table .list-page-row-number-cell {
  z-index: 3;
  font-weight: 750;
  --group-depth: 0;
  padding-left: calc(7px + var(--group-depth, 0) * 14px);
  padding-right: 0;
  text-align: left;
}

.product-info-table.market-top100-table .list-page-group-row-number-cell {
  background: #f8fafc;
}

.product-info-table.market-top100-table .list-page-row-number-value,
.product-info-table.market-top100-table .list-page-group-row-number-cell .product-info-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.market-top100-product-image {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.market-top100-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.market-top100-image-cell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: visible;
  vertical-align: middle;
}

.product-info-table.market-top100-table td[data-market-top100-field-id="产品图片"],
.product-info-table.market-top100-table td[data-market-top100-field-id="集合图片"] {
  overflow: visible;
}

.market-top100-image-cell-wrap .market-top100-image-ai-tools {
  top: auto;
  right: -2px;
  bottom: -2px;
  z-index: 40;
}

.market-top100-image-cell-wrap:hover .market-top100-image-ai-tools,
.market-top100-image-cell-wrap:focus-within .market-top100-image-ai-tools {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.market-top100-image-cell-wrap .amazon-ai-tool-button {
  min-height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
}

.market-top100-image-cell-wrap .amazon-ai-tool-button::before {
  width: 12px;
  height: 12px;
  font-size: 11px;
}

.market-top100-image-cell-wrap .amazon-ai-tool-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
}

.market-top100-asin-link {
  font-weight: 800;
}

/* 品牌页四张数据表以字段语义分配列宽；长文本只在单行内截断，避免单条记录撑高整行。 */
.market-brand-data-table {
  table-layout: fixed;
  width: max-content;
  min-width: 820px;
}

.market-brand-data-table th,
.market-brand-data-table td {
  height: 38px;
  padding: 3px 7px;
  vertical-align: middle;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-brand-data-table td[data-brand-column="标题"],
.market-brand-data-table td[data-brand-column="产品标题"] {
  line-height: 1.25;
}

.market-brand-data-table th:first-child,
.market-brand-data-table td:first-child {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
}

.market-brand-data-table [data-brand-column="产品图片"] {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
}

.market-brand-data-table [data-brand-column="ASIN"],
.market-brand-data-table [data-brand-column="SKU"] {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
}

.market-brand-data-table [data-brand-column="标题"],
.market-brand-data-table [data-brand-column="产品标题"] {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
}

.market-brand-data-table [data-brand-column="产品类型"] {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.market-brand-data-table [data-brand-column="发布时间"],
.market-brand-data-table [data-brand-column="月份"],
.market-brand-data-table [data-brand-column="日期"] {
  width: 128px;
  min-width: 128px;
  max-width: 128px;
}

.market-brand-data-table [data-brand-column="价格"],
.market-brand-data-table [data-brand-column="价格（USD）"],
.market-brand-data-table [data-brand-column="月均价（USD）"],
.market-brand-data-table [data-brand-column="评分"] {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

.market-brand-data-table [data-brand-column="月销量"],
.market-brand-data-table [data-brand-column="月销额"],
.market-brand-data-table [data-brand-column="月销售额（USD）"] {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
}

.market-brand-data-table .market-top100-product-image {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.market-top100-risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 180px;
}

.market-top100-risk-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.market-top100-muted-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.market-top100-product-pool-select {
  width: 112px;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.market-top100-task-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.market-top100-task-button:hover,
.market-top100-task-button:focus-visible {
  border-color: #60a5fa;
  background: #dbeafe;
}

.market-top100-view-row-count {
  margin-left: 6px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.market-competitor-table th,
.market-competitor-table td {
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.35;
}

.market-competitor-table th:nth-child(3),
.market-competitor-table td:nth-child(3) {
  min-width: 280px;
  max-width: 360px;
}

.market-competitor-search {
  display: grid;
  gap: 4px;
  width: min(420px, 100%);
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-top100-brand-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.market-top100-brand-link:hover {
  color: inherit;
  text-decoration: none;
}

.market-top100-editable-cell {
  position: relative;
}

.market-top100-record-detail-button {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  transform: translateY(-50%);
  min-height: 22px;
  margin: 0;
  padding: 1px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #475569;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, border-color 120ms ease, color 120ms ease;
}

.product-info-data-row:hover .market-top100-record-detail-button,
.market-top100-record-detail-button:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.market-top100-first-field-cell {
  position: relative;
}

.market-top100-first-field-cell[data-market-top100-field-id="产品图片"] .market-top100-record-detail-button,
.market-top100-first-field-cell[data-market-top100-field-id="集合图片"] .market-top100-record-detail-button {
  right: auto;
  left: 50px;
}

.market-top100-record-detail-button:hover,
.market-top100-record-detail-button:focus-visible {
  border-color: #2563eb;
  color: #1d4ed8;
  outline: 0;
}

.market-top100-cell-editor {
  width: min(100%, 280px);
  min-height: 28px;
  padding: 3px 7px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: inherit;
  outline: 0;
}

.market-record-page {
  display: grid;
  gap: 16px;
  padding: 8px 0 18px;
}

.market-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.market-record-head span,
.market-record-fields article span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-record-head h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.market-record-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.market-record-fields article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 13px 14px;
  background: #ffffff;
}

.market-record-fields article strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
}

.market-record-empty {
  padding: 20px 0;
  color: var(--muted);
}

.market-brand-page {
  display: grid;
  gap: 14px;
  padding: 4px 0 12px;
}

.market-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-brand-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.market-brand-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.market-brand-tabs button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.market-brand-tabs button.active {
  border-bottom-color: #2563eb;
  color: #1d4ed8;
}

.market-brand-tab-content {
  min-height: 260px;
}

.market-brand-overview {
  display: grid;
  gap: 12px;
}

.market-brand-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market-brand-info-grid article {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.market-brand-info-grid article:last-child {
  grid-column: 1 / -1;
}

.market-brand-info-grid span,
.market-brand-product-list span {
  color: var(--muted);
  font-size: 12px;
}

.market-brand-info-grid strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.market-brand-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-brand-summary-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(240px, 1fr);
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.market-brand-summary-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.market-brand-summary-card h3,
.market-brand-summary-card h4 {
  margin: 0;
  color: var(--ink);
}

.market-brand-summary-card h3 {
  font-size: 15px;
}

.market-brand-summary-card h4 {
  color: var(--muted);
  font-size: 12px;
}

.market-brand-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.market-brand-metric {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
}

.market-brand-metric span,
.market-brand-card-foot span,
.market-brand-muted {
  color: var(--muted);
  font-size: 12px;
}

.market-brand-metric strong {
  color: var(--ink);
  font-size: 18px;
}

.market-brand-metric em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.market-brand-insight {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

.market-brand-chart {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
}

.market-brand-bar-chart {
  display: grid;
  gap: 6px;
}

.market-brand-bar-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.market-brand-bar-row span,
.market-brand-month-column span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.market-brand-bar-row > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.market-brand-bar-row i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.market-brand-bar-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-brand-month-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(18px, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 142px;
}

.market-brand-month-column {
  display: grid;
  grid-template-rows: 106px auto;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.market-brand-month-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  height: 106px;
  border-bottom: 1px solid #cbd5e1;
}

.market-brand-month-bars i {
  display: block;
  width: 8px;
  height: var(--bar);
  min-height: 4px;
  border-radius: 999px 999px 0 0;
}

.market-brand-month-bars .amount,
.market-brand-chart-legend .amount {
  background: #2563eb;
}

.market-brand-month-bars .count,
.market-brand-chart-legend .count {
  background: #14b8a6;
}

.market-brand-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.market-brand-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.market-brand-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.market-brand-view-tabs {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.market-brand-view-tabs > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.market-brand-view-tab-buttons {
  display: inline-flex;
  justify-self: end;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.market-brand-view-tab-buttons label {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.market-brand-view-tabs input[id$="-chart"]:checked ~ .market-brand-view-tab-buttons label:first-child,
.market-brand-view-tabs input[id$="-table"]:checked ~ .market-brand-view-tab-buttons label:last-child {
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.market-brand-view-panel {
  display: none;
  min-width: 0;
}

.market-brand-view-panel.chart {
  gap: 8px;
}

.market-brand-view-tabs input[id$="-chart"]:checked ~ .market-brand-view-panel.chart,
.market-brand-view-tabs input[id$="-table"]:checked ~ .market-brand-view-panel.table {
  display: grid;
}

.market-brand-mini-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.market-brand-mini-table th,
.market-brand-mini-table td {
  height: 28px;
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-brand-mini-table th {
  color: var(--muted);
  font-weight: 800;
}

.market-brand-card-foot {
  display: grid;
  gap: 5px;
}

.market-brand-link-list,
.market-brand-social-compact {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.market-brand-link-list a,
.market-brand-social-compact a {
  display: block;
  min-width: 0;
  color: #2563eb;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-brand-social-compact a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.market-brand-social-compact span {
  color: var(--muted);
}

.market-brand-social-compact strong {
  min-width: 0;
  overflow: hidden;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-brand-mini-empty {
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.market-brand-product-list {
  display: grid;
  gap: 8px;
}

.market-brand-product-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.market-brand-product-list img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.market-brand-product-list article > div {
  display: grid;
  gap: 4px;
}

.market-brand-product-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.market-brand-social-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-brand-social-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.market-brand-social-list strong {
  color: #2563eb;
  font-size: 12px;
}

.market-brand-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .market-brand-info-grid,
  .market-brand-summary-grid,
  .market-brand-social-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-brand-summary-card {
    grid-template-columns: 1fr;
  }
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  font-size: 14px;
  line-height: 1.5;
  pointer-events: none;
}

.personal-log-tabs {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.personal-log-tab-title-row {
  align-items: flex-start;
  gap: 10px;
}

.personal-log-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.personal-log-w3d3-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.personal-log-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
}

.personal-log-filter-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.personal-log-table {
  min-width: 980px;
  table-layout: fixed;
}

.personal-log-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.personal-log-table th:nth-child(1),
.personal-log-table td:nth-child(1) {
  width: 220px;
}

.personal-log-table th:nth-child(2),
.personal-log-table td:nth-child(2) {
  width: 180px;
}

.personal-log-table th:nth-child(4),
.personal-log-table td:nth-child(4) {
  width: 180px;
}

.personal-log-table th:nth-child(5),
.personal-log-table td:nth-child(5) {
  width: 120px;
}

.personal-log-table.favorite-resource-table th:nth-child(1),
.personal-log-table.favorite-resource-table td:nth-child(1) {
  width: 72px;
  text-align: center;
}

.personal-log-table.favorite-resource-table th:nth-child(2),
.personal-log-table.favorite-resource-table td:nth-child(2) {
  width: 260px;
}

.personal-log-table.favorite-resource-table th:nth-child(3),
.personal-log-table.favorite-resource-table td:nth-child(3) {
  width: 180px;
}

.personal-log-table.favorite-resource-table th:nth-child(5),
.personal-log-table.favorite-resource-table td:nth-child(5) {
  width: 160px;
}

.personal-log-table.favorite-resource-table th:nth-child(6),
.personal-log-table.favorite-resource-table td:nth-child(6) {
  width: 96px;
}

.personal-log-resource-row {
  cursor: pointer;
}

.personal-log-resource-row:hover {
  background: var(--panel-soft);
}

.personal-log-codex-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px 0 10px;
}

.personal-log-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
}

.personal-log-search-field span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.personal-log-search-field input {
  width: 100%;
  min-width: 260px;
}

.personal-log-favorite-list-button.active {
  border-color: rgba(223, 69, 69, 0.45);
  background: rgba(223, 69, 69, 0.08);
  color: var(--red);
}

.personal-log-heart-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.personal-log-heart-button:hover,
.personal-log-heart-button.active {
  border-color: rgba(223, 69, 69, 0.45);
  color: var(--red);
}

.personal-log-session-title {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.personal-log-id {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-log-user {
  max-width: min(360px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-log-profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.personal-log-profile-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.personal-log-profile-item span,
.personal-log-profile-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-log-codex-automations-table th,
.personal-log-codex-automations-table td {
  vertical-align: top;
}

.personal-log-history-list {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--muted);
}

.personal-log-history-list li {
  margin: 0 0 4px;
}

.personal-log-history-list strong,
.personal-log-history-list span {
  display: block;
}

.personal-log-profile-item span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.personal-log-profile-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.personal-log-personalization-panel {
  display: grid;
  gap: 12px;
}

.personal-log-personalization-summary {
  display: grid;
  gap: 4px;
}

.personal-log-personalization-summary strong {
  color: var(--ink);
  font-size: 15px;
}

.personal-log-personalization-summary span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.personal-log-personalization-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.personal-log-personalization-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.personal-log-personalization-editor {
  display: grid;
  gap: 8px;
}

.personal-log-personalization-editor > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.personal-log-personalization-editor textarea {
  min-height: min(58vh, 720px);
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}

.personal-log-personalization-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.personal-log-detail-shell {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.personal-log-detail-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.personal-log-detail-heading h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.35;
}

.personal-log-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.personal-log-raw-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.personal-log-raw-block summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.personal-log-raw-block pre,
.personal-log-entry pre {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.personal-log-entry-list {
  display: grid;
  gap: 12px;
}

.personal-log-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.personal-log-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.personal-log-entry-meta span {
  color: var(--muted);
  font-size: 12px;
}

.personal-log-raw-block.compact {
  margin: 0 12px 12px;
}

@media (max-width: 1180px) {
  .personal-log-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .personal-log-profile-grid {
    grid-template-columns: 1fr;
  }

  .personal-log-detail-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(36, 47, 64, 0.92)),
    #111827;
  place-items: center;
}

.auth-panel {
  display: grid;
  width: min(960px, 100%);
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 56px;
  background: #1f2732;
  color: #fff;
}

.auth-brand {
  width: fit-content;
  margin-bottom: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.auth-copy h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 420px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.8;
}

.auth-status {
  min-height: 24px;
  margin-top: 36px;
  color: #c9d6e6;
  font-size: 14px;
  line-height: 1.6;
}

.auth-status.error {
  color: #fecaca;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 44px;
}

.auth-feishu-button {
  display: grid;
  width: 100%;
  min-height: 56px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.auth-feishu-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-feishu-button span {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  place-items: center;
}

.auth-feishu-button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.auth-tab {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.auth-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.auth-form.active {
  display: flex;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.current-user-pill {
  max-width: 220px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-panel {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-copy,
  .auth-card {
    padding: 28px;
  }

  .auth-brand {
    margin-bottom: 24px;
  }

  .auth-copy h1 {
    font-size: 30px;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: var(--z-app-sidebar);
  align-self: start;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 100vh;
  padding: 12px 6px;
  background: var(--sidebar);
  color: #ffffff;
  border-right: 1px solid var(--sidebar-line);
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--sidebar-line);
}

.brand-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-name span {
  display: block;
}

.menu-section {
  display: grid;
  gap: 6px;
}

.primary-menu-section {
  flex: 1;
}

.profile-menu-section {
  margin-top: auto;
}

.business-menu {
  display: grid;
  gap: 6px;
  align-content: start;
}

.business-menu-item {
  position: relative;
  min-height: 34px;
}

.business-menu-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 8px;
  height: 100%;
}

.menu-root-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.menu-root-button::after {
  display: none;
}

.direct-menu-button::after {
  display: none;
}

.menu-root-button:hover,
.business-menu-item.active .menu-root-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.menu-submenu {
  position: fixed;
  top: 43px;
  bottom: auto;
  left: 86px;
  z-index: var(--z-app-submenu);
  display: grid;
  align-content: start;
  min-width: 150px;
  height: auto;
  max-height: calc(100vh - 55px);
  gap: 4px;
  overflow: hidden auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(38, 76, 135, 0.16);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  contain: layout paint;
}

.grouped-submenu {
  display: block;
  width: 320px;
  max-width: calc(100vw - 100px);
  column-count: 2;
  column-gap: 8px;
  column-fill: balance;
}

.grouped-submenu .submenu-group {
  break-inside: avoid;
  margin-bottom: 4px;
}

/* 产品目录的分组较多，使用三列减少纵向滚动。 */
.menu-submenu[aria-label="产品二级菜单"] {
  width: 480px;
  column-count: 3;
}

/* AI 菜单分组较多，使用三列并压缩组间距，减少展开后的纵向占用。 */
.menu-submenu[aria-label="AI二级菜单"] {
  width: 480px;
  column-count: 3;
  column-gap: 6px;
  row-gap: 3px;
  padding: 5px;
}

.menu-submenu[aria-label="AI二级菜单"] .submenu-group {
  min-width: 150px;
  gap: 2px;
}

.menu-submenu[aria-label="AI二级菜单"] .submenu-group-label {
  min-height: 21px;
  padding-top: 3px;
  padding-bottom: 1px;
}

.menu-submenu[aria-label="AI二级菜单"] .submenu-button {
  min-height: 29px;
}

.menu-submenu[aria-label="系统二级菜单"] {
  display: block;
  width: 276px;
  height: auto;
  max-height: calc(100vh - 55px);
  column-count: 2;
  column-gap: 8px;
}

.menu-submenu[aria-label="系统二级菜单"] .submenu-group {
  min-width: 128px;
}

.menu-submenu[aria-label="系统二级菜单"] .submenu-group-label {
  min-height: 20px;
  padding: 3px 0 1px 1px;
}

.menu-submenu[aria-label="系统二级菜单"] .submenu-button {
  min-height: 28px;
  padding: 0 8px;
}

.menu-submenu[aria-label="我二级菜单"] {
  top: auto;
  bottom: 0;
  height: auto;
  max-height: calc(100vh - 56px);
  align-content: start;
  transform: translateY(4px);
}

.business-menu-item:hover .menu-submenu[aria-label="我二级菜单"] {
  transform: translateY(0);
}

.submenu-group {
  display: grid;
  min-width: 150px;
  gap: 4px;
  align-content: start;
}

.submenu-info {
  display: block;
  padding: 7px 9px;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.business-menu-item:hover .menu-submenu,
.business-menu-item.open .menu-submenu,
.business-menu-item:focus-within .menu-submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.business-menu-suppressed .business-menu-item:hover .menu-submenu,
body.business-menu-suppressed .business-menu-item.open .menu-submenu,
body.business-menu-suppressed .business-menu-item:focus-within .menu-submenu,
body.business-menu-suppressed .business-menu-item:hover .menu-submenu[aria-label="我二级菜单"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.submenu-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #465163;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.submenu-group-label {
  display: block;
  min-height: 24px;
  padding: 7px 0 2px 1px;
  color: #9aa4b2;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  pointer-events: none;
  user-select: none;
}

.submenu-group-label:first-child {
  padding-top: 2px;
}

.submenu-button:hover,
.submenu-button.active {
  border-color: #d9dee7;
  background: #f3f5f8;
  color: var(--accent);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-item {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  box-shadow: none;
}

.direct-menu-button.nav-item {
  min-height: 34px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 800;
}

.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.nav-item.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: none;
}

.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.goal-dot {
  background: var(--accent);
}

.task-dot {
  background: #4b5563;
}

.image-dot {
  background: #d09a3d;
}

.meeting-dot {
  background: #6d8f9d;
}

.interview-dot {
  background: var(--red);
}

.sidebar-status {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--sidebar-line);
  border-radius: 0;
  background: transparent;
  flex-direction: column;
}

.side-section-title {
  margin: 0 0 2px;
  color: #8a96a7;
  font-size: 12px;
  font-weight: 800;
}

.status-label {
  color: #aab7b0;
  font-size: 12px;
}

.status-value {
  display: none;
  margin-top: 0;
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.top-icon-button,
.avatar-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: #242a35;
  padding: 0 13px;
  font-size: 15px;
  font-weight: 800;
}

.top-icon-button::after {
  margin-left: 10px;
  color: #667386;
  font-size: 13px;
  font-weight: 750;
}

.top-icon-button[title="飞书任务"]::after {
  content: "飞书任务";
}

.top-icon-button[title="生图智能体"]::after {
  content: "生图智能体";
}

.top-icon-button[title="会议管理"]::after {
  content: "会议管理";
}

.avatar-button::after {
  content: "面试";
  margin-left: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

.top-icon-button:hover,
.avatar-button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.notice-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f86470;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.avatar-button {
  background: #7f4fd8;
  color: #ffffff;
  font-size: 17px;
}

.main-panel {
  min-width: 0;
  padding: 18px 26px 34px;
}

.main-panel:has(#dashboardView .w3-workbench) {
  height: 100vh;
  overflow: hidden;
  padding: 6px 8px 0;
}

.main-panel:has(#dashboardView .w3-workbench) .top-strip {
  margin: -6px -8px 6px;
}

html:has(#dashboardView .w3-workbench) {
  scrollbar-gutter: auto;
}

body:has(#dashboardView .w3-workbench) {
  overflow: hidden;
}

.main-panel:has(.market-top100-page) {
  padding: 0;
  background: #ffffff;
}

.main-panel:has(.market-top100-page) .top-strip {
  margin: 0;
}

.main-panel:has(.page[data-view="image-agent"].active-page),
.main-panel:has(.page[data-view="gpt-agent"].active-page),
.main-panel:has(.page[data-view="video-generation"].active-page),
.main-panel:has(.page[data-view="cowart-canvas"].active-page) {
  padding-bottom: 18px;
}

.main-panel:has(.page[data-view="cowart-canvas"].active-page) {
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.main-panel:has(.page[data-view="gpt-agent"].active-page) {
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

html:has(.page[data-view="gpt-agent"].active-page),
html:has(.page[data-view="cowart-canvas"].active-page) {
  scrollbar-gutter: auto;
}

body:has(.page[data-view="gpt-agent"].active-page),
body:has(.page[data-view="cowart-canvas"].active-page) {
  overflow: hidden;
}

.main-panel:has(.page[data-view="cowart-canvas"].active-page) .top-strip {
  margin: 0;
}

.main-panel:has(.page[data-view="gpt-agent"].active-page) .top-strip {
  margin: 0;
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: stretch;
  min-height: 42px;
  margin: -18px -26px 18px;
  border-bottom: 1px solid #303948;
  background: #222934;
}

.activity-tabs {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
  padding: 0 10px 0 14px;
  overflow: visible;
}

.activity-tab {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  height: 42px;
  padding: 0 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: #d6dde8;
}

.activity-tab[draggable="true"] {
  cursor: grab;
}

.activity-tab.dragging {
  opacity: 0.55;
}

.activity-tab.drag-over {
  box-shadow: inset 2px 0 0 #ffffff;
}

.activity-tab:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-tab-main,
.activity-tab-pin,
.activity-tab-close {
  border: 0;
  background: transparent;
  color: inherit;
}

.activity-tab-main {
  display: flex;
  align-items: center;
  max-width: 176px;
  height: 34px;
  min-width: 0;
  padding: 0 6px 0 8px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.activity-tab-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-tab-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  height: 22px;
  margin-left: -1px;
}

.activity-tab-pin,
.activity-tab-close {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: rgba(214, 221, 232, 0.72);
  font-size: 12px;
  line-height: 1;
  transition: color 0.14s ease, background 0.14s ease;
}

.activity-tab-pin {
  background: transparent;
}

.activity-tab-pin:hover {
  background: transparent;
  color: #ffffff;
}

.activity-tab-close {
  border-radius: 50%;
}

.pin-glyph {
  position: relative;
  display: block;
  width: 12px;
  height: 13px;
  transform: rotate(-35deg);
  transform-origin: 50% 70%;
  transition: transform 0.14s ease;
}

.pin-glyph::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pin-glyph::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 5px;
  width: 2px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.activity-tab-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.activity-tab.pinned .activity-tab-pin {
  color: #ffffff;
  background: transparent;
}

.activity-tab.pinned .pin-glyph {
  transform: rotate(0deg);
}

.activity-tab.active {
  align-self: flex-end;
  align-items: center;
  height: 36px;
  margin-top: 6px;
  border-right-color: rgba(255, 255, 255, 0.95);
  border-radius: 7px 7px 0 0;
  background: #ffffff;
  color: #1f2732;
  box-shadow: 0 -1px 0 #ffffff inset;
}

.activity-tab.active .activity-tab-main {
  height: 36px;
  margin-top: 0;
  padding: 0 8px;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.activity-tab.active .activity-tab-pin,
.activity-tab.active .activity-tab-close {
  margin-bottom: 0;
  color: inherit;
}

.activity-tab-overflow {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 42px;
  padding: 0 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.activity-overflow-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d6dde8;
}

.activity-overflow-button::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.activity-overflow-button:hover,
.activity-tab-overflow:focus-within .activity-overflow-button,
.activity-tab-overflow:hover .activity-overflow-button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.activity-overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 32px));
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(20, 27, 38, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.activity-tab-overflow:hover .activity-overflow-menu,
.activity-tab-overflow:focus-within .activity-overflow-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.activity-overflow-menu .activity-tab {
  height: 34px;
  padding: 0 2px;
  border-right: 0;
  color: var(--ink);
}

.activity-overflow-menu .activity-tab-main {
  flex: 1;
  max-width: none;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
}

.activity-overflow-menu .activity-tab.active {
  align-items: center;
}

.activity-overflow-menu .activity-tab.active .activity-tab-main {
  height: 30px;
  margin-top: 0;
  border-radius: 7px;
  background: #eef1f4;
  color: var(--accent);
  box-shadow: none;
}

.activity-overflow-menu .activity-tab-pin,
.activity-overflow-menu .activity-tab-close,
.activity-overflow-menu .activity-tab.active .activity-tab-pin,
.activity-overflow-menu .activity-tab.active .activity-tab-close {
  margin-bottom: 0;
  color: #5b6573;
}

.activity-overflow-menu .activity-tab-close:hover {
  background: #eef1f4;
  color: var(--accent);
}

.activity-overflow-menu .activity-tab-pin:hover {
  background: transparent;
  color: var(--accent);
}

.global-top-tools {
  position: relative;
  z-index: 80;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 8px;
  background: #222934;
}

.global-search {
  position: relative;
  width: clamp(154px, 16.8vw, 252px);
}

.global-search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6dde8;
}

.global-search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
}

.global-search-field svg,
.notification-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.global-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
}

.global-search-field input::placeholder {
  color: rgba(214, 221, 232, 0.72);
}

.global-search-panel,
.notification-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 120;
  width: min(430px, calc(100vw - 120px));
  max-height: min(520px, calc(100vh - 72px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(20, 27, 38, 0.22);
}

.global-search-list,
.notification-list {
  display: grid;
  gap: 4px;
}

.global-search-result,
.notification-item {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.global-search-result:hover,
.global-search-result:focus-visible,
.notification-item:hover {
  background: #f3f4f6;
}

.global-search-result strong,
.notification-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result span,
.notification-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result small,
.notification-item small {
  color: #9aa4b2;
  font-size: 11px;
}

.global-search-empty,
.notification-empty {
  padding: 16px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.notification-wrap {
  position: relative;
}

.notification-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6dde8;
}

.notification-button:hover,
.notification-button[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.feedback-help-button {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.feedback-help-button span {
  display: block;
  transform: translateY(-0.5px);
}

.floating-feedback {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
}

.floating-feedback-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.72);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(6px);
  cursor: grab;
  touch-action: none;
}

.floating-feedback-button:hover,
.floating-feedback-button:focus-visible,
.floating-feedback.open .floating-feedback-button {
  background: rgba(17, 24, 39, 0.84);
}

.floating-feedback-button span {
  display: block;
  transform: translateY(-1px);
}

.floating-feedback-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 152px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-feedback.open .floating-feedback-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-feedback.menu-below .floating-feedback-menu {
  top: calc(100% + 10px);
  bottom: auto;
  transform: translateY(-8px);
}

.floating-feedback.open.menu-below .floating-feedback-menu {
  transform: translateY(0);
}

.floating-feedback.menu-align-left .floating-feedback-menu {
  right: auto;
  left: 0;
}

.floating-feedback-menu-item {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.floating-feedback-menu-item:hover,
.floating-feedback-menu-item:focus-visible {
  background: #f3f4f6;
}

.floating-feedback-submenu {
  position: relative;
}

.floating-feedback-submenu-panel {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 0;
  display: flex;
  min-width: 128px;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-feedback.hide-open .floating-feedback-submenu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.floating-feedback.is-dragging .floating-feedback-button {
  cursor: grabbing;
  background: rgba(17, 24, 39, 0.78);
}

.floating-feedback.is-busy .floating-feedback-button {
  cursor: progress;
  opacity: 0.88;
}

.floating-feedback.is-busy .floating-feedback-menu-item {
  pointer-events: none;
  opacity: 0.58;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #222934;
  border-radius: 999px;
  background: #df4545;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notification-panel {
  width: min(340px, calc(100vw - 120px));
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 21px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #edf1ef;
  color: #243129;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.model-pill {
  max-width: 480px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(23, 32, 27, 0.06);
  overflow-wrap: anywhere;
}

.page {
  min-width: 0;
}

.section-heading {
  margin-bottom: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.goal-app {
  display: grid;
  gap: 14px;
}

.goal-app.dashboard-mode {
  gap: 0;
}

.goal-header,
.goal-filters,
.section-toolbar,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.goal-header,
.goal-filters {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.goal-header {
  display: none;
}

.goal-app.dashboard-mode .goal-filters {
  display: none;
}

.goal-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.goal-tab {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
  color: var(--muted);
}

.goal-tab.active {
  border-color: var(--accent);
  background: #f0f2f5;
  color: var(--accent-dark);
  font-weight: 700;
}

.goal-actions,
.toolbar-actions,
.composer-actions,
.image-composer-actions,
.row-actions,
.dialog-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.goal-filters {
  justify-content: flex-start;
  align-items: end;
}

.goal-filters label,
.form-grid label,
.compact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.goal-filters input,
.goal-filters select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.compact-form input,
.compact-form select,
.compact-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 10px;
}

.goal-filters textarea,
.form-grid textarea,
.compact-form textarea {
  resize: vertical;
}

.goal-filters label {
  width: min(180px, 100%);
}

.goal-filters .search-field {
  width: min(360px, 100%);
}

.feishu-group-id-filters {
  margin: 14px 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 14px;
}

.feishu-group-id-filters label {
  width: min(160px, 100%);
}

.feishu-group-id-filters .search-field {
  width: min(360px, 100%);
}

.organization-page {
  gap: 0;
}

.organization-tabs {
  display: flex;
  gap: 28px;
  padding: 4px 4px 0;
  border-bottom: 1px solid var(--line);
}

.organization-tab {
  position: relative;
  padding: 10px 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.organization-tab.active {
  color: var(--primary);
}

.organization-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.organization-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.organization-sidebar {
  min-height: 620px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #fbfcff;
}

.organization-search {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.organization-search input {
  width: 100%;
}

.organization-tree {
  display: grid;
  gap: 4px;
}

.organization-tree-node {
  display: grid;
  gap: 4px;
}

.organization-tree-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding-left: calc(var(--depth, 0) * 18px);
}

.organization-tree-toggle {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.organization-tree-toggle:hover:not(:disabled) {
  background: #eef4ff;
  color: var(--primary);
}

.organization-tree-toggle:disabled {
  cursor: default;
  opacity: 0.35;
}

.organization-tree-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.organization-tree-button.active,
.organization-tree-button:hover {
  background: #eef4ff;
  color: var(--primary);
}

.organization-tree-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: #e8f0ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.organization-tree-button small {
  color: var(--muted);
  font-size: 11px;
}

.organization-main {
  min-width: 0;
  padding: 24px 28px 18px;
}

.organization-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.organization-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.organization-header h2 span {
  margin-left: 16px;
  color: var(--muted);
  font-size: 16px;
}

.organization-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.organization-table {
  min-width: 1780px;
}

.organization-table th,
.organization-table td {
  vertical-align: top;
}

.organization-department-name {
  display: grid;
  gap: 4px;
  min-width: 140px;
}

.organization-department-name strong {
  font-size: 14px;
}

.organization-department-name span {
  color: var(--muted);
  font-size: 12px;
}

.organization-text-list,
.organization-resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
  max-width: 280px;
}

.organization-text-list span,
.organization-text-list small,
.organization-resource-list a,
.organization-resource-list span,
.organization-resource-list small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 6px;
  background: #f3f6fb;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  word-break: break-word;
}

.organization-resource-list a {
  color: var(--primary);
}

.organization-resource-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.organization-member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.organization-member-cell strong,
.organization-member-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-member-name-button {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.organization-member-cell span {
  color: var(--muted);
  font-size: 12px;
}

.organization-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
}

.organization-avatar.large {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  font-size: 18px;
}

.organization-avatar.placeholder {
  display: inline-grid;
  place-items: center;
  background: #e8f0ff;
  color: var(--primary);
  font-weight: 800;
}

.organization-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: #dfe8ff;
  color: var(--primary);
  font-weight: 800;
}

.organization-status.disabled {
  background: #f1f3f5;
  color: var(--muted);
}

.danger-text {
  color: #b42318;
}

.feishu-id-detail-title {
  align-items: center;
}

.feishu-id-raw-detail pre {
  max-height: 560px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.55;
}

.module-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - var(--app-topbar-height));
}

.module-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow);
}

.module-hero-main {
  min-width: 0;
}

.module-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.module-hero h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.module-hero p {
  max-width: 780px;
  margin-bottom: 0;
}

.module-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.unplanned-module-page {
  gap: 16px;
}

.unplanned-module-hero {
  min-height: 142px;
  padding: 24px 28px;
  border-color: #dce6ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 253, 0.96)),
    radial-gradient(circle at 94% 18%, rgba(39, 116, 90, 0.12), transparent 28%);
}

.module-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #d5e5dd;
  border-radius: 999px;
  background: #eef8f3;
  color: #27745a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.unplanned-module-metrics .metric-card {
  min-height: 130px;
  border-color: #dce6ef;
}

.unplanned-module-metrics .metric-value {
  font-size: 30px;
  line-height: 1;
}

.unplanned-module-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.94fr);
}

.module-action-panel,
.module-recent-panel {
  border-color: #dce6ef;
}

.module-step-list {
  display: grid;
  gap: 10px;
}

.module-step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.module-step-item span {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  color: #657181;
  font-size: 12px;
  font-weight: 900;
}

.module-step-item strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.module-step-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.process-step {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(38, 76, 135, 0.05);
}

.process-step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.process-step strong {
  display: block;
  margin-bottom: 6px;
  color: #202734;
}

.process-step p {
  margin-bottom: 0;
  font-size: 13px;
}

.codex-bridge-page code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
  color: #1f2937;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.codex-bridge-page .structured-list {
  display: grid;
  gap: 12px;
}

.codex-bridge-page .structured-list article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.codex-bridge-page .structured-list strong {
  color: #202734;
}

.codex-bridge-page .structured-list span,
.codex-bridge-page .module-action-list span {
  line-height: 1.7;
}

.codex-usage-account {
  text-align: center;
}

.codex-usage-account-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.codex-usage-account-main strong {
  min-width: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.codex-usage-account-main span {
  flex: 0 0 auto;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.codex-usage-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.codex-usage-activity {
  display: grid;
  gap: 14px;
}

.codex-usage-grid {
  display: grid;
  grid-template-columns: repeat(var(--codex-usage-columns, 53), minmax(10px, 1fr));
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  gap: 5px;
  width: 100%;
  overflow: hidden;
}

.codex-usage-day {
  display: block;
  width: 100%;
  height: 11px;
  border-radius: 3px;
  background: #eef1f5;
}

.codex-usage-day.level-1 {
  background: #bcd7f8;
}

.codex-usage-day.level-2 {
  background: #74aef2;
}

.codex-usage-day.level-3 {
  background: #357fda;
}

.codex-usage-day.level-4 {
  background: #1459a9;
}

.codex-usage-months {
  display: grid;
  grid-template-columns: repeat(var(--codex-usage-columns, 53), minmax(10px, 1fr));
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.codex-usage-months span {
  white-space: nowrap;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.segmented-control button {
  min-width: 52px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
}

.segmented-control button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(38, 76, 135, 0.08);
}

@media (max-width: 980px) {
  .codex-usage-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .codex-usage-grid,
  .codex-usage-months {
    grid-template-columns: repeat(var(--codex-usage-columns, 53), 11px);
    overflow-x: auto;
  }
}

.objective-tree,
.objective-children,
.commit-list,
.interview-flow,
.setting-list,
.review-facts {
  display: grid;
  gap: 10px;
}

.objective-node {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.objective-children {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid #dfe8f5;
}

.node-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 190px);
  gap: 12px;
  align-items: start;
}

.node-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.node-foot span,
.setting-list span,
.review-facts span {
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--panel-soft);
  color: #657181;
  font-weight: 700;
}

.commit-panel {
  display: grid;
  gap: 14px;
}

.commit-check {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.commit-check.ok {
  background: #e8f6ef;
  color: #27745a;
}

.commit-check.warn {
  background: #fff0d9;
  color: #a96a14;
}

.interview-flow article,
.review-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.interview-flow p,
.review-card p {
  margin: 6px 0 0;
}

.review-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.review-card {
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.goal-view {
  min-width: 0;
}

.w3-workbench {
  height: calc(100vh - 66px);
  min-height: 0;
  padding: 4px 4px 0;
  overflow: hidden;
  background: #ffffff;
  border-top: 0;
}

.workbench-top-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 6px;
  border-bottom: 1px solid #eef2f7;
}

.workbench-top-tab-list {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
}

.workbench-top-meta {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.workbench-top-meta-card {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.workbench-top-meta-label {
  color: #8090a3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.workbench-top-meta-card strong {
  color: #657181;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre;
}

.workbench-top-tab {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #657181;
  font-size: 13px;
  font-weight: 750;
}

.workbench-top-tab:hover,
.workbench-top-tab.active {
  border-color: #dbe4f1;
  background: #f3f6fa;
  color: var(--accent);
}

.workbench-top-tab.active {
  background: #111827;
  color: #ffffff;
}

.w3-heading {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(330px, 0.7fr) minmax(430px, 0.9fr);
  align-items: center;
  gap: 10px;
  padding: 8px 18px 10px;
}

.w3-title-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w3-menu-button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #6d7787;
  font-size: 18px;
  font-weight: 900;
}

.w3-title-block h2 {
  margin: 0 0 2px;
  color: #202734;
  font-size: 18px;
  line-height: 1.2;
}

.w3-title-block p {
  margin: 0;
  color: #9aa4b2;
  font-size: 12px;
  font-weight: 600;
}

.date-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #717b89;
}

.date-arrow,
.date-current {
  border: 0;
  background: transparent;
  color: inherit;
}

.date-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 20px;
  font-weight: 650;
}

.date-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  color: #777f8b;
  cursor: default;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(46px, 1fr));
  gap: 2px;
  min-height: 48px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f8fafc;
}

.day-chip {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #657181;
  font-size: 12px;
  line-height: 1.15;
}

.day-chip strong {
  color: #687386;
  font-size: 13px;
  font-weight: 650;
}

.day-chip.active {
  background: #eef1f4;
  color: var(--accent);
  font-weight: 800;
}

.day-chip.active strong {
  color: var(--accent);
}

.day-chip em {
  position: absolute;
  top: 3px;
  right: 7px;
  color: var(--amber);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.w3-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 0;
}

.w3-workbench-columns {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: stretch;
  gap: 12px;
  height: calc(100% - 68px);
  min-height: 0;
  padding: 0;
}

.w3d3-stack,
.w3-feishu-column {
  display: grid;
  grid-auto-rows: max-content;
  gap: 10px;
  min-width: 0;
}

.w3d3-stack {
  height: 100%;
  min-height: 0;
  align-content: start;
  overflow: hidden;
}

.w3-feishu-column {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  scrollbar-width: thin;
}

.w3d3-stack > .w3-heading {
  grid-template-columns: minmax(112px, 1fr) auto minmax(160px, 1.25fr);
  gap: 6px;
  min-height: 52px;
  padding: 5px 10px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
}

.w3d3-stack > .w3-heading .week-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 44px;
  padding: 3px 5px;
}

.w3d3-stack > .w3-heading .date-control {
  gap: 2px;
}

.w3d3-stack > .w3-heading .date-arrow {
  width: 18px;
  font-size: 18px;
}

.w3d3-stack > .w3-heading .date-current {
  gap: 2px;
  font-size: 11px;
}

.w3-feishu-column .w3-feishu-toolbar,
.w3-feishu-column .w3-feishu-stack {
  margin-top: 0;
}

.w3-feishu-column > .w3-feishu-toolbar {
  min-height: 52px;
  box-sizing: border-box;
}

.w3-feishu-shared-fields {
  border: 1px solid #e8edf4;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  overflow: hidden;
}

.w3-feishu-shared-fields .w3-feishu-row {
  border-bottom: 0;
}

.w3-feishu-shared-fields + .w3-feishu-stack {
  gap: 8px;
  margin-top: -10px;
}

.w3-feishu-shared-fields + .w3-feishu-stack > .w3-feishu-panel:first-child {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.w3-panel {
  min-height: 0;
  padding: 10px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.w3-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.w3-panel-tabs {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  border-radius: 4px;
  background: #f7f9fc;
}

.w3-panel-tabs button {
  position: relative;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #8a94a4;
  font-size: 12px;
  font-weight: 700;
}

.w3-panel-tabs button.active {
  border-color: #eef2f8;
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 0 0 2px rgba(233, 238, 246, 0.65);
}

.w3-panel-tabs button span {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc4343;
  color: #ffffff;
  font-size: 10px;
}

.single-tab {
  background: transparent;
}

.add-plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  margin-bottom: 0;
  border: 1px dashed #c8d1df;
  border-radius: 6px;
  background: #ffffff;
  color: #697486;
  font-size: 12px;
  font-weight: 650;
}

.add-plan-button.compact {
  width: auto;
  min-width: 78px;
  padding: 0 10px;
}

.add-plan-button strong {
  color: #2b3442;
  font-size: 15px;
  line-height: 1;
}

.add-plan-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.w3-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.w3-task-list {
  display: grid;
  gap: 5px;
}

.w3-task-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 30px;
}

.task-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: #ffffff;
}

.task-check.syncing {
  opacity: 0.55;
  cursor: wait;
}

.task-check.done {
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.task-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 1px 8px;
  min-width: 0;
}

.task-title-row {
  grid-column: 2 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.task-code {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.task-line strong,
.w3-task-title {
  color: #2a2f38;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-line > strong {
  grid-column: 2 / -1;
}

.w3-task-title {
  text-decoration: none;
}

.w3-task-due-inline {
  flex: 0 0 auto;
  color: #9aa4b2;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

a.w3-task-title:hover {
  color: #2a2f38;
  text-decoration: none;
  cursor: pointer;
}

.w3-task-title.done,
a.w3-task-title.done:hover,
.w3-feishu-title.done,
.w3-feishu-title.done a,
.w3-feishu-title.done a:hover,
.task-card.done .card-title,
.card-title.done {
  color: #9aa4b2;
  text-decoration-line: line-through;
  text-decoration-color: currentColor;
}

.task-meta-line {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #9aa4b2;
  font-size: 11px;
  line-height: 1.15;
}

.task-history {
  justify-self: end;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9aa5b4;
  font-size: 18px;
}

.empty-slot .task-line strong {
  color: #b2bbc8;
  font-weight: 500;
}

.w3-feishu-stack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.w3-feishu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fbfcfe;
}

.w3-feishu-toolbar > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.w3-feishu-title {
  flex: 1 1 auto;
}

.w3-feishu-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.w3-feishu-toolbar strong {
  color: #243041;
  font-size: 13px;
  font-weight: 750;
}

.w3-feishu-toolbar span,
.sync-time-pill {
  color: #778397;
  font-size: 12px;
  font-weight: 650;
}

.w3d3-tasklist-batch-status {
  max-width: 360px;
  overflow-wrap: anywhere;
}

/* 话题榜单：证据、风险和人工阶段并列展示，避免单一分数掩盖数据缺口。 */
.topic-radar-page {
  --topic-radar-ink: #16283b;
  --topic-radar-muted: #617284;
  --topic-radar-line: #dce6ee;
  --topic-radar-blue: #1976b9;
  --topic-radar-soft: #f2f8fb;
}

.topic-radar-hero p {
  max-width: 760px;
}

.topic-radar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  border-bottom: 1px solid var(--topic-radar-line);
}

.topic-radar-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 12px;
  color: var(--topic-radar-muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.topic-radar-tabs button.active {
  border-color: var(--topic-radar-blue);
  color: var(--topic-radar-ink);
  font-weight: 750;
}

.topic-radar-data-boundary,
.topic-radar-risk-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #bbd9eb;
  border-radius: 10px;
  color: #245270;
  background: var(--topic-radar-soft);
  line-height: 1.55;
}

.topic-radar-risk-note {
  border-color: #ead4a4;
  color: #795817;
  background: #fffaf0;
}

.topic-radar-dashboard-grid,
.topic-radar-detail-grid {
  align-items: start;
}

.topic-radar-preview-list,
.topic-radar-evidence-list,
.topic-radar-review-list {
  display: grid;
  gap: 10px;
}

.topic-radar-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--topic-radar-line);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.topic-radar-preview-row:last-child {
  border-bottom: 0;
}

.topic-radar-preview-row strong,
.topic-radar-preview-row small {
  display: block;
}

.topic-radar-preview-row small,
.topic-radar-aliases {
  margin-top: 4px;
  color: var(--topic-radar-muted);
  font-size: 12px;
}

.topic-radar-source-grid,
.topic-radar-detail-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.topic-radar-source-grid > div,
.topic-radar-detail-meta > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--topic-radar-line);
  border-radius: 8px;
}

.topic-radar-source-grid span,
.topic-radar-detail-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--topic-radar-muted);
  font-size: 12px;
}

.topic-radar-source-grid strong,
.topic-radar-detail-meta strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--topic-radar-ink);
  font-size: 13px;
}

.topic-radar-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(128px, 160px) minmax(128px, 160px) auto;
  gap: 8px;
  margin: 12px 0;
}

.topic-radar-filter-bar input,
.topic-radar-filter-bar select {
  min-width: 0;
}

.topic-radar-table td {
  vertical-align: top;
}

.topic-radar-table strong,
.topic-radar-aliases {
  display: block;
}

.topic-radar-risk,
.topic-radar-stage {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--topic-radar-line);
  border-radius: 999px;
  color: #4c6172;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.topic-radar-risk.cleared,
.topic-radar-stage.prototype {
  border-color: #a9d9bd;
  color: #237348;
  background: #effaf2;
}

.topic-radar-risk.high,
.topic-radar-stage.rejected {
  border-color: #f0b9b7;
  color: #a23b36;
  background: #fff4f3;
}

.topic-radar-risk.pending,
.topic-radar-stage.observe,
.topic-radar-stage.candidate,
.topic-radar-stage.research,
.topic-radar-stage.project {
  border-color: #ead4a4;
  color: #85611a;
  background: #fffaf0;
}

.topic-radar-detail-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topic-radar-detail-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}

.topic-radar-evidence-list article,
.topic-radar-review-list article {
  padding: 12px;
  border: 1px solid var(--topic-radar-line);
  border-radius: 10px;
  background: #fff;
}

.topic-radar-evidence-list article > div,
.topic-radar-review-list article > span {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.topic-radar-evidence-list article > div span,
.topic-radar-review-list article span,
.topic-radar-review-list article small {
  color: var(--topic-radar-muted);
  font-size: 12px;
}

.topic-radar-evidence-list p,
.topic-radar-review-list p {
  margin: 8px 0;
  line-height: 1.55;
}

.topic-radar-evidence-list a {
  color: var(--topic-radar-blue);
  font-size: 13px;
}

.topic-radar-evidence-card {
  overflow: hidden;
}

.topic-radar-evidence-head {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.topic-radar-evidence-long {
  padding: 12px 14px;
  border: 1px solid #e3edf5;
  border-radius: 14px;
  background: #fbfdff;
  color: #24384c;
  line-height: 1.72;
}

.topic-radar-trend-figure,
.topic-radar-evidence-image {
  display: grid;
  gap: 10px;
  margin: 4px 0;
  padding: 12px;
  border: 1px solid #dfeaf3;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.topic-radar-trend-figure figcaption,
.topic-radar-evidence-image figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  color: var(--topic-radar-muted);
}

.topic-radar-trend-figure figcaption strong {
  color: var(--topic-radar-ink);
}

.topic-radar-trend-svg {
  width: 100%;
  min-height: 180px;
}

.topic-radar-trend-svg rect {
  fill: #fff;
}

.topic-radar-trend-svg .axis {
  stroke: #cbd9e5;
  stroke-width: 1.2;
}

.topic-radar-trend-svg .guide {
  stroke: #e8f0f7;
  stroke-width: 1;
}

.topic-radar-trend-svg .trend-line {
  fill: none;
  stroke: var(--topic-radar-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.topic-radar-trend-svg .trend-dot {
  fill: #fff;
  stroke: var(--topic-radar-blue);
  stroke-width: 3;
}

.topic-radar-trend-svg text {
  fill: #52687d;
  font-size: 13px;
}

.topic-radar-trend-svg .trend-value {
  font-weight: 700;
  text-anchor: middle;
  fill: #18334d;
}

.topic-radar-trend-svg .trend-label {
  text-anchor: middle;
}

.topic-radar-trend-table {
  overflow: auto;
}

.topic-radar-trend-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.topic-radar-trend-table th,
.topic-radar-trend-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5edf4;
  text-align: left;
  white-space: nowrap;
}

.topic-radar-trend-table th {
  color: var(--topic-radar-muted);
  font-weight: 600;
}

.topic-radar-evidence-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.topic-radar-evidence-metrics div {
  padding: 10px 12px;
  border: 1px solid #e3edf5;
  border-radius: 14px;
  background: #fff;
}

.topic-radar-evidence-metrics span {
  display: block;
  color: var(--topic-radar-muted);
  font-size: 12px;
}

.topic-radar-evidence-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--topic-radar-ink);
}

.topic-radar-evidence-image img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
}

.topic-radar-empty {
  padding: 16px 0;
  color: var(--topic-radar-muted);
  line-height: 1.55;
}

.topic-radar-form-panel textarea,
.topic-radar-review-form textarea {
  min-height: 88px;
  resize: vertical;
}

.annual-words-filter-bar {
  grid-template-columns: minmax(180px, 1.2fr) minmax(96px, 120px) minmax(150px, 1fr) minmax(120px, 140px) minmax(130px, 150px) minmax(128px, 150px) auto;
}

.annual-words-title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.annual-word-sources-table th:nth-child(1),
.annual-word-sources-table td:nth-child(1) {
  width: 210px;
}

.annual-word-sources-table th:nth-child(2),
.annual-word-sources-table td:nth-child(2) {
  width: 280px;
  word-break: break-all;
}

.annual-word-source-description {
  margin: 0;
  min-width: 360px;
  color: var(--topic-radar-text);
  line-height: 1.7;
}

.annual-word-meaning,
.annual-word-stack {
  display: block;
  margin-top: 5px;
  color: var(--topic-radar-muted);
  font-size: 12px;
  line-height: 1.45;
}

.annual-word-detail-meta {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.annual-word-status.final,
.annual-word-risk.low {
  border-color: #a9d9bd;
  color: #237348;
  background: #effaf2;
}

.annual-word-status.ytd,
.annual-word-risk.medium {
  border-color: #b8d8f3;
  color: #23669d;
  background: #f2f8ff;
}

.annual-word-risk.high,
.annual-word-risk.restricted {
  border-color: #f0b9b7;
  color: #a23b36;
  background: #fff4f3;
}

.annual-word-status.draft {
  border-color: #ead4a4;
  color: #85611a;
  background: #fffaf0;
}

@media (max-width: 1024px) {
  .topic-radar-source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .annual-words-filter-bar,
  .annual-word-detail-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topic-radar-filter-bar,
  .topic-radar-source-grid,
  .topic-radar-detail-meta,
  .annual-words-filter-bar,
  .annual-word-detail-meta {
    grid-template-columns: 1fr;
  }

  .topic-radar-detail-pills {
    justify-content: flex-start;
  }

  .topic-radar-data-boundary,
  .topic-radar-risk-note {
    grid-template-columns: 1fr;
  }
}

.sync-time-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #e5ebf3;
  border-radius: 7px;
  background: #f8fafc;
  white-space: nowrap;
}

.w3-feishu-panel {
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.w3-feishu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.w3-feishu-head h3 {
  margin: 0;
  color: #243041;
  font-size: 13px;
  font-weight: 750;
}

.w3-feishu-head span {
  color: #7c8797;
  font-size: 11px;
  font-weight: 650;
}

.w3-feishu-list {
  display: grid;
}

.w3-feishu-row {
  display: grid;
  grid-template-columns: 18px minmax(260px, 1fr) 150px minmax(130px, 0.5fr);
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 4px 12px;
  border-bottom: 1px solid #f0f3f8;
  color: #596476;
  font-size: 12px;
}

.w3-feishu-row:last-child {
  border-bottom: 0;
}

.w3-feishu-table-head {
  min-height: 28px;
  background: #fbfcfe;
  color: #8b96a6;
  font-size: 12px;
  font-weight: 700;
}

.w3-feishu-title {
  min-width: 0;
  color: #263244;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w3-feishu-title a {
  color: inherit;
  text-decoration: none;
}

.w3-feishu-title a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.w3-feishu-empty {
  padding: 18px 14px;
  color: #9aa4b2;
  font-size: 13px;
}

.workbench-department-view {
  display: grid;
  gap: 10px;
  padding: 10px 12px 0;
}

.workbench-it-view {
  align-content: start;
  gap: 8px;
  padding-top: 4px;
}

.workbench-product-head,
.workbench-placeholder-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.workbench-product-head {
  padding: 0 12px;
  min-height: 44px;
}

.workbench-it-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workbench-it-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.workbench-it-tabs button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 750;
}

.workbench-it-tabs button.active,
.workbench-it-tabs button:hover {
  border-color: var(--accent);
  background: #111827;
  color: #ffffff;
}

.workbench-it-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.workbench-it-panel .panel-title-row {
  align-items: start;
}

.workbench-it-panel .secondary-button,
.workbench-it-panel .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.workbench-it-table {
  min-width: 980px;
  table-layout: fixed;
}

.workbench-it-table th,
.workbench-it-table td {
  vertical-align: top;
}

.workbench-it-table th:nth-child(1),
.workbench-it-table td:nth-child(1) {
  width: 240px;
}

.workbench-it-table th:nth-child(6),
.workbench-it-table td:nth-child(6),
.workbench-it-table th:nth-child(7),
.workbench-it-table td:nth-child(7) {
  width: 150px;
}

.workbench-it-table .development-criteria {
  max-width: 100%;
}

.workbench-it-task-list {
  max-height: 62vh;
  overflow: auto;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #ffffff;
}

.workbench-it-task-section-list {
  display: grid;
  gap: 0;
}

.workbench-it-tasklist-section {
  padding: 0;
  overflow: visible;
}

.workbench-it-tasklist-section + .workbench-it-tasklist-section {
  border-top: 1px solid #eef2f7;
}

.workbench-it-task-section-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: #ffffff;
  text-align: left;
}

.workbench-it-task-section-toggle:hover {
  background: #f8fafc;
}

.workbench-it-task-section-toggle.static {
  cursor: default;
}

.workbench-it-task-section-arrow {
  color: #6b7686;
  font-size: 14px;
}

.workbench-it-tasklist-section h3 {
  margin: 0;
  font-size: 16px;
}

.workbench-it-task-items {
  display: grid;
}

.workbench-it-task-head,
.workbench-it-task-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 170px 150px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.workbench-it-task-head {
  min-height: 38px;
  border-top: 1px solid #eef2f7;
  color: #7b8697;
  font-size: 12px;
  font-weight: 800;
}

.workbench-it-task-head.sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  border-top: 0;
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
}

.workbench-it-task-item {
  min-height: 48px;
  border-top: 1px solid #eef2f7;
}

.workbench-it-task-item.done {
  background: #fafbfc;
}

.workbench-it-task-title-cell,
.workbench-it-task-owner-cell,
.workbench-it-task-due-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-it-task-title-cell,
.workbench-it-task-title-cell a {
  color: #1f2937;
  font-size: 14px;
  text-decoration: none;
}

.workbench-it-task-item.done .workbench-it-task-title-cell,
.workbench-it-task-item.done .workbench-it-task-title-cell a {
  color: #9aa4b2;
  text-decoration: line-through;
}

.workbench-it-task-owner-cell,
.workbench-it-task-due-cell {
  color: #6b7686;
  font-size: 13px;
}

.workbench-product-head h2,
.workbench-placeholder-panel h2 {
  margin: 0;
  color: #202734;
}

.workbench-product-head p,
.workbench-placeholder-panel p {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 14px;
}

.task-check.static {
  cursor: default;
}

.team-w3d3-panel {
  align-content: start;
}

.team-w3d3-tool-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
}

.team-w3d3-tool-row .row-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
}

.team-w3d3-workbench {
  width: 100%;
}

.team-w3d3-member-tabs,
.team-w3d3-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.team-w3d3-member-tabs {
  flex: 1 1 auto;
  padding: 2px 4px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fbfcfe;
}

.team-w3d3-member-tabs button,
.team-w3d3-scope-tabs button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #667386;
  font-size: 13px;
  font-weight: 750;
}

.team-w3d3-member-tabs button.active,
.team-w3d3-member-tabs button:hover,
.team-w3d3-scope-tabs button.active,
.team-w3d3-scope-tabs button:hover {
  border-color: var(--accent);
  background: #111827;
  color: #ffffff;
}

.team-w3d3-scope-tabs {
  padding: 0 2px;
}

.team-w3d3-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #ffffff;
}

.executive-objective-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.executive-objective-panel .panel-title-row {
  align-items: flex-start;
}

.executive-objective-panel .panel-title-row h2 {
  margin-bottom: 4px;
}

.executive-objective-table {
  min-width: 920px;
}

.executive-objective-table th:nth-child(1),
.executive-objective-table td:nth-child(1) {
  width: 16%;
}

.executive-objective-table th:nth-child(2),
.executive-objective-table td:nth-child(2),
.executive-objective-table th:nth-child(3),
.executive-objective-table td:nth-child(3) {
  width: 14%;
}

.executive-objective-table th:nth-child(4),
.executive-objective-table td:nth-child(4) {
  width: 20%;
}

.executive-objective-table th:nth-child(5),
.executive-objective-table td:nth-child(5) {
  width: 22%;
}

.executive-objective-table th:nth-child(6),
.executive-objective-table td:nth-child(6) {
  width: 14%;
}

.workbench-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.workbench-product-table-wrap {
  width: 100%;
  overflow: auto;
}

.workbench-product-table {
  min-width: 0;
  table-layout: fixed;
}

.workbench-product-table th,
.workbench-product-table td {
  padding-right: 10px;
  padding-left: 10px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.workbench-product-table td strong {
  color: #243041;
  font-weight: 750;
}

.workbench-product-table th:nth-child(1),
.workbench-product-table td:nth-child(1) {
  width: 28%;
}

.workbench-product-table th:nth-child(2),
.workbench-product-table td:nth-child(2),
.workbench-product-table th:nth-child(3),
.workbench-product-table td:nth-child(3) {
  width: 18%;
}

.workbench-product-table th:nth-child(4),
.workbench-product-table td:nth-child(4) {
  width: 22%;
}

.workbench-product-table th:nth-child(5),
.workbench-product-table td:nth-child(5) {
  width: 14%;
}

.workbench-product-progress-table th:nth-child(1),
.workbench-product-progress-table td:nth-child(1) {
  width: 24%;
}

.workbench-product-progress-table th:nth-child(2),
.workbench-product-progress-table td:nth-child(2) {
  width: 14%;
}

.workbench-product-progress-table th:nth-child(3),
.workbench-product-progress-table td:nth-child(3) {
  width: 22%;
}

.workbench-product-progress-table th:nth-child(4),
.workbench-product-progress-table td:nth-child(4) {
  width: 20%;
}

.workbench-product-progress-table th:nth-child(5),
.workbench-product-progress-table td:nth-child(5) {
  width: 20%;
}

.workbench-progress-cell {
  display: grid;
  grid-template-columns: 38px minmax(72px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 118px;
}

.workbench-progress-cell span {
  color: #243041;
  font-size: 12px;
  font-weight: 800;
}

.workbench-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.workbench-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111827;
}

.section-toolbar {
  margin: 4px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button,
.mini-button {
  min-height: 36px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 750;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border-color: var(--line-strong);
  background: #ffffff;
}

.secondary-button:hover,
.ghost-button:hover,
.mini-button:hover {
  border-color: #9bad9f;
  background: #f6f8f7;
}

.ghost-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.danger-button {
  border-color: #e1b8b4;
  background: #fff5f4;
  color: var(--red);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.mini-button {
  min-height: 29px;
  padding: 0 9px;
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.content-panel,
.work-card,
.empty-state,
.chat-panel,
.run-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 16px;
}

.metric-label,
.card-kicker,
.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.metric-value {
  margin-top: 10px;
  font-size: 29px;
  font-weight: 800;
}

.metric-note {
  margin: 6px 0 0;
  font-size: 12px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.content-panel {
  min-width: 0;
  padding: 16px;
}

.content-panel.workbench-it-panel {
  padding: 10px;
}

.realtime-meeting-control-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.meeting-analysis-input-panel {
  display: grid;
  gap: 12px;
}

.meeting-analysis-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(260px, 1.1fr) minmax(220px, 0.85fr) minmax(150px, 0.48fr) minmax(220px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
}

.meeting-analysis-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.meeting-analysis-summary > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.meeting-analysis-summary span,
.meeting-analysis-summary strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-analysis-summary span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.meeting-analysis-departments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meeting-analysis-content {
  min-height: 320px;
  max-height: 62vh;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.meeting-analysis-history-panel {
  display: grid;
  gap: 12px;
}

.meeting-analysis-history-row {
  cursor: pointer;
}

.meeting-analysis-history-row:hover {
  background: var(--panel-soft);
}

.realtime-meeting-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.realtime-meeting-mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.realtime-meeting-records-jump {
  margin-left: auto;
  white-space: nowrap;
}

.realtime-meeting-records-jump span {
  color: var(--muted);
  font-weight: 800;
}

.segmented-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
}

.segmented-button:hover {
  background: #f6f8f7;
}

.segmented-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.realtime-meeting-control-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 12px;
  align-items: end;
}

.realtime-meeting-topic-field {
  display: grid;
  gap: 8px;
  margin: 0;
  font-weight: 800;
}

.realtime-meeting-topic-field input {
  width: min(560px, 100%);
}

.realtime-meeting-feishu-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr);
  gap: 10px;
}

.realtime-meeting-mode-note,
.realtime-meeting-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-panel);
  color: var(--muted);
  font-size: 13px;
}

.realtime-meeting-mode-note strong,
.realtime-meeting-session strong {
  color: var(--ink);
}

.realtime-meeting-audio-monitor {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(39, 116, 90, 0.24);
  border-radius: 8px;
  background: rgba(39, 116, 90, 0.06);
}

.realtime-meeting-audio-monitor strong,
.realtime-meeting-audio-monitor span {
  display: block;
}

.realtime-meeting-audio-monitor span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.realtime-meeting-audio-monitor audio {
  width: 100%;
  min-width: 0;
}

.realtime-meeting-session {
  align-items: flex-start;
  color: var(--ink);
}

.realtime-meeting-session > div:first-child {
  display: grid;
  gap: 4px;
}

.realtime-meeting-records-panel {
  margin-top: 12px;
}

.realtime-meeting-records-table th,
.realtime-meeting-records-table td {
  white-space: nowrap;
}

.realtime-meeting-mic-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(223, 69, 69, 0.28);
  border-radius: 8px;
  background: rgba(223, 69, 69, 0.06);
  color: var(--ink);
  font-size: 13px;
}

.realtime-meeting-mic-help .secondary-button {
  min-height: 32px;
  padding: 0 12px;
}

.required-star {
  color: #dc2626;
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.realtime-meeting-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  grid-template-rows: minmax(240px, auto) minmax(260px, auto);
  gap: 12px;
  align-items: stretch;
}

.realtime-meeting-transcript-panel {
  grid-row: 1 / span 2;
}

.realtime-meeting-transcript,
.realtime-meeting-insights,
.realtime-meeting-notes-panel textarea {
  min-height: 220px;
}

.realtime-meeting-transcript {
  max-height: 560px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.realtime-meeting-transcript-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.realtime-meeting-transcript-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.realtime-meeting-transcript-row p,
.realtime-meeting-interim {
  margin: 0;
  line-height: 1.7;
}

.realtime-meeting-interim {
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft-panel);
}

.realtime-meeting-insights {
  display: grid;
  align-content: start;
  gap: 12px;
}

.realtime-meeting-topic {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-panel);
  font-weight: 800;
}

.realtime-meeting-insight-block {
  display: grid;
  gap: 8px;
}

.realtime-meeting-insight-block h3 {
  margin: 0;
  font-size: 15px;
}

.realtime-meeting-insight-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.realtime-meeting-insight-block li {
  line-height: 1.6;
}

.realtime-meeting-notes-panel textarea {
  width: 100%;
  resize: vertical;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.task-status.success {
  color: #15803d;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.objective-list,
.task-list,
.flow-list,
.people-list,
.comment-list,
.talent-list,
.meeting-list,
.task-card-list,
.tasklist-list {
  display: grid;
  gap: 10px;
}

.people-sync-status {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  background: #f6faf7;
  color: #53625b;
  font-size: 13px;
  line-height: 1.5;
}

.people-sync-status.error {
  border-color: #f0b9b7;
  background: #fff4f3;
  color: #a23b36;
}

.people-table a,
.text-link-button {
  color: var(--accent);
  text-decoration: none;
  font: inherit;
}

.text-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.people-table a:hover,
.text-link-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.people-account-tabs {
  justify-content: flex-start;
  margin: 10px 0 12px;
}

.auth-user-table td {
  white-space: nowrap;
}

.status-toggle-button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #d5deea;
  border-radius: 6px;
  background: #ffffff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 750;
}

.status-toggle-button.enabled {
  border-color: #a7d8bc;
  color: #237348;
  background: #effaf2;
}

.status-toggle-button.disabled {
  border-color: #e5e7eb;
  color: #8a94a4;
  background: #f5f7fa;
}

.objective-card,
.task-row,
.task-card,
.tasklist-row,
.flow-card,
.person-row,
.comment-row,
.talent-row,
.meeting-card,
.template-row,
.indicator-row,
.subtask-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.objective-card,
.flow-card,
.comment-row,
.talent-row,
.meeting-card,
.task-card {
  padding: 14px;
}

.task-row,
.tasklist-row,
.person-row,
.template-row,
.indicator-row,
.subtask-row {
  padding: 12px;
}

.card-top,
.row-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.card-title,
.row-title {
  margin: 0;
  font-weight: 800;
}

.card-meta,
.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f1;
  color: #45544c;
  font-size: 12px;
  font-weight: 700;
}

.pill.green {
  background: #e5f3ed;
  color: var(--accent-dark);
}

.pill.blue {
  background: #e8eef7;
  color: var(--blue);
}

.pill.amber {
  background: #fff0d9;
  color: var(--amber);
}

.pill.red {
  background: #fae8e6;
  color: var(--red);
}

.pill.purple {
  background: #efe9f7;
  color: var(--purple);
}

.progress-wrap {
  margin-top: 12px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.progress-track {
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e7ece9;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.progress-fill.amber {
  background: var(--amber);
}

.progress-fill.red {
  background: var(--red);
}

.indicator-list,
.subtask-list,
.template-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.indicator-row,
.subtask-row {
  background: var(--panel-soft);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.kanban-column {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 10px;
}

.kanban-column h3 {
  margin-bottom: 10px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.mini-table th {
  color: var(--muted);
  font-size: 12px;
}

.risk-list {
  display: grid;
  gap: 8px;
}

.risk-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.empty-state {
  padding: 28px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.readonly-form-value {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
}

.compact-form {
  display: grid;
  gap: 10px;
}

.entity-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
}

.entity-dialog::backdrop {
  background: rgba(10, 16, 13, 0.45);
}

.dialog-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(84vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(15, 26, 20, 0.25);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.dialog-header h2 {
  margin: 0;
}

.dialog-body {
  overflow: auto;
  padding: 16px;
}

.prompt-editor-dialog {
  width: min(1180px, calc(100vw - 40px));
}

.prompt-editor-dialog .dialog-card {
  max-height: calc(100vh - 28px);
}

.prompt-editor-dialog .dialog-header,
.prompt-editor-dialog .dialog-actions {
  padding: 10px 14px;
}

.prompt-editor-dialog .dialog-body {
  padding: 10px 14px;
}

.prompt-dialog-layout {
  display: grid;
  gap: 12px;
}

.prompt-dialog-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.prompt-dialog-hero-image {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: 74px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.prompt-dialog-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prompt-dialog-hero strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.prompt-dialog-hero span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.prompt-editor-dialog .prompt-dialog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
}

.prompt-editor-dialog .form-grid textarea {
  min-height: 68px;
  resize: vertical;
}

.prompt-editor-dialog .form-grid .full textarea {
  min-height: 58px;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  min-height: 0;
}

.gpt-layout {
  height: 100%;
  min-height: 0;
}

.page[data-view="image-agent"] {
  height: calc(100vh - 94px);
  min-height: 0;
  overflow: hidden;
}

.page[data-view="gpt-agent"] {
  height: calc(100vh - 42px);
  min-height: 0;
  overflow: hidden;
}

.page[data-view="image-agent"] .agent-layout,
.page[data-view="gpt-agent"] .agent-layout {
  height: 100%;
  min-height: 0;
}

.page[data-view="hu-agent-chat"] {
  min-height: calc(100vh - 94px);
  overflow: visible;
}

.page[data-view="hu-agent-chat"] .agent-layout {
  height: calc(100vh - 128px);
  min-height: 560px;
}

.page[data-view="hu-agent-chat"] .gpt-chat-panel {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.page[data-view="hu-agent-chat"] .panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
}

.agent-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-entry-card,
.meeting-requirement-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.agent-entry-card {
  align-content: space-between;
  min-height: 210px;
}

.agent-entry-card h3 {
  margin-top: 12px;
  font-size: 20px;
}

.agent-hub-page {
  display: grid;
  gap: 12px;
}

.agent-hub-table {
  min-width: 1080px;
}

.agent-hub-table th:nth-child(1),
.agent-hub-table td:nth-child(1) {
  width: 15%;
  min-width: 140px;
}

.agent-hub-table th:nth-child(2),
.agent-hub-table td:nth-child(2) {
  width: 10%;
  min-width: 100px;
  white-space: nowrap;
}

.agent-hub-table th:nth-child(3),
.agent-hub-table td:nth-child(3) {
  width: 35%;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.agent-hub-table th:nth-child(4),
.agent-hub-table td:nth-child(4) {
  width: 10%;
  min-width: 92px;
}

.agent-hub-table th:nth-child(5),
.agent-hub-table td:nth-child(5) {
  width: 11%;
  min-width: 112px;
  text-align: center;
  white-space: nowrap;
}

.agent-hub-table th:last-child,
.agent-hub-table td:last-child {
  width: 19%;
  min-width: 180px;
  text-align: center;
}

.agent-hub-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.listing-agent-page {
  align-content: start;
}

.listing-agent-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
  align-items: start;
}

.listing-analysis-form {
  display: grid;
  gap: 14px;
}

.listing-analysis-form.dragging .listing-upload-zone {
  border-color: var(--accent);
  background: #f3f7fb;
}

.listing-upload-zone {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 136px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  text-align: center;
}

.listing-upload-zone strong {
  color: var(--ink);
  font-size: 16px;
}

.design-compare-page {
  align-content: start;
}

.design-compare-layout {
  display: block;
}

.design-compare-hero-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.design-compare-form {
  display: grid;
  gap: 14px;
}

.design-compare-top-row,
.design-compare-middle-row,
.design-compare-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.design-compare-middle-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.design-compare-output-panel {
  display: grid;
  gap: 10px;
}

.design-compare-form.dragging .design-compare-upload-zone,
.design-compare-upload-zone.dragging {
  border-color: var(--accent);
  background: #f3f7fb;
}

.compact-row {
  margin-bottom: 8px;
}

.compact-row h3 {
  margin: 0;
  font-size: 15px;
}

.design-compare-upload-title-actions,
.design-compare-analysis-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.design-compare-analysis-actions {
  flex-wrap: wrap;
}

.compact-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.design-compare-upload-block,
.design-compare-field {
  display: grid;
  gap: 8px;
}

.design-compare-field span {
  color: var(--ink);
  font-weight: 800;
}

.design-compare-upload-zone {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  text-align: center;
}

.design-compare-upload-zone strong {
  color: var(--ink);
  font-size: 16px;
}

.design-compare-image-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.design-compare-image-empty {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.design-compare-image-chip {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.design-compare-image-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.design-compare-image-chip button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.design-compare-output-text {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.75;
}

.design-compare-output-text.comparison {
  min-height: 300px;
}

.design-compare-actions-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.design-compare-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.design-compare-history-panel,
.design-compare-conversation-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.design-compare-history-list {
  display: grid;
  gap: 12px;
}

.design-compare-history-table .link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.design-compare-conversation-list {
  display: grid;
  gap: 10px;
}

.design-compare-conversation-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  white-space: pre-wrap;
}

.design-compare-conversation-item.user {
  background: #eef6f0;
}

.listing-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.listing-image-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.listing-image-chip {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.listing-image-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-image-chip span,
.listing-image-chip button {
  position: absolute;
  top: 6px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.listing-image-chip span {
  left: 6px;
}

.listing-image-chip button {
  right: 6px;
  border: 0;
}

.listing-form-actions {
  display: flex;
  gap: 8px;
}

.listing-form-actions .primary-button {
  flex: 1;
}

.listing-report-panel {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.listing-report-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 420px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.listing-report-empty.failed {
  border-color: #f1b8b8;
  background: #fff7f7;
  color: var(--red);
}

.listing-score-ring {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 10px solid #d9e1ec;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
}

.listing-score-ring strong {
  font-size: 28px;
  line-height: 1;
}

.listing-score-ring span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.listing-score-ring.good {
  border-color: #25b978;
}

.listing-score-ring.warn {
  border-color: var(--amber);
}

.listing-score-ring.risk {
  border-color: var(--red);
}

.listing-score-ring.pending {
  border-color: #d9e1ec;
}

.listing-dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 720px;
}

.listing-dimension-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  text-align: left;
}

.listing-dimension-card span {
  color: var(--muted);
  font-size: 12px;
}

.listing-report-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.listing-report-summary h2 {
  margin: 8px 0;
}

.listing-report-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.listing-urgent-box {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #f0d6d6;
  border-radius: 8px;
  background: #fff7f7;
}

.listing-urgent-box h3 {
  margin: 0;
  color: #8f2c2c;
}

.listing-urgent-box ul,
.listing-list-block ul {
  margin: 0;
  padding-left: 18px;
}

.listing-urgent-box li,
.listing-list-block li {
  margin: 6px 0;
}

.listing-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.listing-analysis-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.listing-analysis-card.empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.listing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.listing-card-head h3 {
  margin: 0;
  font-size: 15px;
}

.listing-card-score {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.listing-card-score.good {
  background: #dff5ec;
}

.listing-card-score.warn {
  background: #fff0d9;
}

.listing-card-score.risk {
  background: #fae8e6;
  color: var(--red);
}

.listing-card-body {
  display: grid;
  grid-template-columns: minmax(120px, 0.46fr) minmax(0, 1fr);
  gap: 12px;
}

.listing-card-media {
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fb;
}

.listing-card-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.listing-card-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 180px;
  color: var(--muted);
}

.listing-card-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.listing-list-block,
.listing-suggestion {
  display: grid;
  gap: 6px;
}

.listing-list-block.pros strong {
  color: #137a51;
}

.listing-list-block.issues strong {
  color: #a34242;
}

.listing-suggestion {
  padding: 10px;
  border-radius: 8px;
  background: #f4f7ff;
}

.listing-suggestion strong {
  color: var(--ink);
}

.listing-suggestion p {
  margin: 0;
}

.listing-raw-answer pre {
  white-space: pre-wrap;
}

.page[data-view="cowart-canvas"] {
  height: calc(100vh - 42px);
  min-height: 0;
  overflow: hidden;
}

.cowart-landing {
  display: grid;
  align-content: start;
  gap: 56px;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  overflow: auto;
  padding: 24px 28px;
  background: #ffffff;
}

.page[data-view="gpt-agent"] .gpt-chat-log,
.page[data-view="hu-agent-chat"] .gpt-chat-log,
.page[data-view="cowart-canvas"] .cowart-landing,
.page[data-view="cowart-canvas"] .cowart-chat-log {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page[data-view="gpt-agent"] .gpt-chat-log::-webkit-scrollbar,
.page[data-view="hu-agent-chat"] .gpt-chat-log::-webkit-scrollbar,
.page[data-view="cowart-canvas"] .cowart-landing::-webkit-scrollbar,
.page[data-view="cowart-canvas"] .cowart-chat-log::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cowart-landing-hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 920px);
  margin: 0 auto;
}

.cowart-landing-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.cowart-landing-form {
  display: grid;
  gap: 10px;
  width: min(100%, 720px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.cowart-landing-form.dragging,
.cowart-composer.dragging {
  border-color: var(--ink);
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.cowart-landing-form textarea {
  min-height: 88px;
  resize: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.cowart-landing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cowart-landing-actions .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
}

.cowart-landing-actions .primary-icon {
  background: var(--ink);
  color: #ffffff;
}

.cowart-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cowart-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  background: #ffffff;
}

.cowart-projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cowart-projects-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.cowart-projects-head span {
  color: var(--muted);
  font-size: 13px;
}

.cowart-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.cowart-project-pagination {
  grid-column: 1 / -1;
}

.cowart-project-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.cowart-project-thumb {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 14px;
}

.cowart-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cowart-project-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cowart-project-card small {
  color: var(--muted);
  font-size: 12px;
}

.cowart-project-menu-wrap {
  position: absolute;
  right: 10px;
  bottom: 34px;
  z-index: 5;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

.cowart-project-more {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.94);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.cowart-project-card:hover .cowart-project-more,
.cowart-project-card:focus-within .cowart-project-more,
.cowart-project-menu-wrap.open .cowart-project-more {
  opacity: 1;
}

.cowart-project-more:hover {
  background: #e5e7eb;
}

.cowart-project-menu {
  display: none;
  min-width: 138px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
}

.cowart-project-menu-wrap.open .cowart-project-menu {
  display: grid;
  gap: 4px;
}

.cowart-project-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.cowart-project-menu button:hover {
  background: #f8fafc;
}

.cowart-project-menu button.danger {
  color: #ef4444;
}

.cowart-project-new {
  position: relative;
  align-content: start;
}

.cowart-project-new::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fafafa;
}

.cowart-project-new::after {
  content: "+";
  position: absolute;
  top: calc((100% - 48px) * 0.28);
  left: 50%;
  color: var(--muted);
  font-size: 34px;
  font-weight: 300;
  transform: translate(-50%, -50%);
}

.cowart-project-new .cowart-project-plus {
  position: absolute;
  opacity: 0;
}

.cowart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 336px);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.cowart-frame-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.cowart-add-input-button {
  position: absolute;
  z-index: 1300;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.cowart-add-input-button::before {
  content: "+";
  font-size: 15px;
  line-height: 1;
}

.cowart-add-input-button:hover {
  background: var(--ink);
}

.cowart-add-input-button[hidden] {
  display: none;
}

.cowart-canvas-add-input-button {
  top: 12px;
  right: 12px;
}

.cowart-frame-wrap:hover .cowart-canvas-add-input-button:not([hidden]),
.cowart-canvas-add-input-button:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.cowart-react-mount {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.cowart-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}

.cowart-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}

.cowart-chat-head > div:first-child {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
  row-gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.cowart-project-title-input {
  color: var(--text);
  flex: 0 1 auto;
  min-width: 42px;
  max-width: 148px;
  height: 24px;
  padding: 0 4px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cowart-project-title-input:hover,
.cowart-project-title-input:focus {
  border-color: var(--line-strong);
  background: #f8fafc;
  outline: none;
}

.cowart-project-title-input:disabled {
  color: var(--muted);
  cursor: wait;
}

.cowart-chat-head span,
#cowartUploadStatus {
  color: var(--muted);
  font-size: 11px;
}

.cowart-chat-head > div:first-child > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cowart-project-fields {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.cowart-project-fields::-webkit-scrollbar {
  display: none;
}

.cowart-project-field-link,
.cowart-project-gallery-link,
.cowart-sku-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: max-content;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.cowart-sku-picker {
  position: relative;
  gap: 4px;
  padding: 0 5px 0 7px;
  border-radius: 6px;
  background: #f8fafc;
}

.cowart-sku-picker label {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cowart-sku-picker input {
  width: 96px;
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  outline: none;
}

.cowart-sku-picker:focus-within {
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}

.cowart-sku-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 80;
  display: grid;
  width: min(320px, 78vw);
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.cowart-sku-results[hidden] {
  display: none;
}

.cowart-sku-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 11px;
}

.cowart-sku-selected span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cowart-sku-selected button,
.cowart-sku-result {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.cowart-sku-selected button {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.cowart-sku-result {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  text-align: left;
}

.cowart-sku-result:hover {
  background: #f3f4f6;
}

.cowart-sku-result strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cowart-sku-result span,
.cowart-sku-empty {
  color: var(--muted);
  font-size: 11px;
}

.cowart-project-field-link:hover,
.cowart-project-gallery-link:hover {
  background: #f3f4f6;
  text-decoration: none;
}

.cowart-project-field-link.is-disabled,
.cowart-project-field-link[aria-disabled="true"],
.cowart-project-gallery-link.is-disabled,
.cowart-project-gallery-link[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
  background: #f8fafc;
}

.cowart-chat-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  margin-left: auto;
}

.cowart-chat-actions .icon-button {
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.cowart-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background: #fbfcfe;
}

.cowart-chat-log .message {
  max-width: 100%;
}

.cowart-chat-log .message-meta {
  display: none;
}

.cowart-drive-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.cowart-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.cowart-attachment-tray {
  max-height: 92px;
  overflow: auto;
  scrollbar-width: none;
}

.cowart-attachment-tray::-webkit-scrollbar {
  display: none;
}

.cowart-input-image-wrap {
  position: relative;
  display: block;
  width: min(520px, 100%);
  max-width: 100%;
  margin-top: 10px;
}

.cowart-input-image-wrap .gpt-result-image-button {
  display: block;
  width: 100%;
  max-width: 100%;
}

.cowart-input-image-wrap .cowart-add-input-button {
  top: 8px;
  right: 8px;
}

.cowart-input-image-wrap:hover .cowart-add-input-button,
.cowart-input-image-wrap:focus-within .cowart-add-input-button {
  opacity: 1;
  pointer-events: auto;
}

.cowart-composer textarea {
  width: 100%;
  min-height: 112px;
  max-height: 160px;
  resize: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: var(--ink);
}

.cowart-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cowart-composer-tools {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.cowart-composer-tools .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .cowart-page {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(420px, 1fr) minmax(280px, 36vh);
  }

  .cowart-frame-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.agent-setting-page {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1fr);
  min-height: calc(100vh - 94px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.agent-setting-editor,
.agent-setting-preview {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.agent-setting-editor {
  display: grid;
  align-content: start;
  gap: 18px;
  border-right: 1px solid var(--line);
}

.project-agent-setting-page {
  grid-template-columns: minmax(420px, 0.88fr) minmax(520px, 1.12fr);
}

.project-agent-tabs-page {
  min-height: calc(100vh - 94px);
  padding: 8px 0 24px;
}

.project-agent-tabs-card {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: calc(100vh - 126px);
  border: 1px solid #d8dde3;
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
}

.project-agent-tabs-card .agent-setting-head {
  padding: 22px 40px 10px;
}

.project-agent-tab-strip {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 38px;
  border-bottom: 1px solid #dfe3e8;
  overflow-x: auto;
}

.project-agent-tab-strip button {
  min-width: 160px;
  min-height: 64px;
  margin-bottom: -1px;
  border: 1px solid #dfe3e8;
  border-bottom-color: #dfe3e8;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  color: #69707a;
  font-size: 23px;
  font-weight: 600;
  cursor: pointer;
}

.project-agent-tab-strip button.active {
  border-bottom-color: #ffffff;
  color: #20242a;
  font-weight: 850;
}

.project-agent-tab-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 560px;
  padding: 26px 40px 28px;
}

.project-agent-tab-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dfe3e8;
}

.project-agent-tab-heading strong {
  color: #242a31;
  font-size: 27px;
  letter-spacing: 0;
}

.project-agent-tab-heading span {
  margin-left: 20px;
  color: #9aa2ad;
  font-size: 20px;
  font-weight: 500;
}

.project-agent-edit-button {
  min-width: 112px;
  min-height: 48px;
  border-radius: 24px;
  font-size: 18px;
}

.project-agent-edit-button::before {
  content: "✎";
  margin-right: 8px;
}

.project-agent-tab-editor {
  width: 100%;
  min-height: 520px;
  margin-top: 22px;
  border: 0;
  border-right: 18px solid #f4f5f6;
  border-radius: 0;
  padding: 6px 28px 6px 0;
  background: #ffffff;
  color: #68717b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 24px;
  line-height: 1.8;
  resize: vertical;
}

.project-agent-tab-editor:focus {
  outline: 2px solid rgba(36, 106, 255, 0.18);
  outline-offset: 4px;
}

.project-agent-tab-actions {
  padding: 0 40px 28px;
}

.project-agent-knowledge-tab-panel {
  min-height: 620px;
}

.project-agent-setting-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-agent-setting-file-field {
  min-width: 0;
}

.agent-setting-head,
.agent-knowledge-head,
.agent-knowledge-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.agent-setting-head h2,
.agent-setting-head p,
.agent-knowledge-head h2,
.agent-knowledge-head p {
  margin: 0;
}

.agent-setting-head p,
.agent-knowledge-head p,
.agent-knowledge-head span,
.agent-knowledge-editor-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.agent-setting-top-actions {
  display: inline-flex;
  flex-shrink: 0;
  gap: 10px;
}

.agent-setting-file-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-setting-file-tabs button,
.agent-knowledge-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.agent-setting-file-tabs button {
  padding: 12px;
}

.agent-setting-file-tabs button.active,
.agent-knowledge-list button.active {
  border-color: var(--accent);
  background: #eef6ff;
}

.agent-setting-file-tabs strong,
.agent-knowledge-list strong {
  font-size: 14px;
}

.agent-setting-file-tabs span,
.agent-knowledge-list span {
  color: var(--muted);
  font-size: 12px;
}

.project-agent-setting-textarea {
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.project-agent-setting-file-field .project-agent-setting-textarea {
  min-height: 260px;
}

.agent-setting-tabs {
  justify-self: center;
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: 8px;
  background: #f3f4f6;
}

.agent-setting-tabs span,
.agent-setting-tabs strong {
  min-width: 78px;
  padding: 10px 18px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.agent-setting-tabs span {
  color: var(--muted);
  font-weight: 750;
}

.agent-setting-tabs strong {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.agent-setting-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.agent-setting-field em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.agent-setting-field input,
.agent-setting-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.agent-setting-field input {
  min-height: 40px;
  padding: 0 12px;
}

.agent-setting-field textarea {
  min-height: 96px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.agent-setting-field .agent-setting-instructions {
  min-height: 260px;
}

.agent-knowledge-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f8;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.agent-setting-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.agent-setting-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fafafa;
}

.project-agent-knowledge-panel {
  gap: 16px;
  padding: 20px;
}

.agent-knowledge-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.project-agent-knowledge-tab-panel .agent-knowledge-body {
  min-height: 520px;
}

.project-agent-knowledge-tab-panel .agent-knowledge-list,
.project-agent-knowledge-tab-panel .agent-knowledge-editor {
  max-height: 560px;
}

.agent-knowledge-list,
.agent-knowledge-editor {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.agent-knowledge-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.agent-knowledge-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.agent-knowledge-list button {
  padding: 10px;
}

.agent-raw-file-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.agent-raw-file-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-knowledge-editor {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
}

.agent-knowledge-editor textarea {
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  resize: none;
  color: var(--ink);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.project-agent-tabs-page {
  min-height: calc(100vh - 94px);
  padding: 0;
}

.project-agent-tabs-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  min-height: calc(100vh - 104px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-agent-tabs-card .agent-setting-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.project-agent-tab-strip {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  overflow-x: auto;
}

.project-agent-tab-strip button {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 138px;
  min-height: 52px;
  margin-bottom: -1px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.project-agent-tab-strip button strong {
  color: inherit;
  font-size: 13px;
}

.project-agent-tab-strip button span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-agent-tab-strip button.active {
  border-color: var(--line);
  border-bottom-color: var(--panel);
  background: var(--panel);
  color: var(--ink);
}

.project-agent-tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 0;
}

.project-agent-file-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  overflow: auto;
}

.project-agent-sidebar-section {
  display: grid;
  gap: 8px;
}

.project-agent-sidebar-section > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.project-agent-file-nav {
  display: grid;
  gap: 8px;
}

.project-agent-file-nav button,
.project-agent-knowledge-nav {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.project-agent-file-nav button.active,
.project-agent-knowledge-nav.active {
  border-color: rgba(37, 99, 235, 0.42);
  background: #eef5ff;
}

.project-agent-file-nav strong,
.project-agent-knowledge-nav strong {
  color: var(--ink);
  font-size: 13px;
}

.project-agent-file-nav span,
.project-agent-knowledge-nav small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-agent-editor-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}

.project-agent-tab-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.project-agent-tab-heading strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
}

.project-agent-tab-heading span {
  margin-left: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.project-agent-tab-heading-actions {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.project-agent-edit-button {
  min-width: 76px;
  min-height: 34px;
  border-radius: 8px;
  font-size: 13px;
}

.project-agent-edit-button::before {
  content: "";
  margin-right: 0;
}

.project-agent-tab-editor {
  width: 100%;
  min-height: 0;
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  resize: none;
}

.project-agent-model-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  align-content: start;
}

.project-agent-model-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-agent-model-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-agent-model-form input,
.project-agent-model-form select,
.project-agent-model-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.project-agent-model-form textarea {
  min-height: 132px;
  resize: vertical;
}

.project-agent-model-form .project-agent-model-notes {
  grid-column: 1 / -1;
}

.project-agent-identity-panel {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  align-content: start;
}

.project-agent-identity-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.project-agent-identity-card div,
.project-agent-identity-fields {
  display: grid;
  gap: 10px;
}

.project-agent-identity-card span,
.project-agent-identity-fields span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-agent-identity-card strong {
  color: var(--ink);
  font-size: 20px;
}

.project-agent-identity-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-agent-identity-card strong.success {
  color: #176348;
}

.project-agent-identity-card strong.error {
  color: #9f241a;
}

.project-agent-identity-card p,
.project-agent-identity-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.project-agent-identity-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-agent-identity-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-agent-identity-fields input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.project-agent-feishu-create {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.project-agent-feishu-qr-pane {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f5f8f7;
}

.project-agent-feishu-qr-frame {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe7e4;
  border-radius: 8px;
  background: #ffffff;
}

.project-agent-feishu-qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-agent-feishu-qr-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
}

.project-agent-feishu-qr-link:focus-visible {
  outline: 3px solid #33745f;
  outline-offset: -3px;
}

.project-agent-feishu-qr-result {
  display: grid;
  gap: 8px;
  max-width: 210px;
  padding: 18px;
  text-align: center;
}

.project-agent-feishu-qr-result strong {
  color: var(--ink);
  font-size: 18px;
}

.project-agent-feishu-qr-result span,
.project-agent-feishu-qr-meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.project-agent-feishu-qr-result.success strong {
  color: #13795b;
}

.project-agent-feishu-qr-result.error strong {
  color: #b42318;
}

.project-agent-feishu-qr-meta {
  display: grid;
  gap: 3px;
  text-align: center;
}

.project-agent-feishu-qr-meta strong {
  color: var(--ink);
  font-size: 14px;
}

.project-agent-feishu-create-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 28px 30px;
}

.project-agent-feishu-create-copy h3,
.project-agent-feishu-create-copy p {
  margin: 0;
}

.project-agent-feishu-create-copy h3 {
  color: var(--ink);
  font-size: 21px;
  letter-spacing: 0;
}

.project-agent-feishu-create-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.project-agent-feishu-registration-status {
  border-left: 3px solid #8ba39b;
  padding: 8px 10px;
  background: #f5f8f7;
  color: #40524c;
  font-size: 13px;
  line-height: 1.5;
}

.project-agent-feishu-registration-status.success {
  border-left-color: #1f8f6a;
  background: #f0faf6;
  color: #176348;
}

.project-agent-feishu-registration-status.error {
  border-left-color: #d92d20;
  background: #fff5f4;
  color: #9f241a;
}

.project-agent-feishu-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.project-agent-feishu-create-actions .primary-button,
.project-agent-feishu-create-actions .secondary-button {
  min-height: 38px;
}

.project-agent-tab-actions {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.project-agent-knowledge-tab-panel .agent-knowledge-body {
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  margin-top: 12px;
}

.project-agent-knowledge-tab-panel .agent-knowledge-list,
.project-agent-knowledge-tab-panel .agent-knowledge-editor {
  max-height: none;
}

.agent-knowledge-list,
.agent-knowledge-editor {
  border-radius: 8px;
  background: var(--panel);
}

.agent-knowledge-list button {
  min-height: 54px;
  padding: 10px;
}

.agent-knowledge-file-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.agent-knowledge-file-card.active {
  border-color: var(--accent);
  background: #eef6ff;
}

.agent-knowledge-list .agent-knowledge-file-open {
  min-height: 54px;
  border: 0;
  padding: 10px 94px 10px 10px;
  background: transparent;
}

.agent-knowledge-list .agent-knowledge-file-edit {
  position: absolute;
  top: 8px;
  right: 8px;
  width: auto;
  min-height: 28px;
  border-color: var(--line-strong);
  padding: 0 9px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-knowledge-list .agent-knowledge-file-edit:hover {
  color: var(--accent);
}

.agent-knowledge-list .agent-knowledge-file-delete {
  position: absolute;
  top: 37px;
  right: 8px;
  width: auto;
  min-height: 28px;
  border-color: #fca5a5;
  padding: 0 10px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.agent-knowledge-list .agent-knowledge-file-delete:hover {
  border-color: #f87171;
  background: #ffe4e6;
}

.agent-knowledge-editor {
  padding: 12px;
}

.agent-knowledge-editor textarea {
  min-height: 0;
  resize: none;
}

.agent-knowledge-editor textarea[readonly] {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
}

.project-agent-tabs-page {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 92px);
  padding: 0;
  background: #fafafa;
}

.project-agent-main-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
}

.project-agent-profile-card,
.project-agent-tabs-card {
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.project-agent-profile-card {
  position: sticky;
  top: 12px;
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: calc(100vh - 104px);
  padding: 28px 26px;
  text-align: center;
}

.project-agent-avatar-wrap {
  position: relative;
  justify-self: center;
  width: 116px;
  height: 132px;
}

.project-agent-avatar {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 3px solid #f2c7b7;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 35%, #fff 0 12%, transparent 13%),
    linear-gradient(145deg, #f8d9cf, #eaf3ff 58%, #e9edf7);
  color: #1f2937;
  font-size: 44px;
  font-weight: 900;
}

.project-agent-avatar-wrap > span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  min-width: 58px;
  border-radius: 999px;
  padding: 5px 12px;
  background: #efb18f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.project-agent-profile-card h2 {
  margin: 0;
  color: #25282d;
  font-size: 28px;
  line-height: 1.2;
}

.project-agent-profile-card p {
  margin: -10px 0 0;
  color: #8c949f;
  font-size: 14px;
  line-height: 1.7;
}

.project-agent-profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.project-agent-profile-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #eceff3;
  border-radius: 999px;
  padding: 0 12px;
  background: #ffffff;
  color: #6b7280;
  font-size: 13px;
}

.project-agent-status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #6b7280;
}

.project-agent-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0 4px;
}

.project-agent-profile-stats div {
  display: grid;
  gap: 4px;
}

.project-agent-profile-stats strong {
  color: #23272f;
  font-size: 26px;
  line-height: 1;
}

.project-agent-profile-stats span {
  color: #7d8591;
  font-size: 13px;
}

.project-agent-profile-chat,
.project-agent-profile-center {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

.project-agent-profile-chat {
  border: 0;
  background: #24282b;
  color: #ffffff;
  font-size: 15px;
}

.project-agent-profile-center {
  margin-top: -12px;
  border: 1px solid #e6e8ec;
  background: #ffffff;
  color: #606977;
}

.project-agent-profile-section {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  text-align: left;
}

.project-agent-profile-section h3 {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
}

.project-agent-profile-heatmap {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 10px;
  color: #8c949f;
  font-size: 12px;
}

.project-agent-heat-labels {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 7px;
  padding-top: 2px;
}

.project-agent-heat-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 7px;
}

.project-agent-heat-cell {
  aspect-ratio: 1;
  border-radius: 7px;
  background: #eef0f2;
}

.project-agent-heat-cell.level-1 {
  background: #dde8f8;
}

.project-agent-heat-cell.level-2 {
  background: #b8cdf2;
}

.project-agent-heat-months {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding-right: 22px;
}

.project-agent-tabs-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: auto;
  overflow: hidden;
}

.project-agent-tabs-card .agent-setting-head {
  display: none;
}

.project-agent-tab-strip {
  display: grid;
  grid-template-columns: repeat(11, minmax(max-content, 1fr));
  gap: 3px;
  padding: 0 10px;
  border-bottom: 0;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: thin;
}

.project-agent-tab-strip button {
  min-width: 0;
  min-height: 38px;
  margin-bottom: 0;
  padding: 7px 5px;
  border: 1px solid #e7e7e7;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: #ffffff;
  color: #7a828d;
  text-align: center;
}

.project-agent-tab-strip button + button {
  margin-left: 0;
}

.project-agent-tab-strip button strong {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.project-agent-tab-strip button span {
  display: none;
}

.project-agent-tab-strip button.active {
  border-color: #e7e7e7;
  border-top-color: transparent;
  background: #ffffff;
  color: #24272f;
  box-shadow: inset 0 -2px 0 #24272f;
}

.project-agent-editor-pane {
  padding: 18px 22px 22px;
}

.project-agent-tab-heading {
  align-items: center;
  min-height: 54px;
  margin-bottom: 10px;
  padding-bottom: 14px;
}

.project-agent-tab-heading strong {
  display: inline;
  margin: 0 12px 0 0;
  font-size: 18px;
}

.project-agent-tab-heading span {
  display: inline;
  color: #9aa1aa;
  font-size: 14px;
}

.project-agent-edit-button,
.project-agent-tab-heading-actions .compact-pill {
  border-radius: 999px;
}

.project-agent-tab-editor {
  min-height: 390px;
  border: 0;
  padding: 10px 0;
  color: #68707b;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.9;
}

.project-agent-identity-panel {
  max-width: 920px;
}

.project-agent-identity-card {
  background: #fbfcfd;
}

.project-agent-identity-fields input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-agent-tab-actions {
  display: none;
}

.project-agent-history-body,
.project-agent-scheduled-tasks-body,
.project-agent-skills-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  margin-top: 12px;
  overflow: auto;
}

.project-agent-history-table {
  min-width: 920px;
}

.project-agent-history-table th:nth-child(1),
.project-agent-history-table td:nth-child(1) {
  width: 34%;
}

.project-agent-history-table th:nth-child(2),
.project-agent-history-table td:nth-child(2) {
  width: 28%;
}

.project-agent-history-row {
  cursor: pointer;
}

.project-agent-history-row:hover,
.project-agent-history-row:focus-visible {
  background: #f7faff;
  outline: none;
}

.project-agent-history-row code {
  display: inline-block;
  max-width: 100%;
  border-radius: 6px;
  padding: 2px 6px;
  background: #f3f6fb;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.project-agent-schedule-add {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.project-agent-scheduled-tasks-table {
  min-width: 820px;
  table-layout: fixed;
}

.project-agent-scheduled-tasks-table th:nth-child(1),
.project-agent-scheduled-tasks-table td:nth-child(1) {
  width: 25%;
}

.project-agent-scheduled-tasks-table th:nth-child(2),
.project-agent-scheduled-tasks-table td:nth-child(2) {
  width: 55%;
}

.project-agent-scheduled-tasks-table th:nth-child(3),
.project-agent-scheduled-tasks-table td:nth-child(3) {
  width: 20%;
}

.project-agent-scheduled-task-row {
  cursor: pointer;
}

.project-agent-scheduled-task-row:hover,
.project-agent-scheduled-task-row:focus-visible {
  background: #f7faff;
  outline: none;
}

.project-agent-scheduled-task-row td:nth-child(2) span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.55;
}

.project-agent-scheduled-task-context {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-left: 3px solid #24272f;
  background: #f7f8fa;
}

.project-agent-scheduled-task-context div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.project-agent-scheduled-task-context div span,
.project-agent-scheduled-task-context p,
.project-agent-schedule-timezone {
  margin: 0;
  color: #737b86;
  font-size: 13px;
}

.project-agent-scheduled-task-context p {
  white-space: pre-wrap;
}

.project-agent-schedule-dialog .dialog-card {
  width: min(680px, calc(100vw - 32px));
}

.project-agent-schedule-form [hidden] {
  display: none;
}

.project-agent-skill-section {
  display: grid;
  gap: 10px;
}

.project-agent-skill-section h3 {
  margin: 0;
  font-size: 15px;
}

.project-agent-skill-list {
  display: grid;
  gap: 8px;
}

.project-agent-skill-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.project-agent-skill-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-agent-skill-card strong,
.project-agent-skill-card span,
.project-agent-skill-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-agent-skill-card span,
.project-agent-skill-card small {
  color: var(--muted);
  font-size: 12px;
}

.project-agent-skill-toggle-card {
  min-height: 72px;
}

.project-agent-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.project-agent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-agent-switch span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d5dae1;
  transition: background 0.18s ease;
}

.project-agent-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease;
}

.project-agent-switch input:checked + span {
  background: #2563eb;
}

.project-agent-switch input:checked + span::after {
  transform: translateX(20px);
}

.project-agent-switch input:disabled + span {
  opacity: 0.58;
  cursor: wait;
}

.agent-template-table code {
  display: inline-block;
  max-width: 220px;
  border-radius: 6px;
  padding: 2px 6px;
  background: #f3f6fb;
  color: #4b5563;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.agent-template-grid {
  display: grid;
  gap: 14px;
}

.agent-template-card {
  display: grid;
  gap: 16px;
}

.agent-template-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.agent-template-card-header h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.agent-template-card-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.agent-template-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.agent-template-meta code,
.agent-template-block code {
  display: inline-block;
  max-width: 100%;
  border-radius: 6px;
  padding: 2px 6px;
  background: #f3f6fb;
  color: #4b5563;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.agent-template-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agent-template-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.agent-template-block h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.agent-template-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-template-block li {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.agent-template-block li span,
.agent-template-block li code {
  min-width: 0;
}

.agent-template-skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}

.agent-template-block small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.agent-template-setting-page {
  margin-top: 0;
}

.agent-template-create-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.agent-template-create-panel h3 {
  margin: 0;
  font-size: 14px;
}

.agent-template-create-panel label {
  display: grid;
  gap: 6px;
}

.agent-template-create-panel label span {
  color: var(--muted);
  font-size: 12px;
}

.agent-template-create-panel input,
.agent-template-create-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.agent-template-create-panel textarea {
  min-height: 160px;
  resize: vertical;
}

.agent-template-create-panel input:focus,
.agent-template-create-panel textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.agent-template-create-panel button {
  width: 100%;
}

.agent-template-create-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.agent-template-readonly-panel .project-agent-file-sidebar button {
  cursor: default;
}

.agent-template-empty-editor {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-height: 360px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fbfcff;
}

.agent-template-empty-editor strong {
  font-size: 18px;
}

.agent-template-empty-editor p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.agent-template-empty-editor code,
.agent-template-file-grid code {
  border-radius: 6px;
  padding: 2px 6px;
  background: #f3f6fb;
  color: #4b5563;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.agent-template-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.agent-template-file-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.agent-template-file-grid article strong,
.agent-template-file-grid article span,
.agent-template-file-grid article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-template-file-grid article span,
.agent-template-file-grid article small {
  color: var(--muted);
  font-size: 12px;
}

.agent-template-model-preview input[readonly],
.agent-template-model-preview textarea[readonly] {
  background: #f8fafc;
}

@media (max-width: 980px) {
  .project-agent-tabs-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-agent-main-stack {
    order: 1;
  }

  .project-agent-profile-card {
    position: static;
    order: 2;
    min-height: 0;
  }

  .project-agent-tabs-card {
    min-height: auto;
  }

  .project-agent-tab-strip {
    grid-template-columns: repeat(11, max-content);
    padding-inline: 8px;
  }

  .project-agent-tab-strip button {
    min-width: max-content;
    padding-inline: 9px;
  }

  .project-agent-tab-panel,
  .project-agent-knowledge-tab-panel .agent-knowledge-body {
    grid-template-columns: 1fr;
  }

  .project-agent-scheduled-tasks-table {
    display: block;
    min-width: 0;
  }

  .project-agent-scheduled-tasks-table thead {
    display: none;
  }

  .project-agent-scheduled-tasks-table tbody {
    display: grid;
    gap: 8px;
  }

  .project-agent-scheduled-tasks-table tr {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e6e9ed;
    border-radius: 7px;
  }

  .project-agent-scheduled-tasks-table td,
  .project-agent-scheduled-tasks-table td:nth-child(1),
  .project-agent-scheduled-tasks-table td:nth-child(2),
  .project-agent-scheduled-tasks-table td:nth-child(3) {
    width: auto;
    padding: 0;
    border: 0;
  }

  .project-agent-scheduled-tasks-table td:nth-child(3) {
    color: #737b86;
    font-size: 13px;
  }

  .project-agent-identity-fields {
    grid-template-columns: 1fr;
  }

  .project-agent-identity-status-grid {
    grid-template-columns: 1fr;
  }

  .project-agent-feishu-create {
    grid-template-columns: 1fr;
  }

  .project-agent-feishu-qr-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-template-card-header,
  .agent-template-layout {
    grid-template-columns: 1fr;
  }

  .agent-template-meta {
    justify-items: start;
  }

  .project-agent-file-sidebar {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-agent-editor-pane {
    min-height: 560px;
  }
}

.agent-setting-preview h2 {
  margin: 0;
  font-size: 16px;
}

.agent-setting-preview-body {
  display: grid;
  place-items: center;
  min-height: 0;
}

.agent-preview-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(560px, 100%);
  color: var(--ink);
  text-align: center;
}

.agent-preview-icon {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  gap: 6px;
  color: #9aa1aa;
}

.agent-preview-icon span {
  width: 18px;
  height: 18px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.agent-preview-card h3 {
  margin: 0;
  font-size: 26px;
}

.agent-preview-card > span,
.agent-preview-card p {
  color: var(--muted);
}

.agent-preview-card p {
  max-width: 520px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.agent-preview-chat {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 80px;
}

.agent-preview-chat div {
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #8a94a3;
  text-align: left;
}

.meeting-requirement-list {
  display: grid;
  gap: 10px;
}

.meeting-schedule-panel,
.meeting-policy-panel,
.meeting-theme-panel {
  display: grid;
  gap: 14px;
}

.meeting-schedule-filters {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(240px, 1fr);
  gap: 12px;
  align-items: end;
}

.meeting-schedule-filters label {
  display: grid;
  gap: 6px;
}

.meeting-schedule-filters span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meeting-schedule-filters input,
.meeting-schedule-filters select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.meeting-schedule-table th:nth-child(1),
.meeting-schedule-table td:nth-child(1) {
  min-width: 260px;
}

.meeting-schedule-table th:nth-child(2),
.meeting-schedule-table td:nth-child(2) {
  min-width: 210px;
}

.meeting-schedule-table th:nth-child(3),
.meeting-schedule-table td:nth-child(3) {
  min-width: 110px;
}

.meeting-schedule-table th:nth-child(4),
.meeting-schedule-table td:nth-child(4) {
  min-width: 360px;
}

.meeting-schedule-table th:nth-child(5),
.meeting-schedule-table td:nth-child(5) {
  min-width: 150px;
}

.meeting-schedule-topic-input,
.meeting-schedule-time-input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.meeting-schedule-actions {
  align-items: center;
}

.meeting-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meeting-policy-field {
  display: grid;
  gap: 8px;
}

.meeting-policy-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meeting-policy-input {
  width: 100%;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
}

.meeting-requirement-row {
  grid-template-columns: minmax(160px, 0.7fr) minmax(280px, 1fr) minmax(160px, 0.62fr);
  align-items: start;
}

.meeting-theme-requirement-field {
  grid-column: span 2;
}

.meeting-requirement-row strong {
  display: block;
  margin-bottom: 6px;
}

.meeting-requirement-row > div > span {
  color: var(--muted);
  font-size: 12px;
}

.meeting-requirement-row label,
.meeting-type-row label {
  display: grid;
  gap: 6px;
}

.meeting-requirement-row input,
.meeting-requirement-row textarea,
.meeting-type-row select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.meeting-requirement-row input {
  min-height: 38px;
  padding: 0 10px;
}

.meeting-requirement-row textarea {
  min-height: 76px;
  padding: 10px;
  resize: vertical;
}

.meeting-type-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}

.meeting-type-row span,
.meeting-type-row label span {
  color: var(--muted);
  font-size: 12px;
}

.meeting-type-row select {
  min-height: 34px;
  padding: 0 8px;
}

.chat-panel,
.gallery-panel {
  min-width: 0;
  min-height: 0;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.gpt-chat-panel,
.page[data-view="image-agent"] .chat-panel {
  height: 100%;
  overflow: hidden;
}

.panel-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin-bottom: 4px;
}

.panel-header p {
  margin-bottom: 0;
}

.agent-panel-description {
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  min-height: 0;
  padding: 18px;
}

.gpt-chat-log {
  min-height: 0;
}

.message {
  max-width: 860px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.message.user {
  align-self: flex-end;
  background: #e9f1ec;
}

.message.error {
  border-color: #e3b8b3;
  background: #fff5f4;
}

.message-meta {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

#gptChatLog .message-meta {
  display: none;
}

.hu-agent-context-message {
  max-width: 100%;
  border-color: var(--line-strong);
  background: var(--panel);
}

#gptChatLog .hu-agent-context-message .message-meta {
  display: block;
  color: var(--muted);
}

.hu-agent-context-message .message-body {
  white-space: normal;
}

.hu-agent-context-summary {
  display: grid;
  gap: 4px;
}

.hu-agent-context-summary strong {
  color: var(--ink);
  font-size: 14px;
}

.hu-agent-context-summary span {
  color: var(--muted);
  font-size: 13px;
}

.hu-agent-context-details {
  margin-top: 10px;
}

.hu-agent-context-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.hu-agent-context-details pre {
  max-height: 220px;
  margin: 10px 0 0;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.message-body {
  white-space: pre-wrap;
  line-height: 1.65;
}

.generation-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: pre-wrap;
}

.generation-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid #d9e1ec;
  border-top-color: #111827;
  border-radius: 999px;
  animation: generation-spin 0.8s linear infinite;
}

.generation-loading-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.generation-loading-panel .generation-spinner {
  width: 24px;
  height: 24px;
}

.generation-loading-panel strong {
  color: var(--ink);
  font-size: 18px;
}

@keyframes generation-spin {
  to {
    transform: rotate(360deg);
  }
}

.message-body img {
  display: block;
  max-width: min(520px, 100%);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gpt-result-image-button {
  display: block;
  max-width: min(520px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gpt-result-image-button img {
  width: 100%;
  max-width: 100%;
}

.message-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 180px));
  gap: 10px;
  margin-top: 10px;
}

.message-attachment {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.message-attachment img {
  width: 100%;
  max-width: 180px;
  height: 132px;
  object-fit: cover;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.message-attachment > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-attachment-file {
  display: grid;
  width: 64px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #edf2f7;
  color: #667386;
  font-size: 12px;
  font-weight: 850;
}

.composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.composer > .prompt-queue-panel,
.composer > textarea,
.composer > .attachment-tray {
  grid-column: 1 / -1;
}

.composer textarea {
  width: 100%;
  min-height: 118px;
  max-height: 160px;
  resize: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
}

.gpt-judgement-note {
  align-self: center;
  justify-self: center;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.composer-actions {
  display: flex;
  justify-content: center;
}

.image-composer-actions {
  justify-content: center;
}

.agent-context-selectors {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  gap: 6px;
}

.agent-context-selectors label,
.agent-tool-picker,
.agent-route-picker {
  display: grid;
  gap: 4px;
}

.agent-context-selectors label span,
#agentContextStatus,
#gptAttachmentStatus,
#imageAttachmentStatus {
  color: var(--muted);
  font-size: 12px;
}

.agent-context-selectors select {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.agent-context-selectors button {
  min-height: 32px;
  white-space: nowrap;
}

.agent-context-selectors > .attachment-button,
.agent-context-selectors > .send-mode-control,
#gptAttachmentStatus {
  justify-self: start;
}

.agent-tool-picker,
.agent-route-picker {
  position: relative;
}

.agent-plus-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.agent-route-button {
  gap: 6px;
  padding: 0 12px;
}

.agent-route-button::after {
  content: "⌃";
  color: var(--muted);
  font-size: 12px;
}

.agent-tool-popover,
.agent-route-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 55;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.agent-tool-picker:hover .agent-tool-popover,
.agent-tool-picker:focus-within .agent-tool-popover,
.agent-route-picker:hover .agent-route-popover,
.agent-route-picker:focus-within .agent-route-popover {
  display: grid;
}

.agent-tool-popover {
  width: min(360px, calc(100vw - 96px));
  gap: 8px;
  padding: 10px;
}

.agent-tool-popover label span,
.agent-route-menu-group p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.agent-route-popover {
  width: min(560px, calc(100vw - 120px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: 8px;
  overflow: visible;
}

.agent-route-menu-group + .agent-route-menu-group {
  margin-top: 0;
  padding-top: 0;
  padding-left: 8px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.agent-route-menu-group > div {
  display: grid;
  gap: 3px;
  margin-top: 5px;
}

.agent-route-popover button {
  min-height: 30px;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.agent-route-popover button:hover {
  background: var(--soft);
}

.page[data-view="hu-agent-chat"] .agent-tool-picker,
.page[data-view="hu-agent-chat"] .agent-route-picker {
  display: none;
}

.send-mode-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.send-mode-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  z-index: 40;
  display: none;
  min-width: 92px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.send-mode-control.can-choose-mode:hover .send-mode-popover,
.send-mode-control.can-choose-mode:focus-within .send-mode-popover {
  display: grid;
  gap: 4px;
}

.send-mode-popover button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.send-mode-popover button:hover,
.send-mode-popover button:focus-visible {
  background: #eef2f7;
  outline: none;
}

.prompt-queue-panel {
  display: grid;
  gap: 6px;
  max-height: 132px;
  overflow: auto;
  padding: 4px;
  scrollbar-width: none;
}

.prompt-queue-panel::-webkit-scrollbar {
  display: none;
}

.prompt-queue-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.prompt-queue-item.is-guide {
  background: #edf2f7;
}

.prompt-queue-handle {
  color: #9aa4b2;
  font-weight: 900;
}

.prompt-queue-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-queue-action {
  min-height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.prompt-queue-action:hover,
.prompt-queue-action:focus-visible {
  background: #e5eaf2;
  color: var(--ink);
  outline: none;
}

.attachment-file-input {
  display: none;
}

.attachment-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.attachment-tray[hidden] {
  display: none;
}

.attachment-chip {
  display: inline-grid;
  grid-template-columns: 36px minmax(90px, 180px) 22px;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.attachment-thumb,
.attachment-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.attachment-thumb {
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ffffff;
}

.cowart-attachment-tray .attachment-thumb {
  object-fit: contain;
}

.attachment-file-icon {
  display: grid;
  place-items: center;
  background: #edf2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.attachment-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.attachment-info strong,
.attachment-info em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-info strong {
  font-size: 12px;
  font-weight: 500;
}

.attachment-info em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.page[data-view^="variant-"] {
  height: calc(100vh - 94px);
  min-height: 0;
  overflow: hidden;
}

.variant-tool-view,
.variant-tool-shell {
  height: 100%;
  min-height: 0;
}

.variant-tool-shell {
  display: grid;
  grid-template-columns: 72px minmax(320px, 390px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.variant-tool-rail {
  display: grid;
  grid-auto-rows: minmax(56px, max-content);
  align-content: start;
  gap: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #f4f7fb;
}

.variant-rail-button {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 6px 4px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.variant-rail-button:hover,
.variant-rail-button.active {
  border-left-color: var(--accent);
  background: #eaf0fb;
  color: var(--accent);
}

.variant-control-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.variant-control-scroll {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.variant-field-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.variant-field-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.variant-field-title > span:not(.required-mark),
.variant-muted-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.required-mark {
  color: var(--red);
  font-weight: 900;
}

.variant-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.variant-blue-text {
  color: var(--accent);
  font-weight: 850;
}

.variant-upload-zone {
  display: grid;
  min-height: 160px;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfcfe;
  color: #99a3b2;
  text-align: center;
  font-weight: 750;
}

.variant-upload-empty {
  display: grid;
  place-items: center;
  gap: 8px;
}

.variant-upload-zone:hover,
.variant-upload-zone.dragging {
  border-color: var(--accent);
  background: #f7faf9;
  color: var(--accent);
}

.variant-upload-zone.has-files {
  align-content: stretch;
  padding: 8px;
  background: #ffffff;
}

.variant-upload-zone.has-files .variant-upload-empty {
  display: none !important;
}

.variant-upload-icon {
  display: grid;
  width: 64px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f5fb;
  color: #9aa4b2;
  font-size: 13px;
}

.variant-upload-preview {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 142px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.variant-upload-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
  border-radius: 7px;
  background: #f1f4f8;
}

.variant-file-list {
  display: none;
  gap: 6px;
}

.variant-file-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--panel-soft);
  color: #465163;
  font-size: 12px;
  font-weight: 700;
}

.variant-file-list em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

.variant-prompt-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f3f6fa;
}

.variant-prompt-box textarea {
  width: 100%;
  min-height: 170px;
  border: 0;
  background: transparent;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

.variant-prompt-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.variant-segment-row {
  display: flex;
  gap: 8px;
}

.variant-segment,
.variant-ratio {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f1f4f8;
  color: var(--ink);
  font-weight: 750;
}

.variant-segment.active,
.variant-ratio.active {
  border-color: #dfe6f4;
  background: #eaf0fb;
  color: var(--accent);
}

.variant-slider-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 750;
}

.variant-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.variant-radio-row {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #465163;
  font-size: 13px;
  font-weight: 750;
}

.variant-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.variant-generate-footer {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.variant-generate-button {
  display: grid;
  min-height: 52px;
  place-items: center;
  font-size: 18px;
}

.variant-generate-button span {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.86;
}

.variant-generate-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.variant-showcase {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 28px;
  background: #f7f8fa;
}

.variant-showcase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.variant-showcase-head h2 {
  margin: 0;
  font-size: 26px;
}

.variant-showcase-head p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.variant-hero-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 auto 28px;
  max-width: 390px;
  text-align: center;
}

.variant-hero-card strong {
  display: block;
  font-size: 22px;
}

.variant-hero-card span {
  color: var(--muted);
  font-size: 13px;
}

.variant-result-panel {
  margin: 0 auto 24px;
  width: min(720px, 100%);
}

.variant-result-status,
.variant-result-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.variant-result-status strong,
.variant-result-card strong {
  color: var(--ink);
  font-size: 16px;
}

.variant-result-status span,
.variant-result-card span {
  color: var(--muted);
  line-height: 1.6;
}

.variant-result-status.error {
  border-color: #f0c8c8;
  background: #fff7f7;
}

.variant-result-card img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f7f9;
}

.variant-result-image-only {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.variant-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.variant-image-button img {
  display: block;
}

.variant-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-result-actions a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.variant-result-actions button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.variant-history-panel {
  margin: 0 auto 24px;
  width: min(980px, 100%);
}

.variant-history-card {
  display: grid;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.variant-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.variant-history-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.variant-history-head > div {
  display: grid;
  gap: 4px;
}

.variant-history-head strong {
  color: var(--ink);
  font-size: 18px;
}

.variant-history-head span,
.variant-history-item span,
.variant-history-empty {
  color: var(--muted);
  line-height: 1.55;
}

.variant-history-grid {
  display: grid;
  gap: 10px;
}

.variant-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.variant-history-open {
  display: grid;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.variant-history-open:hover .variant-history-copy span {
  color: var(--ink);
}

.variant-history-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  background: #f1f4f8;
}

.variant-image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
  background: rgba(17, 25, 32, 0.86);
  cursor: zoom-out;
}

.variant-image-preview-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #ffffff;
  cursor: zoom-out;
}

.variant-history-copy,
.variant-history-detail-body,
.variant-history-detail-body > div {
  display: grid;
  gap: 4px;
}

.variant-history-item strong,
.variant-history-detail-body strong {
  color: var(--ink);
  font-size: 13px;
}

.variant-history-item .variant-result-actions {
  justify-content: flex-end;
}

.variant-history-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  text-align: center;
}

.variant-history-detail {
  display: grid;
  gap: 14px;
}

.variant-history-detail img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f4f8;
}

.variant-history-detail-body {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.variant-history-detail-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.variant-history-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.variant-history-source-item {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.variant-history-source-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}

.variant-before-after,
.variant-card-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.variant-before-after {
  width: 300px;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow);
}

.variant-before-after img,
.variant-card-images img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.variant-before-after img {
  height: 112px;
}

.variant-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.variant-example-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.variant-card-images {
  position: relative;
}

.variant-card-images img {
  height: 145px;
}

.variant-card-images span {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.76);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.variant-example-card p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0;
  overflow: hidden;
  color: #8a94a3;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.attachment-remove {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #e9eef2;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.attachment-remove:hover {
  background: #dfe7ed;
  color: var(--ink);
}

.composer.dragging {
  outline: 2px dashed #4b5563;
  outline-offset: -8px;
  background: #f6f7f9;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f6f9fd;
}

.prompt-thumb {
  display: block;
  width: 58px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.page[data-view="prompt-extractor"] {
  min-height: 0;
}

#promptExtractorView {
  height: calc(100vh - 112px);
  min-height: 540px;
}

.prompt-extractor-app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.prompt-extractor-side {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fafafa;
}

.prompt-extractor-image-card {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
  color: var(--muted);
  font-weight: 800;
}

.prompt-extractor-image-card.has-image {
  position: relative;
  min-height: 180px;
  border-color: #2f6fec;
  background: #eef5ff;
}

.prompt-extractor-image-card img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
}

.prompt-extractor-check {
  color: #16a34a;
  font-size: 22px;
  font-weight: 900;
}

.prompt-extractor-image-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.prompt-extractor-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.prompt-extractor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.prompt-extractor-toolbar h2 {
  margin: 0;
  font-size: 24px;
}

.prompt-extractor-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.prompt-extractor-status.saved {
  color: #16a34a;
}

.prompt-extractor-status.error {
  color: var(--red);
}

.prompt-extractor-content {
  min-height: 0;
  overflow: auto;
  padding: 18px 24px;
  overscroll-behavior: contain;
}

.prompt-extractor-empty,
.prompt-extractor-field {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.prompt-extractor-empty {
  min-height: 260px;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.prompt-extractor-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.prompt-extractor-field {
  margin-bottom: 14px;
}

.prompt-extractor-field.soft {
  background: #fafafa;
}

.prompt-extractor-field span {
  color: #66758a;
  font-size: 14px;
  font-weight: 850;
}

.prompt-extractor-field input,
.prompt-extractor-field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}

.prompt-extractor-field textarea {
  min-height: 140px;
}

.prompt-extractor-copy-row {
  display: flex;
  justify-content: flex-end;
}

.prompt-extractor-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.prompt-extractor-tabs button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #f0f0f0;
  color: #66758a;
  font-size: 16px;
  font-weight: 850;
}

.prompt-extractor-tabs button.active {
  background: #111111;
  color: #ffffff;
}

.prompt-table th:nth-child(1),
.prompt-table td:nth-child(1) {
  width: 120px;
}

.prompt-table th:nth-child(2),
.prompt-table td:nth-child(2) {
  width: 82px;
}

.muted-text {
  color: var(--muted);
}

.char-count {
  display: none;
  color: var(--muted);
  font-size: 13px;
}

.run-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.run-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.run-block.warning {
  border-color: #ead2aa;
  background: #fff8ed;
}

.gallery-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.history-app,
.diagnostics-app {
  display: grid;
  gap: 14px;
}

.codex-history-status { display: none; }

/* 顶部工具栏移除后，对话页直接占满主内容区，避免沿用旧版预留高度产生底部空白。 */
.page[data-view="gpt-history"] {
  height: calc(100vh - 42px);
  height: calc(100dvh - 42px);
  min-height: 0;
  max-height: calc(100dvh - 42px);
  overflow: hidden;
}
.page[data-view="gpt-history"] .history-app {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

#gptHistoryView {
  min-height: 0;
  overflow: hidden;
}

.history-gallery-panel {
  min-height: calc(100vh - 260px);
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.gallery-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.gallery-header span {
  color: var(--muted);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  min-height: 0;
}

.history-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  overflow: visible;
}

.gallery-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.gallery-thumb {
  display: block;
  aspect-ratio: 1;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.history-gallery-grid .gallery-thumb {
  aspect-ratio: 4 / 3;
}

.history-gallery-grid .gallery-info {
  min-height: 92px;
}

.history-gallery-grid .gallery-info strong {
  font-size: 15px;
}

.history-gallery-grid .gallery-info span {
  -webkit-line-clamp: 3;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-info {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.gallery-info strong {
  font-size: 13px;
}

.gallery-info span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gallery-actions {
  display: flex;
  gap: 10px;
  padding: 0 10px 10px;
}

.gallery-actions a {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
}

.details-box {
  margin-top: 12px;
}

.details-box pre {
  overflow: auto;
  max-height: 240px;
  padding: 10px;
  border-radius: 8px;
  background: #101714;
  color: #d8e4dc;
}

.result-actions {
  margin-top: 10px;
}

.result-actions a {
  color: var(--accent-dark);
  font-weight: 750;
}

.compact-pill {
  min-height: 32px;
  font-size: 12px;
}

.gpt-history-list {
  display: grid;
  gap: 12px;
}

.gpt-history-item {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gpt-history-item:hover,
.gpt-history-item:focus-visible {
  border-color: #bfc9d8;
  background: #ffffff;
}

.gpt-history-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gpt-history-item header strong,
.gpt-history-item header span {
  display: block;
}

.gpt-history-item header > div > span,
.gpt-history-block span {
  color: var(--muted);
  font-size: 12px;
}

.gpt-history-block {
  display: grid;
  gap: 4px;
}

.gpt-history-block p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.codex-history-table th,
.codex-history-table td {
  vertical-align: top;
}

.codex-history-table {
  table-layout: fixed;
  min-width: 960px;
}

.codex-history-col-serial {
  width: 64px;
}

.codex-history-col-title {
  width: auto;
}

.codex-history-col-count {
  width: 88px;
}

.codex-history-col-id {
  width: 220px;
}

.codex-history-col-updated,
.codex-history-col-created {
  width: 150px;
}

.codex-history-row {
  cursor: pointer;
}

.codex-history-row:hover,
.codex-history-row:focus-visible {
  background: var(--panel-soft);
}

.codex-history-row code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  white-space: normal;
  line-height: 1.35;
  user-select: text;
}

.codex-history-id-cell {
  min-width: 0;
  max-width: 220px;
}

.codex-run-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.codex-run-event {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #b8c2cc;
  border-radius: 8px;
  background: #ffffff;
}

.codex-run-event-user {
  border-left-color: var(--accent);
}

.codex-run-event-assistant {
  border-left-color: #4f7cff;
}

.codex-run-event-tool {
  border-left-color: #a06b16;
}

.codex-run-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.codex-run-event-text,
.codex-run-event-json pre {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Codex 历史按工作台阅读路径组织：先定位会话，再并列核对输入与输出。 */
.codex-history-workbench,
.codex-history-detail-workbench {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.codex-history-workbench { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 100%; max-height: 100%; }
.codex-history-sidebar { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); background: #f8fafc; }
.codex-history-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.codex-history-sidebar-head strong, .codex-history-sidebar-head span { display: block; }
.codex-history-sidebar-head strong { color: #172033; font-size: 16px; }
.codex-history-sidebar-head span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.codex-history-icon-button, .codex-history-back, .codex-history-pagination button { border: 0; background: transparent; color: #475569; cursor: pointer; }
.codex-history-icon-button { width: 30px; height: 30px; border-radius: 6px; font-size: 20px; }
.codex-history-icon-button:hover, .codex-history-back:hover { background: #e8eef7; }
.codex-history-nav-section { padding: 14px 10px 0; }
.codex-history-nav-section-grow { display: flex; flex: 1 0 auto; min-height: 0; flex-direction: column; }
.codex-history-section-label { padding: 0 6px 8px; color: #7b8798; font-size: 12px; font-weight: 750; }
.codex-history-section-label-spaced { padding-top: 18px; }
.codex-history-category { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 34px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: #4b5563; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.codex-history-category:hover, .codex-history-category.active { background: #e8f0ff; color: #1d4ed8; }
.codex-history-category em { color: inherit; font-size: 11px; font-style: normal; }
.codex-history-conversation-list { display: grid; gap: 2px; min-height: 0; overflow: auto; }
.codex-history-nav-section-grow .codex-history-conversation-list { flex: 0 0 auto; }
.codex-history-conversation { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 2px; border-radius: 6px; }
.codex-history-conversation:hover { background: #edf3fb; }
.codex-history-conversation-open { display: grid; gap: 3px; min-width: 0; padding: 8px 6px; border: 0; background: transparent; color: #334155; cursor: pointer; font: inherit; text-align: left; }
.codex-history-conversation-open strong { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.codex-history-conversation-open span { overflow: hidden; color: #8390a2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.codex-history-pin { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #a8b2c0; cursor: pointer; font-size: 16px; opacity: 0; }
.codex-history-conversation:hover .codex-history-pin, .codex-history-pin.active { opacity: 1; }
.codex-history-pin.active { color: #f0a43b; }
.codex-history-empty-list { padding: 8px 6px; color: #98a3b2; font-size: 12px; }
.codex-history-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid var(--line); color: #718096; font-size: 12px; }
.codex-history-pagination button { width: 26px; height: 26px; border-radius: 5px; font-size: 20px; line-height: 1; }
.codex-history-pagination button:disabled { color: #c7d0dc; cursor: not-allowed; }
.codex-history-empty-workspace,
.codex-history-start-workspace { position: relative; color: #94a3b8; text-align: center; }
.codex-history-empty-workspace { display: grid; place-items: center; }
.codex-history-start-workspace { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: #fff; }
.codex-history-agent-link { position: absolute; top: 14px; right: 16px; }
.codex-history-empty-workspace h2 { margin: 12px 0 6px; color: #475569; font-size: 16px; }
.codex-history-empty-workspace p { margin: 0; font-size: 13px; }
.codex-history-empty-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: auto; border: 1px solid #d5deea; border-radius: 8px; color: #64748b; font-size: 24px; }
.codex-history-start-body { display: grid; align-content: start; justify-items: center; gap: 20px; min-height: 0; overflow: auto; padding: 58px 28px 24px; }
.codex-history-start-copy { display: grid; justify-items: center; gap: 8px; width: min(100%, 760px); }
.codex-history-start-copy h2 { margin: 6px 0 0; color: #1f2937; font-size: 24px; font-weight: 850; line-height: 1.25; }
.codex-history-start-copy p { max-width: 560px; margin: 0; color: #64748b; font-size: 13px; line-height: 1.65; }
.codex-history-suggestion-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px; width: min(100%, 760px); }
.codex-history-suggestion-grid button { display: grid; gap: 6px; min-height: 94px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; color: #334155; cursor: pointer; font: inherit; text-align: left; box-shadow: var(--shadow); }
.codex-history-suggestion-grid button:hover,
.codex-history-suggestion-grid button:focus-visible { border-color: #bfdbfe; background: #f8fbff; color: #1d4ed8; outline: 0; }
.codex-history-suggestion-grid strong { color: inherit; font-size: 14px; font-weight: 850; }
.codex-history-suggestion-grid span { color: #7b8798; font-size: 12px; line-height: 1.55; }
.codex-history-detail-workbench { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.codex-history-detail-layout > .codex-history-detail-workbench { min-height: 0; border: 0; border-radius: 0; }
.codex-history-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.codex-history-detail-head > div { display: flex; align-items: center; min-width: 0; gap: 10px; }
.codex-history-back { width: 30px; height: 30px; border-radius: 6px; font-size: 26px; line-height: 1; }
.codex-history-detail-head h2, .codex-history-detail-head span { display: block; }
.codex-history-detail-head h2 { overflow: hidden; margin: 0; color: #1e293b; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.codex-history-detail-head span { margin-top: 3px; color: #8491a2; font-size: 11px; }
.codex-history-chat-region { min-height: 0; overflow: auto; background: #f8fafc; scrollbar-width: none; -ms-overflow-style: none; }
.codex-history-chat-region::-webkit-scrollbar,
.codex-history-start-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.codex-history-start-body { scrollbar-width: none; -ms-overflow-style: none; }
.codex-history-chat-list { display: grid; align-content: start; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 18px 22px; }
.codex-history-chat-message { display: flex; width: 100%; }
.codex-history-chat-message.is-codex { justify-content: flex-start; }
.codex-history-chat-message.is-user { justify-content: flex-end; }
.codex-history-detail-workbench .codex-run-event { width: min(780px, 82%); padding: 11px 12px; border-left-width: 3px; box-shadow: none; }
.codex-history-chat-message.is-codex .codex-run-event { background: #fff; }
.codex-history-chat-message.is-user .codex-run-event { border-color: #2563eb; background: #eaf2ff; }
.codex-history-chat-message.is-user .codex-run-event-text { background: #fff; }
.codex-history-detail-workbench .codex-run-event-text { max-height: 320px; font-family: inherit; font-size: 13px; }
.codex-history-composer { padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.codex-history-composer textarea { display: block; width: 100%; min-height: 68px; max-height: 132px; resize: none; padding: 10px 12px; border: 1px solid #d6deea; border-radius: 8px; background: #f8fafc; color: #334155; font: inherit; line-height: 1.55; }
.codex-history-composer textarea:focus { border-color: #bfdbfe; background: #ffffff; outline: 0; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }
.codex-history-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; color: #8b97a7; font-size: 11px; }
.codex-history-composer button { padding: 5px 10px; border: 0; border-radius: 6px; background: #dce6f5; color: #8b97a7; cursor: not-allowed; font: inherit; font-size: 12px; }

@media (max-width: 860px) {
  .codex-history-workbench { grid-template-columns: 235px minmax(0, 1fr); }
  .codex-history-chat-list { padding: 14px; }
  .codex-history-detail-workbench .codex-run-event { width: min(90%, 780px); }
  .codex-history-suggestion-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .codex-history-workbench { grid-template-columns: 1fr; }
  .codex-history-empty-workspace,
  .codex-history-start-workspace { display: none; }
  .codex-history-sidebar { border-right: 0; }
}

.codex-run-event-text {
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.codex-run-event-json summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}

.codex-run-event-json pre {
  margin-top: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #101714;
  color: #d8e4dc;
  font-size: 12px;
}

.amazon-page {
  display: grid;
  gap: 14px;
}

.amazon-breadcrumb {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.amazon-breadcrumb a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.amazon-breadcrumb a:hover {
  text-decoration: underline;
}

.amazon-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.amazon-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.amazon-toolbar .search-field {
  width: min(520px, 100%);
}

.table-scroll {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #f9fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feishu-group-id-table {
  min-width: 980px;
}

.feishu-group-id-page .content-panel {
  padding: 18px 20px 20px;
}

.feishu-group-id-table th,
.feishu-group-id-table td {
  padding-top: 12px;
  padding-bottom: 12px;
  vertical-align: middle;
}

.feishu-group-id-row td:first-child {
  padding-left: 16px;
}

.feishu-group-id-row td:last-child {
  padding-right: 16px;
}

.feishu-group-id-row .inline-copy-cell {
  max-width: 100%;
}

.feishu-group-id-row .inline-copy-cell code,
.webhook-copy-value .inline-copy-cell code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-copy-cell {
  align-items: flex-start;
}

.full-copy-cell code {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.feishu-group-detail-dialog {
  width: min(1180px, calc(100vw - 40px));
}

.feishu-group-detail-dialog .dialog-body {
  padding: 18px;
}

.feishu-group-detail-dialog .panel-title-row {
  margin-bottom: 14px;
}

.webhook-copy-value {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feishu-group-category-select {
  width: 112px;
  min-height: 34px;
  padding: 6px 8px;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: 1.3;
  padding: 0;
  cursor: pointer;
}

.table-sort-button.active {
  color: var(--ink);
}

.table-sort-button .sort-mark {
  color: #9aa3b2;
  font-size: 11px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.messages-table {
  min-width: 980px;
}

.web-analytics-page {
  display: grid;
  gap: 14px;
}

.web-analytics-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.web-analytics-metrics {
  margin-bottom: 0;
}

.web-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.web-analytics-rank-list,
.web-analytics-daily-list {
  display: grid;
  gap: 10px;
}

.web-analytics-rank-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.web-analytics-rank-item strong,
.web-analytics-rank-item span,
.web-analytics-rank-item small {
  display: block;
}

.web-analytics-rank-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-analytics-rank-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.web-analytics-rank-item small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.web-analytics-rank-count {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
}

.web-analytics-daily-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.web-analytics-daily-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.web-analytics-daily-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.web-analytics-source {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.web-analytics-table {
  min-width: 1080px;
}

.web-analytics-table th:nth-child(1),
.web-analytics-table td:nth-child(1) {
  width: 72px;
}

.web-analytics-table th:nth-child(2),
.web-analytics-table td:nth-child(2) {
  width: 170px;
}

.web-analytics-table th:nth-child(4),
.web-analytics-table td:nth-child(4) {
  width: 180px;
}

.web-analytics-table th:nth-child(5),
.web-analytics-table td:nth-child(5) {
  width: 160px;
}

.web-analytics-table th:nth-child(6),
.web-analytics-table td:nth-child(6) {
  width: 160px;
}

.web-analytics-table th:nth-child(7),
.web-analytics-table td:nth-child(7) {
  width: 160px;
}

.messages-table th:nth-child(1),
.messages-table td:nth-child(1) {
  width: 72px;
}

.messages-table th:nth-child(2),
.messages-table td:nth-child(2) {
  width: 220px;
}

.messages-table th:nth-child(4),
.messages-table td:nth-child(4) {
  width: 130px;
}

.messages-table th:nth-child(5),
.messages-table td:nth-child(5) {
  width: 180px;
}

.messages-table th:nth-child(6),
.messages-table td:nth-child(6) {
  width: 110px;
}

.message-summary {
  color: var(--ink);
  line-height: 1.5;
  white-space: normal;
}

.automation-script-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.automation-script-table th:nth-child(2),
.automation-script-table td:nth-child(2) {
  width: 28%;
}

.script-requirements-table {
  min-width: 1180px;
}

.script-requirements-table th:nth-child(1),
.script-requirements-table td:nth-child(1) {
  width: 72px;
}

.script-requirements-table th:nth-child(2),
.script-requirements-table td:nth-child(2) {
  width: 340px;
}

.script-requirements-table th:nth-child(8),
.script-requirements-table td:nth-child(8) {
  width: 260px;
}

.automation-script-name {
  color: var(--ink);
}

.automation-script-meta,
.automation-script-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.script-requirement-text {
  color: var(--ink);
  line-height: 1.5;
  white-space: normal;
}

.development-schedule-table {
  min-width: 1480px;
}

.development-requirements-table {
  min-width: 1820px;
  table-layout: fixed;
}

.development-requirements-table th,
.development-requirements-table td {
  height: 44px;
  padding: 7px 10px;
  vertical-align: middle;
}

.development-requirements-table td {
  overflow: hidden;
}

.development-requirements-table td:nth-child(1) {
  width: 280px;
}

.development-requirements-table td:nth-child(3),
.development-requirements-table td:nth-child(4),
.development-requirements-table td:nth-child(5),
.development-requirements-table td:nth-child(6),
.development-requirements-table td:nth-child(7),
.development-requirements-table td:nth-child(8) {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.development-requirements-table .development-table-link,
.development-requirements-table .development-criteria {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
  max-height: 2.7em;
  text-overflow: ellipsis;
}

.development-requirements-table .development-criteria {
  color: var(--ink);
}

.development-components-table {
  min-width: 980px;
}

.development-components-table th:nth-child(1),
.development-components-table td:nth-child(1) {
  width: 220px;
}

.development-components-table th:nth-child(3),
.development-components-table td:nth-child(3) {
  width: 360px;
}

.development-components-table th:nth-child(4),
.development-components-table td:nth-child(4) {
  width: 160px;
}

.development-schedule-table th:nth-child(1),
.development-schedule-table td:nth-child(1),
.development-requirements-table th:nth-child(1),
.development-requirements-table td:nth-child(1) {
  width: 280px;
}

.development-requirements-table th:nth-child(2),
.development-requirements-table td:nth-child(2) {
  width: 180px;
}

.development-schedule-table th:nth-child(7),
.development-schedule-table td:nth-child(7),
.development-requirements-table th:nth-child(9),
.development-requirements-table td:nth-child(9),
.development-requirements-table th:nth-child(10),
.development-requirements-table td:nth-child(10) {
  width: 260px;
}

.development-requirements-table th:nth-child(12),
.development-requirements-table td:nth-child(12) {
  width: 140px;
}

.development-requirements-table th:nth-child(13),
.development-requirements-table td:nth-child(13) {
  width: 96px;
}

.development-requirement-text,
.development-criteria,
.development-component-desc {
  color: var(--ink);
  line-height: 1.55;
  white-space: normal;
}

.development-feishu-task-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.development-feishu-task-cell span {
  color: var(--muted);
}

.development-component-path {
  display: inline-block;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f3f6fb;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  word-break: break-all;
}

.development-table-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.development-table-link:hover,
.development-table-link:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.development-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.development-media-list a,
.development-media-list span {
  display: inline-flex;
  max-width: 180px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.development-media-list a:hover {
  background: #eef2f7;
}

.development-attachment-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.development-attachment-thumb {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  cursor: zoom-in;
}

.development-attachment-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.development-attachment-link,
.development-attachment-more {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}

.development-attachment-field {
  display: grid;
  gap: 12px;
}

.development-attachment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.development-detail-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.development-detail-attachment-item {
  display: grid;
  gap: 8px;
}

.development-detail-attachment-image,
.development-detail-attachment-file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.development-detail-attachment-image {
  padding: 0;
  cursor: zoom-in;
}

.development-detail-attachment-image img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.development-detail-attachment-file {
  padding: 12px;
  text-align: center;
}

.development-detail-attachment-file a,
.development-detail-attachment-file span {
  color: var(--ink);
  word-break: break-word;
}

.development-detail-attachment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.development-detail-attachment-meta span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.development-attachment-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.development-detail-form textarea {
  min-height: 96px;
}

.development-standard-panel {
  display: grid;
  gap: 12px;
}

.development-standard-panel textarea {
  min-height: min(62vh, 720px);
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.cloud-databases-page .content-panel {
  display: grid;
  gap: 14px;
}

.cloud-database-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-database-status {
  max-width: 520px;
  text-align: right;
}

.cloud-database-panel-title {
  align-items: flex-start;
}

.cloud-database-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cloud-database-meta-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.cloud-database-meta-item span {
  color: var(--muted);
  font-size: 12px;
}

.cloud-database-meta-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.cloud-database-table {
  min-width: 760px;
}

.cloud-database-fields-table {
  min-width: 900px;
}

.cloud-database-table th:nth-child(1),
.cloud-database-table td:nth-child(1) {
  width: 55%;
}

.cloud-database-fields-table th:nth-child(1),
.cloud-database-fields-table td:nth-child(1) {
  width: 26%;
}

.cloud-database-fields-table th:nth-child(2),
.cloud-database-fields-table td:nth-child(2) {
  width: 34%;
  white-space: normal;
}

.url-navigation-table {
  min-width: 980px;
}

.url-navigation-table th:nth-child(1),
.url-navigation-table td:nth-child(1) {
  width: 120px;
}

.url-navigation-table th:nth-child(2),
.url-navigation-table td:nth-child(2) {
  width: 210px;
}

.url-navigation-table th:nth-child(3),
.url-navigation-table td:nth-child(3) {
  width: 330px;
}

.url-navigation-url {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.url-navigation-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.url-navigation-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.url-navigation-sidebar-head {
  display: grid;
  gap: 4px;
}

.url-navigation-sidebar-head strong {
  font-size: 15px;
}

.url-navigation-sidebar-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.url-navigation-category-list {
  display: grid;
  gap: 8px;
}

.url-navigation-category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.url-navigation-category-button strong {
  font-size: 14px;
  font-weight: 700;
}

.url-navigation-category-button span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.url-navigation-category-button:hover {
  border-color: var(--accent);
  background: #f7fbff;
  transform: translateY(-1px);
}

.url-navigation-category-button.active {
  border-color: var(--accent);
  background: rgba(42, 133, 255, 0.08);
}

.url-navigation-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.url-navigation-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.url-navigation-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.url-navigation-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.url-navigation-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.url-navigation-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.url-navigation-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.url-navigation-card-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.url-navigation-card:hover .url-navigation-card-edit,
.url-navigation-card:focus-within .url-navigation-card-edit {
  opacity: 1;
  pointer-events: auto;
}

.url-navigation-card-edit:hover {
  border-color: var(--accent);
  background: #f6f8ff;
}

.url-navigation-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(42, 133, 255, 0.12);
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.url-navigation-card-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.url-navigation-card-body strong {
  font-size: 15px;
  line-height: 1.4;
}

.url-navigation-card-body span,
.url-navigation-card-body em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
  overflow-wrap: anywhere;
}

.url-navigation-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.system-key-table {
  min-width: 1040px;
}

.system-key-channel-editor,
.system-key-channel-model-section {
  display: grid;
  gap: 14px;
}

.system-key-channel-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-key-channel-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.system-key-channel-form input,
.system-key-channel-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.system-key-channel-form input[readonly] {
  background: #f8fafc;
  color: var(--muted);
}

.system-key-channel-description {
  grid-column: 1 / -1;
}

.system-key-channel-description textarea {
  resize: vertical;
}

.system-key-channel-visible {
  grid-column: 1 / -1;
  display: inline-flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.system-key-channel-visible input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.system-key-channel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 760px) {
  .system-key-channel-form {
    grid-template-columns: 1fr;
  }
}

.system-key-model-table {
  min-width: 620px;
}

.system-key-model-table th:nth-child(1),
.system-key-model-table td:nth-child(1) {
  width: 240px;
}

.system-key-model-table th:nth-child(2),
.system-key-model-table td:nth-child(2) {
  width: 220px;
}

.system-key-model-channel-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.system-key-model-channel-option {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  border: 0;
  margin: 0;
  padding: 0;
}

.system-key-model-channel-option legend {
  padding: 0;
}

.system-key-model-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.system-key-model-option-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.system-key-model-option-pill small {
  display: block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.system-key-model-option-pill.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.system-key-model-option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.system-key-model-type-select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 34px 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.system-key-model-type-select {
  width: min(180px, 100%);
  font-size: 13px;
}

.system-key-model-slug {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.system-key-model-capabilities {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .system-key-model-channel-options {
    display: grid;
  }
}

.system-key-table th:nth-child(1),
.system-key-table td:nth-child(1) {
  width: 110px;
}

.system-key-table th:nth-child(2),
.system-key-table td:nth-child(2) {
  width: 180px;
}

.system-key-table th:nth-child(3),
.system-key-table td:nth-child(3) {
  width: 250px;
  white-space: normal;
  word-break: break-all;
}

.system-key-table th:nth-child(4),
.system-key-table td:nth-child(4) {
  width: 270px;
  white-space: normal;
}

.system-key-code {
  display: inline-block;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f3f6fb;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.system-key-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.system-key-category-tab {
  min-height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 8px;
}

.system-key-category-tab.active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.system-key-row {
  cursor: pointer;
}

.system-key-row:hover {
  background: #f7f8ff;
}

.system-key-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.system-key-summary {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0;
}

.system-key-url {
  max-width: 100%;
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-wrap: anywhere;
  overflow-wrap: anywhere;
}

.version-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.version-record-table th,
.version-record-table td {
  white-space: nowrap;
}

.version-management-grid .table-scroll {
  overflow-x: auto;
}

.version-record-table {
  min-width: 940px;
  table-layout: auto;
}

.version-record-table th:nth-child(1),
.version-record-table td:nth-child(1) {
  min-width: 116px;
}

.version-record-table th:nth-child(2),
.version-record-table td:nth-child(2) {
  min-width: 150px;
}

.version-record-table th:nth-child(4),
.version-record-table td:nth-child(4) {
  min-width: 96px;
}

.version-file-list {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .cloud-database-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-management-grid {
    grid-template-columns: 1fr;
  }
}

.automation-script-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.codex-automation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.codex-automation-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.codex-automation-form label.span-2 {
  grid-column: 1 / -1;
}

.codex-automation-form input,
.codex-automation-form select,
.codex-automation-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 9px 10px;
}

.codex-automation-form textarea {
  resize: vertical;
}

.rbac-app {
  display: grid;
  gap: 12px;
}

.rbac-hero {
  align-items: center;
}

.rbac-two-col,
.rbac-menu-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
}

.rbac-menu-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.5fr);
}

.rbac-menu-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rbac-menu-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rbac-page .table-scroll {
  overflow: visible;
}

.rbac-table td {
  font-size: 13px;
}

.table-link-button {
  margin-right: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.table-link-button:hover {
  text-decoration: underline;
}

.table-link-button.danger {
  color: #b42318;
}

.feishu-id-row {
  cursor: pointer;
}

.feishu-id-row:hover td {
  background: #f8fbff;
}

.feishu-id-name-cell {
  font-weight: 750;
}

.feishu-id-row .table-link-button,
.feishu-id-row .table-link-button:hover {
  text-decoration: none;
}

.feishu-id-page {
  align-content: start;
  gap: 8px;
  min-height: 0;
}

.feishu-id-list-panel {
  gap: 8px;
  padding: 10px;
}

.feishu-id-compact-head {
  align-items: center;
  gap: 12px;
}

.feishu-id-compact-head h2 {
  margin: 0;
  white-space: nowrap;
}

.feishu-id-head-meta {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.feishu-id-head-meta .task-status {
  flex: 1 1 auto;
  margin: 0;
  min-width: 220px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7b8697;
  text-align: right;
}

.feishu-id-head-meta .primary-button {
  min-height: 30px;
  padding: 0 12px;
}

.feishu-id-table {
  min-width: 1040px;
  table-layout: fixed;
}

.feishu-id-table th,
.feishu-id-table td {
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feishu-id-table th:nth-child(1),
.feishu-id-table td:nth-child(1) {
  width: 110px;
}

.feishu-id-table th:nth-child(2),
.feishu-id-table td:nth-child(2) {
  width: 90px;
}

.feishu-id-table th:nth-child(3),
.feishu-id-table td:nth-child(3) {
  width: 160px;
}

.feishu-id-table th:nth-child(4),
.feishu-id-table td:nth-child(4) {
  width: 190px;
}

.feishu-id-table th:nth-child(5),
.feishu-id-table td:nth-child(5) {
  width: 150px;
}

.feishu-id-table th:nth-child(6),
.feishu-id-table td:nth-child(6) {
  width: 130px;
}

.feishu-id-table th:nth-child(7),
.feishu-id-table td:nth-child(7) {
  width: 70px;
}

.feishu-id-table th:nth-child(8),
.feishu-id-table td:nth-child(8) {
  width: 130px;
}

.feishu-id-table th:nth-child(9),
.feishu-id-table td:nth-child(9) {
  width: 110px;
}

.inline-check {
  display: inline-flex;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.inline-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
}

.rbac-permission-list {
  display: grid;
  gap: 14px;
}

.rbac-permission-group {
  display: grid;
  gap: 8px;
}

.rbac-permission-group h3 {
  margin: 0;
  font-size: 15px;
}

.product-info-page {
  display: grid;
  gap: 12px;
}

/* 覆盖通用 module-page 最小高度，目录在工作区内独立滚动而非被长内容撑开。 */
.module-page.product-info-page.market-top100-page {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.product-category-page {
  display: grid;
  gap: 12px;
}

.product-library-page {
  display: grid;
  gap: 12px;
}

.product-library-panel {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.product-library-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-library-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}

.product-library-tag.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.product-library-table-wrap {
  max-height: calc(100vh - 280px);
}

.product-library-table th:nth-child(3),
.product-library-table td:nth-child(3),
.product-library-table th:nth-child(4),
.product-library-table td:nth-child(4) {
  min-width: 180px;
}

.competitor-monitor-page {
  display: grid;
  gap: 16px;
}

.competitor-monitor-table {
  min-width: 1180px;
}

.competitor-monitor-table th:nth-child(1),
.competitor-monitor-table td:nth-child(1) {
  width: 160px;
}

.competitor-monitor-table th:nth-child(4),
.competitor-monitor-table td:nth-child(4) {
  width: 260px;
}

.competitor-monitor-table th:nth-child(5),
.competitor-monitor-table td:nth-child(5) {
  width: 320px;
}

.competitor-monitor-table th:nth-child(6),
.competitor-monitor-table td:nth-child(6),
.competitor-monitor-table th:nth-child(7),
.competitor-monitor-table td:nth-child(7) {
  width: 130px;
}

.competitor-monitor-title {
  line-height: 1.55;
  white-space: normal;
}

.competitor-monitor-bullets {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
  white-space: normal;
}

.product-info-panel {
  overflow: hidden;
}

.product-category-panel {
  overflow: hidden;
}

.product-info-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 180px);
}

.product-info-view-shell {
  position: relative;
  display: grid;
  gap: 0;
  margin: 4px 0 2px;
  border-bottom: 1px solid var(--line);
}

.product-info-view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 0 2px 8px;
  border-bottom: 1px solid #d8dee8;
}

.product-info-view-tab,
.product-info-view-add,
.product-info-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #5f6875;
  font-weight: 850;
  white-space: nowrap;
}

.product-info-view-tab-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f4f7fb;
}

.product-info-view-tab {
  gap: 7px;
  padding: 0 8px 0 10px;
  border: 0;
}

.product-info-view-tab-wrap.active {
  border-color: #cbd5e1;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.product-info-view-tab-wrap.active .product-info-view-tab,
.product-info-view-tab-wrap.active .product-info-view-more {
  color: var(--ink);
}

.product-info-view-badge {
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.product-info-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 34px;
  border: 0;
  border-left: 1px solid transparent;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: #64748b;
  font-size: 20px;
  font-weight: 900;
}

.product-info-view-more:hover,
.product-info-view-more.active {
  background: #e2e8f0;
  color: #2563eb;
}

.product-info-view-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: var(--z-list-view-menu);
  display: grid;
  width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.product-info-view-menu button,
.product-info-view-protection-menu button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
}

.product-info-view-menu button:hover,
.product-info-view-menu button.active,
.product-info-view-protection-menu button:hover,
.product-info-view-protection-menu button.active {
  background: #f1f5f9;
}

.product-info-view-menu button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.product-info-view-menu button span:first-child {
  color: #334155;
  font-size: 18px;
}

.product-info-view-menu button i,
.product-info-view-protection-menu button i {
  color: #64748b;
  font-style: normal;
}

.product-info-view-menu button.danger {
  color: #991b1b;
}

.product-info-view-menu-divider {
  height: 1px;
  margin: 6px -8px;
  background: var(--line);
}

.product-info-view-menu-nested {
  position: relative;
}

.product-info-view-protection-menu {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  z-index: calc(var(--z-list-view-menu) + 1);
  display: grid;
  width: 310px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.product-info-view-protection-menu button {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 10px 12px;
}

.product-info-view-protection-menu button span {
  display: grid;
  gap: 4px;
}

.product-info-view-protection-menu strong {
  color: var(--ink);
  font-size: 16px;
}

.product-info-view-protection-menu em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.product-info-view-protection-menu button.active i {
  color: #2563eb;
  font-weight: 900;
}

.product-info-view-rename-dialog {
  width: min(420px, calc(100vw - 48px));
  border: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
}

.product-info-view-rename-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
}

.product-info-view-rename-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.22);
}

.product-info-view-rename-card header,
.product-info-view-rename-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-info-view-rename-card strong {
  color: var(--ink);
  font-size: 17px;
}

.product-info-view-rename-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.product-info-view-rename-card input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}

.product-info-view-add {
  width: 36px;
  padding: 0;
  border-color: var(--line-strong);
  background: #ffffff;
  color: #2563eb;
  font-size: 22px;
}

.product-info-tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  overflow-x: auto;
  padding: 8px 0;
}

.product-info-tool-button {
  gap: 6px;
  padding: 0 10px;
  font-size: 14px;
}

.product-info-tool-button:hover,
.product-info-tool-button:focus-visible,
.product-info-tool-button.active {
  border-color: #dce7f5;
  background: #f8fafc;
  color: var(--ink);
}

.product-info-tool-button.active {
  background: #e7efff;
  color: #1d4ed8;
}

.product-info-tool-popover {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: var(--z-list-tool-popover);
  display: grid;
  width: min(980px, calc(100vw - 340px));
  min-width: 620px;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.product-info-tool-popover.compact {
  width: 260px;
  min-width: 260px;
}

.product-info-fill-popover {
  width: min(1280px, calc(100vw - 240px));
  min-width: 920px;
}

.product-info-popover-head,
.product-info-popover-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-info-popover-head strong {
  color: var(--ink);
  font-size: 16px;
}

.product-info-filter-mode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.product-info-filter-mode-row select {
  min-height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--ink);
  font: inherit;
}

.product-info-rule-list {
  display: grid;
  gap: 10px;
}

.product-info-rule-grid {
  display: grid;
  grid-template-columns: 22px minmax(140px, 220px) minmax(120px, 150px) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.product-info-group-rule {
  grid-template-columns: 22px minmax(160px, 220px) minmax(520px, 1fr) auto;
}

.list-page-group-calc-sort {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.product-info-segmented.list-page-group-sort-mode {
  grid-template-columns: repeat(3, minmax(136px, 1fr));
}

.list-page-group-calc-order {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.list-page-group-calc-order span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.list-page-group-calc-order button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  font-weight: 850;
}

.list-page-group-calc-order button.active {
  border-color: #bfd3f8;
  background: #eff6ff;
  color: #1d4ed8;
}

.list-page-group-calc-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: calc(var(--z-list-tool-popover) + 1);
  display: grid;
  width: min(300px, max(240px, 100%));
  max-height: 320px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.list-page-group-calc-menu button {
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.list-page-group-calc-menu button:hover,
.list-page-group-calc-menu button.active {
  background: #f1f5f9;
  color: #2563eb;
}

.list-page-group-calc-menu-title,
.list-page-group-calc-empty {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.product-info-rule-grid select,
.product-info-rule-grid input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.product-info-rule-empty {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
}

.product-info-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 4px;
}

.product-info-segmented button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-weight: 850;
}

.product-info-segmented button.active {
  border-color: var(--line-strong);
  background: #fff;
  color: #2563eb;
}

.product-info-order-actions {
  display: inline-flex;
  gap: 4px;
}

.product-info-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.product-info-switch input {
  width: 42px;
  height: 22px;
  accent-color: #2563eb;
}

.product-info-choice-list {
  display: grid;
  gap: 8px;
}

.product-info-choice-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.product-info-choice-list button:hover,
.product-info-choice-list button.active {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

.product-info-fill-basic {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-info-fill-basic button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
}

.product-info-fill-basic button.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.product-info-fill-rule {
  display: grid;
  grid-template-columns: 22px 62px minmax(94px, 120px) minmax(160px, 220px) minmax(120px, 150px) minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.product-info-fill-rule select,
.product-info-fill-rule input[type="text"] {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.product-info-color-field {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.product-info-color-chip,
.product-info-color-palette button {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--fill-color);
}

.product-info-color-chip {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.product-info-color-palette {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  display: none;
  grid-template-columns: repeat(11, 34px);
  gap: 8px;
  width: max-content;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.product-info-color-field:hover .product-info-color-palette,
.product-info-color-field:focus-within .product-info-color-palette {
  display: grid;
}

.product-info-color-palette button.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #2563eb;
}

.product-info-bold-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.product-info-bold-toggle input {
  width: 18px;
  height: 18px;
}

.product-category-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(320px, auto);
  align-items: end;
}

.product-category-filter-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.product-category-level-filter {
  position: relative;
  display: inline-flex;
}

.product-category-dropdown-button,
.product-category-sort-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 74px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}

.product-category-dropdown-button {
  gap: 6px;
}

.product-category-dropdown-button.active,
.product-category-sort-settings-button.active {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(31, 39, 50, 0.08);
}

.product-category-dropdown-count {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-category-sort-menu {
  position: relative;
  display: inline-flex;
}

.product-category-level-menu,
.product-category-sort-settings {
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 360px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.product-category-level-menu {
  width: 220px;
}

.product-category-level-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-category-sort-settings-head,
.product-category-sort-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-category-sort-rule-list {
  display: grid;
  gap: 6px;
}

.product-category-sort-rule {
  display: grid;
  grid-template-columns: 42px minmax(120px, 1fr) 88px auto;
  align-items: center;
  gap: 6px;
}

.product-category-sort-rule-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.product-category-sort-rule label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-category-sort-rule select {
  min-height: 30px;
  width: 100%;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.product-category-sort-remove {
  padding: 0 8px;
}

.product-category-level-option-list {
  display: grid;
  gap: 6px;
}

.product-category-level-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.goal-filters .product-category-level-option {
  display: flex;
  width: 100%;
  gap: 7px;
}

.product-category-level-option input {
  width: 14px;
  height: 14px;
  min-height: 0;
  padding: 0;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.product-info-actions {
  position: relative;
}

.product-info-column-dropdown-wrap {
  position: relative;
}

.product-info-column-settings {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 25;
  display: grid;
  width: 280px;
  max-height: min(420px, calc(100vh - 220px));
  gap: 6px;
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-info-column-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 4px;
}

.product-info-column-settings-head strong {
  color: var(--ink);
  font-size: 13px;
}

.product-info-column-settings-head span {
  color: var(--muted);
  font-size: 11px;
}

.product-info-column-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.product-info-column-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 3px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.product-info-column-item:hover {
  background: var(--panel-soft);
}

.product-info-column-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
}

.product-info-column-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-info-column-item > div {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
}

.product-info-column-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.product-info-table-wrap {
  max-height: calc(100vh - 330px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-info-table {
  min-width: 1320px;
}

.list-page-resizable-table {
  table-layout: fixed;
}

.product-info-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

.list-page-resizable-table th {
  position: sticky;
  overflow: visible;
}

.list-page-resizable-table th.list-page-menu-open {
  z-index: var(--z-list-header-menu) !important;
}

.list-page-header-row th {
  top: 0;
}

.list-page-calc-row th {
  top: 39px;
  z-index: 3;
  height: 22px;
  padding-top: 2px;
  padding-bottom: 2px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
}

.list-page-column-trigger,
.list-page-calc-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 2px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.list-page-column-trigger:hover,
.list-page-column-trigger.active,
.list-page-calc-trigger:hover,
.list-page-calc-trigger.active {
  background: #e5e7eb;
}

.list-page-column-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-page-column-chevron,
.list-page-calc-chevron {
  color: #5f6b7a;
  font-size: 16px;
  line-height: 1;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 120ms ease, width 120ms ease;
}

.list-page-column-trigger.active .list-page-column-chevron,
.list-page-calc-trigger.active .list-page-calc-chevron {
  width: 16px;
  opacity: 1;
}

.list-page-calc-trigger {
  min-height: 16px;
  padding-top: 0;
  padding-bottom: 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.1;
}

.list-page-column-resizer {
  position: absolute;
  top: 0;
  right: -2px;
  z-index: 5;
  width: 5px;
  height: 100%;
  cursor: col-resize;
}

.list-page-column-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 2px;
  width: 1px;
  height: 100%;
  background: var(--line-strong);
}

.list-page-column-resizer:hover::after,
.list-page-resizable-table th.resizing .list-page-column-resizer::after {
  right: 1px;
  width: 2px;
  background: #2563eb;
}

body.list-page-column-resizing,
body.list-page-column-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.list-page-column-menu,
.list-page-calc-menu {
  position: fixed;
  z-index: var(--z-list-header-menu);
  min-width: 210px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.list-page-calc-menu {
  min-width: 180px;
  max-height: 360px;
  overflow: auto;
}

.list-page-column-menu button,
.list-page-calc-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.list-page-column-menu button:hover,
.list-page-calc-menu button:hover {
  background: #f1f5f9;
}

.list-page-calc-menu button.active,
.list-page-calc-menu button:first-child {
  color: #2563eb;
}

.list-page-frozen-boundary {
  box-shadow: inset -2px 0 0 #2563eb !important;
}

.product-info-table.product-info-row-low th,
.product-info-table.product-info-row-low td,
.product-plan-table.product-info-row-low th,
.product-plan-table.product-info-row-low td,
.product-listing-table.product-info-row-low th,
.product-listing-table.product-info-row-low td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.product-info-table.product-info-row-medium th,
.product-info-table.product-info-row-medium td,
.product-plan-table.product-info-row-medium th,
.product-plan-table.product-info-row-medium td,
.product-listing-table.product-info-row-medium th,
.product-listing-table.product-info-row-medium td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.product-info-table.product-info-row-high th,
.product-info-table.product-info-row-high td,
.product-plan-table.product-info-row-high th,
.product-plan-table.product-info-row-high td,
.product-listing-table.product-info-row-high th,
.product-listing-table.product-info-row-high td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.product-info-table.product-info-row-extra th,
.product-info-table.product-info-row-extra td,
.product-plan-table.product-info-row-extra th,
.product-plan-table.product-info-row-extra td,
.product-listing-table.product-info-row-extra th,
.product-listing-table.product-info-row-extra td {
  padding-top: 22px;
  padding-bottom: 22px;
}

.product-info-table.list-page-resizable-table .list-page-calc-row th {
  height: 22px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.product-info-table.product-info-fill-alternate .product-info-data-row:nth-child(even) td,
.product-plan-table.product-info-fill-alternate .product-plan-row:nth-child(even) td,
.product-listing-table.product-info-fill-alternate .product-listing-row:nth-child(even) td {
  background: #fbfdff;
}

.product-info-table.product-info-fill-group .product-info-group-row td,
.product-plan-table.product-info-fill-group .product-info-group-row td,
.product-listing-table.product-info-fill-group .product-info-group-row td {
  background: #eef6ff;
}

.product-info-first-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.product-info-first-field-value {
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.product-info-first-field-value:hover,
.product-info-first-field.selected .product-info-first-field-value {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
}

.product-info-detail-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.product-info-first-field.editing {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
}

.product-info-inline-input {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.product-info-table .table-link:hover,
.product-info-table .table-link:focus-visible,
.product-info-table .table-link-button:hover,
.product-info-table .table-link-button:focus-visible {
  text-decoration: none;
}

.product-info-group-row td {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-weight: 900;
}

.product-info-table.list-page-resizable-table .product-info-group-row td {
  overflow: visible;
  white-space: nowrap;
}

.product-info-table.list-page-resizable-table .product-info-group-row .list-page-group-control-cell {
  position: relative;
  z-index: 4;
}

.product-info-table.list-page-resizable-table .product-info-group-row .list-page-group-control-cell-spanned {
  position: static;
  z-index: auto;
}

.product-info-group-row.list-page-group-menu-open,
.product-info-group-row.product-info-group-menu-open {
  position: relative;
  z-index: var(--z-list-group-row-open);
}

.product-info-group-row.list-page-group-menu-open > td,
.product-info-group-row.product-info-group-menu-open > td,
.product-info-table.list-page-resizable-table .product-info-group-row.list-page-group-menu-open .list-page-group-control-cell {
  position: relative;
  z-index: var(--z-list-group-row-open);
  overflow: visible;
}

.product-info-table.list-page-resizable-table .product-info-group-row .list-page-group-summary-cell {
  text-align: left;
}

.list-page-group-summary-value {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 4px;
  border-radius: 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.product-info-group-cell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding-left: calc(var(--group-depth, 0) * 24px);
}

.product-info-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.product-info-table.market-top100-table .product-info-group-toggle {
  width: 20px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.product-info-table.market-top100-table .product-info-group-row .list-page-group-control-cell-spanned {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.product-info-table.market-top100-table .product-info-group-row .product-info-group-cell {
  padding-left: 0;
  margin-left: calc(-30px + var(--group-depth, 0) * 14px);
}

.product-info-group-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--ink);
  font-weight: 900;
}

.product-info-group-label:hover,
.product-info-group-label:focus-visible,
.product-info-group-toggle:hover,
.product-info-group-toggle:focus-visible,
.product-info-group-menu-button:hover,
.product-info-group-menu-button:focus-visible {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.product-info-table.market-top100-table .product-info-group-toggle:hover,
.product-info-table.market-top100-table .product-info-group-toggle:focus-visible {
  background: #dbeafe;
  color: #1d4ed8;
}

.product-info-group-label em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.product-info-group-menu-wrap {
  position: relative;
  display: inline-flex;
}

.product-info-group-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  font-weight: 900;
}

.product-info-group-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: var(--z-list-group-menu);
  display: grid;
  min-width: 190px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.product-info-group-menu.list-page-group-menu {
  position: fixed;
  top: auto;
  left: auto;
  z-index: var(--z-list-group-menu);
  max-height: min(260px, calc(100vh - 16px));
  overflow: auto;
}

.product-info-group-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
}

.product-info-group-menu button:hover,
.product-info-group-menu button:focus-visible {
  background: #f1f5f9;
  color: #1d4ed8;
}

.product-category-table-wrap {
  max-height: calc(100vh - 310px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-category-table {
  min-width: 1320px;
}

.product-category-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

.product-category-table th:nth-child(1),
.product-category-table td:nth-child(1) {
  width: 160px;
}

.product-category-table th:nth-child(2),
.product-category-table td:nth-child(2) {
  width: 240px;
}

.product-category-table th:nth-child(3),
.product-category-table td:nth-child(3) {
  width: 240px;
}

.product-category-table th:nth-child(4),
.product-category-table td:nth-child(4) {
  width: 110px;
}

.product-category-table th:nth-child(5),
.product-category-table td:nth-child(5),
.product-category-table th:nth-child(6),
.product-category-table td:nth-child(6) {
  width: 145px;
}

.product-category-table th:nth-child(7),
.product-category-table td:nth-child(7) {
  width: 220px;
}

.product-category-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.product-category-sort-button.active {
  color: var(--accent);
}

.product-category-group {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.product-category-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.product-category-actions .secondary-button,
.product-category-actions .danger-button,
.product-category-actions .primary-button {
  min-height: 32px;
  padding: 0 10px;
}

.product-category-edit-input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.product-category-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: calc(var(--category-depth, 0) * 26px);
}

.product-category-toggle,
.product-category-toggle-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.product-category-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.product-category-toggle:hover,
.product-category-toggle:focus-visible {
  background: var(--panel-soft);
}

.product-category-toggle-placeholder {
  opacity: 0;
}

.product-category-tree-row.level-2 td:first-child {
  background: #fbfdff;
}

.product-category-tree-row.level-3 td:first-child {
  background: #f8fafc;
}

.product-info-table th:nth-child(1),
.product-info-table td:nth-child(1) {
  width: 150px;
}

.product-info-table th:nth-child(2),
.product-info-table td:nth-child(2) {
  width: 150px;
}

.product-info-table th:nth-child(3),
.product-info-table td:nth-child(3) {
  width: 260px;
}

.product-info-table th:nth-child(9),
.product-info-table td:nth-child(9) {
  width: 120px;
}

.product-info-fields summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.table-link {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.table-link:hover,
.table-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-link.development-table-link:hover,
.table-link.development-table-link:focus-visible {
  text-decoration: none;
}

.product-info-field-grid {
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr);
  gap: 8px 12px;
  width: min(760px, 80vw);
  max-height: 420px;
  overflow: auto;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-info-field-grid span {
  color: var(--muted);
  font-size: 12px;
}

.product-info-field-grid strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-info-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-info-detail-grid > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-info-detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.product-info-detail-grid strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-plan-page {
  display: grid;
  gap: 12px;
}

.product-plan-panel {
  overflow: visible;
}

.product-plan-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(5, minmax(132px, 0.7fr));
  align-items: end;
}

.product-plan-filters label,
.product-plan-filters .search-field {
  width: 100%;
}

.product-plan-filter-combobox {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-plan-filter-combobox > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-plan-filter-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.product-plan-filter-option {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.product-plan-filter-option:hover,
.product-plan-filter-option:focus-visible,
.product-plan-filter-option.active {
  background: #f1f5f9;
}

.product-plan-filter-option strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-plan-filter-option span,
.product-plan-filter-empty {
  color: var(--muted);
  font-size: 12px;
}

.product-plan-filter-empty {
  padding: 10px;
  line-height: 1.5;
}

.product-plan-table-wrap {
  max-height: calc(100vh - 330px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-plan-table {
  min-width: 1380px;
}

.product-plan-table th,
.product-plan-table td {
  min-width: 120px;
}

.product-plan-table th:nth-child(1),
.product-plan-table td:nth-child(1) {
  min-width: 150px;
}

.product-plan-table th:nth-child(2),
.product-plan-table td:nth-child(2) {
  min-width: 150px;
}

.product-plan-table th:nth-child(3),
.product-plan-table td:nth-child(3) {
  min-width: 240px;
}

.product-plan-row td[data-action] {
  cursor: pointer;
}

.product-plan-row:hover td[data-action] {
  background: #f8fafc;
}

.product-plan-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-plan-column-config-button {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.table-column-config-dialog {
  width: min(1180px, calc(100vw - 48px));
  border: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
}

.table-column-config-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
}

.table-column-config-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.table-column-config-header,
.table-column-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.table-column-config-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.table-column-config-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  min-height: 520px;
  overflow: hidden;
}

.table-column-config-left,
.table-column-config-right {
  min-width: 0;
  padding: 20px;
  overflow: auto;
}

.table-column-config-right {
  border-left: 1px solid var(--line);
  background: #fbfdff;
}

.table-column-config-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.table-column-config-section-title strong {
  color: var(--ink);
  font-size: 16px;
}

.table-column-config-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.text-link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}

.table-column-config-search {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table-column-config-search input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.table-column-config-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.table-column-config-group-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.table-column-config-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px 22px;
}

.table-column-config-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.table-column-config-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
}

.table-column-config-check span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-column-config-order-list {
  display: grid;
  gap: 6px;
}

.table-column-config-order-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 8px;
  border-radius: 8px;
  background: transparent;
}

.table-column-config-order-item[draggable="true"] {
  cursor: grab;
}

.table-column-config-order-item:hover {
  background: #eef4ff;
}

.table-column-config-order-item.dragging {
  cursor: grabbing;
  opacity: 0.52;
}

.table-column-config-order-item.drag-over {
  background: #dbeafe;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.table-column-config-order-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-column-config-order-item > div {
  display: flex;
  gap: 4px;
}

.table-column-config-drag {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0;
}

.table-column-config-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.table-column-config-actions {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.table-column-config-actions > div {
  display: flex;
  gap: 8px;
}

.product-tier-page {
  display: grid;
  gap: 12px;
}

.product-tier-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-tier-hero h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.product-tier-hero p {
  max-width: 820px;
}

.product-tier-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.product-tier-standard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.product-tier-panel {
  overflow: hidden;
}

.product-tier-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-tier-standard-table {
  min-width: 560px;
}

.product-tier-threshold-table {
  min-width: 900px;
}

.product-tier-standard-table th,
.product-tier-threshold-table th {
  text-align: center;
  vertical-align: middle;
}

.product-tier-table-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 9px;
  font: inherit;
}

.product-tier-table-textarea {
  min-height: 54px;
  line-height: 1.4;
  resize: vertical;
}

.product-tier-table-input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(56, 117, 246, 0.14);
}

.product-tier-table-value {
  display: block;
  min-height: 22px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
}

.product-tier-section-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.product-tier-principles {
  gap: 8px;
}

.product-tier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.product-tier-field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-tier-field-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
}

.product-tier-review-page {
  display: grid;
  gap: 12px;
}

.product-tier-review-panel {
  overflow: hidden;
}

.product-tier-review-top-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(620px, 1.18fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 14px;
}

.product-tier-review-left {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
}

.product-tier-review-title-row {
  min-height: 0;
}

.product-tier-review-right {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.product-tier-review-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-tier-review-summary-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.product-tier-review-refresh-button {
  min-width: 64px;
  white-space: nowrap;
}

.product-tier-review-grade-summary {
  max-width: 100%;
  overflow-x: auto;
}

.product-tier-review-grade-summary-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 11px;
}

.product-tier-review-grade-summary-table th,
.product-tier-review-grade-summary-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 5px 6px;
  text-align: right;
  white-space: nowrap;
}

.product-tier-review-grade-summary-table th:first-child,
.product-tier-review-grade-summary-table td:first-child {
  width: 54px;
  text-align: left;
  font-weight: 800;
}

.product-tier-review-grade-summary-table tr:last-child td {
  border-bottom: 0;
}

.product-tier-review-grade-summary-table th:last-child,
.product-tier-review-grade-summary-table td:last-child {
  border-right: 0;
}

.product-tier-review-grade-summary-table span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.product-tier-review-source-note {
  padding: 8px 10px;
  background: #fbfcfe;
  line-height: 1.45;
}

.product-tier-review-tabs,
.product-tier-review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tier-review-tabs {
  margin-top: 2px;
}

.product-tier-review-tabs .segmented-button {
  min-width: 70px;
}

.product-tier-review-summary {
  align-items: center;
  gap: 7px;
}

.product-tier-review-meta-group,
.product-tier-review-grade-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.product-tier-review-filters {
  grid-template-columns: minmax(280px, 1fr);
  padding: 0;
  border: 0;
  background: transparent;
}

.product-tier-review-filters .search-field {
  width: min(420px, 100%);
}

.product-tier-review-field-filter {
  grid-column: 1 / -1;
}

.product-tier-review-table-wrap {
  max-height: calc(100vh - 355px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-tier-review-table {
  min-width: 1240px;
}

.product-tier-review-table th,
.product-tier-review-table td {
  min-width: 112px;
  max-width: 280px;
  vertical-align: top;
}

.product-tier-review-table tbody tr {
  cursor: pointer;
}

.product-tier-review-table tbody tr:hover,
.product-tier-review-table tbody tr:focus-visible {
  background: #f7fbff;
}

.product-tier-review-table th:nth-child(2),
.product-tier-review-table td:nth-child(2) {
  min-width: 260px;
}

.numeric-cell,
.product-tier-review-table th:nth-child(5),
.product-tier-review-table th:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}

.product-tier-review-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.product-tier-review-detail-table-wrap {
  max-height: calc(100vh - 420px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-tier-review-detail-table {
  min-width: 1060px;
}

.product-tier-review-detail-table th,
.product-tier-review-detail-table td {
  min-width: 104px;
  max-width: 220px;
  vertical-align: top;
}

.product-tier-review-detail-table th:nth-child(1),
.product-tier-review-detail-table td:nth-child(1) {
  min-width: 150px;
}

.product-tier-review-detail-table th:nth-child(8),
.product-tier-review-detail-table th:nth-child(9) {
  text-align: right;
}

@media (max-width: 1180px) {
  .product-tier-review-top-layout {
    grid-template-columns: 1fr;
  }

  .product-tier-review-left {
    min-height: 0;
  }

  .product-tier-review-right {
    justify-content: stretch;
  }

  .product-tier-review-grade-summary {
    max-width: 100%;
  }
}

.product-plan-agent-page {
  display: grid;
  gap: 12px;
}

.product-plan-agent-history-panel {
  display: grid;
  gap: 12px;
}

.product-plan-agent-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-plan-agent-history-head h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.product-plan-agent-history-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.product-plan-agent-history-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.product-plan-agent-history-list {
  display: grid;
  gap: 8px;
}

.product-plan-agent-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.42fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.product-plan-agent-history-item:hover,
.product-plan-agent-history-item:focus-visible {
  border-color: #b8c7d8;
  background: var(--panel-soft);
}

.product-plan-agent-history-item span,
.product-plan-agent-history-item em {
  min-width: 0;
}

.product-plan-agent-history-item strong,
.product-plan-agent-history-item small,
.product-plan-agent-history-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-plan-agent-history-item strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-style: normal;
}

.product-plan-agent-history-item small,
.product-plan-agent-history-item em,
.product-plan-agent-history-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.product-plan-agent-history-empty {
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
}

.product-plan-agent-history-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-plan-agent-history-detail > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.product-plan-agent-history-detail span {
  color: var(--muted);
  font-size: 12px;
}

.product-plan-agent-history-detail strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-plan-agent-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
  gap: 12px;
  align-items: start;
}

.product-plan-agent-input-panel,
.product-plan-agent-result-panel {
  display: grid;
  gap: 14px;
}

.product-plan-agent-form textarea {
  min-height: 172px;
}

.form-grid .product-plan-agent-model-picker {
  display: inline-grid;
  grid-template-columns: 28px minmax(128px, 1fr);
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.product-plan-agent-model-picker span {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.product-plan-agent-model-picker select {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0 24px 0 9px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.product-plan-agent-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-plan-agent-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-plan-agent-steps li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.product-plan-agent-steps li.active {
  border-color: #b8c7d8;
  background: #f6f9fd;
  color: var(--ink);
}

.product-plan-agent-steps li.done::before,
.product-plan-agent-steps li.active::before {
  background: var(--accent);
}

.product-plan-agent-steps li.error {
  border-color: rgba(223, 69, 69, 0.32);
  background: #fff5f5;
  color: var(--red);
}

.product-plan-agent-steps li.error::before {
  background: var(--red);
}

.product-plan-agent-result {
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

.product-plan-agent-result strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.product-plan-agent-result p {
  margin: 0 0 10px;
}

.product-plan-agent-knowledge {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-plan-agent-knowledge h3 {
  margin: 0;
}

.product-plan-agent-knowledge a,
.product-plan-agent-source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.product-plan-agent-source-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.product-plan-agent-source-list span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.product-plan-agent2-page {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow-x: hidden;
}

.product-plan-agent2-control-panel {
  display: grid;
  gap: 12px;
}

.product-plan-agent2-generation-status {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-plan-agent2-generation-status.running {
  border-color: #b8c7d8;
  background: #f6f9fd;
  color: var(--ink);
}

.product-plan-agent2-generation-status.done {
  background: var(--panel-soft);
}

.product-plan-agent2-controls {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(200px, 0.65fr) minmax(320px, 1.5fr);
  gap: 10px;
  align-items: start;
}

.product-plan-agent2-controls label,
.product-plan-agent2-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-plan-agent2-controls label span,
.product-plan-agent2-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-plan-agent2-controls input,
.product-plan-agent2-controls textarea,
.product-plan-agent2-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.product-plan-agent2-controls input {
  min-height: 38px;
  padding: 0 11px;
}

.product-plan-agent2-controls textarea,
.product-plan-agent2-field textarea {
  min-height: 96px;
  padding: 10px 11px;
  resize: vertical;
}

.product-plan-agent2-tabs-panel,
.product-plan-agent2-editor-panel {
  min-width: 0;
  overflow: hidden;
}

.product-plan-agent2-tabs-panel,
.product-plan-agent2-editor-panel {
  display: grid;
  gap: 12px;
}

.product-plan-agent2-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px 8px;
  box-sizing: border-box;
}

.product-plan-agent2-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.product-plan-agent2-tab:hover,
.product-plan-agent2-tab:focus-visible {
  border-color: #b8c7d8;
  background: var(--panel-soft);
}

.product-plan-agent2-tab.active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.product-plan-agent2-tab strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.product-plan-agent2-tab.active strong {
  background: #ffffff;
  color: #0f172a;
}

.product-plan-agent2-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-plan-agent2-all-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-plan-agent2-module-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.product-plan-agent2-module-card.active {
  border-color: #9bb8d5;
  background: #f6f9fd;
}

.product-plan-agent2-module-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.product-plan-agent2-module-main span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.product-plan-agent2-module-main strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.product-plan-agent2-module-main small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-plan-agent2-submodules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-plan-agent2-submodules span {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.product-plan-agent2-output-preview {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.product-plan-agent2-output-preview span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.product-plan-agent2-output-preview p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.product-plan-agent2-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.product-plan-agent2-editor-head h2 {
  margin: 4px 0 6px;
}

.product-plan-agent2-editor-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-plan-agent2-outline {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.product-plan-agent2-outline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-plan-agent2-outline strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.product-plan-agent2-editor-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 12px;
  align-items: start;
}

.product-plan-agent2-config-panel,
.product-plan-agent2-output-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-plan-agent2-column-head {
  display: grid;
  gap: 4px;
}

.product-plan-agent2-column-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-plan-agent2-column-head strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.product-plan-agent2-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-plan-agent2-output-panel .product-plan-agent2-field textarea {
  min-height: 520px;
}

.product-plan-agent2-field.full,
.product-plan-agent2-controls .full {
  grid-column: 1 / -1;
}

.error-text {
  color: var(--red);
  font-weight: 700;
}

.quiz-agent-page {
  display: grid;
  gap: 12px;
}

.quiz-agent-step-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quiz-agent-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 12px;
  align-items: start;
}

.quiz-agent-input-panel,
.quiz-agent-test-panel,
.quiz-agent-history-panel {
  display: grid;
  gap: 14px;
}

.visible-file-input {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.quiz-agent-form textarea {
  min-height: 240px;
}

.quiz-agent-drive-picker {
  display: grid;
  gap: 8px;
}

.quiz-agent-drive-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.quiz-agent-drive-search-row input {
  min-width: 0;
}

.quiz-agent-drive-results {
  display: grid;
  gap: 8px;
}

.quiz-agent-drive-empty,
.quiz-agent-selected-drive-file {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
}

.quiz-agent-selected-drive-file {
  display: grid;
  gap: 4px;
  background: #f6f9fd;
}

.quiz-agent-selected-drive-file strong {
  color: var(--ink);
}

.quiz-agent-drive-list {
  display: grid;
  gap: 6px;
}

.quiz-agent-drive-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.quiz-agent-drive-item:hover,
.quiz-agent-drive-item:focus-visible {
  border-color: #9fb6cf;
  background: #f6f9fd;
  outline: none;
}

.quiz-agent-drive-item strong {
  color: var(--ink);
  font-size: 13px;
}

.quiz-agent-drive-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quiz-agent-drive-pagination {
  justify-content: flex-start;
}

.quiz-agent-empty {
  display: grid;
  gap: 8px;
  min-height: 220px;
  place-content: center;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  text-align: center;
}

.quiz-agent-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.quiz-agent-empty p {
  margin: 0;
  color: var(--muted);
}

.quiz-agent-progress {
  height: 8px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.quiz-agent-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.quiz-agent-question {
  display: grid;
  gap: 14px;
}

.quiz-agent-question-head {
  display: grid;
  gap: 8px;
}

.quiz-agent-question-head strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.quiz-agent-options {
  display: grid;
  gap: 8px;
}

.quiz-agent-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.quiz-agent-option:not(:disabled):hover,
.quiz-agent-option:not(:disabled):focus-visible {
  border-color: #9fb6cf;
  background: #f6f9fd;
  outline: none;
}

.quiz-agent-option span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 850;
}

.quiz-agent-option em {
  color: inherit;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  word-break: break-word;
}

.quiz-agent-option.selected {
  border-color: #9fb6cf;
}

.quiz-agent-option.correct {
  border-color: rgba(42, 142, 92, 0.42);
  background: #f2fbf6;
}

.quiz-agent-option.correct span {
  background: var(--green);
  color: #ffffff;
}

.quiz-agent-option.wrong {
  border-color: rgba(223, 69, 69, 0.38);
  background: #fff5f5;
}

.quiz-agent-option.wrong span {
  background: var(--red);
  color: #ffffff;
}

.quiz-agent-hint,
.quiz-agent-explanation {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.quiz-agent-explanation.correct {
  border-color: rgba(42, 142, 92, 0.35);
  background: #f2fbf6;
}

.quiz-agent-explanation.wrong {
  border-color: rgba(223, 69, 69, 0.28);
  background: #fff8f2;
}

.quiz-agent-explanation strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.quiz-agent-explanation p {
  margin: 0 0 8px;
}

.quiz-agent-explanation blockquote {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}

.quiz-agent-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.quiz-agent-nav span {
  color: var(--muted);
  font-size: 12px;
}

.quiz-agent-score {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quiz-agent-score > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.quiz-agent-score span {
  color: var(--muted);
  font-size: 12px;
}

.quiz-agent-score strong {
  color: var(--ink);
  font-size: 18px;
}

.quiz-agent-wrong-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quiz-agent-wrong-list strong {
  color: var(--ink);
  font-size: 13px;
}

.quiz-agent-history-table th,
.quiz-agent-history-table td,
.quiz-agent-library-table th,
.quiz-agent-library-table td {
  vertical-align: middle;
}

.quiz-agent-library-table {
  min-width: 920px;
}

.table-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quiz-agent-library-table td:nth-child(4),
.quiz-agent-library-table td:nth-child(5),
.quiz-agent-history-table td:nth-child(1) {
  white-space: nowrap;
}

.quiz-agent-library-questions {
  display: grid;
  gap: 10px;
}

.quiz-agent-library-questions article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quiz-agent-library-questions strong {
  color: var(--ink);
  line-height: 1.45;
}

.quiz-agent-library-questions ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quiz-agent-library-questions li.correct {
  color: var(--green);
  font-weight: 800;
}

.quiz-agent-library-questions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.quiz-agent-history-answers {
  display: grid;
  gap: 8px;
}

.quiz-agent-history-answers article {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quiz-agent-history-answers article.correct {
  border-color: rgba(42, 142, 92, 0.32);
}

.quiz-agent-history-answers article.wrong {
  border-color: rgba(223, 69, 69, 0.32);
}

.quiz-agent-history-answers strong {
  color: var(--ink);
  line-height: 1.45;
}

.quiz-agent-history-answers p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .quiz-agent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quiz-agent-step-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-agent-score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-agent-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-agent-drive-search-row {
    grid-template-columns: 1fr;
  }
}

.product-listing-page {
  display: grid;
  gap: 12px;
}

.sales-data-page {
  display: grid;
  gap: 12px;
}

.product-listing-panel {
  overflow: hidden;
}

.sales-data-panel {
  overflow: hidden;
}

.product-listing-filters {
  grid-template-columns: minmax(260px, 1fr);
}

.sales-data-filters {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  align-items: end;
}

.product-listing-table-wrap {
  max-height: calc(100vh - 310px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sales-data-table-wrap {
  max-height: calc(100vh - 310px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-listing-table {
  min-width: 1180px;
}

.sales-data-table {
  min-width: 1320px;
}

.product-listing-table th,
.product-listing-table td {
  min-width: 132px;
  max-width: 260px;
  vertical-align: top;
}

.sales-data-table th,
.sales-data-table td {
  min-width: 120px;
  max-width: 280px;
  vertical-align: top;
}

.sales-data-table tbody tr {
  cursor: pointer;
}

.sales-data-table tbody tr:hover,
.sales-data-table tbody tr:focus-visible {
  background: #f7fbff;
}

.sales-data-table th:nth-child(n+8),
.sales-data-table td:nth-child(n+8) {
  text-align: right;
  white-space: nowrap;
}

.sales-data-head-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.sales-data-head-cell .table-sort-button {
  min-width: 0;
}

.sales-data-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #9aa3b2;
  cursor: pointer;
}

.sales-data-filter-button:hover,
.sales-data-filter-button.active {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.sales-data-filter-icon {
  position: relative;
  width: 12px;
  height: 11px;
}

.sales-data-filter-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 10px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.sales-data-filter-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 2px;
}

.sales-data-field-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.sales-data-title-button {
  max-width: 260px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.product-listing-title-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-listing-title-cell strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.product-listing-title-cell span {
  color: var(--muted);
  font-size: 12px;
}

.product-listing-title-button {
  max-width: 260px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.product-listing-bullets {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.product-listing-media-grid,
.product-listing-aplus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-listing-media-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  text-decoration: none;
}

.product-listing-media-thumb img,
.product-listing-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-listing-media-thumb.video {
  position: relative;
}

.product-listing-media-thumb.video span {
  position: absolute;
  inset: auto 4px 4px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.8);
}

.product-listing-media-chip {
  display: inline-flex;
  max-width: 150px;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-listing-detail-hero {
  margin: 12px 0;
}

.product-listing-detail-hero .product-listing-media-thumb {
  width: 86px;
  height: 86px;
}

.muted-cell {
  color: var(--muted);
  font-size: 12px;
}

.inline-copy-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.small-icon-button {
  width: 28px;
  min-height: 28px;
  font-size: 15px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.course-center-page {
  display: grid;
  gap: 14px;
}

.course-center-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.course-center-toolbar h2 {
  margin: 0;
  font-size: 22px;
}

.course-center-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.course-category-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.course-category-strip > span:first-child {
  flex: 0 0 auto;
  color: #344154;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

.course-category-arrow {
  color: #98a4b4;
  font-size: 22px;
  line-height: 1;
}

.course-category-list {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: max-content;
}

.course-category-list button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.course-category-list button:hover {
  background: #f3f7fb;
  color: #1168c8;
}

.course-category-list button.active {
  background: #e9f4ff;
  color: #1684ee;
  font-weight: 800;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 18px;
}

.course-card {
  min-width: 0;
}

.course-card-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.course-card-button:hover .course-title-line h3,
.course-card-button:focus-visible .course-title-line h3 {
  color: #1168c8;
  text-decoration: underline;
}

.course-card-button:focus-visible {
  outline: 2px solid rgba(22, 132, 238, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}

.course-cover {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 156px;
  padding: 18px;
  border-radius: 8px;
  overflow: hidden;
  color: #172033;
}

.course-cover::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 78px;
  height: 58px;
  border-radius: 18px 18px 8px 18px;
  background: rgba(255, 255, 255, 0.36);
  transform: rotate(-8deg);
}

.course-cover-badge {
  position: relative;
  z-index: 1;
  width: max-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.course-cover strong {
  position: relative;
  z-index: 1;
  max-width: 82%;
  font-size: 23px;
  line-height: 1.28;
}

.course-cover em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
}

.course-cover-sun {
  background: linear-gradient(135deg, #ffd15a, #f8b93f);
}

.course-cover-violet {
  background: linear-gradient(135deg, #1e1748, #6d5dfc 58%, #59b8ff);
  color: #ffffff;
}

.course-cover-mint {
  background: linear-gradient(135deg, #c8f4e6, #6dd0a5);
}

.course-cover-blue {
  background: linear-gradient(135deg, #cfe7ff, #5c97df);
}

.course-cover-coral {
  background: linear-gradient(135deg, #ff9b78, #ffd1a6);
}

.course-cover-indigo {
  background: linear-gradient(135deg, #1f2937, #4f63d8);
  color: #ffffff;
}

.course-cover-green {
  background: linear-gradient(135deg, #e7f7d3, #73bf5b);
}

.course-cover-rose {
  background: linear-gradient(135deg, #ffd8e6, #f378a3);
}

.course-cover-amber {
  background: linear-gradient(135deg, #fff1bf, #e5a635);
}

.course-card-body {
  display: grid;
  gap: 8px;
  padding-top: 11px;
}

.course-title-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.course-title-line span {
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f7dfbd;
  color: #885b26;
  font-size: 12px;
  font-weight: 800;
}

.course-title-line h3 {
  margin: 0;
  color: #252d3a;
  font-size: 18px;
  line-height: 1.45;
}

.course-card-body p {
  margin: 0;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #536174;
  font-size: 13px;
}

.course-meta span::before {
  content: "▣";
  margin-right: 5px;
  color: #667085;
  font-size: 10px;
}

.course-settings-page {
  max-width: 1180px;
}

.course-settings-panel {
  display: grid;
  gap: 12px;
}

.course-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-settings-head strong {
  font-size: 16px;
}

.course-settings-head span,
.course-settings-row small {
  color: var(--muted);
  font-size: 12px;
}

.course-settings-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.course-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.course-settings-row span {
  font-weight: 700;
}

.course-settings-row-button {
  cursor: pointer;
}

.course-settings-row-button:hover {
  border-color: var(--line-strong);
  background: #eef5ff;
}

.course-settings-table th:nth-child(1),
.course-settings-table td:nth-child(1) {
  width: 34%;
}

.course-settings-name-button {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.course-settings-name-button:hover {
  color: #1168c8;
  text-decoration: underline;
}

.course-settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.course-settings-field {
  display: grid;
  gap: 6px;
}

.course-settings-field.span-2 {
  grid-column: span 2;
}

.course-settings-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.course-settings-field input,
.course-settings-field select,
.course-settings-field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.course-settings-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.course-settings-note {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.course-pagination {
  margin-top: 2px;
}

.course-category-edit-row {
  align-items: end;
  min-height: 74px;
  padding: 10px 12px;
}

.course-category-edit-row label {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
}

.course-category-edit-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.course-category-edit-row input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 7px 9px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.course-detail-page {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  background: #f4f7fb;
}

.course-detail-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 18px 14px;
  overflow: auto;
}

.course-detail-course {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.course-detail-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.course-detail-course h2 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  line-height: 1.35;
}

.course-detail-course p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.course-detail-progress {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.course-detail-progress div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #526173;
  font-size: 13px;
  font-weight: 750;
}

.course-detail-progress strong {
  color: #3264ff;
}

.course-detail-progress i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.course-detail-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3264ff;
}

.course-detail-outline-label {
  color: #98a4b4;
  font-size: 13px;
  font-weight: 800;
}

.course-detail-chapters {
  display: grid;
}

.course-detail-chapters button {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 78px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: transparent;
  color: #344154;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.course-detail-chapters button.active {
  margin: 0 -14px;
  padding: 14px;
  background: #eaf6ff;
  color: #126bd3;
}

.course-detail-chapters strong {
  font-size: 15px;
  line-height: 1.55;
}

.course-detail-chapters span {
  color: #8ea0b5;
  font-size: 12px;
  font-weight: 750;
}

.course-detail-content {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px 24px 24px;
}

.course-detail-topbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.course-video-reader {
  display: grid;
  gap: 14px;
}

.course-video-shell {
  position: relative;
  min-height: min(62vw, 620px);
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 52%, transparent 0 8%, rgba(231, 189, 99, 0.86) 8.5% 10.5%, transparent 11% 100%),
    linear-gradient(135deg, #32363a, #202326 52%, #373b40);
  box-shadow: var(--shadow);
}

.course-video-watermark {
  position: absolute;
  right: 24px;
  top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 28px;
  font-weight: 900;
}

.course-video-play {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.course-video-title {
  position: absolute;
  left: 72px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  font-size: 15px;
}

.course-video-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-chapter-head {
  display: grid;
  gap: 7px;
}

.course-chapter-head span {
  width: max-content;
  border-radius: 6px;
  padding: 3px 7px;
  background: #e9f4ff;
  color: #126bd3;
  font-size: 12px;
  font-weight: 800;
}

.course-chapter-head h3 {
  margin: 0;
  color: #172033;
  font-size: 20px;
}

.course-chapter-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.course-document-reader {
  display: grid;
  gap: 16px;
  min-height: 560px;
}

.course-document-frame {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.course-document-frame strong {
  font-size: 24px;
}

.course-document-frame p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.course-chapter-settings-table th:nth-child(1),
.course-chapter-settings-table td:nth-child(1) {
  width: 72px;
}

.course-chapter-settings-table th:nth-child(2),
.course-chapter-settings-table td:nth-child(2),
.course-chapter-settings-table th:nth-child(5),
.course-chapter-settings-table td:nth-child(5) {
  width: 110px;
}

.course-chapter-settings-table td:nth-child(3) {
  max-width: 280px;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .course-detail-page {
    grid-template-columns: 1fr;
  }

  .course-detail-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: none;
  }

  .course-detail-chapters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .course-detail-chapters button {
    flex: 0 0 240px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
  }

  .course-detail-chapters button.active {
    margin: 0;
  }

  .course-detail-content {
    padding: 14px;
  }

  .course-video-shell {
    min-height: 320px;
  }
}

.daily-agent-page {
  display: grid;
  gap: 12px;
}

.daily-agent-table th:nth-child(1),
.daily-agent-table td:nth-child(1) {
  width: 150px;
}

.daily-agent-table th:nth-child(2),
.daily-agent-table td:nth-child(2) {
  width: 120px;
}

.daily-agent-table th:nth-child(3),
.daily-agent-table td:nth-child(3) {
  width: 130px;
}

.daily-report-summary-button {
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-report-detail-panel {
  display: grid;
  gap: 12px;
}

.daily-report-source-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-report-content {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
  white-space: pre-wrap;
}

.muted-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.feishu-group-detail-panel {
  display: grid;
  gap: 12px;
}

.compact-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.compact-detail-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.compact-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compact-detail-grid strong,
.compact-detail-grid code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-two-col h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.feishu-member-list {
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
}

.feishu-member-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feishu-chat-shell {
  display: grid;
  grid-template-columns: minmax(210px, 24%) minmax(0, 1fr);
  gap: 12px;
  min-height: 620px;
}

/* 飞书群聊页与左侧导航保持同一视口高度，消息列表在页面内部滚动。 */
.feishu-chat-page {
  min-height: 100vh;
  box-sizing: border-box;
}

.feishu-chat-department-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.feishu-chat-department-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.feishu-chat-department-tab strong {
  color: var(--muted);
  font-size: 12px;
}

.feishu-chat-department-tab.active {
  border-color: #2f6fed;
  background: #eff6ff;
  color: #1d4ed8;
}

.feishu-chat-department-tab.active strong {
  color: #1d4ed8;
}

.feishu-chat-analysis-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.feishu-chat-analysis-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.feishu-chat-analysis-controls label {
  display: grid;
  gap: 6px;
  min-width: 160px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.feishu-chat-analysis-controls input {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.feishu-chat-analysis-result,
.feishu-chat-analysis-records {
  display: grid;
  gap: 10px;
}

.feishu-chat-analysis-record-page-list {
  display: grid;
  gap: 8px;
}

.feishu-chat-analysis-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feishu-chat-analysis-section {
  display: grid;
  gap: 8px;
}

.feishu-chat-analysis-section h3,
.feishu-chat-analysis-records h3 {
  margin: 0;
  font-size: 14px;
}

.feishu-chat-analysis-list {
  display: grid;
  gap: 8px;
}

.feishu-chat-analysis-item,
.feishu-chat-analysis-record {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  text-align: left;
}

.feishu-chat-analysis-record {
  cursor: pointer;
}

.feishu-chat-analysis-record:hover,
.feishu-chat-analysis-record:focus-visible {
  border-color: #bfc9d8;
  background: #f8fafc;
}

.feishu-chat-analysis-item strong,
.feishu-chat-analysis-record strong {
  color: var(--ink);
  font-size: 13px;
}

.feishu-chat-analysis-item span,
.feishu-chat-analysis-record span,
.feishu-chat-analysis-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.feishu-chat-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feishu-chat-keyword-list span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.feishu-chat-groups-panel,
.feishu-chat-flow-panel {
  overflow: hidden;
}

.feishu-chat-group-list,
.feishu-chat-message-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  max-height: 560px;
  padding-right: 2px;
}

.feishu-chat-group-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feishu-chat-group-item.active {
  border-color: #bfc9d8;
  background: #eef2f7;
}

.feishu-chat-group-item:hover {
  background: #f7f9fc;
}

.feishu-chat-group-item span,
.feishu-chat-group-item strong,
.feishu-chat-group-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feishu-chat-group-item strong,
.feishu-chat-group-item small,
.feishu-chat-flow-panel .panel-title-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.feishu-chat-message {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feishu-chat-message header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.feishu-chat-message header span {
  color: var(--ink);
  font-weight: 750;
}

.feishu-chat-message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  white-space: pre-wrap;
}

.feishu-chat-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.feishu-chat-image-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  aspect-ratio: 4 / 3;
}

.feishu-chat-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feishu-chat-image-thumb--archived {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.feishu-chat-image-thumb--archived:hover {
  background: #eef2f7;
  color: var(--ink);
  text-decoration: none;
}

.feishu-chat-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feishu-chat-files a,
.feishu-chat-files span {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.compact-message-list {
  max-height: 420px;
}

.compact-module-hero {
  padding: 14px 18px;
  box-shadow: none;
}

.compact-module-hero h2 {
  font-size: 22px;
}

.feishu-docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.feishu-docs-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: #f7f9fc;
}

.feishu-doc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

.feishu-doc-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.feishu-doc-tree {
  display: grid;
  gap: 2px;
}

.feishu-doc-tree-node {
  display: grid;
}

.feishu-doc-tree-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding-left: calc(4px + var(--depth, 0) * 14px);
}

.tree-chevron-button {
  display: grid;
  width: 18px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #6b7280;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.tree-chevron-button[aria-hidden="true"] {
  cursor: default;
}

.tree-chevron-button:not([aria-hidden="true"]):hover {
  color: #111827;
}

.feishu-doc-tree-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 34px;
  width: 100%;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.feishu-doc-tree-row:has(.feishu-doc-tree-item.active) .tree-chevron-button,
.feishu-doc-tree-item.active {
  background: #e8eef8;
  color: #111827;
}

.feishu-doc-tree-row:hover .tree-chevron-button:not([aria-hidden="true"]),
.feishu-doc-tree-item:hover {
  background: #eef2f7;
}

.tree-icon {
  color: #6b7280;
}

.tree-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feishu-docs-content {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
}

.feishu-doc-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.feishu-doc-crumb {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.feishu-doc-crumb.active {
  color: var(--ink);
  font-weight: 800;
}

.feishu-doc-crumb-sep {
  color: #b8c0cc;
}

.feishu-doc-table-wrap {
  overflow: auto;
}

.feishu-doc-table {
  table-layout: fixed;
}

.feishu-doc-table th:first-child {
  width: 34%;
}

.feishu-doc-table th:nth-child(2) {
  width: 24%;
}

.feishu-doc-table th:nth-child(3),
.feishu-doc-table th:nth-child(4),
.feishu-doc-table th:nth-child(5) {
  width: 120px;
}

.feishu-doc-table th:nth-child(6) {
  width: 72px;
}

.feishu-doc-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feishu-doc-title-cell {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.feishu-doc-type-icon {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.feishu-doc-title-cell div {
  min-width: 0;
}

.feishu-doc-title-cell a,
.feishu-doc-title-cell span {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.feishu-doc-title-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.amazon-folder-table th:first-child {
  width: 30%;
}

.amazon-folder-table th:last-child {
  width: 190px;
}

.amazon-folder-table tbody tr {
  cursor: pointer;
}

.amazon-folder-table tbody tr:hover {
  background: #f5f8fb;
}

.amazon-folder-name {
  color: var(--ink);
  font-weight: 750;
  word-break: break-word;
}

.amazon-folder-path {
  color: var(--muted);
  word-break: break-word;
}

.photography-drive-toolbar {
  align-items: flex-start;
}

.photography-drive-panel {
  position: relative;
}

.photography-drive-panel.is-dragging {
  outline: 2px solid var(--accent);
  outline-offset: -6px;
}

.photography-drive-drop-indicator {
  position: absolute;
  inset: 10px;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 850;
  pointer-events: none;
}

.photography-drive-panel.is-dragging .photography-drive-drop-indicator {
  display: flex;
}

.photography-drive-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.photography-drive-breadcrumb .breadcrumb-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.photography-drive-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 0;
}

.photography-drive-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.photography-drive-list {
  display: grid;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.photography-drive-list-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(170px, 0.8fr) minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.photography-drive-list-row:last-child {
  border-bottom: 0;
}

.photography-drive-list-row:hover {
  background: #f8fafc;
}

.photography-drive-list-name,
.photography-drive-list-meta,
.photography-drive-list-path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-drive-list-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.photography-drive-list-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 850;
}

.photography-drive-list-mark {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.photography-drive-list-meta,
.photography-drive-list-path {
  color: var(--muted);
  font-size: 12px;
}

.photography-drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 16px;
}

.photography-drive-card {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.photography-drive-card-preview {
  display: grid;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f5;
  cursor: pointer;
}

.photography-drive-card-preview:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(38, 76, 135, 0.14);
}

.photography-drive-card-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photography-drive-lazy-image {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.photography-drive-lazy-image.loaded,
.photography-drive-lazy-image.error {
  opacity: 1;
}

.photography-drive-lazy-image.error {
  object-fit: contain;
  background: #f8fafc;
}

.photography-drive-card-icon {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
}

.photography-drive-card-icon.folder {
  background: linear-gradient(135deg, #2f6fed, #57a3ff);
}

.photography-drive-card-icon.file {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.photography-drive-card-info {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.photography-drive-card-info strong,
.photography-drive-card-info span,
.photography-drive-card-info small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photography-drive-card-info strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.photography-drive-card-info span,
.photography-drive-card-info small {
  color: var(--muted);
  font-size: 12px;
}

.photography-drive-image-size {
  color: var(--ink);
  font-weight: 700;
}

.photography-drive-empty {
  padding: 16px;
}

@media (max-width: 720px) {
  .photography-drive-list-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
}

.photography-drive-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(15, 23, 42, 0.88);
  cursor: zoom-out;
}

.photography-drive-modal.hidden {
  display: none;
}

.photography-drive-modal img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.38);
}

.amazon-image-count {
  color: var(--accent-dark);
  font-weight: 750;
}

.amazon-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.amazon-folder-summary {
  display: grid;
  min-width: min(420px, 100%);
  gap: 3px;
  flex: 1;
}

.amazon-folder-summary strong,
.amazon-folder-summary span {
  min-width: 0;
  word-break: break-word;
}

.amazon-folder-summary span {
  color: var(--muted);
  font-size: 13px;
}

.amazon-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 16px;
  padding: 16px;
}

.amazon-thumb-cell {
  display: grid;
  position: relative;
  min-width: 0;
  gap: 8px;
}

.amazon-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f5;
}

.amazon-thumb-link-focused {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

.amazon-thumb-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amazon-thumb-cell.is-video .amazon-thumb-link {
  aspect-ratio: 16 / 9;
  background: #f8fafc;
}

.amazon-thumb-cell.is-video .amazon-thumb-link img {
  object-fit: contain;
}

.amazon-video-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.82);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.amazon-video-badge::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #ffffff;
}

.amazon-ai-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: grid;
  justify-items: end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.amazon-ai-tool-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: #4264f6;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.amazon-ai-tool-button::before {
  content: "✦";
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.amazon-ai-tool-menu {
  display: grid;
  min-width: 148px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(38, 76, 135, 0.22);
}

.amazon-ai-tool-item {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.amazon-ai-tool-item:hover {
  border-color: #d9dee7;
  background: #f3f5f8;
}

.amazon-ai-tool-item:disabled {
  cursor: wait;
}

.amazon-thumb-cell:hover .amazon-ai-tools,
.amazon-thumb-cell:focus-within .amazon-ai-tools,
.musedam-asset-card:hover .musedam-ai-tools,
.musedam-asset-card:focus-within .musedam-ai-tools {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.amazon-ai-tool-button:hover {
  background: #2f50df;
}

.amazon-thumb-name {
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}

.amazon-image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
  background: rgba(17, 25, 32, 0.86);
}

.amazon-image-modal.hidden {
  display: none;
}

.amazon-image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.musedam-gallery-page {
  gap: 14px;
}

.musedam-gallery-shell,
.musedam-detail-shell {
  display: grid;
  min-height: calc(100vh - 190px);
  overflow: hidden;
  border: 1px solid #27302d;
  border-radius: 8px;
  background: #171c19;
  color: #eef4ef;
}

.musedam-gallery-shell {
  grid-template-columns: 230px minmax(0, 1fr);
}

.musedam-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.musedam-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.musedam-toolbar-search {
  display: block;
  width: clamp(220px, 24vw, 360px);
}

.musedam-toolbar-search input {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #3b4741;
  border-radius: 7px;
  background: #111512;
  color: #f3f7f4;
  font-size: 13px;
}

.musedam-view-tabs {
  display: inline-flex;
  width: fit-content;
  overflow: hidden;
  border: 1px solid #2b3531;
  border-radius: 8px;
  background: #171c19;
}

.musedam-view-tabs button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #2b3531;
  background: transparent;
  color: #aebbb3;
  font-size: 13px;
  font-weight: 820;
}

.musedam-view-tabs button:last-child {
  border-right: 0;
}

.musedam-view-tabs button:hover,
.musedam-view-tabs button.active {
  background: #273029;
  color: #ffffff;
}

.musedam-gallery-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid #2b3531;
  background: #141815;
}

.musedam-sidebar-head {
  display: grid;
  gap: 5px;
  padding: 16px 14px;
  border-bottom: 1px solid #2b3531;
}

.musedam-sidebar-head strong {
  font-size: 15px;
}

.musedam-sidebar-head span {
  color: #94a39a;
  font-size: 12px;
  word-break: break-word;
}

.musedam-folder-list {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px;
}

.musedam-folder-node {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  padding-left: calc(var(--depth, 0) * 13px);
}

.musedam-folder-toggle {
  display: grid;
  place-items: center;
  width: 18px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #8fa099;
  font-size: 12px;
}

.musedam-folder-toggle:disabled {
  opacity: 0.35;
}

.musedam-folder-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #cbd8d0;
  text-align: left;
  font-size: 12px;
  font-weight: 760;
}

.musedam-folder-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.musedam-folder-button strong {
  flex: 0 0 auto;
  color: #8fa099;
  font-size: 11px;
}

.musedam-folder-button:hover,
.musedam-folder-button.active {
  border-color: #35443e;
  background: #232b27;
  color: #ffffff;
}

.musedam-folder-more {
  padding-left: calc(var(--depth, 0) * 13px + 20px);
}

.musedam-folder-more button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #8fa099;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.musedam-folder-more button:hover {
  color: #ffffff;
}

.musedam-sidebar-foot {
  padding: 9px 12px;
  border-top: 1px solid #2b3531;
  color: #7f8d85;
  font-size: 12px;
}

.musedam-classification-list {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 10px;
}

.musedam-classification-section {
  display: grid;
  gap: 7px;
}

.musedam-classification-section .musedam-folder-list,
.musedam-classification-section .musedam-tag-group-list {
  padding: 0;
}

.musedam-classification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  width: 100%;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #e7efe9;
  font-size: 12px;
  font-weight: 860;
  text-align: left;
}

.musedam-section-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

.musedam-section-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.musedam-section-caret {
  width: 12px;
  color: #8fa099;
  font-size: 11px;
}

.musedam-classification-head span {
  color: #8fa099;
  font-size: 11px;
  font-weight: 760;
}

.musedam-tag-group-list {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
}

.musedam-tag-group-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #cbd8d0;
  text-align: left;
  font-size: 13px;
  font-weight: 820;
}

.musedam-tag-group-button:hover,
.musedam-tag-group-button.active {
  border-color: #35443e;
  background: #232b27;
  color: #ffffff;
}

.musedam-tag-group-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.musedam-tag-group-button strong {
  color: #a7b7ad;
  font-size: 12px;
}

.musedam-gallery-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
}

.musedam-filterbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #2b3531;
  background: #1d231f;
}

.musedam-filterbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #9ba8a0;
  font-size: 12px;
  font-weight: 760;
}

.musedam-filterbar input,
.musedam-filterbar select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #3b4741;
  border-radius: 7px;
  background: #111512;
  color: #f3f7f4;
}

.musedam-filterbar input[readonly] {
  color: #c9d7cf;
}

.musedam-filterbar input::placeholder {
  color: #75827a;
}

.musedam-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 0;
  background: #1d231f;
}

.musedam-active-filters span,
.musedam-active-filters button {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #3b4741;
  border-radius: 999px;
  background: #111512;
  color: #dce7df;
  font-size: 12px;
  font-weight: 800;
}

.musedam-active-filters button {
  cursor: pointer;
}

.musedam-gallery-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #2b3531;
  color: #a9b7ae;
  font-size: 13px;
}

.musedam-tag-main {
  grid-template-rows: auto minmax(0, 1fr);
}

.musedam-tag-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #2b3531;
  background: #1d231f;
}

.musedam-tag-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.musedam-tag-board {
  overflow: auto;
  padding: 18px 20px 28px;
}

.musedam-tag-section {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.musedam-tag-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.musedam-tag-section-head strong {
  color: #ffffff;
  font-size: 18px;
}

.musedam-tag-section-head span {
  border-radius: 999px;
  background: #3a423d;
  color: #d8e4dc;
  font-size: 12px;
  font-weight: 820;
  padding: 3px 8px;
}

.musedam-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.musedam-tag-cloud button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #3a4640;
  border-radius: 7px;
  background: #242b26;
  color: #edf5f0;
  font-size: 13px;
  font-weight: 820;
}

.musedam-tag-cloud button:hover,
.musedam-tag-cloud button.active {
  border-color: #6d8577;
  background: #303a34;
}

.musedam-tag-cloud button strong {
  color: #98a79e;
}

.musedam-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 14px;
  align-content: start;
  overflow: auto;
  padding: 14px;
}

.musedam-asset-card {
  position: relative;
  min-width: 0;
}

.musedam-asset-card .musedam-ai-tools {
  top: 8px;
  right: 8px;
}

.musedam-asset-card .amazon-ai-tool-menu {
  background: #f8faf8;
}

.musedam-asset-button {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 0 0 10px;
  border: 1px solid #2c3631;
  border-radius: 8px;
  background: #202721;
  color: #eef4ef;
  text-align: left;
  overflow: hidden;
}

.musedam-asset-button:hover {
  border-color: #4f6359;
  background: #273029;
}

.musedam-thumb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f1310;
}

.musedam-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.musedam-lazy-image {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.musedam-lazy-image.loaded {
  opacity: 1;
}

.musedam-lazy-image.error {
  display: none;
}

.musedam-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #75827a;
  font-size: 12px;
  font-weight: 800;
}

.musedam-card-title,
.musedam-card-meta {
  display: block;
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.musedam-card-title {
  color: #f6faf7;
  font-size: 13px;
  font-weight: 820;
}

.musedam-card-meta {
  color: #93a29a;
  font-size: 12px;
}

.musedam-loading,
.musedam-empty {
  grid-column: 1 / -1;
  color: #a9b7ae;
}

.musedam-empty .empty-state {
  border: 1px solid #2b3531;
  background: #1d231f;
  color: #a9b7ae;
}

.musedam-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #2b3531;
  color: #a9b7ae;
  font-size: 13px;
}

.musedam-detail-shell {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.musedam-detail-viewer {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 16px 18px 24px;
}

.musedam-detail-image-wrap {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: calc(100vh - 170px);
  overflow: hidden;
  border-radius: 8px;
  background: #0f1310;
}

.musedam-detail-image-wrap .musedam-thumb-fallback {
  position: absolute;
  inset: 0;
}

.musedam-detail-image-wrap img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: contain;
}

.musedam-detail-info {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  overflow: auto;
  padding: 18px;
  border-left: 1px solid #2b3531;
  background: #1d231f;
}

.musedam-detail-title {
  display: grid;
  gap: 5px;
}

.musedam-detail-title strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.musedam-detail-title span {
  color: #94a39a;
  font-size: 12px;
}

.musedam-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.musedam-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #3b4741;
  border-radius: 7px;
  background: #26302a;
  color: #dce7df;
  font-size: 12px;
  font-weight: 760;
}

.musedam-info-list {
  display: grid;
  gap: 0;
}

.musedam-info-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.musedam-info-section h3 {
  margin: 0;
  color: #c6d4cc;
  font-size: 13px;
  font-weight: 880;
}

.musedam-info-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #2b3531;
}

.musedam-info-row span {
  color: #8d9b93;
  font-size: 12px;
}

.musedam-info-row strong {
  color: #f2f7f3;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
  word-break: break-word;
}

.musedam-raw-info-section {
  padding-top: 8px;
  border-top: 1px solid #2b3531;
}

.musedam-raw-info-section .musedam-info-row {
  grid-template-columns: 118px minmax(0, 1fr);
}

.musedam-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.musedam-detail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #42534a;
  border-radius: 7px;
  background: #101512;
  color: #dfe8e2;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.musedam-detail-links a:hover {
  border-color: #6a7e72;
  background: #273029;
}

.musedam-gallery-page {
  background: #ffffff;
  color: #111827;
}

.musedam-gallery-page .musedam-gallery-shell,
.musedam-gallery-page .musedam-detail-shell {
  border-color: #d8dee8;
  background: #ffffff;
  color: #111827;
}

.musedam-gallery-page .musedam-view-tabs {
  border-color: #d8dee8;
  background: #ffffff;
}

.musedam-gallery-page .musedam-view-tabs button {
  border-right-color: #d8dee8;
  color: #475467;
}

.musedam-gallery-page .musedam-view-tabs button:hover,
.musedam-gallery-page .musedam-view-tabs button.active {
  background: #111827;
  color: #ffffff;
}

.musedam-gallery-page .musedam-gallery-sidebar,
.musedam-gallery-page .musedam-detail-info,
.musedam-gallery-page .musedam-filterbar,
.musedam-gallery-page .musedam-active-filters,
.musedam-gallery-page .musedam-tag-toolbar {
  border-color: #d8dee8;
  background: #ffffff;
  color: #111827;
}

.musedam-gallery-page .musedam-sidebar-head,
.musedam-gallery-page .musedam-sidebar-foot,
.musedam-gallery-page .musedam-gallery-status,
.musedam-gallery-page .musedam-pagination,
.musedam-gallery-page .musedam-info-row,
.musedam-gallery-page .musedam-raw-info-section {
  border-color: #d8dee8;
}

.musedam-gallery-page .musedam-sidebar-head strong,
.musedam-gallery-page .musedam-classification-head,
.musedam-gallery-page .musedam-tag-section-head strong,
.musedam-gallery-page .musedam-detail-title strong,
.musedam-gallery-page .musedam-info-row strong,
.musedam-gallery-page .musedam-card-title {
  color: #111827;
}

.musedam-gallery-page .musedam-sidebar-head span,
.musedam-gallery-page .musedam-folder-toggle,
.musedam-gallery-page .musedam-folder-button strong,
.musedam-gallery-page .musedam-folder-more button,
.musedam-gallery-page .musedam-sidebar-foot,
.musedam-gallery-page .musedam-classification-head span,
.musedam-gallery-page .musedam-tag-group-button strong,
.musedam-gallery-page .musedam-filterbar label,
.musedam-gallery-page .musedam-gallery-status,
.musedam-gallery-page .musedam-tag-section-head span,
.musedam-gallery-page .musedam-tag-cloud button strong,
.musedam-gallery-page .musedam-card-meta,
.musedam-gallery-page .musedam-loading,
.musedam-gallery-page .musedam-empty,
.musedam-gallery-page .musedam-detail-title span,
.musedam-gallery-page .musedam-info-section h3,
.musedam-gallery-page .musedam-info-row span,
.musedam-gallery-page .musedam-thumb-fallback {
  color: #667085;
}

.musedam-gallery-page .musedam-folder-button,
.musedam-gallery-page .musedam-tag-group-button,
.musedam-gallery-page .musedam-tag-cloud button,
.musedam-gallery-page .musedam-active-filters span,
.musedam-gallery-page .musedam-active-filters button,
.musedam-gallery-page .musedam-tag-list span,
.musedam-gallery-page .musedam-detail-links a {
  border-color: #d8dee8;
  background: #ffffff;
  color: #111827;
}

.musedam-gallery-page .musedam-folder-button:hover,
.musedam-gallery-page .musedam-tag-group-button:hover,
.musedam-gallery-page .musedam-tag-cloud button:hover,
.musedam-gallery-page .musedam-asset-button:hover,
.musedam-gallery-page .musedam-detail-links a:hover,
.musedam-gallery-page .musedam-active-filters button:hover {
  border-color: #b8c4d6;
  background: #f5f7fa;
  color: #111827;
}

.musedam-gallery-page .musedam-folder-button.active,
.musedam-gallery-page .musedam-tag-group-button.active,
.musedam-gallery-page .musedam-tag-cloud button.active {
  border-color: #9bb8ff;
  background: #edf3ff;
  color: #111827;
}

.musedam-gallery-page .musedam-folder-more button:hover {
  color: #111827;
}

.musedam-gallery-page .musedam-filterbar input,
.musedam-gallery-page .musedam-filterbar select,
.musedam-gallery-page .musedam-toolbar-search input {
  border-color: #d8dee8;
  background: #ffffff;
  color: #111827;
}

.musedam-gallery-page .musedam-filterbar input[readonly],
.musedam-gallery-page .musedam-filterbar input::placeholder,
.musedam-gallery-page .musedam-toolbar-search input::placeholder {
  color: #667085;
}

.musedam-gallery-page .musedam-empty .empty-state,
.musedam-gallery-page .musedam-asset-button,
.musedam-gallery-page .musedam-detail-image-wrap,
.musedam-gallery-page .musedam-thumb-wrap {
  border-color: #d8dee8;
  background: #f8fafc;
  color: #111827;
}

.musedam-gallery-page .musedam-asset-card .amazon-ai-tool-menu {
  background: #ffffff;
}

.video-generation-app {
  min-height: calc(100vh - 108px);
}

.video-generation-shell {
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: calc(100vh - 108px);
}

.video-generation-input,
.video-generation-output {
  display: grid;
  gap: 10px;
  align-content: start;
}

.video-generation-title-row,
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-generation-title-row h2,
.video-generation-title-row span,
.field-label-row strong,
.field-label-row span {
  margin: 0;
}

.video-generation-title-row span,
.field-label-row span {
  color: var(--muted);
  font-size: 12px;
}

.video-generation-input-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 0.66fr) minmax(220px, 0.82fr) minmax(220px, 0.82fr);
  gap: 10px;
  align-items: stretch;
}

.video-generation-field-group {
  display: grid;
  gap: 7px;
  min-width: 0;
  align-content: start;
}

.video-generation-search-block {
  min-height: 0;
}

.video-generation-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
}

.video-generation-action-bar .primary-button,
.video-generation-action-bar .secondary-button {
  min-width: 132px;
}

.video-search-panel,
.video-brief-panel,
.video-generation-output {
  overflow: hidden;
}

.video-search-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.video-search-bar {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 8px;
}

.video-search-bar .search-field {
  flex: 1;
  min-width: 0;
}

.video-search-results {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.video-search-results.compact {
  max-height: 220px;
}

.video-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}

.video-search-card {
  display: grid;
  grid-template-rows: auto minmax(62px, auto) auto;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.video-search-card.is-selected {
  border-color: #9db0cc;
  background: #f6f8fc;
}

.video-search-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f5;
}

.video-search-thumb img,
.video-selected-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-search-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.video-search-info strong,
.video-search-info span {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
}

.video-search-info strong {
  color: var(--ink);
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.video-search-info span {
  color: var(--muted);
  font-size: 12px;
  -webkit-line-clamp: 1;
}

.video-insert-button {
  width: 100%;
}

.video-search-pagination {
  justify-content: space-between;
}

.video-selected-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.video-selected-list .empty-state {
  grid-column: 1 / -1;
  min-height: 124px;
  padding: 18px;
}

.video-selected-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f5;
  aspect-ratio: 1 / 1;
}

.video-selected-image .small-icon-button {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 26px;
  width: 26px;
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
}

.video-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.video-option-grid label,
.video-input-panel .field-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.video-input-panel {
  display: grid;
  gap: 12px;
}

.video-form-actions,
.video-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-form-actions {
  justify-content: flex-end;
}

.video-output-head h2,
.video-output-head span {
  margin: 0;
}

.video-output-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.video-generation-output {
  position: relative;
  min-height: 420px;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.video-remotion-summary {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.video-remotion-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.video-remotion-summary strong {
  color: var(--ink);
}

.video-remotion-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.video-output-meta,
.video-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
}

.video-output-meta strong {
  color: var(--ink);
}

.video-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.video-output-body {
  display: grid;
  min-height: 0;
  overflow: auto;
}

.video-output-empty,
.video-output-ready {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
}

.video-output-empty {
  place-items: center;
}

.video-output-frame {
  display: grid;
  place-items: center;
  gap: 8px;
  width: min(520px, 100%);
  min-height: 300px;
  padding: 28px;
  border: 1px dashed #c5ccd7;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.video-output-frame span {
  color: #a97816;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-output-frame strong {
  color: var(--ink);
  font-size: 22px;
}

.video-output-frame p {
  max-width: 320px;
  margin: 0;
  line-height: 1.55;
}

.video-output-ready video {
  display: grid;
  width: 100%;
  max-height: min(68vh, 680px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
}

.video-history-panel {
  position: absolute;
  top: 56px;
  right: 16px;
  z-index: 10;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 32px));
  max-height: calc(100% - 78px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.18);
}

.video-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-history-list {
  display: grid;
  gap: 8px;
}

.video-history-item {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.video-history-item:hover,
.video-history-item:focus-visible {
  border-color: #b8c3d4;
  background: #f4f7fb;
}

.video-history-item strong,
.video-history-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-history-item span,
.video-history-item small {
  color: var(--muted);
  font-size: 12px;
}

.video-history-item img,
.video-history-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  background: #eef2f5;
  object-fit: cover;
}

.video-history-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.skill-table {
  display: grid;
  gap: 8px;
}

.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

.skill-tab {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}

.skill-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.skill-catalog-panel {
  gap: 12px;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.4fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.local-skill-row {
  grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1.25fr) minmax(260px, 1.2fr) minmax(90px, 0.35fr);
}

.skill-row-head {
  background: #edf3fb;
  color: #536073;
  font-size: 12px;
  font-weight: 800;
}

.skill-row strong,
.skill-row em {
  display: block;
}

.skill-row strong {
  font-weight: 750;
}

.skill-row em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.skill-path {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.skill-actions {
  display: flex;
  justify-content: flex-start;
}

.compact-button {
  min-height: 32px;
  padding: 0 12px;
}

.skill-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.skill-editor h3 {
  margin: 0;
  font-size: 16px;
}

.skill-editor p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.skill-editor textarea {
  min-height: 420px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.task-app {
  display: grid;
  gap: 14px;
}

.task-status {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.diagnostic-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.diagnostic-card.ok {
  border-color: #cbe2d7;
  background: #f5fbf8;
}

.diagnostic-card.error {
  border-color: #efc8c4;
  background: #fff7f6;
}

.diagnostic-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.diagnostic-card h3 {
  margin: 0;
}

.diagnostic-card pre {
  overflow: auto;
  max-height: 260px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #101714;
  color: #d8e4dc;
  font-size: 12px;
}

.task-metrics {
  margin-bottom: 12px;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.task-sidebar-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tasklist-list {
  max-height: 68vh;
  overflow: auto;
}

.tasklist-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.tasklist-row strong,
.tasklist-row span {
  display: block;
}

.tasklist-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.tasklist-row.archived {
  opacity: 0.58;
}

.tasklist-row a {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.task-groups {
  display: grid;
  gap: 12px;
}

.task-group {
  display: grid;
  gap: 12px;
}

.task-card {
  box-shadow: none;
}

.task-card.done {
  background: var(--panel-soft);
}

.task-card.overdue {
  border-color: #e3a19b;
}

.task-card-main {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.meeting-app {
  display: grid;
  gap: 14px;
}

.meeting-status {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.meeting-metrics {
  margin-bottom: 12px;
}

.meeting-card {
  box-shadow: none;
}

.meeting-card.muted-card {
  background: var(--panel-soft);
}

.meeting-details {
  margin-top: 12px;
}

.meeting-details summary {
  cursor: pointer;
  font-weight: 750;
}

.meeting-details pre {
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #101714;
  color: #d8e4dc;
}

.link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.review-meeting-app {
  display: grid;
  gap: 14px;
}

.review-meeting-app .section-toolbar {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.review-meeting-app .section-toolbar h2 {
  font-size: 24px;
}

.review-meeting-app .section-toolbar p {
  max-width: 620px;
}

.review-meeting-app .goal-filters {
  align-items: end;
  max-width: 620px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.report-write-app {
  display: grid;
  gap: 10px;
}

.report-write-page {
  display: grid;
  gap: 10px;
}

.report-write-toolbar {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.report-write-toolbar h2 {
  margin: 0;
  font-size: 24px;
}

.report-write-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.daily-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: start;
  gap: 14px;
}

.daily-report-compose,
.daily-report-materials {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.daily-report-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.daily-report-meta-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.daily-report-meta-grid span {
  color: #7b8798;
  font-size: 12px;
  font-weight: 750;
}

.daily-report-meta-grid input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d8e0ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #263244;
  font-weight: 650;
}

.daily-report-history-action {
  display: flex;
  align-items: end;
}

.daily-report-history-action .secondary-button {
  min-height: 34px;
  white-space: nowrap;
}

.daily-report-materials {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.daily-report-material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fbfcfe;
}

.daily-report-material-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #667386;
  font-size: 13px;
  font-weight: 750;
}

.daily-report-material-tabs button.active,
.daily-report-material-tabs button:hover {
  border-color: var(--accent);
  background: #111827;
  color: #ffffff;
}

.daily-report-material-body,
.daily-report-w3d3-material {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.daily-report-feishu-material {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.daily-report-feishu-material .w3-feishu-shared-fields {
  margin: 0;
}

.daily-report-feishu-material .w3-feishu-stack {
  gap: 8px;
}

.daily-report-feishu-material .w3-feishu-section {
  margin: 0;
}

.daily-report-material-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fbfcfe;
}

.daily-report-material-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.daily-report-material-card-head h3 {
  margin: 0;
  color: #263244;
  font-size: 15px;
}

.daily-report-material-card-head span {
  color: #7b8798;
  font-size: 12px;
  font-weight: 750;
}

.daily-report-ai-summary {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.daily-report-ai-summary p,
.daily-report-task-list p {
  margin: 0;
}

.daily-report-summary-stats,
.daily-report-task-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.daily-report-summary-stats span,
.daily-report-task-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #5f6d7e;
  font-size: 12px;
  font-weight: 750;
}

.daily-report-task-list {
  display: grid;
  gap: 6px;
  color: #667386;
  font-size: 13px;
}

.daily-report-split-material {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.daily-report-resource-table-wrap {
  max-height: 420px;
  overflow: auto;
}

.daily-report-resource-table {
  min-width: 520px;
}

.daily-report-resource-table th,
.daily-report-resource-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.daily-report-resource-text {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.daily-report-history-table {
  min-width: 360px;
}

.report-write-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.report-write-field span {
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.report-write-field textarea {
  width: 100%;
  min-height: 150px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  line-height: 1.6;
}

.report-write-grid.weekly .report-write-field textarea {
  min-height: 280px;
}

.report-write-field textarea:focus {
  border-color: #9db4d1;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.weekly-meeting-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.weekly-meeting-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  box-shadow: none;
}

.weekly-meeting-tab strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--muted);
  font-size: 12px;
}

.weekly-meeting-tab.active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.weekly-meeting-tab.active strong {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.weekly-meeting-control-panel {
  display: grid;
  gap: 12px;
}

.weekly-meeting-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.weekly-status-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.weekly-status-metric span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.weekly-status-metric strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-status-metric p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.weekly-meeting-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.weekly-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.weekly-flow-step span {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.weekly-flow-step strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-flow-step p {
  grid-column: 2;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-weekly-plan,
.weekly-meeting-list-panel,
.weekly-meeting-detail-panel {
  display: grid;
  gap: 12px;
}

.management-weekly-plan {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.management-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.management-plan-head h2 {
  margin: 4px 0 6px;
}

.management-plan-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.management-plan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.management-plan-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.65fr);
  gap: 12px;
  align-items: stretch;
}

.management-principle-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d6dfec;
  border-radius: 8px;
  background: #ffffff;
}

.management-principle-panel strong {
  font-size: 15px;
}

.management-principle-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.management-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.management-plan-card {
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.management-plan-card strong {
  display: block;
  margin-bottom: 8px;
}

.management-plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.weekly-meeting-table th:nth-child(1),
.weekly-meeting-table td:nth-child(1) {
  min-width: 170px;
}

.weekly-meeting-table th:nth-child(2),
.weekly-meeting-table td:nth-child(2) {
  min-width: 150px;
}

.weekly-meeting-table th:nth-child(3),
.weekly-meeting-table td:nth-child(3),
.weekly-meeting-table th:nth-child(4),
.weekly-meeting-table td:nth-child(4) {
  min-width: 280px;
}

.weekly-meeting-date-input,
.weekly-meeting-url-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.weekly-meeting-date-input {
  max-width: 150px;
  padding: 0 8px;
}

.weekly-meeting-url-input {
  padding: 0 10px;
}

.weekly-meeting-title-button {
  max-width: 320px;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-meeting-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.detail-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.weekly-meeting-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekly-meeting-detail-text {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.weekly-meeting-detail-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.management-meeting-app {
  display: grid;
  gap: 14px;
}

.management-meeting-app .section-toolbar {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.management-meeting-app .section-toolbar h2 {
  font-size: 24px;
}

.management-meeting-app .section-toolbar p {
  max-width: 760px;
}

.management-meeting-flow {
  padding: 0;
  border: 0;
  background: transparent;
}

.management-meeting-flow .weekly-flow-step {
  min-height: 76px;
  padding: 14px 16px;
  background: #f3f6fb;
}

.management-meeting-flow .weekly-flow-step span {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.management-meeting-flow .weekly-flow-step strong {
  font-size: 16px;
}

.management-meeting-flow .weekly-flow-step p {
  font-size: 13px;
}

.management-meeting-input-panel {
  display: grid;
  gap: 10px;
}

.meeting-input-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) 180px minmax(220px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
}

.meeting-date-field input {
  min-width: 160px;
}

.meeting-week-control {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.meeting-week-control input {
  min-width: 0;
  text-align: center;
  font-weight: 850;
}

.management-analyze-button {
  min-height: 42px;
  white-space: nowrap;
}

.management-meeting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.management-analysis-panel,
.management-task-panel {
  display: grid;
  gap: 12px;
}

.management-task-panel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.management-analysis-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.management-department-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.management-department-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-weight: 850;
}

.management-department-tab strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--muted);
  font-size: 12px;
}

.management-department-tab.active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.management-department-tab.active strong {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.management-department-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.management-department-analysis-column,
.management-department-task-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.management-department-task-column {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.management-department-list {
  display: grid;
  gap: 12px;
}

.management-all-departments {
  display: grid;
  gap: 12px;
}

.management-department-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.management-department-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.management-department-head h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.management-department-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.management-overall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.management-overall-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.management-overall-section strong {
  font-size: 14px;
  color: var(--ink);
}

.management-overall-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.management-overall-section p {
  margin: 0;
  color: var(--muted);
}

.management-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.management-check {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.management-check.ok {
  background: #ecfdf5;
  color: #047857;
}

.management-snippet-list {
  display: grid;
  gap: 8px;
}

.management-snippet-list p {
  margin: 0;
  padding: 10px;
  border-left: 3px solid #111827;
  background: #f8fafc;
  color: var(--ink);
  line-height: 1.65;
}

.management-suggestion-row {
  display: grid;
  gap: 8px;
}

.management-suggestion-row strong {
  font-size: 13px;
}

.management-suggestion-row ul,
.management-suggestion-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.management-suggestion-row ul {
  padding-left: 18px;
}

.management-missing-text {
  margin: 0;
  color: #9a3412;
  font-size: 13px;
  font-weight: 750;
}

.management-task-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.management-task-groups {
  display: grid;
  gap: 12px;
}

.management-task-group {
  display: grid;
  gap: 8px;
}

.management-task-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.management-task-group h3 span {
  color: var(--muted);
  font-size: 12px;
}

.management-task-list {
  display: grid;
  gap: 8px;
}

.management-task-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.management-task-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.management-task-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.management-task-item .link-button {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .weekly-meeting-tabs,
  .weekly-meeting-status-grid,
  .management-analysis-summary,
  .management-department-tabs,
  .management-plan-grid,
  .weekly-meeting-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-meeting-flow,
  .meeting-input-grid,
  .management-meeting-layout,
  .management-department-workspace,
  .management-plan-layout {
    grid-template-columns: 1fr;
  }

  .management-task-panel,
  .management-department-task-column {
    position: static;
    max-height: none;
  }

  .web-analytics-grid,
  .web-analytics-filter-grid {
    grid-template-columns: 1fr;
  }

  .musedam-gallery-shell,
  .musedam-detail-shell {
    min-height: auto;
  }

  .musedam-gallery-shell,
  .musedam-detail-shell {
    grid-template-columns: 1fr;
  }

  .musedam-gallery-sidebar,
  .musedam-detail-info {
    border-right: 0;
    border-left: 0;
  }

  .url-navigation-layout {
    grid-template-columns: 1fr;
  }

  .url-navigation-sidebar {
    position: static;
  }

  .url-navigation-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .musedam-page-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .musedam-page-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .musedam-filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .musedam-tag-toolbar {
    grid-template-columns: 1fr auto;
  }

  .global-top-tools {
    gap: 6px;
    padding-right: 10px;
  }

  .global-search {
    width: clamp(180px, 28vw, 260px);
  }

  .app-shell {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    padding: 12px 6px;
    border-right: 1px solid var(--sidebar-line);
    border-bottom: 0;
  }

  .brand,
  .primary-menu-section {
    min-width: 0;
  }

  .primary-menu-section {
    width: auto;
    order: initial;
  }

  .business-menu {
    display: grid;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .business-menu-item {
    flex: initial;
  }

  .menu-root-button {
    min-width: 0;
  }

  .menu-submenu {
    top: 43px;
    bottom: auto;
    left: 86px;
    min-width: 150px;
    max-width: calc(100vw - 100px);
    height: auto;
    max-height: calc(100vh - 55px);
    transform: translateY(-4px);
  }

  .menu-submenu[aria-label="我二级菜单"] {
    top: auto;
    bottom: 0;
    height: auto;
    max-height: calc(100vh - 56px);
    transform: translateY(4px);
  }

  .business-menu-item:hover .menu-submenu {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .side-section-title {
    display: none;
  }

  .nav-item {
    min-width: 116px;
    min-height: 50px;
    padding: 0 18px;
    font-size: 18px;
  }

  .w3-heading {
    grid-template-columns: 1fr;
    padding: 14px 12px 20px;
  }

  .w3d3-stack > .w3-heading {
    grid-template-columns: 1fr;
    padding: 5px 10px;
  }

  .date-control {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .week-strip {
    grid-template-columns: repeat(7, minmax(48px, 1fr));
  }

  .w3-columns {
    grid-template-columns: 1fr;
  }

  .w3-workbench-columns {
    grid-template-columns: 1fr;
  }

  .w3d3-stack,
  .w3-feishu-column {
    height: auto;
    overflow: visible;
  }

  .workbench-product-grid {
    grid-template-columns: 1fr;
  }

  .w3-panel {
    min-height: auto;
  }

  .w3-feishu-row {
    grid-template-columns: 20px minmax(220px, 1fr) 160px minmax(120px, 0.5fr);
  }

  .dashboard-grid,
  .module-metrics,
  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-strip,
  .review-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-grid,
  .agent-layout,
  .agent-card-grid,
  .meeting-policy-grid,
  .meeting-requirement-row,
  .meeting-type-row,
  .task-layout,
  .diagnostic-grid,
  .listing-agent-layout,
  .listing-card-grid {
    grid-template-columns: 1fr;
  }

  .design-compare-top-row,
  .design-compare-middle-row,
  .design-compare-bottom-row,
  .meeting-analysis-form,
  .meeting-analysis-summary,
  .realtime-meeting-control-grid,
  .realtime-meeting-feishu-fields,
  .realtime-meeting-audio-monitor,
  .realtime-meeting-layout {
    grid-template-columns: 1fr;
  }

  .realtime-meeting-mode-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .realtime-meeting-records-jump {
    margin-left: 0;
  }

  .realtime-meeting-transcript-panel {
    grid-row: auto;
  }

  .listing-card-body {
    grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1fr);
  }

  .variant-tool-shell {
    grid-template-columns: 72px minmax(280px, 360px) minmax(0, 1fr);
  }

  .variant-showcase {
    padding: 18px;
  }

  .variant-example-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .video-generation-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-search-results {
    max-height: 520px;
  }

  .video-generation-output {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .cloud-database-meta-grid {
    grid-template-columns: 1fr;
  }

  .weekly-meeting-tabs,
  .weekly-meeting-status-grid,
  .weekly-meeting-flow,
  .management-plan-layout,
  .management-plan-grid,
  .weekly-meeting-detail-grid {
    grid-template-columns: 1fr;
  }

  .management-plan-head {
    display: grid;
  }

  .management-plan-actions {
    justify-content: flex-start;
  }

  .musedam-filterbar {
    grid-template-columns: 1fr;
  }

  .musedam-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .musedam-gallery-status,
  .musedam-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .url-navigation-card-grid {
    grid-template-columns: 1fr;
  }

  .url-navigation-category-button {
    padding: 10px;
  }

  .musedam-tag-toolbar {
    grid-template-columns: 1fr;
  }

  .musedam-info-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .musedam-detail-viewer {
    padding: 12px;
  }

  .musedam-detail-image-wrap {
    min-height: 300px;
  }

  .global-search {
    width: 150px;
  }

  .global-search-field input {
    font-size: 12px;
  }

  .global-search-panel,
  .notification-panel {
    width: calc(100vw - 92px);
  }

  .app-shell {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    padding: 10px 5px;
    border-right: 1px solid var(--sidebar-line);
    border-bottom: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 15px;
  }

  .sidebar-status {
    min-width: auto;
    gap: 7px;
  }

  .menu-root-button {
    min-width: 0;
    min-height: 34px;
    padding: 0 5px;
    font-size: 12px;
  }

  .menu-submenu {
    top: 40px;
    bottom: auto;
    left: 76px;
    min-width: 142px;
    height: auto;
    max-height: calc(100vh - 52px);
    max-width: calc(100vw - 86px);
    transform: translateY(-4px);
  }

  .menu-submenu[aria-label="我二级菜单"] {
    top: auto;
    bottom: 0;
    height: auto;
    max-height: calc(100vh - 52px);
    transform: translateY(4px);
  }

  .menu-submenu[aria-label="AI二级菜单"] {
    top: 40px;
    left: 76px;
    width: calc(100vw - 90px);
    column-count: 2;
    column-gap: 4px;
    row-gap: 2px;
    height: auto;
    max-width: calc(100vw - 86px);
    max-height: calc(100vh - 52px);
  }

  .grouped-submenu,
  .menu-submenu[aria-label="产品二级菜单"],
  .menu-submenu[aria-label="系统二级菜单"] {
    width: calc(100vw - 90px);
    column-count: 2;
  }

  .grouped-submenu .submenu-group {
    min-width: 0;
  }

  .top-icon-button,
  .avatar-button {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .nav-list {
    padding: 5px;
  }

  .nav-item {
    min-width: 88px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 15px;
  }

  .main-panel {
    padding: 12px;
  }

  .activity-tabs {
    min-height: 40px;
    margin: -12px -12px 12px;
    padding: 0 8px;
  }

  .activity-tab {
    height: 40px;
    padding: 0 5px;
  }

  .activity-tab-main {
    max-width: 136px;
    height: 32px;
    font-size: 13px;
  }

  .topbar,
  .goal-header,
  .goal-filters,
  .section-toolbar,
  .panel-header,
  .module-hero,
  .task-card-main {
    align-items: stretch;
    flex-direction: column;
  }

  .goal-filters label,
  .goal-filters .search-field {
    width: 100%;
  }

  .dashboard-grid,
  .module-metrics,
  .process-strip,
  .review-board,
  .two-col,
  .three-col,
  .form-grid,
  .product-plan-agent-grid,
  .product-plan-agent2-controls,
  .product-plan-agent2-editor-grid,
  .product-plan-agent2-field-grid,
  .product-plan-agent2-all-grid,
  .daily-report-layout,
  .daily-report-split-material,
  .report-write-grid {
    grid-template-columns: 1fr;
  }

  .daily-report-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-report-history-action {
    grid-column: 1 / -1;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .unplanned-module-hero {
    min-height: 0;
    padding: 20px;
  }

  .unplanned-module-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .unplanned-module-hero .hero-actions button {
    width: 100%;
    min-width: 0;
  }

  .unplanned-module-grid {
    grid-template-columns: 1fr;
  }

  .module-step-item {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 11px;
  }

  .product-plan-agent-history-head,
  .product-plan-agent-history-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-plan-agent-history-item,
  .product-plan-agent-history-detail {
    grid-template-columns: 1fr;
  }

  .product-plan-agent2-tabs {
    justify-content: flex-start;
  }

  .product-plan-agent2-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-plan-agent2-output-panel .product-plan-agent2-field textarea {
    min-height: 360px;
  }

  .node-main {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: auto;
    height: auto;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .composer > .prompt-queue-panel,
  .composer > textarea,
  .composer > .attachment-tray,
  .composer > .agent-context-selectors,
  .composer > .gpt-judgement-note {
    grid-column: 1;
  }

  .gpt-judgement-note {
    justify-self: center;
    white-space: normal;
  }

  .agent-context-selectors,
  .skill-row {
    grid-template-columns: 1fr;
  }

  .agent-context-selectors > .attachment-button,
  .agent-context-selectors > .send-mode-control,
  #gptAttachmentStatus {
    justify-self: stretch;
  }

  .agent-route-popover {
    width: min(280px, calc(100vw - 48px));
    grid-template-columns: 1fr;
  }

  .agent-route-menu-group + .agent-route-menu-group {
    margin-top: 8px;
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gallery-panel {
    min-height: auto;
    height: auto;
  }

  .history-gallery-grid {
    grid-template-columns: 1fr;
  }

  .agent-layout {
    height: auto;
  }

  .agent-setting-page {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: visible;
  }

  .agent-setting-editor,
  .agent-setting-preview {
    overflow: visible;
  }

  .agent-setting-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-setting-head,
  .agent-knowledge-head,
  .agent-knowledge-editor-head {
    flex-direction: column;
  }

  .agent-setting-top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .agent-setting-file-tabs,
  .project-agent-setting-files,
  .agent-knowledge-body,
  .project-agent-model-form {
    grid-template-columns: 1fr;
  }

  .agent-knowledge-editor textarea {
    min-height: 360px;
  }

  .video-generation-app,
  .video-generation-shell {
    min-height: auto;
  }

  .video-generation-shell {
    gap: 12px;
  }

  .video-generation-input-grid {
    grid-template-columns: 1fr;
  }

  .video-generation-title-row,
  .field-label-row,
  .video-search-bar,
  .video-output-head,
  .video-form-actions,
  .video-generation-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .video-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-search-results {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .video-selected-list,
  .video-option-grid {
    grid-template-columns: 1fr;
  }

  .video-generation-output {
    min-height: auto;
  }

  .video-output-frame {
    min-height: 260px;
  }

  .video-history-panel {
    position: static;
    width: 100%;
    max-height: none;
    box-shadow: none;
  }

  .agent-preview-chat {
    margin-top: 20px;
  }

  .page[data-view^="variant-"] {
    height: auto;
    overflow: visible;
  }

  .variant-tool-view,
  .variant-tool-shell {
    height: auto;
  }

  .variant-tool-shell {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .product-tier-hero,
  .product-tier-standard-layout,
  .product-tier-grid,
  .product-tier-field-list,
  .product-plan-filters,
  .table-column-config-body,
  .table-column-config-check-grid,
  .product-category-filters {
    grid-template-columns: 1fr;
  }

  .table-column-config-right {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .product-category-filter-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .product-category-sort-settings-head,
  .product-category-sort-settings-actions {
    align-items: center;
    flex-direction: row;
  }

  .product-category-sort-menu {
    width: auto;
    justify-content: flex-end;
  }

  .product-category-level-menu,
  .product-category-sort-settings {
    width: min(360px, calc(100vw - 40px));
  }

  .product-category-sort-rule {
    grid-template-columns: 42px minmax(0, 1fr) 88px auto;
  }

  .product-tier-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .variant-tool-rail {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .variant-rail-button {
    min-width: 92px;
    min-height: 54px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .variant-rail-button:hover,
  .variant-rail-button.active {
    border-bottom-color: var(--accent);
  }

  .variant-control-panel {
    border-right: 0;
  }

  .variant-control-scroll,
  .variant-showcase {
    overflow: visible;
  }

  .variant-showcase-head {
    align-items: stretch;
    flex-direction: column;
  }

  .variant-example-grid {
    grid-template-columns: 1fr;
  }

  .w3-workbench {
    min-height: auto;
    padding-top: 12px;
  }

  .workbench-top-tabs {
    align-items: stretch;
    flex-direction: column;
    padding-right: 8px;
    padding-left: 8px;
  }

  .workbench-top-tab {
    min-width: 64px;
  }

  .workbench-top-tab-list {
    width: 100%;
  }

  .workbench-top-meta {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .workbench-top-meta-card {
    flex: 1 1 240px;
    min-width: 0;
  }

  .workbench-top-meta-card strong {
    white-space: pre-wrap;
  }

  .workbench-product-head,
  .workbench-placeholder-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-objective-table {
    min-width: 0;
  }

  .executive-objective-table thead {
    display: none;
  }

  .executive-objective-table,
  .executive-objective-table tbody,
  .executive-objective-table tr,
  .executive-objective-table td {
    display: block;
    width: 100%;
  }

  .executive-objective-table th:nth-child(n),
  .executive-objective-table td:nth-child(n) {
    width: 100%;
    min-width: 0;
  }

  .executive-objective-table tbody {
    display: grid;
    gap: 10px;
  }

  .executive-objective-table tr {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }

  .executive-objective-table td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f7;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .executive-objective-table td::before {
    content: attr(data-label);
    color: #6b7788;
    font-size: 12px;
    font-weight: 700;
  }

  .executive-objective-table td:last-child {
    border-bottom: 0;
  }

  .workbench-it-head-actions,
  .workbench-it-panel .row-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .workbench-it-tabs {
    padding: 0 8px;
  }

  .workbench-it-tabs button {
    flex: 1 1 120px;
  }

  .workbench-it-panel .panel-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench-it-task-list {
    max-height: none;
  }

  .workbench-it-task-head,
  .workbench-it-task-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 4px;
  }

  .workbench-it-task-head {
    display: none;
  }

  .workbench-it-task-owner-cell,
  .workbench-it-task-due-cell {
    grid-column: 2;
  }

  .w3-title-block {
    align-items: flex-start;
  }

  .w3-title-block h2 {
    font-size: 21px;
  }

  .w3-title-block p {
    font-size: 14px;
  }

  .date-current {
    font-size: 13px;
  }

  .week-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
  }

  .day-chip {
    min-height: 38px;
    font-size: 11px;
  }

  .day-chip strong {
    font-size: 13px;
  }

  .w3-panel {
    padding: 10px;
    border-width: 1px;
  }

  .w3-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .w3-panel-actions {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }

  .w3-feishu-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .w3-feishu-actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  .sync-time-pill {
    width: 100%;
    white-space: normal;
  }

  .w3-panel-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  .w3-panel-tabs button {
    min-width: max-content;
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .w3-task-row {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px;
  }

  .task-history {
    grid-column: 2;
    justify-self: start;
  }

  .task-line {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .task-line strong,
  .w3-task-title {
    font-size: 14px;
  }

  .task-code {
    font-size: 13px;
  }

  .w3-feishu-row {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 2px;
    align-items: flex-start;
  }

  .w3-feishu-row > span:nth-of-type(2),
  .w3-feishu-row > span:nth-of-type(3) {
    grid-column: 2;
  }

  .w3-feishu-table-head {
    display: none;
  }

  .w3-feishu-shared-fields {
    display: none;
  }

  .listing-dimension-grid,
  .listing-card-body {
    grid-template-columns: 1fr;
  }

  .listing-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-report-summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .organization-shell {
    grid-template-columns: 1fr;
  }

  .organization-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .organization-header {
    align-items: stretch;
    flex-direction: column;
  }

  .course-center-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-cover {
    min-height: 142px;
  }

  .course-settings-list {
    grid-template-columns: 1fr;
  }

  .course-settings-form-grid {
    grid-template-columns: 1fr;
  }

  .course-settings-field.span-2 {
    grid-column: auto;
  }

  .course-category-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .course-category-arrow {
    display: none;
  }

  .floating-feedback {
    right: 16px;
    bottom: 16px;
  }

  .floating-feedback-button {
    width: 44px;
    height: 44px;
  }
}
