@import url('/fonts.css');
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #283b35;
  background: #f7f7f2;
  font-synthesis: none;
  --ink: #283b35;
  --muted: #7d867d;
  --line: #e5e7de;
  --paper: #fffefa;
  --green: #284e3f;
  --soft: #edf1e7;
  --gold: #d6bc8e;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button {
  color: inherit;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b08847;
  outline-offset: 3px;
}
input,
textarea,
select {
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #dce1d5;
  border-radius: 8px;
  padding: 10px 11px;
  width: 100%;
  min-width: 0;
}
input[type='color'] {
  width: 38px;
  height: 36px;
  padding: 3px;
  cursor: pointer;
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
textarea {
  resize: vertical;
}
label {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
label > input,
label > textarea,
label > select {
  margin-top: 7px;
}
button svg {
  flex-shrink: 0;
}
svg {
  vertical-align: middle;
}
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn {
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 38px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #f0f2e9;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fffefa;
}
.btn.primary:hover {
  background: #1d3b2f;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
}
.btn.small {
  padding: 7px 10px;
  min-height: 31px;
  font-size: 11px;
}
.btn.danger {
  color: #974b3d;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 8px;
}
.icon-btn:hover {
  background: var(--soft);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.6;
}
.tiny {
  font-size: 10px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--muted);
}
.serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--soft);
  color: #567047;
  border: 1px solid #dfe5d6;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.amber {
  background: #faf1dc;
  color: #8d6b31;
  border-color: #eedfbb;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7d9a68;
  display: inline-block;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 14px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.shell {
  min-height: 100vh;
  padding-left: 76px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 76px;
  z-index: 5;
  background: #f0f2e9;
  border-right: 1px solid #e1e5d9;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 23px 0 16px;
  gap: 14px;
}
.brand-symbol {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--green);
  color: #fffcf2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -3px;
  padding-right: 4px;
  position: relative;
}
.brand-symbol:after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  right: 7px;
  bottom: 8px;
}
.rail-divider {
  width: 28px;
  height: 1px;
  background: #dce1d1;
  margin: 10px 0;
}
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #819078;
  position: relative;
}
.nav-btn:hover {
  background: #e7ecdf;
}
.nav-btn.active {
  color: #31543c;
  background: #e0e8d6;
}
.nav-btn.active:before {
  content: '';
  position: absolute;
  left: -15px;
  height: 18px;
  width: 3px;
  background: #64805c;
  border-radius: 0 3px 3px 0;
}
.nav-btn .icon {
  width: 20px;
  height: 20px;
}
.rail-bottom {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.user-avatar {
  width: 33px;
  height: 33px;
  background: #d4ddc7;
  color: #4b6040;
  border: 3px solid #f8f9f3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: #fbfbf7;
}
.wordmark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.wordmark span {
  font-weight: 400;
  color: #909788;
  font-size: 11px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  margin-left: 13px;
  padding-left: 14px;
  border-left: 1px solid #dfe3d8;
}
.breadcrumbs {
  font-size: 11px;
  color: #909888;
  display: flex;
  gap: 10px;
  align-items: center;
}
.breadcrumbs strong {
  font-weight: 500;
  color: #52614f;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-note {
  font-size: 10px;
  color: #89947e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main {
  padding: 25px 28px 18px;
  max-width: 1800px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 12px;
}
.page-head h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  margin: 0 0 7px;
  font-weight: 500;
}
.page-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.studio-grid {
  display: grid;
  grid-template-columns: 290px minmax(480px, 1fr) 250px;
  gap: 18px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.companion {
  display: flex;
  flex-direction: column;
  min-height: 720px;
}
.companion-head {
  padding: 16px 18px 12px;
}
.companion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.companion-title h2 {
  font-size: 15px;
  margin: 0 0 3px;
  font-weight: 600;
}
.ai-label {
  color: #8e9586;
  font-size: 10px;
}
.portrait-box {
  height: 210px;
  margin: 0 10px;
  background: #f6f0e3;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.portrait-art {
  height: 100%;
  background-image: url('/assets/emily-reference.png');
  background-size: 235%;
  background-position: 45% 3%;
  transition:
    opacity 0.5s,
    background-position 0.5s;
}
.portrait-art.pose-listening {
  background-size: 480%;
  background-position: 96% 0%;
}
.portrait-art.pose-found {
  background-size: 480%;
  background-position: 98% 94%;
}
.portrait-art.custom {
  background-size: cover;
  background-position: center;
}
.portrait-caption {
  position: absolute;
  bottom: 9px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  background: #fffbeddf;
  padding: 5px 8px;
  border: 1px solid #faf5e9;
  border-radius: 20px;
  color: #686c56;
}
.portrait-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #8c9484;
}
.portrait-toggle input {
  width: 12px;
  height: 12px;
}
.portrait-status {
  font-size: 9px;
  color: #939889;
  padding: 8px 18px;
  min-height: 30px;
  line-height: 1.5;
}
.conversation-head {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid #eff0e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
}
.conversation-head span {
  color: #97a08b;
  font-size: 9px;
  font-weight: 400;
}
.messages {
  padding: 18px 17px 8px;
  min-height: 175px;
  max-height: 310px;
  overflow: auto;
  scroll-behavior: smooth;
  flex: 1;
}
.message {
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message .message-name {
  font-size: 10px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #788969;
}
.message.user {
  background: #f0f3ea;
  border: 1px solid #e7eddd;
  padding: 10px 12px;
  border-radius: 10px 10px 2px 10px;
}
.message.user .message-name {
  color: #809172;
}
.message.error {
  color: #984b3a;
  background: #fdf1e9;
  border-radius: 8px;
  padding: 10px;
}
.message.test-note {
  color: #989a8b;
  font-size: 10px;
}
.proposal {
  padding: 12px;
  border: 1px solid #dbe4cf;
  background: #f5f7ee;
  border-radius: 9px;
  margin: 10px 0;
  font-size: 11px;
}
.proposal-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0;
}
.proposal-changes span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #e9efdf;
  font-size: 9px;
}
.suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 17px 14px;
}
.suggestion {
  font-size: 10px;
  padding: 7px 10px;
  border: 1px solid #e2e7d8;
  border-radius: 6px;
  background: #fffefa;
  color: #6d795e;
}
.suggestion:hover {
  background: #f0f3e8;
}
.composer {
  margin: 0 12px 10px;
  border: 1px solid #dfe4d6;
  border-radius: 10px;
  background: #fffef9;
  padding: 9px 10px 8px;
}
.composer:focus-within {
  border-color: #8caa76;
}
.composer textarea {
  border: 0;
  padding: 0;
  resize: none;
  font-size: 11px;
  line-height: 1.6;
  min-height: 48px;
  background: transparent;
  outline: none;
  box-shadow: none;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.composer-hint {
  font-size: 9px;
  color: #a0a48f;
}
.send-btn {
  width: 29px;
  height: 29px;
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.send-btn .icon {
  width: 15px;
  height: 15px;
}
.companion-footer {
  font-size: 8px;
  color: #a1a493;
  text-align: center;
  padding-bottom: 12px;
}
.canvas-panel {
  position: relative;
}
.canvas-head {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.draft-title {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #45543b;
  display: flex;
  gap: 7px;
  align-items: center;
  max-width: 250px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.canvas-head .sub {
  font-size: 9px;
  color: #98a08e;
  margin-top: 5px;
}
.canvas-tools {
  display: flex;
  gap: 6px;
}
.canvas-tools .badge {
  font-size: 9px;
  padding: 4px 7px;
}
.preview-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #f0f2eb;
  border: 1px solid #e5e9de;
  border-radius: 8px;
  padding: 3px;
  width: max-content;
  margin: 7px auto 22px;
}
.preview-tabs button {
  border: 0;
  background: transparent;
  color: #8b957f;
  font-size: 10px;
  border-radius: 5px;
  padding: 6px 13px;
}
.preview-tabs button.active {
  background: #fffef9;
  color: #49623f;
  box-shadow: 0 1px 3px #20391810;
}
.canvas {
  min-height: 505px;
  padding: 0 22px 25px;
  background:
    radial-gradient(circle at 1px 1px, #bcc6ae40 1px, transparent 0) 0 0/18px 18px,
    linear-gradient(#fafbf5, #f1f4e9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-top: 1px solid #f4f5ed;
}
.canvas .preview-tabs {
  margin-top: 19px;
  position: relative;
}
.wallets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 660px;
  align-items: start;
  margin: auto 0;
}
.wallet-wrap {
  min-width: 0;
}
.wallet-label {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #768669;
  margin-bottom: 17px;
  font-weight: 500;
}
.wallet-label .icon {
  height: 16px;
  width: 16px;
}
.wallet {
  --pass-bg: #203e39;
  --pass-accent: #dec49a;
  --pass-text: #fff9ed;
  background: var(--pass-bg);
  color: var(--pass-text);
  border-radius: 14px;
  overflow: hidden;
  min-height: 343px;
  box-shadow:
    0 13px 23px #3443311b,
    0 3px 6px #3443310a;
  position: relative;
}
.wallet.google {
  border-radius: 23px;
}
.wallet-top {
  padding: 20px 17px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
}
.brand-medallion {
  height: 31px;
  width: 31px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--pass-accent) 50%, transparent);
  border-radius: 50%;
  font-size: 19px;
  font-family: Georgia, serif;
  color: var(--pass-accent);
}
.brand-medallion img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.wallet-brand {
  font-size: 8px;
  letter-spacing: 1.4px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.wallet-subbrand {
  font-size: 6px;
  opacity: 0.55;
  letter-spacing: 1.2px;
  margin-top: 4px;
}
.pass-art {
  height: 106px;
  position: relative;
  overflow: hidden;
  margin: 0 15px;
  background: color-mix(in srgb, var(--pass-accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--pass-accent) 20%, transparent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pass-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pass-art .art-arch {
  height: 138px;
  width: 124px;
  border: 1px solid color-mix(in srgb, var(--pass-accent) 70%, transparent);
  border-radius: 70px 70px 0 0;
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
}
.pass-art .art-arch:before,
.pass-art .art-arch:after {
  content: '';
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--pass-accent) 30%, transparent);
  border-radius: 90px 90px 0 0;
  width: 158px;
  height: 155px;
  top: -12px;
  left: -18px;
}
.pass-art .art-arch:after {
  width: 192px;
  height: 175px;
  top: -24px;
  left: -35px;
}
.art-word {
  font-family: Georgia, serif;
  font-size: 31px;
  font-style: italic;
  color: var(--pass-accent);
  position: relative;
  z-index: 1;
  letter-spacing: -1px;
}
.art-sun {
  width: 27px;
  height: 27px;
  background: var(--pass-accent);
  position: absolute;
  top: 16px;
  right: 22px;
  border-radius: 50%;
  opacity: 0.8;
}
.wallet.minimal .pass-art {
  border: 0;
  background: transparent;
  height: 95px;
  justify-content: flex-start;
  padding: 0 5px;
}
.wallet.minimal .art-arch,
.wallet.minimal .art-sun {
  display: none;
}
.wallet.minimal .art-word {
  font-style: normal;
  font-size: 34px;
  max-width: 170px;
  line-height: 1.05;
}
.wallet.bold .pass-art {
  background: var(--pass-accent);
}
.wallet.bold .art-word {
  color: var(--pass-bg);
  font-size: 42px;
  font-style: normal;
}
.wallet.bold .art-arch {
  border-color: var(--pass-bg);
}
.wallet.bold .art-sun {
  background: var(--pass-bg);
}
.wallet.google .pass-art {
  margin: 0;
  border-radius: 0;
  height: 103px;
  border-left: 0;
  border-right: 0;
}
.wallet.google .wallet-top {
  padding-top: 17px;
  padding-bottom: 14px;
}
.pass-body {
  padding: 15px 18px 11px;
}
.pass-subtitle {
  font-family: Georgia, serif;
  font-size: 13px;
  margin: 0 0 13px;
  color: var(--pass-accent);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.pass-field-label {
  font-size: 6px;
  letter-spacing: 1.1px;
  opacity: 0.6;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.pass-name {
  font-size: 13px;
  font-weight: 550;
}
.pass-fields {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.pass-fields .field-value {
  font-size: 8px;
  line-height: 1.4;
}
.barcode-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 18px 15px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--pass-text) 15%, transparent);
}
.barcode {
  height: 32px;
  width: 108px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  background: #fff9ed;
  padding: 4px 6px;
}
.barcode span {
  background: #33423b;
  width: 2px;
  height: 100%;
}
.barcode span:nth-child(3n) {
  width: 3px;
}
.barcode span:nth-child(7n) {
  width: 1px;
}
.barcode-label {
  font-size: 5px;
  letter-spacing: 1px;
  opacity: 0.6;
}
.demo-stripe {
  font-size: 6px;
  letter-spacing: 1px;
  text-align: center;
  background: #ffffff10;
  padding: 5px;
}
.canvas-note {
  font-size: 9px;
  color: #97a18a;
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.canvas-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffefa;
  gap: 10px;
}
.canvas-footer .small {
  font-size: 10px;
  color: #8c9981;
}
.canvas-footer .small strong {
  font-weight: 500;
  color: #59764b;
}
.design-summary {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 12px;
  overflow: hidden;
}
.summary-item {
  padding: 15px;
  border-right: 1px solid var(--line);
}
.summary-item:last-child {
  border: 0;
}
.summary-item .eyebrow {
  font-size: 8px;
  letter-spacing: 1.1px;
}
.summary-item p {
  font-size: 11px;
  margin: 6px 0 0;
  color: #516343;
}
.summary-item small {
  font-size: 8px;
  color: #a1aa96;
}
.creative-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 5px;
  color: #839376;
  font-size: 10px;
  line-height: 1.7;
}
.creative-note .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.inspector-head {
  font-size: 12px;
  font-weight: 600;
  padding: 19px 16px 16px;
  display: flex;
  justify-content: space-between;
}
.inspector-tabs {
  padding: 0 14px;
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 17px;
}
.inspector-tabs button {
  background: none;
  border: 0;
  font-size: 10px;
  padding: 0 0 12px;
  color: #9ba48f;
  position: relative;
}
.inspector-tabs button.active {
  color: #4b663f;
}
.inspector-tabs button.active:after {
  position: absolute;
  content: '';
  height: 2px;
  background: #668451;
  bottom: -1px;
  left: 0;
  right: 0;
}
.inspector-content {
  padding: 17px 16px;
  display: grid;
  gap: 17px;
}
.inspector-content label {
  font-size: 9px;
  color: #7e8b71;
}
.inspector-content input,
.inspector-content select {
  font-size: 11px;
  padding: 9px;
}
.inspector-content input[type='color'] {
  padding: 3px;
}
.section-label {
  font-size: 9px;
  font-weight: 550;
  color: #6e7c62;
  margin: 0 0 9px;
}
.color-control {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.color-control label {
  flex: 1;
  font-size: 10px;
}
.hex {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: #99a18f;
}
.palette-presets {
  display: flex;
  gap: 7px;
  margin: 11px 0 0;
}
.palette-preset {
  display: flex;
  width: 32px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 2px;
  overflow: hidden;
  background: transparent;
}
.palette-preset.selected {
  border-color: #799366;
}
.palette-preset span {
  width: 50%;
  height: 100%;
}
.layout-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.layout-option {
  background: #fbfcf7;
  border: 1px solid #e5e8dc;
  border-radius: 7px;
  padding: 9px 6px 7px;
  color: #95a088;
  font-size: 8px;
  display: grid;
  gap: 6px;
  justify-items: center;
}
.layout-option.active {
  border-color: #8ca477;
  background: #f2f5eb;
  color: #587445;
}
.layout-preview {
  height: 25px;
  width: 36px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.layout-preview span {
  height: 2px;
  background: currentColor;
  opacity: 0.4;
  width: 75%;
}
.layout-preview span:first-child {
  height: 7px;
  width: 100%;
  opacity: 0.25;
}
.layout-option:nth-child(2) .layout-preview span:first-child {
  height: 2px;
  width: 40%;
}
.layout-option:nth-child(3) .layout-preview span:first-child {
  height: 12px;
  opacity: 0.55;
}
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 400;
  color: #6e7c62;
}
.check-row input {
  margin: 0;
}
.inspector-foot {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.7;
  color: #a1aa96;
  background: #fdfdf9;
}
.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 24px 8px;
  border: 1px dashed #bccbab;
  border-radius: 9px;
  font-size: 11px;
  background: #f9fbf3;
  color: #688159;
  text-align: center;
  cursor: pointer;
}
.upload-zone input {
  display: none;
}
.asset-card {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 7px;
}
.asset-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: #f3f4ed;
  border-radius: 4px;
}
.asset-card .asset-name {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.asset-actions {
  display: flex;
  gap: 5px;
}
.detail-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
}
.detail-item strong {
  display: block;
  margin-bottom: 3px;
  color: #617a50;
}
.status-line {
  font-size: 10px;
  line-height: 1.6;
  padding: 9px;
  border-radius: 7px;
  background: #f1f5e9;
  color: #698653;
}
.status-line.warning {
  background: #f9f1de;
  color: #947432;
}
.workspace-footer {
  font-size: 9px;
  color: #a3ab99;
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  gap: 10px;
}
.page-container {
  max-width: 1160px;
  margin: 0 auto;
  padding-bottom: 30px;
}
.wide-panel {
  padding: 23px;
  margin-bottom: 18px;
}
.wide-panel h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
}
.wide-panel h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 12px;
}
.wide-panel p {
  font-size: 12px;
  line-height: 1.7;
  color: #829174;
}
.draft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.draft-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  text-align: left;
  padding: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.draft-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 18px #3b543312;
}
.draft-mini {
  height: 155px;
  padding: 22px;
  display: flex;
  justify-content: center;
  background: #edf1e7;
}
.mini-pass {
  border-radius: 9px;
  width: 178px;
  padding: 18px;
  font-size: 9px;
  letter-spacing: 1.4px;
  box-shadow: 0 8px 12px #0001;
}
.mini-pass em {
  display: block;
  font:
    30px Georgia,
    serif;
  margin-top: 13px;
  letter-spacing: -1px;
}
.draft-info {
  padding: 18px;
}
.draft-info h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 7px;
}
.draft-info p {
  font-size: 10px;
  color: #91a080;
  margin: 0;
}
.notebook-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.notebook-table th {
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8d9a7c;
  background: #f3f5ed;
  padding: 13px 14px;
  font-weight: 550;
  white-space: nowrap;
}
.notebook-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
  vertical-align: top;
}
.notebook-table .content-cell {
  min-width: 240px;
  max-width: 420px;
}
.table-scroll {
  overflow: auto;
}
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a185;
  font-size: 12px;
  line-height: 1.9;
}
.empty-state .icon {
  height: 30px;
  width: 30px;
  margin-bottom: 13px;
}
.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.console-grid .wide-panel {
  margin: 0;
}
.console-nav {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
  overflow: auto;
  padding-bottom: 4px;
}
.console-nav button.active {
  background: #e4edd9;
  border-color: #c9d9b9;
}
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.budget-meter {
  padding: 17px;
  background: #f1f5e9;
  border: 1px solid #e2e8d9;
  border-radius: 9px;
}
.budget-meter strong {
  display: block;
  font:
    26px Georgia,
    serif;
  margin: 7px 0;
}
.budget-meter span {
  font-size: 10px;
  color: #8fa17f;
}
.field-help {
  font-size: 10px;
  color: #8e9a80;
  line-height: 1.7;
  margin: 5px 0 0;
}
.model-option {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 10px;
}
.model-option strong {
  font-size: 12px;
}
.model-option p {
  margin: 6px 0;
  font-size: 10px;
}
.model-option code {
  font-size: 9px;
  color: #829375;
}
.code-block,
code {
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.code-block {
  font-size: 11px;
  line-height: 1.7;
  background: #edf2e5;
  padding: 14px 16px;
  border: 1px solid #dfe6d5;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.setup-step {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}
.step-number {
  width: 25px;
  height: 25px;
  border: 1px solid #d8e3cb;
  background: #f1f6e9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  color: #74915d;
}
.setup-step h3 {
  margin: 3px 0 6px;
  font-size: 12px;
}
.setup-step p {
  margin: 0;
  font-size: 11px;
}
.prompt-version {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.prompt-version.selected {
  border-color: #9bb286;
  background: #f7faf1;
}
.prompt-editor {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.8;
  min-height: 340px;
}
.receipt {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 25px 1fr auto;
  gap: 10px;
  align-items: start;
}
.receipt h3 {
  font-size: 11px;
  margin: 1px 0 5px;
}
.receipt p {
  font-size: 10px;
  margin: 0;
  overflow-wrap: anywhere;
}
.receipt time {
  font-size: 9px;
  color: #9aa78b;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: #fafaf5;
}
.auth-art {
  background: #edeada;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.auth-art .auth-image {
  position: absolute;
  inset: 0;
  background-image: url('/assets/emily-reference.png');
  background-size: auto 83%;
  background-position: 44% 22%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}
.auth-art-header {
  position: absolute;
  top: 42px;
  left: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-art-text {
  position: absolute;
  bottom: 65px;
  left: 55px;
  right: 40px;
}
.auth-art-text h1 {
  font:
    43px/1.15 Georgia,
    serif;
  letter-spacing: -1.3px;
  margin: 0 0 16px;
  max-width: 380px;
}
.auth-art-text p {
  font-size: 12px;
  line-height: 1.8;
  color: #7e826c;
  max-width: 310px;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  max-width: 345px;
  width: 100%;
}
.auth-form .eyebrow {
  font-size: 10px;
  color: #92a080;
}
.auth-form h2 {
  font:
    35px Georgia,
    serif;
  letter-spacing: -1px;
  margin: 17px 0 13px;
}
.auth-form p {
  font-size: 12px;
  line-height: 1.8;
  color: #8b977e;
}
.auth-form form {
  display: grid;
  gap: 20px;
  margin: 28px 0 20px;
}
.auth-form label {
  font-size: 11px;
  color: #7e8b71;
}
.auth-form input {
  padding: 12px;
  background: #fffef9;
  font-size: 12px;
}
.auth-form .btn {
  padding: 13px;
}
.auth-note {
  font-size: 10px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.auth-error {
  font-size: 11px;
  color: #9a503c;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #24342b50;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}
.modal {
  width: 530px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #fffef9;
  border: 1px solid #e1e7d7;
  border-radius: 17px;
  box-shadow: 0 24px 90px #16241826;
  padding: 25px;
}
.modal h2 {
  font:
    26px Georgia,
    serif;
  margin: 0 0 8px;
}
.modal p {
  font-size: 12px;
  color: #8b977d;
  line-height: 1.7;
}
.modal form {
  display: grid;
  gap: 16px;
  margin-top: 23px;
}
.modal .modal-close {
  float: right;
  margin: -9px -9px 0 0;
}
.template-picker {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.template-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 19px;
  border: 1px solid #e0e7d6;
  background: #f9fbf3;
  border-radius: 10px;
}
.template-pick:hover {
  border-color: #8ca971;
  background: #f2f6e9;
}
.template-pick strong {
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
}
.template-pick small {
  font-size: 10px;
  color: #96a188;
}
.template-pick .icon {
  width: 25px;
  height: 25px;
  color: #809b64;
}
.version-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  padding: 13px 20px;
  background: #294839;
  color: #fffef5;
  box-shadow: 0 8px 30px #1c392329;
  border-radius: 10px;
  font-size: 12px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100vw - 40px);
  line-height: 1.6;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 100;
  background: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.hidden {
  display: none !important;
}
.spacer {
  height: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #bccca9;
  border-top-color: #345d40;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .studio-grid {
    grid-template-columns: 320px minmax(560px, 1fr) 275px;
  }
  .portrait-box {
    height: 238px;
  }
  .companion {
    min-height: 758px;
  }
  .canvas {
    min-height: 540px;
  }
  .wallet {
    min-height: 368px;
  }
  .pass-art {
    height: 120px;
  }
  .wallet.google .pass-art {
    height: 117px;
  }
  .pass-body {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .wallets {
    gap: 32px;
  }
  .messages {
    min-height: 200px;
  }
}
@media (max-width: 1320px) {
  .studio-grid {
    grid-template-columns: 265px minmax(410px, 1fr) 220px;
    gap: 12px;
  }
  .main {
    padding: 23px 20px;
  }
  .topbar {
    padding: 0 22px;
  }
  .canvas {
    padding: 0 16px 23px;
  }
  .wallets {
    gap: 14px;
  }
  .wallet-top {
    padding: 18px 12px 12px;
  }
  .wallet-brand {
    font-size: 7px;
  }
  .pass-body {
    padding: 14px;
  }
  .pass-subtitle {
    font-size: 12px;
  }
  .pass-art {
    margin: 0 12px;
  }
  .inspector-content {
    padding: 15px 13px;
  }
  .canvas-head {
    padding: 15px 14px;
  }
  .canvas-tools .badge {
    display: none;
  }
  .portrait-box {
    height: 195px;
  }
  .companion {
    min-height: 700px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .summary-item {
    padding: 13px 10px;
  }
}
@media (max-width: 1130px) {
  .studio-grid {
    grid-template-columns: 270px minmax(390px, 1fr);
  }
  .inspector {
    grid-column: 2;
  }
  .inspector-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .inspector-content > .divider {
    display: none;
  }
  .inspector-foot {
    font-size: 9px;
  }
  .work-area {
    grid-column: 2;
    grid-row: 1;
  }
  .companion {
    grid-row: 1 / 3;
    position: sticky;
    top: 20px;
    min-height: 750px;
  }
  .topbar-note {
    display: none;
  }
  .canvas {
    min-height: 490px;
  }
  .topbar {
    height: 69px;
  }
  .page-head p {
    max-width: 370px;
    line-height: 1.6;
  }
  .draft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .shell {
    padding-left: 58px;
  }
  .rail {
    width: 58px;
    padding-top: 20px;
  }
  .brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
  .nav-btn {
    width: 39px;
    height: 39px;
  }
  .nav-btn.active:before {
    left: -9px;
  }
  .main {
    padding: 20px 14px;
  }
  .topbar {
    padding: 0 17px;
  }
  .wordmark span {
    font-size: 8px;
    letter-spacing: 1px;
    margin-left: 8px;
    padding-left: 9px;
  }
  .breadcrumbs {
    display: none;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .companion {
    grid-column: 1;
    grid-row: 2;
    position: static;
    min-height: 0;
    display: grid;
    grid-template-columns: 220px 1fr;
  }
  .companion-head {
    grid-column: 1;
  }
  .portrait-box {
    grid-column: 1;
    grid-row: 2 / 5;
    height: 220px;
    margin-bottom: 10px;
  }
  .portrait-status {
    grid-column: 1;
    grid-row: 5;
    padding-top: 0;
  }
  .conversation-head {
    grid-column: 2;
    grid-row: 1;
    border-top: 0;
  }
  .messages {
    grid-column: 2;
    grid-row: 2 / 4;
    min-height: 110px;
    max-height: 200px;
    padding-top: 10px;
  }
  .suggestions {
    grid-column: 2;
    grid-row: 4;
  }
  .composer {
    grid-column: 2;
    grid-row: 5;
  }
  .companion-footer {
    grid-column: 1 / -1;
  }
  .work-area {
    grid-column: 1;
    grid-row: 1;
  }
  .inspector {
    grid-column: 1;
    grid-row: 3;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head p {
    font-size: 10px;
  }
  .page-actions {
    gap: 6px;
  }
  .page-actions .btn {
    font-size: 10px;
    padding: 8px 9px;
  }
  .page-actions .save-text {
    display: none;
  }
  .canvas {
    min-height: 470px;
    padding-bottom: 20px;
  }
  .wallets {
    max-width: 540px;
    gap: 25px;
  }
  .canvas-footer {
    padding: 12px 15px;
  }
  .design-summary {
    margin-top: 12px;
  }
  .creative-note {
    margin: 12px 3px;
  }
  .console-grid {
    grid-template-columns: 1fr;
  }
  .draft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .auth-form-wrap {
    min-height: 100vh;
    padding: 30px;
  }
  .workspace-footer {
    font-size: 8px;
    line-height: 1.6;
  }
  .budget-grid {
    gap: 12px;
  }
  .wide-panel {
    padding: 19px;
  }
  .wallet-brand {
    font-size: 8px;
  }
}
@media (max-width: 530px) {
  .shell {
    padding: 0 0 63px;
  }
  .rail {
    inset: auto 0 0;
    width: 100%;
    height: 60px;
    flex-direction: row;
    justify-content: space-around;
    padding: 4px 10px;
    border-top: 1px solid #dce3d2;
    border-right: 0;
    gap: 0;
    background: #f5f7eeef;
    backdrop-filter: blur(10px);
  }
  .rail > .brand-symbol,
  .rail-divider,
  .rail-bottom .user-avatar {
    display: none;
  }
  .rail-bottom {
    margin: 0;
    display: contents;
  }
  .nav-btn {
    width: 42px;
    height: 43px;
  }
  .nav-btn.active:before {
    height: 3px;
    width: 16px;
    left: 13px;
    top: -5px;
    border-radius: 0 0 3px 3px;
  }
  .topbar {
    height: 61px;
    padding: 0 17px;
  }
  .main {
    padding: 19px 13px;
  }
  .topbar-right {
    gap: 0;
  }
  .topbar .badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .wordmark {
    font-size: 18px;
  }
  .page-head {
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 17px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .page-actions .save-text {
    display: inline;
  }
  .page-actions .btn {
    font-size: 11px;
    min-height: 36px;
    padding: 8px 12px;
  }
  .page-actions .saved-note {
    margin-right: auto;
  }
  .canvas-head {
    padding: 14px;
  }
  .canvas {
    padding: 0 12px 20px;
    min-height: 420px;
  }
  .wallets {
    gap: 12px;
  }
  .wallet {
    min-height: 309px;
    border-radius: 11px;
  }
  .wallet.google {
    border-radius: 18px;
  }
  .wallet-label {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .wallet-top {
    padding: 14px 10px 11px;
    gap: 5px;
    min-height: 50px;
  }
  .brand-medallion {
    height: 24px;
    width: 24px;
    font-size: 15px;
  }
  .wallet-brand {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .wallet-subbrand {
    font-size: 5px;
    letter-spacing: 0.5px;
  }
  .pass-art {
    height: 92px;
    margin: 0 9px;
  }
  .wallet.google .pass-art {
    height: 90px;
  }
  .art-word {
    font-size: 25px;
  }
  .art-sun {
    width: 21px;
    height: 21px;
    right: 11px;
  }
  .pass-art .art-arch {
    width: 90px;
    height: 120px;
  }
  .pass-art .art-arch:before {
    width: 113px;
    left: -13px;
  }
  .pass-art .art-arch:after {
    width: 138px;
    left: -25px;
  }
  .pass-body {
    padding: 12px 11px 10px;
  }
  .pass-subtitle {
    font-size: 11px;
    margin-bottom: 11px;
  }
  .pass-name {
    font-size: 11px;
  }
  .pass-field-label {
    font-size: 5px;
    letter-spacing: 0.7px;
  }
  .pass-fields .field-value {
    font-size: 6px;
  }
  .pass-fields {
    gap: 4px;
    margin-top: 10px;
  }
  .barcode-block {
    margin: 0 12px 11px;
    padding-top: 8px;
    gap: 5px;
  }
  .barcode {
    width: 79px;
    height: 26px;
    gap: 1px;
  }
  .barcode-label {
    font-size: 4px;
    letter-spacing: 0.4px;
  }
  .wallet.minimal .art-word {
    font-size: 25px;
  }
  .wallet.bold .art-word {
    font-size: 32px;
  }
  .canvas-note {
    font-size: 8px;
    margin-top: 18px;
  }
  .canvas-footer .small {
    font-size: 8px;
  }
  .canvas-footer .btn {
    font-size: 9px;
  }
  .canvas-footer {
    gap: 6px;
  }
  .summary-item {
    padding: 12px 10px;
  }
  .summary-item .eyebrow {
    font-size: 7px;
  }
  .summary-item p {
    font-size: 9px;
  }
  .summary-item small {
    font-size: 7px;
  }
  .companion {
    display: flex;
  }
  .companion-head {
    padding: 15px 17px 10px;
  }
  .portrait-box {
    height: 220px;
    margin: 0 10px;
    background-size: cover;
  }
  .portrait-art {
    background-size: 235%;
    background-position: 45% 8%;
  }
  .portrait-art.pose-found {
    background-size: 420%;
    background-position: 94% 91%;
  }
  .portrait-art.pose-listening {
    background-size: 420%;
    background-position: 94% 0%;
  }
  .messages {
    min-height: 130px;
    max-height: 300px;
    font-size: 12px;
    padding: 16px 17px;
  }
  .companion-footer {
    padding-bottom: 12px;
  }
  .composer {
    margin: 0 12px 10px;
  }
  .composer textarea {
    font-size: 12px;
  }
  .conversation-head {
    border-top: 1px solid var(--line);
  }
  .suggestions {
    padding-top: 3px;
  }
  .inspector-content {
    grid-template-columns: 1fr 1fr;
    padding: 17px;
    gap: 19px 16px;
  }
  .inspector-content label {
    font-size: 10px;
  }
  .inspector-content input,
  .inspector-content select {
    font-size: 12px;
  }
  .draft-grid {
    grid-template-columns: 1fr;
  }
  .wide-panel {
    padding: 17px;
  }
  .notebook-table .content-cell {
    min-width: 190px;
  }
  .modal {
    padding: 22px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .workspace-footer {
    padding-top: 16px;
    display: block;
  }
  .workspace-footer span {
    display: block;
    margin-bottom: 4px;
  }
  .page-container > .page-head .btn {
    font-size: 11px;
  }
  .receipt {
    grid-template-columns: 20px 1fr;
  }
  .receipt time {
    grid-column: 2;
  }
  .inspector-content:has(.upload-zone) {
    grid-template-columns: 1fr;
  }
  .budget-grid {
    grid-template-columns: 1fr 1fr;
  }
  .console-nav .btn {
    padding: 8px 11px;
    font-size: 10px;
  }
  .auth-form h2 {
    font-size: 33px;
  }
  #toast {
    bottom: 78px;
  }
  .portrait-status {
    padding: 8px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep informational labels readable against the warm paper surfaces. */
.field-help,
.canvas-note,
.companion-footer,
.inspector-foot,
.workspace-footer {
  color: #74816a;
}
.inspector-content label,
.section-label,
.check-row,
.portrait-status {
  color: #6d7c60;
}
.tiny.muted,
.canvas-head .sub,
.composer-hint,
.hex {
  color: #79876f;
}
.ai-label {
  color: #74816a;
}

.connection-notice {
  margin: 12px;
  padding: 12px;
  border: 1px solid #dfd6bb;
  border-radius: 9px;
  background: #faf5e7;
  color: #786238;
  font-size: 11px;
  line-height: 1.65;
}
.connection-notice p {
  margin: 0 0 9px;
}
.connection-notice p:last-child {
  margin-bottom: 0;
  margin-top: 10px;
}
/* Conversation feedback changes no artwork and remains quiet under reduced motion. */
.chat-live-status {
  min-height: 0;
  margin: 0 17px;
  color: #677d57;
  font-size: 10px;
  line-height: 1.6;
}
.chat-live-status:not(:empty) {
  padding: 10px 0 3px;
}
.thinking-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #708461;
  font-size: 12px;
  padding: 3px 0 8px;
}
.thinking-dots {
  display: inline-flex;
  gap: 3px;
}
.thinking-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #819b6c;
  animation: thought-pulse 1.4s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) {
  animation-delay: 0.18s;
}
.thinking-dots i:nth-child(3) {
  animation-delay: 0.36s;
}
.portrait-caption.thinking .dot {
  animation: thought-pulse 1.4s ease-in-out infinite;
}
@keyframes thought-pulse {
  0%,
  70%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.message {
  min-width: 0;
}
.markdown-body {
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
}
.markdown-body p {
  margin: 0 0 10px;
}
.markdown-body p:last-child {
  margin-bottom: 0;
}
.markdown-body h3,
.markdown-body h4,
.markdown-body h5 {
  margin: 14px 0 6px;
  color: #3d5945;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}
.markdown-body h3:first-child,
.markdown-body h4:first-child {
  margin-top: 0;
}
.markdown-body ul,
.markdown-body ol {
  margin: 7px 0 11px;
  padding-left: 20px;
}
.markdown-body li {
  margin-bottom: 4px;
}
.markdown-body li p {
  margin-bottom: 3px;
}
.markdown-body code {
  background: #eef3e5;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}
.markdown-body pre {
  overflow: auto;
  max-width: 100%;
  background: #eef3e5;
  border-radius: 7px;
  padding: 9px;
  line-height: 1.6;
}
.markdown-body pre code {
  padding: 0;
}
.markdown-body blockquote {
  margin: 9px 0;
  border-left: 2px solid #bed0aa;
  padding-left: 10px;
  color: #718163;
}
.markdown-table {
  overflow-x: auto;
  max-width: 100%;
  margin: 10px 0;
  border: 1px solid #dce5d3;
  border-radius: 7px;
  background: #fcfdf7;
  scrollbar-width: thin;
}
.markdown-table:focus-visible {
  outline: 2px solid #819b6c;
  outline-offset: 2px;
}
.markdown-table table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  max-width: 900px;
  font-size: 10px;
  line-height: 1.65;
}
.markdown-table th,
.markdown-table td {
  min-width: 90px;
  max-width: 190px;
  padding: 8px 10px;
  text-align: left;
  border-right: 1px solid #e0e8d8;
  border-bottom: 1px solid #e0e8d8;
  vertical-align: top;
  white-space: normal;
}
.markdown-table th {
  color: #526d43;
  background: #edf3e5;
  font-weight: 650;
}
.markdown-table tr:last-child td {
  border-bottom: 0;
}
.reply-error {
  border-left: 2px solid #b37559;
  background: #fbf1e7;
  border-radius: 4px;
  margin: 11px 0 0;
  padding: 8px 10px;
  color: #925c42;
  line-height: 1.6;
  white-space: normal;
}
.proposal p {
  margin: 6px 0 9px;
  color: #758869;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .thinking-dots i,
  .portrait-caption.thinking .dot {
    animation: none;
    opacity: 0.8;
    transform: none;
  }
}
.companion,
.messages,
.work-area,
.inspector {
  min-width: 0;
}
@media (max-width: 530px) {
  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    max-width: 52%;
  }
}

/* Reviewed knowledge stays readable with long source paths on narrow screens. */
.knowledge-entries {
  grid-column: 1 / -1;
  min-width: 0;
}
.knowledge-entry {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.knowledge-entry summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.knowledge-entry summary strong {
  flex: 1 1 220px;
}
.knowledge-entry summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.knowledge-sources {
  display: grid;
  gap: 14px;
  background: var(--soft);
  border-radius: 10px;
  padding: 16px;
}
.knowledge-path,
.knowledge-sources .field-help {
  white-space: normal;
  overflow-wrap: anywhere;
}
.knowledge-path {
  display: block;
  font-size: 11px;
  line-height: 1.6;
}
.knowledge-panel .row,
.knowledge-panel .prompt-version {
  flex-wrap: wrap;
}

/* Guided membership workspace: conversation and previews are the primary surfaces. */
.guided-studio {
  grid-template-columns: minmax(350px, 0.85fr) minmax(500px, 1.3fr);
  gap: 24px;
}
.guided-studio .companion {
  display: flex;
  grid-column: auto;
  grid-row: auto;
  position: sticky;
  top: 18px;
  min-height: 690px;
  max-height: calc(100vh - 42px);
}
.guided-studio .work-area {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
}
.guided-studio .companion-head {
  padding: 20px 22px 8px;
}
.guided-studio .companion-title h2 {
  font-size: 23px;
}
.guided-studio .ai-label {
  font-size: 12px;
}
.emily-presence {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 22px 12px;
}
.guided-studio .portrait-box {
  flex: 0 0 88px;
  height: 78px;
  margin: 0;
  border-radius: 12px;
}
.guided-studio .portrait-art {
  background-size: 270%;
  background-position: 38% 20%;
}
.guided-studio .portrait-art.custom {
  background-size: cover;
  background-position: center;
}
.guided-studio .portrait-caption {
  font-size: 8px;
  padding: 4px;
}
.guided-studio .portrait-status {
  padding: 0;
  font-size: 11px;
  line-height: 1.5;
  max-width: 230px;
}
.guided-studio .conversation-head {
  font-size: 11px;
}
.guided-studio .messages {
  flex: 1;
  min-height: 220px;
  max-height: 520px;
  padding: 16px 22px;
}
.guided-studio .message {
  font-size: 13px;
  line-height: 1.7;
}
.guided-studio .composer {
  margin: 0 18px 12px;
  padding: 12px;
}
.guided-studio .composer textarea {
  font-size: 13px;
  min-height: 65px;
}
.guided-studio .suggestions {
  padding: 0 22px 12px;
}
.guided-studio .suggestion {
  font-size: 11px;
}
.branding-shortcut {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 18px 12px;
  flex-wrap: wrap;
}
.branding-shortcut > span {
  font-size: 10px;
  color: var(--muted);
}
.workflow-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 16px;
  font-size: 10px;
  color: #68785b;
  flex-wrap: wrap;
}
.guided-studio .canvas {
  min-height: 0;
  padding: 0 26px 28px;
}
.guided-studio .wallets {
  max-width: 680px;
  gap: 24px;
}
.guided-studio .wallet {
  min-height: 380px;
}
.guided-studio .wallet-brand {
  font-size: 11px;
}
.guided-studio .pass-name {
  font-size: 17px;
}
.guided-studio .pass-field-label {
  font-size: 8px;
}
.guided-studio .field-value {
  font-size: 10px;
}
.guided-studio .pass-fields {
  flex-wrap: wrap;
}
.guided-studio .canvas-note {
  justify-content: center;
  font-size: 10px;
}
.design-details > summary {
  padding: 18px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.design-details > summary span {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: 14px;
}
.design-details .inspector {
  position: static;
  width: auto;
  display: block;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  border-top: 1px solid var(--line);
}
.design-details .inspector-content {
  max-height: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  padding: 22px;
}
.design-details .inspector-tabs {
  padding: 0 20px;
}
.design-details .inspector-tabs button {
  font-size: 12px;
  padding: 14px 10px;
}
.design-details .inspector-content h3,
.design-details .inspector-content > p,
.design-details .inspector-content .divider {
  grid-column: 1/-1;
  margin: 0;
}
.recipient-definition {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 4px;
}
.recipient-definition code,
.recipient-definition small {
  font-size: 11px;
  color: var(--muted);
}
.recipient-definition strong {
  font-size: 12px;
}
.topbar-note {
  max-width: 340px;
}
@media (max-width: 1100px) {
  .guided-studio {
    grid-template-columns: minmax(300px, 0.9fr) minmax(400px, 1.2fr);
    gap: 16px;
  }
  .guided-studio .canvas {
    padding: 0 14px 24px;
  }
  .guided-studio .wallets {
    gap: 14px;
  }
  .guided-studio .wallet-brand {
    font-size: 9px;
  }
  .guided-studio .wallet {
    min-height: 350px;
  }
}
@media (max-width: 850px) {
  .guided-studio {
    grid-template-columns: minmax(0, 1fr);
  }
  .guided-studio .companion {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
    min-height: 620px;
  }
  .guided-studio .work-area {
    grid-column: 1;
    grid-row: auto;
  }
  .guided-studio .messages {
    min-height: 240px;
    max-height: 420px;
  }
  .guided-studio .wallets {
    max-width: 640px;
  }
  .topbar-note {
    display: none;
  }
}
@media (max-width: 530px) {
  .guided-studio .canvas {
    padding: 0 10px 20px;
  }
  .guided-studio .wallets {
    grid-template-columns: minmax(0, 1fr);
    max-width: 290px;
    gap: 26px;
  }
  .guided-studio .wallet {
    min-height: 390px;
  }
  .guided-studio .wallet-brand {
    font-size: 12px;
  }
  .guided-studio .wallet-top {
    padding: 20px;
  }
  .guided-studio .pass-art {
    height: 115px;
  }
  .guided-studio .wallet-subbrand {
    font-size: 7px;
  }
  .guided-studio .pass-body {
    padding: 18px;
  }
  .design-details .inspector-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .design-details > summary span {
    display: block;
    margin: 6px 0 0 16px;
  }
  .workflow-note {
    font-size: 9px;
  }
  .guided-studio .companion {
    min-height: 630px;
  }
  .workspace-footer {
    gap: 12px;
    flex-wrap: wrap;
  }
}
.checked-outcome {
  font-size: 10px;
  color: #68785b;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 12px;
}

/* Mapped native pair. Geometry is illustrative; values come from payload conversion. */
.native-pass {
  background: var(--native-bg);
  color: var(--native-text);
  border-radius: 14px;
  padding: 20px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 12px 22px #192c2016;
  overflow-wrap: anywhere;
  min-width: 0;
}
.native-pass small {
  color: var(--native-label);
  font-size: 10px;
  display: block;
  margin-bottom: 5px;
}
.native-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}
.native-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: none;
}
.native-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.native-top .native-brand {
  flex: 1;
  flex-wrap: wrap;
}
.native-heading {
  font-size: 12px;
  text-align: right;
  max-width: 44%;
}
.native-holder {
  margin: 32px 0 24px;
}
.native-holder .native-field span {
  font-size: 28px;
  font-weight: 500;
}
.native-secondary {
  min-height: 55px;
}
.native-auxiliary {
  padding-top: 12px;
}
.native-field {
  margin-bottom: 12px;
  min-width: 0;
}
.native-field span {
  display: block;
  font-size: 15px;
}
.native-google {
  border-radius: 20px;
  min-height: 220px;
}
.native-google .native-brand img,
.native-letter {
  border-radius: 50%;
}
.native-letter {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  flex: none;
}
.native-google-title {
  margin-top: 32px;
}
.native-google-title p {
  margin: 0 0 8px;
  font-size: 12px;
}
.native-google-title h3 {
  margin: 0;
  font:
    500 27px/1.25 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
.native-pass-details {
  margin-top: 14px;
  border: 1px solid var(--line, #ddd);
  border-radius: 10px;
  padding: 12px;
  overflow-wrap: anywhere;
  font:
    12px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
.native-pass-details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
}
.native-pass-details small {
  display: block;
  opacity: 0.7;
}
.native-pass-details .native-field span {
  font-size: 13px;
}
.detail-item code {
  overflow-wrap: anywhere;
}

.logo-picker {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.logo-choice {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.logo-choice img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f5f1e8;
  border-radius: 8px;
}
.logo-choice strong,
#selected-logo-note {
  overflow-wrap: anywhere;
}
.logo-choice > div {
  min-width: 0;
}

/* Owner-only, locally saved conversations; existing paired design layout is retained. */
.history-status {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.history-status strong {
  color: var(--ink);
}
.text-btn {
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  text-decoration: underline;
}
.thread-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.thread-open {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  overflow-wrap: anywhere;
}
.general-conversation {
  max-width: 760px;
  margin: auto;
}
.branding-shortcut[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .thread-row {
    flex-wrap: wrap;
  }
  .thread-open {
    flex-basis: 100%;
  }
}
