/* Classic Christmas: the seasonal theme (owner 2026-11-02).

   A sheet laid over the everyday theme, never a replacement for it. It loads
   last on every shell when config('brand.season') is "christmas"
   (RENTALS369_SITE_THEME), after app.css or auth.css and any page sheet, so
   switching back is just turning the setting off.

   The look is a 1990s Christmas card: evergreen, cranberry and brass on
   eggnog paper, a plaid ribbon, holly, Georgia headings and a string of big
   C9 bulbs hanging under the top bar. The rules it keeps:
   - Only the brand colour changes. Evergreen takes Helvetia Blue's job
     (primary buttons, links, the current page, focus). Danger, warning,
     success and information keep their own colours, so red still only
     means a problem; cranberry appears in decorations alone.
   - Decorations are pictures in pseudo-elements and backgrounds, so screen
     readers never meet them and nothing in the page moves to make room.
   - The bulbs twinkle the whole time (owner 2026-11-02). Reduced motion
     keeps them lit and still. Forced colours and print drop every
     decoration. */

/* --- palette -------------------------------------------------------------- */

:root {
  /* Evergreen carries the brand roles. White text on #1d5a3c is 8.2:1. */
  --rentals-blue: #1d5a3c;
  --rentals-blue-hover: #154530;
  --rentals-blue-deep: #0f3324;
  --rentals-blue-soft: #dcebdd;
  --rentals-soft: #fbf8f1;
  --rentals-warm: #fbf8f1;
  --rentals-border: #e4dfd2;
  --ops-line-strong: #cbc1a4;
  --ops-surface-head: #e2ebde;
  --ops-surface-stripe: #f5f2e9;
  /* Evergreen on white 8.2:1, on the eggnog canvas 7.7:1, on the band 6.9:1. */
  --ops-focus-ring: #1d5a3c;

  --auth-primary: #1d5a3c;
  --auth-primary-hover: #154530;
  --auth-teal: #154530;
  --auth-canvas: #fbf8f1;
  --auth-panel-border: #e4dcc8;

  /* A Royal Stewart style sett, 24px square: green band, brass line and a
     navy line over cranberry, the same both ways so it reads as plaid as a
     ribbon or as an edge. */
  --r369-xmas-plaid:
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(16, 72, 44, .62) 4px 10px, transparent 10px 13px, rgba(242, 201, 98, .9) 13px 14px, transparent 14px 18px, rgba(10, 24, 48, .5) 18px 20px, transparent 20px 24px),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(16, 72, 44, .62) 4px 10px, transparent 10px 13px, rgba(242, 201, 98, .9) 13px 14px, transparent 14px 18px, rgba(10, 24, 48, .5) 18px 20px, transparent 20px 24px),
    linear-gradient(#a8151d, #a8151d);

  --r369-xmas-holly: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M15 11C12 6 6 4 1 6c2 1 2 3 1 4 2 0 3 2 2 3 2-.5 4 1 4 2.5 2-1.5 4-1.5 7-4.5Z' fill='%231d6b3f' stroke='%230f3b23' stroke-width='.6'/%3E%3Cpath d='M15 11c3-5 9-7 14-5-2 1-2 3-1 4-2 0-3 2-2 3-2-.5-4 1-4 2.5-2-1.5-4-1.5-7-4.5Z' fill='%23237a48' stroke='%230f3b23' stroke-width='.6'/%3E%3Cpath d='M15 11Q9 8 3 7M15 11q6-3 12-4' fill='none' stroke='%230f3b23' stroke-width='.5'/%3E%3Ccircle cx='12.6' cy='13.4' r='3' fill='%23c3161f'/%3E%3Ccircle cx='17.6' cy='13.6' r='3' fill='%23b3131b'/%3E%3Ccircle cx='15' cy='17.4' r='3' fill='%23d01d26'/%3E%3Ccircle cx='11.8' cy='12.5' r='.9' fill='%23fff' fill-opacity='.7'/%3E%3Ccircle cx='16.8' cy='12.7' r='.9' fill='%23fff' fill-opacity='.7'/%3E%3Ccircle cx='14.2' cy='16.5' r='.9' fill='%23fff' fill-opacity='.7'/%3E%3C/svg%3E");

  /* The holly again, in lighter greens for the evergreen sidebar. */
  --r369-xmas-holly-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M15 11C12 6 6 4 1 6c2 1 2 3 1 4 2 0 3 2 2 3 2-.5 4 1 4 2.5 2-1.5 4-1.5 7-4.5Z' fill='%234caf6e' stroke='%230d2a1c' stroke-width='.6'/%3E%3Cpath d='M15 11c3-5 9-7 14-5-2 1-2 3-1 4-2 0-3 2-2 3-2-.5-4 1-4 2.5-2-1.5-4-1.5-7-4.5Z' fill='%235cbd7c' stroke='%230d2a1c' stroke-width='.6'/%3E%3Cpath d='M15 11Q9 8 3 7M15 11q6-3 12-4' fill='none' stroke='%230d2a1c' stroke-width='.5'/%3E%3Ccircle cx='12.6' cy='13.4' r='3' fill='%23e0202a'/%3E%3Ccircle cx='17.6' cy='13.6' r='3' fill='%23cf1b24'/%3E%3Ccircle cx='15' cy='17.4' r='3' fill='%23ec2a33'/%3E%3Ccircle cx='11.8' cy='12.5' r='.9' fill='%23fff' fill-opacity='.75'/%3E%3Ccircle cx='16.8' cy='12.7' r='.9' fill='%23fff' fill-opacity='.75'/%3E%3Ccircle cx='14.2' cy='16.5' r='.9' fill='%23fff' fill-opacity='.75'/%3E%3C/svg%3E");

  /* Snow resting along a top edge, 120 by 16, with a soft shadow under it. */
  --r369-xmas-snowcap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16'%3E%3Cpath d='M0 0H120V11C112 13 104 13 96 10S80 5 70 9 54 15 44 11 28 6 18 9 6 13 0 11Z' transform='translate(0 1.5)' fill='%2306170f' fill-opacity='.35'/%3E%3Cpath d='M0 0H120V11C112 13 104 13 96 10S80 5 70 9 54 15 44 11 28 6 18 9 6 13 0 11Z' fill='%23fff'/%3E%3C/svg%3E");

  /* A Santa hat for the account button. */
  --r369-xmas-hat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M4 17C5 9 10 3 17 3c5 0 8 3 8.5 8l-2.7.2c-.8-2.7-2.3-3.7-3.8-2.7C17 10 16.5 13 16 17Z' fill='%23c3161f' stroke='%238e0f16' stroke-width='.6'/%3E%3Cpath d='M7 15C8 10 11 6 15 5' fill='none' stroke='%23fff' stroke-opacity='.3' stroke-width='1.2' stroke-linecap='round'/%3E%3Crect x='2' y='15.5' width='17' height='6.5' rx='3.25' fill='%23fffaf3' stroke='%23d9cdb5' stroke-width='.7'/%3E%3Ccircle cx='24.6' cy='12.4' r='3.1' fill='%23fffaf3' stroke='%23d9cdb5' stroke-width='.7'/%3E%3C/svg%3E");

  /* Falling snow: a far layer of small flakes and a near layer of larger
     ones. White with a faint blue rim, so they still show on white paper. */
  --r369-xmas-snow-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23fff' stroke='%23708dab' stroke-opacity='.6' stroke-width='0.5'%3E%3Ccircle cx='20' cy='30' r='1.6'/%3E%3Ccircle cx='90' cy='12' r='1.2'/%3E%3Ccircle cx='150' cy='60' r='1.8'/%3E%3Ccircle cx='210' cy='25' r='1.3'/%3E%3Ccircle cx='45' cy='110' r='1.4'/%3E%3Ccircle cx='120' cy='140' r='1.9'/%3E%3Ccircle cx='190' cy='100' r='1.2'/%3E%3Ccircle cx='70' cy='190' r='1.7'/%3E%3Ccircle cx='160' cy='210' r='1.3'/%3E%3Ccircle cx='225' cy='170' r='1.6'/%3E%3Ccircle cx='10' cy='200' r='1.2'/%3E%3Ccircle cx='105' cy='80' r='1.1'/%3E%3Ccircle cx='30' cy='160' r='1.5'/%3E%3Ccircle cx='200' cy='228' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  --r369-xmas-snow-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23fff' stroke='%23708dab' stroke-opacity='.6' stroke-width='0.7'%3E%3Ccircle cx='40' cy='50' r='3'/%3E%3Ccircle cx='160' cy='20' r='2.6'/%3E%3Ccircle cx='290' cy='80' r='3.4'/%3E%3Ccircle cx='100' cy='170' r='2.8'/%3E%3Ccircle cx='230' cy='200' r='3.2'/%3E%3Ccircle cx='330' cy='260' r='2.6'/%3E%3Ccircle cx='60' cy='300' r='3.4'/%3E%3Ccircle cx='180' cy='320' r='2.4'/%3E%3Ccircle cx='300' cy='336' r='3'/%3E%3Ccircle cx='280' cy='150' r='2.2'/%3E%3C/g%3E%3C/svg%3E");

  /* Two snowdrifts, 400 by 72, for the bottom of the sign-in page. */
  --r369-xmas-snowbank: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='72'%3E%3Cpath d='M0 40C70 22 130 30 200 38S330 50 400 40V72H0Z' fill='%23eef4fa'/%3E%3Cpath d='M0 50C60 36 120 40 180 48S310 60 400 50V72H0Z' fill='%23fff' stroke='%23cfdbe8'/%3E%3C/svg%3E");

  /* Six C9 bulbs on a drooping wire, 168 by 26: red, green, gold, blue,
     orange and milk white, the way the old opaque strings came. */
  --r369-xmas-bulbs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='26' viewBox='0 0 168 26'%3E%3Cdefs%3E%3Cg id='b'%3E%3Crect x='11.5' y='5.5' width='5' height='6' rx='1' fill='%231c3a26'/%3E%3Cpath d='M10.6 11.2C9.5 14.8 11.1 20.4 14 24.6 16.9 20.4 18.5 14.8 17.4 11.2Z' stroke='%23000' stroke-opacity='.18' stroke-width='.6'/%3E%3Cellipse cx='12.5' cy='15' rx='1.1' ry='2.7' fill='%23fff' fill-opacity='.5'/%3E%3C/g%3E%3C/defs%3E%3Cpath d='M0 3Q14 11 28 3Q42 11 56 3Q70 11 84 3Q98 11 112 3Q126 11 140 3Q154 11 168 3' fill='none' stroke='%231c3a26' stroke-width='1.5'/%3E%3Cuse href='%23b' fill='%23d42a2f'/%3E%3Cuse href='%23b' x='28' fill='%2322a04f'/%3E%3Cuse href='%23b' x='56' fill='%23f6c12c'/%3E%3Cuse href='%23b' x='84' fill='%232a66dd'/%3E%3Cuse href='%23b' x='112' fill='%23f07a1f'/%3E%3Cuse href='%23b' x='140' fill='%23f5efdf'/%3E%3C/svg%3E");
}

