:root {
  --ui-font: Inter, "TikTokDisplayFont", "TikTokTextFont", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text-strong: #161823;
  --text-normal: #1f1f1f;
  --text-muted: #707070;
  --text-soft: #8a8a8a;
  --topbar-height: 60px;
  --topbar-text: #171717;
  --topbar-muted: rgba(23,23,23,.68);
  --font-hero: clamp(30px, 2.05vw, 42px);
  --font-tab: clamp(15px, 1.02vw, 21px);
  --font-copy: clamp(15px, 1vw, 20px);
  --font-top-brand: clamp(24px, 1.58vw, 30px);
  --font-top-title: clamp(14px, .9vw, 17px);
  --font-top-pill: clamp(12px, 0.78vw, 14px);
  --font-rail: clamp(11px, 0.68vw, 14px);
  --wb-text: #171717;
  --wb-muted: #4f4f49;
  --wb-subtle: #85857d;
  --wb-page: #f1f0ec;
  --wb-panel: #fcfcfb;
  --wb-card: #ffffff;
  --wb-soft: #f4f3ee;
  --wb-border-subtle: rgba(0, 0, 0, 0.055);
  --wb-border: rgba(0, 0, 0, 0.085);
  --wb-shadow-low: 0 1px 3px rgba(0, 0, 0, 0.04);
  --wb-shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.085);
  --wb-green: #3f7356;
  --wb-green-bg: #edf5f0;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle, rgba(52, 52, 46, 0.10) 1px, transparent 1.2px),
    linear-gradient(180deg, #fffdf8 0%, #f7f4ec 58%, #f4efe6 100%);
  background-size: 18px 18px, 100% 100%;
  color: #1d1d1f;
  font-family: var(--ui-font);
  font-size: 14px;
}

button { font: inherit; cursor: pointer; }
.shell { min-height: 100vh; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: var(--topbar-text);
  padding: 0 18px 0 24px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

.top-left, .top-right, .brand, .profile-pill {
  display: flex;
  align-items: center;
}

.top-left { gap: 14px; }
.top-right { gap: 8px; }

.brand { gap: 11px; white-space: nowrap; }
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.brand strong { font-size: var(--font-top-brand); font-weight: 820; letter-spacing: 0; }
.brand span:last-child {
  margin-left: 0.24vw;
  color: var(--topbar-muted);
  font-size: var(--font-top-title);
  font-weight: 400;
}

.top-pill, .profile-pill {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(248, 250, 252, 0.9);
  color: #22221f;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.top-pill {
  height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: var(--font-top-pill);
  font-weight: 600;
}

.language-menu {
  position: relative;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 138px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
}

.language-dropdown button {
  display: block;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #161823;
  padding: 0 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 680;
}

.language-dropdown button.active,
.language-dropdown button:hover {
  background: #f1f0ec;
}

.profile-pill {
  height: 34px;
  gap: 8px;
  border-radius: 999px;
  padding: 0 12px 0 4px;
}

.profile-pill span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #0c91e8;
  font-size: clamp(15px, 1.07vw, 20px);
  font-weight: 680;
}

.profile-pill strong {
  max-width: 8.3vw;
  overflow: hidden;
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-pill em { color: rgba(23,23,23,.56); font-style: normal; }

.profile-pill.logged-out {
  padding-left: 0.7vw;
}

.profile-pill.logged-out span {
  background: #ece9df;
  color: #5a554d;
}

.side-rail {
  position: fixed;
  z-index: 10;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  width: 4.69vw;
  padding-top: 11.2vh;
  border-right: 1px solid rgba(52, 52, 46, 0.08);
  background: rgba(255, 253, 248, 0.58);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.rail-item {
  display: grid;
  width: 3.71vw;
  min-height: 7.15vh;
  margin: 0 auto 1.79vh;
  place-items: center;
  border: 0;
  border-radius: 0.44vw;
  background: transparent;
  color: #424545;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rail-item.active {
  background: rgba(255, 255, 253, 0.78);
  box-shadow: 0 8px 22px rgba(33, 30, 24, 0.035);
}

.rail-item:hover {
  background: rgba(255,255,253,.64);
  color: #161823;
}

.rail-icon {
  display: grid;
  width: 1.34vw;
  height: 1.34vw;
  place-items: center;
  line-height: 1;
}

.rail-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rail-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-item.active .rail-icon {
  color: #111;
}

.rail-item strong {
  max-width: 3.1vw;
  font-size: var(--font-rail);
  font-weight: 620;
  line-height: 1.18;
  text-align: center;
}

.rail-separator {
  width: 2.34vw;
  height: 1px;
  margin: 0.47vh auto 2.35vh;
  background: #d7d7d7;
}

.app-view {
  display: none;
}

.studio-main.app-view.active {
  display: block;
}

.studio-main {
  min-height: 100vh;
  padding-top: 21.26vh;
  padding-left: 4.69vw;
}

.studio-main h1 {
  margin: 0 0 1.08vh;
  text-align: center;
  color: var(--text-strong);
  font-size: var(--font-hero);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.hero-subcopy {
  max-width: 42vw;
  margin: 0 auto 3.2vh;
  color: rgba(22, 24, 35, .58);
  text-align: center;
  font-size: clamp(14px, .9vw, 18px);
  font-weight: 520;
  line-height: 1.55;
}

.workspace-view,
.library-view {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding-top: var(--topbar-height);
  padding-left: 4.69vw;
  background: #f8f8f7;
}

.workspace-view.app-view.active {
  display: grid;
  grid-template-columns: 17.6vw minmax(0, 1fr);
}

.workspace-view[data-view="growth"].app-view.active {
  grid-template-columns: minmax(0, 1fr);
  background: #fbfbfa;
}

.addock-embed-shell {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--topbar-height));
  grid-template-rows: minmax(0, 1fr);
  background: #f7f7f5;
}

.addock-growth-frame {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--topbar-height));
  border: 0;
  background: #fff;
}

.addock-embed-hint {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 360px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,253,.96);
  box-shadow: 0 18px 48px rgba(0,0,0,.12);
  padding: 14px 16px;
}

.addock-embed-hint strong {
  display: block;
  color: #17171c;
  font-size: 13px;
  font-weight: 800;
}

.addock-embed-hint p {
  margin: 6px 0 0;
  color: #656960;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.5;
}

.growth-platforms {
  position: relative;
  min-height: calc(100vh - var(--topbar-height));
  border-right: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,253,.82);
  padding: 2.2vh 1.1vw;
}

.growth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3.4vh;
  color: #171717;
}

.growth-brand span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #f1f1ef;
  font-size: 16px;
}

.growth-brand strong {
  font-size: clamp(19px, 1.42vw, 27px);
  font-weight: 780;
}

.create-project {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 2vh;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 10px;
  background: #fff;
  color: #171717;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 720;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.platform-kicker {
  display: block;
  margin: 1.8vh 0 .8vh;
  color: #9a9a94;
  font-size: 12px;
  font-weight: 680;
}

.platform-row {
  display: grid;
  width: 100%;
  min-height: 36px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #55524d;
  padding: 4px 8px;
  text-align: left;
}

.platform-row.active {
  background: #f0eee9;
  color: #1e1e1e;
}

.platform-row > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.platform-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-row em {
  border-radius: 999px;
  background: #f4f0e8;
  color: #9b7a34;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 680;
}

.platform-row.muted em {
  background: #eeeeec;
  color: #8e8d87;
}

.shopify-mark { color: #4b8b37; }
.tiktok-mark { color: #202023; }
.meta-mark { color: #1674ff; }
.google-mark { color: #4b79ef; }

.platform-settings {
  position: absolute;
  left: 1.1vw;
  right: 1.1vw;
  bottom: 2vh;
  border: 0;
  background: transparent;
  color: #55524d;
  text-align: left;
  font-size: 13px;
  font-weight: 680;
}

.growth-chat-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: calc(100vh - var(--topbar-height));
  border-right: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 3vh 2.2vw 2.4vh;
}

.growth-chat-head {
  margin-bottom: 22px;
}

.growth-chat-head span {
  display: block;
  margin-bottom: 8px;
  color: #9a968e;
  font-size: 12px;
  font-weight: 760;
}

.growth-chat-head h2 {
  margin: 0;
  color: #17171c;
  font-size: clamp(26px, 2.1vw, 36px);
  font-weight: 780;
  line-height: 1.18;
}

.growth-dialog {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 18px 0 26px;
}

.growth-message {
  max-width: 78%;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.035);
}

.growth-message.user {
  align-self: flex-end;
  background: #f5f3ef;
}

.growth-message.compact {
  max-width: 84%;
}

.growth-message span {
  display: block;
  margin-bottom: 8px;
  color: #9aa2aa;
  font-size: 12px;
  font-weight: 740;
}

.growth-message p {
  margin: 0;
  color: #4a4742;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.72;
}

.growth-chat-composer {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
}

.growth-chat-composer textarea {
  display: block;
  width: 100%;
  min-height: 82px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202023;
  font: inherit;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.65;
}

.growth-chat-composer textarea::placeholder {
  color: #a2a8b1;
}

.growth-chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.growth-chat-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7d7972;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 660;
}

.growth-chat-actions .growth-send-button {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 20px;
}

.growth-workzone {
  min-height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  background: rgba(255,255,255,.86);
  padding: 2.4vh 1.25vw;
}

.workzone-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workzone-head h2 {
  margin: 0;
  color: #171717;
  font-size: 19px;
  font-weight: 780;
}

.workzone-head span {
  border-radius: 999px;
  background: #e8f4e9;
  color: #2a9a56;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 720;
}

.growth-workzone > p {
  margin: 10px 0 20px;
  color: #aaa7a0;
  font-size: 12px;
  font-weight: 520;
}

.workzone-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.workzone-tabs button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9a968e;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
}

.workzone-tabs button.active {
  background: #f1eee8;
  color: #171717;
}

.workzone-search {
  min-height: 40px;
  margin-bottom: 26px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 11px;
  background: #fff;
  color: #b1aea7;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 560;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.work-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 13px;
  background: #fff;
  padding: 14px;
}

.work-card > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #cde8d7;
  border-radius: 9px;
  color: #4d9d6d;
}

.work-card strong {
  display: block;
  margin-bottom: 5px;
  color: #171717;
  font-size: 14px;
  font-weight: 780;
}

.work-card p {
  margin: 0 0 12px;
  color: #99958e;
  font-size: 12px;
  font-weight: 540;
}

.work-card em {
  display: inline-block;
  border-radius: 999px;
  background: #f0efed;
  color: #8b887f;
  padding: 5px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.work-card.complete em {
  background: #e5f4e8;
  color: #249653;
}

.media-work-card {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.media-work-card video {
  width: 58px;
  height: 78px;
  border-radius: 9px;
  object-fit: cover;
  background: #ecebe8;
}

.work-card button {
  align-self: end;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  background: #fff;
  color: #55524d;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 680;
}

.workspace-panel {
  height: calc(100vh - var(--topbar-height));
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.78);
  padding: 2.55vh 1.22vw;
}

.workspace-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.35vh;
}

.workspace-panel-head strong {
  color: #171717;
  font-size: clamp(15px, .98vw, 19px);
  font-weight: 760;
}

.workspace-panel-head button {
  border: 0;
  background: transparent;
  color: #202023;
  font-size: 18px;
}

.workspace-new {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #202023;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 560;
}

.workspace-new.active {
  background: #ededec;
}

.workspace-new::first-letter,
.recent-item img,
.recent-asset-thumb {
  border-radius: 7px;
}

.workspace-kicker {
  display: block;
  margin: 2.2vh 0 1vh;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 560;
}

.recent-creation-list {
  display: grid;
  gap: 8px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #202023;
  padding: 7px 6px;
  font-size: 13px;
  font-weight: 520;
  text-align: left;
  cursor: pointer;
}

.recent-item:hover {
  background: #ededec;
}

.recent-item img,
.recent-item video,
.recent-asset-thumb {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: cover;
  background: #e8e8e4;
}

.recent-asset-thumb {
  display: grid;
  place-items: center;
  color: #77746d;
  font-size: 14px;
  font-weight: 780;
}

