/* Compact Layout (call outs 794 to 812; the Compact Layout add on, modules/compact-layout). Every rule for the look is only
   under html.uor-compact (the Display Settings window's own boxes, at the end, only style themselves), which
   compact-layout.js sets only while Compact Layout is on (Automatic on a monitor 1366 pixels wide or
   less, or the member's own On), so nothing changes for anyone else. Computers and laptops only (761 px and wider); phones
   keep their own layout. The side menu is drawn by the site from this page's own look (shell-embed.js), so it follows. */
@media (min-width: 761px) {
  /* Campfire's side menu as icons only: a 64 px column instead of 230 px */
  html.uor-compact :is(.cf-page, .fo-page, .cm-page, .cal-page, .gp-page):has(> [data-shell-rail]) { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  html.uor-compact :is(.cf-page:not(.wide), .cal-page.three, .gp-page.three):has(> [data-shell-rail]) { grid-template-columns: 64px minmax(0, 1fr) 300px; }
  html.uor-compact :is(.cf-page, .fo-page, .cm-page, .cal-page, .gp-page) > [data-shell-rail] { padding: 10px 7px; gap: 2px; }
  /* every icon on the same line, with or without a count (call out 820): each icon sits in a 24 px box in the middle of the
     menu, and a count sits over its top right corner instead of beside it (plain spacing only, so the site's copy of the
     menu draws it the same) */
  html.uor-compact :is(.cf-page, .fo-page, .cm-page, .cal-page, .gp-page) > [data-shell-rail] a { justify-content: flex-start; gap: 0; padding: 9px 0 9px calc(50% - 12px); font-size: 0; }
  html.uor-compact :is(.cf-page, .fo-page, .cm-page, .cal-page, .gp-page) > [data-shell-rail] .ico { flex: none; width: 24px; text-align: center; font-size: 19px; }
  html.uor-compact :is(.cf-page, .fo-page, .cm-page, .cal-page, .gp-page) > [data-shell-rail] .n { flex: none; margin: -16px 0 0 -9px; min-width: 0; padding: 0 4px; font-size: 10px; line-height: 14px; }
  html.uor-compact :is(.cf-page, .fo-page, .cm-page, .cal-page, .gp-page) > [data-shell-rail] .label { display: none; }
  /* slightly tighter spacing */
  html.uor-compact .cf-pad { padding: 11px 13px; }
  html.uor-compact .cf-right { gap: 12px; }
  html.uor-compact .cf-reacts { margin-top: 9px; padding-top: 8px; }
  /* a comment's React list opens to the right, inside its post, not to the left over the side menu (the site draws the menu
     on top of this page, so nothing here can be raised above it) */
  html.uor-compact .cf-meta .cf-menu-react { left: 0; right: auto; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  html.uor-compact .cf-page:has(> [data-shell-rail]) { grid-template-columns: 64px minmax(0, 1fr); }
}

/* The Compact Layout Enabled message (once): the site's notice look (frosted, gold edge, solid buttons, softly rounded) */
html.uor-compact .uor-compact-box { width: min(460px, calc(100% - 32px)); max-width: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; color: #d6dcf0; }
html.uor-compact .uor-compact-box::backdrop { background: rgba(2, 4, 12, .6); backdrop-filter: blur(3px); }
html.uor-compact .uor-compact-card { padding: 24px 26px; text-align: center; border-radius: 18px; border: 1px solid rgba(227, 197, 106, .45);
  background: linear-gradient(180deg, rgba(30, 38, 80, .94), rgba(14, 19, 46, .96)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06); font: 16px/1.55 "Source Sans 3", system-ui, "Segoe UI", sans-serif; }
html.uor-compact .uor-compact-card h2 { margin: 0 0 10px; font: 800 26px/1.15 "Fraunces", Georgia, serif; color: #f3ead2; }
html.uor-compact .uor-compact-card p { margin: 0 0 20px; color: #d6dcf0; font-size: 15.5px; }
html.uor-compact .uor-compact-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html.uor-compact .uor-compact-btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0 12px; border-radius: 9px;
  font: 700 15px "Source Sans 3", system-ui, "Segoe UI", sans-serif; border: 1px solid #4a5591; background: #2a3366; color: #f3ead2; cursor: pointer; }
html.uor-compact .uor-compact-btn.go { border-color: #c8a84b; background: linear-gradient(180deg, #f2d98a, #c8a84b); color: #1d1404; }
html.uor-compact .uor-compact-btn:hover { border-color: #e3c56a; }
html.uor-compact .uor-compact-btn:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }

/* The Display Settings window (the avatar menu's Display Settings, call out 812) and its setting, also in Account settings >
   Display. Only on this add on's own boxes (their own class names), so nothing else on any page changes. The window is the
   site's small window (as Share): centred in view, the page never moves. */
.uor-display-box { width: min(420px, calc(100% - 32px)); max-width: none; margin: auto; padding: 16px 18px 18px; border: 1px solid rgba(227, 197, 106, .45); border-radius: 14px;
  background: linear-gradient(180deg, #1e2650, #11163a); color: #d6dcf0; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); font: 15.5px/1.5 "Source Sans 3", system-ui, "Segoe UI", sans-serif; }
.uor-display-box::backdrop { background: rgba(3, 5, 14, .72); }
.uor-display-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.uor-display-top h2 { margin: 0; font: 700 18px/1.2 "Fraunces", Georgia, serif; color: #f3ead2; }
.uor-display-x { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .06); color: #f3ead2; font-size: 18px; line-height: 1; cursor: pointer; }
.uor-display-x:hover { background: rgba(227, 197, 106, .2); }
.uor-display-x:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
.uor-display-setting { display: grid; gap: 8px; }
.uor-display-head { display: flex; align-items: baseline; gap: 12px; min-height: 1.5em; }
.uor-display-head strong { color: #f3ead2; font-weight: 700; }
.uor-display-head .as-msg { flex: 1; text-align: right; color: #b9f5cf; font-size: 14px; font-weight: 600; }
.uor-display-box .uor-display-line { margin: 0; color: #a5aecb; font-size: 14px; }
.uor-display-box .uor-display-choices { display: grid; gap: 10px; margin-top: 4px; }
.uor-display-box .uor-display-choices label { display: flex; gap: 10px; align-items: center; cursor: pointer; color: #f3ead2; }
.uor-display-box .uor-display-choices input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: #e3c56a; }
