:root {
  --bg: #f6f2ea;
  --surface: rgba(255, 253, 248, 0.92);
  --surface-solid: #fffdf8;
  --surface-soft: #f3ede2;
  --surface-deep: #ebe3d3;
  --text: #1f1b16;
  --muted: #6f675d;
  --line: #ddd2bf;
  --accent: #dc6f47;
  --accent-deep: #b55533;
  --accent-soft: #fde2d7;
  --success: #2a7a53;
  --warning: #a96a16;
  --warning-soft: #f9ebcc;
  --shadow: 0 12px 32px rgba(64, 43, 18, 0.08);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(180deg, #fbf8f2 0%, #f2ece1 100%);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  line-height: 1.55;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 100vh;
}

.prototype-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  border-left: 1px solid rgba(162, 145, 118, 0.25);
  background: rgba(255, 252, 246, 0.72);
  backdrop-filter: blur(12px);
}

.prototype-nav-title,
.eyebrow,
.brand-kicker,
.message-author,
.helper-copy,
.muted-copy,
.subtle-note,
.powered-by,
.callout-inline {
  color: var(--muted);
}

.prototype-nav-title,
.eyebrow,
.brand-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.prototype-nav-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.prototype-chip,
.builder-nav-item,
.soft-chip,
.style-pill,
.check-item,
.ghost-pill,
.secondary-pill,
.primary-pill {
  border-radius: 999px;
}

.prototype-chip,
.builder-nav-item,
.soft-chip,
.style-pill,
.ghost-pill,
.secondary-pill {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(169, 144, 102, 0.24);
  color: var(--text);
}

.prototype-chip {
  padding: 10px 12px;
  text-align: left;
}

.prototype-chip-wide {
  padding-left: 16px;
}

.prototype-chip.active,
.builder-nav-item.active,
.style-pill.active,
.check-item.active {
  background: var(--accent-soft);
  border-color: rgba(220, 111, 71, 0.42);
}

.main-shell {
  padding: 0;
}

.card,
.builder-nav,
.mock-input,
.mock-textarea,
.composer-input,
.sample-card,
.field-card,
.prototype-chip,
.check-item,
.recipient-sidecard,
.share-link-card,
.publish-card,
.source-card,
.callout-inline,
.plan-pill,
.status-badge,
.creator-badge,
.notice-inline {
  box-shadow: var(--shadow);
}

.card,
.builder-nav,
.mock-input,
.mock-textarea,
.composer-input,
.sample-card,
.field-card,
.check-item,
.share-link-card,
.publish-card,
.source-card,
.callout-inline,
.plan-pill,
.status-badge,
.creator-badge,
.notice-inline {
  background: var(--surface);
  border: 1px solid rgba(169, 144, 102, 0.24);
}

.builder-shell,
.dashboard-grid {
  display: grid;
  gap: 20px;
}

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

.builder-shell {
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  align-items: stretch;
  min-height: 100vh;
  height: 100vh;
}

.builder-conversation,
.builder-panel,
.recipient-shell,
.dashboard-shell {
  display: grid;
  gap: 20px;
}

.panel-header,
.tab-header-row,
.action-row,
.trust-row,
.dashboard-header,
.main-header,
.recipient-hero,
.publish-grid,
.radio-row {
  display: flex;
}

.panel-header,
.tab-header-row,
.dashboard-header {
  justify-content: space-between;
  align-items: center;
}

