:root {
  color-scheme: light;
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-subtle: #f8faf8;
  --surface-strong: #e9eeea;
  --ink: #17211b;
  --ink-soft: #354139;
  --muted: #68736b;
  --muted-2: #879089;
  --border: #dde3de;
  --border-strong: #cbd4cd;
  --brand: #176b45;
  --brand-deep: #105235;
  --brand-soft: #ddefe6;
  --orange: #e35c38;
  --orange-soft: #f8e2dc;
  --yellow: #dca72c;
  --yellow-soft: #f7edcf;
  --cyan: #26858a;
  --cyan-soft: #dceff0;
  --danger: #b74435;
  --shadow-sm: 0 1px 2px rgba(23, 33, 27, 0.05);
  --shadow-md: 0 14px 34px rgba(23, 33, 27, 0.1);
  --sidebar-width: 232px;
  --topbar-height: 72px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
}

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

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(38, 133, 138, 0.24);
  outline-offset: 2px;
}

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

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.boot-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.shell-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #edf1ed;
}

.brand-lockup {
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 11px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
}

.brand-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
}

.brand-symbol img {
  width: 23px;
  height: 23px;
  filter: invert(1);
}

.brand-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
}

.nav-label {
  margin: 0 10px 8px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.68);
}

.nav-item.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--brand-deep);
  font-weight: 700;
}

.nav-item .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.sidebar-foot {
  padding: 16px 18px 20px;
}

.studio-health {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
}

.health-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d9c67;
  box-shadow: 0 0 0 4px rgba(45, 156, 103, 0.12);
}

.health-meta {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(203, 212, 205, 0.82);
  background: rgba(243, 245, 242, 0.94);
  backdrop-filter: blur(14px);
}

.mobile-brand {
  display: none;
}

.global-search {
  display: flex;
  width: min(470px, 48vw);
  height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.global-search:hover {
  border-color: #aebbb1;
  box-shadow: var(--shadow-sm);
}

.global-search .lucide {
  width: 17px;
}

.search-hint {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-bottom-color: var(--border-strong);
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--muted-2);
  font-size: 11px;
}

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

.date-block {
  margin-right: 6px;
  text-align: right;
}

.date-day {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.date-full {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.icon-button,
.view-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.icon-button:hover,
.view-button:hover,
.view-button.is-active {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.view-button.is-active {
  color: var(--brand);
}

.icon-button .lucide,
.view-button .lucide {
  width: 17px;
  height: 17px;
}

.content {
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
  padding: 32px 34px 80px;
}

.page-enter {
  animation: page-in 220ms ease-out both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.page-kicker,
.panel-kicker,
.visual-eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-size: 29px;
  font-weight: 760;
  line-height: 1.25;
}

.page-description {
  max-width: 690px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.page-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button .lucide {
  width: 16px;
  height: 16px;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-deep);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.button-secondary:hover {
  background: var(--surface-strong);
}

.button-quiet {
  padding-inline: 8px;
  background: transparent;
  color: var(--brand);
}

.button-quiet:hover {
  background: var(--brand-soft);
}

.button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

.sync-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255,255,255,.55);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.sync-note .lucide {
  width: 14px;
  color: var(--brand);
}

.studio-banner {
  display: grid;
  min-height: 184px;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  overflow: hidden;
  border: 1px solid #cdd8d0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.studio-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 34px;
}

.studio-copy .page-kicker {
  color: #85d2aa;
}

.studio-copy h2 {
  max-width: 650px;
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}

.studio-copy p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #bcc8c0;
}

.studio-telemetry {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 7px;
  padding: 28px 30px;
  border-left: 1px solid rgba(255,255,255,.12);
  background: #1e2c24;
}

.telemetry-column {
  position: relative;
  min-height: 112px;
}

.telemetry-bar {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  min-height: 12px;
  border-radius: 3px 3px 0 0;
  background: #69b98e;
  opacity: .88;
}

.telemetry-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: #96a59b;
  font-size: 9px;
  text-align: center;
}

.metric-grid {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  display: grid;
  min-height: 116px;
  padding: 17px;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.metric-value {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  font-weight: 780;
  line-height: 1;
}

.metric-change {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
}

.metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--ink-soft);
}

.metric-icon .lucide {
  width: 17px;
  height: 17px;
}