.recent-item span {
  display: block;
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item em {
  display: block;
  color: #92928d;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}

.recent-empty-state {
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.4;
}

.chat-workspace {
  position: relative;
  display: grid;
  height: calc(100vh - var(--topbar-height));
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  padding: 7vh 5vw 3.2vh;
}

.chat-workspace h2 {
  margin: 0 0 3vh;
  color: #17171c;
  font-size: clamp(26px, 2vw, 38px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.16;
  text-align: center;
}

.chat-composer,
.generation-composer {
  width: min(69vw, 1220px);
  min-height: 18vh;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  padding: 22px 26px 18px;
  box-shadow: 0 12px 42px rgba(0,0,0,.055);
}

.chat-composer p,
.generation-composer p {
  margin: 0;
  color: #98a0aa;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 500;
  line-height: 1.8;
}

.generation-composer {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0 22px;
  align-self: end;
  justify-self: center;
}

.generation-input-area {
  min-width: 0;
}

.generation-input-area textarea {
  width: 100%;
  min-height: 76px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202023;
  font: inherit;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 520;
  line-height: 1.58;
}

.generation-input-area textarea::placeholder {
  color: #98a0aa;
}

.reference-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #eef9f7;
  color: #008f88;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 760;
}

.reference-card {
  width: 72px;
  height: 88px;
  border: 0;
  border-radius: 4px;
  background: #f0f0ef;
  color: #9aa2aa;
  transform: rotate(-8deg);
  font-size: 22px;
  font-weight: 460;
}

.reference-card span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
}

.composer-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(188px, 1.35fr) minmax(176px, 1.18fr) minmax(108px, .72fr) minmax(132px, .82fr) minmax(126px, .78fr) 50px;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.composer-actions button,
.composer-actions label {
  min-height: 38px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 9px;
  background: rgba(255,255,255,.88);
  color: #252525;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 620;
}

.composer-actions label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 0 12px;
  white-space: nowrap;
}

.composer-actions label span {
  flex: 0 0 auto;
  color: #7e7b75;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.18;
  white-space: nowrap;
}

.composer-actions select {
  min-width: 0;
  max-width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f1f1f;
  font: inherit;
  font-size: 12.5px;
  font-weight: 720;
}

.composer-actions .composer-send {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #dedfe2;
  color: #fff;
  font-size: 24px;
}

@media (max-width: 1180px) {
  .chat-composer,
  .generation-composer {
    width: min(88vw, 1040px);
  }

  .composer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 56px;
  }

  .composer-actions .composer-send {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: end;
  }
}

.asset-top-button {
  position: absolute;
  top: 3.2vh;
  right: 3.4vw;
  min-height: 44px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  color: #161823;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.library-view.app-view.active {
  display: block;
  background: #fff;
}

.library-main {
  min-width: 0;
  padding: 18px 24px 36px;
}

.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.library-head h2 {
  margin: 0;
  color: #171717;
  font-size: 18px;
  font-weight: 760;
}

.library-head button {
  min-height: 34px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 7px;
  background: #fff;
  color: #1f1f1f;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 620;
  box-shadow: 0 3px 10px rgba(0,0,0,.045);
}

.asset-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-action-bar span {
  color: #77746d;
  font-size: 12px;
  font-weight: 720;
}

.asset-action-bar button {
  min-height: 32px;
  border: 1px solid rgba(22,24,35,.1);
  border-radius: 8px;
  background: #fff;
  color: #222;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.asset-action-bar button.primary {
  border-color: transparent;
  background: #141417;
  color: #fff;
}

.asset-action-bar button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.generation-asset-actions {
  position: absolute;
  z-index: 8;
  top: 22px;
  right: 96px;
  max-width: min(58vw, 520px);
  justify-content: flex-end;
}

.library-tabs,
.library-subtabs {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.library-tabs button,
.library-subtabs button {
  border: 0;
  background: transparent;
  color: #777;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
}

.library-tabs button.active {
  border-radius: 4px;
  background: #202023;
  color: #fff;
}

.library-subtabs button.active {
  color: #171717;
  font-weight: 760;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 16px;
  max-width: 1260px;
  margin-top: 18px;
}

.asset-card {
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.asset-card.selected,
.generation-video-card.selected {
  border-color: rgba(0, 170, 161, .72);
  box-shadow: 0 0 0 3px rgba(0, 170, 161, .14), 0 12px 30px rgba(0,0,0,.08);
}

.media-select-button {
  position: absolute;
  z-index: 8;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(17,17,17,.48);
  color: #fff;
  padding: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.selected > .media-select-button,
.media-select-button:hover {
  border-color: transparent;
  background: #00aaa1;
}

.asset-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.asset-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ecebe8;
}

.asset-card {
  position: relative;
}

.asset-card b {
  position: absolute;
  top: 34%;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.asset-card div {
  display: grid;
  gap: 10px;
  padding: 11px 12px 13px;
}

.asset-card span {
  min-height: 34px;
  color: #777;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.45;
}

.asset-card em {
  justify-self: start;
  border-radius: 999px;
  background: #ddf6e9;
  color: #21a363;
  padding: 4px 9px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.asset-card small {
  color: #00aaa1;
  font-size: 11px;
  font-weight: 780;
}

.asset-card.generating-asset {
  border-color: rgba(0,167,160,.22);
  box-shadow: 0 8px 24px rgba(0,167,160,.09);
}

.asset-card.generating-asset video {
  filter: saturate(.88) brightness(.92);
}

.asset-card.generating-asset b {
  border: 0;
  background: rgba(17,17,17,.72);
  font-size: 12px;
}

.asset-card.generating-asset em {
  background: #fff4df;
  color: #9a6d18;
}

.library-empty-state {
  display: grid;
  min-height: 220px;
  grid-column: 1 / -1;
  place-items: center;
  border: 1px dashed rgba(22,24,35,.14);
  border-radius: 10px;
  background: #fbfaf7;
  color: #77746d;
  font-size: 14px;
  font-weight: 680;
}

.generation-thread {
  width: min(69vw, 1220px);
  min-height: 0;
  overflow-y: auto;
  margin: 0 auto 14px;
  padding: 2px 4px 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.generation-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.generation-message-user {
  justify-content: flex-end;
}

.generation-message-user p {
  width: min(34vw, 620px);
  margin: 0;
  border-radius: 16px;
  background: #f4f3ef;
  color: #33312d;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.55;
}

.generation-message-assistant {
  justify-content: flex-start;
}

.generation-message-avatar {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(22,24,35,.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.generation-status-message {
  width: min(30vw, 520px);
  border: 1px solid rgba(0,167,160,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  padding: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.055);
}

.generation-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.generation-task-head span {
  color: #00a7a0;
  font-size: 12px;
  font-weight: 780;
}

.generation-task-head strong {
  display: block;
  margin: 5px 0;
  color: #161823;
  font-size: 15px;
  font-weight: 780;
}

.generation-config-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.generation-config-line span {
  border-radius: 999px;
  background: #f1f0ed;
  color: #605d57;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 720;
}

.generation-task-head p,
.generation-task-head em {
  margin: 0;
  color: #85827a;
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
}

.generation-task-head em {
  max-width: 220px;
  text-align: right;
  line-height: 1.35;
  white-space: normal;
}

.generation-task-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.generation-video-body {
  grid-template-columns: repeat(auto-fit, minmax(104px, 128px));
  align-items: start;
}

.generation-video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22,24,35,.08);
  border-radius: 12px;
  background: #f4f3ef;
}

.generation-video-card.playable-video,
.generation-video-card video {
  cursor: zoom-in;
}

.generation-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  filter: brightness(.9);
}

.generation-video-placeholder,
.asset-video-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 9 / 16;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,0)),
    #eeeee9;
  color: #8c918f;
  padding: 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.asset-video-placeholder {
  font-size: 22px;
}

.generation-video-card span {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: rgba(17,17,17,.72);
  color: #fff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 760;
}

.video-expand-button {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, .78);
  color: #fff;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 780;
  cursor: zoom-in;
}

.video-expand-button:hover {
  background: #00aaa1;
}

.generation-video-card p {
  margin: 0;
  padding: 8px;
  color: #77746d;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.35;
}

.generation-video-card.generating::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.12)),
    radial-gradient(circle at 50% 105%, rgba(0, 181, 166, .14), transparent 44%);
  pointer-events: none;
}

.generation-video-card.generating .generation-video-placeholder {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, #efefeb 0%, #e4e5e0 44%, #cfd3cd 100%);
  color: #737b78;
}

.generation-video-card.generating .generation-video-placeholder::before,
.generation-video-card.generating .generation-video-placeholder::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.generation-video-card.generating .generation-video-placeholder::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.58) 48%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(0,181,166,.06), rgba(104,124,255,.08));
  width: 56%;
  filter: blur(1px);
  transform: skewX(-14deg) translateX(-115%);
  animation: generationLightPass 2.7s ease-in-out infinite;
}

.generation-video-card.generating .generation-video-placeholder::after {
  opacity: .45;
  background-image:
    linear-gradient(rgba(255,255,255,.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px),
    radial-gradient(circle at 50% 86%, rgba(0,181,166,.28), transparent 32%);
  background-size: 100% 18px, 18px 100%, 100% 100%;
  animation: generationSurfaceDrift 5.4s linear infinite;
}

.generation-video-card.generating b {
  animation: generationBadgePulse 1.5s ease-in-out infinite;
}

@keyframes generationLightPass {
  0% {
    opacity: 0;
    transform: skewX(-14deg) translateX(-115%);
  }
  20% {
    opacity: .72;
  }
  58% {
    opacity: .5;
  }
  100% {
    opacity: 0;
    transform: skewX(-14deg) translateX(205%);
  }
}

@keyframes generationSurfaceDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 18px, 18px 0, 0 0; }
}

@keyframes generationBadgePulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.12);
  }
}

.generation-task-preview {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ecebe8;
}

.generation-task-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  filter: brightness(.82);
}

.generation-task-preview b {
  position: absolute;
  inset: auto 10px 10px auto;
  border-radius: 999px;
  background: rgba(17,17,17,.72);
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
}

.generation-video-card b {
  position: absolute;
  z-index: 2;
  inset: auto 8px 8px auto;
  border-radius: 999px;
  background: rgba(17,17,17,.72);
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 780;
}