.builder-panel,
.recipient-hero,
.recipient-main,
.recipient-locked,
.dashboard-header,
.metric-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.builder-panel {
  min-height: 100%;
  height: 100%;
  min-width: 0;
  padding: 24px 28px 4px;
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.builder-conversation {
  display: grid;
  gap: 14px;
  min-height: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  align-self: stretch;
}

.message-author {
  margin-bottom: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.subtle-note {
  margin-top: 6px;
  font-size: 0.94rem;
}

.builder-chat-stage {
  min-height: 0;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  max-height: none;
}

.builder-controls {
  display: grid;
  gap: 10px;
  padding: 0;
  margin-top: auto;
}

.recipient-hero h1,
.dashboard-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.action-row,
.chip-row,
.trust-row,
.style-switch {
  gap: 10px;
  flex-wrap: wrap;
}

.chip-row {
  padding-bottom: 2px;
}

.primary-pill,
.secondary-pill,
.ghost-pill,
.soft-chip,
.style-pill,
.builder-nav-item,
.check-item {
  padding: 12px 16px;
}

.builder-cta-pill {
  padding: 9px 14px;
  font-size: 0.9rem;
  border-radius: 999px;
}

.builder-cta-row {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.builder-panel .secondary-pill,
.builder-panel .primary-pill {
  padding: 9px 14px;
  font-size: 0.9rem;
  border-radius: 999px;
}

.builder-panel .action-row {
  justify-content: flex-end;
}

.preview-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-pill {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
}

.soft-chip {
  font-size: 0.88rem;
  background: #f4efe4;
  box-shadow: none;
}

.ghost-pill {
  color: var(--muted);
}

.builder-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 16px 0 3px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(169, 144, 102, 0.18);
}

.builder-nav-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 6px;
  color: var(--muted);
  box-shadow: none;
  position: relative;
  font-size: 0.92rem;
}

.builder-nav-item.active {
  background: transparent;
  border: 0;
  color: var(--text);
  box-shadow: none;
}

.builder-nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(220, 111, 71, 0.78);
}

.builder-panel .panel-header .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.builder-panel .panel-header h2 {
  font-family: "Georgia", serif;
  font-size: 1.85rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-top: 6px;
}

.artifact-chat-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.workchat-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 100vh;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  min-height: 100vh;
}

.workspace-main {
  padding: 20px 28px 4px;
}

.slim-utility-rail {
  width: 60px;
  min-height: 100vh;
  padding: 14px 6px 18px;
  border-right: 1px solid rgba(169, 144, 102, 0.18);
  background-color: rgba(255, 252, 246, 0.72) !important;
  background-image: none !important;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.utility-icon,
.utility-avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.utility-icon {
  color: #25211b;
  font-size: 1.28rem;
  background: transparent;
}

.utility-icon.active {
  background: rgba(239, 232, 220, 0.96);
}

.utility-icon.muted {
  opacity: 0.35;
}

.utility-spacer {
  flex: 1;
}

.utility-avatar {
  border-radius: 999px;
  background: #403d38;
  color: white;
  font-weight: 700;
  font-size: 0.98rem;
}

.artifact-sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  border-right: 1px solid rgba(162, 145, 118, 0.25);
  background: rgba(255, 252, 246, 0.18);
}

.artifact-brand {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.artifact-new-chat,
.artifact-sidebar-item {
  width: 100%;
  text-align: left;
  border-radius: 14px;
}

.artifact-new-chat {
  padding: 10px 12px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.artifact-sidebar-list,
.artifact-recent-list {
  display: grid;
  gap: 3px;
}

.artifact-sidebar-item {
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 0.88rem;
}

.artifact-sidebar-item.active {
  background: rgba(220, 111, 71, 0.12);
  color: var(--text);
}

.artifact-sidebar-section {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 16px 10px 6px;
}

.artifact-sidebar-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 10px 6px 4px;
  border-top: 1px solid rgba(162, 145, 118, 0.18);
}

.artifact-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.artifact-account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3d3a34;
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.artifact-account-name {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.1;
}

.artifact-account-plan,
.artifact-breadcrumbs {
  color: var(--muted);
}

.artifact-account-plan {
  font-size: 0.86rem;
  line-height: 1.1;
}

.artifact-account-caret {
  margin-left: auto;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 0.8;
  place-items: center;
}

.artifact-chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.artifact-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 28px 14px;
}

.artifact-breadcrumbs {
  font-size: 0.95rem;
}

.artifact-chat-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding: 0 28px 10px;
}

.artifact-chat-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.artifact-chat-thread {
  max-width: 820px;
  margin: 0 auto;
}

.artifact-user-bubble {
  max-width: 76%;
}

.artifact-assistant-copy {
  max-width: 76%;
  padding-top: 4px;
  font-size: 1.03rem;
  line-height: 1.6;
}

.artifact-composer {
  max-width: 860px;
}

.tab-panel {
  display: grid;
  gap: 14px;
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}

.tab-panel-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.plan-pill,
.status-badge,
.creator-badge,
.notice-inline,
.callout-inline {
  padding: 10px 14px;
  border-radius: 16px;
}

