:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --light: #fffcf5;
  --ink: #1b1916;
  --muted: #625a50;
  --line: #d9d2c5;
  --accent: #ffd21f;
  --night: #211e1b;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid #966000; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.brand { font-weight: 900; letter-spacing: -.07em; font-size: 1.45rem; }
.brand span { font-size: .9rem; letter-spacing: normal; font-weight: 650; }
.salon-link { font-size: .9rem; font-weight: 650; }
.hero {
  border-radius: 22px;
  min-height: 252px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 29px clamp(22px, 4.2vw, 55px);
  color: var(--light);
  background: linear-gradient(90deg, #1e1a17 21%, #1e1a17ef 43%, #1e1a1752 100%), #28231e url('../cutnshot/photos/hero.jpg') center 56% / cover;
}
.eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.25rem); line-height: .99; letter-spacing: -.065em; font-weight: 850; }
.hero > p:last-child { max-width: 46ch; font-size: 1rem; line-height: 1.5; color: #f3ece1; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); margin: 16px 0 36px; gap: 16px; align-items: stretch; }
.chat, .request { border-radius: 20px; min-width: 0; }
.chat { display: flex; flex-direction: column; background: var(--light); border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head h2 { font-size: 1.04rem; }
.chat-head p, .hint, .request-note, .details dt { font-size: .82rem; line-height: 1.45; }
.chat-head p, .hint { color: var(--muted); }
.avatar { flex: none; display: grid; place-items: center; width: 41px; height: 41px; background: var(--ink); color: var(--accent); border-radius: 14px; font-size: .78rem; font-weight: 850; }
.reset { margin-left: auto; background: transparent; border: 0; color: var(--muted); min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
.thread { height: clamp(188px, 29vh, 340px); overflow-y: auto; padding: 16px 18px; background: #ebe6db; scrollbar-color: #a49885 transparent; }
.thread:focus-visible { outline-offset: -4px; }
.message { position: relative; width: fit-content; max-width: min(86%, 51ch); margin-bottom: 9px; padding: 9px 13px; border-radius: 13px 13px 13px 3px; background: var(--light); color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; line-height: 1.42; font-size: .95rem; }
.message.guest { margin-left: auto; background: var(--ink); color: var(--light); border-radius: 13px 13px 3px 13px; }
.chat-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 18px 14px; }
.suggestions { display: flex; gap: 8px; flex-wrap: wrap; }
.suggestions:empty { display: none; }
.suggestion { min-height: 44px; border-radius: 999px; border: 1px solid #bdb09d; background: var(--light); padding: 6px 14px; color: var(--ink); font-size: .85rem; font-weight: 650; }
.suggestion:hover { background: #f5ebc3; }
.composer { position: relative; display: flex; gap: 8px; }
.composer input { min-width: 0; flex: 1; min-height: 46px; border: 1px solid #a99a86; border-radius: 11px; padding: 0 11px; background: var(--light); color: var(--ink); }
.composer input::placeholder { color: var(--muted); opacity: 1; }
.send { min-height: 46px; flex: none; border: 0; border-radius: 11px; background: var(--accent); color: #1a1506; padding: 0 13px; font-size: .87rem; font-weight: 750; }
.send:hover { background: #f3bb00; }
.card-link { display: none; }
.request { display: flex; flex-direction: column; gap: 13px; background: var(--night); color: var(--light); padding: 21px 22px; }
.request .eyebrow { color: #d7cdbf; margin-bottom: 5px; }
.request h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); letter-spacing: -.045em; }
.status { align-self: flex-start; border: 1px solid #877559; color: #f3e6d0; border-radius: 999px; padding: 5px 11px; font-size: .8rem; }
.status[data-ready='true'] { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 750; }
.details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid #50463b; }
.details dt { color: #d7cdbf; }
.details dd { text-align: right; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; min-width: 0; }
.summary { border-radius: 12px; background: #322c26; padding: 12px 14px; }
.summary h3 { font-size: .85rem; margin-bottom: 4px; }
.summary p { color: #eee5d7; font-size: .88rem; line-height: 1.43; overflow-wrap: anywhere; }
.request-note { color: #d7cdbf; margin-top: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .topbar { min-height: 55px; }
  .hero { min-height: 224px; background-position: 58% center; }
  .workspace { grid-template-columns: 1fr; gap: 13px; }
  .thread { height: 225px; }
  .card-link:not([hidden]) { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; justify-self: start; font-weight: 700; text-underline-offset: 3px; }
}

@media (max-width: 380px) {
  .chat-head, .thread, .chat-foot { padding-inline: 12px; }
  .chat-head { gap: 8px; }
  .chat-head p { font-size: .74rem; }
  .hero h1 { font-size: clamp(1.73rem, 8vw, 2.2rem); }
  .reset { padding: 0; }
  .send { padding-inline: 9px; }
  .send span { display: none; }
}
