/* Part 182 — shared CloutReign color and readability polish.
   Load after the existing presentation styles. Existing layout, media, Wall
   chronology, discussion formats, and visibility rules remain in their owners.
   Site and public-profile appearance selections retain their own palettes. */
:root {
  --cr182-canvas:#071428;
  --cr182-rail:#091725;
  --cr182-surface:#0d1c2b;
  --cr182-raised:#14283b;
  --cr182-inset:#081521;
  --cr182-line:#29465e;
  --cr182-text:#f4efe4;
  --cr182-muted:#b7c8d7;
  --cr182-quiet:#93adbf;
  --cr182-action:#89cff0;
  --cr182-action-soft:#89cff0;
  --cr182-action-ink:#071428;
  --cr182-gold:#d6ad60;
  --cr182-gold-light:#f1d79c;
  --cr182-danger:#ffb9ad;
  --cr182-success:#70e0bb;
}
/* The existing private site appearance choices still control the canvas. */
html[data-site-theme="dim"] {
  --cr182-canvas:#15191c;--cr182-rail:#14181b;--cr182-surface:#1b2023;
  --cr182-raised:#282f32;--cr182-inset:#171c1f;--cr182-line:#465158;
  --cr182-text:#f2f1ed;--cr182-muted:#c0c6c9;--cr182-quiet:#a0adb5;
}
html[data-site-theme="lightsout"] {
  --cr182-canvas:#000;--cr182-rail:#000;--cr182-surface:#080808;
  --cr182-raised:#151515;--cr182-inset:#030303;--cr182-line:#383838;
  --cr182-text:#f4f4f2;--cr182-muted:#c2c2bf;--cr182-quiet:#a6a6a2;
}
html[data-site-accent="coral"] {--cr182-action:#ff6848;--cr182-action-soft:#ffb7a8}
html[data-site-accent="violet"] {--cr182-action:#806cff;--cr182-action-soft:#c5bcff}
html[data-site-accent="blue"] {--cr182-action:#4c9bff;--cr182-action-soft:#b6d5ff}
html[data-site-accent="gold"] {--cr182-action:#d8a842;--cr182-action-soft:#f1d79c}
html[data-site-accent="rose"] {--cr182-action:#e86987;--cr182-action-soft:#ffc1d0}
html[data-site-accent="lime"] {--cr182-action:#8cbf4a;--cr182-action-soft:#c9e8a3}
html[data-site-accent="ice"] {--cr182-action:#78c7d9;--cr182-action-soft:#c0edf5}
html:root {background:var(--cr182-canvas)!important;color-scheme:dark}
html:root :is(#commentsModal,#discoverModal).modal-backdrop {z-index:300!important}
html:root #profileFollowsModal.modal-backdrop {z-index:310!important}
/* Keep the existing Wall form inside the viewport when its fields exceed it. */
html:root #wallProposalModal .proposal-modal {
  max-height:calc(100vh - 28px);
  max-height:calc(100dvh - 28px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
html:root body,
html:root[data-site-theme] body.cloutreign-full {
  --bg:var(--cr182-canvas)!important;
  --panel:var(--cr182-surface)!important;
  --panel-2:var(--cr182-raised)!important;
  --panel-3:var(--cr182-raised)!important;
  --surface:var(--cr182-surface)!important;
  --surface-raised:var(--cr182-raised)!important;
  --text:var(--cr182-text)!important;
  --muted:var(--cr182-muted)!important;
  --dim:var(--cr182-quiet)!important;
  --border:var(--cr182-line)!important;
  --border-soft:var(--cr182-line)!important;
  --accent:var(--cr182-action)!important;
  --accent-2:var(--cr182-action-soft)!important;
  --primary:var(--cr182-action)!important;
  --brand:var(--cr182-gold)!important;
  --brand-bg:var(--cr182-canvas);
  --brand-text:var(--cr182-text);
  --brand-muted:var(--cr182-muted);
  --brand-accent:var(--cr182-action);
  background:radial-gradient(ellipse at 70% 0%,rgba(23,77,113,.14),transparent 48%),var(--cr182-canvas)!important;
  color:var(--cr182-text)!important;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
}
/* Shared controls. Named page controls below cover older ID-specific rules. */
html:root body :is(.primary,.primary-button,.submit-button,.cta-button),
html:root[data-site-accent] body.cloutreign-full :is(.primary-button,.submit-button,.cta-button,button.primary) {
  background:var(--cr182-action)!important;
  border-color:var(--cr182-action)!important;
  color:var(--cr182-action-ink)!important;
  text-shadow:none!important;
  box-shadow:0 4px 14px rgba(0,0,0,.16)!important;
  font-weight:750!important;
}
html:root body :is(.primary,.primary-button,.submit-button,.cta-button):hover:not(:disabled) {
  filter:brightness(1.08);
}
html:root body :is(.secondary-button,button.secondary,.control-button),
html:root[data-site-accent] body.cloutreign-full :is(.secondary-button,button.secondary,.control-button) {
  background:var(--cr182-raised)!important;
  border-color:var(--cr182-line)!important;
  color:var(--cr182-text)!important;
}
html:root body :is(.primary,.primary-button,.submit-button,.cta-button,.secondary-button,.control-button) {
  min-height:40px;
}
html:root body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea,[contenteditable="true"]),
html:root[data-site-theme] body.cloutreign-full :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea,[contenteditable="true"]) {
  background:var(--cr182-inset)!important;
  border-color:var(--cr182-line)!important;
  color:var(--cr182-text)!important;
  caret-color:var(--cr182-action-soft)!important;
}
html:root body :is(input,textarea)::placeholder {color:var(--cr182-quiet)!important;opacity:1}
html:root body :is(input,select,textarea) {accent-color:var(--cr182-action)}
html:root body :is(a,button,input,select,textarea,summary,[role="button"],[tabindex]):focus-visible,
html:root[data-site-theme] body.cloutreign-full :is(a,button,input,select,textarea,summary,[role="button"],[tabindex]):focus-visible {
  outline:3px solid var(--cr182-action-soft)!important;
  outline-offset:3px!important;
}
html:root body :is(.brand,.brand-name,.signup-brand strong,.legal-brand strong) {color:var(--cr182-gold-light)!important}
html:root body :is(.eyebrow,.section-heading,.profile-kicker) {color:var(--cr182-action-soft)!important}
html:root body.cloutreign-preview::before {background:linear-gradient(120deg,transparent 10%,rgba(19,75,113,.06) 45%,transparent 75%)}

/* Dashboard: keep the existing columns, scroll owners, and card dimensions. */
html:root body.cloutreign-full :is(.left-rail,.chat-rail),
html:root[data-site-theme] body.cloutreign-full :is(.left-rail,.chat-rail) {
  background:var(--cr182-rail)!important;border-color:var(--cr182-line)!important;
}
html:root body.cloutreign-full .wall-stage,
html:root[data-site-theme] body.cloutreign-full .wall-stage {
  background:var(--cr182-canvas)!important;
}
html:root body.cloutreign-full :is(.wall-header,.wall-controls,.status-strip,.posting-window-card,.posting-window-head,.chat-header,.chat-pane,.chat-info,.chat-compose,.private-compose,.friend-toolbar),
html:root[data-site-theme] body.cloutreign-full :is(.wall-header,.wall-controls,.status-strip,.posting-window-card,.posting-window-head,.chat-header,.chat-pane,.chat-info,.chat-compose,.private-compose,.friend-toolbar) {
  background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important;
}
html:root body.cloutreign-full :is(.wall-card,.stream-card,.post-card,.wall-post,.notification-card,.notification-panel,.hall-card,.hall-of-fame-panel,.recognition-card,.right-rail-card),
html:root[data-site-theme] body.cloutreign-full :is(.wall-card,.stream-card,.post-card,.wall-post,.notification-card,.notification-panel,.hall-card,.hall-of-fame-panel,.recognition-card,.right-rail-card) {
  background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important;
}
html:root body.cloutreign-full :is(.modal,.modal-body,.account-panel,.personal-wall-panel,.recognition-panel,.wall-directory),
html:root[data-site-theme] body.cloutreign-full :is(.modal,.modal-body,.account-panel,.personal-wall-panel,.recognition-panel,.wall-directory) {
  background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important;
}
html:root body.cloutreign-full .wall-header :is(h1,#wallTitle) {color:var(--cr182-text)!important}
html:root body.cloutreign-full :is(.wall-meta,.wall-theme,.status-label,.post-meta,.post-handle,.post-time,.favorite-wall-hint,.feed-label span:last-child) {color:var(--cr182-muted)!important}
html:root body.cloutreign-full .brand-row {border-color:var(--cr182-line)!important}
html:root body.cloutreign-full :is(.brand-tag,.cloutreign-rail-essence) {color:var(--cr182-muted)!important}
html:root body.cloutreign-full .left-rail .main-nav .nav-link {
  color:var(--cr182-text)!important;font-size:13px;min-height:40px;
}
html:root body.cloutreign-full .left-rail .main-nav .nav-link .nav-icon {color:var(--cr182-quiet)!important}
html:root body.cloutreign-full .left-rail .main-nav .nav-link:hover {background:var(--cr182-raised)!important}
html:root body.cloutreign-full .left-rail .main-nav .nav-link.active {
  background:color-mix(in srgb,var(--cr182-action) 11%,var(--cr182-rail))!important;
  border-color:var(--cr182-line)!important;color:var(--cr182-text)!important;
  box-shadow:inset 3px 0 var(--cr182-action)!important;
}
html:root body.cloutreign-full .left-rail .main-nav .nav-link.active::before {background:var(--cr182-action)!important}
html:root body.cloutreign-full .left-rail .main-nav .nav-link.active .nav-icon {color:var(--cr182-action)!important}
html:root body.cloutreign-full :is(.nav-badge,.chat-unread-badge,.friend-unread) {background:var(--cr182-action)!important;color:var(--cr182-action-ink)!important}
html:root body.cloutreign-full .left-rail :is(.favorite-wall-row,.feed-wall-row) :is(.wall-link,.feed-wall-link):hover {
  background:var(--cr182-raised)!important;color:var(--cr182-text)!important;
}
html:root body.cloutreign-full .left-rail :is(.wall-orb,.feed-wall-link .wall-orb) {
  background:var(--cr182-raised)!important;border-color:var(--cr182-line)!important;color:var(--cr182-action-soft)!important;
}
html:root body.cloutreign-full .left-rail .wall-link-copy strong {color:var(--cr182-text)!important;font-size:11px!important}
html:root body.cloutreign-full .left-rail .wall-link-copy span {color:var(--cr182-muted)!important;font-size:10px!important;line-height:1.4}
html:root body.cloutreign-full .left-rail :is(.wall-link.active,.sidebar-link.active,.feed-wall-link.active) {
  background:linear-gradient(100deg,var(--cr182-raised),var(--cr182-surface))!important;
  border-color:var(--cr182-line)!important;color:var(--cr182-text)!important;
  box-shadow:inset 3px 0 var(--cr182-action)!important;
}
html:root body.cloutreign-full .left-rail :is(.favorite-star[aria-pressed="true"],.favorite-pinned) {color:var(--cr182-gold)!important}
html:root #cloutreignSpotlight {
  background:linear-gradient(110deg,var(--cr182-surface),var(--cr182-raised) 58%,var(--cr182-rail))!important;
  border-color:var(--cr182-line)!important;
}
html:root #brandExploreWallsButton {
  background:var(--cr182-action)!important;border-color:var(--cr182-action)!important;
  color:var(--cr182-action-ink)!important;min-height:40px;font-size:12px;
  box-shadow:0 4px 14px rgba(0,0,0,.16)!important;
}
html:root #postingPanel .posting-window-head>div:first-child {min-width:0}
html:root #postingPanel .window-clock {
  flex:0 0 auto!important;min-width:104px!important;box-sizing:border-box;
  background:var(--cr182-inset)!important;border-color:var(--cr182-line)!important;
  white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
}
html:root #postingPanel #windowClock {
  font-size:clamp(14px,1.15vw,16px)!important;font-variant-numeric:tabular-nums;
  color:var(--cr182-text)!important;white-space:nowrap!important;
  overflow-wrap:normal!important;word-break:normal!important;
}
html:root #postingPanel #windowClockLabel {font-size:10px!important;color:var(--cr182-muted)!important}
html:root body.cloutreign-full .dashboard-feed-tab {
  font-size:12px;min-height:40px;background:var(--cr182-surface);border-color:var(--cr182-line);color:var(--cr182-muted);
}
html:root body.cloutreign-full .dashboard-feed-tab.active {
  background:var(--cr182-raised);border-color:var(--cr182-action);color:var(--cr182-text);
}
#wallStream > .wall-post:not(.hof-card) .post-text {color:var(--cr182-text)!important;line-height:1.6!important}
#wallStream > .wall-post:not(.hof-card) :is(.post-action,.post-meta,.post-time) {color:var(--cr182-muted)!important}
#wallStream > .wall-post:not(.hof-card) .post-action {min-height:36px;font-size:12px!important}
#wallStream > .wall-post:not(.hof-card) .post-action[aria-pressed="true"] {color:var(--cr182-action-soft)!important}
html:root body.cloutreign-full :is(.hof-showcase,.hall-of-fame-hero,.recognition-modal) {border-color:color-mix(in srgb,var(--cr182-gold) 55%,var(--cr182-line))!important}
html:root body.cloutreign-full :is(.hof-showcase h2,.hall-of-fame-hero h2,.recognition-symbol,.recognition-badge.earned strong) {color:var(--cr182-gold-light)!important}

/* Conversations remain text first; no message bubbles or new grid rules. */
html:root body.cloutreign-full .chat-rail :is(.chat-message,.private-bubble,.private-bubble.me) {background:transparent!important;border-color:var(--cr182-line)!important}
html:root body.cloutreign-full .chat-rail .chat-message p {font-size:13px!important;line-height:1.6!important;color:var(--cr182-text)!important}
html:root body.cloutreign-full .chat-rail .private-bubble {font-size:13px!important;line-height:1.6!important;color:var(--cr182-text)!important}
html:root body.cloutreign-full .chat-rail .private-bubble.me {color:var(--cr182-action-soft)!important}
html:root body.cloutreign-full .chat-rail :is(.chat-message-head,.chat-message-head strong,.chat-profile-link,.friend-list-copy strong) {font-size:11px!important;color:var(--cr182-text)!important}
html:root body.cloutreign-full .chat-rail :is(.chat-subtitle,.chat-info,.chat-rep,.chat-user-row,.chat-cooldown-status,.chat-footnote,.friend-list-copy span,.private-bubble small,.private-conversation-head span,.friend-toolbar span,.follower-room-banner span) {
  font-size:10px!important;line-height:1.5!important;color:var(--cr182-muted)!important;
}
html:root body.cloutreign-full .chat-rail :is(.chat-mode-button,.private-subtab,.friend-toolbar-actions .secondary-button.small) {font-size:11px!important;min-height:40px!important}
html:root body.cloutreign-full .chat-rail :is(.chat-mode-switch,.private-chat-subtabs,.friend-list-item,.private-conversation-head) {background:var(--cr182-inset)!important;border-color:var(--cr182-line)!important}
html:root body.cloutreign-full .chat-rail :is(.chat-mode-button.active,.private-subtab.active,.friend-list-item.active) {
  background:var(--cr182-raised)!important;color:var(--cr182-action-soft)!important;border-color:var(--cr182-action)!important;
}
html:root body.cloutreign-full .chat-rail :is(.chat-input-row input,.private-compose input) {font-size:13px!important;min-height:42px;box-sizing:border-box}
html:root body.cloutreign-full .chat-rail :is(.chat-compose .primary-button.small,.private-compose .primary-button.small) {background:var(--cr182-action)!important;color:var(--cr182-action-ink)!important;font-size:12px!important;min-height:42px}
html:root body.cloutreign-full .chat-rail .attachment-button {min-height:40px;min-width:40px;background:var(--cr182-raised)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important}
html:root body.cloutreign-full .dashboard-recommendations {background:var(--cr182-rail)!important;border-color:var(--cr182-line)!important}
html:root body.cloutreign-full .dashboard-recommendations :is(h3,.recommendation-person strong,.recommendation-wall strong) {font-size:11px;color:var(--cr182-text)}
html:root body.cloutreign-full .dashboard-recommendations :is(small,.recommendation-empty,.chat-preview-empty) {font-size:10px;color:var(--cr182-muted)}
html:root body.cloutreign-full :is(.recommendation-action,.recommendation-search-action) {min-height:40px;font-size:11px;background:var(--cr182-raised);border-color:var(--cr182-line);color:var(--cr182-action-soft)}
html:root body.cloutreign-full .chat-preview-note {font-size:11px;color:var(--cr182-muted);background:var(--cr182-surface);border-color:var(--cr182-line)}

/* Wall categories retain their existing artwork and list/card structure. */
html:root #discoverModal {
  --category-blue:var(--cr182-action);--category-blue-soft:var(--cr182-action-soft);
  --category-navy:var(--cr182-surface);--category-ink:var(--cr182-text);--category-line:var(--cr182-line);
}
html:root #discoverModal .modal.wide-modal {background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important}
html:root #discoverModal :is(.wall-category-group,.wall-category-group[open],.discover-card,.wall-category-cards .discover-card,.discover-events-section,.wall-directory-create-space,.empty-state,.wall-category-empty) {
  background:var(--cr182-rail)!important;border-color:var(--cr182-line)!important;color:var(--cr182-muted)!important;
}
html:root #discoverModal :is(.wall-category-intro strong,.discover-card-head h3,.wall-directory-create-copy strong,.modal-head h2) {color:var(--cr182-text)!important}
html:root #discoverModal .wall-category-hero::before {
  background-image:linear-gradient(90deg,var(--cr182-surface) 0%,color-mix(in srgb,var(--cr182-surface) 94%,transparent) 39%,color-mix(in srgb,var(--cr182-surface) 68%,transparent) 69%,color-mix(in srgb,var(--cr182-surface) 32%,transparent) 100%),var(--hero-image)!important;
}
html:root #discoverModal .wall-category-group[open] .wall-category-hero {min-height:112px;padding-block:16px}
html:root #discoverModal .wall-category-group[open] .wall-category-hero::before {
  background-image:linear-gradient(90deg,color-mix(in srgb,var(--cr182-surface) 98%,transparent),color-mix(in srgb,var(--cr182-surface) 88%,transparent) 39%,color-mix(in srgb,var(--cr182-surface) 48%,transparent) 75%,color-mix(in srgb,var(--cr182-surface) 20%,transparent)),var(--hero-image)!important;
}
html:root #discoverModal .wall-category-group[open] .wall-category-intro strong {font-size:23px}
html:root #discoverModal :is(.wall-category-intro small,.wall-category-group[open] .wall-category-intro small,.wall-directory-subtitle,.discover-card p,.wall-category-cards .discover-card p,.wall-directory-create-copy p) {
  font-size:13px!important;line-height:1.55;color:var(--cr182-muted)!important;
}
html:root #discoverModal :is(.category-count,.discover-card-foot,.wall-category-cards .discover-card-foot) {font-size:12px;color:var(--cr182-muted)!important}
html:root #discoverModal .wall-category-symbol,
html:root #discoverModal .category-chevron::after {color:var(--cr182-text)!important}
html:root #discoverModal .wall-category-group[open] .wall-category-symbol {background:var(--cr182-raised);border-color:var(--cr182-line)}
html:root #discoverModal .wall-category-cards .discover-card-head .wall-orb {background:var(--cr182-raised)!important;color:var(--cr182-action-soft)!important}
html:root #discoverModal :is(#discoverSearch,#wallDirectoryScope) {background:var(--cr182-inset)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important;font-size:14px;min-height:44px}
html:root #discoverModal :is(#discoverProposeButton,#discoverProposeCategoryButton) {background:var(--cr182-action)!important;color:var(--cr182-action-ink)!important;border-color:var(--cr182-action)!important;min-height:44px;font-size:13px}
html:root #discoverModal .discover-card-actions :is(.secondary-button,.discover-open,.discover-join) {background:var(--cr182-raised)!important;color:var(--cr182-text)!important;border-color:var(--cr182-line)!important;min-height:40px;font-size:12px!important}
html:root #discoverModal .discover-card-actions .favorite-star {min-height:40px;min-width:40px;color:var(--cr182-muted)}
html:root #discoverModal .discover-card-actions .favorite-star[aria-pressed="true"] {color:var(--cr182-gold)!important}
html:root #discoverModal .wall-category-empty {padding:22px;line-height:1.6;font-size:13px;grid-column:1/-1;border:1px dashed var(--cr182-line);border-radius:10px}

