:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f3ff;
  --surface-blue: #dae2fd;
  --text: #131b2e;
  --muted: #424655;
  --outline: #c2c6d8;
  --line: #e2e8f0;
  --primary: #1268ff;
  --primary-dark: #0051d0;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --success: #10b981;
  --warning: #d97706;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
.brand-link,
.stat-card strong {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.page {
  min-height: 100vh;
}

.public-nav,
.top-nav,
.public-footer {
  border-bottom: 1px solid var(--outline);
  background: #faf8ff;
}

.public-nav,
.top-nav-inner,
.public-footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.public-nav,
.top-nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary-dark);
  font-size: 32px;
  font-weight: 700;
}

.icon-brand .icon {
  width: 30px;
  height: 30px;
}

.nav-links,
.nav-actions,
.top-actions,
.hero-actions,
.preview-actions,
.row-actions,
.site-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn,
.icon-btn,
.text-button {
  min-height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn {
  padding: 0 16px;
  border: 1px solid transparent;
}

.btn.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(18, 104, 255, 0.2);
}

.btn.primary:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.btn.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--outline);
}

.btn.secondary:hover,
.icon-btn:hover {
  color: var(--primary);
  background: var(--surface-soft);
  border-color: var(--primary);
}

.btn.danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.75);
}

.btn.xl {
  min-height: 44px;
  padding: 0 28px;
}

.btn.sm {
  min-height: 34px;
  padding: 0 12px;
}

.btn.full {
  width: 100%;
}

.icon-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--outline);
}

.danger-icon:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-soft);
}

.text-button {
  background: transparent;
  color: var(--primary);
  padding: 0 8px;
}

.hero {
  position: relative;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 80px 24px 72px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px 20% auto;
  height: 420px;
  border-radius: 999px;
  background: rgba(18, 104, 255, 0.05);
  filter: blur(80px);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  margin: 0 auto 16px;
  max-width: 920px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
}

.hero p {
  position: relative;
  margin: 0 auto 32px;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.hero-actions {
  position: relative;
  justify-content: center;
  flex-wrap: wrap;
}

.product-preview {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 0.46fr 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-inbox {
  padding-right: 24px;
  border-right: 1px solid var(--outline);
}

.preview-head,
.preview-detail-head,
.card-head,
.panel-head,
.detail-footer,
.modal-head,
.admin-head,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-head h2,
.card-head h2,
.panel-head h2 {
  margin: 0;
  font-size: 24px;
}

.preview-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-top: 14px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
}

.preview-row.active {
  border-left: 4px solid var(--primary);
  background: #fbfbff;
}

.preview-row div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
}

.preview-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.preview-detail {
  display: grid;
  gap: 22px;
}

.preview-detail-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--outline);
}

.avatar,
.user-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--text);
  font-weight: 700;
}

.avatar {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--outline);
}

.preview-detail-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.ai-panel,
.quote,
.note-card,
.context-card {
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: #fbfbff;
}

.ai-panel {
  padding: 16px 16px 16px 20px;
  border-left: 4px solid var(--primary);
}

.ai-panel div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 700;
}

.ai-panel p,
.quote {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 24px;
}

.quote {
  padding: 16px;
  color: var(--text);
}

.phone-shot {
  height: 290px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 72% 72%, rgba(18, 104, 255, 0.35), transparent 24%),
    linear-gradient(135deg, #0f2b3c, #07141d);
}

.phone-card {
  position: absolute;
  left: 24%;
  top: 26%;
  width: 44%;
  padding: 26px;
  border-radius: 18px;
  color: #d9ecff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  transform: rotate(-12deg);
}

.phone-shot button {
  position: absolute;
  right: 15%;
  bottom: 18%;
  min-height: 54px;
  padding: 0 42px;
  border-radius: 999px;
  color: #fff;
  background: #0399e8;
  transform: rotate(-12deg);
}

.process {
  padding: 80px 24px;
  border-top: 1px solid var(--outline);
  background: #faf8ff;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.step-grid {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  min-height: 196px;
  padding: 28px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}

.step-card > span {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--primary);
  background: #faf8ff;
  font-size: 30px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.step-card p,
.public-footer span {
  margin: 0;
  color: var(--muted);
  line-height: 22px;
}

.public-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--outline);
  border-bottom: 0;
}

.public-footer strong {
  color: var(--primary-dark);
  font-size: 24px;
}

.public-footer button {
  margin-left: auto;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #faf8ff;
}

.auth-card {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 18px;
  color: #fff;
  background: var(--primary);
}

.auth-logo span {
  font-size: 34px;
}

.auth-card h1,
.auth-card p {
  text-align: center;
}

.auth-card h1 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 32px;
}

.auth-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.auth-form,
.field,
.modal-card form {
  display: grid;
  gap: 14px;
}

.field {
  gap: 8px;
}

.field span,
.note-card > span,
.feedback-id span,
.modal-head p {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: var(--surface);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 104, 255, 0.12);
}

.form-error {
  min-height: 20px;
  color: var(--danger) !important;
  text-align: left !important;
  margin: 0 !important;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch button {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

.auth-card > .text-button {
  width: 100%;
  margin-top: 12px;
}

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #faf8ff;
}

.console-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 42px 24px 72px;
}

.console-page,
.admin-page {
  display: grid;
  gap: 32px;
}

.page-head h1,
.admin-head h1 {
  margin: 0 0 8px;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
}

.page-head p,
.admin-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.stat-grid {
  display: grid;
  gap: 24px;
}

.stat-grid.five {
  grid-template-columns: repeat(5, 1fr);
}

.stat-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  min-height: 148px;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(194, 198, 216, 0.45);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.stat-card .icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface-blue);
}

.stat-card strong {
  display: inline-block;
  width: fit-content;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.stat-card.accent strong {
  color: var(--primary);
}

.stat-card.warn .icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.stat-card.danger strong,
.stat-card.danger .icon {
  color: var(--danger);
}

.stat-card.success .icon {
  color: var(--success);
}

.table-card,
.feedback-list-panel,
.detail-panel {
  overflow: hidden;
  border: 1px solid rgba(194, 198, 216, 0.45);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-head {
  padding: 24px;
  border-bottom: 1px solid rgba(194, 198, 216, 0.55);
  background: #faf8ff;
}

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

.card-head h2 span {
  color: var(--primary);
}

.search-box {
  position: relative;
  width: min(320px, 100%);
}

.search-box span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
}

.search-box input {
  min-height: 42px;
  padding-left: 42px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(194, 198, 216, 0.55);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: right;
}

tbody tr:nth-child(even) {
  background: rgba(244, 248, 251, 0.7);
}

.site-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.site-cell > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--surface-blue);
  font-weight: 700;
}

.site-cell strong {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

.site-cell small {
  color: var(--muted);
  font-weight: 400;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
}

.chip.primary {
  color: var(--primary);
  background: rgba(18, 104, 255, 0.1);
  border-color: transparent;
}

.chip.neutral {
  color: var(--text);
  background: var(--surface-soft);
}

.chip.danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.2);
}

.chip.success {
  color: #16a34a;
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.2);
}

.empty-state {
  padding: 44px 24px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.empty-state.compact {
  padding: 24px;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 320px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--outline);
  background: var(--surface-soft);
  transition: width 180ms ease, padding 180ms ease;
}

.side-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.side-brand > .icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-size: 28px;
}

.side-collapse {
  width: 36px;
  height: 36px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--outline);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}

.side-collapse:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.side-collapse .icon {
  transform: rotate(180deg);
  transition: transform 180ms ease;
}

.side-brand strong,
.side-brand small {
  display: block;
}

.side-brand strong {
  font-size: 24px;
  font-weight: 800;
}

.side-brand small {
  color: var(--muted);
}

.side-links,
.side-footer {
  display: grid;
  gap: 8px;
}

.side-version {
  min-height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.2;
}

.side-version .icon {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex: 0 0 auto;
}

.version-full {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.version-full strong,
.version-full small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-full strong {
  color: var(--text);
  font-weight: 700;
}

.version-short {
  display: none;
  font-weight: 700;
  color: var(--text);
}

.side-nav.collapsed {
  width: 88px;
  padding-inline: 14px;
}

.side-nav.collapsed .side-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.side-nav.collapsed .side-brand > div,
.side-nav.collapsed .nav-label,
.side-nav.collapsed .version-full {
  display: none;
}

.side-nav.collapsed .version-short {
  display: block;
}

.side-nav.collapsed .side-collapse {
  margin-left: 0;
}

.side-nav.collapsed .side-collapse .icon {
  transform: none;
}

.side-nav.collapsed .side-create,
.side-nav.collapsed .side-links button,
.side-nav.collapsed .side-footer button,
.side-nav.collapsed .side-version {
  width: 100%;
  padding-inline: 0;
  justify-content: center;
}

.side-nav.collapsed + .site-main,
.side-nav.collapsed + .admin-main {
  margin-left: 88px;
}

.side-links button,
.side-footer button {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 600;
}

.side-links button:hover,
.side-footer button:hover {
  background: var(--surface-blue);
}

.side-links button.active,
.side-footer button.active {
  color: #fff;
  background: var(--primary);
}

.side-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--outline);
}