.generation-task-body pre {
  max-height: 108px;
  overflow: auto;
  margin: 0;
  border-radius: 10px;
  background: #111;
  color: #f4f4f0;
  padding: 9px 11px;
  white-space: pre-wrap;
  font: 10.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.generation-step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.generation-step-list li {
  display: grid;
  gap: 4px;
  min-width: 0;
  opacity: .48;
}

.generation-step-list li span {
  height: 3px;
  border-radius: 999px;
  background: rgba(22,24,35,.12);
}

.generation-step-list li.done,
.generation-step-list li.active {
  opacity: 1;
}

.generation-step-list li.done span,
.generation-step-list li.active span {
  background: linear-gradient(90deg, #00d5c8, #8b77ff);
}

.generation-step-list li em {
  overflow: hidden;
  color: #77746d;
  font-size: 10px;
  font-style: normal;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-inline-progress {
  width: min(280px, 100%);
  margin-top: 8px;
}

.generation-provider-note {
  margin: 9px 0 0;
  color: #8b8f98;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
}

.prompt-card {
  width: 58vw;
  min-height: 15vh;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.input-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.18vw;
  margin: 0 0 2.55vh;
  border: 1px solid rgba(22,24,35,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  padding: 0.18vw;
  box-shadow: 0 6px 14px rgba(33,30,24,.045), inset 0 1px 0 rgba(255,255,255,.85);
  transform: translateX(-50%);
  position: relative;
  left: 50%;
}

.input-mode-tabs button {
  display: inline-flex;
  align-items: center;
  height: 3.7vh;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(22,24,35,.54);
  padding: 0 0.9vw;
  font-size: clamp(13px, 0.8vw, 16px);
  font-weight: 680;
  white-space: nowrap;
}

.input-mode-tabs button.active {
  background: #fff;
  color: #111;
  box-shadow: 0 5px 12px rgba(20,20,20,.07);
}

.link-input-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  height: 7.05vh;
  border: 1px solid rgba(22,24,35,.1);
  border-radius: 0.78vw;
  background: rgba(255,255,255,.92);
  box-shadow:
    0 12px 28px rgba(30,48,64,.07),
    0 0 30px rgba(139,119,255,.065),
    0 0 42px rgba(0,165,161,.045);
  padding: 0 0.92vw 0 1.2vw;
}

.link-input-shell strong {
  display: inline-flex;
  align-items: center;
  height: 3.85vh;
  border-right: 1px solid rgba(22,24,35,.1);
  color: #111;
  padding-right: 0.86vw;
  font-size: clamp(15px, 1vw, 21px);
  font-weight: 760;
}

.link-input-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111;
  padding: 0 0.9vw;
  font-size: clamp(15px, 0.9vw, 20px);
  font-weight: 520;
  outline: none;
}

.link-input-shell input::placeholder {
  color: rgba(126,128,142,.48);
}

.link-submit-button {
  display: grid;
  width: 3.05vw;
  height: 5.2vh;
  place-items: center;
  border: 0;
  border-radius: 0.55vw;
  background: #191c20;
  color: #fff;
  font-size: clamp(19px, 1.2vw, 27px);
  font-weight: 650;
  box-shadow: 0 9px 18px rgba(0,0,0,.14);
}

.upload-drop-shell {
  display: none;
  width: 100%;
}

.prompt-card[data-input-mode="upload"] .link-input-shell {
  display: none;
}

.prompt-card[data-input-mode="upload"] .upload-drop-shell {
  display: block;
}

.upload-drop-button {
  display: grid;
  width: 100%;
  min-height: 7.05vh;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.1vh 0.78vw;
  border: 1px dashed rgba(22,24,35,.16);
  border-radius: 0.78vw;
  background: rgba(255,255,255,.86);
  box-shadow:
    0 12px 28px rgba(30,48,64,.07),
    0 0 32px rgba(0,165,161,.045);
  color: #161823;
  padding: 1.05vh 1.15vw;
  text-align: left;
}

.upload-drop-button span {
  display: grid;
  grid-row: 1 / 3;
  width: 2.9vw;
  height: 5.2vh;
  place-items: center;
  border-radius: 0.62vw;
  background: #f2f2f1;
  color: #707070;
  font-size: clamp(24px, 1.65vw, 36px);
  font-weight: 280;
  line-height: 1;
}

.upload-drop-button strong {
  overflow: hidden;
  font-size: clamp(15px, 0.92vw, 20px);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-drop-button em {
  overflow: hidden;
  color: rgba(22,24,35,.52);
  font-size: clamp(12px, 0.72vw, 15px);
  font-style: normal;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25vh;
}

.import-row button {
  border: 0;
  background: transparent;
  color: rgba(22,24,35,.62);
  font-size: clamp(12px, 0.72vw, 15px);
  font-weight: 620;
}

.import-row button::before {
  content: "▱";
  margin-right: 0.42vw;
}

.select-row { display: none; gap: 0.54vw; }
.select-row button {
  height: 3.01vh;
  border: 1px solid #dddddb;
  border-radius: 999px;
  background: #fff;
  color: #242424;
  padding: 0 0.63vw;
  font-size: 0.78vw;
  font-weight: 560;
}

.send-row {
  display: flex;
  align-items: center;
  gap: 0.63vw;
  color: #737373;
  font-size: 0.73vw;
}

.send-button {
  display: grid;
  width: 1.66vw;
  height: 3.2vh;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #d9dcdf;
  color: #fff;
  font-size: 1.07vw;
  font-weight: 720;
}

.template-wall {
  position: relative;
  width: calc(100% - 2.4vw);
  margin: 5.2vh 1.2vw 0;
}

.template-grid {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9vw;
  align-items: start;
}

.video-grid-tabs {
  grid-column: 1 / -1;
  display: inline-flex;
  justify-self: start;
  gap: 0.34vw;
  margin: 0 0 1.05vh;
  border: 1px solid rgba(22,24,35,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  padding: 0.24vw;
  box-shadow: 0 10px 24px rgba(33,30,24,.05);
}

.video-grid-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.38vw;
  height: 3.7vh;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(22,24,35,.58);
  padding: 0 1vw;
  font-size: clamp(13px, 0.86vw, 16px);
  font-weight: 760;
}

.video-grid-tabs button.active {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.video-grid-tabs em {
  min-width: 1.2vw;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  padding: 0.08vh 0.36vw;
  font-size: 0.68em;
  font-style: normal;
  text-align: center;
}

.video-section-label {
  display: grid;
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px;
  color: #161823;
  font-size: clamp(13px, 0.86vw, 16px);
  font-weight: 760;
  letter-spacing: 0;
}

.upload-section-label {
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 2px 0 -4px;
}

.upload-section-label::after {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 52, 46, 0.2), rgba(52, 52, 46, 0.08));
  content: "";
}

.upload-section-label strong {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  height: 24px;
  border-radius: 999px;
  background: rgba(17,17,17,.06);
  color: rgba(22,24,35,.68);
  padding: 0 10px;
  font-size: clamp(11px, 0.68vw, 13px);
  font-weight: 560;
  white-space: nowrap;
}

.example-section-label {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin: 14px 0 4px;
}

.upload-date-label {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1vw;
  margin: 1.6vh 0 -0.1vh;
}

.upload-date-label h2 {
  margin: 0;
  color: #11141a;
  font-size: clamp(30px, 2.25vw, 46px);
  font-weight: 520;
  letter-spacing: 0;
}

.upload-date-label strong {
  display: inline-flex;
  align-items: center;
  min-height: 2.55vh;
  border: 1px solid rgba(22,24,35,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: rgba(22,24,35,.58);
  padding: 0 0.82vw;
  font-size: clamp(11px, 0.7vw, 13px);
  font-weight: 680;
  white-space: nowrap;
}

.upload-empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 18vh;
  place-items: center;
  border: 1px dashed rgba(22,24,35,.14);
  border-radius: 0.9vw;
  background: rgba(255,255,255,.52);
  color: rgba(22,24,35,.48);
  font-size: clamp(14px, 0.9vw, 17px);
  font-weight: 620;
}

.video-section-label span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border: 1px solid rgba(22, 24, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  padding: 0 13px;
  box-shadow: 0 7px 18px rgba(33, 30, 24, 0.04);
  color: #161823;
  font-weight: 760;
  white-space: nowrap;
}

.video-section-label i {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22,24,35,0.06), rgba(22,24,35,0.18), rgba(22,24,35,0.06));
}

.template-wall::after {
  position: absolute;
  top: calc(44vh + 0.9vw);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  border-radius: 0.72vw;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.48));
  pointer-events: none;
  content: "";
}

.template-wall:has(.template-grid[data-active-tab="uploads"])::after {
  display: none;
}

.upload-match-row {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9vw;
  align-items: start;
  border-radius: 0.9vw;
  background: linear-gradient(90deg, rgba(255,253,248,.18) 0 16%, rgba(0,167,160,.04) 16.5%, rgba(0,167,160,.018) 100%);
  padding: 0.42vw;
}

.upload-match-row::before {
  position: absolute;
  top: 0.28vw;
  bottom: 0.28vw;
  left: calc((100% - 4.5vw) / 6 + 0.73vw);
  z-index: 2;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,167,160,.34), transparent);
  content: "";
  pointer-events: none;
}

.template-intro, .template-card {
  position: relative;
  overflow: hidden;
  height: 44vh;
  border-radius: 0.72vw;
}

.template-intro { display: none; }

.template-intro {
  background: linear-gradient(180deg, #63c8d6 0%, #2463ed 100%);
  color: #fff;
  padding: 2.35vh 1.12vw;
}

.template-intro h2 {
  margin: 0;
  font-size: 2.34vw;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.template-card { background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), linear-gradient(135deg, #d6c4a0, #667b83); }
.template-card.product { background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.2)), linear-gradient(135deg, #e2b388, #5e463c); }
.template-card.style { background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), linear-gradient(135deg, #ced2d3, #7c8790); }
.template-card.viral { background: linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)), linear-gradient(135deg, #7c9879, #d0b38f); }

.template-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74);
  transform: scale(1.01);
}

.template-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transform: scale(1.01);
}

.template-card span {
  position: absolute;
  bottom: 2.15vh;
  left: 0.84vw;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  padding: 0.38vh 0.48vw;
  font-size: 0.68vw;
  font-weight: 720;
}

.performance-strip {
  position: absolute;
  right: 0.72vw;
  bottom: 5.75vh;
  left: 0.72vw;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.24vw;
  padding: 0.42vh 0.36vw;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(13,13,13,.46);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
}

.performance-strip small {
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,.68);
  font-size: clamp(9px, 0.52vw, 11px);
  font-weight: 560;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-strip b {
  display: block;
  margin-top: 0.1vh;
  color: #fff;
  font-size: clamp(10px, 0.58vw, 12px);
  font-weight: 760;
}

.performance-strip.locked-metrics {
  filter: blur(2px);
  opacity: .56;
}

.missing-atoms-strip {
  position: absolute;
  right: 0.72vw;
  bottom: 8.6vh;
  left: 0.72vw;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22vw;
  align-items: center;
  pointer-events: none;
}

.missing-atoms-strip em,
.missing-atoms-strip b {
  display: inline-flex;
  align-items: center;
  min-height: 1.42vw;
  border-radius: 999px;
  padding: 0 0.38vw;
  font-size: clamp(9px, 0.5vw, 11px);
  line-height: 1;
  white-space: nowrap;
}

.missing-atoms-strip em {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(17,17,17,.66);
  color: rgba(255,255,255,.78);
  font-style: normal;
  font-weight: 720;
}

.missing-atoms-strip b {
  border: 1px solid rgba(0,167,160,.28);
  background: rgba(226,255,251,.92);
  color: #007f7a;
  font-weight: 800;
}

.missing-atoms-strip.locked-atoms {
  filter: blur(2px);
  opacity: .58;
}

.card-kind {
  position: absolute;
  top: 1.04vh;
  left: 0.84vw;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  height: 2.2vh;
  border-radius: 999px;
  padding: 0 0.46vw;
  font-size: clamp(10px, 0.62vw, 12px);
  font-style: normal;
  font-weight: 740;
  line-height: 1;
  white-space: nowrap;
}

.upload-kind {
  border: 1px solid rgba(0, 167, 160, 0.28);
  background: rgba(225, 255, 250, 0.94);
  color: #007f7a;
}

.competitor-kind {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(17,17,17,.68);
  color: #fff;
}

.video-card::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3.3vw;
  height: 3.3vw;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  color: #fff;
  content: "▶";
  font-size: 1vw;
  transform: translate(-50%, -50%);
}

.video-card.locked video {
  filter: blur(0.34vw) brightness(0.58);
  transform: scale(1.05);
}

.video-card.locked::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255,255,255,.22);
  content: "";
}

.video-card.locked::after {
  display: none;
}

.video-card.locked span {
  opacity: .38;
}

.video-card.uploaded {
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.12);
}

.video-card.uploaded::after {
  display: none;
}

.video-card.uploaded.processing {
  cursor: default;
}

.video-card.uploaded.processing video {
  filter: brightness(0.62) saturate(0.92);
}

.video-card.uploaded.opening-detail video {
  filter: brightness(0.7) saturate(.9);
}

.video-card.uploaded.opening-detail .upload-overlay {
  display: grid;
  background: rgba(0, 167, 160, 0.74);
}

.upload-overlay {
  position: absolute;
  right: 0.82vw;
  bottom: 1.15vh;
  left: 0.82vw;
  z-index: 3;
  display: grid;
  gap: 0.48vh;
  align-items: center;
  padding: 0.88vh 0.78vw;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(13, 13, 13, 0.62);
  box-shadow: 0 12px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.compact-upload-overlay {
  min-height: 4.4vh;
}

.upload-overlay::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.16) 45%, transparent 58% 100%);
  content: "";
  pointer-events: none;
  transform: translateX(-100%);
  animation: upload-overlay-scan 2.1s ease-in-out infinite;
}

.upload-overlay strong,
.upload-overlay em,
.upload-overlay i,
.upload-overlay small,
.upload-step-current,
.upload-step-list {
  position: relative;
  z-index: 1;
}

