/* Hearth theme v2: GENERATED by themes/theme_v2_build.py (17 Nov 2026). Do not edit by hand: edit themes/v2/*.css or
   the build, and run it again. The two free looks, Dark (black leather and gold) and Light (parchment), as values on
   <html data-look>. Layout is never set here. Fixed colours (--lock-*, --dmg-*, black, white: pills, HP, damage types,
   token rings, map art, Classic paper) are not touched, so they are the same in both looks. */

/* ---------- Dark v2: black leather and gold ---------- */
html:root[data-palette][data-palette][data-palette][data-look="dark"] {
  --page: #111010;  /* the page: neutral black under the leather */
  --ink: #f4e8cc;   /* text: cream */
  --look-floor: #111010;
  color-scheme: dark;
}

/* ---------- Light v2: parchment ---------- */
html:root[data-palette][data-palette][data-palette][data-look="light"] {
  --page: #eedfbf;     /* the page: aged parchment */
  --ink: #2a1a0c;      /* text: very dark brown */
  --gold: #6e4a14;     /* the accent: bronze (gold does not read on parchment) */
  --oxblood: #7a1f12; --moss: #3f5a22; --temp-hp: #1f5a66; --select: #1f5488; --indigo: #3d478c;
  --auto-ink: #2a1a0c; --hx-parch: none; --page-texture: none;
  --look-floor: #eedfbf;
  color-scheme: light;
  /* every colour token, on parchment (worked out from its Dark value: themes/v2/colour.py) */
  --c-gold-33: #bfaa99;
  --c-gold-34: #b79f81;
  --c-gold-35: #c49981;
  --c-gold-36: #b39471;
  --c-gold-36-b: #b28a61;
  --c-gold-36-c: #b59d84;
  --c-gold-37: #b39474;
  --c-gold-38: #ad885e;
  --c-gold-38-b: #a0906b;
  --c-gold-39: #ad8c68;
  --c-gold-39-b: #aaa197;
  --c-gold-40: #af8969;
  --c-gold-41: #a87f56;
  --c-gold-42: #a97f59;
  --c-gold-43: #a46c3c;
  --c-gold-44: #a47e5a;
  --c-gold-44-b: #9c8a72;
  --c-gold-45: #a37952;
  --c-gold-45-b: #a07d59;
  --c-gold-45-c: #9e7345;
  --c-gold-45-d: #9e7346;
  --c-gold-47: #9c754c;
  --c-gold-47-b: #997348;
  --c-gold-47-c: #9c8065;
  --c-gold-48: #9a7249;
  --c-gold-48-b: #966836;
  --c-gold-48-c: #8e652c;
  --c-gold-48-d: #9a7b5c;
  --c-gold-49: #895d1d;
  --c-gold-49-b: #5d5046;
  --c-gold-50: #784704;
  --c-gold-50-b: #7f4701;
  --c-gold-50-c: #974813;
  --c-gold-51: #5e4f45;
  --c-gold-51-b: #654d37;
  --c-gold-51-c: #5a5049;
  --c-gold-51-d: #92693d;
  --c-gold-52: #8d6434;
  --c-gold-52-b: #906538;
  --c-gold-52-c: #7c580d;
  --c-gold-52-d: #87632d;
  --c-gold-53: #8b6436;
  --c-gold-53-b: #8d663c;
  --c-gold-53-c: #654603;
  --c-gold-53-d: #8d7661;
  --c-gold-54: #8f5722;
  --c-gold-54-b: #8a5f2e;
  --c-gold-54-c: #846130;
  --c-gold-55: #8a5f30;
  --c-gold-55-b: #836132;
  --c-gold-56: #875d2f;
  --c-gold-56-b: #7f5920;
  --c-gold-56-c: #5b4e45;
  --c-gold-56-d: #825b28;
  --c-gold-57: #805c2d;
  --c-gold-57-b: #82613a;
  --c-gold-57-c: #7f6036;
  --c-gold-57-d: #835e35;
  --c-gold-58: #75500c;
  --c-gold-58-b: #7f5826;
  --c-gold-58-c: #774f05;
  --c-gold-59: #7e6243;
  --c-gold-59-b: #6b4d00;
  --c-gold-59-c: #58473a;
  --c-gold-59-d: #7a5116;
  --c-gold-60: #7a5e3b;
  --c-gold-60-b: #7f6041;
  --c-gold-60-c: #7b4e14;
  --c-gold-60-d: #7b6750;
  --c-gold-60-e: #795729;
  --c-gold-60-f: #7f5528;
  --c-gold-61: #534539;
  --c-gold-61-b: #765524;
  --c-gold-62: #75511d;
  --c-gold-62-b: #776146;
  --c-gold-62-c: #7a5f41;
  --c-gold-62-d: #785221;
  --c-gold-62-e: #795f43;
  --c-gold-62-f: #544030;
  --c-gold-63: #784e1f;
  --c-gold-63-b: #72542a;
  --c-gold-63-c: #77490f;
  --c-gold-63-d: #71501e;
  --c-gold-63-e: #775022;
  --c-gold-63-f: #865331;
  --c-gold-63-g: #835a40;
  --c-gold-63-h: #745c40;
  --c-gold-63-i: #715c3d;
  --c-gold-64: #66552c;
  --c-gold-64-b: #794200;
  --c-gold-65: #6e4a14;
  --c-gold-65-b: #755634;
  --c-gold-66: #4c3c2e;
  --c-gold-66-b: #6b4917;
  --c-gold-66-c: #684913;
  --c-gold-66-d: #735539;
  --c-gold-66-e: #6c5942;
  --c-gold-66-f: #6f5b46;
  --c-gold-67: #6d5842;
  --c-gold-67-b: #685840;
  --c-gold-68: #453b33;
  --c-gold-68-b: #473b32;
  --c-gold-68-c: #583c00;
  --c-gold-68-d: #68450e;
  --c-gold-68-e: #675742;
  --c-gold-68-f: #4b3624;
  --c-gold-68-g: #6b5337;
  --c-gold-68-h: #67563f;
  --c-gold-69: #63471b;
  --c-gold-69-b: #66481e;
  --c-gold-69-c: #6a5239;
  --c-gold-69-d: #664619;
  --c-gold-69-e: #463526;
  --c-gold-69-f: #644513;
  --c-gold-69-g: #48321e;
  --c-gold-70: #45321c;
  --c-gold-70-b: #654413;
  --c-gold-71: #5f420e;
  --c-gold-71-b: #68451e;
  --c-gold-71-c: #644e32;
  --c-gold-71-d: #644f38;
  --c-gold-71-e: #683e05;
  --c-gold-71-f: #5b3b00;
  --c-gold-72: #5c3f04;
  --c-gold-72-b: #6d3f14;
  --c-gold-72-c: #5e400d;
  --c-gold-72-d: #5f4825;
  --c-gold-73: #583d04;
  --c-gold-73-b: #5c4113;
  --c-gold-73-c: #614e39;
  --c-gold-73-d: #5c4117;
  --c-gold-74: #553c06;
  --c-gold-75: #573c0d;
  --c-gold-75-b: #61401f;
  --c-gold-75-c: #573f17;
  --c-gold-75-d: #573e12;
  --c-gold-76: #594732;
  --c-gold-76-b: #573e16;
  --c-gold-76-c: #584429;
  --c-gold-76-d: #543b0f;
  --c-gold-76-e: #573d12;
  --c-gold-76-f: #5b3a0f;
  --c-gold-76-g: #57452c;
  --c-gold-77: #553f1f;
  --c-gold-77-b: #623c1f;
  --c-gold-77-c: #533b12;
  --c-gold-77-d: #4f3602;
  --c-gold-77-e: #534229;
  --c-gold-78: #53422c;
  --c-gold-78-b: #513a13;
  --c-gold-79: #4f3b19;
  --c-gold-79-b: #503a16;
  --c-gold-79-c: #59391b;
  --c-gold-79-d: #504129;
  --c-gold-79-e: #52422f;
  --c-gold-79-f: #543810;
  --c-gold-80: #4e412c;
  --c-gold-81: #4b350e;
  --c-gold-81-b: #503717;
  --c-gold-81-c: #4a3818;
  --c-gold-81-d: #4b3611;
  --c-gold-81-e: #4c391b;
  --c-gold-82: #48391e;
  --c-gold-82-b: #4a3614;
  --c-gold-82-c: #49340c;
  --c-gold-83: #453618;
  --c-gold-83-b: #4b3517;
  --c-gold-83-c: #46330d;
  --c-gold-85: #463315;
  --c-gold-85-b: #4b351d;
  --c-gold-86: #3f3011;
  --c-umber-06: #fdf5f1;
  --c-umber-07: #fbf6f0;
  --c-umber-08: #fdf5f1;
  --c-umber-09: #fdf5f1;
  --c-umber-10: #fbf2ec;
  --c-umber-10-b: #fcf4f0;
  --c-umber-10-c: #f9f4ec;
  --c-umber-10-d: #fbf2ec;
  --c-umber-11: #fbf1ec;
  --c-umber-11-b: #fbf1ed;
  --c-umber-11-c: #f9efe8;
  --c-umber-12: #f3e9db;
  --c-umber-12-b: #f6ebdf;
  --c-umber-12-c: #f9ede5;
  --c-umber-13: #f6ebe4;
  --c-umber-13-b: #f2eade;
  --c-umber-15: #ecdcc9;
  --c-umber-15-b: #f0ddcb;
  --c-umber-17: #e5d7c6;
  --c-umber-17-b: #e8d2bb;
  --c-umber-18: #e4d9cd;
  --c-umber-19: #e0d7ca;
  --c-umber-19-b: #dfccb5;
  --c-umber-21: #d9cab7;
  --c-umber-21-b: #dab797;
  --c-umber-22: #ddbea2;
  --c-umber-22-b: #d6c9b6;
  --c-umber-23: #d8bea3;
  --c-umber-23-b: #dcc2af;
  --c-umber-24: #ddc0b0;
  --c-umber-24-b: #d2c7bb;
  --c-umber-24-c: #e0b6a0;
  --c-umber-24-d: #d6b89d;
  --c-umber-25: #d3b293;
  --c-umber-25-b: #cebaa1;
  --c-umber-25-c: #cdbba3;
  --c-umber-25-d: #cdac89;
  --c-umber-25-e: #d9bfae;
  --c-umber-25-f: #d4a98a;
  --c-umber-26: #d5bdac;
  --c-umber-26-b: #cdaf90;
  --c-umber-26-c: #cbbaa2;
  --c-umber-27: #c6ae8d;
  --c-umber-28: #c6ae91;
  --c-umber-28-b: #ccb9a9;
  --c-umber-29: #cca687;
  --c-umber-29-b: #cc9c7b;
  --c-umber-29-c: #caa98e;
  --c-umber-30: #b69567;
  --c-umber-30-b: #bfaa8b;
  --c-umber-31: #c5ae9d;
  --c-umber-31-b: #c69a78;
  --c-umber-31-c: #beb5ac;
  --c-umber-31-d: #c09873;
  --c-red-04: #eccac5;
  --c-red-11: #cbafad;
  --c-red-12: #c7aeae;
  --c-red-13: #d6a29b;
  --c-red-14: #d4a09b;
  --c-red-15: #c8a29d;
  --c-red-15-b: #cea29e;
  --c-red-16: #da9289;
  --c-red-17: #d0968f;
  --c-red-18: #cf9691;
  --c-red-18-b: #cf928b;
  --c-red-20: #c2928d;
  --c-red-21: #c5887f;
  --c-red-21-b: #ca8981;
  --c-red-23: #c38783;
  --c-red-24: #c77b73;
  --c-red-25: #c57165;
  --c-red-25-b: #c47c74;
  --c-red-26: #c37873;
  --c-red-26-b: #bf7870;
  --c-red-26-c: #c86f6a;
  --c-red-27: #ba7a75;
  --c-red-28: #ba7771;
  --c-red-28-b: #b26f5d;
  --c-red-28-c: #9d6a49;
  --c-red-28-d: #c06f66;
  --c-red-29: #bd6f67;
  --c-red-29-b: #b96f65;
  --c-red-29-c: #c06055;
  --c-red-30: #c2564c;
  --c-red-30-b: #ba6c62;
  --c-red-31: #b06e63;
  --c-red-31-b: #a3746a;
  --c-red-31-c: #bc665d;
  --c-red-31-d: #af634f;
  --c-red-31-e: #bd5145;
  --c-red-31-f: #bb5f53;
  --c-red-32: #bc615b;
  --c-red-32-b: #b36b67;
  --c-red-33: #b9625d;
  --c-red-33-b: #b46258;
  --c-red-34: #af6158;
  --c-red-34-b: #b75145;
  --c-red-34-c: #a36c65;
  --c-red-34-d: #b45f57;
  --c-red-35: #b15e56;
  --c-red-35-b: #965939;
  --c-red-35-c: #b84245;
  --c-red-36: #b7534d;
  --c-red-37: #9f4c33;
  --c-red-38: #b34e49;
  --c-red-38-b: #ad5855;
  --c-red-38-c: #ae4f45;
  --c-red-38-d: #a05e58;
  --c-red-39: #a75147;
  --c-red-39-b: #ae504d;
  --c-red-40: #b23c3b;
  --c-red-40-b: #9a3819;
  --c-red-41: #af2c27;
  --c-red-41-b: #a14f46;
  --c-red-41-c: #ac4139;
  --c-red-42: #a14e47;
  --c-red-43: #a94049;
  --c-red-44: #a43e37;
  --c-red-44-b: #8b4021;
  --c-red-44-c: #a24a49;
  --c-red-44-d: #9e433a;
  --c-red-44-e: #a43529;
  --c-red-44-f: #99483d;
  --c-red-45: #a62f28;
  --c-red-45-b: #a03e36;
  --c-red-45-c: #9e3627;
  --c-red-46: #9e382e;
  --c-red-47: #703906;
  --c-red-47-b: #953623;
  --c-red-47-c: #9d362f;
  --c-red-47-d: #8a3a1e;
  --c-red-47-e: #934239;
  --c-red-49: #9c312e;
  --c-red-50: #763005;
  --c-red-50-b: #93352d;
  --c-red-50-c: #8a290b;
  --c-red-50-d: #8a3626;
  --c-red-52: #922a24;
  --c-red-52-b: #7c2a03;
  --c-red-52-c: #8c3228;
  --c-red-52-d: #6f3713;
  --c-red-53: #84372d;
  --c-red-54: #951314;
  --c-red-54-b: #8f221d;
  --c-red-54-c: #843229;
  --c-red-54-d: #622b00;
  --c-red-55: #821e08;
  --c-red-56: #602000;
  --c-red-57: #732b18;
  --c-red-57-b: #4f2703;
  --c-red-58: #502101;
  --c-red-58-b: #862226;
  --c-red-58-c: #672400;
  --c-red-58-d: #582102;
  --c-red-59: #7c1e17;
  --c-red-60: #6b2610;
  --c-red-60-b: #4a1f00;
  --c-red-60-c: #742b29;
  --c-red-61: #7c090a;
  --c-red-61-b: #4b2400;
  --c-red-62: #421e00;
  --c-red-63: #492300;
  --c-red-63-b: #682010;
  --c-red-64: #760304;
  --c-red-64-b: #3f1d01;
  --c-red-65: #672019;
  --c-red-65-b: #621a08;
  --c-red-66: #612019;
  --c-red-68: #740214;
  --c-red-68-b: #591f18;
  --c-red-68-c: #401c00;
  --c-red-68-d: #6e0005;
  --c-red-68-e: #67003e;
  --c-red-69: #5a1403;
  --c-red-69-b: #43251c;
  --c-red-70: #541c15;
  --c-red-71: #58130f;
  --c-red-72: #321500;
  --c-red-72-b: #431906;
  --c-red-72-c: #451d13;
  --c-red-74: #580305;
  --c-red-75: #431205;
  --c-red-77: #36160f;
  --c-red-77-b: #4b0705;
  --c-red-77-c: #540312;
  --c-red-77-d: #331000;
  --c-red-78: #3e0900;
  --c-red-79: #4c0511;
  --c-red-80: #34110c;
  --c-red-80-b: #321007;
  --c-red-82: #380807;
  --c-red-83: #350807;
  --c-red-83-b: #330803;
  --c-red-83-c: #2e0801;
  --c-red-84: #340809;
  --c-red-85: #2a0803;
  --c-red-85-b: #34070d;
  --c-red-85-c: #260801;
  --c-red-85-d: #1d0900;
  --c-red-89: #1e0605;
  --c-red-89-b: #1b0602;
  --c-red-91: #100705;
  --c-red-94: #110604;
  --c-red-94-b: #120605;
  --c-red-95: #100605;
  --c-red-96: #0e0706;
  --c-green-08: #e2edde;
  --c-green-12: #cee6d5;
  --c-green-14: #b9decc;
  --c-green-15: #abdac1;
  --c-green-15-b: #c3ddca;
  --c-green-15-c: #c9dac0;
  --c-green-16: #c1dccc;
  --c-green-19: #b6cba7;
  --c-green-19-b: #afd2bb;
  --c-green-21: #aac399;
  --c-green-22: #a7c095;
  --c-green-23: #7bbe9b;
  --c-green-23-b: #a4c8ac;
  --c-green-23-c: #a3c097;
  --c-green-23-d: #67ba82;
  --c-green-26: #99b284;
  --c-green-26-b: #86bc88;
  --c-green-26-c: #8cbf94;
  --c-green-27: #8dbb9c;
  --c-green-27-b: #6db29d;
  --c-green-28: #86b89b;
  --c-green-29: #94b89a;
  --c-green-30: #8da774;
  --c-green-30-b: #57ac76;
  --c-green-31: #88a977;
  --c-green-33: #5daa71;
  --c-green-33-b: #7dac8c;
  --c-green-34: #59a96a;
  --c-green-34-b: #91a993;
  --c-green-36: #67a572;
  --c-green-37: #6ba06c;
  --c-green-38: #658b3f;
  --c-green-39: #6b9d7f;
  --c-green-41: #668b4d;
  --c-green-42: #52873a;
  --c-green-43: #339152;
  --c-green-44: #178b51;
  --c-green-45: #72855b;
  --c-green-45-b: #368d4c;
  --c-green-45-c: #568446;
  --c-green-46: #64875e;
  --c-green-48: #56886a;
  --c-green-49: #088239;
  --c-green-49-b: #4a8249;
  --c-green-50: #0f7545;
  --c-green-51: #43752d;
  --c-green-53: #2a7b4b;
  --c-green-53-b: #557242;
  --c-green-55: #3d753e;
  --c-green-55-b: #387843;
  --c-green-55-c: #157121;
  --c-green-56: #52724c;
  --c-green-61: #296a36;
  --c-green-62: #385001;
  --c-green-63: #3f5a22;
  --c-green-63-b: #0d5d3f;
  --c-green-65: #1f613b;
  --c-green-65-b: #32633d;
  --c-green-65-c: #316247;
  --c-green-68: #195c29;
  --c-green-68-b: #2f541e;
  --c-green-69: #165b2c;
  --c-green-70: #2a5426;
  --c-green-72: #085323;
  --c-green-73: #24512b;
  --c-green-75: #264c25;
  --c-green-77: #234419;
  --c-green-77-b: #2c3c04;
  --c-green-77-c: #02442a;
  --c-green-80: #293d15;
  --c-green-82: #1c3d19;
  --c-green-84: #2b3b2a;
  --c-green-85: #253a27;
  --c-green-87: #193415;
  --c-green-92: #0c2d20;
  --c-green-93: #1c2c21;
  --c-green-93-b: #202a1f;
  --c-teal-15: #add2dd;
  --c-teal-20: #abc5d2;
  --c-teal-22: #9abfce;
  --c-teal-29: #87adbc;
  --c-teal-30: #78a8b9;
  --c-teal-31: #549cb4;
  --c-teal-36: #559586;
  --c-teal-51: #0e6370;
  --c-teal-51-b: #487470;
  --c-teal-54: #436f7f;
  --c-teal-62: #004c62;
  --c-teal-63: #014a3e;
  --c-teal-69: #24515e;
  --c-teal-78: #043840;
  --c-teal-92: #0b252b;
  --c-blue-08: #dfeaf9;
  --c-blue-11: #dee3f8;
  --c-blue-12: #e3e1f7;
  --c-blue-14: #dfdaf4;
  --c-blue-15: #c6d8f3;
  --c-blue-16: #c5d5f0;
  --c-blue-19: #c6d0f3;
  --c-blue-19-b: #bccbeb;
  --c-blue-19-c: #becef4;
  --c-blue-23: #cac4f7;
  --c-blue-24: #b4c2ec;
  --c-blue-24-b: #b3bfdd;
  --c-blue-26: #8db5e1;
  --c-blue-26-b: #b0b4c3;
  --c-blue-29: #a4b5e9;
  --c-blue-32: #99afeb;
  --c-blue-35: #95a5d4;
  --c-blue-38: #6197dd;
  --c-blue-38-b: #7e9bca;
  --c-blue-41: #7a95ca;
  --c-blue-48: #6f86c0;
  --c-blue-51: #4d7792;
  --c-blue-51-b: #8e7ec6;
  --c-blue-53: #69717a;
  --c-blue-57: #346dac;
  --c-blue-57-b: #476fa4;
  --c-blue-58: #6571a4;
  --c-blue-62: #286298;
  --c-blue-66: #475971;
  --c-blue-67: #385a87;
  --c-blue-72: #234f7c;
  --c-blue-75: #06466e;
  --c-blue-78: #284264;
  --c-blue-81: #1c3e65;
  --c-blue-81-b: #2e3b4c;
  --c-blue-83: #2f353c;
  --c-blue-84: #26364b;
  --c-blue-90: #362b4f;
  --c-blue-90-b: #222934;
  --c-blue-91: #212b40;
  --c-blue-95: #1b222a;
  --c-blue-95-b: #1e212c;
  --c-violet-22: #cebfff;
  --c-violet-26: #e091fe;
  --c-violet-27: #dd8bdb;
  --c-violet-32: #fe47c2;
  --c-violet-34: #ba99fd;
  --c-violet-37: #af8ade;
  --c-violet-63: #8937ad;
  --c-violet-66: #822ef8;
  --c-violet-73: #3d478c;
  --c-violet-75: #6d1eb6;
  --c-violet-76: #612a77;
  --c-violet-96: #241930;
  --c-night-02: #ead7b0;
  --c-night-03: #eddcb9;
  --c-night-03-b: #ecdcb9;
  --c-night-04: #ecdcb9;
  --c-night-05: #eedfbf;
  --c-night-05-b: #eddebd;
  --c-night-05-c: #efe1c2;
  --c-night-05-d: #efe0c2;
  --c-night-05-e: #f0e3c7;
  --c-night-06: #f0e2c5;
  --c-night-06-b: #f1e5cb;
  --c-night-06-c: #f1e5cc;
  --c-night-07: #f2e6cd;
  --c-night-07-b: #f1e4c9;
  --c-night-07-c: #f3e8d0;
  --c-night-07-d: #f1e6cc;
  --c-night-08: #f3e8d1;
  --c-night-08-b: #f4ead5;
  --c-night-08-c: #f4ead6;
  --c-night-09: #f4ead4;
  --c-night-09-b: #f4ebd7;
  --c-night-09-c: #f6eedd;
  --c-night-09-d: #f6efde;
  --c-night-09-e: #f4ead6;
  --c-night-09-f: #f3e8d2;
  --c-night-10: #f5eddb;
  --c-night-10-b: #f7f0e2;
  --c-night-11: #f6eede;
  --c-night-12: #f7f0e0;
  --c-night-12-b: #f9f4e9;
  --c-night-12-c: #f9f4e9;
  --c-night-13: #f8f2e6;
  --c-night-13-b: #faf5eb;
  --c-night-13-c: #f8f1e3;
  --c-night-14: #faf5eb;
  --c-night-15: #faf6ed;
  --c-night-15-b: #fcf8f0;
  --c-night-15-c: #fbf8f0;
  --c-night-16: #fcf9f1;
  --c-night-16-b: #fdfaf2;
  --c-night-17: #fdfaf2;
  --c-night-18: #c5b798;
  --c-night-19: #c5b697;
  --c-night-20: #c0b293;
  --c-night-20-b: #c2b495;
  --c-night-21: #c0b193;
  --c-night-22: #beaf91;
  --c-night-22-b: #bcae90;
  --c-night-24: #b8aa8b;
  --c-night-25: #b3a486;
  --c-night-26: #b0a284;
  --c-night-27: #ad9f81;
  --c-night-29: #a99b7d;
  --c-night-29-b: #aa9c7e;
  --c-night-29-c: #a59779;
  --c-night-31: #a49678;
  --c-night-32: #a19375;
  --c-night-32-b: #a19375;
  --c-night-33: #9e9073;
  --c-night-33-b: #9b8d70;
  --c-night-36: #95886a;
  --c-night-37: #958769;
  --c-night-38: #938568;
  --c-night-39: #928467;
  --c-night-40: #8e8063;
  --c-night-45: #807356;
  --c-night-50: #75684b;
  --c-ink-50: #525252;
  --c-ink-56: #56524e;
  --c-ink-58: #534d48;
  --c-ink-58-b: #554e48;
  --c-ink-60: #4d4d4d;
  --c-ink-63: #4c453f;
  --c-ink-75: #3b3530;
  --c-ink-81: #312c29;
  --c-ink-83: #2c2926;
  --c-ink-86: #242424;
  --c-ink-88: #2a1a0c;
  --c-ink-88-b: #251e18;
  --c-ink-88-c: #1f2015;
  --c-ink-88-d: #251d16;
  --c-ink-88-e: #24211e;
  --c-ink-89: #241f1b;
  --c-ink-92: #1a1b11;
  --c-ink-92-b: #1c1c1c;
  --c-ink-92-c: #1f1a16;
  --c-ink-92-d: #211b17;
  --c-ink-93: #1f1813;
  --c-ink-93-b: #1e1914;
  --c-ink-93-c: #1a1a1a;
  --c-ink-94: #1e1712;
  --c-ink-94-b: #1c1814;
  --c-ink-94-c: #1a170c;
  --c-ink-95: #15190c;
  --c-ink-95-b: #1c1816;
  --c-ink-97: #1a140f;
  --c-ink-97-b: #1d1611;
  --c-ink-98: #191511;
  --c-paper-75: #3a2e22;
  --c-paper-78: #37291c;
  --c-paper-81: #302821;
  --c-paper-83: #351c04;
  --c-paper-84: #301f10;
  --c-paper-84-b: #311900;
  --c-paper-84-c: #2f2013;
  --c-paper-85-f: #301b04;
  --c-paper-86: #2c1c0e;
  --c-paper-86-b: #292019;
  --c-paper-86-c: #2d1902;
  --c-paper-87-d: #2b1907;
  --c-paper-87-g: #2c1904;
  --c-paper-88: #2d1500;
  --c-paper-88-c: #2a1a0c;
  --c-paper-90: #241a10;
  --c-paper-92-b: #241406;
  --c-paper-93: #221407;
  --c-paper-94: #1f140b;
  --c-paper-94-c: #1c160d;
  --c-paper-95-b: #1e140e;
  /* the app's own colour variables, the same way (themes/v2-std-vars.json) */
  --ally: #568446;
  --bloodied: #ac4139;
  --brass-grad: linear-gradient(180deg, #533e20 0%, #6e4a14 46%, #8d6434 100%);
  --card-border: rgba(141,100,52,0.34);
  --card-surface: #f2e6cd;
  --cm-bg: #f1e4c9;
  --cm-card: #f6eede;
  --cm-gold: #63471b;
  --cm-gold2: #836132;
  --cm-goldd: #c6ae8d;
  --cm-hp: #b34e49;
  --cm-hp2: #9c312e;
  --cm-ink: #2a1a0c;
  --cm-line: #c0b293;
  --cm-meta: #534539;
  --cm-pane: #f4ead4;
  --control-fill: #f2e6cd;
  --control-fill-hover: #f5eddb;
  --crimson: #5a1403;
  --crimson-ink: #5a1403;
  --crimson-soft: #5a1403;
  --ember: #6e4a14;
  --ember-ui: #6e4a14;
  --glow: 0 0 0 2px #6e4a14, 0 0 16px rgba(110,74,20,0.45);
  --gold-deep: #8d6434;
  --gold-text: #6e4a14;
  --hair: rgba(141,100,52,0.22);
  --header-a: #eedfbf;
  --header-b: #f5eddb;
  --header-ink: #644310;
  --header-sub: #6c5234;
  --hostile: #944332;
  --hp-fill-start: #7a1f12;
  --hx-brass: #8d6434;
  --hx-brass-dk: #ebd0bd;
  --hx-brass-grad: linear-gradient(180deg, #5c4113 0%, #8d6434 45%, #b38b67 100%);
  --hx-brass-hi: #573e12;
  --hx-brass-lo: #c9a588;
  --hx-ember: #6e4a14;
  --hx-ember-deep: #9a3819;
  --hx-flame: #794200;
  --hx-ink-on-parch: #2a1a0c;
  --hx-ink2-on-parch: #4c3c2e;
  --hx-rim: linear-gradient(180deg, rgba(87,62,18,0.85), rgba(166,152,122,0.9));
  --hx-rivet: radial-gradient(circle at 35% 35%, #463417 0 1px, #8d6434 1.6px, #d6b399 3px, rgba(0,0,0,0.55) 3.6px, transparent 4.4px);
  --ink-faded: #4c3c2e;
  --ink-ghost: #bfaa99;
  --ink-soft: #594732;
  --leather: #fcf9f1;
  --leather-deep: #f5eddb;
  --leather-soft: rgba(141,100,52,0.38);
  --map-ink: #2a1a0c;
  --oak-brass: #7f5825;
  --oak-brass-deep: rgba(141,100,52,0.7);
  --oak-brass-grad: linear-gradient(#5c4117, #906538 60%, #aa8059);
  --oak-brass-hi: #5c4117;
  --oak-btn: linear-gradient(#fcf9f1, #f5eddb);
  --oak-card: linear-gradient(#f5eddb, #f2e6cd);
  --oak-faded: #544030;
  --oak-ink: #291a0e;
  --oak-leather: linear-gradient(#f5eddb, #f2e6cd);
  --oak-leather-on: linear-gradient(#fdfaf2, #f5eddb);
  --oak-press: inset 0 1px 0 #ffffff14, inset 0 0 0 2px rgba(239,224,193,0.502), 0 3px 8px #000b;
  --oak-soft: #47301f;
  --on-gold: #fbf2ec;
  --page-deep: #eedfbf;
  --page-edge: #f5eddb;
  --page-grad-bottom: #eedfbf;
  --page-grad-top: #f0e2c5;
  --page-stain: rgba(73,31,2,0.03);
  --page-stain-dark: rgba(73,31,2,0.05);
  --parch: #f2e6cd;
  --parch-ink: #2a1a0c;
  --parchment: #eedfbf;
  --parchment-dark: #eedfbf;
  --parchment-darker: #f5eddb;
  --parchment-deep: #f5eddb;
  --plate-ink: #fbf2ec;
  --pr-brass: linear-gradient(180deg, #5e431b 0%, #6e4a14 52%, #8b6c43 100%);
  --pr-brass-sh: inset 0 1px 0 rgba(25,21,17,0.55), inset 0 -1px 0 rgb(from #000 r g b / 0.25), 0 1px 2px rgb(from #000 r g b / 0.5), 0 4px 12px rgba(110,74,20,0.18);
  --pr-edge-glow: inset 0 1px 0 rgba(110,74,20,0.42), 0 -1px 4px rgba(110,74,20,0.22), 0 0 5px rgba(110,74,20,0.16);
  --pr-engrave: 0 1px 0 rgba(42,26,12,0.35);
  --pr-focus: 0 0 0 2px #eedfbf, 0 0 0 4px #6e4a14;
  --pr-glow: 0 0 0 1px rgba(110,74,20,0.55), 0 0 18px rgba(110,74,20,0.2);
  --pr-label-ink: #674922;
  --pr-line: rgba(110,74,20,0.14);
  --pr-line-2: rgba(110,74,20,0.3);
  --rim: rgba(141,100,52,0.42);
  --rim-strong: rgba(141,100,52,0.75);
  --rs-backdrop: rgba(234,215,176,0.7);
  --rs-btn: linear-gradient(180deg, #5c4113 0%, #8d6434 45%, #b38b67 100%);
  --rs-btn-hover: linear-gradient(180deg,#513a13,#825b2a 50%,#aa805b);
  --rs-btn-ink: #fbf2ec;
  --rs-btn2: linear-gradient(#fcf9f1, #f5eddb);
  --rs-card: linear-gradient(180deg, #f5eddb, #f2e6cd);
  --rs-card-border: rgba(141,100,52,0.32);
  --rs-card-sunk: #f2e6cd;
  --rs-focus: #673d05;
  --rs-gold-line: rgba(110,74,20,0.7);
  --rs-gold-soft: rgba(110,74,20,0.16);
  --rs-inset: inset 0 1px 0 rgba(80,55,23,0.1);
  --rs-label-ink: #6b5337;
  --rule: #bcae90;
  --rule-soft: rgba(188,174,144,0.4);
  --rustic-accent: #6e4a14;
  --rustic-accent-deep: #8d6434;
  --rustic-ink-warm: #2a1a0c;
  --rustic-page: #eedfbf;
  --rustic-page-deep: #f5eddb;
  --rustic-page-edge: #f5eddb;
  --rustic-rule: #bcae90;
  --rustic-rule-soft: rgba(188,174,144,0.4);
  --rustic-stain: rgba(73,31,2,0.03);
  --select-map: #286298;
  --select-soft: rgba(31,84,136,0.26);
  --sh-bg: linear-gradient(180deg,#f5eddb,#f2e6cd);
  --sh-bg-solid: #f2e6cd;
  --sh-btn: linear-gradient(#fcf9f1,#f4ebd7);
  --sh-btn-ink: #594732;
  --sh-btn-line: rgba(141,100,52,0.38);
  --sh-div: #bcae90;
  --sh-edge: rgba(141,100,52,0.3);
  --sh-grab: rgba(141,100,52,0.7);
  --sh-hair: rgba(141,100,52,0.34);
  --sh-icon: #6e4a14;
  --sh-muted: #4c3c2e;
  --sh-pri: linear-gradient(#6b4917,#9c754c);
  --sh-pri-ink: #f9efe8;
  --sh-pri-line: #8d6434;
  --sh-row: #f1e5cb;
  --sh-row-line: #fcf9f1;
  --sh-scrim: rgba(234,216,176,0.74);
  --sh-text: #594732;
  --sh-title: #2a1a0c;
  --sh-title-accent: #6e4a14;
  --tex: linear-gradient(#f5eddb, #f2e6cd);
  --tex-chart: radial-gradient(ellipse at 12% 8%, rgba(73,31,2,0.05), transparent 28%), radial-gradient(ellipse at 85% 80%, rgba(73,31,2,0.05), transparent 30%), radial-gradient(ellipse at 70% 25%, rgba(73,31,2,0.03), transparent 35%), repeating-linear-gradient(0deg, transparent 0 47px, rgba(98,60,31,0.04) 47px 48px), repeating-linear-gradient(90deg, transparent 0 47px, rgba(98,60,31,0.04) 47px 48px);
  --tex-grain: rgba(98,60,31,0.04);
  --tex-parch: linear-gradient(#f5eddb, #f2e6cd);
  --tex-parchment: radial-gradient(ellipse at 12% 8%, rgba(73,31,2,0.05), transparent 25%), radial-gradient(ellipse at 88% 22%, rgba(73,31,2,0.03), transparent 30%), radial-gradient(ellipse at 25% 65%, rgba(73,31,2,0.03), transparent 35%), radial-gradient(ellipse at 78% 88%, rgba(73,31,2,0.05), transparent 28%), repeating-linear-gradient(0deg, transparent 0 2px, rgba(98,60,31,0.04) 2px 3px);
  --tex-scales: radial-gradient(circle at 50% 0%, rgba(98,60,31,0.04) 0 5px, transparent 9px) 0 0 / 26px 18px, radial-gradient(circle at 50% 0%, rgba(98,60,31,0.04) 0 5px, transparent 9px) 13px 9px / 26px 18px, radial-gradient(circle at 50% 0%, transparent 0 11.5px, rgba(0,0,0,0.5) 12.5px 13.5px, transparent 14.5px) 0 0 / 26px 18px, radial-gradient(circle at 50% 0%, transparent 0 11.5px, rgba(0,0,0,0.5) 12.5px 13.5px, transparent 14.5px) 13px 9px / 26px 18px, radial-gradient(ellipse at 50% 30%, transparent 45%, rgba(0,0,0,0.5) 140%);
  --tex-stars: radial-gradient(circle, rgba(98,60,31,0.04) 0 1px, transparent 1.6px) 13px 29px / 97px 89px, radial-gradient(circle, rgba(98,60,31,0.04) 0 0.8px, transparent 1.3px) 61px 7px / 151px 139px, radial-gradient(circle, rgba(98,60,31,0.04) 0 1.3px, transparent 2px) 101px 53px / 233px 211px, radial-gradient(ellipse at 80% 10%, rgba(73,31,2,0.05), transparent 45%), radial-gradient(ellipse at 15% 85%, rgba(73,31,2,0.03), transparent 40%);
  --tex-weave: repeating-linear-gradient(0deg, transparent 0 3px, rgba(98,60,31,0.04) 3px 4px) 0 0 / 18px 18px, conic-gradient(rgba(0,0,0,0.5) 0 25%, transparent 0 50%, rgba(0,0,0,0.5) 0 75%, transparent 0) 0 0 / 36px 36px, repeating-linear-gradient(90deg, transparent 0 3px, rgba(98,60,31,0.04) 3px 4px) 18px 18px / 36px 36px;
  --turn: #77490f;
  --turn-map: #77490f;
  --turn-soft: rgba(119,73,15,0.16);
  --u-brass-btn: linear-gradient(180deg, #533e20 0%, #6e4a14 46%, #8d6434 100%);
  --u-diff-easy-bg: #5c8e71;
  --u-surface: #f2e6cd;
  --well: rgba(238,223,191,0.7);
}
html:root[data-palette][data-palette][data-palette][data-look="light"] .c2 {
  --c2-brass: linear-gradient(180deg, #533e20 0%, #6e4a14 45%, #8d6434 100%);
  --c2-on-gold: #fbf2ec;
  --c2-rim: rgba(141,100,52,0.45);
  --c2-rim-soft: rgba(141,100,52,0.28);
  --c2-surface: linear-gradient(180deg, #f5eddb, #f2e6cd);
  --c2-turn: #77490f;
  --mi-ember: #6e4a14;
  --mi-ember-hot: #794200;
  --mi-ember-ink: #794200;
  --mi-plate-gold: #6e4a14;
  --mi-plate-ink: #2a1a0c;
  --mi-plate-soft: #594732;
}
html:root[data-palette][data-palette][data-palette][data-look="light"] .gm2 {
  --c2-brass: linear-gradient(180deg, #4a3818 0%, #684913 45%, #9c754c 100%);
  --c2-on-gold: #fbf1ec;
  --c2-rim: rgba(147,133,104,0.45);
  --c2-surface: #f5eddb;
  --gm-bg: #eedfbf;
  --gm-blue: #234f7c;
  --gm-card: #f2e6cd;
  --gm-card-2: #f5eddb;
  --gm-danger: #2a0803;
  --gm-faint: #675742;
  --gm-gold: #553f1f;
  --gm-gold-deep: #a37952;
  --gm-hub: #684913;
  --gm-hub-ink: #fbf1ec;
  --gm-ink: #23180e;
  --gm-line: rgba(102,72,30,0.45);
  --gm-ok: #1c3d19;
  --gm-orange: #622b00;
  --gm-soft: #35210f;
  --mi-ember: #6e4a14;
  --mi-ember-hot: #794200;
  --mi-ember-ink: #794200;
  --mi-plate-gold: #6e4a14;
  --mi-plate-ink: #2a1a0c;
  --mi-plate-soft: #594732;
}

/* ---------- Dark v2: the design layer (themes/v2/dark.layer.css) ---------- */
/* Hearth Dark v2 — BLACK LEATHER variant (per Tom 17 Nov). Same design layer as brown v2; black-leather floor, eased veil, neutral card/button tones. MOCK ONLY. html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body = high-specificity prefix */
html:root[data-palette][data-palette][data-palette][data-look="dark"]{
  --dk-ink:#f4e8cc; --dk-ink2:#e3d2ad; --dk-muted:#c4ae86; --dk-gold:#e8c06a; --dk-gold-d:#b98d3e;
  --dk-ox:#7c2214; --dk-ox-l:#a33a26;
  --dk-leather:url("../img/theme/black-leather-768.webp"); --dk-wood:url("../img/theme/charwood-512.webp");
  --dk-gilt:linear-gradient(160deg,#fbe6a6 0%,#d6a84c 15%,#7c5620 36%,#f1cf7c 54%,#a87b2e 74%,#5c3c10 100%);
  --dk-gilt-h:linear-gradient(90deg,#5c3c10,#c99a48 20%,#f7e2a2 50%,#c99a48 80%,#5c3c10);
  --dk-bevel:inset 0 1px 0 rgba(255,228,170,.22), inset 0 -1px 0 rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.35);
  --dk-glow:inset 0 0 22px rgba(232,184,92,.10), inset 0 18px 30px -18px rgba(255,214,140,.14);
  --dk-lift:0 1px 1px rgba(0,0,0,.7), 0 4px 8px -1px rgba(0,0,0,.55), 0 14px 28px -6px rgba(0,0,0,.75);
  --dk-lift-s:0 1px 1px rgba(0,0,0,.7), 0 3px 7px -1px rgba(0,0,0,.6);
  --dk-fill:radial-gradient(120% 70% at 50% 0%,rgba(255,206,130,.09),rgba(255,206,130,0) 70%), linear-gradient(180deg,rgba(26,24,22,.84),rgba(12,11,10,.90)), var(--dk-leather) 0 0/768px 768px;
  --dk-sunk:linear-gradient(180deg,rgba(0,0,0,.40),rgba(0,0,0,.22)), var(--dk-leather) 0 0/768px 768px;
  --dk-btn:linear-gradient(180deg,#33302b,#1c1a17 60%,#100f0d);
  --dk-leather-ox:radial-gradient(130% 80% at 50% -10%,rgba(255,190,150,.30),rgba(255,190,150,0) 55%), linear-gradient(180deg,#962e1d,#6a1a0e 55%,#470e07);
  --dk-leather-off:linear-gradient(180deg,#34312d,#252320);
  --hearth-oak: var(--dk-leather);
}
/* ---------- page: dark aged leather + candle-lit vignette ---------- */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body #content.u-csm, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body main.u-legacy{
  background: radial-gradient(90% 55% at 50% 0%, rgba(255,190,110,.06), rgba(255,190,110,0) 70%),
              radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,.42) 82%, rgba(0,0,0,.70) 100%),
              linear-gradient(115deg,rgba(255,244,226,0) 28%,rgba(255,244,226,.045) 44%,rgba(255,244,226,0) 62%),linear-gradient(rgba(6,6,6,.12),rgba(6,6,6,.12)),
              var(--dk-leather) 0 0/768px 768px repeat, #111010 !important;
  background-attachment: fixed !important; color: var(--dk-ink) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-r{ background: transparent !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-band, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-side, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body:not(.cm-port) .cm-pane{ background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 45%, rgba(0,0,0,.40) 100%), linear-gradient(rgba(6,6,6,.36),rgba(6,6,6,.36)), var(--dk-leather) 0 0/768px 768px, #111010 !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-band{ box-shadow: inset 0 2px 0 #0a0705, inset 0 3px 0 rgba(214,168,76,.55), inset 0 10px 14px -8px rgba(0,0,0,.8) !important; }
/* ---------- cards: leather panel, gilt bevel edge, inner glow, soft shadow ---------- */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-raised, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-grp, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-parch, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-st, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-c, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-gb, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ab, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ac,
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-info, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-skillsb, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mv, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-rnd, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-pv, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-heart, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-slots{
  border-color: transparent !important; border-style: solid !important;
  background: var(--dk-fill), var(--dk-gilt) !important;
  background-clip: padding-box, padding-box, padding-box, border-box !important; background-origin: padding-box, padding-box, padding-box, border-box !important;
  box-shadow: var(--dk-bevel), var(--dk-glow), var(--dk-lift) !important; color: var(--dk-ink) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-st, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-c, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-gb, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ab, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mv, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-rnd, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-heart, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-info, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-skillsb, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ac, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-slots{  box-shadow: var(--dk-bevel), inset 0 0 14px rgba(232,184,92,.08), var(--dk-lift-s) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-sunk{ border-color: rgba(201,154,72,.30) !important; border-style: solid !important; background: var(--dk-sunk) !important; box-shadow: inset 0 2px 6px rgba(0,0,0,.65), inset 0 0 0 1px rgba(0,0,0,.4), 0 1px 0 rgba(232,184,92,.12) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card::before, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card::after, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-parch::before, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-parch::after{ background: transparent !important; box-shadow:none !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card:not(.hv-on){ filter: saturate(.75) brightness(.78) !important; }
/* big cards: 2px gilt + inner gold hairline (double rule) + candle halo on the active hero */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-raised, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-grp{ box-shadow: var(--dk-bevel), inset 0 0 0 4px rgba(0,0,0,.28), inset 0 0 0 5px rgba(214,168,76,.30), var(--dk-glow), var(--dk-lift) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card.hv-on{ box-shadow: var(--dk-bevel), inset 0 0 0 4px rgba(0,0,0,.28), inset 0 0 0 5px rgba(232,184,92,.45), inset 0 0 30px rgba(232,184,92,.16), 0 0 0 1px rgba(0,0,0,.8), 0 18px 34px -8px rgba(0,0,0,.85), 0 0 44px 6px rgba(226,170,70,.34) !important; }
/* ---------- door tiles: charred wood grain in a gilt frame ---------- */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door{
  background: radial-gradient(120% 90% at 50% 0%,rgba(255,200,120,.10),rgba(255,200,120,0) 65%) padding-box,
              linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.42)) padding-box,
              var(--dk-wood) 0 0/512px 512px padding-box, var(--dk-gilt) border-box !important;
  box-shadow: var(--dk-bevel), inset 0 0 0 3px rgba(0,0,0,.35), inset 0 0 0 4px rgba(214,168,76,.32), var(--dk-lift) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door b{ color: var(--dk-gold) !important; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.9) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door small, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door span{ color: var(--dk-ink2) !important; text-shadow: 0 1px 2px #000, 0 0 5px rgba(0,0,0,.9) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door i, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door .hv-di{ color: var(--dk-gold) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door.hv-d-dm{ box-shadow: var(--dk-bevel), inset 0 0 0 3px rgba(0,0,0,.35), inset 0 0 0 4px rgba(232,184,92,.5), var(--dk-lift), 0 0 22px rgba(226,170,70,.30) !important; }
/* ---------- gilt arch rims ---------- */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-por, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-porb{
  background: var(--dk-gilt) !important;
  box-shadow: 0 0 0 1px #2a1a06, inset 0 1px 0 rgba(255,246,206,.9), inset 0 -2px 3px rgba(60,36,6,.6), 0 4px 10px rgba(0,0,0,.6), 0 16px 30px -6px rgba(0,0,0,.7) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-pin{ background:#0b0806 !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.9), inset 0 3px 10px rgba(0,0,0,.75) !important; }
/* ---------- type: cream ink, gold leaf, gilt drop-cap + gold rule ---------- */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-nm, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-nm{ color: var(--dk-ink) !important; text-shadow: 0 1px 2px rgba(0,0,0,.8) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-nm::first-letter, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-nm::first-letter{ line-height: 0; color: var(--dk-gold); font-size:1.42em;   text-shadow: 1px 1px 0 #6a1a0e, 0 0 8px rgba(232,184,92,.35); }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-nm{  background: linear-gradient(90deg, var(--dk-gold-d) 0, var(--dk-gold) 38%, rgba(232,192,106,0) 72%) 0 100%/100% 1.5px no-repeat !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-nm{  background: linear-gradient(90deg, rgba(232,192,106,0), var(--dk-gold) 30%, var(--dk-gold) 70%, rgba(232,192,106,0)) 50% 100%/70% 1px no-repeat !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-t-label.u-gl, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-band h3, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-mh h2{ color: var(--dk-gold) !important;  }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-t-label.u-gl::before{ content:"❧ "; color: var(--dk-gold-d); }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body h1, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body h2, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body h3{ text-shadow: 0 1px 2px rgba(0,0,0,.7) !important; }
/* ---------- buttons: embossed gilt-edged leather (secondary) ---------- */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-use-btn, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pill, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs-roll, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-sign, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-mb, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-paper, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-insp, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hb,
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-pill, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button:not(.u-on), html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mode:not(.on), html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-cardb, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-coin, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-counter, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pane .u-tabs button:not(.on), html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs-use{
  border-color: transparent !important; border-style: solid !important;
  background: var(--dk-btn) padding-box, var(--dk-gilt) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255,225,160,.26), inset 0 -2px 0 rgba(0,0,0,.5), 0 1px 1px rgba(0,0,0,.8), 0 3px 7px -2px rgba(0,0,0,.7) !important;
  color: var(--dk-gold) !important; text-shadow: 0 -1px 0 rgba(0,0,0,.8) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-use-btn *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pill *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs-roll *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-pill *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-join *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-sign *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-paper *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-coin *{ color: inherit !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-counter button, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-counter span{ background: transparent !important; box-shadow:none !important; border-color: transparent !important; color: var(--dk-ink) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-counter .resource-use-btn{ border-right-color: rgba(201,154,72,.35) !important; border-right-style: solid !important; color: var(--dk-gold) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs-roll.u-hit, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pill{ color: #f6d58a !important;  }
/* primary: oxblood tooled leather with stitched inner edge */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-go:not([aria-disabled="true"]), html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-end:not([aria-disabled="true"]), html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-star.u-ready, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-d-dm .hv-dn, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-join{
  border-color: #2a0703 !important; border-style: solid !important; background: var(--dk-leather-ox) !important; color:#fbe9cf !important;
  box-shadow: inset 0 1px 0 rgba(255,200,170,.35), inset 0 -2px 4px rgba(20,3,0,.55), 0 0 0 1px rgba(214,168,76,.55), 0 1px 1px rgba(0,0,0,.7), 0 5px 12px -2px rgba(0,0,0,.7) !important;
  outline: 1px dashed rgba(240,200,140,.55) !important; outline-offset: -5px !important; text-shadow: 0 -1px 0 rgba(20,3,0,.6) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-go:not([aria-disabled="true"]) *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-end:not([aria-disabled="true"]) *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-star.u-ready *{ color: inherit !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-go[aria-disabled="true"]{
  border-color: rgba(201,154,72,.35) !important; border-style: solid !important; background: var(--dk-leather-off) !important; color:#d8c7a4 !important;
  box-shadow: inset 0 1px 0 rgba(255,225,160,.10), inset 0 -2px 3px rgba(0,0,0,.4) !important;
  outline: 1px dashed rgba(201,154,72,.35) !important; outline-offset:-5px !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-go[aria-disabled="true"] *{ color: inherit !important; }
/* selected tabs: raised gold leaf (Hearth Dark signature), embossed */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button.u-on, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mode.on, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pane button.on{
  border-color: #a87b2e !important; border-style: solid !important; color:#26170a !important;
  background: radial-gradient(120% 90% at 50% 0%,rgba(255,248,220,.55),rgba(255,248,220,0) 60%), linear-gradient(180deg,#f2cf7c,#d3a24a 55%,#a97a2c) !important;
  box-shadow: inset 0 1px 0 rgba(255,250,225,.85), inset 0 -2px 0 rgba(90,56,10,.45), 0 1px 1px rgba(0,0,0,.8), 0 0 14px rgba(232,184,92,.30) !important;
  text-shadow: 0 1px 0 rgba(255,240,200,.5) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button.u-on *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mode.on *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pane button.on *{ color: inherit !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button i{ background: var(--dk-ox) !important; color:#fbe9cf !important; box-shadow: inset 0 1px 0 rgba(255,200,170,.4) !important; }
/* HP: oxblood leather */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-hp, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-hp{ border-color: #2a0703 !important; border-style: solid !important; background: var(--dk-leather-ox) !important; box-shadow: inset 0 1px 0 rgba(255,200,170,.35), inset 0 -2px 4px rgba(20,3,0,.55), 0 0 0 1px rgba(214,168,76,.5), var(--dk-lift-s) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-hp, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-hp *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-hp, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-hp *{ color:#fbe9cf !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hp{ border-color: transparent !important; border-style: solid !important; background: linear-gradient(#1a0503,#1a0503) padding-box, var(--dk-gilt) border-box !important; box-shadow: var(--dk-lift-s) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hpf{ background: var(--dk-leather-ox) !important; box-shadow: inset 0 1px 0 rgba(255,200,170,.35), inset 0 -2px 4px rgba(20,3,0,.5) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hp, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hp *{ color:#fbe9cf !important; }
/* level seal: gold coin */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-lvl{ background: radial-gradient(circle at 38% 30%, #fff1c0, #e2b45a 45%, #8a5e1c 100%) !important; color:#26170a !important; border-color: #a87b2e !important; border-style: solid !important; box-shadow: 0 0 0 1px #f2d38a, 0 3px 8px rgba(0,0,0,.7) !important; }
/* icon medallions */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lead, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-slb{
  border-color: transparent !important; border-style: solid !important;
  background: radial-gradient(circle at 50% 28%, #2e2c29, #100f0d 80%) padding-box  /* (build) neutral black, as the black-leather notes ask of buttons and tiles; was brown #3c2d1e -> #18110b */, var(--dk-gilt) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255,225,160,.25), inset 0 -2px 3px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.7) !important; color: var(--dk-gold) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lead svg, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-slb svg{ color: var(--dk-gold) !important; stroke: currentColor; }
/* effect chip: blue enamel */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-chip.u-eff{ border-color: transparent !important; border-style: solid !important; background: linear-gradient(#e8eef8,#c4d3ec) padding-box, var(--dk-gilt) border-box !important; color:#14243f !important; box-shadow: inset 0 1px 0 #fff, var(--dk-lift-s) !important; }
/* toggles */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle{ background: linear-gradient(180deg,#0e0a07,#1f1710) !important; box-shadow: inset 0 2px 4px rgba(0,0,0,.8) !important; border-color: rgba(201,154,72,.4) !important; border-style: solid !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle.u-on{ background: var(--dk-leather-ox) !important; border-color:#2a0703 !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle::before, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle::after, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle > *{ background: radial-gradient(circle at 35% 30%,#8a7a62,#4a3e30 70%,#2a221a) !important; box-shadow: 0 1px 2px rgba(0,0,0,.8) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle.u-on::before, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle.u-on::after, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle.u-on > *{ background: radial-gradient(circle at 35% 30%,#fff3c8,#d8ae5a 55%,#8a6224) !important; }
/* tab bar: leather with gilt rule */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-tabbar{ background: linear-gradient(180deg,rgba(22,21,19,.94),rgba(9,9,8,.97)), var(--dk-leather) 0 0/768px 768px !important; border-top-color: transparent !important;
  box-shadow: 0 -1px 0 #0a0705, 0 -2px 0 rgba(214,168,76,.65), 0 -3px 0 rgba(0,0,0,.6), 0 -10px 20px -6px rgba(0,0,0,.7) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-tabbar .u-on, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-tabbar [aria-current], html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-tabbar .on{ color: var(--dk-gold) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-abar{ background: transparent !important; }
/* map: bevelled gilt frame */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body #hearthRpv .rpv-map{ background: #0d0c0b !important; border-color: #8a6224 !important; border-style: solid !important;   }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body #hearthRpv .rpv-map::after{ box-shadow: inset 0 0 0 2px #1a1006, inset 0 0 0 5px #b8893e, inset 0 0 0 6px #f2d892, inset 0 0 0 8px #4e3410, inset 0 0 0 9px rgba(0,0,0,.85), inset 0 0 34px 8px rgba(0,0,0,.6) !important; }
/* misc text tone */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-name, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-t-body.u-rn{ color: var(--dk-ink) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-dot.dk-dot-on{ box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 0 0 2px rgba(214,168,76,.45) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button.u-on i{ color:#fbe9cf !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-join, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-join *{ color:#fbe9cf !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-end:not(.cmL-end){ outline-offset:-3px !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-mid{ background: linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.10)) !important; box-shadow: inset 0 -1px 0 rgba(214,168,76,.40), 0 1px 0 rgba(0,0,0,.6) !important; color: var(--dk-ink2) !important; }


/* ---------- Light v2: the design layer (themes/v2/light.layer.css) ---------- */
/* Hearth Light v2 — designed parchment theme layer. MOCK ONLY. html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body = high-specificity prefix */
html:root[data-palette][data-palette][data-palette][data-look="light"]{
  --pv-ink:#2a1a0c; --pv-ink2:#4a3218; --pv-muted:#5c4428;
  --pv-ox:#7a1f12; --pv-ox-d:#4e120a; --pv-bronze:#6e4a14; --pv-gild:#b8873a;
  --pv-parch:url("../img/theme/parchment-768.webp"); --pv-vellum:url("../img/theme/vellum-384.webp");
  --pv-gilt:linear-gradient(160deg,#ecc979 0%,#b8873a 16%,#6e4a14 38%,#dcb560 55%,#8a6224 74%,#4f3410 100%);
  --pv-gilt-h:linear-gradient(90deg,#6b4818,#c99a48 20%,#f4dd98 50%,#c99a48 80%,#6b4818);
  --pv-bevel:inset 0 1px 0 rgba(255,251,236,.95), inset 0 -1px 0 rgba(110,72,26,.22), inset 0 0 0 1px rgba(255,243,210,.5);
  --pv-lift:0 1px 1px rgba(70,40,12,.25), 0 3px 6px -1px rgba(92,56,20,.20), 0 12px 24px -6px rgba(92,56,20,.30);
  --pv-lift-s:0 1px 1px rgba(70,40,12,.25), 0 2px 5px -1px rgba(92,56,20,.22);
  --pv-fill:radial-gradient(120% 70% at 50% 0%,rgba(255,251,238,.75),rgba(255,251,238,0) 70%), linear-gradient(180deg,rgba(248,239,219,.92),rgba(238,223,192,.90)), var(--pv-vellum);
  --pv-sunk:linear-gradient(180deg,rgba(150,105,45,.10),rgba(150,105,45,.04)), var(--pv-vellum);
  --pv-leather-ox:radial-gradient(130% 80% at 50% -10%,rgba(255,200,170,.28),rgba(255,200,170,0) 55%), linear-gradient(180deg,#962f1f,#6e1b10 55%,#521209);
  --pv-leather-br:radial-gradient(130% 80% at 50% -10%,rgba(255,235,190,.32),rgba(255,235,190,0) 55%), linear-gradient(180deg,#8f6528,#6b4718 55%,#4f3410);
  --pv-leather-off:linear-gradient(180deg,#d9c39b,#c4a878);
  --hearth-oak: var(--pv-parch);
}
/* ---------- page: aged parchment + warm vignette ---------- */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body #content.u-csm, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body main.u-legacy{
  background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 45%, rgba(120,72,22,.26) 80%, rgba(84,46,12,.46) 100%),
              var(--pv-parch) 0 0/768px 768px repeat, #eedfbf !important;
  background-attachment: fixed !important; background-blend-mode: normal !important; color: var(--pv-ink) !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-r{ background: transparent !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-band, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-side, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body:not(.cm-port) .cm-pane{ background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 50%, rgba(120,72,22,.16) 100%), var(--pv-parch) 0 0/768px 768px, #eedfbf !important; }
/* ---------- cards: vellum, gilt bevel edge, layered warm shadows ---------- */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-raised, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-grp, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-parch, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-st, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-c, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-gb, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ab, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ac,
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-info, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-skillsb, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mv, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-rnd, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-pv, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-heart, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-slots{
  border-color: transparent !important; border-style: solid !important;
  background: var(--pv-fill), var(--pv-gilt) !important;
  background-clip: padding-box, padding-box, padding-box, border-box !important; background-origin: padding-box, padding-box, padding-box, border-box !important;
  box-shadow: var(--pv-bevel), var(--pv-lift) !important; color: var(--pv-ink) !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-st, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-c, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-gb, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ab, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mv, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-rnd, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-heart, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-info, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-skillsb, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ac{ box-shadow: var(--pv-bevel), var(--pv-lift-s) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-sunk{ border-color: rgba(110,74,28,.35) !important; border-style: solid !important; background: var(--pv-sunk) !important; box-shadow: inset 0 2px 5px rgba(92,56,20,.16), inset 0 0 0 1px rgba(255,248,228,.4), 0 1px 0 rgba(255,250,236,.8) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card::before, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card::after{ background: transparent !important; box-shadow:none !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card:not(.hv-on){ filter: saturate(.7) brightness(.9) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door b{ color: var(--pv-ox) !important; text-shadow: 0 1px 0 rgba(255,250,236,.8) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door small, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door span{ color: var(--pv-muted) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door{ background: linear-gradient(180deg,rgba(255,252,243,.95),rgba(244,232,206,.85)) padding-box, var(--pv-vellum) padding-box, var(--pv-gilt) border-box !important; }
/* door medallions */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door i, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door .hv-di{ color: var(--pv-ox) !important; }
/* ---------- gilt arch rims ---------- */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-por, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-porb{
  background: var(--pv-gilt) !important;
  box-shadow: 0 0 0 1px #5a3c12, inset 0 1px 0 rgba(255,246,206,.9), inset 0 -2px 3px rgba(80,50,10,.45), 0 4px 8px rgba(80,46,12,.35), 0 14px 28px -6px rgba(92,56,20,.40) !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-pin{ background:#20140a !important; box-shadow: inset 0 0 0 1px rgba(60,35,8,.9), inset 0 3px 8px rgba(0,0,0,.55) !important; }
/* ---------- type: ink, bronze, oxblood; illuminated drop-cap + rubricated rule ---------- */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-nm, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-nm{ color: var(--pv-ink) !important; text-shadow: 0 1px 0 rgba(255,250,236,.7) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-nm::first-letter, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-nm::first-letter{ line-height: 0;
  color: var(--pv-ox); font-size:1.42em;  
  text-shadow: 1px 1px 0 #d6ad5a, 2px 2px 0 rgba(110,72,20,.35);
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-nm{  background: linear-gradient(90deg, var(--pv-ox) 0, var(--pv-ox) 38%, rgba(122,31,18,0) 72%) 0 100%/100% 1.5px no-repeat !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-nm{  background: linear-gradient(90deg, rgba(122,31,18,0), var(--pv-ox) 30%, var(--pv-ox) 70%, rgba(122,31,18,0)) 50% 100%/70% 1px no-repeat !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-t-label.u-gl, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-band h3, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-mh h2{ color: var(--pv-ox) !important;  }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-t-label.u-gl::before{ content:"❧ "; color: var(--pv-gild); }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body h1, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body h2, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body h3{ text-shadow: none !important; }
/* ---------- buttons: embossed vellum (secondary), tooled leather (primary) ---------- */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-use-btn, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pill, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs-roll, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-join, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-sign, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-mb, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-paper, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-insp, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hb,
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-pill, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button:not(.u-on), html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mode:not(.on), html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-cardb, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-coin, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-counter, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pane .u-tabs button:not(.on){
  border-color: transparent !important; border-style: solid !important;
  background: linear-gradient(180deg,#fffaf0,#f1e2c4) padding-box, var(--pv-gilt) border-box !important;
  box-shadow: inset 0 1px 0 #fffdf6, inset 0 -2px 0 rgba(150,105,45,.18), 0 1px 1px rgba(70,40,12,.28), 0 3px 6px -2px rgba(92,56,20,.30) !important;
  color: var(--pv-bronze) !important; text-shadow: 0 1px 0 rgba(255,252,240,.8) !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-use-btn *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pill *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs-roll *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-pill *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-join *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-sign *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-paper *{ color: inherit !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-counter button, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-counter span{ background: transparent !important; box-shadow:none !important; border-color: transparent !important; color: var(--pv-ink) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-counter .resource-use-btn{ border-right-color: rgba(110,74,28,.35) !important; border-right-style: solid !important; color: var(--pv-bronze) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs-roll.u-hit, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pill{ color: var(--pv-ox) !important;  }
/* primary: oxblood tooled leather with stitched inner edge */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-go:not([aria-disabled="true"]), html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-end:not([aria-disabled="true"]), html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-star.u-ready, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-d-dm .hv-dn{
  border-color: #3a0c06 !important; border-style: solid !important; background: var(--pv-leather-ox) !important; color:#fbecd6 !important;
  box-shadow: inset 0 1px 0 rgba(255,210,180,.35), inset 0 -2px 4px rgba(30,5,0,.45), 0 1px 1px rgba(40,10,4,.4), 0 4px 10px -2px rgba(80,20,10,.45) !important;
  outline: 1px dashed rgba(240,200,150,.55) !important; outline-offset: -5px !important; text-shadow: 0 -1px 0 rgba(30,5,0,.5) !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-go:not([aria-disabled="true"]) *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-end:not([aria-disabled="true"]) *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-star.u-ready *{ color: inherit !important; }
/* disabled primary: un-dyed tooled leather */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-go[aria-disabled="true"]{
  border-color: rgba(110,74,28,.55) !important; border-style: solid !important; background: var(--pv-leather-off) !important; color:#3e2a12 !important;
  box-shadow: inset 0 1px 0 rgba(255,246,222,.6), inset 0 -2px 3px rgba(110,74,28,.18) !important;
  outline: 1px dashed rgba(110,74,28,.4) !important; outline-offset:-5px !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-go[aria-disabled="true"] *{ color: inherit !important; }
/* selected tabs: pressed into the page (inset), oxblood ink, gilt underline */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button.u-on, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mode.on, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-pane button.on{
  border-color: rgba(110,74,28,.55) !important; border-style: solid !important; color: var(--pv-ox) !important;
  background: linear-gradient(180deg,rgba(150,100,40,.20),rgba(150,100,40,.06)), linear-gradient(#ead8b3,#ead8b3) !important;
  box-shadow: inset 0 2px 5px rgba(80,46,12,.38), inset 0 0 0 1px rgba(80,46,12,.12), 0 1px 0 rgba(255,250,236,.9) !important;
  text-shadow: 0 1px 0 rgba(255,250,236,.7) !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button.u-on *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mode.on *{ color: inherit !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button i, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-econ button.u-on i{ background: var(--pv-ox) !important; color:#fbecd6 !important; box-shadow: inset 0 1px 0 rgba(255,200,170,.4) !important; }
/* HP: oxblood leather */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-hp, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-hp{ border-color: #3a0c06 !important; border-style: solid !important; background: var(--pv-leather-ox) !important; box-shadow: inset 0 1px 0 rgba(255,210,180,.35), inset 0 -2px 4px rgba(30,5,0,.45), var(--pv-lift-s) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-hp, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-hp *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-hp, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-hp *{ color:#fbecd6 !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hp{ border-color: transparent !important; border-style: solid !important; background: linear-gradient(#3a0c06,#3a0c06) padding-box, var(--pv-gilt) border-box !important; box-shadow: var(--pv-lift-s) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hpf{ background: var(--pv-leather-ox) !important; box-shadow: inset 0 1px 0 rgba(255,210,180,.35) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hp, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-hp *{ color:#fbecd6 !important; }
/* level seal */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-lvl{ background: radial-gradient(circle at 40% 30%, #a83a26, #5e160b 70%) !important; color:#f6dfa8 !important; border-color: #d0a554 !important; border-style: solid !important; box-shadow: 0 0 0 1px #5a3c12, 0 3px 6px rgba(60,20,8,.45) !important; }
/* icon medallions: settings leads, sheet equipment slots, door icons */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lead, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-slb{
  border-color: transparent !important; border-style: solid !important;
  background: radial-gradient(circle at 50% 30%, #fffaf0, #ecd9b4 80%) padding-box, var(--pv-gilt) border-box !important;
  box-shadow: inset 0 1px 0 #fffdf6, inset 0 -2px 3px rgba(150,105,45,.22), 0 1px 2px rgba(70,40,12,.30) !important; color: var(--pv-ox) !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lead svg, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-slb svg{ color: var(--pv-ox) !important; stroke: currentColor; }
/* effect chip: blue enamel (kept, a little richer) */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-chip.u-eff{ border-color: transparent !important; border-style: solid !important; background: linear-gradient(#eef3fa,#cfdcef) padding-box, var(--pv-gilt) border-box !important; color:#1c2f4e !important; box-shadow: inset 0 1px 0 #fff, var(--pv-lift-s) !important; }
/* toggles */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle{ background: linear-gradient(180deg,#d8c39c,#e8d8b8) !important; box-shadow: inset 0 2px 3px rgba(80,46,12,.35) !important; border-color: rgba(110,74,28,.45) !important; border-style: solid !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle.u-on{ background: var(--pv-leather-ox) !important; border-color:#3a0c06 !important; }
/* tab bar: vellum with gilt rule */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-tabbar{ background: linear-gradient(180deg,rgba(255,250,238,.96),rgba(243,230,203,.96)), var(--pv-vellum) !important; border-top-color: transparent !important;
  box-shadow: 0 -1px 0 #8a6224, 0 -2px 0 rgba(255,240,200,.7), 0 -8px 18px -6px rgba(92,56,20,.25) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-tabbar .u-on, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-tabbar [aria-current], html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-tabbar .on{ color: var(--pv-ox) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-abar{ background: transparent !important; }
/* map: bevelled bronze frame so it sits in the page */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body #hearthRpv .rpv-map{ background: #3b2814 !important; border-color: #8a6224 !important; border-style: solid !important;   }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body #hearthRpv .rpv-map::after{ box-shadow: inset 0 0 0 2px #4a3010, inset 0 0 0 5px #c79a48, inset 0 0 0 6px #f2d892, inset 0 0 0 8px #6b4818, inset 0 0 0 9px rgba(40,24,6,.8), inset 0 0 30px 6px rgba(40,24,6,.45) !important; }
/* misc text tone */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .resource-name, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-t-body.u-rn{ color: var(--pv-ink) !important; }

/* big cards: 2px gilt + inner bronze hairline (manuscript double rule) + warm halo on the active hero */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-raised, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-grp{ 
  box-shadow: var(--pv-bevel), inset 0 0 0 4px rgba(255,250,236,.35), inset 0 0 0 5px rgba(138,98,36,.42), var(--pv-lift) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-card.hv-on{ box-shadow: var(--pv-bevel), inset 0 0 0 4px rgba(255,250,236,.35), inset 0 0 0 5px rgba(138,98,36,.5), 0 0 0 1px rgba(110,72,20,.25), 0 2px 3px rgba(70,40,12,.25), 0 18px 34px -8px rgba(110,64,16,.45), 0 0 46px 4px rgba(214,168,82,.38) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-parch::before, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-card.u-parch::after{ background:none !important; box-shadow:none !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs-use{ border-color: transparent !important; border-style: solid !important; background: linear-gradient(180deg,#fffaf0,#f1e2c4) padding-box, var(--pv-gilt) border-box !important;
  box-shadow: inset 0 1px 0 #fffdf6, inset 0 -2px 0 rgba(150,105,45,.18), 0 1px 1px rgba(70,40,12,.28), 0 3px 6px -2px rgba(92,56,20,.30) !important; color: var(--pv-ox) !important;  }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-dot.lt-dot-on{ box-shadow: 0 0 0 1px rgba(60,35,10,.55) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-dot-pale{ background:#f6efe0 !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door.hv-d-dm{  box-shadow: var(--pv-bevel), 0 0 0 1px rgba(122,31,18,.35), var(--pv-lift), 0 0 22px rgba(214,168,82,.30) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-door{ box-shadow: var(--pv-bevel), inset 0 0 0 3px rgba(255,250,236,.35), inset 0 0 0 4px rgba(138,98,36,.40), var(--pv-lift) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-st, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-c, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cm-gb, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ab, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-mv, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-rnd, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3-heart, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-info, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-skillsb, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-ac, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .cmL-slots{  }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle::before, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle::after, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle > *{ background: radial-gradient(circle at 35% 30%,#fffaf0,#e9d8b4 70%,#b89a6a) !important; box-shadow: 0 1px 2px rgba(60,35,10,.45) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle.u-on::before, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle.u-on::after, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-toggle.u-on > *{ background: radial-gradient(circle at 35% 30%,#fff3c8,#d8ae5a 55%,#8a6224) !important; }


/* ---------- dark: the rest (themes/v2/extra.css) ---------- */

/* ---------- the Look and feel picker (Settings): the signed v3 look ---------- */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-page .u-t-h1::first-letter{ font-size:1.42em; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tile{ border:2px solid transparent !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tile .u-sw{ box-shadow: inset 0 -1px 0 rgba(0,0,0,.35); }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-wheel{ box-shadow: 0 0 0 2px #b8893e, 0 0 0 3px #f2d892, 0 0 0 5px #a87b2e, 0 4px 10px rgba(0,0,0,.45) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero .u-arch{ border:0 !important; padding:3px; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero .u-arch img{ border-radius: inherit; }
/* Hearth+ floors (never on in the shipped app): the chosen texture's tile at 0.55 over its page colour, or a plain tint.
   html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus] is <html> with a Hearth+ part on; it outranks the free floor above. */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tile"] body, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tile"] body #content.u-csm, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tile"] body main.u-legacy{
  background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 45%, rgba(0,0,0,.22) 100%), linear-gradient(rgb(from var(--page) r g b / .45), rgb(from var(--page) r g b / .45)), var(--look-tile) 0 0/512px 512px repeat, var(--page) !important;
  background-attachment: fixed !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"]:not([data-plus~="tile"]) body, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"]:not([data-plus~="tile"]) body #content.u-csm, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"]:not([data-plus~="tile"]) body main.u-legacy,
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body #content.u-csm, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body main.u-legacy{
  background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 45%, rgba(0,0,0,.18) 100%), var(--page) !important; background-attachment: fixed !important;
}
/* (D2) a tinted page is one flat colour (no vignette), so the colour its text is checked against is the colour it is */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body #content.u-csm, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body main.u-legacy{ background: var(--page) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"] body .cmL-band, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"] body .cmL-side, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"] body:not(.cm-port) .cm-pane,
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"] body .cmL-band, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"] body .cmL-side, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"] body:not(.cm-port) .cm-pane{ background: var(--page) !important; }
/* text that follows a tinted page (or Blue's cool white) */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="ink"]{ --dk-ink: var(--ink); --dk-ink2: var(--ink-soft); --dk-muted: var(--look-muted, var(--ink-soft)); --pv-ink: var(--ink); --pv-ink2: var(--ink-soft); --pv-muted: var(--look-muted, var(--ink-soft)); }
/* a picked frame colour: the gilt strokes are shaded from it */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="frame"]{
  --look-gilt: linear-gradient(160deg, color-mix(in oklab, var(--look-frame) 55%, #fff) 0%, var(--look-frame) 16%, color-mix(in oklab, var(--look-frame) 48%, #000) 37%, color-mix(in oklab, var(--look-frame) 80%, #fff) 55%, color-mix(in oklab, var(--look-frame) 72%, #000) 74%, color-mix(in oklab, var(--look-frame) 38%, #000) 100%);
  --dk-gilt: var(--look-gilt); --pv-gilt: var(--look-gilt); --dk-gold: var(--gold); --dk-gold-d: var(--look-frame); --pv-bronze: var(--gold); --pv-gild: var(--look-frame); --pv-ox: var(--gold);
}



html:root[data-palette][data-palette][data-palette][data-look="dark"]{ --rs-backdrop: rgba(0,0,0,.72); }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-page .u-t-h1::first-letter{ color: var(--dk-gold); text-shadow: 1px 1px 0 #6a1a0e, 0 0 8px rgba(232,184,92,.35); }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-mode{ border:1px solid transparent !important; background: var(--dk-btn) padding-box, var(--dk-gilt) border-box !important; color: var(--dk-gold) !important; box-shadow: inset 0 1px 0 rgba(255,225,160,.26), inset 0 -2px 0 rgba(0,0,0,.5), 0 1px 1px rgba(0,0,0,.8) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-mode.u-on, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tabs span.u-on{ border:1px solid #a87b2e !important; color:#26170a !important;
  background: radial-gradient(120% 90% at 50% 0%,rgba(255,248,220,.55),rgba(255,248,220,0) 60%), linear-gradient(180deg,#f2cf7c,#d3a24a 55%,#a97a2c) !important;
  box-shadow: inset 0 1px 0 rgba(255,250,225,.85), inset 0 -2px 0 rgba(90,56,10,.45), 0 1px 1px rgba(0,0,0,.8), 0 0 14px rgba(232,184,92,.30) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-plus{ background: linear-gradient(180deg,#f2cf7c,#c9973f) !important; color:#26170a !important; box-shadow: inset 0 1px 0 rgba(255,250,225,.7), 0 1px 1px rgba(0,0,0,.6); }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tile{ background: linear-gradient(#0d0c0b,#0d0c0b) padding-box, var(--dk-gilt) border-box !important; box-shadow: var(--dk-bevel), var(--dk-lift-s) !important; color: var(--dk-ink2) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tile.u-on{ box-shadow: var(--dk-bevel), inset 0 0 0 2px rgba(232,184,92,.55), var(--dk-lift-s), 0 0 18px rgba(226,170,70,.42) !important; color: var(--dk-gold) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-note{ border:1px dashed rgba(200,90,70,.75) !important; background: rgba(124,34,20,.34) !important; color: var(--dk-ink) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-abil span{ border:1px solid transparent !important; background: var(--dk-fill), var(--dk-gilt) !important; background-clip: padding-box, padding-box, padding-box, border-box !important; background-origin: padding-box, padding-box, padding-box, border-box !important; box-shadow: var(--dk-bevel), var(--dk-lift-s) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero .u-arch{ background: var(--dk-gilt) !important; box-shadow: 0 0 0 1px #2a1a06, inset 0 1px 0 rgba(255,246,206,.9), 0 4px 10px rgba(0,0,0,.6) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero .u-nm::first-letter{ color: var(--dk-gold); font-size:1.3em; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tabs span:not(.u-on), html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-sec{ border:1px solid transparent !important; background: var(--dk-btn) padding-box, var(--dk-gilt) border-box !important; color: var(--dk-gold) !important; }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hp{ border:1px solid #2a0703; background: var(--dk-leather-ox) !important; color:#fbe9cf !important; box-shadow: inset 0 1px 0 rgba(255,200,170,.35), 0 0 0 1px rgba(214,168,76,.5); }
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-pri{ border:1px solid #a87b2e !important; color:#26170a !important; background: radial-gradient(120% 90% at 50% 0%,rgba(255,248,220,.55),rgba(255,248,220,0) 60%), linear-gradient(180deg,#f2cf7c,#d3a24a 55%,#a97a2c) !important; outline:1px dashed rgba(38,23,10,.45); outline-offset:-4px; }



html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-mode.u-on *, html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hp *{ color: inherit !important; }



html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3.u-two .u-cs3-r{ border-left-color: rgba(214,168,76,.42) !important; border-bottom-color: rgba(214,168,76,.42) !important; }

/* ---------- light: the rest (themes/v2/extra.css) ---------- */

/* ---------- the Look and feel picker (Settings): the signed v3 look ---------- */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-page .u-t-h1::first-letter{ font-size:1.42em; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tile{ border:2px solid transparent !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tile .u-sw{ box-shadow: inset 0 -1px 0 rgba(0,0,0,.35); }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-wheel{ box-shadow: 0 0 0 2px #b8893e, 0 0 0 3px #f2d892, 0 0 0 5px #a87b2e, 0 4px 10px rgba(0,0,0,.45) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero .u-arch{ border:0 !important; padding:3px; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero .u-arch img{ border-radius: inherit; }
/* Hearth+ floors (never on in the shipped app): the chosen texture's tile at 0.55 over its page colour, or a plain tint.
   html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus] is <html> with a Hearth+ part on; it outranks the free floor above. */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tile"] body, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tile"] body #content.u-csm, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tile"] body main.u-legacy{
  background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 45%, rgba(0,0,0,.22) 100%), linear-gradient(rgb(from var(--page) r g b / .45), rgb(from var(--page) r g b / .45)), var(--look-tile) 0 0/512px 512px repeat, var(--page) !important;
  background-attachment: fixed !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"]:not([data-plus~="tile"]) body, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"]:not([data-plus~="tile"]) body #content.u-csm, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"]:not([data-plus~="tile"]) body main.u-legacy,
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body #content.u-csm, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body main.u-legacy{
  background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 45%, rgba(0,0,0,.18) 100%), var(--page) !important; background-attachment: fixed !important;
}
/* (D2) a tinted page is one flat colour (no vignette), so the colour its text is checked against is the colour it is */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body #content.u-csm, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"]:not([data-plus~="tile"]) body main.u-legacy{ background: var(--page) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"] body .cmL-band, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"] body .cmL-side, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tex"] body:not(.cm-port) .cm-pane,
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"] body .cmL-band, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"] body .cmL-side, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="tint"] body:not(.cm-port) .cm-pane{ background: var(--page) !important; }
/* text that follows a tinted page (or Blue's cool white) */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="ink"]{ --dk-ink: var(--ink); --dk-ink2: var(--ink-soft); --dk-muted: var(--look-muted, var(--ink-soft)); --pv-ink: var(--ink); --pv-ink2: var(--ink-soft); --pv-muted: var(--look-muted, var(--ink-soft)); }
/* a picked frame colour: the gilt strokes are shaded from it */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette][data-plus][data-plus~="frame"]{
  --look-gilt: linear-gradient(160deg, color-mix(in oklab, var(--look-frame) 55%, #fff) 0%, var(--look-frame) 16%, color-mix(in oklab, var(--look-frame) 48%, #000) 37%, color-mix(in oklab, var(--look-frame) 80%, #fff) 55%, color-mix(in oklab, var(--look-frame) 72%, #000) 74%, color-mix(in oklab, var(--look-frame) 38%, #000) 100%);
  --dk-gilt: var(--look-gilt); --pv-gilt: var(--look-gilt); --dk-gold: var(--gold); --dk-gold-d: var(--look-frame); --pv-bronze: var(--gold); --pv-gild: var(--look-frame); --pv-ox: var(--gold);
}



/* ---------- Light: what the remap cannot know ---------- */
html:root[data-palette][data-palette][data-palette][data-look="light"]{
  --rs-backdrop: rgba(58,38,14,.52); --sh-scrim: rgba(58,38,14,.55);
  --card-shadow: rgba(92,56,20,.30);
  --sh1: 0 1px 1px rgba(70,40,12,.25), 0 2px 5px -1px rgba(92,56,20,.22);
  --sh2: 0 1px 1px rgba(70,40,12,.25), 0 3px 6px -1px rgba(92,56,20,.20), 0 12px 24px -6px rgba(92,56,20,.30);
  --sh3: 0 2px 4px rgba(70,40,12,.28), 0 20px 50px -8px rgba(70,40,12,.45);
  --rs-shadow-1: var(--sh1); --rs-shadow-2: var(--sh2); --rs-shadow-3: var(--sh3);
  --pr-sh-1: var(--sh1); --pr-sh-2: var(--sh2);
  --pr-head-sh: 0 1px 0 rgba(255,250,236,.7); --pr-engrave: 0 1px 0 rgba(255,250,236,.6);
  --pr-hl: inset 0 1px 0 rgba(255,251,236,.8);
  --pr-sheen: linear-gradient(180deg, rgba(255,252,240,.55) 0%, rgba(255,252,240,0) 40%, rgba(120,80,30,.05) 100%);
  --oak-press: inset 0 1px 0 rgba(255,251,236,.9), 0 1px 2px rgba(70,40,12,.3);
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-page .u-t-h1::first-letter{ color: var(--pv-ox); text-shadow: 1px 1px 0 #d6ad5a, 2px 2px 0 rgba(110,72,20,.35); }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-mode{ border:1px solid transparent !important; background: linear-gradient(180deg,#fffaf0,#f1e2c4) padding-box, var(--pv-gilt) border-box !important; color: var(--pv-bronze) !important; box-shadow: inset 0 1px 0 #fffdf6, inset 0 -2px 0 rgba(150,105,45,.18), 0 1px 1px rgba(70,40,12,.28) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-mode.u-on, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tabs span.u-on{ border:1px solid rgba(110,74,28,.55) !important; color: var(--pv-ox) !important;
  background: linear-gradient(180deg,rgba(150,100,40,.20),rgba(150,100,40,.06)), linear-gradient(#ead8b3,#ead8b3) !important;
  box-shadow: inset 0 2px 5px rgba(80,46,12,.38), inset 0 0 0 1px rgba(80,46,12,.12), 0 1px 0 rgba(255,250,236,.9) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-plus{ background: linear-gradient(180deg,#f0d898,#e2c47c) !important; color:#4e3410 !important; box-shadow: inset 0 1px 0 rgba(255,252,236,.8), 0 0 0 1px rgba(110,74,28,.45); }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tile{ background: linear-gradient(#fbf4e3,#fbf4e3) padding-box, var(--pv-gilt) border-box !important; box-shadow: var(--pv-bevel), var(--pv-lift-s) !important; color: var(--pv-muted) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tile.u-on{ box-shadow: var(--pv-bevel), inset 0 0 0 2px rgba(138,98,36,.6), var(--pv-lift-s), 0 0 18px rgba(214,168,82,.5) !important; color: var(--pv-ox) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-note{ border:1px dashed rgba(122,31,18,.7) !important; background: rgba(122,31,18,.07) !important; color: var(--pv-ox-d) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-abil span{ border:1px solid transparent !important; background: var(--pv-fill), var(--pv-gilt) !important; background-clip: padding-box, padding-box, padding-box, border-box !important; background-origin: padding-box, padding-box, padding-box, border-box !important; box-shadow: var(--pv-bevel), var(--pv-lift-s) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero .u-arch{ background: var(--pv-gilt) !important; box-shadow: 0 0 0 1px #5a3c12, inset 0 1px 0 rgba(255,246,206,.9), 0 4px 8px rgba(80,46,12,.35) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hero .u-nm::first-letter{ color: var(--pv-ox); font-size:1.3em; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-tabs span:not(.u-on), html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-sec{ border:1px solid transparent !important; background: linear-gradient(180deg,#fffaf0,#f1e2c4) padding-box, var(--pv-gilt) border-box !important; color: var(--pv-bronze) !important; }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hp{ border:1px solid #3a0c06; background: var(--pv-leather-ox) !important; color:#fbecd6 !important; box-shadow: inset 0 1px 0 rgba(255,210,180,.35); }
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-pri{ border:1px solid #3a2408 !important; color:#fff8ea !important; background: var(--pv-leather-br) !important; outline:1px dashed rgba(240,210,160,.55); outline-offset:-4px; }



html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-mode.u-on *, html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-lkp-hp *{ color: inherit !important; }



/* the app's own dark texture tiles (data URIs) have no place on parchment */
html:root[data-palette][data-palette][data-palette][data-look="light"], html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body{ --tex-page: none; --tex: none; --hx-leather: none; --hx-charcoal: none; --page-texture: none; }
/* the line round the sheet's right-hand column (and its closed bottom edge, part 2) reads on parchment */
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .u-cs3.u-two .u-cs3-r{ border-left-color: rgba(138,98,36,.55) !important; border-bottom-color: rgba(138,98,36,.55) !important; }

/* (D2) Home keeps its own text tokens (home-v2.css .hv-home); under the background wheel they are the checked ones */
html[data-plus~="tint"] .hv-home { --ink: var(--look-ink); --ink-soft: var(--look-soft); --ink-faded: var(--look-muted); --gold: var(--look-gold); }