.danger-link {
  color: var(--danger) !important;
}

.site-detail-layout {
  min-height: 100vh;
  background: var(--bg);
}

.site-main,
.admin-main {
  margin-left: 320px;
  min-height: 100vh;
}

.site-header {
  min-height: 140px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--outline);
  background: var(--bg);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
}

.breadcrumb button {
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.breadcrumb button:hover {
  color: var(--primary);
}

.site-header h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(32px, 4vw, 44px);
}

.site-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 12px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface-blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.active-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.site-content {
  padding: 32px;
  display: grid;
  gap: 32px;
}

.workspace {
  display: block;
}

.site-content > .stat-grid.four {
  gap: 14px;
}

.site-content > .stat-grid.four .stat-card {
  min-height: 96px;
  padding: 15px 17px;
  border-radius: 16px;
}

.site-content > .stat-grid.four .stat-card div {
  align-items: center;
  font-size: 12px;
}

.site-content > .stat-grid.four .stat-card .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
}

.site-content > .stat-grid.four .stat-card strong {
  font-size: 32px;
}

.panel-head {
  min-height: 88px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--outline);
  background: #faf8ff;
}

.tabs,
.tabs.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
}

.tabs button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.feedback-list {
  max-height: none;
}

.feedback-item {
  width: 100%;
  padding: 18px 24px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--outline);
  border-left: 4px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.feedback-item:hover {
  background: rgba(218, 226, 253, 0.3);
}

.feedback-item.active {
  border-left-color: var(--primary);
  background: rgba(218, 226, 253, 0.34);
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.feedback-meta small {
  margin-left: auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.feedback-item h3 {
  margin: 0;
  font-size: 17px;
}

.feedback-item p {
  margin: 0;
  color: var(--muted);
  line-height: 22px;
}

.item-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.item-foot .shot {
  margin-left: auto;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-panel {
  position: relative;
  top: auto;
}

.detail-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.detail-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(2px);
}

.detail-panel.detail-drawer {
  position: absolute;
  inset: 16px 16px 16px auto;
  width: min(720px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 70px rgba(28, 34, 60, 0.22);
  animation: detail-drawer-enter 180ms ease-out;
}

.detail-panel-head {
  min-height: 64px;
  padding: 12px 16px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--outline);
  background: #faf8ff;
}

.detail-panel-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.detail-panel-head strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.detail-panel-head .icon-btn {
  width: 40px;
  min-height: 40px;
}

.detail-drawer > form {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@keyframes detail-drawer-enter {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

.feedback-detail-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.detail-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.detail-page-head .btn .icon {
  transform: rotate(180deg);
}

.detail-page-card {
  width: 100%;
}

.detail-panel form {
  display: grid;
}

.detail-controls {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  gap: 18px;
  align-items: end;
  border-bottom: 1px solid var(--outline);
  background: #faf8ff;
}

.feedback-id {
  text-align: right;
}

.feedback-id span,
.feedback-id strong {
  display: block;
}

.feedback-id strong {
  margin-top: 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.detail-panel form > .field,
.note-card,
.technical-context {
  margin: 24px;
}

.detail-panel form > .field:first-of-type input {
  min-height: 62px;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.note-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--bg);
}

.note-card > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.note-card div {
  line-height: 28px;
}

.technical-context {
  display: grid;
  gap: 18px;
}

.technical-context-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--outline);
}

.technical-context-head h2 {
  margin: 0;
  font-size: 24px;
}

.technical-context-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.technical-context-head > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.context-card {
  min-height: 86px;
  padding: 14px 16px;
  display: grid;
  grid-column: span 2;
  align-content: start;
  gap: 8px;
}

.context-card.context-wide {
  grid-column: span 4;
}

.context-card.context-narrow {
  grid-column: span 2;
}

.context-card.context-full {
  grid-column: 1 / -1;
}

.context-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.context-card strong {
  line-height: 1.45;
  word-break: break-word;
}

.context-card.context-technical {
  min-height: 0;
  background: #f7f8fc;
}

.context-card.context-technical strong {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}

.context-card.context-optional {
  border-style: dashed;
  background: #fcfcfe;
}

.context-card.context-optional span {
  color: #7b8498;
}

.context-json {
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: #fbfbff;
}

.context-json summary {
  min-height: 58px;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.context-json summary::-webkit-details-marker {
  display: none;
}

.context-json-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-json-title > .icon {
  color: var(--primary);
  transition: transform 160ms ease;
}

.context-json[open] .context-json-title > .icon {
  transform: rotate(90deg);
}

.context-json-title small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
}

.context-copy {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--outline);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
}

.context-copy:hover,
.context-copy.copied {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-blue);
}

.context-json .metadata {
  max-height: 360px;
  border-width: 1px 0 0;
  border-radius: 0;
}

.metadata,
.code-block {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #1d3345;
  border-radius: 12px;
  background: #0d1822;
  color: #b7f7d1;
  padding: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.context-screenshot {
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: #fbfbff;
}

.context-screenshot-head {
  min-height: 58px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.context-screenshot-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.context-screenshot-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.context-screenshot-head small {
  color: var(--muted);
}

.screenshot-preview {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  border-top: 1px solid var(--outline);
  background: #e9edf7;
  cursor: zoom-in;
}

.screenshot-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.7));
  pointer-events: none;
}

.screenshot-preview > span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.64);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.screenshot {
  width: 100%;
  max-height: 360px;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform 180ms ease;
}

.screenshot-preview:hover .screenshot {
  transform: scale(1.012);
}

.screenshot-preview:focus-visible {
  outline: 3px solid rgba(18, 104, 255, 0.34);
  outline-offset: -3px;
}

.screenshot-lightbox {
  width: min(1440px, calc(100vw - 48px));
  max-width: none;
  height: min(900px, calc(100vh - 48px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 30px 100px rgba(8, 15, 34, 0.42);
}

.screenshot-lightbox::backdrop {
  background: rgba(8, 15, 34, 0.78);
  backdrop-filter: blur(5px);
}

.screenshot-lightbox-card {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #111827;
}

.screenshot-lightbox-card > header {
  min-height: 64px;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  background: #0d1527;
}

.screenshot-lightbox-card > header > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.screenshot-lightbox-card > header span {
  color: #aebbd2;
}

.screenshot-lightbox-card .icon-btn {
  color: #ffffff;
  border-color: #334155;
  background: #172033;
}

.screenshot-lightbox-stage {
  min-height: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: auto;
}

.screenshot-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.detail-footer {
  position: sticky;
  bottom: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--outline);
  background: #faf8ff;
  grid-template-columns: auto 1fr auto auto;
}

.detail-footer.drawer {
  grid-template-columns: auto 1fr auto;
}

.admin-main {
  padding: 32px;
}

.admin-page .stat-grid.four {
  grid-template-columns: repeat(3, 1fr);
}

.admin-table-card {
  margin-top: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.modal-card.wide {
  width: min(980px, 100%);
}

.modal-card.confirm-modal {
  width: min(460px, 100%);
  padding: 30px;
  overflow: visible;
}

.confirm-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 16px;
  color: var(--danger);
  background: var(--danger-soft);
}

.confirm-symbol .icon {
  width: 24px;
  height: 24px;
}

.confirm-eyebrow {
  margin: 22px 0 6px;
  color: var(--danger);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.confirm-modal h2 {
  margin: 0;
  font-size: 25px;
}

.confirm-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.confirm-target {
  margin-top: 20px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: #f8f9fd;
}

.confirm-target strong {
  color: var(--danger);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.confirm-target span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-actions {
  margin-top: 24px;
  justify-content: flex-end;
}

.modal-head {
  margin-bottom: 20px;
}

.modal-head h2,
.modal-head p {
  margin: 0;
}

.modal-head h2 {
  margin-top: 4px;
  font-size: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 14px;
}

.color-input-wrap {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
}

.color-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 104, 255, 0.12);
}

.color-input-wrap i {
  width: 28px;
  height: 28px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.color-input-wrap input {
  min-height: 0;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.color-input-wrap input:focus {
  border-color: transparent;
  box-shadow: none;
}

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

.integration-grid section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: #fbfbff;
}

.integration-grid h3,
.integration-grid p {
  margin: 0;
}

.integration-grid p {
  color: var(--muted);
  line-height: 22px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--text);
  box-shadow: var(--shadow-strong);
}

.site-config-modal,
.settings-hub-modal {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.site-config-modal .modal-head,
.settings-hub-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--outline);
  background: #fbfcff;
}

.site-config-modal form,
.settings-hub {
  padding: 18px;
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(194, 198, 216, 0.65);
  border-radius: 14px;
  background: #fbfcff;
}

.form-section h3,
.section-title-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row > span,
.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.notification-bindings .text-button {
  min-height: 32px;
  padding: 0;
  gap: 6px;
}

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