.plan-pill,
.status-badge,
.creator-badge {
  font-size: 0.88rem;
}

.input-group {
  display: grid;
  gap: 8px;
}

.input-group span {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.mock-input,
.mock-textarea,
.composer-input,
.instruction-box,
.sample-card,
.publish-success {
  border-radius: var(--radius-lg);
}

.mock-input,
.composer-input {
  padding: 14px 16px;
}

.mock-textarea,
.instruction-box {
  padding: 16px;
}

.mock-textarea {
  min-height: 100px;
}

input.mock-input,
textarea.mock-textarea,
.builder-text-input,
.builder-textarea {
  width: 100%;
  border: 1px solid rgba(169, 144, 102, 0.24);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  box-shadow: var(--shadow);
}

input.mock-input,
.builder-text-input {
  min-height: 46px;
}

textarea.mock-textarea,
.builder-textarea {
  resize: vertical;
}

.instruction-box {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(169, 144, 102, 0.2);
  line-height: 1.55;
  font-size: 0.92rem;
}

.instruction-editor {
  min-height: 100%;
  height: 100%;
  max-height: none;
  overflow: auto;
}

textarea.instruction-editor,
.builder-instruction-textarea {
  width: 100%;
  resize: none;
  color: var(--text);
  font: inherit;
}

.source-card,
.sample-card,
.publish-success,
.publish-card,
.recipient-sidecard,
.share-link-card {
  padding: 14px;
  border-radius: var(--radius-lg);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(33, 26, 18, 0.24);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.publish-modal {
  width: min(640px, calc(100vw - 48px));
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 252, 246, 0.98);
  display: grid;
  gap: 20px;
}

.publish-modal h2 {
  font-size: 2rem;
  margin-top: 4px;
}

.publish-modal-body,
.publish-modal-copy,
.publish-live-copy,
.publish-plan-block {
  display: grid;
  gap: 14px;
}

.publish-plan-block {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(244, 238, 227, 0.92);
  border: 1px solid rgba(169, 144, 102, 0.22);
}

.publish-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.publish-modal-actions-end {
  justify-content: flex-end;
}

.publish-modal-actions-split {
  justify-content: space-between;
}

.share-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.share-link-url {
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.share-link-copy-button {
  flex: 0 0 auto;
}

.field-list,
.check-grid,
.metric-grid,
.output-stack {
  display: grid;
  gap: 12px;
}

.field-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
}

.field-card h4,
.builder-panel h3 {
  font-size: 1.02rem;
}

.field-card p,
.publish-card p,
.source-card p,
.callout-inline,
.check-item,
.style-pill,
.sample-output-editor,
.mock-input,
.mock-textarea,
.builder-text-input,
.builder-textarea {
  font-size: 0.9rem;
}

.field-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-align: left;
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(169, 144, 102, 0.32);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  line-height: 1;
  flex: 0 0 18px;
}

.check-item.active .check-icon {
  background: rgba(220, 111, 71, 0.14);
  border-color: rgba(220, 111, 71, 0.42);
  color: var(--accent-deep);
}

.sample-table {
  display: grid;
  gap: 8px;
}

.sample-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(169, 144, 102, 0.18);
}

.sample-table-head {
  font-weight: 700;
}

.sample-copy {
  color: var(--muted);
}

.sample-output-editor {
  width: 100%;
  min-height: 96px;
  max-height: 96px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(169, 144, 102, 0.24);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  box-shadow: var(--shadow);
  overflow: auto;
  resize: none;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed rgba(169, 144, 102, 0.4);
}

.chat-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 6px 0 0;
}

.chat-thread {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 0 2px;
}

.message-block {
  margin-bottom: 26px;
}

