/* Gilded Night: the look of the logged-in dashboard (dashboard.html and studio.html), chosen 26 Nov 2026.
   Loaded after desk.css and people.css. Only colours, light, glass and motion live here: every size, layout and
   phone rule stays where it is, so removing this one file brings back the previous look exactly.

   - Dark ("Gilded Night"): slow gold, teal and wine light behind the page; the dashboard floats on it as glass.
   - Light ("Gilded Dawn"): the same, in warm daylight with white glass.
   Which one a login sees: Profile → Appearance. "Your dashboard's colours" (auto) is dark for the publisher,
   co-admins, Marketing and editors, light for authors, reviewers and readers (dash-rail.js, applyLook).
   Nothing moves with "reduce motion" on, or with the site's calm mode (html.calm). */

/* =====================================================================
   1. Colours: dark first, then light (Dawn), then each kind of login's light
   ===================================================================== */
.dash-body .dash-app {
  --l1: rgba(214,170,80,.55); --l2: rgba(30,120,108,.7); --l3: rgba(130,36,52,.55); /* the three lights */
  --canvas: #08070b;
  --glass: linear-gradient(158deg, rgba(255,255,255,.095), rgba(255,255,255,.025) 55%, rgba(255,255,255,.045)), linear-gradient(rgba(14,13,19,.58), rgba(14,13,19,.58));
  --glass-2: rgba(255,255,255,.045);          /* a surface inside a glass card */
  --glass-line: rgba(255,255,255,.1);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 60px -38px rgba(0,0,0,.9);
  --catch: rgba(240,211,140,.6); --catch-2: rgba(94,180,168,.38); /* light caught on a card's edge */
  --solid: #15141b;                           /* where something must not be see-through (menus, sheets) */
  --foil: linear-gradient(100deg, #f9e7b0 0%, #c9a24a 32%, #fff6d6 48%, #d7b25c 60%, #8a6a2a 100%);
  --gold-btn: linear-gradient(145deg, #fff0c2, #e1bb62 45%, #9b7428);
  --glow-gold: 0 10px 28px -8px rgba(240,190,90,.6);
  --live: #7fe0c8;
  --frame: transparent; --rail: #e9dfca; --tab-on: var(--gold-btn); --tab-on-ink: #1b1206;
  --panel: #100f14; --card: #17161c; --ink: #f5efe4; --muted: #b0a693; --edge: rgba(255,255,255,.08); --edge-strong: rgba(240,211,140,.26);
  --accent: #f0d38c; --kicker: #d9b660;
  isolation: isolate; background: transparent; box-shadow: none; color: var(--ink);
  scrollbar-color: rgba(240,211,140,.28) transparent;
}
.dash-body .dash-app:not(.dark-ui) {
  --l1: rgba(246,200,110,.5); --l2: rgba(120,190,178,.42); --l3: rgba(236,150,140,.38);
  --canvas: #f4efe6;
  --glass: linear-gradient(158deg, rgba(255,255,255,.92), rgba(255,255,255,.66) 60%, rgba(255,255,255,.8)), linear-gradient(rgba(255,252,246,.4), rgba(255,252,246,.4));
  --glass-2: rgba(255,255,255,.62);
  --glass-line: rgba(255,255,255,.95);
  --glass-shadow: inset 0 1px 0 #fff, 0 24px 50px -34px rgba(90,64,20,.5);
  --catch: rgba(201,162,74,.75); --catch-2: rgba(28,98,90,.28);
  --solid: #fffdf8;
  --foil: linear-gradient(100deg, #a77b22 0%, #7d5f22 30%, #c9a24a 48%, #7d5f22 62%, #5a4112 100%);
  --glow-gold: 0 10px 24px -10px rgba(190,140,50,.55);
  --live: #1f9a83;
  --rail: #3a2f24;
  --panel: #f8f4ec; --card: #fffdf8; --ink: #1d160e; --muted: #67594a; --edge: rgba(60,40,10,.1); --edge-strong: rgba(138,106,42,.32);
  --accent: #7a2433; --kicker: #87672a;
  scrollbar-color: rgba(138,106,42,.35) transparent;
}
/* Editors: black and amber.  Authors, reviewers and readers: gold and wine (dark), rose and honey (light). */
.dash-body .dash-app.is-editor.dark-ui { --l1: rgba(226,178,84,.5); --l2: rgba(150,104,36,.42); --l3: rgba(84,58,22,.6); }
.dash-body .dash-app.is-reading.dark-ui { --l2: rgba(122,36,51,.62); --l3: rgba(201,162,74,.34); }
.dash-body .dash-app.is-reading:not(.dark-ui) { --l2: rgba(226,150,160,.38); --l3: rgba(246,214,150,.5); }

/* =====================================================================
   2. The page, and the light behind it
   ===================================================================== */
.dash-body { background: #08070b; }
.dash-body:has(.dash-app:not([hidden]):not(.dark-ui)) { background: #f4efe6; }
.dash-body .dash-loading { color: #b0a693; }
.dash-body .dash-app::before, .dash-body .dash-app::after { content: ""; position: fixed; z-index: -1; pointer-events: none; }
.dash-body .dash-app::before {
  inset: -16vmax;
  background:
    radial-gradient(40vmax 30vmax at 16% 12%, var(--l1), transparent 70%),
    radial-gradient(44vmax 34vmax at 90% 20%, var(--l2), transparent 70%),
    radial-gradient(48vmax 32vmax at 56% 108%, var(--l3), transparent 72%),
    var(--canvas);
  will-change: transform;
  animation: gd-drift 52s ease-in-out infinite alternate;
}
/* Fine star dust, only at night */
.dash-body .dash-app::after {
  inset: 0; opacity: 0;
  background-image: radial-gradient(rgba(255,240,200,.6) .7px, transparent 1.1px), radial-gradient(rgba(255,240,200,.35) .6px, transparent 1px);
  background-size: 173px 151px, 97px 113px; background-position: 0 0, 41px 67px;
}
.dash-body .dash-app.dark-ui::after { opacity: .2; }
@keyframes gd-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-3vmax, 2vmax, 0) rotate(4deg); }
  100% { transform: translate3d(2vmax, -2vmax, 0) rotate(-3deg); }
}
.dash-body .dash-app ::selection { background: rgba(240,211,140,.35); color: inherit; }
.dash-body .dash-main { background: transparent; color: var(--ink); }

/* =====================================================================
   3. The rail: a floating glass dock with the open section lit (computers);
      the bottom tab bar on phones keeps its place and sizes, now frosted glass
   ===================================================================== */
.dash-body .dash-rail { color: var(--rail); }
.dash-body .dash-tab { position: relative; }
.dash-body .dash-tab i { border: 1px solid transparent; }
.dash-body .dash-tab:hover i { background: rgba(240,211,140,.1); border-color: rgba(240,211,140,.2); }
.dash-body .dash-tab[aria-current="page"] i, .dash-body .dash-more-btn.is-on i {
  background: var(--tab-on); color: var(--tab-on-ink); border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 0 4px rgba(240,211,140,.1), var(--glow-gold);
}
.dash-body .dash-mark img { transition: transform .4s var(--ease), filter .4s; }
.dash-body .dash-mark:hover img { filter: drop-shadow(0 0 10px rgba(240,211,140,.6)); }
.dash-body .dash-me { border-radius: 50%; box-shadow: 0 0 0 2px rgba(240,211,140,.55), 0 0 22px rgba(240,211,140,.3); }
.dash-body .dash-me:hover { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 26px rgba(240,211,140,.5); }
@media (min-width: 861px) {
  .dash-body .dash-rail {
    margin-left: 12px; border-radius: 30px; border: 1px solid var(--glass-line);
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), rgba(14,13,19,.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.75);
    -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  }
  .dash-body .dash-app:not(.dark-ui) .dash-rail { background: rgba(255,255,255,.58); box-shadow: inset 0 1px 0 #fff, 0 30px 60px -36px rgba(80,60,20,.45); }
  /* a small beam of light beside the open section */
  .dash-body .dash-rail .dash-tab[aria-current="page"]::before {
    content: ""; position: absolute; left: -2px; top: 10px; width: 3px; height: 28px; border-radius: 3px;
    background: #f6dc94; box-shadow: 0 0 12px 2px rgba(246,220,148,.7);
  }
  .dash-body .dash-app:not(.dark-ui) .dash-rail .dash-tab[aria-current="page"]::before { background: #c9a24a; box-shadow: 0 0 10px rgba(201,162,74,.6); }
}
@media (max-width: 860px) {
  .dash-body .dash-rail {
    background: rgba(14,13,19,.74); border-top: 1px solid rgba(240,211,140,.22);
    box-shadow: 0 -18px 40px -22px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05);
    -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  }
  .dash-body .dash-app:not(.dark-ui) .dash-rail { background: rgba(255,253,248,.8); border-top-color: rgba(138,106,42,.22); box-shadow: 0 -16px 36px -24px rgba(90,64,20,.45); }
  .dash-body .dash-rail .dash-tab[aria-current="page"] i, .dash-body .dash-rail .dash-more-btn.is-on i { box-shadow: var(--glow-gold); }
}

/* =====================================================================
   4. The top bar: greeting in gold foil, glass buttons, the bell's list, More's sheet
   ===================================================================== */
/* a small live light before the greeting's kicker (computers; phones keep the narrow top bar as it was) */
@media (min-width: 861px) {
  .dash-body .dash-kicker { display: inline-flex; align-items: center; gap: 10px; }
  .dash-body .dash-kicker:not(:empty)::before {
    content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--live);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent), 0 0 12px var(--live);
    animation: gd-pulse 2.8s ease-in-out infinite;
  }
}
@keyframes gd-pulse { 50% { box-shadow: 0 0 0 6px transparent, 0 0 4px var(--live); } }
.dash-body .dash-title { letter-spacing: -.01em; }
.dash-body .dash-title em, .dash-body .ed-title span {
  background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.dash-body .dash-title em { padding-right: .06em; } /* room for the italic's last stroke */
.dash-body .dash-title em { animation: gd-foil 10s linear infinite; }
@keyframes gd-foil { from { background-position: 0% 0; } to { background-position: 220% 0; } }

/* (classes only in these lists, so a button's own colours below still win) */
.dash-body :is(.dash-pill, .dash-icon-btn, .dash-chip, .dash-back, .chip, .od-search),
.dash-body .dash-as select, .dash-body .pp-search input {
  background-color: rgba(255,255,255,.045); border-color: var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.dash-body .dash-app:not(.dark-ui) :is(.dash-pill, .dash-icon-btn, .dash-chip, .dash-back, .chip, .od-search),
.dash-body .dash-app:not(.dark-ui) .dash-as select, .dash-body .dash-app:not(.dark-ui) .pp-search input {
  background-color: rgba(255,255,255,.66); border-color: rgba(138,106,42,.2); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -12px rgba(90,64,20,.4);
}
.dash-body :is(.dash-pill, .dash-icon-btn, .dash-chip, .dash-back, .chip):hover { background-color: rgba(240,211,140,.14); border-color: rgba(240,211,140,.4); }
.dash-body .dash-pill--gold, .dash-body .chip[aria-pressed="true"], .dash-body .dash-app.dark-ui .dash-pill--dark, .dash-body .is-editor:not(.force-light) .dash-pill--dark {
  background: var(--gold-btn); color: #1b1206; border-color: rgba(255,255,255,.3); box-shadow: var(--glow-gold);
}
.dash-body .dash-app:not(.dark-ui) .dash-pill--dark { background: #17141b; border-color: #17141b; color: #f7f0e0; box-shadow: 0 10px 22px -12px rgba(23,20,27,.7); }
.dash-body .dash-app:not(.dark-ui) .dash-pill--dark:hover { background: #2a2530; }
.dash-body .dash-pill--gold:hover, .dash-body .chip[aria-pressed="true"]:hover, .dash-body .dash-app.dark-ui .dash-pill--dark:hover { background: var(--gold-btn); filter: brightness(1.06); }
.dash-body .dash-pill--danger { background-color: transparent; }
.dash-body .dash-app.dark-ui .dash-pill--danger:hover { background-color: rgba(240,166,160,.1); }
/* round photo in the top bar */
.dash-body .chip-face, .dash-body .pf-face { box-shadow: 0 0 0 2px rgba(240,211,140,.45), 0 0 16px -2px rgba(240,211,140,.35); }

/* The bell's list: frosted and always solid enough to read */
.dash-body .bell-panel {
  background: rgba(21,20,27,.9); border-color: rgba(240,211,140,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -20px rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
.dash-body .dash-app:not(.dark-ui) .bell-panel { background: rgba(255,253,248,.94); border-color: rgba(138,106,42,.2); box-shadow: 0 30px 60px -24px rgba(90,64,20,.5); }
.dash-body .bell-panel i, .dash-body .dash-sheet-row i { background: rgba(240,211,140,.12); box-shadow: inset 0 0 0 1px rgba(240,211,140,.18); }
.dash-body .bell-panel .is-new i { box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px rgba(240,211,140,.35); }
.dash-body .dash-sheet { background: var(--solid); box-shadow: inset 0 1px 0 rgba(240,211,140,.3), 0 -24px 60px -24px rgba(0,0,0,.7); }
.dash-body .dash-sheet::backdrop { background: rgba(6,5,8,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dash-body .dash-sheet-row[aria-current="page"] { background: rgba(240,211,140,.16); box-shadow: inset 3px 0 0 var(--gold); }

.dash-body .dash-preview { border-color: rgba(240,211,140,.45); }
.dash-body .dash-app.dark-ui .dash-preview { background: rgba(240,211,140,.07); color: var(--ink); }
.dash-body .dash-app.dark-ui .dash-status { color: #f0a6a0; }

/* =====================================================================
   5. Cards: glass, with a thread of gold light caught on one corner
   ===================================================================== */
.dash-body :is(.dc, .st-sum, .st-book, .rd-side, .rd-order, .rv-book, .team-card, .pf-card, .bk-buy, .pp-card, .pp-tabs, .ed-card, .ed-task:not(:first-child)) {
  background: var(--glass); border-color: var(--glass-line); color: var(--ink); box-shadow: var(--glass-shadow);
}
/* cards drawn without a border: the same hairline, drawn inside so nothing moves */
.dash-body :is(.pub-hero, .pub-gauge, .st-sum--hero, .ed-task:not(:first-child)) { box-shadow: inset 0 0 0 1px var(--glass-line), var(--glass-shadow); }
@media (min-width: 861px) {
  .dash-body :is(.pp-threads, .pp-chat) { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--glass-shadow); }
}
@media (max-width: 860px) {
  .dash-body :is(.pp-threads, .pp-chat) { background: var(--solid); border-color: var(--glass-line); }
}
.dash-body .dc::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--catch), transparent 26%, transparent 74%, var(--catch-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .9; transition: opacity .4s;
}
.dash-body :is(.dc, .st-book, .team-card, .rv-book, .rd-order, .pp-card) { transition: box-shadow .4s var(--ease), border-color .4s; }
@media (hover: hover) {
  .dash-body :is(.dc, .st-book, .team-card, .rv-book, .rd-order, .pp-card):hover {
    border-color: rgba(240,211,140,.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(240,211,140,.1), 0 34px 70px -36px rgba(201,162,74,.45);
  }
}
/* card titles in small gold capitals on computers (phones keep their titles' sizes) */
@media (min-width: 861px) {
  .dash-body .dc-h { font: 600 12px/1.35 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); }
  .dash-body .dc-h :is(small, a) { letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
}
.dash-body .dc-big { background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.dash-body .dc-big :is(sup, small, span, em) { -webkit-text-fill-color: currentColor; color: var(--ink); }
.dash-body .dc-empty { background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(201,162,74,.05) 12px 24px); }
.dash-body .dash-list > li { border-color: var(--edge); }
.dash-body .dash-list img, .dash-body .rd-book img, .dash-body .rv-cover img, .dash-body .st-cover img { box-shadow: 0 14px 26px -12px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06); }
.dash-body .dash-app:not(.dark-ui) :is(.dash-list img, .rd-book img, .rv-cover img, .st-cover img) { box-shadow: 0 14px 24px -14px rgba(60,40,10,.55); }
.dash-body .score { background: rgba(240,211,140,.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(240,211,140,.22); }
.dash-body .dash-app:not(.dark-ui) .score { background: rgba(201,162,74,.14); color: #6e4f16; }
.dash-body .avatar { box-shadow: 0 0 0 2px rgba(240,211,140,.3); background: hsl(var(--hue, 30) 34% 33%); } /* a touch deeper, so the initials read easily */
.dash-body .pp-face { background-color: hsl(var(--hue, 30) 34% 33%); }
.dash-body .faces .avatar { box-shadow: 0 0 0 3px var(--card); }
.dash-body :is(.mini-stats div, .od-sums, .pf-stats) { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 rgba(255,255,255,.05); }
.dash-body .mini-stats b, .dash-body .od-sums b { color: var(--ink); }

/* Tags: glass with a glowing dot at night; soft colour chips by day (and always on the editor's paper side panel) */
.dash-body :not(.pc-id-chips) > .tag::before { box-shadow: 0 0 8px currentColor; }
.dash-body .dash-app.dark-ui .tag:not(.ed-side .tag) { background: rgba(255,255,255,.065); color: #e9e0cf; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.dash-body .dash-app.dark-ui :is(.tag--paid, .tag--published, .tag--active, .tag--answered):not(.ed-side .tag) { color: #9fe3b0; background: rgba(120,210,140,.1); }
.dash-body .dash-app.dark-ui :is(.tag--request, .tag--draft, .tag--admin):not(.ed-side .tag) { color: #f3d48a; background: rgba(240,211,140,.1); }
.dash-body .dash-app.dark-ui :is(.tag--proof, .tag--reviewer, .tag--awaiting_payment):not(.ed-side .tag) { color: #d6bdf2; background: rgba(200,170,240,.1); }
.dash-body .dash-app.dark-ui :is(.tag--sent, .tag--editor, .tag--sold):not(.ed-side .tag) { color: #9ad9e8; background: rgba(130,200,220,.1); }
.dash-body .dash-app.dark-ui .tag--author:not(.ed-side .tag) { color: #f2aebb; background: rgba(240,160,175,.1); }
.dash-body .dash-app.dark-ui .tag--cancelled:not(.ed-side .tag) { color: #f0a6a0; background: rgba(240,166,160,.1); }
.dash-body .dash-app.dark-ui .tag--invited:not(.ed-side .tag) { color: #cfc4b0; }
/* the control panel's ID card keeps its own chips (people.css) */
.dash-body .dash-app.dark-ui .pc-id-chips .tag { color: #fbf3dc; background: rgba(10,26,25,.34); box-shadow: none; }
.dash-body .dash-app.dark-ui .dc-sample { color: #f3d48a; background: rgba(240,211,140,.14); }
.dash-body .dash-app.dark-ui .chip b { background: rgba(255,255,255,.1); }

/* =====================================================================
   6. The publisher's overview (also Marketing's): bento tiles on the light
   ===================================================================== */
.dash-body .pub-hero {
  color: var(--ink);
  background: radial-gradient(90% 120% at 100% 100%, rgba(28,108,98,.8), transparent 62%), radial-gradient(70% 90% at 0% 0%, rgba(201,162,74,.26), transparent 60%), var(--glass);
}
.dash-body .dash-app:not(.dark-ui) .pub-hero { background: radial-gradient(90% 120% at 100% 100%, rgba(120,190,178,.55), transparent 62%), radial-gradient(70% 90% at 0% 0%, rgba(246,200,110,.42), transparent 60%), var(--glass); }
.dash-body .pub-hero .dc-label { color: var(--muted); }
.dash-body .pub-hero .dc-big { animation: gd-foil 14s linear infinite; }
.dash-body .pub-mini i { background: var(--glass-2); border: 1px solid var(--glass-line); color: var(--accent); }
.dash-body .pub-mini b { color: var(--ink); }
.dash-body .pub-mini span { color: var(--muted); opacity: 1; }
.dash-body .pub-hero-art img { filter: drop-shadow(0 0 38px rgba(240,200,110,.32)) drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.dash-body .pub-hero-cta { background: var(--gold-btn); color: #1b1206; border-radius: 22px 0 22px 0; box-shadow: var(--glow-gold); }
.dash-body .pub-hero-cta:hover { background: var(--gold-btn); filter: brightness(1.06); }
.dash-body .pub-gauge { background: radial-gradient(90% 90% at 100% 0%, rgba(130,36,52,.5), transparent 65%), var(--glass); }
.dash-body .dash-app:not(.dark-ui) .pub-gauge { background: radial-gradient(90% 90% at 100% 0%, rgba(236,150,140,.42), transparent 65%), var(--glass); }
.dash-body .dash-app .pub-gauge :is(.dc-text, .dc-h) { color: var(--muted); }
.dash-body .dash-app .pub-gauge .dc-h { color: var(--kicker); }
.dash-body .dash-app .pub-gauge .dc-text strong { color: var(--ink); }
.dash-body .pub-gauge .dc-big sup { background: rgba(240,211,140,.16); color: var(--accent); }
.dash-body .pub-note { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--ink); }
.dash-body .pub-note .go, .dash-body .pub-money i { background: var(--gold-btn); color: #1b1206; box-shadow: var(--glow-gold); }
.dash-body .bar span { width: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.dash-body .dash-app:not(.dark-ui) .bar span { background: rgba(90,64,20,.08); }
.dash-body .bar span i { background: linear-gradient(180deg, #fff0c2, #d7b25c 30%, #24877b); box-shadow: 0 0 18px rgba(240,200,110,.5); }
.dash-body .bars.is-empty span { background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(240,211,140,.14) 5px 7px); }

/* =====================================================================
   7. The orders desk: a night island in both looks
   ===================================================================== */
.dash-body .od-desk {
  background: radial-gradient(70% 60% at 100% 0%, rgba(28,108,98,.22), transparent 70%), linear-gradient(160deg, rgba(26,24,32,.94), rgba(12,11,16,.96));
  box-shadow: inset 0 0 0 1px rgba(240,211,140,.16), inset 0 1px 0 rgba(255,255,255,.06), 0 34px 70px -40px rgba(0,0,0,.9); color: #f1e8d4;
}
.dash-body .od-row { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: background .25s, box-shadow .25s; }
.dash-body .od-row:hover { background: rgba(255,255,255,.075); }
.dash-body .od-row[aria-current="true"] { background: linear-gradient(120deg, rgba(28,108,98,.6), rgba(28,108,98,.22)); box-shadow: inset 0 0 0 1px rgba(240,211,140,.55), 0 0 26px -10px rgba(94,180,168,.6); }
.dash-body .od-detail { background: radial-gradient(90% 70% at 100% 0%, rgba(201,162,74,.16), transparent 65%), linear-gradient(160deg, #1d4744, #102927); box-shadow: inset 0 0 0 1px rgba(240,211,140,.18); }
.dash-body .od-item, .dash-body .od-totals { background: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.dash-body .od-btn.is-main { background: var(--gold-btn); box-shadow: var(--glow-gold); }
.dash-body .od-meter { background: rgba(255,255,255,.07); }
.dash-body .dash-app:not(.dark-ui) .od-meter { background: rgba(90,64,20,.1); }
.dash-body .od-meter i { background: repeating-linear-gradient(135deg, #c9a24a 0 6px, #f0d38c 6px 12px); box-shadow: 0 0 14px rgba(240,211,140,.45); }
.dash-body .od-shop { background: linear-gradient(160deg, rgba(26,24,32,.94), rgba(12,11,16,.96)); box-shadow: inset 0 0 0 1px rgba(240,211,140,.16), 0 30px 60px -40px rgba(0,0,0,.85); }
.dash-body .od-shop .opt-row { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #f1e8d4; }
.dash-body .od-shop .opt-icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

/* People (the publisher's list) and the invite card */
.dash-body .dash-app.dark-ui .copy-row input { background: rgba(255,255,255,.06); border-color: var(--glass-line); color: var(--ink); }
.dash-body .invite-result { background: rgba(240,211,140,.1); box-shadow: inset 0 0 0 1px rgba(240,211,140,.2); }

/* =====================================================================
   8. The editor's desk
   ===================================================================== */
.dash-body .ed-strip { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line), var(--glass-shadow); }
.dash-body .ed-strip > span { border-color: var(--edge-strong); }
.dash-body .ed-day { color: var(--muted); }
.dash-body .ed-day b { color: var(--ink); }
.dash-body .ed-day.has { background: var(--gold-btn); color: #2a1a06; box-shadow: var(--glow-gold); }
.dash-body .ed-day.has b { color: #1b1206; }
.dash-body .ed-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 14px -4px rgba(240,211,140,.5); }
.dash-body .ed-stat sup { background: var(--gold-btn); }
.dash-body .ed-card[aria-pressed="true"] { background: var(--gold-btn); color: #1b1206; border-color: transparent; box-shadow: var(--glow-gold); }
.dash-body .ed-card .go { border-color: var(--edge-strong); }
.dash-body .ed-task:first-child { background: var(--gold-btn); box-shadow: var(--glow-gold); }
.dash-body .ed-task:not(:first-child) small { color: var(--muted); }
/* A submission, open on the right: frosted paper, like a page lifted off the desk */
.dash-body .ed-side {
  background: linear-gradient(170deg, rgba(255,253,247,.97), rgba(247,240,226,.95)); border-color: rgba(255,255,255,.7);
  box-shadow: 0 0 0 1px rgba(240,211,140,.35), 0 40px 80px -40px rgba(0,0,0,.85), 0 0 60px -30px rgba(240,211,140,.5);
}

/* =====================================================================
   9. Authors, reviewers and readers
   ===================================================================== */
.dash-body .rd-btn { background: #17141b; color: #f7f2e6; box-shadow: 0 12px 24px -14px rgba(23,20,27,.8); }
.dash-body .rd-btn:hover { background: #2a2530; }
.dash-body .dash-app.dark-ui .rd-btn { background: var(--gold-btn); color: #1b1206; box-shadow: var(--glow-gold); }
.dash-body .dash-app.dark-ui .rd-btn:hover { background: var(--gold-btn); filter: brightness(1.06); }
.dash-body .rd-fan img { box-shadow: 0 30px 40px -22px rgba(0,0,0,.6), 0 0 40px -12px rgba(240,200,110,.35); }
.dash-body .rd-week .is-today { background: rgba(201,162,74,.18); box-shadow: inset 0 0 0 1px rgba(201,162,74,.35); }
.dash-body .months div { background: var(--glass-2); border-color: var(--glass-line); }
.dash-body .dash-app.dark-ui .months .has b { color: #6fd6dc; }
.dash-body .dash-app:not(.dark-ui) .months .has b { color: #0d6b76; }
.dash-body .months .is-now { border-color: #2bc0cc; box-shadow: 0 0 0 3px rgba(43,192,204,.15), 0 0 18px -4px rgba(43,192,204,.5); }
.dash-body .heart { background: var(--glass-2); border-color: var(--glass-line); }
.dash-body .bk-item .heart { background: var(--solid); }
.dash-body .au-steps .is-done i { box-shadow: 0 0 10px rgba(240,211,140,.6); }
.dash-body .dash-app.dark-ui .au-steps .is-now i { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240,211,140,.15); }
.dash-body .dash-app.dark-ui .rd-week :is(.is-sun, .is-sun b) { color: #f0a6a0; }
.dash-body .write-review { background: linear-gradient(180deg, #1c97a1, #0e6770); box-shadow: 0 14px 26px -14px rgba(21,150,163,.8), 0 0 22px -8px rgba(43,192,204,.5); }
.dash-body .ms-text { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-line); }
/* The reviewer's manuscript: its files as glass rows at night (the editor's paper side panel keeps its own), clearer empty stars */
.dash-body .dash-app.dark-ui .ed-files a { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line); }
.dash-body .dash-app.dark-ui .ed-files a:hover { background: rgba(240,211,140,.12); }
.dash-body .dash-app .ed-side .ed-files a { background: #ece3d0; color: #1b140e; box-shadow: none; }
.dash-body .dash-app .ed-side .stars { color: #b47708; }
.dash-body .dash-app .ed-side .stars span { color: rgba(128,108,80,.45); }
.dash-body .ed-side .wf h4 { color: #765820; }
.dash-body .dash-app .ed-side .ed-files a:hover { background: #e3d6bb; }
.dash-body .dash-app .rv-stars label { color: rgba(128,108,80,.5); }
.dash-body .dash-app.dark-ui .rv-stars label { color: rgba(255,255,255,.34); }
.dash-body .dash-app .rv-stars input:checked ~ label, .dash-body .dash-app .rv-stars label:hover, .dash-body .dash-app .rv-stars label:hover ~ label { color: #b47708; }
.dash-body .dash-app.dark-ui .rv-stars input:checked ~ label, .dash-body .dash-app.dark-ui .rv-stars label:hover, .dash-body .dash-app.dark-ui .rv-stars label:hover ~ label { color: #e9a92a; text-shadow: 0 0 12px rgba(233,169,42,.6); }
.dash-body .welcome { border-color: rgba(240,211,140,.22); box-shadow: 0 30px 60px -40px rgba(0,0,0,.8), 0 0 50px -30px rgba(240,211,140,.4); }

/* =====================================================================
   10. The studio
   ===================================================================== */
.dash-body .st-sum--hero {
  color: var(--ink);
  background: radial-gradient(100% 120% at 100% 100%, rgba(28,108,98,.75), transparent 65%), radial-gradient(80% 90% at 0% 0%, rgba(201,162,74,.24), transparent 60%), var(--glass);
}
.dash-body .dash-app:not(.dark-ui) .st-sum--hero { background: radial-gradient(100% 120% at 100% 100%, rgba(120,190,178,.55), transparent 65%), radial-gradient(80% 90% at 0% 0%, rgba(246,200,110,.42), transparent 60%), var(--glass); }
.dash-body .is-editor .st-sum--hero { background: radial-gradient(100% 120% at 100% 100%, rgba(201,162,74,.5), transparent 65%), var(--glass); }
.dash-body .is-reading .st-sum--hero { background: radial-gradient(100% 120% at 100% 100%, rgba(130,36,52,.6), transparent 65%), var(--glass); }
.dash-body .dash-app .st-sum--hero :is(small, em) { color: var(--muted); }
.dash-body .is-editor:not(.force-light) .st-sum--hero { color: var(--ink); }
.dash-body .is-editor:not(.force-light) .st-sum--hero :is(small, em) { color: var(--muted); }
.dash-body .st-sum b { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.dash-body .st-share .seg-opt input:checked + span { background: var(--gold-btn); border-color: transparent; box-shadow: var(--glow-gold); }
.dash-body .st-share .seg-opt span { background-color: var(--glass-2); }
.dash-body .st-share .studio-copy input { background: var(--glass-2); border-color: var(--glass-line); }
.dash-body .up { border-color: rgba(240,211,140,.22); box-shadow: 0 34px 60px -36px #000, 0 0 60px -34px rgba(240,211,140,.45), inset 0 1px 0 rgba(255,255,255,.07); }
.dash-body .up-btn--main { background: var(--gold-btn); }

/* =====================================================================
   11. Profile and the rows with a switch or a choice
   ===================================================================== */
.dash-body .opt-row { background: var(--glass-2); border-color: var(--glass-line); transition: border-color .25s, box-shadow .25s; }
.dash-body .opt-row:has(input:checked) { border-color: rgba(240,211,140,.6); box-shadow: 0 0 0 1px rgba(240,211,140,.25), 0 0 22px -10px rgba(240,211,140,.6); }
.dash-body .opt-icon { background: var(--glass-2); border-color: var(--glass-line); }
.dash-body .sw { background: rgba(128,118,100,.35); }
.dash-body .sw:checked { background: var(--gold-btn); box-shadow: 0 0 14px -2px rgba(240,190,90,.6); }
.dash-body .pf-stats i { background: rgba(128,118,100,.25); }
.dash-body .pf-stats i::after { box-shadow: 0 0 10px var(--c); }

/* =====================================================================
   12. Inbox, messages, profiles and the control panel (people.css)
   ===================================================================== */
.dash-body .pp-tab[aria-current="page"] { background: var(--gold-btn); color: #1b1206; box-shadow: var(--glow-gold); }
.dash-body .pp-thread[aria-current="true"] { background: rgba(240,211,140,.16); box-shadow: inset 3px 0 0 var(--gold); }
.dash-body .dash-app.dark-ui .pp-text { background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.dash-body .dash-app.dark-ui .is-mine .pp-text { background: var(--gold-btn); color: #1b1206; box-shadow: 0 10px 22px -14px rgba(240,190,90,.7); }
.dash-body .dash-app.dark-ui .is-mine .pp-text a { color: #3a2208; }
.dash-body .dash-app.dark-ui .is-removed .pp-text { background: transparent; color: var(--muted); box-shadow: none; }
.dash-body .pp-dot { background: #46c777; box-shadow: 0 0 0 2px var(--card), 0 0 10px rgba(70,199,119,.8); }
.dash-body .dash-app.dark-ui .pp-due { background: rgba(200,170,240,.12); color: #d6bdf2; }
.dash-body .pc-stat:hover { background: rgba(240,211,140,.1); }
.dash-body .pc-cta { box-shadow: 0 14px 30px -16px rgba(28,108,98,.8), 0 0 0 1px rgba(240,211,140,.25); }

/* "New from RH GoldenWolf" notices (send.css): glass cards with the gold edge; at night in night colours */
.dash-body .gws-card { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), var(--glass-shadow); }
.dash-body .dash-app.dark-ui .gws-notes { --gws-ink: #f5efe4; --gws-muted: #b0a693; --gws-wine: #f2aebb; --gws-line: rgba(255,255,255,.16); }
.dash-body .dash-app.dark-ui .gws-card-ic { background: rgba(240,166,180,.12); }
.dash-body .dash-app.dark-ui .gws-notes .gws-btn { border-color: rgba(240,211,140,.35); }
.dash-body .dash-app.dark-ui .gws-notes .gws-btn--main { background: var(--gold-btn); border-color: transparent; color: #1b1206; box-shadow: var(--glow-gold); }
.dash-body .dash-app.dark-ui .gws-notes .gws-btn--main:hover { background: var(--gold-btn); filter: brightness(1.06); }

/* The reader's welcome is a night card in both looks: its buttons stay night glass */
.dash-body .dash-app .welcome .dash-pill { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #f3ede2; box-shadow: none; }

/* =====================================================================
   13. Arrival: the tiles rise in one after another (once, when a view opens)
   ===================================================================== */
.dash-body :is(.dash-grid, .st-sums) > * { animation: gd-rise .7s var(--ease) backwards; }
.dash-body :is(.dash-grid, .st-sums) > :nth-child(2) { animation-delay: .07s; }
.dash-body :is(.dash-grid, .st-sums) > :nth-child(3) { animation-delay: .14s; }
.dash-body :is(.dash-grid, .st-sums) > :nth-child(4) { animation-delay: .2s; }
.dash-body .dash-grid + .dash-grid > * { animation-delay: .18s; }
.dash-body .dash-grid + .dash-grid > :nth-child(2) { animation-delay: .24s; }
.dash-body .dash-grid + .dash-grid > :nth-child(3) { animation-delay: .3s; }
@keyframes gd-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } }

@media (prefers-reduced-motion: reduce) {
  .dash-body .dash-app::before,
  .dash-body :is(.dash-kicker, .dash-title em, .pub-hero .dc-big),
  .dash-body .dash-kicker::before,
  .dash-body :is(.dash-grid, .st-sums) > * { animation: none !important; }
  .dash-body :is(.dc, .st-book, .team-card, .rv-book, .rd-order, .pp-card, .od-row, .opt-row, .dash-mark img), .dash-body .dc::after { transition: none; }
}
html.calm .dash-body .dash-app::before,
html.calm .dash-body :is(.dash-title em, .pub-hero .dc-big, .dash-kicker::before),
html.calm .dash-body :is(.dash-grid, .st-sums) > * { animation: none !important; }

/* =====================================================================
   The messenger like WhatsApp (chat.js, people.css): gold send button, ticks and menus in Gilded Night
   ===================================================================== */
.dash-body .dash-app.dark-ui .pp-send { background: var(--gold-btn); color: #1b1206; box-shadow: var(--glow-gold); }
.dash-body .dash-app.dark-ui .is-mine .pp-ticks[data-s="read"] { color: #0a5b86; }
.dash-body .dash-app.dark-ui .pp-snip .pp-ticks[data-s="read"] { color: #6cc8f2; }
.dash-body .dash-app.dark-ui .pp-ctx, .dash-body .dash-app.dark-ui .pp-unread { background: rgba(240,211,140,.1); }
.dash-body .dash-app .pp-msg.is-jumbo > .pp-text { background: transparent; box-shadow: none; }
.dash-body .dash-app .pp-msg.is-jumbo .pp-stamp { color: var(--muted); }
.dash-body .dash-app.dark-ui .pp-day { background: rgba(21,20,27,.92); color: #d9c9a6; }
.dash-body .dash-app.dark-ui .pp-react { border-color: #17161c; background: #211f28; }
.dash-body .dash-app.dark-ui .pp-react.is-mine { background: rgba(240,211,140,.22); }
.dash-body .dash-app.dark-ui :is(.pp-more, .pp-thread-more) { background: #1d1b23; border-color: rgba(240,211,140,.16); }
.dash-body .dash-app.dark-ui :is(.pp-menu-item.is-danger, .dash-sheet-row.is-danger) { color: #f0a6a0; }
.dash-body .dash-app.dark-ui .pp-toast { border-left-color: #f0a6a0; }
.dash-body .dash-app.dark-ui .pp-toast.is-ok { border-left-color: #7fe0c8; }
.dash-body .dash-app.dark-ui .pp-jump { box-shadow: 0 10px 26px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(240,211,140,.12); }
.dash-body .dash-app.dark-ui .pp-tray-item, .dash-body .dash-app.dark-ui .pp-emoji { background: rgba(255,255,255,.04); border-color: rgba(240,211,140,.14); }
.dash-body .dash-app.dark-ui .pp-rec-wave { color: var(--gold, #e9c873); }
.dash-body .dash-app.dark-ui .pp-failed { color: #f0a6a0; }
