/* Design Factory / Arbor study 02. Shared visual language, unchanged chat flow. */
:root {
  --ink: #22251f;
  --muted: #64675d;
  --line: #d4d6cb;
  --paper: #fbfbf7;
  --soft: #f0f1e9;
  --sand: #e6e9dc;
  --bar-height: 88px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
body { background: var(--paper); }
button, input, select, textarea { border-radius: 3px; }
button, a, input, select, textarea { outline-offset: 4px; }
input::placeholder, textarea::placeholder { color: #73766d; }
.preview-bar { background: #e9ebe2; border-bottom: 1px solid #cbd0c0; }
.preview-title strong { font-size: 13px; }
.preview-title small { color: #51564b; }
.variant-buttons { background: transparent; border: 0; border-radius: 0; gap: 8px; }
.variant-buttons button { border-radius: 30px; padding: 0 18px; font-size: 12px; min-height: 44px; }
.variant-buttons button[aria-pressed=true] { box-shadow: none; background: var(--ink); }
.staff-link { border-bottom: 1px solid var(--ink); }

/* A calm catalogue, defined by type, rules and real product photography. */
.shop-header { padding: 32px 7%; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 58px; letter-spacing: -3px; }
.shop-header > span { font-size: 12px; }
.shop-link { font-size: 12px; }
.shop-intro { padding: 54px 7% 44px; max-width: 1080px; }
.small-label { display: none; }
.shop-intro h1 { font-size: clamp(38px, 4.5vw, 68px); font-weight: 600; letter-spacing: -.045em; line-height: 1.4; margin: 0 0 24px; }
.shop-intro h1 em { font-style: normal; font-weight: 400; }
.shop-intro p { font-size: 14px; line-height: 2; }
.shop-intro .text-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-width: 235px; margin-top: 10px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 15px 0; font-size: 14px; }
.products { padding: 0 7% 48px; gap: 0; }
.shop-product { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; }
.shop-product + .shop-product { border-left: 1px solid var(--line); }
.product-photo { background: #eaece2; padding: 16px; border-radius: 2px; }
.product-photo img { mix-blend-mode: multiply; }
.product-line { padding-top: 24px; align-items: flex-end; }
.product-kind { font-size: 12px; }
.product-line h2 { font-family: Georgia, serif; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; margin: 10px 0 0; letter-spacing: -.04em; }
.product-line > span { font-size: 23px; }
.shop-product > p { margin-top: 18px; font-size: 11px; }
.shop-footer { padding: 24px 7%; font-size: 11px; border-top: 0; }

/* Consultation: a personal note rather than another dashboard card. */
.panel { background: var(--paper); }
.panel-header { padding: 24px 28px; min-height: 92px; border-color: var(--line); }
.panel-brand { font-size: 35px; letter-spacing: -2px; }
.panel-header h2 { font-size: 13px; }
.icon-button { border: 1px solid var(--line); background: transparent; font-size: 24px; }
.scroll-body { padding: 34px 30px; }
.availability { font-size: 12px; margin-bottom: 28px; }
.availability:before { width: 7px; height: 7px; background: #53604a; }
.scroll-body h3 { font-size: 30px; letter-spacing: -.04em; line-height: 1.5; font-weight: 600; }
.lead { font-size: 14px; margin-bottom: 30px; }
#hearing-form > label, #hearing-form legend { font-size: 13px; font-weight: 500; }
#hearing-form > input { border: 0; border-bottom: 1px solid #969d8d; border-radius: 0; padding: 12px 0; background: transparent; font-size: 16px; margin-bottom: 28px; }
#hearing-form textarea { background: #f0f1e9; border: 1px solid #c5cbbb; padding: 15px; min-height: 100px; font-size: 15px; }
.required, .optional { font-size: 11px; background: transparent; }
.purpose-options { gap: 0; border-top: 1px solid #b7bdad; border-bottom: 1px solid #b7bdad; }
.purpose-options span { min-height: 52px; border: 0; border-radius: 0; font-size: 14px; }
.purpose-options label + label { border-left: 1px solid #b7bdad; }
.purpose-options input:checked + span { border: 0; background: var(--ink); color: white; }
.primary { min-height: 52px; border-radius: 28px; font-size: 14px; background: var(--ink); }
.secondary { border-radius: 28px; font-size: 14px; background: transparent; }
.form-note { font-size: 11px; }
.center-state { padding: 32px 0; }
.center-state h3 { font-size: 24px; font-weight: 500; line-height: 1.7; }
.center-state > p { font-size: 14px; }
.spinner { position: relative; width: 82px; height: 82px; border: 1px solid #cbd0c2; border-top: 2px solid var(--ink); margin: 0 auto 18px; }
.spinner:after { content: ''; position: absolute; inset: 12px; border: 1px solid #dce0d4; border-radius: 50%; }
.waiting-summary { background: #ecefe3; border-radius: 2px; border-top: 1px solid #b9c1ae; font-size: 13px; padding: 22px; }
.assignment { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 26px; font-size: 12px; }
.message-label { font-size: 11px; margin-bottom: 8px; }
.bubble { font-size: 15px; padding: 15px 18px; line-height: 1.85; background: #fff; border-radius: 3px 14px 14px; }
.customer .bubble { background: #e9eddf; border-color: #e9eddf; border-radius: 14px 3px 14px 14px; }
.product-card { width: 260px; border: 1px solid #cdd3c1; border-radius: 3px; background: #f0f2e9; }
.product-card img { padding: 15px; background: #e9ede0; mix-blend-mode: multiply; }
.card-copy { padding: 18px; border-top: 1px solid #cdd3c1; }
.card-copy strong { font-size: 15px; font-weight: 500; }
.card-copy span { font-size: 12px; border-top: 1px dashed #bfc6b2; margin-top: 16px; padding-top: 12px; }
.card-hint { font-size: 11px; }
.composer { background: var(--paper); padding-top: 20px; }
.composer textarea { background: #fff; border-color: #bbc2ae; font-size: 15px; border-radius: 4px; }
.send-button { background: var(--ink); }
.end-button { font-size: 12px; }
.launcher { border-radius: 40px; padding: 16px 24px; box-shadow: 0 8px 24px #22251f1a; font-size: 14px; }
.variant-a .panel { border-radius: 6px; box-shadow: 0 12px 50px #22251f20; }
.variant-a .scroll-body h3 { font-size: 27px; }
.variant-c .panel { border-radius: 6px; }
.variant-c .context { background: #e8ecde; padding: 40px 30px; }
.context-mark { font-size: 54px; margin-bottom: 42px; letter-spacing: -3px; }
.context h3 { font-size: 33px; font-weight: 500; line-height: 1.65; letter-spacing: -.04em; }
.context p { font-size: 14px; }
.context-rule { background: #a9b29b; }
.suggested-products a { border-top: 1px solid #b9c2ad; padding: 14px 0; }

/* Staff workspace shares the same catalogue and typographic hierarchy. */
body:has(.workspace) .app-header { height: 104px; background: var(--paper); padding: 0 30px; }
body:has(.workspace) .brand { font-size: 49px; letter-spacing: -3px; }
body:has(.workspace) h1 { font-size: 20px; letter-spacing: -.03em; }
.workspace { height: calc(100dvh - 139px); background: var(--paper); grid-template-columns: 270px minmax(340px, 1fr) 340px; }
.queue-panel { background: #eeefe7; padding: 32px 20px 20px; }
.panel-heading { padding-bottom: 16px; border-bottom: 1px solid #bdc4b1; }
.panel-heading h2 { font-size: 21px; font-weight: 500; letter-spacing: -.04em; }
.count { width: 32px; height: 32px; background: var(--ink); color: white; font-size: 13px; }
.small { font-size: 12px; }
.queue-group-label { font-size: 12px; letter-spacing: .04em; }
.queue-card { border-radius: 0; padding: 20px 12px; border-top: 1px solid #cbd1c1; background: transparent; }
.queue-card.selected { background: var(--paper); border: 1px solid #9ca68e; border-left: 3px solid var(--ink); }
.queue-card-name { font-size: 18px; font-weight: 500; }
.queue-card-time { font-family: ui-monospace, monospace; font-size: 11px; }
.queue-card-purpose, .queue-card-note { font-size: 12px; }
.queue-card-note { max-height: 40px; }
.conversation-panel { background: var(--paper); }
.empty-center { align-items: flex-start; text-align: left; padding: 48px; gap: 24px; }
.empty-symbol { display: none; }
.empty-center h2 { font-size: clamp(28px, 3vw, 45px); font-weight: 500; line-height: 1.55; letter-spacing: -.045em; }
.empty-center p { font-size: 14px; }
.empty-center a { font-size: 13px; padding: 14px 0; width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.conversation-heading { padding: 28px 30px; background: var(--paper); }
.conversation-heading h2 { font-size: 26px; font-weight: 500; }
.accept-panel { background: #e7ecdc; border-bottom-color: #c2cbb4; }
.accept-panel strong { font-size: 14px; }
.accept-panel p { font-size: 12px; }
.quiet { border-radius: 24px; background: transparent; }
.reception { border-radius: 24px; background: var(--ink); color: white; border-color: var(--ink); min-height: 46px; }
.reception:hover:not(:disabled) { background: #353c2e; }
.reception .status-dot { background: #d5e6b8; }
.reception[aria-pressed=false] { background: transparent; color: var(--ink); }
.message-text { font-size: 15px; border-radius: 3px 14px 14px; background: #fff; }
.message.staff .message-text { background: #e8eddd; border-radius: 14px 3px 14px 14px; }
.message-product { border-radius: 3px; border-color: #c6cdbb; background: #f0f2e9; }
.message-product img { padding: 12px; background: #e8eddd; mix-blend-mode: multiply; }
.message-product strong { font-size: 14px; padding: 16px 16px 8px; border-top: 1px solid #c6cdbb; }
.message-product span { font-size: 12px; padding: 0 16px 16px; }
.details-panel { background: #f4f5ee; padding: 32px 24px; }
.details-panel dt { font-size: 12px; }
.details-panel dd { font-size: 15px; margin-bottom: 20px; }
.products-section { border: 0; margin-top: 30px; padding-top: 0; }
.product-list { gap: 0; }
.product-option { padding: 16px 0; background: transparent; border: 0; border-bottom: 1px solid #c5cdb8; border-radius: 0; gap: 16px; }
.product-option img { width: 90px; height: 108px; background: #e9ede0; mix-blend-mode: multiply; }
.product-option span { font-size: 13px; }
.product-option[aria-pressed=true] { background: #e5ebd9; outline: 1px solid #7a896b; outline-offset: 3px; }
.product-confirm { background: #e5ebd9; border-top: 1px solid #a7b697; padding: 18px; }
.product-confirm strong { font-size: 14px; }
.product-confirm button { font-size: 13px; }
.error-banner:not([hidden]) ~ .workspace { height: calc(100dvh - 193px); }

@media(min-width:1600px) { .workspace { grid-template-columns: 290px minmax(400px,1fr) 370px; } }
@media(max-width:1150px) {
  .workspace { grid-template-columns: 220px minmax(300px,1fr) 280px; }
  .details-panel { padding: 26px 18px; }
  .empty-center { padding: 30px; }
  .staff-controls { gap: 8px; }
  body:has(.workspace) .app-header { padding: 0 20px; }
  .product-option img { width: 70px; height: 86px; }
}
@media(max-width:900px) {
  body:has(.workspace) .app-header { height: auto; padding: 18px 20px; }
  .workspace { grid-template-columns: minmax(0,1fr); height: auto; }
  .queue-panel { padding: 24px; }
  .empty-center { align-items: center; text-align: center; }
  .empty-center a { max-width: 360px; }
  .details-panel { padding: 26px; }
  .product-option img { width: 84px; height: 100px; }
}
@media(max-width:767px) {
  .preview-bar { padding: 10px 12px; }
  .variant-buttons { gap: 2px; padding: 0; }
  .variant-buttons button { padding: 0 10px; font-size: 11px; }
  .staff-link { border: 0; }
  .shop-header { padding: 26px 6%; }
  .wordmark { font-size: 48px; }
  .shop-intro { padding: 38px 6% 32px; }
  .shop-intro h1 { font-size: clamp(35px, 8vw, 52px); }
  .shop-intro p { font-size: 14px; }
  .products { padding: 0 6% 30px; }
  .shop-product { padding: 12px; }
  .product-photo { padding: 6px; }
  .product-line h2 { font-size: 22px; overflow-wrap: anywhere; }
  .product-kind { font-size: 11px; }
  .product-line > span { display: none; }
  .panel-header, .variant-c .panel-header { min-height: 74px; padding: 14px 20px; }
  .scroll-body, .variant-a .scroll-body, .variant-c .scroll-body { padding: 26px 22px; }
  .scroll-body h3, .variant-a .scroll-body h3 { font-size: 27px; }
  .center-state h3 { font-size: 23px; }
  .variant-c .panel { border-radius: 0; }
  .variant-a .panel { border-radius: 6px; }
  #hearing-form textarea, .composer textarea { font-size: 16px; }
  .product-card { width: 245px; }
  .composer { padding: 16px 20px max(8px, env(safe-area-inset-bottom)); }
  .center-state { padding: 18px 0; }
}
@media(max-height:650px) { .spinner { width: 54px; height: 54px; margin-bottom: 4px; } .center-state { justify-content: flex-start; } }
@media(prefers-reduced-motion:reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }

/* Supplied Arbor wordmark: preserve the full artwork and aspect ratio. */
.arbor-logo { display: block; width: 150px; height: auto; object-fit: contain; }
.wordmark, .panel-brand, .context-mark, body:has(.workspace) .brand { display: inline-block; line-height: 1; letter-spacing: normal; flex-shrink: 0; }
.panel-brand .arbor-logo { width: 90px; height: auto; }
.context-mark .arbor-logo { width: 160px; height: auto; }
.context-mark { margin-bottom: 24px; }
body:has(.workspace) .brand .arbor-logo { width: 130px; height: auto; }
@media (max-width: 640px) {
  .wordmark .arbor-logo { width: 120px; height: auto; }
}

/* Quiet waiting cards: contrast comes from surface and typography. */
.queue-card[data-status="waiting"] {
  background: #fff;
  border: 1px solid #dedfd8;
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 20px 18px;
  box-shadow: none;
}
.queue-card[data-status="waiting"]:hover {
  background: #fafbf8;
  border-color: #a5aa9d;
}
.queue-card[data-status="waiting"].selected {
  background: #f7f8f3;
  border: 1px solid #545e4c;
  box-shadow: none;
}
.queue-card[data-status="waiting"] .queue-card-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
}
.queue-card[data-status="waiting"] .queue-card-time { color: #797d73; }
.queue-card[data-status="waiting"] .queue-card-purpose {
  margin-top: 12px;
  color: #4c5146;
}
.queue-card[data-status="waiting"] .queue-card-note {
  margin-top: 5px;
  color: #777c71;
  line-height: 1.7;
}
.queue-waiting-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 0;
  margin-bottom: 14px;
  border-radius: 0;
  background: transparent;
  color: #626c59;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.5;
}
.queue-waiting-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c8d6b;
}
#staff-login { width:min(420px,calc(100vw - 40px)); padding:32px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--paper); }
#staff-login::backdrop { background:rgb(20 24 18 / 40%); }
#staff-login h2 { font-size:24px; margin-bottom:12px; }
#staff-login p { color:var(--muted); font-size:13px; }
#staff-login label { display:block; margin:18px 0 7px; font-size:12px; }
#staff-login input { width:100%; padding:12px; border:1px solid var(--line); background:#fff; font:inherit; }
#staff-login #login-error { color:#963d2f; }
#staff-login button { width:100%; margin-top:22px; }
#base-connect { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:14px 0; }
#base-connect button { min-height:36px; padding:7px 12px; }
.production .preview-bar { display:none; }
.production .app-header { top:0; }
body.embedded { min-width:0; width:100%; height:100%; overflow:hidden; background:transparent; }
body.embedded #shop, body.embedded .preview-bar, body.embedded .staff-link { display:none!important; }
body.embedded .customer-chrome { position:fixed; inset:0; pointer-events:none; background:transparent; }
body.embedded .panel, body.embedded .launcher, body.embedded .backdrop { pointer-events:auto; }
body.embedded .panel { position:fixed; inset:auto 12px 12px auto; width:min(420px,calc(100vw - 24px)); height:min(680px,calc(100dvh - 24px)); border-radius:10px; }
body.embedded .variant-b .panel { top:auto; bottom:12px; right:12px; transform:none; }
body.embedded .launcher { position:fixed; right:16px; bottom:14px; }
body.embedded .backdrop { position:fixed; inset:0; }
body.embedded .context { display:none; }
@media(max-width:600px) {
  body.embedded .panel { inset:0; width:100vw; height:100dvh; border:0; border-radius:0; }
  body.embedded .launcher { right:14px; bottom:12px; }
}

#name-dialog { width: min(440px, calc(100vw - 40px)); padding: 32px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }
#name-dialog::backdrop { background: rgb(20 24 18 / 30%); }
#name-dialog h2 { font-size: 24px; margin-bottom: 14px; }
#name-dialog p { font-size: 13px; line-height: 1.8; color: var(--muted); }
#name-dialog label { display: block; font-size: 12px; margin: 24px 0 8px; }
#staff-name { width: 100%; padding: 12px; font: inherit; border: 1px solid var(--line); background: white; }
.name-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
#name-dialog #name-error, #slack-status[data-error="true"] { color: #963d2f; }
@media (min-width: 901px) and (max-width: 1250px) { .app-header { flex-wrap: wrap; height: auto; gap: 12px; padding-block: 16px; } }