.upload-status-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-overlay strong {
  overflow: hidden;
  font-size: clamp(11px, 0.72vw, 13px);
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-overlay em {
  color: rgba(255,255,255,.78);
  font-size: clamp(10px, 0.66vw, 12px);
  font-style: normal;
  font-weight: 560;
}

.upload-overlay small {
  overflow: hidden;
  color: rgba(255,255,255,.66);
  font-size: clamp(8px, 0.5vw, 10px);
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-step-current {
  display: grid;
  gap: 0.2vh;
  min-width: 0;
}

.upload-step-current small {
  color: rgba(255,255,255,.48);
  font-size: clamp(8px, 0.48vw, 10px);
  font-weight: 760;
  letter-spacing: .05em;
}

.upload-step-current b {
  overflow: hidden;
  color: #fff;
  font-size: clamp(10px, 0.62vw, 12px);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-step-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.28vw;
  margin: 0.12vh 0 0;
  padding: 0;
  list-style: none;
}

.upload-step-list li {
  display: grid;
  min-width: 0;
  gap: 0.22vh;
  opacity: .52;
}

.upload-step-list li span {
  display: grid;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: transparent;
  font-size: 0;
}

.upload-step-list li.done span,
.upload-step-list li.active span {
  background: linear-gradient(90deg, #00d5c8, #8b77ff);
}

.upload-step-list li.active {
  opacity: 1;
}

.upload-step-list li em {
  overflow: hidden;
  color: rgba(255,255,255,.56);
  font-size: clamp(7px, 0.42vw, 9px);
  font-style: normal;
  font-weight: 620;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-step-list li.active em {
  color: rgba(255,255,255,.9);
}

.upload-overlay i {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.upload-overlay b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d5c8, #8b77ff, #ffffff);
  box-shadow: 0 0 18px rgba(0,213,200,.36);
  transition: width .34s ease;
}

.video-card.uploaded:not(.processing) .upload-overlay {
  background: rgba(17,17,17,.52);
}

.collection-upload-row {
  align-items: stretch;
}

.upload-collection-card {
  display: grid;
  padding: 0;
  border: 1px solid rgba(0,167,160,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(243,252,250,.96));
  cursor: pointer;
}

.upload-collection-card::after {
  z-index: 1;
}

.upload-collection-card .collection-badges {
  position: absolute;
  top: 1.04vh;
  left: 0.84vw;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.upload-collection-card .card-kind {
  position: static;
}

.collection-source-pill {
  display: inline-flex;
  align-items: center;
  height: 2.2vh;
  border-radius: 999px;
  background: rgba(17,17,17,.66);
  color: #fff;
  padding: 0 0.52vw;
  font-size: clamp(10px, 0.58vw, 11px);
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.upload-collection-card .collection-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.upload-collection-card .collection-stack video,
.upload-collection-card .collection-stack img {
  position: absolute;
  inset: 0;
  width: 68%;
  height: 78%;
  margin: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
  transform: translateX(calc((var(--stack) - 1) * 1.4vw)) rotate(calc((var(--stack) - 1) * 3deg));
  opacity: calc(1 - var(--stack) * .16);
}

.upload-collection-card .collection-card-copy {
  position: absolute;
  left: 1vw;
  right: 1vw;
  top: 11.5%;
  z-index: 3;
  display: grid;
  gap: 0.26vh;
  padding: 0.82vw;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 14px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.collection-card-copy strong {
  color: #161823;
  font-size: clamp(14px, 0.9vw, 17px);
  font-weight: 860;
  line-height: 1.2;
}

.collection-card-copy span,
.collection-card-copy em {
  color: #666967;
  font-size: clamp(10px, 0.62vw, 12px);
  font-style: normal;
  font-weight: 640;
}

.collection-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 2.4vh 2vw;
  background: rgba(0,0,0,.48);
}

.collection-modal.hidden {
  display: none;
}

.collection-dialog {
  width: min(1120px, 84vw);
  max-height: 86vh;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.18vw 1.42vw;
  border-bottom: 1px solid rgba(17,17,17,.08);
}

.collection-head span {
  color: #7b7d7c;
  font-size: 0.72vw;
  font-weight: 780;
}

.collection-head h2 {
  margin: 0.18vh 0 0;
  color: #161823;
  font-size: 1.34vw;
  font-weight: 860;
  line-height: 1.18;
}

.collection-head button {
  border: 0;
  background: transparent;
  color: #161823;
  font-size: 1.7vw;
  font-weight: 520;
  cursor: pointer;
}

.collection-body {
  display: grid;
  gap: 1vw;
  max-height: calc(86vh - 5.2vw);
  overflow: auto;
  padding: 1.2vw 1.42vw 1.42vw;
  background: #f7f7f5;
}

.collection-intro {
  display: grid;
  gap: 0.32vh;
  padding: 0.98vw 1.08vw;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 16px;
  background: #fff;
}

.collection-intro strong {
  color: #161823;
  font-size: 1vw;
  font-weight: 840;
}

.collection-intro span {
  color: #6a6d6b;
  font-size: 0.76vw;
  font-weight: 580;
  line-height: 1.48;
}

.collection-video-list {
  display: grid;
  gap: 0.68vw;
}

.collection-video-row {
  display: grid;
  grid-template-columns: 6.2vw minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9vw;
  padding: 0.72vw;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.045);
}

.collection-row-media {
  width: 6.2vw;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
}

.collection-row-media video,
.collection-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-row-copy {
  display: grid;
  gap: 0.24vh;
  min-width: 0;
}

.collection-row-copy b {
  color: #00968f;
  font-size: 0.68vw;
  font-weight: 860;
}

.collection-row-copy strong {
  overflow: hidden;
  color: #161823;
  font-size: 0.94vw;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-row-copy span {
  color: #707371;
  font-size: 0.72vw;
  font-weight: 560;
}

.collection-row-actions {
  display: flex;
  gap: 0.48vw;
}

.collection-row-actions button {
  min-width: 6.6vw;
  height: 2.05vw;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 999px;
  background: #fff;
  color: #161823;
  font: inherit;
  font-size: 0.72vw;
  font-weight: 780;
  cursor: pointer;
}

.collection-row-actions button:last-child {
  border-color: #111;
  background: #111;
  color: #fff;
}

.competitor-slot {
  border: 1px solid rgba(22,24,35,.08);
  background:
    radial-gradient(circle at 50% 42%, rgba(0,213,200,.1), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,245,241,.92));
}

.competitor-slot video {
  opacity: 0;
  transition: filter .9s ease, transform .9s ease, opacity .9s ease;
}

.competitor-slot.match-waiting video,
.competitor-slot.match-loading video {
  opacity: 0;
  filter: blur(0.42vw) brightness(0.54) saturate(0.82);
  transform: scale(1.08);
}

.competitor-slot.match-ready:not(.competitor-locked) video {
  opacity: 1;
  filter: brightness(0.74);
  transform: scale(1.01);
}

.competitor-slot.match-ready.competitor-locked video {
  opacity: 1;
}

.competitor-slot.match-loading::after,
.competitor-slot.match-waiting::after {
  display: none;
}

.competitor-slot.match-ready:not(.competitor-locked)::after {
  display: grid;
}

.search-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.74vh;
  padding: 1.2vw;
  color: #161823;
  text-align: center;
  transition: opacity .54s ease, transform .54s ease;
}

.search-placeholder i {
  width: 2.4vw;
  height: 2.4vw;
  border: 3px solid rgba(22,24,35,.09);
  border-top-color: #00a7a0;
  border-radius: 50%;
  animation: unlock-ring-spin 1.05s linear infinite;
}

.search-placeholder strong {
  max-width: 100%;
  color: rgba(22,24,35,.82);
  font-size: clamp(11px, 0.72vw, 13px);
  font-weight: 720;
  line-height: 1.22;
}

.search-placeholder em {
  color: rgba(22,24,35,.48);
  font-size: clamp(10px, 0.62vw, 12px);
  font-style: normal;
  font-weight: 560;
}

.competitor-slot.match-ready .search-placeholder {
  opacity: 0;
  pointer-events: none;
  transform: scale(.96);
}

.match-overlay {
  position: absolute;
  right: 0.72vw;
  bottom: 1vh;
  left: 0.72vw;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.52vh 8px;
  align-items: center;
  padding: 0.82vh 0.68vw;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(13,13,13,.58);
  box-shadow: 0 12px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.match-overlay::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.14) 45%, transparent 58% 100%);
  content: "";
  pointer-events: none;
  transform: translateX(-100%);
  animation: upload-overlay-scan 2.3s ease-in-out infinite;
}

.match-overlay strong,
.match-overlay em,
.match-overlay i {
  position: relative;
  z-index: 1;
}

.match-overlay strong {
  overflow: hidden;
  color: rgba(255,255,255,.96);
  font-size: clamp(10px, 0.68vw, 13px);
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-overlay em {
  color: rgba(255,255,255,.78);
  font-size: clamp(10px, 0.62vw, 12px);
  font-style: normal;
  font-weight: 560;
  white-space: nowrap;
}

.match-overlay i {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.match-overlay b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d5c8, #8b77ff, #ffffff);
  box-shadow: 0 0 18px rgba(0,213,200,.36);
  transition: width .38s ease;
}

.competitor-slot.match-ready:not(.competitor-locked) .match-overlay {
  transform: translateY(0);
  background: rgba(17,17,17,.46);
}

.competitor-slot.competitor-locked .match-overlay {
  background: rgba(17,17,17,.68);
}

.wall-unlock {
  position: fixed;
  bottom: 8.5vh;
  left: 50%;
  z-index: 30;
  height: 5vh;
  overflow: hidden;
  opacity: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: #111111;
  box-shadow: 0 1.35vh 2.6vw rgba(0,0,0,.24);
  color: #ffffff;
  padding: 0 1.55vw;
  pointer-events: none;
  font-size: 0.86vw;
  font-weight: 680;
  transform: translate(-50%, 10px);
  transition: opacity .22s ease, transform .22s ease;
  white-space: nowrap;
}

.wall-unlock.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.wall-unlock::before {
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(from 0deg, #ffffff, #00d5c8, #8b77ff, #ffffff);
  content: "";
  animation: unlock-ring-spin 2.8s linear infinite;
}

.wall-unlock::after {
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background: #111111;
  content: "";
}

@keyframes unlock-ring-spin {
  to { transform: rotate(1turn); }
}

@keyframes upload-overlay-scan {
  0% { transform: translateX(-100%); }
  54%, 100% { transform: translateX(100%); }
}

.login-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.52);
}

.login-card {
  position: relative;
  width: 31vw;
  border-radius: 1.1vw;
  background: #fff;
  padding: 2.1vw;
  box-shadow: 0 2.4vh 4vw rgba(0,0,0,.28);
}

.login-card > button:first-child {
  position: absolute;
  top: 0.9vw;
  right: 0.9vw;
  width: 2vw;
  height: 2vw;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f1f1f;
  font-size: 1.5vw;
}

.login-card h2 {
  margin: 0 2vw 1.2vh 0;
  font-size: 1.35vw;
  line-height: 1.2;
}

.login-card p {
  margin: 0 0 2.1vh;
  color: #666;
  font-size: 0.82vw;
  line-height: 1.6;
}

.login-primary {
  width: 100%;
  height: 4.7vh;
  border: 0;
  border-radius: 999px;
  background: #00a7a0;
  color: #fff;
  font-size: 0.86vw;
  font-weight: 760;
}

.login-google {
  display: flex;
  width: 100%;
  height: 4.7vh;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  border: 1px solid rgba(0,0,0,.11);
  border-radius: 999px;
  background: #fff;
  color: #17171c;
  font-size: 0.86vw;
  font-weight: 760;
}

.login-google span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f1f0ec;
  color: #4285f4;
  font-weight: 820;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #98958e;
  font-size: 12px;
  font-weight: 680;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  background: rgba(0,0,0,.08);
  content: "";
}

.login-field {
  display: block;
  margin-bottom: 12px;
}

.login-field span {
  display: block;
  margin-bottom: 7px;
  color: #706d66;
  font-size: 12px;
  font-weight: 720;
}

.login-field input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(0,0,0,.11);
  border-radius: 11px;
  background: #fff;
  color: #17171c;
  padding: 0 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  outline: 0;
}

.login-field input:focus {
  border-color: rgba(0,167,160,.44);
  box-shadow: 0 0 0 3px rgba(0,167,160,.09);
}

.login-error {
  margin: 0 0 12px;
  color: #be3b2f;
  font-size: 12px;
  font-weight: 680;
}

.login-primary:disabled {
  opacity: .72;
  cursor: progress;
}

.tiktok-auth-card {
  width: min(520px, calc(100vw - 44px));
}

.auth-step-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.auth-step-list article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #ececea;
  border-radius: 14px;
  background: #fafafa;
  padding: 12px;
  opacity: .72;
}

.auth-step-list article.active {
  border-color: rgba(0,167,160,.32);
  background: #f2fbfa;
  opacity: 1;
}

.auth-step-list span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 780;
}

.auth-step-list strong {
  display: block;
  color: #161823;
  font-size: 14px;
  font-weight: 760;
}

.auth-step-list p {
  margin: 4px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.45;
}

.auth-rule-box {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-rule-box label {
  color: #777;
  font-size: 12px;
  font-weight: 720;
}

.auth-rule-box select {
  width: 100%;
  height: 40px;
  border: 1px solid #dededb;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  color: #161823;
  font-size: 14px;
  font-weight: 560;
}

.result-unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: block;
}

.result-unlock-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 25, 22, 0.36);
}

.result-unlock-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1120px, calc(100vw - 42px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--wb-border);
  border-radius: 16px;
  background: var(--wb-panel);
  box-shadow: 0 18px 52px rgba(28,25,22,.18);
  transform: translate(-50%, -50%);
}

.result-unlock-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 9px;
  background: #fff;
  color: #5e5e58;
  font-size: 22px;
}

.result-unlock-head {
  max-width: 620px;
  margin-bottom: 22px;
}

.result-unlock-head span {
  color: var(--wb-green);
  font-size: 12px;
  font-weight: 900;
}

.result-unlock-head h2 {
  margin: 7px 0;
  color: #1a1a18;
  font-size: 32px;
  font-weight: 760;
  line-height: 1.16;
}

.result-unlock-head p {
  margin: 0;
  color: #5e5e58;
  font-size: 13px;
  line-height: 1.55;
}

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

.result-price-card {
  position: relative;
  min-height: 390px;
  padding: 22px;
  border: 1px solid var(--wb-border-subtle);
  border-radius: 12px;
  background: var(--wb-card);
  box-shadow: var(--wb-shadow-low);
}

.result-price-card.popular {
  border-color: rgba(63,115,86,.42);
  box-shadow: 0 10px 28px rgba(63,115,86,.10);
}

.result-price-card.dark {
  background: #1a1a18;
  color: #fff;
}

.result-popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: var(--wb-green-bg);
  color: var(--wb-green);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.result-price-card h3 {
  margin: 0;
  color: inherit;
  font-size: 19px;
  font-weight: 780;
}

