/* Asset-backed collections. Decorative layers never intercept live controls. */
.ops-collection-emblem, .ops-collection-art, .ops-wx-metric-icon, .ops-wx-location-icon { display: none; }
html[data-theme="nocturne"] {
  --collection-frame: url("/assets/themes/nocturne/frame.webp?v=theme-art-20261101-1");
  --collection-surface: url("/assets/themes/nocturne/surface.webp?v=theme-art-20261101-1");
  --collection-panel: url("/assets/themes/nocturne/panel.webp?v=theme-art-20261101-1");
  --collection-atmosphere: url("/assets/themes/nocturne/atmosphere.webp?v=theme-art-20261101-1");
  --collection-illustration: url("/assets/themes/nocturne/illustration.webp?v=theme-art-20261101-1");
}
html[data-theme="guildhall"] {
  --collection-frame: url("/assets/themes/guildhall/frame.webp?v=theme-art-20261101-1");
  --collection-surface: url("/assets/themes/guildhall/surface.webp?v=theme-art-20261101-1");
  --collection-panel: url("/assets/themes/guildhall/panel.webp?v=theme-art-20261101-1");
  --collection-atmosphere: url("/assets/themes/guildhall/atmosphere.webp?v=theme-art-20261101-1");
  --collection-illustration: url("/assets/themes/guildhall/illustration.webp?v=theme-art-20261101-1");
}
html[data-theme="orbital"] {
  --collection-frame: url("/assets/themes/orbital/frame.webp?v=theme-art-20261101-1");
  --collection-surface: url("/assets/themes/orbital/surface.webp?v=theme-art-20261101-1");
  --collection-panel: url("/assets/themes/orbital/panel.webp?v=theme-art-20261101-1");
  --collection-atmosphere: url("/assets/themes/orbital/atmosphere.webp?v=theme-art-20261101-1");
  --collection-illustration: url("/assets/themes/orbital/illustration.webp?v=theme-art-20261101-1");
}
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) {
  --collection-ink: var(--text);
  --collection-weather-w: clamp(245px, 18.5vw, 312px);
}
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) body::before,
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) body::after { display: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-app {
  grid-template-columns: 90px minmax(0, 1fr);
  background: var(--collection-surface) center / 768px 768px, var(--bg);
  min-height: 620px;
  color: var(--text);
}
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-app.is-embedded {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-shell { gap: 8px; padding: 5px 7px 8px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-content {
  --ops-actions-w: clamp(300px, 20.5vw, 352px);
  grid-template-columns: var(--collection-weather-w) minmax(0, 1fr);
  gap: 9px;
}
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-content.is-month { grid-template-columns: minmax(0, 1fr); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-header, .ops-weather, .ops-calendar-panel, .ops-actions, .ops-nav) {
  isolation: isolate;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: var(--collection-panel) center / 768px 768px, var(--glass-bg);
  box-shadow: inset 0 0 0 1px var(--border), 0 5px 15px #0005;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-header, .ops-weather, .ops-calendar-panel, .ops-actions, .ops-nav)::after {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
  border: 24px solid transparent;
  border-image: var(--collection-frame) 18% / 24px / 0 stretch;
}
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-weather, .ops-actions)::after {
  border-image-width: 70px 48px 35px;
}
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 210px) auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  flex: 0 0 80px;
  padding: 10px 22px;
  background-image: var(--collection-surface);
}
.ops-collection-wordmark { display: flex; align-items: center; gap: 14px; white-space: nowrap; color: var(--primary); }
.ops-collection-wordmark > span { font-size: 36px; font-family: Georgia, serif; font-weight: 400; }
.ops-collection-wordmark strong, .ops-collection-wordmark select {
  font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: .12em; text-transform: uppercase;
}
.ops-collection-wordmark select { width: auto; min-width: 0; padding: 4px 17px 4px 0; border: 0; border-radius: 0; color: inherit; background: transparent; cursor: pointer; }
.ops-collection-wordmark select option { background: var(--glass-bg); color: var(--text); letter-spacing: normal; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title { grid-column: 3; grid-row: 1; min-width: 0; text-align: center; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title > div { display: block; margin: 0; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title h1 { font-family: var(--font-heading); font-size: clamp(22px, 1.9vw, 34px); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title :is(.ops-eyebrow, div > span), html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-spacer { display: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-date-controls { grid-column: 2; grid-row: 1; height: 42px; border-radius: 22px; background: var(--surface-1); border-color: var(--border); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-date-controls button { height: 40px; font-size: 15px; min-width: 32px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-today-button { min-width: 88px; border: 1px solid var(--border-strong); border-radius: 22px; text-transform: uppercase; background: linear-gradient(#FFFFFF0A, #0002); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-tools { grid-column: 4; grid-row: 1; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-theme-button { width: 40px; height: 40px; padding: 0; border-radius: 50%; border-color: var(--border); box-shadow: inset 0 1px 3px #FFF2, 0 3px 9px #0004; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-theme-button > span:last-child { display: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-view-switcher { grid-column: 5; grid-row: 1; border-radius: 20px; padding: 4px; background: var(--surface-1); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-view-switcher button { min-width: 70px; height: 36px; font-size: 16px; font-weight: 500; border-radius: 14px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-view-switcher button.is-active { color: var(--text-strong); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--primary), 0 0 12px rgba(var(--primary-rgb), .18); }
.ops-preview-note { display: block; margin-top: 5px; color: var(--text-muted); font: 10px system-ui, sans-serif; }
.ops-preview-note a { color: inherit; text-underline-offset: 2px; }

html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-nav { background-image: var(--collection-surface); padding: 26px 12px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-brand { width: 58px; height: 70px; margin-bottom: 22px; background: transparent; border: 0; box-shadow: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-brand img { display: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-collection-emblem { display: block; font: 58px Georgia, serif; color: var(--primary); text-shadow: 0 0 14px rgba(var(--primary-rgb), .5); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-nav-items { gap: 15px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-nav-items a, .ops-nav-settings) { width: 55px; height: 55px; border-radius: 5px; color: var(--primary); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-nav-items a, .ops-nav-settings) svg { width: 26px; height: 26px; stroke-width: 1.4; }

html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-weather { position: relative; padding: 34px 22px 18px; gap: 14px; overflow: hidden; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today { padding: 10px 3px 14px; gap: 10px; border: 0; border-radius: 0; background: none; box-shadow: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__label { font-family: var(--font-heading); font-size: 22px; letter-spacing: .06em; font-weight: 600; color: var(--text); opacity: 1; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__glyph { grid-column: 1 / -1; height: clamp(130px, 18vh, 190px); width: 100%; border-radius: 4px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__glyph .cal-wx-glyph { width: 170px !important; height: 170px !important; max-width: 95%; max-height: 100%; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-weather .cal-wx-glyph img { width: 100% !important; height: 100% !important; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-icon-well .cal-wx-glyph { width: 100% !important; height: 100% !important; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__temp strong { font-family: var(--font-heading); font-size: 60px; font-weight: 600; color: var(--text-strong); letter-spacing: -.04em; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__temp span { font-size: 24px; font-weight: 500; color: var(--text); margin-top: 1px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__range b { font-size: 30px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__range span { font-size: 27px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__feels { font-size: 12px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__metrics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 0; margin-top: 5px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-pill { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding: 0; background: none; border: 0; border-radius: 0; font-size: 16px; font-weight: 500; color: var(--text); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-pill span:first-child { font-size: inherit; letter-spacing: 0; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-wx-metric-icon, .ops-wx-location-icon) { display: block; color: var(--primary); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__loc { display: flex; align-items: center; gap: 12px; padding: 2px 0 0; font-size: 16px; font-weight: 500; color: var(--text); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-hourly-list, .ops-week-weather) { --ops-wx-bleed: 0px; margin: 0; padding: 0; gap: 10px; grid-auto-rows: minmax(65px, 1fr); min-height: 130px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-hourly-row { --ops-wx-well: 42px; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-rows: 1fr 1fr; column-gap: 14px; row-gap: 0; padding: 8px 10px; border-radius: 15px; background: linear-gradient(#FFFFFF05, #0002); border: 1px solid var(--border); box-shadow: inset 0 1px 2px #FFF1, 0 3px 6px #0003; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-hourly-row .ops-wx-icon-well { grid-column: 1; grid-row: 1 / 3; width: 42px; height: 42px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-hourly-time { grid-column: 2; grid-row: 1; align-self: end; font-size: 15px; color: var(--text); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-hourly-condition { grid-column: 2; grid-row: 2; align-self: start; font-size: 15px; color: var(--text-muted); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-hourly-row > strong { grid-column: 3; grid-row: 1 / 3; font-size: 21px; font-weight: 600; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-hourly-row > span:empty { display: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-hourly-row > .ops-hourly-rain { grid-column: 3; grid-row: 2; align-self: end; font-size: 10px; transform: translateY(5px); }

html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-calendar-panel { padding: 9px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-lane-header, .ops-week-header, .ops-date-band) { background: var(--collection-panel) center / 768px, var(--glass-bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-member-heading { padding: 0 16px; gap: 14px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-member-heading strong { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-member-heading span { font-size: 15px; font-weight: 400; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-member-heading .ops-avatar, .ops-family-pulse .ops-avatar) { width: 39px; height: 39px; font-size: 13px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-member-heading > b { font-size: 12px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-lane-time-label, .ops-date-band-label) { font-size: 10px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-time-scale { background: transparent; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-time-scale span { font-size: 13px; font-weight: 400; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-date-chip { height: 33px; min-height: 33px; border-radius: 7px; gap: 9px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-date-chip strong { font-family: var(--font-heading); font-size: 17px; font-weight: 500; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-date-chip-kind { display: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-event-card { gap: 1px; border-radius: 8px; padding: 5px 32px 5px 10px; background: linear-gradient(100deg, color-mix(in srgb, var(--event-color) 12%, transparent), transparent 90%), var(--collection-panel) center / 768px; box-shadow: 0 3px 8px #0005; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-event-card > strong { font-family: var(--font-heading); font-size: 17px; font-weight: 600; line-height: 1.1; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-event-time { padding: 0; background: none; font-size: 12px; font-weight: 500; letter-spacing: .05em; line-height: 1.1; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-event-location { font-size: 13px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-week-day-heading span { font-size: 12px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-month-event span { font-size: 13px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-month-event b { font-size: 10px; }

html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-actions-panel { padding: 35px 25px 21px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-action-header { gap: 9px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-action-header h2 { font-family: var(--font-heading); font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-action-header .ops-eyebrow { display: none; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-action-count { font-size: 15px; min-width: 28px; height: 28px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-action-intro { font-size: 16px; line-height: 1.45; margin: 14px 0 20px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-action-section-heading { font-size: 12px; letter-spacing: .12em; margin: 20px 0 12px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-all-clear { padding: 22px 16px; gap: 15px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(135deg, #FFFFFF06, #0001); box-shadow: inset 0 1px 1px #FFF1; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-all-clear > span { width: 46px; height: 46px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-all-clear strong { font-family: var(--font-heading); font-size: 21px; font-weight: 600; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-all-clear p { font-size: 15px; line-height: 1.4; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-next-card { padding: 14px 18px; gap: 4px; border-radius: 13px; background: linear-gradient(135deg, #FFFFFF06, #0002); border-color: var(--border); box-shadow: 0 4px 12px #0003; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-next-time { font-size: 14px; color: var(--primary); letter-spacing: .08em; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-next-card strong { font-family: var(--font-heading); font-size: 23px; font-weight: 600; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-next-card > span:last-of-type { font-size: 16px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-family-pulse { padding-top: 14px; border-top: 1px solid var(--border); }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-family-pulse-row { flex-wrap: wrap; gap: 10px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-family-pulse-row > div > span { font-size: 15px; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-actions.is-folded { border-radius: 8px 0 0 8px; overflow: hidden; }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-actions.is-folded::after { display: none; }

/* Exact-theme compositions: Nocturne's sky and cathedral, Guildhall's ledger,
   Orbital's planetary horizon. Weather glyphs remain tied to actual WMO data. */
html[data-theme="nocturne"] .ops-wx-today__glyph { background: var(--collection-atmosphere) center / cover; margin-top: 5px; }
html[data-theme="nocturne"] .ops-collection-art { display: block; min-height: 180px; flex: 1 0 150px; margin: 5px -10px 0; background: var(--collection-illustration) center bottom / contain no-repeat; }
html[data-theme="nocturne"] .ops-family-pulse { margin-top: 0; }
html[data-theme="nocturne"] .ops-time-scale span::before { content: "◇"; position: absolute; right: -16px; color: var(--primary); font-size: 13px; }
html[data-theme="guildhall"] .ops-header { background-image: var(--collection-panel); }
html[data-theme="guildhall"] .ops-collection-wordmark { color: #624119; }
html[data-theme="guildhall"] .ops-nav { --text-faint: #D6BB8E; --text-muted: #E4CEAA; --primary: #E2BF7C; color: #E4CEAA; background-image: var(--collection-surface); }
html[data-theme="guildhall"] .gp-app-nav { --text-muted: #E4CEAA; --text-faint: #D6BB8E; background-image: var(--collection-surface); }
html[data-theme="guildhall"] .ops-nav::after { border-image-width: 35px 13px; }
html[data-theme="guildhall"] .ops-wx-today__hero { grid-template-columns: 42% minmax(0, 1fr); align-items: center; min-height: 160px; }
html[data-theme="guildhall"] .ops-wx-today__glyph { grid-column: 1; grid-row: 1 / 3; height: 145px; }
html[data-theme="guildhall"] .ops-wx-today__glyph .cal-wx-glyph { width: 145px !important; height: 145px !important; }
html[data-theme="guildhall"] .ops-wx-today__temp { grid-column: 2; align-self: end; }
html[data-theme="guildhall"] .ops-wx-today__temp strong { font-size: 55px; }
html[data-theme="guildhall"] .ops-wx-today__temp span { font-size: 20px; }
html[data-theme="guildhall"] .ops-wx-today__range { grid-column: 2; flex-direction: row; gap: 10px; align-self: start; }
html[data-theme="guildhall"] .ops-wx-today__range :is(b, span) { font-size: 24px; }
html[data-theme="guildhall"] .ops-wx-today__metrics { grid-template-columns: 1fr 1fr; gap: 15px 5px; }
html[data-theme="guildhall"] .ops-wx-pill { grid-template-columns: 1fr; gap: 0; border-right: 1px solid #AC804333; font-size: 17px; }
html[data-theme="guildhall"] .ops-wx-metric-icon { display: none; }
html[data-theme="guildhall"] .ops-wx-pill b { font-weight: 600; }
html[data-theme="guildhall"] .ops-wx-today__loc { margin-top: 6px; }
html[data-theme="guildhall"] :is(.ops-hourly-row, .ops-next-card) { background: var(--collection-panel) center / 768px; border-color: #B89A68; box-shadow: inset 0 1px 1px #FFF8, 0 3px 8px #603D1E22; }
html[data-theme="guildhall"] .ops-event-card { background: linear-gradient(100deg, color-mix(in srgb, var(--event-color) 16%, transparent), transparent), var(--collection-panel) center / 768px; }
html[data-theme="guildhall"] .ops-all-clear { background: #486C3930; border-color: #9E9E67; }
html[data-theme="guildhall"] :is(.ops-avatar, .ops-event-time) { color: color-mix(in srgb, var(--member-color, var(--event-color)) 35%, #241D12); }
html[data-theme="guildhall"] .ops-wx-today__range b { color: #906116; }
html[data-theme="guildhall"] .ops-wx-today__range span { color: #255D87; }
html[data-theme="orbital"] .ops-header { background: linear-gradient(90deg, #06111DFF 45%, #06111D11), var(--collection-atmosphere) 75% 50% / cover; }
html[data-theme="orbital"] .ops-header-title h1 { font-size: clamp(20px, 1.4vw, 27px); }
html[data-theme="orbital"] .ops-collection-wordmark strong, html[data-theme="orbital"] .ops-collection-wordmark select { font-size: 16px; letter-spacing: .2em; }
html[data-theme="orbital"] .ops-wx-today__hero { padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--collection-illustration) center / cover; }
html[data-theme="orbital"] .ops-wx-today__glyph { height: 110px; }
html[data-theme="orbital"] .ops-wx-today__glyph .cal-wx-glyph { width: 115px !important; height: 115px !important; }
html[data-theme="orbital"] .ops-wx-today__temp strong { font-size: 45px; font-family: var(--font-body); }
html[data-theme="orbital"] .ops-wx-today__temp span { font-size: 16px; }
html[data-theme="orbital"] .ops-wx-today__range :is(b, span) { font-size: 25px; }
html[data-theme="orbital"] .ops-wx-today__metrics { grid-template-columns: 1fr 1fr; border: 0; gap: 9px; padding: 0; }
html[data-theme="orbital"] .ops-wx-pill { display: flex; flex-wrap: wrap; padding: 8px; gap: 6px; border: 1px solid var(--border); border-radius: 6px; background: #0C2131; font-size: 12px; }
html[data-theme="orbital"] .ops-wx-pill span { font-size: 11px; }
html[data-theme="orbital"] .ops-action-header h2 { font-size: 25px; font-family: var(--font-heading); }
html[data-theme="orbital"] .ops-action-intro { font-size: 14px; }
html[data-theme="orbital"] .ops-event-card > strong { font: 500 14px/1.2 var(--font-body); }
html[data-theme="orbital"] .ops-member-heading strong { font: 600 16px/1.2 var(--font-body); }
html[data-theme="orbital"] .ops-member-heading span { font-size: 12px; }
html[data-theme="orbital"] .ops-next-card strong { font: 500 20px/1.2 var(--font-body); }
html[data-theme="orbital"] .ops-all-clear strong { font: 600 18px/1.2 var(--font-body); }
html[data-theme="orbital"] :is(.ops-hourly-time, .ops-hourly-condition) { font-size: 13px; }
html[data-theme="orbital"] .ops-all-clear p { font-size: 13px; }
html[data-theme="orbital"] .ops-header .ops-today-button { font-size: 13px; }

/* Public home entry points open a separate sample-only calendar. They do not
   apply a paid theme, sign in, or read/change an account preference. */
.theme-preview-links { width: 100%; max-width: 640px; margin: 26px auto 6px; color: var(--text); }
.theme-preview-links__heading { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font: 13px system-ui, sans-serif; }
.theme-preview-links__heading span { color: var(--text-muted); font-size: 10px; }
.theme-preview-links > div:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-preview-link { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 125px; padding: 20px 14px 12px; border: 1px solid #7D6240; border-radius: 10px; color: #EFDFC4; text-decoration: none; background: linear-gradient(#0003, #000B), url("/assets/themes/nocturne/surface.webp?v=theme-art-20261101-1") center / cover; overflow: hidden; }
.theme-preview-link strong { font: 600 18px 'Cinzel', Georgia, serif; }
.theme-preview-link span { font: 11px system-ui, sans-serif; }
.theme-preview-link b { margin-top: auto; padding-top: 15px; font: 600 11px system-ui, sans-serif; }
.theme-preview-link.is-guildhall { background-image: linear-gradient(#34190022, #341900CC), url("/assets/themes/guildhall/surface.webp?v=theme-art-20261101-1"); border-color: #A47A3B; }
.theme-preview-link.is-orbital { background-image: linear-gradient(#00132622, #001326DD), url("/assets/themes/orbital/atmosphere.webp?v=theme-art-20261101-1"); border-color: #385771; color: #D1F4FF; }
.theme-preview-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.gp-login-screen { height: 100dvh; overflow: auto; justify-content: flex-start !important; }
.gp-login-screen > * { flex-shrink: 0; }
.gp-login-screen > footer { position: static !important; margin-top: 24px; }
.home-collection-layout { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.theme-preview-links.is-compact { flex: 0 0 auto; max-width: none; width: auto; margin: 12px 20px; padding: 12px; background: var(--glass-bg); border: 1px solid var(--border); border-radius: 10px; }
.theme-preview-links.is-compact .theme-preview-link { min-height: 80px; padding: 10px 14px; }
.theme-preview-links.is-compact .theme-preview-link b { padding-top: 4px; }

/* Only ambient icon light changes; source artwork is never replaced by CSS.
   Original Glass/Clay/Extrusion four-frame sprite sets remain unchanged. */
@keyframes collection-weather-light { 0%, 100% { opacity: .94; } 50% { opacity: 1; } }
html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .cal-wx-glyph { animation: collection-weather-light 6s ease-in-out infinite; }
@media (max-width: 1390px) and (min-width: 1051px) {
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) { --collection-weather-w: 235px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-content { --ops-actions-w: 270px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header { grid-template-columns: 150px auto minmax(0, 1fr) auto auto; gap: 8px; padding: 10px 16px; }
  .ops-collection-wordmark { gap: 7px; }
  .ops-collection-wordmark strong, .ops-collection-wordmark select { font-size: 16px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-view-switcher button { min-width: 51px; font-size: 14px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-date-controls button { min-width: 27px; font-size: 13px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-today-button { min-width: 61px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title h1 { font-size: 23px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-weather { padding: 30px 17px 15px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-actions-panel { padding: 30px 18px 18px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-action-header h2 { font-size: 27px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-today__metrics { gap: 5px; padding: 10px 0; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-wx-pill { font-size: 14px; gap: 5px; }
}
@media (max-width: 1050px) {
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header { display: flex; flex-wrap: wrap; flex-basis: auto; min-height: 90px; padding: 14px 18px; gap: 10px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title { flex: 1; min-width: 220px; order: 2; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title h1 { font-size: 25px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-date-controls { order: 3; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-tools { order: 4; margin-left: auto; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-view-switcher { order: 5; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-content { --ops-actions-w: 270px; grid-template-columns: 230px minmax(0, 1fr); }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-content.is-month { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-app { display: block; min-height: 100dvh; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-shell { padding: 8px 8px 86px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header { margin-bottom: 8px; gap: 8px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title { flex-basis: 100%; min-width: 0; order: 2; text-align: left; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-header-title h1 { font-size: 26px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-content { display: flex; flex-direction: column; min-height: 0; gap: 12px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-weather { min-height: 680px; padding: 32px 22px 20px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-actions:not(.is-folded) { position: relative; order: 3; width: 100%; height: auto; top: auto; bottom: auto; max-height: none; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-content:has(.ops-actions:not(.is-folded)) .ops-calendar-panel { margin-right: 0; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-nav { padding: 8px 12px; background: var(--collection-surface) center / 768px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-nav::after { display: none; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-brand { width: 38px; height: 38px; margin: 0; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-collection-emblem { font-size: 36px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) .ops-nav-items { gap: 7px; }
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) :is(.ops-nav-items a, .ops-nav-settings) { width: 39px; height: 39px; }
  .theme-preview-links__heading { flex-direction: column; gap: 4px; }
  .theme-preview-link { padding: 14px 9px 10px; min-height: 120px; }
  .theme-preview-link strong { font-size: 13px; }
  .theme-preview-link span { font-size: 10px; }
  .theme-preview-links.is-compact { margin: 8px; }
  .theme-preview-links.is-compact .theme-preview-link { min-height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) *,
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) *::before,
  html:is([data-theme="nocturne"], [data-theme="guildhall"], [data-theme="orbital"]) *::after { animation: none !important; transition: none !important; }
}
