/* ==========================================================================
   Raduno — base + shell
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* The browser's own [hidden] rule is a bare attribute selector, so any class
   that sets display wins over it. .shell and .gate both do, which meant the
   signed-out gate and the app rendered on top of each other. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--t-md);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--texture) 0.75px, transparent 0.75px);
  background-size: 8px 8px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue-ink); }

img, svg { max-width: 100%; }

:where(button, input, select, textarea) { font: inherit; color: inherit; }

/* One focus treatment, everywhere, always visible. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--ink-invert);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: var(--s4); }

/* #main takes focus on every route change so screen readers land in the new
   view. It is a container, not a control, so it gets no ring. */
#main:focus, #main:focus-visible { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.75; }

/* ---- Shell --------------------------------------------------------------- */

.shell { display: flex; min-height: 100vh; }

.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  padding: var(--s6) clamp(var(--s4), 3vw, var(--s7)) var(--s8);
  width: 100%;
  max-width: 1180px;
}

/* ---- Sidebar ------------------------------------------------------------- */

.sidebar {
  width: 272px;
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: var(--s5) var(--s3) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 0 var(--s3);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--on-accent-bg);
  color: var(--on-accent-fg);
  font-size: 1.1rem;
  border-radius: var(--r-sm);
}

.side-profile {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: var(--tap);
  padding: var(--s2) var(--s3);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
}
.side-profile { text-decoration: none; color: inherit; }
.side-profile:hover { background: var(--surface-2); }
.side-profile .who { min-width: 0; flex: 1; }
.side-profile .name,
.side-profile .sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-profile .name { font-weight: 600; font-size: var(--t-sm); line-height: 1.3; }
.side-profile .sub { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.3; }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: var(--s3) var(--s3) var(--s2);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: var(--tap);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}
.nav-item .icon { color: currentColor; }
.nav-count {
  margin-left: auto;
  font-size: var(--t-xs);
  font-weight: 700;
  background: var(--on-accent-bg);
  color: var(--on-accent-fg);
  padding: 1px var(--s2);
  border-radius: var(--r-pill);
}

.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: var(--s4) var(--s3) 0;
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.side-foot .icon { color: var(--green-ink); margin-top: 2px; }
.side-foot strong { display: block; color: var(--ink-2); font-size: var(--t-xs); }

/* ---- Topbar -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) clamp(var(--s4), 3vw, var(--s7));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
}
.topbar .greeting {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin-right: auto;
}
.topbar .greeting b { color: var(--ink); font-weight: 600; }

.icon-btn {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

/* ---- Primitives ---------------------------------------------------------- */

.avatar {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  /* The tone backgrounds below are fixed pastels in both themes, so the
     initials take a fixed dark ink rather than the themed one. */
  color: #10201F;
  background: #BCCCC8;
}
.avatar.sm { width: 30px; height: 30px; font-size: 0.7rem; }
.avatar.lg { width: 52px; height: 52px; font-size: var(--t-sm); }
/* Fixed pastels in both themes, all light enough for the dark initials above.
   Named for the palette they come from, not for a hue wheel. */
