:root {
  --yb-primary: #2174fd;
  --yb-primary-hover: #4098fc;
  --yb-primary-deep: #155bd7;
  --yb-violet: #5b54d3;
  --yb-bg: #f8fafd;
  --yb-surface: #ffffff;
  --yb-border: #dcdfe6;
  --yb-border-soft: #e8edf6;
  --yb-text: #172033;
  --yb-text-soft: #606266;
  --yb-text-muted: #909399;
  --yb-shadow: 0 22px 60px rgba(33, 116, 253, 0.09);
  color: var(--yb-text);
  background: var(--yb-bg);
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
select {
  font: inherit;
}

select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23536176' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: var(--yb-text);
  background:
    radial-gradient(circle at 82% 6%, rgba(33, 116, 253, 0.13), transparent 30%),
    radial-gradient(circle at 18% 16%, rgba(91, 84, 211, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--yb-bg) 48%, #f1f6ff 100%);
}

.sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  width: 286px;
  min-width: 286px;
  height: 100vh;
  flex-direction: column;
  overflow: visible;
  padding: 22px 14px;
  color: var(--yb-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.98) 100%);
  border-right: 1px solid rgba(220, 223, 230, 0.9);
  box-shadow: 20px 0 54px rgba(33, 116, 253, 0.08);
  transition: width 180ms ease, min-width 180ms ease;
}

.sidebar.is-collapsed {
  width: 88px;
  min-width: 88px;
  padding-right: 12px;
  padding-left: 12px;
}

.sidebar-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(33, 116, 253, 0.08), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(91, 84, 211, 0.1), transparent 26%);
}

.brand-block,
.sidebar-nav,
.sidebar-footer,
.collapse-button {
  position: relative;
  z-index: 1;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--yb-text-muted);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.is-collapsed .brand-copy,
.is-collapsed .nav-copy,
.is-collapsed .settings-copy {
  display: none;
}

.collapse-button {
  display: grid;
  position: absolute;
  top: 82px;
  right: -17px;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #364153;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(33, 116, 253, 0.16), 0 0 0 4px rgba(248, 250, 253, 0.78);
}

.collapse-button svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.rotate-180 {
  transform: rotate(180deg);
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  margin-top: 34px;
}

.nav-item,
.settings-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--yb-text-soft);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
}

.nav-item:hover,
.settings-trigger:hover {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.07);
  border-color: rgba(33, 116, 253, 0.14);
}

.nav-item.is-active,
.settings-trigger.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary) 0%, var(--yb-violet) 100%);
  border-color: rgba(33, 116, 253, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 32px rgba(33, 116, 253, 0.2);
}

.nav-item.is-active .nav-icon,
.settings-trigger.is-active .nav-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-item.is-active .nav-copy small,
.settings-trigger.is-active .settings-copy small {
  color: rgba(255, 255, 255, 0.78);
}

.nav-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: inherit;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.1);
  border-radius: 14px;
}

.nav-icon svg {
  width: 21px;
  height: 21px;
}

.nav-copy,
.settings-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.nav-copy strong,
.settings-copy strong {
  font-size: 15px;
}

.nav-copy small,
.settings-copy small {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--yb-border-soft);
}

.main-area {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100vh;
  flex: 1;
  flex-direction: column;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content-shell {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 32px 42px;
}

.content-shell:has(.technical-workbench) {
  overflow: hidden;
}

.content-shell:has(.settings-page) {
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.floating-toolbar {
  position: absolute;
  right: 42px;
  bottom: 28px;
  left: 42px;
  z-index: 20;
  display: flex;
  width: max-content;
  max-width: calc(100% - 84px);
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  padding: 8px;
  color: var(--yb-text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 223, 230, 0.92);
  border-radius: 999px;
  box-shadow: 0 20px 54px rgba(23, 32, 51, 0.14), 0 6px 18px rgba(33, 116, 253, 0.1);
  backdrop-filter: blur(16px);
}

.floating-toolbar.is-dragging {
  user-select: none;
}

.floating-toolbar-drag-handle {
  display: inline-grid;
  width: 26px;
  height: 38px;
  flex: 0 0 26px;
  place-items: center;
  color: var(--yb-text-muted);
  touch-action: none;
  cursor: grab;
  background: transparent;
  border: 0;
  border-radius: 999px;
  opacity: 0.78;
}

.floating-toolbar-drag-handle:hover,
.floating-toolbar.is-dragging .floating-toolbar-drag-handle {
  color: var(--yb-primary);
  background: transparent;
  opacity: 1;
}

.floating-toolbar.is-dragging .floating-toolbar-drag-handle {
  cursor: grabbing;
}

.floating-toolbar-drag-handle svg {
  width: 18px;
  height: 18px;
}

.floating-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.floating-toolbar-separator {
  display: block;
  width: 1px;
  height: 28px;
  margin: 0 8px;
  background: var(--yb-border-soft);
}

.floating-toolbar-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  color: var(--yb-text-soft);
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

.floating-toolbar-button:hover:not(:disabled) {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.07);
  border-color: rgba(33, 116, 253, 0.12);
}

.floating-toolbar-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.floating-toolbar-button.is-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary) 0%, var(--yb-violet) 100%);
  border-color: rgba(33, 116, 253, 0.2);
  box-shadow: 0 10px 22px rgba(33, 116, 253, 0.2);
}

.floating-toolbar-button.is-primary:hover:not(:disabled) {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary-hover) 0%, var(--yb-violet) 100%);
}

.floating-toolbar-button.is-ghost {
  color: var(--yb-text-muted);
}

.floating-toolbar-button.is-ghost:disabled {
  cursor: default;
  opacity: 0.82;
}

.floating-toolbar-button.is-danger {
  color: #ff3501;
}

.floating-toolbar-button.is-danger:hover:not(:disabled) {
  color: #ff3501;
  background: rgba(255, 53, 1, 0.08);
  border-color: rgba(255, 53, 1, 0.16);
}

.floating-toolbar-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.floating-toolbar-icon svg {
  width: 18px;
  height: 18px;
}

.settings-page > .floating-toolbar {
  position: fixed;
  right: 42px;
  bottom: 28px;
  left: calc(286px + 42px);
  z-index: 30;
}

.app-shell:has(.sidebar.is-collapsed) .settings-page > .floating-toolbar {
  left: calc(88px + 42px);
}

.page-stack {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 22px;
  overflow: auto;
}

.hero-panel,
.panel,
.stage-card,
.category-card,
.empty-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 30px;
  box-shadow: var(--yb-shadow);
}

.hero-panel {
  display: flex;
  min-height: 290px;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 34px;
}

.technical-hero {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.9) 58%, rgba(33, 116, 253, 0.08) 100%),
    radial-gradient(circle at 88% 16%, rgba(33, 116, 253, 0.18), transparent 30%);
}

.compact-hero {
  min-height: 220px;
  align-items: center;
}

.hero-copy {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  justify-content: center;
}

.hero-panel h2 {
  max-width: 760px;
  margin: 12px 0 14px;
  color: var(--yb-text);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.danger-action,
.text-button {
  border: 0;
}

.primary-action {
  padding: 13px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary) 0%, var(--yb-violet) 100%);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(33, 116, 253, 0.22);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  color: var(--yb-primary);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(33, 116, 253, 0.2);
  border-radius: 999px;
}

.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  color: #c83220;
  background: rgba(200, 50, 32, 0.08);
  border: 1px solid rgba(200, 50, 32, 0.16);
  border-radius: 999px;
}

.primary-action:disabled,
.secondary-action:disabled,
.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.text-button {
  color: var(--yb-primary);
  background: transparent;
}

.hero-card {
  display: flex;
  width: min(360px, 34vw);
  min-width: 280px;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(160deg, var(--yb-primary-deep) 0%, var(--yb-primary) 56%, var(--yb-violet) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 26px 50px rgba(33, 116, 253, 0.24);
}

.hero-card span,
.hero-card small {
  color: rgba(255, 255, 255, 0.72);
}

.hero-card strong {
  margin: 8px 0 22px;
  font-size: 24px;
}

.developer-test-hero {
  padding: 28px 34px;
}

.developer-test-hero .hero-copy {
  max-width: none;
}

.developer-test-hero h2 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
}

.developer-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.developer-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.developer-test-panel {
  min-width: 0;
  padding: 24px;
}

.developer-test-panel.is-wide {
  grid-column: 1 / -1;
}

.developer-test-panel pre {
  max-height: 300px;
  margin: 18px 0 0;
  overflow: auto;
  padding: 16px;
  color: #243047;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f5f8ff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #c7d2fe);
  border-radius: inherit;
}

.hero-card small {
  margin-top: 16px;
}

.technical-workbench {
  position: relative;
  gap: 18px;
  height: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.plan-step-body {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.technical-workbench > .plan-step-body {
  height: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.technical-workbench > .plan-step-body:not(.bid-analysis-page):not(.outline-generation-page):not(.content-generation-page) {
  grid-template-rows: auto minmax(0, 1fr);
}

.analysis-import-card,
.analysis-result-card,
.analysis-markdown-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 28px;
  box-shadow: var(--yb-shadow);
}

.analysis-import-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
}

.analysis-import-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.analysis-import-card p {
  margin: 0;
  color: var(--yb-text-soft);
}

.analysis-actions,
.plan-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.analysis-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.analysis-result-card {
  display: grid;
  overflow: hidden;
}

.analysis-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.analysis-result-head strong {
  color: var(--yb-text);
  font-size: 18px;
}

.analysis-result-head span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.analysis-result-card textarea {
  width: 100%;
  min-height: 380px;
  padding: 20px;
  color: var(--yb-text);
  line-height: 1.7;
  resize: vertical;
  background: rgba(248, 250, 253, 0.52);
  border: 0;
  outline: none;
}

.analysis-result-card textarea:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(33, 116, 253, 0.18);
}

.analysis-markdown-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.analysis-markdown-card .markdown-viewer,
.analysis-markdown-card .markdown-empty-state {
  min-height: 0;
}

.markdown-viewer {
  max-height: none;
  min-height: 460px;
  overflow: auto;
  padding: 28px 32px 36px;
  color: #243048;
  line-height: 1.78;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.68), #ffffff 22%);
}

.markdown-viewer > *:first-child {
  margin-top: 0;
}

.markdown-viewer > *:last-child {
  margin-bottom: 0;
}

.markdown-viewer h1,
.markdown-viewer h2,
.markdown-viewer h3,
.markdown-viewer h4 {
  margin: 1.4em 0 0.68em;
  color: var(--yb-text);
  line-height: 1.35;
}

.markdown-viewer h1 {
  font-size: 26px;
}

.markdown-viewer h2 {
  padding-bottom: 10px;
  font-size: 22px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.markdown-viewer h3 {
  font-size: 18px;
}

.markdown-viewer p,
.markdown-viewer ul,
.markdown-viewer ol,
.markdown-viewer blockquote,
.markdown-viewer table,
.markdown-viewer pre {
  margin: 0 0 16px;
}

.markdown-viewer ul,
.markdown-viewer ol {
  padding-left: 1.6em;
}

.markdown-viewer li + li {
  margin-top: 6px;
}

.markdown-viewer blockquote {
  padding: 12px 16px;
  color: var(--yb-text-soft);
  background: rgba(33, 116, 253, 0.06);
  border-left: 4px solid var(--yb-primary);
  border-radius: 0 14px 14px 0;
}

.markdown-viewer table {
  display: block;
  width: 100%;
  overflow: auto;
  border-collapse: collapse;
}

.markdown-viewer th,
.markdown-viewer td {
  min-width: 120px;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--yb-border-soft);
}

.markdown-viewer th {
  color: var(--yb-text);
  background: #f1f6ff;
}

.markdown-viewer code {
  padding: 2px 6px;
  color: #155bd7;
  background: rgba(33, 116, 253, 0.08);
  border-radius: 8px;
}

.markdown-viewer pre {
  overflow: auto;
  padding: 16px;
  background: #101828;
  border-radius: 16px;
}

.markdown-viewer pre code {
  padding: 0;
  color: #e5e7eb;
  background: transparent;
}

.markdown-viewer img {
  max-width: 100%;
  border-radius: 14px;
}

.markdown-viewer p:has(> img:only-child),
.markdown-viewer p:has(> em:only-child) {
  text-align: center;
}

.markdown-clickable-image {
  cursor: zoom-in;
}

.mermaid-preview-card {
  display: grid;
  margin: 20px 0;
  place-items: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.92), #ffffff);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(33, 116, 253, 0.08);
}

.mermaid-preview-card > span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.mermaid-preview-canvas {
  max-width: 100%;
  overflow: auto;
}

.mermaid-preview-canvas svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.mermaid-preview-error {
  display: grid;
  width: 100%;
  gap: 8px;
  color: #c83220;
}