.dark {
  /* The sidebar, canvas and top bar read --rentals-navy; at night they turn
     to deep pine. Evergreen steps up to #2e7d50 so a button still stands off
     the dark ground (white text 5.0:1). */
  --rentals-navy: #0b1a13;
  --rentals-navy-2: #10241a;
  --rentals-blue: #2e7d50;
  --rentals-blue-hover: #256842;
  --ops-surface: #14221b;
  --ops-surface-quiet: #101c16;
  --ops-surface-head: #1e3328;
  --ops-surface-stripe: #18271f;
  --ops-line: rgba(196, 214, 196, .2);
  --ops-line-strong: rgba(196, 214, 196, .34);
  --ops-accent-soft: rgba(46, 125, 80, .24);
  --ops-accent-deep: #a8d5b5;
  /* 9.4:1 on the pine sidebar, 8.6:1 on a dark panel. */
  --ops-focus-ring: #a8d5b5;
}

.dark .app-shell-body,
.dark .ops-shell {
  /* A faint glow of firelight in the corner where the blue wash was. */
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 30, 40, .1), transparent 30rem),
    linear-gradient(135deg, var(--rentals-navy) 0%, var(--rentals-navy-2) 54%, var(--rentals-navy) 100%);
}

/* --- headings ------------------------------------------------------------- */

