:root {
  color-scheme: light;
  --bg: #ffffff;
  --canvas: #fbfbfb;
  --surface: #ffffff;
  --surface-soft: #f5f5f5;
  --surface-hover: #eeeeee;
  --text: #141414;
  --text-soft: #4f4f57;
  --muted: #85858d;
  --line: #e6e6e9;
  --line-strong: #d7d7dc;
  --accent: #6f4cff;
  --accent-soft: #f0ebff;
  --green: #0f766e;
  --green-soft: #e8f7f4;
  --amber: #b45309;
  --amber-soft: #fff7e6;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --shadow: 0 18px 44px rgba(20, 20, 20, 0.08);
  --shadow-soft: 0 1px 2px rgba(20, 20, 20, 0.05);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 21px;
  line-height: 1.2;
}

h2 {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h3 {
  font-size: 16px;
  line-height: 1.35;
}

h4 {
  font-size: 15px;
  line-height: 1.35;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.app-shell {
  display: block;
  min-height: 100vh;
  background: var(--bg);
}

.input-pane {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--bg);
  padding: 18px 14px;
}

.result-pane {
  min-width: 0;
  padding: 0 42px 42px;
  overflow: auto;
}

.result-pane:focus {
  outline: none;
}

.brand-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  padding: 0 8px;
}

.brand-row p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #0b0b0f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.side-menu {
  display: grid;
  gap: 6px;
}

.menu-label {
  margin: 14px 8px 6px;
  color: #9a9aa2;
  font-size: 12px;
  font-weight: 650;
}

.tool-tab {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #2b2b31;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}

.tool-tab:hover:not(:disabled) {
  background: var(--surface-soft);
}

.tool-tab.active {
  background: var(--surface-soft);
  color: #0b0b0f;
}

.tool-tab strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f0f0f2;
  color: #222228;
  font-size: 11px;
  font-weight: 850;
}

.tool-tab.active .nav-icon {
  background: #111116;
  color: #ffffff;
}

.side-note {
  margin: 0 8px;
  border-radius: var(--radius);
  background: #fafafa;
  color: var(--muted);
  padding: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.top-button,
.credit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: #33333a;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.credit-pill,
.top-button.purple {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}

.workspace-hero {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 58px 0 22px;
  text-align: center;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 720;
  box-shadow: var(--shadow-soft);
}

.workspace-hero p {
  max-width: 620px;
  font-size: 15px;
}

.quick-prompts {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto 28px;
}

.quick-prompts span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #616168;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 650;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1360px;
  margin: 0 auto 26px;
}

.feature-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.feature-card:hover {
  background: #eeeeef;
}

.feature-card.active {
  border-color: rgba(111, 76, 255, 0.32);
  background: #f5f2ff;
}

.feature-card strong,
.feature-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card strong {
  font-size: 14px;
  font-weight: 800;
}

.feature-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.thumb {
  position: relative;
  isolation: isolate;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--thumb-bg, #dddddf);
  box-shadow: inset 0 -12px 18px rgba(17, 17, 22, 0.12);
}

