: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);
}

.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 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.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: 240px;
}

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

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

.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-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;
}

@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;
  }
}

* {
  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: 30;
  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;
  letter-spacing: 0;
}

.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: 0;
  left: 86px;
  z-index: 70;
  display: grid;
  align-content: start;
  min-width: 150px;
  height: calc(100vh - 43px);
  max-height: none;
  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);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  contain: layout paint;
}

.grouped-submenu {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(150px, max-content));
  grid-template-rows: none;
  grid-auto-columns: unset;
  align-items: start;
  width: max-content;
  max-width: calc(100vw - 100px);
  column-gap: 8px;
}

.menu-submenu[aria-label="系统二级菜单"] {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(128px, max-content));
  grid-template-rows: none;
  align-items: start;
  align-content: start;
  gap: 6px 8px;
  width: max-content;
  height: calc(100vh - 43px);
  max-height: none;
}

.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 {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.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(.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 8px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

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

.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;
}

.activity-tab-pin {
  width: 16px;
  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);
}

.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: 10px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

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

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

.module-page {
  display: grid;
  gap: 14px;
}

.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 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;
}

.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;
}

.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 {
  min-height: calc(100vh - 128px);
  padding: 14px 10px 0;
  background: #ffffff;
  border-top: 8px solid #f3f6fa;
}

.workbench-top-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 12px;
  border-bottom: 1px solid #eef2f7;
  overflow-x: auto;
}

.workbench-top-tab {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #657181;
  font-size: 14px;
  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: 14px;
  padding: 12px 24px 18px;
}

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

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

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

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

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

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

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

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

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

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

.day-chip strong {
  color: #687386;
  font-size: 15px;
  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: 5px;
  right: 9px;
  color: var(--amber);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

.w3-panel {
  min-height: 0;
  padding: 16px;
  border: 8px solid #f4f7fb;
  border-radius: 9px;
  background: #ffffff;
}

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

.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: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #8a94a4;
  font-size: 14px;
  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: -9px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dc4343;
  color: #ffffff;
  font-size: 12px;
}

.single-tab {
  background: transparent;
}

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

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

.add-plan-button strong {
  color: #2b3442;
  font-size: 18px;
  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: 8px;
  flex: 0 0 auto;
}

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

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

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

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

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

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

.task-line strong,
.w3-task-title {
  grid-column: 2 / -1;
  color: #2a2f38;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

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: 8px;
  color: #9aa4b2;
  font-size: 12px;
}

.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: 12px;
  margin-top: 16px;
}

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

.w3-feishu-toolbar > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  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: 15px;
  font-weight: 750;
}

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

.sync-time-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  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: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.w3-feishu-head h3 {
  margin: 0;
  color: #243041;
  font-size: 15px;
  font-weight: 750;
}

.w3-feishu-head span {
  color: #7c8797;
  font-size: 12px;
  font-weight: 650;
}

.w3-feishu-list {
  display: grid;
}

.w3-feishu-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px minmax(150px, 0.5fr);
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 9px 14px;
  border-bottom: 1px solid #f0f3f8;
  color: #596476;
  font-size: 13px;
}

.w3-feishu-row:last-child {
  border-bottom: 0;
}

.w3-feishu-table-head {
  min-height: 34px;
  background: #fbfcfe;
  color: #8b96a6;
  font-size: 12px;
  font-weight: 700;
}

.w3-feishu-title {
  min-width: 0;
  color: #263244;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.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: 14px;
  padding: 18px 12px 0;
}

.workbench-product-head,
.workbench-placeholder-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.workbench-product-head {
  padding: 4px 12px 2px;
}

.workbench-product-head h2,
.workbench-placeholder-panel h2 {
  margin-bottom: 5px;
  color: #202734;
}

.workbench-product-head p,
.workbench-placeholder-panel p {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 14px;
}

.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;
}

.realtime-meeting-control-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.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-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-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;
}

.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;
}

.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;
}

.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 th:last-child,
.agent-hub-table td:last-child {
  width: 96px;
  text-align: center;
}

.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="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="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);
}

.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;
}

.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-requirement-row {
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  align-items: start;
}

.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 textarea,
.meeting-type-row select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.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;
}

.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;
}

.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;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.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);
}

.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 minmax(0, 1fr);
  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(390px, calc(100vw - 120px));
  grid-template-columns: repeat(2, 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);
}

.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;
}

.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;
}

.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;
}

.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;
}

.automation-script-table th:nth-child(2),
.automation-script-table td:nth-child(2) {
  width: 28%;
}