.mermaid-preview-error strong {
  font-size: 14px;
}

.mermaid-preview-error small {
  color: #a84235;
}

.mermaid-preview-error pre {
  margin: 0;
  color: #e5e7eb;
  background: #101828;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 16, 28, 0.68);
  backdrop-filter: blur(10px);
}

.image-preview-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 121;
  display: grid;
  width: min(1120px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  transform: translate(-50%, -50%);
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.image-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--yb-text-soft);
  font-size: 22px;
  line-height: 1;
  background: rgba(248, 250, 253, 0.92);
  border: 1px solid var(--yb-border-soft);
  border-radius: 999px;
}

.image-preview-close:hover {
  color: var(--yb-primary);
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.22);
}

.image-preview-card h2 {
  padding-right: 44px;
  margin: 0;
  color: var(--yb-text);
  font-size: 18px;
}

.image-preview-card img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 178px);
  justify-self: center;
  object-fit: contain;
  border-radius: 18px;
}

.markdown-empty-state {
  display: grid;
  min-height: 460px;
  align-content: center;
  justify-items: center;
  padding: 48px;
  text-align: center;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.68), #ffffff 34%);
}

.markdown-empty-state strong {
  color: var(--yb-text);
  font-size: 20px;
}

.markdown-empty-state p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--yb-text-soft);
  line-height: 1.8;
}

.plan-step-actions {
  padding: 4px 0 0;
}

.bid-analysis-page {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.bid-analysis-command-bar,
.bid-analysis-workspace {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 24px;
  box-shadow: var(--yb-shadow);
}

.bid-analysis-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(91, 84, 211, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.bid-analysis-command-bar strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.bid-analysis-command-bar p {
  margin: 0;
  color: var(--yb-text-soft);
}

.bid-analysis-mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 999px;
}

.bid-analysis-mode-pill {
  display: inline-flex;
  min-width: 154px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--yb-text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

.bid-analysis-mode-pill:hover:not(:disabled) {
  color: var(--yb-primary);
  background: rgba(255, 255, 255, 0.72);
}

.bid-analysis-mode-pill.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  box-shadow: 0 10px 24px rgba(33, 116, 253, 0.22);
}

.bid-analysis-mode-pill:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.bid-analysis-mode-pill span {
  font-weight: 800;
}

.bid-analysis-mode-pill small {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.82;
}

.bid-analysis-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.bid-analysis-task-pane {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.86), #ffffff);
  border-right: 1px solid var(--yb-border-soft);
}

.bid-analysis-task-head {
  padding: 18px 20px;
}

.bid-analysis-progress-summary {
  border-bottom: 1px solid var(--yb-border-soft);
}

.bid-analysis-task-list {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  scrollbar-gutter: stable;
}

.bid-analysis-task-group {
  display: grid;
  gap: 8px;
}

.bid-analysis-task-group > span {
  padding: 0 8px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.bid-analysis-task-item {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 13px 70px 13px 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
}

.bid-analysis-task-item:hover:not(:disabled),
.bid-analysis-task-item.is-active {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.16);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.bid-analysis-task-item:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.bid-analysis-task-item.is-active::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  content: '';
  background: var(--yb-primary);
  border-radius: 999px;
}

.bid-analysis-task-item strong {
  color: var(--yb-text);
  font-size: 14px;
}

.bid-analysis-task-item small {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bid-analysis-task-item em {
  position: absolute;
  top: 13px;
  right: 12px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.bid-analysis-task-item.is-running em {
  color: var(--yb-primary);
}

.bid-analysis-task-item.is-success em {
  color: #137a43;
}

.bid-analysis-task-item.is-error em {
  color: #c83220;
}

.bid-analysis-reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.bid-analysis-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.bid-analysis-reader-head strong {
  display: block;
  margin: 7px 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.bid-analysis-reader-head p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.65;
}

.bid-analysis-reader-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.bid-analysis-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
}

.bid-analysis-status.is-running {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.bid-analysis-status.is-success {
  color: #137a43;
  background: rgba(19, 122, 67, 0.1);
}

.bid-analysis-status.is-error {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.bid-analysis-output {
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 28px;
}

.bid-analysis-json-table-wrap {
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 28px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.68), #ffffff 22%);
}

.bid-analysis-json-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.bid-analysis-json-table tr + tr th,
.bid-analysis-json-table tr + tr td {
  border-top: 1px solid var(--yb-border-soft);
}

.bid-analysis-json-table th,
.bid-analysis-json-table td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.bid-analysis-json-table th {
  width: 190px;
  color: var(--yb-text-soft);
  font-weight: 800;
  background: #f6f9ff;
  border-right: 1px solid var(--yb-border-soft);
}

.bid-analysis-json-table td {
  color: var(--yb-text);
  white-space: pre-wrap;
}

.bid-analysis-empty {
  min-height: 0;
  overflow: auto;
}

.content-generation-page {
  position: relative;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.content-generation-command-bar,
.content-generation-progress-card,
.content-generation-workspace {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 24px;
  box-shadow: var(--yb-shadow);
}

.content-generation-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(64, 152, 252, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.content-generation-command-bar strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.content-generation-command-bar p {
  margin: 0;
  color: var(--yb-text-soft);
}

.content-generation-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.content-generation-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 11px;
  color: var(--yb-text-soft);
  font-size: 12px;
  font-weight: 800;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 999px;
}

.content-generation-stats strong {
  margin: 0;
  color: var(--yb-primary);
  font-size: 16px;
  letter-spacing: 0;
}

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

.content-dev-stats-panel {
  position: absolute;
  top: 96px;
  right: 22px;
  z-index: 8;
  display: flex;
  max-width: min(760px, calc(100% - 44px));
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--yb-text-soft);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 223, 230, 0.92);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.12);
  backdrop-filter: blur(14px);
}

.content-dev-stats-panel strong {
  color: var(--yb-text);
}

.content-dev-stats-panel span {
  padding: 4px 8px;
  background: rgba(33, 116, 253, 0.08);
  border-radius: 999px;
}

.content-generation-progress-card {
  overflow: hidden;
}

.content-generation-progress-track {
  position: relative;
  height: 10px;
  margin: 18px 20px 0;
  overflow: hidden;
  background: rgba(33, 116, 253, 0.1);
  border-radius: 999px;
}

.content-generation-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yb-primary), var(--yb-violet));
  border-radius: inherit;
  transition: width 180ms ease;
}

.content-generation-progress-track.is-planning {
  background: rgba(28, 184, 116, 0.12);
}

.content-generation-progress-track.is-planning span {
  background: linear-gradient(90deg, #1cb874, #58d68d);
}

.content-generation-progress-track.is-outline-expanding {
  background: rgba(245, 158, 11, 0.14);
}

.content-generation-progress-track.is-outline-expanding span {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.content-generation-progress-track.is-illustrating {
  background: rgba(139, 92, 246, 0.12);
}

.content-generation-progress-track.is-illustrating span {
  background: linear-gradient(90deg, #8b5cf6, #2174fd);
}

.content-generation-progress-track.is-active::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: content-progress-sweep 1.35s linear infinite;
}

@keyframes content-progress-sweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.content-generation-progress-card p {
  margin: 14px 20px 20px;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.content-generation-workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.content-outline-panel,
.content-reader-panel {
  min-width: 0;
  min-height: 0;
}

.content-outline-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.86), #ffffff);
  border-right: 1px solid var(--yb-border-soft);
}

.content-outline-stats {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.content-outline-stats.is-collapsed {
  gap: 0;
}

.content-outline-stats > button {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.content-outline-stats > button span {
  color: var(--yb-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.content-outline-stats > button strong {
  color: var(--yb-primary);
  font-size: 14px;
}

.content-outline-stats > button em {
  padding: 4px 8px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
}

.content-outline-stats > button:hover em {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.content-outline-stats-body {
  display: grid;
  gap: 8px;
}

.content-outline-stats-body .content-generation-progress-track {
  margin: 0;
}

.content-outline-stats-body p,
.content-outline-stats-body small {
  margin: 0;
  color: var(--yb-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.content-outline-stats-body small {
  color: #c83220;
  font-weight: 800;
}

.content-outline-list {
  overflow: auto;
  padding: 16px;
}

.content-outline-node {
  margin-left: calc(var(--content-level) * 16px);
}

.content-outline-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 12px 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
}

.content-outline-item:hover,
.content-outline-item.is-active {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.16);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.content-outline-dot {
  width: 10px;
  height: 10px;
  background: #9aa6b8;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(154, 166, 184, 0.1);
}

.content-outline-item.is-running .content-outline-dot {
  background: var(--yb-primary);
  box-shadow: 0 0 0 5px rgba(33, 116, 253, 0.1);
  animation: ai-pulse 1.2s ease-in-out infinite;
}

.content-outline-item.is-planning .content-outline-dot {
  background: #1cb874;
  box-shadow: 0 0 0 5px rgba(28, 184, 116, 0.12);
  animation: ai-pulse 1.2s ease-in-out infinite;
}

.content-outline-item.is-success .content-outline-dot {
  background: #137a43;
  box-shadow: 0 0 0 5px rgba(19, 122, 67, 0.1);
}

.content-outline-item.is-error .content-outline-dot {
  background: #c83220;
  box-shadow: 0 0 0 5px rgba(200, 50, 32, 0.1);
}

.content-outline-item.is-partial .content-outline-dot {
  background: #be9123;
  box-shadow: 0 0 0 5px rgba(190, 145, 35, 0.1);
}

.content-outline-text {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.content-outline-text strong {
  overflow: hidden;
  color: var(--yb-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-outline-text small {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-outline-item em {
  padding: 5px 8px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
}

.content-outline-item em.is-clickable {
  cursor: pointer;
}

.content-outline-item em.is-clickable:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
}

.content-regenerate-popover {
  z-index: 100;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: 240px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(33, 116, 253, 0.18);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.16);
}

.content-regenerate-popover-arrow {
  fill: #ffffff;
  stroke: rgba(33, 116, 253, 0.18);
  stroke-width: 1px;
}

.content-regenerate-popover strong {
  color: var(--yb-text);
  font-size: 13px;
}

.content-regenerate-popover span {
  color: var(--yb-text-soft);
  font-size: 12px;
}

.content-regenerate-popover div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.content-regenerate-popover button {
  padding: 7px 10px;
  font-size: 12px;
}

.content-outline-item.is-running em {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.content-outline-item.is-planning em {
  color: #0f8f58;
  background: rgba(28, 184, 116, 0.12);
}

.content-outline-item.is-success em {
  color: #137a43;
  background: rgba(19, 122, 67, 0.1);
}

.content-outline-item.is-error em {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.content-outline-item.is-partial em {
  color: #8a650b;
  background: rgba(255, 209, 102, 0.16);
}

.content-reader-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.content-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.content-reader-head strong {
  display: block;
  margin: 7px 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.content-reader-head p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.65;
}

.content-reader-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.content-status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
}

.content-status-badge.is-running {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.content-status-badge.is-planning {
  color: #0f8f58;
  background: rgba(28, 184, 116, 0.12);
}

.content-status-badge.is-success {
  color: #137a43;
  background: rgba(19, 122, 67, 0.1);
}

.content-status-badge.is-error {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.content-status-badge.is-partial {
  color: #8a650b;
  background: rgba(255, 209, 102, 0.16);
}

.content-generation-output {
  max-height: none;
  min-height: 0;
  padding: 22px 24px 28px;
}

.content-generation-empty {
  min-height: 0;
}

.markdown-editor {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.68), #ffffff 22%);
}

.markdown-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--yb-border-soft);
}

.markdown-editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--yb-text-soft);
  font-size: 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.markdown-editor-toolbar button:hover:not(:disabled) {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.08);
}

.markdown-editor-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.markdown-editor-textarea {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  padding: 18px 20px;
  color: var(--yb-text);
  font-family: Consolas, 'Microsoft YaHei UI', monospace;
  font-size: 14px;
  line-height: 1.72;
  background: #ffffff;
  border: 0;
  outline: none;
  resize: none;
  overflow: auto;
}

.markdown-editor-textarea::placeholder {
  color: var(--yb-text-muted);
}

.markdown-editor-textarea:disabled {
  color: var(--yb-text-muted);
  cursor: not-allowed;
  background: rgba(248, 250, 253, 0.78);
}

.content-editor-empty {
  margin: 0;
  color: var(--yb-text-muted);
}

.content-regenerate-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(4px);
}

.detail-help-link {
  margin-left: 6px;
  padding: 0;
  color: var(--yb-primary);
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.detail-help-link:hover {
  color: var(--yb-primary-deep);
}

.detail-help-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(4px);
}

.detail-help-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 121;
  display: grid;
  width: min(480px, calc(100vw - 40px));
  gap: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.9);
  border-radius: 22px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.24);
  transform: translate(-50%, -50%);
}

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

.detail-help-head h2 {
  margin: 0;
  color: var(--yb-text);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.detail-help-close {
  width: 32px;
  height: 32px;
  color: var(--yb-text-soft);
  font-size: 22px;
  line-height: 1;
  background: rgba(248, 250, 253, 0.92);
  border: 1px solid var(--yb-border-soft);
  border-radius: 999px;
  cursor: pointer;
}

.detail-help-body {
  color: var(--yb-text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.detail-help-actions {
  display: flex;
  justify-content: flex-end;
}

.content-regenerate-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: grid;
  width: min(560px, 100%);
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.24);
  transform: translate(-50%, -50%);
}

.content-generation-config-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: grid;
  width: min(620px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.24);
}

.export-progress-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: grid;
  width: min(560px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.24);
}

.remote-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(3px);
}

.remote-notice-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 131;
  display: grid;
  width: min(640px, calc(100vw - 40px));
  max-height: min(680px, calc(100vh - 56px));
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.24);
  transform: translate(-50%, -50%);
}

