:root {
  --blue: #1f6feb;
  --blue-dark: #1c61d6;
  --blue-soft: #eef5ff;
  --ink: #1f2328;
  --body: #3d444d;
  --muted: #6e7781;
  --line: #d8dee4;
  --soft-line: #eaeef2;
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 3px 12px rgba(31, 35, 40, 0.045);
  --radius-card: 8px;
  --left-width: 72px;
  --workspace-width: clamp(420px, 46vw, 860px);
  --splitter-width: 10px;
  --workspace-min-width: 520px;
  --right-min-width: 420px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: #fff;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  background: #f6f8fa;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial,
    sans-serif;
}

body.is-resizing {
  cursor: col-resize;
  user-select: none;
}

body.is-login-active {
  background: #fff;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: minmax(500px, 1.02fr) minmax(480px, 0.98fr);
  min-height: 100dvh;
  overflow: hidden;
  background: #fff;
}

.login-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.login-brand-panel {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 18%, rgba(108, 72, 255, 0.34), transparent 32%),
    radial-gradient(circle at 18% 16%, rgba(16, 185, 255, 0.18), transparent 30%),
    linear-gradient(138deg, #061a36 0%, #081f4b 46%, #21105a 100%);
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
  opacity: 0.4;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  left: -9%;
  right: -12%;
  bottom: -12%;
  height: 40%;
  background:
    radial-gradient(circle at 10% 68%, rgba(69, 208, 255, 0.92) 0 3px, transparent 4px),
    radial-gradient(circle at 28% 50%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 44%, rgba(72, 191, 255, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 70%, rgba(132, 92, 255, 0.92) 0 3px, transparent 4px),
    repeating-radial-gradient(ellipse at 50% 100%, rgba(80, 180, 255, 0.38) 0 1px, transparent 2px 18px);
  filter: drop-shadow(0 0 20px rgba(31, 111, 235, 0.38));
  opacity: 0.9;
  transform: perspective(640px) rotateX(58deg);
  transform-origin: bottom center;
}

.login-brand-content {
  position: relative;
  z-index: 2;
  width: min(66%, 560px);
  display: grid;
  gap: 28px;
  transform: translateY(-42px);
}

.login-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-logo {
  width: 82px;
  height: 68px;
  filter: drop-shadow(0 18px 32px rgba(26, 140, 255, 0.26));
}

.login-logo-row strong {
  color: #fff;
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 820;
  letter-spacing: 0;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
}

.login-brand-content h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.97);
  font-size: clamp(46px, 4.8vw, 66px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.login-brand-content p {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: rgba(226, 238, 255, 0.84);
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 520;
  letter-spacing: 0.18em;
}

.login-brand-content p span {
  width: 52px;
  height: 1px;
  background: rgba(226, 238, 255, 0.42);
}

.login-signal-field {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  overflow: hidden;
}

.signal-line,
.signal-dot {
  position: absolute;
  bottom: 0;
  border-radius: 999px;
}

.signal-line {
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(84, 178, 255, 0.78), rgba(132, 92, 255, 0.28));
  box-shadow: 0 0 18px rgba(76, 165, 255, 0.44);
}

.signal-line-a { left: 9%; height: 42%; }
.signal-line-b { left: 24%; height: 26%; }
.signal-line-c { left: 58%; height: 34%; }
.signal-line-d { left: 72%; height: 20%; }
.signal-line-e { left: 86%; height: 30%; }

.signal-dot {
  width: 7px;
  height: 7px;
  background: #7dd3fc;
  box-shadow: 0 0 18px #38bdf8;
}

.signal-dot-a { left: 12%; bottom: 30%; }
.signal-dot-b { left: 52%; bottom: 18%; }
.signal-dot-c { left: 78%; bottom: 25%; background: #a78bfa; box-shadow: 0 0 18px #8b5cf6; }

.login-form-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(30px, 4.4vw, 70px);
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 111, 235, 0.035), transparent 36%),
    #fff;
}

.login-card {
  width: min(100%, 500px);
  display: grid;
  gap: 16px;
  transform: translateY(-12px);
}

.login-header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  text-align: center;
}

.login-header h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(38px, 3.2vw, 50px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.login-header p {
  margin: 0;
  color: #667085;
  font-size: 19px;
  font-weight: 520;
}

.login-field {
  min-width: 0;
  height: 54px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  color: #667085;
  background: rgba(255, 255, 255, 0.88);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.login-field:focus-within {
  border-color: #8ab6ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.08);
}

.login-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
  font-size: 17px;
}

.login-field input::placeholder {
  color: #9aa4b2;
}

.login-field-icon,
.login-eye-icon,
.admin-headset-icon {
  position: relative;
  display: inline-block;
  color: currentColor;
}

.login-field-icon {
  width: 23px;
  height: 23px;
}

.login-mail-icon::before {
  content: "";
  position: absolute;
  inset: 4px 1px 5px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.login-mail-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 9px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.login-lock-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.login-lock-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 1px;
  width: 12px;
  height: 14px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.login-eye-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #667085;
}

.login-eye-button:hover,
.login-eye-button:focus-visible {
  color: var(--blue);
  background: #eef5ff;
}

.login-eye-icon {
  width: 23px;
  height: 16px;
}

.login-eye-icon::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  border: 2px solid currentColor;
  border-radius: 50% / 70%;
}

.login-eye-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.login-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 2px;
}

.login-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667085;
  font-size: 16px;
  cursor: pointer;
}

.login-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-check span {
  width: 22px;
  height: 22px;
  border: 1.6px solid #a8b2c1;
  border-radius: 6px;
  background: #fff;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.login-check input:checked + span {
  border-color: var(--blue);
  background:
    linear-gradient(135deg, transparent 0 42%, #fff 43% 58%, transparent 59%) center / 12px 12px no-repeat,
    var(--blue);
}

.login-link {
  color: #0f62fe;
  font-size: 16px;
  font-weight: 620;
}

.login-link:hover,
.login-link:focus-visible {
  color: #0b4bc4;
}

.login-submit {
  height: 56px;
  margin-top: 12px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(90deg, #2563ff, #25a8ff);
  box-shadow: 0 18px 34px rgba(37, 99, 255, 0.18);
  font-size: 20px;
  font-weight: 760;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(37, 99, 255, 0.24);
  filter: saturate(1.04);
}

.login-error {
  min-height: 18px;
  margin: -6px 0 0;
  color: #d1242f;
  font-size: 14px;
  text-align: center;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 18px 0 4px;
  color: #8a94a6;
  font-size: 15px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: #d8dee8;
}

.enterprise-login {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.enterprise-login p {
  margin: 0;
  color: #667085;
  font-size: 18px;
  font-weight: 620;
}

.enterprise-login-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, 380px);
}

.enterprise-login-options button {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #667085;
  font-size: 14px;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.enterprise-login-options button:hover,
.enterprise-login-options button:focus-visible {
  color: #0f62fe;
  transform: translateY(-1px);
}

.enterprise-icon {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.035);
}

.enterprise-icon::before,
.enterprise-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.wecom-icon::before {
  width: 28px;
  height: 22px;
  border: 3px solid #1389f2;
  border-radius: 50%;
  transform: translate(-6px, -2px);
}

.wecom-icon::after {
  width: 20px;
  height: 16px;
  border: 3px solid #24c36a;
  border-radius: 50%;
  transform: translate(10px, 8px);
}

.dingtalk-icon::before {
  width: 34px;
  height: 38px;
  background: linear-gradient(145deg, #25a8ff, #1f6feb);
  clip-path: polygon(9% 0, 94% 18%, 56% 42%, 86% 48%, 45% 70%, 67% 100%, 10% 62%, 41% 54%, 7% 38%);
}

.feishu-icon::before {
  width: 38px;
  height: 30px;
  background: linear-gradient(135deg, #12d6a7 0 34%, #2563ff 35% 68%, #0b3d91 69%);
  clip-path: polygon(0 14%, 42% 45%, 42% 0, 100% 44%, 58% 72%, 58% 100%);
}

.admin-contact {
  width: fit-content;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: center;
  margin-top: 26px;
  color: #667085;
  font-size: 16px;
}

.admin-contact:hover,
.admin-contact:focus-visible {
  color: var(--blue);
}

.admin-headset-icon {
  width: 23px;
  height: 23px;
}

.admin-headset-icon::before {
  content: "";
  position: absolute;
  inset: 4px 3px 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.admin-headset-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 9px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
  border-radius: 3px;
}

.login-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 18, 33, 0.34);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.login-qr-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.login-qr-modal[hidden] {
  display: none;
}

.login-qr-card {
  position: relative;
  width: min(100%, 330px);
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 24px 24px 22px;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 180ms ease;
}

.login-qr-modal.is-open .login-qr-card {
  transform: translateY(0) scale(1);
}

.login-qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #6e7781;
}

.login-qr-close:hover,
.login-qr-close:focus-visible {
  color: #24292f;
  background: #f6f8fa;
}

.login-qr-close::before,
.login-qr-close::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 1.6px;
  border-radius: 999px;
  background: currentColor;
}

.login-qr-close::before {
  transform: rotate(45deg);
}

.login-qr-close::after {
  transform: rotate(-45deg);
}

.login-qr-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 760;
}

.login-qr-card h3 {
  margin: 0;
  color: #1f2328;
  font-size: 22px;
  font-weight: 760;
}

.login-real-qr {
  width: 178px;
  height: 178px;
  display: block;
  margin: 2px 0;
  padding: 10px;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 35, 40, 0.08);
  object-fit: contain;
}

.login-fake-qr {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 2px 0;
  border: 10px solid #fff;
  border-radius: 12px;
  background:
    linear-gradient(90deg, currentColor 10px, transparent 10px 20px, currentColor 20px 30px, transparent 30px 40px) 0 0 / 40px 40px,
    linear-gradient(currentColor 10px, transparent 10px 20px, currentColor 20px 30px, transparent 30px 40px) 0 0 / 40px 40px,
    #fff;
  box-shadow:
    inset 0 0 0 1px #d8dee8,
    0 12px 28px rgba(31, 35, 40, 0.08);
  color: #1f2328;
  overflow: hidden;
}

.login-fake-qr::before,
.login-fake-qr::after,
.login-fake-qr i {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.login-fake-qr::before,
.login-fake-qr::after,
.login-fake-qr i:nth-child(1) {
  width: 42px;
  height: 42px;
  border: 7px solid currentColor;
  border-radius: 8px;
  background: #fff;
}

.login-fake-qr::before {
  left: 12px;
  top: 12px;
}

.login-fake-qr::after {
  right: 12px;
  top: 12px;
}

.login-fake-qr i:nth-child(1) {
  left: 12px;
  bottom: 12px;
}

.login-fake-qr i:nth-child(2),
.login-fake-qr i:nth-child(3),
.login-fake-qr i:nth-child(4) {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
}

.login-fake-qr i:nth-child(2) {
  right: 48px;
  bottom: 32px;
  box-shadow: -28px -18px 0 currentColor, 18px -36px 0 currentColor;
}

.login-fake-qr i:nth-child(3) {
  left: 74px;
  top: 76px;
  box-shadow: 26px 18px 0 currentColor, -18px 34px 0 currentColor;
}

.login-fake-qr i:nth-child(4) {
  right: 22px;
  bottom: 72px;
  box-shadow: -36px 22px 0 currentColor, -8px -28px 0 currentColor;
}

.login-fake-qr.qr-wecom {
  color: #1389f2;
}

.login-fake-qr.qr-dingtalk {
  color: #1677ff;
  background:
    linear-gradient(45deg, currentColor 8px, transparent 8px 22px, currentColor 22px 30px, transparent 30px) 0 0 / 38px 38px,
    linear-gradient(-45deg, rgba(31, 111, 235, 0.2) 8px, transparent 8px 22px) 0 0 / 38px 38px,
    #fff;
}

.login-fake-qr.qr-feishu {
  color: #00b899;
  background:
    radial-gradient(circle, currentColor 0 5px, transparent 6px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(37, 99, 255, 0.26) 8px, transparent 8px 23px) 0 0 / 46px 46px,
    #fff;
}

.login-qr-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.login-qr-primary {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 720;
}

.login-qr-primary:hover,
.login-qr-primary:focus-visible {
  background: var(--blue-dark);
}

body.is-login-active .page-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:not(.is-login-active) .page-shell {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
}

.page-shell {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns:
    var(--left-width)
    var(--workspace-width)
    var(--splitter-width)
    minmax(var(--right-min-width), 1fr);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(246, 248, 250, 0.98), rgba(255, 255, 255, 0.96)),
    #f6f8fa;
}

.splitter {
  position: relative;
  z-index: 30;
  width: var(--splitter-width);
  min-height: 100dvh;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  background: transparent;
  cursor: col-resize;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.splitter::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 34px;
  border-radius: 999px;
  background: #c8d1de;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    opacity 160ms ease,
    background 160ms ease;
}

.splitter-cue {
  position: absolute;
  top: 50dvh;
  left: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(31, 35, 40, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.splitter-cue::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  border-radius: 1px;
}

.splitter:hover,
.splitter:focus-visible,
body.is-resizing .splitter {
  border-left-color: #b7c3d1;
  background: rgba(31, 35, 40, 0.025);
}

.splitter:hover::before,
.splitter:focus-visible::before,
body.is-resizing .splitter::before {
  opacity: 1;
  background: #8c959f;
}

.page-shell.is-at-right-min .splitter::before,
.page-shell.is-workspace-collapsed .splitter::before,
.page-shell.is-chat-collapsed .splitter::before,
.page-shell.is-preview-workspace-collapse .splitter::before,
.page-shell.is-preview-chat-collapse .splitter::before {
  opacity: 1;
  background: var(--blue);
}

.page-shell.is-preview-workspace-collapse .splitter,
.page-shell.is-preview-chat-collapse .splitter {
  background: rgba(31, 111, 235, 0.08);
}

.page-shell.is-preview-workspace-collapse .splitter::after,
.page-shell.is-preview-chat-collapse .splitter::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 42px;
  background: linear-gradient(90deg, rgba(31, 111, 235, 0.085), transparent);
  pointer-events: none;
}

.page-shell.is-preview-workspace-collapse .splitter::after {
  left: 0;
}

.page-shell.is-preview-chat-collapse .splitter::after {
  right: 0;
  transform: rotate(180deg);
}

.page-shell.is-preview-workspace-collapse .splitter-cue,
.page-shell.is-preview-chat-collapse .splitter-cue,
.page-shell.is-workspace-collapsed .splitter-cue,
.page-shell.is-chat-collapsed .splitter-cue {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.page-shell.is-preview-workspace-collapse .splitter-cue,
.page-shell.is-preview-chat-collapse .splitter-cue {
  width: max-content;
  min-width: 78px;
  height: 28px;
  padding-inline: 11px;
  gap: 6px;
  color: var(--blue);
  border-color: #aecaef;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(31, 111, 235, 0.13);
}

.page-shell.is-preview-workspace-collapse .splitter-cue::after {
  content: "松开收起工作区";
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-shell.is-preview-chat-collapse .splitter-cue::after {
  content: "松开收起对话";
  order: -1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-shell.is-preview-workspace-collapse .splitter-cue {
  left: 30px;
}

.page-shell.is-preview-chat-collapse .splitter-cue {
  left: auto;
  right: 18px;
  transform: translateY(-50%) scale(1);
}

.page-shell.is-preview-workspace-collapse .splitter-cue::before {
  transform: rotate(225deg);
}

.page-shell.is-preview-chat-collapse .splitter-cue::before {
  transform: rotate(45deg);
}

.page-shell.is-workspace-collapsed .splitter,
.page-shell.is-chat-collapsed .splitter {
  background: rgba(255, 255, 255, 0.72);
}

.page-shell.is-workspace-collapsed .splitter {
  width: 44px;
  margin-right: -34px;
}

.page-shell.is-chat-collapsed .splitter {
  width: 44px;
  margin-left: -34px;
}

.page-shell.is-workspace-collapsed .splitter-cue,
.page-shell.is-chat-collapsed .splitter-cue {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  color: var(--blue);
  border-color: #aecaef;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(31, 35, 40, 0.1);
}

.page-shell.is-workspace-collapsed .splitter-cue {
  left: 20px;
}

.page-shell.is-chat-collapsed .splitter-cue {
  left: auto;
  right: 20px;
  transform: translateY(-50%) scale(1);
}

.page-shell.is-workspace-collapsed .splitter-cue::before {
  transform: rotate(45deg);
}

.page-shell.is-chat-collapsed .splitter-cue::before {
  transform: rotate(225deg);
}

.left-panel {
  position: relative;
  z-index: 20;
  min-width: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center;
  overflow: visible;
  padding: 18px 8px;
  border-right: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.94);
  transition:
    opacity 120ms ease,
    visibility 120ms ease;
}

.rail-logo {
  width: 56px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 10px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.rail-logo:hover {
  background: #eef5ff;
  transform: translateY(-1px);
}

.rail-logo .brand-mark {
  width: 36px;
  height: 30px;
}

.department-switch {
  position: relative;
  width: 56px;
  margin: 0 auto 24px;
}

.department-switch .rail-logo {
  margin: 0;
  border: 0;
  background: transparent;
}

.department-menu {
  position: absolute;
  z-index: 80;
  left: 62px;
  top: 0;
  width: 292px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 35, 40, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px) scale(0.98);
  transform-origin: left top;
  transition:
    opacity 140ms ease,
    visibility 140ms ease,
    transform 140ms ease;
}

.department-switch:hover .department-menu,
.department-switch:focus-within .department-menu,
.department-switch:has([aria-expanded="true"]) .department-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.account-menu-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 4px 4px 10px;
  border-bottom: 1px solid #eef1f5;
}

.account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1f6feb, #27a6ff);
  font-size: 16px;
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(31, 111, 235, 0.16);
}

.account-menu-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-menu-head strong {
  color: #1f2328;
  font-size: 14px;
  font-weight: 760;
}

.account-menu-head small {
  overflow: hidden;
  color: #6e7781;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-role-list {
  display: grid;
  gap: 7px;
}

.department-menu button {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #57606a;
  text-align: left;
}

.department-menu button > span {
  grid-row: 1 / 3;
}

.department-menu button > strong,
.department-menu em {
  grid-column: 2;
}

.department-menu button:hover,
.department-menu button:focus-visible,
.department-menu button.is-active {
  color: var(--blue);
  background: #eef5ff;
}

.department-menu button::after {
  content: attr(data-role-level);
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #8c959f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 720;
}

.department-menu button.is-active::after {
  color: var(--blue);
  background: #fff;
}

.department-menu button > span {
  width: 52px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f6f8fa;
  font-size: 14px;
  font-weight: 760;
}

.department-menu button > strong {
  color: inherit;
  font-size: 16px;
  font-weight: 720;
}

.department-menu em {
  min-width: 0;
  overflow: hidden;
  color: #8c959f;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 48px;
}

.department-menu button.is-active em {
  color: #57606a;
}

.management-permission-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d8e5ff;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(238, 245, 255, 0.9), rgba(255, 255, 255, 0.78)),
    #fff;
}

.management-permission-card div {
  display: grid;
  gap: 3px;
}

.management-permission-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.management-permission-card strong {
  color: #1f2328;
  font-size: 13px;
  font-weight: 760;
}

.management-permission-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.management-permission-card li {
  position: relative;
  padding-left: 14px;
  color: #57606a;
  font-size: 12px;
  line-height: 1.45;
}

.management-permission-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.feature-rail {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: center;
}

.rail-item {
  position: relative;
  width: 56px;
  min-height: 52px;
  display: grid;
  place-items: center;
}

.rail-item::after {
  content: "";
  position: absolute;
  left: 48px;
  top: 0;
  width: 18px;
  height: 100%;
}

.rail-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--blue);
  background: transparent;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.rail-button:hover,
.rail-button:focus-visible,
.rail-item:focus-within .rail-button,
.rail-item:hover .rail-button {
  border-color: #d0d7de;
  background: #fff;
  transform: translateY(-1px);
}

.rail-button .feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.rail-button .icon-text-large::before,
.rail-button .icon-image-large::before {
  inset: 24%;
  border-width: 2.2px;
}

.rail-button .icon-text-large::after {
  font-size: 27px;
}

.rail-button .icon-video-large::before {
  width: 55%;
  height: 42%;
  border-width: 2.2px;
  border-top-width: 4px;
  border-radius: 4px;
}

.vertical-apps-button,
.feature-overview-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #57606a;
  background: transparent;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.feature-overview-button {
  margin-bottom: 8px;
}

.vertical-apps-button:hover,
.vertical-apps-button:focus-visible,
.vertical-apps-button.is-active,
.feature-overview-button:hover,
.feature-overview-button:focus-visible,
.feature-overview-button.is-active {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
  transform: translateY(-1px);
}

