/* Family conversations use the site's themes, with larger controls and quiet surfaces. */
body[data-route="family"] .v3-hero,
body[data-route="family"] .cmdbar-right { display: none !important; }
.fh-shell { max-width: 1120px; margin: 0 auto; padding: 28px 24px 60px; color: var(--ink); font-family: var(--sans); }
.fh-shell { --fh-action: #934534; }
body[data-route="family"] #page-family .fh-shell select { background: var(--panel-elevated); color: var(--ink); }
.fh-shell option { background: var(--bg); color: var(--ink); }
.fh-shell [hidden] { display: none !important; }
.fh-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel-elevated); }
.fh-eyebrow { color: var(--ink-soft); font-size: 12px; font-weight: 600; letter-spacing: .16em; margin: 0 0 16px; }
.fh-hero h1 { color: var(--ink); font: 500 clamp(34px, 4vw, 54px)/1.35 var(--calligraphy); margin: 0; letter-spacing: .035em; }
.fh-lead { margin: 18px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.fh-seal { width: 130px; height: 148px; border: 1px solid var(--line-strong); border-radius: 65px 65px 10px 10px; display: flex; align-items: center; justify-content: center; flex-direction: column; font: 56px var(--calligraphy); color: var(--accent); background: var(--panel-soft); flex-shrink: 0; }
.fh-seal span { margin-top: 10px; font: 11px var(--sans); letter-spacing: .15em; color: var(--ink-soft); }
.fh-context { display: flex; gap: 18px; align-items: end; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.fh-context label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; flex: 1; }
.fh-shell input:not([type="checkbox"]):not([type="file"]), .fh-shell select, .fh-shell textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-elevated); color: var(--ink); font: 16px/1.65 var(--sans); padding: 10px 12px; }
.fh-shell textarea { resize: vertical; min-height: 82px; }
body[data-route="family"] #page-family textarea { height: auto; min-height: 82px; }
body[data-route="family"] #page-family #fh-intent { min-height: 150px; }
.fh-shell textarea::placeholder { color: var(--ink-soft); opacity: .85; }
.fh-shell :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.fh-status { min-height: 24px; font-size: 14px; line-height: 1.7; margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: var(--panel-elevated); color: var(--ink-soft); overflow-wrap: anywhere; }
.fh-status[data-error="true"] { color: var(--warning); }
.fh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.fh-card { padding: 26px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--panel-elevated); min-width: 0; }
.fh-card-head { display: flex; gap: 15px; align-items: start; margin-bottom: 24px; }
.fh-step { font: 20px var(--calligraphy); color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 5px; }
.fh-card h2 { font: 600 23px var(--calligraphy); margin: 0 0 8px; }
.fh-card-head p { color: var(--ink-soft); font-size: 14px; margin: 0; line-height: 1.6; }
.fh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; align-items: center; }
.fh-shell button, .fh-file { min-height: 46px; border-radius: 10px; padding: 10px 15px; font: 500 15px/1.5 var(--sans); cursor: pointer; touch-action: manipulation; transition: background .16s; }
.fh-primary { background: var(--fh-action); border: 1px solid var(--fh-action); color: #fff; }
.fh-secondary, .fh-file { border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); }
.fh-quiet { background: transparent; color: var(--ink-soft); border: 1px solid transparent; }
.fh-shell button:disabled, .fh-file:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.fh-file { position: relative; overflow: hidden; display: inline-flex; align-items: center; box-sizing: border-box; }
.fh-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.fh-file:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.fh-hint { font-size: 13px; line-height: 1.8; color: var(--ink-soft); margin: 10px 0 16px; overflow-wrap: anywhere; }
.fh-shell audio { width: 100%; margin: 12px 0; height: 48px; }
.fh-details { margin: 20px 0; font-size: 14px; }
.fh-details summary { cursor: pointer; min-height: 44px; padding: 12px 0; box-sizing: border-box; }
.fh-details textarea { margin-bottom: 10px; }
.fh-details p { line-height: 1.9; color: var(--ink-soft); }
.fh-segments { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.fh-segment { border-top: 1px solid var(--line); padding-top: 12px; }
.fh-segment-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--ink-soft); }
.fh-segment-head button { padding: 8px; font-size: 13px; }
.fh-segment textarea { font-size: 17px; }
.fh-meaning { font-size: 15px; line-height: 1.9; padding: 12px; background: var(--panel-soft); border-left: 2px solid var(--accent); margin-top: 8px; overflow-wrap: anywhere; }
.fh-uncertain { display: block; font-size: 13px; color: var(--warning); margin-top: 6px; }
.fh-summary { border: 1px solid var(--line-strong); background: var(--panel-soft); border-radius: 10px; font-size: 14px; line-height: 1.8; padding: 14px; margin: 16px 0; white-space: pre-line; overflow-wrap: anywhere; }
.fh-confirm { display: flex; align-items: start; gap: 10px; margin-top: 24px; font-size: 14px; line-height: 1.7; cursor: pointer; }
.fh-confirm input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent-dark); }
.fh-field-label { display: block; margin: 0 0 10px; font-size: 15px; }
#fh-intent { margin-bottom: 10px; }
#fh-generate { display: block; width: 100%; margin-top: 20px; }
#fh-result { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.fh-reply-text { font: 500 24px/1.8 var(--calligraphy); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 20px; }
.fh-plain { font-size: 14px; color: var(--ink-soft); line-height: 1.8; overflow-wrap: anywhere; }
.fh-your-voice { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.fh-your-voice h3 { font-size: 16px; font-weight: 600; }
.fh-privacy { max-width: 780px; background: var(--panel-elevated); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.fh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fh-record[aria-pressed="true"] { background: #a62a2a; border-color: #a62a2a; }
@media (max-width: 760px) {
  .fh-shell { padding: 16px 12px 40px; }
  .fh-hero { padding: 20px 16px; gap: 12px; }
  .fh-seal { width: 78px; height: 102px; font-size: 38px; }
  .fh-seal span { font-size: 9px; }
  .fh-hero h1 { font-size: 34px; }
  .fh-grid { grid-template-columns: 1fr; }
  .fh-context { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .fh-context label { flex-basis: 120px; }
  .fh-card { padding: 20px 16px; }
  .fh-lead { font-size: 14px; }
}
@media (max-width: 980px) { body[data-v3="on"][data-route="family"] .fh-shell { padding-top: calc(64px + env(safe-area-inset-top)); } }
@media (max-width: 380px) { .fh-seal { display: none; } .fh-hero h1 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .fh-shell button { transition: none; } }
