/* S21 · Explicit field selection turns one saved private record into a separate public-preview draft only. */
body[data-page="record-share"] { overflow-x: clip; }
.record-share-page { min-height: calc(100svh - 76px); padding-block: var(--space-7) var(--space-10); }
.record-share-heading { max-width: 900px; }
.record-share-heading h1 { margin-top: var(--space-2); color: var(--forest); font-size: clamp(31px, 3.25vw, 42px); }
.record-share-heading > p:not(.eyebrow) { max-width: 790px; margin-top: var(--space-4); color: var(--ink-soft); font-size: 15px; line-height: 1.72; }
.record-share-mobile-header, .record-share-mobile-actions { display: none; }
.record-share-status { min-height: 22px; margin-top: var(--space-4); color: var(--moss-strong); font-size: 11px; font-weight: 750; line-height: 1.55; }
.record-share-workbench { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); align-items: start; gap: clamp(18px, 3vw, 34px); margin-top: var(--space-4); padding: clamp(18px, 2.8vw, 30px); border-radius: var(--radius-md); background: var(--glass-c-bg); border-top: 1px solid var(--glass-c-border-top); border-left: 1px solid var(--glass-c-border-left); border-right: 1px solid var(--glass-c-border-right); border-bottom: 1px solid var(--glass-c-border-bottom); box-shadow: var(--glass-c-shadow), var(--glass-c-highlight); backdrop-filter: var(--glass-c-blur); -webkit-backdrop-filter: var(--glass-c-blur); }
.record-share-workbench::after { position: absolute; right: 48%; bottom: -42px; width: 104px; height: 104px; border: 1px solid rgba(39, 103, 63, .12); border-radius: 50%; content: ""; pointer-events: none; }
.record-share-selection, .record-share-preview { min-width: 0; display: grid; gap: 14px; }
.record-share-selection > header, .record-share-preview > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.record-share-selection > header > div, .record-share-preview > header > div { display: grid; gap: 5px; }
.record-share-selection .eyebrow, .record-share-preview .eyebrow { margin-bottom: 0; }
.record-share-selection h2, .record-share-preview h2 { color: var(--forest); font-size: clamp(23px, 2.4vw, 30px); }
.record-share-selection > header p:not(.eyebrow), .record-share-preview__lead { color: var(--ink-soft); font-size: 12px; line-height: 1.64; }
.record-share-saved-badge, .record-share-preview-badge { min-height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 9px; color: var(--forest); background: rgba(232, 244, 226, .84); border: 1px solid rgba(39, 103, 63, .26); border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.record-share-preview-badge { color: var(--forest); }
.record-share-private-source, .record-share-private-boundary, .record-share-preview-boundary, .record-share-preview-flow, .record-share-flow-note { display: grid; gap: 4px; padding: 14px 15px; border-radius: var(--radius-xs); }
.record-share-private-source { color: #824419; background: rgba(252, 243, 235, .86); border: 1px solid rgba(188, 111, 60, .42); }
.record-share-private-source .eyebrow, .record-share-private-boundary .eyebrow, .record-share-preview-flow .eyebrow { margin-bottom: 0; font-size: 10px; }
.record-share-private-source .eyebrow { color: #824419; }
.record-share-private-source strong { color: #824419; font-size: 14px; line-height: 1.45; }
.record-share-private-source span { color: #824419; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.record-share-options { min-width: 0; display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.record-share-options legend { padding: 0; color: var(--forest); font-size: 12px; font-weight: 800; }
.record-share-options-hint { margin: -2px 0 2px; color: var(--ink-faint); font-size: 10px; line-height: 1.55; }
.record-share-option { min-width: 0; min-height: 70px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; color: var(--ink); background: rgba(248, 252, 245, .86); border: 1px solid rgba(39, 103, 63, .24); border-radius: var(--radius-xs); cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.record-share-option:hover { transform: translateY(-1px); border-color: var(--moss-strong); }
.record-share-option[data-selected="true"] { background: rgba(232, 244, 226, .92); border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(34, 154, 71, .12); }
.record-share-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.record-share-check { width: 19px; height: 19px; display: grid; place-items: center; border: 1.5px solid rgba(39, 103, 63, .42); border-radius: 5px; background: rgba(255, 255, 255, .90); transition: background-color .18s ease, border-color .18s ease; }
.record-share-option[data-selected="true"] .record-share-check { border-color: var(--brand-primary); background: var(--brand-primary); }
.record-share-option[data-selected="true"] .record-share-check::after { width: 8px; height: 4px; border-bottom: 1.8px solid #fff; border-left: 1.8px solid #fff; content: ""; transform: rotate(-45deg) translateY(-1px); }
.record-share-option input:focus-visible + .record-share-check { outline: 3px solid var(--focus); outline-offset: 3px; }
.record-share-option__body { min-width: 0; display: grid; gap: 3px; }
.record-share-option--photo .record-share-option__body { grid-template-columns: 66px minmax(0, 1fr); gap: 10px; align-items: center; }
.record-share-option__body img { width: 66px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(39, 103, 63, .22); }
.record-share-option__title-row { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.record-share-option strong { color: var(--forest); font-size: 12px; line-height: 1.4; }
.record-share-option em { min-height: 20px; display: inline-flex; align-items: center; padding: 1px 6px; color: var(--ink-faint); background: rgba(255, 255, 255, .86); border: 1px solid rgba(39, 103, 63, .20); border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; }
.record-share-option[data-selected="true"] em { color: var(--forest); border-color: rgba(39, 103, 63, .30); }
.record-share-option small { color: var(--ink-soft); font-size: 10px; line-height: 1.48; overflow-wrap: anywhere; }
.record-share-private-boundary { color: var(--forest); background: rgba(232, 244, 226, .68); border: 1px solid rgba(39, 103, 63, .26); }
.record-share-private-boundary .eyebrow { color: #824419; }
.record-share-private-boundary strong { color: var(--forest); font-size: 13px; line-height: 1.45; }
.record-share-private-boundary span { color: var(--ink-soft); font-size: 10px; line-height: 1.58; overflow-wrap: anywhere; }
.record-share-flow-note { color: var(--forest); background: rgba(248, 252, 245, .82); border: 1px solid rgba(39, 103, 63, .24); }
.record-share-flow-note strong { color: var(--forest); font-size: 12px; }
.record-share-flow-note span { color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.record-share-preview { position: sticky; top: 96px; padding: 17px; background: var(--glass-b-bg); border: 1px solid var(--glass-b-border); border-radius: var(--radius-sm); box-shadow: var(--glass-b-shadow), var(--glass-b-highlight); }
.record-share-preview-empty { min-height: 220px; display: grid; place-content: center; gap: 7px; padding: 20px; color: var(--ink-soft); background: rgba(248, 252, 245, .74); border: 1px dashed rgba(39, 103, 63, .34); border-radius: var(--radius-xs); text-align: center; }
.record-share-preview-empty > span { width: 34px; height: 34px; display: grid; place-items: center; justify-self: center; color: var(--forest); background: rgba(232, 244, 226, .84); border-radius: 50%; font-size: 19px; font-weight: 700; }
.record-share-preview-empty h3 { color: var(--forest); font-size: 16px; }
.record-share-preview-empty p { max-width: 270px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.record-share-public-card { overflow: hidden; background: rgba(255, 255, 255, .90); border: 1px solid rgba(39, 103, 63, .26); border-radius: var(--radius-xs); }
.record-share-public-card[data-has-photo="true"] { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: start; gap: 14px; padding: 14px; }
.record-share-public-card figure { position: relative; margin: 0; overflow: hidden; background: var(--moss-pale); }
.record-share-public-card[data-has-photo="true"] figure { align-self: start; border-radius: 10px; }
.record-share-public-card figure img { width: 100%; aspect-ratio: 1.44; object-fit: cover; }
.record-share-public-card[data-has-photo="true"] figure img { min-height: 82px; aspect-ratio: 1.12; }
.record-share-public-card figcaption { position: absolute; right: 9px; bottom: 9px; left: 9px; display: inline-flex; width: fit-content; min-height: 23px; align-items: center; padding: 2px 7px; color: var(--forest); background: rgba(255, 255, 255, .92); border-radius: 999px; font-size: 9px; font-weight: 800; }
.record-share-public-card__body { display: grid; gap: 10px; padding: 15px; }
.record-share-public-card[data-has-photo="true"] .record-share-public-card__body { min-width: 0; padding: 1px 0; }
.record-share-public-card__type { color: var(--moss-strong); font-size: 10px; font-weight: 800; }
.record-share-public-log { color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.68; overflow-wrap: anywhere; }
.record-share-public-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
.record-share-public-data > div { min-width: 0; padding: 8px; background: rgba(232, 244, 226, .64); border: 1px solid rgba(39, 103, 63, .20); border-radius: 9px; }
.record-share-public-data dt { color: var(--ink-faint); font-size: 9px; }
.record-share-public-data dd { margin: 2px 0 0; color: var(--forest); font-size: 11px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.record-share-public-card__source { color: var(--ink-faint); font-size: 10px; line-height: 1.5; }
.record-share-preview-boundary { color: #824419; background: rgba(252, 243, 235, .82); border: 1px solid rgba(188, 111, 60, .36); }
.record-share-preview-boundary strong { color: #824419; font-size: 11px; }
.record-share-preview-boundary span { color: #824419; font-size: 10px; line-height: 1.55; }
.record-share-preview-flow { color: var(--forest); background: rgba(232, 244, 226, .66); border: 1px solid rgba(39, 103, 63, .24); }
.record-share-preview-flow p:not(.eyebrow) { color: var(--ink-soft); font-size: 10px; line-height: 1.58; }
.record-share-actions { z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding-top: 2px; }
.record-share-actions .button { min-width: 0; min-height: 48px; }
.record-share-actions [aria-disabled="true"], .record-share-mobile-actions [aria-disabled="true"] { color: rgba(47, 49, 46, .42); background: rgba(229, 236, 229, .78); border-color: transparent; box-shadow: none; cursor: not-allowed; pointer-events: auto; }
.record-share-no-entry { max-width: 740px; display: grid; gap: 11px; margin-top: var(--space-5); padding: clamp(20px, 3.2vw, 34px); text-align: center; background: var(--glass-c-bg); border-top: 1px solid var(--glass-c-border-top); border-left: 1px solid var(--glass-c-border-left); border-right: 1px solid var(--glass-c-border-right); border-bottom: 1px solid var(--glass-c-border-bottom); border-radius: var(--radius-md); box-shadow: var(--glass-c-shadow), var(--glass-c-highlight); }
.record-share-no-entry > span { width: 44px; height: 44px; display: grid; place-items: center; justify-self: center; color: #824419; background: rgba(252, 243, 235, .88); border: 1px solid rgba(188, 111, 60, .35); border-radius: 50%; font-weight: 900; }
.record-share-no-entry h2 { color: var(--forest); font-size: clamp(22px, 3vw, 31px); }
.record-share-no-entry p { max-width: 560px; justify-self: center; color: var(--ink-soft); font-size: 13px; line-height: 1.68; }
.record-share-no-entry .button { justify-self: center; min-width: min(100%, 250px); }
.record-share-f21 { display: grid; gap: 15px; margin-top: var(--space-7); padding: clamp(18px, 2.6vw, 28px); border-top: 1px solid var(--glass-b-border-top); border-left: 1px solid var(--glass-b-border-left); border-right: 1px solid var(--glass-b-border-right); border-bottom: 1px solid var(--glass-b-border-bottom); border-radius: var(--radius-md); background: var(--glass-b-bg); box-shadow: var(--glass-b-shadow), var(--glass-b-highlight); backdrop-filter: var(--glass-b-blur); -webkit-backdrop-filter: var(--glass-b-blur); }
.record-share-f21 > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.record-share-f21 h2 { color: var(--forest); font-size: clamp(19px, 2.1vw, 26px); }
.record-share-f21 header > p { max-width: 440px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.record-share-f21-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.record-share-f21-grid article { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 14px; background: var(--glass-c-bg); border: 1px solid var(--glass-c-border); border-radius: var(--radius-xs); box-shadow: var(--glass-c-highlight); }
.record-share-f21-grid article > span { color: var(--moss-strong); font-size: 10px; font-weight: 800; }
.record-share-f21-grid h3 { color: var(--forest); font-size: 14px; line-height: 1.4; }
.record-share-f21-grid p { color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.record-share-f21-grid__warning { background: rgba(252, 243, 235, .84) !important; border-color: rgba(188, 111, 60, .36) !important; }
.record-share-f21-grid__warning > span, .record-share-f21-grid__warning h3 { color: #824419 !important; }

@media (max-width: 980px) {
  .record-share-public-card[data-has-photo="true"] { grid-template-columns: 124px minmax(0, 1fr); }
  .record-share-workbench { grid-template-columns: 1fr; }
  .record-share-preview { position: static; }
  .record-share-f21-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .record-share-preview { display: none; }
  .record-share-workbench { max-width: 760px; }
  .record-share-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .record-share-actions [data-record-share-back] { display: none; }
}

@media (max-width: 640px) {
  .site-header { display: none; }
  .record-share-page { min-height: 100svh; padding: 0 14px calc(104px + env(safe-area-inset-bottom, 0px)); }
  .record-share-heading { display: none; }
  .record-share-mobile-header { min-height: 58px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .record-share-mobile-header a { width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--forest); font-size: 23px; text-decoration: none; }
  .record-share-mobile-header strong { overflow: hidden; color: var(--forest); font-size: 16px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .record-share-mobile-header span { min-width: 44px; color: var(--moss-strong); font-size: 10px; font-weight: 800; text-align: right; }
  .record-share-status { min-height: 18px; margin-top: 2px; font-size: 10px; }
  .record-share-workbench { gap: 13px; margin-top: 10px; padding: 13px; border-radius: 18px; }
  .record-share-workbench::after { display: none; }
  .record-share-selection { gap: 12px; }
  .record-share-selection h2 { font-size: 22px; }
  .record-share-selection > header p:not(.eyebrow) { font-size: 10px; }
  .record-share-saved-badge { min-height: 26px; padding-inline: 7px; font-size: 9px; }
  .record-share-private-source, .record-share-private-boundary, .record-share-flow-note { padding: 12px; }
  .record-share-private-source strong { font-size: 12px; }
  .record-share-private-source span, .record-share-private-boundary span { font-size: 9px; }
  .record-share-options { gap: 7px; }
  .record-share-options-hint { font-size: 9px; }
  .record-share-option { min-height: 62px; gap: 9px; padding: 9px 10px; }
  .record-share-check { width: 18px; height: 18px; }
  .record-share-option strong { font-size: 11px; }
  .record-share-option small { font-size: 9px; }
  .record-share-option em { min-height: 19px; font-size: 8px; }
  .record-share-option--photo .record-share-option__body { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
  .record-share-option__body img { width: 58px; height: 42px; }
  .record-share-flow-note { display: grid; }
  .record-share-preview, .record-share-actions, .record-share-f21 { display: none; }
  .record-share-mobile-actions { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px; align-items: center; padding: 10px 14px max(10px, env(safe-area-inset-bottom, 0px)); background: var(--glass-b-bg); border-top: 1px solid var(--glass-b-border); box-shadow: 0 -10px 24px rgba(18, 35, 22, 0.14), var(--glass-b-highlight); backdrop-filter: var(--glass-b-blur); -webkit-backdrop-filter: var(--glass-b-blur); }
  .record-share-mobile-actions .button { min-width: 0; min-height: 44px; padding-inline: 9px; font-size: 12px; }
  .record-share-no-entry { margin-top: 18px; padding: 24px 17px; }
}

@media (max-width: 380px) {
  .record-share-page { padding-inline: 10px; }
  .record-share-mobile-actions { gap: 6px; padding-inline: 10px; }
  .record-share-mobile-actions .button { padding-inline: 6px; font-size: 11px; }
  .record-share-option { gap: 7px; padding-inline: 8px; }
  .record-share-option--photo .record-share-option__body { grid-template-columns: 52px minmax(0, 1fr); }
  .record-share-option__body img { width: 52px; }
}

/* Explicitly preserve semantic hidden states against shared component display declarations. */
.record-share-page [hidden] { display: none !important; }