.bubble {
  border-radius: 22px;
  padding: 16px 34px 17px;
  margin-bottom: 28px;
  font-size: 0.98rem;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.bubble.user {
  margin-left: auto;
  max-width: 72%;
  background: #efe8dc;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  box-shadow: none;
}

.assistant-copy {
  max-width: 86%;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.68;
  letter-spacing: -0.012em;
}

.assistant-copy p {
  margin: 0;
}

.assistant-copy p:last-child {
  margin-bottom: 0;
}

.bubble-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.bubble-action-button {
  border-radius: 999px;
  padding: 12px 18px;
  background: #1f1d1a;
  color: #fffaf5;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid #1f1d1a;
  box-shadow: 0 8px 18px rgba(31, 29, 26, 0.14);
}

.bubble-action-button.secondary {
  background: rgba(255, 253, 248, 0.98);
  color: #2b2721;
  border-color: rgba(169, 144, 102, 0.3);
  box-shadow: 0 8px 18px rgba(64, 43, 18, 0.08);
}

.chat-composer {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  border-radius: 28px;
  padding: 10px 15px 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(162, 145, 118, 0.34);
  box-shadow: 0 14px 34px rgba(64, 43, 18, 0.07);
}

.composer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

.composer-textarea {
  width: 100%;
  min-height: 34px;
  height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.25;
}

.faux-textarea {
  display: flex;
  align-items: center;
  color: var(--muted);
  min-height: 38px;
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.composer-left-actions,
.composer-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: transparent;
  color: #423d35;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  line-height: 1;
  padding: 0;
}

.send-button-active {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #cf6a3d;
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
}

.model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 7px 11px;
  background: #f4efe4;
  color: var(--text);
  font-size: 0.92rem;
  border: 0;
}

.composer-disclaimer {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  line-height: 1.1;
}

.preview-output {
  display: grid;
  gap: 14px;
}

.preview-tab-panel {
  gap: 0;
}

.recipient-hero {
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
}

.recipient-header-copy {
  display: grid;
  gap: 14px;
}

.trust-row {
  align-items: center;
}

.powered-by {
  font-size: 0.92rem;
}

.recipient-editorial-shell {
  min-height: 100vh;
  padding: 34px 44px 48px;
  background: #ffffff;
  color: #111111;
  font-family: "Gill Sans", "Trebuchet MS", "Helvetica Neue", sans-serif;
}

.recipient-editorial-shell-embedded {
  min-height: 0;
  padding: 24px 26px 28px;
}

.recipient-site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.recipient-site-brand {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.recipient-site-flag {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #ffffff;
  color: #111111;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.recipient-header-image-shell {
  margin-bottom: 30px;
}

.recipient-header-image {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
}

.recipient-browser-shell {
  min-height: 100vh;
  background: #0d5f66;
}

.recipient-browser-shell-embedded {
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ffffff;
  height: 100%;
}

.recipient-browser-chrome {
  background: linear-gradient(180deg, #084b52 0%, #0d5f66 100%);
  padding: 0;
}

.recipient-browser-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 0;
}

.recipient-browser-window {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 8px 0 4px;
}

.recipient-browser-window span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

.recipient-browser-window span:nth-child(1) { background: #ff5f57; }
.recipient-browser-window span:nth-child(2) { background: #febc2e; }
.recipient-browser-window span:nth-child(3) { background: #28c840; }

.recipient-browser-tab {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 18px 18px 0 0;
  padding: 12px 18px 13px;
  font-size: 0.95rem;
  line-height: 1;
}

.recipient-browser-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.recipient-browser-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 14px;
}

.recipient-browser-actions {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.4rem;
  line-height: 1;
  width: 28px;
  text-align: center;
}

.recipient-browser-address {
  flex: 1;
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 0.98rem;
}

.recipient-browser-page {
  min-height: calc(100vh - 92px);
}

.recipient-browser-shell-embedded .recipient-browser-page {
  min-height: 100%;
  height: 100%;
  overflow: auto;
}

.recipient-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 36px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(77, 59, 37, 0.18);
}

.recipient-kicker,
.recipient-meta-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.62);
  font-weight: 700;
}

.recipient-editorial-copy h1 {
  font-family: "Georgia", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 12px 0 14px;
  max-width: 10ch;
}

.recipient-dek {
  max-width: 34rem;
  font-size: 1.18rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.78);
}

.recipient-editorial-meta {
  display: grid;
  gap: 18px;
  align-self: stretch;
}

.recipient-meta-block {
  padding-top: 8px;
}

.recipient-meta-copy {
  margin-top: 10px;
  color: rgba(17, 17, 17, 0.74);
  line-height: 1.55;
}