.lottie-thumb {
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.lottie-thumb svg {
  width: 100% !important;
  height: 100% !important;
}

.lottie-thumb::before {
  display: none;
}

.thumb-a {
  --thumb-bg: linear-gradient(135deg, #111116, #7c6cff);
  --skin: #ffe3c7;
  --body: #f5f0ff;
  --tool: #c8b7ff;
}

.thumb-b {
  --thumb-bg: linear-gradient(135deg, #ffb36a, #ff6b6b);
  --skin: #ffe0bd;
  --body: #fff0cf;
  --tool: #fff7e8;
}

.thumb-c {
  --thumb-bg: linear-gradient(135deg, #dff3ff, #7b64ff);
  --skin: #ffe4ca;
  --body: #eff7ff;
  --tool: #ffffff;
}

.thumb-d {
  --thumb-bg: linear-gradient(135deg, #0f766e, #c8f7ef);
  --skin: #ffdfbd;
  --body: #e6fffa;
  --tool: #ffffff;
}

.thumb-e {
  --thumb-bg: linear-gradient(135deg, #ffcc4d, #111116);
  --skin: #ffe0bd;
  --body: #fff4bf;
  --tool: #ffffff;
}

.thumb-f {
  --thumb-bg: linear-gradient(135deg, #78d6ff, #6f4cff);
  --skin: #ffe3c7;
  --body: #eef7ff;
  --tool: #ffffff;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: auto -8px -10px 18px;
  z-index: -1;
  width: 54px;
  height: 34px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-12deg);
}

.thumb-person {
  position: absolute;
  left: 9px;
  top: 8px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--skin);
  box-shadow:
    inset -5px -5px 0 rgba(153, 89, 55, 0.12),
    2px 22px 0 -3px var(--body);
}

.thumb-person::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #111116;
  box-shadow: 9px 0 0 #111116;
}

.thumb-person::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 17px;
  width: 9px;
  height: 4px;
  border-bottom: 2px solid #111116;
  border-radius: 0 0 999px 999px;
}

.thumb-tool {
  position: absolute;
  right: 8px;
  bottom: 9px;
  background: var(--tool);
}

.thumb-a .thumb-tool {
  width: 4px;
  height: 15px;
  border-radius: 3px;
  box-shadow:
    7px -6px 0 var(--tool),
    14px -12px 0 var(--tool);
}

.thumb-b .thumb-tool {
  right: 9px;
  bottom: 12px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--tool);
  border-radius: 50%;
  background: transparent;
}

.thumb-b .thumb-tool::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: var(--tool);
  transform: rotate(42deg);
}

.thumb-c .thumb-tool {
  right: 8px;
  bottom: 10px;
  width: 17px;
  height: 20px;
  border-radius: 5px;
  background:
    linear-gradient(var(--tool), var(--tool)) 5px 7px / 8px 2px no-repeat,
    linear-gradient(var(--tool), var(--tool)) 5px 12px / 6px 2px no-repeat,
    rgba(255, 255, 255, 0.46);
}

.thumb-e .thumb-tool {
  right: 7px;
  bottom: 10px;
  width: 20px;
  height: 15px;
  border: 2px solid var(--tool);
  border-radius: 5px;
  background:
    radial-gradient(circle at 62% 45%, var(--tool) 0 3px, transparent 4px),
    rgba(255, 255, 255, 0.22);
}

.thumb-d .thumb-tool {
  right: 11px;
  bottom: 13px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--tool);
  transform: rotate(35deg);
}

.thumb-d .thumb-tool::before,
.thumb-d .thumb-tool::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--tool);
}

.thumb-d .thumb-tool::after {
  transform: rotate(90deg);
}

.thumb-f .thumb-tool {
  right: 7px;
  bottom: 12px;
  width: 21px;
  height: 12px;
  border-radius: 999px;
  background: var(--tool);
}

.thumb-f .thumb-tool::before,
.thumb-f .thumb-tool::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--tool);
}

.thumb-f .thumb-tool::before {
  left: 4px;
  top: -7px;
  width: 11px;
  height: 11px;
}

.thumb-f .thumb-tool::after {
  right: 3px;
  top: -5px;
  width: 9px;
  height: 9px;
}

.workspace-stack {
  max-width: 1240px;
  margin: 0 auto;
}

.mode-switch {
  display: flex;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 5px;
  box-shadow: var(--shadow-soft);
}

.mode-switch button {
  min-height: 34px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  padding: 7px 14px;
}

.mode-switch button.active {
  background: #111116;
  color: #ffffff;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.translate-workbench {
  max-width: 1240px;
  margin: 0 auto 26px;
  padding: 16px;
}

.translate-form {
  display: grid;
  gap: 12px;
}

.translate-control-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(210px, 0.8fr) 170px auto;
  gap: 12px;
  align-items: end;
}

.translate-upload-control {
  display: grid;
  gap: 7px;
}

.translate-upload-control > span {
  color: #33333a;
  font-size: 13px;
  font-weight: 760;
}

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

.upload-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 45px;
}

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