.document-parse-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(4px);
}

.document-parse-notice-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 141;
  display: grid;
  width: min(520px, calc(100vw - 40px));
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.92);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.24);
  transform: translate(-50%, -50%);
}

.document-parse-notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.document-parse-notice-head > div {
  display: grid;
  gap: 6px;
}

.document-parse-notice-head span {
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.document-parse-notice-head h2 {
  margin: 0;
  color: var(--yb-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.document-parse-notice-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--yb-text-muted);
  font-size: 22px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.document-parse-notice-close:hover {
  color: var(--yb-text);
  background: rgba(33, 116, 253, 0.08);
}

.document-parse-notice-body {
  margin: 0;
  color: #4b5565;
  font-size: 14px;
  line-height: 1.75;
}

.document-parse-notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.remote-notice-title {
  margin: 0;
  color: var(--yb-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.remote-notice-time {
  margin-top: -10px;
  color: var(--yb-text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.remote-notice-content {
  min-height: 0;
  max-height: 380px;
  overflow: auto;
  padding: 0 4px 0 0;
  color: #243048;
  text-align: left;
  line-height: 1.72;
  background: transparent;
}

.remote-notice-content > *:first-child {
  margin-top: 0;
}

.remote-notice-content > *:last-child {
  margin-bottom: 0;
}

.remote-notice-content h1,
.remote-notice-content h2,
.remote-notice-content h3,
.remote-notice-content h4 {
  margin: 1.2em 0 0.55em;
  color: var(--yb-text);
  line-height: 1.35;
  text-align: left;
}

.remote-notice-content h1 {
  font-size: 20px;
}

.remote-notice-content h2 {
  padding-bottom: 8px;
  font-size: 19px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.remote-notice-content h3 {
  font-size: 17px;
}

.remote-notice-content p,
.remote-notice-content ul,
.remote-notice-content ol,
.remote-notice-content blockquote,
.remote-notice-content table,
.remote-notice-content pre {
  margin: 0 0 14px;
  text-align: left;
}

.remote-notice-content ul,
.remote-notice-content ol {
  padding-left: 1.4em;
}

.remote-notice-content blockquote {
  padding: 10px 14px;
  color: var(--yb-text-soft);
  background: rgba(33, 116, 253, 0.06);
  border-left: 4px solid var(--yb-primary);
  border-radius: 0 12px 12px 0;
}

.remote-notice-content img,
.remote-notice-image {
  display: block;
  max-width: 100%;
  max-height: 260px;
  margin: 12px 0;
  object-fit: contain;
  border-radius: 14px;
}

.remote-notice-image {
  cursor: zoom-in;
}

.remote-notice-content code {
  padding: 2px 6px;
  color: #155bd7;
  background: rgba(33, 116, 253, 0.08);
  border-radius: 8px;
}

.remote-notice-content pre {
  overflow: auto;
  padding: 14px;
  background: #101828;
  border-radius: 14px;
}

.remote-notice-content pre code {
  padding: 0;
  color: #e5e7eb;
  background: transparent;
}

.remote-notice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.remote-notice-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(9, 14, 28, 0.72);
  backdrop-filter: blur(6px);
}

.remote-notice-preview-card {
  position: fixed;
  inset: 32px;
  z-index: 141;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

.remote-notice-preview-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.remote-notice-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.remote-notice-preview-close:hover {
  background: rgba(15, 23, 42, 0.82);
}

.export-progress-body {
  display: grid;
  gap: 14px;
}

.export-progress-body .content-generation-progress-track {
  margin: 0;
}

.export-progress-body p {
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.export-warning-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(190, 145, 35, 0.18);
  border-radius: 16px;
}

.export-warning-list strong {
  color: #8a5b04;
  font-size: 13px;
}

.export-warning-list small {
  color: #755110;
  font-size: 12px;
  line-height: 1.55;
}

.content-generation-config-list {
  display: grid;
  gap: 12px;
}

.content-generation-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: rgba(248, 250, 253, 0.82);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.content-generation-config-row span {
  display: grid;
  gap: 6px;
}

.content-generation-config-row strong {
  color: var(--yb-text);
  font-size: 15px;
}

.content-generation-config-row small,
.content-generation-config-note {
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.content-generation-config-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-image-status {
  padding: 5px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  border-radius: 999px;
}

.content-image-status.is-available {
  color: #0f8f58;
  background: rgba(28, 184, 116, 0.12);
}

.content-image-status.is-untested {
  color: #8a5b04;
  background: rgba(255, 209, 102, 0.2);
}

.content-image-status.is-unavailable {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.content-generation-switch {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  background: rgba(144, 147, 153, 0.26);
  border: 1px solid rgba(144, 147, 153, 0.2);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.08);
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.content-generation-switch[data-state="checked"] {
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-color: rgba(33, 116, 253, 0.3);
}

.content-generation-switch[data-disabled] {
  cursor: not-allowed;
  opacity: 0.48;
}

.content-generation-switch-thumb {
  display: block;
  width: 22px;
  height: 22px;
  transform: translateX(3px);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(23, 32, 51, 0.22);
  transition: transform 160ms ease;
}

.content-generation-switch-thumb[data-state="checked"] {
  transform: translateX(21px);
}

.content-generation-config-row input[type="number"],
.content-generation-config-row select {
  width: 110px;
  padding: 10px 12px;
  border: 1px solid var(--yb-border);
  border-radius: 14px;
  background: #ffffff;
}

.content-generation-config-note {
  padding: 12px 14px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(190, 145, 35, 0.18);
  border-radius: 16px;
}

.content-regenerate-card-head {
  display: grid;
  gap: 8px;
}

.content-regenerate-card-head h2 {
  margin: 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.content-regenerate-card-head p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.7;
}

.content-regenerate-card textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  color: var(--yb-text);
  line-height: 1.7;
  background: #fbfcff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
  outline: none;
  resize: vertical;
}

.content-regenerate-card textarea:focus {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.38);
  box-shadow: 0 0 0 4px rgba(33, 116, 253, 0.08);
}

.content-regenerate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.outline-generation-page {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.outline-command-bar,
.outline-generation-workspace {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 24px;
  box-shadow: var(--yb-shadow);
}

.outline-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(33, 116, 253, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.outline-command-bar strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.outline-command-bar p {
  margin: 0;
  color: var(--yb-text-soft);
}

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

.outline-config-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.18);
  border-radius: 14px;
}

.outline-config-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outline-config-action:hover:not(:disabled) {
  background: rgba(33, 116, 253, 0.13);
  border-color: rgba(33, 116, 253, 0.3);
}

.outline-config-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.outline-mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 999px;
}

.outline-mode-switch button {
  min-width: 126px;
  padding: 10px 14px;
  color: var(--yb-text-soft);
  font-weight: 800;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

.outline-mode-switch button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  box-shadow: 0 10px 24px rgba(33, 116, 253, 0.22);
}

.outline-mode-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.74;
}

.outline-mode-switch button:disabled:not(.is-active) {
  color: #7a8798;
}

.outline-generation-config-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: grid;
  width: min(760px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  transform: translate(-50%, -50%);
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 32, 51, 0.24);
  overflow: hidden;
}

.outline-generation-config-section {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.outline-generation-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.outline-generation-config-head strong {
  color: var(--yb-text);
  font-size: 15px;
}

.outline-generation-config-head span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.outline-generation-mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.outline-generation-mode-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  text-align: left;
  background: rgba(248, 250, 253, 0.9);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.outline-generation-mode-card strong {
  color: var(--yb-text);
  font-size: 15px;
}

.outline-generation-mode-card span {
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.outline-generation-mode-card.is-active {
  background: linear-gradient(135deg, rgba(33, 116, 253, 0.12), rgba(124, 58, 237, 0.1));
  border-color: rgba(33, 116, 253, 0.36);
  box-shadow: 0 12px 30px rgba(33, 116, 253, 0.14);
}

.outline-generation-mode-card:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.outline-knowledge-picker {
  min-height: 0;
}

.outline-knowledge-folder-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.outline-knowledge-folder {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(248, 250, 253, 0.82);
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
}

.outline-knowledge-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.outline-knowledge-folder-head strong {
  min-width: 0;
  color: var(--yb-text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-knowledge-folder-head span,
.outline-knowledge-folder-empty,
.outline-knowledge-empty {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-knowledge-document-list {
  display: grid;
  gap: 8px;
}

.outline-knowledge-document {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.78);
  border-radius: 12px;
  cursor: pointer;
}

.outline-knowledge-document input {
  margin-top: 3px;
}

.outline-knowledge-document span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.outline-knowledge-document strong {
  color: var(--yb-text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-knowledge-document small {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-knowledge-document.is-selected {
  background: rgba(33, 116, 253, 0.08);
  border-color: rgba(33, 116, 253, 0.34);
}

.outline-knowledge-document.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.outline-knowledge-empty {
  padding: 18px;
  text-align: center;
  background: rgba(248, 250, 253, 0.82);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 16px;
}

.outline-knowledge-compact {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.outline-knowledge-search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  color: var(--yb-text);
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  outline: none;
}

.outline-knowledge-search:focus {
  border-color: rgba(33, 116, 253, 0.5);
  box-shadow: 0 0 0 3px rgba(33, 116, 253, 0.1);
}

.outline-knowledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 10px;
  min-height: 0;
}

.outline-knowledge-browser,
.outline-knowledge-selected-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: rgba(248, 250, 253, 0.72);
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
  overflow: hidden;
}

.outline-knowledge-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.outline-knowledge-pane-head strong {
  color: var(--yb-text);
  font-size: 13px;
}

.outline-knowledge-pane-head span {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-knowledge-pane-head button,
.outline-knowledge-folder-actions button,
.outline-knowledge-selected-item button {
  padding: 4px 7px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 700;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 8px;
}

.outline-knowledge-pane-head button:disabled,
.outline-knowledge-folder-actions button:disabled,
.outline-knowledge-selected-item button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.outline-knowledge-folder-list.compact,
.outline-knowledge-selected-list {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 320px;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  scrollbar-gutter: stable;
}

.outline-knowledge-folder.compact {
  display: grid;
  gap: 4px;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.8);
  border-radius: 10px;
  overflow: hidden;
}

.outline-knowledge-folder-head.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
}

.outline-knowledge-folder-head.compact > button {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 0;
  color: var(--yb-text);
  text-align: left;
  background: transparent;
  border: 0;
}

.outline-knowledge-folder-head.compact > button:disabled {
  cursor: default;
}

.outline-knowledge-folder-head.compact > button span {
  width: 14px;
  color: var(--yb-text-muted);
  font-size: 12px;
}

.outline-knowledge-folder-head.compact strong,
.outline-knowledge-document.compact strong,
.outline-knowledge-selected-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--yb-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-knowledge-folder-head.compact small,
.outline-knowledge-document.compact small {
  color: var(--yb-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.outline-knowledge-folder-actions {
  display: flex;
  gap: 4px;
}

.outline-knowledge-document-list.compact {
  display: grid;
  gap: 1px;
  padding: 0 6px 6px;
}

.outline-knowledge-document.compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 7px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.outline-knowledge-document.compact:hover {
  background: rgba(33, 116, 253, 0.06);
}

.outline-knowledge-document.compact input {
  margin: 0;
}

.outline-knowledge-document.compact.is-selected {
  background: rgba(33, 116, 253, 0.1);
}

.outline-knowledge-selected-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.8);
  border-radius: 10px;
}

.outline-knowledge-empty.compact {
  padding: 14px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.outline-generation-workspace {
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) 340px;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.outline-progress-panel,
.outline-tree-panel,
.outline-detail-panel {
  min-width: 0;
  min-height: 0;
}

.outline-progress-panel,
.outline-detail-panel {
  display: grid;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.86), #ffffff);
}

.outline-progress-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.outline-detail-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.outline-detail-panel .analysis-result-head > div:first-child {
  display: grid;
  gap: 4px;
}

.outline-progress-panel {
  border-right: 1px solid var(--yb-border-soft);
}

.outline-detail-panel {
  border-left: 1px solid var(--yb-border-soft);
}

.outline-progress-log {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
  scroll-padding-top: 18px;
  scrollbar-gutter: stable;
}

.outline-progress-log p {
  margin: 0;
  padding: 12px 14px;
  color: var(--yb-text-soft);
  line-height: 1.65;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
}

.outline-progress-log p.is-latest {
  color: var(--yb-text);
  border-color: rgba(33, 116, 253, 0.2);
  box-shadow: 0 10px 26px rgba(33, 116, 253, 0.08);
}

.outline-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outline-progress-meta span {
  padding: 5px 8px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(23, 32, 51, 0.05);
  border: 1px solid rgba(220, 223, 230, 0.72);
  border-radius: 999px;
}

.outline-tree-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.outline-tree-head > div:first-child {
  display: grid;
  gap: 4px;
}

.outline-tree-tools {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.outline-tree-tools button {
  padding: 7px 10px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 999px;
}

.outline-tree-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.outline-tree-tools .outline-add-root-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(33, 116, 253, 0.16);
}

.outline-tree-list {
  overflow: auto;
  padding: 16px;
}

.outline-tree-node {
  margin-left: calc(var(--outline-level) * 18px);
}

.outline-tree-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
  padding: 7px 8px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
}

.outline-tree-item:hover,
.outline-tree-item.is-active {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.16);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.outline-tree-toggle {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 12px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.outline-tree-toggle.is-expanded {
  transform: rotate(90deg);
}

.outline-tree-toggle.is-leaf {
  color: #9aa6b8;
  background: rgba(154, 166, 184, 0.1);
  border-color: transparent;
}

.outline-tree-toggle:disabled {
  cursor: default;
}

.outline-tree-toggle:not(:disabled):hover,
.outline-tree-toggle:focus-visible {
  background: rgba(33, 116, 253, 0.16);
  outline: none;
}

.outline-tree-content {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 4px 4px 4px 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.outline-tree-content:focus-visible {
  outline: none;
}

.outline-tree-content strong {
  min-width: 0;
  overflow: hidden;
  color: var(--yb-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-tree-content small {
  min-width: 0;
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-detail-body {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
  padding: 22px;
}

.outline-detail-body h3 {
  margin: 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.outline-detail-body p,
.outline-detail-body small {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.75;
}

.outline-detail-body label {
  display: grid;
  gap: 8px;
}

.outline-detail-body label span {
  color: var(--yb-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.outline-detail-body input,
.outline-detail-body textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
  outline: none;
}

.outline-detail-body input:disabled,
.outline-detail-body textarea:disabled {
  color: #7a8798;
  background: #f3f6fb;
  cursor: not-allowed;
}

.outline-detail-body textarea {
  min-height: 160px;
  resize: vertical;
}

.outline-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.outline-detail-lock {
  padding: 12px 14px;
  color: #6b5d14;
  line-height: 1.65;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(190, 145, 35, 0.18);
  border-radius: 14px;
}

.outline-empty-state {
  min-height: 360px;
}

.outline-empty-state .secondary-action {
  margin-top: 18px;
}

@keyframes ai-pulse {
  0%, 100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 5px rgba(33, 116, 253, 0.1);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 9px rgba(33, 116, 253, 0.04);
  }
}

.compact-placeholder {
  position: relative;
  min-height: 360px;
}

.feature-under-development-overlay {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 30;
  display: grid;
  width: min(620px, calc(100% - 48px));
  gap: 8px;
  padding: 22px 28px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #6b7280 0%, #4b5563 48%, #374151 100%);
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(55, 65, 81, 0.24), 0 8px 24px rgba(23, 32, 51, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.feature-under-development-overlay strong {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.feature-under-development-overlay span {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
}

.stage-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stage-card,
.category-card {
  padding: 22px;
}

.stage-card span,
.category-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--yb-primary);
  font-weight: 800;
  background: #eef4ff;
  border-radius: 16px;
}

.stage-card h3,
.category-card h3,
.panel h3,
.empty-panel h3 {
  margin: 18px 0 10px;
  color: var(--yb-text);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.stage-card p,
.category-card p,
.panel p,
.empty-panel p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.75;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.panel,
.empty-panel {
  padding: 26px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.draft-preview {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.draft-preview div,
.compliance-item {
  padding: 16px;
  background: rgba(248, 250, 253, 0.88);
  border: 1px solid var(--yb-border-soft);
  border-radius: 20px;
}

.draft-preview strong {
  color: var(--yb-text);
}

.quiet-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--yb-text-soft);
  list-style: none;
}

.quiet-list li {
  position: relative;
  padding-left: 22px;
}

.quiet-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  content: '';
  background: var(--yb-primary);
  border-radius: 999px;
}

.category-card {
  min-height: 170px;
}

.empty-panel {
  min-height: 230px;
}

.upload-panel {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-style: dashed;
}

.check-list li::before {
  background: var(--yb-violet);
}

.demo-coming-page {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
}

.demo-hero-card,
.demo-panel,
.demo-preview-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 30px;
  box-shadow: var(--yb-shadow);
}

.demo-hero-card {
  position: relative;
  display: grid;
  min-height: 236px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(33, 116, 253, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 253, 0.92));
}

.business-bid-demo .demo-hero-card {
  background:
    radial-gradient(circle at 88% 16%, rgba(91, 84, 211, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.94));
}

.opportunity-hero-card {
  background:
    radial-gradient(circle at 88% 18%, rgba(64, 152, 252, 0.2), transparent 34%),
    radial-gradient(circle at 24% 0%, rgba(91, 84, 211, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
}

.demo-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.demo-hero-copy h2 {
  max-width: 820px;
  margin: 10px 0 14px;
  color: var(--yb-text);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.demo-hero-copy p,
.demo-preview-card p,
.demo-step-list p,
.demo-table-list p {
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.75;
}

.demo-hero-copy p {
  max-width: 680px;
  font-size: 16px;
}

.demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.demo-hero-actions .primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.demo-dev-badge,
.demo-soft-pill,
.demo-status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 999px;
}

.demo-dev-badge {
  padding: 9px 13px;
  color: #155bd7;
  background: rgba(33, 116, 253, 0.1);
  border: 1px solid rgba(33, 116, 253, 0.18);
}

.demo-soft-pill {
  padding: 8px 12px;
  color: var(--yb-primary);
  background: #f2f7ff;
  border: 1px solid var(--yb-border-soft);
}

.demo-metric-stack {
  display: grid;
  align-content: center;
  gap: 12px;
}

.demo-metric-stack article,
.demo-signal-grid article {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(33, 116, 253, 0.13);
  border-radius: 22px;
}

.demo-metric-stack article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 16px 18px;
}

.demo-metric-stack span,
.demo-metric-stack small,
.demo-signal-grid span,
.opportunity-card-list span,
.opportunity-radar-card small {
  color: var(--yb-text-soft);
}

.demo-metric-stack strong {
  grid-row: span 2;
  color: var(--yb-primary);
  font-size: 32px;
  line-height: 1;
}

.demo-content-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr) minmax(280px, 0.72fr);
  gap: 18px;
  overflow: auto;
}

.demo-panel,
.demo-preview-card {
  min-height: 0;
  padding: 24px;
}

.demo-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.demo-panel-head h3,
.demo-preview-card h3 {
  margin: 8px 0 0;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.025em;
}

.demo-step-list,
.demo-table-list,
.opportunity-card-list,
.demo-timeline {
  display: grid;
  gap: 12px;
}

.demo-step-list article,
.demo-table-list article,
.opportunity-card-list article {
  background: linear-gradient(135deg, rgba(248, 250, 253, 0.9), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--yb-border-soft);
  border-radius: 20px;
}

.demo-step-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.demo-step-list article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-radius: 16px;
}

.demo-step-list strong,
.demo-table-list strong,
.opportunity-card-list strong,
.demo-document-preview strong {
  color: var(--yb-text);
}

.demo-table-list article {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) auto;
  gap: 8px 12px;
  padding: 15px 16px;
}

.demo-table-list p {
  grid-column: 1 / -1;
  font-size: 13px;
}

.demo-status-pill {
  padding: 5px 9px;
  font-size: 12px;
}

.demo-status-pill.is-ok {
  color: #16804f;
  background: rgba(22, 128, 79, 0.09);
}

.demo-status-pill.is-warn {
  color: #9a6600;
  background: rgba(190, 145, 35, 0.12);
}

.demo-status-pill.is-danger {
  color: #c83220;
  background: rgba(200, 50, 32, 0.09);
}

.demo-preview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.demo-document-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafd, #ffffff);
  border: 1px solid var(--yb-border-soft);
  border-radius: 22px;
}

.demo-document-preview span {
  padding-top: 10px;
  color: var(--yb-text-soft);
  border-top: 1px dashed var(--yb-border-soft);
}

.opportunity-radar-card {
  position: relative;
  display: grid;
  min-height: 178px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 26px;
  text-align: center;
  background: linear-gradient(145deg, rgba(23, 32, 51, 0.94), rgba(33, 116, 253, 0.72));
  border-radius: 26px;
  box-shadow: 0 22px 54px rgba(33, 116, 253, 0.24);
}

.opportunity-radar-card span,
.opportunity-radar-card strong {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.opportunity-radar-card strong {
  font-size: 54px;
  line-height: 1;
}

.opportunity-radar-card small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.76);
}

.opportunity-radar-ring {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.opportunity-radar-ring i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-28deg);
  transform-origin: left center;
}

.opportunity-card-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.opportunity-card-list article > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.opportunity-card-list em {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: var(--yb-primary);
  font-style: normal;
  font-weight: 900;
  background: #eef4ff;
  border-radius: 16px;
}

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

.demo-signal-grid article {
  display: grid;
  gap: 10px;
  min-height: 106px;
  padding: 18px;
}

.demo-signal-grid strong {
  color: var(--yb-text);
  font-size: 24px;
}

.demo-timeline span {
  position: relative;
  padding: 14px 16px 14px 42px;
  color: var(--yb-text-soft);
  background: rgba(248, 250, 253, 0.9);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.demo-timeline span::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 10px;
  content: '';
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-radius: 999px;
}

.duplicate-check-page {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
}

.duplicate-upload-board,
.duplicate-guide-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 30px;
  box-shadow: var(--yb-shadow);
}

.duplicate-upload-board {
  display: grid;
  gap: 16px;
  padding: 22px 26px 24px;
}

.duplicate-page-title,
.duplicate-guide-head,
.duplicate-upload-row,
.duplicate-file-pill {
  display: flex;
  align-items: center;
}

.duplicate-page-title,
.duplicate-guide-head {
  justify-content: space-between;
  gap: 18px;
}

.duplicate-page-title h2 {
  margin: 8px 0 0;
  color: var(--yb-text);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.duplicate-upload-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--yb-text-soft);
  background: #f6f9ff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 999px;
}

.duplicate-upload-summary strong {
  color: var(--yb-primary);
}

.duplicate-upload-summary small {
  color: var(--yb-text-muted);
}

.duplicate-upload-stack {
  display: grid;
  gap: 12px;
}

.duplicate-upload-row {
  display: grid;
  min-height: 86px;
  grid-template-columns: 168px minmax(180px, 1fr) 104px;
  gap: 16px;
  padding: 16px 18px 16px 22px;
  background: linear-gradient(135deg, rgba(248, 250, 253, 0.86), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--yb-border-soft);
  border-radius: 22px;
}

.duplicate-upload-row.bid-row {
  align-items: center;
}

.duplicate-upload-label {
  display: grid;
  gap: 5px;
}

.duplicate-upload-label span {
  width: max-content;
  padding: 4px 8px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  background: #eef4ff;
  border-radius: 999px;
}

.duplicate-upload-label strong {
  color: var(--yb-text);
  font-size: 19px;
}

.duplicate-upload-label small,
.duplicate-empty-upload,
.duplicate-file-info span,
.duplicate-guide-head span,
.duplicate-guide-list,
.duplicate-dimension-grid p {
  color: var(--yb-text-soft);
}

.duplicate-upload-content {
  min-width: 0;
}

.duplicate-empty-upload {
  min-height: 48px;
  background: linear-gradient(90deg, rgba(33, 116, 253, 0.055), rgba(33, 116, 253, 0.012));
  border: 1px solid rgba(33, 116, 253, 0.13);
  border-radius: 16px;
}

.duplicate-upload-button {
  min-width: 96px;
  justify-self: end;
  justify-content: center;
}

.duplicate-file-list {
  display: grid;
  max-height: 172px;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.duplicate-file-pill {
  min-width: 0;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.duplicate-file-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-radius: 14px;
}

.duplicate-file-info {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.duplicate-file-info strong {
  overflow: hidden;
  color: var(--yb-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duplicate-file-info span {
  font-size: 13px;
}

.duplicate-file-pill button {
  padding: 7px 10px;
  color: #c83220;
  font-weight: 700;
  background: rgba(200, 50, 32, 0.08);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.duplicate-guide-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  padding: 26px 30px 28px;
}

.duplicate-guide-head strong {
  display: block;
  margin-top: 8px;
  color: var(--yb-text);
  font-size: 22px;
  letter-spacing: -0.025em;
}

.duplicate-guide-head > span {
  padding: 8px 12px;
  background: #f6f9ff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 999px;
}

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

.duplicate-dimension-grid article {
  min-height: 122px;
  padding: 18px;
  background: linear-gradient(180deg, #f8fafd, #ffffff);
  border: 1px solid var(--yb-border-soft);
  border-radius: 22px;
}

.duplicate-dimension-grid strong {
  color: var(--yb-text);
  font-size: 18px;
}

.duplicate-dimension-grid p {
  margin: 10px 0 0;
  line-height: 1.7;
}

.duplicate-guide-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duplicate-guide-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  background: rgba(248, 250, 253, 0.86);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.duplicate-guide-list li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 10px;
  content: '';
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-radius: 999px;
}

.duplicate-analysis-panel {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-row: 1 / -1;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 30px;
  box-shadow: var(--yb-shadow);
}

.duplicate-analysis-title {
  min-height: 58px;
}

.duplicate-analysis-tabs {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid rgba(27, 50, 92, 0.14);
  border-radius: 22px;
}

.duplicate-analysis-tab {
  display: grid;
  min-height: 86px;
  gap: 10px;
  padding: 16px 20px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(27, 50, 92, 0.12);
  cursor: pointer;
}

.duplicate-analysis-tab:last-child {
  border-right: 0;
}

.duplicate-analysis-tab.is-active {
  background: linear-gradient(180deg, rgba(33, 116, 253, 0.1), rgba(255, 255, 255, 0.95));
}

.duplicate-analysis-tab-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.duplicate-analysis-tab strong {
  color: var(--yb-text);
  font-size: 20px;
}

.duplicate-analysis-tab em {
  padding: 5px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  border-radius: 999px;
}

.duplicate-analysis-tab.is-running em {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.duplicate-analysis-tab.is-success em {
  color: #14825b;
  background: rgba(20, 130, 91, 0.1);
}

.duplicate-analysis-tab.is-error em {
  color: #c33434;
  background: rgba(224, 72, 72, 0.1);
}

.duplicate-analysis-tab.is-pending em {
  color: var(--yb-text-muted);
  background: rgba(94, 111, 143, 0.1);
}

.duplicate-analysis-progress {
  display: block;
  overflow: hidden;
  height: 8px;
  background: rgba(33, 116, 253, 0.1);
  border-radius: 999px;
}

.duplicate-analysis-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yb-primary), var(--yb-violet));
  border-radius: inherit;
}

.duplicate-analysis-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  padding: 34px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.88), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--yb-border-soft);
  border-radius: 26px;
}

.duplicate-analysis-content:has(.duplicate-metadata-panel),
.duplicate-analysis-content:has(.duplicate-outline-panel),
.duplicate-analysis-content:has(.duplicate-match-panel) {
  justify-content: stretch;
  overflow: hidden;
  padding: 0;
}

.duplicate-metadata-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
}

.duplicate-metadata-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.duplicate-metadata-status-grid article {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.duplicate-metadata-status-grid span,
.duplicate-metadata-status-grid small {
  color: var(--yb-text-soft);
  font-size: 12px;
}

.duplicate-metadata-status-grid strong {
  color: var(--yb-text);
  font-size: 20px;
}

.duplicate-analysis-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  padding: 40px;
  text-align: center;
}

.duplicate-analysis-empty strong {
  color: var(--yb-text);
  font-size: 20px;
}

.duplicate-analysis-empty p,
.duplicate-analysis-warning {
  margin: 10px 0 0;
  color: var(--yb-text-soft);
  line-height: 1.7;
}

.duplicate-analysis-warning {
  margin: 0;
  color: #c33434;
  font-size: 13px;
}

.duplicate-metadata-table-wrap {
  min-height: 0;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.duplicate-metadata-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.duplicate-metadata-table th,
.duplicate-metadata-table td {
  max-width: 320px;
  min-width: 220px;
  padding: 12px 14px;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  border-right: 1px solid var(--yb-border-soft);
  border-bottom: 1px solid var(--yb-border-soft);
}

.duplicate-metadata-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 160px;
  color: var(--yb-text);
  font-weight: 800;
  background: #f8fbff;
}

.duplicate-metadata-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--yb-text);
  font-weight: 800;
  background: #f8fbff;
}

