/* All rules are component-scoped. No app globals, route, body or auth selectors. */
.uh-home {
  --uh-ink: #30271f;
  --uh-muted: #6b5c4e;
  --uh-bronze: #80562f;
  --uh-line: #d9c5a8;
  --uh-glass: rgba(255, 253, 248, .84);
  position: relative;
  isolation: isolate;
  width: 100%;
  box-sizing: border-box;
  overflow: clip;
  color: var(--uh-ink);
  background: #e9dfcf;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: left;
  line-height: 1.45;
  color-scheme: light;
}
.uh-home *, .uh-home *::before, .uh-home *::after { box-sizing: border-box; }
.uh-home button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.uh-home button:disabled { cursor: not-allowed; opacity: .56; }
.uh-home button:focus-visible, .uh-home a:focus-visible, .uh-home [tabindex]:focus-visible { outline: 3px solid #67441f; outline-offset: 4px; }
.uh-home button[aria-busy='true'] { cursor: progress; }
.uh-home__backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #e6dac7; pointer-events: none; }
.uh-home__backdrop::after { content: ''; position: absolute; inset: 0; background: rgba(238, 224, 201, .28); }
.uh-home__photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) sepia(.54) saturate(.75) brightness(1.12); opacity: .77; }
.uh-home__body { position: relative; display: grid; gap: 24px; padding: 24px; max-width: 960px; margin-inline: auto; }
.uh-heading { padding: 18px 22px 20px; border: 1px solid var(--uh-line); border-radius: 19px; background: var(--uh-glass); box-shadow: 0 2px 12px rgba(83, 55, 27, .035); }
.uh-heading__eyebrow { margin: 0 0 5px; color: var(--uh-muted); font-size: 10px; letter-spacing: .055em; }
.uh-heading__title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.uh-heading__title { font-size: clamp(32px, 6.8vw, 48px); line-height: 1.15; letter-spacing: -.035em; margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.uh-heading__tagline { margin: 8px 0 0; font-size: 16px; }
.uh-heading__description { margin: 8px 0 0; font-size: 12px; color: var(--uh-muted); }
.uh-ask { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; border: 1px solid #dcc8aa; border-radius: 999px; background: #fffbf4; min-height: 48px; padding: 4px 20px 4px 5px; flex-shrink: 0; color: var(--uh-bronze) !important; text-align: left; }
.uh-ask__copy { min-width: 0; font-size: 15px; }
.uh-orb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; flex: 0 0 auto; }
.uh-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 20px 18px; padding: 0; margin: 0; }
.uh-grid__item { min-width: 0; margin: 0; padding: 0; display: flex; }
.uh-card { perspective: 1200px; width: 100%; min-width: 0; }
.uh-card__inner { display: grid; min-height: 248px; height: 100%; transform-style: preserve-3d; transition: transform 420ms cubic-bezier(.2,.65,.25,1); }
.uh-card[data-open='true'] .uh-card__inner { transform: rotateY(180deg); }
.uh-card__face { grid-area: 1 / 1; width: 100%; min-width: 0; margin: 0; border: 1px solid var(--uh-line); border-radius: 14px; background: linear-gradient(150deg, rgba(255,253,248,.86), rgba(251,239,220,.80)); box-shadow: 0 4px 18px rgba(75, 51, 28, .045); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow-wrap: anywhere; }
.uh-card__face[aria-hidden='true'] { visibility: hidden; pointer-events: none; transition: visibility 0s linear 210ms; }
.uh-card__front { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 20px; }
.uh-card__top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 8px; }
.uh-card__number { display: flex; align-items: center; gap: 15px; font-size: 14px; color: var(--uh-muted); }
.uh-card__number::before { content: ''; display: inline-block; width: 4px; height: 39px; border-radius: 4px; background: var(--uh-bronze); }
.uh-icon { display: inline-block; line-height: 1; flex-shrink: 0; }
.uh-flip-icon { font-size: 32px; font-weight: 300; color: #7e6e5c; }
.uh-card__title { display: block; margin: 24px 0 12px; font-size: clamp(20px, 3.8vw, 28px); line-height: 1.13; font-weight: 750; letter-spacing: -.018em; white-space: pre-line; }
.uh-card__description { display: block; font-size: 12px; color: var(--uh-muted); margin-top: auto; padding-top: 8px; padding-bottom: 16px; }
.uh-card__footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid #e4d2b6; padding-top: 12px; font-size: 12px; }
.uh-card__footer .uh-icon { font-size: 20px; }
.uh-card__reverse { transform: rotateY(180deg); display: flex; flex-direction: column; padding: 15px; background: linear-gradient(145deg, #fffcf6, #f5e9d5); }
.uh-card__reverse-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.uh-card__reverse-title { min-width: 0; margin: 8px 0 0; font-size: 20px; line-height: 1.2; letter-spacing: -.015em; }
.uh-back { display: inline-flex; gap: 5px; align-items: center; justify-content: center; flex-shrink: 0; min-width: 64px; min-height: 44px; padding: 5px; border: 1px solid #d8c3a4; border-radius: 9px; background: #fffbf4; font-size: 12px !important; }
.uh-actions { display: grid; gap: 8px; }
.uh-action { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; width: 100%; text-align: left; border: 1px solid #dec9a9; border-radius: 8px; background: #f4e6ce; padding: 10px 12px; font-size: 13px !important; line-height: 1.35 !important; }
.uh-ask--context { border-radius: 10px; width: 100%; padding: 7px; margin-top: 14px; min-height: 52px; gap: 8px; }
.uh-ask--context .uh-orb { width: 34px; height: 34px; }
.uh-ask--context .uh-ask__copy { font-size: 12px; line-height: 1.35; }
.uh-shortcuts { position: relative; border: 1px solid var(--uh-line); border-radius: 14px; padding: 15px 18px; background: rgba(255, 253, 248, .88); }
.uh-shortcuts__title { margin: 0 0 13px; font-size: 18px; line-height: 1.3; }
.uh-shortcuts__slot { min-width: 0; }
.uh-shortcuts__slot:empty { min-height: 32px; }
/* Optional styles for host-rendered shortcuts. The host owns their behavior. */
.uh-shortcuts__items { display: flex; flex-wrap: wrap; gap: 10px; }
.uh-shortcut { min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: #f4e6ce; padding: 10px 13px; font-size: 12px !important; text-align: left; }
.uh-shortcuts__edit { position: absolute; top: 3px; right: 12px; min-width: 44px; min-height: 44px; padding: 10px; border: 0; background: none; color: var(--uh-muted) !important; font-size: 12px !important; }
.uh-shortcuts__create { background: none; }
@media (hover: hover) {
  .uh-card__front:hover { border-color: #ac8350; background: linear-gradient(150deg, rgba(255,253,248,.94), rgba(251,239,220,.87)); }
  .uh-home button:not(:disabled):not(.uh-card__front):hover { border-color: #a87b45; background-color: #fff9ed; }
}
@media (max-width: 480px) {
  .uh-home__body { padding: 16px 12px; gap: 18px; }
  .uh-heading { padding: 16px; border-radius: 16px; }
  .uh-heading__title-row { gap: 8px; }
  .uh-heading__title { font-size: 36px; }
  .uh-heading__tagline { font-size: 14px; }
  .uh-heading__description { font-size: 12px; }
  .uh-heading .uh-ask { gap: 7px; padding-right: 12px; }
  .uh-heading .uh-ask__copy { font-size: 13px; }
  .uh-heading .uh-orb { width: 34px; height: 34px; }
  .uh-grid { gap: 14px 12px; }
  .uh-card__inner { min-height: 230px; }
  .uh-card__front { padding: 14px; }
  .uh-card__title { font-size: 21px; margin-top: 23px; }
  .uh-card__number { font-size: 12px; gap: 11px; }
  .uh-card__number::before { height: 33px; }
  .uh-flip-icon { font-size: 29px; }
  .uh-card__description { font-size: 11px; }
  .uh-card__reverse { padding: 10px; }
  .uh-card__reverse-top { flex-wrap: wrap-reverse; }
  .uh-card__reverse-title { font-size: 18px; margin: 2px 0 3px; }
  .uh-back { margin-left: auto; }
  .uh-action { font-size: 12px !important; padding: 9px; }
  .uh-ask--context { flex-wrap: wrap; margin-top: 10px; }
  .uh-shortcuts { padding: 14px; }
  .uh-shortcuts__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .uh-card__inner { transition: none; }
  .uh-card__face[aria-hidden='true'] { transition: none; }
}
@media (forced-colors: active) {
  .uh-home, .uh-card__face, .uh-heading, .uh-shortcuts { background: Canvas; color: CanvasText; }
  .uh-home__backdrop { display: none; }
  .uh-home button { color: ButtonText !important; border: 1px solid ButtonText; }
  .uh-card__number::before { background: CanvasText; }
}