.tone-sea   { background: #6FBDD4; }
.tone-moss  { background: #A8C77E; }
.tone-sky   { background: #9BB8EE; }
.tone-fern  { background: #5CBBA0; }
.tone-slate { background: #93AAB8; }
.tone-aqua  { background: #7ED9C8; }
.tone-stone { background: #C2CFB8; }

.stack-faces { display: flex; align-items: center; }
.stack-faces .avatar { margin-right: -8px; border: 2px solid var(--surface); }
.stack-faces .avatar:not(:last-child) { padding-right: 8px; }
.stack-faces .avatar:last-child { margin-right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: var(--tap);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--speed) ease, background var(--speed) ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--on-accent-bg);
  border-color: var(--on-accent-bg);
  color: var(--on-accent-fg);
}
.btn-primary:hover {
  background: var(--on-accent-bg-hover);
  border-color: var(--on-accent-bg-hover);
}

.btn-quiet { border-color: transparent; background: none; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }

.btn-sm { min-height: 36px; padding: var(--s1) var(--s3); font-size: var(--t-xs); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 3px var(--s2);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chip .icon { width: 0.95em; height: 0.95em; flex: none; }
.post-who, .post-meta, .reactions, .reply .bubble, .event-main { min-width: 0; }
.post-who { flex: 1; }
.post-meta > *, .row > * { min-width: 0; max-width: 100%; }
.post-body, .post-who .name, .reply .bubble, .reactions .names, .circle-card h3, .album-meta h3 { overflow-wrap: anywhere; }

/* A link somebody typed into a post, a reply, a comment or a message. It keeps
   the underline the browser gives it: inside .msg.mine the surrounding text is
   already --blue-ink, so colour alone could not tell a link from a sentence.
   An address is one long word, so it wraps rather than widening the card. */
.post-body a, .reply .bubble a, .photo-comment p a, .msg a {
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.shared-album { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto 58px; gap: 12px; width: 100%; margin-top: var(--s4); padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; }
.shared-album-cover { grid-row: 1 / 3; min-height: 120px; border-radius: var(--r-sm); background: var(--surface-3); overflow: hidden; }
.shared-album-cover img, .shared-album-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shared-album-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.shared-album strong { font-family: var(--font-display); font-size: var(--t-lg); overflow-wrap: anywhere; }
.shared-album-copy > span { color: var(--ink-2); font-size: var(--t-sm); }
.shared-album-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; min-width: 0; }
.shared-album-previews > span { min-width: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); }
.shared-album:hover { background: var(--accent-soft); }
@media (max-width: 520px) { .shared-album { grid-template-columns: 96px minmax(0, 1fr); } .shared-album-cover { min-height: 96px; } }
.post-foot .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 560px) {
  .post-foot .reactions { flex-basis: 100%; }
  .post-meta .chip { border-radius: var(--r-md); align-items: flex-start; }
  .post-meta .chip .icon { margin-top: 3px; }
}
.chip-green { background: var(--green-soft); color: var(--green-ink); }
.chip-blue  { background: var(--blue-soft);  color: var(--blue-ink); }
.chip-lichen { background: var(--lichen-soft); color: var(--ink-2); }
.chip-coral { background: var(--accent-soft); color: var(--accent-ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--s5);
}

/* The heavy frame is reserved for controls that decide who can see your
   things. Do not reuse it for ordinary emphasis. */
.framed {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-frame);
  background: var(--surface);
}

.eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: var(--s2);
}

.view-head { margin-bottom: var(--s5); max-width: var(--measure); }
.view-head h1 { font-size: var(--d-md); }
.view-head .lede {
  color: var(--ink-2);
  font-size: var(--t-md);
  margin-top: var(--s3);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin: var(--s7) 0 var(--s4);
  flex-wrap: wrap;
}
.section-head h2 { font-size: var(--d-sm); }
.section-head p { color: var(--ink-3); font-size: var(--t-sm); }

.feed-date {
  margin: var(--s6) 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
}

hr.rule { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s5);
  transform: translate(-50%, 12px);
  z-index: 60;
  background: var(--ink);
  color: var(--ink-invert);
  padding: var(--s3) var(--s5);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed) ease, transform var(--speed) ease;
  max-width: min(92vw, 34rem);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Composer — the audience is chosen before a word is typed
   ========================================================================== */

.card.composer { padding: 0; overflow: hidden; }

.composer-audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.composer-audience label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.audience-control {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0 var(--s3);
  min-height: var(--tap);
}
.audience-control .icon { color: var(--ink); flex: none; }
.audience-control select {
  min-width: 0;
  width: 100%;
  flex: 1;
  text-overflow: ellipsis;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: var(--t-md);
  padding: var(--s2) var(--s1);
  cursor: pointer;
  min-height: 40px;
}

.audience-note {
  flex-basis: 100%;
  font-size: var(--t-sm);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.audience-note .icon { color: var(--green-ink); flex: none; }

.composer-body { display: flex; gap: var(--s3); padding: var(--s5); }
.composer-body textarea {
  min-width: 0;
  width: 100%;
  flex: 1;
  min-height: 5.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: var(--s3);
  resize: vertical;
  line-height: var(--lh-body);
}
.composer-body textarea::placeholder { color: var(--ink-3); }

.composer-hint {
  margin: 0;
  padding: 0 var(--s5) var(--s3);
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
}

.favorite-group { display: flex; align-items: center; justify-content: center; width: min(100%, 220px); min-height: 52px; padding: 12px var(--s3); border: 0; border-radius: 9px; background: #89D1E8; box-shadow: none; transition: transform .18s ease, background .18s ease; }
.favorite-group:hover { transform: translateY(-1px); background: #292a30; }
.album-card.favorite-group { display: flex; grid-template-columns: none; overflow: visible; }
.favorite-group:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.favorite-group-mark { display: grid; place-items: center; width: 24px; height: 24px; color: #061E28; font-size: .9rem; }
.favorite-group-open { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); padding: 0; border: 0; background: transparent; color: #061E28; text-align: center; }
.favorite-group-open strong { color: #061E28; font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.js-react { transition: transform var(--speed) ease, background var(--speed) ease; }
.js-react.heart-pop { animation: heart-pop 360ms cubic-bezier(.2,.8,.3,1); }
@keyframes heart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.22) rotate(-4deg); } 75% { transform: scale(.94) rotate(2deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .js-react.heart-pop { animation: none; } }

.composer-foot {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  padding: 0 var(--s5) var(--s5);
}
.composer-foot .spacer { flex: 1; }

/* ==========================================================================
   Feed
   ========================================================================== */

.feed { display: flex; flex-direction: column; gap: var(--s4); }

.post { padding: var(--s5); }
.post-head { display: flex; gap: var(--s3); align-items: flex-start; }
.post-who { flex: 1; min-width: 0; }
.post-who .name { font-weight: 600; }
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: 2px;
}
.post-body {
  margin-top: var(--s4);
  max-width: var(--measure);
  white-space: pre-wrap;
}

.photo {
  margin-top: var(--s4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
  max-width: 34rem;
  overflow: hidden;
  position: relative;
}
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(0 0 0 / 6%), transparent 22%);
}
.photo::after {
  content: attr(data-caption);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s5) var(--s4) var(--s3);
  font-size: var(--t-xs);
  font-weight: 600;
  color: #FFF8EF;
  background: linear-gradient(transparent, rgb(0 0 0 / 62%));
}
/* Stand-in artwork. Flat bands read as a horizon and stay quiet behind the
   text. Replace with real access-checked image reads. */
.art-lake {
  background: linear-gradient(174deg,
    #CFE4E6 0 26%, #8FC0C6 26% 38%, #3C8496 38% 56%,
    #276874 56% 70%, #1A4A54 70% 82%, #5F8558 82%);
}
.art-table {
  background: linear-gradient(174deg,
    #6B5A4E 0 30%, #A98A68 30% 44%, #E2D6BA 44% 62%,
    #C6C4A4 62% 76%, #74905F 76%);
}
.art-porch {
  background: linear-gradient(174deg,
    #1E3550 24%, #3B5A7C 24% 38%, #7794AE 38% 48%,
    #C9A175 48% 66%, #8E7A5C 66% 80%, #3F4A44 80%);
}
.art-cake {
  background: linear-gradient(174deg,
    #C9A2AE 0 28%, #E0BEC4 28% 40%, #F0E6D4 40% 60%,
    #CBD3BE 60% 74%, #8DAE92 74%);
}
.art-trail {
  background: linear-gradient(174deg,
    #C6DCD2 0 22%, #9CBF97 22% 36%, #6E9A6B 36% 52%,
    #4E7A55 52% 70%, #2F4A38 70%);
}

.post-foot {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.post-foot .spacer { flex: 1; min-width: var(--s2); }

/* Faces, never a number. A count under a family photo turns it into a score. */
.reactions { display: flex; align-items: center; gap: var(--s2); }
.reactions .stack-faces .avatar { border-color: var(--surface); }
.reactions .names { font-size: var(--t-xs); color: var(--ink-3); }

.replies { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.reply { display: flex; gap: var(--s3); }
.reply .bubble {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: var(--s2) var(--s3);
  font-size: var(--t-sm);
  max-width: var(--measure);
}
.reply .bubble .name { font-weight: 600; display: block; font-size: var(--t-xs); }

.feed-end {
  text-align: center;
  padding: var(--s7) var(--s5);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--ink-2);
}
.feed-end h3 { font-size: var(--d-sm); margin-bottom: var(--s2); }
.feed-end p { font-size: var(--t-sm); max-width: 44ch; margin: 0 auto; }

/* ==========================================================================
   Circles, albums, gatherings
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
#albumGrid { grid-template-columns: 1fr; }

.circle-card { display: flex; flex-direction: column; gap: var(--s3); }
.circle-card h3 { font-size: var(--t-xl); }
.circle-card .desc { font-size: var(--t-sm); color: var(--ink-2); }
.circle-card .who {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
/* Scoped to its own class: a bare descendant selector here also matched the
   avatar spans inside .stack-faces and overrode their text colour. */
.circle-card .who-names { font-size: var(--t-xs); color: var(--ink-2); }

.visibility-strip {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  font-size: var(--t-xs);
  font-weight: 600;
}
.visibility-strip .icon { color: var(--ink); }

.people-list { display: flex; flex-direction: column; }
.person-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.person-row:last-child { border-bottom: 0; }
.person-row .who { flex: 1; min-width: 12rem; }
.person-row .who .name { font-weight: 600; }
.person-row .who .vouch { font-size: var(--t-xs); color: var(--ink-3); }

.album-card { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(190px, 30%) minmax(0, 1fr); align-items: stretch; }
.album-art { aspect-ratio: 4 / 3; }
.album-meta { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.album-meta h3 { font-size: var(--t-lg); }
.album-meta .sub { font-size: var(--t-xs); color: var(--ink-3); }
.album-meta .row { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); }
.album-meta .row { flex-wrap: wrap; }

.event-card { display: flex; gap: var(--s4); align-items: flex-start; flex-wrap: wrap; }
.event-date {
  width: 68px; flex: none;
  text-align: center;
  border-radius: var(--r-md);
  background: var(--lichen-soft);
  border: 1px solid var(--line);
  padding: var(--s2);
}
.event-date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--accent-ink);
}
.event-date span { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.event-main { flex: 1; min-width: 15rem; }
@media (max-width: 560px) { .event-main, .person-row .who { min-width: 0; overflow-wrap: anywhere; } }
.event-main h3 { font-size: var(--t-xl); }
.event-main .when { font-size: var(--t-sm); color: var(--ink-2); margin-top: var(--s1); }
.rsvp { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.rsvp .btn[aria-pressed="true"] {
  background: var(--green-soft);
  border-color: var(--green-ink);
  color: var(--green-ink);
}

/* ==========================================================================
   Messages
   ========================================================================== */

.messages-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: var(--s4);
  align-items: start;
}
.thread-list { padding: var(--s2); }
.thread-item {
  display: flex;
  gap: var(--s3);
  width: 100%;
  text-align: left;
  padding: var(--s3);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: none;
  cursor: pointer;
}
.thread-item:hover { background: var(--surface-2); }
.thread-item[aria-current="true"] { background: var(--accent-soft); }
.thread-item .who { flex: 1; min-width: 0; display: block; }
.thread-item .chip { flex: none; align-self: center; }
.thread-item .name { display: block; font-weight: 600; font-size: var(--t-sm); }
.thread-item .snip {
  display: block;
  font-size: var(--t-xs);
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-view { display: flex; flex-direction: column; gap: var(--s4); min-height: 24rem; }
.thread-head { display: flex; align-items: center; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.msg-log { display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.msg {
  max-width: 34rem;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  font-size: var(--t-sm);
}
.msg.mine { align-self: flex-end; background: var(--blue-soft); color: var(--blue-ink); }
.msg time { display: block; font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--s1); }
.msg.mine time { color: var(--blue-ink); }

.msg-compose { display: flex; gap: var(--s2); }
.msg-compose input {
  flex: 1;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 0 var(--s3);
}

.notice {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: var(--t-sm);
}
.notice .icon { flex: none; margin-top: 2px; }
.notice strong { display: block; }

/* ==========================================================================
   Move in (import)
   ========================================================================== */

.steps { display: flex; flex-direction: column; gap: var(--s4); }
.step { display: flex; gap: var(--s4); }
.step-num {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: var(--t-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.step[data-state="done"] .step-num { background: var(--green-soft); color: var(--green-ink); border-color: var(--green-ink); }
.step[data-state="active"] .step-num { background: var(--on-accent-bg); color: var(--on-accent-fg); border-color: var(--on-accent-bg); }
.step-main { flex: 1; min-width: 0; }
.step-main h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.step-main p { font-size: var(--t-sm); color: var(--ink-2); max-width: var(--measure); }

.dropzone {
  margin-top: var(--s3);
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
  padding: var(--s6);
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  width: 100%;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone strong { display: block; font-size: var(--t-md); }
.dropzone span { font-size: var(--t-sm); color: var(--ink-2); }

.import-list { display: flex; flex-direction: column; margin-top: var(--s3); }
.import-destination {
  display: flex;
  align-items: end;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s4);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.import-destination .field { flex: 1 1 18rem; }
.import-destination .sub { flex-basis: 100%; margin: 0; }
.import-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s4) var(--s2);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.import-item:last-child { border-bottom: 0; }
.import-item input[type="checkbox"] {
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
  cursor: pointer;
}
.import-item .copy { flex: 1; min-width: 0; }
.import-item .copy strong { display: block; }
.import-item .copy .sub { font-size: var(--t-sm); color: var(--ink-2); }
.import-item .caveat {
  display: block;
  margin-top: var(--s2);
  font-size: var(--t-xs);
  color: var(--ink-3);
  border-left: 2px solid var(--line);
  padding-left: var(--s3);
  max-width: 56ch;
}

.discard-list { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.discard {
  font-size: var(--t-xs);
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  text-decoration: line-through;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  font-size: var(--t-sm);
  cursor: pointer;
}
.toggle-row input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }

/* ==========================================================================
   Your data
   ========================================================================== */

.data-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.data-table caption { text-align: left; color: var(--ink-3); font-size: var(--t-xs); padding-bottom: var(--s3); }
.data-table th, .data-table td {
  text-align: left;
  padding: var(--s3) var(--s3) var(--s3) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th { font-weight: 600; color: var(--ink-2); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.never-list { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.never-list li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.never-list .icon { color: var(--accent-ink); flex: none; margin-top: 3px; }
.never-list.affirm .icon { color: var(--green-ink); }

.danger-row { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); }
.btn-danger { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn-danger:hover { background: var(--accent-soft); }

/* ==========================================================================
   Mobile tab bar. Labels stay at every width.
   ========================================================================== */

.tabbar { display: none; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { padding-bottom: calc(var(--s8) + 60px); }
  .main { padding-bottom: calc(var(--s8) + 60px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .messages-layout { grid-template-columns: 1fr; }

  .tabbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 60px;
    text-decoration: none;
    color: var(--ink-3);
    font-size: 0.75rem;
    font-weight: 600;
  }
  .tabbar a[aria-current="page"] { color: var(--accent-ink); }
  .tabbar .icon { width: 1.4em; height: 1.4em; }
}

@media (max-width: 560px) {
  .main { padding-top: 24px; }
  .topbar { gap: 4px; padding: 10px 16px; }
  .topbar .greeting { flex: 1; min-width: 0; line-height: 1.4; }
  .topbar .icon-btn { flex: 0 0 44px; }
  .view-head { margin-bottom: 20px; }
  .view-head h1 { font-size: clamp(1.55rem, 6.4vw, 1.85rem); line-height: 1.15; }
  .view-head .lede { margin-top: 12px; line-height: 1.5; }
  .composer-audience { gap: 10px; }
  .composer-audience > label { flex-basis: 100%; }
  .audience-control { width: 100%; }
  .audience-note { align-items: flex-start; line-height: 1.45; }
  .audience-note .icon { margin-top: 2px; }
  .composer-body { padding-block: 16px; }
  .composer-foot { padding-bottom: 16px; }
  .field.grow { min-width: 0; flex-basis: 100%; }
  input, select, textarea { font-size: 16px; }
  .tabbar a { font-size: 13px; min-width: 0; }
  .composer-body, .composer-foot, .composer-audience { padding-inline: var(--s4); }
  .card { padding: var(--s4); }
  .post { padding: var(--s4); }
  .composer-body > .avatar { display: none; }
  .photo { max-width: none; }
  .grid { grid-template-columns: 1fr; }
  .topbar .greeting { font-size: var(--t-xs); }
}

/* ==========================================================================
   Sign in, sign up, and joining by invite
   ========================================================================== */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s5);
}
.gate-panel {
  width: min(28rem, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.gate-brand { padding: 0; font-size: var(--t-xl); }
.gate-title { font-size: var(--d-md); }
.gate-sub { color: var(--ink-2); font-size: var(--t-sm); margin-top: calc(var(--s3) * -1); }
.gate-form { display: flex; flex-direction: column; gap: var(--s4); }
.gate-submit { width: 100%; }
.gate-switch { font-size: var(--t-sm); color: var(--ink-2); text-align: center; }
.gate-foot {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  font-size: var(--t-xs);
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
}
.gate-foot .icon { color: var(--green-ink); flex: none; margin-top: 1px; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: var(--s1); }
.field > span:first-child { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.field.grow { flex: 1; min-width: 11rem; }

.field input,
.field select,
.field textarea {
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 0 var(--s3);
  color: var(--ink);
  width: 100%;
}
.field textarea { padding: var(--s3); min-height: 5rem; }
.field input::placeholder { color: var(--ink-3); }

.inline-form {
  display: flex;
  gap: var(--s3);
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: var(--s3);
}
.stack-form { display: flex; flex-direction: column; gap: var(--s2); }

.btn-link {
  border: 0;
  background: none;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--t-sm);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: var(--s1);
}

.form-error {
  font-size: var(--t-sm);
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: var(--s3);
}

.empty { text-align: left; }
.empty h2 { font-size: var(--d-sm); margin-bottom: var(--s3); }
.empty p { color: var(--ink-2); max-width: var(--measure); }

.count {
  font-weight: 700;
  font-size: var(--t-xs);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.is-busy { opacity: 0.6; pointer-events: none; }
.welcome-dialog { box-sizing: border-box; width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(20px, 5vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); }
.welcome-dialog::backdrop { background: rgb(0 0 0 / .65); }
.welcome-top, .welcome-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.welcome-top > span { font-size: 12px; letter-spacing: .1em; }
#welcome-step { margin-top: 28px; color: var(--ink-2); }
#welcome-title { font-family: var(--font-display); font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 16px 0; }
#welcome-lead { font-size: 23px; line-height: 1.4; }
#welcome-copy { font-size: 20px; line-height: 1.65; margin: 20px 0 32px; }
.welcome-dialog .btn { min-height: 48px; font-size: 18px; }
.welcome-open { cursor: pointer; color: var(--ink); background: transparent; border: 0; font: inherit; text-align: left; }
@media (max-width: 900px) { .tabbar { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tabbar .welcome-open { min-width: 0; padding: 4px; text-align: center; font-size: .75rem; font-weight: 600; min-height: 60px; } }

/* ==========================================================================
   Photo attachment
   ========================================================================== */

.attach {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  margin: 0 var(--s5) var(--s4);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.attach img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex: none;
  background: var(--surface-3);
}
.attach-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); }
.attach-meta strong { font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-meta span { font-size: var(--t-xs); color: var(--green-ink); font-weight: 600; }

.post .photo img,
.album-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--s2);
  padding: 0 var(--s4) var(--s4);
  grid-column: 2;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--surface-3);
}
.album-cover-hint { color: var(--ink-2); font-size: var(--t-xs); align-self: center; }
.album-thumb.is-cover { outline: 3px solid var(--accent); outline-offset: -3px; position: relative; }
.album-thumb .cover-mark { position: absolute; left: 7px; bottom: 7px; padding: 3px 7px; border-radius: 999px; background: var(--accent); color: var(--paper); font-size: 11px; font-weight: 700; }
@media (max-width: 650px) {
  .album-card { display: block; }
  .album-art { aspect-ratio: 16 / 9; }
  .photo-grid { grid-column: auto; }
}

/* ==========================================================================
   Import results
   ========================================================================== */

.import-item input[disabled] + .copy { opacity: 0.55; }
.import-item input[disabled] { cursor: default; }

.scan {
  margin-top: var(--s3);
  font-size: var(--t-sm);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.invite-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-xs);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s2) var(--s3);
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

@media (max-width: 560px) {
  .attach { margin-inline: var(--s4); flex-wrap: wrap; }
  .gate-panel { padding: var(--s5); }
}
/* Import review uses the same surfaces and controls as the album page. */
#photoImportDialog { padding: 28px; background: var(--paper); color: var(--ink); border: 1px solid currentColor; }
#photoImportDialog::backdrop { background: rgb(0 0 0 / 55%); }
#photoImportDialog p { margin-block: 16px; }
#photoImportReview { max-height: 240px; overflow: auto; }
#photoImportReview label { min-height: 44px; overflow-wrap: anywhere; }
#photoImportReview input { flex-shrink: 0; }
#photoImportReview label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
#photoImportReview input { width: 20px; height: 20px; margin: 2px 0 0; }
@media (max-width: 560px) {
  #photoImportDialog { padding: 16px; max-height: calc(100dvh - 32px); }
  #photoImportDialog input[type="file"] { padding: 10px; font-size: 16px; min-width: 0; }
  .viewer-header { align-items: flex-start; gap: 8px; }
  .viewer-header .btn { padding-inline: 10px; }
  .photo-viewer .viewer-header h2 { font-size: 16px; line-height: 1.3; }
  .photo-viewer footer .btn { font-size: 14px; }
}
/* Album browsing and an image-first, keyboard-accessible modal viewer. */
.album-viewer, .photo-viewer { background: var(--paper); color: var(--ink); border: 0; padding: 24px; }
.album-viewer { width: min(1100px, 96vw); max-width: 96vw; height: 90dvh; max-height: 94dvh; overflow: auto; }
.album-viewer::backdrop, .photo-viewer::backdrop { background: rgb(0 0 0 / 80%); }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.viewer-header h2 { font-size: 22px; overflow-wrap: anywhere; }
.album-viewer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.album-viewer-grid.bulk-mode .album-thumb { cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; }
.album-viewer-grid.bulk-mode .album-thumb.is-selected { outline-color: var(--accent); background: var(--accent-soft); }
.album-viewer-grid.bulk-mode .album-thumb.is-selected::after { content: '✓'; position: absolute; top: var(--s2); right: var(--s2); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent-fg); font-weight: 700; }
.album-thumb { display: block; width: 100%; padding: 0; background: var(--paper); color: var(--ink); border: 1px solid currentColor; cursor: pointer; text-align: left; }
.album-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.album-thumb span { display: block; padding: 8px; font-size: 15px; }
.photo-viewer { width: min(1200px, 96vw); max-width: 96vw; height: 92dvh; max-height: 92dvh; margin: auto; overflow: hidden; }
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; gap: 12px; }
.photo-viewer .viewer-header { margin: 0; min-width: 0; }
.photo-viewer .viewer-header h2 { font-size: 18px; }
.photo-viewer .viewer-header .btn { flex-shrink: 0; }
.viewer-image { position: relative; min-height: 0; min-width: 0; overflow: hidden; container-type: size; }
.viewer-image img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
#photoViewerStatus { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
#photoViewerCaption { max-height: 3em; overflow: auto; }
.photo-viewer footer { border-top: 1px solid currentColor; padding-top: 12px; }
.viewer-image img[hidden] { display: none; }

/* A turned preview has to fit a box whose sides have swapped: at a quarter
   turn the photo's width runs down the container's height. Container query
   units read those two lengths, so the preview needs no measuring in script. */
.viewer-image img { transform: rotate(var(--turn, 0deg)); transition: transform .18s ease; }
.viewer-image img[data-turn="90"], .viewer-image img[data-turn="270"] {
  inset: auto; top: 50%; left: 50%; width: 100cqh; height: 100cqw;
  /* The upright rule caps the photo at the container's own height, which is
     the wrong side once the photo is turned across it. */
  max-width: none; max-height: none;
  transform: translate(-50%, -50%) rotate(var(--turn));
}
@media (prefers-reduced-motion: reduce) { .viewer-image img { transition: none; } }

.photo-turn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid currentColor; padding-top: 12px; }
.photo-turn p { margin: 0; font-size: 15px; min-width: 0; flex: 1 1 100%; }
.photo-turn p:empty { display: none; }
@media (max-width: 500px) { .album-viewer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .photo-viewer, .album-viewer { padding: 12px; } }
.photo-viewer-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; gap: 20px; }
.photo-social { overflow: auto; min-height: 0; border-left: 1px solid currentColor; padding-left: 16px; }
.photo-social h3, .photo-social form { margin-top: 20px; }
.photo-social p { font-size: 15px; overflow-wrap: anywhere; }
.photo-comment { padding: 12px 0; border-bottom: 1px solid currentColor; }
.photo-comment p { white-space: pre-wrap; }
@media (max-width: 750px) {
  .photo-viewer-body { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 1fr) minmax(120px, .6fr); gap: 12px; }
  .photo-social { border-left: 0; border-top: 1px solid currentColor; padding: 12px 0 0; }

  /* The turn controls are one row too many for a phone: the photo, the
     comments, the buttons and the footer no longer share a screen height, and
     shrinking any of them past what an older reader can use is the wrong
     trade. So when the controls are showing, this dialog scrolls. */
  .photo-viewer.has-turn { overflow: auto; }
  .photo-viewer.has-turn[open] { grid-template-rows: auto auto auto auto auto; }
  .photo-viewer.has-turn .photo-viewer-body { grid-template-rows: auto auto; min-height: auto; }
  /* Comments run long on a phone, so leaving the controls after them puts the
     turn buttons below the fold. They go under the header instead, where the
     photo turning underneath them is the whole feedback. */
  .photo-viewer.has-turn > header { order: -2; }
  .photo-viewer.has-turn #photoTurnBar { order: -1; border-top: 0; border-bottom: 1px solid currentColor; padding: 0 0 12px; }
  .photo-viewer.has-turn .viewer-image { height: 46dvh; }
  .photo-viewer.has-turn .photo-social { overflow: visible; min-height: auto; }
  /* A scrolling box has no automatic minimum height, so the capped caption
     would be crushed to nothing here. The dialog scrolls, so let it grow. */
  .photo-viewer.has-turn #photoViewerCaption { max-height: none; overflow: visible; }
}
.share-circle-picker { border: 0; padding: 0; margin: 0 0 1rem; }
.share-circle-picker legend { font-weight: 700; margin-bottom: .5rem; }
.share-circle-option { display: flex; gap: .55rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .7rem; margin-top: .45rem; }
.notification-preferences { display: grid; gap: 10px; }
.notification-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.notification-row strong { min-width: 150px; }
.notification-phone { min-width: 170px; max-width: 240px; }