.duplicate-metadata-table thead th:first-child {
  z-index: 3;
}

.duplicate-metadata-table td.is-duplicate {
  color: #b42318;
  font-weight: 800;
  background: rgba(255, 231, 230, 0.86);
}

.duplicate-metadata-table td.is-same-day {
  color: #9a4d00;
  font-weight: 800;
  background: rgba(255, 183, 77, 0.24);
}

.duplicate-outline-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
}

.duplicate-outline-card,
.duplicate-outline-files,
.duplicate-outline-groups {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.duplicate-outline-card-head span,
.duplicate-outline-files small,
.duplicate-outline-groups small,
.duplicate-outline-muted {
  color: var(--yb-text-soft);
  font-size: 12px;
}

.duplicate-outline-card {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

.duplicate-outline-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.duplicate-outline-card-head strong,
.duplicate-outline-files > strong,
.duplicate-outline-groups > strong {
  color: var(--yb-text);
  font-size: 15px;
}

.duplicate-outline-workbench {
  display: grid;
  min-height: 0;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 14px;
}

.duplicate-outline-files,
.duplicate-outline-groups {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.duplicate-outline-files button {
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
  background: #f8fbff;
  border: 1px solid transparent;
  border-radius: 14px;
}

.duplicate-outline-files button.is-active {
  background: rgba(33, 116, 253, 0.1);
  border-color: rgba(33, 116, 253, 0.24);
}

.duplicate-outline-files span {
  overflow: hidden;
  color: var(--yb-text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duplicate-outline-tree-card {
  grid-template-rows: auto minmax(0, 1fr);
}

.duplicate-outline-tree {
  min-height: 0;
  margin: 0;
  overflow: auto;
  padding: 14px 16px 18px;
  list-style: none;
}

.duplicate-outline-tree ol {
  margin: 8px 0 0 18px;
  padding-left: 16px;
  list-style: none;
  border-left: 1px dashed rgba(94, 111, 143, 0.22);
}

.duplicate-outline-node {
  margin: 8px 0;
}

.duplicate-outline-node-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
}

.duplicate-outline-node.is-duplicate > .duplicate-outline-node-main {
  background: rgba(255, 231, 230, 0.82);
  border-color: rgba(180, 35, 24, 0.24);
}

.duplicate-outline-node.is-similar > .duplicate-outline-node-main {
  background: rgba(255, 183, 77, 0.18);
  border-color: rgba(154, 77, 0, 0.2);
}

.duplicate-outline-node.is-from-tender > .duplicate-outline-node-main {
  background: rgba(94, 111, 143, 0.08);
}

.duplicate-outline-node-title {
  color: var(--yb-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.duplicate-outline-node-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 120px;
}

.duplicate-outline-node-tags em {
  padding: 3px 7px;
  color: #b42318;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  background: rgba(180, 35, 24, 0.09);
  border-radius: 999px;
}

.duplicate-outline-node-tags em.is-muted,
.duplicate-outline-node-tags em.is-source {
  color: var(--yb-text-muted);
  background: rgba(94, 111, 143, 0.1);
}

.duplicate-outline-groups article {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
}

.duplicate-outline-groups article.is-duplicate {
  background: rgba(255, 231, 230, 0.72);
}

.duplicate-outline-groups article.is-similar {
  background: rgba(255, 183, 77, 0.16);
}

.duplicate-outline-groups article div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--yb-text-soft);
  font-size: 12px;
}

.duplicate-outline-groups article strong {
  color: var(--yb-text);
  font-size: 13px;
}

.duplicate-outline-groups article p {
  max-width: none;
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.duplicate-match-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: 18px;
}

.duplicate-file-codebar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.duplicate-file-codebar span {
  display: inline-flex;
  align-items: center;
  max-width: 280px;
  flex: 0 0 auto;
  gap: 8px;
  overflow: hidden;
  padding: 7px 10px;
  color: var(--yb-text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 999px;
}

.duplicate-file-codebar strong,
.duplicate-file-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-radius: 999px;
}

.duplicate-match-card {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--yb-border-soft);
  border-radius: 20px;
}

.duplicate-match-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.duplicate-match-card-head strong {
  color: var(--yb-text);
  font-size: 15px;
}

.duplicate-match-card-head span {
  color: var(--yb-text-soft);
  font-size: 12px;
}

.duplicate-sentence-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.duplicate-sentence-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.duplicate-sentence-list article:hover {
  background: #ffffff;
  border-color: rgba(47, 99, 255, 0.26);
  box-shadow: 0 10px 24px rgba(27, 50, 92, 0.08);
}

.duplicate-sentence-list p {
  max-width: none;
  margin: 0;
  color: var(--yb-text);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.duplicate-outline-list p {
  font-weight: 800;
}

.duplicate-sentence-content {
  min-width: 0;
}

.duplicate-sentence-content p {
  min-width: 0;
}

.duplicate-sentence-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  margin-left: 10px;
  padding: 0 10px;
  vertical-align: 1px;
  color: var(--yb-text-soft);
  font-size: 12px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(27, 50, 92, 0.14);
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(27, 50, 92, 0.05);
}

.duplicate-sentence-copy:hover {
  color: var(--yb-primary);
  background: rgba(47, 99, 255, 0.06);
  border-color: rgba(47, 99, 255, 0.28);
}

.duplicate-sentence-copy:focus-visible {
  outline: 2px solid rgba(47, 99, 255, 0.28);
  outline-offset: 2px;
}

.duplicate-file-badges {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 6px;
  min-width: 92px;
}

.duplicate-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--yb-text-soft);
  font-size: 12px;
  border-top: 1px solid var(--yb-border-soft);
}

