/* summit! app pages: the home dashboard's cards, buttons and type, shared by every signed-in page.
   Everything is scoped under .app so the dashboard, reactions, viewer and user-themed profile canvas keep their own rules. */
.app { --ink: #111; --soft-ink: #3f3850; --muted: #62596f; --purple: #5b21b6; --purple-2: #4a2a86; --orange: #cc4800; --orange-2: #a83b00; --navy: #2b3a67; --line: #ece7f2; --dash: #e4dcd2; --field: #d6cfe2;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: var(--ink); font-size: 15px; line-height: 1.5; }
:where(.app) h1, :where(.app) h2, :where(.app) h3 { color: var(--ink); font-family: inherit; }
:where(.app) a { color: var(--purple); }
:where(.app) a:hover { color: #3b1585; }

/* Page header: title, one line of context, actions on the right. */
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 4px 0 18px; }
.app-head > div:not(.app-actions) { min-width: 0; flex: 1 1 320px; }
.app-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; overflow-wrap: anywhere; }
.app-lede { margin: 6px 0 0; color: var(--soft-ink); font-size: 15px; max-width: 62ch; }
.app-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.app-crumb a { text-decoration: none; }
.app-crumb a:hover { text-decoration: underline; }
.app-crumb span[aria-hidden] { color: #a79fb4; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-actions form { margin: 0; }

/* Layout: a main column with an optional sidebar. */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.app-grid.wide-side { grid-template-columns: minmax(0, 1fr) 380px; }
.app-main, .app-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.app-side { position: sticky; top: 14px; }
.app-narrow { max-width: 760px; }
.app-center { max-width: 560px; margin-inline: auto; }

/* Cards: the dashboard's heavy outline. */
.app-card { background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 20px 22px; min-width: 0; }
.app-card.flush { padding: 8px 0; }
.app-card.flush > .app-card-head { padding: 10px 22px 6px; }
.app-card.soft { border: 1px solid #e2dbec; border-radius: 16px; }
.app-card > h2, .app-card-head h2 { margin: 0 0 12px; font-size: 21px; font-weight: 800; letter-spacing: -.2px; }
.app-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-card-head h2 { margin-bottom: 8px; }
.app-card-head a { font-size: 14px; font-weight: 700; }
.app-card > :last-child { margin-bottom: 0; }
:where(.app-card) p { margin: 0 0 10px; }
.app-card .help, :where(.app) .help { color: var(--muted); font-size: 13px; }
.app-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: #f6f1ff; color: var(--soft-ink); font-size: 14px; }
.app-note.warm { background: #fff4ea; }
.app-divider { border: 0; border-top: 2px dashed var(--dash); margin: 16px 0; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: #6d28d9; color: #fff; font-size: 12px; font-weight: 800; vertical-align: 3px; }

/* Buttons: orange primary with a navy rim (as on the dashboard), white secondary, red danger, link-like ghost. */
:where(.app) button, :where(.app) .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; background: #fff; border: 2px solid var(--navy); border-radius: 0; color: var(--navy); font: 700 15px/1.15 Arial, Helvetica, sans-serif; text-decoration: none; text-align: center; cursor: pointer; }
:where(.app) button:hover, :where(.app) .btn:hover { background: #fff1e5; color: var(--navy); }
:where(.app) button.primary, :where(.app) .btn.primary, :where(.app) button[type=submit].primary { background: var(--orange); border-color: var(--navy); color: #fff; }
:where(.app) button.primary:hover, :where(.app) .btn.primary:hover { background: var(--orange-2); color: #fff; }
:where(.app) button.danger, :where(.app) .btn.danger { border-color: #b4233c; color: #9b1c33; }
:where(.app) button.danger:hover, :where(.app) .btn.danger:hover { background: #fff0f2; color: #7d1528; }
:where(.app) button.ghost, :where(.app) .btn.ghost { border-color: transparent; background: none; color: var(--purple); padding-inline: 10px; }
:where(.app) button.ghost:hover, :where(.app) .btn.ghost:hover { background: #f6f1ff; color: #3b1585; }
:where(.app) button.small, :where(.app) .btn.small { min-height: 36px; padding: 5px 12px; font-size: 13px; }
:where(.app) button:disabled { opacity: .45; cursor: default; }
:where(.app) .text-button { min-height: 44px; border: 0; padding: 0; background: none; color: var(--purple); font-weight: 700; text-decoration: underline; }

/* Forms: soft rounded fields, bold labels, generous spacing. */
.app-form { display: grid; gap: 14px; margin: 0; }
.app-form.inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.app-form .row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:where(.app) label { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
:where(.app) label > input:not([type=checkbox]):not([type=radio]), :where(.app) label > select, :where(.app) label > textarea { margin-top: 6px; }
:where(.app) label.check { display: flex; gap: 10px; align-items: center; min-height: 40px; font-weight: 400; }
:where(.app) input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]):not([type=file]), :where(.app) select, :where(.app) textarea { width: 100%; min-height: 46px; padding: 10px 13px; background: #fff; border: 1.5px solid var(--field); border-radius: 12px; color: var(--ink); font: 15px/1.4 Arial, Helvetica, sans-serif; }
:where(.app) input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed #b9aed0; border-radius: 12px; background: #fbf9fe; font-size: 14px; }
:where(.app) textarea { min-height: 110px; resize: vertical; }
:where(.app) input:hover, :where(.app) select:hover, :where(.app) textarea:hover { border-color: #b7a9d3; }
:where(.app) input:focus-visible, :where(.app) select:focus-visible, :where(.app) textarea:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 1px; border-color: #7c3aed; }
:where(.app) fieldset { margin: 0; padding: 14px 16px 16px; border: 1.5px solid #e2dbec; border-radius: 14px; display: grid; gap: 12px; min-width: 0; }
:where(.app) legend { padding: 0 6px; font-weight: 800; color: var(--purple-2); }
:where(.app) details > summary { font-weight: 700; color: var(--purple-2); }
.app-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.app-form-foot p { margin: 0; }

/* Sub navigation: pill tabs. */
.app-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.app-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--field); border-radius: 999px; background: #fff; color: var(--purple-2); font-size: 14px; font-weight: 700; text-decoration: none; }
.app-tabs a:hover { border-color: #a78bfa; background: #f6f1ff; color: #3b1585; }
.app-tabs a[aria-current=page] { background: var(--purple); border-color: var(--purple); color: #fff; }

/* Lists of things: rows with an icon/avatar, a body and actions. */
.app-list { list-style: none; margin: 0; padding: 0; }
.app-list > li, .app-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); min-width: 0; }
.app-list > li:first-child { border-top: 0; }
.app-card.flush .app-list > li { padding-inline: 22px; }
.app-row-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.app-row-body p { margin: 0; }
.app-row-title { font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none; }
a.app-row-title { color: var(--purple); }
a.app-row-title:hover { text-decoration: underline; }
.app-row-meta { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.app-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; flex: none; }
.app-row-actions form { margin: 0; }
.app-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; font: 800 19px/1 Arial, sans-serif; text-decoration: none; overflow: hidden; }
.app-icon.round { border-radius: 50%; }
.app-icon.orange { background: linear-gradient(135deg, #ff8418, #f43f5e); }
.app-icon.blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.app-icon.green { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-list.links > li { padding: 0; }
.app-list.links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 8px 0; font-weight: 700; text-decoration: none; }
.app-card.flush .app-list.links a { padding-inline: 22px; }
.app-list.links a::after { content: "›"; color: #a79fb4; font-size: 22px; line-height: 1; }
.app-list.links a:hover { background: #faf7ff; }

/* Event date badge. */
.date-badge { flex: none; width: 58px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; text-align: center; background: #fff; line-height: 1; }
.date-badge b { display: block; padding: 4px 0 3px; background: var(--orange); color: #fff; font: 800 11px/1.2 Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.date-badge span { display: block; padding: 6px 0 7px; font: 800 22px/1 "Trebuchet MS", Arial, sans-serif; }
.date-badge.large { width: 84px; }
.date-badge.large span { font-size: 34px; padding: 8px 0 10px; }

/* Facts list (event details, settings summaries). */
.app-facts { display: grid; gap: 8px; margin: 0 0 14px; }
.app-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 2px dashed var(--dash); }
.app-facts dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.app-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* Chips. */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: #f1ecf8; color: var(--purple-2); font-size: 12px; font-weight: 800; white-space: nowrap; }
.chip.orange { background: #fff1e5; color: #8a3200; }
.chip.green { background: #e7f8ee; color: #1f7a33; }
.chip.gray { background: #f0eef3; color: #5f5868; }

/* Empty states. */
.app-empty { margin: 0; padding: 26px 16px; text-align: center; color: var(--muted); font-size: 15px; }
.app-empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }
.app-card.flush .app-empty { padding-inline: 22px; }

/* Message thread. */
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: #f6f1ff; border: 1px solid #e6dcfb; }
.bubble.mine { justify-self: end; border-radius: 18px 18px 6px 18px; background: #fff4ea; border-color: #f7d7bb; }
.bubble-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; font-size: 13px; }
.bubble-head strong { font-size: 14px; }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.bubble-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.bubble-foot form { margin: 0; }

/* Mail list rows. */
.mail-row.unread .app-row-title::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--orange); vertical-align: 1px; }

/* Auth & error cards. */
.auth-wrap { display: grid; place-items: start center; padding: 18px 0 30px; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.4px; }
.auth-card .app-lede { margin: 0 0 18px; }
.auth-card .primary { width: 100%; }
:where(.app) .auth-alt { margin: 16px 0 0; padding-top: 14px; border-top: 2px dashed var(--dash); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.error-code { display: block; font: 800 64px/1 "Trebuchet MS", Arial, sans-serif; color: var(--orange); letter-spacing: -2px; }

/* Grid of tiles (explore hub, groups). */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; min-height: 118px; }
:where(.app) a.tile { color: var(--ink); }
.tile:hover { background: #fffaf5; box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.tile-emoji { font-size: 26px; line-height: 1; }
.tile strong { font-size: 17px; }
.tile span { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } }

/* Long prose (entries, descriptions). */
.app-prose { white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; }

@media (max-width: 960px) {
  .app-grid, .app-grid.wide-side { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: static; }
}
@media (max-width: 640px) {
  .app-head h1 { font-size: 25px; }
  .app-card { padding: 16px; border-radius: 18px; }
  .app-card.flush .app-list > li, .app-card.flush > .app-card-head, .app-card.flush .app-list.links a, .app-card.flush .app-empty { padding-inline: 16px; }
  .app-list > li { flex-wrap: wrap; }
  .app-row-actions { width: 100%; justify-content: flex-start; }
  .app-list > li:has(> .app-icon, > .date-badge) .app-row-actions { padding-left: 60px; }
  .app-form .row-2 { grid-template-columns: 1fr; }
  .app-form.inline { grid-template-columns: 1fr; }
  .app-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .bubble { max-width: 92%; }
}

/* Main navigation: mark where you are. */
.site-nav a[aria-current=page] { color: #111; box-shadow: inset 0 -3px 0 #cc4800; }
.app-form .help, .app-form p.help { margin: -8px 0 0; }

/* Footer. */
.site-footer { max-width: 1040px; padding: 18px 24px 30px; justify-content: center; font-size: 13px; }
.site-footer a { color: #62596f; font-weight: 700; }

/* Updates page: the dashboard feed rows inside an app card. */
.updates-card .feed-item { padding-inline: 22px; }
.update-link { margin: 8px 0 0 55px; font-size: 16px; font-weight: 700; }
.updates-card .feed-album-stack { margin: 10px 0 0 55px; }
.updates-more { padding: 14px 22px 8px; text-align: center; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .updates-card .feed-item { padding-inline: 16px; } .update-link, .updates-card .feed-album-stack { margin-left: 0; } }
:where(.app) .feed-avatar, :where(.app) .app-icon { color: #fff; }
:where(.app) .feed-byline p { margin: 0 0 1px; }

/* Small shared bits for social pages. */
.soft-icon { background: #f6f1ff; border: 1.5px solid #e6dcfb; font-size: 21px; }
.notice-row.unread { background: #fffaf5; }
.notice-row.unread .app-row-title { font-weight: 800; }
.app-icon.large-icon { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; border: 2px solid #111; }
.app-list-reset { list-style: none; margin: 0; padding: 0; }
.tile .chip { align-self: flex-start; margin-top: auto; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reply-row { align-items: flex-start !important; }
.reply-form { padding: 16px 22px 14px; border-top: 2px dashed var(--dash); }
@media (max-width: 640px) { .reply-form { padding-inline: 16px; } }
.compose { margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--dash); }
.mail-row .bubble-head { margin: 0; }
.mail-row .bubble-head strong { font-weight: 400; color: var(--muted); }
.mail-row.unread { background: #fffaf5; }
.mail-row p { margin: 2px 0 0; }
.mail-row .app-row-body { display: flex; flex-direction: column; }
.mail-row { align-items: flex-start !important; }
.hide-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hide-form .help { margin: 0; }
.card-foot-form { padding: 16px 22px 14px; border-top: 2px dashed var(--dash); }
.report-list { display: grid; gap: 16px; }
.report-thumb { display: block; width: 160px; height: auto; margin-bottom: 14px; border-radius: 12px; }
@media (max-width: 640px) { .card-foot-form { padding-inline: 16px; } }
.entry-row { align-items: flex-start !important; }
.entry-excerpt { margin-top: 4px !important; color: var(--soft-ink); font-size: 14px; }
.app .entry-card { max-width: none; border: 3px solid var(--ink); border-radius: 22px; box-shadow: none; }
.app-card.spaced { margin-top: 18px; }
.app-narrow > .app-card + .app-card { margin-top: 18px; }
.bubble-foot > small { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: #f0eef3; color: #5f5868; font-size: 12px; font-weight: 800; }
/* Rows wrap their actions underneath when space runs out (sidebars, phones). */
.app-list > li { flex-wrap: wrap; }
.app-row-body { flex: 1 1 180px; }
.app-side .app-row-actions { flex: 1 1 100%; justify-content: flex-start; padding-left: 60px; }
.app-narrow { margin-inline: auto; }

/* Community. */
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: end; padding: 14px 16px; }
.app .item-title { margin: 0; font-size: 17px; }
.app .item-title a { text-decoration: none; }
.app .item-title a:hover { text-decoration: underline; }
.app h1.item-heading { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.4px; }
.item-body { margin: 14px 0; }
.app-row-meta .chip { vertical-align: 1px; }
.poll-results { display: grid; gap: 10px; margin: 6px 0 16px; }
.poll-label { display: block; font-weight: 700; margin-bottom: 4px; }
.poll-bar { display: block; height: 12px; border-radius: 999px; background: #f1ecf8; overflow: hidden; }
.poll-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8418, #cc4800); border-radius: 999px; }
.rating-score { font: 800 30px/1.1 "Trebuchet MS", Arial, sans-serif; color: var(--orange); }
.hub-more { margin-top: 18px; }
.hub-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.calendar-owner { flex: 0 1 380px; }
.due-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.due-note form { margin: 0; }
.chat-log { display: grid; gap: 10px; }
.chat-log > article { justify-self: start; max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #f6f1ff; border: 1px solid #e6dcfb; overflow-wrap: anywhere; }
.chat-log > article.mine { justify-self: end; border-radius: 18px 18px 6px 18px; background: #fff4ea; border-color: #f7d7bb; }
.chat-log > article > strong { display: block; font-size: 13px; }
.chat-log > article > p { margin: 2px 0 6px; }
.chat-log > article > small { display: inline-flex; margin-right: 6px; padding: 1px 9px; border-radius: 999px; background: #fff; color: #5f5868; font-size: 12px; font-weight: 800; }
.chat-log > article > form { display: inline-block; margin: 4px 6px 0 0; }
.chat-log > article button { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.chat-log > p { margin: 0; color: var(--muted); text-align: center; }
#chat-status { display: table; margin: 0 auto 12px 0; }
@media (max-width: 640px) { .filter-bar { grid-template-columns: 1fr; } }

/* Phones: one swipeable row of main navigation instead of three wrapped lines. */
@media (max-width: 760px) {
  .site-nav { overflow-x: clip; }
  .site-nav > div { min-width: 0; max-width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: 12px; }
  .site-nav > div::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
}

/* Retro extras. */
.filter-bar.three { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.plain-fieldset { border: 0; padding: 0; }
.app .field { margin: 0; }
.app .field textarea { margin-top: 6px; min-height: 70px; }
.video-discovery { padding: 14px 0; border-top: 1px solid var(--line); }
.details-stack { display: grid; gap: 16px; }
.details-stack > p { margin: 0; font-weight: 700; }
.details-stack nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.details-stack nav form { margin: 0; }
.details-stack .panel { background: #fff; border: 3px solid #111; border-radius: 22px; padding: 18px 22px; margin: 0; }
.details-stack .panel > h2 { background: none; border: 0; padding: 0; margin: 0 0 8px; font: 800 20px/1.3 "Trebuchet MS", Arial, sans-serif; color: #111; }
.blog-extras-bar { display: grid; gap: 10px; }
.blog-extras-bar p { margin: 0; }
@media (max-width: 760px) { .filter-bar.three { grid-template-columns: 1fr; } }

/* Media pages. */
.app-links { margin: 16px 0 0; font-size: 14px; font-weight: 700; text-align: center; }
.app-card-links { margin: 0 0 8px; font-weight: 700; }
.app .app-form > label { margin-bottom: -8px; }
.app .app-form > label.check { margin-bottom: 0; }
.upload-preview { margin: 0; padding: 12px; border-radius: 14px; background: #f6f1ff; text-align: center; }
.upload-preview img, .upload-preview video { max-width: 100%; max-height: 360px; border-radius: 10px; }
.more-options { padding: 10px 14px; border: 1.5px solid #e2dbec; border-radius: 14px; }
.more-options[open] { display: grid; gap: 8px; }
.batch-queue { display: grid; gap: 12px; }
.queue-item { display: grid; gap: 10px; padding: 14px; border: 1.5px solid #e2dbec; border-radius: 16px; background: #fdfcff; }
.queue-item h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.queue-item img { border-radius: 10px; }
.queue-item progress { width: 100%; accent-color: #cc4800; }
.photo-library .photo-card-link img, .photo-library .photo-empty-album { border-radius: 14px; }
.photo-library .photo-card-grid { margin: 8px 0 0; }
.spaced-h { margin-top: 22px; }
.album-manage { display: grid; gap: 10px; }
.album-manage p { margin: 0; }
.track-row { align-items: flex-start !important; }
.track-row audio, .track-row iframe { display: block; width: 100%; margin: 8px 0; border: 0; border-radius: 12px; }
.track-row iframe { aspect-ratio: 16 / 9; height: auto; }
.track-row .button-row { display: flex; flex-wrap: wrap; gap: 6px; }
.track-row .button-row form { margin: 0; }
.playlist-help { padding: 8px 22px 0; }
.app .media-grid h3 a, .app .media-grid a { text-decoration: none; }

/* Settings, family, domains. */
.settings-stack { display: grid; gap: 18px; }
.settings-stack.inner { gap: 6px; margin-top: 12px; }
.settings-stack h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.danger-zone > summary { font-size: 17px; }
.limit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.dns-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 14px; }
.dns-grid input { font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: 13px !important; background: #faf8fd !important; }
.app .notice { border-radius: 12px; margin: 0 0 14px; }
@media (max-width: 640px) { .dns-grid { grid-template-columns: 1fr; } }

/* People rows inside cards (search, friends). */
.app-card .people-list { gap: 0; }
.app-card .person-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 22px; }
.app-card .person-card:first-child { border-top: 0; }
.app-card .person-name { color: var(--purple); }
.search-page .search-bar { max-width: none; padding: 12px; margin-bottom: 8px; }
.search-page .search-bar button { flex: none; }
.search-help { margin: 0 0 18px; }
.search-page section { margin-top: 0; }
.app .result-list li { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 22px; display: flex; gap: 8px; align-items: center; }
.app .result-list li:first-child { border-top: 0; }
.sent-help { padding: 0 22px; }
.top8 { border: 3px solid #111; border-radius: 22px; }
@media (max-width: 640px) { .app-card .person-card, .app .result-list li { padding-inline: 16px; } }
:where(.app) label:has(> input[type=checkbox]), :where(.app) label:has(> input[type=radio]) { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 400; }
.app-tabs-links { margin: 0 0 16px; font-size: 14px; font-weight: 700; }
.card-pad { padding: 0 22px; }
.person-pref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 22px; border-top: 1px solid var(--line); }
.person-pref > a { flex: 1; min-width: 0; font-weight: 800; text-decoration: none; }
.person-pref > p { flex: 1; margin: 0; font-weight: 800; }
.person-pref button { min-height: 36px; padding: 5px 12px; font-size: 13px; }
@media (max-width: 640px) { .card-pad { padding-inline: 16px; } .person-pref { padding-inline: 16px; } }

/* Profile edit, privacy and people lists: the older panel markup in the dashboard card style. The live preview keeps its own look. */
.profile-settings .breadcrumb { font-size: 13px; font-weight: 700; }
.profile-settings .page-heading h1 { margin: 0 0 4px; font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -.4px; }
.profile-settings .page-heading .button-row { flex-wrap: wrap; justify-content: flex-end; }
.profile-settings .tabs { gap: 8px; border: 0; margin-bottom: 18px; }
.profile-settings .tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border: 1.5px solid #e2dbec; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; }
.profile-settings .tabs a[aria-current=page] { background: var(--purple); border-color: var(--purple); color: #fff; }
.profile-settings .panel:not(.editor-preview .panel) { background: #fff; border: 3px solid #111; border-radius: 22px; overflow: hidden; margin-bottom: 18px; }
.profile-settings .panel:not(.editor-preview .panel) > .panel-heading, .profile-settings .panel:not(.editor-preview .panel) > h2 { padding: 16px 22px 4px; background: none; border: 0; color: #111; font: 800 19px/1.3 "Trebuchet MS", Arial, sans-serif; letter-spacing: 0; }
.profile-settings .panel:not(.editor-preview .panel) > .panel-heading a { font-size: 13px; font-weight: 700; }
.profile-settings .panel:not(.editor-preview .panel) > .panel-body { padding: 10px 22px 20px; }
.profile-settings fieldset { border: 1.5px solid #e2dbec; border-radius: 16px; }
.profile-settings legend { color: var(--purple); font-weight: 800; }
.profile-settings .editor-preview { border-radius: 18px; }
@media (max-width: 640px) { .profile-settings .panel:not(.editor-preview .panel) > .panel-heading, .profile-settings .panel:not(.editor-preview .panel) > .panel-body { padding-inline: 16px; } }
.profile-settings .form-card { background: #fff; border: 3px solid #111; border-radius: 22px; padding: 6px 22px 22px; }
.profile-settings .page-heading a.button, .profile-settings .panel-body a.button { border: 2px solid #1f2a5c; border-radius: 0; background: #fff; color: #1f2a5c; font-weight: 800; text-decoration: none; }
@media (max-width: 640px) { .profile-settings .form-card { padding-inline: 14px; } }
.photo-card-grid > p { grid-column: 1 / -1; margin: 0; color: #5f5868; }
