/* summit!: local system fonts, light surfaces, no remote dependencies. */
:root { color-scheme: light; --accent: #6940a5; --background: #f0edf6; --panel: #fff; --ink: #272238; --line: #cec8db; --muted: #62596f; --font: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f6f9; color: #272238; font: 14px/1.5 Arial, Helvetica, sans-serif; }
a { color: #59328f; text-underline-offset: 3px; }
a:hover { color: #361e5a; }
:focus-visible { outline: 3px solid #a75d17; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, .button, input[type=submit] { min-height: 44px; padding: 9px 14px; border: 1px solid #bdb2ce; border-radius: 3px; background: #f7f4fc; color: #472c6e; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; text-align: center; }
button:hover, .button:hover { background: #eae2f5; color: #352052; }
.primary, button.primary { background: #6940a5; border-color: #59318f; color: #fff; }
.primary:hover { background: #50317c; color: #fff; }
.danger { color: #96384b; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]), select, textarea { min-height: 44px; border: 1px solid #bcb3ca; border-radius: 2px; background: #fff; color: #272238; padding: 9px 10px; width: 100%; }
textarea { resize: vertical; min-height: 100px; }
input[type=checkbox], input[type=radio] { accent-color: #6940a5; width: 18px; height: 18px; vertical-align: middle; }
input[type=color] { width: 52px; height: 44px; padding: 3px; border: 1px solid #bcb3ca; background: #fff; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
label.check { display: flex; gap: 9px; align-items: center; min-height: 44px; font-weight: 400; }
fieldset { margin: 0 0 22px; padding: 17px; border: 1px solid #d9d2e2; border-radius: 3px; min-width: 0; }
legend { padding: 0 7px; font-weight: 700; color: #50317c; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.6px; margin-bottom: 9px; }
h2 { font-size: 19px; line-height: 1.3; }
h3 { font-size: 15px; }
small, .help { font-size: 12px; color: #62596f; }
.help { margin-top: 5px; line-height: 1.5; }
.muted { color: #62596f; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 10px; top: -100px; z-index: 30; background: #fff; padding: 12px 20px; border: 2px solid #6940a5; }
.skip-link:focus { top: 10px; }
.site-header { background: linear-gradient(180deg, #ff8418 0%, #ff9a3c 45%, #ffd2ad 100%); border-bottom: 1px solid #f0c39d; }
.site-header-inner { position: relative; max-width: 1366px; margin: auto; padding: 10px 24px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wordmark { display: block; width: min(510px, 100%); line-height: 0; text-decoration: none; }
.wordmark img { display: block; width: 100%; height: auto; }
.account-nav { position: absolute; top: 4px; right: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; font-size: 14px; font-weight: 700; }
.account-nav a, .account-nav .text-button { min-height: 44px; display: inline-flex; align-items: center; color: #111; text-decoration: none; font-size: 19px; font-weight: 700; }
.account-nav a:hover, .account-nav .text-button:hover { color: #111; text-decoration: underline; }
.account-nav form { margin: 0; }
.text-button { padding: 0; min-height: 44px; border: 0; background: none; font-weight: normal; text-decoration: underline; font-size: 12px; }
.text-button:hover { background: none; }
.site-search { display: flex; align-items: center; width: 206px; height: 36px; margin: 0 0 6px; padding: 2px; border-radius: 999px; background: linear-gradient(90deg, #e0368f, #7a3df0 55%, #3b5bf0); }
.site-header .site-search input[type=search][name=q] { min-height: 0; height: 32px; flex: 1; min-width: 0; border: 0; border-radius: 0 999px 999px 0; background: #ececec; padding: 0 12px 0 8px; font-size: 13px; }
.site-header .site-search input[type=search][name=q]:focus-visible { outline-offset: 2px; }
.site-search .search-go { min-height: 0; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, #a531d8, #5a2bd6); color: #fff; flex: none; }
.site-search .search-go:hover { background: linear-gradient(135deg, #8d22bd, #4720b8); color: #fff; }
.site-search:has(input:focus) { box-shadow: 0 0 0 3px #fff; }
.site-nav { background: #fff; border-bottom: 1px solid #eadfd3; }
.site-nav > div { display: flex; gap: 0; max-width: 1040px; margin: auto; padding-inline: 12px; flex-wrap: wrap; justify-content: center; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 13px; text-decoration: none; font-size: 13px; font-weight: 700; color: #4a2a86; }
.site-nav a:hover { background: #fff1e5; color: #2d1660; }
.page-shell { max-width: 1040px; margin: auto; padding: 25px 24px 45px; }
.page-shell-wide { max-width: 1366px; padding: 16px 14px 36px; }
/* Signed-in home: profile + stats | wide feed | quick links. One column on phones. */
.dash { --dash-ink: #111; display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 18px; align-items: start; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: var(--dash-ink); }
.dash-left, .dash-center { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-left, .dash-actions { position: sticky; top: 14px; }
.dash-welcome { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.2px; color: #111; }
.dash-card { background: #fff; border: 3px solid #111; border-radius: 22px; padding: 16px 18px; min-width: 0; }
.dash-card h2 { font-size: 24px; font-weight: 800; text-align: center; margin: 0 0 10px; color: #111; letter-spacing: -.2px; }
.dash-me { display: flex; flex-direction: column; align-items: center; padding: 18px 14px 12px; }
.dash-avatar { display: block; width: 170px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #f1effd 0 55%, #dcdaf6 70%, #c9c8ee 100%); box-shadow: inset 0 0 0 8px #e5e3fa, 0 2px 10px rgba(80, 70, 170, .18); }
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-avatar svg { width: 100%; height: 100%; display: block; }
.dash-name { margin: 10px 0 0; font-size: 19px; font-weight: 800; text-align: center; }
.dash-name a { color: #111; text-decoration: none; }
.dash-name a:hover { text-decoration: underline; }
.online-now { display: flex; align-items: center; gap: 2px; margin: 2px 0 0; font: 800 15px/1 "Trebuchet MS", Arial, sans-serif; color: #1f7a33; }
/* "Online now" pulse, rebuilt from assets/Online now!-animation.html (Wick, 256px stage, 30fps, 60-frame loop):
   a green light that swells 8% on a cosine, and a halo that grows to 2.35x while fading from 28% opacity. */
.online-pulse { position: relative; flex: none; width: 28px; height: 28px; }
.online-halo, .online-light { position: absolute; inset: 32.8%; border-radius: 50%; background: #22c55e; }
.online-halo { opacity: 0; animation: online-halo 2s linear infinite; }
.online-light { animation: online-light 2s ease-in-out infinite; }
@keyframes online-halo { 0% { transform: scale(1); opacity: .28; } 25% { opacity: .1575; } 50% { opacity: .07; } 75% { opacity: .0175; } 100% { transform: scale(2.35); opacity: 0; } }
@keyframes online-light { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .online-halo, .online-light { animation: none; } .online-light { opacity: 1; } }
.dash-stats { align-self: stretch; margin-top: 14px; padding-top: 12px; border-top: 2px dashed #e4dcd2; }
.dash-stats h2 { font-size: 17px; margin-bottom: 4px; }
.dash-stats dl { margin: 0; }
.dash-stats dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 4px; font-size: 14px; }
.dash-stats dt { font-weight: 400; color: #3f3850; }
.dash-stats dd { margin: 0; font-weight: 700; color: #5b21b6; text-align: right; }
/* Status: one quiet line; the editor opens on demand. */
.dash-status { background: #fff; border: 1px solid #e2dbec; border-radius: 14px; padding: 2px 14px; }
.status-edit summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; font-size: 15px; }
.status-edit summary::-webkit-details-marker { display: none; }
.status-line { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.status-label { font-weight: 800; }
.status-text { color: #5b21b6; font-weight: 700; }
.status-mood { color: #4b4453; }
.status-update { flex: none; padding: 4px 12px; border: 1.5px solid #cc4800; border-radius: 999px; color: #a83b00; font-size: 13px; font-weight: 700; }
.status-edit summary:hover .status-update { background: #fff1e5; }
.status-edit[open] .status-update { visibility: hidden; }
.status-edit form { display: grid; gap: 10px; padding: 4px 0 14px; }
.status-edit label { margin: 0; font-size: 13px; }
.status-reactions { display: flex; gap: 14px; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #3b2a5e; }
.mood-emoji { font-size: 1.15em; }
.mood-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-pick { min-height: 44px; min-width: 44px; padding: 4px; border-radius: 50%; font-size: 20px; background: #fff; }
/* Feed: grows with the page and loads more as you scroll. */
.dash-feed { padding: 16px 0 10px; }
.dash-feed > h2 { padding: 0 20px; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-item { padding: 14px 20px; border-top: 1px solid #ece7f2; }
.feed-item:first-child { border-top: 0; }
.feed-head { display: flex; gap: 11px; align-items: flex-start; }
.feed-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 19px/1 Arial, sans-serif; text-decoration: none; }
.feed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-byline { min-width: 0; }
.feed-byline p { margin: 0 0 1px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.feed-name { font-weight: 800; color: #5b21b6; text-decoration: none; }
.feed-name:hover { text-decoration: underline; }
.feed-action { color: #4b4453; }
.feed-quote { font-weight: 700; color: #6d28d9; }
.feed-mood { color: #4b4453; }
.feed-byline time { font-size: 12px; color: #5f5868; }
.feed-post { margin: 10px 0 0; }
.feed-post-title { margin: 0 0 4px; font-size: 16px; }
.feed-caption { margin: 0 0 8px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.feed-media-link { display: block; }
.feed-media { display: block; width: 100%; max-height: 620px; object-fit: contain; background: #16131c; border-radius: 12px; }
.feed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.feed-open { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; }
.feed-sentinel { padding: 16px 20px; text-align: center; color: #62596f; }
.feed-sentinel.loading::after { content: "Loading…"; }
.feed-sentinel.loading a { display: none; }
.feed-end { margin: 0; padding: 14px 20px 0; text-align: center; color: #62596f; font-size: 13px; }
.feed-empty { padding: 8px 20px 0; font-size: 15px; }
.feed-more { margin: 6px 0 0; text-align: center; font-size: 13px; }
.feed-more a { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 700; }
.reaction-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.reaction-bar form { margin: 0; }
.reaction { position: relative; min-height: 40px; min-width: 52px; padding: 4px 10px; border: 1.5px solid #d6cfe2; border-radius: 999px; background: #fff; color: #3b2a5e; font-size: 15px; font-weight: 700; gap: 4px; }
.reaction:hover { background: #f6f1ff; border-color: #a78bfa; }
.reaction:disabled { opacity: 1; cursor: default; }
.reaction.mine { background: #fff1e5; border-color: #cc4800; color: #8a3200; }
.reaction-burst { position: absolute; left: 50%; bottom: 70%; font-size: 26px; pointer-events: none; animation: reaction-float 1.1s ease-out forwards; }
@keyframes reaction-float { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-50%, -90px) scale(1.4); opacity: 0; } }
.dash-actions { display: flex; flex-direction: column; gap: 12px; padding: 18px 14px 12px; }
.dash-button { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 10px; background: #cc4800; border: 2px solid #2b3a67; color: #fff; font: 700 17px/1.15 Arial, Helvetica, sans-serif; text-align: center; text-decoration: none; }
.dash-button:hover { background: #a83b00; color: #fff; }
.dash-button .count { position: absolute; top: -10px; right: -10px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #6d28d9; border: 2px solid #fff; color: #fff; font-size: 13px; line-height: 20px; }
.dash-more { list-style: none; margin: 0; padding: 4px 0 0; border-top: 2px dashed #e4dcd2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.dash-more a { display: flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 700; color: #4a2a86; }
@media (max-width: 1180px) {
 .dash { grid-template-columns: 230px minmax(0, 1fr); }
 .dash-actions { position: static; grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 16px; }
 .dash-more { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (max-width: 760px) {
 .dash { grid-template-columns: minmax(0, 1fr); }
 .dash-left { position: static; }
 .dash-actions { grid-row: auto; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
 .dash-button { min-height: 44px; font-size: 15px; }
 .dash-me { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
 .dash-avatar { width: 96px; grid-row: 1 / 3; }
 .dash-name, .online-now { margin: 0; justify-content: flex-start; text-align: left; }
 .dash-stats { grid-column: 1 / -1; }
 .dash-welcome { font-size: 22px; }
 .feed-item { padding-inline: 14px; }
 .account-nav { position: static; align-self: flex-end; margin-bottom: -6px; }
 .account-nav a, .account-nav .text-button { font-size: 16px; }
}
/* Photo / video viewer: dark stage beside a details card; stacked on narrow screens. */
.viewer-heading { font-size: 22px; margin: 0 0 12px; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: min(70vh, 760px); background: #fff; border: 1px solid #ddd5e8; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(39, 34, 56, .08); }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; background: #111016; }
.viewer-media-link { display: contents; }
.viewer-media { display: block; max-width: 100%; max-height: min(82vh, 860px); width: auto; height: auto; object-fit: contain; }
video.viewer-media { width: 100%; }
.viewer-nomedia { color: #d9d2e6; font-size: 20px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .88); color: #111; font-size: 34px; line-height: 1; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.viewer-nav:hover { background: #fff; color: #111; }
.viewer-prev { left: 14px; }
.viewer-next { right: 14px; }
.viewer-counter { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; }
.viewer-info { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; min-width: 0; max-height: min(82vh, 860px); overflow-y: auto; }
.viewer-author { display: flex; align-items: center; gap: 11px; }
.viewer-author > div { flex: 1; min-width: 0; }
.viewer-meta { margin: 0; font-size: 12px; color: #62596f; }
.viewer-info > h1 { margin: 0; font-size: 20px; letter-spacing: -.2px; overflow-wrap: anywhere; }
.viewer-caption { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.viewer-reactions { padding: 10px 0; border-block: 1px solid #ece7f2; }
.viewer-menu { position: relative; flex: none; }
.viewer-menu summary { list-style: none; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 22px; color: #3b2a5e; }
.viewer-menu summary::-webkit-details-marker { display: none; }
.viewer-menu summary:hover, .viewer-menu[open] summary { background: #f1ecf8; }
.viewer-menu-items { position: absolute; right: 0; top: 46px; z-index: 5; min-width: 210px; padding: 6px; background: #fff; border: 1px solid #ddd5e8; border-radius: 10px; box-shadow: 0 8px 24px rgba(39, 34, 56, .16); display: grid; gap: 2px; }
.viewer-menu-items a, .viewer-menu-items button { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; background: none; font-weight: 700; text-decoration: none; }
.viewer-menu-items a:hover, .viewer-menu-items button:hover { background: #f6f1ff; }
.viewer-menu-items form { margin: 0; }
.viewer-comments h2 { font-size: 15px; margin: 0 0 8px; }
.comment { display: flex; gap: 9px; padding: 6px 0; }
.comment-avatar { width: 32px; height: 32px; font-size: 14px; }
.comment-body { min-width: 0; }
.comment-body p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 8px; }
.comment-form textarea { min-height: 44px; border-radius: 10px; }
.viewer-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #ece7f2; font-size: 13px; color: #62596f; }
.viewer-report { color: #62596f; }
@media (max-width: 900px) {
 .viewer { grid-template-columns: minmax(0, 1fr); min-height: 0; }
 .viewer-info { max-height: none; }
 .viewer-stage { min-height: 0; }
 .viewer-media { max-height: 70vh; }
}
.entry-card { display: flex; flex-direction: column; gap: 14px; max-width: 760px; padding: 20px 22px; background: #fff; border: 1px solid #ddd5e8; border-radius: 16px; box-shadow: 0 6px 24px rgba(39, 34, 56, .08); }
.entry-title { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.entry-body { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
/* Search */
.search-page h1 { font-size: 24px; }
.search-bar { display: flex; gap: 8px; margin: 0 0 8px; max-width: 620px; }
.search-page section, .search-page > .empty { margin-top: 22px; }
.people-list, .result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.person-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #e2dbec; border-radius: 12px; }
.person-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 22px/1 Arial, sans-serif; text-decoration: none; }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-name { font-size: 16px; font-weight: 800; text-decoration: none; }
.person-action form { margin: 0; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f1ecf8; color: #4a2a86; font-size: 12px; font-weight: 700; }
.result-list li { padding: 10px 14px; background: #fff; border: 1px solid #e2dbec; border-radius: 12px; }
/* Photo grids (library, albums). */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 0 0 18px; }
.media-grid article { min-width: 0; }
.media-grid article > a { display: block; text-decoration: none; }
.media-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f1ecf8; }
.media-grid h3 { margin: 6px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.media-grid p { margin: 2px 0 0; font-size: 12px; color: #62596f; overflow-wrap: anywhere; }
/* Older single-panel pages: give bare panels room to breathe. */
main > .panel:not(:has(> .panel-heading, > .panel-body, > h2:first-child)) { padding: 20px 22px; }
main > .panel:not(:has(> .panel-heading, > .panel-body)) > h2:not(:first-child) { background: none; border: 0; padding: 0; margin: 22px 0 10px; font: 700 17px/1.3 Arial, sans-serif; color: #272238; }
.site-footer { max-width: 992px; margin: auto; padding: 17px 0 28px; border-top: 1px solid #ddd7e4; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #776d82; font-size: 11px; }
.notice { padding: 12px 15px; background: #fff8e9; border: 1px solid #dcc8a5; border-radius: 3px; }
.notice.error { background: #fff0f1; border-color: #e4adb6; color: #823040; }
.notice.success { background: #f0eefb; border-color: #c9bee3; }
.breadcrumb { font-size: 11px; color: #756981; margin-bottom: 16px; display: flex; gap: 9px; align-items: center; }
.page-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.page-heading p { margin: 0; }
.eyebrow { text-transform: uppercase; font-size: 10px; font-weight: bold; letter-spacing: 1.7px; color: #786784; margin: 0 0 8px; }
.actions, .button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.panel, .card { border: 1px solid #d3cadf; border-radius: 3px; background: #fff; margin-bottom: 18px; overflow: hidden; }
.panel-heading, .panel > h2, .card > h2 { font: bold 12px/1.4 Arial, sans-serif; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 10px 13px; background: #eee8f6; color: #513878; border-bottom: 1px solid #d3cadf; letter-spacing: .2px; }
.panel-heading h2 { font: inherit; margin: 0; }
.panel-heading a { font-size: 11px; font-weight: normal; }
.panel-body, .card-body { padding: 15px; }
.empty { color: #796d83; font-size: 12px; margin: 0; padding: 5px 0; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.form-card { padding: 24px; background: #fff; border: 1px solid #d7cde3; border-radius: 4px; }
.form-card > :last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.field { margin-bottom: 17px; }
.field:last-child { margin-bottom: 0; }
.span-two { grid-column: 1 / -1; }
.narrow { max-width: 640px; margin-inline: auto; }
.tabs { display: flex; gap: 5px; border-bottom: 1px solid #d5c9e3; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 11px 15px; min-height: 44px; text-decoration: none; }
.tabs a[aria-current=page] { background: #eee7f7; border-bottom: 3px solid #6940a5; font-weight: bold; }
/* The profile is a small, personal page rather than a dashboard. */
.profile-canvas { --accent: #6940a5; --background: #f0edf6; --panel: #fff; --ink: #272238; --font: Arial, Helvetica, sans-serif; background-color: var(--background); background-image: var(--background-image, none); background-repeat: repeat; color: var(--ink); font-family: var(--font); border: 1px solid #d9d0e4; border-radius: 3px; padding: 20px; }
.profile-canvas a { color: var(--accent); }
.profile-canvas a.primary, .profile-canvas a.primary:hover { color: #fff; }
.appearance-thumb { display: block; width: 72px; height: 72px; object-fit: cover; margin-block: 9px; border: 1px solid #d3c9de; }
.appearance-thumb[hidden] { display: none; }
button:disabled { opacity: .45; cursor: default; }
summary { min-height: 44px; padding-block: 11px; cursor: pointer; }
.profile-canvas .panel { background: var(--panel); color: var(--ink); border: var(--border-width, 1px) var(--border-style, solid) var(--border, #d3cadf); }
.profile-canvas .panel-heading { color: var(--accent); background: var(--panel); border-bottom-color: #d9d0e4; border-left: 4px solid var(--accent); }
.profile-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 11px; }
.profile-topline p { margin: 0; }
.profile-grid { display: grid; grid-template-columns: 258px minmax(0,1fr); gap: 20px; align-items: start; }
.profile-sidebar, .profile-main { min-width: 0; }
.identity { padding: 19px 17px 16px; }
.identity .avatar { width: 96px; height: 96px; border: 4px solid #fff; box-shadow: 0 0 0 1px #d4c8e1; background: #e8e1f2; display: flex; align-items: center; justify-content: center; color: var(--accent); font: bold 43px/1 Georgia, serif; margin-bottom: 18px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity h1 { font-family: var(--font); font-size: 27px; overflow-wrap: anywhere; }
.username { font-size: 12px; color: #776780; margin-bottom: 13px; }
.identity .quote { font-size: 12px; border-top: 1px dotted #cfc3de; margin: 15px 0 0; padding-top: 13px; }
.identity .profile-type { margin: 8px 0 0; font-size: 11px; }
.identity .actions { margin-top: 15px; }
.identity .actions .button { width: 100%; }
.connection-list { list-style: none; padding: 0; margin: 0; }
.connection-list li + li { border-top: 1px dotted #ded5e5; }
.connection-list a { display: flex; gap: 9px; min-height: 44px; align-items: center; font-size: 12px; }
.friend-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px 10px; }
.friend { text-align: center; min-width: 0; font-size: 11px; overflow-wrap: anywhere; }
.friend > a { display: block; }
.friend-icon { height: 58px; width: 58px; margin: 0 auto 7px; background: #eee8f6; border: 1px solid #d7cce3; display: flex; align-items: center; justify-content: center; font: bold 24px Georgia,serif; color: var(--accent); }
.profile-main .panel { margin-bottom: 17px; }
.profile-main .panel-body { font-size: 13px; padding: 17px; }
.profile-main .panel-heading { padding-block: 10px; }
.profile-banner { width: 100%; display: block; max-height: 210px; object-fit: contain; background: #000; margin-bottom: 18px; border: 1px solid #d2c7df; }
.content-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.content-tile { min-width: 0; }
.content-tile img { width: 100%; height: 120px; object-fit: cover; border: 1px solid #d7cce3; display: block; background: #f4f1f7; }
.content-tile p { font-size: 11px; margin: 5px 0; }
.post { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dotted #d7cce3; }
.post:last-child { margin: 0; padding: 0; border: 0; }
.post h3 { margin-bottom: 5px; }
.post time { font-size: 10px; color: #786e7f; }
.preview-bar { padding: 12px 14px; border: 1px solid #c6b2e0; background: #f7f2ff; display: flex; gap: 13px; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 12px; }
.preview-bar a { min-height: 44px; display: inline-flex; align-items: center; }
.supervise-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; padding: 10px 14px; background: #fff8ef; border: 1px solid #f0c39d; border-radius: 10px; font-size: 14px; }
.preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 11px; }
.preview-controls a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 11px; border: 1px solid #d1c5df; background: #fff; text-decoration: none; }
/* A deliberate 2007-style compact music widget. */
.music-widget { background: #f8f6fc; border: 1px solid #c9bfd8; font: 11px/1.4 Arial,sans-serif; color: #3d3051; }
.music-display { background: #ece8f5; padding: 11px; border-bottom: 1px solid #c9bfd8; display: flex; gap: 10px; align-items: center; }
.music-disc { font-size: 26px; color: #6940a5; line-height: 1; }
.music-display strong { display: block; font-size: 12px; }
.music-widget audio { width: 100%; height: 42px; display: block; margin: 5px 0; }
.music-transport { display: flex; gap: 5px; padding: 8px 10px 3px; }
.music-transport button { flex: 1; min-width: 44px; padding: 6px 9px; font-size: 11px; }
.music-playlist button[aria-current=true] { font-weight: bold; }
.music-playlist { padding: 0 10px; margin: 0; list-style: none; counter-reset: tracks; }
.music-playlist li { display: flex; justify-content: space-between; gap: 7px; padding: 6px 0; border-top: 1px dotted #d8d0e4; }
.music-playlist button { font-size: 11px; background: transparent; font-weight: normal; border: 0; padding: 3px 0; min-height: 44px; justify-content: flex-start; text-align: left; width: 100%; color: #59328f; }
.music-widget .music-help { font-size: 10px; margin: 0; padding: 8px 10px; color: #73667f; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 22px; align-items: start; }
.editor-preview { position: sticky; top: 16px; min-width: 0; }
.preview-caption { font-size: 11px; font-weight: bold; margin-bottom: 7px; }
.editor-preview .profile-canvas { padding: 14px; }
.editor-preview .identity { padding: 15px; }
.editor-preview .identity .avatar { width: 62px; height: 62px; font-size: 28px; margin-bottom: 14px; }
.editor-preview .identity h2 { font-family: var(--font); color: var(--ink); font-size: 23px; margin-bottom: 6px; }
.editor-preview .panel-body { font-size: 12px; }
.theme-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 18px; }
.theme-choice { border: 1px solid #d3c9de; padding: 10px; font-size: 12px; display: flex; align-items: center; gap: 8px; min-height: 52px; margin: 0; cursor: pointer; }
.theme-choice:has(input:checked) { border-color: #6940a5; outline: 1px solid #6940a5; background: #f8f4fd; }
.color-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field label { margin: 0; font-size: 12px; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li { display: flex; gap: 7px; align-items: center; justify-content: space-between; border: 1px solid #ded5e6; padding: 4px 8px; margin-bottom: 5px; background: #fcfbfe; }
.order-list label { flex: 1; font-size: 12px; margin: 0; }
.order-list .order-move { padding: 7px 10px; min-width: 44px; }
.save-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid #ded5e6; padding-top: 17px; margin-top: 20px; }
.privacy-row { display: grid; grid-template-columns: minmax(100px,1fr) minmax(130px,1fr); gap: 9px 15px; align-items: center; padding: 12px 0; border-top: 1px dotted #ddd3e6; }
.privacy-row:first-child { border-top: 0; }
.privacy-row label { margin: 0; font-size: 12px; }
.privacy-row .selected-detail { grid-column: 1/-1; }
.selected-people { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 15px; }
.selected-people .check { font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; border-bottom: 1px solid #ded5e6; padding: 12px; }
@media (max-width: 760px) {
 .page-shell { padding: 18px 14px 30px; }
 .site-header-inner { padding: 8px 14px 6px; }
 .site-nav > div { padding-inline: 3px; }
 .site-nav a { padding-inline: 11px; }
 .site-footer { padding: 16px; margin-inline: 14px; }
 .profile-canvas { padding: 13px; }
 .profile-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
 .profile-sidebar { display: contents; }
 .profile-sidebar .identity { margin-bottom: 17px; }
 .identity { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 0 16px; }
 .identity .avatar { width: 72px; height: 72px; grid-row: 1/4; font-size: 31px; margin-bottom: 0; }
 .identity h1 { font-size: 25px; }
 .identity .username { margin-bottom: 5px; }
 .identity .quote, .identity .actions { grid-column: 1/-1; }
 .identity .actions .button { width: auto; flex: 1; }
 .profile-sidebar .sidebar-secondary { display: none; }
 .profile-main { grid-column: 1; }
 .profile-topline { align-items: flex-start; }
 .editor-layout { grid-template-columns: minmax(0,1fr); }
 .editor-preview { position: static; grid-row: 1; }
 .editor-preview .profile-canvas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
 .editor-preview .panel { margin: 0; }
 .form-card { padding: 18px; }
 .page-heading { flex-direction: column; }
 .friend-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 440px) {
 .profile-topline { flex-direction: column; gap: 5px; }
 .form-grid { grid-template-columns: 1fr; }
 .form-grid .span-two { grid-column: auto; }
 .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .editor-preview .profile-canvas { grid-template-columns: 1fr; }
 .editor-preview .panel + .panel { display: none; }
 .privacy-row { grid-template-columns: 1fr; }
 .selected-people { grid-template-columns: 1fr; }
 .preview-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
main > .panel > article.panel { padding: 12px 16px; margin-bottom: 10px; }
main > .panel > article.panel p { margin-bottom: 4px; }
.viewer-reactions + .viewer-foot { border-top: 0; padding-top: 0; }
.person-action { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.top8 { padding: 16px 18px; background: #fff; border: 1px solid #e2dbec; border-radius: 12px; }
.top8 h2 { margin: 0 0 10px; }
.top8 form { display: grid; gap: 8px; max-width: 620px; }
.top8 label { margin: 0; }
.top8 .help { margin: 0; }
.top8 button { justify-self: start; }
.friends-page > p:last-child { margin-top: 20px; }
