/* Flowers brand presence on the wedding studio.
   Palette stays the wedding house palette; the brand arrives as the rose mark,
   the wordmark, and the "a house of Flowers" credit. */

.fw-house {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.fw-house-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.fw-house-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fw-house-copy {
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  opacity: 0.78;
}
.fw-house-copy strong {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}
@media (hover: hover) {
  .fw-house:hover .fw-house-copy { opacity: 1; }
}
.fw-house:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 12px;
}

/* Dashboard sidebar: the wordmark gains the rose, matching the public top bar.
   The lockup is one grid item so .dash-brand::after keeps the bouquet row the
   studio decoration put there. */
.dash-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dash-brand-mark {
  flex: 0 0 34px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: color-mix(in srgb, var(--ink, #1c2218) 8%, transparent);
}
.dash-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
/* One mark per world. body[data-dash-world] is set by studio.js from the live
   pane and by the boot script before first paint, so the rail never flashes
   the wrong name. Default to the wedding: an unknown world is a wedding
   dashboard, which is what every existing page is. */
/* Both marks stay mounted, stacked in one grid cell, so the world change is a
   crossfade in place rather than one word vanishing and another appearing
   where the layout has already moved on. styles.css owns the fade. */
.dash-brand-copies {
  display: grid;
  min-width: 0;
}
.dash-brand-copy[data-world] { grid-area: 1 / 1; }
/* Only the live one is read aloud or reachable; the other is decoration the
   cascade happens to keep on screen at zero opacity. */
body:not([data-dash-world="gifts"]) .dash-brand-copy[data-world="gifts"],
body[data-dash-world="gifts"] .dash-brand-copy[data-world="wedding"] {
  visibility: hidden;
  transition-delay: 0s, 0s, var(--dash-pane-in, 240ms);
}

/* Sidebar foot credit, under the legal links. */
.dash-nav-foot .fw-house {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--dash-hair, rgba(28, 34, 24, 0.12));
  color: var(--muted, #6b7264);
}
.dash-nav-foot .fw-house-copy { font-size: 0.68rem; }

/* Desktop landing: one quiet closing signature under the last band. */
.fw-house-band {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 44px 24px 52px;
  background: var(--paper, #f2ead9);
  color: var(--ink, #1c2218);
  text-align: center;
}
.fw-house-note {
  margin: 0;
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted, #6b7264);
}

/* Portrait landing keeps its own literal palette, so the credit follows it. */
@media (max-width: 1024px) {
  body[data-view="home"] #view-home > .fw-house-band { display: none; }
  /* The portrait finale is cream ink on forest, so the credit inherits it
     rather than carrying the light-plate green the rest of the landing uses. */
  .mobile-landing .fw-house {
    display: grid;
    justify-content: center;
    margin-top: 22px;
    color: inherit;
  }
  .mobile-landing .fw-house-copy { font-size: 11px; letter-spacing: .06em; }
  .mobile-landing .fw-house-copy strong { font-size: 17px; }
}

/* Language picker. Quiet by default; it is a preference, not a call to action. */
.fw-lang {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.fw-lang-caption {
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.fw-lang-select {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--dash-hair, rgba(28, 34, 24, 0.18));
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}
.fw-lang-select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.fw-house-band .fw-lang { margin-top: 4px; }
/* In Settings the select keeps the desk's own pill frame; only the row is ours. */
.dash-pane[data-pane="settings"] .fw-lang {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 6px;
  margin-top: 22px;
}

@media (max-width: 1024px) {
  .mobile-landing .fw-lang {
    display: grid;
    justify-content: center;
    margin-top: 14px;
    color: inherit;
  }
  .mobile-landing .fw-lang-select {
    border-color: color-mix(in srgb, currentColor 32%, transparent);
  }
}

/* Create's header picker: a small globe pill; the select sits over it
   invisibly so the phone's own language list opens (owner, 2026-10-01). */
.fw-lang--compact {
  position: relative;
  display: inline-flex;
  align-self: center;
  align-items: center;
  line-height: 1;
  gap: 4px;
  min-height: 32px;
  margin-left: auto;
  padding: 0 10px 0 28px;
  border: 1px solid var(--dash-hair, rgba(28, 34, 24, 0.18));
  border-radius: 999px;
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}
.fw-lang--compact::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.75;
}
.fw-lang--compact .fw-lang-select {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
}
.dash-lang-slot { padding: 6px 0 4px; }
.dash-lang-slot .fw-lang--compact { margin: 0; }

/* In the phone's top bar the picker sits on the Flowers name's line. */
html[data-desk-device="phone"] .dash-phone-brand .fw-lang--compact {
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
}

/* Feedback / Help: the menu row and its card (public/help-overlay.js). */
.dash-nav-help {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink, #1c2218);
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
html[data-desk-device="phone"] .dash-nav-help { min-height: 44px; }
.help-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(28, 34, 24, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.help-sheet-card {
  display: grid;
  gap: 12px;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 26px 22px 16px;
  border-radius: 28px;
  background: #f8f4ec;
  color: #1c2218;
  box-shadow: 0 24px 60px rgba(28, 34, 24, 0.28);
  text-align: center;
}
.help-sheet-kicker {
  margin: 0;
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.help-sheet-title {
  margin: 0;
  font-family: var(--serif, "Cormorant Garamond", serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.1;
}
.help-sheet-body {
  margin: 0;
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.95rem;
  line-height: 1.5;
}
.help-sheet-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  text-align: left;
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.88;
}
.help-sheet-go {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #2f4a3a;
  color: #f8f4ec;
  text-decoration: none;
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
}
.help-sheet-go small { font-size: 0.75rem; font-weight: 500; opacity: 0.8; }
.help-sheet-later {
  min-height: 40px;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.88rem;
  opacity: 0.75;
  cursor: pointer;
}