.channel-choice {
  min-width: 0;
  min-height: 70px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "mark name"
    "mark meta";
  align-items: center;
  column-gap: 10px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.channel-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-choice .channel-provider {
  grid-area: mark;
}

.channel-choice strong {
  grid-area: name;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-choice small {
  grid-area: meta;
  color: var(--muted);
}

.channel-choice:hover,
.channel-choice.selected,
.channel-choice:has(input:checked) {
  border-color: var(--primary);
  background: #eef3ff;
}

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

.channel-list-panel,
.channel-form {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(194, 198, 216, 0.65);
  border-radius: 14px;
  background: #fbfcff;
}

.channel-row {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
}

.channel-row strong,
.channel-row span,
.channel-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-row span,
.channel-row small {
  color: var(--muted);
  font-size: 12px;
}

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

.channel-row .icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.channel-provider {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #102033;
  background: #dce6ff;
  font-weight: 800;
}

.channel-provider.dingtalk { background: #dbeafe; color: #1d4ed8; }
.channel-provider.feishu { background: #dcfce7; color: #15803d; }
.channel-provider.telegram { background: #e0f2fe; color: #0369a1; }
.channel-provider.discord { background: #ede9fe; color: #6d28d9; }
.channel-provider.slack { background: #fce7f3; color: #be185d; }
.channel-provider.custom { background: #fef3c7; color: #92400e; }

.compact-toggle {
  gap: 0;
}

@media (max-width: 1180px) {
  .product-preview,
  .workspace,
  .detail-controls,
  .integration-grid,
  .settings-hub {
    grid-template-columns: 1fr;
  }

  .preview-inbox {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--outline);
  }

  .stat-grid.five,
  .stat-grid.four,
  .admin-page .stat-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-nav,
  .side-nav.collapsed {
    position: static;
    width: 100%;
    padding: 20px;
  }

  .side-nav.collapsed .side-brand {
    display: flex;
    justify-items: initial;
  }

  .side-nav.collapsed .side-brand > div,
  .side-nav.collapsed .nav-label {
    display: block;
  }

  .side-nav .side-collapse {
    display: none;
  }

  .side-nav.collapsed .side-create,
  .side-nav.collapsed .side-links button,
  .side-nav.collapsed .side-footer button {
    padding-inline: 12px;
    justify-content: flex-start;
  }

  .site-main,
  .admin-main,
  .side-nav.collapsed + .site-main,
  .side-nav.collapsed + .admin-main {
    margin-left: 0;
  }

  .site-detail-layout {
    display: grid;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .public-nav,
  .top-nav-inner,
  .public-footer,
  .page-head,
  .admin-head,
  .card-head,
  .site-header,
  .preview-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }

  .brand-link {
    font-size: 26px;
  }

  .hero {
    padding: 56px 16px 48px;
  }

  .product-preview {
    width: min(100% - 28px, 1440px);
    padding: 16px;
  }

  .step-grid,
  .stat-grid.five,
  .stat-grid.four,
  .admin-page .stat-grid.four,
  .context-grid,
  .form-grid,
  .channel-choice-grid {
    grid-template-columns: 1fr;
  }

  .site-config-modal form,
  .settings-hub {
    padding: 14px;
  }

  .site-content > .stat-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .site-content > .stat-grid.four .stat-card {
    min-height: 88px;
    padding: 13px;
  }

  .site-content > .stat-grid.four .stat-card strong {
    font-size: 28px;
  }

  .console-main,
  .site-content,
  .site-header,
  .admin-main {
    padding: 20px 14px;
  }

  .site-actions,
  .hero-actions,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 8px;
  }

  .btn,
  .icon-btn {
    width: 100%;
  }

  .top-actions .icon-btn,
  .top-actions .btn {
    width: 100%;
  }

  .top-actions .user-avatar {
    display: none;
  }

.row-actions .icon-btn {
    width: 44px;
    min-width: 44px;
  }

  .responsive-table table {
    min-width: 760px;
  }

  .detail-footer {
    position: static;
    grid-template-columns: 1fr;
  }

  .detail-panel form > .field,
  .note-card,
  .technical-context {
    margin: 18px;
  }

  .technical-context-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .technical-context-head > span {
    display: none;
  }

  .context-card,
  .context-card.context-wide,
  .context-card.context-narrow,
  .context-card.context-full {
    grid-column: 1 / -1;
  }

  .context-json summary {
    align-items: stretch;
    flex-direction: column;
  }

  .context-copy {
    width: 100%;
  }

  .context-screenshot-head > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .screenshot {
    max-height: 260px;
  }

  .screenshot-lightbox {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .screenshot-lightbox-stage {
    padding: 8px;
  }

  .screenshot-lightbox-card .icon-btn {
    width: 44px;
    min-width: 44px;
  }

  .detail-panel.detail-drawer {
    inset: 8px;
    width: calc(100vw - 16px);
    border-radius: 16px;
  }

  .detail-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .phone-shot {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-nav,
  .side-collapse .icon,
  .detail-panel.detail-drawer,
  .context-json-title > .icon,
  .screenshot {
    transition: none;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Feedback++ / Signal Couture brand system
   -------------------------------------------------------------------------- */

:root {
  --bg: #f2f2f0;
  --surface: #ffffff;
  --surface-soft: #e9e9e5;
  --surface-blue: #e8ecff;
  --text: #101013;
  --muted: #66666d;
  --outline: #d1d1cc;
  --line: #dfdfda;
  --primary: #3155f5;
  --primary-dark: #213dcc;
  --coral: #ff5d47;
  --lilac: #d8d0ff;
  --ink: #0d0d10;
  --danger: #e84535;
  --danger-soft: #fff0ed;
  --success: #15966b;
  --warning: #c37612;
  --shadow: 0 12px 40px rgba(20, 20, 25, 0.07);
  --shadow-strong: 0 34px 100px rgba(20, 20, 25, 0.22);
  --display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --utility: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid rgba(49, 85, 245, 0.35);
  outline-offset: 3px;
}

h1,
h2,
h3,
.brand-link,
.stat-card strong {
  font-family: var(--display);
}

.brand-lockup {
  gap: 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.brand-plus {
  color: var(--coral);
}

.btn,
.icon-btn,
.text-button {
  border-radius: 999px;
}

.btn {
  padding-inline: 20px;
}

.btn.primary {
  background: var(--ink);
  box-shadow: none;
}

.btn.primary:hover {
  background: var(--primary);
  box-shadow: 0 10px 26px rgba(49, 85, 245, 0.24);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.82);
}

.btn.light {
  color: var(--ink);
  background: #fff;
}

.btn.light:hover {
  transform: translateY(-2px);
  background: var(--lilac);
}

.btn .icon {
  transition: transform 180ms ease;
}

.btn:hover .icon {
  transform: translateX(3px);
}

/* Landing */

.landing-page {
  overflow: hidden;
  background: #f4f4f2;
}

.landing-nav {
  position: relative;
  z-index: 20;
  width: min(1540px, calc(100% - 48px));
  min-height: 88px;
  padding: 0 8px;
  border: 0;
  background: transparent;
}

.landing-nav .nav-links {
  margin-left: auto;
  padding: 6px;
  gap: 4px;
  border: 1px solid rgba(16, 16, 19, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(16px);
}

.landing-nav .nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #4d4d53;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 650;
}

.landing-nav .nav-links a:hover {
  color: var(--ink);
  background: #fff;
}

.landing-nav .nav-actions {
  gap: 8px;
}

.nav-login {
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.nav-cta {
  min-height: 46px;
  padding-inline: 18px;
}

.hero {
  position: relative;
  width: min(1540px, calc(100% - 48px));
  min-height: 710px;
  padding: 36px 8px 78px;
  display: grid;
  grid-template-columns: minmax(440px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: 54px;
  text-align: left;
}

.hero::before {
  inset: -280px auto auto -240px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(216, 208, 255, 0.72), rgba(216, 208, 255, 0) 67%);
  filter: none;
}

.hero::after {
  content: "++";
  position: absolute;
  left: -26px;
  bottom: -60px;
  z-index: 0;
  color: rgba(16, 16, 19, 0.035);
  font-family: Arial, sans-serif;
  font-size: 280px;
  font-weight: 900;
  letter-spacing: -0.18em;
  line-height: 1;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.hero-eyebrow > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 93, 71, 0.13);
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 6vw, 96px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.hero h1 > span {
  display: inline-block;
  color: var(--primary);
}

.hero-lede {
  max-width: 590px !important;
  margin: 30px 0 0 !important;
  color: #535359 !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
}

.hero-actions {
  margin-top: 36px;
  justify-content: flex-start;
}

.hero-actions .btn {
  min-height: 56px;
  padding-inline: 27px;
}

.hero-text-link {
  min-height: 52px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
}

.hero-text-link .icon {
  width: 17px;
  height: 17px;
}

.hero-proof {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: #5f5f65;
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  border-radius: 38px;
  background: #e7e7e9;
  box-shadow: 0 28px 80px rgba(20, 20, 25, 0.12);
  animation: hero-arrive 700ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.hero-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 51% center;
  transform: scale(1.01);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 14, 0.18));
  pointer-events: none;
}

.hero-art figcaption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-art figcaption span {
  color: var(--primary);
  font-weight: 800;
}

.hero-signal-card {
  position: absolute;
  left: 25px;
  top: 25px;
  z-index: 2;
  width: min(265px, calc(100% - 50px));
  padding: 17px 18px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 15px 45px rgba(25, 25, 30, 0.08);
  backdrop-filter: blur(18px);
}

.hero-signal-card span,
.hero-signal-card small {
  font-family: var(--utility);
  font-size: 9px;
}

.hero-signal-card span {
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-signal-card strong {
  font-size: 17px;
}

.hero-signal-card small {
  color: var(--muted);
}

@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.signal-ribbon {
  width: calc(100% + 24px);
  margin-left: -12px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  transform: rotate(-1deg);
}

.signal-ribbon > div {
  width: max-content;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  animation: ribbon-shift 24s linear infinite;
}

.signal-ribbon i {
  color: var(--coral);
  font-style: normal;
}

@keyframes ribbon-shift {
  to { transform: translateX(-50%); }
}

.product-stage {
  padding: 140px 24px 150px;
  color: #fff;
  background: var(--ink);
}

.section-intro {
  width: min(1440px, 100%);
  margin: 0 auto 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 40px;
}

.section-intro .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -18px;
  color: #8c8c93;
}

.section-intro h2,
.closing-cta h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 84px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-intro > p:last-child {
  margin: 0 0 7px;
  color: #a6a6ad;
  line-height: 1.8;
}

.feedback-console {
  position: relative;
  width: min(1440px, 100%);
  min-height: 710px;
  grid-template-columns: minmax(340px, 0.72fr) minmax(540px, 1.28fr);
  gap: 0;
  padding: 64px 0 0;
  overflow: hidden;
  border: 1px solid #36363c;
  border-radius: 28px;
  color: var(--text);
  background: #f8f8f6;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
}

.preview-chrome {
  position: absolute;
  inset: 0 0 auto;
  height: 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  align-items: center;
  border-bottom: 1px solid #d8d8d3;
  background: #eeeeeb;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
}

.preview-brand img {
  width: 29px;
  height: 29px;
}

.preview-search {
  min-height: 36px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d1cc;
  border-radius: 999px;
  color: #85858b;
  background: #fff;
  font-size: 11px;
}

.preview-search .icon {
  width: 15px;
}

.preview-live {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--utility);
  color: #66666b;
  font-size: 10px;
  text-transform: uppercase;
}

.preview-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19a875;
  box-shadow: 0 0 0 4px rgba(25, 168, 117, 0.12);
}

.feedback-console .preview-inbox {
  padding: 28px;
  border-color: #dadad5;
  background: #f0f0ed;
}

.feedback-console .preview-head {
  margin-bottom: 18px;
}

.preview-head p,
.preview-head h3 {
  margin: 0;
}

.preview-head p {
  margin-bottom: 5px;
  color: #8a8a8e;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-head h3 {
  font-size: 23px;
  letter-spacing: -0.03em;
}

.chip.signal {
  color: #fff;
  border-color: var(--coral);
  background: var(--coral);
}

.feedback-console .preview-row {
  padding: 18px;
  margin-top: 10px;
  border-color: transparent;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
}

.feedback-console .preview-row.active {
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 20, 25, 0.08);
}

.feedback-console .preview-row div:first-child {
  font-family: var(--body);
  font-size: 13px;
}

.feedback-console .preview-row div:first-child span {
  color: #949499;
  font-family: var(--utility);
  font-size: 9px;
}

.feedback-console .preview-row p {
  font-size: 12px;
}

.feedback-console .preview-detail {
  padding: 30px;
  align-content: start;
  gap: 20px;
}

.feedback-console .preview-detail-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.feedback-console .avatar {
  color: #fff;
  background: var(--primary);
}

.feedback-quote {
  padding: 21px;
  border: 1px solid #d7d7d2;
  border-radius: 17px;
  background: #fff;
}

.feedback-quote span,
.context-strip span {
  color: #8a8a8f;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.feedback-quote p {
  margin: 9px 0 0;
  font-size: 17px;
  line-height: 1.65;
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid #d7d7d2;
}

.context-strip div {
  padding: 14px 8px;
  display: grid;
  gap: 5px;
  border-right: 1px solid #d7d7d2;
}

.context-strip div:last-child {
  border-right: 0;
}

.context-strip strong {
  font-size: 12px;
}

.feedback-console .phone-shot {
  height: 330px;
  border: 0;
  border-radius: 19px;
  background: #16161a;
}

.shot-nav {
  position: absolute;
  inset: 0 0 auto;
  height: 38px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #323238;
  color: #85858c;
  font-family: var(--utility);
  font-size: 8px;
}

.shot-nav i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55555c;
}

.shot-nav span {
  margin-left: 5px;
}

.shot-product {
  position: absolute;
  inset: 66px 34px auto;
  display: grid;
  gap: 7px;
  color: #fff;
}

.shot-product span {
  color: #8b8b93;
  font-family: var(--utility);
  font-size: 9px;
}

.shot-product strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.shot-product div {
  width: 66%;
  height: 72px;
  margin-top: 16px;
  border-radius: 999px 999px 20px 20px;
  background: linear-gradient(110deg, #3155f5, #755fee 65%, #ff5d47);
  filter: blur(1px);
}

.feedback-console .phone-card {
  left: 12%;
  top: auto;
  bottom: 46px;
  width: 76%;
  padding: 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  text-align: center;
  transform: none;
}

.feedback-console .phone-shot button {
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 54px;
  padding: 0;
  border-radius: 0;
  background: rgba(255, 93, 71, 0.9);
  transform: none;
}

.shot-pointer {
  position: absolute;
  right: 12%;
  bottom: 94px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-family: var(--utility);
  font-size: 9px;
}

.shot-pointer .icon {
  width: 13px;
}

.capabilities {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

.capability-card {
  position: relative;
  min-height: 550px;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 30px;
  background: #fff;
}

.capability-card h3 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(36px, 4vw, 57px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.capability-card > p:not(.section-kicker) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.capture-card {
  color: #fff;
  background: var(--primary);
}

.capture-card .section-kicker,
.capture-card > p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.68);
}

.capture-visual {
  position: absolute;
  inset: auto 46px -40px;
  height: 245px;
  border-radius: 25px 25px 0 0;
  background: #f4f4f2;
  transform: rotate(-2deg);
  box-shadow: 0 -20px 70px rgba(7, 19, 84, 0.22);
}

.capture-window {
  position: absolute;
  inset: 20px 20px auto;
  height: 62px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
}

.capture-window i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d0d0;
}

.capture-window strong {
  margin-left: auto;
  font-family: var(--utility);
  font-size: 10px;
  text-transform: uppercase;
}

.capture-meta {
  position: absolute;
  right: 26px;
  bottom: 50px;
  padding: 14px 17px;
  display: grid;
  gap: 4px;
  border-radius: 13px;
  color: var(--ink);
  background: var(--lilac);
}

.capture-meta span {
  font-family: var(--utility);
  font-size: 8px;
}

.capture-cursor {
  position: absolute;
  left: 31%;
  bottom: 82px;
  z-index: 2;
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 26px;
  box-shadow: 0 9px 25px rgba(20, 20, 25, 0.22);
}

.flow-card {
  background: #e5e5e1;
}

.flow-list {
  margin-top: 32px;
  display: grid;
  gap: 9px;
}

.flow-list div {
  min-height: 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(16, 16, 19, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.flow-list i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b1b1b4;
}

.flow-list div:nth-child(1) i { background: var(--coral); }
.flow-list div:nth-child(3) i { background: var(--primary); }
.flow-list div:nth-child(4) i { background: var(--success); }

.flow-list strong {
  color: #6e6e73;
  font-family: var(--utility);
  font-size: 12px;
}

.agent-card {
  grid-column: 1 / -1;
  min-height: 420px;
  padding-right: 45%;
  color: #fff;
  background: var(--ink);
}

.agent-card .section-kicker,
.agent-card > p {
  color: #98989f !important;
}

.agent-card a {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  border-bottom: 1px solid #fff;
  font-size: 14px;
  font-weight: 750;
}

.agent-orbit {
  position: absolute;
  right: 5%;
  top: 50%;
  width: 360px;
  height: 360px;
  border: 1px solid #3f3f46;
  border-radius: 50%;
  transform: translateY(-50%);
}

.agent-orbit::before,
.agent-orbit::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 220px;
  height: 220px;
  border: 1px solid #34343a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.agent-orbit::after {
  width: 90px;
  height: 90px;
  background: var(--primary);
  box-shadow: 0 0 80px rgba(49, 85, 245, 0.5);
}

.agent-orbit > span {
  position: absolute;
  inset: 50%;
  z-index: 2;
  color: #fff;
  font-size: 44px;
  font-weight: 300;
  transform: translate(-50%, -53%);
}

.agent-orbit i {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
}

.agent-orbit i:nth-of-type(1) { left: 11%; top: 25%; }
.agent-orbit i:nth-of-type(2) { right: 5%; top: 43%; background: var(--lilac); }
.agent-orbit i:nth-of-type(3) { left: 44%; bottom: -10px; background: #fff; }

.setup-checklist {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 28px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  border: 1px solid #d5d5d0;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(49, 85, 245, 0.08), transparent 36%),
    #f8f8f5;
}

.setup-copy h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.setup-copy > p:not(.section-kicker) {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.setup-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.setup-board {
  display: grid;
  gap: 12px;
}

.setup-check {
  min-height: 118px;
  padding: 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(20, 20, 25, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.setup-check > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--ink);
}

.setup-check.origin > span { background: var(--primary); }
.setup-check.privacy > span { background: var(--coral); }
.setup-check.agent > span { background: #19a875; }

.setup-check .icon {
  width: 22px;
  height: 22px;
}

.setup-check h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.setup-check p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.process {
  padding: 130px 24px;
  border: 0;
  background: #e8e8e4;
}

.section-title {
  margin-bottom: 60px;
}

.section-title .section-kicker {
  margin-bottom: 18px;
}

.section-title h2 {
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.step-grid {
  gap: 0;
  border-top: 1px solid #bdbdb8;
}

.step-card {
  min-height: 310px;
  padding: 32px;
  border: 0;
  border-right: 1px solid #bdbdb8;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.step-card:last-child {
  border-right: 0;
}

.step-card > .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 76px;
  padding: 13px;
  border: 1px solid #bdbdb8;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.step-card:hover > .icon {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  transform: rotate(-8deg);
}

.step-card h3 {
  font-size: 25px;
  letter-spacing: -0.035em;
}

.step-card p {
  color: #6b6b70;
}

.closing-cta {
  position: relative;
  width: min(1440px, calc(100% - 48px));
  min-height: 470px;
  margin: 24px auto;
  padding: clamp(36px, 6vw, 82px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 40px;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background: var(--primary);
}

.closing-cta .section-kicker {
  color: rgba(255, 255, 255, 0.64);
}

.closing-cta > div:nth-child(2) {
  position: relative;
  z-index: 2;
}

.closing-cta > div:nth-child(2) p {
  max-width: 390px;
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.closing-cta > img {
  position: absolute;
  right: -100px;
  top: -120px;
  width: 430px;
  height: 430px;
  opacity: 0.15;
  transform: rotate(-11deg);
}

.public-footer {
  width: min(1440px, calc(100% - 48px));
  min-height: 118px;
  padding: 0;
  border: 0;
  background: transparent;
}

.public-footer > span {
  margin-left: auto;
  font-family: var(--utility);
  font-size: 10px;
  text-transform: uppercase;
}

.public-footer > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.public-footer > div a,
.public-footer > div button {
  padding: 0;
  color: #55555b;
  background: transparent;
  font-size: 12px;
}

.public-footer > div a:hover,
.public-footer > div button:hover {
  color: var(--primary);
}

/* Auth and product workspace */

.auth-page {
  position: relative;
  isolation: isolate;
  background: var(--ink);
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 18px 50% 18px 18px;
  z-index: -1;
  border-radius: 30px;
  background: url("/assets/feedback-signal-hero.webp") center / cover no-repeat;
}

.auth-card {
  width: min(460px, calc(50vw - 64px));
  margin-left: 50%;
  padding: 46px;
  border: 0;
  border-radius: 28px;
}

.auth-logo {
  width: 66px;
  height: 66px;
  background: transparent;
}

.auth-logo img {
  width: 100%;
  height: 100%;
}

.auth-card h1 {
  color: var(--ink);
  font-size: 40px;
  letter-spacing: -0.055em;
}

.app-shell,
.site-detail-layout {
  background: #eeeeeb;
}

.top-nav {
  border-color: rgba(16, 16, 19, 0.1);
  background: rgba(244, 244, 242, 0.88);
  backdrop-filter: blur(18px);
}

.top-nav-inner {
  min-height: 76px;
}

.top-nav .nav-links a {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 650;
}

.console-main {
  padding-top: 58px;
}

.page-head h1,
.admin-head h1 {
  color: var(--ink);
  font-size: clamp(48px, 6vw, 76px);
  letter-spacing: -0.07em;
}

.stat-card,
.table-card,
.feedback-list-panel,
.detail-panel {
  border-color: rgba(16, 16, 19, 0.1);
  border-radius: 24px;
  box-shadow: none;
}

.stat-card {
  background: rgba(255, 255, 255, 0.78);
}

.stat-card strong {
  letter-spacing: -0.055em;
}

.card-head,
.panel-head,
.detail-panel-head,
.detail-controls,
.detail-footer {
  background: #f5f5f3;
}

.side-nav {
  border-color: #2c2c31;
  color: #fff;
  background: var(--ink);
}

.side-brand .brand-mark {
  width: 50px;
  height: 50px;
}

.side-brand strong {
  color: #fff;
  font-size: 21px;
  letter-spacing: -0.045em;
}

.side-brand small {
  color: #7f7f87;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-collapse {
  color: #a4a4ac;
  border-color: #3b3b42;
  background: #1c1c21;
}

.side-nav .btn.primary {
  color: var(--ink);
  background: #fff;
}

.side-links button,
.side-footer button {
  color: #a2a2aa;
  border-radius: 999px;
}

.side-links button:hover,
.side-footer button:hover {
  color: #fff;
  background: #222228;
}

.side-links button.active,
.side-footer button.active {
  color: #fff;
  background: var(--primary);
}

.side-footer {
  border-color: #313137;
}

.site-header {
  border-color: #d0d0cb;
  background: #eeeeeb;
}

.site-header h1 {
  letter-spacing: -0.045em;
}

.active-pill {
  color: var(--primary);
  border-color: rgba(49, 85, 245, 0.18);
  background: #e5e9ff;
}

.modal-card {
  border-color: rgba(16, 16, 19, 0.1);
  border-radius: 28px;
}

input,
textarea,
select,
.color-input-wrap {
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 42px;
  }

  .hero-art {
    min-height: 520px;
  }

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

  .feedback-console .preview-inbox {
    border-right: 0;
    border-bottom: 1px solid #dadad5;
  }

  .agent-card {
    padding-right: 46%;
  }

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

@media (max-width: 820px) {
  .landing-nav {
    width: calc(100% - 28px);
    min-height: 72px;
  }

  .landing-nav .brand-lockup {
    font-size: 19px;
  }

  .landing-nav .brand-mark {
    width: 32px;
    height: 32px;
  }

  .landing-nav .nav-cta {
    width: auto;
    min-height: 40px;
    font-size: 12px;
  }

  .landing-nav .nav-login {
    display: none;
  }

  .hero {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 34px 0 62px;
    gap: 42px;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(48px, 14.5vw, 68px);
  }

  .hero-lede {
    font-size: 15px !important;
  }

  .hero-art {
    min-height: 440px;
    border-radius: 27px;
  }

  .hero-art > img {
    object-position: 57% center;
  }

  .hero-proof {
    gap: 10px 14px;
  }

  .product-stage {
    padding: 100px 14px;
  }

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

  .section-intro .section-kicker {
    margin-bottom: 0;
  }

  .feedback-console {
    padding-top: 56px;
    border-radius: 22px;
  }

  .preview-chrome {
    height: 56px;
    grid-template-columns: 1fr auto;
  }

  .preview-search {
    display: none;
  }

  .feedback-console .preview-inbox,
  .feedback-console .preview-detail {
    padding: 18px;
  }

  .feedback-console .preview-detail-head {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .feedback-console .preview-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .context-strip div {
    border-right: 0;
    border-bottom: 1px solid #d7d7d2;
  }

  .context-strip div:last-child {
    border-bottom: 0;
  }

  .capabilities {
    width: calc(100% - 28px);
    padding: 80px 0;
    grid-template-columns: 1fr;
  }

  .setup-checklist {
    width: calc(100% - 28px);
    padding: 26px;
    border-radius: 24px;
  }

  .setup-actions {
    display: grid;
  }

  .setup-check {
    min-height: 0;
    grid-template-columns: 42px 1fr;
    padding: 16px;
    border-radius: 18px;
  }

  .setup-check > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .capability-card,
  .agent-card {
    grid-column: auto;
    min-height: 510px;
    padding: 28px;
  }

  .capture-visual {
    inset-inline: 24px;
  }

  .agent-card {
    padding-bottom: 320px;
  }

  .agent-orbit {
    right: 50%;
    top: auto;
    bottom: -70px;
    width: 310px;
    height: 310px;
    transform: translateX(50%);
  }

  .process {
    padding: 90px 14px;
  }

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

  .step-card {
    min-height: 0;
    padding: 28px 10px;
    border-right: 0;
    border-bottom: 1px solid #bdbdb8;
  }

  .step-card > .icon {
    margin-bottom: 38px;
  }

  .closing-cta {
    width: calc(100% - 28px);
    min-height: 580px;
    grid-template-columns: 1fr;
    align-content: end;
    border-radius: 26px;
  }

  .public-footer {
    width: calc(100% - 28px);
    padding: 34px 0;
  }

  .public-footer > span {
    margin-left: 0;
  }

  .public-footer > div {
    flex-wrap: wrap;
  }

  .auth-page::before {
    display: none;
  }

  .auth-card {
    width: min(460px, 100%);
    margin-left: 0;
    padding: 34px 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art,
  .signal-ribbon > div { animation: none; }
}

/* Documentation */

.docs-page {
  min-height: 100vh;
  color: #f5f5f6;
  background:
    radial-gradient(circle at 92% 12%, rgba(49, 85, 245, 0.2), transparent 30%),
    var(--ink);
}

.docs-nav {
  width: min(1240px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.docs-nav .brand-lockup {
  color: #fff;
}

.docs-nav > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.docs-nav > div a {
  color: #aaaab1;
  font-size: 13px;
}

.docs-nav > div a:hover {
  color: #fff;
}

.docs-nav .docs-nav-cta {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

.doc-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 100px;
}

.doc-hero {
  min-height: 500px;
  padding: clamp(34px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 48px;
  overflow: hidden;
  border: 1px solid #34343a;
  border-radius: 34px;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 93, 71, 0.28), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(49, 85, 245, 0.65), transparent 38%),
    #18181d;
}

.doc-hero .eyebrow {
  margin: 0 0 22px;
  color: #888891;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6.5vw, 88px);
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.doc-hero > div:first-child > p:last-child {
  max-width: 700px;
  margin: 28px 0 0;
  color: #aaaab1;
  font-size: 16px;
  line-height: 1.8;
}

.doc-step {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.doc-step strong {
  display: block;
  color: #fff;
  font-size: 54px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.doc-step p {
  margin: 18px 0 0;
  color: #b9b9bf;
  font-family: var(--utility);
  font-size: 11px;
  line-height: 1.8;
  text-transform: uppercase;
}

.doc-card {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid #303036;
  border-radius: 26px;
  background: #17171b;
}

.doc-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.docs-page .muted,
.doc-list {
  color: #aaaab1;
}

.docs-page code {
  color: #b8c3ff;
  font-family: var(--utility);
}

.docs-page .code-block {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #35353b;
  border-radius: 18px;
  background: #0a0a0c;
}

.docs-page .code-block pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  white-space: pre-wrap;
  color: #d9defc;
  background: transparent;
  font-family: var(--utility);
  font-size: 12px;
  line-height: 1.7;
}

.docs-page .code-block button,
.docs-page .ghost {
  min-height: 42px;
  margin: 0 14px 14px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b3b42;
  border-radius: 999px;
  color: #fff;
  background: #202026;
  font-size: 12px;
  font-weight: 700;
}

.docs-page .code-block button:hover,
.docs-page .ghost:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.doc-grid .doc-step {
  min-height: 210px;
  background: #202026;
}

.doc-grid .doc-step:nth-child(2) {
  background: var(--primary);
}

.doc-grid .doc-step:nth-child(3) {
  background: #312d43;
}

.doc-grid .doc-step p {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--body);
  font-size: 14px;
  text-transform: none;
}

.doc-list li {
  margin: 10px 0;
  line-height: 1.75;
}

.inline-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions .ghost {
  margin: 0;
}

@media (max-width: 820px) {
  .docs-nav,
  .doc-shell {
    width: calc(100% - 28px);
  }

  .docs-nav > div > a:first-child {
    display: none;
  }

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

  .doc-hero {
    min-height: 600px;
  }

  .doc-hero h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .doc-step {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Operator Density — compact console workspace
   -------------------------------------------------------------------------- */

.app-shell {
  --console-sidebar: 248px;
  --console-sidebar-collapsed: 68px;
  --console-gap: 10px;
  color: #17171b;
}

.app-shell .top-nav-inner {
  min-height: 60px;
  padding-inline: 18px;
}

.app-shell .top-nav .brand-mark {
  width: 32px;
  height: 32px;
}

.app-shell .top-nav .brand-lockup {
  font-size: 20px;
}

.app-shell .top-actions,
.app-shell .nav-links {
  gap: 6px;
}

.app-shell .top-actions .icon-btn,
.app-shell .top-actions .btn {
  min-height: 36px;
}

.app-shell .top-actions .icon-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
}

.app-shell .user-avatar {
  width: 34px;
  height: 34px;
}

.console-main {
  width: min(1600px, 100%);
  padding: 18px 20px 32px;
}

.console-page,
.admin-page {
  gap: 12px;
}

.page-head,
.admin-head {
  min-height: 48px;
}

.page-head h1,
.admin-head h1 {
  margin-bottom: 3px;
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.055em;
}

.page-head p,
.admin-head p {
  font-size: 13px;
}

.page-head .btn,
.admin-head .btn {
  min-height: 36px;
  padding-inline: 15px;
}

.console-page > .stat-grid,
.admin-page > .stat-grid,
.site-content > .stat-grid {
  gap: 8px;
}

.console-page > .stat-grid .stat-card,
.admin-page > .stat-grid .stat-card,
.site-content > .stat-grid .stat-card {
  min-height: 68px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
}

.console-page > .stat-grid .stat-card div,
.admin-page > .stat-grid .stat-card div,
.site-content > .stat-grid .stat-card div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #696970;
  font-family: var(--body);
  font-size: 12px;
  white-space: nowrap;
}

.console-page > .stat-grid .stat-card .icon,
.admin-page > .stat-grid .stat-card .icon,
.site-content > .stat-grid .stat-card .icon {
  order: -1;
  width: 28px;
  height: 28px;
  padding: 6px;
}

.console-page > .stat-grid .stat-card strong,
.admin-page > .stat-grid .stat-card strong,
.site-content > .stat-grid .stat-card strong {
  justify-self: end;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.table-card,
.feedback-list-panel,
.detail-panel {
  border-radius: 17px;
}

.card-head {
  min-height: 50px;
  padding: 7px 12px;
}

.card-head h2,
.panel-head h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.card-head h2 .icon {
  width: 18px;
  height: 18px;
}

.search-box {
  width: min(280px, 100%);
}

.search-box input {
  min-height: 34px;
  padding-block: 6px;
  font-size: 11px;
}

th,
td {
  padding: 10px 14px;
}

th {
  font-size: 11px;
  letter-spacing: 0.025em;
}

.site-cell {
  min-width: 220px;
  gap: 10px;
}

.site-cell > span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
}

.site-cell strong {
  gap: 2px;
  font-size: 13px;
}

.site-cell small {
  font-size: 11px;
}

.row-actions {
  justify-content: flex-end;
  gap: 5px;
}

.row-actions .icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.chip {
  min-height: 20px;
  padding: 1px 7px;
  font-size: 10px;
}

.empty-state,
.empty-state.compact {
  padding: 22px 16px;
}

/* Site workspace */

.side-nav {
  width: var(--console-sidebar);
  padding: 12px;
  gap: 12px;
}

.side-brand {
  min-height: 42px;
  gap: 9px;
}

.side-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.side-brand strong {
  font-size: 17px;
}

.side-brand small {
  font-size: 8px;
}

.side-collapse {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.side-create {
  min-height: 38px;
  font-size: 12px;
}

.side-links,
.side-footer {
  gap: 3px;
}

.side-version {
  min-height: 32px;
  padding-inline: 10px;
}

.side-links button,
.side-footer button {
  min-height: 38px;
  padding-inline: 11px;
  gap: 9px;
  font-size: 13px;
}

.side-links button .icon,
.side-footer button .icon {
  width: 18px;
  height: 18px;
}

.side-footer {
  padding-top: 9px;
}

.side-nav.collapsed {
  width: var(--console-sidebar-collapsed);
  padding-inline: 9px;
}

.side-nav.collapsed + .site-main,
.side-nav.collapsed + .admin-main {
  margin-left: var(--console-sidebar-collapsed);
}

.site-main,
.admin-main {
  min-width: 0;
  margin-left: var(--console-sidebar);
}

.site-header {
  min-height: 82px;
  padding: 9px 18px;
  gap: 14px;
}

.site-header > div:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(140px, 1fr);
  align-items: center;
  column-gap: 12px;
}

.breadcrumb {
  grid-column: 1 / -1;
  gap: 5px;
  margin-bottom: 2px;
  font-size: 10px;
}

.breadcrumb .icon {
  width: 13px;
  height: 13px;
}

.site-header h1 {
  min-width: 0;
  gap: 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  white-space: nowrap;
}

.site-header p {
  margin: 2px 0 0;
  overflow: hidden;
  color: #74747a;
  font-family: var(--utility);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-pill {
  min-height: 22px;
  padding: 1px 8px;
  font-size: 10px;
}

.active-pill i {
  width: 6px;
  height: 6px;
}

.site-actions {
  gap: 6px;
}

.site-actions .btn {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 11px;
}

.site-actions .icon {
  width: 16px;
  height: 16px;
}

.site-content {
  padding: 12px 16px 24px;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.site-content > .stat-grid.four .stat-card {
  min-height: 62px;
  padding: 8px 11px;
}

.site-content > .stat-grid.four .stat-card strong {
  font-size: 25px;
}

.panel-head {
  min-height: 50px;
  padding: 7px 12px;
}

.tabs,
.tabs.compact {
  gap: 5px;
}

.tabs button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.feedback-item {
  min-height: 76px;
  padding: 9px 13px;
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(220px, 1fr) minmax(150px, 0.7fr);
  grid-template-areas:
    "meta meta meta"
    "title summary foot";
  align-items: center;
  gap: 5px 14px;
  border-left-width: 3px;
}

.feedback-meta {
  grid-area: meta;
  gap: 5px;
}

.feedback-meta small {
  font-size: 9px;
}

.feedback-item h3 {
  grid-area: title;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-item p {
  grid-area: summary;
  overflow: hidden;
  font-size: 11px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-foot {
  grid-area: foot;
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  white-space: nowrap;
}

.item-foot > .icon {
  width: 13px;
  height: 13px;
}

.item-foot .shot {
  flex: 0 0 auto;
}

/* Detail command center */

.feedback-detail-page {
  width: min(1500px, 100%);
  gap: 8px;
}

.detail-page-head {
  min-height: 34px;
  font-size: 10px;
}

.detail-page-head .btn {
  min-height: 32px;
  padding-inline: 11px;
  font-size: 10px;
}

.detail-panel.detail-drawer {
  inset: 8px 8px 8px auto;
  width: min(780px, calc(100vw - 16px));
  border-radius: 18px;
}

.detail-drawer-backdrop {
  background: rgba(13, 13, 16, 0.42);
  backdrop-filter: blur(4px);
}

.detail-panel-head {
  min-height: 50px;
  padding: 7px 10px 7px 14px;
}

.detail-panel-head span {
  font-size: 11px;
}

.detail-panel-head strong {
  font-size: 11px;
}

.detail-panel-head .icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.detail-controls {
  padding: 8px 12px;
  grid-template-columns: repeat(3, minmax(110px, 1fr)) auto;
  gap: 8px;
}

.detail-controls .field {
  gap: 4px;
}

.detail-controls select {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.detail-controls .field > span,
.feedback-id span {
  font-size: 9px;
  letter-spacing: 0.035em;
}

.feedback-id strong {
  margin-top: 4px;
  font-size: 11px;
}

.detail-editor {
  min-width: 0;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.detail-editor .field {
  gap: 5px;
  margin: 0;
}

.detail-editor .field > span,
.note-card > span {
  font-size: 9px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.detail-title-field input {
  min-height: 42px;
  padding: 7px 11px;
  border-radius: 11px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.note-card {
  margin: 0;
  padding: 11px 12px;
  gap: 6px;
  border-radius: 11px;
}

.note-card > span .icon {
  width: 14px;
  height: 14px;
}

.note-card div {
  font-size: 13px;
  line-height: 20px;
}

.detail-notes-field textarea {
  min-height: 90px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.55;
}

.technical-context {
  margin: 0 12px 12px;
  gap: 8px;
}

.technical-context-head {
  min-height: 38px;
  padding-bottom: 7px;
  align-items: center;
}

.technical-context-head h2 {
  font-size: 16px;
}

.technical-context-head p {
  margin-top: 2px;
  font-size: 10px;
}

.technical-context-head > span {
  font-size: 8px;
}

.context-grid {
  gap: 7px;
}

.context-card {
  min-height: 54px;
  padding: 8px 10px;
  gap: 4px;
  border-radius: 10px;
}

.context-card span {
  gap: 5px;
  font-size: 9px;
}

.context-card span .icon {
  width: 13px;
  height: 13px;
}

.context-card strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.context-card.context-technical strong {
  font-size: 9px;
}

.context-json,
.context-screenshot {
  border-radius: 11px;
}

.context-json summary {
  min-height: 42px;
  padding: 5px 7px 5px 11px;
}

.context-json-title {
  gap: 5px;
  font-size: 11px;
}

.context-json-title small {
  font-size: 8px;
}

.context-copy {
  min-height: 30px;
  padding-inline: 9px;
  border-radius: 999px;
  font-size: 9px;
}

.context-screenshot-head {
  min-height: 42px;
  padding: 6px 11px;
  font-size: 11px;
}

.context-screenshot-head small {
  font-size: 9px;
}

.screenshot {
  max-height: 290px;
}

.detail-page-card > form {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.detail-page-card .detail-controls,
.detail-page-card .detail-footer {
  grid-column: 1 / -1;
}

.detail-page-card .detail-editor {
  grid-column: 1;
  border-right: 1px solid var(--outline);
}

.detail-page-card .technical-context {
  grid-column: 2;
  margin: 12px;
}

.detail-drawer > form {
  display: block;
}

.detail-footer,
.detail-footer.drawer {
  min-height: 52px;
  padding: 7px 12px;
}

.detail-footer .btn {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 10px;
}

.detail-footer .icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 1180px) {
  .side-nav,
  .side-nav.collapsed {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid #2c2c31;
  }

  .side-nav .side-brand,
  .side-nav.collapsed .side-brand {
    min-height: 36px;
    display: flex;
  }

  .side-nav .side-brand > div,
  .side-nav.collapsed .side-brand > div {
    display: none;
  }

  .side-nav .brand-mark {
    width: 34px;
    height: 34px;
  }

  .side-nav .side-collapse {
    display: none;
  }

  .side-nav .side-create,
  .side-nav.collapsed .side-create {
    width: auto;
    min-width: 38px;
    padding-inline: 10px;
  }

  .side-nav .side-version,
  .side-nav.collapsed .side-version {
    width: auto;
    min-width: 78px;
    padding-inline: 8px;
  }

  .side-nav .side-version .icon,
  .side-nav.collapsed .side-version .icon,
  .side-nav .side-version .version-full,
  .side-nav.collapsed .side-version .version-full {
    display: none;
  }

  .side-nav .side-version .version-short,
  .side-nav.collapsed .side-version .version-short {
    display: block;
  }

  .side-nav .side-links,
  .side-nav.collapsed .side-links {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side-nav .side-links::-webkit-scrollbar {
    display: none;
  }

  .side-nav .side-links button,
  .side-nav.collapsed .side-links button {
    width: auto;
    flex: 0 0 auto;
    padding-inline: 10px;
  }

  .side-nav .side-links .nav-label,
  .side-nav.collapsed .side-links .nav-label {
    display: block;
  }

  .side-nav .side-footer {
    display: none;
  }

  .site-main,
  .admin-main,
  .side-nav.collapsed + .site-main,
  .side-nav.collapsed + .admin-main {
    margin-left: 0;
  }

  .detail-controls {
    grid-template-columns: repeat(3, minmax(100px, 1fr)) auto;
  }
}

@media (max-width: 900px) {
  .detail-page-card > form {
    display: block;
  }

  .detail-page-card .detail-editor {
    border-right: 0;
    border-bottom: 1px solid var(--outline);
  }

  .detail-page-card .technical-context {
    margin: 12px;
  }

  .feedback-item {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.55fr);
    grid-template-areas:
      "meta meta"
      "title foot"
      "summary summary";
  }
}

@media (max-width: 760px) {
  .app-shell .top-nav-inner {
    min-height: 54px;
    padding: 6px 10px;
    flex-direction: row;
    align-items: center;
  }

  .app-shell .top-nav .brand-lockup {
    font-size: 17px;
  }

  .app-shell .top-nav .brand-mark {
    width: 29px;
    height: 29px;
  }

  .app-shell .top-actions {
    width: auto;
    grid-template-columns: 34px minmax(100px, 1fr) 34px;
  }

  .app-shell .top-actions .icon-btn,
  .app-shell .top-actions .btn {
    min-height: 34px;
  }

  .console-main {
    padding: 10px 9px 22px;
  }

  .page-head,
  .admin-head,
  .card-head {
    align-items: center;
    flex-direction: row;
  }

  .page-head h1,
  .admin-head h1 {
    font-size: 29px;
  }

  .page-head p,
  .admin-head p {
    font-size: 11px;
  }

  .page-head .btn,
  .admin-head .btn {
    width: auto;
    flex: 0 0 auto;
  }

  .console-page > .stat-grid.five,
  .admin-page > .stat-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-page > .stat-grid.five .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .console-page > .stat-grid .stat-card,
  .admin-page > .stat-grid .stat-card,
  .site-content > .stat-grid .stat-card {
    min-height: 56px;
    padding: 7px 9px;
  }

  .console-page > .stat-grid .stat-card div,
  .admin-page > .stat-grid .stat-card div,
  .site-content > .stat-grid .stat-card div {
    gap: 5px;
    font-size: 10px;
  }

  .console-page > .stat-grid .stat-card .icon,
  .admin-page > .stat-grid .stat-card .icon,
  .site-content > .stat-grid .stat-card .icon {
    width: 23px;
    height: 23px;
    padding: 5px;
  }

  .console-page > .stat-grid .stat-card strong,
  .admin-page > .stat-grid .stat-card strong,
  .site-content > .stat-grid .stat-card strong {
    font-size: 23px;
  }

  .side-nav,
  .side-nav.collapsed {
    grid-template-columns: 1fr auto;
  }

  .side-nav .side-brand,
  .side-nav.collapsed .side-brand {
    justify-self: start;
  }

  .side-nav .side-create,
  .side-nav.collapsed .side-create {
    justify-self: end;
  }

  .side-nav .side-links,
  .side-nav.collapsed .side-links {
    grid-column: 1 / -1;
  }

  .site-header {
    min-height: 0;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .site-header > div:first-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header h1,
  .site-header p {
    grid-column: 1;
  }

  .site-header h1 {
    font-size: 22px;
  }

  .site-header p {
    margin-top: 3px;
  }

  .site-actions {
    align-items: center;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
  }

  .site-actions .btn {
    width: auto;
    flex: 0 0 auto;
    min-height: 32px;
  }

  .site-content {
    padding: 8px 9px 18px;
  }

  .site-content > .stat-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head {
    min-height: 45px;
    padding: 6px 9px;
    overflow: hidden;
  }

  .panel-head h2 {
    flex: 0 0 auto;
    font-size: 15px;
  }

  .tabs.compact {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs.compact::-webkit-scrollbar {
    display: none;
  }

  .feedback-item {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
  }

  .feedback-item p {
    padding-right: 4px;
  }

  .item-foot .shot {
    display: none;
  }

  .detail-page-head {
    align-items: center;
    flex-direction: row;
  }

  .detail-page-head .btn {
    width: auto;
  }

  .detail-panel.detail-drawer {
    inset: 5px;
    width: calc(100vw - 10px);
  }

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

  .detail-controls .feedback-id {
    display: none;
  }

  .detail-editor {
    padding: 9px;
  }

  .technical-context,
  .detail-page-card .technical-context {
    margin: 9px;
  }

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

  .context-card,
  .context-card.context-narrow {
    grid-column: span 1;
  }

  .context-card.context-wide,
  .context-card.context-full,
  .context-card.context-technical {
    grid-column: 1 / -1;
  }

  .detail-footer,
  .detail-footer.drawer {
    position: sticky;
    grid-template-columns: auto 1fr auto;
  }

  .detail-footer.page {
    grid-template-columns: auto 1fr auto auto;
  }

  .detail-footer .btn {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   Unified Backoffice Shell — shared sidebar frame and denser modals
   -------------------------------------------------------------------------- */

.site-main > .console-page {
  width: min(1600px, 100%);
  padding: 18px 20px 32px;
}

.site-main > .site-detail-layout {
  min-height: 100vh;
}

.side-nav + .site-main .page-head {
  min-height: 52px;
}

.side-nav + .site-main .page-head h1 {
  font-size: clamp(30px, 3.4vw, 40px);
}

.side-nav + .site-main .table-card {
  border-radius: 16px;
}

.row-actions .btn.sm {
  min-height: 32px;
  padding-inline: 10px;
  border-radius: 10px;
  font-size: 11px;
}

.row-actions .btn.sm .icon {
  width: 15px;
  height: 15px;
}

.access-modal {
  width: min(1120px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
}

.access-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--outline);
  background: #fbfcff;
}

.access-modal .integration-grid {
  max-height: calc(100vh - 128px);
  padding: 14px;
  overflow: auto;
  gap: 10px;
}

.integration-card {
  min-width: 0;
  padding: 12px;
  gap: 10px;
  border-radius: 13px;
  background: #f8f9fb;
}

.integration-card.primary-integration {
  border-color: rgba(49, 85, 245, 0.28);
  background: #f3f6ff;
}

.integration-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.integration-card-head > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: #e5e9ff;
}

.integration-card-head .icon {
  width: 17px;
  height: 17px;
}

.integration-card-head h3 {
  font-size: 15px;
  line-height: 1.25;
}

.integration-card-head p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 18px;
}

.integration-card .code-block {
  max-height: 210px;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.5;
}

.integration-card .modal-actions {
  gap: 6px;
  flex-wrap: wrap;
}

.integration-card .btn {
  min-height: 32px;
  padding-inline: 11px;
  border-radius: 10px;
  font-size: 11px;
}

.site-config-modal {
  width: min(760px, calc(100vw - 32px));
}

.site-config-modal .modal-head h2,
.settings-hub-modal .modal-head h2,
.access-modal .modal-head h2 {
  margin-top: 2px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.site-config-modal .modal-head p,
.settings-hub-modal .modal-head p,
.access-modal .modal-head p {
  font-size: 10px;
}

.site-config-modal form {
  gap: 10px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 12px;
}

.form-section {
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
}

.form-section-primary {
  border-color: rgba(49, 85, 245, 0.22);
  background: #f6f8ff;
}

.form-section h3,
.section-title-row h3 {
  font-size: 14px;
}

.section-title-row > span,
.form-hint {
  font-size: 11px;
}

.site-config-modal .field,
.settings-hub-modal .field {
  gap: 5px;
}

.site-config-modal .field span,
.settings-hub-modal .field span {
  font-size: 10px;
}

.site-config-modal input,
.site-config-modal textarea,
.site-config-modal select,
.settings-hub-modal input,
.settings-hub-modal textarea,
.settings-hub-modal select,
.color-input-wrap {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.site-config-modal textarea,
.settings-hub-modal textarea {
  line-height: 1.45;
}

.site-config-modal .form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.55fr);
  gap: 10px;
}

.color-input-wrap {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 0 9px;
}

.color-input-wrap i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.color-input-wrap input {
  height: 34px;
}

.toggle-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.site-config-modal .toggle-field,
.settings-hub-modal .toggle-field {
  display: grid;
  gap: 6px;
}

.site-config-modal .toggle-field > label,
.settings-hub-modal .toggle-field > label {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
}

.site-config-modal input[type="checkbox"],
.settings-hub-modal input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.notification-bindings .text-button {
  font-size: 11px;
}

.channel-choice-grid {
  gap: 8px;
}

.channel-choice {
  min-height: 56px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 8px 10px;
  border-radius: 10px;
}

.channel-choice .channel-provider,
.channel-provider {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 12px;
}

.channel-choice strong {
  font-size: 12px;
}

.channel-choice small {
  font-size: 10px;
}

.site-config-modal .btn.full,
.settings-hub-modal .btn.full {
  min-height: 36px;
  border-radius: 10px;
  font-size: 12px;
}

.site-config-modal form > .btn.full {
  position: sticky;
  bottom: 0;
  box-shadow: 0 -10px 18px rgba(248, 249, 251, 0.92);
}

.settings-hub-modal {
  width: min(980px, calc(100vw - 32px));
}

.settings-hub {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
  padding: 12px;
}

.channel-list-panel,
.channel-form {
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
}

.channel-row {
  min-height: 54px;
  padding: 8px 10px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  border-radius: 10px;
}

.channel-row strong {
  font-size: 12px;
}

.channel-row span,
.channel-row small {
  font-size: 10px;
}

.channel-row-actions {
  gap: 5px;
}

.channel-row .icon-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 9px;
}

@media (max-width: 1180px) {
  .site-main > .console-page {
    padding: 10px;
  }

  .access-modal .integration-grid,
  .settings-hub {
    grid-template-columns: 1fr;
  }

  .side-nav + .site-main .page-head {
    align-items: center;
  }
}

@media (max-width: 760px) {
  .site-config-modal .form-grid {
    grid-template-columns: 1fr;
  }

  .site-main .card-head {
    gap: 8px;
  }

  .site-main .card-head h2 {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-main .search-box {
    width: min(220px, calc(100vw - 132px));
  }

  .access-modal,
  .site-config-modal,
  .settings-hub-modal {
    width: calc(100vw - 14px);
  }

  .access-modal .integration-grid {
    max-height: calc(100vh - 108px);
    padding: 8px;
  }

  .integration-card {
    padding: 10px;
  }
}

/* Boot loading state */
.boot-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.boot-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line, #e2e8f0);
  border-top-color: var(--primary, #1268ff);
  border-radius: 50%;
  animation: boot-spin 0.7s linear infinite;
}

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

/* Load more indicator */
.load-more-bar {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.load-more-bar button {
  font-size: 13px;
  color: var(--muted, #424655);
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  padding: 6px 20px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.load-more-bar button:hover {
  border-color: var(--primary, #1268ff);
  color: var(--primary, #1268ff);
}

/* Feedback search input */
.feedback-search {
  width: 100%;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.feedback-search:focus {
  border-color: var(--primary, #1268ff);
}
