/* Barrick Media — responsive application design system. */
:root {
  color-scheme: light;
  --blue: #045578;
  --blue-dark: #034462;
  --navy: #092e44;
  --gold: #aa9860;
  --gold-light: #f5f0df;
  --ink: #183345;
  --muted: #7a8894;
  --canvas: #f5f7f9;
  --line: #e7ecf0;
  --white: #fff;
  --soft-blue: #eaf2f6;
  --shadow: 0 5px 25px rgb(18 46 65 / 3%);
  --radius: 18px;
  --sidebar-width: 232px;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button { border: 0; }
a { color: var(--blue); text-decoration: none; }
img { display: block; max-width: 100%; }
button svg, a svg, .nav-icon svg, .empty-icon svg, .access-icon svg { flex-shrink: 0; width: 20px; height: 20px; }
svg { vertical-align: middle; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid #c6a854; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 15px; padding: 12px 18px; background: var(--navy); color: white; border-radius: 10px; z-index: 1000; }
.skip-link:focus { top: 15px; }
.muted, .form-hint { color: var(--muted); }
.muted { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.divider { height: 1px; border: 0; background: var(--line); margin: 20px 0; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: 1.8px; }
.sample-label { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); background: #fff; }

/* Persistent navigation */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); padding: 34px 20px 20px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; padding: 0 15px 33px; }
.brand-logo { width: 150px; height: auto; object-fit: contain; }
.brand-caption { margin-left: 2px; color: var(--navy); font-size: 10px; font-weight: 750; letter-spacing: 3.3px; line-height: 1; text-transform: uppercase; }
.nav-list { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 46px; padding: 12px 15px; border-radius: 10px; color: #74828f; text-align: left; background: transparent; font-weight: 550; transition: background .18s, color .18s; }
.nav-item.active { color: var(--blue); background: var(--soft-blue); font-weight: 700; }
.nav-icon { display: flex; align-items: center; justify-content: center; }
.nav-label { flex: 1; }
.nav-count { min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; color: white; background: var(--blue); border-radius: 7px; font-size: 10px; font-weight: 700; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.workspace-badge { display: flex; gap: 11px; align-items: center; padding: 15px 11px; background: #f6f8fa; border: 1px solid var(--line); border-radius: 12px; }
.workspace-badge strong { font-size: 12px; font-weight: 650; }
.workspace-badge p { margin: 3px 0 0; font-size: 10px; color: var(--muted); }
.workspace-badge .avatar { width: 35px; height: 35px; font-size: 11px; border-radius: 9px; }
.sidebar-bottom > p { padding-left: 10px; margin: 18px 0 0; font-size: 10px; color: #9aa5ae; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #42a288; margin-right: 5px; vertical-align: middle; }
.topbar { position: sticky; top: 0; z-index: 20; height: 86px; margin-left: var(--sidebar-width); padding: 0 36px; display: flex; gap: 24px; align-items: center; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.topbar-title { font-size: 17px; font-weight: 700; letter-spacing: -.4px; margin: 0; white-space: nowrap; }
.global-search { flex: 1; max-width: 440px; margin-left: auto; position: relative; }
.global-search > svg { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: #8b98a3; width: 17px; height: 17px; pointer-events: none; }
.search-input { width: 100%; height: 40px; padding: 0 14px 0 42px; border: 1px solid #edf0f3; background: #f7f9fa; color: var(--ink); border-radius: 9px; font-size: 12px; outline-offset: 1px; }
.search-input::placeholder { color: #9aa5ae; }
.header-actions { display: flex; align-items: center; gap: 17px; }
.header-actions > .avatar { border: 3px solid white; outline: 1px solid var(--line); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 35px; height: 35px; background: transparent; color: #748492; border-radius: 9px; }
.icon-btn .status-dot { position: absolute; top: 5px; right: 4px; width: 5px; height: 5px; background: var(--gold); margin: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 41px; height: 41px; border-radius: 50%; background: #e4eef2; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .2px; object-fit: cover; }
.avatar.small { width: 30px; height: 30px; font-size: 10px; }
.avatar.large { width: 84px; height: 84px; font-size: 24px; }
.workspace { margin-left: var(--sidebar-width); padding: 30px 36px 60px; max-width: 1432px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { font-size: 27px; letter-spacing: -.8px; margin: 0 0 5px; font-weight: 720; }
.page-heading p { margin-bottom: 0; }
.page-heading .btn { flex-shrink: 0; }
.prototype-banner { display: flex; align-items: center; gap: 9px; background: #fcfaf3; color: #8b7b4b; border: 1px solid #ece7d6; font-size: 11px; line-height: 1.6; border-radius: 9px; padding: 9px 13px; margin-bottom: 23px; }
.prototype-banner svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Shared controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; line-height: 1.4; font-weight: 650; white-space: nowrap; transition: background .18s, box-shadow .18s, transform .18s; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: white; }
.btn-secondary { color: var(--ink); background: white; border-color: var(--line); }
.btn-ghost { color: var(--blue); background: transparent; }
.btn-gold { background: var(--gold); color: white; }
.btn-danger { color: #a74949; background: #fff1f0; border-color: #f6d8d5; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 5px; font-size: 9px; font-weight: 700; letter-spacing: .5px; line-height: 1.3; background: #f1f4f6; color: var(--muted); white-space: nowrap; }
.badge svg { width: 11px; height: 11px; }
.badge-gold { color: #947f3f; background: var(--gold-light); }
.badge-blue { color: var(--blue); background: var(--soft-blue); }
.badge-green { color: #328267; background: #edf7f1; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .panel-heading h3 { font-size: 15px; margin: 0; }
.text-input, .field input, .field textarea, .field select, .form-stack textarea, .form-stack select { width: 100%; padding: 11px 13px; border: 1px solid #dfe6eb; border-radius: 9px; background: #fff; color: var(--ink); outline-offset: 2px; font-size: 13px; }
.text-input::placeholder, textarea::placeholder { color: #9aa5af; }
textarea.text-input, .field textarea, .form-stack textarea { min-height: 95px; resize: vertical; line-height: 1.6; }
.input-label, .field > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 650; }
.field { margin-bottom: 17px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-stack .field { margin: 0; }
.form-hint { margin: 6px 0 0; font-size: 11px; line-height: 1.6; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; }
.checkbox-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.notice { margin-bottom: 20px; padding: 13px 16px; border: 1px solid #dbe7ef; background: #f1f7fa; color: #4a7189; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.notice p:last-child { margin-bottom: 0; }

/* Community feed */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 25px; align-items: start; }
.feed-column, .right-rail { min-width: 0; }
.feed-column { display: flex; flex-direction: column; gap: 20px; }
.hero { position: relative; min-height: 254px; overflow: hidden; border-radius: var(--radius); background: var(--navy); isolation: isolate; color: white; }
.hero-image { position: absolute; top: 0; right: 0; height: 100%; width: 53%; object-fit: cover; z-index: -2; opacity: .88; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #092e44 0%, #092e44 33%, rgb(9 46 68 / 89%) 46%, rgb(9 46 68 / 20%) 75%, rgb(9 46 68 / 6%) 100%); }
.hero-copy { position: relative; padding: 29px 28px 27px; width: 70%; max-width: 470px; }
.hero-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; font-size: 9px; font-weight: 700; letter-spacing: 1.9px; text-transform: uppercase; color: #cebf91; }
.hero-kicker::before { content: ""; width: 16px; height: 1px; background: #c6b47d; }
.hero-title { max-width: 340px; font-size: clamp(24px, 2.5vw, 34px); font-weight: 650; letter-spacing: -.9px; line-height: 1.13; margin-bottom: 12px; }
.hero-description { max-width: 295px; font-size: 11px; line-height: 1.8; color: #bed0db; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 8px; align-items: center; }
.hero .btn { font-size: 10px; min-height: 33px; border-radius: 6px; padding: 8px 12px; }
.hero .btn-primary, .hero .btn-gold { background: #b09d63; color: white; }
.hero .btn-ghost { color: #e1eaf0; }
.hero .sample-label { position: absolute; right: 13px; bottom: 13px; color: #d9e3e8; border-color: rgb(255 255 255 / 15%); background: rgb(6 34 50 / 44%); font-size: 8px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.stat > svg, .stat > .nav-icon { width: 35px; height: 35px; padding: 9px; border-radius: 10px; background: var(--soft-blue); color: var(--blue); }
.stat strong { display: block; font-size: 19px; letter-spacing: -.5px; line-height: 1.3; }
.stat p, .stat span { margin: 3px 0 0; font-size: 10px; color: var(--muted); }
.story-strip { display: flex; gap: 21px; align-items: flex-start; padding: 3px 3px 1px; overflow-x: auto; scrollbar-width: none; }
.story-strip::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 7px; background: transparent; padding: 0; flex: 0 0 62px; min-width: 0; }
.story-ring { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 3px; border: 1.5px solid #b09d63; border-radius: 50%; background: white; }
.story-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story-ring .avatar { width: 50px; height: 50px; background: #edf3f6; font-size: 12px; }
.story-label { max-width: 78px; color: #657887; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer { padding: 17px 20px 0; background: white; border: 1px solid var(--line); border-radius: 14px; }
.composer > .row { gap: 12px; }
.composer-trigger { flex: 1; text-align: left; padding: 12px 15px; border: 0; border-radius: 8px; font-size: 12px; color: #96a2ac; background: #f6f8fa; min-width: 0; }
.composer-footer { display: flex; align-items: center; gap: 5px; margin-top: 14px; padding: 10px 0; border-top: 1px solid #eff2f4; }
.composer-footer .btn { min-height: 30px; padding: 6px 9px; font-size: 10px; color: #7c8b96; }
.composer-footer .btn svg { width: 15px; height: 15px; color: var(--gold); }
.composer-footer > .muted { font-size: 10px; margin-left: auto; }
.feed-tabs { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #e0e6eb; }
.tab { padding: 0 0 12px; background: transparent; border-bottom: 2px solid transparent; font-size: 12px; color: #8a97a2; font-weight: 550; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.feed-tabs > .muted { margin-left: auto; font-size: 10px; }
.post { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.post-header { display: flex; align-items: center; gap: 11px; padding: 18px 20px 15px; }
.post-header .icon-btn { margin-left: auto; }
.post-author { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: 12px; font-weight: 700; line-height: 1.4; }
.post-author .badge { font-size: 8px; padding: 3px 5px; }
.post-meta { margin: 4px 0 0; color: #97a2ab; font-size: 10px; }
.post-caption { padding: 0 20px 16px; margin: 0; color: #657787; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.post-caption strong { color: var(--ink); }
.post-image { position: relative; display: block; width: 100%; max-height: 400px; aspect-ratio: 1.62; object-fit: cover; border: 0; background: #e8edf0; }
button.post-image { padding: 0; }
button.post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-actions { display: flex; align-items: center; gap: 20px; padding: 14px 20px 9px; }
.post-action { display: flex; align-items: center; gap: 6px; background: transparent; padding: 2px 0; color: #6b7d8b; font-size: 11px; }
.post-action svg { width: 19px; height: 19px; }
.post-action.active { color: #b26c61; }
.post-action.active svg { fill: #fcf0ec; }
.post-actions .post-action:last-child { margin-left: auto; }
.post-count { padding: 0 20px; font-size: 11px; font-weight: 600; color: #576f80; }
.post-comments { padding: 0 20px 12px; }
.post-comment { margin: 9px 0; color: #778996; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.post-comment strong { font-size: 11px; color: var(--ink); margin-right: 5px; }
.post-comments > .btn-ghost { padding-left: 0; color: #95a2ad; font-size: 11px; }
.comment-form { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-top: 1px solid #eef1f3; }
.comment-form .text-input { min-width: 0; flex: 1; padding: 7px 0; font-size: 11px; border: 0; border-radius: 3px; background: transparent; }
.comment-form .btn { padding: 4px 0 4px 8px; min-height: 29px; font-size: 11px; }
.right-rail { display: flex; flex-direction: column; gap: 20px; }
.rail-card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.rail-title { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.rail-title > svg { color: #aeb7be; width: 16px; height: 16px; }
.rail-card > .eyebrow { font-size: 9px; }
.rail-card p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.rail-card .btn { font-size: 10px; min-height: 34px; }
.rail-card > .btn:last-child { width: 100%; margin-top: 15px; }
.event-row { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 19px; }
.event-row:last-child { margin-bottom: 0; }
.event-row h4, .collection-row h4 { margin: 0 0 5px; color: #455d6d; font-size: 11px; font-weight: 650; line-height: 1.5; }
.event-row p, .collection-row p { margin: 0; color: #9aa5ae; font-size: 10px; line-height: 1.6; }
.date-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex-shrink: 0; width: 43px; height: 48px; border-radius: 8px; background: var(--gold-light); color: #9a8545; font-size: 8px; line-height: 1.2; font-weight: 650; text-transform: uppercase; letter-spacing: .4px; }
.date-tile strong { font-size: 17px; line-height: 1.1; font-weight: 700; }
.collection-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 0; margin: 0 0 16px; background: transparent; text-align: left; }
.collection-row:last-child { margin-bottom: 0; }
.collection-thumb { width: 48px; height: 44px; flex-shrink: 0; border-radius: 7px; object-fit: cover; }
.collection-row > svg { margin-left: auto; color: #b2bcc4; width: 14px; height: 14px; }
.rail-footer { display: flex; flex-wrap: wrap; gap: 7px 15px; padding: 0 7px; color: #a4afb7; font-size: 9px; line-height: 1.9; }
.rail-footer a, .rail-footer button { color: inherit; font-size: inherit; background: transparent; padding: 0; }
.rail-footer p { flex-basis: 100%; margin: 2px 0 0; }

/* Collection library */
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 27px 0 17px; }
.section-heading h2, .section-heading h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.section-heading .btn { font-size: 11px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--line); background: white; border-radius: 7px; color: #7e8e9a; font-size: 11px; font-weight: 550; white-space: nowrap; }
.filter-chip svg { width: 14px; height: 14px; }
.filter-chip.active { background: var(--blue); color: white; border-color: var(--blue); }
.media-toolbar { display: flex; gap: 15px; align-items: center; justify-content: space-between; margin: 0 0 22px; }
.media-toolbar .global-search { margin-left: 0; max-width: 330px; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.collection-card { min-width: 0; overflow: hidden; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: white; color: inherit; box-shadow: var(--shadow); }
.collection-cover { position: relative; width: 100%; height: 165px; background: #e6edf1; overflow: hidden; }
.collection-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.collection-cover .badge { position: absolute; top: 12px; left: 12px; color: #fff; background: rgb(7 34 50 / 60%); backdrop-filter: blur(8px); font-size: 8px; }
.collection-cover .sample-label { position: absolute; bottom: 10px; right: 10px; font-size: 7px; background: rgb(255 255 255 / 88%); }
.collection-info { padding: 17px 18px 16px; }
.collection-info h3 { font-size: 14px; letter-spacing: -.2px; margin-bottom: 6px; font-weight: 650; }
.collection-info p { margin-bottom: 13px; color: #8897a3; font-size: 11px; line-height: 1.65; }
.collection-meta { display: flex; align-items: center; gap: 10px; color: #98a4ae; font-size: 9px; }
.collection-meta span { display: flex; align-items: center; gap: 4px; }
.collection-meta svg { width: 12px; height: 12px; }
.collection-meta .badge { margin-left: auto; font-size: 7px; }
.media-grid, .saved-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.media-card { min-width: 0; border: 1px solid var(--line); background: white; padding: 0; border-radius: 12px; overflow: hidden; text-align: left; color: inherit; box-shadow: var(--shadow); }
.media-thumb { position: relative; width: 100%; aspect-ratio: 1.37; overflow: hidden; background: #e5ebef; }
.media-thumb > img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s ease; }
.media-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 8px; padding: 14px; color: white; background: linear-gradient(transparent 40%, rgb(4 30 47 / 68%)); opacity: 0; transition: opacity .2s; font-size: 10px; }
.media-card:focus-visible .media-overlay, .media-card:focus-within .media-overlay { opacity: 1; }
.media-details { padding: 13px 15px; }
.media-details h3 { font-size: 12px; line-height: 1.4; margin: 0 0 5px; }
.media-details p { font-size: 10px; color: var(--muted); margin: 0; }
.video-badge { position: absolute; inset: auto 10px 10px auto; display: flex; align-items: center; gap: 5px; padding: 4px 6px; color: white; background: rgb(5 28 43 / 65%); border-radius: 5px; font-size: 9px; }
.video-badge svg { width: 12px; height: 12px; }
.library-head { margin-bottom: 25px; }
.back-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: transparent; color: #8393a0; font-size: 11px; margin-bottom: 18px; }
.back-btn svg { width: 16px; height: 16px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); margin-bottom: 19px; }
.breadcrumbs svg { width: 12px; height: 12px; }
.album-hero { position: relative; min-height: 230px; background: var(--navy); border-radius: 18px; padding: 28px; color: white; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.album-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.album-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(4 31 48 / 93%), rgb(4 31 48 / 35%)); z-index: -1; }
.album-title { margin-bottom: 9px; font-size: 30px; font-weight: 650; letter-spacing: -.7px; }
.album-hero p { max-width: 540px; font-size: 12px; color: #d0dde6; line-height: 1.8; margin-bottom: 12px; }
.album-hero .badge { align-self: flex-start; margin-bottom: 13px; }
.album-hero .collection-meta { color: #c6d5df; }
.album-actions { display: flex; gap: 8px; margin-top: 17px; flex-wrap: wrap; }
.album-actions .btn-secondary { background: rgb(255 255 255 / 12%); color: white; border-color: rgb(255 255 255 / 20%); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; text-align: center; padding: 42px 25px; }
.empty-icon { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--soft-blue); color: var(--blue); margin-bottom: 18px; }
.empty-icon svg { width: 25px; height: 25px; }
.empty-title { margin-bottom: 9px; font-size: 18px; font-weight: 650; }
.empty-description { max-width: 380px; color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 19px; }

/* Alias conversations and personal profile */
.messages-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); min-height: 570px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; }
.conversation-list { border-right: 1px solid var(--line); padding: 13px 10px; }
.conversation-list > h3 { font-size: 14px; padding: 10px 12px; margin: 0 0 11px; }
.conversation-list > .global-search { margin: 0 8px 17px; }
.conversation { display: flex; align-items: center; gap: 11px; width: 100%; padding: 15px 11px; margin-bottom: 4px; border-radius: 10px; text-align: left; background: white; }
.conversation.active { background: var(--soft-blue); }
.conversation > div:not(.avatar) { min-width: 0; flex: 1; }
.conversation strong { font-size: 12px; font-weight: 650; }
.conversation time { color: #9cabb5; font-size: 9px; margin-left: auto; white-space: nowrap; }
.conversation-preview { margin: 4px 0 0; font-size: 10px; color: #8d9aa4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-panel { display: flex; flex-direction: column; min-width: 0; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.chat-header h3 { font-size: 13px; margin: 0 0 3px; }
.chat-header p { margin: 0; font-size: 10px; color: var(--muted); }
.chat-header .icon-btn { margin-left: auto; }
.chat-messages { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 15px; max-height: 530px; overflow-y: auto; padding: 26px; background: #fafbfc; }
.chat-messages > .muted { align-self: center; font-size: 9px; margin-bottom: 10px; }
.message-bubble { max-width: 80%; padding: 12px 15px 9px; background: white; border: 1px solid #e9eef2; border-radius: 13px 13px 13px 3px; font-size: 12px; color: #657b8b; line-height: 1.7; overflow-wrap: anywhere; }
.message-bubble p { margin-bottom: 7px; }
.message-bubble.mine { align-self: flex-end; background: var(--blue); color: white; border-color: var(--blue); border-radius: 13px 13px 3px 13px; }
.message-time { display: block; margin-top: 6px; color: #a4b0b9; font-size: 9px; text-align: right; }
.message-bubble.mine .message-time { color: #a5c4d3; }
.chat-composer { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--line); }
.chat-composer .text-input { min-width: 0; flex: 1; }
.profile-cover { height: 170px; position: relative; border-radius: 18px 18px 0 0; background: linear-gradient(115deg, #092e44, #045578); overflow: hidden; }
.profile-cover::after { content: ""; position: absolute; width: 400px; height: 400px; right: -30px; top: -270px; border: 65px solid rgb(255 255 255 / 4%); border-radius: 50%; }
.profile-cover > img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.profile-card { position: relative; background: white; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; padding: 0 29px 24px; }
.profile-avatar { position: relative; margin-top: -43px; width: 88px; height: 88px; border: 5px solid white; border-radius: 50%; background: #dcebf1; font-size: 27px; box-shadow: 0 2px 5px rgb(9 46 68 / 5%); }
.profile-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 14px; }
.profile-info h1 { margin-bottom: 5px; font-size: 24px; letter-spacing: -.6px; }
.profile-info p { margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.profile-stats { display: flex; gap: 33px; margin-top: 24px; }
.profile-stats strong { font-size: 18px; color: var(--ink); margin-right: 5px; }
.profile-stats span { color: var(--muted); font-size: 11px; }
.profile-tabs { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid #e1e7ec; margin: 27px 0 22px; }
.activity-list { border: 1px solid var(--line); background: white; border-radius: 14px; overflow: hidden; }
.activity-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-bottom: 1px solid #edf1f4; }
.activity-item:last-child { border: 0; }
.activity-item > svg { color: var(--blue); width: 18px; height: 18px; margin-top: 3px; }
.activity-item p { font-size: 12px; margin-bottom: 5px; line-height: 1.7; }
.activity-item time { color: #9aa7b1; font-size: 10px; }
.activity-item > .collection-thumb { margin-left: auto; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 25px; }
.access-card { padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.access-icon { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: var(--soft-blue); color: var(--blue); border-radius: 12px; margin-bottom: 20px; }
.access-card h3 { font-size: 16px; margin-bottom: 9px; }
.access-card p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.access-card ul { padding-left: 17px; margin: 19px 0; font-size: 11px; line-height: 2; color: #718694; }
.access-card .btn { width: 100%; margin-top: 9px; }

/* Search, modal, and transient feedback */
.search-results { display: flex; flex-direction: column; gap: 11px; }
.search-result { display: flex; align-items: center; gap: 16px; padding: 15px; background: white; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.result-thumb { flex-shrink: 0; width: 77px; height: 64px; object-fit: cover; border-radius: 8px; }
.result-body { flex: 1; min-width: 0; }
.result-body h3 { font-size: 13px; margin-bottom: 5px; }
.result-body p { font-size: 11px; margin-bottom: 5px; color: var(--muted); line-height: 1.7; }
.result-type { font-size: 9px; letter-spacing: .5px; color: var(--gold); text-transform: uppercase; font-weight: 700; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 30px; background: rgb(4 24 39 / 58%); backdrop-filter: blur(7px); display: flex; align-items: center; justify-content: center; overflow-y: auto; animation: veil-in .18s ease-out; }
.modal { width: 100%; max-width: 510px; max-height: calc(100dvh - 60px); overflow-y: auto; background: white; border-radius: 19px; box-shadow: 0 25px 100px rgb(0 20 34 / 20%); animation: modal-in .2s ease-out; }
.modal-wide { max-width: 1020px; }
.modal-header { display: flex; align-items: flex-start; gap: 20px; padding: 25px 26px 19px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0 0 5px; font-size: 20px; letter-spacing: -.5px; }
.modal-header p { margin: 0; color: var(--muted); font-size: 11px; }
.modal-close { margin: -4px -6px 0 auto; width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #f3f6f8; color: #8b9ba6; flex-shrink: 0; }
.modal-close svg { width: 17px; height: 17px; }
.modal-body { padding: 24px 26px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 26px 22px; border-top: 1px solid var(--line); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); }
.detail-preview { display: flex; align-items: center; justify-content: center; min-height: 410px; background: #0b283a; position: relative; }
.detail-preview img, .detail-preview video { display: block; width: 100%; height: 100%; max-height: 650px; object-fit: contain; }
.detail-preview .sample-label { position: absolute; bottom: 14px; left: 14px; background: rgb(0 0 0 / 20%); color: #ced9e1; border-color: rgb(255 255 255 / 20%); }
.detail-info { padding: 25px; min-width: 0; }
.detail-info h2 { font-size: 20px; margin-bottom: 11px; }
.detail-info > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 10px; padding: 17px 0; margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-meta dt { font-size: 9px; text-transform: uppercase; color: #9ba7b0; letter-spacing: .5px; margin-bottom: 4px; }
.detail-meta dd { margin: 0; font-size: 11px; color: #5d7788; }
.detail-info .post-comments { padding: 0; }
.detail-info .comment-form { padding: 13px 0 0; margin-top: 16px; }
.detail-info > .btn { width: 100%; }
.toast { position: fixed; z-index: 200; bottom: 30px; left: calc(50% + 116px); transform: translate(-50%, 18px); max-width: min(500px, calc(100vw - 40px)); padding: 14px 21px; border-radius: 11px; color: white; background: #123c52; box-shadow: 0 8px 30px rgb(0 26 42 / 20%); font-size: 12px; line-height: 1.7; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(100deg, #eef2f5 30%, #f8fafb 50%, #eef2f5 70%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
.mobile-nav { display: none; }

@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover:not(.active) { background: #f7f9fa; color: var(--blue); }
  .icon-btn:hover { background: #f0f4f7; color: var(--blue); }
  .btn-primary:hover { background: var(--blue-dark); box-shadow: 0 4px 10px rgb(4 85 120 / 13%); }
  .btn-secondary:hover { background: #f7f9fa; border-color: #d5e0e7; }
  .btn-ghost:hover { background: #eff4f7; }
  .btn-gold:hover { background: #99854d; }
  .hero .btn-ghost:hover { background: rgb(255 255 255 / 7%); }
  .filter-chip:hover:not(.active) { color: var(--blue); background: #f2f6f8; }
  .collection-card:hover { border-color: #ccdae4; }
  .collection-card:hover .collection-cover > img, .media-card:hover .media-thumb > img { transform: scale(1.035); }
  .media-card:hover .media-overlay { opacity: 1; }
  .post-action:hover { color: var(--blue); }
  .conversation:hover:not(.active) { background: #f7f9fa; }
  .story:hover .story-ring { border-color: var(--blue); }
  .search-result:hover { border-color: #ccdae4; }
}

/* Compact desktop and tablet */
@media (min-width: 1550px) {
  .workspace { max-width: 1400px; margin-right: auto; padding-left: 50px; padding-right: 50px; }
  .feed-layout { grid-template-columns: minmax(0, 740px) 300px; gap: 30px; }
  .hero { min-height: 280px; }
  .hero-copy { padding: 34px; }
}
@media (max-width: 1230px) {
  :root { --sidebar-width: 208px; }
  .sidebar { padding: 30px 15px 18px; }
  .brand { padding-left: 12px; }
  .brand-logo { width: 143px; }
  .topbar { padding: 0 26px; gap: 20px; }
  .workspace { padding: 25px 26px 50px; }
  .feed-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .rail-card { padding: 18px; }
  .hero-copy { padding: 26px 23px; width: 75%; }
  .hero-title { font-size: 28px; }
  .hero-description { max-width: 250px; }
  .hero { min-height: 248px; }
  .story-strip { gap: 16px; }
  .stat { padding: 12px; gap: 9px; }
  .stat > svg, .stat > .nav-icon { width: 31px; height: 31px; padding: 7px; }
  .stat strong { font-size: 17px; }
  .stat p, .stat span { font-size: 9px; }
  .toast { left: calc(50% + 104px); }
}
@media (max-width: 1080px) {
  .right-rail { display: none; }
  .feed-layout { grid-template-columns: minmax(0, 1fr); max-width: 750px; }
  .topbar .global-search { max-width: 320px; }
  .hero { min-height: 260px; }
  .hero-title { font-size: 32px; }
  .hero-copy { width: 68%; }
  .hero-description { max-width: 300px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid, .saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-grid { grid-template-columns: 1fr; gap: 15px; }
  .access-card { padding: 22px; }
  .access-card .btn { width: auto; }
  .messages-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .conversation { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .conversation .avatar { width: 35px; height: 35px; font-size: 10px; }
  .detail-layout { grid-template-columns: minmax(0, 1.25fr) minmax(255px, 1fr); }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 80px; }
  .sidebar { padding: 25px 12px 17px; }
  .brand { align-items: center; padding: 0 0 30px; gap: 8px; }
  .brand-logo { width: 55px; }
  .brand-caption { font-size: 6px; letter-spacing: 1px; margin-left: 0; }
  .nav-item { padding: 12px; justify-content: center; position: relative; }
  .nav-label, .nav-count { display: none; }
  .nav-item .nav-count { position: absolute; display: flex; width: 14px; min-width: 14px; height: 14px; font-size: 8px; top: 4px; right: 3px; border-radius: 50%; padding: 0; }
  .workspace-badge { padding: 8px; justify-content: center; background: transparent; border: 0; }
  .workspace-badge > div:not(.avatar), .sidebar-bottom > p { display: none; }
  .topbar { padding: 0 22px; height: 74px; }
  .workspace { padding: 24px 22px 45px; }
  .topbar-title { font-size: 16px; }
  .header-actions { gap: 8px; }
  .header-actions .avatar { width: 33px; height: 33px; font-size: 10px; }
  .topbar .global-search { max-width: 260px; }
  .topbar .search-input { font-size: 10px; }
  .page-heading h1 { font-size: 24px; }
  .toast { left: calc(50% + 40px); }
  .messages-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .chat-messages { padding: 20px 17px; }
  .chat-composer { padding: 15px; }
  .message-bubble { max-width: 90%; }
}

/* Phone application */
@media (max-width: 640px) {
  :root { --sidebar-width: 0px; }
  body { font-size: 13px; }
  .sidebar { display: none; }
  .topbar { height: 67px; margin-left: 0; padding: 0 18px; gap: 10px; }
  .topbar-title { flex: 1; font-size: 17px; }
  .topbar .global-search { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .icon-btn { width: 31px; height: 31px; }
  .header-actions > .avatar { margin-left: 3px; }
  .workspace { margin: 0; padding: 22px 16px calc(95px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: flex-start; gap: 13px; margin-bottom: 19px; }
  .page-heading h1 { font-size: 23px; letter-spacing: -.6px; }
  .page-heading .muted { font-size: 11px; line-height: 1.7; }
  .page-heading .btn { padding: 8px 10px; min-height: 34px; font-size: 10px; margin-top: 4px; }
  .page-heading .btn svg { width: 13px; height: 13px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .prototype-banner { margin-bottom: 18px; padding: 8px 11px; font-size: 9px; align-items: flex-start; }
  .prototype-banner svg { margin-top: 1px; width: 13px; height: 13px; }
  .feed-column { gap: 18px; }
  .hero { min-height: 240px; border-radius: 15px; }
  .hero-copy { width: 82%; padding: 25px 22px; }
  .hero-title { font-size: 28px; max-width: 260px; letter-spacing: -.7px; }
  .hero-description { font-size: 10px; max-width: 227px; line-height: 1.75; margin-bottom: 18px; }
  .hero-kicker { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 12px; }
  .hero-image { width: 66%; }
  .hero::after { background: linear-gradient(90deg, #092e44 0%, rgb(9 46 68 / 95%) 35%, rgb(9 46 68 / 72%) 58%, rgb(9 46 68 / 16%) 100%); }
  .hero .btn { font-size: 9px; padding: 8px 10px; }
  .hero .sample-label { bottom: 9px; right: 9px; font-size: 6px; }
  .stats-row { gap: 8px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px 12px; border-radius: 10px; }
  .stat > svg, .stat > .nav-icon { width: 27px; height: 27px; padding: 6px; border-radius: 7px; }
  .stat strong { font-size: 18px; }
  .stat p, .stat span { font-size: 9px; }
  .story-strip { margin-right: -16px; padding-right: 16px; gap: 15px; }
  .story { flex-basis: 56px; }
  .story-ring { width: 56px; height: 56px; }
  .story-ring .avatar { width: 46px; height: 46px; }
  .story-label { font-size: 9px; }
  .composer { padding: 14px 14px 0; border-radius: 12px; }
  .composer .avatar { width: 34px; height: 34px; font-size: 10px; }
  .composer-trigger { font-size: 11px; padding: 10px 11px; }
  .composer-footer { margin-top: 12px; padding: 7px 0; gap: 0; }
  .composer-footer .btn { font-size: 9px; padding: 6px 7px; gap: 5px; }
  .composer-footer .btn svg { width: 13px; height: 13px; }
  .composer-footer > .muted { font-size: 8px; }
  .feed-tabs { gap: 23px; }
  .tab { font-size: 11px; padding-bottom: 10px; }
  .feed-tabs > .muted { font-size: 8px; }
  .post { border-radius: 13px; }
  .post-header { padding: 15px 15px 13px; gap: 9px; }
  .post-header .avatar { width: 35px; height: 35px; font-size: 10px; }
  .post-author { font-size: 11px; gap: 5px; }
  .post-author .badge { font-size: 7px; }
  .post-meta { font-size: 9px; }
  .post-caption { padding: 0 15px 14px; font-size: 11px; }
  .post-image { aspect-ratio: 1.3; }
  .post-actions { padding: 13px 15px 9px; gap: 18px; }
  .post-action { font-size: 10px; }
  .post-action svg { width: 18px; height: 18px; }
  .post-count { padding: 0 15px; font-size: 10px; }
  .post-comments { padding: 0 15px 10px; }
  .post-comment, .post-comment strong { font-size: 10px; }
  .comment-form { padding: 11px 15px; gap: 8px; }
  .comment-form .text-input { font-size: 10px; }
  .comment-form .avatar.small { width: 26px; height: 26px; font-size: 8px; }
  .mobile-nav { position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 7px calc(9px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 97%); border-top: 1px solid #e4eaef; backdrop-filter: blur(20px); box-shadow: 0 -4px 20px rgb(17 47 67 / 3%); }
  .mobile-nav-item { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: transparent; color: #9aa7b1; font-size: 8px; line-height: 1.2; padding: 1px 5px; }
  .mobile-nav-item svg { width: 21px; height: 21px; }
  .mobile-nav-item.active { color: var(--blue); font-weight: 750; }
  .mobile-nav-item.active svg { fill: #e7f0f5; }
  .mobile-nav-item .nav-count { display: none; }
  .media-toolbar { flex-wrap: wrap; gap: 13px; }
  .media-toolbar .global-search { max-width: none; flex-basis: 100%; }
  .filters { gap: 6px; }
  .filter-chip { font-size: 10px; padding: 7px 10px; }
  .filter-chip svg { width: 12px; height: 12px; }
  .section-heading { margin-top: 23px; }
  .section-heading h2, .section-heading h3 { font-size: 15px; }
  .section-heading > .muted { font-size: 10px; }
  .collection-grid { gap: 12px; }
  .collection-cover { height: 120px; }
  .collection-cover .badge { top: 8px; left: 8px; font-size: 6px; padding: 3px 5px; }
  .collection-cover .sample-label { bottom: 6px; right: 6px; font-size: 6px; padding: 2px 4px; }
  .collection-info { padding: 12px 11px; }
  .collection-info h3 { font-size: 12px; line-height: 1.4; margin-bottom: 5px; }
  .collection-info p { font-size: 9px; margin-bottom: 10px; }
  .collection-meta { gap: 8px; font-size: 8px; flex-wrap: wrap; }
  .collection-meta .badge { font-size: 6px; margin-left: 0; }
  .collection-card { border-radius: 11px; }
  .media-grid, .saved-grid { gap: 11px; }
  .media-thumb { aspect-ratio: 1.15; }
  .media-details { padding: 11px; }
  .media-details h3 { font-size: 10px; }
  .media-details p { font-size: 8px; }
  .media-overlay { display: none; }
  .album-hero { min-height: 235px; padding: 23px 20px; border-radius: 14px; }
  .album-title { font-size: 25px; }
  .album-hero p { font-size: 11px; }
  .album-actions .btn { font-size: 10px; padding: 8px 11px; }
  .album-hero .collection-meta { font-size: 9px; }
  .empty-state { min-height: 240px; padding: 35px 20px; }
  .empty-title { font-size: 17px; }
  .empty-description { font-size: 11px; }
  .messages-layout { display: flex; flex-direction: column; min-height: auto; border-radius: 13px; }
  .conversation-list { display: flex; gap: 6px; border: 0; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 10px; flex-shrink: 0; }
  .conversation-list > h3, .conversation-list > .global-search { display: none; }
  .conversation { flex: 0 0 145px; width: 145px; gap: 8px; margin: 0; padding: 11px 8px; }
  .conversation strong { font-size: 10px; }
  .conversation time { display: none; }
  .conversation-preview { font-size: 9px; }
  .conversation .avatar { width: 31px; height: 31px; font-size: 9px; }
  .chat-header { padding: 16px; }
  .chat-header h3 { font-size: 12px; }
  .chat-header .avatar { width: 35px; height: 35px; font-size: 10px; }
  .chat-messages { min-height: 290px; max-height: 400px; padding: 20px 15px; gap: 13px; }
  .message-bubble { max-width: 88%; font-size: 11px; padding: 11px 13px 8px; }
  .message-time { font-size: 8px; }
  .chat-composer { padding: 13px; gap: 8px; }
  .chat-composer .text-input { font-size: 11px; padding: 10px; }
  .chat-composer .btn { padding: 9px; min-height: 37px; font-size: 10px; }
  .profile-cover { height: 135px; border-radius: 14px 14px 0 0; }
  .profile-card { padding: 0 20px 22px; }
  .profile-avatar { width: 75px; height: 75px; margin-top: -37px; font-size: 24px; }
  .profile-info { gap: 12px; }
  .profile-info h1 { font-size: 21px; }
  .profile-info p { font-size: 10px; }
  .profile-info .btn { font-size: 9px; padding: 7px 10px; min-height: 31px; }
  .profile-stats { gap: 20px; margin-top: 20px; }
  .profile-stats strong { font-size: 16px; }
  .profile-stats span { font-size: 9px; }
  .profile-tabs { gap: 23px; margin-top: 23px; overflow-x: auto; }
  .activity-item { padding: 16px; gap: 11px; }
  .activity-item p { font-size: 11px; }
  .activity-item time { font-size: 9px; }
  .activity-item > .collection-thumb { width: 40px; height: 40px; }
  .access-card { padding: 23px; }
  .search-result { padding: 12px; gap: 12px; }
  .result-thumb { width: 64px; height: 60px; }
  .result-body h3 { font-size: 12px; }
  .result-body p { font-size: 10px; }
  .result-type { font-size: 8px; }
  .modal-backdrop { padding: 15px; align-items: center; }
  .modal { border-radius: 15px; max-height: calc(100dvh - 30px); }
  .modal-header { padding: 21px 20px 16px; }
  .modal-header h2 { font-size: 18px; }
  .modal-header p { font-size: 10px; }
  .modal-body { padding: 21px 20px; }
  .modal-footer { padding: 16px 20px 20px; }
  .detail-layout { display: flex; flex-direction: column; }
  .detail-preview { min-height: 210px; max-height: 310px; }
  .detail-preview img, .detail-preview video { height: auto; max-height: 310px; }
  .detail-info { padding: 22px; }
  .detail-info h2 { font-size: 19px; }
  .detail-info > p { font-size: 11px; }
  .detail-meta { margin: 15px 0; gap: 14px; }
  .toast { bottom: calc(87px + env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: calc(100vw - 32px); font-size: 11px; padding: 12px 17px; }
  .text-input, .field input, .field textarea, .field select, .form-stack textarea, .form-stack select, .search-input { font-size: 16px; }
  .search-input { height: 42px; }
}
@media (max-width: 359px) {
  .workspace { padding-left: 12px; padding-right: 12px; }
  .page-heading .btn { padding: 7px 8px; font-size: 9px; }
  .hero-copy { padding: 23px 18px; width: 90%; }
  .hero-title { font-size: 26px; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-cover { height: 180px; }
  .profile-stats { gap: 13px; }
  .composer-footer > .muted { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Application markup refinements. */
.main-shell { min-width: 0; margin-left: var(--sidebar-width); }
.main-shell .topbar, .main-shell .workspace { margin-left: 0; }
.main-shell > .prototype-banner { border-radius: 0; margin: 0; min-height: 35px; padding: 7px 36px; border-width: 0 0 1px; justify-content: space-between; font-size: 9px; }
.prototype-banner > span { min-width: 0; }
.prototype-banner > button { display: flex; align-items: center; flex-shrink: 0; gap: 6px; font-size: 9px; padding: 0; color: #99854d; background: transparent; }
.prototype-banner > button svg { width: 12px; height: 12px; }
.prototype-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.mobile-logo { display: none; }
.search-submit { position: absolute; right: 9px; top: 9px; width: 23px; height: 23px; display: flex; align-items: center; justify-content: center; background: white; border: 1px solid #e7edf1; border-radius: 5px; color: #a2aeb7; }
.search-submit svg { width: 12px; height: 12px; }
.global-search .search-input { padding-right: 43px; }
.avatar-button { display: flex; border: 3px solid #fff; outline: 1px solid var(--line); padding: 0; border-radius: 50%; background: transparent; }
.gold-dot { color: var(--gold); }
.sidebar-bottom > .nav-item { font-size: 10px; padding-left: 14px; gap: 10px; min-height: 39px; }
.sidebar-bottom > .nav-item svg { width: 16px; height: 16px; }
.sidebar-bottom .workspace-badge { margin-top: 17px; padding: 14px 12px; gap: 8px; background: #f5f8fa; }
.workspace-badge > .status-dot { width: 6px; height: 6px; flex-shrink: 0; margin: 0; }
.workspace-badge strong { display: block; font-size: 10px; }
.workspace-badge small { display: block; margin-top: 4px; font-size: 8px; color: #92a0aa; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 20px; padding: 15px 3px 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.sidebar-profile > span:not(.avatar) { flex: 1; min-width: 0; }
.sidebar-profile strong { display: block; font-size: 10px; font-weight: 650; }
.sidebar-profile small { display: block; margin-top: 2px; color: #97a4ae; font-size: 8px; }
.sidebar-profile > svg { width: 13px; height: 13px; color: #a1aeb7; }
.text-button { display: inline-flex; align-items: center; gap: 6px; background: transparent; padding: 0; color: var(--blue); font-size: 10px; font-weight: 650; }
.text-button svg { width: 13px; height: 13px; }
.moments-section .section-heading { margin: 2px 0 17px; }
.moments-section .section-heading h2 { font-size: 14px; }
.story-ring { position: relative; }
.story-video { position: absolute; width: 18px; height: 18px; bottom: -1px; right: 0; display: flex; align-items: center; justify-content: center; background: white; border: 2px solid white; border-radius: 50%; color: var(--blue); box-shadow: 0 1px 5px rgb(9 46 68 / 10%); }
.story-video svg { width: 10px; height: 10px; fill: var(--blue); }
.composer { display: flex; align-items: center; gap: 11px; padding: 16px 18px; }
.composer > .avatar { width: 35px; height: 35px; font-size: 10px; }
.composer-trigger { background: #f7f9fa; font-size: 11px; padding: 11px 14px; }
.composer > .icon-btn { width: 29px; color: var(--gold); }
.post-author { flex-direction: column; align-items: flex-start; gap: 0; }
.post-author > strong { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.post-meta { display: block; font-weight: 400; }
.post-meta > span { padding: 0 2px; }
.verified { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; margin-left: 3px; border-radius: 50%; color: white; background: var(--blue); }
.verified svg { width: 9px; height: 9px; stroke-width: 3px; }
.post-media-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: #e7edf1; }
.post-media-button::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgb(3 28 45 / 55%)); pointer-events: none; }
.post-media-button > .sample-label { position: absolute; right: 13px; top: 13px; border-color: rgb(255 255 255 / 25%); color: white; background: rgb(3 30 47 / 30%); font-size: 8px; }
.post-collection-label { position: absolute; z-index: 1; bottom: 17px; left: 20px; right: 20px; display: flex; align-items: center; gap: 7px; color: white; font-size: 11px; font-weight: 600; }
.post-collection-label > svg { width: 15px; height: 15px; }
.post-collection-label > svg:last-child { margin-left: auto; }
.view-collection { font-size: 10px; font-weight: 650; color: var(--blue); }
.view-collection svg { width: 14px; height: 14px; }
.post-comments > .comment-form { padding-left: 0; padding-right: 0; margin-top: 12px; padding-bottom: 3px; }
.post-comments > .comment-form .icon-btn { color: #a3b1bb; }
.welcome-card { position: relative; overflow: hidden; background: #f0f5f8; border-color: #e0eaf0; padding-top: 25px; padding-bottom: 25px; }
.welcome-card::after { content: ""; position: absolute; right: -34px; top: -42px; width: 140px; height: 140px; border: 24px solid rgb(4 85 120 / 3%); border-radius: 50%; pointer-events: none; }
.rail-overline { color: #8c9eaa; font-size: 8px; font-weight: 750; letter-spacing: 1.5px; margin-bottom: 14px; }
.welcome-card h3 { color: var(--navy); font-size: 23px; line-height: 1.25; letter-spacing: -.6px; font-weight: 650; margin-bottom: 11px; }
.welcome-card p { font-size: 11px; line-height: 1.85; color: #8497a4; margin-bottom: 15px; }
.welcome-rule { width: 30px; height: 2px; margin: 18px 0; background: var(--gold); }
.welcome-card > .badge { background: #e1ecf2; font-size: 8px; }
.rail-title { margin-bottom: 19px; }
.rail-title h3 { font-size: 12px; margin: 0; }
.collection-row > span { min-width: 0; flex: 1; }
.collection-row strong, .event-row > span > strong { display: block; color: #516a7b; font-size: 10px; font-weight: 650; line-height: 1.45; }
.collection-row small, .event-row > span > small { display: block; margin-top: 4px; color: #98a6b1; font-size: 9px; line-height: 1.6; }
.event-row { background: transparent; text-align: left; padding: 0; }
.date-tile small { color: inherit; font-size: 8px; }
.event-link { display: inline-flex; gap: 5px; align-items: center; font-size: 9px; color: var(--blue); margin-top: 8px; }
.event-link svg { width: 12px; height: 12px; }
.public-card { background: #faf8f1; border-color: #eee8d7; }
.public-card > svg { width: 23px; height: 23px; color: #ab985f; margin-bottom: 13px; }
.public-card h3 { font-size: 14px; margin-bottom: 7px; }
.public-card p { margin-bottom: 14px; }
.public-card .text-button { color: #9a844a; }
.rail-footer { gap: 3px; }
.rail-footer > span { flex-basis: 100%; }
.rail-footer > button { margin-top: 4px; }
.collection-cover, .collection-info { display: block; }
.collection-cover { height: 180px; }
.collection-category { display: block; font-size: 8px; color: var(--gold); font-weight: 750; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px; }
.collection-info > strong { display: block; font-size: 14px; font-weight: 650; margin-bottom: 9px; letter-spacing: -.2px; }
.collection-card-footer { display: flex; align-items: center; gap: 5px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #eef2f4; color: #8e9eaa; font-size: 9px; }
.collection-card-footer svg { width: 12px; height: 12px; }
.collection-card-footer svg:last-child { margin-left: auto; color: #a4b1bb; }
.library-head { display: flex; gap: 15px; align-items: flex-end; justify-content: space-between; margin-bottom: 19px; border-bottom: 1px solid #e1e8ed; }
.library-head .feed-tabs { flex: 1; border: 0; }
.library-head > .muted { font-size: 10px; padding-bottom: 12px; }
.library-head .tab { display: flex; align-items: center; gap: 6px; }
.library-head .tab svg { width: 14px; height: 14px; }
.workspace > .filters { margin-bottom: 23px; }
.library-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; color: #9eacb5; margin: 27px 0 0; }
.library-note svg { width: 14px; height: 14px; flex-shrink: 0; }
.media-thumb { display: block; padding: 0; }
.media-thumb .sample-label { position: absolute; top: 9px; right: 9px; color: white; font-size: 7px; background: rgb(4 31 47 / 35%); border-color: rgb(255 255 255 / 20%); }
.media-details { display: flex; align-items: center; gap: 8px; padding: 12px 13px; }
.media-title { flex: 1; min-width: 0; padding: 0; background: transparent; font-size: 11px; font-weight: 600; text-align: left; line-height: 1.5; }
.media-details .icon-btn { width: 26px; height: 29px; }
.media-details .icon-btn svg { width: 16px; height: 16px; }
.is-saved { color: var(--gold); }
.is-saved svg { fill: #f6f0dd; }
.album-hero-copy h1 { font-size: 33px; font-weight: 650; letter-spacing: -.7px; margin: 0 0 10px; }
.album-hero .sample-label { position: absolute; right: 17px; top: 17px; color: white; border-color: rgb(255 255 255 / 20%); background: rgb(4 31 47 / 20%); font-size: 8px; }
.album-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; color: #d2dfe7; font-size: 10px; }
.album-hero-meta > span { display: flex; align-items: center; gap: 6px; }
.album-hero-meta svg { width: 13px; height: 13px; }
.album-intro { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin: 24px 0; }
.album-intro p { flex: 1; margin: 0; font-size: 12px; color: #8293a0; line-height: 1.8; }
.collection-discussion { margin-top: 27px; padding: 23px; }
.collection-discussion .section-heading { margin-top: 0; margin-bottom: 9px; }
.discussion-hint { font-size: 11px; margin-bottom: 24px; }
.discussion-comment { display: flex; gap: 11px; margin: 18px 0; }
.discussion-comment > div { min-width: 0; }
.discussion-comment strong { font-size: 11px; }
.discussion-comment small { display: block; color: #9aa8b2; font-size: 9px; margin-top: 3px; }
.discussion-comment p { margin: 7px 0 0; font-size: 12px; line-height: 1.75; color: #728896; overflow-wrap: anywhere; }
.collection-discussion .comment-form { padding-left: 0; padding-right: 0; padding-bottom: 0; margin-top: 22px; }
.notice { display: flex; align-items: flex-start; gap: 10px; }
.notice > svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.conversation-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px; margin-bottom: 13px; }
.conversation-list-heading h2 { margin: 0; font-size: 14px; }
.conversation-list-heading > span { font-size: 9px; background: #eff3f6; color: #8a9ca8; padding: 2px 6px; border-radius: 5px; }
.conversation > span:not(.avatar) { min-width: 0; flex: 1; }
.conversation-preview { display: block; }
.chat-header strong { font-size: 12px; }
.chat-header small { display: block; font-size: 10px; color: #99a8b3; margin-top: 3px; }
.chat-header > svg:last-child { margin-left: auto; width: 16px; height: 16px; color: #aab6bf; }
.chat-date { align-self: center; color: #adb7bf; font-size: 8px; letter-spacing: 1.4px; margin-bottom: 17px; }
.message-wrap { max-width: 83%; }
.message-wrap.mine { align-self: flex-end; }
.message-wrap .message-bubble { max-width: none; }
.message-wrap .message-time { margin: 6px 2px 0; text-align: left; }
.message-wrap.mine .message-time { text-align: right; }
.message-reference { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-top: 11px; border-radius: 7px; font-size: 10px; background: #edf3f7; color: var(--blue); text-align: left; }
.message-reference svg { width: 14px; height: 14px; }
.mine .message-reference { color: white; background: rgb(255 255 255 / 12%); }
.send-button { min-height: 39px; width: 39px; padding: 10px; }
.profile-cover { padding: 32px; }
.profile-cover .eyebrow { color: #afbdc4; font-size: 8px; }
.profile-cover h1 { color: white; font-size: 25px; font-weight: 550; letter-spacing: -.5px; margin: 10px 0 0; }
.profile-card { display: grid; grid-template-columns: 95px minmax(0, 1fr) auto; gap: 0 20px; overflow: visible; align-items: center; padding-top: 23px; }
.profile-avatar { display: flex; align-items: center; justify-content: center; grid-column: 1; grid-row: 1; margin-top: -60px; width: 92px; height: 92px; background: white; }
.profile-avatar > .avatar { width: 81px; height: 81px; font-size: 24px; }
.profile-info { display: block; margin: 0; }
.profile-info h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.5px; }
.profile-info p { margin: 0 0 11px; font-size: 11px; }
.profile-card > .btn { align-self: start; font-size: 10px; }
.profile-stats { grid-column: 2 / 4; margin-top: 22px; }
.profile-stats > div { display: flex; align-items: baseline; gap: 5px; }
.profile-overview { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 22px; }
.profile-overview .section-heading { margin: 0; padding: 21px; border-bottom: 1px solid var(--line); }
.profile-overview .section-heading h2 { font-size: 14px; }
.profile-privacy { padding: 24px; }
.profile-privacy > svg { color: var(--gold); width: 26px; height: 26px; margin-bottom: 16px; }
.profile-privacy h3 { font-size: 15px; margin-bottom: 10px; }
.profile-privacy p { font-size: 11px; line-height: 1.8; color: #8c9da8; margin-bottom: 18px; }
.activity-item > div { flex: 1; min-width: 0; }
.activity-item strong { display: block; font-size: 11px; font-weight: 550; line-height: 1.65; overflow-wrap: anywhere; }
.activity-item small { display: block; font-size: 9px; color: #9cabb5; margin-top: 5px; }
.activity-item .icon-btn { width: 24px; height: 26px; }
.activity-item .icon-btn svg { width: 14px; height: 14px; }
.own-posts-title { font-size: 18px; margin: 30px 0 20px; }
.own-posts-title ~ .post { margin-bottom: 20px; max-width: 730px; }
.page-search { display: flex; align-items: center; gap: 12px; padding: 9px 11px 9px 17px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.page-search > svg { color: #96a5b1; width: 18px; height: 18px; flex-shrink: 0; }
.page-search .text-input { border: 0; padding: 8px 0; min-width: 0; }
.search-summary > span:first-child { color: #7c8f9d; font-size: 12px; }
.result-body > strong { display: block; font-size: 13px; margin: 3px 0 4px; }
.result-body > span:last-child { display: block; font-size: 11px; color: #8e9fab; line-height: 1.75; max-height: 3.5em; overflow: hidden; }
.result-icon { display: flex; align-items: center; justify-content: center; background: var(--soft-blue); color: var(--blue); }
.result-icon > svg { width: 25px; height: 25px; }
.search-result > svg:last-child { width: 15px; height: 15px; color: #a7b4bd; flex-shrink: 0; }
.modal-open { overflow: hidden; }
.modal .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.modal .access-card { padding: 18px; border-radius: 11px; }
.modal .access-card .access-icon { width: 35px; height: 35px; margin-bottom: 14px; border-radius: 9px; }
.modal .access-card h3 { font-size: 13px; }
.modal .access-card p { font-size: 11px; margin-bottom: 0; }
.modal-body > .form-stack p { font-size: 12px; line-height: 1.8; margin: 0; color: #7c8f9d; }
.form-stack .row small { display: block; font-size: 10px; margin-top: 2px; }
.field { display: block; }
.field > span { display: block; font-size: 11px; font-weight: 650; margin-bottom: 8px; }
.form-stack > .modal-footer { padding: 18px 0 0; margin-top: 4px; }
.modal-wide .modal-body { padding: 0; }
.modal-wide .detail-preview { border-bottom-left-radius: 18px; overflow: hidden; }
.detail-info h3 { font-size: 19px; margin: 5px 0 12px; }
.detail-info h4 { font-size: 13px; margin-bottom: 16px; }
.detail-info h4 .muted { font-size: 11px; }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.detail-actions .btn { font-size: 10px; padding: 8px 10px; min-height: 33px; }
.detail-actions .btn svg { width: 13px; height: 13px; }
.detail-comments > .muted { font-size: 11px; line-height: 1.8; }
.report-link { color: #9aabb7; margin-top: 19px; font-size: 9px; }
.video-placeholder { position: relative; width: 100%; height: 100%; min-height: 450px; overflow: hidden; }
.video-placeholder > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: .25; }
.video-placeholder > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; color: white; }
.video-placeholder svg { width: 39px; height: 39px; margin-bottom: 20px; color: #c2b17d; }
.video-placeholder h3 { font-size: 21px; font-weight: 550; margin-bottom: 10px; }
.video-placeholder p { font-size: 11px; line-height: 1.85; color: #b2c5d1; }
.management-empty > .btn { display: flex; margin: 0 auto; }
.management-empty .empty-state { padding-top: 15px; min-height: 235px; }
.credits-list { padding-left: 20px; color: #7e929f; font-size: 12px; line-height: 1.9; }

@media (max-width: 1230px) {
  .main-shell > .prototype-banner { padding-left: 26px; padding-right: 26px; }
  .profile-overview { grid-template-columns: minmax(0, 1fr) 240px; gap: 17px; }
}
@media (max-width: 1080px) {
  .profile-overview { grid-template-columns: 1fr; }
  .profile-privacy { max-width: none; }
  .profile-card { grid-template-columns: 85px minmax(0, 1fr) auto; gap: 0 14px; }
  .profile-avatar { width: 83px; height: 83px; }
  .profile-avatar > .avatar { width: 73px; height: 73px; }
}
@media (max-width: 800px) {
  .main-shell > .prototype-banner { padding-left: 22px; padding-right: 22px; }
  .sidebar-bottom > .nav-item span, .sidebar-profile > span:not(.avatar), .sidebar-profile > svg { display: none; }
  .sidebar-bottom > .nav-item { padding: 12px; }
  .sidebar-bottom .workspace-badge { margin-top: 10px; padding: 8px; background: transparent; }
  .sidebar-profile { justify-content: center; }
  .banner-detail { display: none; }
  .profile-card { grid-template-columns: 75px minmax(0, 1fr); gap: 0 16px; }
  .profile-card > .btn { position: absolute; right: 23px; top: -46px; background: white; }
  .profile-stats { grid-column: 2; }
  .profile-info h2 { font-size: 20px; }
}
@media (max-width: 640px) {
  .main-shell { margin-left: 0; }
  .main-shell > .prototype-banner { padding: 7px 17px; min-height: 31px; font-size: 8px; align-items: center; gap: 8px; }
  .prototype-banner > button { font-size: 8px; }
  .desktop-title { display: none; }
  .mobile-logo { display: block; width: 132px; }
  .mobile-nav .nav-label { display: block; flex: initial; }
  .page-heading > .badge { padding: 5px 7px; font-size: 7px; margin-top: 5px; }
  .page-heading > .badge svg { width: 10px; height: 10px; }
  .composer { display: flex; padding: 13px; gap: 9px; }
  .composer-trigger { padding: 10px 11px; font-size: 10px; }
  .composer > .icon-btn { width: 22px; }
  .composer > .icon-btn svg { width: 18px; height: 18px; }
  .moments-section .section-heading { margin-bottom: 15px; }
  .moments-section .section-heading h2 { font-size: 13px; }
  .post-author > strong { font-size: 11px; }
  .post-collection-label { font-size: 10px; bottom: 15px; left: 15px; right: 15px; }
  .post-media-button > .sample-label { top: 10px; right: 10px; font-size: 7px; }
  .view-collection { font-size: 9px; }
  .view-collection svg { width: 12px; height: 12px; }
  .post-actions { gap: 17px; }
  .collection-cover { height: 120px; }
  .collection-info > strong { font-size: 12px; margin-bottom: 7px; line-height: 1.4; }
  .collection-category { font-size: 7px; letter-spacing: .7px; margin-bottom: 5px; }
  .collection-card-footer { font-size: 8px; gap: 3px; margin-top: 11px; padding-top: 10px; }
  .collection-card-footer svg { width: 10px; height: 10px; }
  .collection-card-footer svg:last-child { display: none; }
  .library-head { gap: 8px; }
  .library-head .feed-tabs { gap: 16px; }
  .library-head .tab { font-size: 10px; gap: 5px; }
  .library-head .tab svg { width: 12px; height: 12px; }
  .library-head > .muted { font-size: 8px; padding-bottom: 11px; white-space: nowrap; }
  .library-note { font-size: 9px; line-height: 1.75; align-items: flex-start; padding: 0 4px; }
  .library-note svg { margin-top: 2px; }
  .media-details { padding: 10px; gap: 4px; }
  .media-title { font-size: 10px; }
  .media-details .icon-btn { width: 23px; height: 27px; }
  .media-thumb .sample-label { top: 7px; right: 7px; font-size: 6px; }
  .album-hero-copy h1 { font-size: 26px; }
  .album-hero-meta { gap: 8px 14px; font-size: 9px; }
  .album-hero-meta svg { width: 12px; height: 12px; }
  .album-hero .sample-label { font-size: 6px; top: 11px; right: 11px; }
  .album-intro { align-items: flex-start; gap: 14px; margin: 20px 0; flex-direction: column; }
  .album-intro p { font-size: 11px; }
  .album-intro .btn { font-size: 10px; min-height: 33px; }
  .collection-discussion { padding: 19px; }
  .collection-discussion .section-heading h2 { font-size: 14px; }
  .collection-discussion .section-heading .muted { font-size: 9px; }
  .discussion-comment p { font-size: 11px; }
  .conversation-list-heading { display: none; }
  .chat-header strong { font-size: 11px; }
  .chat-header small { font-size: 9px; }
  .chat-date { font-size: 7px; }
  .message-wrap { max-width: 90%; }
  .profile-cover { padding: 26px 22px; }
  .profile-cover .eyebrow { font-size: 7px; }
  .profile-cover h1 { font-size: 21px; max-width: 230px; line-height: 1.35; }
  .profile-card { grid-template-columns: 62px minmax(0, 1fr); padding: 22px 20px; gap: 0 14px; }
  .profile-avatar { width: 66px; height: 66px; margin-top: -58px; border-width: 4px; }
  .profile-avatar > .avatar { width: 57px; height: 57px; font-size: 19px; }
  .profile-info h2 { font-size: 18px; }
  .profile-info p { font-size: 10px; line-height: 1.8; }
  .profile-info .badge { font-size: 7px; }
  .profile-card > .btn { right: 17px; top: -44px; font-size: 9px; padding: 7px 10px; min-height: 31px; }
  .profile-stats { grid-column: 1 / 3; margin-top: 23px; gap: 22px; }
  .profile-stats > div { gap: 3px; }
  .profile-tabs { gap: 23px; }
  .profile-overview .section-heading { padding: 18px; }
  .activity-item strong { font-size: 10px; }
  .activity-item small { font-size: 8px; }
  .page-search { gap: 8px; padding: 7px 8px 7px 13px; }
  .page-search > svg { width: 16px; height: 16px; }
  .page-search .text-input { font-size: 12px; }
  .page-search .btn { min-height: 34px; padding: 8px 11px; font-size: 10px; }
  .search-summary { gap: 8px; }
  .search-summary > span:first-child { font-size: 10px; }
  .search-summary .badge { font-size: 7px; }
  .search-summary .badge svg { width: 10px; height: 10px; }
  .result-body > strong { font-size: 11px; }
  .result-body > span:last-child { font-size: 10px; }
  .result-icon > svg { width: 21px; height: 21px; }
  .modal .access-grid { gap: 10px; }
  .modal .access-card { padding: 13px; }
  .modal .access-card h3 { font-size: 12px; }
  .modal .access-card p { font-size: 10px; }
  .modal-wide .detail-preview { border-radius: 0; }
  .video-placeholder { min-height: 275px; }
  .video-placeholder h3 { font-size: 19px; }
  .video-placeholder p { font-size: 10px; }
  .detail-info > .eyebrow { font-size: 8px; }
  .detail-info h3 { font-size: 19px; }
}
/* Keep search reachable when the desktop search field is collapsed. */
.header-actions .mobile-search-toggle { display: none; }
.story-label { display: block; width: 62px; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .header-actions .mobile-search-toggle { display: inline-flex; }
  .story-label { width: 56px; max-width: 56px; }
}