/* Account settings share the site palette. Destructive actions keep their red. */
html:root #accountModal,
html:root #accountModal .cr-account-dashboard,
html:root #accountModal .cr164-main {background:var(--cr182-canvas)!important;color:var(--cr182-text)!important}
html:root #accountModal :is(.cr164-navigation,.cr-account-panel,.cr-account-intro,.cr164-card,.cr164-spotlight>.cr-account-panel,.cr164-spotlight>.cr-account-intro,.cr164-extra,.cr-account-secondary,.membership-card) {
  background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important;
}
html:root #accountModal .cr164-card:hover {background:var(--cr182-raised)!important;border-color:var(--cr182-action)!important}
html:root #accountModal :is(.cr-action-label small,.cr-panel-heading p,.membership-note,.cr-account-head p) {color:var(--cr182-muted)!important;font-size:12px!important;line-height:1.5}
html:root #accountModal .cr164-card .cr-action-label strong {color:var(--cr182-text)!important;font-size:14px!important}
html:root #accountModal :is(.cr164-card .cr-action-symbol,.cr164-brand,.cr-panel-heading h3) {color:var(--cr182-gold-light)!important}
html:root #accountModal #closeAccountModal {min-width:40px;min-height:40px;background:var(--cr182-raised)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important}
html:root #accountModal :is(#deleteAccountButton,.cr164-logout,.cr165-sidebar-logout,#logoutButton) {color:var(--cr182-danger)!important}