.translate-control-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.translate-stage {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(360px, 1.2fr) minmax(300px, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 580px;
}

.translate-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

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

.translate-column-head h3 {
  font-size: 17px;
  font-weight: 850;
}

.translate-column-head p {
  margin-top: 3px;
  font-size: 12px;
}

.translate-output-column {
  background: #fffefe;
}

.translate-source-column {
  background: #fcfcfc;
}

.source-area {
  display: flex;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
}

.source-area textarea {
  min-height: 0;
  flex: 1;
  resize: none;
  line-height: 1.65;
}

.composer-panel {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto 26px;
  padding: 18px;
}

.compact-panel {
  max-width: none;
  margin: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.competitor-composer {
  max-width: 760px;
}

.competitor-composer .analysis-form {
  gap: 16px;
}

.competitor-composer .composer-footer {
  align-items: center;
}

.competitor-result-panel {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.analysis-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.form-grid.three {
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
}

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

.cloud-controls label:last-child {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: #33333a;
  font-size: 13px;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  resize: vertical;
}

textarea {
  min-height: 96px;
}

input::placeholder,
textarea::placeholder {
  color: #a9a9ae;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #c4c4ca;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #beb1ff;
  box-shadow: 0 0 0 4px rgba(111, 76, 255, 0.1);
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mini-actions {
  display: flex;
  gap: 8px;
}

.mini-actions span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: #33333a;
  font-weight: 780;
}

.action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: #111116;
  color: #ffffff;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 780;
}

button:not(.tool-tab):not(.feature-card):hover:not(:disabled) {
  background: #2a2a31;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

button.secondary,
.secondary-link {
  border: 1px solid var(--line);
  background: #f7f7f8;
  color: #25252b;
}

button.secondary:hover:not(:disabled),
.secondary-link:hover {
  background: #eeeeef;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 11px;
  padding: 0 14px;
  font-weight: 780;
  text-decoration: none;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

.status-panel {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: 14px;
  background: #f6f6f7;
  color: var(--text-soft);
  padding: 10px 12px;
  font-size: 13px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9b9ba3;
}

.status-panel.loading {
  background: var(--amber-soft);
}

.status-panel.loading .dot {
  background: var(--amber);
}

.status-panel.ready {
  background: var(--green-soft);
}

.status-panel.ready .dot {
  background: var(--green);
}

.status-panel.error {
  background: var(--danger-soft);
}

.status-panel.error .dot {
  background: var(--danger);
}

.tool-result {
  margin-bottom: 26px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--surface);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.toolbar h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 850;
}

.toolbar p {
  margin-top: 6px;
  font-size: 14px;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 820;
}

.empty-state {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  padding: 42px 22px;
}

.empty-state p {
  max-width: 560px;
}

.empty-visual {
  width: min(440px, 82vw);
  height: 178px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 8px;
}

.empty-visual span {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.empty-visual span:nth-child(1) {
  height: 72%;
}

.empty-visual span:nth-child(2) {
  height: 100%;
  background: var(--accent-soft);
}

.empty-visual span:nth-child(3) {
  height: 58%;
  background: var(--green-soft);
}

.translate-visual span:nth-child(1) {
  height: 100%;
}

.translate-visual span:nth-child(2) {
  height: 74%;
}

.translate-visual span:nth-child(3) {
  height: 88%;
}

.enhance-visual span:nth-child(1) {
  height: 72%;
  background: var(--accent-soft);
}

.enhance-visual span:nth-child(2) {
  height: 100%;
}

.enhance-visual span:nth-child(3) {
  height: 82%;
  background: var(--green-soft);
}

.cover-visual span:nth-child(1) {
  height: 92%;
  background: #fff4bf;
}

.cover-visual span:nth-child(2) {
  height: 100%;
  background: #111116;
}

.cover-visual span:nth-child(3) {
  height: 72%;
  background: var(--accent-soft);
}

.cloud-visual span:nth-child(1) {
  height: 76%;
  background: #e6f7ff;
}

.cloud-visual span:nth-child(2) {
  height: 100%;
  background: var(--accent-soft);
}

.cloud-visual span:nth-child(3) {
  height: 64%;
  background: var(--green-soft);
}

.result-content {
  display: grid;
  gap: 18px;
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 18px;
  align-items: start;
  border-radius: 18px;
  background: #111116;
  color: #ffffff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.summary-band p {
  color: #d9d9df;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #9f8cff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.card-grid,
.compact-grid,
.split-grid {
  display: grid;
  gap: 12px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.split-grid {
  grid-template-columns: 1fr 1fr;
}

.card,
.info-panel,
.template-card,
.action-item,
.relationship-map,
.translation-result,
.tikhub-column,
.enhance-stage,
.media-preview,
.prompt-output {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card,
.info-panel,
.template-card,
.action-item {
  padding: 15px;
}

.card h4,
.template-card h4,
.info-panel h4 {
  margin-bottom: 8px;
}

.card p,
.info-panel p,
.template-card p,
.action-item p {
  font-size: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.pill,
.meta-row span {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 780;
}

.priority-high {
  color: var(--danger);
}

.relationship-map {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  margin-bottom: 12px;
  padding: 14px;
}

.node {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 780;
}

.node.product {
  border-color: #111116;
  background: #111116;
  color: #ffffff;
}

.edge-label {
  color: var(--muted);
  font-size: 12px;
}

.template-list,
.action-list,
.enhance-result,
.cover-result,
.cloud-result {
  display: grid;
  gap: 12px;
}

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

.translation-result {
  display: grid;
  gap: 12px;
  padding: 0;
}

.bilingual-output {
  display: grid;
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 3px;
}

.bilingual-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.bilingual-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
}

.bilingual-card p {
  color: var(--text);
  font-size: 14px;
}

.bilingual-en {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.bilingual-zh {
  color: #26262c;
  font-weight: 650;
}

.translation-output {
  min-height: 520px;
  max-height: none;
  border-color: var(--line);
  background: #ffffff;
  line-height: 1.68;
  white-space: pre-wrap;
  resize: vertical;
}

.compact-empty {
  min-height: 480px;
  border-style: dashed;
  background: #fbfbfb;
  padding: 28px 18px;
}

.compact-empty .empty-visual {
  width: min(260px, 100%);
  height: 120px;
}

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

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

.report-video-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 13px;
  box-shadow: var(--shadow-soft);
}

.report-video-main {
  min-width: 0;
}

.report-video-item > a {
  align-self: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.report-video-item > a:hover {
  background: #e5ddff;
}

.tikhub-column {
  min-width: 0;
  overflow: hidden;
}

.tikhub-column .section-head {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 13px 14px;
}

.tikhub-column .section-head span {
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px;
  font-weight: 850;
}

.tikhub-list {
  display: grid;
}

.empty-list {
  padding: 34px 14px;
  color: var(--muted);
  text-align: center;
}

.tikhub-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid #ededf0;
  padding: 12px 14px;
}

.tikhub-item:last-child {
  border-bottom: 0;
}

.item-rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--surface-soft);
  color: #34343b;
  font-weight: 850;
  font-size: 13px;
}

.item-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 13px;
}

.item-line span {
  color: var(--muted);
}

.tikhub-item p {
  margin-top: 6px;
  font-size: 13px;
}

.tikhub-item a {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}

.tikhub-item a:hover {
  text-decoration: underline;
}

.tier-note {
  color: var(--text-soft);
}

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

.mini-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 180px;
  gap: 12px;
  align-items: start;
}

.error-box {
  border: 1px solid #f2b8b5;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  padding: 12px;
  margin-top: 12px;
}

.enhance-layout {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto 26px;
}

.enhance-result-panel {
  min-width: 0;
}

.cover-result-panel {
  min-width: 0;
}

.cloud-result-panel {
  min-width: 0;
}

.upload-drop {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
}

.download-box {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.download-box h3 {
  font-size: 15px;
}

.download-box p {
  margin-top: 4px;
  font-size: 13px;
}

.download-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.download-preview {
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #111116;
}

.download-preview.is-empty {
  border: 1px dashed var(--line-strong);
  background: #f6f6f7;
}

.download-preview:empty {
  display: none;
}

.download-preview video {
  display: block;
  width: 100%;
  max-height: 520px;
}

.download-preview p {
  padding: 16px;
  color: #b7b7c2;
  font-size: 13px;
  text-align: center;
}

.download-preview.is-empty p {
  color: var(--muted);
}

.translate-history-block {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.compact-head {
  margin-bottom: 8px;
}

.text-button {
  min-height: auto;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 4px 6px;
  font-size: 12px;
}

.text-button:hover:not(:disabled) {
  background: var(--surface-soft);
}

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

.history-item {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}

.history-item strong,
.history-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item strong {
  font-size: 13px;
}

.history-item span {
  color: var(--muted);
  font-size: 12px;
}

.upload-drop.dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.upload-drop h3 {
  font-size: 15px;
}

.upload-drop p {
  margin-top: 4px;
  font-size: 13px;
}

.upload-drop button {
  grid-column: 1 / -1;
  width: 100%;
}

.enhance-file-queue {
  display: grid;
  gap: 8px;
  min-height: 260px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
}

.enhance-file-queue.empty-list {
  align-content: center;
  min-height: 220px;
}

.enhance-file-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbfc;
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}

.enhance-file-item:hover:not(:disabled) {
  background: #f4f4f5;
}

.enhance-file-item.active {
  border-color: rgba(15, 118, 110, 0.24);
  background: var(--green-soft);
}

.enhance-file-item span {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #111116;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.enhance-file-item strong,
.enhance-file-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enhance-file-item strong {
  font-size: 13px;
}

.enhance-file-item small {
  color: var(--muted);
  font-size: 12px;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #111116;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.enhance-stage {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
}

.enhance-progress-card,
.enhance-preview-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.enhance-progress-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
}

.enhance-progress-card p {
  margin-top: 4px;
  font-size: 13px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f0f1;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f4cff, #0f766e);
  transition: width 0.32s ease;
}

.enhance-preview-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.enhance-preview-card .section-head {
  margin-bottom: 0;
}

.media-preview {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #111116;
}

.media-preview.is-empty {
  min-height: 420px;
  border: 1px dashed var(--line-strong);
  background: #ffffff;
}

.media-preview.is-empty p {
  color: var(--muted);
  font-size: 14px;
}

.media-preview img,
.media-preview video {
  display: block;
  max-width: 100%;
  border-radius: 16px;
  background: #020617;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
}

.media-preview video {
  width: 100%;
  max-height: 72vh;
}

.cover-preview img {
  max-height: 74vh;
}

.cloud-preview img {
  max-height: 74vh;
}

.prompt-only-preview {
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 420px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  padding: 22px;
  text-align: center;
}

.prompt-only-preview strong {
  font-size: 17px;
}

.prompt-only-preview p {
  font-size: 14px;
}

.prompt-output {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.prompt-output textarea {
  min-height: 180px;
  border-color: var(--line);
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .translate-control-bar {
    grid-template-columns: minmax(280px, 1fr) minmax(210px, 0.8fr);
  }

  .translate-control-actions {
    justify-content: flex-start;
  }

  .translate-stage {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  }

  .translate-source-column {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .enhance-layout,
  .tikhub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .input-pane {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px;
  }

  .brand-row {
    margin-bottom: 12px;
  }

  .side-menu {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    align-items: stretch;
  }

  .menu-label,
  .side-note {
    display: none;
  }

  .tool-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .nav-icon {
    display: none;
  }

  .result-pane {
    padding: 0 14px 30px;
  }

  .topbar {
    position: static;
  }

  .topbar-spacer {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .workspace-hero {
    padding-top: 26px;
  }

  .summary-band,
  .split-grid,
  .action-item,
  .report-video-item,
  .form-grid.two,
  .form-grid.three,
  .translate-control-bar,
  .translate-stage,
  .enhance-stage {
    grid-template-columns: 1fr;
  }

  .translate-source-column {
    grid-column: auto;
  }

  .enhance-stage {
    display: grid;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .input-pane,
  .result-pane {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-row {
    padding: 0;
  }

  .side-menu {
    grid-template-columns: 1fr 1fr;
  }

  .top-button:nth-child(1),
  .top-button:nth-child(4) {
    display: none;
  }

  .workspace-hero {
    gap: 12px;
    padding-bottom: 16px;
  }

  .notice-pill {
    max-width: 100%;
    font-size: 12px;
  }

  .quick-prompts {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .quick-prompts span {
    flex: 0 0 auto;
  }

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

  .composer-panel,
  .compact-panel,
  .translate-workbench,
  .translate-column,
  .toolbar,
  .translation-result,
  .enhance-stage,
  .media-preview,
  .prompt-output {
    border-radius: 18px;
  }

  .composer-panel {
    padding: 14px;
  }

  .composer-footer,
  .action-row,
  .translate-control-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-inline {
    grid-template-columns: 1fr;
  }

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

  .action-row button,
  .action-row .secondary-link,
  .translate-control-actions button,
  .toolbar-actions button,
  .toolbar-actions .secondary-link {
    width: 100%;
  }

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

  .translation-output {
    min-height: 70vh;
  }

  .media-preview {
    min-height: 58vh;
  }
}