/* Georgia (1993) is the screen serif of the era and every computer has it.
   Only titles take it: its old-style figures would upset the stat numbers. */
.ops-page-header-title,
.ops-section-title,
.ops-panel-title,
.ops-auth-card-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

/* --- app shell ------------------------------------------------------------ */

/* The sidebar turns Christmas-tree green, day and night (deep pine at
   night), with a plaid ribbon down its edge and snow along its top. Every
   colour inside is the dark theme's light-on-dark twin: cream type on
   #173f2c is 11.6:1, the gold focus ring 7.6:1. */
.ops-sidebar,
.ops-sidebar-mobile {
  --ops-focus-ring: #f2c962;
  color: #f4eee0;
  border-color: rgba(244, 238, 224, .1);
  background-color: #173f2c;
  background-image: var(--r369-xmas-plaid), linear-gradient(180deg, #1b4832 0%, #143826 100%);
  background-size: 6px 100%, 6px 100%, 6px 100%, 100% 100%;
  background-position: right top;
  background-repeat: no-repeat;
}

.ops-sidebar:is(.dark *),
.ops-sidebar-mobile:is(.dark *) {
  background-color: var(--rentals-navy);
  background-image: var(--r369-xmas-plaid);
  background-size: 6px 100%;
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-sidebar-header, .ops-sidebar-footer, .ops-nav-children) {
  border-color: rgba(244, 238, 224, .14);
}

/* The light logo is drawn for white paper; the green needs the dark one.
   Both are the theme's own (brand-assets/seasonal/christmas-logo-*.png): the
   R in a Santa hat, the 369 in cranberry on paper and brass on the green. */
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-brand-theme-logo-light {
  display: none;
}

:is(.ops-sidebar, .ops-sidebar-mobile) .ops-brand-theme-logo-dark {
  display: block;
}

/* Forced colours paint the sidebar with the system canvas, so the logo goes
   back to the everyday choice: the light one by day, the dark one at
   night. */
@media (forced-colors: active) {
  :is(.ops-sidebar, .ops-sidebar-mobile) .ops-brand-theme-logo-light {
    display: block;
  }

  :is(.ops-sidebar, .ops-sidebar-mobile) .ops-brand-theme-logo-dark,
  .dark :is(.ops-sidebar, .ops-sidebar-mobile) .ops-brand-theme-logo-light {
    display: none;
  }

  .dark :is(.ops-sidebar, .ops-sidebar-mobile) .ops-brand-theme-logo-dark {
    display: block;
  }
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-sidebar-section, .r369-sidebar-group-label) {
  color: #b9c9b6;
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-nav-item, .ops-nav-child, .r369-sidebar-dashboard-link, .r369-sidebar-context-link) {
  color: #ebe5d4;
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-nav-item, .ops-nav-child, .r369-sidebar-dashboard-link, .r369-sidebar-context-link):hover {
  color: #fff;
  background-color: rgba(255, 255, 255, .09);
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-nav-chevron, .ops-nav-child-icon, .r369-sidebar-context-icon) {
  color: #c9d4c5;
}

:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-item .ops-nav-icon {
  color: var(--ops-nav-accent, #c9d4c5);
}

:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-item:hover :is(.ops-nav-icon, .ops-nav-chevron),
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-child:hover .ops-nav-child-icon {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
}

/* The group glyphs keep their identity hues, in the dark theme's light
   versions so they read on green. */
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-accent-teal { --ops-nav-accent: #5eead4; }
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-accent-indigo { --ops-nav-accent: #a5b4fc; }
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-accent-orange { --ops-nav-accent: #fdba74; }
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-accent-violet { --ops-nav-accent: #c4b5fd; }
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-accent-sky { --ops-nav-accent: #7dd3fc; }
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-accent-fuchsia { --ops-nav-accent: #f0abfc; }
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-accent-cyan { --ops-nav-accent: #67e8f9; }

/* The current page is a cream tag with a candy-cane stripe down its edge.
   Evergreen on cream is 11.9:1. */
:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-nav-item-active, .ops-nav-child-active, .r369-sidebar-context-link.is-active),
:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-nav-item-active, .ops-nav-child-active, .r369-sidebar-context-link.is-active):hover {
  color: #0f3324;
  background-color: #fbf5e6;
  background-image: repeating-linear-gradient(-45deg, #c3161f 0 4px, #fffaf0 4px 8px);
  background-size: 5px 100%;
  background-position: left top;
  background-repeat: no-repeat;
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-nav-item-active, .ops-nav-child-active, .r369-sidebar-context-link.is-active):hover {
  background-color: #f3e9cf;
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-nav-item-active, .ops-nav-item-active:hover) :is(.ops-nav-icon, .ops-nav-chevron),
:is(.ops-sidebar, .ops-sidebar-mobile) .ops-nav-child-active .ops-nav-child-icon,
:is(.ops-sidebar, .ops-sidebar-mobile) .r369-sidebar-context-link.is-active .r369-sidebar-context-icon {
  color: #1d5a3c;
  background-color: transparent;
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-icon-button, .r369-sidebar-menu-toggle, .ops-sidebar-close-button) {
  color: #ebe5d4;
  border-color: rgba(244, 238, 224, .26);
  background-color: rgba(255, 255, 255, .06);
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-icon-button, .r369-sidebar-menu-toggle, .ops-sidebar-close-button):hover {
  color: #fff;
  border-color: rgba(244, 238, 224, .42);
  background-color: rgba(255, 255, 255, .12);
}

:is(.ops-sidebar, .ops-sidebar-mobile) .r369-sidebar-menu-switch {
  color: #0f3324;
  border-color: #fbf5e6;
  background: #fbf5e6;
}

:is(.ops-sidebar, .ops-sidebar-mobile) .r369-sidebar-menu-switch:hover {
  background: #f3e9cf;
}

:is(.ops-sidebar, .ops-sidebar-mobile) .r369-sidebar-addon-empty {
  color: #cfd8cc;
}

:is(.ops-sidebar, .ops-sidebar-mobile) .r369-sidebar-addon-empty a {
  color: #f2c962;
}

:is(.ops-sidebar, .ops-sidebar-mobile) :is(.ops-nav-item, .ops-nav-child, .r369-sidebar-dashboard-link, .r369-sidebar-context-link, .r369-sidebar-menu-toggle, .r369-sidebar-menu-switch, .r369-sidebar-addon-empty a):focus-visible {
  outline-color: #f2c962;
}

.ops-sidebar-header {
  position: relative;
}

/* Snow along the top of the sidebar, and holly beside the logo. */
.ops-sidebar-header::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0 6px;
  block-size: 16px;
  background: var(--r369-xmas-snowcap) left top / 120px 16px repeat-x;
  pointer-events: none;
}

.ops-sidebar-header::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: .875rem;
  inline-size: 1.875rem;
  block-size: 1.375rem;
  translate: 0 -50%;
  background: var(--r369-xmas-holly-light) center / contain no-repeat;
  pointer-events: none;
}

/* In the phone drawer the close button sits at the header's end, so the
   charm moves to the start, clear of the X. */
.ops-sidebar-mobile .ops-sidebar-header::after {
  inset-inline: 1rem auto;
}

/* A Santa hat perched on the account button. */
.ops-user-button::before {
  content: "";
  position: absolute;
  inset-block-start: -.6rem;
  inset-inline-start: -.45rem;
  z-index: 1;
  inline-size: 1.875rem;
  block-size: 1.625rem;
  rotate: -20deg;
  background: var(--r369-xmas-hat) center / contain no-repeat;
  pointer-events: none;
}

/* Links and the work queue's tabs carry their own blue rather than the
   token, so they are named here. */
.ops-link {
  color: #1d5a3c;
}

.ops-link:hover {
  color: #0f3324;
}

.dark .ops-link {
  color: #a8d5b5;
}

.dark .ops-link:hover {
  color: #cfe8d6;
}

/* The work queue's own page names Helvetia Blue outright for its active
   filter, so it is named here too. */
.ops-queue-tab.is-active,
.ops-work-queue-page .ops-queue-tab.is-active,
.ops-work-queue-page .ops-queue-tab.is-active:hover {
  background: #1d5a3c;
  border-color: #1d5a3c;
}

.ops-breadcrumb-current {
  color: #0f3324;
  background: #dcebdd;
}

.dark .ops-breadcrumb-current {
  color: #cfe8d6;
  background: rgba(46, 125, 80, .26);
}

/* What the team sent on a repair: evergreen in place of the blue tint. */
.repair-email.is-outbound,
.repair-thread-row.is-outbound {
  border-color: rgb(29 90 60 / .3);
  background: #f2f7f1;
}

.repair-email-icon {
  background: #e3efe3;
  color: #1d5a3c;
}

.repair-email.is-outbound .repair-email-icon,
.repair-thread-row.is-outbound .repair-email-icon,
.repair-thread-earlier-count {
  background: #1d5a3c;
  color: #fff;
}

.repair-email.is-outbound:is(.dark *),
.repair-thread-row.is-outbound:is(.dark *) {
  border-color: rgb(120 190 140 / .32);
  background: #12271c;
}

.repair-email-icon:is(.dark *) {
  background: rgb(120 190 140 / .14);
  color: #a8d5b5;
}

.repair-email.is-outbound .repair-email-icon:is(.dark *),
.repair-thread-row.is-outbound .repair-email-icon:is(.dark *) {
  background: #2e7d50;
  color: #fff;
}

.ops-topbar-create {
  --ops-topbar-accent: #154530;
  --ops-topbar-tint: rgba(21, 69, 48, .08);
}

.ui-btn-primary,
.settings-btn-primary,
.ops-settings-submit {
  box-shadow: 0 8px 22px rgba(15, 51, 36, .22), inset 0 1px 0 rgba(242, 201, 98, .32);
}

/* Page and record headers wear a plaid ribbon along their top edge. */
.ops-page-header,
.ops-record-header {
  background-image: var(--r369-xmas-plaid);
  background-size: 100% 6px;
  background-position: top;
  background-repeat: no-repeat;
}

.ops-section-head.ops-section-head-brand,
.ops-section-head-accent,
.mailbox-page .intg-section-head,
.mailbox-page .intg-section-disclosure > .intg-section-summary {
  border-bottom-color: #1d5a3c;
  background-color: #dcebdd;
}

.ops-section-head-brand .ops-section-title,
.mailbox-page .intg-section-head .settings-heading,
.mailbox-page .intg-section-summary .settings-heading,
.mailbox-page .intg-section-head .intg-section-note strong {
  color: #0f3324;
}

.ops-section-head-brand .ops-section-title > :is(.lucide-token, .ui-icon),
.mailbox-page .intg-section-head .settings-heading > :is(.lucide-token, .ui-icon),
.mailbox-page .intg-section-summary .settings-heading > :is(.lucide-token, .ui-icon),
.mailbox-page .intg-section-summary .intg-disclosure-chevron {
  color: #1d5a3c;
}

.ops-section-head.ops-section-head-brand .ops-section-count,
.mailbox-page .intg-section-head .ops-section-count {
  border-color: #c3d6c1;
  color: #0f3324;
}

@media (hover: hover) {
  .mailbox-page .intg-section-disclosure > .intg-section-summary:hover {
    background-color: #cfe2d0;
  }
}

.dark .ops-section-head.ops-section-head-brand,
.dark .ops-section-head-accent,
.dark .mailbox-page .intg-section-head,
.dark .mailbox-page .intg-section-disclosure > .intg-section-summary {
  border-bottom-color: #3c8a5c;
  background-color: #163024;
}

.dark .ops-section-head-brand .ops-section-title,
.dark .mailbox-page .intg-section-head .settings-heading,
.dark .mailbox-page .intg-section-summary .settings-heading,
.dark .mailbox-page .intg-section-head .intg-section-note strong {
  color: #f1f5f9;
}

.dark .ops-section-head-brand .ops-section-title > :is(.lucide-token, .ui-icon),
.dark .mailbox-page .intg-section-head .settings-heading > :is(.lucide-token, .ui-icon),
.dark .mailbox-page .intg-section-summary .settings-heading > :is(.lucide-token, .ui-icon) {
  color: #a8d5b5;
}

.dark .ops-topbar {
  background-color: rgba(12, 26, 19, .94);
}

/* --- the string of lights ------------------------------------------------- */

/* The bulbs hang under the top bar's edge like lights under the eaves: each
   bulb's coloured glow, then the bulbs on their wire, repeating every 168px. */
.ops-topbar::after,
.ops-auth-form-area::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  block-size: 26px;
  pointer-events: none;
  background-image:
    var(--r369-xmas-bulbs),
    radial-gradient(ellipse 11px 8px at 14px 17px, rgb(255 70 60 / .42), transparent),
    radial-gradient(ellipse 11px 8px at 42px 17px, rgb(70 220 120 / .38), transparent),
    radial-gradient(ellipse 11px 8px at 70px 17px, rgb(255 210 80 / .42), transparent),
    radial-gradient(ellipse 11px 8px at 98px 17px, rgb(90 150 255 / .42), transparent),
    radial-gradient(ellipse 11px 8px at 126px 17px, rgb(255 150 60 / .42), transparent),
    radial-gradient(ellipse 11px 8px at 154px 17px, rgb(255 245 220 / .5), transparent);
  background-size: 168px 26px;
  background-repeat: repeat-x;
}

/* The twinkle: sparkle layers over the string, one on every third bulb, one
   on every fifth and one on every seventh, each flickering on its own clock.
   A bulb flares in its own colour with a white-hot centre. The steps and
   clocks share no factor, so the pattern keeps changing along the string
   instead of marching; each layer's tile is as long as it takes for its
   bulbs' colours to come round again. Only opacity animates, which the
   browser composites without repainting the page. */
.ops-topbar::before,
.ops-topbar-row::before,
.ops-topbar-row::after,
.ops-auth-form-area::after,
.ops-auth-layout:has(.ops-auth-form-area)::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  block-size: 26px;
  pointer-events: none;
  background-repeat: repeat-x;
  opacity: 0;
  will-change: opacity;
  animation: r369-xmas-twinkle var(--r369-xmas-clock) ease-in-out var(--r369-xmas-delay) infinite;
}

/* Every third bulb: red and blue. */
.ops-topbar::before,
.ops-auth-form-area::after {
  --r369-xmas-clock: 2.9s;
  --r369-xmas-delay: 0s;
  background-image:
    radial-gradient(circle 3px at 14px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 98px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(ellipse 15px 9px at 14px 17px, rgb(255 80 70 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 98px 17px, rgb(110 165 255 / .75), transparent);
  background-size: 168px 26px;
}

/* Every fifth bulb, all six colours over 30 bulbs. */
.ops-topbar-row::before,
.ops-auth-layout:has(.ops-auth-form-area)::before {
  --r369-xmas-clock: 3.7s;
  --r369-xmas-delay: -1.3s;
  background-image:
    radial-gradient(circle 3px at 70px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 210px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 350px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 490px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 630px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 770px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(ellipse 15px 9px at 70px 17px, rgb(255 215 90 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 210px 17px, rgb(80 230 130 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 350px 17px, rgb(255 80 70 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 490px 17px, rgb(255 248 225 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 630px 17px, rgb(255 160 70 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 770px 17px, rgb(110 165 255 / .75), transparent);
  background-size: 840px 26px;
}

/* Every seventh bulb, all six colours over 42 bulbs. */
.ops-topbar-row::after {
  --r369-xmas-clock: 4.3s;
  --r369-xmas-delay: -2.6s;
  background-image:
    radial-gradient(circle 3px at 154px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 350px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 546px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 742px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 938px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(circle 3px at 1134px 17px, rgb(255 253 240 / .95), transparent),
    radial-gradient(ellipse 15px 9px at 154px 17px, rgb(255 248 225 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 350px 17px, rgb(255 80 70 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 546px 17px, rgb(80 230 130 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 742px 17px, rgb(255 215 90 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 938px 17px, rgb(110 165 255 / .75), transparent),
    radial-gradient(ellipse 15px 9px at 1134px 17px, rgb(255 160 70 / .75), transparent);
  background-size: 1176px 26px;
}

/* A quick double flicker, then dark for the rest of the clock. */
@keyframes r369-xmas-twinkle {
  0%, 100% { opacity: 0; }
  12% { opacity: 1; }
  24% { opacity: .2; }
  36% { opacity: .85; }
  55% { opacity: 0; }
}

/* The top bar's row is not positioned, so its sparkles hang from the bar
   too. */
.ops-topbar::after,
.ops-topbar::before,
.ops-topbar-row::before,
.ops-topbar-row::after {
  inset-block-start: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .ops-topbar::before,
  .ops-topbar-row::before,
  .ops-topbar-row::after,
  .ops-auth-form-area::after,
  .ops-auth-layout:has(.ops-auth-form-area)::before {
    animation: none;
  }
}

/* --- snow ------------------------------------------------------------------ */

/* Snow falls behind the work at night (dark theme) and over the whole sign-in
   page. By day the app keeps a still canvas. Each layer is one tile taller
   than the screen and slides down exactly one tile, so the loop never shows
   a seam; only transform animates. */
@keyframes r369-xmas-snow-far {
  from { transform: translateY(0); }
  to { transform: translateY(240px); }
}

@keyframes r369-xmas-snow-near {
  from { transform: translateY(0); }
  to { transform: translateY(360px); }
}

.dark .app-shell-body::before,
.dark .app-shell-body::after,
.ops-auth-shell:has(.ops-auth-form-area)::before,
.ops-auth-shell:has(.ops-auth-form-area)::after {
  content: "";
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  pointer-events: none;
  will-change: transform;
}

.dark .app-shell-body::before,
.ops-auth-shell:has(.ops-auth-form-area)::before {
  inset-block-start: -240px;
  background: var(--r369-xmas-snow-far) left top / 240px 240px repeat;
  opacity: .7;
  animation: r369-xmas-snow-far 19s linear infinite;
}

.dark .app-shell-body::after,
.ops-auth-shell:has(.ops-auth-form-area)::after {
  inset-block-start: -360px;
  background: var(--r369-xmas-snow-near) left top / 360px 360px repeat;
  opacity: .9;
  animation: r369-xmas-snow-near 14s linear infinite;
}

/* In the app the snow sits behind everything: the shell gives up its copy of
   the night sky so the body's, painted under the snow, shows through. */
.dark .app-shell-body::before,
.dark .app-shell-body::after {
  z-index: -1;
}

.dark .ops-shell {
  background: transparent;
}

/* On sign-in it falls in front of the drawing and behind the card. */
.ops-auth-shell:has(.ops-auth-form-area)::before,
.ops-auth-shell:has(.ops-auth-form-area)::after {
  z-index: 5;
}

/* Snowdrifts along the bottom of the sign-in page. */
.ops-auth-layout:has(.ops-auth-form-area)::after {
  content: "";
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 6;
  block-size: 72px;
  background: var(--r369-xmas-snowbank) left bottom / 400px 72px repeat-x;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .dark .app-shell-body::before,
  .dark .app-shell-body::after,
  .ops-auth-shell:has(.ops-auth-form-area)::before,
  .ops-auth-shell:has(.ops-auth-form-area)::after {
    animation: none;
  }
}

/* --- sign-in -------------------------------------------------------------- */

.ops-auth-form-area {
  background-image: linear-gradient(180deg, #f3eedf 0%, rgba(243, 238, 223, 0) 26rem);
}

@media (min-width: 48rem) {
  .ops-auth-form-area {
    background-color: #fffdf8;
    background-image: url("/images/auth/signin-drawing.webp");
  }
}

.ops-auth-form-area::before,
.ops-auth-form-area::after,
.ops-auth-layout:has(.ops-auth-form-area)::before {
  inset-block-start: 0;
  z-index: 11;
}

.ops-auth-form-area::after,
.ops-auth-layout:has(.ops-auth-form-area)::before {
  z-index: 12;
}

.ops-auth-form-main {
  position: relative;
  background-color: var(--auth-panel);
  background-image: var(--r369-xmas-plaid);
  background-size: 100% 6px;
  background-position: top;
  background-repeat: no-repeat;
}

/* A sprig of holly pinned to the card's ribbon. */
.ops-auth-form-main::after {
  content: "";
  position: absolute;
  inset-block-start: -.75rem;
  inset-inline-end: 1.25rem;
  inline-size: 2.5rem;
  block-size: 1.875rem;
  background: var(--r369-xmas-holly) center / contain no-repeat;
  pointer-events: none;
}

/* --- where decorations step aside ------------------------------------------ */

@media (forced-colors: active) {
  .ops-topbar::after,
  .ops-topbar::before,
  .ops-topbar-row::before,
  .ops-topbar-row::after,
  .ops-auth-form-area::after,
  .ops-auth-layout:has(.ops-auth-form-area)::before,
  .ops-auth-form-area::before,
  .ops-sidebar-header::before,
  .ops-user-button::before,
  .dark .app-shell-body::before,
  .dark .app-shell-body::after,
  .ops-auth-shell:has(.ops-auth-form-area)::before,
  .ops-auth-shell:has(.ops-auth-form-area)::after,
  .ops-auth-layout:has(.ops-auth-form-area)::after,
  .ops-sidebar-header::after,
  .ops-auth-form-main::after {
    display: none;
  }

  .ops-sidebar,
  .ops-sidebar-mobile,
  .ops-page-header,
  .ops-record-header,
  .ops-auth-form-main {
    background-image: none;
  }
}

@media print {
  .ops-topbar::after,
  .ops-topbar::before,
  .ops-topbar-row::before,
  .ops-topbar-row::after,
  .ops-auth-form-area::after,
  .ops-auth-layout:has(.ops-auth-form-area)::before,
  .ops-auth-form-area::before,
  .ops-sidebar-header::before,
  .ops-user-button::before,
  .dark .app-shell-body::before,
  .dark .app-shell-body::after,
  .ops-auth-shell:has(.ops-auth-form-area)::before,
  .ops-auth-shell:has(.ops-auth-form-area)::after,
  .ops-auth-layout:has(.ops-auth-form-area)::after,
  .ops-sidebar-header::after,
  .ops-auth-form-main::after {
    display: none;
  }

  .ops-page-header,
  .ops-record-header {
    background-image: none;
  }
}