.metric-card[data-tone="green"] .metric-icon { background: var(--brand-soft); color: var(--brand); }
.metric-card[data-tone="cyan"] .metric-icon { background: var(--cyan-soft); color: var(--cyan); }
.metric-card[data-tone="orange"] .metric-icon { background: var(--orange-soft); color: var(--orange); }
.metric-card[data-tone="yellow"] .metric-icon { background: var(--yellow-soft); color: #99700d; }

.overview-grid {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .74fr);
  gap: 14px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.auth-page {
  display: grid;
  min-height: calc(100vh - var(--topbar-height) - 70px);
  place-items: center;
  padding: 28px 0;
}

.auth-panel {
  width: min(100%, 430px);
  padding: 30px;
}

.auth-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.auth-mark.is-owner { background: var(--yellow-soft); color: #80600d; }
.auth-mark .lucide { width: 23px; height: 23px; }
.auth-panel h1 { margin: 4px 0 8px; font-size: 25px; }
.auth-panel > p:not(.page-kicker) { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-form { display: grid; margin-top: 8px; }
.password-field { position: relative; }
.password-field .text-input { padding-right: 46px; }
.password-field .icon-button { position: absolute; top: 3px; right: 3px; width: 34px; height: 34px; border: 0; background: transparent; }
.auth-error { min-height: 19px; margin: 7px 0 2px; color: #b33c2e; font-size: 11px; }
.auth-submit { width: 100%; }
.auth-demo-note { display: grid; gap: 5px; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; }
.auth-demo-note strong { color: var(--ink-soft); }
.auth-demo-note code { color: var(--ink); }
.auth-panel > .button-quiet { margin-top: 12px; }

.panel-header {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.panel-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.production-list {
  padding: 3px 18px 8px;
}

.production-row {
  display: grid;
  min-height: 92px;
  align-items: center;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) minmax(120px, 180px) auto;
  border-bottom: 1px solid var(--border);
}

.production-row:last-child {
  border-bottom: 0;
}

.product-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 33, 27, .08);
  border-radius: 8px;
  background: var(--product-soft, var(--surface-strong));
  color: var(--product-accent, var(--ink));
  font-size: 13px;
  font-weight: 850;
}

.product-name {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
}

.product-tagline {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-block {
  min-width: 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-strong);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--product-accent, var(--brand));
}

.row-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.row-action:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.row-action .lucide {
  width: 16px;
}

.activity-list {
  padding: 4px 18px 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 45px 8px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

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

.overview-footer-note { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.overview-footer-note .lucide { width: 15px; color: var(--brand); }

.activity-date {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.activity-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.activity-dot.success { background: var(--brand); }
.activity-dot.warning { background: var(--yellow); }
.activity-dot.info { background: var(--cyan); }

.activity-product {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 760;
}

.activity-text {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 29px 0 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.product-grid.is-list {
  grid-template-columns: 1fr;
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(23, 33, 27, .08);
}

.product-card[draggable="true"] { cursor: grab; }
.product-card[draggable="true"]:active { cursor: grabbing; }
.product-card.is-dragging { opacity: .55; transform: scale(.99); }
.product-card.is-drop-target { border-color: var(--product-accent, var(--brand)); box-shadow: 0 0 0 3px var(--product-soft, var(--brand-soft)); }

.product-card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 15px;
}

.product-card-progress { padding: 14px 18px 0; }
.product-card-progress > div:first-child, .document-progress-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.product-card-progress strong, .document-progress-label strong { color: var(--product-accent, var(--brand)); font-size: 13px; }
.product-card-progress .progress-track { height: 5px; margin-top: 7px; }
.product-card-progress .progress-track span, .document-progress .progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--product-accent, var(--brand)); }
.product-card-progress small, .document-progress small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 10px; }

.product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.product-card h3 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.product-category {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 740;
  white-space: nowrap;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge.released { background: var(--brand-soft); color: var(--brand); }
.status-badge.developing { background: var(--cyan-soft); color: #176d72; }
.status-badge.beta { background: var(--yellow-soft); color: #8a640b; }
.status-badge.planned { background: #e8ebe9; color: #606a63; }

.visibility-badge { display: inline-flex; min-height: 21px; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.visibility-badge .lucide { width: 12px; height: 12px; }
.visibility-badge.public { background: var(--brand-soft); color: var(--brand); }
.visibility-badge.unlisted { background: var(--cyan-soft); color: #176d72; }
.visibility-badge.private { background: #eceef2; color: #53627a; }

.product-card-summary {
  min-height: 64px;
  margin: 15px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.platform-tag {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 10px;
}

.product-card-foot {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.card-actions { display: inline-flex; align-items: center; gap: 5px; }
.drag-handle { display: inline-grid; width: 20px; height: 28px; place-items: center; color: var(--muted); cursor: grab; }
.drag-handle .lucide { width: 15px; }
.icon-button.small { width: 27px; height: 27px; border: 0; background: transparent; }
.icon-button.small .lucide { width: 14px; height: 14px; }
.icon-button.small:hover { background: var(--surface-strong); }

.version-note {
  color: var(--muted);
  font-size: 11px;
}

.version-note strong {
  color: var(--ink-soft);
  font-weight: 720;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.card-action .lucide {
  width: 14px;
}

.product-grid.is-list .product-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 150px;
  align-items: stretch;
}

.product-grid.is-list .product-visual {
  min-height: 176px;
  border-right: 1px solid var(--border);
  border-bottom: 0;
}

.product-grid.is-list .product-card-main {
  justify-content: center;
}

.product-grid.is-list .product-card-summary {
  min-height: 0;
}

.product-grid.is-list .product-card-foot {
  flex-direction: column;
  justify-content: center;
  border-top: 0;
  border-left: 1px solid var(--border);
}

.product-visual {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--product-soft, var(--surface-strong));
}

.visual-window {
  position: absolute;
  inset: 15px 16px -7px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 27, .15);
  border-radius: 7px 7px 0 0;
  background: #fff;
  box-shadow: 0 11px 28px rgba(23, 33, 27, .12);
}

.visual-bar {
  display: flex;
  height: 28px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(23, 33, 27, .08);
  background: #f7f9f7;
}

.visual-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8d0ca;
}

.visual-title {
  overflow: hidden;
  margin-left: 5px;
  color: #778079;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-body {
  display: grid;
  height: calc(100% - 28px);
  grid-template-columns: 40px 1fr;
}

.visual-rail {
  padding: 10px 8px;
  border-right: 1px solid #edf0ee;
  background: #fafbfa;
}

.visual-rail span {
  display: block;
  width: 17px;
  height: 4px;
  margin: 0 auto 9px;
  border-radius: 2px;
  background: #dce2dd;
}

.visual-content {
  min-width: 0;
  padding: 11px;
}

.visual-eyebrow {
  margin-bottom: 3px;
  color: var(--product-accent, var(--brand));
  font-size: 6px;
}

.visual-heading {
  color: #2e3831;
  font-size: 10px;
  font-weight: 780;
}

.monitor-stats,
.api-stats {
  display: grid;
  margin-top: 8px;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.monitor-stat,
.api-stat {
  padding: 6px;
  border: 1px solid #e8ece9;
  border-radius: 3px;
}

.monitor-stat strong,
.api-stat strong {
  display: block;
  color: #273129;
  font-size: 10px;
}

.monitor-stat span,
.api-stat span {
  color: #88918a;
  font-size: 6px;
}

.mini-chart {
  display: flex;
  height: 44px;
  align-items: flex-end;
  gap: 4px;
  margin-top: 7px;
  padding: 5px 6px 0;
  border: 1px solid #edf0ee;
  border-bottom: 0;
}

.mini-chart span {
  flex: 1;
  min-height: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--product-accent, var(--brand));
  opacity: .72;
}

.workflow-canvas {
  position: relative;
  height: 91px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #e4e9e5;
  background-color: #fbfcfb;
  background-image: radial-gradient(#d7ddd8 0.6px, transparent 0.6px);
  background-size: 9px 9px;
}

.workflow-node {
  position: absolute;
  width: 54px;
  padding: 6px;
  border: 1px solid #d8dfda;
  border-left: 3px solid var(--product-accent, var(--cyan));
  border-radius: 3px;
  background: #fff;
  color: #4f5b53;
  font-size: 6px;
  box-shadow: 0 2px 7px rgba(23, 33, 27, .07);
}

.workflow-node.a { top: 12px; left: 9px; }
.workflow-node.b { top: 44px; left: 72px; }
.workflow-node.c { top: 13px; right: 9px; }
.workflow-line {
  position: absolute;
  height: 1px;
  background: var(--product-accent, var(--cyan));
  transform-origin: left center;
  opacity: .55;
}

.workflow-line.one { top: 36px; left: 54px; width: 47px; transform: rotate(27deg); }
.workflow-line.two { top: 62px; left: 118px; width: 42px; transform: rotate(-31deg); }

.note-layout {
  display: grid;
  height: 98px;
  margin-top: 7px;
  grid-template-columns: 68px 1fr;
  border: 1px solid #e7ebe8;
}

.note-tree {
  padding: 7px;
  border-right: 1px solid #e7ebe8;
  background: #fafbfa;
}

.note-tree span,
.note-copy span {
  display: block;
  height: 4px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: #dce2dd;
}

.note-tree span:nth-child(2) { width: 74%; }
.note-tree span:nth-child(3) { width: 86%; background: var(--product-soft); }
.note-copy { padding: 10px; }
.note-copy b { display: block; margin-bottom: 9px; color: #303a33; font-size: 8px; }
.note-copy span:nth-child(3) { width: 92%; }
.note-copy span:nth-child(4) { width: 67%; }

.terminal-window {
  height: 100%;
  padding: 12px;
  background: #19221c;
  color: #a9c7b4;
  font-family: Consolas, monospace;
  font-size: 7px;
  line-height: 1.8;
}

.terminal-window .command { color: #fff; }
.terminal-window .ok { color: #70d09c; }
.terminal-window .warn { color: #efbd5a; }

.recorder-stage {
  display: grid;
  height: 65px;
  margin-top: 7px;
  place-items: center;
  border: 1px solid #e2e7e3;
  background: #eef2ef;
}

.record-frame {
  position: relative;
  width: 78%;
  height: 43px;
  border: 1px solid var(--product-accent);
  background: #fff;
}

.record-frame::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.record-timeline {
  display: grid;
  height: 23px;
  margin-top: 5px;
  grid-template-columns: 22px 1fr;
  gap: 5px;
}

.record-play {
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--product-accent);
  color: #fff;
  font-size: 6px;
}

.record-track {
  position: relative;
  align-self: center;
  height: 8px;
  background: var(--product-soft);
}

.record-track::before {
  position: absolute;
  top: -3px;
  left: 46%;
  width: 1px;
  height: 14px;
  background: var(--orange);
  content: "";
}

.api-rows {
  margin-top: 7px;
}

.api-row {
  display: grid;
  grid-template-columns: 34px 1fr 25px;
  gap: 6px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #edf0ee;
  color: #6e7871;
  font-size: 6px;
}

.api-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--product-soft);
}

.api-bar::after {
  display: block;
  width: var(--bar, 60%);
  height: 100%;
  border-radius: inherit;
  background: var(--product-accent);
  content: "";
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.search-field {
  position: relative;
  flex: 1 1 260px;
}

.search-field .lucide {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input,
.select-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-subtle);
}

.search-input {
  padding: 0 12px 0 38px;
}

.select-input {
  min-width: 132px;
  padding: 0 32px 0 10px;
  cursor: pointer;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--cyan);
  background: #fff;
  outline: 3px solid rgba(38, 133, 138, .12);
}

.view-toggle {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-subtle);
}

.view-toggle .view-button {
  width: 33px;
  height: 32px;
  border: 0;
  background: transparent;
}

.view-toggle .view-button.is-active {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.filter-chip {
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: #b6c1b9;
  background: var(--surface);
  color: var(--ink);
}

.result-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.manual-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.manual-hint .lucide { width: 13px; }

.empty-state {
  display: grid;
  min-height: 330px;
  place-content: center;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: rgba(255,255,255,.42);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
}

.empty-icon .lucide { width: 22px; }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { margin: 6px 0 15px; color: var(--muted); font-size: 12px; }

.progress-summary {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.progress-summary-item {
  padding: 17px 20px;
  border-right: 1px solid var(--border);
}

.progress-summary-item:last-child { border-right: 0; }
.progress-summary-item span { display: block; color: var(--muted); font-size: 11px; }
.progress-summary-item strong { display: block; margin-top: 5px; font-size: 20px; }

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.kanban-column {
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.5);
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
}

.kanban-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 760;
}

.kanban-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.kanban-dot.released { background: var(--brand); }
.kanban-dot.developing { background: var(--cyan); }
.kanban-dot.beta { background: var(--yellow); }
.kanban-dot.planned { background: var(--muted-2); }

.kanban-count {
  color: var(--muted);
  font-size: 11px;
}

.kanban-list {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.kanban-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.kanban-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.kanban-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-card .product-icon {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  font-size: 9px;
}

.kanban-card h3 { margin: 0; font-size: 12px; }
.kanban-card p { margin: 9px 0; color: var(--muted); font-size: 10px; }
.kanban-card .progress-meta { margin-top: 8px; }

.roadmap-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.roadmap-row {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-template-columns: minmax(150px, 1.2fr) minmax(220px, 2fr) 110px 100px;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.roadmap-row:last-child { border-bottom: 0; }
.roadmap-row.is-head { min-height: 42px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; font-weight: 700; }
.roadmap-product { display: flex; align-items: center; gap: 10px; font-weight: 720; }
.roadmap-product .product-icon { width: 30px; height: 30px; border-radius: 5px; font-size: 9px; }
.roadmap-detail { color: var(--muted); font-size: 12px; }
.roadmap-stage { font-size: 12px; }
.roadmap-date { color: var(--muted); font-size: 11px; text-align: right; }

.updates-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.updates-filter {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.updates-filter button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.updates-filter button:hover,
.updates-filter button.is-active {
  background: var(--surface-strong);
  color: var(--ink);
}

.updates-filter .product-icon { width: 26px; height: 26px; border-radius: 5px; font-size: 8px; }

.release-list {
  position: relative;
  padding-left: 27px;
}

.release-list::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 1px;
  background: var(--border-strong);
  content: "";
}

.release-card {
  position: relative;
  margin-bottom: 13px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.release-card::before {
  position: absolute;
  top: 22px;
  left: -25px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--product-accent, var(--brand));
  content: "";
}

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

.release-product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.release-product .product-icon { width: 34px; height: 34px; border-radius: 6px; font-size: 10px; }
.release-title { margin: 0; font-size: 15px; }
.release-subtitle { color: var(--muted); font-size: 11px; }
.release-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.release-changes { display: grid; gap: 7px; margin: 14px 0 0 44px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 12px; }
.release-changes li { position: relative; padding-left: 14px; }
.release-changes li::before { position: absolute; top: 8px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); content: ""; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 16px;
}

.about-intro {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.author-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.author-row h2 { margin: 0; font-size: 22px; }
.author-role { margin: 3px 0 0; color: var(--muted); }
.about-lead { max-width: 760px; margin: 24px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; max-width: 700px; margin-top: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; line-height: 1.6; }
.privacy-note .lucide { width: 15px; flex: 0 0 auto; color: var(--brand); }

.principle-list {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.principle-item {
  padding: 16px;
  border-top: 2px solid var(--brand);
  background: var(--surface-subtle);
}

.principle-icon {
  color: var(--brand);
}

.principle-icon .lucide { width: 19px; }
.principle-item h3 { margin: 10px 0 5px; font-size: 13px; }
.principle-item p { margin: 0; color: var(--muted); font-size: 11px; }

.about-side {
  display: grid;
  gap: 14px;
}

.about-fact-panel,
.contact-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.about-fact-panel h3,
.contact-panel h3 { margin: 0 0 14px; font-size: 15px; }
.fact-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.fact-row:last-child { border-bottom: 0; }
.fact-row span { color: var(--muted); }
.contact-panel { background: var(--ink); color: #fff; }
.contact-panel p { margin: 0 0 16px; color: #b9c5bd; font-size: 12px; }
.contact-panel .button { width: 100%; background: #fff; color: var(--ink); }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.detail-back:hover { color: var(--ink); }
.detail-back .lucide { width: 16px; }

.product-document-page { max-width: 1040px; margin-inline: auto; }
.product-document-header { display: grid; gap: 18px; margin-bottom: 18px; padding: 26px 30px 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.document-progress { max-width: 540px; }
.document-progress .progress-track { height: 7px; margin-top: 8px; }
.document-title-row { display: flex; align-items: flex-start; gap: 14px; }
.document-title-row .product-icon { width: 54px; height: 54px; flex: 0 0 auto; font-size: 15px; }
.document-title-row h1 { margin: 5px 0 0; font-size: 34px; line-height: 1.2; }
.document-title-row p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.document-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.document-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; }
.document-meta span { display: inline-flex; align-items: center; gap: 5px; }
.document-meta .lucide { width: 14px; }
.document-actions { margin-top: 0; }
.markdown-body { padding: 32px 42px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body h1 { margin: 0 0 18px; color: var(--ink); font-size: 29px; line-height: 1.3; }
.markdown-body h2 { margin: 30px 0 10px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink); font-size: 19px; line-height: 1.4; }
.markdown-body h3 { margin: 22px 0 7px; color: var(--ink); font-size: 15px; }
.markdown-body p { max-width: 760px; margin: 11px 0; }
.markdown-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.markdown-body ul, .markdown-body ol { display: grid; gap: 5px; max-width: 760px; margin: 10px 0 16px; padding-left: 22px; }
.markdown-body li::marker { color: var(--product-accent, var(--brand)); }
.markdown-body blockquote { max-width: 760px; margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--product-accent, var(--brand)); background: var(--surface-subtle); color: var(--muted); }
.markdown-body code { padding: 2px 5px; border-radius: 3px; background: var(--surface-strong); color: var(--brand); font: .9em ui-monospace, SFMono-Regular, Consolas, monospace; }
.markdown-body .markdown-code { position: relative; max-width: 760px; overflow: auto; margin: 16px 0; padding: 44px 16px 14px; border-radius: 6px; background: #18211c; color: #dce9df; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.markdown-body .markdown-code code { padding: 0; background: transparent; color: inherit; }
.markdown-copy-button { position: absolute; top: 9px; right: 9px; display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 4px 8px; border: 1px solid rgba(220, 233, 223, .22); border-radius: 4px; background: rgba(255, 255, 255, .08); color: #dce9df; font: 700 10px/1 system-ui, sans-serif; cursor: pointer; }
.markdown-copy-button:hover { background: rgba(255, 255, 255, .14); }
.markdown-copy-button .lucide { width: 13px; height: 13px; }
.markdown-body figure { max-width: 860px; margin: 20px 0; }
.markdown-body figure img { display: block; width: 100%; max-height: 520px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-subtle); object-fit: contain; }
.markdown-body figcaption { margin-top: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.markdown-body .markdown-invalid-media { color: #aa472f; font-size: 11px; }
.product-content-layout { display: grid; gap: 14px; }
.content-block { padding: 24px 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.content-block h2 { margin: 0 0 12px; color: var(--ink); font-size: 18px; }
.content-block p { max-width: 780px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.content-image { margin: 0; padding: 14px; }
.content-image img { display: block; width: 100%; max-height: 520px; border-radius: 6px; background: var(--surface-subtle); object-fit: contain; }
.content-image figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; text-align: center; }
.content-placeholder { border-style: dashed; background: rgba(255,255,255,.55); }
.content-callout { border-left: 3px solid var(--product-accent, var(--brand)); background: var(--product-soft, var(--brand-soft)); }
.content-callout p { color: var(--ink-soft); }
.content-button-block { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.content-button-block h2 { margin: 0; }
.content-items { display: grid; gap: 0; }
.content-items article { padding: 12px 0; border-top: 1px solid var(--border); }
.content-items article:first-child { border-top: 0; }
.content-items article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.content-items strong { color: var(--ink-soft); font-size: 12px; }
.content-items span { color: var(--muted); font-size: 10px; }
.content-items p { margin-top: 4px; font-size: 11px; }
.content-empty { color: var(--muted); }
.layout-editor { grid-column: 1 / -1; overflow: hidden; }
.layout-editor .panel-header .select-input { min-width: 150px; height: 34px; font-size: 10px; }
.layout-add-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 3px 18px 12px; }
.layout-add-row .button { min-height: 33px; padding-inline: 10px; font-size: 10px; }
.layout-block-list { display: grid; padding: 0 18px 10px; }
.layout-block-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); }
.layout-block-head { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; grid-column: 1 / -1; align-items: center; gap: 10px; }
.layout-block-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; grid-column: 2 / -1; padding: 3px 0 8px; }
.layout-field { display: grid; gap: 4px; }
.layout-field > span { color: var(--muted); font-size: 10px; }
.layout-field input, .layout-field textarea, .layout-field select { width: 100%; min-height: 32px; padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface-subtle); color: var(--ink-soft); font: inherit; font-size: 11px; }
.layout-field textarea { min-height: 68px; resize: vertical; }
.layout-block-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.layout-block-icon .lucide { width: 15px; }
.layout-block-row > div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.layout-block-row strong { color: var(--ink-soft); font-size: 11px; }
.layout-block-row span:not(.layout-block-icon) { color: var(--muted); font-size: 10px; }
.layout-block-actions { display: inline-flex; gap: 2px; }
.layout-editor-note { display: flex; gap: 6px; margin: 0 18px 17px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--muted); font-size: 10px; line-height: 1.55; }
.layout-editor-note .lucide { width: 14px; flex: 0 0 auto; }

.detail-hero {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-identity .product-icon { width: 56px; height: 56px; font-size: 16px; }
.detail-copy h1 { margin: 0; font-size: 34px; line-height: 1.2; }
.detail-tagline { margin: 17px 0 0; color: var(--ink-soft); font-size: 17px; font-weight: 650; }
.detail-description { max-width: 680px; margin: 10px 0 22px; color: var(--muted); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; color: var(--muted); font-size: 11px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta .lucide { width: 14px; }

.detail-visual {
  min-height: 390px;
  border-left: 1px solid var(--border);
}

.detail-visual .visual-window { inset: 34px 28px -8px; }
.detail-visual .visual-bar { height: 36px; }
.detail-visual .visual-body { height: calc(100% - 36px); grid-template-columns: 58px 1fr; }
.detail-visual .visual-content { padding: 18px; }
.detail-visual .visual-heading { font-size: 15px; }
.detail-visual .visual-eyebrow { font-size: 8px; }
.detail-visual .monitor-stats, .detail-visual .api-stats { margin-top: 14px; gap: 9px; }
.detail-visual .monitor-stat, .detail-visual .api-stat { padding: 10px; }
.detail-visual .monitor-stat strong, .detail-visual .api-stat strong { font-size: 14px; }
.detail-visual .monitor-stat span, .detail-visual .api-stat span { font-size: 8px; }
.detail-visual .mini-chart { height: 105px; gap: 7px; margin-top: 13px; padding: 10px 12px 0; }
.detail-visual .workflow-canvas { height: 210px; margin-top: 14px; background-size: 13px 13px; }
.detail-visual .workflow-node { width: 92px; padding: 10px; font-size: 9px; }
.detail-visual .workflow-node.a { top: 30px; left: 18px; }
.detail-visual .workflow-node.b { top: 110px; left: 42%; }
.detail-visual .workflow-node.c { top: 35px; right: 18px; }
.detail-visual .workflow-line.one { top: 76px; left: 94px; width: 130px; }
.detail-visual .workflow-line.two { top: 141px; left: 57%; width: 90px; }
.detail-visual .note-layout { height: 215px; margin-top: 14px; grid-template-columns: 110px 1fr; }
.detail-visual .note-tree, .detail-visual .note-copy { padding: 15px; }
.detail-visual .note-tree span, .detail-visual .note-copy span { height: 6px; margin-bottom: 13px; }
.detail-visual .note-copy b { margin-bottom: 16px; font-size: 12px; }
.detail-visual .terminal-window { padding: 24px; font-size: 10px; line-height: 2.2; }
.detail-visual .recorder-stage { height: 150px; margin-top: 14px; }
.detail-visual .record-frame { height: 102px; }
.detail-visual .record-timeline { height: 38px; margin-top: 10px; grid-template-columns: 36px 1fr; }
.detail-visual .record-play { font-size: 8px; }
.detail-visual .record-track { height: 12px; }
.detail-visual .api-row { grid-template-columns: 55px 1fr 42px; padding: 10px 0; font-size: 9px; }
.detail-visual .api-bar { height: 6px; }

.detail-metrics {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.detail-metric { padding: 18px 22px; border-right: 1px solid var(--border); }
.detail-metric:last-child { border-right: 0; }
.detail-metric span { display: block; color: var(--muted); font-size: 11px; }
.detail-metric strong { display: block; margin-top: 4px; font-size: 21px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  gap: 16px;
  align-items: start;
}

.feature-section,
.detail-side-section {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.feature-section h2,
.detail-side-section h2 { margin: 0 0 16px; font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feature-item { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 13px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-subtle); }
.feature-item-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 5px; background: var(--product-soft); color: var(--product-accent); }
.feature-item-icon .lucide { width: 17px; }
.feature-item h3 { margin: 0; font-size: 12px; }
.feature-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.milestone-list { display: grid; gap: 0; }
.milestone-item { position: relative; display: grid; min-height: 74px; grid-template-columns: 18px 1fr auto; gap: 10px; padding: 8px 0; }
.milestone-line { position: relative; }
.milestone-line::before { position: absolute; top: 8px; bottom: -17px; left: 7px; width: 1px; background: var(--border-strong); content: ""; }
.milestone-item:last-child .milestone-line::before { display: none; }
.milestone-dot { position: relative; z-index: 1; display: block; width: 15px; height: 15px; border: 4px solid var(--surface); border-radius: 50%; background: var(--border-strong); }
.milestone-item.done .milestone-dot { background: var(--brand); }
.milestone-item.current .milestone-dot { background: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.milestone-copy h3 { margin: 0; font-size: 12px; }
.milestone-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.milestone-date { color: var(--muted); font-size: 10px; white-space: nowrap; }

.detail-release-list { margin-top: 16px; }
.detail-release { padding: 14px 0; border-top: 1px solid var(--border); }
.detail-release:first-child { border-top: 0; }
.detail-release-head { display: flex; justify-content: space-between; gap: 10px; }
.detail-release strong { font-size: 12px; }
.detail-release span { color: var(--muted); font-size: 10px; }
.detail-release ul { display: grid; gap: 4px; margin: 9px 0 0; padding-left: 17px; color: var(--muted); font-size: 10px; }

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: start;
}

.form-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

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

.form-panel-head h2 { margin: 0; font-size: 17px; }
.form-panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.form-panel-head > .lucide { width: 21px; color: var(--brand); }
.form-label { display: block; margin: 14px 0 6px; color: var(--ink-soft); font-size: 12px; font-weight: 720; }
.optional-label { margin-left: 4px; color: var(--muted-2); font-size: 10px; font-weight: 500; }
.form-control { width: 100%; }
.text-input, .textarea-input { border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-subtle); }
.text-input { height: 40px; padding: 0 11px; }
.textarea-input { min-height: 92px; resize: vertical; padding: 10px 11px; line-height: 1.6; }
.text-input::placeholder, .textarea-input::placeholder { color: var(--muted-2); }
.text-input:focus, .textarea-input:focus { border-color: var(--cyan); background: #fff; outline: 3px solid rgba(38,133,138,.12); }
.field-row { display: flex; align-items: flex-end; gap: 10px; }
.field-grow { flex: 1; }
.field-hint { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding-bottom: 10px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.field-hint .lucide { width: 14px; color: var(--brand); }
.check-row { display: flex; align-items: center; gap: 8px; margin: 15px 0 18px; color: var(--muted); font-size: 11px; cursor: pointer; }
.check-row input { width: 15px; height: 15px; accent-color: var(--brand); }
.form-submit { width: 100%; }
.form-footnote { margin: 10px 0 0; color: var(--muted-2); font-size: 10px; text-align: center; }
.feedback-count { color: var(--muted); font-size: 11px; }
.feedback-list { display: grid; gap: 0; padding: 4px 18px 14px; }
.feedback-card { padding: 15px 0; border-bottom: 1px solid var(--border); }
.feedback-card:last-child { border-bottom: 0; }
.feedback-card.is-compact { padding: 15px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-subtle); }
.feedback-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-product-line { display: inline-flex; min-width: 0; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 740; }
.feedback-product-line .product-icon { width: 29px; height: 29px; border-radius: 5px; font-size: 8px; }
.feedback-card-meta { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.feedback-card-meta time { color: var(--muted); font-size: 10px; }
.feedback-badge { display: inline-flex; min-height: 22px; align-items: center; padding: 2px 7px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.feedback-badge.new { background: var(--orange-soft); color: #aa472f; }
.feedback-badge.reviewing { background: var(--cyan-soft); color: #176d72; }
.feedback-badge.adopted { background: var(--brand-soft); color: var(--brand); }
.feedback-badge.planned { background: var(--yellow-soft); color: #8a640b; }
.feedback-badge.declined { background: #e8ebe9; color: #6a726c; }
.feedback-content { margin: 11px 0 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.feedback-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.feedback-replied { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); }
.feedback-replied .lucide { width: 13px; }
.feedback-reply { margin-top: 11px; padding: 9px 11px; border-left: 2px solid var(--brand); background: var(--brand-soft); color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.feedback-reply-label { display: block; margin-bottom: 2px; color: var(--brand); font-size: 10px; font-weight: 760; }
.feedback-empty { min-height: 220px; border: 0; background: transparent; }
.feedback-all { margin-top: 16px; }
.feedback-all-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 4px 18px 18px; }
.product-feedback-section { margin-top: 16px; }
.engagement-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 13px 18px; }
.engagement-bar > div:first-child { display: grid; gap: 3px; }
.engagement-bar strong { color: var(--ink-soft); font-size: 12px; }
.engagement-bar span { color: var(--muted); font-size: 10px; }
.engagement-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.engagement-actions .button { min-height: 33px; padding-inline: 10px; font-size: 10px; }
.engagement-actions .lucide { width: 14px; }
.interest-form { display: grid; gap: 0; padding: 4px 20px 20px; }
.interest-form .form-label { margin-top: 13px; }
.interest-form .button { margin-top: 15px; justify-self: start; }
.product-feedback-list { display: grid; gap: 10px; padding: 4px 18px 18px; }
.feedback-inline-empty { padding: 20px 0; color: var(--muted); font-size: 12px; }

.admin-demo-note { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; padding: 10px 12px; border: 1px solid var(--yellow-soft); border-radius: 6px; background: #fffaf0; color: #7d631d; font-size: 11px; }
.admin-demo-note .lucide { width: 16px; flex: 0 0 auto; }
.admin-metrics { margin-bottom: 15px; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; overflow-x: auto; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-subtle); }
.admin-tab { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 13px; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.admin-tab { flex: 0 0 auto; white-space: nowrap; }
.admin-tab:hover, .admin-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.admin-tab.is-active { color: var(--brand); }
.admin-tab .lucide { width: 16px; }
.visibility-panel { overflow: hidden; }
.visibility-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 15px; }
.visibility-summary-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; }
.visibility-summary-item span { display: inline-flex; align-items: center; gap: 5px; }
.visibility-summary-item .lucide { width: 14px; }
.visibility-summary-item strong { color: var(--ink); font-size: 17px; }
.visibility-summary-item.public .lucide { color: var(--brand); }
.visibility-summary-item.unlisted .lucide { color: #176d72; }
.visibility-summary-item.private .lucide { color: #53627a; }
.visibility-list { display: grid; padding: 0 18px; }
.visibility-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 130px; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.visibility-project { display: flex; min-width: 0; align-items: center; gap: 10px; }
.visibility-project > div { display: grid; gap: 3px; min-width: 0; }
.visibility-project strong { overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.visibility-project span { color: var(--muted); font-size: 10px; }
.visibility-current { justify-self: start; }
.visibility-select { min-width: 0; height: 34px; font-size: 11px; }
.visibility-warning { display: flex; align-items: flex-start; gap: 7px; margin: 15px 18px 18px; padding: 10px 11px; border: 1px solid var(--yellow-soft); border-radius: 5px; background: #fffaf0; color: #7d631d; font-size: 10px; line-height: 1.6; }
.visibility-warning .lucide { width: 15px; flex: 0 0 auto; }
.project-manager { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 14px; align-items: start; }
.project-manager-list, .project-editor { overflow: hidden; }
.project-admin-list { display: grid; max-height: 430px; padding: 0 12px 8px; overflow-y: auto; }
.project-admin-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 9px; padding: 10px 7px; border-bottom: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.project-admin-item:hover, .project-admin-item.is-active { border-radius: 5px; background: var(--surface-subtle); }
.project-admin-item.is-active { box-shadow: inset 3px 0 0 var(--product-accent, var(--brand)); }
.project-admin-item > span:not(.product-icon) { display: grid; gap: 3px; min-width: 0; }
.project-admin-item strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.project-admin-item small { color: var(--muted); font-size: 9px; }
.project-admin-item > .lucide { width: 14px; color: var(--muted); }
.project-create-form { display: grid; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--border); }
.project-create-form h3 { margin: 0 0 2px; color: var(--ink-soft); font-size: 12px; }
.project-create-form .button { justify-self: start; }
.project-edit-form { display: grid; gap: 0; padding: 3px 18px 20px; }
.project-edit-form > .form-label, .project-form-grid .form-label { margin-top: 13px; }
.project-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.project-form-grid label { display: grid; }
.project-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-editor-complete { min-width: 0; }
.project-edit-section { display: grid; gap: 0; padding: 0 0 18px; border-bottom: 1px solid var(--border); }
.project-edit-section + .project-edit-section { padding-top: 18px; }
.project-edit-section > h3, .project-edit-section-heading h3 { margin: 0; color: var(--ink); font-size: 13px; }
.project-edit-section > p, .project-edit-section-heading p { margin: 4px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.project-edit-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.project-markdown-upload { flex: 0 0 auto; cursor: pointer; }
.project-markdown-input.markdown-editor-input { width: 100%; min-height: 460px; margin: 0; }
.project-markdown-section .markdown-editor-actions { padding: 10px 0 0; }
.project-markdown-preview-wrap { margin-top: 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); overflow: hidden; }
.project-markdown-preview-wrap summary { display: flex; align-items: center; gap: 7px; padding: 11px 13px; color: var(--ink-soft); font-size: 11px; font-weight: 700; cursor: pointer; }
.project-markdown-preview-wrap summary .lucide { width: 15px; }
.project-markdown-preview-wrap[open] summary { border-bottom: 1px solid var(--border); }
.project-markdown-preview-wrap .markdown-editor-preview { padding: 20px; }
.project-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 18px 18px; padding: 14px; border: 1px solid #e7c4c1; border-radius: 6px; background: #fff8f7; }
.project-danger-zone > div { display: grid; gap: 3px; }
.project-danger-zone strong { color: #852f2a; font-size: 11px; }
.project-danger-zone span { color: #8a6663; font-size: 10px; line-height: 1.5; }
.button-danger { border-color: #c6544c; background: #fff; color: #a23831; }
.button-danger:hover { background: #a23831; color: #fff; }
.private-notice { min-height: 430px; }
.private-eyebrow { margin-bottom: 8px; color: #53627a; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.developer-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.developer-register, .developer-api { overflow: hidden; }
.developer-register > .lucide { color: var(--brand); }
.developer-form { display: grid; gap: 0; padding: 3px 18px 18px; }
.developer-form .form-label { margin-top: 14px; }
.developer-form .button { margin-top: 15px; justify-self: start; }
.registration-success { display: flex; gap: 10px; margin: 14px 18px 18px; padding: 14px; border: 1px solid #bcdcc8; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.registration-success > span .lucide { width: 20px; }
.registration-success strong { color: var(--ink); font-size: 13px; }
.registration-success p { margin: 3px 0; color: var(--ink-soft); font-size: 11px; }
.registration-success small { color: var(--muted); font-size: 10px; }
.api-base { padding: 4px 7px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-subtle); color: var(--brand); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.endpoint-list { display: grid; padding: 3px 18px 13px; }
.endpoint-row { display: grid; grid-template-columns: 56px 1fr minmax(110px, .9fr); align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.endpoint-row:last-child { border-bottom: 0; }
.endpoint-method { font-size: 9px; font-weight: 800; }
.endpoint-method.post { color: var(--brand); }
.endpoint-method.patch { color: #176d72; }
.endpoint-row code { color: var(--ink-soft); font-size: 10px; }
.endpoint-row > span:last-child { color: var(--muted); font-size: 10px; }
.api-callout { display: flex; gap: 7px; margin: 0 18px 18px; padding: 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--muted); font-size: 10px; line-height: 1.55; }
.api-callout .lucide { width: 15px; flex: 0 0 auto; color: var(--brand); }
.developer-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; padding: 4px 2px; }
.developer-principles > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; }
.principle-number { grid-row: span 2; color: var(--brand); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 800; }
.developer-principles strong { color: var(--ink-soft); font-size: 12px; }
.developer-principles p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.team-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 14px; align-items: start; }
.author-api-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
.author-api-layout .media-host { grid-column: 1 / -1; }
.image-upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 3px 18px 14px; }
.image-upload-label { position: relative; cursor: pointer; }
.image-upload-hint { color: var(--muted); font-size: 10px; }
.media-list { display: grid; padding: 0 18px 12px; }
.media-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.media-row img { width: 54px; height: 42px; object-fit: cover; border-radius: 5px; background: var(--surface-subtle); }
.media-row > div { display: grid; gap: 3px; min-width: 0; }
.media-row strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.media-row span { color: var(--muted); font-size: 10px; }
.media-row code { overflow: hidden; color: var(--brand); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-list, .api-key-list { display: grid; padding: 3px 18px 10px; }
.member-row, .api-key-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.member-row:last-child, .api-key-row:last-child { border-bottom: 0; }
.member-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 9px; font-weight: 800; }
.member-row > div, .api-key-row > div { display: grid; gap: 3px; min-width: 0; }
.member-row strong, .api-key-row strong { color: var(--ink-soft); font-size: 11px; }
.member-row span:not(.member-avatar):not(.member-role):not(.member-status), .api-key-row > div span { color: var(--muted); font-size: 10px; }
.member-role, .member-status, .key-state { color: var(--muted); font-size: 10px; white-space: nowrap; }
.member-status, .key-state { color: var(--brand); }
.key-state.is-revoked { color: var(--muted); }
.team-invite { display: flex; gap: 7px; margin: 2px 18px 18px; }
.team-invite .text-input { min-width: 0; flex: 1; height: 35px; font-size: 11px; }
.team-invite .select-input { min-width: 100px; height: 35px; font-size: 10px; }
.team-invite .button { min-height: 35px; padding-inline: 10px; font-size: 10px; }
.key-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 6px; background: var(--yellow-soft); color: #8a640b; }
.key-icon .lucide { width: 14px; }
.api-key-row code { color: var(--brand); font-size: 10px; }
.api-key-note { display: flex; gap: 7px; margin: 0 18px 18px; padding: 10px; border: 1px solid var(--yellow-soft); border-radius: 5px; background: #fffaf0; color: #7d631d; font-size: 10px; line-height: 1.55; }
.api-key-note .lucide { width: 14px; flex: 0 0 auto; }
.team-empty { min-height: 130px; border: 0; background: transparent; }
.nav-item-owner { color: #7d631d; }
.owner-lock { display: inline-flex; align-items: center; gap: 5px; color: #7d631d; font-size: 10px; }
.owner-lock .lucide { width: 14px; }
.owner-notice { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 15px; padding: 10px 12px; border: 1px solid var(--yellow-soft); border-radius: 6px; background: #fffaf0; color: #7d631d; font-size: 11px; line-height: 1.55; }
.owner-notice .lucide { width: 16px; flex: 0 0 auto; }
.owner-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-subtle); }
.owner-tab-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; border-radius: 999px; background: var(--yellow-soft); color: #7d631d; font-size: 9px; }
.owner-approval-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: 14px; align-items: start; }
.owner-request-list { display: grid; padding: 3px 18px 12px; }
.owner-request { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.owner-request:last-child { border-bottom: 0; }
.owner-request-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.owner-request-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--yellow-soft); color: #7d631d; font-size: 10px; font-weight: 800; }
.owner-request-main > div { display: grid; gap: 3px; min-width: 0; }
.owner-request-main strong { color: var(--ink-soft); font-size: 12px; }
.owner-request-main span, .owner-request-main small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.owner-request-main small { font-size: 9px; }
.owner-request-state { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.owner-request-state .button { min-height: 32px; padding-inline: 9px; font-size: 10px; }
.owner-checklist ul { display: grid; gap: 10px; margin: 0; padding: 14px 18px 20px 34px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.owner-checklist li::marker { color: var(--brand); }
.owner-settings-form { display: grid; gap: 0; padding: 3px 18px 20px; }
.owner-settings-form .form-label { margin-top: 14px; }
.owner-settings-form .button { margin-top: 16px; justify-self: start; }
.captcha-row { display: grid; grid-template-columns: 150px 34px minmax(90px, 1fr); align-items: center; gap: 7px; }
.captcha-row img { width: 150px; height: 48px; border: 1px solid var(--border-strong); border-radius: 5px; background: #f5f8f6; image-rendering: auto; }
.captcha-row .icon-button { width: 34px; height: 34px; }
.owner-setup { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.owner-setup summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.owner-setup .auth-form { margin-top: 12px; }
.owner-account-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 14px; align-items: start; }
.owner-account-list { display: grid; padding: 3px 18px 12px; }
.owner-account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.owner-account-row > div { display: grid; gap: 4px; min-width: 0; }
.owner-account-row strong { color: var(--ink-soft); font-size: 12px; }
.owner-account-row span { color: var(--muted); font-size: 10px; }
.owner-empty { min-height: 200px; border: 0; background: transparent; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 14px; align-items: start; }
.report-form, .report-side { overflow: hidden; }
.field-hint-inline { color: var(--muted); font-size: 10px; font-weight: 500; }
.report-side-copy { padding: 8px 18px 20px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.report-side-copy code { display: block; margin: 12px 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--brand); font-size: 10px; }
.report-side-copy .api-callout { margin: 0; }
.analytics-layout { display: grid; gap: 14px; }
.analytics-stats, .forms-panel { overflow: hidden; }
.analytics-stats .panel-header .select-input { min-width: 150px; height: 34px; font-size: 10px; }
.engagement-metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 18px 13px; }
.engagement-metrics > div { display: grid; gap: 4px; padding: 10px 12px; border-right: 1px solid var(--border); }
.engagement-metrics > div:last-child { border-right: 0; }
.engagement-metrics span { color: var(--muted); font-size: 10px; }
.engagement-metrics strong { color: var(--ink); font-size: 22px; }
.analytics-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 18px; color: var(--muted); font-size: 10px; }
.analytics-actions > span { display: inline-flex; align-items: center; gap: 4px; }
.analytics-actions .lucide { width: 14px; }
.markdown-workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr); gap: 14px; align-items: start; }
.markdown-workspace .template-editor, .markdown-workspace .template-guide, .markdown-workspace .template-preview { overflow: hidden; }
.markdown-editor-input { display: block; width: calc(100% - 36px); min-height: 430px; margin: 0 18px; padding: 14px; border: 1px solid var(--border-strong); border-radius: 6px; background: #18211c; color: #dce9df; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.markdown-editor-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38, 133, 138, .12); outline: 0; }
.markdown-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.markdown-editor-actions > span { display: inline-flex; align-items: center; gap: 5px; }
.markdown-editor-actions .lucide { width: 14px; flex: 0 0 auto; }
.markdown-editor-preview { margin: 0; border: 0; border-radius: 0; }
.markdown-workspace .template-preview { grid-column: 1 / -1; }
.template-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 14px; align-items: start; }
.template-editor, .template-guide, .template-preview { overflow: hidden; }
.template-toolbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 3px 18px 12px; }
.template-toolbar .button { min-height: 34px; padding-inline: 10px; font-size: 10px; }
.template-upload { position: relative; cursor: pointer; }
.template-code { max-height: 470px; margin: 0 18px; overflow: auto; padding: 14px; border: 1px solid var(--border); border-radius: 6px; background: #18211c; color: #dce9df; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.template-code code { font: inherit; }
.template-local-note { display: flex; gap: 6px; margin: 11px 18px 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.template-local-note .lucide { width: 14px; flex: 0 0 auto; color: var(--brand); }
.template-map { display: grid; padding: 3px 18px 12px; }
.template-map > div { display: grid; grid-template-columns: minmax(125px, .85fr) minmax(0, 1.15fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.template-map > div:last-child { border-bottom: 0; }
.template-map code { color: var(--brand); font-size: 10px; }
.template-map span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.template-publish-note { display: flex; gap: 7px; margin: 0 18px 18px; padding: 10px; border: 1px solid var(--yellow-soft); border-radius: 5px; background: #fffaf0; color: #7d631d; font-size: 10px; line-height: 1.55; }
.template-publish-note .lucide { width: 14px; flex: 0 0 auto; }
.template-preview { grid-column: 1 / -1; }
.template-valid { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; }
.template-valid.is-valid { color: var(--brand); }
.template-valid.is-invalid { color: #aa472f; }
.template-valid .lucide { width: 14px; }
.template-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px 18px 14px; }
.template-preview-grid > div { display: grid; gap: 4px; padding: 10px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.template-preview-grid > div:nth-child(3n) { border-right: 0; }
.template-preview-grid span { color: var(--muted); font-size: 10px; }
.template-preview-grid strong { overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.template-section-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 2px 18px 14px; }
.template-section-list > div { min-height: 72px; padding: 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); }
.template-section-list span { color: var(--brand); font-size: 10px; font-weight: 750; }
.template-section-list p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.template-empty { color: var(--muted); font-size: 11px; }
.template-errors { display: flex; gap: 6px; margin: 0 18px 18px; padding: 9px 10px; border: 1px solid #f1c3b8; border-radius: 5px; background: #fff4f1; color: #aa472f; font-size: 10px; }
.template-errors .lucide { width: 14px; flex: 0 0 auto; }
.form-definition-list { display: grid; padding: 2px 18px 8px; }
.form-definition { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.form-definition:last-child { border-bottom: 0; }
.form-definition-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.form-definition-icon .lucide { width: 15px; }
.form-definition > div { display: grid; gap: 3px; flex: 1; }
.form-definition strong { color: var(--ink-soft); font-size: 11px; }
.form-definition span { color: var(--muted); font-size: 10px; }
.form-status { color: var(--brand); font-size: 10px; }
.admin-workspace { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr); gap: 14px; align-items: start; }
.admin-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.admin-filters .select-input { min-width: 0; height: 36px; font-size: 11px; }
.admin-feedback-list { display: grid; max-height: 650px; overflow: auto; padding: 4px 10px 10px; }
.admin-feedback-item { display: block; width: 100%; padding: 13px 10px; border-bottom: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.admin-feedback-item:last-child { border-bottom: 0; }
.admin-feedback-item:hover, .admin-feedback-item.is-active { border-radius: 5px; background: var(--surface-subtle); }
.admin-feedback-item.is-active { box-shadow: inset 3px 0 0 var(--product-accent, var(--brand)); }
.admin-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-item-top .feedback-product-line { font-size: 11px; }
.admin-item-top .product-icon { width: 25px; height: 25px; font-size: 7px; }
.admin-feedback-item > strong { display: block; overflow: hidden; margin-top: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-meta { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-queue-empty { min-height: 250px; border: 0; background: transparent; }
.admin-inspector { min-height: 450px; }
.admin-inspector-inner { padding: 22px; }
.inspector-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.inspector-head .feedback-product-line { align-items: flex-start; }
.inspector-head .feedback-product-line > div { display: grid; gap: 2px; }
.inspector-head .feedback-product-line > div span { color: var(--muted); font-size: 10px; font-weight: 500; }
.inspector-quote { margin: 19px 0; padding: 16px; border-left: 3px solid var(--product-accent, var(--brand)); background: var(--surface-subtle); color: var(--ink-soft); font-size: 15px; font-style: normal; line-height: 1.8; }
.inspector-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 22px; }
.inspector-contact div { padding: 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); }
.inspector-contact dt { color: var(--muted); font-size: 10px; }
.inspector-contact dd { overflow: hidden; margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.decision-block, .reply-block { padding-top: 16px; border-top: 1px solid var(--border); }
.decision-label { display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 760; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.decision-actions .button { min-height: 34px; padding-inline: 10px; font-size: 11px; }
.reply-block { margin-top: 16px; }
.reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.reply-actions .button { min-height: 35px; font-size: 11px; }
.sent-note { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 10px; background: var(--brand-soft); color: var(--brand); font-size: 10px; }
.sent-note .lucide { width: 14px; }
.automation-layout { display: grid; grid-template-columns: minmax(260px, .66fr) minmax(0, 1.34fr); gap: 15px; align-items: start; }
.automation-copy { padding: 28px 18px 18px 4px; }
.automation-illustration { display: grid; width: 44px; height: 44px; margin-bottom: 21px; place-items: center; border-radius: 7px; background: var(--brand-soft); color: var(--brand); }
.automation-illustration .lucide { width: 22px; }
.automation-copy h2 { max-width: 360px; margin: 0; font-size: 23px; line-height: 1.4; }
.automation-copy > p:not(.page-kicker) { max-width: 390px; margin: 12px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.automation-rule { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--brand); font-size: 10px; }
.automation-rule .lucide { width: 14px; }
.automation-form { padding: 0; }
.automation-form .panel-header { align-items: center; }
.automation-fields { padding: 3px 20px 20px; }
.automation-fields .form-label { margin-top: 14px; }
.outbox-panel { margin-top: 18px; overflow: hidden; }
.outbox-panel .panel-header { padding: 14px 15px; }
.outbox-list { display: grid; padding: 0 15px 8px; }
.outbox-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.outbox-row:last-child { border-bottom: 0; }
.outbox-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 5px; background: var(--brand-soft); color: var(--brand); }
.outbox-icon .lucide { width: 14px; }
.outbox-row > div { display: grid; gap: 3px; min-width: 0; }
.outbox-row strong { overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.outbox-row > div span, .outbox-status { color: var(--muted); font-size: 9px; }
.template-hint { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.template-hint code { padding: 2px 4px; border-radius: 3px; background: var(--surface-strong); color: var(--ink-soft); }
.switch-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; font-size: 10px; }
.switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 31px; height: 18px; border-radius: 999px; background: var(--border-strong); transition: background 180ms ease; }
.switch-track::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); content: ""; transition: left 180ms ease; }
.switch-control input:checked + .switch-track { background: var(--brand); }
.switch-control input:checked + .switch-track::after { left: 16px; }


.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 28, 23, .55);
  backdrop-filter: blur(5px);
  animation: fade-in 160ms ease both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: modal-in 190ms ease-out both;
}

@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 14px 20px 20px; }
.download-access-summary { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--ink-soft); }
.download-access-summary > .lucide { width: 17px; flex: 0 0 auto; color: var(--product-accent, var(--brand)); }
.download-access-summary div { display: grid; gap: 3px; }
.download-access-summary strong { font-size: 11px; }
.download-access-summary span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.download-list { display: grid; gap: 8px; }
.download-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-subtle); }
.download-platform-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 6px; background: var(--product-soft); color: var(--product-accent); }
.download-platform-icon .lucide { width: 18px; }
.download-title { margin: 0; font-size: 12px; }
.download-meta { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.download-recommended { margin-left: 5px; color: var(--brand); font-size: 9px; font-weight: 700; }
.demo-note { display: flex; gap: 8px; margin-top: 13px; padding: 10px; border: 1px solid var(--yellow-soft); border-radius: 5px; background: #fffaf0; color: #7d631d; font-size: 10px; }
.demo-note .lucide { width: 15px; flex: 0 0 auto; }

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 160;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  min-width: 260px;
  max-width: 380px;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #bac8be;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  animation: toast-in 180ms ease-out both;
}

.toast .lucide { width: 16px; color: #7ad8a5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ai-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #0f5838;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(23, 107, 69, .25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.ai-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(23, 107, 69, .32); }
.ai-fab.is-open { background: var(--ink); border-color: var(--ink); }
.ai-fab .lucide { width: 20px; height: 20px; }
.ai-fab-label { position: absolute; right: 7px; bottom: 7px; padding: 1px 3px; border-radius: 3px; background: rgba(255,255,255,.18); font-size: 8px; font-weight: 800; line-height: 1; }
.ai-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 89;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 120px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(23, 33, 27, .18);
  animation: ai-panel-in 180ms ease-out both;
}
@keyframes ai-panel-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ai-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 17px 14px; border-bottom: 1px solid var(--border); background: var(--surface-subtle); }
.ai-panel-head h2 { margin: 3px 0 0; font-size: 17px; }
.ai-panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ai-kicker { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.ai-scope { display: grid; gap: 6px; padding: 12px 15px 0; }
.ai-scope label { color: var(--muted); font-size: 10px; font-weight: 700; }
.ai-scope .select-input { width: 100%; height: 35px; min-width: 0; font-size: 11px; }
.ai-messages { display: grid; gap: 9px; min-height: 150px; max-height: 310px; overflow: auto; padding: 14px 15px 10px; }
.ai-message { max-width: 88%; padding: 9px 11px; border-radius: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.ai-message.is-assistant { justify-self: start; border: 1px solid var(--border); background: var(--surface-subtle); }
.ai-message.is-user { justify-self: end; background: var(--brand); color: #fff; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 10px; }
.ai-suggestions button { padding: 5px 8px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.ai-suggestions button:hover { border-color: var(--brand); color: var(--brand); }
.ai-form { display: flex; gap: 7px; padding: 10px 15px 12px; border-top: 1px solid var(--border); }
.ai-form .text-input { min-width: 0; height: 38px; flex: 1; font-size: 11px; }
.ai-form .button { width: 38px; min-height: 38px; padding: 0; }
.ai-form .button .lucide { width: 15px; }
.ai-note { display: flex; align-items: center; gap: 5px; padding: 0 15px 12px; color: var(--muted); font-size: 9px; }
.ai-note .lucide { width: 12px; }

.mobile-nav {
  display: none;
}

.error-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 30px;
  text-align: center;
}

.error-screen h1 { margin: 0; font-size: 22px; }
.error-screen p { max-width: 520px; margin: 8px auto 18px; color: var(--muted); }

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-banner { grid-template-columns: minmax(0, 1fr) 330px; }
  .detail-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); }
  .principle-list { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 82px; }
  .brand-lockup { justify-content: center; padding: 0; }
  .brand-copy, .nav-label, .nav-item span, .studio-health { display: none; }
  .side-nav { align-items: center; padding-inline: 12px; }
  .nav-item { width: 46px; justify-content: center; padding: 0; }
  .sidebar-foot { padding-inline: 18px; }
  .overview-grid { grid-template-columns: 1fr; }
  .activity-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
.activity-item:nth-last-child(2) { border-bottom: 0; }
  .studio-banner { grid-template-columns: 1fr; }
  .studio-telemetry { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-visual { min-height: 360px; border-top: 1px solid var(--border); border-left: 0; }
  .detail-grid, .about-layout { grid-template-columns: 1fr; }
  .about-side { grid-template-columns: 1fr 1fr; }
  .feedback-layout, .admin-workspace, .automation-layout { grid-template-columns: 1fr; }
  .developer-layout, .team-layout, .report-layout, .owner-approval-layout, .owner-account-layout, .template-layout, .markdown-workspace { grid-template-columns: 1fr; }
  .developer-principles { grid-template-columns: 1fr; gap: 14px; }
  .automation-copy { padding: 8px 0 18px; }
}

@media (max-width: 760px) {
  .auth-page { min-height: calc(100vh - 160px); padding: 8px 0; }
  .auth-panel { padding: 22px 18px; }
  .project-manager { grid-template-columns: 1fr; }
  .project-form-grid { grid-template-columns: 1fr; }
  .member-row, .api-key-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .member-row .member-role, .member-row .member-status, .api-key-row .key-state {
    grid-column: 2;
    justify-self: start;
  }
  .member-row > .icon-button, .api-key-row > .icon-button {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
  :root { --topbar-height: 62px; }
  body { padding-bottom: 66px; }
  .shell-layout { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 0 14px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand .brand-copy { display: block; }
  .mobile-brand .brand-symbol { width: 34px; height: 34px; }
  .mobile-brand .brand-symbol img { width: 20px; height: 20px; }
  .mobile-brand strong { font-size: 13px; }
  .global-search { width: 40px; flex: 0 0 40px; justify-content: center; padding: 0; }
  .global-search .search-hint, .global-search .shortcut { display: none; }
  .date-block { display: none; }
  .content { padding: 23px 14px 40px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-title { font-size: 24px; }
  .page-description { font-size: 12px; }
  .page-heading .page-actions .sync-note { display: none; }
  .studio-banner { min-height: 0; }
  .studio-copy { padding: 24px 20px; }
  .studio-copy h2 { font-size: 23px; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 105px; padding: 14px; }
  .metric-value { font-size: 22px; }
  .metric-change { font-size: 10px; }
  .production-list { padding-inline: 14px; }
  .production-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .production-row .progress-block { grid-column: 2 / 4; margin: -4px 0 12px; }
  .production-row > .row-action { grid-column: 3; grid-row: 1; }
  .activity-list { grid-template-columns: 1fr; }
  .activity-item:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .product-grid, .product-grid.is-list { grid-template-columns: 1fr; }
  .product-grid.is-list .product-card { display: flex; }
  .product-grid.is-list .product-visual { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--border); }
  .product-grid.is-list .product-card-foot { flex-direction: row; border-top: 1px solid var(--border); border-left: 0; }
  .filter-bar { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .select-input { flex: 1; min-width: 0; }
  .result-note { order: 5; width: 100%; margin-left: 0; }
  .progress-summary { grid-template-columns: repeat(2, 1fr); }
  .progress-summary-item:nth-child(2) { border-right: 0; }
  .progress-summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .kanban { grid-template-columns: repeat(4, 78vw); }
  .roadmap-table { overflow-x: auto; }
  .roadmap-row { min-width: 700px; }
  .updates-layout { grid-template-columns: 1fr; }
  .updates-filter { position: static; display: flex; overflow-x: auto; padding: 5px; }
  .updates-filter button { width: auto; min-width: max-content; padding-inline: 9px; }
  .updates-filter .product-icon { display: none; }
  .release-list { padding-left: 22px; }
  .release-list::before { left: 4px; }
  .release-card::before { left: -22px; }
  .release-card { padding: 15px; }
  .release-changes { margin-left: 0; }
  .about-intro { padding: 20px; }
  .about-side { grid-template-columns: 1fr; }
  .principle-list { gap: 8px; }
  .feedback-layout { gap: 12px; }
  .feedback-all-grid { grid-template-columns: 1fr; padding-inline: 14px; }
  .feedback-list { padding-inline: 14px; }
  .field-row { display: block; }
  .field-hint { min-height: 0; padding: 6px 0 0; }
  .admin-filters { grid-template-columns: 1fr; }
  .visibility-summary { grid-template-columns: 1fr; }
  .visibility-row { grid-template-columns: minmax(0, 1fr) auto; }
  .visibility-current { grid-column: 2; grid-row: 1; }
  .visibility-select { grid-column: 1 / 3; width: 100%; }
  .endpoint-row { grid-template-columns: 52px minmax(0, 1fr); }
  .endpoint-row > span:last-child { grid-column: 2; }
  .team-invite { flex-wrap: wrap; }
  .team-invite .text-input { flex-basis: 100%; }
  .team-invite .select-input { flex: 1; }
  .team-invite .button { flex: 1; }
  .owner-request { align-items: flex-start; flex-direction: column; }
  .owner-request-state { width: 100%; justify-content: flex-end; }
  .admin-inspector-inner { padding: 17px; }
  .inspector-contact { grid-template-columns: 1fr 1fr; }
  .inspector-contact div:last-child { grid-column: 1 / 3; }
  .automation-copy { padding: 0 0 18px; }
  .automation-copy h2 { font-size: 21px; }
  .automation-fields { padding-inline: 16px; }
  .template-code { max-height: 390px; margin-inline: 14px; font-size: 10px; }
  .template-toolbar { padding-inline: 14px; }
  .markdown-editor-input { width: calc(100% - 28px); min-height: 340px; margin-inline: 14px; }
  .markdown-editor-actions { padding-inline: 14px; }
  .template-local-note, .template-publish-note { margin-inline: 14px; }
  .template-map { padding-inline: 14px; }
  .template-preview { grid-column: auto; }
  .template-preview-grid { grid-template-columns: 1fr 1fr; padding-inline: 14px; }
  .template-preview-grid > div:nth-child(3n) { border-right: 1px solid var(--border); }
  .template-preview-grid > div:nth-child(2n) { border-right: 0; }
  .template-section-list { grid-template-columns: 1fr; padding-inline: 14px; }
  .feedback-card-head { align-items: flex-start; }
  .feedback-card-meta { align-items: flex-end; flex-direction: column; gap: 4px; }
  .detail-copy { padding: 24px 20px; }
  .detail-copy h1 { font-size: 27px; }
  .detail-tagline { font-size: 15px; }
  .detail-visual { min-height: 315px; }
  .detail-visual .visual-window { inset: 23px 14px -7px; }
  .detail-metrics { grid-template-columns: 1fr; }
  .product-document-header { padding: 21px 18px; }
  .document-title-row h1 { font-size: 27px; }
  .document-title-row p { font-size: 13px; }
  .document-meta { gap: 9px 12px; }
  .markdown-body { padding: 22px 18px; font-size: 13px; }
  .markdown-body h1 { font-size: 24px; }
  .markdown-body h2 { font-size: 17px; }
  .content-block { padding: 19px 17px; }
  .content-button-block { align-items: flex-start; flex-direction: column; }
  .content-button-block .button { width: 100%; }
  .layout-editor .panel-header { align-items: flex-start; flex-direction: column; }
  .layout-editor .panel-header .select-input { width: 100%; }
  .layout-add-row { padding-inline: 14px; }
  .layout-block-list { padding-inline: 14px; }
  .layout-block-fields { grid-template-columns: 1fr; grid-column: 1 / -1; }
  .layout-editor-note { margin-inline: 14px; }
  .detail-metric { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .detail-metric:last-child { border-bottom: 0; }
  .detail-metric strong { margin: 0; font-size: 17px; }
  .feature-section, .detail-side-section { padding: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-item { grid-template-columns: 34px minmax(0,1fr); }
  .download-item .button { grid-column: 1 / 3; width: 100%; }
  .toast-root { right: 12px; bottom: 78px; left: 12px; }
  .toast { min-width: 0; max-width: none; }
  .ai-fab { right: 16px; bottom: 80px; width: 52px; height: 52px; }
  .ai-panel { right: 10px; bottom: 142px; width: calc(100vw - 20px); max-height: calc(100vh - 170px); }
  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    height: 66px;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--border-strong);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
  }
  .mobile-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 9px;
  }
  .mobile-nav button.is-active { color: var(--brand); font-weight: 700; }
  .mobile-nav .lucide { width: 18px; height: 18px; }
}

@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-icon { width: 29px; height: 29px; }
  .metric-label { font-size: 11px; }
  .studio-copy h2 { font-size: 21px; }
  .page-heading { gap: 10px; }
  .page-actions .button span { display: none; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100vh - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
