* {
  box-sizing: border-box;
}

:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --panel: #ffffff;
  --soft: #f5f8fc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #0f9f6e;
  --navy: #101828;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.shell,
.site-inner {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.shell {
  padding: 32px 0 56px;
}

.site-shell {
  width: 100%;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(14px);
}

.nav-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 210px;
}

.brand-symbol {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.brand-text {
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
}

.main-nav a {
  position: relative;
  color: #344054;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.phone-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
}

.phone-link::before {
  content: "Tel";
  margin-right: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.nav-cta,
.primary-cta,
.secondary-cta,
button,
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 0 18px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.nav-cta,
.primary-cta,
button,
.download {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.nav-cta:hover,
.primary-cta:hover,
button:hover,
.download:hover {
  background: var(--blue-dark);
}

.secondary-cta {
  color: var(--blue);
  border: 1px solid #b8c7e6;
  background: #fff;
}

.secondary-cta:hover {
  background: #eff6ff;
}

.hero-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.13), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(440px, 1.04fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy p:not(.section-label) {
  max-width: 680px;
  margin: 0;
  color: #475467;
  font-size: 18px;
  line-height: 1.78;
}

.section-label,
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.hero-visual img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.16);
}

.insight-card {
  position: absolute;
  min-width: 190px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.insight-card strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.insight-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.insight-market {
  left: -24px;
  bottom: 34px;
}

.insight-platform {
  right: -18px;
  top: 34px;
}

.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid article {
  min-height: 124px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.stats-grid article:last-child {
  border-right: 0;
}

.stats-grid strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.stats-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.section {
  padding-top: 82px;
  padding-bottom: 82px;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.section-head h2,
.report-entry h2 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.24;
  letter-spacing: 0;
}

.section-head p:not(.section-label),
.report-entry p:not(.section-label) {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.strategy-layout {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 56px;
  align-items: center;
}

.strategy-layout img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.strategy-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.strategy-panel h3,
.report-entry h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.25;
}

.strategy-panel p,
.report-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #b7d7cb;
  border-radius: 999px;
  background: #edf9f5;
  color: #08775a;
  font-size: 14px;
  font-weight: 850;
}

.muted-section {
  background: var(--soft);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-cards article,
.cards article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-cards article {
  overflow: hidden;
}

.service-cards img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-cards article > div {
  padding: 24px 24px 26px;
}

.service-cards h3,
.cards h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.28;
}

.service-cards p,
.cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.report-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 40px;
  border: 1px solid #d8e4ff;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.report-entry > div {
  max-width: 760px;
}

.report-entry .primary-cta {
  flex: 0 0 auto;
}

.footer-like {
  background: var(--navy);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 60px;
  align-items: start;
}

.footer-grid .section-label {
  color: #7dd3fc;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.35;
}

.footer-grid p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.contact-box strong {
  font-size: 18px;
}

.contact-box a {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.contact-box img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  background: #fff;
  border-radius: 6px;
}

.copyright {
  width: min(1180px, calc(100vw - 40px));
  margin: 42px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.report-hero {
  margin: 0 0 24px;
  background:
    radial-gradient(circle at 82% 16%, rgba(37, 99, 235, 0.28), transparent 32%),
    var(--navy);
  color: #fff;
}

.report-hero-inner {
  padding: 58px 0 62px;
}

.report-hero h1,
h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.panel {
  padding: 28px;
}

.report-panel {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

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

label {
  display: block;
  margin-bottom: 18px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
}

textarea {
  resize: vertical;
}

.cards {
  width: min(1180px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px auto 56px;
}

.cards article {
  padding: 22px;
}

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

.download.secondary {
  background: #eef2f7;
  color: var(--ink);
  box-shadow: none;
}

.download.secondary:hover {
  background: #dbe4ee;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .nav-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid,
  .strategy-layout,
  .service-cards,
  .footer-grid,
  .cards,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-visual {
    min-height: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid article:nth-child(2n) {
    border-right: 0;
  }

  .hero-copy h1,
  .section-head h2,
  .report-entry h2,
  .report-hero h1,
  h1 {
    font-size: 36px;
  }

  .report-entry {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell,
  .site-inner,
  .report-panel,
  .cards,
  .copyright {
    width: min(100% - 28px, 1180px);
  }

  .hero-grid {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-copy h1,
  .section-head h2,
  .report-entry h2,
  .report-hero h1,
  h1 {
    font-size: 31px;
  }

  .hero-copy p:not(.section-label),
  .section-head p:not(.section-label) {
    font-size: 16px;
  }

  .hero-visual img {
    height: 300px;
  }

  .insight-card {
    position: static;
    margin-top: 12px;
  }

  .stats-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .stats-grid article {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-grid article:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .panel,
  .report-entry,
  .strategy-panel {
    padding: 22px;
  }
}

.simple-upload {
  max-width: 760px;
}

.upload-drop {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  border: 1.5px dashed #9db7ea;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  text-align: center;
}

.upload-drop span {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.upload-drop input {
  max-width: 420px;
  background: #ffffff;
}

.upload-drop small {
  color: #667085;
  font-size: 13px;
}

/* WebPortal-inspired dark console home */
.site-shell {
  background: #020202;
  color: #f8fafc;
}

.site-shell .site-header {
  background: #050505;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: none;
}

.site-shell .brand,
.site-shell .main-nav a,
.site-shell .phone-link {
  color: #f8fafc;
}

.site-shell .brand-symbol {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #fff200;
  color: #050505;
}

.site-shell .brand-text small,
.site-shell .main-nav a {
  color: #b9c0cf;
}

.site-shell .main-nav a::after {
  background: #fff200;
}

.site-shell .main-nav a:hover {
  color: #fff200;
}

.site-shell .phone-link::before,
.site-shell .section-label {
  color: #fff200;
}

.site-shell .nav-cta,
.site-shell .primary-cta {
  background: transparent;
  color: #fff200;
  border: 1px solid #fff200;
  box-shadow: none;
}

.site-shell .nav-cta:hover,
.site-shell .primary-cta:hover {
  background: #fff200;
  color: #050505;
}

.site-shell .secondary-cta {
  color: #f8fafc;
  border-color: #64748b;
  background: transparent;
}

.site-shell .secondary-cta:hover {
  color: #fff200;
  border-color: #fff200;
  background: rgba(255, 242, 0, 0.08);
}

.site-shell .hero-section {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.74)),
    url("/static/nmwrus_assets/hero.jpg") center / cover no-repeat;
  border-bottom: 1px solid #e5e7eb;
}

.console-layout {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.console-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 28px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.console-sidebar a {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #f8fafc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.console-sidebar a span {
  color: #d8dce7;
  font-size: 16px;
  line-height: 1;
}

.console-sidebar a.active,
.console-sidebar a:hover,
.console-sidebar a.active span,
.console-sidebar a:hover span {
  color: #fff200;
}

.site-shell .hero-grid {
  min-height: 632px;
  padding: 60px 0;
}

.site-shell .hero-copy h1 {
  color: #fff;
  font-size: 50px;
}

.site-shell .hero-copy p:not(.section-label) {
  color: #d6dbe6;
}

.site-shell .hero-visual img {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  filter: grayscale(0.18) contrast(1.05);
}

.hero-report-panel {
  width: 100%;
  align-self: center;
  border: 1px solid #fff200;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.report-panel-head {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 242, 0, 0.5);
}

.report-panel-head span {
  color: #b9c0cf;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-panel-head strong {
  color: #fff200;
  font-size: 18px;
}

.home-report-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.home-report-form label {
  margin: 0;
}

.home-report-form label span {
  color: #f8fafc;
}

.home-report-form input,
.home-report-form textarea {
  border-color: rgba(255, 242, 0, 0.72);
  background: #050505;
  color: #fff;
}

.home-report-form textarea::placeholder {
  color: #8b93a3;
}

.home-upload {
  display: flex;
  min-height: 182px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px dashed #fff200;
  border-radius: 8px;
  background: rgba(255, 242, 0, 0.06);
  text-align: center;
}

.home-upload input {
  max-width: 100%;
}

.home-upload small,
.home-upload-status {
  margin: 0;
  color: #b9c0cf;
  font-size: 13px;
  line-height: 1.5;
}

.home-report-form button {
  width: 100%;
  border: 1px solid #fff200;
  background: transparent;
  color: #fff200;
  box-shadow: none;
}

.home-report-form button:hover {
  background: #fff200;
  color: #050505;
}

.site-shell .insight-card {
  border-color: #fff200;
  background: rgba(0, 0, 0, 0.86);
  box-shadow: none;
}

.site-shell .insight-card strong {
  color: #fff;
}

.site-shell .insight-card span {
  color: #fff200;
}

.site-shell .stats-band,
.site-shell .muted-section {
  background: #050505;
  border-bottom: 1px solid #e5e7eb;
}

.site-shell .stats-grid article {
  border-right-color: #e5e7eb;
}

.site-shell .stats-grid strong,
.site-shell .section-head h2,
.site-shell .report-entry h2,
.site-shell .strategy-panel h3,
.site-shell .report-entry h3,
.site-shell .service-cards h3,
.site-shell .cards h2 {
  color: #fff;
}

.site-shell .stats-grid span,
.site-shell .section-head p:not(.section-label),
.site-shell .report-entry p:not(.section-label),
.site-shell .strategy-panel p,
.site-shell .service-cards p,
.site-shell .cards p {
  color: #b9c0cf;
}

.site-shell .section {
  background: #020202;
}

.site-shell .strategy-panel,
.site-shell .service-cards article,
.site-shell .report-entry {
  background: #050505;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.site-shell .strategy-layout img,
.site-shell .service-cards img {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.site-shell .feature-list span {
  border-color: #fff200;
  background: rgba(255, 242, 0, 0.08);
  color: #fff200;
}

.site-shell .report-entry {
  background:
    linear-gradient(90deg, rgba(255, 242, 0, 0.1), transparent),
    #050505;
}

.site-shell .footer-like {
  background: #000;
  border-top: 1px solid #e5e7eb;
}

.site-shell .contact-box {
  background: #050505;
  border: 1px solid #fff200;
}

@media (max-width: 1040px) {
  .console-layout {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px 0 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .console-sidebar a {
    min-width: 92px;
  }

  .site-shell .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Refined AI-report homepage */
.site-shell {
  background: #0a0d12;
}

.site-shell .site-header {
  background: rgba(10, 13, 18, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.site-shell .brand-symbol {
  background: linear-gradient(135deg, #f7d046, #35d39f);
  color: #0a0d12;
}

.site-shell .nav-cta,
.site-shell .primary-cta,
.home-report-form button {
  border: 1px solid rgba(247, 208, 70, 0.82);
  background: #f7d046;
  color: #111827;
  box-shadow: 0 16px 36px rgba(247, 208, 70, 0.18);
}

.site-shell .nav-cta:hover,
.site-shell .primary-cta:hover,
.home-report-form button:hover {
  background: #ffe27a;
  color: #111827;
}

.site-shell .secondary-cta {
  color: #e8edf7;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.site-shell .secondary-cta:hover {
  color: #fff;
  border-color: rgba(53, 211, 159, 0.62);
  background: rgba(53, 211, 159, 0.12);
}

.site-shell .hero-section {
  background:
    linear-gradient(120deg, rgba(10, 13, 18, 0.96) 0%, rgba(10, 13, 18, 0.84) 56%, rgba(10, 13, 18, 0.72) 100%),
    url("/static/nmwrus_assets/hero.jpg") center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-layout {
  display: block;
}

.console-sidebar {
  display: none;
}

.site-shell .hero-grid {
  min-height: 680px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.82fr);
  gap: 72px;
  padding: 72px 0;
}

.site-shell .hero-copy {
  padding: 0;
}

.site-shell .section-label {
  color: #35d39f;
}

.site-shell .hero-copy h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: 56px;
  line-height: 1.08;
}

.site-shell .hero-copy p:not(.section-label) {
  max-width: 660px;
  color: #b9c2d4;
  font-size: 18px;
}

.hero-report-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(13, 17, 24, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.report-panel-head {
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-panel-head span {
  color: #8792a6;
}

.report-panel-head strong {
  color: #ffffff;
  font-size: 20px;
}

.home-report-form {
  gap: 20px;
  padding: 28px;
}

.home-upload {
  min-height: 205px;
  border: 1px dashed rgba(53, 211, 159, 0.58);
  background:
    linear-gradient(180deg, rgba(53, 211, 159, 0.08), rgba(255, 255, 255, 0.03));
}

.home-upload span {
  font-size: 20px;
}

.home-report-form input,
.home-report-form textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.home-report-form input:focus,
.home-report-form textarea:focus {
  outline: 2px solid rgba(53, 211, 159, 0.32);
  border-color: rgba(53, 211, 159, 0.72);
}

.home-upload small,
.home-upload-status {
  color: #98a2b3;
}

.site-shell .stats-band,
.site-shell .muted-section,
.site-shell .section {
  background: #0a0d12;
}

.site-shell .stats-grid {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.site-shell .stats-grid article {
  min-height: 118px;
  border-right-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.site-shell .stats-grid strong {
  color: #ffffff;
  font-size: 28px;
}

.site-shell .stats-grid span {
  color: #98a2b3;
}

.site-shell .strategy-panel,
.site-shell .service-cards article,
.site-shell .report-entry,
.site-shell .contact-box {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.site-shell .feature-list span {
  border-color: rgba(53, 211, 159, 0.45);
  background: rgba(53, 211, 159, 0.1);
  color: #68e8bb;
}

.site-shell .report-entry {
  background:
    linear-gradient(120deg, rgba(53, 211, 159, 0.08), rgba(247, 208, 70, 0.06)),
    rgba(255, 255, 255, 0.04);
}

@media (max-width: 1040px) {
  .site-shell .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-shell .hero-grid {
    padding: 44px 0;
  }

  .site-shell .hero-copy h1 {
    font-size: 34px;
  }

  .home-report-form {
    padding: 20px;
  }
}

/* Figma dashboard-inspired home refresh */
.site-shell {
  background: #f4f7fb;
  color: #162033;
}

.site-shell .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e6ebf2;
  backdrop-filter: blur(18px);
}

.site-shell .brand,
.site-shell .main-nav a,
.site-shell .phone-link {
  color: #162033;
}

.site-shell .brand-symbol {
  border-radius: 8px;
  background: #16a37b;
  color: #fff;
}

.site-shell .brand-text small,
.site-shell .main-nav a {
  color: #667085;
}

.site-shell .main-nav a::after {
  background: #16a37b;
}

.site-shell .main-nav a:hover,
.site-shell .phone-link::before,
.site-shell .section-label {
  color: #16a37b;
}

.site-shell .nav-cta,
.site-shell .primary-cta,
.home-report-form button {
  border: 0;
  background: #1769e0;
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 105, 224, 0.18);
}

.site-shell .nav-cta:hover,
.site-shell .primary-cta:hover,
.home-report-form button:hover {
  background: #0f58c2;
  color: #fff;
}

.site-shell .secondary-cta {
  color: #1769e0;
  border-color: #ccd8eb;
  background: #fff;
}

.site-shell .secondary-cta:hover {
  color: #0f58c2;
  border-color: #9eb8e4;
  background: #f7fbff;
}

.site-shell .hero-section {
  background:
    radial-gradient(circle at 84% 12%, rgba(22, 163, 123, 0.14), transparent 32%),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
  border-bottom: 1px solid #e6ebf2;
}

.site-shell .hero-grid {
  min-height: 650px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 64px;
  padding: 66px 0 58px;
}

.site-shell .hero-copy h1 {
  max-width: 820px;
  color: #101828;
  font-size: 48px;
  line-height: 1.14;
  word-break: keep-all;
}

.site-shell .hero-copy p:not(.section-label) {
  max-width: 660px;
  color: #667085;
  font-size: 18px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 34px;
}

.dashboard-kpis article,
.hero-report-panel,
.summary-card,
.trend-card,
.site-shell .strategy-panel,
.site-shell .service-cards article,
.site-shell .report-entry,
.site-shell .contact-box {
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.07);
}

.dashboard-kpis article {
  padding: 18px;
}

.dashboard-kpis span,
.card-label {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-kpis strong {
  display: block;
  margin-top: 8px;
  color: #101828;
  font-size: 26px;
  line-height: 1.1;
}

.hero-report-panel {
  align-self: center;
  backdrop-filter: blur(18px);
}

.report-panel-head {
  min-height: 72px;
  border-bottom: 1px solid #e6ebf2;
}

.report-panel-head span {
  color: #667085;
}

.report-panel-head strong {
  color: #101828;
}

.home-report-form input,
.home-report-form textarea {
  border-color: #d5dfec;
  background: #fbfdff;
  color: #162033;
}

.home-report-form label span,
.home-upload span {
  color: #162033;
}

.home-report-form textarea::placeholder {
  color: #98a2b3;
}

.home-report-form input:focus,
.home-report-form textarea:focus {
  outline: 3px solid rgba(23, 105, 224, 0.12);
  border-color: #1769e0;
}

.home-upload {
  border: 1px dashed #9eb8e4;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.home-upload small,
.home-upload-status {
  color: #667085;
}

.site-shell .stats-band,
.site-shell .muted-section,
.site-shell .section,
.dashboard-section {
  background: #f4f7fb;
}

.site-shell .stats-grid {
  gap: 14px;
  padding: 18px 0;
  border-left: 0;
}

.site-shell .stats-grid article {
  min-height: 108px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.site-shell .stats-grid strong,
.site-shell .section-head h2,
.site-shell .report-entry h2,
.site-shell .strategy-panel h3,
.site-shell .report-entry h3,
.site-shell .service-cards h3,
.site-shell .cards h2,
.dashboard-toolbar h2,
.trend-card h3 {
  color: #101828;
}

.site-shell .stats-grid span,
.site-shell .section-head p:not(.section-label),
.site-shell .report-entry p:not(.section-label),
.site-shell .strategy-panel p,
.site-shell .service-cards p,
.site-shell .cards p,
.summary-card p {
  color: #667085;
}

.dashboard-section {
  padding-top: 46px;
  padding-bottom: 28px;
}

.dashboard-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.dashboard-toolbar h2 {
  max-width: 660px;
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-chips span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d5dfec;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

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

.summary-card,
.trend-card {
  padding: 22px;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  color: #1769e0;
  font-size: 42px;
  line-height: 1;
}

.summary-card p {
  margin: 12px 0 0;
  line-height: 1.6;
}

.trend-card {
  grid-column: 1 / -1;
}

.trend-card h3 {
  margin: 8px 0 18px;
  font-size: 22px;
}

.score-bars {
  display: grid;
  gap: 12px;
}

.score-bars span {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 14px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.score-bars span::after {
  content: "";
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #16a37b var(--w), #e7edf5 var(--w));
}

.site-shell .feature-list span {
  border-color: #badfd4;
  background: #eefaf6;
  color: #08775a;
}

.site-shell .report-entry {
  background: #fff;
}

.site-shell .footer-like {
  background: #101828;
}

@media (max-width: 1040px) {
  .site-shell .hero-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .dashboard-kpis,
  .site-shell .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar h2 {
    font-size: 25px;
  }
}

/* Energy-management-dashboard inspired first screen */
.site-shell .hero-section {
  background: #f6f8fb;
}

.energy-dashboard {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  min-height: 780px;
  padding: 22px 0 40px;
}

.energy-rail {
  display: flex;
  min-height: 720px;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  padding: 18px 10px;
  border-radius: 24px;
  background: #2b6b55;
}

.energy-rail a,
.energy-rail span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 900;
}

.energy-rail a {
  background: rgba(255, 255, 255, 0.08);
}

.energy-rail a.active,
.energy-rail a:hover {
  background: #7adf90;
  color: #184734;
}

.energy-rail span {
  margin-top: auto;
  background: #7adf90;
  color: #184734;
}

.energy-main {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}

.dashboard-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 0 4px;
}

.dashboard-greeting h1 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 30px;
  line-height: 1.2;
}

.dashboard-greeting p {
  margin: 0;
  color: #667085;
  font-size: 15px;
}

.dashboard-filter-card {
  display: grid;
  grid-template-columns: 1.08fr 0.95fr 1.08fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
}

.filter-field {
  margin: 0;
}

.filter-field span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.filter-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5dfec;
  border-radius: 8px;
  background: #fbfdff;
  color: #111827;
}

.dashboard-filter-card button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  background: #1db954;
  color: #fff;
  box-shadow: none;
  white-space: nowrap;
}

.dashboard-filter-card button:hover {
  background: #159947;
}

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

.energy-metrics article {
  position: relative;
  min-height: 148px;
  padding: 22px;
  border-radius: 10px;
  background: #2d6b56;
  color: #fff;
  box-shadow: 0 14px 32px rgba(32, 86, 67, 0.18);
}

.energy-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.energy-metrics strong {
  display: block;
  margin-top: 28px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.energy-metrics small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.energy-metrics em {
  position: absolute;
  top: 22px;
  right: 20px;
  min-height: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #7adf90;
  color: #184734;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.energy-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.energy-card {
  min-height: 390px;
  padding: 24px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
}

.energy-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 20px;
}

.energy-card p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.donut-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.donut-wrap {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 260px;
}

.donut-chart {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: conic-gradient(#24c565 0 30%, #18a852 30% 54%, #13733d 54% 76%, #063b20 76% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 46%, #000 47%);
  mask: radial-gradient(circle, transparent 0 46%, #000 47%);
}

.donut-wrap strong {
  margin-top: -124px;
  color: #111827;
  font-size: 34px;
}

.donut-wrap span {
  color: #667085;
  font-size: 13px;
}

.mini-chart {
  display: flex;
  height: 250px;
  align-items: end;
  gap: 18px;
  padding: 34px 24px 16px;
  border-bottom: 1px solid #d8dee9;
}

.mini-chart i {
  display: block;
  flex: 1;
  height: var(--h);
  min-height: 30px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #25c565, #16874a);
}

@media (max-width: 1100px) {
  .energy-dashboard,
  .dashboard-filter-card,
  .energy-metrics,
  .energy-panels {
    grid-template-columns: 1fr;
  }

  .energy-rail {
    min-height: auto;
    flex-direction: row;
    border-radius: 14px;
  }

  .energy-rail span {
    margin-top: 0;
    margin-left: auto;
  }

  .dashboard-greeting {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* New product direction: DeepSeek-style AI report center */
.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(55, 124, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: #111827;
}

.site-inner {
  width: min(1180px, calc(100vw - 40px));
}

.site-shell .site-header {
  background: rgba(247, 249, 252, 0.86);
  border-bottom: 1px solid rgba(213, 223, 236, 0.72);
  backdrop-filter: blur(18px);
}

.site-shell .nav-row {
  min-height: 72px;
}

.site-shell .brand-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
}

.site-shell .brand,
.site-shell .main-nav a,
.site-shell .phone-link {
  color: #111827;
}

.site-shell .brand-text {
  font-size: 18px;
}

.site-shell .brand-text small {
  color: #667085;
}

.site-shell .main-nav a {
  color: #667085;
  font-size: 14px;
}

.site-shell .main-nav a:hover {
  color: #111827;
}

.site-shell .main-nav a::after {
  background: #111827;
}

.site-shell .phone-link::before {
  content: "";
  margin: 0;
}

.site-shell .nav-cta,
.site-shell .primary-cta {
  min-height: 40px;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: none;
}

.site-shell .nav-cta:hover,
.site-shell .primary-cta:hover {
  background: #000;
}

.deep-hero {
  padding: 72px 0 42px;
}

.deep-shell {
  display: grid;
  justify-items: center;
}

.deep-head {
  max-width: 860px;
  text-align: center;
}

.deep-badge,
.section-label {
  display: inline-flex;
  margin: 0 0 18px;
  color: #1769e0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.deep-head h1 {
  margin: 0;
  color: #111827;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
}

.deep-head p {
  max-width: 760px;
  margin: 18px auto 0;
  color: #667085;
  font-size: 18px;
  line-height: 1.8;
}

.deep-composer {
  width: min(940px, 100%);
  margin-top: 34px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.10);
}

.deep-upload {
  display: flex;
  min-height: 152px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  border: 1.5px dashed #b8c7dc;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
}

.deep-upload strong {
  color: #111827;
  font-size: 22px;
}

.deep-upload span {
  color: #667085;
  font-size: 14px;
}

.deep-upload input {
  width: min(420px, calc(100% - 40px));
  border: 1px solid #d5dfec;
  background: #fff;
}

.deep-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.deep-controls label,
.deep-prompt {
  margin: 0;
}

.deep-controls span,
.deep-prompt span {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.deep-controls select,
.deep-prompt textarea {
  width: 100%;
  border: 1px solid #d5dfec;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.deep-controls select {
  min-height: 44px;
  padding: 0 12px;
}

.deep-prompt {
  display: block;
  margin-top: 14px;
}

.deep-prompt textarea {
  padding: 14px;
  resize: vertical;
}

.quick-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-examples button {
  min-height: 36px;
  border: 1px solid #d5dfec;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.quick-examples button:hover {
  border-color: #1769e0;
  background: #eef6ff;
  color: #1769e0;
}

.deep-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.deep-submit-row p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.deep-submit-row button {
  min-width: 150px;
  min-height: 44px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  box-shadow: none;
}

.deep-submit-row button:hover {
  background: #000;
}

.template-section,
.data-source-section,
.architecture-section,
.mvp-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.source-grid article {
  min-height: 142px;
  padding: 20px;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: #111827;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.12);
}

.source-grid span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-grid strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 20px;
}

.source-grid p {
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.24;
}

.section-title-row > span {
  color: #667085;
  font-size: 13px;
  font-weight: 850;
}

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

.template-grid article,
.architecture-grid article,
.mvp-grid article {
  min-height: 136px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.05);
}

.template-grid b,
.architecture-grid span {
  display: block;
  color: #1769e0;
  font-size: 12px;
  font-weight: 900;
}

.template-grid strong,
.architecture-grid strong,
.mvp-grid strong {
  display: block;
  margin-top: 14px;
  color: #111827;
  font-size: 17px;
  line-height: 1.25;
}

.template-grid span,
.architecture-grid p,
.mvp-grid p {
  display: block;
  margin: 10px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

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

.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.legacy-section {
  display: none;
}

@media (max-width: 1100px) {
  .template-grid,
  .source-grid,
  .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .deep-head h1 {
    font-size: 36px;
  }

  .deep-controls,
  .source-grid,
  .template-grid,
  .architecture-grid,
  .mvp-grid {
    grid-template-columns: 1fr;
  }

  .deep-submit-row,
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Visual report result page */
.report-console {
  width: min(1180px, calc(100vw - 40px));
  margin: 38px auto 58px;
}

.report-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
}

.report-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #d5e1ef;
  border-radius: 999px;
  background: #f8fbff;
  color: #31506f;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.report-back span {
  font-size: 16px;
  line-height: 1;
}

.report-back:hover {
  border-color: #b9cce3;
  background: #eef5ff;
  color: #1769e0;
}

.report-console-head h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 42px;
}

.report-console-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

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

.inline-report-action {
  margin: 0;
}

.inline-report-action button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.report-actions .download {
  min-width: 104px;
  box-shadow: none;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.report-kpi-grid article,
.report-kpi-card,
.report-asset-card,
.report-templates-card,
.report-score-card {
  padding: 20px;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
}

.report-kpi-grid span,
.report-kpi-card span,
.report-asset-card span,
.report-templates-card span,
.report-score-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-kpi-grid strong,
.report-kpi-card strong {
  display: block;
  margin-top: 12px;
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.report-kpi-grid small,
.report-kpi-card small {
  display: block;
  margin-top: 8px;
  color: #98a2b3;
  font-size: 12px;
}

.report-kpi-card {
  display: block;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.report-kpi-card:hover {
  border-color: #93b7ff;
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.12);
}

.report-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.report-asset-card strong,
.report-templates-card strong,
.report-score-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 20px;
}

.report-asset-card img {
  width: 100%;
  max-height: 260px;
  margin-top: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  object-fit: contain;
  background: #f8fbff;
}

.report-asset-card p {
  color: #667085;
  line-height: 1.65;
}

.report-card-note {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.report-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.report-nav-grid a {
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid #d5dfec;
  border-radius: 12px;
  background: #f8fbff;
  color: #344054;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.report-nav-grid a:hover {
  border-color: #93b7ff;
  background: #eef5ff;
  transform: translateY(-1px);
}

.report-nav-grid strong {
  margin: 0;
  color: #152033;
  font-size: 14px;
}

.report-nav-grid span {
  margin-top: 5px;
  color: #667085;
  text-transform: none;
  font-size: 12px;
  line-height: 1.35;
}

.template-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.template-status-list button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #d5dfec;
  border-radius: 999px;
  background: #f8fbff;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  box-shadow: none;
}

.template-status-list button:hover,
.template-status-list button.active {
  border-color: #93b7ff;
  background: #eef5ff;
  color: #1d4ed8;
}

.template-switch-panel {
  margin-top: 14px;
}

.template-switch-panel article {
  display: none;
  padding: 13px 14px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fbfdff;
}

.template-switch-panel article.active {
  display: block;
}

.template-switch-panel strong {
  margin: 0 0 6px;
  font-size: 15px;
}

.template-switch-panel p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.score-bars.compact {
  margin-top: 16px;
  gap: 10px;
}

.score-evidence-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 34px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #eef2f7;
}

.score-row:hover b {
  color: #2563eb;
}

.score-row span {
  display: block;
  text-transform: none;
}

.score-row b {
  display: block;
  color: #152033;
  font-size: 13px;
}

.score-row em {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.score-row i {
  height: 8px;
  border-radius: 999px;
  background: #e6eef8;
  overflow: hidden;
}

.score-row u {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.score-row > strong {
  margin: 0;
  color: #111827;
  font-size: 15px;
  text-align: right;
}

.modern-preview {
  margin-top: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
}

.modern-preview .report-document {
  max-height: none;
}

.visual-report-frame {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #f4f7fb;
}

.report-document table,
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 14px;
}

.report-document th,
.report-document td,
.report-table th,
.report-table td {
  border: 1px solid #dce5f0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.report-document th,
.report-table th {
  background: #f4f7fb;
  color: #111827;
}

.report-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: #667085;
  font-size: 13px;
}

.report-bottom-row a {
  color: #1769e0;
  font-weight: 850;
  text-decoration: none;
}

.report-list-panel {
  margin-top: 16px;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
}

.report-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.report-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e1e9f3;
  border-radius: 12px;
  background: #fbfdff;
}

.report-list-row.active {
  border-color: #93b7ff;
  background: #f2f7ff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

.report-list-row strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.report-list-row span,
.report-list-row p {
  display: block;
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.report-list-row nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-list-row nav a,
.report-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #c9d8ee;
  border-radius: 8px;
  background: #fff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.report-list-row nav a:hover,
.report-open-link:hover {
  border-color: #93b7ff;
  background: #eef5ff;
}

.report-open-link.muted {
  color: #667085;
  background: #f5f7fb;
}

@media (max-width: 1040px) {
  .report-console-head,
  .report-bottom-row {
    flex-direction: column;
  }

  .report-kpi-grid,
  .report-main-grid {
    grid-template-columns: 1fr;
  }

  .report-list-row {
    grid-template-columns: 1fr;
  }

  .report-list-row nav {
    justify-content: flex-start;
  }
}

.simple-report-cards {
  margin-top: 24px;
}

.upload-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #eef6ff;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 700;
}

.report-result {
  max-width: 1120px;
  margin: 28px auto;
  background: #ffffff;
  color: #111827;
}

.report-result .eyebrow {
  color: #2563eb;
}

.report-preview {
  margin-top: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.report-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  color: #334155;
}

.report-preview-head span {
  font-weight: 800;
  color: #111827;
}

.report-preview-head strong {
  font-size: 13px;
  color: #2563eb;
}

.report-document {
  padding: 22px;
  color: #111827;
  line-height: 1.75;
}

.report-document h2 {
  margin: 8px 0 16px;
  font-size: 24px;
  line-height: 1.35;
  color: #0f172a;
}

.report-document h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  color: #1d4ed8;
}

.report-document p {
  margin: 8px 0;
  color: #334155;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
  background: #ffffff;
}

.report-table th,
.report-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.report-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
}

.report-step {
  padding-left: 12px;
  border-left: 3px solid #93c5fd;
}

.report-document hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}

/* Rich visual report result */
.visual-result-hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
}

.visual-result-copy h2 {
  margin: 8px 0 12px;
  color: #111827;
  font-size: 30px;
  line-height: 1.2;
}

.visual-result-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #667085;
  line-height: 1.75;
}

.visual-verdict-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #f4f8ff;
}

.visual-verdict-row strong {
  color: #1769e0;
  font-size: 28px;
}

.visual-verdict-row span {
  color: #111827;
  font-weight: 900;
}

.visual-verdict-row em {
  color: #667085;
  font-style: normal;
}

.visual-result-media img,
.visual-empty-media {
  width: 100%;
  height: 260px;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  object-fit: contain;
  background: #f8fbff;
}

.visual-empty-media {
  display: grid;
  place-items: center;
  color: #98a2b3;
}

.visual-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.visual-chart-grid article,
.visual-sample-section,
.visual-roadmap article {
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.06);
}

.visual-chart-grid article {
  min-height: 210px;
  padding: 20px;
}

.visual-chart-grid span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-chart-grid strong {
  display: block;
  margin-top: 10px;
  color: #111827;
  font-size: 20px;
  line-height: 1.3;
}

.visual-chart-grid p {
  color: #667085;
  line-height: 1.6;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 82px;
  margin-top: 18px;
}

.mini-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #2f67ff, #9db7ff);
}

.horizontal-bars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.horizontal-bars b {
  position: relative;
  overflow: hidden;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef3f8;
  color: #111827;
  font-size: 13px;
}

.horizontal-bars b::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: rgba(47, 103, 255, .16);
}

.radar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.radar-list em {
  padding: 9px 11px;
  border-radius: 999px;
  background: #f4f8ff;
  color: #1769e0;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.visual-sample-section {
  margin-top: 16px;
  overflow: hidden;
}

.sample-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.sample-product-card {
  min-height: 128px;
  padding: 14px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  background: #fbfdff;
}

.sample-product-card span {
  color: #1769e0;
  font-size: 12px;
  font-weight: 900;
}

.sample-product-card span a {
  color: #1769e0;
  text-decoration: none;
}

.sample-product-card span a:hover {
  text-decoration: underline;
}

.sample-product-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.sample-product-card p {
  margin: 10px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.sample-stat-strip,
.sample-season-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 0;
}

.sample-season-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sample-stat-strip article,
.sample-season-panel article {
  padding: 12px 13px;
  border: 1px solid #e1e9f3;
  border-radius: 10px;
  background: #fbfdff;
}

.sample-stat-strip span,
.sample-season-panel span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.sample-stat-strip strong,
.sample-season-panel strong {
  display: inline-block;
  margin-top: 6px;
  color: #111827;
  font-size: 20px;
  line-height: 1.1;
}

.sample-stat-strip small,
.sample-season-panel p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.sample-product-table-wrap {
  max-height: 620px;
  margin: 16px;
  overflow: auto;
  border: 1px solid #e1e9f3;
  border-radius: 12px;
}

.sample-product-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.sample-product-table th,
.sample-product-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6ebf2;
  text-align: left;
  vertical-align: top;
}

.sample-product-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fb;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.sample-product-table a {
  color: #1769e0;
  font-weight: 900;
  text-decoration: none;
}

.sample-product-table a:hover {
  text-decoration: underline;
}

.sample-product-table strong {
  display: block;
  max-width: 420px;
  color: #111827;
  line-height: 1.38;
}

.sample-product-table small {
  display: block;
  margin-top: 6px;
  color: #667085;
  line-height: 1.35;
}

.called-tables-section {
  margin-top: 16px;
  overflow: hidden;
}

.called-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 0;
}

.called-table-toolbar p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.called-table-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 0;
}

.called-table-chip {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d5dfec;
  border-radius: 12px;
  background: #fbfdff;
  color: #344054;
  box-shadow: none;
  text-align: left;
}

.called-table-chip:hover,
.called-table-chip.active {
  border-color: #93b7ff;
  background: #eef5ff;
}

.called-table-chip strong,
.called-table-chip span,
.called-table-chip em {
  display: block;
}

.called-table-chip strong {
  margin: 0;
  color: #152033;
  font-size: 13px;
  line-height: 1.35;
}

.called-table-chip span {
  margin-top: 5px;
  color: #1769e0;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.called-table-chip em {
  margin-top: 5px;
  color: #667085;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.called-table-viewer {
  padding: 16px 18px 18px;
}

.called-table-placeholder,
.called-table-empty {
  padding: 18px;
  border: 1px dashed #d5dfec;
  border-radius: 12px;
  background: #fbfdff;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.called-table-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.called-table-meta strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.called-table-meta span {
  display: inline-block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.called-table-meta b {
  margin-left: 12px;
  color: #111827;
  font-size: 18px;
}

.called-table-meta b:first-child {
  margin-left: 0;
}

.called-table-wrap {
  max-height: 720px;
  overflow: auto;
  border: 1px solid #e1e9f3;
  border-radius: 12px;
}

.called-data-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.called-data-table th,
.called-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6ebf2;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.called-data-table td {
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 120px;
}

.called-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fb;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.called-table-index {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 52px !important;
  background: #f8fbff;
}

.visual-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.visual-roadmap article {
  min-height: 150px;
  padding: 18px;
}

.visual-roadmap b {
  color: #1769e0;
  font-size: 12px;
}

.visual-roadmap strong {
  display: block;
  margin-top: 14px;
  color: #111827;
  font-size: 18px;
}

.visual-roadmap p {
  color: #667085;
  line-height: 1.55;
}

@media (max-width: 1040px) {
  .visual-result-hero,
  .visual-chart-grid,
  .sample-product-grid,
  .sample-stat-strip,
  .sample-season-panel,
  .visual-roadmap {
    grid-template-columns: 1fr;
  }

  .called-table-toolbar,
  .called-table-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* DeepSeek-style AI workbench home */
body:has(.ai-workbench) {
  margin: 0;
  background: #ffffff;
  color: #111827;
  overflow: hidden;
}

.ai-app-shell {
  width: 100%;
  min-height: 100vh;
}

.ai-workbench {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
  background: #fbfcff;
}

.ai-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid #e6ebf2;
  background: #f4f7fb;
  color: #1f2937;
}

.ai-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 12px;
}

.ai-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f4c81;
  text-decoration: none;
}

.ai-brand-mark,
.ai-start-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #0f4c81;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
}

.ai-brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.ai-icon-button,
.ai-user button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
}

.ai-new-chat {
  margin: 10px 16px 18px;
  min-height: 40px;
  border: 1px solid #c9d8ea;
  border-radius: 8px;
  background: #ffffff;
  color: #0f4c81;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ai-page-nav {
  display: grid;
  gap: 4px;
  padding: 0 12px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}

.ai-page-nav a,
.ai-history a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-page-nav a {
  padding: 10px 12px;
  font-weight: 720;
}

.ai-page-nav a.active,
.ai-page-nav a:hover,
.ai-history a:hover {
  background: #e8f1fb;
  color: #0f4c81;
}

.ai-history {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: #d7dce5 transparent;
}

.ai-history p {
  margin: 16px 8px 8px;
  color: #9aa3b2;
  font-size: 12px;
  font-weight: 850;
}

.ai-history a {
  padding: 9px 10px;
}

.ai-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 16px;
  border-top: 1px solid #e6ebf2;
  background: #f4f7fb;
}

.ai-user span {
  color: #344054;
  font-size: 14px;
  font-weight: 760;
}

.ai-main {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  padding: 128px 32px 56px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 52%, #f6f9fd 100%);
}

.ai-center-composer {
  width: min(840px, calc(100vw - 360px));
  margin: 0 auto;
}

.ai-main-kicker {
  margin-bottom: 12px;
  color: #667085;
  font-size: 13px;
  font-weight: 820;
  text-align: center;
}

.ai-start-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ai-start-title h1 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
}

.ai-start-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.ai-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  width: fit-content;
  margin: 0 auto 22px;
  padding: 4px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #f7f9fc;
}

.ai-mode-toggle button {
  min-width: 124px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.ai-mode-toggle button.active {
  background: #ffffff;
  color: #0f4c81;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.ai-input-card {
  border: 1px solid #d9e3ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.ai-input-card textarea {
  width: 100%;
  min-height: 104px;
  padding: 22px 22px 10px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
}

.ai-input-card textarea::placeholder {
  color: #a8b0bf;
}

.ai-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 14px;
}

.ai-left-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ai-file-pill,
.ai-left-actions select,
.ai-quick-examples button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #d6e0ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 760;
}

.ai-file-pill {
  padding: 0 13px;
  cursor: pointer;
}

.ai-file-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ai-left-actions select {
  padding: 0 30px 0 12px;
  outline: none;
  cursor: pointer;
}

.ai-send-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: #0f4c81;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ai-send-button:hover {
  background: #1769a8;
}

.ai-send-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ai-quick-examples {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ai-quick-examples button {
  padding: 0 14px;
  cursor: pointer;
}

.ai-quick-examples button:hover,
.ai-file-pill:hover {
  border-color: #a9c4df;
  background: #edf5fb;
  color: #0f4c81;
}

.ai-upload-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #98a2b3;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  body:has(.ai-workbench) {
    overflow: auto;
  }

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

  .ai-sidebar {
    height: auto;
    max-height: 320px;
  }

  .ai-main {
    min-height: calc(100vh - 320px);
    padding: 36px 16px;
  }

  .ai-center-composer {
    width: 100%;
    margin-top: 0;
  }
}

/* Dashboard-style home refresh */
body:has(.dashboard-shell) {
  background: #eef3f1;
}

.ai-workbench:has(.dashboard-shell) {
  grid-template-columns: 292px minmax(0, 1fr);
  background: #eef3f1;
}

.ai-workbench:has(.dashboard-shell) .ai-sidebar {
  border-right: 0;
  background: #123c34;
  color: #dbe7e3;
}

.ai-workbench:has(.dashboard-shell) .ai-brand {
  color: #ffffff;
}

.ai-workbench:has(.dashboard-shell) .ai-brand-mark {
  background: #d8f36a;
  color: #123c34;
}

.ai-workbench:has(.dashboard-shell) .ai-icon-button,
.ai-workbench:has(.dashboard-shell) .ai-user button {
  color: #dbe7e3;
}

.ai-workbench:has(.dashboard-shell) .ai-new-chat {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #ffffff;
  box-shadow: none;
}

.ai-workbench:has(.dashboard-shell) .ai-page-nav a,
.ai-workbench:has(.dashboard-shell) .ai-history a {
  color: #dbe7e3;
}

.ai-workbench:has(.dashboard-shell) .ai-page-nav a.active,
.ai-workbench:has(.dashboard-shell) .ai-page-nav a:hover,
.ai-workbench:has(.dashboard-shell) .ai-history a:hover {
  background: rgba(216, 243, 106, .14);
  color: #ffffff;
}

.ai-workbench:has(.dashboard-shell) .ai-history p {
  color: #8fa9a0;
}

.ai-workbench:has(.dashboard-shell) .ai-user {
  border-top-color: rgba(255,255,255,.12);
  background: #123c34;
}

.ai-workbench:has(.dashboard-shell) .ai-user span {
  color: #ffffff;
}

.ai-workbench:has(.dashboard-shell) .ai-main {
  align-items: stretch;
  justify-content: stretch;
  min-height: 100vh;
  padding: 26px;
  background: #eef3f1;
  overflow-y: auto;
}

.dashboard-shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

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

.dashboard-topbar h1 {
  margin: 2px 0 8px;
  color: #14211e;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}

.dashboard-topbar span {
  color: #667085;
  font-size: 15px;
}

.dashboard-report-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #123c34;
  color: #ffffff;
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-metrics article,
.ai-workbench:has(.dashboard-shell) .ai-center-composer,
.dashboard-side section {
  border: 1px solid #dce6e2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(18, 60, 52, .06);
}

.dashboard-metrics article {
  min-height: 112px;
  padding: 20px;
}

.dashboard-metrics span,
.composer-header p,
.side-head span {
  display: block;
  color: #718179;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-metrics strong {
  display: block;
  margin-top: 12px;
  color: #14211e;
  font-size: 28px;
  line-height: 1;
}

.dashboard-metrics small {
  display: block;
  margin-top: 10px;
  color: #667085;
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.ai-workbench:has(.dashboard-shell) .ai-center-composer {
  width: 100%;
  margin: 0;
  padding: 22px;
}

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

.composer-header h2 {
  margin: 6px 0 0;
  color: #14211e;
  font-size: 24px;
  line-height: 1.25;
}

.upload-zone {
  display: grid;
  gap: 8px;
  min-height: 158px;
  margin-bottom: 14px;
  padding: 24px;
  border: 1px dashed #a8bab3;
  border-radius: 12px;
  background: #f7faf8;
  cursor: pointer;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #d8f36a;
  color: #123c34;
  font-size: 12px;
  font-weight: 900;
}

.upload-zone strong {
  color: #14211e;
  font-size: 24px;
  line-height: 1.25;
}

.upload-zone small {
  color: #667085;
  font-size: 13px;
}

.ai-workbench:has(.dashboard-shell) .ai-center-composer textarea {
  width: 100%;
  min-height: 118px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #dce6e2;
  border-radius: 10px;
  outline: none;
  resize: vertical;
  background: #ffffff;
  color: #14211e;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
}

.composer-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.composer-controls label {
  display: grid;
  gap: 7px;
}

.composer-controls label span {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.composer-controls select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce6e2;
  border-radius: 8px;
  background: #ffffff;
  color: #14211e;
  font: inherit;
}

.generate-button {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #123c34;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.generate-button:hover,
.dashboard-report-link:hover {
  background: #1b5549;
}

.dashboard-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.dashboard-side section {
  padding: 20px;
}

.side-head strong {
  display: block;
  margin-top: 8px;
  color: #14211e;
  font-size: 18px;
}

.template-steps {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.template-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f8f6;
}

.template-steps b {
  color: #123c34;
  font-size: 12px;
}

.template-steps span {
  color: #344054;
  font-size: 14px;
  font-weight: 760;
}

.pipeline-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pipeline-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f0;
}

.pipeline-list b {
  color: #14211e;
}

.pipeline-list em {
  color: #0f7b5d;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .dashboard-grid,
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .composer-controls {
    grid-template-columns: 1fr;
  }
}

/* Minimal DeepSeek-inspired report home */
body:has(.minimal-home),
body.minimal-page {
  background: #ffffff;
  overflow: hidden;
}

.ai-workbench:has(.minimal-home),
.ai-workbench.minimal-layout {
  grid-template-columns: 268px minmax(0, 1fr);
  background: #ffffff;
}

.ai-workbench:has(.minimal-home) .ai-sidebar,
.ai-workbench.minimal-layout .ai-sidebar {
  border-right: 1px solid #edf0f4;
  background: #f7f8fb;
  color: #1f2937;
}

.ai-workbench:has(.minimal-home) .ai-brand,
.ai-workbench.minimal-layout .ai-brand {
  color: #2f67ff;
}

.ai-workbench:has(.minimal-home) .ai-brand-mark,
.ai-workbench.minimal-layout .ai-brand-mark {
  background: #2f67ff;
  color: #ffffff;
}

.ai-workbench:has(.minimal-home) .ai-icon-button,
.ai-workbench:has(.minimal-home) .ai-user button,
.ai-workbench.minimal-layout .ai-icon-button,
.ai-workbench.minimal-layout .ai-user button {
  color: #8a94a6;
}

.ai-workbench:has(.minimal-home) .ai-new-chat,
.ai-workbench.minimal-layout .ai-new-chat {
  border-color: #e6ebf4;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.ai-workbench:has(.minimal-home) .ai-page-nav a,
.ai-workbench:has(.minimal-home) .ai-history a,
.ai-workbench.minimal-layout .ai-page-nav a,
.ai-workbench.minimal-layout .ai-history a {
  color: #1f2937;
}

.ai-workbench:has(.minimal-home) .ai-page-nav a.active,
.ai-workbench:has(.minimal-home) .ai-page-nav a:hover,
.ai-workbench:has(.minimal-home) .ai-history a:hover,
.ai-workbench.minimal-layout .ai-page-nav a.active,
.ai-workbench.minimal-layout .ai-page-nav a:hover,
.ai-workbench.minimal-layout .ai-history a:hover {
  background: #edf4ff;
  color: #2f67ff;
}

.ai-workbench:has(.minimal-home) .ai-history p,
.ai-workbench.minimal-layout .ai-history p {
  color: #9aa3b2;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  border-radius: 8px;
}

.history-row:hover {
  background: #edf4ff;
}

.history-row > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-actions {
  display: none;
  align-items: center;
  gap: 2px;
  padding-right: 4px;
}

.history-row:hover .history-actions {
  display: inline-flex;
}

.history-actions form {
  margin: 0;
}

.history-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a94a6;
  font-size: 15px;
  cursor: pointer;
}

.history-actions .history-rename {
  font-size: 13px;
}

.history-actions button:hover {
  background: #dfeaff;
  color: #2f67ff;
}

.assistant-loading {
  display: grid;
  gap: 10px;
}

.data-source-roller {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e8f5;
  border-radius: 999px;
  background: #f8fbff;
  color: #64748b;
  font-size: 12px;
}

.data-source-roller strong {
  color: #2563eb;
  font-size: 12px;
}

.data-source-roller small {
  color: #94a3b8;
}

.assistant-wait-tip {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.assistant-complete-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid #d7f5e4;
  border-radius: 999px;
  background: #f4fff8;
  color: #3f7b59;
  font-size: 13px;
  line-height: 1.2;
}

.assistant-complete-time span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.assistant-complete-time strong {
  color: #166534;
  font-size: 13px;
}

.typing-cursor {
  display: inline-block;
  width: 6px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -2px;
  border-radius: 4px;
  background: #2563eb;
  animation: cursorPulse .8s infinite;
}

@keyframes cursorPulse {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.ai-workbench:has(.minimal-home) .ai-user,
.ai-workbench.minimal-layout .ai-user {
  border-top: 1px solid #edf0f4;
  background: #f7f8fb;
}

.ai-workbench:has(.minimal-home) .ai-user span,
.ai-workbench.minimal-layout .ai-user span {
  color: #344054;
}

.ai-workbench:has(.minimal-home) .ai-main,
.ai-workbench.minimal-layout .ai-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 42px 28px;
  background: #ffffff;
  /* 竖向可滚动; 横向裁掉装饰性光晕(.minimal-home::before/::after 用 right:-372/-530px 外溢)
     否则桌面会出现整页横向滚动条 */
  overflow-x: hidden;
  overflow-y: auto;
}

.minimal-home {
  width: min(760px, calc(100vw - 340px));
  margin-top: 80px;
}

.minimal-home.chat-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(960px, calc(100vw - 340px));
  height: calc(100vh - 72px);
  margin-top: 0;
}

.minimal-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 8px 28px;
}

.chat-message {
  max-width: 760px;
  color: #111827;
  font-size: 14px;
  line-height: 1.7;
}

.chat-message.user {
  align-self: flex-end;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.chat-message.assistant {
  align-self: flex-start;
  width: min(760px, 100%);
  padding: 18px 20px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #ffffff;
}

.user-bubble {
  max-width: 640px;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #edf4ff;
  color: #1f2937;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  padding: 8px 11px;
  border: 1px solid #dce7ff;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 12px;
}

.file-chip span {
  color: #2f67ff;
  font-weight: 850;
}

.file-chip strong {
  overflow: hidden;
  color: #1f2937;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #2f67ff;
}

.assistant-meta strong {
  color: #344054;
  font-size: 14px;
}

.assistant-meta small {
  color: #98a2b3;
}

.assistant-meta.done span,
.assistant-meta.error span,
.thinking-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.thinking-dot {
  border: 2px solid #c8d8ff;
  border-top-color: #2f67ff;
  animation: thinking-spin .9s linear infinite;
}

.assistant-meta.done span {
  background: #ecfdf3;
  color: #039855;
}

.assistant-meta.error span {
  background: #fff1f3;
  color: #d92d20;
}

.analysis-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-steps li {
  position: relative;
  padding-left: 22px;
  color: #667085;
}

.analysis-steps li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d5dd;
}

.analysis-steps li.active {
  color: #1f2937;
  font-weight: 760;
}

.analysis-steps li.active::before {
  background: #2f67ff;
  box-shadow: 0 0 0 4px #edf4ff;
}

.analysis-steps li.done {
  color: #039855;
}

.analysis-steps li.done::before {
  background: #12b76a;
}

.assistant-note {
  margin: 0;
  color: #344054;
  line-height: 1.85;
}

.assistant-note strong {
  color: #0f172a;
  font-weight: 850;
}

.assistant-note br + br {
  display: block;
  content: "";
  margin-top: 8px;
}

.reply-emphasis {
  display: block;
  margin: 10px 0 6px;
  padding: 9px 12px;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  background: #f3f7ff;
  color: #0f172a;
  font-weight: 900;
}

.reply-bullet {
  display: block;
  position: relative;
  margin: 5px 0;
  padding-left: 16px;
}

.reply-bullet::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8aa7ff;
}

@keyframes thinking-spin {
  to {
    transform: rotate(360deg);
  }
}

.minimal-composer {
  width: 100%;
}

.minimal-composer.is-chatting {
  align-self: end;
}

.minimal-composer.is-chatting .minimal-input-card {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.09);
}

.minimal-composer.is-chatting .minimal-input-card textarea {
  min-height: 54px;
}

.minimal-composer.is-chatting .minimal-status {
  margin-top: 8px;
}

.minimal-title {
  text-align: center;
}

.minimal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #2f67ff;
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.minimal-title h1 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: 0;
}

.minimal-title p {
  max-width: 560px;
  margin: 10px auto 28px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.minimal-mode {
  display: flex;
  width: fit-content;
  margin: 24px auto 28px;
  padding: 3px;
  border: 1px solid #dfe7f5;
  border-radius: 999px;
  background: #ffffff;
}

.minimal-mode button {
  min-width: 116px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}

.minimal-mode button.active {
  background: #edf4ff;
  color: #2f67ff;
  box-shadow: inset 0 0 0 1px #c8d8ff;
}

.minimal-input-card {
  border: 1px solid #e1e7f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.08);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.minimal-input-card.is-dragging {
  border-color: #2f67ff;
  background: #f7faff;
  box-shadow: 0 24px 64px rgba(47, 103, 255, 0.16);
}

.minimal-input-card.has-file {
  border-color: #a9c4ff;
}

.minimal-input-card textarea {
  width: 100%;
  min-height: 104px;
  padding: 20px 20px 8px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
}

.minimal-input-card textarea::placeholder {
  color: #a8b0bf;
}

.minimal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 11px 14px 14px;
  border-top: 1px solid #edf2f7;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .58) 0%, rgba(255, 255, 255, .96) 100%);
}

.minimal-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.minimal-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 12px;
}

.minimal-tool,
.minimal-left select,
.minimal-examples button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #39475c;
  font-size: 13px;
  font-weight: 780;
}

.minimal-tool {
  gap: 6px;
  padding: 0 13px;
  cursor: pointer;
}

.minimal-tool.active {
  border-color: #bcd0ff;
  background: #f0f5ff;
  color: #2f67ff;
}

.minimal-tool:first-child::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
}

.minimal-tool.active::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) center / 1.5px 10px no-repeat;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.minimal-market {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 6px 0 13px;
  border: 1px solid #d8e3ff;
  border-radius: 999px;
  background: #f8fbff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.minimal-market span {
  margin-right: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
}

.minimal-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f0f3f8;
  color: #4b5565;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.minimal-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.minimal-upload .upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.minimal-upload small {
  position: absolute;
  right: 0;
  bottom: 42px;
  display: none;
  max-width: 260px;
  padding: 7px 9px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
}

.minimal-input-card.has-file .minimal-upload {
  background: #e8f0ff;
  color: #2f67ff;
}

.minimal-upload:hover small {
  display: block;
}

.minimal-left select {
  width: 96px;
  height: 30px;
  padding: 0 22px 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  outline: none;
}

.minimal-left select[name="platforms"] {
  width: 188px;
}

.minimal-send {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #9fb7ff;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(47, 103, 255, .18);
}

.minimal-send:hover {
  background: #2f67ff;
}

.minimal-send:disabled {
  opacity: .72;
  cursor: wait;
}

.minimal-examples {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.minimal-examples button {
  padding: 0 14px;
  cursor: pointer;
}

.minimal-examples button:hover,
.minimal-upload:hover {
  border-color: #b9c9ff;
  background: #eef3ff;
}

.minimal-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #98a2b3;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  body:has(.minimal-home) {
    overflow: auto;
  }

  .ai-workbench:has(.minimal-home),
  .ai-workbench.minimal-layout {
    grid-template-columns: 1fr;
  }

  .minimal-home {
    width: 100%;
    margin-top: 0;
  }

  .minimal-home.chat-active {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 360px);
  }
}

/* Chrome fallback without :has(); keep this after all home variants */
.ai-workbench.minimal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  background: #ffffff;
}

.ai-workbench.minimal-layout .ai-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid #edf0f4;
  background: #f7f8fb;
  color: #1f2937;
}

.ai-workbench.minimal-layout .ai-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  padding: 36px 28px;
  /* 横向裁掉装饰性光晕外溢, 消除桌面整页横向滚动条; 竖向仍可滚 */
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
}

.ai-workbench.minimal-layout .minimal-home {
  width: min(720px, calc(100vw - 320px));
  margin: 0 auto;
  transform: translateY(24px);
}

.ai-workbench.minimal-layout .minimal-input-card {
  border: 1px solid #e1e7f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.08);
}

.ai-workbench.minimal-layout .ai-brand {
  color: #2f67ff;
}

.ai-workbench.minimal-layout .ai-brand-mark,
.ai-workbench.minimal-layout .minimal-logo {
  background: #2f67ff;
  color: #ffffff;
}

.ai-workbench.minimal-layout .ai-page-nav a,
.ai-workbench.minimal-layout .ai-history a {
  color: #1f2937;
}

.ai-workbench.minimal-layout .ai-page-nav a.active,
.ai-workbench.minimal-layout .ai-page-nav a:hover,
.ai-workbench.minimal-layout .ai-history a:hover {
  background: #edf4ff;
  color: #2f67ff;
}

.ai-workbench.minimal-layout .ai-user {
  border-top: 1px solid #edf0f4;
  background: #f7f8fb;
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout {
    grid-template-columns: 1fr;
  }

  .ai-workbench.minimal-layout .ai-sidebar {
    height: auto;
    max-height: 320px;
  }

  .ai-workbench.minimal-layout .ai-main {
    min-height: calc(100vh - 320px);
    padding: 36px 16px;
  }

  .ai-workbench.minimal-layout .minimal-home {
    width: 100%;
    margin: 0;
    transform: none;
  }

  .ai-workbench.minimal-layout .minimal-home.chat-active {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 360px);
  }
}

.ai-workbench.minimal-layout .ai-side-top {
  padding: 16px 14px 12px;
}

.ai-workbench.minimal-layout .ai-brand strong {
  font-size: 18px;
}

.ai-workbench.minimal-layout .ai-new-chat {
  margin: 10px 14px 16px;
  min-height: 38px;
}

.ai-workbench.minimal-layout .ai-page-nav {
  padding: 0 10px 10px;
}

.ai-workbench.minimal-layout .ai-page-nav a {
  padding: 10px 12px;
}

.ai-workbench.minimal-layout .ai-history {
  padding: 0 10px 18px;
}

.ai-workbench.minimal-layout .minimal-title h1 {
  font-size: 28px;
}

.ai-workbench.minimal-layout .minimal-title p {
  margin-bottom: 28px;
}

.ai-workbench.minimal-layout .minimal-input-card {
  min-height: 178px;
}

.ai-workbench.minimal-layout .minimal-input-card textarea {
  min-height: 94px;
  padding: 20px 20px 6px;
}

.ai-workbench.minimal-layout .minimal-actions {
  align-items: center;
  padding: 0 12px 12px;
}

.ai-workbench.minimal-layout .minimal-left {
  gap: 8px;
}

.ai-workbench.minimal-layout .minimal-left select {
  height: 34px;
  min-width: 94px;
  border-radius: 999px;
}

.ai-workbench.minimal-layout .minimal-upload {
  min-width: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.ai-workbench.minimal-layout .minimal-left select {
  width: 118px;
}

.ai-workbench.minimal-layout .minimal-send {
  width: 34px;
  height: 34px;
}

/* Figma-inspired home refresh */
body.minimal-page,
body:has(.minimal-home) {
  background:
    radial-gradient(circle at 50% 12%, rgba(47, 103, 255, .055), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f7f9fc 100%);
}

.ai-workbench.minimal-layout .ai-main,
.ai-workbench:has(.minimal-home) .ai-main {
  background: transparent;
}

.minimal-home {
  width: min(780px, calc(100vw - 40px));
}

.minimal-title {
  margin-bottom: 30px;
}

.minimal-logo {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #3c73ff 0%, #2e5fe8 100%);
  box-shadow: 0 14px 28px rgba(47, 103, 255, .22);
  font-size: 16px;
}

.minimal-title h1 {
  color: #0f172a;
  font-size: 31px;
  font-weight: 860;
  letter-spacing: 0;
}

.minimal-title p {
  margin-top: 10px;
  color: #64748b;
  font-size: 14px;
}

.minimal-input-card {
  overflow: visible;
  border: 1px solid #dbe4ef;
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow:
    0 32px 80px rgba(15, 23, 42, .10),
    0 1px 0 rgba(255, 255, 255, .95) inset;
}

.minimal-input-card textarea {
  min-height: 106px;
  padding: 22px 22px 10px;
  color: #111827;
  font-size: 15px;
}

.minimal-input-card textarea::placeholder {
  color: #a5afbf;
}

.minimal-actions,
.ai-workbench.minimal-layout .minimal-actions {
  min-height: 58px;
  padding: 0 12px 12px 14px;
}

.minimal-left {
  gap: 9px;
}

.minimal-tool,
.minimal-left select {
  height: 36px;
  border-color: #e1e8f2;
  background: #fff;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.minimal-tool {
  padding: 0 14px;
}

.minimal-tool.active {
  border-color: #c8d7ff;
  background: #f3f7ff;
  color: #2f67ff;
}

.minimal-left select,
.ai-workbench.minimal-layout .minimal-left select {
  width: 96px;
  height: 30px;
  color: #2f67ff;
  border-color: transparent;
  background-color: transparent;
  font-weight: 820;
}

.minimal-right {
  gap: 9px;
}

.minimal-upload,
.ai-workbench.minimal-layout .minimal-upload {
  width: 38px;
  height: 38px;
  min-width: 0;
  background: #f3f6fa;
  color: #475569;
}

.minimal-upload .upload-icon::before {
  content: none;
}

.minimal-upload .upload-icon::after {
  content: none;
}

.minimal-upload .upload-icon {
  position: relative;
  background: none;
}

.minimal-upload .upload-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.minimal-upload:hover {
  background: #eaf1ff;
  color: #2f67ff;
  transform: translateY(-1px);
}

.minimal-input-card.has-file .minimal-upload {
  background: #2f67ff;
  color: #fff;
}

.minimal-send,
.ai-workbench.minimal-layout .minimal-send {
  width: 38px;
  height: 38px;
  background: linear-gradient(180deg, #a9bdff 0%, #8ca8ff 100%);
  box-shadow: 0 14px 26px rgba(47, 103, 255, .24);
}

.minimal-send:hover {
  background: linear-gradient(180deg, #3d72ff 0%, #2f67ff 100%);
  transform: translateY(-1px);
}

.minimal-examples {
  gap: 9px;
  margin-top: 18px;
}

.minimal-examples button {
  height: 34px;
  padding: 0 15px;
  border-color: #d8e3ff;
  background: rgba(255, 255, 255, .82);
  color: #2f67ff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.minimal-examples button:hover {
  background: #f2f6ff;
}

.minimal-status {
  margin-top: 13px;
  color: #94a3b8;
}

.home-video-download {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid #dbe7f6;
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(37, 99, 235, .06);
  backdrop-filter: blur(10px);
}

.home-video-download-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-video-download-head div {
  display: grid;
  gap: 5px;
}

.home-video-download-head strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
}

.home-video-download-head span,
.home-video-download-status {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.home-video-download-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-video-download input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
}

.home-video-download input:focus {
  border-color: rgba(37, 99, 235, .62);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.home-video-download button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
}

.home-video-download button:hover {
  background: #1d4ed8;
}

.home-video-download button:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.home-video-download-status {
  margin: 0;
}

.home-video-download-status a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.home-video-download-status a:hover {
  text-decoration: underline;
}

.home-video-download-status.error {
  color: #dc2626;
}

.video-download-layout .ai-main {
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.video-download-main {
  width: min(760px, calc(100vw - 410px));
}

.video-download-panel {
  padding: 22px;
}

.video-download-progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf7;
}

.video-download-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: width .28s ease;
}

.video-download-progress-bar.is-running {
  background-size: 180% 100%;
  animation: videoDownloadProgress 1.2s linear infinite;
}

.video-download-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.video-download-progress-meta strong {
  color: #2563eb;
  font-size: 13px;
}

.video-download-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.video-download-helper div {
  display: grid;
  gap: 4px;
}

.video-download-helper strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

.video-download-helper span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.video-download-helper a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.video-download-helper a:hover {
  background: #1d4ed8;
}

.video-download-help {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 1.7;
}

.video-download-help summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 850;
}

.video-download-warning {
  margin: 10px 0 0;
  padding: 9px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 750;
}

.video-download-help ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.video-download-help code {
  color: #0f172a;
  font-size: 11px;
  word-break: break-all;
}

@keyframes videoDownloadProgress {
  from { background-position: 0 0; }
  to { background-position: 180% 0; }
}

@media (max-width: 640px) {
  .minimal-home {
    width: min(100% - 24px, 780px);
  }

  .minimal-title h1 {
    font-size: 26px;
  }

  .minimal-actions {
    align-items: flex-end;
  }

  .home-video-download-head,
  .home-video-download-row {
    align-items: stretch;
    flex-direction: column;
  }

  .home-video-download button {
    width: 100%;
  }

  .video-download-helper {
    align-items: stretch;
    flex-direction: column;
  }

  .video-download-main {
    width: min(100% - 24px, 780px);
  }

  .minimal-left {
    max-width: calc(100% - 90px);
  }

  .minimal-tool {
    padding: 0 11px;
  }
}

/* Final home composer based on the Figma export */
.ai-workbench.minimal-layout .minimal-home,
.minimal-home {
  width: min(760px, calc(100vw - 320px));
  transform: none;
}

.minimal-example-box {
  margin: 0 0 30px;
  padding: 14px 16px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #f8fafc;
  color: #8a95a6;
  font-size: 14px;
  line-height: 1.6;
}

.minimal-input-card,
.ai-workbench.minimal-layout .minimal-input-card {
  min-height: 0;
  overflow: visible;
  border: 2px solid rgba(47, 103, 255, .36);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(47, 103, 255, .08);
}

.minimal-input-card:focus-within {
  border-color: rgba(47, 103, 255, .68);
  box-shadow: 0 20px 54px rgba(47, 103, 255, .14);
}

.minimal-actions,
.ai-workbench.minimal-layout .minimal-actions {
  min-height: 64px;
  padding: 12px 14px;
  border-top: 0;
  border-radius: 16px;
  background: #fff;
  gap: 14px;
}

.minimal-left,
.ai-workbench.minimal-layout .minimal-left {
  flex: 0 0 126px;
  width: 126px;
  min-width: 126px;
  flex-wrap: nowrap;
  border-right: 1px solid #e5edf7;
}

.minimal-market {
  height: 40px;
  width: 118px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: none;
  flex: 0 0 auto;
  justify-content: center;
}

.minimal-market span {
  margin-right: 8px;
  color: #64748b;
}

.minimal-left select,
.ai-workbench.minimal-layout .minimal-left select {
  width: 108px;
  height: 36px;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 22px 0 8px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 820;
  line-height: 36px;
}

.minimal-left select[name="target_market"],
.ai-workbench.minimal-layout .minimal-left select[name="target_market"] {
  width: 108px;
  min-width: 108px;
}

.minimal-inline-input {
  flex: 1 1 auto;
  min-width: 120px;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  padding-left: 12px;
}

.minimal-inline-input::placeholder {
  color: #9aa4b2;
}

.minimal-right {
  gap: 8px;
  padding-left: 10px;
}

.minimal-upload,
.ai-workbench.minimal-layout .minimal-upload {
  width: 40px;
  height: 40px;
  background: transparent;
  color: #64748b;
}

.minimal-upload:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.minimal-send,
.ai-workbench.minimal-layout .minimal-send {
  width: 40px;
  height: 40px;
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 130, 246, .24);
}

.minimal-send:hover {
  background: #2563eb;
}

.minimal-send.is-stopping,
.ai-workbench.minimal-layout .minimal-send.is-stopping {
  background: #ef4444;
  box-shadow: 0 10px 24px rgba(239, 68, 68, .24);
}

.minimal-send.is-stopping:hover {
  background: #dc2626;
}

.minimal-send:disabled {
  background: #cbd5e1;
  box-shadow: none;
}

.minimal-file-preview {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

.minimal-file-preview[hidden] {
  display: none;
}

.minimal-file-preview-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
}

.minimal-file-preview span,
.minimal-file-preview-title span {
  color: #2563eb;
  font-weight: 820;
}

.minimal-file-list {
  display: flex;
  flex: 1 1 280px;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.minimal-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(100%, 320px);
  min-height: 26px;
  padding: 3px 6px 3px 9px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
}

.minimal-file-preview strong,
.minimal-file-chip strong {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minimal-file-chip strong {
  max-width: 230px;
}

.minimal-file-preview button,
.minimal-file-clear {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  cursor: pointer;
}

.minimal-file-clear {
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.minimal-composer.is-chatting .minimal-input-card,
.minimal-composer.is-chatting .minimal-input-card:focus-within {
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout .minimal-home,
  .minimal-home {
    width: min(100% - 24px, 760px);
  }

  .minimal-actions {
    gap: 8px;
  }

  .minimal-market span {
    display: none;
  }

  .minimal-left,
  .ai-workbench.minimal-layout .minimal-left,
  .minimal-market {
    flex-basis: 118px;
    width: 118px;
    min-width: 118px;
  }

  .minimal-left select,
  .ai-workbench.minimal-layout .minimal-left select {
    width: 104px;
  }

  .minimal-left select[name="target_market"],
  .ai-workbench.minimal-layout .minimal-left select[name="target_market"] {
    width: 104px;
    min-width: 104px;
  }
}

.workbench-module {
  width: min(100% - 48px, 1040px);
  margin: 72px auto;
}

.workbench-module > p {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.workbench-module h1 {
  margin: 0 0 24px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.2;
}

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

.workbench-grid article {
  min-height: 120px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.workbench-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 16px;
}

.workbench-grid p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .workbench-module {
    width: min(100% - 24px, 640px);
    margin: 36px auto;
  }

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

/* Wider reading surface for long K-table analysis */
.ai-workbench.minimal-layout .minimal-home.chat-active,
.minimal-home.chat-active {
  width: min(1180px, calc(100vw - 300px));
}

.ai-workbench.minimal-layout .minimal-chat-stream,
.minimal-chat-stream {
  padding-left: 12px;
  padding-right: 12px;
}

.ai-workbench.minimal-layout .chat-message,
.chat-message {
  max-width: 1040px;
  font-size: 16px;
  line-height: 1.85;
}

.ai-workbench.minimal-layout .chat-message.assistant,
.chat-message.assistant {
  width: min(1040px, 100%);
  padding: 24px 28px;
  border-color: #e4eaf3;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .05);
}

.ai-workbench.minimal-layout .assistant-note,
.assistant-note {
  font-size: 16px;
  line-height: 1.9;
}

.ai-workbench.minimal-layout .user-bubble,
.user-bubble {
  max-width: 780px;
  font-size: 15px;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(59, 130, 246, .10), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.auth-shell {
  width: min(100% - 32px, 430px);
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .10);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2563eb;
  font-weight: 900;
}

.auth-card h1 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 28px;
}

.auth-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.auth-card label {
  margin: 0;
}

.auth-card label span {
  color: #334155;
  font-size: 13px;
}

.auth-card input {
  height: 46px;
  border-color: #dbe4ef;
  border-radius: 10px;
  background: #fbfdff;
}

.auth-card button {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background: #2563eb;
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-switch {
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.auth-error {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c !important;
  font-size: 14px;
}

.auth-success {
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534 !important;
  font-size: 14px;
}

.reset-item {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.reset-item strong {
  color: #14532d;
}

.reset-item b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: #dcfce7;
  color: #14532d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
}

.ai-user > button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  box-shadow: none;
  font-size: 12px;
}

.ai-user > button:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.ai-user {
  position: relative;
}

.ai-user-menu {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 64px;
  z-index: 30;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(15, 23, 42, .16);
}

.ai-user-menu[hidden],
.phone-qr-panel[hidden] {
  display: none;
}

.user-menu-item {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #26364f;
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.ai-user .ai-user-menu .user-menu-item,
.ai-workbench.minimal-layout .ai-user .ai-user-menu .user-menu-item,
.ai-workbench:has(.minimal-home) .ai-user .ai-user-menu .user-menu-item {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  line-height: 1;
  white-space: nowrap;
}

.ai-user .ai-user-menu button.user-menu-item {
  font-size: 14px;
  text-align: left;
}

.user-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ai-user-menu form {
  margin: 0;
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #0f172a;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
}

.menu-icon.phone::before {
  inset: 1px 5px;
  border-radius: 5px;
}

.menu-icon.phone::after {
  inset: auto 8px 3px;
  width: 2px;
  height: 2px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
}

.menu-icon.settings::before {
  inset: 2px;
  border-radius: 50%;
}

.menu-icon.settings::after {
  inset: 7px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
}

.menu-icon.help::before {
  inset: 2px;
  border-radius: 50%;
}

.menu-icon.help::after {
  content: "?";
  inset: 0;
  border: 0;
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.menu-icon.logout::before {
  inset: 3px 6px 3px 2px;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.menu-icon.logout::after {
  inset: 8px 2px auto auto;
  width: 9px;
  height: 1.8px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.phone-qr-panel {
  margin: 8px 4px 2px;
  padding: 10px;
  border-top: 1px solid #eef2f7;
  text-align: center;
}

.phone-qr-panel img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.phone-qr-panel p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
}

.report-error-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 10px 24px rgba(239, 68, 68, .22);
  font-size: 14px;
  font-weight: 850;
}

.report-error-button:hover {
  background: #dc2626;
}

.report-error-button:disabled {
  border-color: #d1fae5;
  background: #10b981;
  box-shadow: none;
  cursor: default;
}

.report-ready-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.report-view-button,
.report-secondary-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.report-view-button {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
}

.report-view-button:hover {
  background: #1d4ed8;
}

.report-secondary-link {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.report-secondary-link:hover {
  background: #dbeafe;
}

.reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.reanalyze-button,
.analysis-feedback-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
}

.reanalyze-button {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.reanalyze-button:hover {
  background: #dcfce7;
}

.analysis-feedback-button:hover {
  background: #dbeafe;
}

.reanalyze-button:disabled,
.analysis-feedback-button:disabled {
  border-color: #d1fae5;
  background: #ecfdf5;
  color: #059669;
  cursor: default;
}

.analysis-feedback-panel {
  width: min(520px, 100%);
  padding: 12px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f8fbff;
}

.analysis-feedback-panel textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #d5e2f7;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.analysis-feedback-panel > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.analysis-feedback-submit,
.analysis-feedback-cancel {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
}

.analysis-feedback-submit {
  background: #2563eb;
  color: #fff;
}

.analysis-feedback-cancel {
  border: 1px solid #d5e2f7;
  background: #fff;
  color: #475569;
  box-shadow: none;
}

.analysis-feedback-panel p {
  margin: 0;
  color: #059669;
  font-size: 13px;
  font-weight: 780;
}

.k-visual-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}

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

.k-visual-head strong {
  color: #0f2f6b;
  font-size: 16px;
  font-weight: 900;
}

.k-visual-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.k-metric-grid,
.k-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.k-metric-grid article,
.k-ad-grid article {
  padding: 12px;
  border: 1px solid #e4ecff;
  border-radius: 12px;
  background: #fff;
}

.k-metric-grid span,
.k-ad-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.k-metric-grid strong,
.k-ad-grid strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.k-ad-grid small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.k-bars {
  display: grid;
  gap: 10px;
}

.k-bars article {
  display: grid;
  grid-template-columns: minmax(170px, 250px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.k-bar-info strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.k-bar-info span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.k-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0ff;
}

.k-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #7aa7ff);
}

.k-visual-subtitle {
  margin: 16px 0 10px;
  color: #1f2f4a;
  font-size: 13px;
  font-weight: 900;
}

.visual-trend {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 92px;
  padding: 12px 10px 8px;
  border: 1px solid #e4ecff;
  border-radius: 12px;
  background: #fff;
}

.visual-trend-item {
  display: grid;
  flex: 1;
  min-width: 34px;
  justify-items: center;
  gap: 5px;
}

.visual-trend-item span,
.visual-trend-item b {
  color: #64748b;
  font-size: 11px;
  font-weight: 760;
}

.visual-trend-item i {
  display: block;
  width: 16px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.visual-trend-item i.spend {
  background: linear-gradient(180deg, #fb923c, #ea580c);
  box-shadow: 0 8px 18px rgba(234, 88, 12, .18);
}

.k-spend-trend {
  display: grid;
  gap: 8px;
}

.k-spend-trend .visual-trend-item small {
  color: #b45309;
  font-size: 10px;
  font-weight: 800;
}

.k-spend-trend-note {
  margin: 0;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

.k-shop-grid {
  display: grid;
  gap: 10px;
}

.k-shop-grid article {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf5, #fff);
}

.k-shop-grid article span {
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.k-shop-grid article strong {
  color: #c2410c;
  font-size: 18px;
  font-weight: 900;
}

.k-shop-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #fff3e8;
}

.k-shop-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c, #f97316);
}

.k-shop-grid small {
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
}

.k-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.k-view-tabs button {
  border: 1px solid #fbc28b;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.k-view-tabs button.active {
  border-color: #ea580c;
  background: #ea580c;
  color: #fff;
}

.k-view-panel[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .k-metric-grid,
  .k-ad-grid {
    grid-template-columns: 1fr;
  }

  .k-bars article {
    grid-template-columns: 1fr;
  }

  .visual-trend {
    overflow-x: auto;
  }
}

.settings-page {
  min-height: 100vh;
  background: #ffffff;
}

.settings-panel {
  min-height: 100vh;
  background: #ffffff;
  color: #111827;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.settings-header {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 22px;
}

.settings-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
}

.settings-header a {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #475569;
  font-size: 26px;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}

.settings-header a:hover {
  background: #f1f5f9;
}

.settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: calc(100vh - 44px);
}

.settings-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 2px 12px 24px 14px;
}

.settings-tabs button {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111827;
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
}

.settings-tabs button.active,
.settings-tabs button:hover {
  background: #f0f2f5;
}

.settings-icon,
.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #111827;
}

.settings-icon::before,
.settings-icon::after,
.theme-icon::before,
.theme-icon::after {
  content: "";
  position: absolute;
}

.settings-icon.general::before {
  inset: 2px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.settings-icon.general::after {
  inset: 7px;
  border-radius: 50%;
  background: currentColor;
}

.settings-icon.account::before {
  left: 6px;
  top: 2px;
  width: 6px;
  height: 6px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.settings-icon.account::after {
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 7px;
  border: 1.7px solid currentColor;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 0;
}

.settings-icon.data::before {
  inset: 2px 3px;
  border: 1.7px solid currentColor;
  border-radius: 50% / 30%;
}

.settings-icon.data::after {
  left: 3px;
  right: 3px;
  top: 7px;
  height: 6px;
  border-top: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
}

.settings-icon.agreement::before {
  inset: 2px 4px 2px 3px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

.settings-icon.agreement::after {
  left: 7px;
  right: 6px;
  top: 7px;
  height: 5px;
  border-top: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
}

.settings-content {
  padding: 4px 24px 40px 14px;
}

.settings-group,
.settings-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 22px;
}

.settings-group h2,
.settings-row h2 {
  margin: 9px 0 0;
  color: #111827;
  font-size: 14px;
  font-weight: 780;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.theme-options button {
  display: flex;
  height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e0e4ea;
  border-radius: 11px;
  background: #fff;
  color: #111827;
  box-shadow: none;
  font-size: 15px;
  font-weight: 760;
}

.theme-options button.active {
  border-color: #d4d9e0;
  background: #eef1f4;
}

.theme-options button:hover {
  border-color: #cfd7e2;
  background: #f8fafc;
}

.theme-icon.sun::before {
  inset: 5px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.theme-icon.sun::after {
  inset: 0;
  background:
    linear-gradient(currentColor, currentColor) center top / 1.6px 4px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 1.6px 4px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) left center / 4px 1.6px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) right center / 4px 1.6px no-repeat;
}

.theme-icon.moon::before {
  inset: 3px 2px 3px 5px;
  border-radius: 50%;
  box-shadow: -4px 0 0 0 currentColor;
}

.theme-icon.screen::before {
  left: 3px;
  right: 3px;
  top: 3px;
  height: 10px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

.theme-icon.screen::after {
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 3px -2px 0 currentColor, -3px -2px 0 currentColor;
}

.settings-select {
  justify-self: end;
  display: inline-flex;
  min-width: 110px;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #f0f2f5;
  color: #111827;
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
}

.settings-select span {
  color: #64748b;
  font-size: 15px;
}

.account-settings {
  width: min(100%, 516px);
  padding-top: 4px;
}

.account-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 60px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
}

.account-label,
.account-value {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.4;
}

.account-value {
  justify-self: end;
  gap: 10px;
  color: #111827;
  white-space: nowrap;
}

.account-value a,
.settings-link {
  color: #2563eb;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.settings-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1.4;
}

.account-value a:hover,
.settings-link:hover {
  background: transparent;
  color: #1d4ed8;
  text-decoration: underline;
}

.outline-danger {
  min-width: 72px;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid #ff2d35;
  border-radius: 999px;
  background: #ffffff;
  color: #ff2d35;
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
}

.outline-danger:hover {
  background: #fff1f2;
}

.settings-copy {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.maintenance-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.maintenance-list h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 850;
}

.maintenance-item {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  background: #fff7f7;
}

.maintenance-item strong {
  display: block;
  color: #7f1d1d;
  font-size: 14px;
}

.maintenance-item p {
  margin: 5px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.maintenance-item small {
  color: #94a3b8;
  font-size: 12px;
}

.settings-more-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.settings-more-link:hover {
  text-decoration: underline;
}

.conversation-item {
  border-color: #dbe7ff;
  background: #f8fbff;
}

.conversation-item strong {
  color: #0f2f6b;
}

.conversation-item small a {
  color: #0f4c81;
  font-weight: 850;
  text-decoration: none;
}

.admin-conversation-list,
.admin-conversation-detail {
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.admin-conversation-row,
.admin-conversation-meta,
.admin-message {
  border: 1px solid #e0e7f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.admin-conversation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px 18px;
}

.admin-conversation-row strong,
.admin-conversation-meta strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.admin-conversation-row p,
.admin-conversation-meta span {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.admin-conversation-row a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border-radius: 9px;
  background: #e8f1fb;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.admin-conversation-meta {
  margin-bottom: 14px;
  padding: 16px 18px;
}

.admin-message {
  margin-bottom: 14px;
  padding: 16px 18px;
}

.admin-message > span {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 820;
}

.admin-message.user > div {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.78;
  white-space: pre-wrap;
}

.admin-message.assistant {
  background: #f8fbff;
}

.admin-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e0e7f2;
  border-radius: 14px;
  background: #ffffff;
}

.admin-filter-form label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 820;
}

.admin-filter-form select,
.admin-filter-form input {
  min-width: 150px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
}

.admin-filter-form button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #0f4c81;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
}

.activity-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.activity-metrics article {
  padding: 16px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: #f8fbff;
}

.activity-metrics span,
.activity-metrics small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.activity-metrics strong {
  display: block;
  margin-top: 6px;
  color: #0f2f6b;
  font-size: 24px;
  font-weight: 950;
}

.activity-section {
  margin-top: 18px;
}

.activity-section h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.activity-row {
  grid-template-columns: minmax(0, 1fr);
}

.activity-row small {
  color: #94a3b8;
  font-size: 12px;
  word-break: break-all;
}

.settings-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 11px 16px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2f4a;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.5;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
  transform: translateX(-50%);
}

.settings-toast[hidden] {
  display: none;
}

/* admin-settings-account-classification-v1 */
.settings-account-summary,
.settings-section-head,
.settings-account-metrics,
.settings-data-grid,
.settings-agreement-grid,
.settings-general-grid {
  margin-bottom: 16px;
}

.settings-account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, .92), rgba(255, 251, 235, .66));
}

.settings-account-summary span,
.settings-account-summary small,
.settings-section-head p {
  display: block;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.settings-account-summary strong {
  display: block;
  margin: 4px 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.15;
}

.settings-account-summary a,
.settings-section-head a,
.settings-general-grid a,
.settings-agreement-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 8px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.settings-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.settings-section-head h2 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}

.settings-account-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.settings-account-metrics article,
.settings-data-grid article,
.settings-agreement-grid article,
.settings-general-grid article {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  background: rgba(248, 250, 252, .78);
}

.settings-account-metrics span,
.settings-data-grid span,
.settings-agreement-grid span,
.settings-general-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.settings-account-metrics strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

.settings-account-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.settings-account-filter button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.settings-account-filter button.active,
.settings-account-filter button:hover {
  border-color: rgba(37, 99, 235, .28);
  background: rgba(219, 234, 254, .9);
  color: #1d4ed8;
}

.settings-user-list {
  display: grid;
  gap: 8px;
}

.settings-user-row {
  display: grid;
  grid-template-columns: 42px minmax(140px, 1.1fr) 76px 66px minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, .8fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 213, 225, .56);
  border-radius: 10px;
  background: rgba(255, 255, 255, .74);
  color: #334155;
  font-size: 13px;
}

.settings-user-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #fef3c7);
  color: #0f172a;
  font-weight: 900;
}

.settings-user-main strong,
.settings-user-main span,
.settings-user-row > span,
.settings-user-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-user-main strong {
  color: #0f172a;
  font-size: 14px;
}

.settings-user-main span,
.settings-user-row > span,
.settings-user-row small {
  color: #64748b;
  font-size: 12px;
}

.settings-user-role,
.settings-user-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  background: rgba(226, 232, 240, .8);
  color: #475569;
  font-size: 12px;
}

.settings-user-status.online {
  background: rgba(220, 252, 231, .86);
  color: #15803d;
}

.settings-data-grid,
.settings-agreement-grid,
.settings-general-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-data-grid strong,
.settings-agreement-grid strong,
.settings-general-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 15px;
}

.settings-data-grid button,
.settings-agreement-grid button,
.settings-general-grid button,
.settings-general-grid a,
.settings-agreement-grid a {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .settings-account-metrics,
  .settings-data-grid,
  .settings-agreement-grid,
  .settings-general-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-user-row {
    grid-template-columns: 42px minmax(160px, 1fr) 76px 66px;
  }

  .settings-user-row > span,
  .settings-user-row small {
    grid-column: 2 / -1;
  }
}

@media (max-width: 680px) {
  .settings-account-summary,
  .settings-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-account-metrics,
  .settings-data-grid,
  .settings-agreement-grid,
  .settings-general-grid,
  .settings-user-row {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] body:has(.settings-page) {
  background: #0b1220;
}

html[data-theme="dark"] .settings-page,
html[data-theme="dark"] .settings-panel {
  background: #0b1220;
  color: #e5edf7;
}

html[data-theme="dark"] .settings-header {
  border-bottom: 1px solid #1e293b;
  background: #0b1220;
}

html[data-theme="dark"] .settings-header h1,
html[data-theme="dark"] .settings-tabs button,
html[data-theme="dark"] .settings-group h2,
html[data-theme="dark"] .settings-row h2,
html[data-theme="dark"] .settings-icon,
html[data-theme="dark"] .theme-icon {
  color: #e5edf7;
}

html[data-theme="dark"] .settings-header a {
  color: #b7c4d4;
}

html[data-theme="dark"] .settings-header a:hover,
html[data-theme="dark"] .settings-tabs button.active,
html[data-theme="dark"] .settings-tabs button:hover {
  background: #172033;
}

html[data-theme="dark"] .settings-content {
  background: #0b1220;
}

html[data-theme="dark"] .theme-options button,
html[data-theme="dark"] .settings-select,
html[data-theme="dark"] .account-settings,
html[data-theme="dark"] .account-row,
html[data-theme="dark"] .maintenance-item,
html[data-theme="dark"] .reset-item,
html[data-theme="dark"] .admin-conversation-row,
html[data-theme="dark"] .admin-conversation-meta,
html[data-theme="dark"] .admin-message {
  border-color: #27364d;
  background: #111a2b;
  color: #e5edf7;
}

html[data-theme="dark"] .theme-options button.active {
  border-color: #7cb7ff;
  background: #172a46;
  box-shadow: inset 0 0 0 1px #7cb7ff;
}

html[data-theme="dark"] .theme-options button:hover,
html[data-theme="dark"] .settings-select:hover {
  background: #162238;
}

html[data-theme="dark"] .account-label,
html[data-theme="dark"] .settings-copy,
html[data-theme="dark"] .maintenance-item p,
html[data-theme="dark"] .maintenance-item small,
html[data-theme="dark"] .admin-conversation-row p,
html[data-theme="dark"] .admin-conversation-meta span,
html[data-theme="dark"] .admin-message > span {
  color: #9fb0c7;
}

html[data-theme="dark"] .account-value,
html[data-theme="dark"] .maintenance-item strong,
html[data-theme="dark"] .reset-item strong,
html[data-theme="dark"] .admin-conversation-row strong,
html[data-theme="dark"] .admin-conversation-meta strong,
html[data-theme="dark"] .admin-message.user > div {
  color: #f8fafc;
}

html[data-theme="dark"] .settings-link {
  color: #7cb7ff;
}

html[data-theme="dark"] .outline-danger {
  border-color: #7f1d1d;
  background: #2a1217;
  color: #fca5a5;
}

html[data-theme="dark"] .settings-toast {
  background: #e5edf7;
  color: #0b1220;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

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

  .settings-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 14px;
  }

  .settings-content {
    padding: 14px;
  }

  .settings-group,
  .settings-row {
    grid-template-columns: 1fr;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .settings-select {
    justify-self: start;
  }

  .account-settings {
    width: 100%;
  }

  .account-row {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 70px;
    align-items: center;
    padding: 8px 0;
  }

  .account-value {
    justify-self: start;
  }
}

.assistant-note {
  color: #182235;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: 0;
}

.reply-paragraph,
.reply-data-line {
  margin: 0 0 8px;
}

.reply-space {
  height: 8px;
}

.reply-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
  padding: 10px 12px 10px 14px;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #0f2f6b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.reply-heading:first-child {
  margin-top: 0;
}

.reply-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.70), transparent 46%),
    #2563eb;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .22);
}

.reply-bullet,
.reply-numbered {
  display: grid;
  position: static;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  margin: 7px 0;
  padding-left: 0;
  align-items: start;
}

.reply-bullet::before {
  content: none;
}

.reply-bullet > span {
  width: 9px;
  height: 9px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 5px #edf4ff;
}

.reply-numbered > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.reply-bullet p,
.reply-numbered p {
  margin: 0;
}

.reply-data-line {
  padding: 8px 10px;
  border-left: 3px solid #8fb3ff;
  border-radius: 8px;
  background: #f8fafc;
  color: #26364f;
  font-weight: 720;
}

.product-insight-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
}

.product-insight-card {
  padding: 14px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #fbfdff;
}

.product-insight-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.product-insight-title strong {
  color: #0f2f6b;
  font-size: 15px;
  font-weight: 900;
}

.product-insight-title span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 820;
}

.product-insight-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.product-insight-metrics span {
  padding: 9px 10px;
  border: 1px solid #e4ecff;
  border-radius: 10px;
  background: #ffffff;
}

.product-insight-metrics em {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.product-insight-metrics strong {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.product-insight-card p {
  margin: 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.72;
}

.assistant-note strong {
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout .minimal-home.chat-active,
  .minimal-home.chat-active {
    width: 100%;
  }

  .ai-workbench.minimal-layout .chat-message,
  .chat-message,
  .ai-workbench.minimal-layout .chat-message.assistant,
  .chat-message.assistant {
    max-width: 100%;
    width: 100%;
  }

  .product-insight-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Usage guide page */
body:has(.guide-layout) {
  overflow: hidden;
}

.guide-layout.ai-workbench,
.ai-workbench.minimal-layout.guide-layout {
  height: 100vh;
  min-height: 100vh;
}

.guide-layout .ai-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
}

.guide-layout .ai-main,
.guide-main {
  align-items: stretch;
  justify-content: flex-start;
  height: 100vh;
  min-height: 0;
  padding: 42px 46px 96px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 78% 8%, rgba(15, 76, 129, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.guide-main {
  display: block;
  scrollbar-width: thin;
  scrollbar-color: #cbd8e8 transparent;
}

.guide-hero {
  width: min(1120px, 100%);
  margin: 0 auto 22px;
  padding: 30px 34px;
  border: 1px solid #dfe8f3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.guide-hero p {
  margin: 0 0 10px;
  color: #0f4c81;
  font-size: 14px;
  font-weight: 850;
}

.guide-hero h1 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.guide-hero span {
  display: block;
  max-width: 780px;
  color: #475467;
  font-size: 17px;
  line-height: 1.72;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.guide-card,
.guide-panel {
  border: 1px solid #dfe8f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.guide-card {
  min-height: 188px;
  padding: 22px;
}

.guide-card-wide {
  display: grid;
  grid-column: span 3;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  min-height: 132px;
  align-items: start;
}

.guide-card h2,
.guide-panel h2 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 19px;
  line-height: 1.35;
}

.guide-card p {
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.72;
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: guide-step;
  list-style: none;
}

.guide-steps li {
  position: relative;
  min-height: 30px;
  padding-left: 42px;
  color: #475467;
  font-size: 15px;
  line-height: 1.72;
}

.guide-steps li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef5ff;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 900;
}

.guide-steps code {
  padding: 2px 6px;
  border: 1px solid #d8e5f2;
  border-radius: 6px;
  background: #f8fbff;
  color: #0f4c81;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 14px;
}

.guide-card strong {
  color: #0f4c81;
  font-weight: 860;
}

.guide-icon {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: #e8f1fb;
  color: #0f4c81;
}

.guide-card-wide .guide-icon {
  margin-bottom: 0;
}

.guide-icon::before,
.guide-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: currentColor;
}

.guide-icon.network::before {
  inset: 12px;
  border: 3px solid currentColor;
  background: transparent;
}

.guide-icon.network::after {
  width: 18px;
  height: 3px;
  left: 22px;
  top: 20px;
}

.guide-icon.account::before {
  width: 12px;
  height: 12px;
  left: 16px;
  top: 10px;
}

.guide-icon.account::after {
  width: 22px;
  height: 10px;
  left: 11px;
  bottom: 10px;
  border-radius: 12px 12px 5px 5px;
}

.guide-icon.chat::before {
  width: 24px;
  height: 17px;
  left: 10px;
  top: 12px;
  border-radius: 8px;
}

.guide-icon.chat::after {
  width: 9px;
  height: 9px;
  left: 16px;
  top: 25px;
  transform: rotate(45deg);
}

.guide-icon.data::before {
  width: 24px;
  height: 24px;
  left: 10px;
  top: 10px;
  border-radius: 7px;
  background:
    linear-gradient(currentColor, currentColor) 6px 6px / 4px 12px no-repeat,
    linear-gradient(currentColor, currentColor) 13px 10px / 4px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 20px 3px / 4px 15px no-repeat;
}

.guide-icon.market::before {
  width: 24px;
  height: 24px;
  left: 10px;
  top: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.guide-icon.market::after {
  width: 8px;
  height: 8px;
  left: 18px;
  top: 18px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 -8px 0 -2px currentColor,
    8px 0 0 -2px currentColor,
    -8px 0 0 -2px currentColor;
}

.guide-icon.search::before {
  width: 18px;
  height: 18px;
  left: 10px;
  top: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.guide-icon.search::after {
  width: 14px;
  height: 4px;
  left: 26px;
  top: 29px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.guide-icon.service::before {
  width: 24px;
  height: 18px;
  left: 10px;
  top: 10px;
  border-radius: 9px;
  background: currentColor;
}

.guide-icon.service::after {
  width: 12px;
  height: 8px;
  left: 16px;
  top: 25px;
  border-radius: 0 0 8px 8px;
  border: 3px solid currentColor;
  border-top: 0;
  background: transparent;
}

.guide-icon.skill::before {
  width: 24px;
  height: 24px;
  left: 10px;
  top: 10px;
  border-radius: 7px;
  background: transparent;
  border: 3px solid currentColor;
}

.guide-icon.skill::after {
  width: 18px;
  height: 3px;
  left: 13px;
  top: 20px;
  box-shadow: 0 7px 0 currentColor;
}

.guide-icon.stop::before {
  width: 18px;
  height: 18px;
  left: 13px;
  top: 13px;
  border-radius: 5px;
}

.guide-icon.feedback::before {
  width: 24px;
  height: 18px;
  left: 10px;
  top: 10px;
  border-radius: 8px;
}

.guide-icon.feedback::after {
  width: 12px;
  height: 3px;
  left: 16px;
  top: 31px;
  transform: rotate(-24deg);
}

.guide-panel {
  width: min(1120px, 100%);
  margin: 16px auto 0;
  padding: 24px;
}

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

.guide-prompts span {
  display: block;
  padding: 14px 16px;
  border: 1px solid #d8e5f2;
  border-radius: 10px;
  background: #f8fbff;
  color: #344054;
  font-size: 15px;
  line-height: 1.55;
}

.guide-prompt[hidden] {
  display: none !important;
}

.guide-prompt {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(6px);
}

.guide-prompt-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  width: min(560px, 100%);
  padding: 26px;
  border: 1px solid #d8e5f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.guide-prompt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #f2f6fb;
  color: #667085;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.guide-prompt-close:hover {
  background: #e8f1fb;
  color: #0f4c81;
}

.guide-prompt-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #e8f1fb;
  color: #0f4c81;
}

.guide-prompt-icon::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 14px;
  top: 14px;
  border: 4px solid currentColor;
  border-radius: 9px;
}

.guide-prompt-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 4px;
  left: 19px;
  top: 25px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 9px 0 currentColor;
}

.guide-prompt p {
  margin: 0 0 8px;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 850;
}

.guide-prompt h2 {
  margin: 0 36px 10px 0;
  color: #101828;
  font-size: 24px;
  line-height: 1.28;
}

.guide-prompt span {
  display: block;
  color: #475467;
  font-size: 15px;
  line-height: 1.7;
}

.guide-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.guide-prompt-actions a,
.guide-prompt-actions button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
}

.guide-prompt-actions a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #0f4c81;
  background: #0f4c81;
  color: #ffffff;
  text-decoration: none;
}

.guide-prompt-actions button {
  border: 1px solid #d8e5f2;
  background: #ffffff;
  color: #475467;
}

.guide-prompt-actions button:hover {
  background: #f8fbff;
  color: #0f4c81;
}

@media (max-width: 980px) {
  .guide-layout .ai-main,
  .guide-main {
    padding: 24px 18px 36px;
  }

  .guide-grid,
  .guide-prompts {
    grid-template-columns: 1fr;
  }

  .guide-card-wide {
    grid-column: span 1;
  }

  .guide-hero h1 {
    font-size: 28px;
  }

  .guide-prompt-card {
    grid-template-columns: 1fr;
  }
}

/* Firefly brand refresh */
.ai-brand,
.auth-brand {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  gap: 0;
}

.ai-brand::before,
.auth-brand::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("/static/nmwrus_assets/firefly-logo-official-transparent-256.png") center / contain no-repeat;
  filter: drop-shadow(0 10px 18px rgba(15, 118, 110, 0.16));
}

.auth-brand {
  justify-self: center;
}

.ai-brand .ai-brand-mark,
.ai-brand strong,
.auth-brand .ai-brand-mark,
.auth-brand strong {
  display: none !important;
}

.minimal-logo {
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  border-radius: 0;
  background: url("/static/nmwrus_assets/firefly-logo-official-transparent-256.png") center / contain no-repeat !important;
  box-shadow: none;
  color: transparent !important;
  font-size: 0;
}

.report-price-card {
  position: relative;
  overflow: hidden;
  padding-right: 112px;
}

.report-price-card img {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(15, 118, 110, 0.16));
  pointer-events: none;
}

.report-price-card strong,
.report-price-card small,
.report-price-card span {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .ai-brand,
  .auth-brand {
    width: 62px;
    height: 62px;
  }

  .minimal-logo {
    width: 86px;
    height: 86px;
  }

  .report-price-card {
    padding-right: 20px;
  }

  .report-price-card img {
    position: static;
    display: block;
    width: 112px;
    margin-top: 12px;
  }
}


.customer-service-main {
  gap: 22px;
}

.customer-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.customer-service-grid article,
.ozon-service-panel {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.customer-service-grid article {
  padding: 18px;
}

.customer-service-grid strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  margin-bottom: 8px;
}

.customer-service-grid p,
.ozon-service-hint,
.ozon-empty {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

.ozon-service-panel {
  padding: 20px;
}

.ozon-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.ozon-service-head p {
  color: #2563eb;
  font-weight: 800;
  margin: 0 0 4px;
}

.ozon-service-head h2 {
  margin: 0;
  font-size: 24px;
  color: #0f172a;
}

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

.ozon-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 850;
}

.ozon-status.ok {
  background: #dcfce7;
  color: #166534;
}

.ozon-service-actions button,
.ozon-draft-link {
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.ozon-service-actions button:disabled {
  opacity: .58;
  cursor: wait;
}

.ozon-service-hint {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
}

.ozon-service-body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  min-height: 360px;
}

.ozon-chat-list,
.ozon-chat-detail {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  overflow: auto;
  max-height: 560px;
}

.ozon-chat-item {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  text-align: left;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.ozon-chat-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .10);
}

.ozon-chat-item strong,
.ozon-detail-title strong {
  color: #0f172a;
}

.ozon-chat-item span,
.ozon-detail-title span,
.ozon-message span {
  color: #94a3b8;
  font-size: 12px;
}

.ozon-chat-item p {
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.ozon-chat-item em {
  width: fit-content;
  font-style: normal;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 850;
}

.ozon-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ozon-message {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.ozon-message div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ozon-message p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
  white-space: pre-wrap;
}

.ozon-empty.error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px;
}

.ozon-draft-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .customer-service-grid,
  .ozon-service-body {
    grid-template-columns: 1fr;
  }
  .ozon-service-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* customer-service-ozon-layout-v2 */
.customer-service-layout .ai-main.customer-service-main {
  width: 100%;
  max-width: none;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(760px, 1fr);
  gap: 18px;
  align-items: start;
}

.customer-service-main .workbench-module.customer-service-hero {
  padding: 0;
  min-width: 0;
}

.customer-service-main .customer-service-hero > p {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .08em;
}

.customer-service-main .customer-service-hero > h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.12;
}

.customer-service-main .customer-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.customer-service-main .customer-service-grid article {
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.customer-service-main .customer-service-grid strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.customer-service-main .customer-service-grid p {
  font-size: 13px;
  line-height: 1.55;
}

.customer-service-main .ozon-service-panel {
  min-width: 0;
  width: 100%;
  padding: 18px;
  border-radius: 14px;
}

.customer-service-main .ozon-service-head {
  padding-bottom: 12px;
}

.customer-service-main .ozon-service-head h2 {
  font-size: 26px;
}

.customer-service-main .ozon-service-hint {
  margin: 12px 0;
  padding: 10px 12px;
  font-size: 14px;
}

.customer-service-main .ozon-service-body {
  grid-template-columns: minmax(300px, 380px) minmax(560px, 1fr);
  gap: 14px;
  min-height: calc(100vh - 250px);
}

.customer-service-main .ozon-chat-list,
.customer-service-main .ozon-chat-detail {
  max-height: calc(100vh - 245px);
  min-height: 560px;
}

.customer-service-main .ozon-chat-list {
  padding: 10px;
}

.customer-service-main .ozon-chat-detail {
  padding: 14px;
}

.customer-service-main .ozon-chat-item {
  margin-bottom: 8px;
  padding: 11px 12px;
}

.customer-service-main .ozon-chat-item strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.customer-service-main .ozon-chat-item p {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.customer-service-main .ozon-detail-title {
  position: sticky;
  top: -14px;
  z-index: 1;
  padding: 12px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.customer-service-main .ozon-detail-title strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.customer-service-main .ozon-message {
  padding: 14px 16px;
}

.customer-service-main .ozon-message p {
  font-size: 16px;
  line-height: 1.72;
}

@media (max-width: 1280px) {
  .customer-service-layout .ai-main.customer-service-main {
    grid-template-columns: 1fr;
  }
  .customer-service-main .customer-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .customer-service-main .ozon-service-body {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .customer-service-layout .ai-main.customer-service-main {
    padding: 20px 14px;
  }
  .customer-service-main .customer-service-grid,
  .customer-service-main .ozon-service-body {
    grid-template-columns: 1fr;
  }
  .customer-service-main .ozon-chat-list,
  .customer-service-main .ozon-chat-detail {
    min-height: 340px;
    max-height: none;
  }
}

/* customer-service-chat-fields-v3 */
.customer-service-main .ozon-chat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.customer-service-main .ozon-chat-top strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
}

.customer-service-main .ozon-chat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-service-main .ozon-chat-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 12px;
  font-weight: 760;
}

.customer-service-main .ozon-chat-item time {
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.customer-service-main .ozon-message div strong {
  color: #0f172a;
  font-size: 15px;
}

.customer-service-main .ozon-message div span {
  white-space: nowrap;
}

/* ozon-customer-service-translation-v4 */
.customer-service-main .ozon-chat-customer {
  color: #475569;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customer-service-main .ozon-message-translation {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #dbe4ef;
}

.customer-service-main .ozon-message-translation span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.customer-service-main .ozon-message-translation p {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}

/* ozon-unread-customer-v5 */
.customer-service-main .ozon-chat-top em.unread {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff2f86;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(255, 47, 134, .22);
}

.customer-service-main .ozon-chat-top em.read {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.customer-service-main .ozon-chat-item:has(.ozon-chat-top em.unread) {
  border-color: #f9a8d4;
  background: linear-gradient(180deg, #fff 0%, #fff5f9 100%);
}

/* ozon-manual-reply-v1 */
.customer-service-main .ozon-reply-panel {
  margin-top: 10px;
  padding: 14px;
  border: 2px solid #fecdd3;
  border-radius: 12px;
  background: #fff7fb;
}

.customer-service-main .ozon-reply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.customer-service-main .ozon-reply-head strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.customer-service-main .ozon-reply-head span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.customer-service-main .ozon-reply-head button,
.customer-service-main .ozon-reply-actions button,
.customer-service-main .ozon-send-button {
  border: 0;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .14);
}

.customer-service-main .ozon-reply-actions button {
  background: #2563eb;
}

.customer-service-main .ozon-send-button {
  background: #db2777;
  min-height: 42px;
}

.customer-service-main .ozon-manual-send-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
}

.customer-service-main .ozon-manual-send-notice strong {
  font-size: 14px;
}

.customer-service-main .ozon-manual-send-notice span {
  font-size: 13px;
  line-height: 1.5;
}

.customer-service-main .ozon-manual-open-button,
.customer-service-main .ozon-manual-done-button {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.customer-service-main .ozon-manual-open-button {
  background: #2563eb;
}

.customer-service-main .ozon-manual-done-button {
  background: #059669;
}

.customer-service-main .ozon-chat-tags .manual-send-tag {
  background: #fff7ed;
  color: #c2410c;
}

.customer-service-main .ozon-chat-tags .manual-handled-tag {
  background: #ecfdf5;
  color: #047857;
}

.customer-service-main .ozon-reply-label {
  display: block;
  margin: 10px 0 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.customer-service-main .ozon-reply-textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.65;
  padding: 12px 14px;
  outline: none;
}

.customer-service-main .ozon-reply-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.customer-service-main .ozon-reply-textarea.russian {
  font-size: 17px;
}

.customer-service-main .ozon-reply-actions,
.customer-service-main .ozon-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.customer-service-main #ozonReplyStatus {
  flex: 1;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.customer-service-main #ozonReplyStatus.error {
  color: #be123c;
}

.customer-service-main #ozonReplyStatus.visual {
  display: flex;
  flex: 1;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(6, 182, 212, .22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(240, 249, 255, .92), rgba(255, 251, 235, .62)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(37, 99, 235, .045) 22px 23px);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 12px 28px rgba(37, 99, 235, .07);
}

.customer-service-main .reply-visual-title {
  color: #155eef;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.customer-service-main .reply-visual-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-service-main .reply-visual-steps b {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px 0 18px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.customer-service-main .reply-visual-steps b::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #94a3b8;
}

.customer-service-main .reply-visual-steps b.done {
  border-color: rgba(34, 197, 94, .22);
  color: #15803d;
}

.customer-service-main .reply-visual-steps b.done::before {
  background: #22c55e;
}

.customer-service-main .reply-visual-steps b.active {
  border-color: rgba(6, 182, 212, .34);
  background: rgba(236, 254, 255, .92);
  color: #0369a1;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .08);
}

.customer-service-main .reply-visual-steps b.active::before {
  background: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, .62);
}

.customer-service-main .ozon-send-row {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .customer-service-main .ozon-reply-head,
  .customer-service-main .ozon-reply-actions,
  .customer-service-main .ozon-send-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ozon-attachments-preview-v1 */
.customer-service-main .ozon-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}

.customer-service-main .ozon-attachment {
  display: block;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #1d4ed8;
  text-decoration: none;
}

.customer-service-main .ozon-attachment img,
.customer-service-main .ozon-attachment video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2ff;
}

.customer-service-main .ozon-attachment-video {
  cursor: default;
}

.customer-service-main .ozon-attachment-video a {
  display: block;
  padding: 7px 9px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.customer-service-main .ozon-attachment span {
  display: block;
  padding: 7px 9px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

/* ozon-message-links-v1 */
.customer-service-main .ozon-message-link,
.customer-service-main .ozon-product-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  margin: 2px 4px 2px 0;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  vertical-align: middle;
}

.customer-service-main .ozon-message-link {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.customer-service-main .ozon-product-link {
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.customer-service-main .ozon-message-link:hover {
  background: #dbeafe;
}

.customer-service-main .ozon-product-link:hover {
  background: #ffedd5;
}

/* ozon-chat-primary-sections-v1 */
.customer-service-main .ozon-chat-section {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.customer-service-main .ozon-chat-section-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: rgba(248, 250, 252, .96);
  backdrop-filter: blur(8px);
}

.customer-service-main .ozon-chat-section-head strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.customer-service-main .ozon-chat-section-head span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.customer-service-main .ozon-chat-section-head em {
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.customer-service-main .ozon-chat-section[data-group="buyer"] .ozon-chat-section-head {
  border-color: #bfdbfe;
  background: rgba(239, 246, 255, .96);
}

.customer-service-main .ozon-chat-section[data-group="support"] .ozon-chat-section-head {
  border-color: #fecdd3;
  background: rgba(255, 241, 248, .96);
}

.customer-service-main .ozon-chat-section[data-group="other"] .ozon-chat-section-head {
  border-color: #e2e8f0;
  background: rgba(248, 250, 252, .96);
}

.customer-service-main .review-central-entry {
  width: 100%;
  margin: 0 0 10px;
  padding: 11px 14px;
  border: 1px solid #8bb8ff;
  border-radius: 10px;
  color: #174c9a;
  background: linear-gradient(135deg, #eef6ff, #f7fbff);
  font-weight: 900;
  cursor: pointer;
}
.customer-service-main .review-central-entry:hover { border-color: #4f8fe8; background: #e7f2ff; }
.customer-service-main .ozon-section-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* ozon-translation-collapse-v1 */
.customer-service-main details.ozon-message-translation {
  margin-top: 12px;
  padding: 0;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  overflow: hidden;
}

.customer-service-main details.ozon-message-translation summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  user-select: none;
}

.customer-service-main details.ozon-message-translation summary::-webkit-details-marker {
  display: none;
}

.customer-service-main details.ozon-message-translation summary::after {
  content: "展开";
  float: right;
  color: #64748b;
  font-weight: 850;
}

.customer-service-main details.ozon-message-translation[open] summary::after {
  content: "收起";
}

.customer-service-main details.ozon-message-translation p {
  margin: 0;
  padding: 0 14px 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.customer-service-main details.ozon-message-translation.collapsed:not([open]) p {
  display: none;
}

/* ozon-chat-search-v1 */
.customer-service-main .ozon-chat-list-wrap {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  max-height: 76vh;
  overflow: hidden;
}

.customer-service-main .ozon-chat-search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 760;
  padding: 0 12px;
  outline: none;
}

.customer-service-main .ozon-chat-search:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.customer-service-main .ozon-chat-customer small {
  margin-left: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
}


/* ozon-chat-tools-v1 */
.customer-service-main .ozon-chat-tools {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}

.customer-service-main .ozon-chat-tools span {
  color: #64748b;
  font-size: 13px;
  font-weight: 720;
}

.customer-service-main .ozon-chat-section[data-group="main"] .ozon-chat-section-head {
  border-color: #bbf7d0;
  background: rgba(240, 253, 244, .96);
}

.customer-service-main .ozon-chat-section[data-group="notice"] .ozon-chat-section-head {
  border-color: #bae6fd;
  background: rgba(240, 249, 255, .96);
}

.customer-service-main .ozon-chat-section[data-group="promo"] .ozon-chat-section-head {
  border-color: #fde68a;
  background: rgba(254, 252, 232, .96);
}

.customer-service-main .ozon-chat-section[data-group="training"] .ozon-chat-section-head {
  border-color: #ddd6fe;
  background: rgba(245, 243, 255, .96);
}

@media (max-width: 760px) {
  .customer-service-main .ozon-chat-tools {
    grid-template-columns: 1fr;
  }
}

/* ozon-deep-search-v1 */
.customer-service-main .ozon-deep-search-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  text-align: left;
}

.customer-service-main .ozon-deep-search-empty strong {
  color: #0f172a;
  font-size: 15px;
}

.customer-service-main .ozon-deep-search-empty button {
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

/* ozon-section-collapse-v1 */
.customer-service-main .ozon-chat-section-head {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.customer-service-main button.ozon-chat-section-head {
  appearance: none;
  font: inherit;
}

.customer-service-main .ozon-chat-section-head em b {
  display: inline-flex;
  margin-left: 8px;
  color: #2563eb;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.customer-service-main .ozon-chat-section-body {
  display: grid;
  gap: 10px;
}

.customer-service-main .ozon-chat-section.collapsed .ozon-chat-section-body {
  display: none;
}

/* ozon-toast-v1 */
.ozon-toast {
  position: fixed;
  right: 28px;
  top: 24px;
  z-index: 9999;
  display: grid;
  gap: 4px;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  color: #0f172a;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.ozon-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ozon-toast strong {
  font-size: 15px;
  font-weight: 900;
}

.ozon-toast span {
  color: #475569;
  font-size: 13px;
  font-weight: 720;
}

/* ozon-account-select-v1 */
.customer-service-main .ozon-chat-tools {
  grid-template-columns: minmax(130px, 160px) minmax(130px, 160px) minmax(260px, 1fr) minmax(160px, 220px);
}

.customer-service-main .ozon-account-select {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 820;
  padding: 0 12px;
  outline: none;
}

.customer-service-main .ozon-account-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

@media (max-width: 900px) {
  .customer-service-main .ozon-chat-tools {
    grid-template-columns: 1fr;
  }
}




/* customer-corpus-knowledge-v1 */
.knowledge-layout .ai-main.knowledge-main {
  width: 100%;
  max-width: none;
  padding: 42px 42px 58px;
  display: grid;
  gap: 18px;
}

.knowledge-main .knowledge-hero {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.knowledge-main .knowledge-hero p {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.knowledge-main .knowledge-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.12;
}

.knowledge-main .knowledge-hero span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 720;
}

.knowledge-main .knowledge-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.knowledge-main .knowledge-grid article,
.knowledge-main .corpus-panel {
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}

.knowledge-main .knowledge-grid article {
  padding: 16px;
}

.knowledge-main .knowledge-grid article.active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.knowledge-main .knowledge-grid strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  margin-bottom: 6px;
}

.knowledge-main .knowledge-grid p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.knowledge-main .corpus-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.knowledge-main .corpus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.knowledge-main .corpus-head p {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.knowledge-main .corpus-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
}

.knowledge-main .corpus-head span,
.knowledge-main .corpus-note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.knowledge-main .corpus-actions {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 10px;
}

.knowledge-main .corpus-actions input {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.knowledge-main .corpus-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.knowledge-main .corpus-actions button:disabled {
  opacity: .6;
  cursor: wait;
}

.knowledge-main .corpus-note {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
}

.knowledge-main .corpus-body {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 14px;
  min-height: 540px;
}

.knowledge-main .corpus-list,
.knowledge-main .corpus-detail {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  overflow: auto;
  max-height: 640px;
}

.knowledge-main .corpus-sku {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.knowledge-main .corpus-sku:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .10);
}

.knowledge-main .corpus-sku strong,
.knowledge-main .corpus-detail-title strong {
  color: #0f172a;
  font-size: 16px;
}

.knowledge-main .corpus-sku span,
.knowledge-main .corpus-sku small,
.knowledge-main .corpus-detail-title span {
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
}

.knowledge-main .corpus-sku p,
.knowledge-main .corpus-empty,
.knowledge-main .corpus-detail > p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.knowledge-main .corpus-detail-title {
  position: sticky;
  top: -12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.knowledge-main .corpus-example {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.knowledge-main .corpus-example div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.knowledge-main .corpus-example strong {
  color: #0f172a;
  font-size: 14px;
}

.knowledge-main .corpus-example span {
  color: #94a3b8;
  font-size: 12px;
}

.knowledge-main .corpus-example p {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.knowledge-main .corpus-example p.answer {
  margin-bottom: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eff6ff;
  color: #1e3a8a;
}

.knowledge-main .corpus-pending {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

.knowledge-main .corpus-pending strong {
  display: block;
  margin-bottom: 8px;
  color: #be123c;
}

.knowledge-main .corpus-pending p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.knowledge-main .corpus-empty.error {
  color: #991b1b;
}

@media (max-width: 980px) {
  .knowledge-layout .ai-main.knowledge-main {
    padding: 22px 14px;
  }
  .knowledge-main .knowledge-grid,
  .knowledge-main .corpus-body,
  .knowledge-main .corpus-head,
  .knowledge-main .corpus-actions {
    grid-template-columns: 1fr;
  }
  .knowledge-main .knowledge-grid {
    grid-template-columns: 1fr;
  }
}


/* customer daily review */
.daily-review-panel {
  margin-top: 18px;
}
.daily-review-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.daily-review-stats article {
  border: 1px solid #dbe6f6;
  background: #f8fbff;
  border-radius: 8px;
  padding: 12px 14px;
}
.daily-review-stats strong {
  display: block;
  font-size: 22px;
  color: #10213f;
  line-height: 1.1;
}
.daily-review-stats span {
  display: block;
  margin-top: 6px;
  color: #62708a;
  font-size: 12px;
}
.daily-review-body .corpus-detail {
  max-height: 620px;
  overflow: auto;
}
.daily-message {
  border-left: 4px solid #93b8ff;
}
.daily-message.seller {
  border-left-color: #15a076;
  background: #f7fffb;
}
.daily-message.customer {
  border-left-color: #477cff;
}
.daily-message .answer {
  margin-top: 8px;
  background: #edf7f3;
}
@media (max-width: 900px) {
  .daily-review-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* page pet assistant */
.page-pet {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-family: inherit;
}
.page-pet-body {
  position: relative;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 45% 36%, #ffffff 0 10%, #fff5a8 22%, #ffd34d 43%, #ff9f2d 70%, #d56d13 100%);
  box-shadow: 0 18px 42px rgba(255, 159, 45, 0.34), 0 0 0 8px rgba(255, 222, 116, 0.22), inset 0 1px 2px rgba(255,255,255,.8);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: pagePetPulse 3.6s ease-in-out infinite;
}
.page-pet-body:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 54px rgba(255, 159, 45, 0.42), 0 0 0 10px rgba(255, 222, 116, 0.26), inset 0 1px 2px rgba(255,255,255,.85);
}
.page-pet-core {
  position: absolute;
  left: 19px;
  top: 17px;
  width: 28px;
  height: 32px;
  border-radius: 48% 48% 55% 55%;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,244,138,.85) 30%, rgba(255,174,50,.94));
  box-shadow: inset -4px -5px 9px rgba(154,78,0,.22), inset 3px 3px 8px rgba(255,255,255,.7);
}
.page-pet-wing {
  position: absolute;
  top: 16px;
  width: 23px;
  height: 30px;
  border-radius: 70% 35% 70% 35%;
  background: linear-gradient(135deg, rgba(189, 224, 255, .92), rgba(255,255,255,.25));
  border: 1px solid rgba(88, 141, 214, .18);
  backdrop-filter: blur(5px);
}
.page-pet-wing.left {
  left: 5px;
  transform: rotate(-22deg);
}
.page-pet-wing.right {
  right: 5px;
  transform: rotate(22deg) scaleX(-1);
}
.page-pet-card {
  width: min(310px, calc(100vw - 120px));
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  padding: 14px 14px 13px;
  transform-origin: right bottom;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.page-pet-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.page-pet-card strong {
  color: #0f172a;
  font-size: 14px;
}
.page-pet-card button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #f1f5f9;
  cursor: pointer;
}
.page-pet-card p {
  margin: 9px 0 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}
.page-pet-actions {
  display: flex;
  gap: 8px;
}
.page-pet-actions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
  color: #0f2552;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 700;
}
.page-pet-actions a:first-child {
  color: #ffffff;
  background: #0f1f3f;
}
.page-pet.collapsed .page-pet-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.94);
}
@keyframes pagePetPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 206, 72, 0)); }
  45% { filter: drop-shadow(0 0 16px rgba(255, 206, 72, .62)); }
}
[data-theme="dark"] .page-pet-card {
  background: rgba(15, 23, 42, .94);
  border-color: rgba(148, 163, 184, .24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
}
[data-theme="dark"] .page-pet-card strong { color: #e5edf8; }
[data-theme="dark"] .page-pet-card p { color: #aebbd0; }
[data-theme="dark"] .page-pet-card button { background: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .page-pet-actions a { background: #172554; color: #cfe1ff; }
[data-theme="dark"] .page-pet-actions a:first-child { background: #2563eb; color: #fff; }
@media (max-width: 720px) {
  .page-pet {
    right: 14px;
    bottom: 14px;
  }
  .page-pet-body {
    width: 56px;
    height: 56px;
  }
  .page-pet-card {
    width: min(280px, calc(100vw - 92px));
  }
}

/* customer-service-ozon-link-number-v1 */
.customer-service-main .ozon-chat-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  margin-right: 8px;
  border-radius: 7px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.customer-service-main .ozon-chat-customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-service-main .ozon-open-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: #2563eb;
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.customer-service-main .ozon-open-link:hover {
  background: #1d4ed8;
}

/* ozon-backend-transfer-v1 */
.customer-service-main .ozon-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.customer-service-main .ozon-transfer-button {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 7px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.customer-service-main .ozon-transfer-button:hover {
  border-color: rgba(217, 119, 6, .46);
  background: #ffedd5;
}

@media (max-width: 720px) {
  .customer-service-main .ozon-detail-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* customer-service-quick-replies-v1 */
.customer-service-main .ozon-quick-replies {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0 4px;
}

.customer-service-main .ozon-quick-replies select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
  padding: 0 10px;
}

.customer-service-main .ozon-quick-replies button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: #e0ecff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  padding: 0 11px;
  cursor: pointer;
}

.customer-service-main .ozon-quick-replies button:hover {
  background: #bfdbfe;
}

.customer-service-main .ozon-quick-replies button[data-action="save-template"] {
  background: #dcfce7;
  color: #166534;
}

.customer-service-main .ozon-quick-replies button[data-action="delete-template"] {
  background: #ffe4e6;
  color: #be123c;
}

@media (max-width: 900px) {
  .customer-service-main .ozon-quick-replies {
    grid-template-columns: 1fr 1fr;
  }

  .customer-service-main .ozon-quick-replies select {
    grid-column: 1 / -1;
  }
}

/* firefly-page-pet-v2 */
.page-pet {
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 12px;
  user-select: none;
  pointer-events: none;
}

.page-pet.dragging {
  transition: none;
}

.page-pet-body {
  width: 78px;
  height: 78px;
  overflow: visible;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  touch-action: none;
  cursor: grab;
  animation: pagePetFloat 4.2s ease-in-out infinite;
  pointer-events: auto;
}

.page-pet.dragging .page-pet-body {
  cursor: grabbing;
  animation: none;
}

.page-pet-body::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 115, .55), rgba(255, 170, 32, .22) 48%, transparent 72%);
  filter: blur(2px);
  animation: pagePetGlow 2.6s ease-in-out infinite;
}

.page-pet-body:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: none;
}

.page-pet-wing {
  z-index: 1;
  top: 17px;
  width: 28px;
  height: 42px;
  border-radius: 74% 34% 74% 34%;
  background: linear-gradient(145deg, rgba(223, 245, 255, .96), rgba(132, 205, 255, .48) 62%, rgba(255, 255, 255, .18));
  border: 1px solid rgba(90, 146, 205, .28);
  box-shadow: inset 3px 5px 10px rgba(255,255,255,.74), 0 8px 18px rgba(76, 139, 201, .18);
  backdrop-filter: blur(6px);
  transform-origin: 70% 22%;
  animation: pagePetWingLeft 1.15s ease-in-out infinite;
}

.page-pet-wing.left {
  left: 3px;
  transform: rotate(-30deg);
}

.page-pet-wing.right {
  right: 3px;
  transform: rotate(30deg) scaleX(-1);
  animation-name: pagePetWingRight;
}

.page-pet-core {
  z-index: 2;
  left: 22px;
  top: 9px;
  width: 34px;
  height: 58px;
  border-radius: 18px 18px 20px 20px;
  background: linear-gradient(180deg, #273244 0 34%, #3b2f25 35% 50%, #ffdc50 52% 76%, #ff9f18 100%);
  box-shadow: inset -5px -7px 10px rgba(79, 35, 0, .28), inset 4px 4px 9px rgba(255,255,255,.32), 0 12px 26px rgba(255, 159, 24, .28);
}

.page-pet-core::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fffbd0, #ffd945 45%, #ff9d16 100%);
  box-shadow: 0 0 22px rgba(255, 211, 54, .78), 0 0 42px rgba(255, 159, 24, .36);
  animation: pagePetTailPulse 1.9s ease-in-out infinite;
}

.page-pet-face {
  position: absolute;
  left: 7px;
  top: 10px;
  display: flex;
  gap: 8px;
}

.page-pet-face i {
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #07111f;
  box-shadow: inset 2px 1px 0 rgba(255,255,255,.86);
}

.page-pet-smile {
  position: absolute;
  left: 13px;
  top: 22px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid rgba(255,255,255,.76);
  border-radius: 0 0 10px 10px;
}

.page-pet-abdomen {
  position: absolute;
  left: 7px;
  bottom: 8px;
  width: 20px;
  height: 26px;
  border-radius: 999px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.24) 0 3px, transparent 3px 8px);
  opacity: .62;
}

.page-pet-antenna {
  position: absolute;
  z-index: 3;
  top: 2px;
  width: 18px;
  height: 22px;
  border-top: 2px solid #273244;
  border-radius: 50% 50% 0 0;
}

.page-pet-antenna::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd84a;
  box-shadow: 0 0 12px rgba(255, 216, 74, .78);
}

.page-pet-antenna.left {
  left: 21px;
  transform: rotate(-28deg);
}

.page-pet-antenna.left::after {
  left: -3px;
}

.page-pet-antenna.right {
  right: 21px;
  transform: rotate(28deg) scaleX(-1);
}

.page-pet-antenna.right::after {
  left: -3px;
}

.page-pet-sparkle {
  position: absolute;
  z-index: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffe16b;
  box-shadow: 0 0 14px rgba(255, 225, 107, .82);
  opacity: .75;
  animation: pagePetSpark 2.4s ease-in-out infinite;
}

.page-pet-sparkle.one {
  left: 10px;
  top: 56px;
}

.page-pet-sparkle.two {
  right: 8px;
  top: 46px;
  animation-delay: .8s;
}

.page-pet-card {
  transform-origin: right bottom;
  cursor: auto;
  pointer-events: auto;
}

.page-pet.dragging .page-pet-card {
  opacity: .82;
  pointer-events: none;
  cursor: grabbing;
}

.page-pet-card textarea,
.page-pet-card button,
.page-pet-card a {
  cursor: auto;
}

@keyframes pagePetFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pagePetGlow {
  0%, 100% { opacity: .74; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes pagePetTailPulse {
  0%, 100% { opacity: .78; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes pagePetWingLeft {
  0%, 100% { transform: rotate(-30deg) skewY(0deg); }
  50% { transform: rotate(-18deg) skewY(5deg); }
}

@keyframes pagePetWingRight {
  0%, 100% { transform: rotate(30deg) scaleX(-1) skewY(0deg); }
  50% { transform: rotate(18deg) scaleX(-1) skewY(-5deg); }
}

@keyframes pagePetSpark {
  0%, 100% { opacity: .2; transform: translateY(0) scale(.78); }
  50% { opacity: .95; transform: translateY(-9px) scale(1.08); }
}

@media (max-width: 720px) {
  .page-pet-body {
    width: 64px;
    height: 64px;
  }

  .page-pet-core {
    left: 18px;
    top: 8px;
    transform: scale(.86);
    transform-origin: top left;
  }

  .page-pet-wing {
    transform: scale(.86);
  }
}

/* customer-service-quick-replies-edit-v2 */
.customer-service-main .ozon-quick-replies {
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
}

.customer-service-main .ozon-quick-replies button[data-action="new-template"] {
  background: #fef3c7;
  color: #92400e;
}

.customer-service-main .ozon-template-editor {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 56px;
  margin: 6px 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
  padding: 9px 11px;
  outline: none;
}

.customer-service-main .ozon-template-editor:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.customer-service-main .ozon-template-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

.customer-service-main .ozon-template-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
  cursor: pointer;
}

.customer-service-main .ozon-template-actions button:hover {
  background: #1d4ed8;
}

@media (max-width: 900px) {
  .customer-service-main .ozon-quick-replies {
    grid-template-columns: 1fr 1fr;
  }
}

/* page-pet-chat-v1 */
.page-pet-chat {
  width: min(360px, calc(100vw - 118px));
  padding: 13px;
}

.page-pet-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  margin: 10px 0 11px;
  padding: 2px 2px 4px;
}

.page-pet-messages article {
  max-width: 88%;
  border-radius: 12px;
  padding: 9px 10px;
  background: #f1f5f9;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.55;
}

.page-pet-messages article p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.page-pet-messages article.user {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
}

.page-pet-messages article.assistant {
  align-self: flex-start;
  background: #fff7db;
  border: 1px solid #fde68a;
}

.page-pet-messages article.pending {
  opacity: .78;
}

.page-pet-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.page-pet-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 42px;
  max-height: 108px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 10px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.page-pet-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.page-pet-form button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #0f1f3f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  cursor: pointer;
}

.page-pet-form button:hover {
  background: #1d4ed8;
}

[data-theme="dark"] .page-pet-messages article.assistant {
  background: #2a210b;
  border-color: #854d0e;
  color: #fef3c7;
}

[data-theme="dark"] .page-pet-messages article {
  background: #1e293b;
  color: #dbeafe;
}

[data-theme="dark"] .page-pet-form textarea {
  background: #0f172a;
  border-color: #334155;
  color: #e5edf8;
}

@media (max-width: 720px) {
  .page-pet-chat {
    width: min(310px, calc(100vw - 92px));
  }
}

/* page-pet-chat-agent-v2 */
.page-pet-card-head {
  cursor: grab;
}

.page-pet.dragging .page-pet-card-head {
  cursor: grabbing;
}

.page-pet-form button:disabled {
  opacity: .62;
  cursor: wait;
}

/* page-pet-simple-restore-v1 */
.page-pet-card:not(.page-pet-chat) {
  width: min(310px, calc(100vw - 120px));
}

.page-pet-card-head {
  cursor: grab;
}

.page-pet.dragging .page-pet-card-head {
  cursor: grabbing;
}

.page-pet-card:not(.page-pet-chat) .page-pet-actions {
  display: flex;
  gap: 8px;
}

.page-pet-card:not(.page-pet-chat) .page-pet-actions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
  color: #0f2552;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 700;
}

.page-pet-card:not(.page-pet-chat) .page-pet-actions a:first-child {
  color: #ffffff;
  background: #0f1f3f;
}

/* page-bottom-breathing-space-v1 */
.customer-service-layout .ai-main.customer-service-main,
.knowledge-layout .ai-main.knowledge-main {
  padding-bottom: 92px;
  scroll-padding-bottom: 92px;
}

.customer-service-main .ozon-service-panel,
.knowledge-main .corpus-panel:last-child {
  margin-bottom: 42px;
}

.customer-service-main .ozon-chat-list,
.customer-service-main .ozon-chat-detail,
.knowledge-main .corpus-list,
.knowledge-main .corpus-detail {
  padding-bottom: 34px;
  scroll-padding-bottom: 34px;
}

.customer-service-main .ozon-chat-list::after,
.customer-service-main .ozon-chat-detail::after,
.knowledge-main .corpus-list::after,
.knowledge-main .corpus-detail::after {
  content: "";
  display: block;
  height: 22px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .customer-service-layout .ai-main.customer-service-main,
  .knowledge-layout .ai-main.knowledge-main {
    padding-bottom: 76px;
  }
}

/* page-pet-translation-chat-v1 */
.page-pet-card .page-pet-messages {
  max-height: 170px;
  margin: 10px 0 10px;
  padding-right: 2px;
}

.page-pet-card .page-pet-messages article {
  max-width: 94%;
  word-break: break-word;
}

.page-pet-card .page-pet-form {
  margin-top: 6px;
}

.page-pet-card .page-pet-form textarea {
  min-height: 46px;
}

.page-pet-card .page-pet-utility-actions button,
.page-pet-card .page-pet-utility-actions a {
  flex: 1;
  width: auto;
  height: auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.page-pet-card .page-pet-utility-actions button {
  color: #0f2552;
  background: #eef5ff;
}

.page-pet-card .page-pet-utility-actions a {
  color: #ffffff;
  background: #0f1f3f;
}

.page-pet-card .page-pet-utility-actions button:hover {
  background: #dbeafe;
}

.page-pet-card .page-pet-utility-actions a:hover {
  background: #1d4ed8;
}

@media (max-width: 720px) {
  .page-pet-card .page-pet-messages {
    max-height: 140px;
  }
}

/* page-pet-translation-chat-v2 */
.page-pet-card:not(.page-pet-chat) {
  width: min(370px, calc(100vw - 112px));
  border: 1.5px solid #c9d7ec;
  box-shadow: 0 22px 56px rgba(15, 23, 42, .20), 0 0 0 1px rgba(255,255,255,.86) inset;
}

.page-pet-card-head {
  margin: -4px -4px 10px;
  padding: 8px 10px;
  border: 1px solid #dbe7f7;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  cursor: grab;
  user-select: none;
}

.page-pet-card-head strong::after {
  content: " 可拖拽";
  margin-left: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.page-pet.dragging .page-pet-card-head {
  cursor: grabbing;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .18);
}

.page-pet-card .page-pet-messages {
  max-height: 210px;
  border: 1px solid #e0e9f6;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.page-pet-card .page-pet-messages article.assistant {
  background: #fff8d8;
  border-color: #f8df85;
}

.page-pet-card .page-pet-messages article.user {
  background: #2563eb;
  color: #fff;
}

.page-pet-card .page-pet-form textarea {
  min-height: 58px;
  border-radius: 12px;
}

.page-pet-card .page-pet-utility-actions button,
.page-pet-card .page-pet-utility-actions a {
  min-height: 38px;
  border-radius: 10px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .page-pet-card:not(.page-pet-chat) {
    width: min(330px, calc(100vw - 92px));
  }
  .page-pet-card .page-pet-messages {
    max-height: 170px;
  }
}

/* customer-service-full-panel-v1 */
.customer-service-layout .ai-main.customer-service-main {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 22px;
  padding-right: 22px;
}

.customer-service-main .ozon-service-panel {
  width: 100%;
  max-width: none;
}

.customer-service-main .ozon-service-body {
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .customer-service-main .ozon-service-body {
    grid-template-columns: 1fr;
  }
}

/* customer-service-desk-spacing-v1 */
.customer-service-layout .ai-main.customer-service-main {
  padding: 30px clamp(34px, 4vw, 72px) 96px;
  background: #f7f9fc;
}

.customer-service-main .ozon-service-panel {
  max-width: 1480px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid #dbe5f2;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
}

.customer-service-main .ozon-service-body {
  min-height: calc(100vh - 320px);
}

.customer-service-main .ozon-chat-list,
.customer-service-main .ozon-chat-detail {
  max-height: calc(100vh - 315px);
}

@media (max-width: 900px) {
  .customer-service-layout .ai-main.customer-service-main {
    padding: 18px 14px 76px;
  }
}

/* guide-page-v2 */
.guide-main-v2 {
  padding: 34px clamp(28px, 4vw, 64px) 96px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.guide-hero-v2 {
  width: min(1240px, 100%);
  padding: 28px 32px;
  border-radius: 18px;
  border: 1px solid #d8e5f4;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}

.guide-hero-v2 h1 {
  font-size: 36px;
}

.guide-overview,
.guide-section,
.guide-grid-v2,
.guide-panel-v2 {
  width: min(1240px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.guide-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.guide-overview article {
  padding: 16px 18px;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.guide-overview strong {
  display: block;
  color: #10213f;
  font-size: 16px;
  margin-bottom: 6px;
}

.guide-overview span {
  color: #5b6b83;
  font-size: 13px;
  line-height: 1.55;
}

.guide-section {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #dbe6f4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}

.guide-section-title p {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-section-title h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 24px;
}

.guide-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-flow;
}

.guide-flow li {
  position: relative;
  padding: 16px 16px 16px 48px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e3edf8;
}

.guide-flow li::before {
  counter-increment: guide-flow;
  content: counter(guide-flow);
  position: absolute;
  left: 14px;
  top: 15px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0f1f3f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.guide-flow b {
  display: block;
  color: #0f172a;
  font-size: 15px;
  margin-bottom: 6px;
}

.guide-flow span {
  color: #5b6b83;
  font-size: 13px;
  line-height: 1.58;
}

.guide-grid-v2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid-v2 .guide-card {
  min-height: 0;
  border-radius: 16px;
  border-color: #dbe6f4;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}

.guide-grid-v2 .guide-card-wide {
  grid-column: span 2;
}

.guide-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.guide-steps.compact {
  margin-top: 12px;
}

.guide-steps.compact li {
  padding-top: 10px;
  padding-bottom: 10px;
}

.guide-panel-v2 {
  margin-top: 18px;
  margin-bottom: 54px;
}

.guide-panel-v2 .guide-prompts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .guide-overview,
  .guide-flow,
  .guide-panel-v2 .guide-prompts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guide-main-v2 {
    padding: 22px 14px 76px;
  }
  .guide-overview,
  .guide-flow,
  .guide-grid-v2,
  .guide-panel-v2 .guide-prompts {
    grid-template-columns: 1fr;
  }
  .guide-grid-v2 .guide-card-wide {
    grid-column: auto;
  }
}

/* guide-page-v3-tabs */
.guide-layout .guide-main-v3 {
  padding: 30px clamp(24px, 4vw, 64px) 96px;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
}

.guide-main-v3,
.guide-main-v3 * {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.guide-main-v3 .guide-hero-v3,
.guide-main-v3 .guide-tabs-shell {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.guide-main-v3 .guide-hero-v3 {
  margin-bottom: 18px;
  padding: 26px 30px;
  border-radius: 18px;
  border: 1px solid #d8e5f4;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, .08);
}

.guide-main-v3 .guide-hero-v3 h1 {
  margin: 2px 0 10px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: 0;
}

.guide-main-v3 .guide-hero-v3 p {
  margin: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 950;
}

.guide-main-v3 .guide-hero-v3 span {
  display: block;
  max-width: 820px;
  color: #53647d;
  font-size: 15px;
  line-height: 1.75;
}

.guide-tabs-shell {
  padding: 18px;
  border: 1px solid #d8e5f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 52px rgba(15, 23, 42, .075);
}

.guide-tabs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.guide-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: #f8fbff;
  color: #31425c;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.guide-tabs button:hover {
  border-color: #a9c5ee;
  background: #edf5ff;
}

.guide-tabs button.active {
  border-color: #1d4ed8;
  background: #0f1f3f;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 31, 63, .18);
}

#guideTabSelect {
  width: 190px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd8ea;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2f48;
  font-size: 14px;
  font-weight: 800;
}

.guide-page {
  display: none;
}

.guide-page.active {
  display: block;
}

.guide-page-title {
  padding: 18px 18px 14px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid #e2ebf6;
}

.guide-page-title p {
  margin: 0 0 5px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-page-title h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.guide-page-title span {
  display: block;
  color: #637289;
  font-size: 14px;
  line-height: 1.7;
}

.guide-page-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.guide-page-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-page-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-page-grid section,
.guide-example-list,
.guide-note {
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #e0e9f5;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.guide-page-grid h3 {
  margin: 0 0 10px;
  color: #10213f;
  font-size: 17px;
  line-height: 1.3;
}

.guide-page-grid p,
.guide-page-grid li,
.guide-note,
.guide-example-list span {
  color: #475569;
  font-size: 15px;
  line-height: 1.78;
  word-break: normal;
  overflow-wrap: break-word;
}

.guide-page-grid ul,
.guide-page-grid ol {
  margin: 0;
  padding-left: 20px;
}

.guide-page-grid code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 8px;
  background: #eef4fb;
  color: #0f3b7a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.guide-example-list,
.guide-note {
  margin-top: 14px;
}

.guide-example-list b {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 15px;
}

.guide-example-list span {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fbff;
  border: 1px solid #e5edf7;
}

@media (max-width: 980px) {
  .guide-tabs-head {
    align-items: stretch;
    flex-direction: column;
  }
  #guideTabSelect {
    width: 100%;
  }
  .guide-page-grid.two,
  .guide-page-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .guide-layout .guide-main-v3 {
    padding: 18px 12px 78px;
  }
  .guide-main-v3 .guide-hero-v3,
  .guide-tabs-shell {
    border-radius: 14px;
  }
  .guide-main-v3 .guide-hero-v3,
  .guide-tabs-shell,
  .guide-page-title,
  .guide-page-grid section,
  .guide-example-list,
  .guide-note {
    padding: 14px;
  }
  .guide-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .guide-tabs button {
    flex: 0 0 auto;
  }
}

/* operations-template-page-v1 */
.workbench-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.workbench-card-link article {
  height: 100%;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.workbench-card-link:hover article {
  transform: translateY(-2px);
  border-color: #7fb0ff;
  box-shadow: 0 18px 38px rgba(37, 99, 235, .12);
}

.workbench-card-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: #0f1f3f;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.operations-main {
  padding: 30px clamp(28px, 4vw, 68px) 96px;
  overflow-y: auto;
  background: #f6f9fd;
}

.operations-hero,
.operations-status-grid,
.operations-panel {
  width: min(1220px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.operations-hero {
  padding: 28px 32px;
  border: 1px solid #d7e4f4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, .08);
}

.operations-hero p,
.operations-panel-head p {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.operations-hero h1,
.operations-panel-head h2 {
  margin: 0 0 10px;
  color: #0f172a;
  letter-spacing: 0;
}

.operations-hero h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
}

.operations-hero span,
.operations-panel-head span {
  display: block;
  max-width: 880px;
  color: #5b6b83;
  font-size: 15px;
  line-height: 1.72;
}

.operations-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.operations-status-grid article,
.operations-table-grid article,
.operations-display-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfe9f6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.operations-status-grid small,
.operations-table-grid span {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.operations-status-grid strong,
.operations-table-grid strong,
.operations-display-grid strong {
  display: block;
  color: #10213f;
  font-size: 18px;
  line-height: 1.28;
}

.operations-status-grid span,
.operations-table-grid p,
.operations-display-grid p,
.operations-flow span {
  display: block;
  margin-top: 8px;
  color: #53647d;
  font-size: 14px;
  line-height: 1.68;
}

.operations-panel {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #d7e4f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}

.operations-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.operations-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: operations-flow;
}

.operations-flow li {
  position: relative;
  min-width: 0;
  padding: 18px 16px 16px 52px;
  border: 1px solid #e0e9f5;
  border-radius: 15px;
  background: #f8fbff;
}

.operations-flow li::before {
  counter-increment: operations-flow;
  content: counter(operations-flow);
  position: absolute;
  left: 16px;
  top: 17px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #0f1f3f;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.operations-flow b {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.operations-display-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .operations-status-grid,
  .operations-table-grid,
  .operations-display-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operations-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .operations-main {
    padding: 18px 12px 76px;
  }
  .operations-hero,
  .operations-panel {
    padding: 16px;
    border-radius: 14px;
  }
  .operations-status-grid,
  .operations-table-grid,
  .operations-display-grid,
  .operations-flow {
    grid-template-columns: 1fr;
  }
}

/* knowledge-compact-review-v2 */
.knowledge-layout .ai-main.knowledge-main {
  padding: 28px clamp(34px, 4.8vw, 86px) 110px;
  gap: 12px;
  align-content: start;
  background: #fbfcfe;
}

.knowledge-main .knowledge-hero {
  display: none;
}

.knowledge-main .knowledge-grid,
.knowledge-main .corpus-panel {
  width: min(1220px, calc(100vw - 110px));
}

.knowledge-main .knowledge-grid {
  gap: 10px;
}

.knowledge-main .knowledge-grid article {
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.knowledge-main .knowledge-grid strong {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.25;
}

.knowledge-main .knowledge-grid p {
  font-size: 12px;
  line-height: 1.35;
}

.knowledge-main .corpus-panel {
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.knowledge-main .primary-review-panel {
  margin-top: 2px;
}

.knowledge-main .corpus-head {
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}

.knowledge-main .corpus-head p {
  margin-bottom: 2px;
  font-size: 11px;
}

.knowledge-main .corpus-head h2 {
  font-size: 22px;
  line-height: 1.15;
}

.knowledge-main .corpus-head span,
.knowledge-main .corpus-note {
  font-size: 12px;
  line-height: 1.45;
}

.knowledge-main .corpus-actions {
  grid-template-columns: minmax(170px, 260px) auto;
  gap: 10px;
}

.knowledge-main .corpus-actions input,
.knowledge-main .corpus-actions button {
  min-height: 38px;
  border-radius: 10px;
}

.knowledge-main .corpus-note {
  margin: 8px 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
}

.daily-review-stats {
  gap: 10px;
  margin: 8px 0 10px;
}

.daily-review-stats article {
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 9px;
}

.daily-review-stats strong {
  font-size: 21px;
}

.daily-review-stats span {
  margin-top: 4px;
  font-size: 12px;
}

.knowledge-main .corpus-body {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 430px);
}

.knowledge-main .primary-review-panel .corpus-body {
  min-height: calc(100vh - 360px);
}

.knowledge-main .corpus-list,
.knowledge-main .corpus-detail,
.daily-review-body .corpus-detail {
  max-height: calc(100vh - 370px);
}

.knowledge-main .corpus-sku {
  margin-bottom: 10px;
  padding: 11px 12px;
}

.knowledge-main .corpus-example {
  margin-bottom: 12px;
  padding: 13px 15px;
}

.knowledge-main .corpus-panel:last-child {
  margin-bottom: 58px;
}

@media (max-width: 1180px) {
  .knowledge-main .knowledge-grid,
  .knowledge-main .corpus-panel {
    width: min(100%, calc(100vw - 42px));
  }
}

@media (max-width: 980px) {
  .knowledge-layout .ai-main.knowledge-main {
    padding: 18px 14px 86px;
  }
  .knowledge-main .knowledge-grid,
  .knowledge-main .corpus-panel {
    width: 100%;
  }
  .knowledge-main .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .knowledge-main .corpus-body,
  .knowledge-main .primary-review-panel .corpus-body {
    min-height: 540px;
  }
  .knowledge-main .corpus-list,
  .knowledge-main .corpus-detail,
  .daily-review-body .corpus-detail {
    max-height: 620px;
  }
}

@media (max-width: 720px) {
  .knowledge-main .knowledge-grid {
    grid-template-columns: 1fr;
  }
  .daily-review-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* operations-data-table-v2 */
.operations-layout .operations-data-main {
  padding: 24px clamp(28px, 4vw, 64px) 92px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f6f8fb;
}

.ops-data-head,
.ops-filters,
.ops-table-shell {
  width: min(1480px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.ops-data-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ops-data-head p {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.ops-data-head h1 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
}

.ops-data-head span {
  color: #60708a;
  font-size: 13px;
}

.ops-open-dashboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: #0f1f3f;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.ops-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.25fr) 150px 150px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.ops-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ops-filters span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.ops-filters input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd8ea;
  border-radius: 9px;
  padding: 0 10px;
  color: #10213f;
  font-size: 13px;
  outline: none;
}

.ops-filters input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.ops-filters button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.ops-table-shell {
  padding: 12px;
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.ops-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.ops-tabs button {
  flex: 0 0 auto;
  min-width: 178px;
  padding: 10px 12px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #f8fbff;
  text-align: left;
  cursor: pointer;
}

.ops-tabs button strong {
  display: block;
  color: #10213f;
  font-size: 14px;
  line-height: 1.25;
}

.ops-tabs button span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
}

.ops-tabs button.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18);
}

.ops-tabs button.missing span {
  color: #b45309;
}

.ops-table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.ops-table-meta strong {
  color: #0f172a;
  font-size: 16px;
}

.ops-table-meta span {
  color: #64748b;
  font-size: 13px;
}

.ops-table-wrap {
  width: 100%;
  max-height: calc(100vh - 310px);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.ops-data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.ops-data-table th,
.ops-data-table td {
  max-width: 320px;
  padding: 9px 11px;
  border-bottom: 1px solid #edf2f7;
  border-right: 1px solid #edf2f7;
  color: #26364f;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.ops-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.ops-data-table th small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.ops-data-table tbody tr:hover td {
  background: #f8fbff;
}

.ops-empty {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.ops-empty strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 15px;
}

.ops-empty p {
  margin: 4px 0 0;
}

.ops-empty code {
  padding: 2px 6px;
  border-radius: 7px;
  background: #e8eef7;
  color: #0f3b7a;
}

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

@media (max-width: 760px) {
  .operations-layout .operations-data-main {
    padding: 18px 12px 78px;
  }
  .ops-data-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .ops-filters {
    grid-template-columns: 1fr;
  }
  .ops-table-wrap {
    max-height: 60vh;
  }
}

/* daily-review-attachments-v1 */
.daily-review-body .daily-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 240px));
  gap: 10px;
  margin-top: 10px;
}

.daily-review-body .daily-attachment {
  display: block;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #1d4ed8;
  text-decoration: none;
}

.daily-review-body .daily-attachment img,
.daily-review-body .daily-attachment video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2ff;
}

.daily-review-body .daily-attachment span,
.daily-review-body .daily-attachment-video a {
  display: block;
  padding: 7px 9px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.daily-review-body .daily-attachment-video {
  cursor: default;
}
/* daily-ai-review-report-v1 */
.knowledge-main .daily-ai-review {
  border: 1px solid #dbe6f6;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px 16px 16px;
  margin: 12px 0 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.knowledge-main .daily-ai-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.knowledge-main .daily-ai-review-head strong {
  display: block;
  color: #071b3d;
  font-size: 16px;
  font-weight: 950;
}
.knowledge-main .daily-ai-review-head span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.knowledge-main .daily-ai-review-head button,
.knowledge-main .corpus-actions button.secondary {
  border: 1px solid #c8d8ff;
  background: #eef5ff;
  color: #1d4ed8;
}
.knowledge-main .daily-ai-review-head button {
  min-width: 92px;
  min-height: 34px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}
.knowledge-main .daily-ai-review-body {
  display: grid;
  gap: 8px;
  color: #15223b;
  font-size: 14px;
  line-height: 1.75;
}
.knowledge-main .daily-ai-review-body h4 {
  margin: 8px 0 0;
  color: #071b3d;
  font-size: 14px;
  font-weight: 950;
}
.knowledge-main .daily-ai-review-body p {
  margin: 0;
}
.knowledge-main .daily-ai-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
}
.knowledge-main .daily-ai-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #e0ecff;
  color: #1d4ed8;
  font-size: 12px;
}
@media (max-width: 900px) {
  .knowledge-main .daily-ai-review-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .knowledge-main .daily-ai-review-head button {
    width: 100%;
  }
}


/* operations-feishu-bitable-v5 */
.template-bitable-layout .operations-data-main {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.template-bitable-layout .static-tabs button {
  cursor: default;
}

.template-table-shell {
  margin: 0;
}

.template-data-table tr.clickable {
  cursor: pointer;
}

.template-data-table tr.clickable:hover td {
  background: #f7fbff;
}

.template-data-table tr.disabled {
  color: #8a96a8;
}

.template-data-table td:last-child a,
.template-data-table td:last-child span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d9e4f5;
  border-radius: 6px;
  background: #ffffff;
  color: #2563eb;
  text-decoration: none;
  font-weight: 800;
}

.template-data-table td:last-child span {
  color: #8a96a8;
}

.ops-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.ops-status.enabled {
  background: #e8f7ef;
  color: #15803d;
}

.operations-bitable-layout .ops-data-table th {
  letter-spacing: 0;
}

/* template-center-bitable-layout-v2 */
.ai-workbench.template-bitable-layout .ai-main.operations-data-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: stretch;
  justify-content: stretch;
  align-content: start;
  gap: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #f6f7fb;
}

.template-bitable-layout .ops-bitable-head,
.template-bitable-layout .ops-tabs,
.template-bitable-layout .template-table-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.template-bitable-layout .ops-bitable-head {
  padding: 22px 28px 16px;
  border-bottom: 1px solid #e6ebf3;
  background: #ffffff;
}

.template-bitable-layout .ops-bitable-return {
  margin-bottom: 10px;
}

.template-bitable-layout .ops-bitable-title-row {
  align-items: flex-start;
  justify-content: flex-start;
}

.template-bitable-layout .ops-bitable-title-row h1 {
  font-size: 30px;
  line-height: 1.18;
}

.template-bitable-layout .ops-bitable-title-row p {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.7;
}

.template-bitable-layout .ops-tabs.static-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 24px 0;
  overflow-x: auto;
  border-bottom: 1px solid #e3e9f2;
  background: #ffffff;
}

.template-bitable-layout .ops-tabs.static-tabs button {
  min-width: 154px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  box-shadow: none;
}

.template-bitable-layout .ops-tabs.static-tabs button.active {
  background: #edf4ff;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.template-bitable-layout .template-table-shell {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.template-bitable-layout .ops-table-meta {
  min-height: 44px;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid #e8eef6;
  background: #ffffff;
}

.template-bitable-layout .ops-table-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.template-bitable-layout .template-data-table {
  width: 100%;
  min-width: 980px;
}

.template-bitable-layout .template-data-table th,
.template-bitable-layout .template-data-table td {
  padding: 12px 14px;
  white-space: normal;
  vertical-align: middle;
}

.template-bitable-layout .template-data-table th:nth-child(1),
.template-bitable-layout .template-data-table td:nth-child(1) {
  width: 120px;
}

.template-bitable-layout .template-data-table th:nth-child(2),
.template-bitable-layout .template-data-table td:nth-child(2) {
  width: 260px;
}

.template-bitable-layout .template-data-table th:nth-child(3),
.template-bitable-layout .template-data-table td:nth-child(3) {
  width: 120px;
}

.template-bitable-layout .template-data-table th:nth-child(5),
.template-bitable-layout .template-data-table td:nth-child(5) {
  width: 130px;
}

/* operations-page-bitable-layout-v3 */
.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ai-main.operations-data-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-items: stretch !important;
  justify-content: stretch !important;
  align-content: start !important;
  gap: 0;
  min-width: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f6f7fb !important;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-bitable-head,
.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-tabs,
.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-filters,
.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-table-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-bitable-head {
  padding: 20px 28px 15px;
  border-bottom: 1px solid #e6ebf3;
  background: #ffffff;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-bitable-title-row {
  align-items: flex-end;
  justify-content: space-between;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-bitable-title-row h1 {
  font-size: 28px;
  line-height: 1.18;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 24px 0;
  overflow-x: auto;
  border-bottom: 1px solid #e3e9f2;
  background: #ffffff;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-tabs button {
  min-width: 138px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  box-shadow: none;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-tabs button.active {
  background: #edf4ff;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-filters {
  display: grid !important;
  grid-template-columns: minmax(140px, .9fr) minmax(200px, 1.1fr) 148px 148px minmax(210px, 1fr) 88px;
  gap: 8px;
  align-items: end;
  padding: 10px 24px;
  border: 0;
  border-bottom: 1px solid #e6ebf3;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-filters input,
.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-filters button {
  min-height: 34px;
  border-radius: 6px;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-table-shell {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-table-meta {
  min-height: 44px;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid #e8eef6;
  background: #ffffff;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-table-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-data-table {
  width: max-content;
  min-width: 100%;
}

.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-empty {
  margin: 16px 24px;
}

@media (max-width: 1180px) {
  .ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ai-main.operations-data-main {
    height: auto;
    min-height: 100vh;
    overflow: auto !important;
  }
  .ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ops-filters {
    grid-template-columns: 1fr;
  }
}

/* operations-feishu-sync-button-v1 */
.ops-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ops-sync-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.ops-sync-button:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 760px) {
  .ops-head-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}
/* daily-ai-review-layout-v2 */
.knowledge-layout .ai-main.knowledge-main {
  padding-bottom: 180px;
  scroll-padding-bottom: 180px;
}

.knowledge-main .primary-review-panel {
  margin-bottom: 96px;
}

.knowledge-main .daily-ai-review {
  padding: 16px;
  margin: 14px 0 18px;
  overflow: visible;
}

.knowledge-main .daily-ai-review-head {
  align-items: flex-start;
}

.knowledge-main .daily-ai-review-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.knowledge-main .daily-ai-review-actions a,
.knowledge-main .daily-ai-review-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c8d8ff;
  border-radius: 8px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.knowledge-main .daily-ai-review-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 100%;
  padding-bottom: 18px;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.knowledge-main .daily-ai-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.knowledge-main .daily-ai-section h4 {
  margin: 0;
  color: #0f2552;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
}

.knowledge-main .daily-ai-section p,
.knowledge-main .daily-ai-step span {
  min-width: 0;
  color: #25324a;
  font-size: 14px;
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.knowledge-main .daily-ai-bullet {
  position: relative;
  padding-left: 16px;
}

.knowledge-main .daily-ai-bullet::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #2563eb;
}

.knowledge-main .daily-ai-step {
  grid-template-columns: minmax(28px, auto) minmax(0, 1fr);
}

.knowledge-main .daily-ai-step b {
  width: auto;
  min-width: 24px;
  padding: 0 6px;
  white-space: nowrap;
}

@media (min-width: 1181px) {
  .knowledge-main .primary-review-panel {
    padding-right: 170px;
  }
}

@media (max-width: 900px) {
  .knowledge-layout .ai-main.knowledge-main {
    padding-bottom: 150px;
  }
  .knowledge-main .daily-ai-review-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .knowledge-main .daily-ai-review-actions a,
  .knowledge-main .daily-ai-review-head button {
    width: 100%;
  }
}
/* knowledge-nav-cards-v3 */
.knowledge-main .knowledge-nav-grid {
  scroll-margin-top: 18px;
}

.knowledge-main .knowledge-grid .knowledge-card {
  display: block;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.knowledge-main .knowledge-grid .knowledge-card.active,
.knowledge-main .knowledge-grid .knowledge-card:target {
  border-color: #93c5fd;
  background: #eff6ff;
}

.knowledge-main .knowledge-grid .knowledge-card:hover {
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.knowledge-main #dailyReviewPanel,
.knowledge-main #customerCorpusPanel {
  scroll-margin-top: 20px;
}

.knowledge-main .daily-ai-review-actions {
  flex-wrap: wrap;
}

.knowledge-main .daily-ai-review-actions button:first-child {
  border-color: #bfdbfe;
  background: #eaf2ff;
  color: #155eef;
}

@media (max-width: 900px) {
  .knowledge-main .daily-ai-review-actions {
    grid-template-columns: 1fr;
  }
}
/* adaptive-visual-viewport-v1 */
:root {
  --app-frame-gap: clamp(12px, 2vw, 34px);
  --app-frame-bottom: clamp(72px, 8vh, 120px);
  --app-sidebar-width: clamp(224px, 16vw, 268px);
  --app-content-max: 1540px;
  --app-panel-radius: 14px;
}

body:has(.ai-workbench) {
  overflow: hidden;
}

.ai-workbench.minimal-layout,
.ai-workbench:has(.minimal-home),
.guide-layout.ai-workbench {
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  min-width: 0;
}

.ai-workbench.minimal-layout .ai-sidebar,
.ai-workbench:has(.minimal-home) .ai-sidebar,
.guide-layout .ai-sidebar {
  width: var(--app-sidebar-width);
  min-width: 0;
}

.ai-workbench.minimal-layout .ai-main,
.guide-layout .ai-main,
.customer-service-layout .ai-main.customer-service-main,
.knowledge-layout .ai-main.knowledge-main,
.operations-layout .operations-data-main,
.ai-workbench.operations-bitable-layout:not(.template-bitable-layout) .ai-main.operations-data-main {
  min-width: 0;
  box-sizing: border-box;
  padding-left: max(var(--app-frame-gap), env(safe-area-inset-left));
  padding-right: max(var(--app-frame-gap), env(safe-area-inset-right));
  padding-bottom: max(var(--app-frame-bottom), env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.customer-service-main .ozon-service-panel,
.knowledge-main .knowledge-grid,
.knowledge-main .corpus-panel,
.guide-main-v3 .guide-shell,
.guide-main-v2 .guide-hero-v2,
.guide-main-v2 .guide-content-v2,
.operations-layout .ops-data-head,
.operations-layout .ops-filters,
.operations-layout .ops-table-shell,
.operations-main .operations-hero,
.operations-main .operations-panel {
  width: min(var(--app-content-max), 100%);
  max-width: calc(100vw - var(--app-sidebar-width) - (var(--app-frame-gap) * 2));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.customer-service-main .ozon-service-panel,
.knowledge-main .corpus-panel,
.guide-main-v3 .guide-shell,
.guide-main-v2 .guide-hero-v2,
.guide-main-v2 .guide-content-v2,
.operations-layout .ops-table-shell,
.operations-main .operations-hero,
.operations-main .operations-panel {
  border-radius: var(--app-panel-radius);
}

.customer-service-main .ozon-chat-list,
.customer-service-main .ozon-chat-detail,
.knowledge-main .corpus-list,
.knowledge-main .corpus-detail,
.daily-review-body .corpus-detail {
  min-width: 0;
}

@media (min-width: 1800px) {
  :root {
    --app-content-max: 1620px;
    --app-frame-gap: 42px;
  }
}

@media (max-width: 1180px) {
  :root {
    --app-sidebar-width: 232px;
    --app-content-max: 100%;
  }
}

@media (max-width: 900px) {
  :root {
    --app-frame-gap: 12px;
    --app-frame-bottom: 88px;
  }

  body:has(.ai-workbench) {
    overflow: auto;
  }

  .ai-workbench.minimal-layout,
  .ai-workbench:has(.minimal-home),
  .guide-layout.ai-workbench {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .ai-workbench.minimal-layout .ai-sidebar,
  .ai-workbench:has(.minimal-home) .ai-sidebar,
  .guide-layout .ai-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
  }

  .ai-workbench.minimal-layout .ai-page-nav,
  .ai-workbench:has(.minimal-home) .ai-page-nav,
  .guide-layout .ai-page-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .ai-workbench.minimal-layout .ai-page-nav a,
  .ai-workbench:has(.minimal-home) .ai-page-nav a,
  .guide-layout .ai-page-nav a {
    flex: 0 0 auto;
  }

  .customer-service-main .ozon-service-panel,
  .knowledge-main .knowledge-grid,
  .knowledge-main .corpus-panel,
  .guide-main-v3 .guide-shell,
  .guide-main-v2 .guide-hero-v2,
  .guide-main-v2 .guide-content-v2,
  .operations-layout .ops-data-head,
  .operations-layout .ops-filters,
  .operations-layout .ops-table-shell,
  .operations-main .operations-hero,
  .operations-main .operations-panel {
    max-width: calc(100vw - (var(--app-frame-gap) * 2));
  }
}

/* firefly-page-pet-visibility-guard-v1 */
.page-pet {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: auto;
  top: auto;
  z-index: 2147483000;
  display: block;
  width: 78px;
  height: 78px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  pointer-events: none;
  overflow: visible;
}

.page-pet-body {
  position: absolute;
  right: 0;
  bottom: 0;
  flex: 0 0 auto;
  pointer-events: auto;
}

.page-pet-card {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  width: min(340px, calc(100vw - 112px));
  max-height: min(72vh, 560px);
  overflow: auto;
}

.page-pet.collapsed .page-pet-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .page-pet {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 72px;
    height: 72px;
  }

  .page-pet-body {
    transform-origin: right bottom;
  }

  .page-pet-card {
    right: 0;
    bottom: calc(100% + 10px);
    width: min(340px, calc(100vw - 28px));
    max-height: min(64vh, 460px);
  }
}

/* sidebar-polish-v1 */
.ai-workbench.minimal-layout {
  --sidebar-ink: #0f172a;
  --sidebar-muted: #64748b;
  --sidebar-line: #e5edf7;
  --sidebar-blue: #2563eb;
  --sidebar-blue-soft: #eaf2ff;
  --sidebar-panel: #f7f9fd;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .055), transparent 28%),
    #ffffff;
}

.ai-workbench.minimal-layout .ai-sidebar {
  position: relative;
  border-right: 1px solid var(--sidebar-line);
  background:
    linear-gradient(180deg, #fbfdff 0%, var(--sidebar-panel) 48%, #f4f7fb 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .75);
}

.ai-workbench.minimal-layout .ai-side-top {
  justify-content: center;
  padding: 24px 18px 14px;
}

.ai-workbench.minimal-layout .ai-brand {
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, .06),
    inset 0 1px 0 rgba(255, 255, 255, .86);
}

.ai-workbench.minimal-layout .ai-brand::before {
  width: 78%;
  height: 78%;
  margin: auto;
  filter: drop-shadow(0 12px 18px rgba(37, 99, 235, .14));
}

.ai-workbench.minimal-layout .ai-new-chat {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  margin: 12px 14px 18px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 14px 28px rgba(15, 23, 42, .055),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  color: var(--sidebar-ink);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ai-workbench.minimal-layout .ai-new-chat::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sidebar-blue);
  color: #ffffff;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(37, 99, 235, .24);
}

.ai-workbench.minimal-layout .ai-new-chat:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .38);
  background: #ffffff;
  box-shadow:
    0 18px 34px rgba(37, 99, 235, .11),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.ai-workbench.minimal-layout .ai-page-nav {
  gap: 6px;
  padding: 0 14px 12px;
}

.ai-workbench.minimal-layout .ai-page-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--sidebar-ink);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.ai-workbench.minimal-layout .ai-page-nav a::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: var(--sidebar-blue);
  transition: height .16s ease;
}

.ai-workbench.minimal-layout .ai-page-nav a:hover {
  transform: translateX(1px);
  border-color: rgba(148, 163, 184, .18);
  background: rgba(255, 255, 255, .74);
  color: var(--sidebar-blue);
}

.ai-workbench.minimal-layout .ai-page-nav a.active {
  border-color: rgba(37, 99, 235, .12);
  background: var(--sidebar-blue-soft);
  color: var(--sidebar-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.ai-workbench.minimal-layout .ai-page-nav a.active::before,
.ai-workbench.minimal-layout .ai-page-nav a:hover::before {
  height: 20px;
}

.ai-workbench.minimal-layout .ai-history {
  margin: 4px 10px 0;
  padding: 4px 4px 18px;
  border-top: 1px solid rgba(226, 232, 240, .86);
}

.ai-workbench.minimal-layout .ai-history p {
  margin: 14px 8px 8px;
  color: var(--sidebar-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
}

.ai-workbench.minimal-layout .ai-history a {
  border-radius: 11px;
  color: #475569;
  font-size: 13px;
}

.ai-workbench.minimal-layout .ai-history a:hover {
  background: rgba(255, 255, 255, .76);
  color: var(--sidebar-blue);
}

.ai-workbench.minimal-layout .ai-user {
  min-height: 64px;
  margin: 0 12px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .045);
}

.ai-workbench.minimal-layout .ai-user span {
  min-width: 0;
  overflow: hidden;
  color: var(--sidebar-ink);
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-workbench.minimal-layout .ai-user button {
  border-radius: 10px;
  color: var(--sidebar-muted);
}

.ai-workbench.minimal-layout .ai-user button:hover {
  background: var(--sidebar-blue-soft);
  color: var(--sidebar-blue);
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout .ai-side-top {
    justify-content: flex-start;
    padding: 14px 14px 8px;
  }

  .ai-workbench.minimal-layout .ai-brand {
    width: 62px;
    height: 62px;
    margin: 0;
    border-radius: 16px;
  }

  .ai-workbench.minimal-layout .ai-new-chat {
    min-height: 44px;
  }

  .ai-workbench.minimal-layout .ai-page-nav {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* industry-4-command-ui-v1 */
.ai-workbench.minimal-layout {
  --i4-ink: #07111f;
  --i4-muted: #5d6b82;
  --i4-blue: #2563eb;
  --i4-cyan: #06b6d4;
  --i4-amber: #f5a400;
  --i4-mint: #18b981;
  --i4-panel: rgba(255, 255, 255, .78);
  --i4-line: rgba(37, 99, 235, .13);
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(6, 182, 212, .07), transparent 34%, rgba(245, 164, 0, .055) 68%, transparent),
    linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px),
    #f8fbff;
  background-size: auto, auto, 36px 36px, 36px 36px, auto;
}

.ai-workbench.minimal-layout::before {
  content: "";
  position: fixed;
  inset: 0 0 0 var(--app-sidebar-width, 268px);
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 46%, rgba(6, 182, 212, .12) 46.2%, transparent 46.7%),
    linear-gradient(145deg, transparent 0 62%, rgba(245, 164, 0, .12) 62.2%, transparent 62.7%),
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(37, 99, 235, .055) 86px 87px, transparent 87px 174px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.ai-workbench.minimal-layout::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(6, 182, 212, .42) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(245, 164, 0, .36) 0 1px, transparent 1.6px);
  background-position: 72% 34%, 58% 66%;
  background-size: 180px 180px, 240px 240px;
  opacity: .42;
}

.ai-workbench.minimal-layout .ai-sidebar {
  z-index: 2;
  border-right: 1px solid rgba(6, 182, 212, .22);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(239, 246, 255, .91)),
    linear-gradient(90deg, rgba(37, 99, 235, .11), transparent 42%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, .85),
    12px 0 36px rgba(15, 23, 42, .045);
}

.ai-workbench.minimal-layout .ai-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(6, 182, 212, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.ai-workbench.minimal-layout .ai-brand {
  position: relative;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(6, 182, 212, .18);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(237, 246, 255, .78));
  box-shadow:
    0 20px 38px rgba(15, 23, 42, .07),
    0 0 0 7px rgba(37, 99, 235, .035),
    inset 0 1px 0 rgba(255, 255, 255, .94);
}

.ai-workbench.minimal-layout .ai-brand::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 30px;
  border: 1px solid rgba(245, 164, 0, .28);
  border-top-color: rgba(6, 182, 212, .28);
  opacity: .72;
}

.ai-workbench.minimal-layout .ai-new-chat {
  border-color: rgba(6, 182, 212, .32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(235, 248, 255, .86));
  box-shadow:
    0 16px 34px rgba(37, 99, 235, .10),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

.ai-workbench.minimal-layout .ai-new-chat::before {
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 12%, transparent 13%),
    linear-gradient(135deg, var(--i4-blue), var(--i4-cyan));
  box-shadow:
    0 10px 18px rgba(37, 99, 235, .28),
    0 0 0 4px rgba(6, 182, 212, .10);
}

.ai-workbench.minimal-layout .ai-page-nav a {
  color: var(--i4-ink);
}

.ai-workbench.minimal-layout .ai-page-nav a.active {
  border-color: rgba(6, 182, 212, .24);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .13), rgba(6, 182, 212, .075)),
    rgba(255, 255, 255, .74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 10px 22px rgba(37, 99, 235, .08);
}

.ai-workbench.minimal-layout .ai-page-nav a::before {
  background: linear-gradient(180deg, var(--i4-cyan), var(--i4-blue));
  box-shadow: 0 0 12px rgba(6, 182, 212, .32);
}

.ai-workbench.minimal-layout .ai-main {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), transparent 44%, rgba(240, 249, 255, .52)),
    transparent;
}

.ai-workbench.minimal-layout .ai-main::before {
  content: "";
  position: absolute;
  inset: clamp(22px, 3vw, 46px);
  pointer-events: none;
  border: 1px solid rgba(37, 99, 235, .08);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(6, 182, 212, .13), transparent 18%, transparent 82%, rgba(245, 164, 0, .10)),
    linear-gradient(rgba(15, 23, 42, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .025) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  opacity: .72;
}

.ai-workbench.minimal-layout .minimal-home {
  position: relative;
  z-index: 2;
}

.ai-workbench.minimal-layout .minimal-title {
  position: relative;
}

.ai-workbench.minimal-layout .minimal-title::before,
.ai-workbench.minimal-layout .minimal-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(15vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, .44), transparent);
}

.ai-workbench.minimal-layout .minimal-title::before {
  right: calc(100% + 34px);
}

.ai-workbench.minimal-layout .minimal-title::after {
  left: calc(100% + 34px);
}

.ai-workbench.minimal-layout .minimal-logo {
  position: relative;
  width: 118px;
  height: 118px;
  margin-bottom: 12px;
  filter: drop-shadow(0 22px 30px rgba(245, 164, 0, .14));
}

.ai-workbench.minimal-layout .minimal-title h1 {
  color: var(--i4-ink);
  text-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.ai-workbench.minimal-layout .minimal-title p {
  color: var(--i4-muted);
}

.ai-workbench.minimal-layout .minimal-input-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .26);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(248, 252, 255, .78)),
    var(--i4-panel);
  box-shadow:
    0 28px 70px rgba(37, 99, 235, .14),
    0 0 0 7px rgba(6, 182, 212, .045),
    inset 0 1px 0 rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
}

.ai-workbench.minimal-layout .minimal-input-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 164, 0, .42), rgba(6, 182, 212, .42), rgba(37, 99, 235, .22)),
    linear-gradient(120deg, transparent 0 44%, rgba(6, 182, 212, .14) 44.2%, transparent 45%);
  height: 3px;
}

.ai-workbench.minimal-layout .minimal-input-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(37, 99, 235, .22) 0 1px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: .18;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, transparent 100%);
}

.ai-workbench.minimal-layout .minimal-actions {
  position: relative;
  z-index: 1;
}

.ai-workbench.minimal-layout .minimal-market select {
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #f7fbff, #eef7ff);
  color: var(--i4-blue);
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.ai-workbench.minimal-layout .minimal-inline-input {
  color: var(--i4-ink);
}

.ai-workbench.minimal-layout .minimal-inline-input::placeholder {
  color: #94a3b8;
}

.ai-workbench.minimal-layout .minimal-upload .upload-icon {
  color: var(--i4-ink);
}

.ai-workbench.minimal-layout .minimal-send {
  background:
    linear-gradient(145deg, #2563eb, #06b6d4);
  box-shadow:
    0 16px 34px rgba(37, 99, 235, .24),
    0 0 0 7px rgba(6, 182, 212, .10);
}

.ai-workbench.minimal-layout .minimal-send:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 42px rgba(37, 99, 235, .30),
    0 0 0 7px rgba(6, 182, 212, .13);
}

.ai-workbench.minimal-layout .minimal-examples button {
  border: 1px solid rgba(37, 99, 235, .20);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(240, 249, 255, .82));
  color: var(--i4-blue);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .08);
}

.ai-workbench.minimal-layout .minimal-examples button:hover {
  border-color: rgba(6, 182, 212, .34);
  color: #075985;
  transform: translateY(-1px);
}

.ai-workbench.minimal-layout .minimal-status {
  color: #74829a;
}

.ai-workbench.minimal-layout .page-pet {
  filter: drop-shadow(0 18px 34px rgba(245, 164, 0, .18));
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout::before {
    inset: 0;
  }

  .ai-workbench.minimal-layout .minimal-title::before,
  .ai-workbench.minimal-layout .minimal-title::after {
    display: none;
  }

  .ai-workbench.minimal-layout .minimal-logo {
    width: 92px;
    height: 92px;
  }
}

/* industry-4-command-ui-v2 */
.ai-workbench.minimal-layout {
  --i4-steel: #dbeafe;
  --i4-glass: rgba(255, 255, 255, .84);
  --i4-shadow: rgba(2, 8, 23, .12);
  background:
    linear-gradient(115deg, rgba(6, 182, 212, .09), transparent 22%, rgba(255, 255, 255, .64) 42%, transparent 64%, rgba(245, 164, 0, .075)),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, .028) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, .040) 0 1px, transparent 1px 18px),
    #f8fbff;
}

@keyframes i4ScanLine {
  0% { transform: translateX(-24%); opacity: .18; }
  48% { opacity: .34; }
  100% { transform: translateX(24%); opacity: .18; }
}

@keyframes i4HaloTurn {
  to { transform: rotate(360deg); }
}

@keyframes i4Signal {
  0%, 100% { opacity: .45; transform: translateY(0); }
  50% { opacity: .95; transform: translateY(-1px); }
}

.ai-workbench.minimal-layout .ai-main::after {
  content: "";
  position: absolute;
  inset: clamp(40px, 5vw, 82px);
  z-index: 0;
  pointer-events: none;
  border-radius: 30px;
  background:
    linear-gradient(90deg, var(--i4-cyan), transparent 13%) top left / 38% 1px no-repeat,
    linear-gradient(90deg, transparent 87%, var(--i4-amber)) top right / 38% 1px no-repeat,
    linear-gradient(90deg, var(--i4-amber), transparent 13%) bottom left / 38% 1px no-repeat,
    linear-gradient(90deg, transparent 87%, var(--i4-cyan)) bottom right / 38% 1px no-repeat,
    linear-gradient(180deg, var(--i4-cyan), transparent 18%) top left / 1px 42% no-repeat,
    linear-gradient(180deg, transparent 82%, var(--i4-amber)) bottom left / 1px 42% no-repeat,
    linear-gradient(180deg, var(--i4-amber), transparent 18%) top right / 1px 42% no-repeat,
    linear-gradient(180deg, transparent 82%, var(--i4-cyan)) bottom right / 1px 42% no-repeat;
  opacity: .62;
}

.ai-workbench.minimal-layout .minimal-home::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 64vw);
  height: min(360px, 42vh);
  z-index: -1;
  transform: translate(-50%, -47%);
  pointer-events: none;
  border: 1px solid rgba(37, 99, 235, .085);
  border-radius: 30px;
  background:
    linear-gradient(90deg, transparent, rgba(6, 182, 212, .08), transparent),
    repeating-linear-gradient(90deg, transparent 0 76px, rgba(6, 182, 212, .075) 76px 77px, transparent 77px 154px);
  box-shadow:
    0 34px 90px rgba(37, 99, 235, .08),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}

.ai-workbench.minimal-layout .minimal-home::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + 8px);
  width: min(920px, 72vw);
  height: 1px;
  z-index: -1;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .18), rgba(6, 182, 212, .30), rgba(245, 164, 0, .18), transparent);
  animation: i4ScanLine 7s ease-in-out infinite alternate;
}

.ai-workbench.minimal-layout .minimal-logo {
  border-radius: 28px;
}

.ai-workbench.minimal-layout .minimal-logo::before {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 34px;
  background:
    conic-gradient(from 90deg, transparent 0 18%, rgba(6, 182, 212, .52) 18% 24%, transparent 24% 50%, rgba(245, 164, 0, .48) 50% 56%, transparent 56% 82%, rgba(37, 99, 235, .42) 82% 88%, transparent 88%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: i4HaloTurn 18s linear infinite;
}

.ai-workbench.minimal-layout .minimal-title h1 {
  font-weight: 920;
}

.ai-workbench.minimal-layout .minimal-title h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--i4-amber), var(--i4-cyan), var(--i4-blue));
  box-shadow: 0 10px 20px rgba(37, 99, 235, .14);
}

.ai-workbench.minimal-layout .minimal-input-card {
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
  border-radius: 0;
}

.ai-workbench.minimal-layout .minimal-input-card:focus-within {
  border-color: rgba(6, 182, 212, .54);
  box-shadow:
    0 30px 78px rgba(37, 99, 235, .18),
    0 0 0 1px rgba(6, 182, 212, .16),
    0 0 0 8px rgba(6, 182, 212, .055),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

.ai-workbench.minimal-layout .minimal-input-card .minimal-actions::before,
.ai-workbench.minimal-layout .minimal-input-card .minimal-actions::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 42px;
  height: 10px;
  pointer-events: none;
  border-top: 2px solid rgba(6, 182, 212, .42);
}

.ai-workbench.minimal-layout .minimal-input-card .minimal-actions::before {
  left: 16px;
  border-left: 2px solid rgba(6, 182, 212, .42);
}

.ai-workbench.minimal-layout .minimal-input-card .minimal-actions::after {
  right: 16px;
  border-right: 2px solid rgba(245, 164, 0, .42);
  border-top-color: rgba(245, 164, 0, .42);
}

.ai-workbench.minimal-layout .minimal-market {
  position: relative;
}

.ai-workbench.minimal-layout .minimal-market::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 6px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--i4-cyan), var(--i4-blue));
  box-shadow: 0 0 16px rgba(6, 182, 212, .34);
  animation: i4Signal 2.6s ease-in-out infinite;
}

.ai-workbench.minimal-layout .minimal-send {
  position: relative;
  overflow: hidden;
}

.ai-workbench.minimal-layout .minimal-send::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, .62) 46%, transparent 54% 100%);
  transform: translateX(-52%) rotate(8deg);
  transition: transform .36s ease;
}

.ai-workbench.minimal-layout .minimal-send:hover::before {
  transform: translateX(52%) rotate(8deg);
}

.ai-workbench.minimal-layout .minimal-examples {
  position: relative;
}

.ai-workbench.minimal-layout .minimal-examples::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: min(540px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, .28), transparent);
}

.ai-workbench.minimal-layout .minimal-examples button {
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.ai-workbench.minimal-layout .ai-user {
  border-color: rgba(6, 182, 212, .18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(238, 247, 255, .74));
}

.ai-workbench.minimal-layout .ai-user::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--i4-mint);
  box-shadow: 0 0 0 5px rgba(24, 185, 129, .10), 0 0 18px rgba(24, 185, 129, .42);
}

.ai-workbench.minimal-layout .page-pet-body {
  border: 1px solid rgba(6, 182, 212, .16);
  box-shadow:
    0 24px 46px rgba(245, 164, 0, .18),
    0 0 0 8px rgba(6, 182, 212, .045);
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout .minimal-home::before,
  .ai-workbench.minimal-layout .minimal-home::after,
  .ai-workbench.minimal-layout .ai-main::after {
    display: none;
  }

  .ai-workbench.minimal-layout .minimal-input-card {
    clip-path: none;
    border-radius: 20px;
  }
}

/* industry-4-command-ui-v3 */
@keyframes i4RailPulse {
  0%, 100% { opacity: .38; filter: saturate(1); }
  50% { opacity: .86; filter: saturate(1.35); }
}

@keyframes i4ChargeSweep {
  to { transform: rotate(360deg); }
}

.ai-workbench.minimal-layout {
  background:
    linear-gradient(116deg, rgba(6, 182, 212, .105), transparent 22%, rgba(255, 255, 255, .66) 42%, transparent 64%, rgba(245, 164, 0, .085)),
    linear-gradient(rgba(37, 99, 235, .058) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, .052) 1px, transparent 1px),
    #f8fbff;
  background-size: auto, 54px 54px, 54px 54px, auto;
}

.ai-workbench.minimal-layout .ai-sidebar {
  overflow: hidden;
}

.ai-workbench.minimal-layout .ai-sidebar::after {
  content: "";
  position: absolute;
  top: 130px;
  right: 0;
  bottom: 92px;
  width: 5px;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(6, 182, 212, .64), rgba(37, 99, 235, .78), rgba(245, 164, 0, .55), transparent);
  box-shadow:
    0 0 18px rgba(6, 182, 212, .30),
    -8px 0 30px rgba(37, 99, 235, .08);
  animation: i4RailPulse 3.4s ease-in-out infinite;
}

.ai-workbench.minimal-layout .minimal-input-card {
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(239, 249, 255, .82)) padding-box,
    linear-gradient(135deg, rgba(245, 164, 0, .62), rgba(6, 182, 212, .72), rgba(37, 99, 235, .36)) border-box;
  box-shadow:
    0 34px 88px rgba(37, 99, 235, .17),
    0 16px 44px rgba(6, 182, 212, .07),
    inset 0 1px 0 rgba(255, 255, 255, .98);
}

.ai-workbench.minimal-layout .minimal-input-card::after {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(37, 99, 235, .045) 28px 29px),
    radial-gradient(circle, rgba(6, 182, 212, .18) 0 1px, transparent 1.5px);
  background-size: auto, 18px 18px;
  opacity: .28;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.ai-workbench.minimal-layout .ai-page-nav a::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .46);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .08);
}

.ai-workbench.minimal-layout .ai-page-nav a.active::after,
.ai-workbench.minimal-layout .ai-page-nav a:hover::after {
  background: var(--i4-cyan);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, .12), 0 0 16px rgba(6, 182, 212, .42);
}

.ai-workbench.minimal-layout .minimal-title h1 {
  background: linear-gradient(180deg, #07111f 0%, #102a4f 64%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-workbench.minimal-layout .minimal-title h1::after {
  width: 118px;
  height: 4px;
  background:
    linear-gradient(90deg, transparent, var(--i4-amber), var(--i4-cyan), var(--i4-blue), transparent);
}

.ai-workbench.minimal-layout .minimal-send {
  border: 1px solid rgba(255, 255, 255, .64);
  box-shadow:
    0 18px 38px rgba(37, 99, 235, .28),
    0 0 0 8px rgba(6, 182, 212, .10),
    inset 0 1px 0 rgba(255, 255, 255, .42);
}

/* full-page-industry-background-v1 */
body:has(.ai-workbench) {
  background: #f8fbff;
}

.ai-app-shell:has(.ai-workbench) {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: transparent !important;
}

.ai-app-shell:has(.ai-workbench)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(6, 182, 212, .12), transparent 26%, rgba(255, 255, 255, .60) 45%, transparent 66%, rgba(245, 164, 0, .10)),
    linear-gradient(rgba(37, 99, 235, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, .060) 1px, transparent 1px),
    repeating-linear-gradient(90deg, transparent 0 116px, rgba(37, 99, 235, .040) 116px 117px, transparent 117px 232px),
    #f8fbff;
  background-size: auto, 32px 32px, 32px 32px, auto, auto;
}

.ai-app-shell:has(.ai-workbench)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 0 20%, rgba(6, 182, 212, .13) 20.15%, transparent 20.55%),
    linear-gradient(132deg, transparent 0 72%, rgba(245, 164, 0, .16) 72.15%, transparent 72.55%),
    radial-gradient(circle at 18% 18%, rgba(6, 182, 212, .13), transparent 20%),
    radial-gradient(circle at 82% 78%, rgba(245, 164, 0, .10), transparent 22%);
  opacity: .82;
}

.ai-app-shell:has(.ai-workbench) > .ai-workbench {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.ai-app-shell:has(.ai-workbench) .ai-sidebar {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .82), rgba(235, 246, 255, .74)) !important;
  backdrop-filter: blur(10px);
}

.ai-app-shell:has(.ai-workbench) .ai-main,
.ai-app-shell:has(.ai-workbench) .operations-data-main,
.ai-app-shell:has(.ai-workbench) .knowledge-main,
.ai-app-shell:has(.ai-workbench) .customer-service-main {
  background: transparent !important;
}

.ai-app-shell:has(.ai-workbench) .ai-main::before {
  background:
    linear-gradient(90deg, rgba(6, 182, 212, .12), transparent 18%, transparent 82%, rgba(245, 164, 0, .11)),
    linear-gradient(rgba(15, 23, 42, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .022) 1px, transparent 1px) !important;
  background-size: auto, 28px 28px, 28px 28px !important;
}

@media (max-width: 900px) {
  .ai-app-shell:has(.ai-workbench)::before {
    background-size: auto, 28px 28px, 28px 28px, auto, auto;
  }
}

/* report-home-orbit-planets-v1 */
@keyframes reportPlanetOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes reportPlanetOrbitReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

.ai-workbench.minimal-layout .minimal-title::before,
.ai-workbench.minimal-layout .minimal-title::after {
  display: none !important;
}

.ai-workbench.minimal-layout .minimal-logo {
  position: relative !important;
  isolation: isolate;
  overflow: visible;
  width: 124px !important;
  height: 124px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .96) 0 7px, transparent 8px),
    radial-gradient(circle at 32% 34%, #7dd3fc 0 18%, transparent 19%),
    radial-gradient(ellipse at 58% 38%, #22c55e 0 13%, transparent 14%),
    radial-gradient(ellipse at 38% 62%, #16a34a 0 12%, transparent 13%),
    radial-gradient(ellipse at 68% 68%, #0ea5e9 0 18%, transparent 19%),
    linear-gradient(145deg, #dff7ff 0 8%, #38bdf8 24%, #2563eb 56%, #0f3ea8 100%) !important;
  border: 1px solid rgba(255, 255, 255, .82);
  color: transparent !important;
  font-size: 0 !important;
  box-shadow:
    0 24px 48px rgba(37, 99, 235, .20),
    0 0 0 12px rgba(14, 165, 233, .055),
    inset -18px -20px 34px rgba(15, 23, 42, .24),
    inset 14px 12px 24px rgba(255, 255, 255, .58) !important;
  filter: drop-shadow(0 18px 28px rgba(6, 182, 212, .18));
}

.ai-workbench.minimal-layout .minimal-logo::before,
.ai-workbench.minimal-layout .minimal-logo::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  pointer-events: none;
  border-radius: 999px !important;
  mask: none !important;
  -webkit-mask: none !important;
}

.ai-workbench.minimal-layout .minimal-logo::before {
  width: 206px !important;
  height: 206px !important;
  z-index: -1;
  border: 1px solid rgba(37, 99, 235, .18);
  background:
    radial-gradient(circle at 50% 0%, #f59e0b 0 5px, rgba(245, 158, 11, .22) 6px 12px, transparent 13px),
    radial-gradient(circle at 100% 50%, #60a5fa 0 4px, rgba(96, 165, 250, .20) 5px 10px, transparent 11px),
    radial-gradient(circle at 50% 100%, #22c55e 0 4px, rgba(34, 197, 94, .18) 5px 10px, transparent 11px),
    linear-gradient(90deg, transparent 49.4%, rgba(6, 182, 212, .18) 49.8% 50.2%, transparent 50.6%),
    linear-gradient(0deg, transparent 49.4%, rgba(245, 158, 11, .16) 49.8% 50.2%, transparent 50.6%);
  box-shadow:
    inset 0 0 0 1px rgba(6, 182, 212, .10),
    0 0 34px rgba(14, 165, 233, .12);
  animation: reportPlanetOrbit 22s linear infinite !important;
}

.ai-workbench.minimal-layout .minimal-logo::after {
  width: 162px !important;
  height: 162px !important;
  z-index: -1;
  border: 1px dashed rgba(6, 182, 212, .28);
  background:
    radial-gradient(circle at 14% 50%, #a78bfa 0 5px, rgba(167, 139, 250, .18) 6px 12px, transparent 13px),
    radial-gradient(circle at 86% 50%, #f97316 0 4px, rgba(249, 115, 22, .16) 5px 10px, transparent 11px);
  animation: reportPlanetOrbitReverse 15s linear infinite !important;
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout .minimal-logo {
    width: 96px !important;
    height: 96px !important;
  }

  .ai-workbench.minimal-layout .minimal-logo::before {
    width: 158px !important;
    height: 158px !important;
  }

  .ai-workbench.minimal-layout .minimal-logo::after {
    width: 128px !important;
    height: 128px !important;
  }
}

/* customer-service-density-v1 */
.customer-service-layout .ai-main.customer-service-main {
  padding: 16px clamp(16px, 2.2vw, 34px) 56px !important;
}

.customer-service-main .ozon-service-panel {
  max-width: 1560px !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.customer-service-main .ozon-service-head {
  min-height: 0;
  padding: 14px 20px 12px !important;
  gap: 12px !important;
  border-bottom: 1px solid rgba(203, 213, 225, .70);
}

.customer-service-main .ozon-service-head p {
  display: none !important;
}

.customer-service-main .ozon-service-head h2 {
  margin: 0 !important;
  font-size: clamp(24px, 2.1vw, 32px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.customer-service-main .ozon-service-actions {
  gap: 8px !important;
  flex-wrap: nowrap;
}

.customer-service-main .ozon-status,
.customer-service-main .ozon-service-actions button {
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 36px !important;
}

.customer-service-main .ozon-service-hint {
  margin: 0 !important;
  padding: 10px 20px !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.customer-service-main .ozon-chat-tools {
  display: grid !important;
  grid-template-columns: 200px 200px minmax(360px, 1fr) 240px !important;
  gap: 10px !important;
  padding: 12px 20px !important;
  margin: 0 !important;
}

.customer-service-main .ozon-account-select,
.customer-service-main .ozon-chat-search {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
  line-height: 42px !important;
}

.customer-service-main .ozon-service-body {
  grid-template-columns: minmax(300px, 36%) minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 10px 20px 18px !important;
  min-height: calc(100vh - 230px) !important;
}

.customer-service-main .ozon-chat-list,
.customer-service-main .ozon-chat-detail {
  max-height: calc(100vh - 245px) !important;
  padding: 12px !important;
  border-radius: 12px !important;
}

.customer-service-main .ozon-chat-section {
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.customer-service-main .ozon-chat-section-head {
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: 11px !important;
}

.customer-service-main .ozon-chat-section-head strong {
  font-size: 15px !important;
}

.customer-service-main .ozon-chat-section-head span,
.customer-service-main .ozon-chat-section-head em {
  font-size: 12px !important;
}

.customer-service-main .ozon-chat-item {
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
  border-radius: 12px !important;
  min-height: 0 !important;
}

.customer-service-main .ozon-chat-top {
  gap: 8px !important;
  margin-bottom: 7px !important;
}

.customer-service-main .ozon-chat-top strong,
.customer-service-main .ozon-chat-item strong {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.customer-service-main .ozon-chat-no {
  min-width: 42px !important;
  height: 24px !important;
  padding: 0 7px !important;
  font-size: 13px !important;
  line-height: 24px !important;
}

.customer-service-main .ozon-chat-customer {
  gap: 8px !important;
  margin: 4px 0 6px !important;
}

.customer-service-main .ozon-chat-tags {
  gap: 6px !important;
  margin: 6px 0 !important;
}

.customer-service-main .ozon-chat-tags span,
.customer-service-main .ozon-chat-top em.unread,
.customer-service-main .ozon-chat-top em.read {
  min-height: 22px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 22px !important;
}

.customer-service-main .ozon-chat-item p,
.customer-service-main .ozon-chat-item time,
.customer-service-main .ozon-chat-customer small {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.customer-service-main .ozon-open-link {
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  line-height: 30px !important;
}

.customer-service-main .ozon-detail-title {
  min-height: 44px !important;
  padding: 10px 12px !important;
  gap: 10px !important;
  border-radius: 12px 12px 0 0 !important;
}

.customer-service-main .ozon-detail-title strong {
  font-size: 17px !important;
  line-height: 1.2 !important;
}

.customer-service-main .ozon-detail-title span {
  font-size: 12px !important;
}

.customer-service-main .ozon-message {
  padding: 14px 18px !important;
  margin: 10px 0 !important;
  border-radius: 12px !important;
}

.customer-service-main .ozon-message div {
  margin-bottom: 8px !important;
}

.customer-service-main .ozon-message div strong {
  font-size: 15px !important;
}

.customer-service-main .ozon-message div span {
  font-size: 12px !important;
}

.customer-service-main .ozon-message p {
  margin: 6px 0 !important;
  font-size: 16px !important;
  line-height: 1.58 !important;
}

.customer-service-main details.ozon-message-translation {
  margin-top: 8px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
}

.customer-service-main details.ozon-message-translation summary,
.customer-service-main details.ozon-message-translation p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.customer-service-main .ozon-reply-panel {
  margin-top: 12px !important;
  padding: 14px !important;
  border-radius: 12px !important;
}

.customer-service-main .ozon-reply-head {
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.customer-service-main .ozon-reply-head strong {
  font-size: 16px !important;
}

.customer-service-main .ozon-reply-head span,
.customer-service-main .ozon-reply-label,
.customer-service-main #ozonReplyStatus {
  font-size: 13px !important;
}

.customer-service-main .ozon-quick-replies {
  grid-template-columns: minmax(220px, 1fr) auto auto auto !important;
  gap: 8px !important;
  margin: 8px 0 !important;
}

.customer-service-main .ozon-quick-replies select,
.customer-service-main .ozon-quick-replies button,
.customer-service-main .ozon-reply-head button,
.customer-service-main .ozon-reply-actions button,
.customer-service-main .ozon-send-button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}

.customer-service-main .ozon-template-editor,
.customer-service-main .ozon-reply-textarea {
  min-height: 76px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.customer-service-main .ozon-reply-textarea.russian {
  min-height: 98px !important;
}

.customer-service-main .ozon-send-row,
.customer-service-main .ozon-reply-actions {
  gap: 8px !important;
  margin-top: 8px !important;
}

@media (max-width: 1180px) {
  .customer-service-main .ozon-chat-tools {
    grid-template-columns: 1fr 1fr !important;
  }

  .customer-service-main .ozon-service-body {
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .customer-service-layout .ai-main.customer-service-main {
    padding: 12px 10px 72px !important;
  }

  .customer-service-main .ozon-service-head,
  .customer-service-main .ozon-chat-tools,
  .customer-service-main .ozon-service-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .customer-service-main .ozon-service-body,
  .customer-service-main .ozon-chat-tools {
    grid-template-columns: 1fr !important;
  }

  .customer-service-main .ozon-chat-list,
  .customer-service-main .ozon-chat-detail {
    max-height: none !important;
  }
}

/* customer-service-density-v2 */
.customer-service-main .ozon-service-body {
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr) !important;
  gap: 10px !important;
  padding-top: 8px !important;
}

.customer-service-main .ozon-chat-list,
.customer-service-main .ozon-chat-detail {
  padding: 10px !important;
  max-height: calc(100vh - 226px) !important;
}

.customer-service-main .ozon-chat-section-head {
  min-height: 34px !important;
  padding: 6px 10px !important;
}

.customer-service-main .ozon-chat-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "top action"
    "customer action"
    "tags action"
    "time action" !important;
  column-gap: 10px !important;
  row-gap: 4px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  border-radius: 11px !important;
}

.customer-service-main .ozon-chat-top {
  grid-area: top;
  margin: 0 !important;
  align-items: center !important;
}

.customer-service-main .ozon-chat-customer {
  grid-area: customer;
  margin: 0 !important;
  min-width: 0;
}

.customer-service-main .ozon-chat-tags {
  grid-area: tags;
  margin: 2px 0 0 !important;
}

.customer-service-main .ozon-chat-item time,
.customer-service-main .ozon-chat-item p {
  grid-area: time;
}

.customer-service-main .ozon-chat-item .ozon-open-link {
  grid-area: action;
  align-self: center;
  justify-self: end;
  min-width: 94px;
}

.customer-service-main .ozon-chat-top strong,
.customer-service-main .ozon-chat-item strong {
  font-size: 15px !important;
}

.customer-service-main .ozon-chat-no {
  min-width: 40px !important;
  height: 22px !important;
  line-height: 22px !important;
}

.customer-service-main .ozon-chat-customer span,
.customer-service-main .ozon-chat-item p,
.customer-service-main .ozon-chat-item time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-service-main .ozon-chat-tags span,
.customer-service-main .ozon-chat-top em.unread,
.customer-service-main .ozon-chat-top em.read {
  min-height: 20px !important;
  line-height: 20px !important;
  padding: 0 7px !important;
  font-size: 11px !important;
}

.customer-service-main .ozon-detail-title {
  min-height: 38px !important;
  padding: 8px 12px !important;
}

.customer-service-main .ozon-detail-title strong {
  font-size: 16px !important;
}

.customer-service-main .ozon-message {
  padding: 10px 14px !important;
  margin: 8px 0 !important;
  border-radius: 11px !important;
}

.customer-service-main .ozon-message div {
  margin-bottom: 4px !important;
}

.customer-service-main .ozon-message p {
  margin: 3px 0 !important;
  font-size: 15px !important;
  line-height: 1.46 !important;
}

.customer-service-main .ozon-message div strong {
  font-size: 14px !important;
}

.customer-service-main .ozon-message div span {
  font-size: 12px !important;
}

.customer-service-main details.ozon-message-translation {
  margin-top: 6px !important;
  padding: 7px 9px !important;
}

.customer-service-main .ozon-reply-panel {
  margin-top: 10px !important;
  padding: 12px !important;
}

.customer-service-main .ozon-reply-head {
  margin-bottom: 8px !important;
}

.customer-service-main .ozon-quick-replies {
  margin: 6px 0 !important;
}

.customer-service-main .ozon-template-editor,
.customer-service-main .ozon-reply-textarea {
  min-height: 64px !important;
  padding: 8px 10px !important;
}

.customer-service-main .ozon-reply-textarea.russian {
  min-height: 82px !important;
}

.customer-service-main .ozon-open-link {
  min-height: 28px !important;
  line-height: 28px !important;
}

@media (max-width: 1180px) {
  .customer-service-main .ozon-chat-item {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "top"
      "customer"
      "tags"
      "time"
      "action" !important;
  }

  .customer-service-main .ozon-chat-item .ozon-open-link {
    justify-self: start;
  }
}

/* knowledge-daily-review-70-v1 */
.knowledge-layout .ai-main.knowledge-main {
  padding: 14px clamp(16px, 2.4vw, 38px) 52px !important;
  gap: 8px !important;
  align-content: stretch !important;
  overflow: hidden;
}

.knowledge-main .knowledge-grid,
.knowledge-main .corpus-panel {
  width: min(1580px, 100%) !important;
  max-width: calc(100vw - var(--app-sidebar-width) - 48px) !important;
}

.knowledge-main .knowledge-nav-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.knowledge-main .knowledge-grid .knowledge-card {
  min-height: 48px !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
}

.knowledge-main .knowledge-grid strong {
  margin-bottom: 2px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.knowledge-main .knowledge-grid p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-main .primary-review-panel {
  display: grid !important;
  grid-template-rows: auto auto auto auto auto minmax(52vh, 1fr) !important;
  min-height: calc(100vh - 130px) !important;
  padding: 12px 16px 14px !important;
  margin: 8px auto 34px !important;
  padding-right: 16px !important;
  overflow: hidden;
}

.knowledge-main .corpus-head {
  padding-bottom: 7px !important;
  gap: 10px !important;
  border-bottom: 1px solid rgba(203, 213, 225, .70);
}

.knowledge-main .corpus-head p {
  margin: 0 0 1px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

.knowledge-main .corpus-head h2 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
}

.knowledge-main .corpus-head span {
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.knowledge-main .corpus-actions {
  grid-template-columns: 260px auto !important;
  gap: 8px !important;
}

.knowledge-main .corpus-actions input,
.knowledge-main .corpus-actions button {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}

.knowledge-main .corpus-note {
  margin: 6px 0 !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
}

.knowledge-main .daily-review-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 6px 0 8px !important;
}

.knowledge-main .daily-review-stats article {
  min-height: 46px !important;
  padding: 7px 12px !important;
  border-radius: 9px !important;
}

.knowledge-main .daily-review-stats strong {
  font-size: 21px !important;
  line-height: 1 !important;
}

.knowledge-main .daily-review-stats span {
  margin-top: 3px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.knowledge-main .daily-ai-review {
  margin: 8px 0 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
}

.knowledge-main .daily-ai-review-head {
  gap: 10px !important;
  align-items: center !important;
}

.knowledge-main .daily-ai-review-head strong {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.knowledge-main .daily-ai-review-head span {
  display: block;
  margin-top: 2px;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.knowledge-main .daily-ai-review-actions {
  gap: 6px !important;
}

.knowledge-main .daily-ai-review-actions a,
.knowledge-main .daily-ai-review-head button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.knowledge-main .daily-ai-review-body {
  max-height: 76px !important;
  overflow: auto !important;
  padding: 6px 2px 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.knowledge-main .daily-ai-review-body:empty {
  display: none;
}

.knowledge-main .primary-review-panel .corpus-body,
.knowledge-main .corpus-body.daily-review-body {
  grid-template-columns: minmax(320px, 36%) minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 52vh !important;
  height: min(58vh, calc(100vh - 430px)) !important;
  margin-top: 10px !important;
}

.knowledge-main .primary-review-panel .corpus-list,
.knowledge-main .primary-review-panel .corpus-detail,
.daily-review-body .corpus-detail {
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 12px !important;
  border-radius: 12px !important;
  overflow: auto !important;
}

.knowledge-main .corpus-sku {
  margin-bottom: 8px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
}

.knowledge-main .corpus-sku strong,
.knowledge-main .corpus-detail-title strong {
  font-size: 17px !important;
  line-height: 1.2 !important;
}

.knowledge-main .corpus-sku span,
.knowledge-main .corpus-sku small,
.knowledge-main .corpus-detail-title span {
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.knowledge-main .corpus-sku p,
.knowledge-main .corpus-empty,
.knowledge-main .corpus-detail > p {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.knowledge-main .corpus-example {
  margin-bottom: 10px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
}

.knowledge-main .corpus-example div {
  margin-bottom: 5px !important;
}

.knowledge-main .corpus-example strong {
  font-size: 14px !important;
}

.knowledge-main .corpus-example span {
  font-size: 12px !important;
}

.knowledge-main .corpus-example p {
  margin: 5px 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.knowledge-main .corpus-example p.answer {
  padding: 10px 12px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* daily-review-issue-tracker-v1 */
.knowledge-main .daily-issue-tracker {
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 10px;
  background: rgba(248, 250, 252, .92);
  min-width: 0;
}

.knowledge-main .daily-issue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.knowledge-main .daily-issue-head strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.2;
}

.knowledge-main .daily-issue-head span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.knowledge-main .daily-issue-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.knowledge-main .daily-issue-filters button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.knowledge-main .daily-issue-filters button.active {
  border-color: rgba(37, 99, 235, .42);
  background: #eff6ff;
  color: #1d4ed8;
}

.knowledge-main .daily-issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 236px;
  overflow: auto;
  padding-right: 2px;
}

.knowledge-main .daily-issue-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
}

.knowledge-main .daily-issue-card.priority-p0 {
  border-left-color: #dc2626;
}

.knowledge-main .daily-issue-card.priority-p1 {
  border-left-color: #f59e0b;
}

.knowledge-main .daily-issue-card.priority-p2 {
  border-left-color: #2563eb;
}

.knowledge-main .daily-issue-card-head,
.knowledge-main .daily-issue-meta,
.knowledge-main .daily-issue-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.knowledge-main .daily-issue-card-head strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-main .daily-issue-card-head span,
.knowledge-main .daily-issue-foot span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.knowledge-main .daily-issue-meta span {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-main .daily-issue-problem,
.knowledge-main .daily-issue-action,
.knowledge-main .daily-issue-reply {
  margin: 0;
  color: #1e293b;
  font-size: 12px;
  line-height: 1.38;
}

.knowledge-main .daily-issue-action,
.knowledge-main .daily-issue-reply {
  padding: 6px 8px;
  border-radius: 7px;
  background: #f8fafc;
}

.knowledge-main .daily-issue-action b,
.knowledge-main .daily-issue-reply b {
  display: inline-block;
  margin-right: 6px;
  color: #0f172a;
}

.knowledge-main .daily-issue-foot {
  justify-content: space-between;
}

@media (min-width: 1181px) {
  .knowledge-main .primary-review-panel {
    padding-right: 16px !important;
  }
}

@media (max-width: 1180px) {
  .knowledge-main .knowledge-grid,
  .knowledge-main .corpus-panel {
    max-width: calc(100vw - 36px) !important;
  }

  .knowledge-main .primary-review-panel .corpus-body,
  .knowledge-main .corpus-body.daily-review-body {
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr) !important;
  }

  .knowledge-main .daily-issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .knowledge-layout .ai-main.knowledge-main {
    overflow: auto;
  }

  .knowledge-main .knowledge-nav-grid,
  .knowledge-main .daily-review-stats,
  .knowledge-main .primary-review-panel .corpus-body,
  .knowledge-main .corpus-body.daily-review-body {
    grid-template-columns: 1fr !important;
  }

  .knowledge-main .primary-review-panel {
    min-height: auto !important;
    overflow: visible;
  }

  .knowledge-main .primary-review-panel .corpus-body,
  .knowledge-main .corpus-body.daily-review-body {
    height: auto !important;
    min-height: 620px !important;
  }

  .knowledge-main .daily-issue-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-main .daily-issue-filters {
    justify-content: flex-start;
  }

  .knowledge-main .daily-issue-grid {
    grid-template-columns: 1fr;
    max-height: 420px;
  }
}

/* daily-review-readable-report-v1 */
.knowledge-main .primary-review-panel {
  grid-template-rows: auto auto auto minmax(230px, auto) auto minmax(360px, 1fr) !important;
}

.knowledge-main .daily-ai-review {
  margin: 10px 0 12px !important;
  padding: 12px 14px !important;
}

.knowledge-main .daily-ai-review-body {
  min-height: 188px !important;
  max-height: min(34vh, 310px) !important;
  overflow: auto !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
  border: 1px solid rgba(191, 219, 254, .62) !important;
  border-radius: 12px !important;
  background: rgba(240, 249, 255, .42) !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
}

.knowledge-main .daily-ai-review-body p {
  margin: 7px 0 !important;
}

.knowledge-main .daily-ai-review-body .daily-ai-section {
  padding: 8px 4px 10px !important;
}

.knowledge-main .daily-ai-review-body .daily-ai-section + .daily-ai-section {
  border-top: 1px solid rgba(203, 213, 225, .62);
}

.knowledge-main .daily-ai-review-body h4 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 0 8px !important;
  padding: 5px 0 7px !important;
  background: linear-gradient(180deg, rgba(240,249,255,.98), rgba(240,249,255,.88));
}

.knowledge-main .primary-review-panel .corpus-body,
.knowledge-main .corpus-body.daily-review-body {
  height: min(50vh, calc(100vh - 500px)) !important;
  min-height: 360px !important;
}

@media (max-width: 900px) {
  .knowledge-main .daily-ai-review-body {
    min-height: 220px !important;
    max-height: none !important;
  }

  .knowledge-main .primary-review-panel .corpus-body,
  .knowledge-main .corpus-body.daily-review-body {
    min-height: 620px !important;
    height: auto !important;
  }
}

/* customer-corpus-build-feedback-v1 */
.knowledge-main #corpusMeta.error {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(239, 68, 68, .30);
  border-radius: 8px;
  background: rgba(254, 242, 242, .92);
  color: #b91c1c !important;
  font-weight: 800;
}

/* ozon-translation-placeholder-v1 */
.customer-service-main .ozon-translation-warning {
  margin: 8px 0;
  padding: 7px 10px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 9px;
  background: rgba(255, 251, 235, .86);
  color: #92400e;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.customer-service-main details.ozon-message-translation summary::after {
  content: "展开" !important;
}

.customer-service-main details.ozon-message-translation[open] summary::after {
  content: "收起" !important;
}

/* ai-gateway-failure-v1 */
.assistant-note.gateway-help {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 10px;
  background: rgba(239, 246, 255, .78);
  color: #315174;
  font-size: 13px;
  line-height: 1.45;
}

/* team-workbench-v1 */
.ai-workbench.minimal-layout.team-layout .ai-main.team-main {
  display: block;
  align-items: initial;
  justify-content: initial;
  width: min(1280px, calc(100vw - var(--app-sidebar-width) - 56px));
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 28px 88px;
  overflow-x: hidden;
  overflow-y: auto;
}

.team-layout .team-main > * {
  position: relative;
  z-index: 1;
}

.team-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.team-hero p,
.team-panel header p {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: 36px;
  line-height: 1.1;
}

.team-hero span {
  display: block;
  max-width: 680px;
  margin-top: 10px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

.team-action-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.team-action-strip a,
.team-panel header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.team-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.team-metrics article,
.team-panel {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
}

.team-metrics article {
  min-width: 0;
  min-height: 104px;
  padding: 16px;
}

.team-metrics span,
.team-metrics small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.team-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
}

.team-panel {
  min-width: 0;
  padding: 18px;
  overflow: hidden;
}

.team-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.team-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.2;
}

.team-member-list {
  display: grid;
  gap: 8px;
}

.team-member-row {
  display: grid;
  grid-template-columns: 42px minmax(150px, 1fr) 72px 64px minmax(84px, .5fr) minmax(96px, .55fr) minmax(128px, .8fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 213, 225, .52);
  border-radius: 10px;
  background: rgba(248, 250, 252, .72);
  color: #334155;
  font-size: 13px;
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #fef3c7);
  color: #0f172a;
  font-weight: 900;
}

.team-member-main strong,
.team-member-main span,
.team-member-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member-main strong {
  color: #0f172a;
  font-size: 14px;
}

.team-member-main span,
.team-member-row small {
  color: #64748b;
  font-size: 12px;
}

.team-role,
.team-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  background: rgba(226, 232, 240, .72);
  color: #475569;
  font-weight: 900;
}

.team-status.online {
  background: rgba(220, 252, 231, .82);
  color: #15803d;
}

.team-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.team-permission-list,
.team-quota-bars {
  display: grid;
  gap: 10px;
}

.team-permission-list div {
  padding: 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, .78);
}

.team-permission-list strong,
.team-permission-list span {
  display: block;
}

.team-permission-list strong {
  color: #0f172a;
  font-size: 14px;
}

.team-permission-list span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.team-quota-bars label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.team-quota-bars i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e var(--value), rgba(226, 232, 240, .88) var(--value));
}

.team-alert,
.team-empty {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 251, 235, .88);
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .ai-workbench.minimal-layout.team-layout .ai-main.team-main {
    width: calc(100vw - var(--app-sidebar-width) - 32px);
    padding: 40px 28px 80px;
  }

  .team-hero,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-hero {
    display: grid;
  }

  .team-metrics {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .team-member-row {
    grid-template-columns: 42px minmax(160px, 1fr) 82px 68px;
  }

  .team-member-row > span:nth-of-type(3),
  .team-member-row > span:nth-of-type(4),
  .team-member-row small {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .ai-workbench.minimal-layout.team-layout .ai-main.team-main {
    width: 100%;
    padding: 28px 16px 72px;
  }

  .team-metrics,
  .team-grid,
  .team-member-row {
    grid-template-columns: 1fr;
  }

  .team-member-row {
    align-items: start;
  }

  .team-avatar {
    width: 36px;
    height: 36px;
  }
}

/* customer-service-density-v3-overlap-fix */
.customer-service-main .ozon-chat-item {
  grid-template-areas:
    "top action"
    "customer action"
    "tags action"
    "preview action"
    "time action" !important;
  row-gap: 3px !important;
}

.customer-service-main .ozon-chat-item p {
  grid-area: preview !important;
  display: block;
  margin: 1px 0 0 !important;
  min-width: 0;
  color: #536b8a;
}

.customer-service-main .ozon-chat-item time {
  grid-area: time !important;
  display: block;
  margin: 1px 0 0 !important;
  min-width: 0;
  color: #3f5f82;
}

.customer-service-main .ozon-chat-customer,
.customer-service-main .ozon-chat-tags {
  min-width: 0;
}

.customer-service-main .ozon-chat-item .ozon-open-link {
  align-self: center !important;
}

@media (max-width: 1180px) {
  .customer-service-main .ozon-chat-item {
    grid-template-areas:
      "top"
      "customer"
      "tags"
      "preview"
      "time"
      "action" !important;
  }
}

/* guide-compact-manual-v1 */
.guide-compact-layout .guide-compact-main {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px clamp(14px, 2.2vw, 34px) 42px !important;
  background: #f5f7fb !important;
}

.guide-compact-main .guide-compact-hero,
.guide-compact-main .guide-compact-shell {
  width: min(1360px, 100%) !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.guide-compact-main .guide-compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 14px 16px !important;
  border: 1px solid #dce6f2;
  border-radius: 12px !important;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}

.guide-compact-main .guide-kicker,
.guide-page-title.compact p {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.guide-compact-main .guide-compact-hero h1 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.18;
  letter-spacing: 0;
}

.guide-compact-main .guide-compact-hero span {
  display: block;
  max-width: 940px;
  color: #52627a;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.guide-compact-meta {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #f8fbff;
}

.guide-compact-meta b {
  color: #10213f;
  font-size: 13px;
}

.guide-compact-meta span {
  color: #52627a;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.guide-compact-main .guide-compact-shell {
  padding: 12px !important;
  border-radius: 12px !important;
  border: 1px solid #dce6f2;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .055);
}

.guide-compact-head {
  gap: 10px !important;
  margin-bottom: 10px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7edf5;
}

.guide-compact-main .guide-tabs {
  gap: 6px !important;
}

.guide-compact-main .guide-tabs button {
  min-height: 32px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.guide-compact-main #guideTabSelect {
  width: 160px !important;
  min-height: 32px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

.guide-compact-main .guide-page-title.compact {
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: #f8fbff;
  border: 1px solid #e2eaf5;
}

.guide-page-title.compact h2 {
  margin: 0 0 5px !important;
  color: #0f172a;
  font-size: 20px !important;
  line-height: 1.22 !important;
  letter-spacing: 0;
}

.guide-page-title.compact span {
  color: #5d6c82;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.guide-flow {
  display: grid;
  gap: 0;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #dfe8f3;
  border-radius: 10px;
  background: #ffffff;
}

.guide-flow div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 12px;
  border-top: 1px solid #edf2f8;
}

.guide-flow div:first-child {
  border-top: 0;
}

.guide-flow b {
  color: #11213b;
  font-size: 13px;
  line-height: 1.45;
}

.guide-flow span,
.guide-flow code {
  color: #46566f;
  font-size: 13px;
  line-height: 1.55;
}

.guide-flow.small div {
  grid-template-columns: 130px minmax(0, 1fr);
}

.guide-dense-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.guide-dense-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-dense-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-dense-grid section,
.guide-example-list.compact {
  min-width: 0;
  padding: 11px 12px !important;
  border: 1px solid #dfe8f3;
  border-radius: 10px !important;
  background: #ffffff;
  box-shadow: none !important;
}

.guide-dense-grid h3 {
  margin: 0 0 6px !important;
  color: #12223d;
  font-size: 14px !important;
  line-height: 1.35;
}

.guide-dense-grid p,
.guide-dense-grid li,
.guide-example-list.compact span {
  color: #46566f !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.guide-dense-grid ul,
.guide-dense-grid ol {
  margin: 0;
  padding-left: 18px;
}

.guide-dense-grid li + li {
  margin-top: 3px;
}

.guide-example-list.compact {
  margin-top: 10px !important;
}

.guide-example-list.compact b {
  display: block;
  margin-bottom: 7px !important;
  color: #12223d;
  font-size: 13px !important;
}

.guide-example-list.compact span {
  display: block;
  margin-top: 6px !important;
  padding: 7px 9px !important;
  border-radius: 8px !important;
  border: 1px solid #e5edf7;
  background: #f8fbff;
}

.guide-compact-main code {
  display: inline-block;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 6px;
  background: #eef4fb;
  color: #0f3b7a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .guide-compact-main .guide-compact-hero {
    grid-template-columns: 1fr;
  }
  .guide-dense-grid.two,
  .guide-dense-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .guide-compact-layout .guide-compact-main {
    height: auto;
    padding: 12px 10px 78px !important;
  }
  .guide-flow div,
  .guide-flow.small div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .guide-compact-head {
    align-items: stretch !important;
    flex-direction: column;
  }
  .guide-compact-main #guideTabSelect {
    width: 100% !important;
  }
  .guide-compact-main .guide-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .guide-compact-main .guide-tabs button {
    flex: 0 0 auto;
  }
}

/* operations-embed-dashboard-v1 */
.operations-embed-layout .operations-embed-main {
  display: grid !important;
  grid-template-rows: 46px minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  height: 100vh;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f6f7fb;
}

.operations-embed-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 1px solid #dfe7f2;
  background: rgba(255, 255, 255, .96);
}

.operations-embed-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #10213f;
}

.operations-embed-title a {
  color: #174ea6;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.operations-embed-title strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.operations-embed-title span {
  min-width: 0;
  color: #607086;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-embed-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.operations-embed-actions button,
.operations-embed-actions a,
.operations-embed-fallback a {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #cbd8ea;
  border-radius: 7px;
  background: #ffffff;
  color: #17345f;
  font-size: 12px;
  font-weight: 850;
  line-height: 30px;
  text-decoration: none;
  cursor: pointer;
}

.operations-embed-actions a,
.operations-embed-fallback a {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.operations-embed-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.operations-embed-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.operations-embed-fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

.operations-embed-fallback strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 16px;
}

.operations-embed-fallback p {
  margin: 0 0 12px;
  color: #52627a;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .operations-embed-layout .operations-embed-main {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto minmax(70vh, 1fr);
  }
  .operations-embed-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 12px;
  }
  .operations-embed-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .operations-embed-actions {
    width: 100%;
  }
  .operations-embed-actions button,
  .operations-embed-actions a {
    flex: 1 1 0;
    text-align: center;
  }
}

/* operations-embed-full-bleed-fix-v2 */
.ai-app-shell:has(.operations-embed-layout) {
  min-height: 100vh;
  overflow: hidden;
}

.ai-app-shell:has(.operations-embed-layout)::before,
.ai-app-shell:has(.operations-embed-layout)::after {
  display: none !important;
}

.ai-workbench.minimal-layout.operations-embed-layout {
  grid-template-columns: var(--app-sidebar-width, 240px) minmax(0, 1fr) !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  background: #f6f8fc !important;
}

.ai-workbench.minimal-layout.operations-embed-layout .ai-sidebar {
  height: 100vh !important;
  min-height: 100vh !important;
}

.ai-workbench.minimal-layout.operations-embed-layout .ai-main.operations-embed-main,
.ai-app-shell:has(.operations-embed-layout) .ai-main.operations-embed-main {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 44px minmax(0, 1fr) !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  align-content: stretch !important;
  justify-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.ai-workbench.minimal-layout.operations-embed-layout .ai-main.operations-embed-main::before,
.ai-workbench.minimal-layout.operations-embed-layout .ai-main.operations-embed-main::after,
.ai-app-shell:has(.operations-embed-layout) .ai-main.operations-embed-main::before,
.ai-app-shell:has(.operations-embed-layout) .ai-main.operations-embed-main::after {
  display: none !important;
  content: none !important;
}

.ai-workbench.minimal-layout.operations-embed-layout .operations-embed-topbar {
  grid-row: 1;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border-bottom: 1px solid #dde6f2 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.ai-workbench.minimal-layout.operations-embed-layout .operations-embed-shell {
  grid-row: 2;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.ai-workbench.minimal-layout.operations-embed-layout .operations-embed-shell iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout.operations-embed-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: auto !important;
  }
  .ai-workbench.minimal-layout.operations-embed-layout .ai-sidebar {
    height: auto !important;
    min-height: 0 !important;
  }
  .ai-workbench.minimal-layout.operations-embed-layout .ai-main.operations-embed-main {
    height: calc(100vh - 210px) !important;
    min-height: 680px !important;
  }
}

/* manual-page-guide-v1 */
.manual-page-layout .manual-main {
  display: block !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  padding: 18px clamp(16px, 2.2vw, 34px) 40px !important;
  overflow: auto !important;
  background: #f7faff !important;
}

.manual-page-layout .manual-main::before,
.manual-page-layout .manual-main::after {
  display: none !important;
  content: none !important;
}

.manual-page-layout .manual-main,
.manual-page-layout .manual-main * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  letter-spacing: 0 !important;
  box-sizing: border-box;
  word-break: normal;
  overflow-wrap: break-word;
}

.manual-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.manual-header {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.manual-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cdd9ea;
  border-radius: 8px;
  background: #ffffff;
  color: #174ea6;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.manual-header p,
.manual-title p {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.manual-header h1 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.16;
}

.manual-header span,
.manual-title span {
  display: block;
  color: #58677f;
  font-size: 14px;
  line-height: 1.55;
}

.manual-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.manual-toc {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.manual-toc button {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #273b59;
  text-align: left;
  cursor: pointer;
}

.manual-toc button:hover {
  border-color: #c8d9ef;
  background: #f5f9ff;
}

.manual-toc button.active {
  border-color: #9fc3f6;
  background: #eaf3ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.manual-toc strong {
  color: #12223d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.manual-toc span {
  color: #63748b;
  font-size: 12px;
  line-height: 1.25;
}

.manual-content {
  min-width: 0;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.manual-section {
  display: none;
  min-width: 0;
  padding: 16px;
}

.manual-section.active {
  display: block;
}

.manual-title {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #e3ebf6;
  border-radius: 10px;
  background: #f8fbff;
}

.manual-title h2 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}

.manual-steps {
  overflow: hidden;
  border: 1px solid #dfe8f3;
  border-radius: 10px;
  background: #ffffff;
}

.manual-steps div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 11px 14px;
  border-top: 1px solid #edf2f8;
}

.manual-steps div:first-child {
  border-top: 0;
}

.manual-steps.compact div {
  grid-template-columns: 130px minmax(0, 1fr);
}

.manual-steps b {
  color: #10213f;
  font-size: 14px;
  line-height: 1.45;
}

.manual-steps span,
.manual-steps code {
  color: #46566f;
  font-size: 14px;
  line-height: 1.65;
}

.manual-table {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.manual-table.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-table.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-table section,
.manual-examples {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dfe8f3;
  border-radius: 10px;
  background: #ffffff;
}

.manual-table h3 {
  margin: 0 0 8px;
  color: #12223d;
  font-size: 15px;
}

.manual-table p,
.manual-table li,
.manual-examples span {
  color: #46566f;
  font-size: 14px;
  line-height: 1.62;
}

.manual-table ul {
  margin: 0;
  padding-left: 18px;
}

.manual-table li + li {
  margin-top: 4px;
}

.manual-examples {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.manual-examples b {
  color: #12223d;
  font-size: 14px;
}

.manual-examples span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fbff;
}

.manual-main code {
  display: inline-block;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 6px;
  background: #eef4fb;
  color: #0f3b7a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .manual-grid {
    grid-template-columns: 1fr;
  }
  .manual-toc {
    position: relative;
    top: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .manual-page-layout .manual-main {
    height: auto !important;
    padding: 12px 10px 80px !important;
  }
  .manual-header {
    grid-template-columns: 1fr;
  }
  .manual-toc,
  .manual-table.two-col,
  .manual-table.three-col {
    grid-template-columns: 1fr;
  }
  .manual-steps div,
  .manual-steps.compact div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* workspace-sidebar-collapse-v2 */
.ai-workbench.minimal-layout {
  transition: grid-template-columns .22s ease;
}

.ai-workbench.minimal-layout .ai-sidebar-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px;
  padding: 0 !important;
  border: 1px solid rgba(6, 182, 212, .36);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .96) 0 4px, transparent 5px),
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(224, 245, 255, .86) 48%, rgba(220, 235, 255, .92));
  color: #1d4ed8;
  box-shadow:
    0 8px 18px rgba(37, 99, 235, .14),
    0 0 0 4px rgba(6, 182, 212, .07),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.ai-workbench.minimal-layout .ai-sidebar-toggle::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(37, 99, 235, .16);
  pointer-events: none;
}

.ai-workbench.minimal-layout .ai-sidebar-toggle::after {
  content: attr(aria-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 9px);
  transform: translate(4px, -50%);
  opacity: 0;
  pointer-events: none;
  padding: 5px 8px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: #1742a0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: opacity .16s ease, transform .16s ease;
}

.ai-workbench.minimal-layout .ai-sidebar-toggle:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(6, 182, 212, .62);
  box-shadow:
    0 12px 24px rgba(37, 99, 235, .18),
    0 0 0 5px rgba(6, 182, 212, .11),
    0 0 18px rgba(6, 182, 212, .26);
}

.ai-workbench.minimal-layout .ai-sidebar-toggle:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.ai-workbench.minimal-layout .ai-sidebar-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.ai-workbench.minimal-layout .ai-sidebar-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ai-workbench.minimal-layout.sidebar-collapsed {
  --app-sidebar-width: 52px;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
}

.ai-workbench.minimal-layout.sidebar-collapsed .ai-sidebar {
  width: var(--app-sidebar-width) !important;
  min-width: var(--app-sidebar-width) !important;
  padding: 0 !important;
  overflow: visible !important;
}

.ai-workbench.minimal-layout.sidebar-collapsed .ai-sidebar-toggle {
  top: 16px;
  left: 10px;
  right: auto;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px;
  padding: 0 !important;
}

.ai-workbench.minimal-layout.sidebar-collapsed .ai-sidebar-toggle::after {
  left: calc(100% + 9px);
  right: auto;
  transform: translate(-4px, -50%);
}

.ai-workbench.minimal-layout.sidebar-collapsed .ai-sidebar-toggle:hover::after {
  transform: translate(0, -50%);
}

.ai-workbench.minimal-layout.sidebar-collapsed .ai-side-top,
.ai-workbench.minimal-layout.sidebar-collapsed .ai-brand,
.ai-workbench.minimal-layout.sidebar-collapsed .ai-new-chat,
.ai-workbench.minimal-layout.sidebar-collapsed .ai-page-nav,
.ai-workbench.minimal-layout.sidebar-collapsed .ai-history,
.ai-workbench.minimal-layout.sidebar-collapsed .ai-user {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.ai-workbench.minimal-layout.sidebar-collapsed .ai-sidebar::after {
  top: 66px !important;
  bottom: 24px !important;
  right: 0 !important;
}

.ai-workbench.minimal-layout.sidebar-collapsed .ai-main,
.ai-workbench.minimal-layout.sidebar-collapsed .operations-data-main,
.ai-workbench.minimal-layout.sidebar-collapsed .knowledge-main,
.ai-workbench.minimal-layout.sidebar-collapsed .customer-service-main {
  min-width: 0;
}

@media (max-width: 900px) {
  .ai-workbench.minimal-layout .ai-sidebar-toggle {
    position: static;
    align-self: flex-end;
    margin: 8px 12px 0 auto;
  }

  .ai-workbench.minimal-layout.sidebar-collapsed {
    --app-sidebar-width: 100%;
    grid-template-columns: 1fr !important;
  }

  .ai-workbench.minimal-layout.sidebar-collapsed .ai-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    height: auto;
    padding: 0 0 8px !important;
  }

  .ai-workbench.minimal-layout .ai-sidebar-toggle::after {
    display: none;
  }
}

/* sidebar-market-news-v1 */
.ai-workbench.minimal-layout .ai-news-dock {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 4px 0 7px;
}

.ai-workbench.minimal-layout .ai-news-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(6, 182, 212, .18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(232, 249, 255, .68)),
    radial-gradient(circle at 92% 50%, rgba(6, 182, 212, .16), transparent 28%);
  color: #0f274b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 8px 20px rgba(37, 99, 235, .06);
  cursor: pointer;
  text-align: left;
}

.ai-workbench.minimal-layout .ai-news-trigger:hover {
  border-color: rgba(6, 182, 212, .36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .94),
    0 10px 24px rgba(6, 182, 212, .10),
    0 0 0 4px rgba(6, 182, 212, .055);
}

.ai-workbench.minimal-layout .ai-news-pulse {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, #22d3ee, #2563eb);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, .10), 0 0 16px rgba(6, 182, 212, .38);
}

.ai-workbench.minimal-layout .ai-news-pulse::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #ffffff;
  opacity: .92;
}

.ai-workbench.minimal-layout .ai-news-trigger strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-workbench.minimal-layout .ai-news-trigger em {
  color: #0891b2;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.ai-workbench.minimal-layout .ai-news-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 14;
  width: min(330px, calc(100vw - var(--app-sidebar-width) - 24px));
  max-height: min(520px, 70vh);
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(239, 249, 255, .96));
  box-shadow:
    0 24px 60px rgba(15, 23, 42, .18),
    0 0 0 1px rgba(255, 255, 255, .80) inset;
  backdrop-filter: blur(14px);
}

.ai-workbench.minimal-layout .ai-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-workbench.minimal-layout .ai-news-head strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.ai-workbench.minimal-layout .ai-news-head span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}

.ai-workbench.minimal-layout .ai-news-refresh {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ai-workbench.minimal-layout .ai-news-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 9px;
  overflow-x: auto;
}

.ai-workbench.minimal-layout .ai-news-tabs button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.ai-workbench.minimal-layout .ai-news-tabs button.active {
  border-color: rgba(6, 182, 212, .38);
  background: #e8f8ff;
  color: #075985;
}

.ai-workbench.minimal-layout .ai-news-list {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.ai-workbench.minimal-layout .ai-news-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(226, 232, 240, .90);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: inherit;
  text-decoration: none;
}

.ai-workbench.minimal-layout .ai-news-item:hover {
  border-color: rgba(6, 182, 212, .34);
  background: #f8fdff;
}

.ai-workbench.minimal-layout .ai-news-item span {
  color: #0891b2;
  font-size: 11px;
  font-weight: 850;
}

.ai-workbench.minimal-layout .ai-news-item strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.38;
}

.ai-workbench.minimal-layout .ai-news-item em,
.ai-workbench.minimal-layout .ai-news-empty small {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.ai-workbench.minimal-layout .ai-news-empty {
  display: grid;
  gap: 5px;
  padding: 16px 10px;
  border: 1px dashed rgba(148, 163, 184, .38);
  border-radius: 12px;
  background: rgba(248, 250, 252, .78);
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.ai-workbench.minimal-layout.sidebar-collapsed .ai-news-dock {
  display: none;
}

/* platform-news-page-v1 */
.platform-news-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 58px) max(18px, 2vw) max(80px, 8vh);
}

.platform-news-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(6, 182, 212, .18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(235, 248, 255, .76)),
    radial-gradient(circle at 92% 12%, rgba(6, 182, 212, .18), transparent 30%);
  box-shadow:
    0 24px 70px rgba(37, 99, 235, .10),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.platform-news-hero span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 850;
}

.platform-news-hero span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #22d3ee, #2563eb);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, .10), 0 0 18px rgba(6, 182, 212, .30);
}

.platform-news-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
}

.platform-news-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.platform-news-hero button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffffff, #eaf6ff);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}

.platform-news-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.platform-news-meta article {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(226, 232, 240, .82);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .90);
}

.platform-news-meta strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-news-meta span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.platform-news-error {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(248, 113, 113, .25);
  border-radius: 12px;
  background: rgba(254, 242, 242, .86);
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

.platform-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform-news-column {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 252, 255, .82));
  box-shadow:
    0 18px 52px rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255, 255, 255, .94);
}

.platform-news-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.platform-news-column-head strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.platform-news-column-head span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.platform-news-column-head a {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(6, 182, 212, .18);
  border-radius: 999px;
  background: #f0fbff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.platform-news-list {
  display: grid;
  gap: 9px;
}

.platform-news-card {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.platform-news-card:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 182, 212, .32);
  box-shadow: 0 12px 26px rgba(6, 182, 212, .10);
}

.platform-news-card span {
  color: #0891b2;
  font-size: 11px;
  font-weight: 900;
}

.platform-news-card strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.42;
}

.platform-news-card em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.38;
}

.platform-news-column.platform-ozon {
  border-color: rgba(37, 99, 235, .15);
}

.platform-news-column.platform-wildberries {
  border-color: rgba(217, 70, 239, .14);
}

.platform-news-column.platform-yandex {
  border-color: rgba(245, 158, 11, .18);
}

@media (max-width: 1180px) {
  .platform-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .platform-news-page {
    padding: 18px 12px 80px;
  }

  .platform-news-hero {
    display: grid;
    padding: 18px;
  }

  .platform-news-meta {
    grid-template-columns: 1fr;
  }
}

/* platform-news-design-v1 */
.platform-news-design {
  display: grid;
  gap: 14px;
  width: min(1380px, 100%);
  padding-top: clamp(18px, 3vh, 34px);
}

.platform-news-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 20px 22px;
  border: 1px solid rgba(6, 182, 212, .18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(232, 248, 255, .76)),
    radial-gradient(circle at 92% 12%, rgba(6, 182, 212, .18), transparent 28%);
  box-shadow:
    0 22px 58px rgba(37, 99, 235, .10),
    inset 0 1px 0 rgba(255, 255, 255, .90);
}

.platform-news-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 900;
}

.platform-news-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #22d3ee, #2563eb);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, .10), 0 0 18px rgba(6, 182, 212, .30);
}

.platform-news-topbar h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 920;
  letter-spacing: 0;
}

.platform-news-topbar p {
  max-width: 760px;
  margin: 9px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.platform-news-topbar button,
.platform-news-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eaf6ff);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}

.platform-news-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.platform-news-top-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 999px;
  background: #172554;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(30, 64, 175, .18);
}

.operations-news-main {
  min-width: 0;
  overflow: auto;
}

.platform-news-statbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.platform-news-statbar article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, .82);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.platform-news-statbar strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-news-statbar span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.platform-news-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  min-height: 520px;
}

.platform-news-menu {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(236, 248, 255, .78));
  box-shadow:
    0 18px 46px rgba(15, 23, 42, .07),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.platform-news-menu > div {
  padding: 4px 2px 7px;
}

.platform-news-menu > div strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.platform-news-menu > div span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.platform-news-platform {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .70);
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.platform-news-platform:hover,
.platform-news-platform.active {
  border-color: rgba(6, 182, 212, .38);
  background: #eefbff;
  box-shadow: 0 10px 24px rgba(6, 182, 212, .10);
}

.platform-news-platform span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(145deg, #dff7ff, #bfdbfe);
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 900;
}

.platform-news-platform strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-news-platform em {
  color: #0891b2;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.platform-news-main-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.platform-news-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .65fr);
  gap: 14px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(6, 182, 212, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(6, 182, 212, .17), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(239, 249, 255, .82));
  box-shadow:
    0 24px 64px rgba(37, 99, 235, .10),
    inset 0 1px 0 rgba(255, 255, 255, .94);
}

.platform-news-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, .11);
  color: #075985;
  font-size: 12px;
  font-weight: 900;
}

.platform-news-spotlight h2 {
  max-width: 760px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 920;
  line-height: 1.18;
}

.platform-news-spotlight p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.56;
}

.platform-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.platform-news-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.platform-news-side-feed {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(226, 232, 240, .78);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

.platform-news-side-feed > strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.platform-news-side-feed a {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, .92);
  color: inherit;
  text-decoration: none;
}

.platform-news-side-feed span,
.platform-news-row span {
  color: #0891b2;
  font-size: 11px;
  font-weight: 900;
}

.platform-news-side-feed em {
  color: #0f172a;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.38;
}

.platform-news-side-feed p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

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

.platform-news-column-v2 {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow:
    0 16px 42px rgba(15, 23, 42, .07),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.platform-news-column-head-v2 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.platform-news-column-head-v2 span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.platform-news-column-head-v2 strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 920;
}

.platform-news-column-head-v2 em {
  flex: 0 0 auto;
  max-width: 132px;
  color: #0891b2;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  text-align: right;
}

.platform-news-list-v2 {
  display: grid;
  gap: 8px;
}

.platform-news-row {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 14px;
  background: rgba(248, 252, 255, .74);
  color: inherit;
  text-decoration: none;
}

.platform-news-row:hover {
  border-color: rgba(6, 182, 212, .32);
  background: #ffffff;
}

.platform-news-row strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.38;
}

.platform-news-row em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

@media (max-width: 1240px) {
  .platform-news-workspace,
  .platform-news-spotlight,
  .platform-news-board-grid {
    grid-template-columns: 1fr;
  }

  .platform-news-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-news-menu > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .platform-news-topbar,
  .platform-news-statbar,
  .platform-news-menu {
    grid-template-columns: 1fr;
  }

  .platform-news-top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .platform-news-top-actions a,
  .platform-news-top-actions button {
    flex: 1 1 0;
  }
}


.minimal-thinking-mode,
.ai-workbench.minimal-layout .minimal-thinking-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 124px;
  height: 36px;
  padding: 0 10px 0 9px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(14, 165, 233, 0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 6px 18px rgba(37, 99, 235, 0.10);
}

.thinking-mode-dot,
.ai-workbench.minimal-layout .thinking-mode-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
  flex: 0 0 auto;
}

.minimal-thinking-mode select,
.ai-workbench.minimal-layout .minimal-thinking-mode select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  padding: 0;
  appearance: auto;
  -webkit-appearance: auto;
}

.minimal-thinking-mode:focus-within,
.ai-workbench.minimal-layout .minimal-thinking-mode:focus-within {
  border-color: rgba(37, 99, 235, 0.42);
}

.minimal-thinking-mode::before,
.ai-workbench.minimal-layout .minimal-thinking-mode::before {
  content: "";
  display: none;
}

/* home-conversation-composer-v1 */
.minimal-home,
.ai-workbench.minimal-layout .minimal-home {
  width: min(780px, calc(100vw - 340px));
}

.minimal-input-card,
.ai-workbench.minimal-layout .minimal-input-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 14px 16px 12px;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, .12),
    0 1px 0 rgba(255, 255, 255, .88) inset;
  backdrop-filter: blur(10px);
}

.ai-workbench.minimal-layout .minimal-input-card::before,
.ai-workbench.minimal-layout .minimal-input-card::after {
  display: none;
}

.minimal-input-card:focus-within,
.ai-workbench.minimal-layout .minimal-input-card:focus-within {
  border-color: rgba(37, 99, 235, .22);
  box-shadow:
    0 24px 58px rgba(15, 23, 42, .14),
    0 0 0 4px rgba(37, 99, 235, .055);
}

.minimal-actions,
.ai-workbench.minimal-layout .minimal-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  min-height: 100%;
  padding: 0;
  background: transparent;
}

.minimal-inline-input,
.ai-workbench.minimal-layout .minimal-inline-input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 118px;
  max-height: 260px;
  height: auto;
  padding: 2px 2px 8px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
}

.minimal-inline-input::placeholder,
.ai-workbench.minimal-layout .minimal-inline-input::placeholder {
  color: #9aa4b2;
}

.minimal-left,
.ai-workbench.minimal-layout .minimal-left {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
}

.minimal-market,
.ai-workbench.minimal-layout .minimal-market,
.minimal-thinking-mode,
.ai-workbench.minimal-layout .minimal-thinking-mode {
  width: auto;
  min-width: 128px;
  height: 40px;
  border-radius: 999px;
  background: #f4f8ff;
}

.minimal-right {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.minimal-upload,
.ai-workbench.minimal-layout .minimal-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  cursor: pointer;
}

.minimal-upload:hover,
.ai-workbench.minimal-layout .minimal-upload:hover {
  background: #f1f5f9;
}

.minimal-upload small,
.ai-workbench.minimal-layout .minimal-upload small {
  display: none;
}

.minimal-upload .upload-icon,
.ai-workbench.minimal-layout .minimal-upload .upload-icon {
  width: 22px;
  height: 22px;
}

.minimal-send,
.ai-workbench.minimal-layout .minimal-send {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #020617;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(2, 6, 23, .20);
}

.minimal-send:hover,
.ai-workbench.minimal-layout .minimal-send:hover {
  background: #111827;
  transform: translateY(-1px);
}

.minimal-send:disabled,
.ai-workbench.minimal-layout .minimal-send:disabled {
  background: #cbd5e1;
  box-shadow: none;
}

@media (max-width: 900px) {
  .minimal-home,
  .ai-workbench.minimal-layout .minimal-home {
    width: min(100% - 24px, 780px);
  }

  .minimal-input-card,
  .ai-workbench.minimal-layout .minimal-input-card {
    min-height: 210px;
    border-radius: 22px;
  }

  .minimal-inline-input,
  .ai-workbench.minimal-layout .minimal-inline-input {
    min-height: 96px;
    max-height: 180px;
    font-size: 15px;
  }

  .minimal-actions,
  .ai-workbench.minimal-layout .minimal-actions {
    gap: 8px;
  }

  .minimal-market,
  .ai-workbench.minimal-layout .minimal-market,
  .minimal-thinking-mode,
  .ai-workbench.minimal-layout .minimal-thinking-mode {
    min-width: 112px;
  }
}

/* home-compact-composer-v1: keep the answer stream dominant after chat starts */
.minimal-home.chat-active,
.ai-workbench.minimal-layout .minimal-home.chat-active {
  width: min(1320px, calc(100vw - 180px));
}

.minimal-composer.is-chatting,
.ai-workbench.minimal-layout .minimal-composer.is-chatting {
  width: min(1320px, calc(100vw - 180px));
  margin-top: 6px;
}

.minimal-composer.is-chatting .minimal-input-card,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-input-card {
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 18px;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, .08),
    0 1px 0 rgba(255, 255, 255, .86) inset;
}

.minimal-composer.is-chatting .minimal-actions,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-actions {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 0;
}

.minimal-composer.is-chatting .minimal-inline-input,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-inline-input {
  grid-column: 2;
  grid-row: 1;
  min-height: 38px;
  max-height: 76px;
  padding: 7px 4px 4px;
  font-size: 15px;
  line-height: 1.55;
}

.minimal-composer.is-chatting .minimal-left,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-left {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.minimal-composer.is-chatting .minimal-market,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-market,
.minimal-composer.is-chatting .minimal-thinking-mode,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-thinking-mode {
  height: 34px;
  min-width: 112px;
}

.minimal-composer.is-chatting .minimal-right,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-right {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  gap: 8px;
}

.minimal-composer.is-chatting .minimal-upload,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-upload {
  width: 36px;
  height: 36px;
}

.minimal-composer.is-chatting .minimal-send,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-send {
  width: 40px;
  height: 40px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .16);
}

.minimal-composer.is-chatting .minimal-file-preview,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-file-preview {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 16px;
}

.minimal-composer.is-chatting .minimal-file-list,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-file-list {
  gap: 6px;
}

.minimal-composer.is-chatting .minimal-file-chip,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-file-chip {
  min-height: 32px;
  padding: 5px 8px;
}

.minimal-composer.is-chatting .minimal-status,
.ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-status {
  display: none;
}

.ai-workbench.minimal-layout .minimal-chat-stream,
.minimal-chat-stream {
  max-height: calc(100vh - 150px);
}

@media (max-width: 900px) {
  .minimal-home.chat-active,
  .ai-workbench.minimal-layout .minimal-home.chat-active,
  .minimal-composer.is-chatting,
  .ai-workbench.minimal-layout .minimal-composer.is-chatting {
    width: min(100% - 18px, 760px);
  }

  .minimal-composer.is-chatting .minimal-input-card,
  .ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-input-card {
    min-height: 76px;
    border-radius: 18px;
  }

  .minimal-composer.is-chatting .minimal-inline-input,
  .ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-inline-input {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 42px;
    max-height: 76px;
  }
}

/* home-responsive-stability-v1: keep the landing composer stable across PC zoom/DPI/viewport differences */
.home-shell .ai-workbench.minimal-layout .ai-main,
.ai-workbench.minimal-layout .ai-main:has(.minimal-home:not(.chat-active)),
.ai-workbench:has(.minimal-home:not(.chat-active)) .ai-main {
  align-items: flex-start;
  justify-content: center;
  height: 100vh;
  min-height: 100vh;
  padding: clamp(54px, 8vh, 92px) 28px 28px;
  box-sizing: border-box;
  overflow: auto;
}

.home-shell .minimal-home:not(.chat-active),
.minimal-home:not(.chat-active),
.ai-workbench.minimal-layout .minimal-home:not(.chat-active) {
  width: min(780px, calc(100vw - var(--app-sidebar-width, 268px) - 96px));
  margin: 0 auto;
}

.home-shell .minimal-home:not(.chat-active) .minimal-composer,
.minimal-home:not(.chat-active) .minimal-composer,
.ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-composer {
  width: 100%;
  margin: 0;
}

.home-shell .minimal-home:not(.chat-active) .minimal-title,
.minimal-home:not(.chat-active) .minimal-title,
.ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-title {
  margin: 0 0 clamp(18px, 2.6vh, 28px);
}

.home-shell .minimal-home:not(.chat-active) .minimal-logo,
.minimal-home:not(.chat-active) .minimal-logo,
.ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-logo {
  width: clamp(76px, 10vh, 104px);
  height: clamp(76px, 10vh, 104px);
  margin-bottom: clamp(8px, 1.4vh, 14px);
}

.home-shell .minimal-home:not(.chat-active) .minimal-title h1,
.minimal-home:not(.chat-active) .minimal-title h1,
.ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-title h1 {
  font-size: clamp(28px, 3.1vw, 36px);
}

.home-shell .minimal-home:not(.chat-active) .minimal-title p,
.minimal-home:not(.chat-active) .minimal-title p,
.ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-title p {
  margin-top: 8px;
}

.home-shell .minimal-home:not(.chat-active) .minimal-input-card,
.minimal-home:not(.chat-active) .minimal-input-card,
.ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-input-card {
  min-height: clamp(190px, 24vh, 250px);
}

.home-shell .minimal-home:not(.chat-active) .minimal-inline-input,
.minimal-home:not(.chat-active) .minimal-inline-input,
.ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-inline-input {
  min-height: clamp(86px, 14vh, 118px);
  max-height: clamp(150px, 22vh, 240px);
}

.home-shell .ai-workbench.minimal-layout .ai-main:has(.minimal-home.chat-active),
.ai-workbench.minimal-layout .ai-main:has(.minimal-home.chat-active),
.ai-workbench:has(.minimal-home.chat-active) .ai-main {
  align-items: center;
  padding: 24px 28px;
}

@media (max-height: 820px) {
  .home-shell .ai-workbench.minimal-layout .ai-main,
  .ai-workbench.minimal-layout .ai-main:has(.minimal-home:not(.chat-active)),
  .ai-workbench:has(.minimal-home:not(.chat-active)) .ai-main {
    padding-top: clamp(32px, 5.5vh, 48px);
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-logo,
  .minimal-home:not(.chat-active) .minimal-logo,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-logo {
    width: 72px;
    height: 72px;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-title,
  .minimal-home:not(.chat-active) .minimal-title,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-title {
    margin-bottom: 16px;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-input-card,
  .minimal-home:not(.chat-active) .minimal-input-card,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-input-card {
    min-height: 188px;
  }
}

@media (max-height: 700px) {
  .home-shell .ai-workbench.minimal-layout .ai-main,
  .ai-workbench.minimal-layout .ai-main:has(.minimal-home:not(.chat-active)),
  .ai-workbench:has(.minimal-home:not(.chat-active)) .ai-main {
    padding-top: 24px;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-logo,
  .minimal-home:not(.chat-active) .minimal-logo,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-logo,
  .home-shell .minimal-home:not(.chat-active) .minimal-title p,
  .minimal-home:not(.chat-active) .minimal-title p,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-title p {
    display: none;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-input-card,
  .minimal-home:not(.chat-active) .minimal-input-card,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-input-card {
    min-height: 168px;
  }
}

@media (max-width: 900px) {
  .home-shell .minimal-home:not(.chat-active),
  .minimal-home:not(.chat-active),
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) {
    width: min(100% - 24px, 780px);
  }

  .home-shell .ai-workbench.minimal-layout .ai-main,
  .ai-workbench.minimal-layout .ai-main:has(.minimal-home:not(.chat-active)),
  .ai-workbench:has(.minimal-home:not(.chat-active)) .ai-main {
    height: auto;
    min-height: calc(100vh - 120px);
    padding: 24px 12px 28px;
  }
}

/* ===== 桌面加宽(2026-07-02 bug-577 随手优化): 初始首页内容区在宽屏下由~780px加宽到最大920px。
   ⚠前面有条 .ai-workbench.minimal-layout .minimal-home:not(.chat-active)(4类特异性)定780px,
   这里选择器必须同等特异性且放文件末尾才能赢。对话态(chat-active)前面已是1320px不动。
   限定桌面(>900px)不影响手机版。 ===== */
@media (min-width: 901px) {
  .home-shell .minimal-home:not(.chat-active),
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active),
  .ai-workbench:has(.minimal-home) .minimal-home:not(.chat-active) {
    width: min(920px, calc(100vw - 380px));
  }
}

/* ===== bug-577 横滚根治补充: 又一条后排规则 .home-shell/.ai-main:has(minimal-home) 带 overflow:auto
   把上面的横向裁剪盖掉了。这里按它的原选择器同特异性+文件末尾压回, 只裁横向(竖向保持可滚)。 ===== */
.home-shell .ai-workbench.minimal-layout .ai-main,
.ai-workbench.minimal-layout .ai-main:has(.minimal-home:not(.chat-active)),
.ai-workbench:has(.minimal-home:not(.chat-active)) .ai-main,
.ai-workbench.minimal-layout .ai-main {
  overflow-x: hidden;
}

/* ===== bug-577 再补(用户窄视口/高缩放实测右侧被裁): 内容区永远不得超过主列宽,
   否则 flex 居中+overflow-x:hidden 会把超出部分裁掉(右侧内容消失)。max-width 兜底所有宽度含 chat-active。 ===== */
.minimal-home,
.minimal-home.chat-active,
.ai-workbench.minimal-layout .minimal-home:not(.chat-active),
.home-shell .minimal-home:not(.chat-active) {
  max-width: 100%;
}

.ai-nav-group { margin: 2px 0; }
.ai-nav-group summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: #334155; font-weight: 750; border-radius: 10px; cursor: pointer; list-style: none; }
.ai-nav-group summary::-webkit-details-marker { display: none; }
.ai-nav-group summary:hover, .ai-nav-group[open] summary { background: #eef4ff; color: #2563eb; }
.ai-nav-group summary i { font-style: normal; transition: transform .18s ease; }
.ai-nav-group[open] summary i { transform: rotate(180deg); }
.ai-nav-group-links { display: grid; gap: 2px; padding: 2px 0 4px 12px; }
.ai-nav-group-links a { font-size: 13px !important; padding: 8px 10px !important; }
.yandex-ads-layout { background: #f5f7fb; }
.yandex-ads-main { min-width: 0; padding: 24px 26px 32px !important; overflow: hidden; }
.yandex-ads-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.yandex-ads-kicker { display: block; margin-bottom: 7px; color: #2563eb; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.yandex-ads-header h1 { margin: 0; color: #0f172a; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.yandex-ads-header p { max-width: 760px; margin: 9px 0 0; color: #64748b; line-height: 1.65; }
.yandex-ads-sync { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 8px 25px rgba(15,23,42,.05); }
.yandex-ads-sync span { max-width: 260px; color: #64748b; font-size: 12px; }
.yandex-ads-sync button, .yandex-ads-toolbar button, .yandex-ads-pagination button { border: 1px solid #dbe4f0; background: #fff; color: #334155; border-radius: 9px; padding: 9px 13px; font-weight: 700; cursor: pointer; }
.yandex-ads-sync button { background: #2563eb; border-color: #2563eb; color: #fff; white-space: nowrap; }
.yandex-ads-sync button:disabled, .yandex-ads-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.yandex-ads-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.yandex-ads-stats article { min-width: 0; padding: 16px 17px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 7px 22px rgba(15,23,42,.045); }
.yandex-ads-stats article.expense { border-top: 3px solid #f97316; }
.yandex-ads-stats article.revenue { border-top: 3px solid #16a34a; }
.yandex-ads-stats span, .yandex-ads-stats em { display: block; color: #64748b; font-size: 12px; font-style: normal; }
.yandex-ads-stats strong { display: block; overflow: hidden; margin: 7px 0 4px; color: #0f172a; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.yandex-ads-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, .8fr)) auto; gap: 10px; align-items: end; padding: 13px; margin-bottom: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.yandex-ads-toolbar label { display: grid; gap: 6px; min-width: 0; }
.yandex-ads-toolbar label span { color: #64748b; font-size: 11px; font-weight: 750; }
.yandex-ads-toolbar input, .yandex-ads-toolbar select { width: 100%; min-width: 0; height: 39px; padding: 0 11px; border: 1px solid #dbe4f0; background: #fff; color: #1e293b; border-radius: 9px; outline: none; }
.yandex-ads-toolbar input:focus, .yandex-ads-toolbar select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.yandex-ads-table-shell { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe7f1; border-radius: 14px; box-shadow: 0 9px 28px rgba(15,23,42,.05); }
.yandex-ads-table-meta, .yandex-ads-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; }
.yandex-ads-table-meta { border-bottom: 1px solid #e5eaf1; }
.yandex-ads-table-meta strong { color: #0f172a; }
.yandex-ads-table-meta span, .yandex-ads-pagination span { color: #64748b; font-size: 12px; }
.yandex-ads-table-wrap { max-width: 100%; max-height: calc(100vh - 385px); overflow: auto; }
.yandex-ads-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.yandex-ads-table th, .yandex-ads-table td { height: 38px; padding: 8px 10px; border-right: 1px solid #e6ebf2; border-bottom: 1px solid #e6ebf2; background: #fff; color: #334155; text-align: left; white-space: nowrap; }
.yandex-ads-table th { position: sticky; top: 0; z-index: 3; height: 42px; background: #f7f9fc; color: #334155; font-weight: 800; cursor: pointer; }
.yandex-ads-table th span { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.yandex-ads-table th i { margin-left: 6px; color: #2563eb; font-style: normal; }
.yandex-ads-table tbody tr:hover td { background: #f8fbff; }
.yandex-ads-table .row-index { position: sticky; left: 0; z-index: 4; width: 48px; min-width: 48px; color: #94a3b8; text-align: center; background: #fafbfd; }
.yandex-ads-table th.row-index { z-index: 6; }
.yandex-ads-table .frozen { position: sticky; left: 48px; z-index: 2; box-shadow: 1px 0 0 #dfe7f1; }
.yandex-ads-table th.frozen { z-index: 5; background: #f7f9fc; }
.yandex-ads-table tbody tr:hover td.frozen { background: #f8fbff; }
.cell-number { display: block; text-align: right; font-variant-numeric: tabular-nums; }
.cell-empty { color: #cbd5e1; }
.cell-tag { display: inline-flex; max-width: 170px; overflow: hidden; padding: 3px 7px; border-radius: 5px; text-overflow: ellipsis; white-space: nowrap; }
.cell-tag.store { background: #eef2f7; color: #334155; }
.cell-tag.campaign { background: #fff4d7; color: #9a6700; }
.yandex-ads-empty { min-width: 500px; padding: 48px !important; color: #94a3b8 !important; text-align: center !important; }
.yandex-ads-pagination { border-top: 1px solid #e5eaf1; }
.yandex-ads-pagination div { display: flex; gap: 8px; }
@media (max-width: 1180px) { .yandex-ads-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .yandex-ads-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .yandex-ads-main { padding: 18px 12px 24px !important; } .yandex-ads-header { display: grid; } .yandex-ads-sync { align-items: stretch; flex-direction: column; } .yandex-ads-stats, .yandex-ads-toolbar { grid-template-columns: 1fr; } .yandex-ads-table-wrap { max-height: 60vh; } }

.yandex-ads-main { display: block !important; width: auto !important; max-width: none !important; }
.yandex-ads-main > * { width: 100%; box-sizing: border-box; }

/* home-mobile-layout-v2 */
@media (max-width: 760px) {
  html,
  body,
  body:has(.ai-workbench),
  body:has(.minimal-home) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .ai-workbench.minimal-layout,
  .ai-workbench:has(.minimal-home) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 100svh;
  }

  .ai-workbench.minimal-layout .ai-sidebar,
  .ai-workbench:has(.minimal-home) .ai-sidebar {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100% !important;
    height: auto !important;
    min-height: 60px;
    max-height: none !important;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    box-sizing: border-box;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    background: rgba(248, 251, 255, .94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    backdrop-filter: blur(16px);
  }

  .ai-workbench.minimal-layout .ai-sidebar::before,
  .ai-workbench.minimal-layout .ai-side-top,
  .ai-workbench.minimal-layout .ai-page-nav,
  .ai-workbench.minimal-layout .ai-history,
  .ai-workbench:has(.minimal-home) .ai-side-top,
  .ai-workbench:has(.minimal-home) .ai-page-nav,
  .ai-workbench:has(.minimal-home) .ai-history {
    display: none !important;
  }

  .ai-workbench.minimal-layout .ai-new-chat,
  .ai-workbench:has(.minimal-home) .ai-new-chat {
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 13px;
    border-radius: 14px;
    font-size: 14px;
  }

  .ai-workbench.minimal-layout .ai-new-chat::before {
    width: 23px;
    height: 23px;
    font-size: 18px;
  }

  .ai-workbench.minimal-layout .ai-user,
  .ai-workbench:has(.minimal-home) .ai-user {
    gap: 7px;
    width: auto;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 2px 0 10px !important;
    border: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, .7);
    box-shadow: none;
  }

  .ai-workbench.minimal-layout .ai-user span {
    max-width: 84px;
    font-size: 12px;
  }

  .ai-workbench.minimal-layout .ai-user button {
    width: 36px;
    height: 36px;
  }

  .ai-workbench.minimal-layout .ai-user-menu {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    width: min(260px, calc(100vw - 24px));
  }

  .home-shell .ai-workbench.minimal-layout .ai-main,
  .ai-workbench.minimal-layout .ai-main,
  .ai-workbench.minimal-layout .ai-main:has(.minimal-home:not(.chat-active)),
  .ai-workbench:has(.minimal-home:not(.chat-active)) .ai-main {
    width: 100%;
    height: auto !important;
    min-height: calc(100svh - 60px) !important;
    padding: 24px 14px max(88px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
    align-items: flex-start !important;
    justify-content: center;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .ai-workbench.minimal-layout .ai-main::before,
  .ai-workbench.minimal-layout .ai-main::after,
  .ai-workbench.minimal-layout::before,
  .ai-workbench.minimal-layout::after,
  .ai-workbench.minimal-layout .minimal-home::before,
  .ai-workbench.minimal-layout .minimal-home::after {
    display: none !important;
  }

  .home-shell .minimal-home:not(.chat-active),
  .minimal-home:not(.chat-active),
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) {
    width: 100% !important;
    max-width: 520px;
    margin: 0 auto;
    transform: none !important;
  }

  .minimal-title,
  .ai-workbench.minimal-layout .minimal-title,
  .home-shell .minimal-home:not(.chat-active) .minimal-title {
    margin: 0 0 18px !important;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-logo,
  .minimal-home:not(.chat-active) .minimal-logo,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-logo {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-title h1,
  .minimal-home:not(.chat-active) .minimal-title h1,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-title h1 {
    font-size: clamp(25px, 7.2vw, 30px) !important;
    line-height: 1.18;
  }

  .minimal-home:not(.chat-active) .minimal-title h1::after {
    width: 68px;
    margin-top: 10px;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-title p,
  .minimal-home:not(.chat-active) .minimal-title p,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-title p {
    margin: 9px auto 0;
    max-width: 330px;
    font-size: 13px;
    line-height: 1.55;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-input-card,
  .minimal-home:not(.chat-active) .minimal-input-card,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-input-card {
    width: 100%;
    min-height: 176px !important;
    padding: 13px 13px 11px;
    border-radius: 19px !important;
    clip-path: none !important;
    overflow: hidden;
  }

  .minimal-actions,
  .ai-workbench.minimal-layout .minimal-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
  }

  .home-shell .minimal-home:not(.chat-active) .minimal-inline-input,
  .minimal-home:not(.chat-active) .minimal-inline-input,
  .ai-workbench.minimal-layout .minimal-home:not(.chat-active) .minimal-inline-input {
    grid-column: 1 / -1;
    min-height: 82px !important;
    max-height: 138px !important;
    padding: 2px 2px 6px;
    font-size: 16px;
    line-height: 1.55;
  }

  .minimal-left,
  .ai-workbench.minimal-layout .minimal-left {
    grid-column: 1;
  }

  .minimal-right,
  .ai-workbench.minimal-layout .minimal-right {
    grid-column: 2;
    gap: 6px;
  }

  .minimal-market,
  .ai-workbench.minimal-layout .minimal-market {
    min-width: 104px;
    height: 38px;
  }

  .minimal-upload,
  .ai-workbench.minimal-layout .minimal-upload {
    width: 38px;
    height: 38px;
  }

  .minimal-send,
  .ai-workbench.minimal-layout .minimal-send {
    width: 42px;
    height: 42px;
  }

  .minimal-examples,
  .ai-workbench.minimal-layout .minimal-examples {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 14px -2px 0;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .minimal-examples::-webkit-scrollbar {
    display: none;
  }

  .minimal-examples button,
  .ai-workbench.minimal-layout .minimal-examples button {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
    white-space: nowrap;
  }

  .minimal-status,
  .ai-workbench.minimal-layout .minimal-status {
    min-height: 0;
    margin: 7px 2px 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
  }

  .ai-workbench.minimal-layout .ai-main:has(.minimal-home.chat-active),
  .ai-workbench:has(.minimal-home.chat-active) .ai-main {
    height: calc(100svh - 60px) !important;
    min-height: 0 !important;
    padding: 8px 10px max(10px, env(safe-area-inset-bottom)) !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  .minimal-home.chat-active,
  .ai-workbench.minimal-layout .minimal-home.chat-active {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .minimal-chat-stream,
  .ai-workbench.minimal-layout .minimal-chat-stream {
    max-height: none !important;
    padding: 10px 2px 16px;
  }

  .minimal-composer.is-chatting,
  .ai-workbench.minimal-layout .minimal-composer.is-chatting {
    width: 100% !important;
  }

  .minimal-composer.is-chatting .minimal-input-card,
  .ai-workbench.minimal-layout .minimal-composer.is-chatting .minimal-input-card {
    min-height: 92px;
    padding: 9px 10px;
  }

  body:has(.minimal-home) .page-pet {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .ai-workbench.minimal-layout .ai-user span {
    display: none;
  }

  .ai-workbench.minimal-layout .ai-new-chat {
    font-size: 13px;
  }

  .home-shell .ai-workbench.minimal-layout .ai-main,
  .ai-workbench.minimal-layout .ai-main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .minimal-market,
  .ai-workbench.minimal-layout .minimal-market {
    min-width: 96px;
  }
}
/* home-mobile-layout-v2-compact */
@media (max-width: 760px) {
  .ai-workbench.minimal-layout .ai-sidebar-toggle,
  .ai-workbench:has(.minimal-home) .ai-sidebar-toggle {
    display: none !important;
  }

  .minimal-actions,
  .ai-workbench.minimal-layout .minimal-actions {
    min-height: 0 !important;
    height: auto !important;
  }
}
/* home-mobile-category-drawer-v1 */
@media (max-width: 760px) {
  .ai-workbench.minimal-layout .ai-sidebar,
  .ai-workbench:has(.minimal-home) .ai-sidebar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ai-workbench.minimal-layout .ai-sidebar-toggle,
  .ai-workbench:has(.minimal-home) .ai-sidebar-toggle {
    position: relative !important;
    inset: auto !important;
    grid-column: 1;
    grid-row: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border: 1px solid rgba(37, 99, 235, .18) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .86) !important;
    color: #1d4ed8 !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .09) !important;
  }

  .ai-workbench.minimal-layout .ai-sidebar-toggle::before,
  .ai-workbench.minimal-layout .ai-sidebar-toggle::after {
    display: none !important;
  }

  .ai-workbench.minimal-layout .ai-sidebar-toggle-icon {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 21px;
    line-height: 1;
  }

  .ai-workbench.minimal-layout .ai-sidebar-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ai-workbench.minimal-layout .ai-new-chat,
  .ai-workbench:has(.minimal-home) .ai-new-chat {
    grid-column: 2;
    grid-row: 1;
  }

  .ai-workbench.minimal-layout .ai-user,
  .ai-workbench:has(.minimal-home) .ai-user {
    grid-column: 3;
    grid-row: 1;
  }

  .ai-workbench.minimal-layout .ai-page-nav,
  .ai-workbench:has(.minimal-home) .ai-page-nav {
    position: fixed !important;
    top: calc(61px + env(safe-area-inset-top));
    left: 0;
    bottom: 0;
    z-index: 1300;
    display: flex !important;
    flex-direction: column;
    align-content: stretch;
    gap: 5px;
    width: min(84vw, 320px);
    max-width: 320px;
    padding: 16px 12px max(24px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(-104%);
    visibility: hidden;
    pointer-events: none;
    border-right: 1px solid rgba(148, 163, 184, .22);
    background: #f8fbff;
    box-shadow: 20px 0 48px rgba(15, 23, 42, .16);
    transition: transform .22s ease, visibility .22s ease;
  }

  .ai-workbench.minimal-layout.mobile-nav-open .ai-page-nav,
  .ai-workbench.mobile-nav-open:has(.minimal-home) .ai-page-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .ai-workbench.minimal-layout .ai-page-nav a,
  .ai-workbench:has(.minimal-home) .ai-page-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 14px 0 18px;
    box-sizing: border-box;
    white-space: normal;
  }

  .ai-workbench.minimal-layout .ai-nav-group,
  .ai-workbench:has(.minimal-home) .ai-nav-group {
    width: 100%;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: calc(61px + env(safe-area-inset-top)) 0 0;
    z-index: 1250;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition: opacity .2s ease, visibility .2s ease;
  }

  .ai-workbench.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
/* home-mobile-category-drawer-height-v1 */
@media (max-width: 760px) {
  .ai-workbench.minimal-layout .ai-page-nav,
  .ai-workbench:has(.minimal-home) .ai-page-nav,
  .ai-workbench.minimal-layout.sidebar-collapsed .ai-page-nav {
    height: calc(100svh - 61px - env(safe-area-inset-top)) !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
/* home-mobile-category-drawer-stack-v1 */
@media (max-width: 760px) {
  .mobile-nav-backdrop {
    z-index: 1200;
  }

  .ai-workbench.minimal-layout.mobile-nav-open .ai-sidebar,
  .ai-workbench.mobile-nav-open:has(.minimal-home) .ai-sidebar {
    z-index: 1400 !important;
  }

  .ai-workbench.minimal-layout.mobile-nav-open .ai-page-nav,
  .ai-workbench.mobile-nav-open:has(.minimal-home) .ai-page-nav {
    z-index: 1450;
  }
}
/* home-mobile-category-drawer-overflow-v1 */
@media (max-width: 760px) {
  .ai-workbench.minimal-layout.mobile-nav-open .ai-sidebar,
  .ai-workbench.mobile-nav-open:has(.minimal-home) .ai-sidebar {
    overflow: visible !important;
  }
}

/* Home Dashboard V1 Tokens */
.home-dashboard-v1 {
  --home-color-canvas: #f5f8fc;
  --home-color-surface: #ffffff;
  --home-color-surface-muted: #f8fafc;
  --home-color-text-primary: #0f172a;
  --home-color-text-secondary: #475569;
  --home-color-text-muted: #64748b;
  --home-color-border: #dce5ef;
  --home-color-border-strong: #b8c7d9;
  --home-color-primary: #2563eb;
  --home-color-primary-hover: #1d4ed8;
  --home-color-primary-active: #1e40af;
  --home-color-focus: #0ea5e9;
  --home-color-success: #15803d;
  --home-color-warning: #b45309;
  --home-color-danger: #b91c1c;
  --home-color-info: #0369a1;
  --home-space-1: 4px;
  --home-space-2: 8px;
  --home-space-3: 12px;
  --home-space-4: 16px;
  --home-space-5: 20px;
  --home-space-6: 24px;
  --home-space-8: 32px;
  --home-space-10: 40px;
  --home-radius-control: 8px;
  --home-radius-panel: 12px;
  --home-sidebar-width: 240px;
  --home-sidebar-collapsed-width: 72px;
  --home-topbar-height: 64px;
  --home-content-max-width: 1180px;
  --home-motion-fast: 120ms;
  --home-motion-standard: 180ms;
  min-height: 100dvh;
  width: 100%;
  overflow-x: clip;
  color: var(--home-color-text-primary);
  background: var(--home-color-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.home-dashboard-v1,
.home-dashboard-v1 *,
.home-dashboard-v1 *::before,
.home-dashboard-v1 *::after {
  box-sizing: border-box;
}

.home-dashboard-v1 [hidden] {
  display: none !important;
}

main.home-dashboard-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #f5f8fc;
}

main.home-dashboard-shell + .page-pet {
  display: none !important;
}

.home-skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 2200;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #0f172a;
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms cubic-bezier(0.2, 0, 0, 1);
}

.home-skip-link:focus {
  transform: translateY(0);
}

/* Home Dashboard V1 Layout */
.home-dashboard-v1 {
  display: grid;
  grid-template-columns: var(--home-sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns var(--home-motion-standard) cubic-bezier(0.2, 0, 0, 1);
}

.home-dashboard-v1.is-sidebar-collapsed {
  grid-template-columns: var(--home-sidebar-collapsed-width) minmax(0, 1fr);
}

.home-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: var(--home-space-5);
  width: var(--home-sidebar-width);
  height: 100dvh;
  min-height: 0;
  padding: 20px 16px 16px;
  overflow: hidden;
  border-right: 1px solid var(--home-color-border);
  background: var(--home-color-surface);
  transition: width var(--home-motion-standard) cubic-bezier(0.2, 0, 0, 1), transform var(--home-motion-standard) cubic-bezier(0.2, 0, 0, 1);
}

.home-dashboard-v1.is-sidebar-collapsed .home-sidebar {
  width: var(--home-sidebar-collapsed-width);
  padding-inline: 10px;
}

.home-dashboard-content {
  min-width: 0;
  min-height: 100dvh;
}

.home-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--home-topbar-height);
  padding: 0 32px;
  border-bottom: 1px solid var(--home-color-border);
  background: rgba(255, 255, 255, 0.96);
}

.home-main {
  width: min(100%, calc(var(--home-content-max-width) + 64px));
  margin: 0 auto;
  padding: 32px;
  outline: none;
}

.home-section,
.home-panel,
.home-help-banner {
  margin-top: 24px;
}

.home-dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

/* Home Dashboard V1 Navigation */
.home-sidebar-brand-row,
.home-brand,
.home-sidebar-user,
.home-topbar-leading,
.home-topbar-actions,
.home-user-button,
.home-welcome > div,
.home-help-banner > div {
  display: flex;
  align-items: center;
}

.home-sidebar-brand-row {
  justify-content: space-between;
  gap: 8px;
}

.home-brand {
  min-width: 0;
  gap: 10px;
  color: var(--home-color-text-primary);
  text-decoration: none;
}

.home-brand > span,
.home-brand-orbit,
.home-user-button > span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  color: var(--home-color-primary);
  background: #eff6ff;
  font-size: 16px;
  font-weight: 800;
}

.home-brand strong {
  overflow: hidden;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
}

.home-icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--home-color-border);
  border-radius: var(--home-radius-control);
  color: var(--home-color-text-secondary);
  background: var(--home-color-surface);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--home-motion-fast), border-color var(--home-motion-fast), background var(--home-motion-fast);
}

.home-sidebar-collapse {
  width: 36px;
  height: 36px;
}

.home-menu-button {
  display: none;
}

.home-navigation {
  min-height: 0;
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.home-nav-group + .home-nav-group {
  margin-top: 18px;
}

.home-nav-group h2 {
  margin: 0 10px 6px;
  color: var(--home-color-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 2px 0;
  padding: 0 12px;
  overflow: hidden;
  border-radius: var(--home-radius-control);
  color: var(--home-color-text-secondary);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--home-motion-fast), background var(--home-motion-fast);
}

.home-nav-link:hover {
  color: var(--home-color-text-primary);
  background: var(--home-color-surface-muted);
}

.home-nav-link.is-current {
  color: var(--home-color-primary);
  background: #eff6ff;
}

.home-nav-link.is-current::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--home-color-primary);
  content: "";
}

.home-sidebar-user {
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-top: 1px solid var(--home-color-border);
}

.home-user-presence {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 2px solid #dcfce7;
  border-radius: 50%;
  background: #16a34a;
}

.home-sidebar-user div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.home-sidebar-user strong,
.home-sidebar-user span,
.home-user-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sidebar-user strong {
  font-size: 14px;
}

.home-sidebar-user div span {
  color: var(--home-color-text-muted);
  font-size: 12px;
}

.home-dashboard-v1.is-sidebar-collapsed .home-brand strong,
.home-dashboard-v1.is-sidebar-collapsed .home-new-task,
.home-dashboard-v1.is-sidebar-collapsed .home-nav-group h2,
.home-dashboard-v1.is-sidebar-collapsed .home-sidebar-user div,
.home-dashboard-v1.is-sidebar-collapsed .home-user-presence {
  display: none;
}

.home-dashboard-v1.is-sidebar-collapsed .home-sidebar-brand-row,
.home-dashboard-v1.is-sidebar-collapsed .home-sidebar-user {
  justify-content: center;
  padding-inline: 0;
}

.home-dashboard-v1.is-sidebar-collapsed .home-sidebar-collapse span {
  transform: rotate(180deg);
}

.home-dashboard-v1.is-sidebar-collapsed .home-nav-link {
  justify-content: center;
  padding-inline: 8px;
}

.home-dashboard-v1.is-sidebar-collapsed .home-nav-link span {
  display: block;
  width: 1em;
  overflow: hidden;
  text-overflow: clip;
}

.home-topbar-leading,
.home-topbar-actions {
  gap: 12px;
}

.home-topbar-leading > div {
  display: grid;
  gap: 1px;
}

.home-topbar-leading > div span {
  color: var(--home-color-text-muted);
  font-size: 12px;
}

.home-topbar-leading > div strong {
  font-size: 17px;
}

.home-user-menu-wrap {
  position: relative;
}

.home-user-button {
  gap: 9px;
  min-height: 44px;
  max-width: 220px;
  padding: 3px 10px 3px 4px;
  border: 1px solid var(--home-color-border);
  border-radius: var(--home-radius-control);
  color: var(--home-color-text-primary);
  background: var(--home-color-surface);
  font: inherit;
  cursor: pointer;
}

.home-user-button > span {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.home-user-button strong {
  max-width: 120px;
  font-size: 14px;
}

.home-user-button i {
  color: var(--home-color-text-muted);
  font-style: normal;
}

.home-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--home-color-border);
  border-radius: var(--home-radius-panel);
  background: var(--home-color-surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.home-user-menu > a,
.home-user-menu > button,
.home-user-menu form button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--home-color-text-secondary);
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.home-user-menu > a:hover,
.home-user-menu > button:hover,
.home-user-menu form button:hover {
  color: var(--home-color-text-primary);
  background: var(--home-color-surface-muted);
}

.home-qr-panel {
  display: grid;
  place-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px;
  border-top: 1px solid var(--home-color-border);
  color: var(--home-color-text-muted);
  font-size: 12px;
}

.home-qr-panel img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
}

/* Home Dashboard V1 Components */
.home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.home-welcome > div:first-child {
  min-width: 0;
  gap: 14px;
}

.home-brand-orbit {
  width: 40px;
  height: 40px;
}

.home-welcome h1,
.home-section-header h2,
.home-task-card h3,
.home-quick-card h3,
.home-help-banner h2 {
  margin: 0;
  color: var(--home-color-text-primary);
}

.home-welcome h1 {
  font-size: clamp(24px, 2.4vw, 28px);
  line-height: 1.25;
}

.home-welcome p,
.home-section-header p,
.home-task-card p,
.home-quick-card p,
.home-help-banner p,
.home-empty-state p {
  margin: 0;
  color: var(--home-color-text-secondary);
  line-height: 1.55;
}

.home-welcome p {
  margin-top: 5px;
  font-size: 15px;
}

.home-welcome-links,
.home-task-actions,
.home-empty-state-actions > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-welcome-links a,
.home-section-header-inline > a {
  color: var(--home-color-primary);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-section-header h2,
.home-help-banner h2 {
  font-size: 18px;
  line-height: 1.35;
}

.home-section-header p {
  margin-top: 3px;
  font-size: 14px;
}

.home-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 184px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--home-color-border);
  border-radius: var(--home-radius-panel);
  background: var(--home-color-surface);
  transition: border-color var(--home-motion-fast), background var(--home-motion-fast);
}

.home-task-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--home-color-primary);
  content: "";
}

.home-task-card-service::before {
  background: var(--home-color-info);
}

.home-task-card:hover {
  border-color: var(--home-color-border-strong);
  background: #fbfdff;
}

.home-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--home-color-primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.home-task-card h3 {
  font-size: 20px;
}

.home-task-card p {
  margin-top: 7px;
  font-size: 14px;
}

.home-task-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 13px 0 0;
  padding: 0;
  color: var(--home-color-text-muted);
  font-size: 13px;
  list-style: none;
}

.home-task-card li::before {
  margin-right: 6px;
  color: var(--home-color-primary);
  content: "✓";
}

.home-task-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--home-radius-control);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--home-motion-fast), border-color var(--home-motion-fast), background var(--home-motion-fast);
}

.home-button-primary {
  color: #ffffff;
  background: var(--home-color-primary);
}

.home-button-primary:hover {
  color: #ffffff;
  background: var(--home-color-primary-hover);
}

.home-button-primary:active {
  background: var(--home-color-primary-active);
}

.home-button-secondary {
  border-color: var(--home-color-border-strong);
  color: var(--home-color-text-primary);
  background: var(--home-color-surface);
}

.home-button-secondary:hover {
  border-color: #94a3b8;
  background: var(--home-color-surface-muted);
}

.home-text-link {
  color: var(--home-color-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-task-note {
  color: var(--home-color-text-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.home-panel {
  padding: 20px;
  border: 1px solid var(--home-color-border);
  border-radius: var(--home-radius-panel);
  background: var(--home-color-surface);
}

.home-todo-list,
.home-recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-todo-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--home-color-border);
}

.home-todo-list li:first-child {
  border-top: 0;
}

.home-todo-list li > div {
  min-width: 0;
}

.home-todo-list strong,
.home-task-name strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.home-todo-list p {
  margin: 3px 0;
  color: var(--home-color-text-secondary);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.home-todo-list time,
.home-recent-list time,
.home-data-time {
  color: var(--home-color-text-muted);
  font-size: 12px;
}

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

.home-metric {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 90px;
  padding: 14px;
  border: 1px solid var(--home-color-border);
  border-radius: var(--home-radius-control);
  color: var(--home-color-text-secondary);
  background: var(--home-color-surface-muted);
  text-decoration: none;
  transition: border-color var(--home-motion-fast), background var(--home-motion-fast);
}

.home-metric:hover {
  border-color: var(--home-color-border-strong);
  background: #ffffff;
}

.home-metric span {
  font-size: 13px;
}

.home-metric strong {
  color: var(--home-color-text-primary);
  font-size: 24px;
}

.home-data-time {
  margin: 12px 0 0;
}

.home-recent-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(100px, 0.7fr) minmax(120px, 0.8fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 13px 4px;
  border-top: 1px solid var(--home-color-border);
}

.home-recent-list .home-recent-head {
  padding-top: 0;
  border-top: 0;
  color: var(--home-color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.home-task-name {
  min-width: 0;
}

.home-task-name span {
  display: block;
  margin-top: 3px;
  color: var(--home-color-text-muted);
  font-size: 12px;
}

.home-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-status.is-success { color: #166534; background: #dcfce7; }
.home-status.is-danger { color: #991b1b; background: #fee2e2; }
.home-status.is-warning { color: #92400e; background: #fef3c7; }
.home-status.is-info { color: #075985; background: #e0f2fe; }
.home-status.is-neutral { color: #475569; background: #f1f5f9; }

.home-quick-flows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-quick-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 144px;
  padding: 18px;
  border-top: 1px solid var(--home-color-border-strong);
  background: transparent;
}

.home-quick-card h3 {
  font-size: 16px;
}

.home-quick-card p {
  flex: 1;
  margin-top: 7px;
  font-size: 13px;
}

.home-quick-card .home-text-link {
  margin-top: 14px;
}

.home-help-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #bfdbfe;
  border-radius: var(--home-radius-panel);
  background: #eff6ff;
}

.home-help-banner > div {
  gap: 12px;
}

.home-help-banner > div:first-child > span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--home-color-primary);
  font-weight: 800;
}

.home-help-banner p {
  margin-top: 3px;
  font-size: 13px;
}

.home-empty-state {
  display: grid;
  place-items: start;
  gap: 6px;
  min-height: 110px;
  padding: 22px;
  border: 1px dashed var(--home-color-border-strong);
  border-radius: var(--home-radius-control);
  background: var(--home-color-surface-muted);
}

.home-empty-state strong {
  font-size: 15px;
}

.home-empty-state p {
  font-size: 13px;
}

.home-empty-state-wide {
  grid-column: 1 / -1;
}

.home-empty-state-actions > div {
  flex-wrap: wrap;
  margin-top: 8px;
}

.home-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
}

/* Home Dashboard V1 States and Accessibility */
.home-dashboard-v1 a:focus-visible,
.home-dashboard-v1 button:focus-visible,
.home-dashboard-v1 [tabindex]:focus-visible,
.home-skip-link:focus-visible {
  outline: 2px solid var(--home-color-focus, #0ea5e9);
  outline-offset: 2px;
}

.home-dashboard-v1 a[aria-disabled="true"],
.home-dashboard-v1 button:disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f1f5f9;
  cursor: not-allowed;
}

.home-icon-button:hover,
.home-user-button:hover {
  color: var(--home-color-text-primary);
  border-color: var(--home-color-border-strong);
  background: var(--home-color-surface-muted);
}

body.home-dashboard-drawer-open {
  overflow: hidden;
}

/* Home Dashboard V1 Responsive */
@media (max-width: 1199px) {
  .home-topbar { padding-inline: 24px; }
  .home-main { padding: 28px 24px; }
  .home-dashboard-row { grid-template-columns: minmax(0, 1fr); }
  .home-quick-flows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .home-dashboard-v1,
  .home-dashboard-v1.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-sidebar,
  .home-dashboard-v1.is-sidebar-collapsed .home-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: min(85vw, 320px);
    height: 100dvh;
    padding: 18px 16px max(16px, env(safe-area-inset-bottom));
    transform: translateX(-104%);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  }

  .home-dashboard-v1.is-drawer-open .home-sidebar {
    transform: translateX(0);
  }

  .home-dashboard-v1.is-sidebar-collapsed .home-brand strong,
  .home-dashboard-v1.is-sidebar-collapsed .home-new-task,
  .home-dashboard-v1.is-sidebar-collapsed .home-nav-group h2,
  .home-dashboard-v1.is-sidebar-collapsed .home-sidebar-user div,
  .home-dashboard-v1.is-sidebar-collapsed .home-user-presence {
    display: initial;
  }

  .home-dashboard-v1.is-sidebar-collapsed .home-sidebar-user div {
    display: grid;
  }

  .home-dashboard-v1.is-sidebar-collapsed .home-sidebar-brand-row,
  .home-dashboard-v1.is-sidebar-collapsed .home-sidebar-user {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .home-dashboard-v1.is-sidebar-collapsed .home-nav-link {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .home-dashboard-v1.is-sidebar-collapsed .home-nav-link span {
    width: auto;
    overflow: visible;
  }

  .home-sidebar-collapse {
    display: none;
  }

  .home-menu-button {
    display: inline-grid;
  }

  .home-topbar {
    min-height: 56px;
    padding: 0 20px;
  }

  .home-main {
    padding: 24px 20px;
  }
}

@media (max-width: 767px) {
  .home-topbar {
    padding: 0 16px;
  }

  .home-topbar-leading > div span,
  .home-topbar-actions > .home-icon-button {
    display: none;
  }

  .home-user-button {
    max-width: 96px;
    padding-right: 5px;
  }

  .home-user-button strong,
  .home-user-button i {
    display: none;
  }

  .home-main {
    padding: 22px 16px max(28px, env(safe-area-inset-bottom));
  }

  .home-welcome {
    align-items: flex-start;
  }

  .home-welcome-links {
    display: none;
  }

  .home-brand-orbit {
    display: none;
  }

  .home-welcome h1 {
    font-size: 24px;
  }

  .home-welcome p {
    font-size: 14px;
  }

  .home-section,
  .home-panel,
  .home-help-banner {
    margin-top: 20px;
  }

  .home-task-grid,
  .home-dashboard-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-task-card {
    min-height: 0;
    padding: 18px;
  }

  .home-task-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-task-actions .home-button {
    width: 100%;
  }

  .home-task-note {
    text-align: left;
  }

  .home-panel {
    padding: 16px;
  }

  .home-section-header-inline {
    align-items: flex-start;
  }

  .home-todo-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-todo-list .home-button {
    width: 100%;
  }

  .home-recent-list .home-recent-head {
    display: none;
  }

  .home-recent-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 16px 0;
  }

  .home-recent-list .home-task-name {
    grid-column: 1 / 2;
  }

  .home-recent-list .home-status {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .home-recent-list time {
    grid-column: 1 / 2;
  }

  .home-recent-list .home-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-quick-flows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-quick-card {
    min-height: 150px;
    padding: 15px 12px;
  }

  .home-help-banner {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .home-help-banner > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .home-help-banner .home-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .home-topbar {
    gap: 8px;
  }

  .home-topbar-leading {
    min-width: 0;
  }

  .home-topbar-leading > div strong {
    font-size: 16px;
  }

  .home-user-button {
    width: 42px;
    min-width: 42px;
    padding: 3px;
  }

  .home-todo-list li > div {
    width: 100%;
  }

  .home-todo-list strong,
  .home-task-name strong {
    line-height: 1.4;
  }
}

@media (max-width: 374px) {
  .home-main {
    padding-inline: 14px;
  }

  .home-topbar {
    padding-inline: 12px;
  }

  .home-topbar-leading,
  .home-topbar-actions {
    gap: 8px;
  }

  .home-icon-button {
    width: 42px;
    height: 42px;
  }

  .home-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-metrics-grid,
  .home-quick-flows {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-empty-state-actions > div {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .home-empty-state-actions .home-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-dashboard-v1,
  .home-dashboard-v1 *,
  .home-dashboard-v1 *::before,
  .home-dashboard-v1 *::after,
  .home-skip-link {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Home Dashboard V2 — Data Dense Operations */
.home-dashboard-v1 {
  --home-color-canvas: #edf2f8;
  --home-color-surface: #ffffff;
  --home-color-surface-muted: #f4f7fb;
  --home-color-text-primary: #101828;
  --home-color-text-secondary: #475467;
  --home-color-text-muted: #667085;
  --home-color-border: #d8e1ec;
  --home-color-border-strong: #b8c5d6;
  --home-color-primary: #2f6df6;
  --home-color-primary-hover: #255edb;
  --home-color-primary-active: #1e4fbd;
  --home-sidebar-width: 248px;
  --home-content-max-width: 1240px;
  background: var(--home-color-canvas);
}

main.home-dashboard-shell {
  background: var(--home-color-canvas);
}

.home-dashboard-v1 .home-sidebar {
  gap: 18px;
  padding: 22px 16px 18px;
  border-right: 0;
  color: #ffffff;
  background: #0c1830;
  box-shadow: 10px 0 30px rgba(15, 23, 42, 0.08);
}

.home-dashboard-v1 .home-brand {
  color: #ffffff;
}

.home-dashboard-v1 .home-brand > span {
  border-color: rgba(125, 170, 255, 0.42);
  color: #ffffff;
  background: #2f6df6;
  box-shadow: 0 8px 20px rgba(47, 109, 246, 0.32);
}

.home-dashboard-v1 .home-brand strong {
  font-size: 16px;
  letter-spacing: 0.14em;
}

.home-dashboard-v1 .home-sidebar-collapse {
  border-color: rgba(255, 255, 255, 0.12);
  color: #b9c6da;
  background: rgba(255, 255, 255, 0.05);
}

.home-dashboard-v1 .home-sidebar-collapse:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.home-dashboard-v1 .home-new-task {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2f6df6;
  box-shadow: 0 10px 24px rgba(20, 70, 180, 0.32);
}

.home-dashboard-v1 .home-new-task:hover {
  background: #3b78ff;
}

.home-dashboard-v1 .home-navigation {
  padding-right: 2px;
}

.home-dashboard-v1 .home-nav-group {
  margin-top: 17px;
}

.home-dashboard-v1 .home-nav-group:first-child {
  margin-top: 0;
}

.home-dashboard-v1 .home-nav-group h2 {
  margin: 0 10px 7px;
  color: #6f809d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.home-dashboard-v1 .home-nav-link {
  gap: 11px;
  min-height: 42px;
  margin: 2px 0;
  padding: 0 12px;
  border-radius: 9px;
  color: #b5c1d4;
  font-size: 13px;
  font-weight: 620;
}

.home-dashboard-v1 .home-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.home-dashboard-v1 .home-nav-link {
  position: relative;
}

.home-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border: 2px solid #10203d;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.16);
}

.home-order-badge[hidden] {
  display: none !important;
}

.home-order-badge.is-urgent {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.23);
}

.home-dashboard-v1.is-sidebar-collapsed .home-order-badge {
  position: absolute;
  top: 3px;
  right: 4px;
  display: inline-flex;
  width: auto;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-width: 1px;
  border-radius: 9px;
  overflow: visible;
  font-size: 9px;
}

.home-dashboard-v1 .home-nav-link.is-current {
  color: #ffffff;
  background: rgba(47, 109, 246, 0.22);
  box-shadow: inset 3px 0 0 #6ea0ff;
}

.home-nav-icon,
.home-task-icon,
.home-quick-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.home-nav-icon {
  width: 18px;
  height: 18px;
  color: #7f91ad;
}

.home-nav-link:hover .home-nav-icon,
.home-nav-link.is-current .home-nav-icon {
  color: #8db2ff;
}

.home-nav-icon svg,
.home-task-icon svg,
.home-quick-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-dashboard-v1 .home-sidebar-user {
  padding: 14px 12px 2px;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.home-dashboard-v1 .home-sidebar-user strong {
  color: #ffffff;
}

.home-dashboard-v1 .home-sidebar-user span {
  color: #8494ad;
}

.home-dashboard-v1 .home-user-presence {
  background: #37d67a;
  box-shadow: 0 0 0 4px rgba(55, 214, 122, 0.14);
}

.home-dashboard-v1.is-sidebar-collapsed .home-nav-label {
  display: none !important;
}

.home-dashboard-v1.is-sidebar-collapsed .home-nav-icon {
  width: 19px !important;
  overflow: visible !important;
}

.home-dashboard-v1 .home-topbar {
  min-height: 66px;
  border-bottom-color: #dfe6ef;
  background: rgba(248, 250, 253, 0.96);
  backdrop-filter: blur(14px);
}

.home-dashboard-v1 .home-topbar-leading > div span {
  color: #7c8aa0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-dashboard-v1 .home-topbar-leading > div strong {
  color: #172033;
  font-size: 16px;
}

.home-dashboard-v1 .home-main {
  padding-top: 28px;
  padding-bottom: 44px;
}

.home-dashboard-v1 .home-welcome {
  position: relative;
  min-height: 218px;
  padding: 32px 34px;
  overflow: hidden;
  border: 1px solid #182b4c;
  border-radius: 18px;
  color: #ffffff;
  background-color: #10213e;
  box-shadow: 0 18px 45px rgba(16, 33, 62, 0.18);
}

.home-dashboard-v1 .home-welcome::before {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 8%, #000 65%, #000);
  content: "";
  pointer-events: none;
}

.home-dashboard-v1 .home-welcome::after {
  position: absolute;
  top: -110px;
  right: -40px;
  width: 360px;
  height: 360px;
  border: 72px solid rgba(47, 109, 246, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-welcome-copy {
  position: relative;
  z-index: 2;
  display: block !important;
  max-width: 650px;
}

.home-command-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #93b8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.home-command-kicker i,
.home-welcome-signal small i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49de8a;
  box-shadow: 0 0 0 5px rgba(73, 222, 138, 0.12);
}

.home-dashboard-v1 .home-welcome h1 {
  color: #ffffff;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 780;
  letter-spacing: -0.025em;
}

.home-dashboard-v1 .home-welcome p {
  max-width: 600px;
  margin-top: 10px;
  color: #c7d2e4;
  font-size: 15px;
}

.home-dashboard-v1 .home-welcome-links {
  margin-top: 24px;
}

.home-dashboard-v1 .home-welcome-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.home-dashboard-v1 .home-welcome-links a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.home-welcome-signal {
  position: relative;
  z-index: 2;
  display: grid !important;
  flex: 0 0 220px;
  align-content: center;
  min-height: 142px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.home-welcome-signal > span {
  color: #7da6f6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.home-welcome-signal > strong {
  margin: 3px 0 13px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.home-welcome-signal > small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8d3e5;
  font-size: 11px;
}

.home-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: #2f6df6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-dashboard-v1 .home-section-header h2,
.home-dashboard-v1 .home-help-banner h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.home-dashboard-v1 .home-section-header p {
  color: #69778c;
  font-size: 13px;
}

.home-dashboard-v1 .home-task-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.home-dashboard-v1 .home-task-card {
  min-height: 224px;
  padding: 24px;
  border-color: #d5deea;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(26, 43, 70, 0.07);
}

.home-dashboard-v1 .home-task-card::before {
  display: none;
}

.home-dashboard-v1 .home-task-card-primary {
  border-color: #aec8ff;
  background-color: #f2f6ff;
  background-image: linear-gradient(rgba(47,109,246,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(47,109,246,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.home-dashboard-v1 .home-task-card-service {
  border-color: #c8e3e8;
  background: #f7fcfd;
}

.home-task-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-task-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 12px;
  color: #ffffff;
  background: #2f6df6;
  box-shadow: 0 10px 22px rgba(47, 109, 246, 0.22);
}

.home-task-card-service .home-task-icon {
  color: #087a8c;
  background: #dff5f7;
  box-shadow: none;
}

.home-dashboard-v1 .home-task-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.home-dashboard-v1 .home-eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.home-dashboard-v1 .home-task-card > div > p {
  max-width: 630px;
  margin-top: 16px;
}

.home-dashboard-v1 .home-task-card ul {
  gap: 8px;
}

.home-dashboard-v1 .home-task-card li {
  padding: 5px 9px;
  border: 1px solid rgba(47, 109, 246, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
}

.home-dashboard-v1 .home-task-card li::before {
  display: none;
}

.home-dashboard-v1 .home-task-actions .home-button {
  gap: 14px;
}

.home-button-service {
  color: #ffffff;
  background: #087f91;
}

.home-button-service:hover {
  color: #ffffff;
  background: #066b7a;
}

.home-dashboard-v1 .home-panel {
  border-color: #d8e1ec;
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(26, 43, 70, 0.05);
}

.home-dashboard-v1 .home-metric {
  position: relative;
  min-height: 96px;
  padding: 15px;
  overflow: hidden;
  border-color: #dce4ee;
  background: #f7f9fc;
}

.home-dashboard-v1 .home-metric::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #2f6df6;
  content: "";
}

.home-dashboard-v1 .home-metric:nth-child(2)::before { background: #d68a19; }
.home-dashboard-v1 .home-metric:nth-child(3)::before { background: #27a36a; }
.home-dashboard-v1 .home-metric:nth-child(4)::before { background: #087f91; }

.home-dashboard-v1 .home-metric strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.home-dashboard-v1 .home-todo-list li,
.home-dashboard-v1 .home-recent-list li {
  border-top-color: #e2e8f0;
}

.home-dashboard-v1 .home-recent-list .home-recent-head {
  color: #8190a5;
  background: #f7f9fc;
}

.home-dashboard-v1 .home-status {
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
}

.home-dashboard-v1 .home-quick-flows {
  gap: 12px;
}

.home-dashboard-v1 .home-quick-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 12px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid #d9e2ed;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(26, 43, 70, 0.045);
}

.home-quick-icon {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 9px;
  color: #2f6df6;
  background: #edf3ff;
}

.home-dashboard-v1 .home-quick-card > div {
  min-width: 0;
}

.home-dashboard-v1 .home-quick-card .home-text-link {
  align-self: end;
  margin-top: 14px;
}

.home-dashboard-v1 .home-help-banner {
  border-color: #cfdced;
  background: #f8fbff;
}

@media (max-width: 1199px) {
  .home-dashboard-v1 .home-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .home-dashboard-v1 .home-sidebar,
  .home-dashboard-v1.is-sidebar-collapsed .home-sidebar {
    background: #0c1830;
  }
}

@media (max-width: 767px) {
  .home-dashboard-v1 .home-main {
    padding-top: 16px;
  }

  .home-dashboard-v1 .home-welcome {
    min-height: 0;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .home-dashboard-v1 .home-welcome::after {
    top: -150px;
    right: -150px;
  }

  .home-dashboard-v1 .home-welcome h1 {
    font-size: 28px;
  }

  .home-welcome-signal {
    display: none !important;
  }

  .home-dashboard-v1 .home-welcome-links {
    display: flex;
    flex-wrap: wrap;
  }

  .home-dashboard-v1 .home-task-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-dashboard-v1 .home-task-card {
    min-height: 0;
    padding: 20px;
  }

  .home-dashboard-v1 .home-task-card li {
    padding: 4px 7px;
  }

  .home-dashboard-v1 .home-quick-flows {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-dashboard-v1 .home-quick-card {
    min-height: 138px;
  }
}

@media (max-width: 480px) {
  .home-command-kicker {
    margin-bottom: 13px;
  }

  .home-dashboard-v1 .home-welcome p {
    font-size: 13px;
  }

  .home-dashboard-v1 .home-welcome-links {
    margin-top: 18px;
  }

  .home-dashboard-v1 .home-welcome-links a {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .home-task-card-heading {
    align-items: flex-start;
  }

  .home-task-icon {
    width: 42px;
    height: 42px;
  }
}


/* Home Dashboard V2 Craft Pass */
.home-dashboard-v1 .home-dashboard-row {
  align-items: start;
}

@media (min-width: 1200px) {
  .home-dashboard-v1 .home-metrics-panel {
    position: sticky;
    top: 90px;
  }
}

@media (max-width: 767px) {
  .home-dashboard-v1 .home-todo-list li:nth-child(n + 4),
  .home-dashboard-v1 .home-recent-list li:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 480px) {
  .home-dashboard-v1 .home-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dashboard-v1 .home-metric {
    min-height: 88px;
    padding: 13px;
  }

  .home-dashboard-v1 .home-metric strong {
    font-size: 25px;
  }
}

/* wb-product-identity-and-unread-v1 */
.customer-service-main .ozon-chat-item {
  grid-template-areas:
    "top action"
    "product action"
    "customer action"
    "tags action"
    "preview action"
    "time action" !important;
}

.customer-service-main .ozon-chat-top {
  display: block !important;
  min-width: 0;
}

.customer-service-main .ozon-chat-top strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-service-main .wb-product-meta {
  grid-area: product;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #cfe0f5;
  border-radius: 9px;
  background: #f5f9ff;
}

.customer-service-main .wb-product-meta strong,
.customer-service-main .wb-product-meta span {
  display: block;
  min-width: 0;
}

.customer-service-main .wb-product-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #183b68;
  font-size: 12px !important;
}

.customer-service-main .wb-product-meta span {
  margin-top: 3px;
  color: #58708f;
  font-size: 11px;
  line-height: 1.35;
}

.customer-service-main .ozon-chat-unread-state.unread {
  color: #fff !important;
  border-color: #ff3f91 !important;
  background: #ff3f91 !important;
}

.customer-service-main .ozon-chat-unread-state.read {
  color: #607089 !important;
  border-color: #d8e0ec !important;
  background: #edf2f8 !important;
}

.customer-service-main .ozon-chat-item:has(.ozon-chat-unread-state.unread) {
  border-color: #ff8abc !important;
}

.customer-service-main .wb-product-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #bcd4f2;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2f7ff, #fbfdff);
}

.customer-service-main .wb-product-context strong,
.customer-service-main .wb-product-context span {
  display: block;
}

.customer-service-main .wb-product-context strong {
  color: #17375f;
  font-size: 15px;
}

.customer-service-main .wb-product-context span {
  margin-top: 4px;
  color: #66809f;
  font-size: 12px;
}

.customer-service-main .wb-product-context p {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
}

.customer-service-main .wb-product-context em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #274d7b;
  background: #e3eefc;
  font-size: 12px;
  font-style: normal;
}

@media (max-width: 1180px) {
  .customer-service-main .ozon-chat-item {
    grid-template-areas:
      "top"
      "product"
      "customer"
      "tags"
      "preview"
      "time"
      "action" !important;
  }

  .customer-service-main .wb-product-context {
    grid-template-columns: 1fr;
  }

  .customer-service-main .wb-product-context p {
    justify-content: flex-start;
  }
}
/* wb-api-send-enabled-v1 */
.customer-service-main .ozon-manual-send-notice.wb-api-send-enabled {
  border-color: #7bcf9a !important;
  background: linear-gradient(135deg, #eefbf3, #f8fffb) !important;
}

.customer-service-main .ozon-manual-send-notice.wb-api-send-enabled strong {
  color: #14713b !important;
}

.customer-service-main .ozon-manual-send-notice.wb-api-send-enabled span {
  color: #35694b !important;
}
.customer-service-main .ozon-chat-tags .marketplace-reply-state.pending {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.customer-service-main .ozon-chat-tags .marketplace-reply-state.replied {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.customer-service-main .ozon-chat-tags .marketplace-reply-state.unknown {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.customer-service-main .ozon-service-actions .return-read-button {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fdba74;
}

.customer-service-main .ozon-service-actions .return-read-button:not(:disabled):hover {
  color: #7c2d12;
  background: #ffedd5;
}

.customer-service-main .ozon-service-actions .return-read-button:disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: default;
}

/* negative-review-followup-v1 */
.customer-service-main .ozon-review-followup-panel {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #f0b86b;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf0, #fffdf8);
}
.customer-service-main .ozon-review-followup-panel.linked {
  border-color: #b99ae8;
  background: linear-gradient(135deg, #faf7ff, #fff);
}
.customer-service-main .ozon-review-followup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.customer-service-main .ozon-review-followup-head strong,
.customer-service-main .ozon-review-followup-head span { display: block; }
.customer-service-main .ozon-review-followup-head strong { color: #4c2a78; font-size: 15px; }
.customer-service-main .ozon-review-followup-head span { margin-top: 4px; color: #725c8e; font-size: 12px; line-height: 1.5; }
.customer-service-main .ozon-review-followup-head em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6b3ca0;
  background: #efe5ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.customer-service-main .ozon-review-followup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(90px, .4fr);
  gap: 10px;
  margin-top: 12px;
}
.customer-service-main .ozon-review-followup-fields label { color: #5f4a72; font-size: 12px; font-weight: 700; }
.customer-service-main .ozon-review-followup-fields input {
  width: 100%;
  margin-top: 5px;
  min-height: 38px;
  border: 1px solid #d9c9e9;
  border-radius: 9px;
  background: #fff;
}
.customer-service-main .ozon-review-followup-facts,
.customer-service-main .ozon-review-followup-fields.single { grid-template-columns: minmax(260px, 560px); }
.customer-service-main .ozon-order-review-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; margin: 12px 0; padding: 13px; border: 1px solid #e0c8f1; border-radius: 12px; background: #fff; }
.customer-service-main .ozon-order-review-image { display: grid; place-items: center; min-height: 104px; overflow: hidden; border-radius: 10px; color: #9b8aa8; background: #f5f1f8; font-size: 11px; text-decoration: none; }
.customer-service-main .ozon-order-review-image img { width: 100%; height: 104px; object-fit: cover; }
.customer-service-main .ozon-order-review-content { min-width: 0; }
.customer-service-main .ozon-order-review-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.customer-service-main .ozon-order-review-title strong { color: #272033; line-height: 1.45; }
.customer-service-main .ozon-order-review-title em { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #9a451f; background: #fff0e8; font-size: 11px; font-style: normal; font-weight: 900; }
.customer-service-main .ozon-order-review-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.customer-service-main .ozon-order-review-meta span { padding: 4px 7px; border-radius: 7px; color: #52627c; background: #f0f3f8; font-size: 10px; }
.customer-service-main .ozon-order-review-comment { margin: 9px 0; padding: 9px 11px; border-left: 3px solid #8b5fc1; background: #faf7fd; }
.customer-service-main .ozon-order-review-comment b { color: #6f3ea7; font-size: 11px; }
.customer-service-main .ozon-order-review-comment p, .customer-service-main .ozon-order-review-card details p { margin: 5px 0 0; color: #333b4a; line-height: 1.55; }
.customer-service-main .ozon-order-review-card details { margin: 8px 0; color: #6d778a; font-size: 11px; }
@media (max-width: 760px) { .customer-service-main .ozon-order-review-card { grid-template-columns: 1fr; } .customer-service-main .ozon-order-review-image { max-width: 180px; } }
.customer-service-main .ozon-review-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.customer-service-main .ozon-review-followup-facts span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #654782;
  background: #f2eaff;
  font-size: 12px;
}
.customer-service-main .ozon-review-followup-actions button {
  border: 0;
  border-radius: 9px;
  padding: 8px 11px;
  color: #fff;
  background: #7c4bb3;
  font-weight: 800;
}
.customer-service-main .ozon-review-followup-actions button.ready { background: #16834b; }
.customer-service-main .ozon-review-followup-actions button.close { background: #8b95a5; }
.customer-service-main .ozon-review-followup-ready {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  color: #166534;
  background: #ecfdf3;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .customer-service-main .ozon-review-followup-fields { grid-template-columns: 1fr; }
}

.customer-service-main .review-automation-console {
  min-height: 100%;
  color: #172033;
  background: #f7f9fc;
}

.customer-service-main .review-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dde3ee;
  background: #fff;
}

.customer-service-main .review-console-head span {
  color: #3563b4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-service-main .review-console-head h3 {
  margin: 4px 0 5px;
  font-size: 22px;
}

.customer-service-main .review-console-head p {
  max-width: 680px;
  margin: 0;
  color: #647086;
  font-size: 13px;
  line-height: 1.55;
}

.customer-service-main .review-console-head-actions,
.customer-service-main .review-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-service-main .review-console-head button,
.customer-service-main .review-task-actions button,
.customer-service-main .review-extension-setup button,
.customer-service-main .review-extension-setup a {
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  color: #244378;
  background: #e9f0ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.customer-service-main .review-extension-setup {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  margin: 14px 18px;
  padding: 13px 14px;
  border: 1px solid #d8e2f2;
  border-radius: 12px;
  background: #f0f5ff;
}

.customer-service-main .review-extension-setup > div {
  display: grid;
  gap: 3px;
}

.customer-service-main .review-extension-setup strong { font-size: 13px; }
.customer-service-main .review-extension-setup span { overflow: hidden; color: #66748c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-service-main .review-extension-setup code { padding: 7px 9px; border-radius: 8px; color: #31507f; background: #fff; font-size: 11px; }

.customer-service-main .review-console-body {
  display: grid;
  grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  min-height: 560px;
  border-top: 1px solid #e2e7f0;
}

.customer-service-main .review-console-body > aside {
  overflow: auto;
  max-height: 690px;
  padding: 12px;
  border-right: 1px solid #dfe5ef;
  background: #f4f6fa;
}

.customer-service-main .review-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #26344d;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.customer-service-main .review-task-row:hover,
.customer-service-main .review-task-row.selected {
  border-color: #9cb9eb;
  background: #f7faff;
}

.customer-service-main .review-task-row span { display: grid; min-width: 0; gap: 5px; }
.customer-service-main .review-task-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.customer-service-main .review-task-row small { overflow: hidden; color: #69758a; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.customer-service-main .review-task-row small.review-task-row-meta { color: #315d9b; font-weight: 800; }
.customer-service-main .review-task-row em,
.customer-service-main .review-task-editor-head em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #5e6a7c;
  background: #edf0f5;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.customer-service-main .review-task-row em.active,
.customer-service-main .review-task-editor-head em.active { color: #1557b7; background: #e8f1ff; }
.customer-service-main .review-task-row em.new,
.customer-service-main .review-task-editor-head em.new { color: #9a4d08; background: #fff0d9; }
.customer-service-main .review-task-row em.viewed,
.customer-service-main .review-task-editor-head em.viewed { color: #58677e; background: #edf1f6; }
.customer-service-main .review-task-row em.success,
.customer-service-main .review-task-editor-head em.success { color: #147343; background: #e9f8ef; }
.customer-service-main .review-task-row em.danger,
.customer-service-main .review-task-editor-head em.danger { color: #a13a2d; background: #fff0ed; }

.customer-service-main .review-task-editor { padding: 22px 24px 28px; background: #fff; }
.customer-service-main .review-task-editor.empty,
.customer-service-main .review-task-empty { display: grid; place-content: center; min-height: 220px; padding: 24px; color: #748096; text-align: center; }
.customer-service-main .review-task-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.customer-service-main .review-task-editor-head div { display: grid; gap: 4px; }
.customer-service-main .review-task-editor-head span { color: #71809a; font-size: 11px; }
.customer-service-main .review-task-editor-head strong { font-size: 18px; }
.customer-service-main .review-task-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.customer-service-main .review-task-facts span { padding: 5px 8px; border-radius: 7px; color: #53627b; background: #f0f3f8; font-size: 11px; }
.customer-service-main .review-workflow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: -3px 0 15px; }
.customer-service-main .review-workflow-actions > span { margin-right: 3px; color: #65728a; font-size: 11px; font-weight: 900; }
.customer-service-main .review-workflow-actions button { padding: 7px 11px; border: 1px solid #d7dfeb; border-radius: 999px; color: #53627a; background: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.customer-service-main .review-workflow-actions button:hover,
.customer-service-main .review-workflow-actions button.active { border-color: #78a1e4; color: #1557b7; background: #eaf2ff; }
.customer-service-main .review-workflow-actions button.processed { border-color: #83c7a3; color: #147343; background: #e9f8ef; }
.customer-service-main .review-task-source { margin: 14px 0 18px; padding: 13px 15px; border-left: 3px solid #7c9fd9; background: #f6f8fc; }
.customer-service-main .review-task-source span { color: #6d7890; font-size: 11px; font-weight: 800; }
.customer-service-main .review-task-source p { margin: 6px 0 0; color: #27344a; line-height: 1.65; }
.customer-service-main .review-task-path-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; padding: 5px; border-radius: 12px; background: #eef2f7; }
.customer-service-main .review-task-path-switch button { padding: 10px 12px; border: 0; border-radius: 9px; color: #59677d; background: transparent; font-weight: 900; cursor: pointer; }
.customer-service-main .review-task-path-switch button.active { color: #fff; background: #172033; box-shadow: 0 5px 14px rgba(23,32,51,.18); }
.customer-service-main .review-task-path-panel { display: none; }
.customer-service-main .review-task-path-panel.active { display: block; }
.customer-service-main .review-task-path-explain { display: grid; gap: 4px; margin-bottom: 12px; padding: 11px 13px; border: 1px solid #c7d8f2; border-radius: 10px; color: #36557e; background: #f3f7fd; }
.customer-service-main .review-task-path-explain span { font-size: 12px; line-height: 1.5; }
.customer-service-main .review-task-routing { display: grid; gap: 5px; margin: -4px 0 18px; padding: 12px 14px; border: 1px solid #bfd4f5; border-radius: 10px; color: #31527e; background: #eef5ff; }
.customer-service-main .review-task-routing strong { font-size: 13px; }
.customer-service-main .review-task-routing span { font-size: 12px; line-height: 1.55; }
.customer-service-main .review-task-routing.after-sales { border-color: #f1b49f; color: #87412e; background: #fff4ef; }
.customer-service-main .review-task-label { display: grid; gap: 6px; margin: 13px 0; color: #43516a; font-size: 12px; font-weight: 800; }
.customer-service-main .review-task-label textarea { width: 100%; border: 1px solid #d8deea; border-radius: 10px; padding: 11px 12px; color: #172033; background: #fff; font: inherit; line-height: 1.55; resize: vertical; }
.customer-service-main .review-task-label textarea:focus { border-color: #78a1e4; outline: 3px solid rgba(91, 142, 226, .14); }
.customer-service-main .review-task-actions { margin-top: 14px; }
.customer-service-main .review-task-actions button.approve { color: #fff; background: #16834b; }
.customer-service-main .review-open-ozon { display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border: 1px solid #b8c7de; border-radius: 9px; color: #234f8d; background: #eef5ff; font-size: 12px; font-weight: 900; text-decoration: none; }
.customer-service-main .review-open-ozon:hover { border-color: #6d9ee6; background: #e4f0ff; }
.customer-service-main .review-task-actions button:disabled,
.customer-service-main .review-extension-setup button:disabled { opacity: .45; cursor: not-allowed; }
.customer-service-main .review-task-status { margin: 13px 0 0; padding: 10px 12px; border-radius: 9px; color: #3f5e8e; background: #edf4ff; font-size: 12px; line-height: 1.5; }
.customer-service-main .review-task-status.error { color: #9a3328; background: #fff0ed; }

@media (max-width: 980px) {
  .customer-service-main .review-extension-setup { grid-template-columns: 1fr 1fr; }
  .customer-service-main .review-console-body { grid-template-columns: 1fr; }
  .customer-service-main .review-console-body > aside { max-height: 300px; border-right: 0; border-bottom: 1px solid #dfe5ef; }
}

.customer-service-main .review-private-message-panel {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e1e6ef;
}

.customer-service-main .review-private-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.customer-service-main .review-private-message-head > div {
  display: grid;
  gap: 4px;
}

.customer-service-main .review-private-message-head span {
  color: #7a3fc2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.customer-service-main .review-private-message-head strong { font-size: 16px; }
.customer-service-main .review-private-message-head + p { color: #68758a; font-size: 12px; line-height: 1.55; }
.customer-service-main .review-private-message-head em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #65428f;
  background: #f2eaff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.customer-service-main .review-task-actions button.message-approve { color: #fff; background: #7a3fc2; }
.customer-service-main .review-console-count {
  align-self: center;
  color: #647086;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.customer-service-main .review-workflow-filter { display: inline-flex; align-items: center; gap: 7px; color: #66748b; font-size: 11px; font-weight: 900; }
.customer-service-main .review-workflow-filter select { min-width: 148px; padding: 8px 30px 8px 10px; border: 1px solid #cfd9e8; border-radius: 9px; color: #27364d; background: #fff; font-size: 12px; font-weight: 800; }
.customer-service-main .review-console-head-actions button.approve {
  color: #fff;
  background: #16834b;
}
.customer-service-main .review-console-head-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}


/* Customer service learning asset entry */
.customer-learning-strip {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  margin:0 14px 12px;
  padding:11px 13px;
  border:1px solid rgba(37,99,235,.18);
  border-radius:12px;
  background:linear-gradient(90deg,rgba(239,246,255,.96),rgba(248,250,252,.96));
  color:#0f172a;
  text-decoration:none;
}
.customer-learning-strip:hover { border-color:rgba(37,99,235,.36); background:#eff6ff; }
.customer-learning-strip-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#2563eb; color:#fff; font-size:13px; font-weight:900; }
.customer-learning-strip strong,.customer-learning-strip small { display:block; }
.customer-learning-strip strong { font-size:13px; }
.customer-learning-strip small { margin-top:3px; color:#64748b; font-size:11px; line-height:1.35; }
.customer-learning-strip em { color:#1d4ed8; font-size:12px; font-style:normal; font-weight:850; }
@media (max-width:760px) { .customer-learning-strip { grid-template-columns:auto 1fr; } .customer-learning-strip em { grid-column:2; } }

/* Customer service rights complaint entry */
.customer-rights-panel {
  margin:0 14px 10px;
  padding:10px 12px;
  border:1px solid rgba(14,165,233,.22);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(240,249,255,.98),rgba(255,255,255,.98));
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.customer-rights-panel.is-collapsed {
  padding:8px 12px;
}
.customer-rights-panel.is-collapsed .customer-rights-grid,
.customer-rights-panel.is-collapsed .customer-rights-candidates,
.customer-rights-panel.is-collapsed .customer-rights-draft,
.customer-rights-panel.is-collapsed #designComplaintCopy {
  display:none;
}
.customer-rights-head {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
}
.customer-rights-icon {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:#0ea5e9;
  color:#fff;
  font-size:13px;
  font-weight:900;
}
.customer-rights-head strong,
.customer-rights-head small {
  display:block;
}
.customer-rights-head strong {
  color:#0f172a;
  font-size:13px;
}
.customer-rights-head small {
  margin-top:3px;
  color:#64748b;
  font-size:11px;
  line-height:1.35;
}
.customer-rights-head-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.customer-rights-head-actions button,
.customer-rights-actions button {
  border:0;
  border-radius:9px;
  background:#0284c7;
  color:#fff;
  min-height:34px;
  padding:0 12px;
  font:inherit;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.customer-rights-head-actions #designComplaintToggle {
  background:#0f172a;
}
.customer-rights-grid {
  display:grid;
  grid-template-columns:minmax(210px,.78fr) minmax(320px,1.22fr);
  gap:12px;
  margin-top:11px;
}
.customer-rights-case {
  padding:11px 12px;
  border:1px solid rgba(186,230,253,.9);
  border-radius:10px;
  background:#f8fbff;
}
.customer-rights-case span {
  color:#0369a1;
  font-size:10px;
  font-weight:900;
}
.customer-rights-case h3 {
  margin:4px 0 6px;
  color:#0f172a;
  font-size:16px;
}
.customer-rights-case p,
.customer-rights-case li {
  color:#475569;
  font-size:11px;
  line-height:1.48;
}
.customer-rights-case p {
  margin:0 0 7px;
}
.customer-rights-case ul {
  margin:0;
  padding-left:17px;
}
.customer-rights-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.customer-rights-form label {
  display:grid;
  gap:5px;
  color:#334155;
  font-size:11px;
  font-weight:800;
}
.customer-rights-form label:last-of-type {
  grid-column:1 / -1;
}
.customer-rights-form input,
.customer-rights-form select,
.customer-rights-form textarea,
.customer-rights-draft {
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:9px;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:12px;
}
.customer-rights-form input,
.customer-rights-form select {
  min-height:36px;
  padding:0 10px;
}
.customer-rights-form textarea,
.customer-rights-draft {
  resize:vertical;
  padding:9px 10px;
  line-height:1.5;
}
.customer-rights-actions {
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.customer-rights-actions span {
  color:#64748b;
  font-size:11px;
}
.customer-rights-draft {
  margin-top:10px;
  background:#f8fafc;
}
.customer-rights-candidates {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:9px;
  margin-top:10px;
}
.customer-rights-candidates > p {
  grid-column:1 / -1;
  margin:0;
  padding:9px 10px;
  border:1px dashed #bae6fd;
  border-radius:9px;
  color:#64748b;
  font-size:12px;
}
.customer-rights-candidate {
  display:grid;
  grid-template-columns:auto 58px minmax(0,1fr);
  gap:8px;
  align-items:center;
  min-height:74px;
  padding:8px;
  border:1px solid #dbeafe;
  border-radius:10px;
  background:#fff;
  color:#0f172a;
  cursor:pointer;
}
.customer-rights-candidate input {
  width:16px;
  height:16px;
}
.customer-rights-candidate-image {
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f8fafc;
  color:#94a3b8;
  font-size:11px;
}
.customer-rights-candidate-image img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.customer-rights-candidate strong,
.customer-rights-candidate small,
.customer-rights-candidate a {
  display:block;
}
.customer-rights-candidate strong {
  overflow:hidden;
  color:#0f172a;
  font-size:12px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.customer-rights-candidate small {
  margin-top:3px;
  color:#64748b;
  font-size:10px;
}
.customer-rights-candidate a {
  margin-top:4px;
  color:#0284c7;
  font-size:11px;
  font-weight:850;
  text-decoration:none;
}
.customer-rights-candidate:has(input:checked) {
  border-color:#0284c7;
  background:#f0f9ff;
  box-shadow:0 0 0 2px rgba(14,165,233,.11);
}
@media (max-width:900px) {
  .customer-rights-grid,
  .customer-rights-form {
    grid-template-columns:1fr;
  }
}
@media (max-width:760px) {
  .customer-rights-head {
    grid-template-columns:auto 1fr;
  }
  .customer-rights-head-actions {
    grid-column:2;
    justify-self:start;
  }
}


/* Approved knowledge references in customer reply workspace */
.ozon-knowledge-sources { margin:10px 0 12px; padding:11px 12px; border:1px solid rgba(37,99,235,.18); border-radius:11px; background:#f8fbff; }
.ozon-knowledge-sources[hidden] { display:none !important; }
.ozon-knowledge-sources-head { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.ozon-knowledge-sources-head strong { color:#0f172a; font-size:13px; }
.ozon-knowledge-sources-head span { color:#64748b; font-size:11px; }
.ozon-knowledge-sources-list { display:grid; gap:7px; margin-top:8px; }
.ozon-knowledge-sources-list article { display:grid; grid-template-columns:auto minmax(0,1fr); gap:9px; align-items:center; padding:8px 9px; border:1px solid rgba(226,232,240,.96); border-radius:9px; background:#fff; }
.ozon-knowledge-source-type { display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:24px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-size:11px; font-weight:900; }
.ozon-knowledge-sources-list strong,.ozon-knowledge-sources-list small { display:block; }
.ozon-knowledge-sources-list strong { color:#1e293b; font-size:12px; }
.ozon-knowledge-sources-list small { margin-top:3px; color:#64748b; font-size:10px; }

.ozon-knowledge-feedback { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:9px; padding-top:9px; border-top:1px solid rgba(191,219,254,.72); }
.ozon-knowledge-feedback span { margin-right:auto; color:#475569; font-size:11px; font-weight:750; }
.ozon-knowledge-feedback button { border:1px solid rgba(22,163,74,.28); border-radius:8px; background:#f0fdf4; padding:6px 9px; color:#166534; font:inherit; font-size:11px; font-weight:850; cursor:pointer; }
.ozon-knowledge-feedback button.incorrect { border-color:rgba(220,38,38,.22); background:#fff7f7; color:#b91c1c; }
.ozon-knowledge-feedback button:disabled { opacity:.52; cursor:not-allowed; }
.ozon-knowledge-feedback em { flex-basis:100%; color:#64748b; font-size:10px; font-style:normal; }

.customer-service-main .review-aftercare-card { display:flex; justify-content:space-between; gap:14px; align-items:center; margin:14px 0 12px; padding:12px 13px; border:1px solid #f2c59f; border-radius:10px; background:#fff8f1; }
.customer-service-main .review-aftercare-card.created { border-color:#9fd5b7; background:#f2fbf6; }
.customer-service-main .review-aftercare-card > div:first-child { display:grid; gap:4px; }
.customer-service-main .review-aftercare-card strong { color:#713d22; font-size:13px; }
.customer-service-main .review-aftercare-card.created strong { color:#17633c; }
.customer-service-main .review-aftercare-card span { color:#6b7280; font-size:11px; line-height:1.45; }
.customer-service-main .review-aftercare-actions { display:flex; align-items:center; gap:8px; }
.customer-service-main .review-aftercare-actions button { border:1px solid #d4a477; border-radius:8px; background:#fff; padding:7px 10px; color:#87412e; font:inherit; font-size:11px; font-weight:850; cursor:pointer; }
.customer-service-main .review-aftercare-actions button.approve { border-color:#16834b; background:#16834b; color:#fff; }
.customer-service-main .review-aftercare-actions em { color:#17633c; font-size:11px; font-style:normal; font-weight:800; }
@media (max-width:720px) { .customer-service-main .review-aftercare-card { align-items:flex-start; flex-direction:column; } }

.customer-service-main .ozon-review-followup-waiting { margin:12px 0 0; padding:10px 12px; border-radius:9px; background:#fff8e8; color:#8a5a14; font-size:11px; line-height:1.55; }

.customer-service-main .aftercare-board { overflow:hidden; border:1px solid #dfe5ef; border-radius:14px; background:#fff; box-shadow:0 12px 34px rgba(36,50,74,.08); }
.customer-service-main .aftercare-board-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; padding:18px 20px; border-bottom:1px solid #e5eaf1; background:linear-gradient(135deg,#fff8f1,#fff); }
.customer-service-main .aftercare-board-head span { color:#b45309; font-size:10px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.customer-service-main .aftercare-board-head h3 { margin:4px 0 5px; color:#1f2937; font-size:20px; }
.customer-service-main .aftercare-board-head p { margin:0; color:#64748b; font-size:12px; line-height:1.55; }
.customer-service-main .aftercare-board-head > div:last-child { display:flex; gap:8px; }
.customer-service-main .aftercare-board-head button,.customer-service-main .aftercare-toolbar button { border:1px solid #d4b28f; border-radius:8px; background:#fff; padding:8px 11px; color:#8a4b20; font:inherit; font-size:11px; font-weight:850; cursor:pointer; }
.customer-service-main .aftercare-stats { display:grid; grid-template-columns:repeat(7,minmax(100px,1fr)); gap:8px; padding:14px 16px 8px; }
.customer-service-main .aftercare-stat { display:grid; gap:3px; padding:10px 11px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; color:#64748b; text-align:left; cursor:pointer; }
.customer-service-main .aftercare-stat strong { color:#1f2937; font-size:18px; }
.customer-service-main .aftercare-stat span { font-size:10px; font-weight:800; }
.customer-service-main .aftercare-stat.active { border-color:#d97706; background:#fff7ed; box-shadow:0 0 0 2px rgba(217,119,6,.08); }
.customer-service-main .aftercare-toolbar { display:grid; grid-template-columns:minmax(220px,1fr) auto; gap:8px; padding:8px 16px 14px; }
.customer-service-main .aftercare-toolbar input { min-height:38px; border:1px solid #d8dee8; border-radius:9px; padding:0 11px; color:#1f2937; font:inherit; }
.customer-service-main .aftercare-board-body { display:grid; grid-template-columns:minmax(280px,36%) minmax(0,1fr); min-height:470px; border-top:1px solid #e5eaf1; }
.customer-service-main .aftercare-board-body > aside { max-height:620px; overflow:auto; padding:10px; border-right:1px solid #e5eaf1; background:#f8fafc; }
.customer-service-main .aftercare-board-row { width:100%; display:flex; justify-content:space-between; gap:10px; align-items:flex-start; margin-bottom:7px; padding:11px 12px; border:1px solid transparent; border-radius:10px; background:#fff; color:#334155; text-align:left; cursor:pointer; }
.customer-service-main .aftercare-board-row.selected { border-color:#d97706; background:#fff7ed; }
.customer-service-main .aftercare-board-row span { min-width:0; display:grid; gap:4px; }
.customer-service-main .aftercare-board-row strong { overflow:hidden; color:#1f2937; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.customer-service-main .aftercare-board-row small { color:#7b8798; font-size:10px; line-height:1.4; }
.customer-service-main .aftercare-board-row em { flex:0 0 auto; padding:4px 7px; border-radius:999px; background:#eef2f7; color:#526175; font-size:9px; font-style:normal; font-weight:850; }
.customer-service-main .aftercare-board-empty { padding:28px 14px; color:#94a3b8; text-align:center; }
.customer-service-main .aftercare-board-detail { padding:18px 20px 22px; }
.customer-service-main .aftercare-board-detail.empty { display:grid; place-content:center; color:#64748b; text-align:center; }
.customer-service-main .aftercare-board-detail header { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; padding-bottom:14px; border-bottom:1px solid #e5eaf1; }
.customer-service-main .aftercare-board-detail header div { display:grid; gap:4px; }
.customer-service-main .aftercare-board-detail header span { color:#b45309; font-size:10px; font-weight:900; }
.customer-service-main .aftercare-board-detail header strong { color:#1f2937; font-size:18px; }
.customer-service-main .aftercare-board-detail header em { padding:6px 9px; border-radius:999px; background:#fff1df; color:#9a4e0c; font-size:10px; font-style:normal; font-weight:850; }
.customer-service-main .aftercare-detail-facts { display:flex; flex-wrap:wrap; gap:7px; margin:14px 0; }
.customer-service-main .aftercare-detail-facts span { padding:6px 8px; border-radius:7px; background:#f1f5f9; color:#475569; font-size:10px; }
.customer-service-main .aftercare-board-detail article { margin-top:10px; padding:11px 12px; border:1px solid #e2e8f0; border-radius:9px; background:#f8fafc; }
.customer-service-main .aftercare-board-detail article b { color:#334155; font-size:11px; }
.customer-service-main .aftercare-board-detail article p { margin:6px 0 0; color:#475569; font-size:12px; line-height:1.55; white-space:pre-wrap; }
.customer-service-main .aftercare-detail-actions,.customer-service-main .aftercare-stage-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:14px; }
.customer-service-main .aftercare-detail-actions button,.customer-service-main .aftercare-stage-actions button { border:1px solid #cbd5e1; border-radius:8px; background:#fff; padding:7px 10px; color:#334155; font:inherit; font-size:11px; font-weight:850; cursor:pointer; }
.customer-service-main .aftercare-stage-actions span { margin-right:2px; color:#64748b; font-size:11px; font-weight:850; }
.customer-service-main .aftercare-stage-actions button.close { border-color:#f0b8b8; color:#b42318; background:#fff7f7; }
.customer-service-main .aftercare-safety-note { margin:14px 0 0; padding:10px 12px; border-radius:9px; background:#fff8e8; color:#8a5a14; font-size:11px; line-height:1.55; }
@media (max-width:1050px) { .customer-service-main .aftercare-stats { grid-template-columns:repeat(4,minmax(100px,1fr)); } .customer-service-main .aftercare-board-body { grid-template-columns:1fr; } .customer-service-main .aftercare-board-body > aside { max-height:300px; border-right:0; border-bottom:1px solid #e5eaf1; } }
@media (max-width:680px) { .customer-service-main .aftercare-board-head { flex-direction:column; } .customer-service-main .aftercare-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