.result-price-card p {
  margin: 8px 0 18px;
  color: #85857d;
  font-size: 12px;
  font-weight: 680;
}

.result-price-card.dark p,
.result-price-card.dark li,
.result-price-card.dark .result-credit-box em {
  color: rgba(255,255,255,.66);
}

.result-price-card strong {
  display: block;
  color: inherit;
  font-size: 34px;
  font-weight: 820;
}

.result-price-card strong span {
  margin-left: 4px;
  color: #85857d;
  font-size: 13px;
  font-weight: 700;
}

.result-credit-box {
  margin: 18px 0;
  border-radius: 12px;
  background: #f2f1ec;
  padding: 12px;
}

.result-price-card.dark .result-credit-box {
  background: rgba(255,255,255,.10);
}

.result-credit-box b,
.result-credit-box em {
  display: block;
}

.result-credit-box b {
  color: inherit;
  font-size: 13px;
  font-weight: 780;
}

.result-credit-box em {
  margin-top: 4px;
  color: #85857d;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.result-price-card ul {
  display: grid;
  gap: 9px;
  min-height: 92px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.result-price-card li {
  color: #5e5e58;
  font-size: 12px;
  font-weight: 620;
}

.result-price-card li::before {
  margin-right: 7px;
  color: var(--wb-green);
  content: "•";
}

.result-price-card button {
  width: 100%;
  height: 40px;
  border: 1px solid #1a1a18;
  border-radius: 12px;
  background: #1a1a18;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.result-price-card.dark button {
  border-color: rgba(255,255,255,.18);
  background: #fff;
  color: #1a1a18;
}

.insight-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: end center;
  background: rgba(0,0,0,.55);
}

.hidden { display: none !important; }

.insight-dialog {
  width: calc(100vw - 2.35vw);
  height: calc(100vh - 2.07vh);
  overflow: hidden;
  border-radius: 1.4vw 1.4vw 0 0;
  background: #fff;
  box-shadow: 0 2.35vh 3.9vw rgba(0,0,0,.28);
}

.insight-head {
  display: flex;
  height: 7.15vh;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7e7e6;
  padding: 0 1.17vw;
}

.insight-head span {
  color: #777;
  font-size: 0.68vw;
  font-weight: 720;
}

.insight-head h2 {
  margin: 0.38vh 0 0;
  font-size: 1.18vw;
  font-weight: 760;
}

.insight-head button {
  width: 2.25vw;
  height: 2.25vw;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f1f1f;
  font-size: 1.6vw;
  line-height: 1;
}

.insight-body {
  display: grid;
  height: calc(100% - 7.15vh);
  grid-template-columns: 17.8vw minmax(0, 1fr) 29vw;
  gap: 0.86vw;
  padding: 0.86vw;
  background: #f7f7f6;
}

.modal-left,
.modal-middle,
.modal-right {
  min-height: 0;
  overflow: auto;
}

.modal-right {
  display: flex;
  flex-direction: column;
}

.modal-video {
  overflow: hidden;
  height: 47vh;
  border-radius: 0.82vw;
  background: #111;
}

.modal-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-list {
  display: grid;
  gap: 0.62vw;
  margin-top: 0.7vw;
}

.timeline-item {
  display: grid;
  grid-template-columns: 4.8vw 1fr;
  gap: 0.55vw;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.72vw;
  background: #fff;
  padding: 0.42vw;
  color: #1f1f1f;
  text-align: left;
}

.timeline-item.active {
  border-color: #00a7a0;
  background: #eafffb;
}

.timeline-item img {
  width: 4.8vw;
  aspect-ratio: 9 / 12;
  border-radius: 0.52vw;
  object-fit: cover;
}

.timeline-item strong {
  display: block;
  margin: 0.25vh 0 0.35vh;
  font-size: 0.72vw;
  line-height: 1.25;
}

.timeline-item span {
  display: block;
  color: #777;
  font-size: 0.62vw;
  font-weight: 720;
}

.timeline-item p {
  margin: 0;
  color: #666;
  font-size: 0.62vw;
  line-height: 1.35;
}

.timeline-item em {
  display: inline-block;
  margin-top: 0.45vh;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: #00a7a0;
  padding: 0.25vh 0.45vw;
  font-size: 0.56vw;
  font-style: normal;
  font-weight: 760;
}

.modal-middle,
.modal-right {
  border-radius: 0.82vw;
  background: #fff;
  padding: 0.86vw;
}

.story-card {
  margin-bottom: 0.86vw;
  border-radius: 0.82vw;
  background: #f7f7f6;
  padding: 1vw;
}

.story-card.insight-summary-card {
  border: 1px solid rgba(17,17,17,.08);
  background: #fff;
  padding: 1.08vw;
}

.diagnosis-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72vw;
  margin-bottom: 0.86vw;
}

.story-card.qa-summary-card {
  border: 1px solid rgba(17,17,17,.055);
  background: #fff;
  padding: clamp(22px, 1.5vw, 30px);
  box-shadow: 0 0.72vw 2vw rgba(17,17,17,.035);
}

.story-card.qa-summary-card.uploaded-report {
  border-color: rgba(17,17,17,.065);
  background: #fff;
}

.story-card.qa-summary-card.recommendation-report {
  border-color: rgba(17,17,17,.065);
  background: #fff;
}

.story-card.dna-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(27, 36, 48, .07);
  border-radius: 18px;
  background: #fff;
  padding: 22px 26px 24px;
  box-shadow: 0 14px 36px rgba(29, 35, 48, .04);
}

.dna-map-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  opacity: .72;
}

.dna-map-rail::before {
  display: none;
}

.dna-map-rail span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
}

.dna-map-rail i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #626765;
  font-size: 9px;
  font-style: normal;
  font-weight: 860;
  box-shadow: none;
}

.dna-map-rail span:nth-child(1) i {
  background: #eef4ff;
  color: #4a6fb6;
}

.dna-map-rail span:nth-child(2) i {
  background: #ecfaf5;
  color: #19916d;
}

.dna-map-rail span:nth-child(3) i {
  background: #fff7e9;
  color: #bd7a19;
}

.dna-map-rail b {
  color: #7b7f7d;
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.dna-map-content {
  min-width: 0;
}

.dna-map-hero {
  position: relative;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(17,17,17,.07);
}

.dna-map-hero span {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 20px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 760;
}

.dna-map-hero h3 {
  margin: 0 0 8px;
  max-width: min(980px, calc(100% - 180px));
  color: #161823;
  font-size: clamp(24px, 1.5vw, 32px);
  font-weight: 900;
  line-height: 1.16;
}

.dna-map-hero p {
  margin: 0;
  max-width: min(980px, calc(100% - 180px));
  color: #444846;
  font-size: clamp(14px, 0.78vw, 17px);
  font-weight: 620;
  line-height: 1.56;
}

@media (max-width: 860px) {
  .dna-map-hero span {
    position: static;
    margin-bottom: 8px;
  }

  .dna-map-hero h3,
  .dna-map-hero p {
    max-width: 100%;
  }
}

.dna-map-rows {
  display: grid;
  gap: 0;
  padding-top: 0;
}

.dna-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,.07);
  border-radius: 0;
  background: transparent;
  padding: 17px 0;
}

.dna-map-row.proof {
  background: transparent;
}

.dna-map-row.action {
  border-bottom: 0;
  background: transparent;
}

.dna-map-row em {
  display: block;
  margin: 0 0 4px;
  color: #8a8f8d;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.dna-map-row strong {
  display: block;
  color: #161823;
  font-size: clamp(18px, 1vw, 22px);
  font-weight: 860;
  line-height: 1.42;
}

.dna-map-row > p {
  grid-column: auto;
  margin: 0;
  color: #5b5f5d;
  max-width: 980px;
  font-size: clamp(13px, 0.72vw, 15px);
  font-weight: 560;
  line-height: 1.52;
}

.qa-main-answer {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.qa-main-answer span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 22px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
}

.qa-main-answer h3 {
  margin: 10px 0 8px;
  color: #161823;
  max-width: 960px;
  font-size: clamp(24px, 1.55vw, 34px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.qa-main-answer p {
  margin: 0;
  max-width: 980px;
  color: #303231;
  font-size: clamp(14px, 0.84vw, 18px);
  font-weight: 640;
  line-height: 1.58;
}

.missing-atom-summary {
  margin-top: 1.1vh;
  border-top: 1px solid rgba(17,17,17,.08);
  padding-top: 1vh;
}

.replication-needs {
  margin-top: 8px;
  border-top: 0;
  padding-top: 0;
}

.missing-atom-summary strong,
.replication-needs strong {
  display: block;
  margin-bottom: 10px;
  color: #161823;
  font-size: clamp(14px, 0.78vw, 16px);
  font-weight: 840;
}

.missing-atom-summary div,
.replication-needs div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42vw;
}

.replication-needs ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.replication-needs li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.replication-needs li b {
  color: #161823;
  font-size: clamp(13px, 0.68vw, 14px);
  font-weight: 820;
}

.replication-needs li span {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #696c6a;
  padding: 0;
  font-size: 0.62vw;
  font-weight: 560;
  line-height: 1.34;
}

.missing-atom-summary span,
.replication-needs span {
  display: inline-flex;
  align-items: center;
  min-height: 1.56vw;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 0.56vw;
  font-size: 0.66vw;
  font-weight: 780;
}

.replication-needs span {
  border-color: rgba(17,17,17,.08);
  background: #f7f7f6;
  color: #3f4240;
}

.replication-needs li span {
  display: block;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #696c6a;
  padding: 0;
  font-size: clamp(12px, 0.64vw, 14px);
  font-weight: 560;
  line-height: 1.34;
}

.recommendation-plans {
  margin-top: 2px;
}

.recommendation-plans header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1vw;
  margin-bottom: 8px;
}

.recommendation-plans h4 {
  margin: 0;
  color: #161823;
  font-size: 0.9vw;
  font-weight: 860;
}

.recommendation-plans header button {
  border: 1px solid rgba(0,167,160,.22);
  border-radius: 999px;
  background: #fff;
  color: #008d88;
  padding: 0.34vw 0.58vw;
  font: inherit;
  font-size: 0.66vw;
  font-weight: 780;
  cursor: pointer;
}

.recommendation-plans > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.recommendation-plan {
  min-height: auto;
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.recommendation-plan.active {
  border-color: rgba(17,17,17,.22);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17,17,17,.055);
}

.recommendation-plan em {
  display: inline-flex;
  margin-bottom: 4px;
  border-radius: 999px;
  background: rgba(0,167,160,.1);
  color: #008d88;
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.recommendation-plan strong {
  display: block;
  color: #161823;
  font-size: 14px;
  font-weight: 840;
  line-height: 1.28;
}

.recommendation-plan span {
  display: block;
  margin-top: 5px;
  color: #626563;
  font-size: 12px;
  line-height: 1.38;
}

.primary-report-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 36px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 0 0.46vw 1.1vw rgba(17,17,17,.12);
}

.dna-map-row .replication-needs {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.dna-map-row .replication-needs ul {
  gap: 6px;
}

.dna-map-row .replication-needs li {
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 0;
}

.dna-map-row .primary-report-cta {
  grid-column: auto;
  justify-self: start;
}

.recommendation-report .primary-report-cta {
  background: #111;
  box-shadow: 0 0.7vw 1.6vw rgba(17,17,17,.16);
}

.story-card.evidence-card {
  border: 0;
  border-top: 1px solid rgba(17,17,17,.08);
  border-radius: 0;
  background: transparent;
  padding: 1.05vw 0 0.95vw;
}

.evidence-card h3,
.dimension-header h3 {
  margin: 0 0 0.72vh;
  color: #161823;
  font-size: 1vw;
  font-weight: 840;
}

.qa-evidence-list {
  display: grid;
  gap: 0.72vh;
}

.qa-evidence-list section {
  padding: 0;
}

.qa-evidence-list h4 {
  margin: 0 0 0.34vh;
  color: #161823;
  font-size: 0.82vw;
  font-weight: 820;
}

.qa-evidence-list p {
  margin: 0;
  color: #5b5e5c;
  font-size: 0.76vw;
  line-height: 1.55;
}

.voice-proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38vw;
  margin-top: 0.8vh;
}

.voice-proof-line span {
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 999px;
  background: #fff;
  color: #3f4240;
  padding: 0.28vw 0.5vw;
  font-size: 0.64vw;
  font-weight: 720;
}

.qa-layer-card {
  border: 0;
  border-top: 1px solid rgba(17,17,17,.08);
  border-radius: 0;
  background: transparent;
  padding: 1.05vw 0 0;
}

.dimension-header {
  margin-bottom: 0.72vh;
}

.dimension-header h3 {
  margin-bottom: 0.28vh;
}

.dimension-header p {
  margin: 0;
  color: #747775;
  font-size: 0.76vw;
  line-height: 1.4;
}