.duplicate-pagination div {
  display: flex;
  gap: 8px;
}

.duplicate-pagination button {
  padding: 7px 12px;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 999px;
}

.duplicate-pagination button:disabled {
  color: var(--yb-text-muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.duplicate-image-grid {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.duplicate-image-grid article {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
}

.duplicate-image-preview {
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(27, 50, 92, 0.08);
  border-radius: 12px;
}

.duplicate-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.duplicate-image-grid article > strong {
  color: var(--yb-text-soft);
  font-size: 12px;
}

.duplicate-image-locations {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.duplicate-image-location {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid rgba(27, 50, 92, 0.08);
  border-radius: 12px;
}

.duplicate-image-location span {
  color: var(--yb-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.duplicate-image-location p {
  max-width: none;
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.duplicate-image-location button {
  justify-self: start;
  padding: 6px 10px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  background: rgba(47, 99, 255, 0.06);
  border: 1px solid rgba(47, 99, 255, 0.18);
  border-radius: 9px;
}

.duplicate-image-location button:hover:not(:disabled) {
  background: rgba(47, 99, 255, 0.1);
  border-color: rgba(47, 99, 255, 0.3);
}

.duplicate-image-location button:disabled {
  color: var(--yb-text-muted);
  cursor: not-allowed;
  background: rgba(94, 111, 143, 0.06);
  border-color: rgba(94, 111, 143, 0.12);
}

.duplicate-analysis-content h3 {
  margin: 12px 0 10px;
  color: var(--yb-text);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.duplicate-analysis-content p {
  max-width: 620px;
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.8;
}

.rejection-check-page {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.rejection-upload-board,
.rejection-reader-card,
.rejection-result-command-bar {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 30px;
  box-shadow: var(--yb-shadow);
}

.rejection-upload-board {
  display: grid;
  gap: 14px;
  padding: 20px 24px 22px;
}

.rejection-page-title,
.rejection-file-pill {
  display: flex;
  align-items: center;
}

.rejection-page-title {
  justify-content: space-between;
  gap: 18px;
}

.rejection-page-title h2 {
  margin: 8px 0 0;
  color: var(--yb-text);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.rejection-upload-stack {
  display: grid;
  gap: 12px;
}

.rejection-upload-row {
  display: grid;
  min-height: 86px;
  grid-template-columns: 168px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 22px;
  background: linear-gradient(135deg, rgba(248, 250, 253, 0.86), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--yb-border-soft);
  border-radius: 22px;
}

.rejection-upload-label {
  display: grid;
  gap: 5px;
}

.rejection-upload-label span {
  width: max-content;
  padding: 4px 8px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  background: #eef4ff;
  border-radius: 999px;
}

.rejection-upload-label strong {
  color: var(--yb-text);
  font-size: 19px;
}

.rejection-empty-upload span,
.rejection-file-info span {
  color: var(--yb-text-soft);
}

.rejection-upload-content {
  min-width: 0;
}

.rejection-empty-upload {
  display: grid;
  min-height: 58px;
  align-content: center;
  gap: 4px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(33, 116, 253, 0.055), rgba(33, 116, 253, 0.012));
  border: 1px solid rgba(33, 116, 253, 0.13);
  border-radius: 16px;
}

.rejection-empty-upload strong {
  color: var(--yb-text);
  font-size: 14px;
}

.rejection-empty-upload span {
  font-size: 13px;
}

.rejection-upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 230px;
}

.rejection-upload-actions.single-action {
  min-width: 104px;
}

.rejection-upload-actions .primary-action,
.rejection-upload-actions .secondary-action {
  min-width: 96px;
  white-space: nowrap;
}

.rejection-file-pill {
  min-width: 0;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.rejection-file-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-radius: 14px;
}

.rejection-file-info {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.rejection-file-info strong {
  overflow: hidden;
  color: var(--yb-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rejection-file-info span {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rejection-file-pill button {
  padding: 7px 10px;
  color: #c83220;
  font-weight: 700;
  background: rgba(200, 50, 32, 0.08);
  border: 0;
  border-radius: 999px;
}

.rejection-document-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(27, 50, 92, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(33, 116, 253, 0.08);
}

.rejection-document-tab {
  display: inline-flex;
  min-width: 116px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  color: var(--yb-text-soft);
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.rejection-document-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  box-shadow: 0 10px 22px rgba(33, 116, 253, 0.22);
}

.rejection-document-tab strong {
  color: inherit;
  font-size: 15px;
}

.rejection-reader-card {
  height: 100%;
}

.rejection-reader-head {
  min-width: 0;
}

.rejection-reader-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rejection-result-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(91, 84, 211, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.rejection-result-command-bar strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--yb-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.rejection-result-command-bar p {
  margin: 0;
  color: var(--yb-text-soft);
}

.rejection-result-status {
  display: grid;
  min-width: 180px;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(248, 250, 253, 0.78);
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
}

.rejection-result-status span {
  color: var(--yb-text);
  font-size: 14px;
  font-weight: 800;
}

.rejection-result-status small {
  overflow: hidden;
  color: var(--yb-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rejection-result-status.is-idle {
  background: rgba(94, 111, 143, 0.08);
  border-color: rgba(94, 111, 143, 0.14);
}

.rejection-result-status.is-running {
  background: rgba(33, 116, 253, 0.08);
  border-color: rgba(33, 116, 253, 0.18);
}

.rejection-result-status.is-success {
  background: rgba(38, 166, 113, 0.08);
  border-color: rgba(38, 166, 113, 0.18);
}

.rejection-result-status.is-error {
  background: rgba(200, 50, 32, 0.08);
  border-color: rgba(200, 50, 32, 0.18);
}

.rejection-result-card {
  min-height: 0;
}

.rejection-result-viewer,
.rejection-custom-editor {
  min-height: 0;
}

.rejection-custom-editor {
  height: 100%;
}

.rejection-check-result-panel {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-row: 1 / -1;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 30px;
  box-shadow: var(--yb-shadow);
}

.rejection-check-result-title {
  min-height: 58px;
}

.rejection-check-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rejection-check-result-tabs {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid rgba(27, 50, 92, 0.14);
  border-radius: 22px;
}

.rejection-check-result-tab {
  display: grid;
  min-height: 86px;
  gap: 10px;
  padding: 16px 20px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(27, 50, 92, 0.12);
  cursor: pointer;
}

.rejection-check-result-tab:last-child {
  border-right: 0;
}

.rejection-check-result-tab.is-active {
  background: linear-gradient(180deg, rgba(33, 116, 253, 0.1), rgba(255, 255, 255, 0.95));
}

.rejection-check-result-tab strong {
  color: var(--yb-text);
  font-size: 20px;
}

.rejection-check-result-tab em {
  padding: 5px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  border-radius: 999px;
}

.rejection-check-result-tab.is-running em {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.rejection-check-result-tab.is-success em {
  color: #14825b;
  background: rgba(20, 130, 91, 0.1);
}

.rejection-check-result-tab.is-error em {
  color: #c33434;
  background: rgba(224, 72, 72, 0.1);
}

.rejection-check-result-tab.is-idle em,
.rejection-check-result-tab.is-disabled em {
  color: var(--yb-text-muted);
  background: rgba(94, 111, 143, 0.1);
}

.rejection-check-result-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  padding: 34px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.88), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--yb-border-soft);
  border-radius: 26px;
}

.rejection-check-result-content h3 {
  margin: 10px 0 12px;
  color: var(--yb-text);
  font-size: 26px;
  letter-spacing: -0.025em;
}

.rejection-check-result-content p {
  max-width: 620px;
  margin: 0;
  color: var(--yb-text-soft);
  line-height: 1.8;
}

.rejection-check-result-content.is-rejection-list {
  justify-content: flex-start;
  gap: 18px;
  padding: 24px;
}

.rejection-check-result-content.is-rejection-list p {
  max-width: none;
}

.rejection-finding-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rejection-finding-summary h3 {
  margin: 8px 0 8px;
}

.rejection-finding-list {
  display: grid;
  gap: 12px;
}

.rejection-finding-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(27, 50, 92, 0.12);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(33, 116, 253, 0.08);
}

.rejection-finding-item.is-expanded {
  border-color: rgba(33, 116, 253, 0.24);
}

.rejection-finding-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}

.rejection-finding-toggle {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 16px;
}

.rejection-finding-toggle:hover {
  background: rgba(33, 116, 253, 0.06);
}

.rejection-finding-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: var(--yb-primary);
  font-size: 18px;
  font-weight: 900;
  background: rgba(33, 116, 253, 0.1);
  border-radius: 999px;
}

.rejection-finding-title-wrap {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.rejection-finding-title-wrap > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.rejection-finding-title-wrap strong {
  overflow: hidden;
  color: var(--yb-text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rejection-finding-title-wrap small {
  overflow: hidden;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rejection-finding-tag,
.rejection-finding-severity {
  flex: 0 0 auto;
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  border-radius: 999px;
}

.rejection-finding-tag.is-invalidBid {
  color: #b42318;
  background: rgba(200, 50, 32, 0.1);
}

.rejection-finding-tag.is-rejectionItem {
  color: #4f46b8;
  background: rgba(91, 84, 211, 0.11);
}

.rejection-finding-tag.is-typo {
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.13);
}

.rejection-finding-tag.is-logic {
  color: #0f6674;
  background: rgba(14, 116, 144, 0.11);
}

.rejection-finding-severity.is-high {
  color: #b42318;
  background: rgba(200, 50, 32, 0.1);
}

.rejection-finding-severity.is-medium {
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.13);
}

.rejection-finding-severity.is-low {
  color: #14825b;
  background: rgba(20, 130, 91, 0.1);
}

.rejection-finding-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rejection-finding-delete,
.rejection-finding-copy {
  align-self: center;
  padding: 8px 12px;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
}

.rejection-finding-delete {
  color: #c83220;
  background: rgba(200, 50, 32, 0.08);
}

.rejection-finding-copy {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.rejection-finding-delete:hover {
  background: rgba(200, 50, 32, 0.14);
}

.rejection-finding-copy:hover {
  background: rgba(33, 116, 253, 0.16);
}

.typo-finding-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.typo-finding-title i {
  color: var(--yb-text-muted);
  font-style: normal;
}

.typo-original-excerpt {
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.typo-original-excerpt mark {
  padding: 1px 4px;
  color: #9a3412;
  font-weight: 900;
  background: rgba(251, 191, 36, 0.38);
  border-radius: 6px;
}

.rejection-finding-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.rejection-finding-detail-block {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.92), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
}

.rejection-finding-detail-block strong {
  color: var(--yb-text);
  font-size: 14px;
}

.rejection-finding-markdown {
  min-height: 0;
  padding: 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.7;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.rejection-finding-markdown p,
.rejection-finding-markdown ul,
.rejection-finding-markdown ol {
  margin: 0;
}

.rejection-finding-empty {
  flex: 1;
  min-height: 220px;
}

.rejection-finding-empty.is-error {
  border-color: rgba(200, 50, 32, 0.18);
}

.rejection-check-config-card {
  width: min(560px, calc(100vw - 40px));
}

.rejection-markdown-viewer,
.rejection-empty-reader {
  min-height: 0;
}

.checklist-panel {
  max-width: 920px;
}

.compliance-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.compliance-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
}

.compliance-item span {
  color: var(--yb-primary);
  font-weight: 800;
}

.compliance-item small {
  color: var(--yb-text-muted);
}

.settings-page {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
  overflow: visible;
}

.settings-page-scroll {
  display: grid;
  align-content: start;
  gap: 18px;
  width: 100%;
  overflow: visible;
  padding-bottom: 128px;
}

.settings-page-section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 223, 230, 0.88);
  border-radius: 28px;
  box-shadow: var(--yb-shadow);
}

.settings-tab-shell {
  display: flex;
  width: max-content;
  max-width: 100%;
  justify-self: center;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 223, 230, 0.8);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
}

.settings-tab {
  min-width: 92px;
  padding: 14px 18px;
  color: #364153;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 22px;
  white-space: nowrap;
}

.settings-tab.is-active {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.12);
}

.settings-switch-control {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
  justify-self: end;
  align-items: center;
}

.settings-switch-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.settings-switch-track {
  display: block;
  width: 58px;
  height: 34px;
  padding: 3px;
  background: #dfe7f3;
  border: 1px solid rgba(180, 194, 214, 0.9);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.08);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.settings-switch-thumb {
  display: block;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(23, 32, 51, 0.18);
  transition: transform 180ms ease;
}

.settings-switch-control input:checked + .settings-switch-track {
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-color: rgba(33, 116, 253, 0.35);
  box-shadow: 0 10px 24px rgba(33, 116, 253, 0.18);
}

.settings-switch-control input:checked + .settings-switch-track .settings-switch-thumb {
  transform: translateX(24px);
}

.settings-switch-control input:focus-visible + .settings-switch-track {
  outline: 3px solid rgba(33, 116, 253, 0.18);
  outline-offset: 3px;
}

.app-toast-viewport {
  position: fixed;
  right: 28px;
  top: 28px;
  z-index: 80;
  display: grid;
  gap: 12px;
  width: min(560px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  outline: none;
}

.app-toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'title close'
    'description close';
  column-gap: 16px;
  row-gap: 5px;
  align-items: center;
  padding: 15px 14px 15px 18px;
  color: var(--yb-text);
  user-select: text;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 223, 230, 0.92);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.18), 0 4px 16px rgba(33, 116, 253, 0.08);
  backdrop-filter: blur(14px);
}

.app-toast.has-actions {
  grid-template-areas:
    'title close'
    'description close'
    'actions actions';
}

.app-toast[data-state='open'] {
  animation: toast-slide-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-toast[data-state='closed'] {
  animation: toast-hide 120ms ease-in forwards;
}

.app-toast[data-swipe='move'] {
  transform: translateX(var(--radix-toast-swipe-move-x));
}

.app-toast[data-swipe='cancel'] {
  transform: translateX(0);
  transition: transform 180ms ease-out;
}

.app-toast[data-swipe='end'] {
  animation: toast-swipe-out 120ms ease-out forwards;
}

.app-toast-title {
  grid-area: title;
  min-width: 0;
  color: var(--yb-text);
  font-size: 15px;
  font-weight: 800;
  user-select: text;
}

.app-toast-description {
  grid-area: description;
  min-width: 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
  white-space: normal;
}

.app-toast-close {
  display: grid;
  width: 28px;
  height: 28px;
  grid-area: close;
  place-items: center;
  color: var(--yb-text-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  user-select: none;
}

.app-toast-close:hover {
  color: var(--yb-text);
  background: rgba(23, 32, 51, 0.06);
}

.app-toast-actions {
  display: flex;
  flex-wrap: wrap;
  grid-area: actions;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 6px;
}

.app-toast-action {
  height: 32px;
  padding: 0 12px;
  color: var(--yb-text-soft);
  font-size: 13px;
  font-weight: 700;
  background: rgba(23, 32, 51, 0.05);
  border: 1px solid rgba(220, 223, 230, 0.9);
  border-radius: 999px;
}

.app-toast-action:hover {
  color: var(--yb-text);
  background: rgba(33, 116, 253, 0.08);
  border-color: rgba(33, 116, 253, 0.2);
}

.app-toast-action.is-primary {
  color: #fff;
  background: linear-gradient(135deg, #2174fd 0%, #4098fc 100%);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(33, 116, 253, 0.22);
}

.app-toast-action.is-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #1767ea 0%, #2d8cf6 100%);
}

.app-toast.is-success {
  border-color: rgba(19, 122, 67, 0.18);
}

.app-toast.is-success .app-toast-title {
  color: #137a43;
}

.app-toast.is-error {
  border-color: rgba(200, 50, 32, 0.2);
}

.app-toast.is-error .app-toast-title {
  color: #c83220;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(calc(100% + 28px));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-hide {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes toast-swipe-out {
  from {
    transform: translateX(var(--radix-toast-swipe-end-x));
  }
  to {
    transform: translateX(calc(100% + 28px));
  }
}

.settings-page-section {
  overflow: hidden;
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 36px;
  color: var(--yb-text);
  font-size: 22px;
}

.settings-section-title span {
  width: 5px;
  height: 24px;
  background: var(--yb-primary);
  border-radius: 999px;
}

.settings-list {
  border-top: 1px solid var(--yb-border-soft);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
}

.settings-row + .settings-row {
  border-top: 1px solid var(--yb-border-soft);
}

.settings-row-copy {
  display: grid;
  gap: 8px;
}

.settings-row-copy strong {
  color: var(--yb-text);
  font-size: 18px;
}

.settings-row-copy span {
  color: var(--yb-text-soft);
  line-height: 1.65;
}

.settings-row input,
.settings-row select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--yb-text);
  background-color: #eef3fa;
  border: 1px solid #ccd6e3;
  border-radius: 14px;
  outline: none;
}

.settings-row select {
  padding-right: 42px;
}

.settings-row input:focus,
.settings-row select:focus {
  background-color: #ffffff;
  border-color: rgba(33, 116, 253, 0.58);
  box-shadow: 0 0 0 4px rgba(33, 116, 253, 0.12);
}

.input-with-action {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  background: #eef3fa;
  border: 1px solid #ccd6e3;
  border-radius: 14px;
}

.input-with-action.has-password-reveal {
  grid-template-columns: minmax(0, 1fr) 44px auto;
}

.input-with-action:focus-within {
  background: #ffffff;
  border-color: rgba(33, 116, 253, 0.58);
  box-shadow: 0 0 0 4px rgba(33, 116, 253, 0.12);
}

.settings-row .input-with-action input {
  min-height: 42px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.settings-row .input-with-action input:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.input-with-action-button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--yb-primary);
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-left: 1px solid #ccd6e3;
}

.input-with-action-icon-button {
  display: inline-flex;
  width: 44px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #627189;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  border-left: 1px solid #ccd6e3;
}

.input-with-action-icon-button:hover:not(:disabled),
.input-with-action-icon-button[aria-pressed="true"]:not(:disabled) {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.1);
}

.input-with-action-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.input-with-action-eye-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.input-with-action-button:hover:not(:disabled) {
  color: var(--yb-primary-deep);
  background: rgba(33, 116, 253, 0.1);
}

.input-with-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.settings-row select:disabled {
  color: #536176;
  opacity: 1;
}

.settings-control-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.settings-action-cell {
  display: flex;
  justify-content: flex-end;
}

.inline-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--yb-primary);
  font-weight: 800;
  background: rgba(33, 116, 253, 0.1);
  border: 1px solid rgba(33, 116, 253, 0.16);
  border-radius: 14px;
}

.inline-action:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.inline-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(33, 116, 253, 0.22);
  border-top-color: var(--yb-primary);
  border-radius: 999px;
  animation: yb-spin 780ms linear infinite;
}

@keyframes yb-spin {
  to {
    transform: rotate(360deg);
  }
}

.image-model-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 36px 18px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(36, 48, 72, 0.06);
}

.image-model-status div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.image-model-status strong {
  color: var(--yb-text);
  font-size: 16px;
}

.image-model-status span,
.image-model-status small {
  color: var(--yb-text-soft);
  line-height: 1.55;
}

.image-model-status em {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-style: normal;
  font-weight: 900;
  border-radius: 999px;
}

.image-model-status.is-untested em {
  color: #536176;
  background: #f2f5f9;
}

.image-model-status.is-available em {
  color: #16834a;
  background: rgba(28, 168, 100, 0.12);
}

.image-model-status.is-unavailable em {
  color: #c83220;
  background: rgba(200, 50, 32, 0.1);
}

.image-test-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 18px;
  margin: 0 36px 28px;
  padding: 18px;
  background: rgba(248, 250, 253, 0.86);
  border: 1px solid var(--yb-border-soft);
  border-radius: 22px;
}