/* Public profile colors come from the member's selected profile variables. */
:is(#profileModal,#publicProfileModal,#profileMediaModal) [data-profile-theme] {
  --cr182-canvas:var(--profile-bg);--cr182-surface:var(--profile-panel);
  --cr182-raised:var(--profile-panel-2);--cr182-inset:var(--profile-panel-2);
  --cr182-line:var(--profile-border);--cr182-text:var(--profile-text);
  --cr182-muted:color-mix(in srgb,var(--profile-text) 78%,var(--profile-bg));
  --cr182-quiet:color-mix(in srgb,var(--profile-text) 68%,var(--profile-bg));
}
:is(#profileModal,#publicProfileModal,#profileMediaModal) [data-profile-accent] {
  --cr182-action:var(--profile-accent);--cr182-action-soft:var(--profile-accent-2);
}
html:root :is(#profileModal,#publicProfileModal) :is(.wide-modal,.public-profile-modal) {
  background:var(--profile-bg,var(--cr182-canvas))!important;color:var(--profile-text,var(--cr182-text))!important;
}
html:root :is(#profileModal,#publicProfileModal) :is(.profile-card,.public-profile-section,.public-profile-personal-media,.profile-social-strip-item,.profile-identity-hero,.public-profile-content,.profile-featured-post) {
  background:var(--profile-panel,var(--cr182-surface))!important;border-color:var(--profile-border,var(--cr182-line))!important;color:var(--profile-text,var(--cr182-text))!important;
}
html:root #publicProfileModal .public-profile-grid>.public-profile-section:not(.public-profile-personal-media),
html:root #publicProfileModal .public-profile-grid>.public-profile-personal-media,
html:root #publicProfileModal .public-profile-social-strip>.profile-social-strip-item {
  background:var(--profile-panel,var(--cr182-surface))!important;border-color:var(--profile-border,var(--cr182-line))!important;
}
html:root :is(#profileModal,#publicProfileModal) :is(.profile-card-hint,.profile-field-help,.profile-handle-line) {font-size:12px!important;line-height:1.5!important}
html:root :is(#profileModal,#publicProfileModal) :is(.profile-social-strip-item span,.public-profile-top-stats span) {font-size:10px!important;line-height:1.35!important;letter-spacing:.02em!important}
html:root #publicProfileModal .public-profile-top-stats strong {font-size:14px!important;line-height:1.25!important}
html:root :is(#profileModal,#publicProfileModal) .profile-card .eyebrow {font-size:11px!important}
html:root :is(#profileModal,#publicProfileModal) :is(.profile-card .text-button,.profile-theme-option,.profile-appearance-row>span) {font-size:11px!important;min-height:36px}
html:root :is(#profileModal,#publicProfileModal) :is(.profile-fact,.profile-interest-chip,.profile-title-chip) {
  background:var(--profile-panel-2,var(--cr182-raised))!important;
  border-color:var(--profile-border,var(--cr182-line))!important;color:var(--profile-text,var(--cr182-text))!important;
}
html:root :is(#profileModal,#publicProfileModal,#profileMediaModal) .personal-wall-entry {
  background:var(--profile-panel,var(--cr182-surface))!important;
  border-color:var(--profile-border,var(--cr182-line))!important;color:var(--profile-text,var(--cr182-text))!important;
}
html:root :is(#profileModal,#publicProfileModal) :is(.profile-text-composer-card textarea,.profile-feed-own textarea) {font-size:14px!important;line-height:1.6}
html:root :is(#profileModal,#publicProfileModal) :is(.profile-post-helper,.profile-post-attachment-copy small,.profile-text-status) {font-size:12px}
html:root :is(#profileModal,#publicProfileModal,#profileMediaModal) :is(.profile-engagement-bar button,.profile-v171-edit-btn) {font-size:12px;min-height:40px}

/* Discussion workspace: preserve gallery/tree/debate display and reply order.
   The list uses the remaining height. The whole dialog can also scroll when
   a short viewport or an open reply/quote leaves too little vertical room. */
html:root #commentsModal .comments-modal {
  height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;
  min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;
  background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important;
}
html:root #commentsModal :is(.modal-head,.commented-post-preview,.discussion-toolbar,.discussion-grid-navigation,.discussion-format-tabs,.discussion-debate-options,#commentReplyContext,#discussionQuoteContext,.comment-form) {flex:0 0 auto!important}
html:root #commentsModal .modal-head {margin-bottom:0!important}
html:root #commentsModal .comments-list {flex:1 1 0!important;min-height:72px!important;overflow-y:auto!important}
html:root #commentsModal .comment-form-row {flex-wrap:wrap;gap:8px}
html:root #commentsModal .comment-form-row .discussion-compose-hint {flex:1 1 180px;min-width:0}
html:root #commentsModal #commentSubmitButton {flex:0 0 auto}
html:root #commentsModal :is(.modal-head,.discussion-toolbar,.discussion-grid-navigation,.comment-form) {border-color:var(--cr182-line)!important}
html:root #commentsModal :is(.modal-head h2,.discussion-toolbar>span) {color:var(--cr182-text)!important}
html:root #commentsModal :is(.commented-post-preview,.comment-card,.comment-form,.discussion-debate-options) {background:var(--cr182-rail)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important}
html:root #commentsModal .comment-card:hover {background:var(--cr182-raised)!important;border-color:var(--cr182-action)!important}
/* Larger controls need room inside the existing gallery/debate cards. */
html:root #commentsModal .comments-list:is(.format-gallery,.format-debate) .comment-card {max-height:none;min-height:220px}
html:root #commentsModal .comments-list {grid-auto-rows:max-content!important}
html:root #commentsModal .comment-card {height:auto!important;max-height:none!important}
html:root #commentsModal .comment-card-text {flex:0 0 auto!important;font-size:14px!important;line-height:1.6!important;color:var(--cr182-text)!important}
html:root #commentsModal :is(.comment-card-head,.comment-author-link,.commented-post-preview) {font-size:13px!important;line-height:1.5}
html:root #commentsModal :is(.discussion-compose-hint,.discussion-toolbar label,.discussion-award-note,.discussion-grid-navigation,.discussion-debate-options) {font-size:12px;color:var(--cr182-muted)!important;line-height:1.5}
html:root #commentsModal .comments-list:is(.format-tree,.discussion-detail) .comment-card[data-reply-depth="1"] {border-left-color:var(--cr182-action)!important}
html:root #commentsModal .comments-list:is(.format-tree,.discussion-detail) .comment-card[data-reply-depth="2"] {border-left-color:var(--cr182-action-soft)!important}
html:root #commentsModal .comments-list.format-debate .comment-card {border-top-color:var(--cr182-gold)!important}
html:root #commentsModal .comments-list.format-debate .comment-card[data-debate-stance="support"] {border-top-color:var(--cr182-success)!important}
html:root #commentsModal .comments-list.format-debate .comment-card[data-debate-stance="oppose"] {border-top-color:var(--cr182-danger)!important}
html:root #commentsModal :is(.discussion-thread-actions button,.comment-votes button,.reply-comment-button,.discussion-award-menu button,.discussion-format-tabs button,#discussionSort,#discussionStance,#closeCommentsModal,#discussionBackToGrid,#cancelCommentReply,.discussion-quote-context button) {
  min-height:40px!important;font-size:12px!important;
}
html:root #commentsModal :is(.discussion-thread-actions button,.reply-comment-button,.discussion-award-menu button,.discussion-format-tabs button) {background:var(--cr182-raised)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important}
html:root #commentsModal :is(button.discussion-open-thread,button.discussion-recognize) {
  min-height:40px!important;padding:8px 10px;border:1px solid var(--cr182-line)!important;
  border-radius:8px;background:var(--cr182-raised)!important;color:var(--cr182-action-soft)!important;
  font:600 12px/1.4 Inter,"Segoe UI",Arial,sans-serif;cursor:pointer;
}
html:root #commentsModal .comment-votes button {color:var(--cr182-muted)!important}
html:root #commentsModal .discussion-format-tabs button[aria-selected="true"] {background:var(--cr182-raised)!important;border-color:var(--cr182-action)!important;color:var(--cr182-action-soft)!important}
html:root #commentsModal button.discussion-recognize {color:var(--cr182-gold-light)!important}
html:root #commentsModal :is(#commentReplyContext:not([hidden]),#discussionQuoteContext:not([hidden])) {background:var(--cr182-raised)!important;border-left-color:var(--cr182-action)!important;color:var(--cr182-text)!important;font-size:13px;line-height:1.5}
html:root #commentsModal .comment-form textarea {background:var(--cr182-inset)!important;border-color:var(--cr182-line)!important;color:var(--cr182-text)!important;font-size:14px!important;line-height:1.6}
html:root #commentsModal .comment-form-row .primary-button {min-height:44px;font-size:13px!important}
html:root .pe-dialog-card {background:var(--cr182-surface);border-color:var(--cr182-line);color:var(--cr182-text)}
html:root .pe-dialog :is(.pe-comment,.pe-dialog-original) {background:var(--cr182-rail);border-color:var(--cr182-line)}
html:root .pe-dialog .pe-comment p {font-size:14px;line-height:1.6}
html:root .pe-dialog :is(button,textarea) {font-size:13px;min-height:40px}

/* Landing, login, account recovery, signup, and creator invitation. */
html:root body .top {border-color:var(--cr182-line)}
html:root body :is(.quiet,.hero p,.feature p,.how-intro p,.how-steps p,.how-note,.subtle,.footnote,footer,.auth p,.auth-action p,.creator-hero p,.creator-section-head p,.creator-deal-description,.creator-form-head p,.creator-help,.creator-fineprint p) {color:var(--cr182-muted)!important}
html:root body :is(.hero h1,.feature h2,.how-intro h2,.how-steps h3,.auth h1,.auth-action h1,.creator-hero h1,.creator-section-head h2,.creator-form-head h2,.creator-deal-title) {color:var(--cr182-text)!important}
html:root body :is(.hero h1 em,.creator-hero h1 em) {background:none;color:var(--cr182-action-soft)!important;-webkit-text-fill-color:currentColor}
html:root body :is(.nav-join,.auth,.auth-action,.feature article,.how,.how-steps article,.creator-deal,.creator-form-shell,.creator-complete) {background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important}
html:root body .nav-join {color:var(--cr182-action-soft);min-height:40px}
html:root body :is(.creator-invite,.creator-deal:has(input:checked)) {background:var(--cr182-raised)!important;border-color:var(--cr182-action)!important}
html:root body :is(.creator-invite-icon,.creator-herald span,.creator-deal-number,.symbol) {color:var(--cr182-gold-light)!important}
html:root body :is(.creator-invite-copy small,.creator-choice-hint,.creator-field small,.creator-consent label,.creator-submit-row p,.creator-complete p) {color:var(--cr182-muted)!important}
html:root body :is(.creator-deal-tag,.creator-field label span,.how-steps .number) {color:var(--cr182-action-soft)!important}
html:root body .creator-submit-row button {background:var(--cr182-action);color:var(--cr182-action-ink);min-height:44px}
html:root body .creator-deal:has(input:checked) .creator-checkmark {background:var(--cr182-action);border-color:var(--cr182-action);color:var(--cr182-action-ink)}
html:root body :is(.auth label,.auth-action label,.creator-field label) {font-size:14px;color:var(--cr182-text)}
html:root body :is(.auth input,.auth-action input,.creator-field input,.creator-field select,.creator-field textarea) {font-size:15px;min-height:44px}
html:root body .auth :is(a,.status),
html:root body .auth-action a {font-size:14px}
html:root body .auth a,
html:root body .auth-action a {color:var(--cr182-action-soft)}
html:root body.cloutreign-full :is(.signup-shell,.signup-panel-wrap) {background:var(--cr182-canvas)!important}
html:root body.cloutreign-full :is(.signup-story,.signup-panel,.signup-principle,.signup-values>div) {background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important}
html:root body.cloutreign-full .signup-story h1 {color:var(--cr182-text)!important}
html:root body.cloutreign-full .signup-story h1 span {background:none!important;color:var(--cr182-action-soft)!important;-webkit-text-fill-color:currentColor!important}
html:root body.cloutreign-full .signup-panel .form-label {font-size:13px!important;color:var(--cr182-text)!important}
html:root body.cloutreign-full .signup-panel :is(input:not([type="radio"]):not([type="checkbox"]),select) {min-height:44px;font-size:15px}
html:root body.cloutreign-full :is(.signup-panel-brand,.signup-values strong,.signup-principle strong) {color:var(--cr182-text)!important}
html:root body.cloutreign-full :is(.signup-panel .verification-copy,.signup-login-link,.signup-story p,.signup-values small,.optional-label,.handle-availability) {color:var(--cr182-muted)!important;font-size:12px;line-height:1.55}
html:root body.cloutreign-full .signup-values small {font-size:11px}
html:root body.cloutreign-full .crown-sex-field {border-color:var(--cr182-line)}
html:root body.cloutreign-full .crown-choice {background:var(--cr182-inset);border-color:var(--cr182-line);min-height:44px;box-sizing:border-box}
html:root body.cloutreign-full .crown-choice:has(input:checked) {background:var(--cr182-raised);border-color:var(--cr182-gold)}
html:root body.cloutreign-full .handle-availability[data-state="available"] {color:var(--cr182-success)!important}
html:root body.cloutreign-full .handle-availability[data-state="invalid"] {color:var(--cr182-danger)!important}
html:root body.cloutreign-full .signup-status.error {color:var(--cr182-danger)!important}

/* Policy document chrome; no document copy or navigation changes. */
html:root body .legal-brand {color:var(--cr182-gold-light)!important}
html:root body :is(.legal-brand small,.legal-back,.muted) {color:var(--cr182-muted)!important}
html:root body .legal-back:hover {color:var(--cr182-action-soft)!important}
html:root body .legal-topline {background:linear-gradient(90deg,var(--cr182-action),var(--cr182-gold),transparent)!important}
html:root body .notice {background:var(--cr182-surface)!important;border-color:var(--cr182-line)!important;color:var(--cr182-muted)!important}
html:root body main :is(p,li) a {color:var(--cr182-action-soft)!important;text-decoration:underline;text-underline-offset:.18em}
html:root body :is(.legal-brand,.brand) {text-decoration:none!important}

/* Preserve selected states after the shared control colors above. */
html:root body.cloutreign-full :is(.control-button.active,.recognition-tabs .secondary-button.active,.wall-favorite-toggle[aria-pressed="true"],.personal-wall-toolbar .secondary-button[aria-pressed="true"]) {
  background:color-mix(in srgb,var(--cr182-action) 10%,var(--cr182-raised))!important;
  border-color:var(--cr182-action)!important;
  color:var(--cr182-action-soft)!important;
  box-shadow:inset 0 -2px 0 var(--cr182-action)!important;
}
html:root body.cloutreign-full .secondary-button:hover:not(:disabled) {
  background:color-mix(in srgb,var(--cr182-action) 7%,var(--cr182-raised))!important;
  border-color:var(--cr182-action)!important;
}
html:root #wallStream .wall-post .post-action.vote-active-up,
html:root #commentsModal .comment-votes button.vote-active-up {
  color:var(--cr182-success)!important;box-shadow:inset 0 -2px 0 currentColor;
}
html:root #wallStream .wall-post .post-action.vote-active-down,
html:root #commentsModal .comment-votes button.vote-active-down {
  color:var(--cr182-danger)!important;box-shadow:inset 0 -2px 0 currentColor;
}

@media (min-width:1020px) {
  html:root #commentsModal.modal-backdrop {
    inset:12px clamp(10px,1.4vw,26px) 12px clamp(250px,22vw,366px)!important;
    height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;
  }
  html:root #commentsModal .comments-modal {height:100%!important;max-height:100%!important}
}
@media (max-width:1019px) {
  html:root #commentsModal.modal-backdrop {padding:12px!important}
}
@media (max-width:700px) {
  html:root #discoverModal .wall-category-group[open] .wall-category-hero {min-height:112px;padding-block:14px}
  html:root #discoverModal .wall-category-group[open] .wall-category-intro strong {font-size:20px}
  html:root #discoverModal :is(.wall-category-intro small,.wall-category-group[open] .wall-category-intro small) {font-size:12px!important}
  html:root #commentsModal :is(.comment-votes button,.discussion-thread-actions button,.discussion-format-tabs button,.reply-comment-button,.discussion-open-thread,.discussion-recognize) {min-height:44px!important}
}
@media (pointer:coarse) {
  html:root body :is(.primary,.primary-button,.secondary-button,.control-button,.icon-button,.nav-link,.recommendation-action,.recommendation-search-action,.cloutreign-explore-button) {min-height:44px!important}
  html:root #discoverModal .discover-card-actions :is(button,.favorite-star) {min-height:44px!important}
}
@media (prefers-reduced-motion:reduce) {
  html:root body :is(button,a,input,textarea,select,.creator-deal,.discover-card,.wall-category-hero) {transition:none!important}
  html:root body :is(.creator-deal,.discover-card):hover {transform:none!important}
}
@media (forced-colors:active) {
  html:root body :is(a,button,input,select,textarea,summary,[role="button"],[tabindex]):focus-visible {outline-color:Highlight!important}
}

/* Approved baby-blue landing treatment; retain the navy canvas and gold mark. */
html:root body.landing-page {background:#071428!important}
.landing-page .ambient {opacity:.04!important}
.landing-page .hero-brand-mark {background:#0b1929!important;box-shadow:0 12px 28px rgba(0,0,0,.18)!important}
.landing-page .hero-brand-mark::after {background:none!important}
.landing-page .dot {background:var(--cr182-action)!important;box-shadow:none!important}
.landing-page :is(.primary,.creator-invite) {box-shadow:none!important}
.landing-page :is(h1,h2,h3,.brand,.eyebrow) {text-shadow:none!important}

/* Brand accents follow the viewer palette rather than a fixed teal. */
html:root body :is(.cloutreign-rail-spark,.cloutreign-chat-spark,.cloutreign-chat-name,.cloutreign-spark-star,.cloutreign-rail-essence em,.cloutreign-kicker>span:first-child):not([data-panel-colors] *,[data-profile-theme] *) {color:var(--cr182-action-soft)!important;text-shadow:none!important}

/* Default brand accents also cover legacy labels and signup icons. */
html:root body :is(.signup-values>div>span,.cloutreign-spotlight-assurance span,.bot-post-kind,.user-verified,.user-post-label,.hall-eligibility-status.eligible):not([data-panel-colors] *,[data-profile-theme] *) {color:var(--cr182-action-soft)!important;text-shadow:none!important}
html:root body :is(.bot-disclosure,.bot-meme-image):not([data-panel-colors] *,[data-profile-theme] *) {border-color:color-mix(in srgb,var(--cr182-action) 25%,transparent)!important}