.qa-layer-card > summary {
  cursor: pointer;
  list-style: none;
  color: #161823;
  font-size: 0.92vw;
  font-weight: 820;
}

.qa-layer-card > summary span {
  display: block;
}

.qa-layer-card > summary em {
  display: block;
  margin-top: 0.34vh;
  max-width: 88%;
  color: #747775;
  font-size: 0.68vw;
  font-style: normal;
  font-weight: 560;
  line-height: 1.36;
}

.qa-layer-card > summary::-webkit-details-marker {
  display: none;
}

.qa-layer-card > summary::after {
  content: "+";
  float: right;
  color: #8b8d8c;
  font-weight: 900;
}

.qa-layer-card[open] > summary {
  margin-bottom: 0.74vh;
}

.qa-layer-card[open] > summary::after {
  content: "-";
}

.qa-layer-list {
  display: grid;
  gap: 0;
}

.qa-layer-row {
  border: 0;
  border-top: 1px solid rgba(17,17,17,.08);
  border-radius: 0;
  background: transparent;
  padding: 1vw 0;
}

.qa-layer-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.qa-layer-row:last-child {
  padding-bottom: 0;
}

.qa-layer-row h4 {
  margin: 0 0 0.58vh;
  color: #161823;
  font-size: 0.94vw;
  font-weight: 840;
}

.qa-layer-row dl {
  display: grid;
  gap: 0.42vh;
  margin: 0;
}

.qa-layer-row dl div {
  display: grid;
  grid-template-columns: 3.6vw 1fr;
  gap: 0.7vw;
  align-items: baseline;
}

.qa-layer-row dt {
  color: #8b8d8c;
  font-size: 0.66vw;
  font-weight: 780;
}

.qa-layer-row dd {
  margin: 0;
  color: #4f5250;
  font-size: 0.76vw;
  line-height: 1.5;
}

.qa-layer-row dl div:last-child dd {
  color: #161823;
  font-weight: 700;
}

.diagnosis-card {
  border: 1px solid rgba(17,17,17,.075);
  border-radius: 0.82vw;
  background: #fff;
  padding: 0.92vw;
}

.ai-diagnosis-card {
  background: linear-gradient(180deg, #fff, #f8f8f6);
}

.voice-synthesis-card {
  border-color: rgba(0,167,160,.18);
  background: linear-gradient(180deg, #fff, #f3fbfa);
}

.diagnosis-kicker {
  display: inline-flex;
  align-items: center;
  height: 1.3vw;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 0.48vw;
  font-size: 0.56vw;
  font-weight: 800;
}

.voice-synthesis-card .diagnosis-kicker {
  background: #008d88;
}

.diagnosis-card h3 {
  margin: 0.7vh 0 0.7vh;
  color: #161823;
  font-size: 0.96vw;
  line-height: 1.28;
}

.diagnosis-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52vw;
}

.diagnosis-two-col section {
  border-radius: 0.6vw;
  background: rgba(255,255,255,.72);
  padding: 0.64vw;
}

.ai-diagnosis-card .diagnosis-two-col section {
  background: #f4f4f2;
}

.diagnosis-two-col em,
.layer-row em {
  display: block;
  margin-bottom: 0.34vh;
  color: #858783;
  font-size: 0.58vw;
  font-style: normal;
  font-weight: 780;
}

.diagnosis-two-col p {
  margin: 0;
  color: #303231;
  font-size: 0.68vw;
  font-weight: 650;
  line-height: 1.42;
}

.story-card.layer-analysis-card {
  background: #fff;
  border: 1px solid rgba(17,17,17,.075);
}

.layer-analysis-card header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1vw;
  margin-bottom: 0.74vh;
}

.layer-analysis-card header h3 {
  margin: 0;
}

.layer-analysis-card header p {
  max-width: 54%;
  color: #777a78;
  font-size: 0.66vw;
  line-height: 1.38;
}

.layer-analysis-list {
  display: grid;
  gap: 0.46vw;
}

.layer-row {
  display: grid;
  grid-template-columns: 5.8vw 1fr 1.15fr 1.3fr;
  gap: 0.56vw;
  align-items: stretch;
  border: 1px solid rgba(17,17,17,.055);
  border-radius: 0.62vw;
  background: #f8f8f7;
  padding: 0.58vw;
}

.layer-name {
  display: flex;
  align-items: center;
  color: #161823;
  font-size: 0.72vw;
  font-weight: 820;
}

.layer-row > div:not(.layer-name) {
  border-left: 1px solid rgba(17,17,17,.06);
  padding-left: 0.58vw;
}

.layer-row p {
  margin: 0;
  color: #393b3a;
  font-size: 0.65vw;
  font-weight: 620;
  line-height: 1.36;
}

.insight-summary-head {
  max-width: 96%;
  padding-bottom: 0.9vh;
}

.insight-summary-head span {
  display: inline-flex;
  align-items: center;
  height: 1.34vw;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 0.5vw;
  font-size: 0.58vw;
  font-weight: 780;
}

.insight-summary-head h3 {
  margin: 0.66vh 0 0.38vh;
  color: #161823;
  font-size: 1.08vw;
  line-height: 1.28;
}

.insight-summary-head p {
  color: #646765;
  font-size: 0.74vw;
  line-height: 1.52;
}

.insight-summary-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62vw;
}

.insight-summary-flow section {
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 0.72vw;
  background: #f8f8f7;
  padding: 0.78vw;
}

.insight-summary-flow em {
  display: block;
  margin-bottom: 0.42vh;
  color: #8a8d8b;
  font-size: 0.6vw;
  font-style: normal;
  font-weight: 760;
}

.insight-summary-flow strong {
  display: block;
  color: #17191f;
  font-size: 0.78vw;
  line-height: 1.34;
}

.insight-summary-flow small {
  display: block;
  margin-top: 0.44vh;
  color: #676967;
  font-size: 0.62vw;
  line-height: 1.35;
}

.insight-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42vw;
  margin-top: 0.78vh;
}

.summary-pill {
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 999px;
  background: #fff;
  color: #4b4d4c;
  padding: 0.34vw 0.54vw;
  font: inherit;
  font-size: 0.62vw;
  font-weight: 720;
}

.summary-pill.primary {
  border-color: rgba(0,167,160,.24);
  color: #008d88;
}

.voice-source-list {
  display: grid;
  gap: 0.54vh;
  margin-top: 0.78vh;
}

.voice-source-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9vw;
  min-height: 2.48vw;
  padding: 0.58vw 0.72vw;
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0.3vw 1vw rgba(0,0,0,.025);
}

.voice-source-list strong {
  min-width: 0;
  color: #161823;
  font-size: 0.74vw;
  font-weight: 760;
  line-height: 1.42;
}

.voice-source-list span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.34vw;
  color: #5c5f5d;
  font-size: 0.62vw;
  font-weight: 680;
  white-space: nowrap;
}

.voice-source-list img {
  width: 0.92vw;
  height: 0.92vw;
  object-fit: contain;
}

.voice-source-list b {
  color: #222422;
  font-size: 0.62vw;
  font-weight: 760;
}

.voice-source-list em {
  color: #008d88;
  font-size: 0.6vw;
  font-style: normal;
  font-weight: 780;
}

.detail-drawer-card {
  border: 0;
  border-top: 1px solid rgba(17,17,17,.08);
  border-radius: 0;
  background: transparent;
  padding: 1vw 0;
}

.detail-drawer-card > summary {
  cursor: pointer;
  list-style: none;
  color: #17191f;
  font-size: 0.92vw;
  font-weight: 800;
}

.detail-drawer-card > summary::-webkit-details-marker {
  display: none;
}

.detail-drawer-card > summary::after {
  content: "+";
  float: right;
  color: #8b8d8c;
  font-weight: 900;
}

.detail-drawer-card[open] > summary {
  margin-bottom: 0.76vh;
}

.detail-drawer-card[open] > summary::after {
  content: "-";
}

.nested-card {
  margin-bottom: 0.68vw;
  padding: 0;
  background: transparent;
}

.nested-card.hero-card {
  min-height: auto;
}

.nested-card:last-child {
  margin-bottom: 0;
}

.dna-detail-card {
  background: #f7f7f6;
}

.story-card.hero-card {
  min-height: 18vh;
}

.story-card.kpi-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6vw;
  border: 0;
  border-top: 1px solid rgba(17,17,17,.08);
  border-radius: 0;
  background: transparent;
  padding: 0.82vw 0;
}

.detail-drawer-card .hero-card {
  border: 0;
  border-top: 1px solid rgba(17,17,17,.08);
  border-radius: 0;
  background: transparent;
  padding: 0.86vw 0;
  min-height: 0;
}

.story-card.type-profile-card {
  border: 0;
  border-top: 1px solid rgba(17,17,17,.08);
  border-radius: 0;
  background: transparent;
  padding: 0.9vw 0 0;
}

.story-card.decision-card {
  border: 1px solid rgba(0,167,160,.16);
  background: linear-gradient(180deg, #fff, #f7fbfa);
  box-shadow: none;
}

.decision-line {
  display: flex;
  align-items: center;
  gap: 0.6vw;
  margin-bottom: 0.48vh;
}

.decision-line span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0.22vw 0.48vw;
  font-size: 0.6vw;
  font-weight: 780;
}

.decision-card h3 {
  margin: 0;
  color: #161823;
  font-size: 0.98vw;
  line-height: 1.3;
}

.decision-card p {
  color: #5d605f;
  font-size: 0.74vw;
  line-height: 1.55;
}

.decision-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42vw;
  margin-top: 0.74vh;
}

.decision-strip strong {
  border: 1px solid rgba(0,167,160,.12);
  border-radius: 999px;
  background: #fff;
  color: #343635;
  padding: 0.32vw 0.5vw;
  font-size: 0.62vw;
  line-height: 1.2;
}

.story-card.voice-dna-card {
  border: 1px solid rgba(17,17,17,.08);
  background: #fff;
}

.voice-dna-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1vw;
  margin-bottom: 0.7vh;
}

.voice-dna-card header span {
  display: inline-block;
  margin-bottom: 0.38vh;
  color: #008d88;
  font-size: 0.62vw;
  font-weight: 820;
  text-transform: uppercase;
}

.voice-dna-card header h3 {
  margin-bottom: 0;
}

.voice-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52vw;
  margin-top: 0.82vh;
}

.voice-flow section {
  min-height: 5.4vh;
  border: 1px solid rgba(0,0,0,.055);
  border-radius: 0.64vw;
  background: #f8f8f7;
  padding: 0.66vw;
}

.voice-flow em {
  display: block;
  margin-bottom: 0.42vh;
  color: #7b756c;
  font-size: 0.62vw;
  font-style: normal;
  font-weight: 760;
}

.voice-flow strong {
  display: block;
  color: #15161c;
  font-size: 0.72vw;
  line-height: 1.38;
}

.voice-detail-drawer {
  margin-top: 0.68vh;
}

.voice-detail-drawer summary {
  width: max-content;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 999px;
  background: #fff;
  color: #5c5e5d;
  padding: 0.34vw 0.56vw;
  font-size: 0.62vw;
  font-weight: 760;
}

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

.voice-detail-drawer summary::after {
  content: "+";
  margin-left: 0.42vw;
  color: #008d88;
  font-weight: 900;
}

.voice-detail-drawer[open] summary::after {
  content: "-";
}

.voice-dna-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55vw;
  margin-top: 0.8vh;
}

.voice-dna-grid section {
  border: 1px solid rgba(22,24,35,.055);
  border-radius: 0.64vw;
  background: rgba(255,255,255,.78);
  padding: 0.72vw;
}

.voice-dna-grid h4 {
  margin: 0 0 0.5vh;
  color: #161823;
  font-size: 0.68vw;
  font-weight: 800;
}

.voice-dna-grid em,
.voice-hook-row span {
  display: block;
  color: #4b4d4c;
  font-size: 0.66vw;
  font-style: normal;
  font-weight: 560;
  line-height: 1.42;
}

.voice-dna-grid em + em {
  margin-top: 0.36vh;
}

.voice-hook-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42vw;
  margin-top: 0.82vh;
}

.voice-hook-row span {
  border: 1px solid rgba(0,167,160,.18);
  border-radius: 999px;
  background: #fff;
  color: #008d88;
  padding: 0.34vw 0.54vw;
  font-weight: 720;
}

.type-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.2vw;
  row-gap: 0;
  border-top: 1px solid rgba(17,17,17,.06);
}

.type-profile-grid span {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,.06);
  border-radius: 0;
  background: transparent;
  padding: 0.66vw 0;
}

.type-profile-grid em {
  display: block;
  color: #7b756c;
  font-size: clamp(12px, 0.62vw, 14px);
  font-style: normal;
  font-weight: 760;
}

.type-profile-grid strong {
  display: block;
  color: #211f1b;
  font-size: clamp(13px, 0.72vw, 15px);
  line-height: 1.42;
}

