/* Task-first SOLOIM UX enhancements — existing warm identity, no new assets or APIs. */
.ux-manager-home { width: min(100%, 1010px); margin: 0 auto; padding: 8px 0 34px; display: grid; gap: 22px; }
.ux-manager-heading { padding: 20px 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); }
.ux-manager-heading h1 { margin: 8px 0 10px; font-size: clamp(24px,4.5vw,34px); letter-spacing: -.04em; }
.ux-manager-heading p { max-width: 65ch; color: var(--muted); line-height: 1.75; overflow-wrap: anywhere; }
.ux-role-label { display: inline-block; font-size: 12px; color: var(--accent); font-weight: 750; }
.ux-manager-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); gap: 14px; }
.ux-manager-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
.ux-manager-card h2 { font-size: 20px; line-height: 1.4; margin: 8px 0; overflow-wrap: anywhere; }
.ux-manager-card p { color: var(--muted); font-size: 13px; }
.ux-manager-card-actions { display: grid; gap: 8px; }
.ux-manager-card-actions button { min-height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.ux-manager-card-actions button svg { width: 18px; height: 18px; }
.ux-manager-empty { padding: 17px 19px; background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 15px; line-height: 1.6; }
.ux-manager-home > .link-button { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.ux-waiting-state { padding: 15px 18px; border-radius: 14px; background: var(--soft); color: var(--accent); font-weight: 700; line-height: 1.65; }
.ux-trust-brief { width: min(100%,1120px); margin: 20px auto 50px; padding: 0 clamp(18px,4vw,34px); }
.ux-trust-intro { margin-bottom: 14px; }
.ux-trust-intro h2 { font-size: clamp(18px,3vw,23px); letter-spacing: -.025em; }
.ux-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ux-trust-grid article { padding: 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; min-width: 0; }
.ux-trust-grid article > svg { width: 27px; height: 27px; color: var(--accent); margin-bottom: 10px; }
.ux-trust-grid h3 { font-size: 15px; line-height: 1.55; margin-bottom: 7px; }
.ux-trust-grid p { font-size: 13px; line-height: 1.7; color: var(--muted); word-break: keep-all; }
.ux-trust-disclaimer { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
body[data-authenticated="true"] .discovery-photo .photo-frame { isolation: isolate; }
body[data-authenticated="true"] .ux-photo-dots { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 4; display: flex; justify-content: center; align-items: center; gap: 7px; max-width: 48%; }
body[data-authenticated="true"] .ux-photo-dots button { appearance: none; border: 1px solid #ffffffb9; background: #ffffff7d; border-radius: 999px; width: 9px; min-width: 9px; height: 9px; padding: 0; box-shadow: 0 1px 3px #0003; }
body[data-authenticated="true"] .ux-photo-dots button[aria-current="true"] { background: #fff; width: 23px; border-color: #fff; }
body[data-authenticated="true"] .ux-photo-dots button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
body[data-authenticated="true"] .ux-photo-dots button:disabled { opacity: .6; }
body[data-authenticated="true"] .ux-photo-hint { position: absolute; z-index: 2; top: 33px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 65%; color: #fff; font-size: 10px; text-align: center; text-shadow: 0 1px 4px #000b; pointer-events: none; }
.ux-action-disabled-note { margin: 11px 8px 6px; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.ux-chat-connection { padding: 5px 18px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: 11px; text-align: center; line-height: 1.6; }
.ux-chat-connection[data-connected="true"] { color: #236647; background: #f1f9f3; }
.ux-push-receipt-note { margin: 12px 0 0; padding: 11px 13px; background: var(--soft); color: var(--muted); border-radius: 10px; font-size: 12px; line-height: 1.65; }
@media (max-width: 720px) {
  .ux-trust-brief { padding-inline: 16px; margin-block: 16px 34px; }
  .ux-trust-grid { grid-template-columns: 1fr; gap: 9px; }
  .ux-trust-grid article { padding: 14px 16px; display: grid; grid-template-columns: 30px minmax(0,1fr); column-gap: 11px; }
  .ux-trust-grid article > svg { grid-row: span 2; margin: 0; align-self: center; }
  .ux-trust-grid h3 { margin-bottom: 2px; }
  .ux-trust-grid p { font-size: 12px; }
  .ux-manager-home { gap: 16px; padding-block: 4px 32px; }
  .ux-manager-heading { padding: 21px 19px; }
  .ux-manager-card { padding: 18px; gap: 14px; }
  .ux-manager-card-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ux-manager-card-actions button { font-size: 12px; padding: 8px; min-height: 48px; word-break: keep-all; }
  body[data-authenticated="true"] .gallery-controls { left: 0; right: 0; }
  body[data-authenticated="true"] .gallery-controls button { min-width: 48px; min-height: 48px; background: #1e1624a6; }
  body[data-authenticated="true"] .discovery-actions > button:not(.deck-next) { min-height: 56px; flex-direction:row; }
  .ux-chat-connection { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  .ux-photo-dots button { transition: none; }
}


/* Settings: short grouped rows, one consistent surface, preserved native controls. */
body[data-authenticated="true"][data-route="settings"] .page-heading { width:min(100%,800px); margin:0 auto 20px; }
.ux-settings-page { width:min(100%,800px); margin:0 auto; display:grid; gap:24px; padding-bottom:28px; }
.ux-settings-group { min-width:0; }
.ux-settings-group-header { display:flex; align-items:center; gap:10px; padding:0 3px; margin-bottom:10px; }
.ux-settings-group-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:11px; background:var(--soft); color:var(--ink); flex:none; }
.ux-settings-group-icon svg { width:17px; height:17px; }
.ux-settings-group-header h2 { font-size:16px; font-weight:750; letter-spacing:-.025em; }
.ux-settings-card { min-width:0; overflow-wrap:anywhere; padding:4px 20px; border:1px solid var(--line); background:var(--surface); border-radius:16px; }
.ux-settings-page .ux-settings-row { max-width:none; min-height:60px; padding:14px 0; gap:12px; }
.ux-settings-page .ux-settings-row:last-child { border-bottom:0; }
.ux-settings-page .ux-settings-row > div { min-width:0; flex:1; }
.ux-settings-page .ux-settings-row h3 { font-size:14px; line-height:1.45; font-weight:650; }
.ux-settings-page .ux-settings-row p { font-size:12px; color:var(--muted); line-height:1.45; margin-top:3px; overflow-wrap:anywhere; }
.ux-settings-page .ux-settings-row :is(button.secondary,a.secondary) { flex:none; text-decoration:none; padding:8px 13px; min-height:40px; font-size:12px; font-weight:700; color:var(--ink); }
.ux-settings-page .ux-settings-row button.danger-text { color:var(--danger); }
.ux-settings-page .ux-settings-row select { width:auto; max-width:160px; min-height:42px; padding:8px 12px; font-size:13px; flex:none; }
.ux-settings-card > .experience-privacy { margin:0; padding:14px 0; border:0; border-top:1px solid var(--line); }
.ux-settings-card > .experience-privacy summary { min-height:42px; }
.ux-settings-notifications .notification-settings { margin:0; }
.ux-settings-notifications .notification-settings h2 { padding-top:14px; margin-bottom:4px; font-size:16px; font-weight:750; }
.ux-settings-notifications .notification-settings .setting-row { max-width:none; padding:14px 0; }
.ux-settings-notifications .notification-settings .notification-row { border-top:1px solid var(--line); padding:10px 0; min-height:44px; }
.ux-settings-notifications .notification-settings .push-settings-actions { gap:10px 16px; margin:14px 0 16px; }
.ux-settings-notifications .notification-settings .push-settings-actions button { min-height:44px; }
.ux-settings-notifications .notification-settings .push-settings-actions .link-button { margin:0; }
.ux-settings-notifications .notification-settings .push-device-note { margin:8px 0 13px; }
.ux-settings-notifications .notification-settings .push-privacy-note { font-size:12px; line-height:1.65; }
@media (max-width:767px) {
  body[data-authenticated="true"][data-route="settings"] .page-heading { margin-bottom:16px; }
  .ux-settings-page { gap:19px; padding-bottom:32px; }
  .ux-settings-card { padding:3px 14px; border-radius:14px; }
  .ux-settings-group-header { gap:9px; margin-bottom:8px; }
  .ux-settings-page .ux-settings-row { min-height:58px; gap:9px; padding:12px 0; }
  .ux-settings-page .ux-settings-row :is(button.secondary,a.secondary) { min-height:44px; padding:8px 11px; }
  .ux-settings-page .ux-settings-row select { max-width:140px; }
  .ux-settings-notifications .notification-settings .setting-row { gap:12px; }
  .ux-settings-notifications .notification-settings .setting-row > button { min-height:44px; }
}
@media (max-width:350px) {
  .ux-settings-page .ux-settings-row h3 { font-size:13px; }
  .ux-settings-page .ux-settings-row :is(button.secondary,a.secondary) { padding-inline:9px; }
}

.ux-settings-disclosure { border-top:1px solid var(--line); padding:12px 0 0; }
.ux-settings-disclosure summary { display:flex; align-items:center; cursor:pointer; min-height:40px; color:var(--muted); font-size:12px; font-weight:650; list-style:none; }
.ux-settings-disclosure summary::-webkit-details-marker { display:none; }
.ux-settings-disclosure summary::after { content:"+"; margin-left:auto; font-size:19px; line-height:1; }
.ux-settings-disclosure[open] summary::after { content:"−"; }
.ux-settings-disclosure .push-privacy-note { margin:5px 0 10px; }

/* A quieter social client: people and next actions lead; details stay available. */
body[data-authenticated="true"] :is(.primary, .secondary) { min-height:44px; font-size:14px; }
body[data-authenticated="true"] :is(.page-heading p, .field-note) { font-size:13px; line-height:1.7; }
body[data-authenticated="true"] :is(.room-item, .chat-layout, .interest-item, .concept-me-story) { box-shadow:none; }
:is(.role-guide-details, .room-period-details) > summary {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:48px; cursor:pointer; color:var(--muted); font-size:14px; font-weight:600; list-style:none;
}
:is(.role-guide-details, .room-period-details) > summary::-webkit-details-marker { display:none; }
:is(.role-guide-details, .room-period-details) > summary::after { content:'+'; font-size:22px; font-weight:400; }
:is(.role-guide-details, .room-period-details)[open] > summary::after { content:'−'; }
summary:focus-visible { outline:3px solid var(--focus); outline-offset:3px; border-radius:4px; }
.role-guide-details { border-top:1px solid var(--line); margin-top:20px; }
.role-guide-details .role-tree { margin-block:24px; }
.public-landing .role-key { margin-top:24px; border:0; padding:0; }
.public-landing .role-guide-note { font-size:14px; }
.public-landing .role-guide-heading > p:last-child { font-size:15px; }
.public-landing .ux-trust-brief { margin:40px 0; padding:28px 0; border-block:1px solid var(--line); }
.public-landing .ux-trust-grid { gap:24px; }
.public-landing .ux-trust-grid article { border:0; background:transparent; border-radius:0; padding:0; }
.public-landing .ux-trust-grid p { font-size:14px; }
.public-landing .landing-photo img { border-radius:18px; }
.public-landing :is(.landing-description, .landing-no-invite p) { font-size:15px; }

/* Keep the real photograph; remove the decorative pile of cards behind it. */
body[data-authenticated="true"] .discovery-photo::before,
body[data-authenticated="true"] .discovery-photo::after { display:none; }
body[data-authenticated="true"] .discovery-photo { box-shadow:none; }
body[data-authenticated="true"] .discovery-card .photo-frame { border-radius:20px; }
body[data-authenticated="true"] .discovery-card :is(.birth-line, .profile-facts, .connection) { font-size:13px; }
body[data-authenticated="true"] .concept-profile-layout :is(.birth-line, .profile-facts, .connection, .expression-list dt) { font-size:14px; }
body[data-authenticated="true"] .concept-profile-layout :is(.text-tags > span, .photo-story-notes figcaption) { font-size:13px; }
body[data-authenticated="true"] .concept-profile-layout .profile-description h2 { font-size:30px; }
body[data-authenticated="true"] .concept-profile-layout .profile-section { padding-block:20px; }
.concept-me-story { border:0; padding:0; background:transparent; }
.concept-me .profile-summary { align-items:center; gap:24px; }
.concept-me .profile-summary > img { width:144px; height:180px; border-radius:16px; }
.concept-me .profile-summary p, .concept-me .profile-info small { font-size:13px; }
.concept-me .profile-info strong { font-size:15px; }
.concept-me .profile-info:empty { display:none; }
.concept-me-answer { font-size:20px; font-weight:550; line-height:1.6; }
.concept-me-settings { border-radius:12px; box-shadow:none; padding:12px 18px; }

/* Keep room progress visible and place exact deadlines in the disclosure. */
body[data-authenticated="true"] .concept-room-card { padding:24px; border-radius:18px; }
.concept-room-title .concept-community-eyebrow { display:none; }
.concept-room-title h2 { font-size:24px; line-height:1.4; }
.concept-room-title > p:last-child { font-size:14px; }
.concept-room-card > .room-progress { margin-block:20px 8px; }
.concept-room-card .room-lifecycle { padding-block:4px 16px; border:0; align-items:center; }
.concept-room-card .room-dates { font-size:13px; line-height:1.8; }
.concept-room-card .room-countdown > span { font-size:13px; }
.concept-room-card .room-countdown > strong { font-size:24px; }
.room-period-details { border-bottom:1px solid var(--line); margin-bottom:8px; }
.concept-room-card footer { padding-top:12px; gap:12px; }
.concept-room-card footer > span { font-size:13px; }
.concept-room-card footer button { min-height:44px; font-size:14px; font-weight:650; }
.ux-manager-heading { background:transparent; border:0; border-bottom:1px solid var(--line); padding:8px 0 24px; border-radius:0; }
.ux-manager-card { box-shadow:none; border-radius:16px; }
.ux-manager-card p { font-size:14px; }
.approval-summary { border-radius:12px; }

/* Settings retain native checkboxes and explicit account/security commands. */
.ux-settings-page { gap:32px; }
.ux-settings-card { border:0; border-radius:0; background:transparent; padding:0; }
.ux-settings-group-header { margin-bottom:4px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.ux-settings-group-header h2 { font-size:18px; }
.ux-settings-group-icon { background:transparent; width:24px; border-radius:0; }
.ux-settings-page .ux-settings-row h3 { font-size:15px; }
.ux-settings-page .ux-settings-row p { font-size:13px; }
.ux-settings-page .ux-settings-row :is(button.secondary, a.secondary) { border-color:transparent; background:var(--surface); min-height:44px; font-size:14px; }
.ux-settings-page .ux-settings-row :is(button.secondary, a.secondary):hover { border-color:var(--control-line); background:var(--soft); }
.ux-settings-page .ux-settings-row select { min-height:44px; font-size:14px; }
.ux-settings-notifications .notification-settings h2 { font-size:18px; padding-top:0; }
.ux-settings-notifications :is(.push-device-note, .push-privacy-note, .notification-row) { font-size:14px; }
.ux-settings-disclosure summary { min-height:44px; font-size:14px; }
.ux-settings-page .notification-row { cursor:pointer; }

/* A conversation uses the available viewport instead of a card inside a page. */
body[data-authenticated="true"] .chat-layout { box-shadow:none; border-radius:16px; }
body[data-authenticated="true"] .chat-header strong { font-size:16px; }
body[data-authenticated="true"] .chat-header small { font-size:13px; }
body[data-authenticated="true"] .ux-chat-connection { font-size:12px; padding-block:6px; }
body[data-authenticated="true"] .messages { min-height:0; }
body[data-authenticated="true"] .interest-item { border-radius:14px; }
@media (max-width:767px) {
  .public-landing .ux-trust-grid { gap:20px; }
  .public-landing .ux-trust-grid article { column-gap:14px; }
  .concept-me .profile-summary > img { width:116px; height:145px; }
  .concept-me .profile-summary { gap:18px; }
  .concept-me .profile-summary h2 { font-size:26px; }
  body[data-authenticated="true"] .concept-room-card { padding:20px; }
  .concept-room-title h2 { font-size:22px; }
  .ux-settings-page { gap:28px; }
  .ux-settings-page .ux-settings-row select { font-size:16px; }
  body[data-authenticated="true"][data-route="chat"]:has(.chat-layout.open) .page-heading {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
  }
  body[data-authenticated="true"][data-route="chat"]:has(.chat-layout.open) #main { padding:8px 12px 96px; }
  body[data-authenticated="true"] .chat-layout.open { min-height:0; border-radius:12px; }
  body[data-authenticated="true"] .chat-layout.open .chat-panel { height:calc(100dvh - 156px - env(safe-area-inset-bottom)); min-height:240px; }
  body[data-authenticated="true"] .chat-layout.open .messages { max-height:none; }
  body[data-authenticated="true"] .chat-header .back-chat { width:44px; height:44px; flex:none; }
  body[data-authenticated="true"] .chat-panel .composer-row :is(input, textarea) { font-size:16px; }
  body[data-authenticated="true"] .chat-panel .composer-row button { min-width:44px; min-height:44px; }
}

/* Review a person, then choose an action; retain every permission-gated command. */
.concept-members-panel .request-row { grid-template-columns:56px minmax(0,1fr); gap:12px 16px; padding-block:22px; }
.concept-members-panel .request-row > img { width:56px; height:70px; border-radius:12px; }
.concept-members-panel .request-row .person-label strong { font-size:17px; }
.concept-members-panel .request-row p { font-size:13px; line-height:1.65; }
.concept-members-panel .request-row .row-actions { gap:8px; margin-top:6px; }
.concept-members-panel .request-row .row-actions button { min-height:44px; font-size:14px; }
@media (max-width:767px) {
  .concept-members-panel .request-row .row-actions { grid-column:1 / -1; }
  .concept-members-panel .request-row .row-actions > :is(.primary, .secondary) { flex:1 1 120px; }
  .concept-members-panel .request-row .remove-member { flex-basis:100%; justify-content:flex-start; }
}

@media (max-width:767px) {
  .concept-room-page .heading-row { flex-wrap:wrap; gap:12px; }
  .concept-room-page .heading-row > h1 { flex:1 0 100%; min-width:0; overflow-wrap:anywhere; }
  .concept-room-page .heading-row > button { flex:1 1 120px; justify-content:center; }
}
.ux-chat-push-notice { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; background:var(--soft); border-bottom:1px solid var(--line); }
.ux-chat-push-notice > div { min-width:0; }
.ux-chat-push-notice strong { font-size:13px; line-height:1.5; }
.ux-chat-push-notice p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.ux-chat-push-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; flex-shrink:0; }
.ux-chat-push-actions button { min-height:44px; font-size:12px; }
@media(max-width:600px) { .ux-chat-push-notice { align-items:stretch; flex-direction:column; gap:6px; padding:10px 14px; }.ux-chat-push-actions { justify-content:flex-start; }.ux-chat-push-actions .secondary { flex:1; white-space:normal; } }

.ux-chat-list-push:not(:empty) { margin-bottom:20px; }
.ux-chat-list-push .ux-chat-push-notice { border:1px solid var(--line); border-radius:12px; }


/* Ended rooms remain discoverable after active rooms disappear. No extra API request. */
.room-reopening { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px 24px; margin:8px 0 24px; padding:18px 0; border-block:1px solid var(--line); }
.room-reopening h2 { margin:0 0 5px; font-size:18px; line-height:1.4; word-break:keep-all; }
.room-reopening p { margin:0; color:var(--muted); font-size:14px; line-height:1.6; word-break:keep-all; }
.room-reopening button { min-height:44px; }
@media (max-width:600px) {
  .room-reopening { grid-template-columns:minmax(0,1fr); }
  .room-reopening button { width:100%; }
}
.room-finale-entry { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:18px; margin:8px 0 28px; padding:24px; border:1px solid var(--line); border-left:4px solid var(--green); border-radius:18px; background:var(--soft); color:var(--ink); }
.room-finale-entry-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:var(--surface); color:var(--green); }
.room-finale-entry-icon svg { width:24px; height:24px; }
.room-finale-entry-copy { min-width:0; }
.room-finale-entry-copy .room-finale-entry-label { margin:0 0 5px; color:var(--green); font-size:12px; font-weight:750; }
.room-finale-entry-copy h2 { margin:0 0 8px; font-size:22px; line-height:1.35; letter-spacing:-.035em; overflow-wrap:anywhere; }
.room-finale-entry-copy > p:last-child { margin:0; color:var(--muted); font-size:13px; line-height:1.7; word-break:keep-all; overflow-wrap:anywhere; }
.room-finale-entry-link { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:12px 16px; border-radius:12px; background:var(--green); color:var(--surface); text-decoration:none; font-size:14px; font-weight:750; line-height:1.5; }
.room-finale-entry-link svg { flex:none; width:18px; height:18px; }
.room-finale-entry-link:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
@media(max-width:720px) {
 .room-finale-entry { grid-template-columns:36px minmax(0,1fr); align-items:start; gap:14px; padding:20px 18px; }
 .room-finale-entry-icon { width:36px; height:36px; border-radius:11px; }
 .room-finale-entry-copy h2 { font-size:20px; }
 .room-finale-entry-link { grid-column:1/-1; width:100%; }
}

/* November product pass: action first, optional imagery, one control hierarchy. */
.public-landing .landing-hero { grid-template-columns:minmax(0, 1fr); max-width:880px; gap:24px; padding-block:clamp(24px,5vw,48px); }
.public-landing .landing-copy { max-width:640px; }
.public-landing .landing-copy h1 { font-size:clamp(28px,4vw,42px); line-height:1.3; }
.public-landing .landing-description { font-size:16px; line-height:1.7; margin-block:16px 20px; }
.public-landing .landing-actions { max-width:440px; }
.landing-preview { width:100%; border-block:1px solid var(--line); }
.landing-preview > summary { min-height:64px; padding:14px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer; list-style:none; font-weight:650; }
.landing-preview > summary::-webkit-details-marker { display:none; }
.landing-preview > summary small { display:block; color:var(--muted); font-weight:400; }
.landing-preview[open] > summary > svg { transform:rotate(180deg); }
.product-preview { padding-block:8px 16px; max-width:600px; }
.preview-disclaimer { color:var(--muted); font-size:12px; margin-bottom:12px; }
.preview-steps { display:flex; gap:8px; }
.preview-steps button { min-height:44px; padding:10px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.preview-steps button[aria-pressed="true"] { color:var(--accent, var(--ink)); border-color:currentColor; background:var(--soft); font-weight:700; }
.preview-explanation { min-height:92px; padding:16px 0; font-size:15px; line-height:1.7; }
.public-landing .landing-photo { max-width:320px; margin:0 0 20px; }
.public-landing .landing-photo img { width:100%; height:120px; min-height:0; aspect-ratio:auto; object-fit:cover; border-radius:12px; }
.public-landing .landing-photo figcaption { position:static; padding:8px 0 0; font-size:12px; background:none; color:var(--muted); }
body[data-authenticated="true"] .discovery-photo .photo-frame { transform:none; box-shadow:none; border:1px solid var(--line); }
body[data-authenticated="true"] .has-next .discovery-photo::before { content:none; }
body[data-authenticated="true"] .ux-photo-dots { top:0; gap:0; max-width:75%; }
body[data-authenticated="true"] .ux-photo-dots button { position:relative; display:grid; place-items:center; width:44px; min-width:44px; height:44px; border:0; background:transparent; box-shadow:none; }
body[data-authenticated="true"] .ux-photo-dots button::after { content:""; width:7px; height:7px; border-radius:9px; background:#ffffffb3; box-shadow:0 1px 3px #0005; }
body[data-authenticated="true"] .ux-photo-dots button[aria-current="true"] { width:44px; background:transparent; }
body[data-authenticated="true"] .ux-photo-dots button[aria-current="true"]::after { width:20px; background:#fff; }
body[data-authenticated="true"] .ux-photo-hint { top:42px; }
body[data-authenticated="true"] .concept-room-card { padding:20px; }
body[data-authenticated="true"] .concept-room-card .room-cover { min-height:48px; height:auto; padding:0; background:none; margin-bottom:16px; }
body[data-authenticated="true"] .concept-room-card .avatar-stack img { width:40px; height:40px; border-radius:50%; }
body[data-authenticated="true"] .concept-room-card footer button { border-radius:12px; padding:10px 14px; background:var(--soft); color:var(--accent); }
body[data-authenticated="true"] .concept-room-card .room-countdown > strong { font-size:20px; }
.room-finale-entry { box-shadow:none; }
body[data-authenticated="true"] .message[data-delivery="pending"] > p { border-style:dashed; opacity:.8; }
body[data-authenticated="true"] .message[data-delivery="failed"] > p { border-color:var(--danger); }
body[data-authenticated="true"] .message[data-delivery="failed"] > small { color:var(--danger); font-weight:600; }
.message-retry { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; }
body[data-authenticated="true"] .chat-header { min-height:68px; }
#lightbox.lightbox { padding:0; width:min(960px,100%); max-width:100vw; max-height:100dvh; border-radius:16px; background:var(--surface); color:var(--ink); overflow:hidden; }
.photo-viewer-toolbar { display:flex; align-items:center; gap:12px; padding:8px max(12px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left)); border-bottom:1px solid var(--line); }
.photo-viewer-toolbar > span { margin-right:auto; font-weight:650; }
.photo-viewer-toolbar button { min-height:44px; }
.photo-viewer-frame { overflow:auto; overscroll-behavior:contain; height:min(76dvh,780px); padding:12px; background:var(--soft); }
#lightbox .photo-viewer-frame img { display:block; width:100%; height:100%; max-width:none; max-height:none; object-fit:contain; margin:auto; }
#lightbox[data-zoomed="true"] .photo-viewer-frame img { width:200%; height:200%; max-width:none; max-height:none; object-fit:contain; }
@media(max-width:767px) {
  .public-landing .landing-hero { padding-block:24px; gap:18px; }
  body[data-authenticated="true"] .page-heading { margin-bottom:20px; }
  body[data-authenticated="true"] .concept-room-card { padding:16px; }
  #lightbox.lightbox { border-radius:0; height:100dvh; margin:0; }
  .photo-viewer-toolbar { padding-top:max(8px,env(safe-area-inset-top)); }
  .photo-viewer-frame { height:calc(100dvh - 68px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:no-preference) {
  .preview-steps button { transition:transform 130ms ease, background-color 130ms ease; }
  .preview-steps button:active { transform:scale(.98); }
}

/* Soloim 2 shared components. State, permissions and motion stay in their existing modules. */
body { -webkit-font-smoothing:antialiased; }
body :is(h1,h2,h3) { text-wrap:balance; }
body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=file]) { border-color:var(--control-line); border-radius:12px; background:var(--surface); font-size:16px; line-height:1.5; }
body :is(input,select,textarea):focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
body :is(.primary,.secondary,.danger) { min-height:44px; border-radius:12px; font-weight:650; }
body .secondary { border-color:var(--line); background:var(--surface); color:var(--ink); }
body .danger { color:var(--danger); }
body :is(.tab,.chip,.icon-button) { min-height:44px; }
body .tabs { gap:8px; border-bottom:1px solid var(--line); }
body .tab { padding:10px 14px; border-radius:10px 10px 0 0; color:var(--muted); }
body .tab.active { color:var(--accent); border-color:var(--accent); background:var(--soft); }
body dialog:not(.lightbox) { border:1px solid var(--line); border-radius:20px; box-shadow:0 24px 80px #17281f26; }
body dialog::backdrop { background:#17281f66; }
body .dialog-top { border-bottom:1px solid var(--line); padding:18px 24px; }
body .dialog-top h2 { font-size:19px; letter-spacing:-.025em; }
body .dialog-body { padding:24px; }
body .empty-state { background:transparent; border:0; padding:40px 16px; }
body .empty-state h2 { font-size:22px; }
body[data-authenticated=true] .topbar { border-bottom:1px solid var(--line); background:var(--surface); }
body[data-authenticated=true] .navigation { background:var(--surface); }
body[data-authenticated=true] .page-heading h1 { font-weight:750; line-height:1.25; }
body[data-authenticated=true] .page-heading p { font-size:14px; line-height:1.7; }
body[data-authenticated=true] .browse-heading { padding-top:12px; width:100%; }
body[data-authenticated=true][data-route=browse] .browse-heading h1 { font-size:26px; }
body[data-authenticated=true] .discovery-copy { text-align:left; }
body[data-authenticated=true] .discovery-copy .connection { justify-content:flex-start; text-align:left; }
body[data-authenticated=true] .photo-frame { border-radius:20px; }
body[data-authenticated=true] .curiosity-first-guide { position:static; transform:none; width:100%; max-width:940px; margin:0 0 16px; padding:12px 14px; box-shadow:none; background:var(--surface); }
body[data-authenticated=true] .curiosity-first-guide strong { font-size:13px; }
body[data-authenticated=true] .curiosity-first-guide p { font-size:12px; }
body[data-authenticated=true] :is(.ux-courage-action,.courage-action,.room-online-organizers) { background:transparent; box-shadow:none; }
body[data-authenticated=true] .concept-room-card { border:1px solid var(--line); border-radius:16px; box-shadow:none; padding:24px; }
body[data-authenticated=true] .concept-room-card h2 { font-size:23px; letter-spacing:-.03em; }
body[data-authenticated=true] .concept-room-card .room-cover { margin-bottom:12px; }
body[data-authenticated=true] .concept-room-card footer { border-top:1px solid var(--line); padding-top:16px; }
body[data-authenticated=true] .concept-room-hero { padding:20px 0; background:transparent; border:0; border-radius:0; }
body[data-authenticated=true] .concept-members-panel { padding:20px 0; border:0; background:transparent; }
body[data-authenticated=true] :is(.detail-side,.setting-row) { box-shadow:none; }
body[data-authenticated=true] .setting-row { padding-block:20px; border-bottom:1px solid var(--line); }
body[data-authenticated=true] .interest-item { background:transparent; border-radius:0; border-bottom:1px solid var(--line); padding-block:20px; }
body[data-authenticated=true] .interest-item>img { border-radius:14px; }
body[data-authenticated=true] .chat-layout { border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--surface); }
body[data-authenticated=true] .chat-list { padding:8px; background:var(--surface); }
body[data-authenticated=true] .chat-list .mini-person { padding:14px 12px; border-radius:12px; }
body[data-authenticated=true] .chat-list .mini-person.active { background:var(--soft); }
body[data-authenticated=true] .chat-header { border-bottom:1px solid var(--line); }
body[data-authenticated=true] .messages { background:var(--bg); }
body[data-authenticated=true] .message>p { padding:12px 15px; line-height:1.65; border:1px solid var(--line); box-shadow:none; }
body[data-authenticated=true] .message.mine>p { background:#e6efe7; color:var(--ink); border-color:transparent; }
body[data-authenticated=true] .composer { background:var(--surface); border-top:1px solid var(--line); gap:8px; }
body[data-authenticated=true] .composer input { background:var(--bg); border:1px solid var(--line); border-radius:14px; }
body[data-authenticated=true] .notification-item { border-radius:0; background:transparent; border-bottom:1px solid var(--line); }
body[data-authenticated=true] .notification-item.unread { background:var(--soft); }
body .room-finale-entry { background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:16px; padding:20px; }
body .room-finale-entry-copy h2 { font-size:22px; }
body .room-finale-entry-link { border-radius:12px; background:var(--accent); }
body .room-finale-entry-icon { background:var(--soft); color:var(--accent); }
body :is(.room-reopening,.experience-approvals) + .room-finale-entry .room-finale-entry-link { border:1px solid var(--line); background:var(--surface); color:var(--accent); }
body .experience-profile-preview { line-height:1.75; }
body .experience-profile-preview>section { padding-block:20px; border-top:1px solid var(--line); }
body .experience-preview-portrait { border-radius:16px; }
body .concept-profile-editor .editor-section-icon { background:transparent; color:var(--ink); border:1px solid var(--line); border-radius:12px; }
body .concept-profile-editor .editor-section-note { font-size:13px; }
body .concept-profile-editor .editor-save-bar { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:10px; box-shadow:0 6px 24px #17281f0a; }
body .concept-profile-editor :is(.photo-entry>label,.field-note) { font-size:12px; }
body .concept-profile-layout .text-tags>span { background:var(--bg); color:var(--muted); border:1px solid var(--line); border-radius:8px; }
body .concept-profile-layout .profile-section h3 { font-size:16px; }
body .public-landing .landing-copy h1 { font-size:clamp(30px,4vw,44px); letter-spacing:-.04em; }
body .public-landing .landing-eyebrow { color:var(--muted); }
@media(max-width:767px) {
 body[data-authenticated=true] .page-heading h1 { font-size:28px; }
 body[data-authenticated=true] .concept-room-card { padding:20px; }
 body[data-authenticated=true] .chat-layout { border-radius:16px; }
 body[data-authenticated=true] .curiosity-first-guide { margin-bottom:12px; }
 body[data-authenticated=true] .discovery-photo .photo-frame>button:first-child { height:clamp(230px,calc(100dvh - 404px - env(safe-area-inset-bottom)),510px); }
 body[data-authenticated=true][data-route=browse] #main { display:flex; flex-direction:column; }
 body[data-authenticated=true] .curiosity-first-guide { order:2; margin-top:20px; }
 body .dialog-body { padding:20px; }
 body .concept-profile-editor input,body .concept-profile-editor select,body .concept-profile-editor textarea { font-size:16px; }
 body .concept-profile-editor .editor-save-bar { border-radius:14px; }
}
@media(prefers-reduced-motion:no-preference) {
 body :is(.tab,.chip,.secondary,.icon-button) { transition:background-color 140ms ease,border-color 140ms ease; }
}
body[data-authenticated=true] .discovery-actions>button:not(.deck-next) { flex-direction:row; }
@media(min-width:768px) { body[data-authenticated=true] .discovery-copy .discovery-actions { order:-1; padding-top:0; margin-bottom:16px; } }
body[data-authenticated=true] .discovery-actions .action-label { min-width:0; padding-inline:2px; white-space:normal; overflow-wrap:anywhere; }

/* Explicit pass review shares the introduction hierarchy without restoring it. */
.passed-screen { max-width: 760px; margin-inline: auto; }
.passed-screen .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.passed-screen .passed-list { margin-top: 24px; }
.passed-screen .passed-person button { min-height: 44px; }
.passed-screen .passed-person > .courage-action { grid-column: 1 / -1; }

/* Shared member navigation, controls and page structure. */
body[data-authenticated="false"]:not([data-onboarding="true"], [data-recovering="true"]) .topbar .brand-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
body .topbar .app-brand { min-height: 44px; }
body .topbar .feedback-trigger { min-height: 44px; min-width: 44px; }
body[data-authenticated="true"] .topbar .top-actions > button { min-width: 44px; min-height: 44px; }
body[data-authenticated="true"] .topbar .top-actions > #topAccount { border-radius: 12px; }
body[data-authenticated="true"] .navigation nav { grid-template-columns: minmax(0, 1fr); }
body[data-authenticated="true"] #navigation { display: grid; gap: 6px; min-width: 0; }
body[data-authenticated="true"] #navigation .nav-link { min-width: 0; font-weight: 650; }
body[data-authenticated="true"] #navigation .nav-link.active { font-weight: 750; }
body[data-authenticated="true"] #main .page-heading {
  padding-top: 0;
  margin-bottom: clamp(16px, 2.5vw, 28px);
}
body[data-authenticated="true"] #main .page-heading .heading-row { gap: 12px; }
body[data-authenticated="true"] #main .page-heading h1 {
  min-width: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.21;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body[data-authenticated="true"] #main .page-heading p { margin-top: 8px; }
body #main { scroll-margin-top: 72px; }
body .workspace :is(button, a, select, input, textarea, summary):focus-visible,
body #navigation :is(button, a):focus-visible,
body dialog :is(button, a, select, input, textarea, summary):focus-visible {
  outline: 2px solid var(--focus, var(--accent));
  outline-offset: 3px;
  scroll-margin-block: 80px 112px;
}
body #main .tab,
body #main :is(.inbox-refresh, .room-back-link, .chat-back) { min-height: 44px; }
body #main .empty-state h3 { color: var(--ink); font-size: clamp(18px, 2vw, 22px); line-height: 1.35; }
body #main .empty-state p { max-width: 360px; margin-inline: auto; line-height: 1.65; }
body #toast button { padding: 6px 4px; min-height: 44px; }
body #toast:empty { padding: 0; }

@media (max-width: 767px) {
  body[data-authenticated="true"] #navigation { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  body[data-authenticated="true"] #navigation .nav-link { padding-inline: 4px; font-size: 12px; }
  body[data-authenticated="true"] #navigation .nav-link svg { width: 21px; height: 21px; }
  body[data-authenticated="true"] .workspace .topbar { padding-inline: 12px; gap: 4px; }
  body[data-authenticated="true"] .workspace .topbar .brand-tools { gap: 0; }
  body[data-authenticated="true"] .workspace .topbar .app-brand { font-size: clamp(14px, 4.1vw, 16px); }
  body[data-authenticated="true"] .workspace .topbar .top-actions { gap: 0; }
  body #main :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea),
  body dialog :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea) { font-size: 16px; }
  body[data-authenticated="true"] #toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