.image-test-preview div {
  display: grid;
  gap: 8px;
}

.image-test-preview strong {
  color: var(--yb-text);
  font-size: 17px;
}

.image-test-preview span {
  color: var(--yb-text-soft);
}

.image-test-preview img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.parser-compare {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr;
  gap: 16px;
  padding: 28px 36px 0;
}

.parser-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 24px;
}

.parser-card-primary {
  background: linear-gradient(180deg, rgba(33, 116, 253, 0.1) 0%, #ffffff 62%);
  border-color: rgba(33, 116, 253, 0.28);
  box-shadow: 0 18px 48px rgba(33, 116, 253, 0.12);
}

.parser-card-accent {
  background: linear-gradient(180deg, rgba(91, 84, 211, 0.08) 0%, #ffffff 62%);
}

.parser-card-muted {
  background: #fbfcff;
}

.parser-card-head {
  display: grid;
  gap: 14px;
}

.parser-card-head strong {
  display: block;
  color: var(--yb-text);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.parser-card-head p {
  margin: 8px 0 0;
  color: var(--yb-text-soft);
  line-height: 1.65;
}

.parser-card-head > span {
  width: max-content;
  padding: 6px 10px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  background: rgba(33, 116, 253, 0.1);
  border: 1px solid rgba(33, 116, 253, 0.14);
  border-radius: 999px;
}

.parser-metrics {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.parser-metrics div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(248, 250, 253, 0.7);
}

.parser-metrics div + div {
  border-top: 1px solid var(--yb-border-soft);
}

.parser-metrics dt {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.parser-metrics dd {
  margin: 0;
  color: var(--yb-text);
  font-weight: 700;
  line-height: 1.45;
}

.parser-note {
  margin: 18px 36px 0;
  padding: 14px 16px;
  color: var(--yb-text-soft);
  line-height: 1.7;
  background: rgba(33, 116, 253, 0.06);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 36px 36px;
}

.about-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--yb-bg);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
}

.about-grid span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.about-grid strong,
.about-grid a {
  color: var(--yb-text);
  font-weight: 700;
  text-decoration: none;
}

.about-grid .update-button {
  margin-top: 8px;
  padding: 6px 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  background: var(--yb-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.about-grid .update-button:hover {
  opacity: 0.85;
}

.privacy-statement {
  display: grid;
  gap: 18px;
  margin: 0 36px 36px;
  padding: 22px;
  color: var(--yb-text-soft);
  background:
    radial-gradient(circle at top left, rgba(33, 116, 253, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(33, 116, 253, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(33, 116, 253, 0.08);
}

.privacy-statement-head {
  display: grid;
  gap: 8px;
}

.privacy-statement-head span {
  width: fit-content;
  padding: 4px 10px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(33, 116, 253, 0.1);
  border: 1px solid rgba(33, 116, 253, 0.16);
  border-radius: 999px;
}

.privacy-statement-head strong {
  color: var(--yb-text);
  font-size: 18px;
}

.privacy-statement-head p,
.privacy-item p {
  margin: 0;
  line-height: 1.75;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.privacy-item {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(33, 116, 253, 0.12);
  border-radius: 18px;
}

.privacy-item > span {
  width: fit-content;
  padding: 4px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: var(--yb-primary);
  border-radius: 999px;
}

.privacy-item strong {
  color: var(--yb-text);
  font-size: 15px;
}

.knowledge-page {
  min-height: 0;
  gap: 12px;
  overflow: hidden;
}

.knowledge-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(33, 116, 253, 0.08);
}

.knowledge-breadcrumb {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.knowledge-breadcrumb span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.knowledge-breadcrumb strong {
  color: var(--yb-text);
  font-size: 18px;
}

.knowledge-breadcrumb small {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.knowledge-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.knowledge-toolbar-actions .secondary-action.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--yb-primary), var(--yb-violet));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(33, 116, 253, 0.16);
}

.knowledge-create-folder-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--yb-border-soft);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(33, 116, 253, 0.08);
}

.knowledge-create-folder-bar input {
  flex: 1;
  min-width: 180px;
  height: 42px;
  padding: 0 14px;
  color: var(--yb-text);
  font-size: 14px;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  outline: none;
}

.knowledge-create-folder-bar input:focus {
  border-color: rgba(33, 116, 253, 0.5);
  box-shadow: 0 0 0 3px rgba(33, 116, 253, 0.1);
}

.knowledge-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  flex: 1 1 0;
}

.knowledge-folder-panel,
.knowledge-document-panel,
.knowledge-preview-panel {
  display: grid;
  min-height: 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.knowledge-folder-panel,
.knowledge-document-panel {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.knowledge-preview-panel {
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(520px, 42vh);
}

.knowledge-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.knowledge-panel-head strong {
  color: var(--yb-text);
  font-size: 15px;
}

.knowledge-panel-head span {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.knowledge-folder-list,
.knowledge-document-list,
.knowledge-item-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  scrollbar-gutter: stable;
}

.knowledge-folder-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 11px;
  text-align: left;
  background: var(--yb-bg);
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  cursor: pointer;
}

.knowledge-folder-main {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.knowledge-folder-card.is-active {
  background: rgba(33, 116, 253, 0.1);
  border-color: rgba(33, 116, 253, 0.35);
}

.knowledge-folder-main > span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--yb-primary);
  font-weight: 800;
  background: rgba(33, 116, 253, 0.12);
  border-radius: 10px;
}

.knowledge-folder-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.knowledge-folder-actions button {
  padding: 6px 9px;
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 9px;
}

.knowledge-folder-card strong,
.knowledge-document-title strong,
.knowledge-item-card strong {
  color: var(--yb-text);
}

.knowledge-document-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.knowledge-entity-id {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #475569;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 3px 7px;
}

.knowledge-folder-card small,
.knowledge-document-meta,
.knowledge-empty-box p,
.knowledge-item-card p {
  color: var(--yb-text-muted);
  font-size: 13px;
}

.knowledge-document-card,
.knowledge-item-card,
.knowledge-empty-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--yb-bg);
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
}

.knowledge-empty-box.large {
  min-height: 220px;
  place-content: center;
  text-align: center;
}

.knowledge-document-title,
.knowledge-document-meta,
.knowledge-document-actions,
.knowledge-preview-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.knowledge-status {
  padding: 4px 10px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
}

.knowledge-status.is-success {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.knowledge-status.is-error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.knowledge-status.is-analyzing,
.knowledge-status.is-converting,
.knowledge-status.is-copying,
.knowledge-status.is-extracting,
.knowledge-status.is-matching,
.knowledge-status.is-recovering,
.knowledge-status.is-ready_for_matching,
.knowledge-status.is-saving {
  color: var(--yb-primary);
  background: rgba(33, 116, 253, 0.12);
}

.knowledge-progress-track {
  height: 8px;
  overflow: hidden;
  background: rgba(33, 116, 253, 0.1);
  border-radius: 999px;
}

.knowledge-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yb-primary), #60a5fa);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.knowledge-document-actions,
.knowledge-preview-tabs {
  justify-content: flex-start;
}

.knowledge-document-actions button,
.knowledge-preview-tabs button {
  padding: 7px 12px;
  color: var(--yb-text);
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 10px;
  cursor: pointer;
}

.knowledge-document-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.knowledge-folder-actions button.is-danger,
.knowledge-document-actions button.is-danger {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.16);
}

