/* The Owner's palette, used in full (2026-11-22: "its a whole pallette dont be afraid to use the whole pallette make
   this really pop"). Grabient kWSQUwS7W9ScHLQupdC2jREA with slate navy C:
     navy #1F2B45 (page) · shoe wax #2D2A27 (frame, bars) · sepia #98590A (wood, borders) · magenta haze #9D4C74 (buttons,
     active) · opulent mauve #47213E (tints, Sam) · brown #90420D (lines, accents) · bronze #DF8A31 (light, highlights).
   Hot pink #E6007E is now only the wax seal. Loaded last; dark (navy) theme only, so Paper (light) is untouched. */
:root[data-theme="dark"] {
  --pal-stripe: linear-gradient(90deg, #2D2A27, #98590A, #9D4C74, #1F2B45, #47213E, #90420D, #DF8A31);
}

/* the frame: shoe wax bars with a stripe of the whole palette */
[data-theme="dark"] .appbar { background: linear-gradient(180deg, #2D2A27 0%, #24263A 100%); border-bottom: 0; box-shadow: inset 0 -2px 0 0 transparent; position: relative; }
[data-theme="dark"] .appbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pal-stripe); }
[data-theme="dark"] .ab-title { color: #F1E3C2; text-shadow: 0 0 18px rgba(223, 138, 49, .25); }
[data-theme="dark"] .iconbar { background: #2D2A27; border-top: 0; position: relative; }
[data-theme="dark"] .iconbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--pal-stripe); }
[data-theme="dark"] .ib { color: #CDB38A; }
[data-theme="dark"] .ib.on { color: #DF8A31; filter: drop-shadow(0 0 8px rgba(223, 138, 49, .55)); }
[data-theme="dark"] .ib.on::after { background: #DF8A31; }

/* headings and labels: bronze and sepia */
[data-theme="dark"] .rule-head { color: #DF8A31; border-bottom: 0; background: linear-gradient(90deg, #98590A, #90420D 55%, transparent) bottom / 100% 1px no-repeat; }
[data-theme="dark"] .kicker { color: #DF8A31; }
[data-theme="dark"] .head-form { color: #CDB38A; }
[data-theme="dark"] h1, [data-theme="dark"] .h1 { color: #F1E3C2; }

/* buttons: magenta haze into mauve; ghosts in sepia */
[data-theme="dark"] .btn { background: linear-gradient(135deg, #B05A85 0%, #9D4C74 45%, #47213E 100%); border-color: #9D4C74; color: #FFF6E6; box-shadow: 0 4px 14px rgba(157, 76, 116, .35); }
[data-theme="dark"] .btn.ghost { background: transparent; border-color: #98590A; color: #F1E3C2; box-shadow: none; }
[data-theme="dark"] .chip, [data-theme="dark"] .pill { border-color: #98590A; }
[data-theme="dark"] .chip.on, [data-theme="dark"] .pill.on { background: #9D4C74; border-color: #9D4C74; color: #FFF6E6; }

/* Sam: opulent mauve with a bronze edge */
[data-theme="dark"] .sam { background: linear-gradient(100deg, #47213E 0%, #3A2238 60%, rgba(71, 33, 62, .75) 100%); border-left-color: #DF8A31; }
[data-theme="dark"] .sam-brain, [data-theme="dark"] .sam .tab-ico { color: #DF8A31; }

/* cards and boxes: sepia and brown edges */
[data-theme="dark"] .projbox { border-color: #98590A; background: linear-gradient(160deg, rgba(152, 89, 10, .12), transparent 60%); }
[data-theme="dark"] .wscard { border-color: #6B4A2E; }
[data-theme="dark"] .sheet-body { border-top: 2px solid #DF8A31; background: linear-gradient(180deg, #24263A, #1F2B45 30%); }
[data-theme="dark"] .toast { background: #2D2A27; color: #F1E3C2; border: 1px solid #98590A; }

/* the Board's Local / Society switch */
[data-theme="dark"] .on-cork .seg-knob, [data-theme="dark"] .seg-knob { background: linear-gradient(135deg, #B05A85, #9D4C74 50%, #47213E); }

/* hot pink lives on in exactly one place: the wax seal */
.sc-seal { --color-pink: #E6007E; }

/* The seal is a real photographed wax seal now (Owner, 2026-11-23: the throbbing pink seal "really gotta go and fast").
   assets/seal.png: W8 (Marek Studzinski, Unsplash), gold wax with a crown, cord painted out. No pulsing anywhere.
   The two halves keep their crack-apart animation; each half shows its side of the photo. */
.sc-seal { background: none !important; box-shadow: none !important; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)) !important; }
.sc-seal::before, .sc-seal::after { display: none !important; }
.sc-seal > img { display: none; }
.sc-seal .sh { background: url(../assets/seal.png) center / 100% 100% no-repeat !important; box-shadow: none !important; border-radius: 0 !important; }
.sc-seal .sh .pressed, .sc-seal .sh img { display: none !important; }
.sc-seal:not(:has(.sh)) { background: url(../assets/seal.png) center / 100% 100% no-repeat !important; }
.sc-seal.beckon, .walk .sc-seal.beckon, .sc-seal.beckon:hover { animation: none !important; }
.sc-seal:active { transform: scale(.96); }
/* Department seals (the big "Sealed." seal and the envelope seal) use the same photographed seal. */
.dept-seal-big, .env-seal { background: url(../assets/seal.png) center / 100% 100% no-repeat !important; box-shadow: none !important; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); animation: none !important; border-radius: 0 !important; }
.dept-seal-big::before, .dept-seal-big::after, .env-seal::before, .env-seal::after { display: none !important; }
