:root {
  color-scheme: light;
  --paper: #f1eee8;
  --surface: #fbfaf7;
  --ink: #292725;
  --muted: #716b65;
  --burgundy: #702b35;
  --burgundy-deep: #54202a;
  --gold: #a78349;
  --line: #e2ded7;
  --disabled: #eeece7;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; min-width: 320px; margin: 0; }
html { color-scheme: light; }

body {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--surface); background: var(--burgundy); }
button, a, textarea { font: inherit; }
a { color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.cover-photo {
  width: 100%;
  height: 20svh;
  min-height: 112px;
  max-height: 190px;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: #716355;
}

.counter-photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 54%; }
.photo-shade { position: absolute; inset: 0; background: rgba(36, 27, 21, .12); }

.profile-content {
  width: min(100%, 560px);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  margin: 0 auto;
  padding: 0 20px 10px;
}

.profile-heading {
  position: relative;
  min-height: 46px;
  padding-left: 99px;
  padding-top: 10px;
  margin-bottom: 4px;
  z-index: 1;
  animation: rise-in .45s ease-out both;
}

.brand-avatar {
  position: absolute;
  top: -43px;
  left: 0;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 2px 7px rgba(30, 25, 22, .14);
  color: var(--surface);
  text-decoration: none;
}

.avatar-letter { font-family: var(--font-display); font-size: 47px; font-weight: 600; line-height: 1; }
.profile-copy { min-width: 0; }

.brand-name {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: .96;
}

.brand-tagline { margin: 4px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.brand-avatar:focus-visible, .review-button:focus-visible, .social-link:focus-visible,
.menu-row:focus-visible, .prompt-button:focus-visible, .copy-button:focus-visible,
.review-input:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

.review-button, .social-link, .menu-row {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
  border-radius: 0;
  text-align: left;
  text-decoration: none;
}

.review-button {
  min-height: 56px;
  border: 0;
  border-radius: 7px;
  background: var(--burgundy);
  color: var(--surface);
  transition: background-color .22s ease, transform .22s ease;
  animation: row-arrive .4s .04s ease-out both;
}

.review-button:hover { background: var(--burgundy-deep); transform: translateY(-1px); }
.review-button:active, .social-link:active, .prompt-button:active, .copy-button:active { transform: scale(.985); }
.review-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #dec38a; }
.action-copy, .social-copy, .menu-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.action-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.action-subtitle { color: rgba(251, 250, 247, .85); font-size: 12px; line-height: 1.3; }
.arrow { color: currentColor; transition: transform .22s ease; }
.review-button:hover .arrow { transform: translate(2px, -2px); }

.social-list { display: grid; }

.social-link {
  min-height: 52px;
  grid-template-columns: 28px minmax(0, 1fr) 17px;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background-color .2s ease, transform .2s ease;
}

.social-link:hover { background: rgba(112, 43, 53, .035); }
.social-icon { display: grid; place-items: center; color: var(--burgundy); }
.social-icon svg { width: 18px; height: 18px; }
.social-copy { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
.social-name { color: var(--ink); font-size: 13px; font-weight: 700; }
.social-handle { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.social-arrow { color: var(--gold); transition: transform .2s ease; }
.social-link:hover .social-arrow { transform: translate(2px, -2px); }
.social-link:nth-child(1) { animation: row-arrive .4s .08s ease-out both; }
.social-link:nth-child(2) { animation: row-arrive .4s .13s ease-out both; }
.social-link:nth-child(3) { animation: row-arrive .4s .18s ease-out both; }

.menu-row {
  min-height: 52px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #77716a;
  cursor: not-allowed;
  opacity: .76;
}

.menu-icon { display: grid; place-items: center; color: #8a837b; }
.menu-copy { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
.menu-name { font-size: 13px; font-weight: 600; }
.menu-note, .menu-state { color: #77716a; font-size: 11px; }
.menu-state { font-weight: 600; }

.review-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.review-heading-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-section h2 { margin: 0; color: var(--burgundy); font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1; }

.prompt-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #c9b991;
  border-radius: 6px;
  background: transparent;
  color: var(--burgundy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.prompt-button:hover:not(:disabled) { border-color: var(--burgundy); background: #f8f5ed; }
.prompt-button:disabled { border-color: #ddd8ce; background: #ebe8e1; color: #716b65; cursor: wait; }
.loading-mark { width: 10px; height: 10px; flex: 0 0 auto; border: 1.5px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: gentle-spin .8s linear infinite; }

.review-form { min-width: 0; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 7px; }
.review-input-label { grid-column: 1 / -1; color: var(--ink); font-size: 11px; font-weight: 700; }

.review-input {
  width: 100%;
  min-width: 0;
  height: 64px;
  grid-column: 1 / -1;
  display: block;
  padding: 8px 10px;
  resize: none;
  border: 1px solid #d8d2c8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: 14px/1.4 var(--font-body);
  transition: border-color .2s ease;
  appearance: none;
}

.review-input::placeholder { color: #77716a; opacity: 1; }
.review-input:focus-visible { border-color: var(--burgundy); }
.review-input.is-generated { animation: draft-appear .3s ease-out both; }
.review-helper-actions { min-height: 40px; display: flex; align-items: center; gap: 7px; }

.copy-button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--burgundy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(112, 43, 53, .3);
  text-underline-offset: 3px;
  transition: background-color .2s ease, transform .2s ease;
}

.copy-button:hover:not(:disabled) { background: #f0ede7; }
.copy-button:disabled { color: #77716a; cursor: not-allowed; text-decoration-color: transparent; }
.copy-status { min-width: 0; color: var(--burgundy); font-size: 11px; line-height: 1.3; }
.copy-status.is-shown { animation: draft-appear .25s ease-out both; }
.review-disclosure { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.card-footer { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.3; text-align: center; }

@media (min-width: 700px) {
  .profile-content { gap: 7px; }
  .profile-heading { padding-left: 109px; padding-top: 14px; margin-bottom: 8px; }
  .brand-avatar { width: 96px; height: 96px; top: -48px; }
  .avatar-letter { font-size: 53px; }
  .brand-name { font-size: 35px; }
  .review-button { min-height: 54px; }
  .social-link { min-height: 48px; }
  .review-section { margin-top: 6px; padding-top: 11px; }
  .review-section h2 { font-size: 23px; }
  .review-input { height: 72px; }
}

@media (max-height: 700px) {
  .cover-photo { min-height: 96px; }
  .profile-heading { min-height: 38px; padding-left: 85px; padding-top: 6px; margin-bottom: 1px; }
  .brand-avatar { width: 72px; height: 72px; top: -36px; }
  .avatar-letter { font-size: 40px; }
  .profile-content { gap: 4px; padding-bottom: 6px; }
  .review-button { min-height: 48px; }
  .social-link { min-height: 46px; }
  .menu-row { min-height: 46px; }
  .review-section { gap: 4px 7px; padding-top: 6px; }
  .review-section h2 { font-size: 18px; }
  .prompt-button { min-height: 40px; }
  .review-input { height: 56px; }
  .review-helper-actions, .copy-button { min-height: 40px; }
}

@media (max-height: 700px) and (max-width: 390px) {
  .profile-content { gap: 3px; padding-right: 14px; padding-left: 14px; }
  .social-link { min-height: 46px; }
  .menu-row { min-height: 46px; }
  .review-input { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes row-arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draft-appear { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gentle-spin { to { transform: rotate(360deg); } }