.knowledge-preview-tabs button.is-active {
  color: #ffffff;
  background: var(--yb-primary);
  border-color: var(--yb-primary);
}

.knowledge-preview-panel {
  overflow: hidden;
}

.knowledge-item-source-action {
  width: fit-content;
  padding: 7px 12px;
  color: var(--yb-primary);
  font-size: 13px;
  font-weight: 800;
  background: rgba(33, 116, 253, 0.08);
  border: 1px solid rgba(33, 116, 253, 0.16);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.knowledge-item-source-action:hover {
  background: rgba(33, 116, 253, 0.12);
}

.knowledge-item-content {
  min-height: 0;
  max-height: 260px;
  overflow: auto;
  color: var(--yb-text);
  line-height: 1.78;
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  padding: 12px;
}

.knowledge-item-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yb-primary);
  font-size: 13px;
}

.knowledge-source-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.knowledge-source-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 16, 28, 0.52);
  backdrop-filter: blur(8px);
}

.knowledge-source-dialog-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 121;
  width: min(1040px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  background: #ffffff;
  border: 1px solid rgba(220, 223, 230, 0.9);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%);
}

.knowledge-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.knowledge-source-head > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.knowledge-source-head span {
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-source-head h2 {
  overflow: hidden;
  margin: 0;
  color: var(--yb-text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-source-head p {
  margin: 0;
  color: var(--yb-text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.knowledge-source-content {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.knowledge-source-loading {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.knowledge-item-link-text {
  color: var(--yb-primary);
  text-decoration: underline;
  text-decoration-style: dotted;
  overflow-wrap: anywhere;
}

.knowledge-item-content p,
.knowledge-item-content li,
.knowledge-item-content td,
.knowledge-item-content th,
.knowledge-item-content blockquote {
  color: var(--yb-text);
}

.knowledge-item-content table {
  display: block;
  width: 100%;
  overflow: auto;
  border-collapse: collapse;
}

.knowledge-item-content th,
.knowledge-item-content td {
  min-width: 120px;
  padding: 9px 10px;
  border: 1px solid var(--yb-border-soft);
}

.knowledge-item-content th {
  background: #f1f6ff;
}

.knowledge-item-card pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  padding: 12px;
}

.knowledge-markdown-preview {
  margin: 16px;
  min-height: 0;
}

.knowledge-viewer-page {
  min-height: 0;
  gap: 12px;
  overflow: hidden;
}

.knowledge-viewer-bar .knowledge-breadcrumb strong {
  overflow: hidden;
  max-width: min(680px, 48vw);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-viewer-panel {
  display: grid;
  min-height: 0;
  flex: 1 1 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--yb-border-soft);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.knowledge-viewer-item-list {
  padding: 16px;
}

.knowledge-viewer-markdown {
  min-height: 0;
  overflow: auto;
}

.knowledge-analysis-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.knowledge-analysis-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.knowledge-analysis-command strong {
  color: var(--yb-text);
  font-size: 17px;
}

.knowledge-analysis-command p {
  margin: 6px 0 0;
  color: var(--yb-text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.knowledge-analysis-command label {
  display: grid;
  gap: 6px;
  color: var(--yb-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-analysis-command input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--yb-text);
  background: #ffffff;
  border: 1px solid var(--yb-border-soft);
  border-radius: 12px;
  outline: none;
}

.knowledge-analysis-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.knowledge-stat-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--yb-bg);
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
}

.knowledge-stat-card span {
  color: var(--yb-text-muted);
  font-size: 12px;
}

.knowledge-stat-card strong {
  color: var(--yb-primary);
  font-size: 20px;
}

.knowledge-analysis-report {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.knowledge-analysis-report strong,
.knowledge-analysis-report span {
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(33, 116, 253, 0.08);
  border-radius: 999px;
}

.knowledge-analysis-report strong {
  color: var(--yb-primary);
}

.knowledge-analysis-report span {
  color: var(--yb-text-soft);
}

.knowledge-analysis-debug-log {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 16px;
  color: var(--yb-text-soft);
  font-size: 12px;
  border-bottom: 1px solid var(--yb-border-soft);
}

.knowledge-analysis-debug-log strong {
  flex: 0 0 auto;
  color: var(--yb-primary);
}

.knowledge-analysis-debug-log code {
  overflow: hidden;
  padding: 5px 8px;
  color: #155bd7;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(33, 116, 253, 0.08);
  border-radius: 8px;
}

.knowledge-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: 0;
  flex: 1 1 0;
}

.knowledge-analysis-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.knowledge-analysis-section + .knowledge-analysis-section {
  border-left: 1px solid var(--yb-border-soft);
}

.knowledge-candidate-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  scrollbar-gutter: stable;
}

.knowledge-candidate-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--yb-bg);
  border: 1px solid var(--yb-border-soft);
  border-radius: 14px;
}

.knowledge-candidate-card small {
  color: var(--yb-primary);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-candidate-card strong {
  color: var(--yb-text);
}

.knowledge-candidate-card p {
  margin: 0;
  color: var(--yb-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .knowledge-page {
    overflow: auto;
  }

  .knowledge-viewer-page {
    overflow: auto;
  }

  .knowledge-layout {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
  }

  .knowledge-folder-list,
  .knowledge-document-list {
    max-height: 360px;
  }

  .knowledge-preview-panel {
    max-height: 560px;
  }

  .knowledge-viewer-panel {
    min-height: 560px;
  }

  .knowledge-source-dialog-card {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .knowledge-source-head {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-analysis-command,
  .knowledge-analysis-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-analysis-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-analysis-section + .knowledge-analysis-section {
    border-top: 1px solid var(--yb-border-soft);
    border-left: 0;
  }
}

.tooltip-content {
  z-index: 30;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 13px;
  background: #172033;
  border: 1px solid rgba(33, 116, 253, 0.24);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.tooltip-arrow {
  fill: #172033;
}

@media (max-width: 1100px) {
  .stage-grid,
  .category-grid,
  .workspace-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parser-compare {
    grid-template-columns: 1fr;
  }

  .duplicate-dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duplicate-analysis-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duplicate-analysis-tab:nth-child(2n) {
    border-right: 0;
  }

  .duplicate-analysis-tab:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(27, 50, 92, 0.12);
  }

  .duplicate-upload-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .duplicate-upload-label {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .duplicate-upload-label small {
    grid-column: 1 / -1;
  }

  .duplicate-upload-button {
    width: 100%;
  }

  .privacy-list {
    grid-template-columns: 1fr;
  }

  .analysis-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-hero-card,
  .demo-content-grid {
    grid-template-columns: 1fr;
  }

  .demo-coming-page {
    overflow: auto;
  }

  .developer-test-grid {
    grid-template-columns: 1fr;
  }

  .bid-analysis-command-bar,
  .rejection-result-command-bar,
  .bid-analysis-workspace,
  .content-generation-command-bar,
  .content-generation-workspace,
  .outline-command-bar,
  .outline-generation-workspace {
    grid-template-columns: 1fr;
  }

  .outline-generation-workspace {
    height: auto;
    min-height: 0;
  }

  .outline-tree-list,
  .outline-progress-log,
  .outline-detail-body,
  .bid-analysis-task-list,
  .bid-analysis-output,
  .bid-analysis-json-table-wrap,
  .content-outline-list,
  .content-generation-output {
    max-height: 520px;
  }

  .content-outline-panel {
    border-right: 0;
    border-bottom: 1px solid var(--yb-border-soft);
  }

  .bid-analysis-command-bar,
  .rejection-result-command-bar {
    align-items: stretch;
  }

  .bid-analysis-mode-switch {
    width: fit-content;
  }

  .bid-analysis-task-pane {
    border-right: 0;
    border-bottom: 1px solid var(--yb-border-soft);
  }

  .outline-progress-panel,
  .outline-detail-panel {
    border: 0;
    border-bottom: 1px solid var(--yb-border-soft);
  }

  .analysis-import-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-row {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 380px);
  }

  .hero-panel {
    flex-direction: column;
  }

  .hero-card {
    width: 100%;
  }
}

@media (max-width: 860px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    height: 100vh;
    flex-direction: column;
  }

  .sidebar,
  .sidebar.is-collapsed {
    width: 100%;
    min-width: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .brand-copy,
  .collapse-button,
  .nav-copy,
  .settings-copy {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .sidebar-nav {
    flex: 1;
    flex-direction: row;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
  }

  .sidebar-footer {
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .nav-item,
  .settings-trigger {
    width: auto;
    padding: 7px;
  }

  .main-area {
    height: calc(100vh - 68px);
    min-height: 0;
  }

  .content-shell {
    padding: 20px;
  }

  .floating-toolbar {
    right: 14px;
    bottom: 18px;
    left: 14px;
    max-width: calc(100% - 28px);
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 22px;
  }

  .settings-page > .floating-toolbar,
  .app-shell:has(.sidebar.is-collapsed) .settings-page > .floating-toolbar {
    right: 14px;
    bottom: 18px;
    left: 14px;
  }

  .floating-toolbar-button {
    padding: 9px 12px;
  }

  .stage-grid,
  .category-grid,
  .workspace-grid,
  .analysis-result-grid,
  .duplicate-dimension-grid,
  .demo-signal-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .demo-hero-card,
  .demo-panel,
  .demo-preview-card {
    border-radius: 24px;
  }

  .demo-hero-card,
  .demo-panel,
  .demo-preview-card {
    padding: 22px 20px;
  }

  .demo-panel-head,
  .opportunity-card-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .duplicate-check-page {
    overflow: auto;
  }

  .duplicate-analysis-panel {
    height: auto;
    min-height: 100%;
    padding: 18px;
  }

  .duplicate-analysis-tabs {
    grid-template-columns: 1fr;
  }

  .duplicate-analysis-tab,
  .duplicate-analysis-tab:nth-child(2n),
  .duplicate-analysis-tab:last-child {
    border-right: 0;
  }

  .duplicate-analysis-tab,
  .duplicate-analysis-tab:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(27, 50, 92, 0.12);
  }

  .duplicate-analysis-tab:last-child {
    border-bottom: 0;
  }

  .duplicate-analysis-content {
    padding: 26px 22px;
  }

  .rejection-check-page {
    grid-template-rows: auto auto auto;
    overflow: auto;
  }

  .rejection-page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .rejection-document-tabs {
    width: 100%;
  }

  .rejection-document-tab {
    flex: 1;
  }

  .rejection-reader-card {
    min-height: 560px;
  }

  .rejection-reader-head {
    align-items: stretch;
    flex-direction: column;
  }

  .rejection-check-result-panel {
    height: auto;
    min-height: 620px;
    padding: 18px;
  }

  .rejection-check-result-title,
  .rejection-check-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rejection-check-result-tabs {
    grid-template-columns: 1fr;
  }

  .rejection-check-result-tab,
  .rejection-check-result-tab:last-child {
    border-right: 0;
  }

  .rejection-check-result-tab:not(:last-child) {
    border-bottom: 1px solid rgba(27, 50, 92, 0.12);
  }

  .rejection-check-result-content.is-rejection-list {
    padding: 18px;
  }

  .rejection-finding-summary,
  .rejection-finding-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .rejection-finding-summary {
    flex-direction: column;
  }

  .rejection-finding-title-wrap > span {
    flex-wrap: wrap;
  }

  .rejection-finding-title-wrap strong,
  .rejection-finding-title-wrap small {
    white-space: normal;
  }

  .rejection-finding-actions,
  .rejection-finding-delete {
    justify-self: flex-end;
  }

  .rejection-finding-actions {
    flex-wrap: wrap;
  }

  .rejection-finding-detail {
    grid-template-columns: 1fr;
  }

  .duplicate-page-title,
  .duplicate-guide-head {
    align-items: stretch;
    flex-direction: column;
  }

  .duplicate-upload-summary {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .bid-analysis-mode-switch {
    width: 100%;
    overflow-x: auto;
  }

  .bid-analysis-mode-pill {
    min-width: 140px;
  }

  .developer-test-hero,
  .developer-test-panel {
    padding: 22px 20px;
  }

  .bid-analysis-reader-head {
    flex-direction: column;
  }

  .content-generation-command-bar {
    align-items: stretch;
  }

  .outline-command-bar,
  .outline-generation-mode-list,
  .outline-knowledge-grid {
    grid-template-columns: 1fr;
  }

  .outline-command-actions {
    justify-content: flex-start;
  }

  .outline-generation-config-card {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 20px;
  }

  .content-generation-stats {
    justify-content: flex-start;
  }

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

  .content-reader-head {
    flex-direction: column;
  }

  .settings-tab-shell {
    justify-self: stretch;
  }

  .settings-tab {
    min-width: 84px;
    padding: 12px 14px;
  }

  .settings-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px;
  }

  .settings-section-title {
    padding-right: 20px;
    padding-left: 20px;
  }

  .image-model-status {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 20px;
    margin-left: 20px;
  }

  .image-test-preview {
    grid-template-columns: 1fr;
    margin-right: 20px;
    margin-left: 20px;
  }

  .parser-note {
    margin-right: 20px;
    margin-left: 20px;
  }

  .parser-compare {
    padding-right: 20px;
    padding-left: 20px;
  }

  .about-grid {
    padding-right: 20px;
    padding-left: 20px;
  }

  .privacy-statement {
    margin-right: 20px;
    margin-left: 20px;
  }

  .hero-panel,
  .panel,
  .stage-card,
  .category-card,
  .empty-panel,
  .settings-page-section {
    border-radius: 24px;
  }
}