.vertical-apps-button::before,
.feature-overview-button::before {
  position: absolute;
  left: 56px;
  bottom: 4px;
  width: max-content;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #57606a;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 35, 40, 0.1);
  font-size: 12px;
  font-weight: 680;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition:
    opacity 140ms ease,
    visibility 140ms ease,
    transform 140ms ease;
}

.vertical-apps-button::before {
  content: "垂直应用";
}

.feature-overview-button::before {
  content: "功能一览";
}

.vertical-apps-button:hover::before,
.vertical-apps-button:focus-visible::before,
.feature-overview-button:hover::before,
.feature-overview-button:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.vertical-apps-icon,
.feature-overview-icon {
  position: relative;
  width: 28px;
  height: 28px;
}

.feature-overview-icon {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 4px;
  justify-content: center;
  align-content: center;
}

.feature-overview-icon::before,
.feature-overview-icon::after {
  content: "";
}

.feature-overview-icon::before,
.feature-overview-icon::after,
.feature-overview-icon {
  color: currentColor;
}

.feature-overview-icon::before {
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow:
    13px 0 0 -2px #fff,
    13px 0 0 0 currentColor,
    0 13px 0 -2px #fff,
    0 13px 0 0 currentColor,
    13px 13px 0 -2px #fff,
    13px 13px 0 0 currentColor;
}

.feature-overview-icon::after {
  display: none;
}

.vertical-apps-icon::before,
.vertical-apps-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.vertical-apps-icon::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.vertical-apps-icon::after {
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 4px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 0 / 4px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 4px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 8px / 4px 4px no-repeat;
}

.rail-flyout {
  position: absolute;
  z-index: 50;
  left: 62px;
  top: -2px;
  width: 232px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(31, 35, 40, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px) scale(0.98);
  transform-origin: left top;
  transition:
    opacity 140ms ease,
    visibility 140ms ease,
    transform 140ms ease;
}

.rail-item:hover .rail-flyout,
.rail-item:focus-within .rail-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.flyout-head {
  display: grid;
  gap: 4px;
  padding: 2px 2px 6px;
}

.flyout-head strong {
  color: #24292f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.flyout-head span {
  color: #6e7781;
  font-size: 12px;
  line-height: 1.2;
}

.rail-flyout .option-card,
.rail-flyout .option-card.wide,
.rail-flyout .option-card.compact {
  height: 38px;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  gap: 8px;
  padding-inline: 8px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.rail-flyout .option-icon,
.rail-flyout .compact .option-icon {
  width: 30px;
  height: 30px;
  background: #f6f8fa;
}

.rail-flyout .card-label,
.rail-flyout .compact .card-label {
  font-size: 13px;
}

.rail-flyout .option-card:disabled {
  cursor: default;
  opacity: 0.52;
}

.rail-flyout .option-card:disabled .chevron {
  width: auto;
  color: #8c959f;
  font-size: 10px;
  text-transform: uppercase;
}

.page-shell.is-left-compact .left-panel {
  padding: 30px 24px 20px;
}

.page-shell.is-left-narrow .left-panel {
  padding: 24px 18px 18px;
}

.page-shell.is-left-mini .left-panel {
  padding: 20px 14px 16px;
}

.workspace-panel {
  min-width: 0;
  height: 100dvh;
  container-name: workspace;
  container-type: inline-size;
  overflow: auto;
  border-right: 1px solid var(--soft-line);
  background-color: #f8f9fb;
  background-image:
    linear-gradient(rgba(208, 215, 222, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208, 215, 222, 0.46) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: workspace-grid-scroll 24s linear infinite;
  transition:
    opacity 120ms ease,
    visibility 120ms ease;
}

@keyframes workspace-grid-scroll {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 28px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-panel {
    animation: none;
  }

  .workspace-home,
  .workspace-tool {
    transition: none;
  }

  .workspace-panel.is-workspace-entering .workspace-home,
  .workspace-panel.is-workspace-entering .workspace-tool {
    animation: none;
  }
}

.workspace-home {
  min-width: 0;
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(32px, 3.4vw, 58px) clamp(30px, 3.5vw, 58px) 38px;
}

.workspace-home[hidden],
.workspace-tool[hidden] {
  display: none;
}

.workspace-tool {
  min-width: 0;
  min-height: 100%;
  padding: clamp(28px, 3vw, 48px) clamp(24px, 3.3vw, 54px) 38px;
}

.workspace-home,
.workspace-tool {
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  will-change: opacity, transform;
}

.workspace-panel.is-workspace-leaving .workspace-home,
.workspace-panel.is-workspace-leaving .workspace-tool {
  opacity: 0;
  transform: translateY(8px);
  transition-duration: 90ms;
}

.workspace-panel.is-workspace-entering .workspace-home,
.workspace-panel.is-workspace-entering .workspace-tool {
  animation: workspace-content-enter 190ms ease both;
}

@keyframes workspace-content-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-workspace-inner {
  min-width: 0;
  width: min(100%, 1080px);
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.vertical-apps-mode .workspace-tool {
  display: grid;
  align-items: center;
  padding: clamp(22px, 2.8vw, 46px) clamp(22px, 3vw, 54px);
}

.vertical-apps-workspace {
  width: min(100%, 1120px);
  margin-inline: auto;
  display: grid;
  gap: 18px;
}

.vertical-apps-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(210px, 0.38fr);
  gap: 16px;
  align-items: start;
}

.vertical-apps-hero > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.vertical-apps-hero span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.vertical-apps-hero h2 {
  margin: 0;
  color: #1f2328;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.05;
}

.vertical-apps-hero p {
  max-width: 62ch;
  margin: 0;
  color: #6e7781;
  font-size: 14px;
  line-height: 1.6;
}

.vertical-apps-hero aside {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #d8dee4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(31, 35, 40, 0.045);
}

.vertical-apps-hero small,
.vertical-apps-hero em {
  color: #6e7781;
  font-size: 12px;
  font-style: normal;
}

.vertical-apps-hero strong {
  color: #1f2328;
  font-size: 15px;
  font-weight: 760;
}

.vertical-case-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vertical-case-card {
  min-width: 0;
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(216, 222, 228, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.78)),
    #fff;
  box-shadow: 0 10px 26px rgba(31, 35, 40, 0.045);
}

.vertical-case-shot {
  position: relative;
  min-width: 0;
  height: 168px;
  display: block;
  overflow: hidden;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.85), rgba(255, 255, 255, 0.72)),
    #f6f8fa;
}

.vertical-case-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
  filter: saturate(0.94);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.vertical-case-card:hover .vertical-case-shot img {
  transform: scale(1.015);
  filter: saturate(1);
}

.vertical-case-shot span {
  position: absolute;
  left: 9px;
  bottom: 9px;
  max-width: calc(100% - 18px);
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid rgba(216, 222, 228, 0.76);
  border-radius: 999px;
  color: #3d444d;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(31, 35, 40, 0.08);
  font-size: 11px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vertical-case-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.vertical-case-top span,
.vertical-case-top em {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.vertical-case-top span {
  color: var(--blue);
  background: #eef5ff;
}

.vertical-case-top em {
  color: #57606a;
  background: #f6f8fa;
}

.vertical-case-card h3 {
  margin: 0;
  color: #1f2328;
  font-size: 18px;
  font-weight: 760;
}

.vertical-case-card p {
  margin: 0;
  color: #57606a;
  font-size: 13px;
  line-height: 1.56;
}

.vertical-case-card div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.vertical-case-card button,
.vertical-case-card div:last-child a {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.vertical-case-card div:last-child a {
  margin-left: auto;
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
  font-weight: 720;
}

.vertical-case-placeholder {
  border-style: dashed;
  background: rgba(248, 250, 252, 0.68);
}

.feature-overview-mode .workspace-tool {
  display: grid;
  align-items: start;
  padding: clamp(26px, 3.2vw, 44px) clamp(20px, 3vw, 46px) 48px;
  overflow-x: hidden;
}

.feature-overview-workspace {
  width: min(100%, 1180px);
  margin-inline: auto;
  display: grid;
  gap: clamp(22px, 2.6vw, 34px);
}

.feature-overview-page-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
  gap: clamp(22px, 4vw, 64px);
  align-items: center;
}

.feature-overview-page-head > div {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.feature-overview-pill {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid #c8d8f2;
  border-radius: 12px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(31, 111, 235, 0.06);
  font-size: 14px;
  font-weight: 760;
}

.feature-overview-pill i {
  width: 15px;
  height: 15px;
  display: grid;
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 3px;
}

.feature-overview-pill i::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  box-shadow:
    9px 0 currentColor,
    0 9px currentColor,
    9px 9px currentColor;
}

.feature-overview-page-head > div > span:not(.feature-overview-pill) {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.feature-overview-page-head h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(42px, 4.8vw, 68px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.98;
}

.feature-overview-page-head p {
  max-width: 60ch;
  margin: 0;
  color: #6e7781;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.58;
}

.feature-overview-page-head aside {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 3px 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d8dee4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 48px rgba(31, 35, 40, 0.07);
}

.overview-orbit {
  grid-row: 1 / span 3;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(31, 111, 235, 0.1));
}

.overview-orbit::before {
  content: "";
  width: 30px;
  height: 16px;
  display: block;
  margin: 15px auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #c7d2fe, #93c5fd);
  transform: rotate(-24deg);
}

.feature-overview-page-head aside small,
.feature-overview-page-head aside em {
  color: #6e7781;
  font-size: 12px;
  font-style: normal;
}

.feature-overview-page-head aside strong {
  color: #1f2328;
  font-size: 22px;
  font-weight: 760;
}

.feature-overview-page-head aside em b {
  color: var(--blue);
  font-size: 22px;
  font-style: normal;
}

.feature-overview-all {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 286px), 1fr));
  gap: clamp(14px, 1.9vw, 22px);
  align-items: start;
}

.feature-overview-department {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 18px 16px 16px;
  border: 1px solid var(--overview-line, #c8d8f2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 42px rgba(31, 35, 40, 0.055);
}

.feature-overview-department-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 0 2px;
  border-bottom: 0;
}

.feature-overview-department-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feature-overview-department-head > small {
  justify-self: end;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--overview-accent, var(--blue));
  background: var(--overview-soft, #eef5ff);
  font-size: 12px;
  font-weight: 760;
}

.feature-overview-department-head div span {
  color: #6e7781;
  font-size: 13px;
  font-weight: 700;
}

.feature-overview-department-head strong {
  color: #1f2328;
  font-size: 22px;
  line-height: 1.1;
}

.feature-overview-department-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--overview-accent, var(--blue));
  box-shadow: 0 12px 26px var(--overview-glow, rgba(31, 111, 235, 0.18));
}

.feature-overview-department-icon::before,
.feature-overview-department-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.overview-dept-marketing::before {
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 9px 9px;
}

.overview-dept-marketing::after {
  right: 10px;
  top: 10px;
  width: 8px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
  transform: skewX(-14deg);
}