.story-card h3,
.modal-right h3 {
  margin: 0 0 0.9vh;
  font-size: 1vw;
  font-weight: 760;
}

.story-card p {
  margin: 0;
  color: #4b4d4c;
  font-size: 0.82vw;
  line-height: 1.62;
}

.story-card ul {
  margin: 0.8vh 0 0;
  padding-left: 1vw;
  color: #4b4d4c;
  font-size: 0.78vw;
  line-height: 1.55;
}

.kpi {
  border-radius: 0.64vw;
  background: #fff;
  padding: 0.72vw;
}

.kpi em {
  display: block;
  color: #777;
  font-size: 0.64vw;
  font-style: normal;
  font-weight: 720;
}

.kpi strong {
  display: block;
  margin-top: 0.45vh;
  font-size: 0.82vw;
}

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

.dna-grid span {
  display: block;
  min-height: 7vh;
  border-radius: 0.64vw;
  background: #fff;
  padding: 0.72vw;
}

.dna-grid em,
.modal-right label span {
  display: block;
  margin-bottom: 0.56vh;
  color: #777;
  font-size: 0.72vw;
  font-style: normal;
  font-weight: 720;
}

.dna-grid strong {
  display: block;
  font-size: 0.78vw;
  line-height: 1.35;
}

.modal-right label {
  display: block;
  margin-bottom: 0.86vw;
}

.modal-right label.control-field-updated select,
.modal-right label.control-field-updated input,
.modal-right label.control-field-updated textarea {
  border-color: rgba(0, 167, 160, .42);
  box-shadow: 0 0 0 3px rgba(0, 167, 160, .1);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.control-section {
  margin-bottom: 1.05vw;
  border: 1px solid rgba(22,24,35,.06);
  border-radius: 0.92vw;
  background: linear-gradient(180deg, #fbfbfa, #f4f4f2);
  padding: 1.05vw;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.control-section h4 {
  display: flex;
  align-items: center;
  gap: 0.42vw;
  margin: 0 0 1.05vh;
  color: #161823;
  font-size: 0.98vw;
  font-weight: 760;
}

.control-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8vw;
  margin: 0 0 1.05vh;
}

.control-section-head h4 {
  margin: 0;
}

.control-section-head button,
.sku-upload-button {
  height: 3.35vh;
  border: 1px solid rgba(0,167,160,.22);
  border-radius: 999px;
  background: #fff;
  color: #008f89;
  padding: 0 0.78vw;
  font-size: 0.72vw;
  font-weight: 780;
}

.product-config-section {
  border-color: rgba(0,167,160,.16);
  background:
    radial-gradient(circle at 0 0, rgba(0,213,200,.09), transparent 38%),
    linear-gradient(180deg, #ffffff, #f5f4f1);
}

.sku-upload-button {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  margin-right: 0.5vw;
}

.sku-upload-state {
  display: block;
  margin-top: 0.48vh;
  color: #85827a;
  font-size: 0.68vw;
  font-style: normal;
  font-weight: 620;
  line-height: 1.35;
}

.control-section h4::before {
  width: 0.46vw;
  height: 0.46vw;
  border-radius: 50%;
  background: #111;
  content: "";
  box-shadow: 0 0 0 0.22vw rgba(0,167,160,.12);
}

.modal-right select,
.modal-right input,
.modal-right textarea {
  width: 100%;
  border: 1px solid #e0e0de;
  border-radius: 0.64vw;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-size: 0.84vw;
  outline: none;
}

.modal-right select,
.modal-right input {
  height: 4.55vh;
  padding: 0 0.9vw;
}

.modal-right textarea {
  min-height: 10.5vh;
  padding: 0.9vw;
  resize: vertical;
  line-height: 1.45;
}

.modal-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.56vw;
  margin-top: auto;
  padding-top: 0.7vw;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 38%);
  box-shadow: 0 -10px 18px rgba(255,255,255,.92);
}

.brief-button,
.compare-button,
.competitor-button {
  width: 100%;
  min-height: 4.2vh;
  border: 0;
  border-radius: 999px;
  font-size: 0.82vw;
  font-weight: 760;
}

.brief-button {
  background: #00a7a0;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,167,160,.16);
}

.compare-button {
  border: 1px solid #d9d9d6;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.compare-button:disabled {
  border-color: rgba(0,0,0,.08);
  background: #e8e8e5;
  color: #8a8780;
  cursor: not-allowed;
  box-shadow: none;
}

.competitor-button {
  border: 1px solid #d9d9d6;
  background: #fff;
  color: #161823;
}

.brief-result {
  margin-top: 0.9vw;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0.82vw;
  background: #111;
  color: #fff;
}

.brief-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7vw;
  padding: 0.72vw 0.82vw;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.brief-result-head h4 {
  margin: 0;
  font-size: 0.78vw;
  font-weight: 680;
}

.copy-brief-button {
  height: 2.8vh;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 0 0.62vw;
  font-size: 0.62vw;
  font-weight: 620;
}

.brief-result pre {
  max-height: 29vh;
  margin: 0;
  overflow: auto;
  padding: 0.82vw;
  color: rgba(255,255,255,.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62vw;
  line-height: 1.55;
  white-space: pre-wrap;
}

.brief-modal {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.5);
}

.brief-dialog {
  width: min(860px, calc(100vw - 56px));
  max-height: min(720px, calc(100vh - 56px));
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.brief-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 22px;
  border-bottom: 1px solid #ececea;
}

.brief-dialog-head h2 {
  margin: 0;
  color: #161823;
  font-size: 20px;
  font-weight: 680;
}

.brief-dialog-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f1f1f;
  font-size: 26px;
  line-height: 1;
}

.brief-summary {
  margin: 16px 22px 0;
  border: 1px solid rgba(0,167,160,.2);
  border-radius: 18px;
  background: linear-gradient(135deg, #f6fffe, #fff 58%);
  padding: 16px;
}

.brief-summary > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brief-summary span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 780;
}

.brief-summary h3 {
  flex: 1;
  margin: 3px 0 0;
  color: #3f3f3f;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.55;
}

.brief-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.brief-summary dl div {
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.brief-summary dt {
  color: #8a8780;
  font-size: 11px;
  font-weight: 720;
}

.brief-summary dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #161823;
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-advanced-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px 10px;
}

.brief-tabs {
  display: flex;
  gap: 6px;
}

.brief-tabs button {
  height: 28px;
  border: 1px solid #e3e3e1;
  border-radius: 999px;
  background: #fff;
  color: #626262;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 560;
}

.brief-tabs button.active {
  border-color: #c9c9c5;
  background: #f5f5f3;
  color: #161823;
}

.brief-bottom-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid #ececea;
  background: linear-gradient(180deg, rgba(255,255,255,.84), #fff 44%);
}

.brief-advanced-head span {
  color: #777;
  font-size: 12px;
  font-weight: 680;
}

.brief-bottom-actions button {
  height: 34px;
  border: 1px solid #dcdcd9;
  border-radius: 999px;
  background: #fff;
  color: #161823;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 620;
}

.brief-output-toolbar button.primary-video-cta,
.brief-bottom-actions button.primary-video-cta,
.comparison-result-head button[data-result-video] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  background: #111;
  color: #fff;
  padding: 0 18px;
  font-weight: 820;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.brief-output-toolbar button.primary-video-cta::before,
.brief-bottom-actions button.primary-video-cta::before,
.comparison-result-head button[data-result-video]::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from 0deg, #00d5c8, #8b77ff, #111, #00d5c8);
  content: "";
  padding: 1.5px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ctaSpin 3.8s linear infinite;
}

.brief-output-toolbar button.primary-video-cta::after,
.brief-bottom-actions button.primary-video-cta::after,
.comparison-result-head button[data-result-video]::after {
  content: none;
}

@keyframes ctaSpin {
  to {
    transform: rotate(1turn);
  }
}

#briefOutput {
  max-height: 210px;
  margin: 0 22px;
  overflow: auto;
  border: 1px solid #ececea;
  border-radius: 14px;
  background: #171717;
  color: rgba(255,255,255,.74);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.competitor-modal {
  position: fixed;
  z-index: 96;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.5);
}

.competitor-dialog {
  width: min(1500px, calc(100vw - 48px));
  height: min(860px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 76px rgba(0,0,0,.24);
}

.competitor-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 24px;
  border-bottom: 1px solid #ececea;
}

.competitor-dialog-head span {
  display: block;
  color: #767676;
  font-size: 13px;
  font-weight: 720;
}

.competitor-dialog-head h2 {
  margin: 4px 0 0;
  color: #161823;
  font-size: 22px;
  font-weight: 760;
}

.competitor-dialog-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f1f1f;
  font-size: 28px;
  line-height: 1;
}

.competitor-modal-body {
  height: calc(100% - 74px);
  overflow: auto;
  background: #f7f7f6;
  padding: 18px;
}

.compare-summary-panel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px 260px;
  gap: 16px;
  align-items: stretch;
}

.compare-hero-flow {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(29,35,48,.04);
}

.compare-mini-videos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.compare-mini-videos article {
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 14px;
  background: #f6f6f4;
}

.compare-mini-videos video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  filter: brightness(.82);
}

.compare-mini-videos span {
  display: block;
  padding: 8px 9px;
  color: #161823;
  font-size: 12px;
  font-weight: 780;
}

.compare-mini-videos b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 860;
}

.compare-main-answer {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(17,17,17,.08);
  padding: 2px 18px 2px 2px;
}

.compare-main-answer > span {
  display: inline-flex;
  width: max-content;
  height: 22px;
  align-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 780;
}

.compare-main-answer h3 {
  margin: 10px 0 10px;
  color: #161823;
  font-size: clamp(22px, 1.35vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

.compare-main-answer p {
  margin: 0;
  color: #4b4d4c;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.58;
}

.compare-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.compare-proof-row strong,
.compare-proof-row em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 999px;
  background: #fff;
  color: #161823;
  padding: 0 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
}

.compare-proof-row em {
  color: #008d88;
}

.compare-video-card,
.compare-summary-copy,
.compare-voice-card,
.compare-score-grid article,
.frame-compare-panel {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.035);
}

.compare-video-card {
  overflow: hidden;
  padding-bottom: 14px;
}

.compare-video-card video {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  filter: brightness(.78);
}

.compare-video-card strong,
.compare-video-card span {
  display: block;
  padding: 0 14px;
}

.compare-video-card strong {
  margin-top: 12px;
  color: #161823;
  font-size: 15px;
  font-weight: 760;
}

.compare-video-card span {
  margin-top: 6px;
  color: #6f6f6f;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.45;
}

.compare-summary-copy {
  padding: 18px;
}

.compare-summary-copy h3,
.frame-compare-panel h3 {
  margin: 0 0 12px;
  color: #161823;
  font-size: 20px;
  font-weight: 780;
}

.compare-summary-copy p {
  margin: 0 0 12px;
  color: #3f4145;
  font-size: 15px;
  line-height: 1.7;
}