.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;
}

.development-schedule-table {
  min-width: 1480px;
}

.development-requirements-table {
  min-width: 1420px;
}

.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-schedule-table th:nth-child(7),
.development-schedule-table td:nth-child(7),
.development-requirements-table th:nth-child(8),
.development-requirements-table td:nth-child(8),
.development-requirements-table th:nth-child(9),
.development-requirements-table td:nth-child(9) {
  width: 260px;
}

.development-requirement-text,
.development-criteria {
  color: var(--ink);
  line-height: 1.55;
  white-space: normal;
}

.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-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;
}

.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) {
  .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;
}

.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;
}

.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;
}

.product-info-panel {
  overflow: hidden;
}

.product-info-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 180px);
}

.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;
}

.product-info-table th:nth-child(1),
.product-info-table td:nth-child(1) {
  width: 76px;
}

.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: hidden;
}

.product-plan-filters {
  grid-template-columns: minmax(260px, 1fr);
}

.product-plan-table-wrap {
  max-height: calc(100vh - 330px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-plan-table {
  min-width: 1280px;
}

.product-plan-table th:nth-child(1),
.product-plan-table td:nth-child(1),
.product-plan-table th:nth-child(2),
.product-plan-table td:nth-child(2) {
  width: 160px;
}

.product-plan-table th:nth-child(3),
.product-plan-table td:nth-child(3) {
  width: 260px;
}

.product-plan-table th:nth-child(4),
.product-plan-table td:nth-child(4) {
  width: 92px;
}

.product-plan-table th:nth-child(7),
.product-plan-table td:nth-child(7),
.product-plan-table th:nth-child(8),
.product-plan-table td:nth-child(8) {
  width: 120px;
}

.product-plan-table th:nth-child(9),
.product-plan-table td:nth-child(9) {
  width: 130px;
}

.product-plan-agent-page {
  display: grid;
  gap: 12px;
}

.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;
}

.error-text {
  color: var(--red);
  font-weight: 700;
}

.product-listing-page {
  display: grid;
  gap: 12px;
}

.product-listing-panel {
  overflow: hidden;
}

.product-listing-filters {
  grid-template-columns: minmax(260px, 1fr);
}

.product-listing-table-wrap {
  max-height: calc(100vh - 310px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-listing-table {
  min-width: 1180px;
}

.product-listing-table th,
.product-listing-table td {
  min-width: 132px;
  max-width: 260px;
  vertical-align: top;
}

.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;
}

.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(260px, 34%) minmax(0, 1fr);
  gap: 12px;
  min-height: 620px;
}

.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: 5px;
  width: 100%;
  padding: 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;
}

.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 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 {
  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);
}

.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;
}

@media (max-width: 1100px) {
  .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: 0;
    left: 86px;
    min-width: 150px;
    max-width: calc(100vw - 100px);
    height: calc(100vh - 43px);
    max-height: none;
    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;
  }

  .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;
  }

  .workbench-product-grid {
    grid-template-columns: 1fr;
  }

  .w3-panel {
    min-height: auto;
  }

  .w3-feishu-row {
    grid-template-columns: 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-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,
  .realtime-meeting-control-grid,
  .realtime-meeting-feishu-fields,
  .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) {
  .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: 0;
    left: 76px;
    min-width: 142px;
    height: calc(100vh - 40px);
    max-height: none;
    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;
    grid-template-columns: repeat(2, minmax(126px, max-content));
    height: calc(100vh - 40px);
    max-width: calc(100vw - 86px);
    max-height: none;
  }

  .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 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .node-main {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: auto;
    height: auto;
  }

  .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);
  }

  .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;
  }

  .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 {
    padding-right: 8px;
    padding-left: 8px;
  }

  .workbench-top-tab {
    min-width: 64px;
  }

  .workbench-product-head,
  .workbench-placeholder-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .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: 16px;
  }

  .week-strip {
    gap: 0;
    padding: 8px;
  }

  .day-chip {
    min-height: 58px;
    font-size: 12px;
  }

  .day-chip strong {
    font-size: 15px;
  }

  .w3-panel {
    padding: 14px;
    border-width: 8px;
  }

  .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: 42px;
    padding: 0 18px;
    font-size: 15px;
  }

  .w3-task-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .task-history {
    grid-column: 2;
    justify-self: start;
  }

  .task-line {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .task-line strong,
  .w3-task-title,
  .task-code {
    font-size: 15px;
  }

  .w3-feishu-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: flex-start;
  }

  .w3-feishu-table-head {
    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;
  }
}