.overview-dept-finance::before {
  width: 20px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.overview-dept-finance::after {
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.overview-dept-management::before {
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -8px 9px 0 -1px currentColor, 8px 9px 0 -1px currentColor;
}

.overview-dept-management::after {
  bottom: 9px;
  width: 24px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 11px 11px;
}

.feature-overview-directory,
.feature-overview-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-overview-column,
.feature-overview-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--overview-soft-line, rgba(200, 216, 242, 0.9));
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.46)),
    var(--overview-faint, rgba(238, 245, 255, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.feature-overview-column:last-child,
.feature-overview-group:last-child {
  padding-right: 18px;
  border-right: 1px solid var(--overview-soft-line, rgba(200, 216, 242, 0.9));
}

.feature-overview-column-head,
.feature-overview-group-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 0;
}

.feature-overview-column-icon,
.feature-overview-group-icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  color: var(--overview-accent, var(--blue));
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.feature-overview-column-icon::before,
.feature-overview-column-icon::after,
.feature-overview-group-icon::before,
.feature-overview-group-icon::after {
  box-sizing: border-box;
}

.feature-overview-column-icon.icon-text-large::before,
.feature-overview-column-icon.icon-image-large::before,
.feature-overview-group-icon.icon-text-large::before,
.feature-overview-group-icon.icon-image-large::before {
  inset: 7px;
  border-width: 1.8px;
}

.feature-overview-column-icon.icon-text-large::after,
.feature-overview-group-icon.icon-text-large::after {
  font-size: 18px;
}

.feature-overview-column-icon.icon-video-large::before,
.feature-overview-group-icon.icon-video-large::before {
  width: 17px;
  height: 14px;
  border-width: 1.8px;
  border-top-width: 3px;
  border-radius: 4px;
}

.feature-overview-column-icon.icon-video-large::after,
.feature-overview-group-icon.icon-video-large::after {
  width: 6px;
  height: 8px;
}

.feature-overview-column-head div,
.feature-overview-group-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feature-overview-column-head strong,
.feature-overview-group-head strong {
  min-width: 0;
  overflow: hidden;
  color: #1f2328;
  color: var(--overview-accent, #1f2328);
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-overview-column-head strong b {
  margin-right: 9px;
  color: var(--overview-accent, var(--blue));
  font-variant-numeric: tabular-nums;
}

.feature-overview-column-head small,
.feature-overview-group-head small {
  min-width: 0;
  overflow: hidden;
  color: #6e7781;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-overview-list {
  display: grid;
  gap: 7px;
  border-top: 0;
}

.feature-overview-row,
.feature-overview-card {
  min-width: 0;
  min-height: 40px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 9px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(216, 222, 228, 0.82);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.feature-overview-row::after,
.feature-overview-card::after {
  content: "";
  grid-column: 3;
  grid-row: 1;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  color: #8c959f;
  transform: rotate(-45deg);
}

.feature-overview-row .option-icon,
.feature-overview-card .option-icon {
  position: relative;
  grid-row: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--overview-accent, var(--blue));
  background: var(--overview-soft, #eef5ff);
  overflow: hidden;
}

.feature-overview-row .option-icon::before,
.feature-overview-row .option-icon::after,
.feature-overview-card .option-icon::before,
.feature-overview-card .option-icon::after {
  box-sizing: border-box;
}

.feature-overview-row strong,
.feature-overview-card strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-overview-row small,
.feature-overview-card small {
  display: none;
}

.feature-overview-row:hover,
.feature-overview-row:focus-visible,
.feature-overview-card:hover,
.feature-overview-card:focus-visible {
  color: var(--overview-accent, var(--blue));
  border-color: var(--overview-line, #aecaef);
  background: #fff;
}

.feature-overview-row:hover strong,
.feature-overview-row:focus-visible strong,
.feature-overview-card:hover strong,
.feature-overview-card:focus-visible strong {
  color: var(--overview-accent, var(--blue));
}

.feature-overview-department[data-overview-tone="blue"] {
  --overview-accent: #1f6feb;
  --overview-line: #80b7ff;
  --overview-soft-line: rgba(174, 202, 239, 0.9);
  --overview-soft: #eef5ff;
  --overview-faint: rgba(238, 245, 255, 0.45);
  --overview-glow: rgba(31, 111, 235, 0.2);
}

.feature-overview-department[data-overview-tone="green"] {
  --overview-accent: #1f9d55;
  --overview-line: #87d39a;
  --overview-soft-line: rgba(188, 232, 204, 0.95);
  --overview-soft: #eaf8ef;
  --overview-faint: rgba(235, 250, 240, 0.55);
  --overview-glow: rgba(31, 157, 85, 0.18);
}

.feature-overview-department[data-overview-tone="purple"] {
  --overview-accent: #7257d6;
  --overview-line: #b4a2ff;
  --overview-soft-line: rgba(219, 211, 255, 0.95);
  --overview-soft: #f2efff;
  --overview-faint: rgba(247, 245, 255, 0.62);
  --overview-glow: rgba(114, 87, 214, 0.18);
}

.feature-overview-row.is-disabled,
.feature-overview-card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tool-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.tool-back {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.tool-back::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 11px;
  width: 9px;
  height: 9px;
  border-left: 1.8px solid #57606a;
  border-bottom: 1.8px solid #57606a;
  transform: rotate(45deg);
}

.tool-back:hover,
.tool-back:focus-visible {
  border-color: #aecaef;
  background: #fff;
  transform: translateX(-1px);
}

.tool-hero span,
.tool-section-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.tool-hero h2 {
  margin: 6px 0 0;
  color: #1f2328;
  font-size: clamp(28px, 2.55vw, 40px);
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: 0;
}

.tool-hero p {
  max-width: 56ch;
  margin: 8px 0 0;
  color: #6e7781;
  font-size: 14px;
  line-height: 1.55;
}

.tool-intent {
  min-width: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  padding: 10px 12px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.tool-intent small {
  color: #8c959f;
  font-size: 12px;
}

.tool-intent strong {
  min-width: 0;
  overflow: hidden;
  grid-column: 1 / -1;
  color: #24292f;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-state {
  justify-self: end;
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(246, 248, 250, 0.86);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.version-state[data-tone="busy"] {
  border-color: #c8d8f2;
  color: #0969da;
  background: rgba(221, 244, 255, 0.72);
}

.version-state[data-tone="review"],
.version-state[data-tone="blocked"] {
  border-color: #ead6a0;
  color: #7d4e00;
  background: rgba(255, 248, 197, 0.72);
}

.version-state[data-tone="ready"] {
  border-color: #b7dec2;
  color: #116329;
  background: rgba(218, 251, 225, 0.72);
}

.version-state[data-tone="delivered"] {
  border-color: #c8d8f2;
  color: #0969da;
  background: rgba(246, 250, 255, 0.9);
}

.scenario-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 0 11px;
  border-bottom: 1px solid #eaeef2;
}

.scenario-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.scenario-main span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.scenario-main strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-checks {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.scenario-checks button,
.scenario-next {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.scenario-checks button {
  padding: 0 9px;
}

.scenario-next {
  border-color: #aecaef;
  padding: 0 11px;
  color: var(--blue);
  background: #eef5ff;
}

.scenario-checks button:hover,
.scenario-checks button:focus-visible,
.scenario-checks button.is-active,
.scenario-checks button.is-checking,
.scenario-next:hover,
.scenario-next:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.scenario-checks button.is-checking {
  background: #eef5ff;
}

.tool-framework {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: rgba(246, 248, 250, 0.54);
}

.framework-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}

.framework-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 740;
}

.framework-head strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.framework-head button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #aecaef;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}

.framework-head button:hover,
.framework-head button:focus-visible {
  background: var(--blue-dark);
}

.framework-head button:disabled,
.compact-process button:disabled,
.framework-head button.is-generating,
.compact-process button.is-generating {
  border-color: #c8d1de;
  color: #57606a;
  background: #eef1f4;
  cursor: default;
}

.framework-lane {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.framework-lane button {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid #d8dee4;
  border-radius: 7px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  text-align: left;
}

.framework-lane button span {
  color: #8c959f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.framework-lane button:hover,
.framework-lane button:focus-visible,
.framework-lane button.is-active {
  border-color: #aecaef;
  color: #1f2328;
  background: #fff;
}

.framework-lane button.is-active span {
  color: var(--blue);
}

.framework-foot {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.framework-foot p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #57606a;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.framework-foot div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.framework-foot span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #6e7781;
  background: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.tool-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.project-detail-mode .workspace-tool {
  padding: clamp(28px, 3.2vw, 50px) clamp(24px, 3.6vw, 58px) 42px;
}

.project-detail-workspace {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.project-detail-hero {
  align-items: center;
}

.project-detail-status {
  min-width: 172px;
}

.project-detail-status .version-state {
  justify-self: start;
}

.project-detail-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.project-detail-main,
.project-detail-side {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.project-detail-summary,
.project-detail-card,
.project-detail-progress,
.project-detail-metric {
  min-width: 0;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.035);
}

.project-detail-summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.project-detail-summary .timeline-cover {
  width: 132px;
  height: 102px;
}

.project-detail-summary > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.project-detail-kicker,
.project-detail-head span,
.project-detail-progress span,
.project-detail-metric span,
.project-detail-tasks span {
  color: #6e7781;
  font-size: 12px;
  font-weight: 700;
}

.project-detail-summary strong {
  color: #1f2328;
  font-size: 18px;
  line-height: 1.35;
}

.project-detail-summary p,
.project-detail-activity li {
  margin: 0;
  color: #57606a;
  font-size: 13px;
  line-height: 1.55;
}

.project-detail-progress {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.project-detail-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-detail-progress strong {
  color: #1f2328;
  font-size: 24px;
  line-height: 1;
}

.project-detail-progress i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaeef2;
}

.project-detail-progress i::before {
  content: "";
  width: var(--progress);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f6feb, #2da44e);
}

.project-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-detail-metric {
  display: grid;
  gap: 7px;
  padding: 13px;
  box-shadow: none;
}

.project-detail-metric strong {
  color: #1f2328;
  font-size: 21px;
  line-height: 1;
}

.project-detail-metric small {
  min-width: 0;
  overflow: hidden;
  color: #6e7781;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-detail-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.project-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-detail-head strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-detail-tasks,
.project-detail-activity {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-detail-tasks li {
  min-width: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: rgba(246, 248, 250, 0.58);
}

.project-detail-tasks strong {
  min-width: 0;
  color: #24292f;
  font-size: 13px;
  line-height: 1.45;
}

.project-detail-outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-detail-outputs button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #3d444d;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.project-detail-outputs button:hover,
.project-detail-outputs button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.project-detail-activity {
  gap: 9px;
}

.project-detail-activity li {
  padding-left: 12px;
  border-left: 2px solid #d8dee4;
}

.project-detail-primary {
  min-height: 42px;
  border-radius: 8px;
  color: #fff;
  background: #1f6feb;
  font-size: 14px;
  font-weight: 760;
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.18);
}

.project-detail-primary:hover,
.project-detail-primary:focus-visible {
  background: #1a5fd0;
  transform: translateY(-1px);
}

.new-project-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.68fr);
  gap: 14px;
  align-items: start;
}

.new-project-form,
.new-project-preview {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.new-project-form {
  padding: 16px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.035);
}

.new-project-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #6e7781;
  font-size: 12px;
  font-weight: 700;
}

.new-project-form input,
.new-project-form textarea,
.new-project-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  padding: 10px 11px;
  color: #24292f;
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  outline: 0;
}

.new-project-form textarea {
  resize: vertical;
  min-height: 118px;
}

.new-project-form input:focus,
.new-project-form textarea:focus,
.new-project-form select:focus {
  border-color: #aecaef;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

.new-project-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.new-project-preview .project-detail-summary {
  grid-template-columns: 112px minmax(0, 1fr);
}

.new-project-preview .timeline-cover {
  width: 112px;
  height: 92px;
}

.tool-main,
.tool-preview,
.tool-history {
  min-width: 0;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 18px rgba(31, 35, 40, 0.025);
}

.tool-main,
.tool-preview {
  padding: 14px;
}

.tool-main {
  display: grid;
  align-content: start;
  gap: 10px;
}

.tool-section-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tool-section-head button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 7px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.tool-section-head button:hover,
.tool-section-head button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.tool-section-head button:disabled,
.tool-section-head button.is-refreshing,
.tool-section-head button.is-locked {
  border-color: #c8d1de;
  color: #57606a;
  background: #eef1f4;
  cursor: default;
}

.tool-field-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.tool-field span {
  color: #6e7781;
  font-size: 12px;
}

.tool-field input {
  min-width: 0;
  height: 34px;
  border: 1px solid #d8dee4;
  border-radius: 7px;
  padding: 0 11px;
  color: #24292f;
  background: rgba(255, 255, 255, 0.86);
  outline: 0;
  font-size: 13px;
}

.tool-field input:focus {
  border-color: #aecaef;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.tool-field.is-editing input {
  border-color: #aecaef;
  background: #fff;
}

.tool-field.is-updated input {
  border-color: #aecaef;
  box-shadow: inset 3px 0 0 var(--blue);
}

.tool-field.is-invalid span {
  color: #cf222e;
}

.tool-field.is-invalid input {
  border-color: #f0b8bc;
  background: #fff5f5;
  box-shadow: inset 3px 0 0 #cf222e;
}

.tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-chip-row button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.tool-chip-row button.is-active,
.tool-chip-row button:hover,
.tool-chip-row button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.tool-process {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.tool-quick-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 8px;
  align-items: start;
}

.compact-process {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 9px;
}

.compact-process button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #aecaef;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}

.tool-process ol {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
}

.tool-process li {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #6e7781;
  font-size: 12px;
  line-height: 1.35;
}

.tool-process li span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #8c959f;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.tool-process li.is-active {
  color: #24292f;
}

.tool-process li.is-complete {
  color: #1f6feb;
}

.tool-process li.is-active span {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.tool-process li.is-complete span {
  border-color: #aecaef;
  color: #fff;
  background: var(--blue);
}

.tool-control-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tool-control {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tool-control span {
  color: #8c959f;
  font-size: 11px;
}

.tool-control input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #24292f;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.tool-control:focus-within,
.tool-control.is-editing {
  border-color: #aecaef;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.06);
}

.tool-control.is-updated {
  border-color: #b7e3c0;
  background: rgba(246, 255, 248, 0.72);
}

.tool-control.is-updated span {
  color: #1a7f37;
}

.tool-control.is-invalid {
  border-color: #f0b8bc;
  background: #fff5f5;
  box-shadow: inset 3px 0 0 #cf222e;
}

.tool-control.is-invalid span {
  color: #cf222e;
}

.tool-special {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 0 0 10px;
  border-bottom: 1px solid #eaeef2;
}

.tool-disclosure {
  min-width: 0;
  border-top: 1px solid #eaeef2;
}

.tool-disclosure:first-of-type {
  border-top: 0;
}

.tool-disclosure summary {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 9px;
  align-items: center;
  gap: 10px;
  color: #57606a;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.tool-disclosure summary > span,
.tool-disclosure summary > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-disclosure summary > small {
  color: #8c959f;
  font-size: 11px;
  font-weight: 650;
}

.tool-disclosure summary::-webkit-details-marker {
  display: none;
}

.tool-disclosure summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.tool-disclosure[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.tool-disclosure-body {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 0 0 10px;
}

.preview-disclosure {
  border-top: 0;
}

.prototype-tune {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid #eaeef2;
}

.prototype-tune summary {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #57606a;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.prototype-tune summary::-webkit-details-marker {
  display: none;
}

.prototype-tune summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.prototype-tune[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.prototype-tune-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0 0 8px;
}

.special-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.46fr);
  gap: 8px;
}

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

.prototype-copy-audit .special-grid,
.prototype-note-matrix .cover-wall {
  grid-template-columns: 1fr;
}

.special-item {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px 9px;
  padding: 8px 9px;
  border: 1px solid #eaeef2;
  border-radius: 7px;
  color: #3d444d;
  background: rgba(255, 255, 255, 0.5);
  text-align: left;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.special-item:hover,
.special-item:focus-visible,
.special-item.is-selected,
.special-item.is-applied {
  border-color: #aecaef;
  background: rgba(255, 255, 255, 0.82);
  transform: none;
}

.special-item.is-applied {
  box-shadow: inset 3px 0 0 var(--blue);
}

.special-item span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.special-item strong {
  min-width: 0;
  color: #24292f;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.matrix-item strong {
  -webkit-line-clamp: 3;
}

.special-item small {
  grid-column: 2;
  color: #8c959f;
  font-size: 11px;
}

.special-detail {
  min-width: 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: rgba(246, 248, 250, 0.68);
}

.special-detail small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.special-detail strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-detail p {
  margin: 0;
  overflow: hidden;
  color: #57606a;
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-detail span {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #aecaef;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
}

.prototype-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 7px;
  align-items: stretch;
}

.prototype-gallery,
.prototype-storyboard,
.prototype-calendar,
.prototype-effects {
  grid-template-columns: minmax(0, 1.08fr) minmax(196px, 0.72fr);
}

.prototype-poster,
.prototype-render,
.prototype-deck-builder {
  grid-template-columns: minmax(156px, 0.52fr) minmax(0, 1fr);
}

.prototype-grid > * {
  min-width: 0;
}

.copy-audit-panel,
.note-builder,
.prompt-console,
.layer-switches,
.speaker-notes,
.camera-controls,
.voice-panel,
.topic-pipeline,
.script-block,
.effect-console,
.export-variants {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(246, 248, 250, 0.72);
}

.audit-meter {
  min-height: 46px;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(31, 111, 235, 0.12), transparent 36%),
    #f6f8fa;
}

.audit-meter strong {
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.audit-meter span,
.prompt-line span,
.range-control span,
.speaker-notes strong,
.voice-panel strong,
.script-block strong {
  color: #6e7781;
  font-size: 12px;
  font-weight: 700;
}

.audit-reasons,
.tag-row,
.micro-actions,
.camera-controls,
.export-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.audit-reasons span,
.tag-row button,
.micro-actions button,
.camera-controls button,
.export-variants button {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.tag-row button.is-selected,
.camera-controls button.is-selected,
.export-variants button.is-selected,
.tag-row button:hover,
.micro-actions button:hover,
.camera-controls button:hover,
.export-variants button:hover {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.outline-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.outline-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #57606a;
  font-size: 12px;
  line-height: 1.42;
}

.outline-list strong {
  color: #24292f;
  font-size: 12px;
}

.cover-wall,
.candidate-grid,
.layer-stack,
.slide-navigator,
.material-board,
.storyboard-strip,
.calendar-board,
.effect-timeline {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.cover-wall,
.candidate-grid,
.calendar-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-cover-preview,
.poster-mini-canvas,
.slide-canvas,
.render-viewport {
  min-height: 116px;
  display: grid;
  align-content: end;
  gap: 7px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 22%, rgba(31, 111, 235, 0.18), transparent 20%),
    linear-gradient(145deg, #f6f8fa, #fff);
}

.note-cover-preview span,
.poster-mini-canvas span,
.slide-canvas span,
.render-viewport span,
.note-cover-preview small,
.render-viewport small {
  color: #8c959f;
  font-size: 12px;
}

.note-cover-preview strong,
.poster-mini-canvas strong,
.slide-canvas strong,
.render-viewport strong {
  color: #1f2328;
  font-size: 17px;
  line-height: 1.12;
}

.poster-mini-canvas {
  color: #fff;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(160deg, #8fc5ff, #1f6feb);
}

.poster-mini-canvas span,
.poster-mini-canvas strong,
.poster-mini-canvas small {
  color: #fff;
}

.slide-canvas {
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #1f6feb, #24292f);
}

.slide-canvas span,
.slide-canvas strong,
.slide-canvas small {
  color: #fff;
}

.render-viewport {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), transparent 40%),
    linear-gradient(145deg, #eef5ff, #f6f8fa 46%, #c8d1de);
}

.prompt-line {
  display: grid;
  gap: 4px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eaeef2;
}

.prompt-line strong,
.speaker-notes p,
.voice-panel p,
.script-block p {
  margin: 0;
  color: #3d444d;
  font-size: 12px;
  line-height: 1.55;
}

.range-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 22px;
  align-items: center;
  gap: 8px;
}

.range-control input {
  width: 100%;
  accent-color: var(--blue);
}

.range-control strong {
  color: #24292f;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.micro-toggle {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-align: left;
}

.micro-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d8dee4;
}

.micro-toggle.is-on {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.micro-toggle.is-on::after {
  background: var(--blue);
}

.duration-bar {
  height: 26px;
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #f6f8fa;
}

.duration-bar span {
  min-width: 16px;
  border-radius: 5px;
  background: rgba(31, 111, 235, 0.74);
}

.topic-pipeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-pipeline div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: #fff;
}

.topic-pipeline span {
  color: #8c959f;
  font-size: 11px;
}

.topic-pipeline strong {
  color: #1f2328;
  font-size: 18px;
  line-height: 1;
}

.score-item {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
}

.score-item span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
}

.gallery-item,
.slide-item {
  min-height: 70px;
}

.gallery-item::before {
  content: "";
  grid-column: 1 / -1;
  height: 26px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 72% 34%, rgba(31, 111, 235, 0.24), transparent 22%),
    linear-gradient(135deg, #eef5ff, #fff);
}

.layers-item,
.materials-item,
.tracks-item {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
}

.layers-item small,
.materials-item small,
.tracks-item small {
  grid-column: 2;
}

.shots-item,
.calendar-item,
.matrix-item {
  min-height: 52px;
}

.prototype-copy-audit .special-item,
.matrix-item {
  min-height: 46px;
  padding-block: 7px;
}

.tool-assets {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(220px, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px dashed #c7d4e4;
  border-radius: 8px;
  background: rgba(246, 248, 250, 0.56);
}

.tool-assets strong {
  color: #24292f;
  font-size: 14px;
}

.tool-assets p {
  margin: 7px 0 0;
  color: #6e7781;
  font-size: 12px;
  line-height: 1.55;
}

.tool-asset-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tool-asset-actions button {
  min-width: 0;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d8dee4;
  border-radius: 7px;
  color: #3d444d;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  white-space: nowrap;
}

.tool-asset-actions button:hover,
.tool-asset-actions button:focus-visible,
.tool-asset-actions button.is-selected {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.tool-asset-actions button span {
  position: relative;
  width: 12px;
  height: 12px;
}

.tool-asset-actions button span::before,
.tool-asset-actions button span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: var(--blue);
  transform: translate(-50%, -50%);
}

.tool-asset-actions button span::before {
  width: 10px;
  height: 1.6px;
}

.tool-asset-actions button span::after {
  width: 1.6px;
  height: 10px;
}

.tool-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
}

.tool-preview-stage {
  min-height: 238px;
  display: grid;
  padding: 14px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 248, 250, 0.7)),
    rgba(255, 255, 255, 0.62);
}

.lite-tool-mode .workspace-tool {
  padding: clamp(26px, 3vw, 42px) clamp(22px, 3vw, 46px) 34px;
}

.lite-tool-workspace {
  width: min(100%, 1100px);
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.lite-tool-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.lite-tool-hero span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 720;
}

.lite-tool-hero h2 {
  margin: 3px 0 0;
  color: #1f2328;
  font-size: clamp(24px, 2.15vw, 34px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

.lite-tool-hero p {
  max-width: 58ch;
  margin: 6px 0 0;
  color: #6e7781;
  font-size: 13px;
  line-height: 1.48;
}

.lite-tool-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 0.94fr);
  gap: 14px;
  align-items: stretch;
}

.lite-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(216, 222, 228, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.035);
}

.lite-input-card,
.lite-result-card {
  padding: 16px;
}

.lite-input-card {
  grid-template-rows: auto minmax(150px, 1fr) auto auto;
}

.lite-result-card {
  grid-template-rows: auto minmax(220px, 1fr) auto;
}

.lite-card-head {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lite-card-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 720;
}

.lite-card-head strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 15px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lite-topic-field {
  min-width: 0;
  display: block;
  border: 1px solid #d8dee4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.lite-topic-field:focus-within,
.lite-topic-field.is-empty {
  border-color: #aecaef;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.07);
}

.lite-topic-field.is-empty {
  transform: translateY(-1px);
}

.lite-topic-field textarea {
  width: 100%;
  height: 100%;
  min-height: 150px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 14px;
  border-radius: 9px;
  color: #24292f;
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.58;
}

.lite-topic-field textarea::placeholder {
  color: #8c959f;
}

.lite-support-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lite-support-row button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.lite-support-row button:hover,
.lite-support-row button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.lite-support-row button span {
  position: relative;
  width: 14px;
  height: 14px;
}

.lite-support-row button span::before,
.lite-support-row button span::after {
  content: "";
  position: absolute;
  left: 6px;
  border: 1.7px solid currentColor;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  transform: rotate(38deg);
}

.lite-support-row button span::before {
  top: 1px;
  width: 7px;
  height: 12px;
}

.lite-support-row button span::after {
  top: 4px;
  width: 3px;
  height: 8px;
}

.lite-support-row small {
  min-width: 0;
  overflow: hidden;
  color: #8c959f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lite-generate-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px 0 15px;
  border: 1px solid #1f6feb;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 680;
  box-shadow: 0 10px 18px rgba(31, 111, 235, 0.18);
}

.lite-generate-button:hover,
.lite-generate-button:focus-visible {
  background: var(--blue-dark);
}

.lite-generate-button i {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.lite-generate-button i::before,
.lite-generate-button i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
}

.lite-generate-button i::before {
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.lite-generate-button i::after {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.lite-result-empty,
.lite-result-ready {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px dashed #d8dee4;
  border-radius: 9px;
  background: rgba(246, 248, 250, 0.54);
  text-align: center;
}

.lite-result-empty > span {
  position: relative;
  width: 58px;
  height: 70px;
  border: 1px solid #c8d1de;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 0 74%, rgba(200, 209, 222, 0.55) 75% 100%) top right / 22px 22px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 250, 0.76));
}

.lite-result-empty > span::before,
.lite-result-empty > span::after {
  content: "";
  position: absolute;
  left: 15px;
  height: 4px;
  border-radius: 999px;
  background: #d8dee4;
}

.lite-result-empty > span::before {
  top: 30px;
  width: 30px;
}

.lite-result-empty > span::after {
  top: 43px;
  width: 38px;
}

.lite-result-empty h3,
.lite-result-ready h3 {
  margin: 0;
  color: #24292f;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.3;
}

.lite-result-empty p,
.lite-result-ready p {
  margin: 0;
  color: #6e7781;
  font-size: 13px;
  line-height: 1.55;
}

.lite-result-ready {
  align-content: start;
  justify-items: stretch;
  text-align: left;
}

.lite-result-ready article {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.lite-note-preview {
  gap: 11px;
}

.lite-note-preview section {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.lite-note-preview section > span {
  color: #8c959f;
  font-size: 12px;
  font-weight: 680;
}

.note-cover-title {
  padding: 11px;
  border: 1px solid #d8dee4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
}

.note-cover-title h3 {
  font-size: 16px;
}

.lite-tag-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lite-tag-row span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.lite-image-preview {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.lite-image-preview h3 {
  font-size: 15px;
  font-weight: 680;
}

.image-candidate-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.image-candidate-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d8dee4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
}

.image-candidate-thumb {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 70% 32%, rgba(255, 255, 255, 0.76), transparent 24%),
    linear-gradient(135deg, #edf4ff, #f8fafc 48%, #dbeafe);
}

.image-candidate-thumb::before,
.image-candidate-thumb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.image-candidate-thumb::before {
  left: 12%;
  bottom: 18%;
  width: 54%;
  height: 20%;
  background: rgba(31, 111, 235, 0.12);
}

.image-candidate-thumb::after {
  right: 12%;
  top: 15%;
  width: 24%;
  aspect-ratio: 1;
  background: rgba(31, 111, 235, 0.18);
}

.image-candidate-thumb span {
  position: absolute;
  left: 18%;
  bottom: 20%;
  width: 38%;
  height: 44%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24);
}

.candidate-2 {
  background:
    radial-gradient(circle at 26% 28%, rgba(255, 255, 255, 0.82), transparent 25%),
    linear-gradient(135deg, #f1f5f9, #e0f2fe 52%, #dbeafe);
}

.candidate-3 {
  background:
    radial-gradient(circle at 68% 24%, rgba(255, 255, 255, 0.82), transparent 23%),
    linear-gradient(135deg, #eff6ff, #f8fafc 52%, #e2e8f0);
}

.candidate-4 {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(135deg, #e0f2fe, #f8fafc 50%, #eef2ff);
}

.image-candidate-card div:not(.image-candidate-thumb) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.image-candidate-card strong {
  color: #24292f;
  font-size: 12px;
  font-weight: 680;
}

.image-candidate-card small {
  color: #8c959f;
  font-size: 11px;
}

.image-candidate-card button {
  min-height: 26px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.image-candidate-card button:hover,
.image-candidate-card button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.lite-result-kicker {
  color: var(--blue) !important;
  font-size: 12px !important;
  font-weight: 720;
}

.lite-result-ready ul {
  margin: 0;
  padding-left: 18px;
  color: #57606a;
  font-size: 13px;
  line-height: 1.55;
}

.lite-result-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lite-result-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.lite-result-actions button:hover,
.lite-result-actions button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.lite-options {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.lite-options-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.lite-options-toggle:hover,
.lite-options-toggle:focus-visible,
.lite-options-toggle[aria-expanded="true"] {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.lite-options-toggle i {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.lite-options-toggle i::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.lite-options-toggle[aria-expanded="true"] i::before {
  top: 5px;
  transform: rotate(225deg);
}

.lite-options-panel {
  width: 100%;
}

.lite-options-panel[hidden] {
  display: none;
}

.lite-drawer {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.lite-drawer details {
  min-width: 0;
  border: 1px solid #d8dee4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.64);
}

.lite-drawer summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: #24292f;
  cursor: pointer;
  list-style: none;
}

.lite-drawer summary::-webkit-details-marker {
  display: none;
}

.lite-drawer summary span {
  font-size: 13px;
  font-weight: 680;
}

.lite-drawer summary small {
  color: #8c959f;
  font-size: 12px;
  white-space: nowrap;
}

.lite-settings-grid,
.lite-history-row,
.lite-output-row {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0 13px 13px;
}

.lite-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lite-settings-grid label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.lite-settings-grid label span {
  color: #6e7781;
  font-size: 12px;
  font-weight: 650;
}

.lite-settings-grid input {
  min-width: 0;
  height: 32px;
  border: 1px solid #d8dee4;
  border-radius: 7px;
  padding: 0 9px;
  color: #24292f;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.lite-chip-group,
.lite-history-row,
.lite-output-row {
  display: flex;
  flex-wrap: wrap;
}

.lite-chip-group {
  grid-column: 1 / -1;
  gap: 7px;
}

.lite-chip-group button,
.lite-history-row button,
.lite-output-row button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.lite-chip-group button:hover,
.lite-chip-group button:focus-visible,
.lite-chip-group button.is-active,
.lite-history-row button:hover,
.lite-history-row button:focus-visible,
.lite-output-row button:hover,
.lite-output-row button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.lite-history-row,
.lite-output-row {
  flex-direction: row;
}

.finance-tool-mode .workspace-tool {
  display: grid;
  align-items: center;
  padding: clamp(20px, 2.5vw, 38px) clamp(20px, 2.8vw, 48px);
}

.finance-workspace {
  width: min(100%, 1080px);
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.finance-feature-shell {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.finance-feature-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(216, 222, 228, 0.94);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 250, 0.72)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.04);
}

.finance-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.finance-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(216, 222, 228, 0.94);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 250, 0.72)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.04);
}

.finance-input-card,
.finance-result-card {
  padding: 18px;
}

.finance-card-head {
  display: grid;
  gap: 4px;
}

.finance-card-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 720;
}

.finance-card-head strong {
  color: #1f2328;
  font-size: 16px;
  font-weight: 760;
}

.finance-upload-zone {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #9fb3c8;
  border-radius: 10px;
  color: #57606a;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.34) 1px, transparent 1px),
    linear-gradient(rgba(226, 232, 240, 0.34) 1px, transparent 1px),
    rgba(248, 250, 252, 0.76);
  background-size: 18px 18px;
  text-align: center;
}

.finance-upload-zone strong {
  color: #24292f;
  font-size: 15px;
}

.finance-upload-zone p {
  max-width: 34ch;
  margin: 0;
  color: #8c959f;
  font-size: 12px;
  line-height: 1.45;
}

.finance-upload-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--blue);
  background: #eef5ff;
}

.finance-upload-icon::before,
.finance-upload-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.finance-upload-icon::after {
  transform: rotate(90deg);
}

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

.finance-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.finance-field span {
  color: #6e7781;
  font-size: 12px;
  font-weight: 650;
}

.finance-field input {
  min-width: 0;
  height: 34px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  padding: 0 10px;
  color: #24292f;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 13px;
}

.finance-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.finance-chip-row button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #6e7781;
  background: #f6f8fa;
  font-size: 12px;
}

.finance-chip-row button.is-active,
.finance-chip-row button:hover,
.finance-chip-row button:focus-visible {
  color: var(--blue);
  background: #eef5ff;
}

.finance-run-button {
  height: 42px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 720;
}

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

.finance-kpi-strip div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #d8dee4;
  border-radius: 9px;
  background: rgba(248, 250, 252, 0.84);
}

.finance-kpi-strip span {
  color: #8c959f;
  font-size: 12px;
}

.finance-kpi-strip strong {
  overflow: hidden;
  color: #24292f;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-result-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-result-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.finance-result-list li span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.finance-result-list li strong {
  color: #3d444d;
  font-size: 13px;
  line-height: 1.45;
}

.finance-result-card.is-ready {
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.08);
}

.enterprise-meta-grid,
.finance-enterprise-row,
.management-enterprise-row {
  min-width: 0;
  display: grid;
  gap: 10px;
}

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

.enterprise-meta-grid div,
.enterprise-control-grid div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(216, 222, 228, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.enterprise-meta-grid span,
.enterprise-control-grid span,
.enterprise-deliverables > span,
.enterprise-trace > span,
.enterprise-section-head span {
  color: #6e7781;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
}

.enterprise-meta-grid strong,
.enterprise-control-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-control-panel,
.enterprise-evidence-panel,
.enterprise-deliverables,
.enterprise-trace {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(216, 222, 228, 0.86);
  border-radius: 11px;
  background: rgba(248, 250, 252, 0.68);
}

.enterprise-section-head {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.enterprise-section-head strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.enterprise-deliverables div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.enterprise-deliverables button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.enterprise-deliverables button.is-active,
.enterprise-deliverables button:hover,
.enterprise-deliverables button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.enterprise-trace ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.enterprise-trace li {
  min-width: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #57606a;
  font-size: 12px;
  white-space: nowrap;
}

.enterprise-trace i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d8dee4;
}

.enterprise-trace li.is-done i {
  background: var(--blue);
}

.enterprise-evidence-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.enterprise-evidence-panel li {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.enterprise-evidence-panel li span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 760;
}

.enterprise-evidence-panel li strong {
  color: #3d444d;
  font-size: 12px;
  line-height: 1.45;
}

.finance-enterprise-row {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr) minmax(260px, 0.85fr);
}

.finance-enterprise-row-compact {
  grid-template-columns: 1fr;
}

.finance-recent-row {
  display: grid;
  gap: 8px;
}

.finance-recent-row > span {
  color: #6e7781;
  font-size: 12px;
  font-weight: 700;
}

.finance-recent-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.finance-recent-row button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.finance-asset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.finance-asset-strip span {
  padding: 5px 9px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.finance-step-list,
.finance-report-lines,
.finance-cash-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-step-list li,
.finance-report-lines li,
.finance-cash-timeline li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.finance-step-list span,
.finance-report-lines span,
.finance-cash-timeline span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.finance-step-list strong,
.finance-report-lines strong,
.finance-cash-timeline strong {
  color: #3d444d;
  font-size: 13px;
  line-height: 1.45;
}

.finance-layout-invoice {
  grid-template-columns: minmax(260px, 0.86fr) minmax(260px, 0.9fr) minmax(320px, 1fr);
}

.finance-layout-expense,
.finance-layout-report,
.finance-layout-cashflow,
.finance-layout-anomaly,
.finance-layout-contract,
.finance-layout-tax,
.finance-layout-audit {
  grid-template-columns: minmax(340px, 1fr) minmax(330px, 0.9fr);
}

.finance-layout-report .finance-report-page {
  min-height: 380px;
  align-content: start;
  background:
    linear-gradient(90deg, rgba(31, 111, 235, 0.08) 0 4px, transparent 4px),
    rgba(255, 255, 255, 0.86);
}

.finance-layout-cashflow .finance-cash-timeline li {
  position: relative;
  grid-template-columns: 60px minmax(0, 1fr);
}

.finance-layout-cashflow .finance-cash-timeline li::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 34px;
  bottom: -12px;
  width: 1px;
  background: #d8dee4;
}

.finance-layout-cashflow .finance-cash-timeline li:last-child::before {
  display: none;
}

.finance-radar {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dee4;
  border-radius: 12px;
  background:
    radial-gradient(circle, transparent 0 28%, rgba(31, 111, 235, 0.08) 29% 30%, transparent 31% 48%, rgba(31, 111, 235, 0.08) 49% 50%, transparent 51%),
    rgba(248, 250, 252, 0.78);
}

.finance-radar span {
  position: absolute;
  width: 54%;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.5);
  transform: rotate(-28deg);
  transform-origin: center;
}

.finance-radar strong {
  color: #1f2328;
  font-size: 46px;
  line-height: 1;
}

.finance-radar small {
  color: #6e7781;
  font-size: 12px;
}

.finance-contract-page {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.finance-contract-page p {
  margin: 0;
  color: #3d444d;
  font-size: 13px;
  line-height: 1.55;
}

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

.finance-tax-grid div,
.finance-archive-grid div {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.78);
}

.finance-tax-grid span,
.finance-archive-grid span {
  color: #6e7781;
  font-size: 12px;
}

.finance-tax-grid strong,
.finance-archive-grid strong {
  color: #24292f;
  font-size: 14px;
}

@container workspace (max-width: 760px) {
  .finance-tool-mode .workspace-tool {
    align-items: start;
    padding: 18px;
  }

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

  .finance-field-grid,
  .finance-kpi-strip {
    grid-template-columns: 1fr;
  }
}

.management-tool-mode .workspace-tool {
  display: grid;
  align-items: center;
  padding: clamp(20px, 2.6vw, 42px) clamp(20px, 3vw, 54px);
}

.management-workspace {
  width: min(100%, 1140px);
  margin-inline: auto;
  display: grid;
  gap: 18px;
}

.management-hero {
  padding-bottom: 2px;
}

.management-hero span {
  color: #475569;
}

.management-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(390px, 1.18fr) minmax(300px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.management-layout-overview {
  grid-template-columns: minmax(440px, 1.1fr) minmax(300px, 0.82fr);
}

.management-layout-okr {
  grid-template-columns: minmax(430px, 1fr) minmax(330px, 0.9fr);
}

.management-layout-insight {
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 0.9fr);
}

.management-layout-risk {
  grid-template-columns: minmax(390px, 0.95fr) minmax(350px, 0.95fr);
}

.management-layout-weekly {
  grid-template-columns: minmax(460px, 1.18fr) minmax(300px, 0.82fr);
}

.management-layout-meeting {
  grid-template-columns: minmax(440px, 1fr) minmax(310px, 0.82fr);
}

.management-decision-card,
.management-side-card {
  min-width: 0;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.management-decision-card {
  padding: 20px;
}

.management-side-card {
  align-content: start;
  padding: 18px;
}

.management-card-head {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.management-card-head span {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  color: #475569;
  background: rgba(248, 250, 252, 0.92);
  font-size: 12px;
  font-weight: 720;
}

.management-card-head strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.management-metric-band div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.management-metric-band span {
  color: #64748b;
  font-size: 12px;
}

.management-metric-band strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-metric-band em {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(204, 251, 241, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
}

.management-signal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.management-signal-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.7);
}

.management-signal-list li span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 760;
}

.management-signal-list li strong {
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.management-run-button {
  height: 42px;
  border-radius: 10px;
  color: #fff;
  background: #111827;
  font-size: 14px;
  font-weight: 740;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.management-run-button:hover,
.management-run-button:focus-visible {
  background: #0f172a;
  transform: translateY(-1px);
}

.management-decision-card.is-ready {
  box-shadow:
    0 0 0 3px rgba(20, 184, 166, 0.08),
    0 12px 34px rgba(15, 23, 42, 0.055);
}

.management-tool-mode .enterprise-meta-grid div,
.management-tool-mode .enterprise-control-grid div,
.management-tool-mode .enterprise-control-panel,
.management-tool-mode .enterprise-evidence-panel,
.management-tool-mode .enterprise-deliverables,
.management-tool-mode .enterprise-trace {
  border-color: rgba(203, 213, 225, 0.84);
}

.management-tool-mode .enterprise-meta-grid span,
.management-tool-mode .enterprise-control-grid span,
.management-tool-mode .enterprise-deliverables > span,
.management-tool-mode .enterprise-trace > span,
.management-tool-mode .enterprise-section-head span {
  color: #64748b;
}

.management-tool-mode .enterprise-meta-grid strong,
.management-tool-mode .enterprise-control-grid strong,
.management-tool-mode .enterprise-section-head strong {
  color: #0f172a;
}

.management-tool-mode .enterprise-deliverables button.is-active,
.management-tool-mode .enterprise-deliverables button:hover,
.management-tool-mode .enterprise-deliverables button:focus-visible {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.management-tool-mode .enterprise-trace li.is-done i {
  background: #111827;
}

.management-enterprise-row {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
}

.management-enterprise-row-compact {
  grid-template-columns: 1fr;
}

.management-field-list {
  display: grid;
  gap: 9px;
}

.management-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.management-field span,
.management-action-row > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 680;
}

.management-field input {
  min-width: 0;
  height: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 0 10px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 13px;
}

.management-chip-row,
.management-action-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.management-chip-row button,
.management-action-row button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.management-chip-row button.is-active,
.management-chip-row button:hover,
.management-chip-row button:focus-visible,
.management-action-row button.is-active,
.management-action-row button:hover,
.management-action-row button:focus-visible {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.management-action-row {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.management-dashboard-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.78)),
    rgba(255, 255, 255, 0.84);
}

.management-okr-lanes {
  display: grid;
  gap: 10px;
}

.management-okr-lanes div {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.72);
}

.management-okr-lanes span {
  color: #64748b;
  font-size: 12px;
}

.management-okr-lanes strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-okr-lanes em {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #2563eb 0 72%, #e2e8f0 72%),
    #e2e8f0;
}

.management-insight-stack {
  align-content: start;
}

.management-insight-stack article,
.management-brief-columns article,
.management-action-board article {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.management-insight-stack article span,
.management-brief-columns article span,
.management-action-board article span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 760;
}

.management-insight-stack article p,
.management-brief-columns article p,
.management-action-board article p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.52;
}

.management-heatmap {
  min-height: 250px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.management-heatmap button {
  min-height: 96px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  color: #475569;
  background: rgba(248, 250, 252, 0.76);
  font-size: 13px;
  font-weight: 720;
}

.management-heatmap button.is-hot,
.management-heatmap button.is-active {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff1f2;
}

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

.management-action-board {
  display: grid;
  gap: 10px;
}

.management-action-board article {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
}

.management-action-board article small {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(204, 251, 241, 0.72);
  font-size: 11px;
  white-space: nowrap;
}

@container workspace (max-width: 820px) {
  .management-tool-mode .workspace-tool {
    align-items: start;
    padding: 18px;
  }

  .management-shell,
  .management-metric-band,
  .management-brief-columns,
  .management-heatmap,
  .management-action-board article,
  .management-enterprise-row,
  .finance-enterprise-row,
  .enterprise-meta-grid,
  .enterprise-control-grid,
  .enterprise-trace ol,
  .finance-feature-shell,
  .finance-layout-invoice,
  .finance-layout-expense,
  .finance-layout-report,
  .finance-layout-cashflow,
  .finance-layout-anomaly,
  .finance-layout-contract,
  .finance-layout-tax,
  .finance-layout-audit,
  .finance-tax-grid,
  .finance-archive-grid {
    grid-template-columns: 1fr;
  }
}

.image-gen-mode .workspace-tool {
  display: grid;
  align-items: center;
  padding: clamp(18px, 2.4vw, 34px) clamp(18px, 2.6vw, 42px);
}

.image-gen-workspace {
  width: min(100%, 1120px);
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.image-gen-hero {
  min-width: 0;
  display: block;
}

.image-gen-hero span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 720;
}

.image-gen-hero h2 {
  margin: 0;
  color: #1f2328;
  font-size: clamp(24px, 2.15vw, 34px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

.image-gen-hero p {
  margin: 5px 0 0;
  color: #6e7781;
  font-size: 13px;
  line-height: 1.42;
}

.image-gen-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(420px, 1.24fr);
  gap: 18px;
  align-items: stretch;
}

.image-gen-card {
  min-width: 0;
  border: 1px solid rgba(216, 222, 228, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(31, 35, 40, 0.05);
}

.image-gen-control,
.image-gen-result {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.image-gen-control {
  align-content: start;
}

.image-card-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.image-card-title strong {
  display: block;
  color: #24292f;
  font-size: 15px;
  font-weight: 720;
}

.image-card-title small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #8c959f;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-title-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--blue);
  background: #eef5ff;
}

.edit-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 10px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
  transform: rotate(16deg);
}

.edit-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.result-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 12px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.result-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  width: 8px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.image-prompt-field {
  min-width: 0;
  display: block;
  border: 1px solid #d8dee4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.image-prompt-field:focus-within,
.image-prompt-field.is-empty {
  border-color: #aecaef;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.07);
}

.image-prompt-field.is-empty {
  transform: translateY(-1px);
}

.image-prompt-field textarea {
  width: 100%;
  min-height: clamp(190px, 34vh, 360px);
  resize: none;
  border: 0;
  outline: 0;
  padding: 15px;
  border-radius: 9px;
  color: #24292f;
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.58;
}

.image-upload-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-upload-row button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.image-upload-row button:hover,
.image-upload-row button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.image-upload-row button span {
  position: relative;
  width: 14px;
  height: 14px;
}

.image-upload-row button span::before,
.image-upload-row button span::after {
  content: "";
  position: absolute;
  left: 6px;
  border: 1.7px solid currentColor;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  transform: rotate(38deg);
}

.image-upload-row button span::before {
  top: 1px;
  width: 7px;
  height: 12px;
}

.image-upload-row button span::after {
  top: 4px;
  width: 3px;
  height: 8px;
}

.image-upload-row small {
  min-width: 0;
  color: #8c959f;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
}

.image-params {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.image-param-title {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.image-param-title strong {
  color: #24292f;
  font-size: 13px;
  font-weight: 700;
}

.image-param-title span {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
  scrollbar-width: none;
}

.image-param-title span::-webkit-scrollbar {
  display: none;
}

.image-param-title button {
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #6e7781;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.image-param-title button:hover,
.image-param-title button:focus-visible,
.image-param-title button.is-active {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.image-ratio-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.image-ratio-card {
  min-width: 0;
  min-height: 88px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid #d8dee4;
  border-radius: 9px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.image-ratio-card:hover,
.image-ratio-card:focus-visible,
.image-ratio-card.is-active {
  border-color: #1f6feb;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.08);
}

.image-ratio-card strong {
  color: #24292f;
  font-size: 13px;
  font-weight: 720;
}

.image-ratio-card small {
  color: #8c959f;
  font-size: 12px;
}

.ratio-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.ratio-icon::before {
  content: "";
  display: block;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.ratio-square::before {
  width: 17px;
  height: 17px;
}

.ratio-portrait::before,
.ratio-story::before,
.ratio-poster::before,
.ratio-paper::before {
  width: 12px;
  height: 20px;
}

.ratio-landscape::before,
.ratio-wide::before {
  width: 20px;
  height: 13px;
}

.ratio-custom::before {
  width: 17px;
  height: 17px;
  border-style: dashed;
}

.image-generate-button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #1f6feb;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 12px 22px rgba(31, 111, 235, 0.2);
}

.image-generate-button:hover,
.image-generate-button:focus-visible {
  background: var(--blue-dark);
}

.image-generate-button i {
  position: relative;
  width: 16px;
  height: 16px;
}

.image-generate-button i::before,
.image-generate-button i::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.image-generate-button i::before {
  left: 7px;
  top: 2px;
  width: 2px;
  height: 12px;
  border-radius: 999px;
}

.image-generate-button i::after {
  left: 2px;
  top: 7px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
}

.image-gen-result {
  grid-template-rows: auto minmax(360px, 1fr) auto auto;
}

.image-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f2eadf;
}

.image-stage-actions {
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
}

.image-stage-actions button {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 222, 228, 0.78);
  border-radius: 8px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 16px rgba(31, 35, 40, 0.08);
}

.image-stage-actions button::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.image-stage-actions button:nth-child(1)::before {
  top: 8px;
  height: 11px;
  border-top: 0;
}

.image-stage-actions button:nth-child(1)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  width: 6px;
  height: 10px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.image-stage-actions button:nth-child(2)::before {
  inset: 9px;
  border-radius: 2px;
  clip-path: polygon(50% 0, 63% 33%, 100% 36%, 72% 58%, 82% 100%, 50% 75%, 18% 100%, 28% 58%, 0 36%, 37% 33%);
  background: currentColor;
  border: 0;
}

.image-stage-actions button:nth-child(3)::before {
  inset: 10px;
  border-radius: 2px;
}

.image-stage-actions button:nth-child(3)::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
}

.image-preview-scene {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 45%, rgba(130, 160, 118, 0.18), transparent 18%),
    linear-gradient(180deg, #f4eadf 0%, #eee0ce 100%);
}

.main-scene {
  min-height: 420px;
}

.image-preview-scene i {
  position: absolute;
  display: block;
}

.scene-plant {
  left: 4%;
  top: 38%;
  width: 76px;
  height: 128px;
  border-left: 4px solid rgba(89, 121, 82, 0.35);
  transform: rotate(-12deg);
}

.scene-plant::before,
.scene-plant::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 14px;
  border-radius: 50%;
  background: rgba(102, 132, 91, 0.42);
}

.scene-plant::before {
  left: 6px;
  top: 18px;
  transform: rotate(-28deg);
}

.scene-plant::after {
  left: 18px;
  top: 48px;
  transform: rotate(32deg);
}

.scene-bag {
  right: 12%;
  bottom: 21%;
  width: 31%;
  height: 44%;
  border-radius: 8px 8px 20px 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 42%),
    #e8ddcd;
  box-shadow:
    inset 0 0 0 1px rgba(151, 128, 103, 0.2),
    18px 18px 34px rgba(92, 70, 52, 0.18);
}

.scene-bag::before,
.scene-bag::after {
  content: "";
  position: absolute;
  top: -34%;
  width: 34%;
  height: 50%;
  border: 5px solid #d7c8b5;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.scene-bag::before {
  left: 17%;
}

.scene-bag::after {
  right: 17%;
}

.scene-bottle {
  left: 39%;
  bottom: 25%;
  width: 9%;
  height: 35%;
  border-radius: 14px 14px 9px 9px;
  background: linear-gradient(180deg, #fbfaf4, #dfd2bf);
  box-shadow: inset 0 0 0 1px rgba(151, 128, 103, 0.16);
}

.scene-bottle::before {
  content: "";
  position: absolute;
  left: 26%;
  top: -13%;
  width: 48%;
  height: 14%;
  border-radius: 4px 4px 1px 1px;
  background: #d8c9b7;
}

.scene-cap {
  left: 18%;
  bottom: 20%;
  width: 22%;
  height: 16%;
  border-radius: 50% 50% 12px 12px;
  background: #e3ddd3;
  box-shadow: inset 0 -8px 0 rgba(177, 162, 145, 0.16);
}

.scene-fan {
  right: 9%;
  bottom: 17%;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f8f5ec 0 16%, transparent 17%),
    repeating-conic-gradient(from 0deg, #efe6d8 0 10deg, #f8f5ec 11deg 20deg);
  box-shadow:
    inset 0 0 0 7px #eadfce,
    0 18px 28px rgba(92, 70, 52, 0.14);
}

.scene-glasses {
  left: 52%;
  bottom: 12%;
  width: 19%;
  height: 8%;
}

.scene-glasses::before,
.scene-glasses::after {
  content: "";
  position: absolute;
  width: 38%;
  height: 80%;
  border: 5px solid #3b312c;
  border-radius: 50%;
  background: rgba(33, 33, 33, 0.32);
}

.scene-glasses::before {
  left: 0;
}

.scene-glasses::after {
  right: 0;
}

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

.image-thumbs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.image-thumb {
  min-width: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.image-thumb.is-active {
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

.image-thumb .image-preview-scene {
  height: 84px;
  border-radius: 8px;
}

@container workspace (max-width: 760px) {
  .image-gen-mode .workspace-tool {
    align-items: start;
    padding: 18px;
  }

  .image-gen-workspace {
    gap: 12px;
  }

  .image-gen-hero {
    display: block;
  }

  .image-gen-hero h2 {
    font-size: 22px;
  }

  .image-gen-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .image-gen-control,
  .image-gen-result {
    gap: 12px;
    padding: 14px;
  }

  .image-prompt-field textarea {
    min-height: 150px;
    font-size: 14px;
  }

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

  .image-ratio-card {
    min-height: 72px;
  }

  .image-gen-result {
    grid-template-rows: auto minmax(300px, auto) auto auto;
  }

  .main-scene {
    min-height: 300px;
  }
}

.image-thumb .scene-plant {
  display: none;
}

.image-thumb .scene-bag {
  right: 16%;
  bottom: 20%;
}

.image-thumb .scene-fan {
  right: 10%;
}

.image-thumb-nav {
  position: relative;
  width: 28px;
  height: 44px;
  border-radius: 999px;
  color: #8c959f;
  background: rgba(255, 255, 255, 0.76);
}

.image-thumb-nav::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.image-thumb-nav.next::before {
  left: 8px;
  transform: rotate(225deg);
}

.image-result-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.image-result-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d8dee4;
  border-radius: 9px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 620;
}

.image-result-actions button:hover,
.image-result-actions button:focus-visible {
  border-color: #aecaef;
  color: var(--blue);
  background: #fff;
}

.image-result-actions span {
  position: relative;
  width: 14px;
  height: 14px;
}

.image-result-actions button:first-child span::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.image-result-actions button:last-child span::before,
.image-result-actions button:last-child span::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.image-result-actions button:last-child span::before {
  left: 6px;
  top: 1px;
  width: 2px;
  height: 12px;
  transform: rotate(36deg);
}

.image-result-actions button:last-child span::after {
  left: 1px;
  top: 6px;
  width: 12px;
  height: 2px;
  transform: rotate(36deg);
}

.visual-gen-mode .image-gen-workspace {
  width: min(100%, 1120px);
}

.visual-gen-mode .visual-stage {
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.visual-prompt-field textarea {
  min-height: clamp(170px, 30vh, 320px);
}

.visual-stage.is-generated {
  box-shadow: inset 0 0 0 2px rgba(31, 111, 235, 0.18);
}

.poster-preview-scene {
  background:
    radial-gradient(circle at 72% 28%, rgba(31, 111, 235, 0.12), transparent 22%),
    linear-gradient(135deg, #eef5ff 0%, #ffffff 46%, #eaf2ff 100%);
}

.poster-preview-card {
  position: relative;
  width: min(70%, 300px);
  aspect-ratio: 0.74;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 24px;
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 245, 255, 0.82)),
    linear-gradient(135deg, #ffffff, #dceaff);
  box-shadow:
    0 28px 60px rgba(31, 111, 235, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.poster-preview-card span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.poster-preview-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

.poster-preview-card p {
  width: 72%;
  margin: 12px 0 0;
  color: #57606a;
  font-size: 12px;
  line-height: 1.45;
}

.poster-preview-card b {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
}

.poster-product {
  position: absolute;
  right: 18px;
  bottom: 54px;
  width: 36%;
  height: 38%;
  border-radius: 16px 16px 28px 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent 50%),
    #d7e6ff;
  box-shadow: 0 22px 34px rgba(31, 111, 235, 0.18);
}

.poster-product::before {
  content: "";
  position: absolute;
  left: 28%;
  top: -28%;
  width: 44%;
  height: 42%;
  border: 5px solid #b9d4ff;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.deck-preview-scene {
  background:
    radial-gradient(circle at 22% 18%, rgba(31, 111, 235, 0.1), transparent 20%),
    linear-gradient(180deg, #f8fafc, #edf2f7);
}

.deck-preview-board {
  width: min(86%, 430px);
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.deck-preview-board section {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(216, 222, 228, 0.92);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(31, 35, 40, 0.07);
}

.deck-preview-board section:first-child {
  grid-row: 1 / 3;
  min-height: 300px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 255, 0.82)),
    #fff;
}

.deck-preview-board span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.deck-preview-board strong {
  color: #1f2328;
  font-size: clamp(24px, 3.3vw, 38px);
  line-height: 1.08;
}

.deck-preview-board p,
.deck-preview-board b {
  color: #57606a;
  font-size: 13px;
  line-height: 1.48;
}

.render-preview-scene {
  background:
    linear-gradient(180deg, #f5f7fb 0 48%, #e8edf4 49% 100%);
  perspective: 900px;
}

.render-preview-room {
  position: relative;
  width: min(82%, 430px);
  height: min(72%, 360px);
  transform-style: preserve-3d;
}

.render-preview-room i {
  position: absolute;
  display: block;
}

.render-wall {
  inset: 0 7% 32%;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(31, 111, 235, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(31, 111, 235, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
  box-shadow: inset 0 0 0 1px rgba(216, 222, 228, 0.9);
}

.render-platform {
  left: 13%;
  right: 9%;
  bottom: 14%;
  height: 32%;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #dce8f8);
  box-shadow: 0 28px 44px rgba(31, 35, 40, 0.14);
  transform: skewX(-10deg);
}

.render-light {
  left: 34%;
  top: 18%;
  width: 34%;
  height: 16%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 48px rgba(31, 111, 235, 0.22);
}

.render-product {
  bottom: 29%;
  width: 15%;
  height: 30%;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #fefefe, #d7e6ff);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.12);
}

.render-product.one {
  left: 36%;
}

.render-product.two {
  left: 52%;
  height: 24%;
}

.visual-thumb {
  display: grid;
  gap: 5px;
  padding: 0;
}

.visual-thumb-preview {
  display: block;
  height: 68px;
  border-radius: 8px;
}

.visual-thumb small {
  overflow: hidden;
  color: #6e7781;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-canvas-mode .workspace-tool {
  display: grid;
  padding: clamp(14px, 1.8vw, 24px);
  background: transparent;
}

.video-canvas-workspace {
  min-width: 0;
  min-height: calc(100dvh - clamp(28px, 3.6vw, 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.video-canvas-header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  color: #1f2328;
}

.video-canvas-header span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.video-canvas-header h2 {
  margin: 0;
  color: #1f2328;
  font-size: clamp(24px, 2.15vw, 34px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

.video-canvas-header p {
  margin: 6px 0 0;
  color: #6e7781;
  font-size: 13px;
  line-height: 1.45;
}

.video-canvas-status {
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid #d8dee4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.video-canvas-status small,
.video-canvas-status strong {
  display: block;
}

.video-canvas-status small {
  color: #8c959f;
  font-size: 11px;
}

.video-canvas-status strong {
  margin-top: 3px;
  color: #24292f;
  font-size: 13px;
}

.video-canvas-shell {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #30363d;
  border-radius: 16px;
  background:
    linear-gradient(rgba(48, 54, 61, 0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.48) 1px, transparent 1px),
    radial-gradient(circle at 32% 20%, rgba(47, 129, 247, 0.16), transparent 26%),
    #0d1117;
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.canvas-toolbar {
  position: absolute;
  z-index: 5;
  left: 16px;
  top: 16px;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(48, 54, 61, 0.95);
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.9);
  box-shadow: 0 18px 38px rgba(1, 4, 9, 0.24);
}

.canvas-toolbar button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: #c9d1d9;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.canvas-toolbar button:hover,
.canvas-toolbar button:focus-visible {
  color: #f0f6fc;
  background: #21262d;
}

.canvas-surface {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 650px;
  height: 100%;
  transform-origin: 0 0;
}

.canvas-links {
  position: absolute;
  inset: 0;
  width: 920px;
  height: 600px;
  overflow: visible;
  pointer-events: none;
}

.canvas-links path {
  fill: none;
  stroke: rgba(88, 166, 255, 0.55);
  stroke-width: 2;
}

.canvas-surface.is-running .canvas-links path {
  stroke: #58a6ff;
  stroke-dasharray: 8 8;
  animation: canvas-flow 900ms linear infinite;
}

@keyframes canvas-flow {
  to {
    stroke-dashoffset: -16;
  }
}

.canvas-node {
  position: absolute;
  z-index: 2;
  min-width: 0;
  border: 1px solid rgba(48, 54, 61, 0.96);
  border-radius: 14px;
  color: #c9d1d9;
  background: rgba(22, 27, 34, 0.94);
  box-shadow: 0 18px 38px rgba(1, 4, 9, 0.22);
}

.canvas-node.is-selected {
  border-color: #58a6ff;
  box-shadow:
    0 0 0 3px rgba(88, 166, 255, 0.16),
    0 22px 42px rgba(1, 4, 9, 0.28);
}

.node-port {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #58a6ff;
  border-radius: 50%;
  background: #0d1117;
  transform: translateY(-50%);
}

.node-port.left {
  left: -6px;
}

.node-port.right {
  right: -6px;
}

.prompt-node {
  left: 58px;
  top: 196px;
  width: 156px;
  padding: 16px;
}

.prompt-node small,
.note-node small,
.config-node small,
.canvas-inspector small {
  display: block;
  color: #7d8590;
  font-size: 11px;
  font-weight: 720;
}

.prompt-node p,
.note-node p {
  margin: 9px 0 0;
  color: #f0f6fc;
  font-size: 14px;
  line-height: 1.5;
}

.note-node {
  left: 78px;
  top: 74px;
  width: 196px;
  padding: 14px;
  background: rgba(31, 35, 40, 0.92);
}

.note-node p {
  color: #8b949e;
  font-size: 12px;
}

.config-node {
  left: 342px;
  top: 184px;
  width: 150px;
  padding: 14px;
}

.config-node-head {
  display: grid;
  gap: 6px;
}

.config-node-head strong {
  color: #f0f6fc;
  font-size: 14px;
  line-height: 1.28;
}

.config-node-head span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #58a6ff;
  background: rgba(56, 139, 253, 0.16);
  font-size: 11px;
}

.config-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.config-pill-row span {
  padding: 4px 7px;
  border: 1px solid #30363d;
  border-radius: 999px;
  color: #8b949e;
  font-size: 11px;
}

.canvas-generate-button {
  width: 100%;
  min-height: 32px;
  margin-top: 14px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 720;
}

.canvas-output-node {
  width: 130px;
  display: grid;
  gap: 9px;
  padding: 10px;
  text-align: left;
}

.canvas-output-node.output-1 {
  left: 552px;
  top: 104px;
}

.canvas-output-node.output-2 {
  left: 552px;
  top: 222px;
}

.canvas-output-node.output-3 {
  left: 552px;
  top: 342px;
}

.canvas-output-node strong {
  color: #f0f6fc;
  font-size: 13px;
}

.canvas-output-node small {
  color: #7d8590;
  font-size: 11px;
}

.video-thumb-frame {
  position: relative;
  display: block;
  height: 72px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 72% 26%, rgba(88, 166, 255, 0.2), transparent 24%),
    linear-gradient(145deg, #21262d, #0d1117);
}

.video-thumb-frame i {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 24px;
  border-radius: 8px;
  background: rgba(201, 209, 217, 0.16);
}

.video-frame-product i::before,
.video-frame-creator i::before,
.video-frame-effects i::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #58a6ff;
}

.video-frame-product i::before {
  right: 8px;
  top: -28px;
}

.video-frame-creator i::before {
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
}

.video-frame-effects i::before {
  left: 8px;
  top: -28px;
  box-shadow: 28px 8px 0 rgba(88, 166, 255, 0.38);
}

.canvas-inspector {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 18px;
  width: min(390px, calc(100% - 220px));
  padding: 12px;
  border: 1px solid rgba(48, 54, 61, 0.96);
  border-radius: 14px;
  background: rgba(22, 27, 34, 0.92);
  box-shadow: 0 18px 38px rgba(1, 4, 9, 0.26);
}

.canvas-inspector strong {
  display: block;
  margin-top: 5px;
  color: #f0f6fc;
  font-size: 14px;
}

.canvas-inspector ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.canvas-inspector li {
  display: grid;
  gap: 3px;
}

.canvas-inspector li span {
  color: #7d8590;
  font-size: 11px;
}

.canvas-inspector li strong {
  margin: 0;
  color: #c9d1d9;
  font-size: 12px;
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: normal;
}

.canvas-inspector div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.canvas-inspector button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #30363d;
  border-radius: 999px;
  color: #8b949e;
  background: transparent;
  font-size: 11px;
}

.canvas-inspector button.is-active {
  border-color: rgba(88, 166, 255, 0.6);
  color: #58a6ff;
  background: rgba(56, 139, 253, 0.12);
}

.canvas-minimap {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 128px;
  height: 86px;
  border: 1px solid rgba(48, 54, 61, 0.96);
  border-radius: 12px;
  background:
    linear-gradient(rgba(48, 54, 61, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.36) 1px, transparent 1px),
    rgba(22, 27, 34, 0.86);
  background-size: 16px 16px;
}

.canvas-minimap span,
.canvas-minimap i,
.canvas-minimap b {
  position: absolute;
  display: block;
  border-radius: 5px;
  background: rgba(88, 166, 255, 0.38);
}

.canvas-minimap span {
  left: 16px;
  top: 30px;
  width: 28px;
  height: 20px;
}

.canvas-minimap i {
  left: 56px;
  top: 32px;
  width: 22px;
  height: 18px;
}

.canvas-minimap b {
  right: 14px;
  top: 18px;
  width: 22px;
  height: 46px;
}

.canvas-bottom-bar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(48, 54, 61, 0.96);
  border-radius: 999px;
  color: #c9d1d9;
  background: rgba(22, 27, 34, 0.92);
  transform: translateX(-50%);
}

.canvas-bottom-bar button {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #21262d;
}

.canvas-bottom-bar button::before,
.canvas-bottom-bar button:last-child::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #c9d1d9;
}

.canvas-bottom-bar button:last-child::after {
  transform: rotate(90deg);
}

.canvas-bottom-bar span {
  min-width: 40px;
  font-size: 12px;
  text-align: center;
}

@container workspace (max-width: 760px) {
  .visual-gen-mode .visual-stage {
    min-height: 300px;
  }

  .poster-preview-card {
    width: min(66%, 240px);
  }

  .deck-preview-board {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .deck-preview-board section:first-child {
    grid-row: auto;
    min-height: 190px;
  }

  .render-preview-room {
    width: 96%;
    height: 260px;
  }
}

@container workspace (max-width: 760px) {
  .video-canvas-mode .workspace-tool {
    padding: 12px;
  }

  .video-canvas-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .video-canvas-status {
    width: fit-content;
  }

  .video-canvas-shell {
    overflow: auto;
  }

  .canvas-toolbar {
    position: sticky;
    left: 12px;
    top: 12px;
    max-width: calc(100cqw - 24px);
    overflow: auto;
    scrollbar-width: none;
  }

  .canvas-toolbar::-webkit-scrollbar {
    display: none;
  }
}

.preview-action-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preview-action-row button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.preview-action-row button:hover,
.preview-action-row button.is-active {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.preview-action-row button[data-idle-label] {
  border-color: #b7e3c0;
  color: #1a7f37;
  background: #f0fff4;
}

.preview-action-row button:disabled,
.preview-action-row button.is-locked,
[data-preview-option]:disabled,
[data-preview-option].is-locked {
  opacity: 0.58;
  cursor: default;
}

.preview-action-row button:disabled:hover,
[data-preview-option]:disabled:hover {
  border-color: #d8dee4;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
}

.quality-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: rgba(246, 248, 250, 0.62);
}

.quality-bar > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.quality-bar span:first-child {
  color: var(--blue);
  font-size: 12px;
  font-weight: 740;
}

.quality-bar strong {
  min-width: 0;
  overflow: hidden;
  color: #57606a;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.quality-metrics span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #24292f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.quality-metrics small {
  color: #8c959f;
  font-size: 11px;
  font-weight: 650;
}

.typed-preview {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.typed-preview ul,
.typed-preview ol {
  margin: 0;
  padding-left: 20px;
  color: #3d444d;
  font-size: 13px;
  line-height: 1.65;
}

.typed-preview li + li {
  margin-top: 8px;
}

.preview-status-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  color: #57606a;
  font-size: 11px;
  line-height: 1.35;
  list-style: none;
}

.preview-status-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-paper {
  min-height: 168px;
  padding: 16px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.copy-paper span,
.visual-canvas span,
.deck-slide span,
.video-frame small {
  color: #8c959f;
  font-size: 12px;
}

.copy-paper h3 {
  margin: 8px 0 14px;
  color: #1f2328;
  font-size: 20px;
  line-height: 1.18;
}

.copy-insights,
.visual-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-insights button,
.visual-variants button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.copy-insights button.is-active,
.visual-variants button.is-active,
.deck-thumbs button.is-active,
.video-timeline button.is-active {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.08);
}

.copy-paper h3,
.visual-canvas strong,
.deck-slide strong,
.video-frame strong {
  transition: color 150ms ease;
}

.visual-canvas {
  min-height: 168px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 15px;
  border-radius: 8px;
  color: #1f2328;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 34%, rgba(31, 111, 235, 0.24), transparent 22%),
    linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(255, 255, 255, 0.68)),
    repeating-linear-gradient(90deg, rgba(216, 222, 228, 0.58) 0 1px, transparent 1px 24px);
}

.visual-canvas strong {
  max-width: 16ch;
  font-size: 22px;
  line-height: 1.05;
}

.visual-poster {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.74), transparent 16%),
    linear-gradient(160deg, #d7ebff, #1f6feb);
  color: #fff;
}

.visual-render {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.86), transparent 38%),
    linear-gradient(145deg, #d8dee4, #f6f8fa 38%, #b9c5d2);
}

.deck-slide {
  min-height: 156px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(135deg, #1f6feb, #24292f);
}

.deck-slide strong {
  max-width: 14ch;
  font-size: 22px;
  line-height: 1.06;
}

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

.deck-thumbs button,
.video-timeline button {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #3d444d;
  font-size: 12px;
  text-align: left;
}

.deck-thumbs small,
.video-timeline small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.video-frame {
  min-height: 166px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(rgba(31, 35, 40, 0.25), rgba(31, 35, 40, 0.34)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 36px, rgba(255, 255, 255, 0.08) 36px 42px),
    linear-gradient(135deg, #415b78, #9bc6f0);
}

.video-frame strong {
  font-size: 18px;
}

.video-play-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.video-play-mark::before {
  content: "";
  margin-left: 3px;
  border-left: 13px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

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

.tool-output-queue {
  display: grid;
  gap: 9px;
}

.tool-output-queue > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.tool-output-queue > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-output-queue button {
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tool-output-queue button span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d8dee4;
}

.tool-output-queue button:hover {
  border-color: #b7c1cc;
  color: #24292f;
  background: rgba(255, 255, 255, 0.92);
}

.tool-output-queue button:disabled,
.tool-output-queue button.is-locked,
.delivery-checks button:disabled,
.delivery-checks button.is-locked {
  opacity: 0.58;
  cursor: default;
}

.tool-output-queue button:disabled:hover,
.delivery-checks button:disabled:hover {
  border-color: #d8dee4;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
}

.tool-output-queue button.is-ready,
.tool-output-queue button.is-selected {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.tool-output-queue button.is-ready span,
.tool-output-queue button.is-selected span {
  background: var(--blue);
}

.tool-output-queue button.is-pending-cue {
  border-color: #d0d7de;
  color: #6e7781;
  background: rgba(246, 248, 250, 0.86);
  transform: translateX(2px);
}

.tool-output-queue button.is-pending-cue span {
  background: #bf8700;
}

.tool-result-panel {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.result-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: rgba(246, 248, 250, 0.68);
  transition: border-color 160ms ease, background 160ms ease;
}

.result-card[data-state="ready"] {
  border-color: #c8d8f2;
  background: rgba(246, 250, 255, 0.78);
}

.result-card[data-state="busy"] {
  border-color: #d8dee4;
  background: rgba(255, 255, 255, 0.76);
}

.result-card[data-state="pending"] {
  border-color: #e3d6aa;
  background: rgba(255, 250, 236, 0.58);
}

.tool-result-panel .tool-section-head button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.tool-result-panel .tool-section-head button.is-pending {
  border-color: #e3d6aa;
  color: #7d4e00;
  background: #fff8c5;
}

.result-card small {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 700;
}

.result-card[data-state="pending"] small {
  color: #7d4e00;
  background: #fff8c5;
}

.result-card strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: 15px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card p {
  margin: 0;
  color: #57606a;
  font-size: 12px;
  line-height: 1.55;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.result-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.delivery-receipt {
  min-width: 0;
  overflow: hidden;
  padding-top: 7px;
  border-top: 1px solid #eaeef2;
  color: #1a7f37;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-receipt[hidden] {
  display: none;
}

.delivery-checks {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.delivery-checks button {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #57606a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.delivery-checks button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d8dee4;
}

.delivery-checks button:hover,
.delivery-checks button.is-checked {
  border-color: #aecaef;
  color: var(--blue);
  background: #eef5ff;
}

.delivery-checks button.is-pending {
  border-color: #e3d6aa;
  color: #7d4e00;
  background: rgba(255, 248, 197, 0.46);
}

.delivery-checks button.is-checked::before {
  background: var(--blue);
}

.delivery-checks button.is-pending::before {
  background: #bf8700;
}

.tool-history {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.tool-history-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tool-history-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.tool-history-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.tool-history-card strong {
  overflow: hidden;
  color: #24292f;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-history-card small {
  color: #8c959f;
  font-size: 12px;
}

.workspace-hero {
  min-width: 0;
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  justify-self: center;
  gap: clamp(24px, 3vw, 52px);
}

.workspace-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.workspace-logo {
  width: 60px;
  height: 48px;
  flex: 0 0 auto;
}

.workspace-brand h1 {
  margin: 0;
  color: #1f2328;
  font-size: clamp(28px, 2.25vw, 42px);
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: 0;
}

.workspace-brand p {
  margin: 7px 0 0;
  color: #8c959f;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-time {
  width: fit-content;
  color: #17213d;
  font-size: clamp(30px, 2.8vw, 50px);
  line-height: 1;
  font-weight: 720;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8c959f;
  font-size: 12px;
  white-space: nowrap;
}

.live-status span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
}

.project-section {
  min-width: 0;
  width: min(100%, 980px);
  justify-self: center;
  display: grid;
  gap: 20px;
}

.project-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.date-filter {
  min-width: 0;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.date-chip {
  height: 40px;
  flex: 0 0 auto;
  padding: 0 22px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #6e7781;
  background: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background 150ms ease;
}

.date-chip:hover,
.date-chip:focus-visible,
.date-chip.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #2f7df6, #1f6feb);
  box-shadow: 0 8px 18px rgba(31, 111, 235, 0.18);
}

.date-chip:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  outline-offset: 2px;
}

.project-search-box {
  min-width: 0;
  width: min(230px, 30%);
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.calendar-icon {
  position: relative;
  width: 15px;
  height: 15px;
  display: inline-block;
  margin-right: 7px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
  vertical-align: -2px;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 1.5px;
  background: currentColor;
}

.project-search-box:focus-within {
  border-color: #aecaef;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.project-search-box .icon-search {
  width: 12px;
  height: 12px;
  border-width: 1.6px;
}

.project-search-box .icon-search::after {
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1.6px;
}

.project-search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #24292f;
  background: transparent;
  font-size: 12px;
}

.custom-date-panel {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8dee4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(31, 35, 40, 0.055);
}

.custom-date-panel[hidden] {
  display: none;
}

.custom-date-panel label {
  display: grid;
  gap: 6px;
  color: #6e7781;
  font-size: 12px;
}

.custom-date-panel input {
  height: 32px;
  min-width: 136px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  padding: 0 9px;
  color: #24292f;
  background: #fff;
  font-size: 12px;
  outline: 0;
}

.custom-date-panel input:focus {
  border-color: #aecaef;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.date-apply-button {
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
}

.project-list {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.project-column {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.project-column.is-empty {
  display: none;
}

.project-card {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  color: #24292f;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  box-shadow: 0 8px 30px rgba(31, 35, 40, 0.035);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.project-card.large {
  grid-row: span 2;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: #aecaef;
  background: #fff;
  transform: translateY(-1px);
}

.project-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.project-type {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.project-card strong {
  min-width: 0;
  overflow: hidden;
  color: #24292f;
  font-size: clamp(18px, 1.25vw, 24px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card p {
  min-width: 0;
  margin: 0;
  color: #6e7781;
  font-size: 14px;
  line-height: 1.65;
}

.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8c959f;
  font-size: 14px;
  line-height: 1;
}

.mini-user-dot {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 36%, #24292f 0 22%, transparent 23%),
    radial-gradient(circle at 50% 92%, #24292f 0 34%, transparent 35%),
    #d8dee4;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #6e7781;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.project-cover,
.project-gallery {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.project-cover {
  height: 148px;
  display: grid;
  place-items: center;
}

.large .project-cover {
  height: 264px;
}

.product-cover {
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.8) 0 9px, transparent 10px),
    radial-gradient(circle at 23% 42%, rgba(255, 255, 255, 0.55) 0 5px, transparent 6px),
    linear-gradient(160deg, rgba(222, 239, 255, 0.2), rgba(13, 92, 169, 0.36)),
    linear-gradient(135deg, #d9ecff, #5d9de9 48%, #1d4f8b);
  position: relative;
}

.product-cover::before {
  content: "";
  position: absolute;
  left: 48%;
  top: 26%;
  width: 50px;
  height: 130px;
  border-radius: 16px 16px 12px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #3b8be5, #1f6feb);
  box-shadow: 0 18px 42px rgba(13, 71, 139, 0.32);
  transform: translateX(-50%);
}

.campaign-cover {
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(135deg, #7ab6ff, #1f6feb);
}

.campaign-cover span {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 5px 14px rgba(31, 35, 40, 0.2);
}

.video-cover {
  height: 82px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 34px, rgba(255, 255, 255, 0.1) 34px 40px),
    linear-gradient(135deg, #2d4f72, #9bc6f0);
}

.play-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(31, 35, 40, 0.34);
}

.play-mark::before {
  content: "";
  margin-left: 4px;
  border-left: 15px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

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

.project-gallery span {
  height: 100px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 62% 25%, rgba(70, 128, 87, 0.5), transparent 18%),
    linear-gradient(135deg, #f0f4f7, #cfd9e4);
}

.project-gallery span:nth-child(2) {
  background:
    radial-gradient(circle at 48% 50%, rgba(117, 90, 52, 0.34), transparent 22%),
    linear-gradient(135deg, #fafafa, #d4dbe3);
}

.project-gallery span:nth-child(3) {
  background:
    radial-gradient(circle at 72% 70%, rgba(150, 112, 67, 0.4), transparent 20%),
    linear-gradient(135deg, #eaf0f4, #c7d0da);
}

.project-empty {
  margin: 0;
  padding: 18px 0 4px;
  color: #8c959f;
  font-size: 12px;
  text-align: center;
}

.load-more-button {
  width: min(420px, 58%);
  height: 48px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  color: #6e7781;
  background: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.load-more-button span {
  width: 8px;
  height: 8px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.timeline-mode .workspace-home {
  position: relative;
  padding: clamp(36px, 4.3vw, 70px) clamp(34px, 4.6vw, 78px) 56px;
}

.timeline-mode .workspace-hero {
  grid-template-columns: minmax(260px, 1fr);
  gap: 24px;
  justify-self: stretch;
  width: min(100%, 920px);
  margin-inline: auto;
}

.timeline-mode .workspace-brand {
  gap: 20px;
}

.timeline-mode .workspace-logo {
  width: 66px;
  height: 52px;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.timeline-mode .workspace-time {
  font-size: clamp(48px, 5.2vw, 72px);
  color: #24292f;
}

.timeline-mode .live-status {
  height: 34px;
  padding: 0 13px;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  color: #3d444d;
  background: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.timeline-mode .live-status span {
  background: #22c55e;
  box-shadow: none;
}

.timeline-section {
  width: min(100%, 920px);
  gap: 26px;
}

.project-status-tabs {
  width: min(560px, 100%);
  height: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border: 1px solid #d8dee4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.status-tab {
  height: 100%;
  position: relative;
  color: #6e7781;
  font-size: 15px;
}

.status-tab + .status-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 1px;
  background: #d8dee4;
}

.status-tab.is-active {
  color: var(--blue);
  background: #eef5ff;
  font-weight: 700;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 30px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 999px;
  background: #dbeafe;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 86px;
  top: 26px;
  width: 18px;
  height: 18px;
  border: 5px solid #1f6feb;
  border-radius: 999px;
  background: #fff;
  z-index: 1;
}

.timeline-date {
  padding-top: 18px;
  display: grid;
  gap: 8px;
  color: #6e7781;
  text-align: left;
}

.timeline-date strong {
  color: #3d444d;
  font-size: 20px;
  line-height: 1;
}

.timeline-date span {
  font-size: 17px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timeline-card {
  min-width: 0;
  min-height: 152px;
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr) 142px 22px;
  align-items: center;
  gap: 28px;
  padding: 22px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(31, 35, 40, 0.045);
  text-align: left;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.timeline-card:hover,
.timeline-card:focus-visible {
  border-color: #aecaef;
  background: #fff;
  transform: translateY(-1px);
}

.timeline-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.timeline-cover {
  width: 146px;
  height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
}

.timeline-cover span {
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
}

.timeline-cover small {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 650;
}

.launch-cover {
  background:
    radial-gradient(circle at 72% 76%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(145deg, #5db4ff, #1f6feb);
}

.promo-cover {
  background:
    radial-gradient(circle at 70% 72%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(145deg, #6c4dff, #1f6feb);
}

.promo-cover span {
  font-size: 34px;
  font-style: italic;
}

.xhs-cover {
  background:
    radial-gradient(circle at 74% 74%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(145deg, #ff4d6d, #ff6b6b);
}

.invoice-cover {
  background:
    radial-gradient(circle at 74% 74%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(145deg, #0ea5e9, #2563eb);
}

.cash-cover {
  background:
    radial-gradient(circle at 74% 74%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(145deg, #10b981, #0f766e);
}

.report-cover {
  background:
    radial-gradient(circle at 74% 74%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(145deg, #64748b, #1f2937);
}

.executive-cover {
  background:
    radial-gradient(circle at 76% 70%, rgba(255, 255, 255, 0.36), transparent 20%),
    linear-gradient(145deg, #2563eb, #0f172a);
}

.okr-cover {
  background:
    radial-gradient(circle at 74% 74%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(145deg, #14b8a6, #0f766e);
}

.meeting-cover {
  background:
    radial-gradient(circle at 70% 72%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(145deg, #8b5cf6, #4338ca);
}

.timeline-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.timeline-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-title-row strong {
  min-width: 0;
  overflow: hidden;
  color: #1f2328;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-mode .workspace-home {
  gap: 18px;
}

.timeline-section {
  gap: 18px;
}

.timeline-item {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
}

.timeline-item::before {
  left: 67px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-width: 4px;
}

.timeline-date {
  padding-top: 14px;
  gap: 6px;
}

.timeline-date strong {
  font-size: 18px;
}

.timeline-date span {
  font-size: 15px;
}

.timeline-card {
  min-height: 132px;
  grid-template-columns: 124px minmax(0, 1fr) 118px 20px;
  gap: 20px;
  padding: 18px;
}

.timeline-cover {
  width: 124px;
  height: 96px;
  padding: 16px;
}

.timeline-cover span {
  font-size: 25px;
}

.timeline-cover small {
  font-size: 13px;
}

.timeline-title-row {
  align-items: flex-start;
  gap: 10px;
}

.timeline-title-row strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.18;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-desc,
.timeline-people {
  font-size: 13px;
}

.new-badge {
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #1f6feb;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 700;
}

.timeline-desc,
.timeline-people {
  color: #6e7781;
  font-size: 14px;
  line-height: 1.4;
}

.timeline-people {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-side {
  min-width: 0;
  height: 100%;
  display: grid;
  align-content: space-between;
  justify-items: start;
  color: #8c959f;
  font-size: 14px;
}

.project-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  white-space: nowrap;
}

.project-state span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.project-state.doing {
  color: #1f6feb;
}

.project-state.doing span {
  background: #1f6feb;
}

.project-state.done {
  color: #16a34a;
}

.project-state.done span {
  background: #16a34a;
}

.project-state.draft {
  color: #6e7781;
}

.project-state.draft span {
  background: #8c959f;
}

.timeline-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid #57606a;
  border-bottom: 2px solid #57606a;
  transform: rotate(-45deg);
}

.timeline-item.is-hidden {
  display: none;
}

.timeline-end {
  margin: -2px 0 0;
  color: #8c959f;
  font-size: 14px;
  text-align: center;
}

.new-project-button {
  position: absolute;
  right: clamp(36px, 4.5vw, 74px);
  bottom: 44px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #2f7df6, #1f6feb);
  box-shadow: 0 14px 26px rgba(31, 111, 235, 0.28);
}

.new-project-button span {
  position: relative;
  width: 30px;
  height: 30px;
}

.new-project-button span::before,
.new-project-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.new-project-button span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.new-project-button strong {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: rgba(31, 35, 40, 0.72);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
}

@container workspace (max-width: 760px) {
  .workspace-tool {
    padding: 34px 30px 44px;
  }

  .vertical-apps-mode .workspace-tool {
    align-items: start;
  }

  .vertical-apps-hero,
  .vertical-case-grid {
    grid-template-columns: 1fr;
  }

  .tool-hero {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .tool-intent {
    grid-column: 2;
    width: fit-content;
    min-width: 0;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 8px;
    padding-block: 8px;
  }

  .tool-hero h2 {
    font-size: 34px;
  }

  .scenario-bar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .scenario-checks {
    justify-content: flex-start;
  }

  .scenario-next {
    width: fit-content;
  }

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

  .framework-head {
    grid-template-columns: 1fr auto;
  }

  .framework-head span {
    grid-column: 1 / -1;
  }

  .framework-foot {
    grid-template-columns: 1fr;
  }

  .framework-foot div {
    justify-content: flex-start;
  }

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

  .tool-field-grid {
    grid-template-columns: 1fr;
  }

  .tool-process ol,
  .tool-quick-row,
  .tool-control-grid,
  .special-layout,
  .special-grid,
  .prototype-grid,
  .prototype-gallery,
  .prototype-storyboard,
  .prototype-calendar,
  .prototype-effects,
  .prototype-poster,
  .prototype-render,
  .prototype-deck-builder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .special-layout,
  .prototype-grid,
  .prototype-gallery,
  .prototype-storyboard,
  .prototype-calendar,
  .prototype-effects,
  .prototype-poster,
  .prototype-render,
  .prototype-deck-builder {
    grid-template-columns: 1fr;
  }

  .cover-wall,
  .candidate-grid,
  .calendar-board,
  .topic-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-quick-row {
    grid-template-columns: 1fr;
  }

  .tool-preview-stage {
    min-height: 220px;
  }

  .quality-bar {
    grid-template-columns: 1fr;
  }

  .quality-bar strong {
    white-space: normal;
  }

  .quality-metrics {
    justify-content: flex-start;
  }

  .deck-thumbs,
  .tool-output-queue > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-history-grid {
    grid-template-columns: 1fr;
  }

  .timeline-mode .workspace-home {
    padding: 42px 32px 54px;
  }

  .timeline-mode .workspace-hero {
    gap: 18px;
  }

  .timeline-mode .workspace-logo {
    width: 58px;
    height: 46px;
  }

  .timeline-mode .workspace-brand h1 {
    font-size: 34px;
  }

  .timeline-mode .workspace-time {
    font-size: 56px;
  }

  .time-row {
    align-items: flex-start;
    gap: 16px;
  }

  .timeline-list::before {
    left: 78px;
  }

  .timeline-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
  }

  .timeline-item::before {
    left: 72px;
  }

  .timeline-card {
    min-height: 0;
    grid-template-columns: 122px minmax(0, 1fr) 18px;
    grid-template-areas:
      "cover content arrow"
      "cover side arrow";
    align-items: center;
    gap: 12px 18px;
    padding: 18px;
  }

  .timeline-cover {
    grid-area: cover;
    width: 122px;
    height: 96px;
    padding: 15px;
  }

  .timeline-content {
    grid-area: content;
    gap: 9px;
    align-self: end;
  }

  .timeline-title-row {
    gap: 9px;
  }

  .timeline-title-row strong {
    font-size: 18px;
  }

  .timeline-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .timeline-people {
    display: none;
  }

  .timeline-side {
    grid-area: side;
    height: auto;
    display: flex;
    align-items: center;
    align-self: start;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }

  .project-state {
    font-size: 13px;
    gap: 7px;
  }

  .project-state span {
    width: 8px;
    height: 8px;
  }

  .timeline-arrow {
    grid-area: arrow;
  }
}

@container workspace (max-width: 600px) {
  .workspace-tool {
    padding: 28px 22px 38px;
  }

  .tool-workspace-inner {
    gap: 14px;
  }

  .tool-hero {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .tool-back {
    width: 32px;
    height: 32px;
  }

  .tool-hero h2 {
    font-size: 28px;
  }

  .tool-hero p {
    font-size: 13px;
  }

  .scenario-main strong {
    white-space: normal;
  }

  .tool-framework {
    padding: 9px;
  }

  .framework-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .framework-head button {
    width: fit-content;
  }

  .framework-head strong,
  .framework-foot p {
    white-space: normal;
  }

  .framework-lane {
    grid-template-columns: 1fr;
  }

  .framework-foot {
    grid-template-columns: 1fr;
  }

  .framework-foot div {
    justify-content: flex-start;
  }

  .tool-assets,
  .tool-asset-actions,
  .tool-process ol,
  .compact-process,
  .tool-quick-row,
  .tool-control-grid,
  .special-layout,
  .special-grid,
  .prototype-grid,
  .cover-wall,
  .candidate-grid,
  .calendar-board,
  .topic-pipeline,
  .deck-thumbs,
  .tool-output-queue > div {
    grid-template-columns: 1fr;
  }

  .tool-main,
  .tool-preview,
  .tool-history {
    padding: 14px;
  }

  .compact-process {
    align-items: stretch;
  }

  .compact-process button {
    width: 100%;
  }

  .timeline-mode .workspace-home {
    padding: 34px 28px 50px;
  }

  .timeline-mode .workspace-brand {
    gap: 14px;
  }

  .timeline-mode .workspace-logo {
    width: 54px;
    height: 42px;
  }

  .timeline-mode .workspace-brand h1 {
    font-size: 30px;
  }

  .timeline-mode .workspace-time {
    font-size: 48px;
  }

  .project-status-tabs {
    width: 100%;
  }

  .timeline-list::before {
    left: 74px;
  }

  .timeline-item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline-item::before {
    left: 68px;
  }

  .timeline-date strong {
    font-size: 17px;
  }

  .timeline-date span {
    font-size: 14px;
  }

  .timeline-card {
    grid-template-columns: 104px minmax(0, 1fr) 18px;
    gap: 10px 16px;
    padding: 18px;
  }

  .timeline-cover {
    width: 104px;
    height: 92px;
    padding: 14px;
  }

  .timeline-cover span {
    font-size: 21px;
  }

  .timeline-cover small {
    font-size: 12px;
  }

  .timeline-title-row strong {
    font-size: 18px;
  }

  .timeline-desc,
  .timeline-side {
    font-size: 12px;
  }
}

.page-shell.is-workspace-medium .timeline-mode .workspace-home {
  padding: 42px 32px 54px;
}

.page-shell.is-workspace-medium .workspace-tool {
  padding: 34px 30px 44px;
}

.page-shell.is-workspace-medium .project-detail-shell {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .new-project-shell {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .project-detail-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-shell.is-workspace-medium .tool-hero {
  grid-template-columns: 34px minmax(0, 1fr);
}

.page-shell.is-workspace-medium .tool-intent {
  grid-column: 2;
  width: fit-content;
  min-width: 0;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
}

.page-shell.is-workspace-medium .tool-hero h2 {
  font-size: 34px;
}

.page-shell.is-workspace-medium .scenario-bar {
  grid-template-columns: 1fr;
  align-items: start;
}

.page-shell.is-workspace-medium .scenario-checks {
  justify-content: flex-start;
}

.page-shell.is-workspace-medium .scenario-next {
  width: fit-content;
}

.page-shell.is-workspace-medium .framework-lane {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-shell.is-workspace-medium .feature-overview-page-head {
  grid-template-columns: 1fr;
  align-items: start;
}

.page-shell.is-workspace-medium .feature-overview-page-head aside {
  grid-column: auto;
  width: min(100%, 270px);
  min-width: 220px;
}

.page-shell.is-workspace-medium .feature-overview-all {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .feature-overview-directory,
.page-shell.is-workspace-medium .feature-overview-grid {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .feature-overview-mode .workspace-tool {
  padding-inline: 24px;
}

.page-shell.is-workspace-medium .feature-overview-page-head h2 {
  font-size: 46px;
}

.page-shell.is-workspace-medium .feature-overview-workspace {
  width: min(100%, 620px);
}

.page-shell.is-workspace-medium .framework-head {
  grid-template-columns: 1fr auto;
}

.page-shell.is-workspace-medium .framework-head span {
  grid-column: 1 / -1;
}

.page-shell.is-workspace-medium .framework-foot {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .framework-foot div {
  justify-content: flex-start;
}

.page-shell.is-workspace-medium .tool-shell,
.page-shell.is-workspace-medium .tool-field-grid {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .tool-process ol,
.page-shell.is-workspace-medium .tool-quick-row,
.page-shell.is-workspace-medium .tool-control-grid,
.page-shell.is-workspace-medium .special-layout,
.page-shell.is-workspace-medium .special-grid,
.page-shell.is-workspace-medium .prototype-grid,
.page-shell.is-workspace-medium .prototype-gallery,
.page-shell.is-workspace-medium .prototype-storyboard,
.page-shell.is-workspace-medium .prototype-calendar,
.page-shell.is-workspace-medium .prototype-effects,
.page-shell.is-workspace-medium .prototype-poster,
.page-shell.is-workspace-medium .prototype-render,
.page-shell.is-workspace-medium .prototype-deck-builder,
.page-shell.is-workspace-medium .deck-thumbs,
.page-shell.is-workspace-medium .tool-output-queue > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-shell.is-workspace-medium .tool-quick-row {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .special-layout,
.page-shell.is-workspace-medium .prototype-grid,
.page-shell.is-workspace-medium .prototype-gallery,
.page-shell.is-workspace-medium .prototype-storyboard,
.page-shell.is-workspace-medium .prototype-calendar,
.page-shell.is-workspace-medium .prototype-effects,
.page-shell.is-workspace-medium .prototype-poster,
.page-shell.is-workspace-medium .prototype-render,
.page-shell.is-workspace-medium .prototype-deck-builder {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .cover-wall,
.page-shell.is-workspace-medium .candidate-grid,
.page-shell.is-workspace-medium .calendar-board,
.page-shell.is-workspace-medium .topic-pipeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-shell.is-workspace-medium .tool-preview-stage {
  min-height: 220px;
}

.page-shell.is-workspace-medium .quality-bar {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .quality-bar strong {
  white-space: normal;
}

.page-shell.is-workspace-medium .quality-metrics {
  justify-content: flex-start;
}

.page-shell.is-workspace-medium .tool-history-grid {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-medium .timeline-mode .workspace-hero {
  gap: 18px;
}

.page-shell.is-workspace-medium .timeline-mode .workspace-logo {
  width: 58px;
  height: 46px;
}

.page-shell.is-workspace-medium .timeline-mode .workspace-brand h1 {
  font-size: 34px;
}

.page-shell.is-workspace-medium .timeline-mode .workspace-time {
  font-size: 56px;
}

.page-shell.is-workspace-medium .time-row {
  align-items: flex-start;
  gap: 16px;
}

.page-shell.is-workspace-medium .timeline-list::before {
  left: 78px;
}

.page-shell.is-workspace-medium .timeline-item {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
}

.page-shell.is-workspace-medium .timeline-item::before {
  left: 72px;
}

.page-shell.is-workspace-medium .timeline-card {
  min-height: 0;
  grid-template-columns: 122px minmax(0, 1fr) 18px;
  grid-template-areas:
    "cover content arrow"
    "cover side arrow";
  align-items: center;
  gap: 12px 18px;
  padding: 18px;
}

.page-shell.is-workspace-medium .timeline-cover {
  grid-area: cover;
  width: 122px;
  height: 96px;
  padding: 15px;
}

.page-shell.is-workspace-medium .timeline-content {
  grid-area: content;
  gap: 9px;
  align-self: end;
}

.page-shell.is-workspace-medium .timeline-title-row {
  gap: 9px;
}

.page-shell.is-workspace-medium .timeline-title-row strong {
  font-size: 18px;
}

.page-shell.is-workspace-medium .timeline-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-shell.is-workspace-medium .timeline-people {
  display: none;
}

.page-shell.is-workspace-medium .timeline-side {
  grid-area: side;
  height: auto;
  display: flex;
  align-items: center;
  align-self: start;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.page-shell.is-workspace-medium .project-state {
  font-size: 13px;
  gap: 7px;
}

.page-shell.is-workspace-medium .project-state span {
  width: 8px;
  height: 8px;
}

.page-shell.is-workspace-medium .timeline-arrow {
  grid-area: arrow;
}

.page-shell.is-workspace-min .timeline-mode .workspace-home {
  padding: 34px 28px 50px;
}

.page-shell.is-workspace-min .timeline-mode .workspace-hero {
  gap: 18px;
}

.page-shell.is-workspace-min .project-detail-mode .workspace-tool {
  padding: 30px 24px 44px;
}

.page-shell.is-workspace-min .project-detail-hero,
.page-shell.is-workspace-min .project-detail-shell,
.page-shell.is-workspace-min .new-project-shell,
.page-shell.is-workspace-min .new-project-field-row,
.page-shell.is-workspace-min .feature-overview-page-head,
.page-shell.is-workspace-min .feature-overview-all,
.page-shell.is-workspace-min .feature-overview-directory,
.page-shell.is-workspace-min .feature-overview-grid,
.page-shell.is-workspace-min .project-detail-summary,
.page-shell.is-workspace-min .project-detail-metrics {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-min .feature-overview-column,
.page-shell.is-workspace-min .feature-overview-group {
  padding-right: 0;
  border-right: 0;
}

.page-shell.is-workspace-min .feature-overview-page-head aside {
  width: 100%;
  min-width: 0;
}

.page-shell.is-workspace-min .feature-overview-mode .workspace-tool {
  padding-inline: 18px;
}

.page-shell.is-workspace-min .feature-overview-page-head h2 {
  font-size: 38px;
}

.page-shell.is-workspace-min .feature-overview-department-head {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
}

.page-shell.is-workspace-min .feature-overview-department-head > small {
  grid-column: 2;
  justify-self: start;
}

.page-shell.is-workspace-min .project-detail-status {
  min-width: 0;
}

.page-shell.is-workspace-min .project-detail-summary .timeline-cover {
  width: 118px;
  height: 92px;
}

.page-shell.is-workspace-min .timeline-mode .workspace-brand {
  gap: 14px;
}

.page-shell.is-workspace-min .timeline-mode .workspace-logo {
  width: 54px;
  height: 42px;
}

.page-shell.is-workspace-min .timeline-mode .workspace-brand h1 {
  font-size: 30px;
}

.page-shell.is-workspace-min .timeline-mode .workspace-time {
  font-size: 48px;
}

.page-shell.is-workspace-min .tool-framework {
  padding: 9px;
}

.page-shell.is-workspace-min .framework-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.page-shell.is-workspace-min .framework-head button {
  width: fit-content;
}

.page-shell.is-workspace-min .framework-head strong,
.page-shell.is-workspace-min .framework-foot p {
  white-space: normal;
}

.page-shell.is-workspace-min .framework-lane {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-min .framework-foot {
  grid-template-columns: 1fr;
}

.page-shell.is-workspace-min .framework-foot div {
  justify-content: flex-start;
}

.page-shell.is-workspace-min .project-status-tabs {
  width: 100%;
}

.page-shell.is-workspace-min .timeline-list::before {
  left: 74px;
}

.page-shell.is-workspace-min .timeline-item {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
}

.page-shell.is-workspace-min .timeline-item::before {
  left: 68px;
}

.page-shell.is-workspace-min .timeline-date strong {
  font-size: 17px;
}

.page-shell.is-workspace-min .timeline-date span {
  font-size: 14px;
}

.page-shell.is-workspace-min .timeline-card {
  min-height: 132px;
  grid-template-columns: 104px minmax(0, 1fr) 18px;
  gap: 16px;
  padding: 18px;
}

.page-shell.is-workspace-min .timeline-cover {
  width: 104px;
  height: 92px;
  padding: 14px;
}

.page-shell.is-workspace-min .timeline-cover span {
  font-size: 21px;
}

.page-shell.is-workspace-min .timeline-cover small {
  font-size: 12px;
}

.page-shell.is-workspace-min .timeline-side {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.page-shell.is-workspace-min .timeline-title-row strong {
  font-size: 18px;
}

.page-shell.is-workspace-min .timeline-desc,
.page-shell.is-workspace-min .timeline-people,
.page-shell.is-workspace-min .timeline-side {
  font-size: 12px;
}

.right-panel {
  min-width: 0;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(18px, 2.3vh, 30px);
  border-left: 0;
  padding: clamp(34px, 3.4vw, 69px) clamp(32px, 3.1vw, 64px) clamp(24px, 2.9vw, 36px)
    clamp(24px, 2.2vw, 45px);
  transition:
    opacity 120ms ease,
    visibility 120ms ease;
}

.page-shell.is-workspace-collapsed .workspace-panel,
.page-shell.is-chat-collapsed .right-panel,
.page-shell.is-preview-workspace-edge .workspace-panel,
.page-shell.is-preview-chat-edge .right-panel {
  visibility: hidden;
  opacity: 0;
  padding: 0;
  pointer-events: none;
}

body.is-resizing .left-panel,
body.is-resizing .workspace-panel,
body.is-resizing .right-panel {
  transition: none;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.3fr);
  align-items: center;
  gap: clamp(24px, 4.8vw, 90px);
}

.page-shell.is-left-compact .topbar {
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-shell.is-left-mini .topbar {
  gap: 12px;
}

.brand-row {
  width: max-content;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.4vw, 24px);
}

.page-shell.is-left-narrow .brand-row {
  gap: 12px;
}

.brand-text {
  display: grid;
  gap: 8px;
}

.brand-text strong {
  font-size: clamp(26px, 1.56vw, 32px);
  line-height: 1;
  letter-spacing: 1.3px;
  font-weight: 750;
}

.page-shell.is-left-narrow .brand-text strong {
  font-size: 22px;
}

.brand-text span {
  color: #757b85;
  font-size: clamp(16px, 0.95vw, 19px);
  line-height: 1;
}

.page-shell.is-left-narrow .brand-text span {
  font-size: 14px;
}

.page-shell.is-left-mini .brand-text {
  display: none;
}

.brand-mark {
  position: relative;
  width: clamp(52px, 3.05vw, 62px);
  height: clamp(42px, 2.45vw, 50px);
  flex: 0 0 auto;
}

.page-shell.is-left-narrow .brand-mark {
  width: 46px;
  height: 38px;
}

.page-shell.is-left-mini .brand-mark {
  width: 40px;
  height: 34px;
}

.brand-mark span,
.brand-avatar span {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, #2f7df6 0%, #1f6feb 100%);
  border-radius: 3px;
}

.mark-left {
  left: 0;
  top: 21%;
  width: 40%;
  height: 70%;
  transform: skew(-29deg);
}

.mark-mid {
  left: 36%;
  top: 21%;
  width: 42%;
  height: 100%;
  transform: skew(-29deg);
}

.mark-right {
  left: 60%;
  top: 22%;
  width: 40%;
  height: 70%;
  transform: skew(29deg);
}

.search-box {
  width: min(100%, 702px);
  height: clamp(48px, 3vw, 58px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.4vw, 28px);
  padding: 0 clamp(22px, 1.9vw, 39px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.page-shell.is-left-compact .search-box {
  width: 100%;
  height: 42px;
  gap: 12px;
  padding-inline: 16px;
}

.page-shell.is-left-narrow .search-box {
  height: 38px;
  padding-inline: 12px;
}

.page-shell.is-left-mini .search-box input {
  font-size: 12px;
}

.search-box:focus-within {
  border-color: #8c959f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 35, 40, 0.055);
}

.search-box input,
.prompt-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #252a32;
  background: transparent;
}

.search-box input {
  font-size: clamp(15px, 0.92vw, 18px);
}

::placeholder {
  color: #8b9099;
}

.ui-icon,
.option-icon,
.feature-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.icon-search {
  width: 23px;
  height: 23px;
  border: 3px solid #57606a;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: -7px;
  width: 14px;
  height: 3px;
  border-radius: 8px;
  background: #5d636d;
  transform: rotate(45deg);
}

.feature-list {
  height: calc(100dvh - clamp(108px, 8.6vw, 160px));
  min-height: 560px;
  margin-top: clamp(22px, 2.6vw, 48px);
  display: grid;
  grid-template-rows: repeat(3, minmax(170px, 1fr));
}

.page-shell.is-left-compact .feature-list {
  height: calc(100dvh - 120px);
  min-height: 0;
  margin-top: 22px;
  gap: 12px;
  grid-template-rows: none;
  align-content: start;
}

.page-shell.is-left-narrow .feature-list {
  margin-top: 18px;
  gap: 10px;
}

.feature-section {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(350px, 0.92fr) minmax(390px, 1fr);
  align-items: center;
  gap: clamp(28px, 2.25vw, 48px);
  border-bottom: 1px solid #d8dce4;
}

.page-shell.is-left-compact .feature-section {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  padding-bottom: 14px;
}

.page-shell.is-left-narrow .feature-section {
  gap: 10px;
  padding-bottom: 12px;
}

.feature-section:last-child {
  border-bottom: 0;
}

.feature-head {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.05vw, 42px);
  min-width: 0;
}

.page-shell.is-left-compact .feature-head {
  gap: 14px;
}

.page-shell.is-left-mini .feature-head {
  gap: 10px;
}

.feature-icon {
  width: clamp(68px, 4.2vw, 86px);
  height: clamp(68px, 4.2vw, 86px);
  border-radius: clamp(14px, 0.9vw, 18px);
  background:
    linear-gradient(145deg, #ffffff, #eef2f6),
    #f6f8fa;
  box-shadow: inset 0 0 0 1px rgba(216, 222, 228, 0.85);
}

.page-shell.is-left-compact .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.page-shell.is-left-narrow .feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.page-shell.is-left-mini .feature-icon {
  width: 36px;
  height: 36px;
}

.feature-copy-block {
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.2vw, 24px);
}

.page-shell.is-left-narrow .title-row {
  gap: 10px;
}

.feature-number {
  font-size: clamp(24px, 1.4vw, 29px);
  line-height: 1;
  font-weight: 760;
  letter-spacing: 3px;
}

.page-shell.is-left-compact .feature-number {
  font-size: 20px;
  letter-spacing: 2px;
}

.page-shell.is-left-narrow .feature-number {
  font-size: 17px;
}

.feature-copy-block h1 {
  margin: 0;
  font-size: clamp(23px, 1.35vw, 28px);
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-shell.is-left-compact .feature-copy-block h1 {
  font-size: 20px;
}

.page-shell.is-left-narrow .feature-copy-block h1 {
  font-size: 18px;
}

.feature-copy-block p {
  margin: clamp(13px, 1vw, 20px) 0 0;
  color: #767b85;
  font-size: clamp(13px, 0.74vw, 15px);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.page-shell.is-left-compact .feature-copy-block p {
  margin-top: 8px;
  font-size: 12px;
  white-space: normal;
}

.page-shell.is-left-mini .feature-copy-block p {
  display: none;
}

.copy-options,
.visual-grid,
.video-options {
  min-width: 0;
  width: 100%;
}

.copy-options {
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 0.9vw, 17px);
}

.page-shell.is-left-compact .copy-options,
.page-shell.is-left-compact .visual-grid,
.page-shell.is-left-compact .video-options {
  max-width: none;
  grid-template-columns: 1fr;
  gap: 8px;
}

.page-shell.is-left-narrow .copy-options,
.page-shell.is-left-narrow .visual-grid,
.page-shell.is-left-narrow .video-options {
  gap: 7px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 0.9vw, 17px);
}

.video-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 0.9vw, 17px);
}

.option-card {
  min-width: 0;
  width: 100%;
  height: clamp(54px, 3.05vw, 62px);
  display: grid;
  grid-template-columns: clamp(36px, 2.2vw, 44px) minmax(0, 1fr) 12px;
  align-items: center;
  gap: clamp(10px, 0.72vw, 14px);
  padding: 0 clamp(12px, 0.8vw, 16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.page-shell.is-left-compact .option-card,
.page-shell.is-left-compact .option-card.wide,
.page-shell.is-left-compact .option-card.compact {
  height: 44px;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  gap: 8px;
  padding-inline: 10px;
}

.page-shell.is-left-narrow .option-card,
.page-shell.is-left-narrow .option-card.wide,
.page-shell.is-left-narrow .option-card.compact {
  height: 40px;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  padding-inline: 8px;
}

.option-card.wide {
  height: clamp(54px, 3.05vw, 62px);
}

.option-card.compact {
  grid-template-columns: clamp(36px, 2.2vw, 44px) minmax(0, 1fr) 12px;
  gap: clamp(10px, 0.72vw, 14px);
  height: clamp(54px, 3.05vw, 62px);
  padding: 0 clamp(12px, 0.8vw, 16px);
}

.option-card:hover,
.send-button:hover {
  transform: translateY(-1px);
}

.option-card:hover,
.option-card.is-active {
  border-color: #aecaef;
  background: #f6f8fa;
  box-shadow: 0 4px 14px rgba(31, 35, 40, 0.055);
}

.option-card:active,
.send-button:active {
  transform: translateY(0) scale(0.985);
}

.option-card:focus-visible,
.send-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 3px;
}

.option-icon {
  width: clamp(31px, 1.9vw, 38px);
  height: clamp(31px, 1.9vw, 38px);
  border-radius: 8px;
  color: #111;
  background: #f6f8fa;
}

.page-shell.is-left-compact .option-icon,
.page-shell.is-left-compact .compact .option-icon {
  width: 30px;
  height: 30px;
}

.page-shell.is-left-narrow .option-icon,
.page-shell.is-left-narrow .compact .option-icon {
  width: 28px;
  height: 28px;
}

.compact .option-icon {
  width: clamp(31px, 1.9vw, 38px);
  height: clamp(31px, 1.9vw, 38px);
  border-radius: 8px;
  background: #f6f8fa;
}

.card-label {
  min-width: 0;
  font-size: clamp(14px, 0.82vw, 16px);
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-shell.is-left-compact .card-label,
.page-shell.is-left-compact .compact .card-label {
  font-size: 13px;
}

.page-shell.is-left-narrow .card-label,
.page-shell.is-left-narrow .compact .card-label {
  font-size: 12px;
}

.compact .card-label {
  font-size: clamp(14px, 0.82vw, 16px);
}

.chevron {
  position: relative;
  width: 15px;
  height: 15px;
  justify-self: end;
  color: #8c959f;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.chevron::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.chevron::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.option-card:hover .chevron,
.option-card.is-active .chevron {
  color: var(--blue);
  transform: translateX(1px);
}

.chat-stream {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 8px 18px 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 1.08vw, 22px);
}

.message-row + .message-row {
  margin-top: clamp(22px, 2vh, 38px);
}

.message-row.user {
  justify-content: flex-end;
  gap: clamp(18px, 1.32vw, 27px);
}

.message-row.bot {
  min-width: 0;
}

.avatar {
  flex: 0 0 auto;
}

.brand-avatar {
  position: relative;
  width: clamp(48px, 2.74vw, 56px);
  height: clamp(48px, 2.74vw, 56px);
  border-radius: 50%;
  background: #1f6feb;
  box-shadow: 0 5px 14px rgba(31, 111, 235, 0.14);
}

.mini-mark-left {
  left: 25%;
  top: 35%;
  width: 20%;
  height: 38%;
  transform: skew(-29deg);
  background: #fff !important;
  border-radius: 1px;
}

.mini-mark-mid {
  left: 44%;
  top: 30%;
  width: 22%;
  height: 50%;
  transform: skew(-29deg);
  background: #fff !important;
  border-radius: 1px;
}

.mini-mark-right {
  left: 60%;
  top: 35%;
  width: 20%;
  height: 38%;
  transform: skew(29deg);
  background: #fff !important;
  border-radius: 1px;
}

.user-avatar {
  position: relative;
  width: clamp(50px, 2.84vw, 58px);
  height: clamp(50px, 2.84vw, 58px);
  border-radius: 50%;
  background: #f6f8fa;
}

.user-avatar::before {
  content: "";
  position: absolute;
  left: 39%;
  top: 18%;
  width: 36%;
  height: 36%;
  border-radius: 50%;
  background: var(--blue);
}

.user-avatar::after {
  content: "";
  position: absolute;
  left: 20%;
  bottom: 16%;
  width: 70%;
  height: 38%;
  border-radius: 50% 50% 42% 42%;
  background: var(--blue);
}

.bubble {
  max-width: min(88%, 418px);
  border-radius: 9px;
  color: #30343c;
  font-size: clamp(15px, 0.88vw, 17px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
}

.bubble p {
  margin: 0;
}

.bot-bubble {
  width: min(100%, 418px);
  padding: clamp(18px, 1.02vw, 21px) clamp(24px, 1.6vw, 33px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.user-bubble {
  width: min(72%, 375px);
  padding: clamp(15px, 0.88vw, 18px) clamp(22px, 1.52vw, 31px);
  border: 1px solid #b6d0f7;
  background: #eef5ff;
  color: #1a2d4e;
}

.input-area {
  min-width: 0;
  width: 100%;
  align-self: end;
  background: linear-gradient(180deg, rgba(246, 248, 250, 0), rgba(246, 248, 250, 0.96) 18%);
}

.attachment-preview {
  min-width: 0;
  min-height: 30px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attachment-preview[hidden] {
  display: none;
}

.attachment-pill {
  max-width: min(100%, 420px);
  height: 30px;
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  padding: 0 5px 0 10px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  color: #57606a;
  background: rgba(246, 248, 250, 0.92);
  font-size: 12px;
  line-height: 1;
}

.attachment-file-icon {
  position: relative;
  width: 14px;
  height: 17px;
  border: 1.6px solid var(--blue);
  border-radius: 2px;
}

.attachment-file-icon::before {
  content: "";
  position: absolute;
  right: -1.6px;
  top: -1.6px;
  width: 6px;
  height: 6px;
  border-left: 1.6px solid var(--blue);
  border-bottom: 1.6px solid var(--blue);
  background: #f6f8fa;
}

.attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-remove {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #6e7781;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.attachment-remove:hover {
  color: #24292f;
  background: #eaeef2;
}

.attachment-remove::before,
.attachment-remove::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.attachment-remove::before {
  transform: rotate(45deg);
}

.attachment-remove::after {
  transform: rotate(-45deg);
}

.prompt-input {
  min-width: 0;
  width: 100%;
  height: clamp(45px, 2.55vw, 52px);
  border: 1px solid #aeb6c3;
  border-radius: clamp(10px, 0.62vw, 12px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(11px, 0.72vw, 15px) 0 clamp(18px, 1.18vw, 24px);
  background: rgba(255, 255, 255, 0.86);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.prompt-input:focus-within {
  border-color: #8c959f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 35, 40, 0.055);
}

.prompt-input input {
  min-width: 0;
  font-size: clamp(13px, 0.78vw, 15px);
}

#fileInput {
  display: none;
}

.upload-button {
  position: relative;
  width: clamp(32px, 1.9vw, 38px);
  height: clamp(32px, 1.9vw, 38px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #57606a;
  flex: 0 0 auto;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.upload-button:hover {
  color: var(--blue);
  background: #eef5ff;
}

.upload-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.upload-button:active {
  transform: scale(0.96);
}

.send-button {
  width: clamp(34px, 1.98vw, 40px);
  height: clamp(34px, 1.98vw, 40px);
  border-radius: 50%;
  background: #1f6feb;
  position: relative;
  flex: 0 0 auto;
  box-shadow: 0 5px 12px rgba(31, 111, 235, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.notice {
  margin: clamp(10px, 0.78vw, 16px) 0 0;
  text-align: center;
  color: #a1a5ad;
  font-size: clamp(11px, 0.68vw, 13px);
  letter-spacing: 1px;
}

.is-hidden-by-search {
  opacity: 0.3;
}

/* Icon construction */
.icon-text-large::before,
.icon-image-large::before {
  content: "";
  position: absolute;
  inset: 27%;
  border: 4px solid var(--blue);
}

.icon-text-large::after {
  content: "T";
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: clamp(36px, 2.34vw, 48px);
  line-height: 1;
}

.icon-image-large::after {
  content: "";
  width: 46%;
  height: 27%;
  background: var(--blue);
  clip-path: polygon(0 100%, 27% 42%, 43% 66%, 63% 18%, 100% 100%);
}

.icon-video-large::before {
  content: "";
  position: absolute;
  width: 54%;
  height: 43%;
  border: 4px solid var(--blue);
  border-top-width: 8px;
  border-radius: 7px;
}

.icon-video-large::after {
  content: "";
  margin-left: 4px;
  width: 18%;
  height: 22%;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.rail-flyout .option-icon,
.rail-flyout .compact .option-icon {
  color: var(--blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 245, 255, 0.72)),
    #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.12);
}

.rail-flyout .option-icon::before,
.rail-flyout .option-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-wechat::before {
  width: 20px;
  height: 15px;
  border: 1.7px solid currentColor;
  border-radius: 9px;
  transform: translate(-2px, -1px);
}

.icon-wechat::after {
  width: 13px;
  height: 10px;
  right: 4px;
  bottom: 5px;
  border: 1.7px solid currentColor;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 50%, currentColor 0 1.1px, transparent 1.2px),
    radial-gradient(circle at 64% 50%, currentColor 0 1.1px, transparent 1.2px),
    #eef5ff;
}

.icon-note::before {
  width: 18px;
  height: 22px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
  background:
    linear-gradient(currentColor, currentColor) 5px 7px / 8px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 12px / 6px 1.6px no-repeat;
}

.icon-note::after {
  right: 6px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-top: 1.7px solid currentColor;
  border-right: 1.7px solid currentColor;
  border-radius: 1px;
}

.icon-image-gen::before {
  width: 22px;
  height: 18px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
  background:
    radial-gradient(circle at 70% 30%, currentColor 0 1.7px, transparent 1.8px),
    linear-gradient(135deg, transparent 50%, rgba(31, 111, 235, 0.14) 51%);
}

.icon-image-gen::after {
  left: 6px;
  bottom: 8px;
  width: 17px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 100%, 30% 42%, 46% 68%, 64% 18%, 100% 100%);
}

.icon-poster-new::before {
  width: 18px;
  height: 24px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  background:
    linear-gradient(currentColor, currentColor) 5px 7px / 8px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 12px / 6px 1.6px no-repeat,
    linear-gradient(rgba(31, 111, 235, 0.16), rgba(31, 111, 235, 0.16)) left bottom / 100% 7px no-repeat;
}

.icon-poster-new::after {
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-top: 1.7px solid currentColor;
  border-right: 1.7px solid currentColor;
  border-radius: 1px;
}

.icon-presentation::before {
  width: 22px;
  height: 15px;
  top: 7px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  background:
    linear-gradient(currentColor, currentColor) 5px 5px / 7px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 9px / 11px 1.5px no-repeat;
}

.icon-presentation::after {
  width: 14px;
  height: 8px;
  bottom: 5px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: skewX(-18deg);
}

.icon-render::before {
  width: 17px;
  height: 17px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  transform: rotate(45deg) skew(-7deg, -7deg);
}

.icon-render::after {
  width: 17px;
  height: 17px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(5px) rotate(45deg) skew(-7deg, -7deg);
  opacity: 0.55;
}

.icon-film::before {
  width: 22px;
  height: 17px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
  background:
    linear-gradient(90deg, currentColor 0 1.6px, transparent 1.6px 6px, currentColor 6px 7.6px, transparent 7.6px 14px, currentColor 14px 15.6px, transparent 15.6px) 4px 3px / 16px 3px no-repeat,
    linear-gradient(90deg, currentColor 0 1.6px, transparent 1.6px 6px, currentColor 6px 7.6px, transparent 7.6px 14px, currentColor 14px 15.6px, transparent 15.6px) 4px 11px / 16px 3px no-repeat;
}

.icon-film::after {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  transform: translateX(1px);
}

.icon-creator::before {
  top: 5px;
  width: 9px;
  height: 9px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.icon-creator::after {
  bottom: 5px;
  width: 20px;
  height: 11px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 86% 10%, currentColor 0 1.7px, transparent 1.8px),
    radial-gradient(circle at 94% 38%, currentColor 0 1.3px, transparent 1.4px);
}

.icon-spark::before {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-42deg);
}

.icon-spark::after {
  right: 5px;
  top: 4px;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) center / 10px 2px no-repeat;
  transform: rotate(45deg);
}

.icon-finance-large::before,
.icon-analysis-large::before,
.icon-risk-large::before,
.icon-command-large::before,
.icon-decision-large::before,
.icon-sync-large::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 2.1px solid currentColor;
  border-radius: 6px;
}

.icon-finance-large::after,
.icon-analysis-large::after,
.icon-risk-large::after,
.icon-command-large::after,
.icon-decision-large::after,
.icon-sync-large::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-finance-large::after {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.icon-analysis-large::after {
  left: 8px;
  bottom: 8px;
  width: 17px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 8px / 3px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 4px / 3px 10px no-repeat,
    linear-gradient(currentColor, currentColor) 14px 0 / 3px 14px no-repeat;
}

.icon-risk-large::before {
  border-radius: 50% 50% 7px 7px;
}

.icon-risk-large::after {
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  box-shadow: 0 0 0 0 currentColor;
}

.icon-command-large::before {
  border-radius: 50%;
}

.icon-command-large::after {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) center / 14px 2px no-repeat;
}

.icon-decision-large::before {
  border-radius: 7px;
  transform: rotate(45deg);
}

.icon-decision-large::after {
  width: 16px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.icon-sync-large::before {
  width: 23px;
  height: 18px;
  border-radius: 10px;
}

.icon-sync-large::after {
  width: 15px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.icon-invoice::before,
.icon-report::before,
.icon-contract::before,
.icon-audit::before,
.icon-weekly::before,
.icon-meeting::before {
  width: 18px;
  height: 22px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  background:
    linear-gradient(currentColor, currentColor) 5px 7px / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 12px / 6px 1.5px no-repeat;
}

.icon-expense::before,
.icon-cashflow::before,
.icon-overview::before {
  width: 22px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
}

.icon-overview::before {
  background:
    linear-gradient(currentColor, currentColor) 4px 9px / 3px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 6px / 3px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 14px 3px / 3px 10px no-repeat;
}

.icon-expense::after {
  width: 8px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.icon-cashflow::after {
  width: 15px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
}

.icon-risk::before,
.icon-tax::before,
.icon-target::before,
.icon-insight::before,
.icon-warning::before {
  width: 20px;
  height: 20px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.icon-target::after {
  width: 8px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.icon-insight::before {
  border-radius: 10px 10px 12px 12px;
}

.icon-insight::after {
  width: 11px;
  height: 7px;
  border-bottom: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  transform: rotate(-35deg);
}

.icon-warning::before {
  border-radius: 5px;
  transform: rotate(45deg);
}

.icon-warning::after {
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 8px 0 currentColor;
}

.icon-risk::after {
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.icon-tax::after {
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) center / 14px 2px no-repeat;
}

.icon-weekly::after {
  top: 7px;
  width: 18px;
  height: 1.8px;
  background: currentColor;
}

.icon-meeting::after {
  bottom: 6px;
  width: 16px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.upload-icon {
  position: relative;
  width: 17px;
  height: 17px;
  color: currentColor;
}

.upload-icon::before,
.upload-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.upload-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.send-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 17px;
  color: #fff;
  transform: translate(-50%, -50%);
}

.send-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.send-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
}

@media (min-width: 1800px) {
  :root {
    --left-width: 72px;
  }
}

@media (max-width: 1440px) {
  .login-screen {
    grid-template-columns: minmax(440px, 1fr) minmax(430px, 0.94fr);
  }

  .login-brand-content {
    width: min(66%, 500px);
    gap: 24px;
  }

  .login-logo {
    width: 72px;
    height: 60px;
  }

  .login-logo-row strong {
    font-size: 46px;
  }

  .login-brand-content h1 {
    font-size: 54px;
  }

  .login-brand-content p {
    font-size: 20px;
  }

  .login-card {
    width: min(100%, 440px);
    gap: 14px;
  }

  .login-header {
    margin-bottom: 18px;
  }

  .login-header h2 {
    font-size: 42px;
  }

  .login-header p {
    font-size: 17px;
  }

  .login-field {
    height: 50px;
  }

  .login-field input {
    font-size: 16px;
  }

  .login-submit {
    height: 52px;
    font-size: 19px;
  }

  .login-divider {
    margin-top: 16px;
  }

  .enterprise-icon {
    width: 54px;
    height: 54px;
  }

  .admin-contact {
    margin-top: 22px;
    font-size: 15px;
  }

  .page-shell {
    --right-min-width: 420px;
    --workspace-width: minmax(360px, 44vw);
    grid-template-columns:
      var(--left-width)
      var(--workspace-width)
      var(--splitter-width)
      minmax(var(--right-min-width), 1fr);
  }

  .left-panel {
    padding: 18px 8px;
  }

  .right-panel {
    padding: 32px 30px 16px 30px;
    gap: 12px;
  }

  .topbar {
    grid-template-columns: 300px minmax(320px, 1fr);
    gap: 22px;
  }

  .feature-list {
    min-height: 610px;
    margin-top: 34px;
  }

  .feature-section {
    grid-template-columns: minmax(315px, 0.9fr) minmax(330px, 1fr);
    gap: 12px;
  }

  .feature-head {
    gap: 22px;
  }

  .feature-copy-block h1 {
    font-size: 25px;
  }

  .feature-number {
    font-size: 25px;
  }

  .feature-copy-block p {
    font-size: 13px;
  }

  .option-card {
    height: 56px;
    gap: 10px;
    padding-inline: 12px;
  }

  .option-icon {
    width: 34px;
    height: 34px;
  }

  .visual-grid {
    gap: 14px;
  }

  .video-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: none;
  }

  .option-card.compact {
    grid-template-columns: 34px minmax(0, 1fr) 10px;
    gap: 8px;
    padding-inline: 12px;
    height: 56px;
  }

  .compact .card-label {
    font-size: 13px;
    overflow: visible;
  }

  .compact .option-icon {
    width: 34px;
    height: 34px;
  }

  .compact .chevron {
    width: 14px;
    height: 14px;
  }

  .bubble {
    font-size: 14px;
    line-height: 1.52;
  }

  .message-row + .message-row {
    margin-top: 12px;
  }

  .chat-stream {
    padding-top: 0;
  }

  .bot-bubble {
    padding: 14px 18px;
  }

  .user-bubble {
    padding: 12px 18px;
  }

  .brand-avatar,
  .user-avatar {
    width: 40px;
    height: 40px;
  }

  .prompt-input {
    height: 42px;
    border-radius: 10px;
    padding-left: 14px;
  }

  .prompt-input input {
    font-size: 13px;
  }

  .send-button {
    width: 34px;
    height: 34px;
  }

  .notice {
    margin-top: 10px;
    font-size: 12px;
  }

  .page-shell.is-left-compact .left-panel {
    padding: 30px 24px 20px;
  }

  .page-shell.is-left-narrow .left-panel {
    padding: 24px 18px 18px;
  }

  .page-shell.is-left-mini .left-panel {
    padding: 20px 14px 16px;
  }

  .page-shell.is-left-compact .topbar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-shell.is-left-compact .feature-list {
    min-height: 0;
    margin-top: 22px;
    gap: 12px;
    grid-template-rows: none;
  }

  .page-shell.is-left-compact .feature-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 14px;
  }

  .page-shell.is-left-compact .feature-head {
    gap: 14px;
  }

  .page-shell.is-left-compact .feature-copy-block h1 {
    font-size: 20px;
  }

  .page-shell.is-left-compact .feature-number {
    font-size: 20px;
  }

  .page-shell.is-left-compact .feature-copy-block p {
    font-size: 12px;
    white-space: normal;
  }

  .page-shell.is-left-compact .copy-options,
  .page-shell.is-left-compact .visual-grid,
  .page-shell.is-left-compact .video-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-shell.is-left-compact .option-card,
  .page-shell.is-left-compact .option-card.wide,
  .page-shell.is-left-compact .option-card.compact {
    height: 44px;
    grid-template-columns: 32px minmax(0, 1fr) 14px;
    gap: 8px;
    padding-inline: 10px;
  }

  .page-shell.is-left-narrow .feature-icon {
    width: 42px;
    height: 42px;
  }

  .page-shell.is-left-narrow .option-card,
  .page-shell.is-left-narrow .option-card.wide,
  .page-shell.is-left-narrow .option-card.compact {
    height: 40px;
    grid-template-columns: 30px minmax(0, 1fr) 14px;
    padding-inline: 8px;
  }

  .page-shell.is-left-mini .feature-copy-block p {
    display: none;
  }

  .page-shell.is-workspace-collapsed .workspace-panel,
  .page-shell.is-chat-collapsed .right-panel,
  .page-shell.is-preview-workspace-edge .workspace-panel,
  .page-shell.is-preview-chat-edge .right-panel {
    visibility: hidden;
    opacity: 0;
    padding: 0;
    pointer-events: none;
  }
}

@media (max-width: 1100px) {
  html {
    min-width: 0;
  }

  body {
    overflow: hidden;
  }

  .login-screen {
    position: fixed;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .login-brand-panel {
    min-height: 30dvh;
    place-items: end start;
    padding: 34px 24px;
  }

  .login-brand-content {
    width: min(100%, 520px);
    gap: 14px;
    transform: none;
  }

  .login-logo-row {
    gap: 14px;
  }

  .login-logo {
    width: 48px;
    height: 40px;
  }

  .login-logo-row strong {
    font-size: 32px;
  }

  .login-brand-content h1 {
    font-size: 34px;
  }

  .login-brand-content p {
    gap: 12px;
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .login-brand-content p span {
    width: 34px;
  }

  .login-form-panel {
    align-items: start;
    padding: 28px 22px 42px;
  }

  .login-header {
    margin-bottom: 12px;
  }

  .login-header h2 {
    font-size: 32px;
  }

  .login-header p,
  .enterprise-login p {
    font-size: 16px;
  }

  .login-field {
    height: 50px;
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    gap: 10px;
    padding-inline: 16px;
  }

  .login-field input,
  .login-check,
  .login-link {
    font-size: 16px;
  }

  .login-submit {
    height: 52px;
    font-size: 18px;
  }

  .enterprise-login-options {
    gap: 14px;
  }

  .enterprise-icon {
    width: 58px;
    height: 58px;
  }

  .enterprise-login-options button {
    font-size: 14px;
  }

  .admin-contact {
    margin-top: 22px;
    font-size: 16px;
  }

  .page-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    overflow: hidden;
    --left-width: 64px;
  }

  .splitter {
    display: none;
  }

  .workspace-panel {
    display: none;
  }

  .left-panel {
    height: 100dvh;
    padding: 14px 4px;
  }

  .rail-logo,
  .rail-item {
    width: 52px;
  }

  .rail-button {
    width: 42px;
    height: 42px;
  }

  .rail-flyout {
    left: 58px;
    width: min(232px, calc(100vw - 74px));
  }

  .right-panel {
    border-left: 0;
    border-top: 0;
  }
}