.compare-voice-card {
  padding: 16px;
  border: 1px solid rgba(0,167,160,.18);
  background: linear-gradient(180deg, #fff, #f7fbfa);
  box-shadow: none;
}

.compare-voice-card strong {
  display: block;
  color: #161823;
  font-size: 16px;
  font-weight: 800;
}

.compare-voice-card p {
  margin: 10px 0 12px;
  color: #3f4145;
  font-size: 13px;
  line-height: 1.55;
}

.compare-voice-card div {
  display: grid;
  gap: 8px;
}

.compare-voice-card span {
  border: 1px solid rgba(22,24,35,.06);
  border-radius: 10px;
  background: #fff;
  color: #008d88;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

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

.compare-score-grid.compact-score-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.compact-score-grid article {
  border: 1px solid rgba(17,17,17,.06);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  padding: 11px 12px;
}

.compare-score-grid article {
  padding: 14px;
}

.compare-score-grid span {
  color: #767676;
  font-size: 12px;
  font-weight: 720;
}

.compare-score-grid strong {
  display: block;
  margin-top: 8px;
  color: #00a7a0;
  font-size: 15px;
  font-weight: 780;
}

.compare-score-grid p {
  margin: 8px 0 0;
  color: #4b4d4c;
  font-size: 13px;
  line-height: 1.45;
}

.frame-compare-panel {
  margin-top: 14px;
  padding: 18px;
}

.dimension-decision-panel {
  border: 1px solid rgba(17,17,17,.065);
  background: #fff;
  box-shadow: 0 10px 26px rgba(17,17,17,.035);
}

.frame-compare-list {
  display: grid;
  gap: 12px;
}

.dimension-compare-list {
  display: grid;
  gap: 10px;
}

.dimension-compare-list details {
  overflow: hidden;
  border: 1px solid rgba(22,24,35,.07);
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dimension-compare-list details[open] {
  border-color: rgba(0,167,160,.18);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.035);
}

.dimension-compare-list summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.dimension-compare-list summary:hover {
  background: rgba(255,255,255,.46);
}

.dimension-compare-list summary::-webkit-details-marker {
  display: none;
}

.dimension-compare-list summary span {
  margin: 0;
  color: #161823;
  font-size: 14px;
  font-weight: 800;
}

.dimension-compare-list summary span::before {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: rgba(22,24,35,.08);
  color: #161823;
  content: "›";
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, background .18s ease;
  vertical-align: -2px;
}

.dimension-compare-list details[open] summary span::before {
  background: #111;
  color: #fff;
  transform: rotate(90deg);
}

.dimension-compare-list summary strong {
  justify-self: start;
  border-radius: 999px;
  background: rgba(17,17,17,.06);
  color: #161823;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 760;
}

.dimension-compare-list summary em {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-width: 92px;
  height: 30px;
  justify-content: center;
  border: 1px solid rgba(22,24,35,.1);
  border-radius: 999px;
  background: #fff;
  color: #555;
  padding: 0 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  box-shadow: none;
}

.dimension-compare-list summary em i {
  font-style: normal;
}

.dimension-compare-list summary em .collapse-label {
  display: none;
}

.dimension-compare-list details[open] summary em {
  border-color: rgba(0,167,160,.24);
  color: #008d88;
}

.dimension-compare-list details[open] summary em .expand-label {
  display: none;
}

.dimension-compare-list details[open] summary em .collapse-label {
  display: inline;
}

.dimension-detail {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.dimension-note {
  margin: 0;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid rgba(22,24,35,.045);
  color: #3f4145;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.52;
}

.dimension-compare-list details.adopted {
  box-shadow: inset 0 0 0 1px rgba(0,167,160,.18);
}

.frame-compare-list article {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(22,24,35,.08);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.frame-compare-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.frame-compare-list time {
  color: #161823;
  font-size: 13px;
  font-weight: 780;
}

.frame-compare-list header strong {
  border-radius: 999px;
  background: rgba(0,167,160,.1);
  color: #008d88;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 760;
}

.frame-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.frame-versus.three-way-versus {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
}

.frame-versus section,
.frame-compare-list footer,
.dimension-detail footer {
  border: 1px solid rgba(22,24,35,.06);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.frame-versus b {
  display: grid;
  place-items: center;
  border-radius: 999px;
  align-self: center;
  background: #111;
  color: #fff;
  aspect-ratio: 1;
  font-size: 11px;
  font-weight: 800;
}

.frame-compare-list span {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-size: 12px;
  font-weight: 740;
}

.frame-compare-list p {
  margin: 0;
  color: #3f4145;
  font-size: 13px;
  line-height: 1.52;
}

.frame-compare-list footer,
.dimension-detail footer {
  border-color: rgba(22,24,35,.08);
  background: #fff;
}

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

.ai-suggestion-head button {
  height: 28px;
  border: 1px solid rgba(0,167,160,.28);
  border-radius: 999px;
  background: #fff;
  color: #008d88;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
}

.frame-compare-list textarea,
.dimension-compare-list textarea {
  width: 100%;
  min-height: 68px;
  border: 1px solid rgba(22,24,35,.08);
  border-radius: 10px;
  background: #fff;
  color: #2f3337;
  padding: 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.frame-compare-list article.adopted {
  box-shadow: inset 0 0 0 1px rgba(0,167,160,.18);
}

.frame-compare-list article.adopted .ai-suggestion-head button,
.dimension-compare-list details.adopted .ai-suggestion-head button {
  background: #00a7a0;
  color: #fff;
}

.compact-frame-panel {
  margin-top: 12px;
}

.compare-save-panel {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding: 14px 0 4px;
  background: linear-gradient(180deg, rgba(247,247,246,0), #f7f7f6 46%);
}

.compare-save-panel button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.comparison-result-panel {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.035);
}

.comparison-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #ececea;
}

.comparison-result-head h3 {
  margin: 0;
  color: #161823;
  font-size: 18px;
  font-weight: 780;
}

.comparison-result-head div {
  display: flex;
  gap: 8px;
}

.comparison-result-head button {
  height: 32px;
  border: 1px solid #e0e0de;
  border-radius: 999px;
  background: #fff;
  color: #444;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 650;
}

.comparison-result-head button.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.comparison-result-head button[data-result-video] {
  height: 36px;
  padding: 0 18px;
}

#comparisonResultOutput {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  background: #111;
  color: rgba(255,255,255,.9);
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-wrap;
}

.competitor-comparison {
  border: 1px solid rgba(0,167,160,.16);
  background: linear-gradient(180deg, #f6fffd, #f7f7f6);
}

.competitor-video-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72vw;
  margin-top: 0.95vw;
}

.competitor-card {
  overflow: hidden;
  border-radius: 0.72vw;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.competitor-card video {
  width: 100%;
  aspect-ratio: 9 / 12;
  object-fit: cover;
  filter: brightness(.82);
}

.competitor-card strong,
.competitor-card span,
.competitor-card em {
  display: block;
  padding: 0 0.72vw;
}

.competitor-card strong {
  margin-top: 0.65vh;
  color: #161823;
  font-size: 0.76vw;
  font-weight: 680;
}

.competitor-card span {
  margin-top: 0.35vh;
  color: #00a7a0;
  font-size: 0.6vw;
  line-height: 1.35;
}

.competitor-card em {
  margin: 0.5vh 0 0.75vh;
  color: #626262;
  font-size: 0.62vw;
  font-style: normal;
  line-height: 1.42;
}

.dna-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72vw;
  margin-top: 0.95vw;
}

.dna-compare-grid section {
  border-radius: 0.72vw;
  background: #fff;
  padding: 0.82vw;
}

.dna-compare-grid h4 {
  margin: 0 0 0.55vh;
  color: #161823;
  font-size: 0.74vw;
  font-weight: 720;
}

.dna-compare-grid span {
  display: block;
  margin-top: 0.35vh;
  color: #4b4d4c;
  font-size: 0.64vw;
  line-height: 1.45;
}

.help-bubble {
  position: fixed;
  right: 0.83vw;
  bottom: 5.83vh;
  z-index: 30;
  display: grid;
  width: 2.78vw;
  height: 5.36vh;
  place-items: center;
  border-radius: 50%;
  background: #1f1f1f;
  color: #fff;
  font-size: 1.46vw;
  font-weight: 760;
}

.avatar-bubble {
  position: fixed;
  right: 0.49vw;
  bottom: 10.44vh;
  z-index: 31;
  display: grid;
  width: 2.54vw;
  height: 4.89vh;
  place-items: center;
  border: 2px solid #d4d5d6;
  border-radius: 50%;
  background: #fff;
  font-size: 1.51vw;
  box-shadow: 0 0.75vh 1.07vw rgba(0,0,0,.22);
}

.workbench-enter-row {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px 18px;
  background: #fff;
}

.workbench-enter-row button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.workbench-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  justify-content: flex-end;
  background: rgba(28, 25, 22, 0.1);
  pointer-events: none;
}

.workbench-dialog {
  width: min(392px, calc(100vw - 24px));
  height: calc(100vh - 24px);
  margin: 12px 12px 12px 0;
  overflow: hidden;
  border: 1px solid var(--wb-border);
  border-radius: 16px;
  background: var(--wb-panel);
  box-shadow: var(--wb-shadow-pop);
  pointer-events: auto;
  animation: workbenchSlideIn .22s ease-out;
}

@keyframes workbenchSlideIn {
  from { transform: translateX(24px); opacity: .4; }
  to { transform: translateX(0); opacity: 1; }
}

.workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 98px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.workbench-head span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  color: #8a8a84;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
}

.workbench-head h2 {
  margin: 12px 0 0;
  color: #1a1a18;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.workbench-head button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 9px;
  background: #fff;
  color: #5e5e58;
  font-size: 20px;
  line-height: 1;
  transition: border-color .18s ease, background .18s ease;
}

.workbench-head button:hover {
  border-color: rgba(0,0,0,.14);
  background: #fbfbfa;
}

.workbench-body {
  display: block;
  height: calc(100% - 98px);
  overflow-y: auto;
  padding: 18px 20px 20px;
  background: var(--wb-panel);
}

.workbench-body section {
  border: 1px solid var(--wb-border-subtle);
  border-radius: 12px;
  background: var(--wb-card);
  box-shadow: var(--wb-shadow-low);
  padding: 14px;
}

.workbench-brief {
  margin-bottom: 12px;
}

.workbench-brief strong {
  color: #211f1b;
  font-size: 13px;
  font-weight: 700;
}

.workbench-brief p {
  margin: 8px 0 0;
  color: #5e5e58;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

.workbench-brief dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.workbench-brief dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  background: #f2f1ec;
  padding: 9px 10px;
}

.workbench-brief dt,
.workbench-brief dd {
  margin: 0;
  font-size: 12px;
}

.brief-bottom-actions .primary-video-cta {
  min-width: 180px;
  height: 42px;
  font-size: 14px;
}

.workbench-brief dt {
  color: #8f8f88;
  font-weight: 650;
}

.workbench-brief dd {
  color: #1a1a18;
  font-weight: 650;
  text-align: right;
}

.workbench-task-card {
  display: grid;
  gap: 12px;
}

.task-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-status-head span {
  display: block;
  color: #8a8a84;
  font-size: 12px;
  font-weight: 650;
}

.task-status-head strong {
  display: block;
  margin-top: 4px;
  color: #1a1a18;
  font-size: 15px;
  font-weight: 700;
}

.task-status-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--wb-green-bg);
  color: var(--wb-green);
  padding: 6px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.generation-preview {
  position: relative;
  display: grid;
  height: 190px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 46% 34%, rgba(63,115,86,.16), transparent 26%),
    linear-gradient(135deg, #f4f3ee, #e7e3db);
}

.generation-preview-frame {
  width: 92px;
  height: 164px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.28)),
    linear-gradient(135deg, #e7c1c1, #f7f1eb 45%, #111 46% 48%, #f2f2f2 49%);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.generation-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.46) 45%, transparent 58% 100%);
  content: "";
  animation: uploadSweep 1.8s ease-in-out infinite;
}

.generation-preview span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(17,17,17,.72);
  color: #fff;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 780;
}

.generation-preview.has-video {
  height: auto;
  min-height: 190px;
  background: #111;
}

.generation-preview.has-video::after {
  display: none;
}

.generation-preview video {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

.workbench-provider-note {
  margin: 0;
  border-radius: 10px;
  background: #f7f6f1;
  color: #6a665f;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
}

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

.workbench-progress b {
  color: #1a1a18;
  font-size: 13px;
  font-weight: 700;
}

.workbench-progress i {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e6e4;
}

.workbench-progress i::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 42%);
  border-radius: inherit;
  background: linear-gradient(90deg, #3f7356, #8d7140);
  content: "";
}

.generation-inline-progress[style*="100%"] i::before {
  background: linear-gradient(90deg, #00a99d, #35b779);
}

.video-player-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.video-player-modal.hidden {
  display: none;
}

.video-player-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 13, 16, .72);
  cursor: zoom-out;
}

.video-player-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(86vw, 680px);
  max-height: 92vh;
  border-radius: 18px;
  background: #111;
  padding: 14px;
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
}

.video-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.video-player-head strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-player-head button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.video-player-dialog video {
  display: block;
  width: 100%;
  max-height: calc(92vh - 78px);
  border-radius: 12px;
  background: #000;
  object-fit: contain;
}

.workbench-stage {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.055);
  border-radius: 12px;
  background: #f8f7f3;
}

.workbench-stage.active {
  border-color: rgba(63,115,86,.18);
  background: #fbfbfa;
}

.workbench-stage.pending {
  box-shadow: inset 0 0 0 1px rgba(141,113,64,.14);
}

.workbench-stage.done span {
  background: #00aaa1;
}

.workbench-stage span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #1a1a18;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.workbench-stage strong {
  color: #211f1b;
  font-size: 13px;
  font-weight: 700;
}

.workbench-stage p {
  margin: 5px 0 0;
  color: #746d64;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.workbench-handle {
  position: fixed;
  right: 12px;
  bottom: 128px;
  z-index: 98;
  display: grid;
  min-width: 112px;
  gap: 2px;
  border: 1px solid var(--wb-border);
  border-radius: 14px 0 0 14px;
  background: rgba(255,255,253,.96);
  color: #1a1a18;
  padding: 10px 12px;
  text-align: left;
  box-shadow: var(--wb-shadow-pop);
}

.workbench-handle::before {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 0 0 14px;
  background: linear-gradient(90deg, #3f7356 0 var(--progress, 0%), #e2ded4 var(--progress, 0%) 100%);
  content: "";
}

.workbench-handle span {
  color: var(--wb-green);
  font-size: 12px;
  font-weight: 800;
}

.workbench-handle b {
  color: #5e5e58;
  font-size: 12px;
  font-weight: 650;
}