.recipient-editorial-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: 28px;
  align-items: start;
}

.recipient-browser-shell-embedded .recipient-editorial-hero {
  grid-template-columns: 1fr;
  gap: 18px;
}

.recipient-browser-shell-embedded .recipient-editorial-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.recipient-editorial-card {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.04);
}

.recipient-editorial-intro,
.recipient-editorial-panel,
.recipient-locked-editorial {
  border-radius: 30px;
  padding: 28px;
}

.recipient-editorial-intro {
  position: sticky;
  top: 28px;
  background: #ffffff;
}

.recipient-browser-shell-embedded .recipient-editorial-intro {
  position: static;
}

.recipient-editorial-intro h2,
.recipient-locked-editorial h2 {
  font-family: "Georgia", serif;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 14px 0 14px;
}

.recipient-editorial-intro p,
.recipient-locked-editorial p {
  color: rgba(17, 17, 17, 0.76);
  line-height: 1.65;
}

.recipient-browser-shell-embedded .recipient-header-image {
  max-height: 280px;
}

.recipient-browser-shell-embedded .recipient-editorial-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  max-width: none;
}

.recipient-browser-shell-embedded .recipient-dek {
  max-width: none;
  font-size: 1rem;
}

.recipient-browser-shell-embedded .recipient-editorial-card {
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.04);
}

.recipient-editorial-panel {
  border-radius: 30px;
  padding: 28px;
  background: #ffffff;
}

.recipient-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.recipient-editorial-panel .recipient-form-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.recipient-editorial-panel .input-group span {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.64);
  font-weight: 700;
}

.recipient-editorial-panel .mock-input,
.recipient-editorial-panel .mock-textarea {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: none;
  border-radius: 22px;
}

.recipient-output-editorial .output-stack {
  gap: 24px;
}

.recipient-output-editorial .output-card {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 24px;
  box-shadow: none;
  padding: 28px;
}

.recipient-output-editorial .output-card h4 {
  font-family: "Georgia", serif;
  font-size: 1.55rem;
  line-height: 1.12;
  margin-bottom: 18px;
}

.recipient-output-editorial .output-rank {
  color: rgba(17, 17, 17, 0.7);
  margin-bottom: 12px;
}

.recipient-output-editorial .output-summary-card {
  background: #f8f8f8;
}

.recipient-output-editorial .output-columns {
  gap: 28px;
}

.recipient-output-editorial .eyebrow {
  margin-bottom: 10px;
}

.recipient-output-editorial ul li + li {
  margin-top: 10px;
}

.recipient-output-editorial p + .eyebrow,
.recipient-output-editorial ul + .eyebrow {
  margin-top: 20px;
}

.recipient-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.recipient-action {
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 600;
}

.recipient-action.primary {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.14);
}

.recipient-action.subtle {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
}

.recipient-sidecard {
  min-width: 240px;
  align-self: flex-start;
}

.recipient-main,
.recipient-locked {
  display: grid;
  gap: 18px;
}

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

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

.output-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(169, 144, 102, 0.2);
}

.output-rank {
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.output-card h4 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

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

.output-summary-card {
  background: linear-gradient(180deg, rgba(253, 226, 215, 0.52), rgba(255, 255, 255, 0.84));
}

.notice-inline {
  margin-top: 16px;
  font-size: 0.92rem;
}

.dashboard-grid {
  align-items: start;
}

.apps-table-shell {
  padding: 0;
  overflow: hidden;
}

.dashboard-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 -6px;
  justify-content: flex-end;
}

.dashboard-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -6px 0 -6px;
}

.dashboard-alert-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fbe1de;
  border: 1px solid #efb9b1;
  color: #9d3e34;
  font-size: 0.96rem;
  line-height: 1.3;
}

.dashboard-alert-banner-warning {
  background: #f8edc8;
  border-color: #e7d48d;
  color: #8b6512;
}

.dashboard-alert-icon {
  flex: 0 0 auto;
}

.dashboard-alert-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dashboard-mini-button {
  padding: 9px 14px;
  font-size: 0.9rem;
  border-radius: 999px;
}

.dashboard-actions-row .secondary-pill,
.dashboard-actions-row .primary-pill {
  padding: 9px 14px;
  font-size: 0.9rem;
  border-radius: 999px;
}

.apps-table-head,
.apps-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) 48px 48px 72px 110px 120px 90px 130px;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
}

.apps-table-head {
  border-bottom: 1px solid rgba(169, 144, 102, 0.2);
  background: rgba(255, 252, 246, 0.84);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.apps-table-body {
  display: grid;
}

.apps-table-row {
  border-bottom: 1px solid rgba(169, 144, 102, 0.14);
  background: rgba(255, 255, 255, 0.65);
}

.apps-table-row.active {
  background: rgba(253, 226, 215, 0.28);
}

.apps-table-row.disabled {
  background: rgba(239, 234, 226, 0.92);
  color: rgba(31, 27, 22, 0.5);
}

.apps-table-name {
  font-weight: 600;
}

.apps-table-row.disabled .apps-table-name,
.apps-table-row.disabled .apps-table-link {
  color: rgba(31, 27, 22, 0.5);
}

.apps-table-icon,
.apps-table-link {
  justify-self: start;
}

.apps-table-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(169, 144, 102, 0.22);
  background: rgba(255, 252, 246, 0.88);
  color: var(--text);
}

.apps-table-row.disabled .apps-table-icon {
  background: rgba(255, 252, 246, 0.4);
  border-color: rgba(169, 144, 102, 0.14);
  color: rgba(31, 27, 22, 0.42);
}

.apps-table-link {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  padding: 0;
}

.apps-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 22px 24px;
  background: rgba(255, 252, 246, 0.72);
}

.apps-quota-wrap {
  flex: 1;
  max-width: 760px;
}

.apps-quota-wrap .eyebrow {
  margin-bottom: 10px;
}

.apps-quota-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.apps-quota-label-row .eyebrow {
  margin-bottom: 0;
}

.apps-quota-copy {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1;
}

.apps-quota-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(220, 111, 71, 0.14);
  overflow: hidden;
}

.apps-quota-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #eb8c67, #dc6f47);
}

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

.metric-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(169, 144, 102, 0.16);
}

.metric-grid strong {
  font-size: 1.8rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.accent-panel {
  background: linear-gradient(180deg, rgba(253, 226, 215, 0.64), rgba(255, 253, 248, 0.92));
}

.publish-grid {
  gap: 16px;
}

.publish-card,
.sample-card {
  flex: 1;
}

.publish-card {
  gap: 8px;
}

.publish-success h4 {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.radio-row {
  gap: 10px;
  margin-top: 10px;
  font-size: 0.88rem;
}

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

  .prototype-nav {
    position: static;
    height: auto;
    border-left: 0;
    border-bottom: 1px solid rgba(162, 145, 118, 0.25);
    order: 2;
  }

  .builder-shell,
  .dashboard-grid,
  .recipient-form-grid,
  .output-columns,
  .metric-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .builder-shell {
    min-height: auto;
    height: auto;
  }

  .apps-table-head,
  .apps-table-row {
    grid-template-columns: minmax(180px, 1.5fr) 40px 40px 60px 92px 110px 78px 110px;
    font-size: 0.92rem;
  }

  .apps-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-actions-row {
    flex-wrap: wrap;
  }

  .recipient-hero,
  .dashboard-header,
  .tab-header-row,
  .artifact-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

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

  .recipient-editorial-intro {
    position: static;
  }

  .artifact-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(162, 145, 118, 0.25);
  }

  .slim-utility-rail {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(169, 144, 102, 0.18);
  }

  .utility-spacer {
    display: none;
  }
}

@media (max-width: 720px) {
  .main-shell {
    padding: 18px;
  }

  .workspace-main {
    padding: 18px;
  }

  .recipient-editorial-shell {
    padding: 22px 18px 28px;
  }

  .recipient-site-brand {
    font-size: 1rem;
  }

  .recipient-site-flag {
    width: 20px;
    height: 20px;
    border-radius: 5px;
  }

  .recipient-header-image {
    max-height: 300px;
    border-radius: 20px;
  }

  .builder-conversation,
  .builder-panel,
  .recipient-hero,
  .recipient-main,
  .recipient-locked,
  .dashboard-header,
  .metric-panel {
    padding: 18px;
  }

  .builder-panel {
    height: auto;
  }
}
