/* Generated by pricing/build_admin_css.py — Admin only. Do not edit by hand. */
/* text sizes x 16/14 (normal text 16px, like the website) */
body.admin { font-size: 16px; }
body.admin { font-size: 16px; }
body.admin .brand b { font-size: 17px; }
body.admin .brand small { font-size: 13px; }
body.admin .side .group { font-size: 12.5px; }
body.admin .side .foot .who { font-size: 13.5px; }
body.admin .top h1 { font-size: 18.5px; }
body.admin .top .meta { font-size: 14.5px; }

body.admin h2 { font-size: 25px; }
body.admin h3 { font-size: 17px; }
body.admin .sub { font-size: 15px; }

body.admin button.link { font-size: 15px; }
body.admin button.textdel { font-size: 15px; }
body.admin button.small { font-size: 14.5px; }
body.admin button.big { font-size: 17px; }
body.admin label { font-size: 14.5px; }
body.admin .money span { font-size: 15px; }
body.admin .steps button, body.admin .seg-tabs button { font-size: 15px; }
body.admin .type b { font-size: 16px; }
body.admin .type span { font-size: 13.5px; }

body.admin .badge { font-size: 13.5px; }
body.admin .ghead { font-size: 12.5px; }
body.admin .tile.letter { font-size: 16px; }
body.admin .tile.named { font-size: 15px; }
body.admin .tile.clar b { font-size: 15px; }
body.admin .tile.clar span { font-size: 13px; }
body.admin .tile .x { font-size: 13.5px; }
body.admin .addrow button { font-size: 15px; }
body.admin .chip { font-size: 15px; }
body.admin .cut { font-size: 12.5px; }
body.admin .shape b { font-size: 15px; }
body.admin .shape .meta { font-size: 13px; }
body.admin .shape .st { font-size: 12px; }
body.admin .dtop .nm small { font-size: 12.5px; }
body.admin .dtop .nm input { font-size: 19.5px; }
body.admin .dtop .act { font-size: 12.5px; }
body.admin .dsec .lbl { font-size: 15px; }
body.admin .dsec .lbl .cnt, body.admin .cnt { font-size: 13.5px; }
body.admin .opt { font-size: 14.5px; }
body.admin .seg button small { font-size: 13.5px; }
body.admin table.list th { font-size: 13px; }
body.admin table.grid th { font-size: 13.5px; }
body.admin table.grid td.c { font-size: 15px; }
body.admin .steps-t .sub { font-size: 13.5px; }
body.admin .steps-t .aud { font-size: 13.5px; }
body.admin .steps-t tr.final td { font-size: 18.5px; }
body.admin .pricebox input { font-size: 19.5px; }

body.admin .msg { font-size: 15px; }
body.admin .toast { font-size: 15px; }
body.admin .gatebox .logo .w { font-size: 31px; }
body.admin .gatebox .logo .s { font-size: 16px; }
body.admin .gatebox h2 { font-size: 32px; }
body.admin .gatebox .sub { font-size: 16px; }
body.admin .gatebox label { font-size: 15px; }
body.admin .gatebox button[type=submit] { font-size: 16.5px; }
body.admin .gatebox .alt { font-size: 15px; }
body.admin .alert { font-size: 15px; }
body.admin .gatefoot { font-size: 13.5px; }
body.admin .acc-stats small { font-size: 13px; }
body.admin .acc-stats b { font-size: 27.5px; }
body.admin .acc-stats b.dir { font-size: 17px; }
body.admin .acc-stats span { font-size: 13.5px; }
body.admin table.acc .d { font-size: 14.5px; }
body.admin .logo .w { font-size: 26.5px; }
body.admin .logo .s { font-size: 13.5px; }
body.admin .av { font-size: 13.5px; }
body.admin .me b { font-size: 15.5px; }
body.admin .me small { font-size: 13.5px; }
@media (max-width: 900px) {
body.admin .logo .w { font-size: 19.5px; }
}

body.admin .crumbs { font-size: 14.5px; }
body.admin .ptitle { font-size: 36.5px; }
body.admin .psub p { font-size: 16px; }
body.admin .saved { font-size: 14.5px; }

body.admin .stype b { font-size: 16.5px; }
body.admin .stype .m { font-size: 14.5px; }
body.admin .utabs button { font-size: 16px; }
body.admin .utabs .n { font-size: 12.5px; }
body.admin .blk-h h3 { font-size: 17.5px; }
body.admin .blk-h p { font-size: 15px; }
body.admin .pill { font-size: 13.5px; }
body.admin .tip { font-size: 14.5px; }
body.admin .sc > b { font-size: 15.5px; }
body.admin .sc .meta { font-size: 13.5px; }
body.admin .st2 { font-size: 13px; }
body.admin .sc.new { font-size: 15.5px; }
body.admin .sc.new .plus { font-size: 25px; }
body.admin .sc.row > b, body.admin .sc.row .nm b { font-size: 15.5px; }
body.admin .grp { font-size: 14.5px; }
body.admin .grp .cut { font-size: 13.5px; }
body.admin .ig .ad { font-size: 15px; }
body.admin .ig.big input { font-size: 17px; }
body.admin .stbl th { font-size: 12.5px; }
body.admin .stbl .nc { font-size: 13.5px; }
body.admin .stbl td b { font-size: 16px; }
body.admin .stbl .d { font-size: 14.5px; }
body.admin .stbl td.ex small { font-size: 13.5px; }
body.admin .stbl .big { font-size: 31px; }
body.admin .exl { font-size: 15px; }
body.admin .aside { font-size: 14.5px; }
body.admin .stbl .toggle { font-size: 15px; }

body.admin .aside small { font-size: 13px; }




/* ---------- Brand (diamondrensu.com.au): Figtree, navy #00254e, headings 600 / 1.2 ---------- */
body.admin { --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --serif: "Figtree", sans-serif;
  --ink: #00254e; --ink-2: #33506f; --brand: #00254e; --brand-2: #0b3566; font-family: var(--font); color: var(--ink); }
body.admin h1, body.admin h2, body.admin h3, body.admin h4 { font-family: var(--font); font-weight: 600; line-height: 1.2; letter-spacing: 0; }
body.admin button, body.admin input, body.admin select, body.admin textarea { font-family: var(--font); }
body.admin .ptitle { font-size: 26px; }

/* ---------- Sparkle ---------- */
@keyframes adGlint { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes adTwinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
@keyframes adShine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.adstar { clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }

/* sidebar: champagne top glow, twinkling stars by the logo, gold highlight on the open page */
body.admin .side { background: linear-gradient(180deg, #fdf6e3 0, #fff 160px); }
body.admin .side .logo { position: relative; }
body.admin .side .logo::before, body.admin .side .logo::after { content: ""; position: absolute; pointer-events: none;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 3s ease-in-out infinite; }
body.admin .side .logo::before { width: 10px; height: 10px; right: 4px; top: 0; background: #d9b25a; }
body.admin .side .logo::after { width: 7px; height: 7px; left: 6px; top: 22px; background: #8fb0dc; animation-delay: 1.3s; }
body.admin .side nav a.on { background: linear-gradient(90deg, #fdf6e3, #fff7e6); color: #00254e; box-shadow: inset 3px 0 0 #c8962c; }
body.admin .side nav a.on svg.i { color: #b8892a; }
body.admin .side nav a:hover svg.i { color: #b8892a; }
body.admin .side .group { color: #8a6420; }
body.admin .side .me .av { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e9c876; }

/* page title with a gold star; cards with a thin moving gold edge */
body.admin .ptitle { position: relative; display: inline-block; }
body.admin .ptitle::after { content: ""; position: absolute; right: -18px; top: 2px; width: 11px; height: 11px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 3s ease-in-out infinite; }
body.admin .card, body.admin .blk { position: relative; overflow: hidden; }
body.admin .blk-h { background: linear-gradient(180deg, #fffaf0, #fff); }
body.admin .card::before, body.admin .blk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5px;
  background: linear-gradient(90deg, #e9c876, #fff4cc 25%, #b8892a 50%, #f5da8e 75%, #e9c876); background-size: 200% 100%; animation: adShine 8s linear infinite; }

/* tables: champagne header row, gold hover */
body.admin table.list th, body.admin table.grid th { background: #fdf6e3; color: #8a6420; }
body.admin table.list tr:hover td { background: #fffaf0; }

/* buttons: gold glint on the main buttons; gold outline on hover for the others */
body.admin button:not(.ghost):not(.secondary):not(.iconbtn):not(.link):not(.del):not(.stype):not(.opt):not(.x) { position: relative; overflow: hidden; }
body.admin button:not(.ghost):not(.secondary):not(.iconbtn):not(.link):not(.del):not(.stype):not(.opt):not(.x)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg);
  animation: adGlint 5s ease-in-out infinite; }
body.admin button.ghost:hover, body.admin button.secondary:hover { border-color: #e7d3a4; background: #fffaf0; }
body.admin .seg-tabs button.on, body.admin .steps button.on { box-shadow: 0 0 0 1px #e7d3a4, 0 2px 6px -2px rgba(184,137,42,.35); }

/* switches gold when on; gold focus ring on every box */
body.admin .toggle input:checked + i { background: linear-gradient(140deg, #f5da8e, #c8962c 60%, #b8892a); }
body.admin input:focus, body.admin select:focus, body.admin textarea:focus { border-color: #c8962c; box-shadow: 0 0 0 3px rgba(233,200,118,.35); outline: none; }

/* bottom Save bar: gold shimmer line on top */
body.admin .bar { border-top: 0; }
body.admin .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #e9c876 20%, #fff4cc 35%, #b8892a 50%, #f5da8e 65%, #e9c876 80%, transparent);
  background-size: 200% 100%; animation: adShine 6s linear infinite; }

/* sign-in box */
body.admin .gatebox { position: relative; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(184,137,42,.35); }
body.admin .gatebox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #e9c876, #fff4cc 25%, #b8892a 50%, #f5da8e 75%, #e9c876); background-size: 200% 100%; animation: adShine 6s linear infinite; }
body.admin #gate { background: radial-gradient(60% 45% at 50% 18%, #fdf6e3 0%, rgba(253,246,227,0) 70%), var(--bg); }


/* the owner's shape drawings sparkle: sapphire-tinted lines, a twinkling star and a glint on each drawing */
body.admin .ownwrap { position: relative; display: inline-grid; place-items: center; flex: none; }
body.admin .ownwrap img { filter: drop-shadow(0 1px 1.5px rgba(91,126,166,.35)); }
body.admin .ownwrap::before { content: ""; position: absolute; right: -5px; top: -4px; width: 8px; height: 8px; background: #8fb0dc; pointer-events: none;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: owTwinkle 2.8s ease-in-out infinite; }
body.admin .ownwrap::after { content: ""; position: absolute; left: 28%; top: 26%; width: 6px; height: 6px; background: #fff; pointer-events: none;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); filter: drop-shadow(0 0 2px #fff); animation: owTwinkle 2.8s ease-in-out 1.4s infinite; }
@keyframes owTwinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(25deg); } }
body.admin .on .ownwrap img, .scbody.admin .on .ownwrap img { filter: drop-shadow(0 0 4px rgba(233,200,118,.95)); }
body.admin .on .ownwrap::before { background: #d9b25a; }
@media (prefers-reduced-motion: reduce) { body.admin .ownwrap::before, body.admin .ownwrap::after { animation: none; } }

/* metal swatches (spheres and colour dots): polished metal like the quote page — banded gradient, a shine, a star glint */
body.admin .sphere, body.admin .msw { position: relative; overflow: hidden; }
body.admin .sphere.gold { background: linear-gradient(140deg, #fff4cc 0%, #ecc96c 30%, #c8962c 55%, #f5da8e 75%, #b8892a 100%); }
body.admin .sphere.white { background: linear-gradient(140deg, #ffffff 0%, #d9dee5 30%, #9aa3ad 55%, #eef1f4 75%, #8d96a1 100%); }
body.admin .sphere.rose { background: linear-gradient(140deg, #fff0e8 0%, #efb9a3 30%, #c97a5c 55%, #f6cdbd 75%, #b86a4d 100%); }
body.admin .sphere::before, body.admin .msw::before { content: ""; position: absolute; left: 14%; top: 8%; width: 52%; height: 30%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0)); transform: rotate(-28deg); pointer-events: none; }
body.admin .sphere::after, body.admin .msw::after { content: ""; position: absolute; right: 13%; top: 12%; width: 28%; height: 28%; background: #fff; pointer-events: none;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.8s ease-in-out infinite; }
body.admin .sphere { box-shadow: inset -2px -3px 6px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.12), 0 0 0 1px rgba(169,132,63,.25); }
body.admin .sc:hover .sphere { box-shadow: inset -2px -3px 6px rgba(0,0,0,.12), 0 0 8px rgba(233,200,118,.8); }
body.admin .sw { box-shadow: inset 0 -2px 3px rgba(0,0,0,.12), inset 1px 1px 1px rgba(255,255,255,.8); }

/* shape / side stone / metal cards: champagne corner glow; on hover a gold border + glow, a lift, a shine sweep and a twinkling star */
body.admin .sc { overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
body.admin .sc:not(.off):not(.new) { background: radial-gradient(120% 90% at 0% 0%, #fffaf0 0%, rgba(255,250,240,0) 55%), var(--surface); }
body.admin .sc:not(.new):hover { border-color: #e2c98f; box-shadow: 0 8px 20px -10px rgba(184,137,42,.55), 0 0 0 1px #f0e2bf; transform: translateY(-1px); }
body.admin .sc:not(.new)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); }
body.admin .sc:not(.new):hover::after { animation: adGlint 1.8s ease-in-out infinite; }
body.admin .sc:not(.new)::before { content: ""; position: absolute; right: 10px; bottom: 10px; width: 9px; height: 9px; background: #d9b25a; opacity: 0; pointer-events: none;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
body.admin .sc:not(.new):hover::before { animation: adTwinkle 1.6s ease-in-out infinite; }
body.admin .sc.new { border-color: #dcc189; background: linear-gradient(160deg, #fffaf0, #fdf3dc 60%, #fffaf0); color: #8a6420; }
body.admin .sc.new .plus { color: #c8962c; }
body.admin .sc.new:hover { border-style: solid; border-color: #c8962c; box-shadow: 0 6px 16px -8px rgba(184,137,42,.6); }
body.admin .sc.dragging, body.admin .sc.over { transform: none; }

/* colour and clarity tiles: diamond-white grade tiles, gem-like colour dots with a glint; on hover a moving champagne sheen,
   gold border + glow and a twinkling star (no clipping, so the small x to remove stays visible) */
body.admin .tile { background: linear-gradient(100deg, #fff 35%, #fdf3dc 50%, #fff 65%); background-size: 260% 100%; background-position: 100% 0;
  transition: border-color .15s, box-shadow .15s; }
body.admin .tile:hover { border-color: #e2c98f; box-shadow: 0 4px 12px -6px rgba(184,137,42,.55); animation: tileSheen 1.6s ease-in-out infinite; }
@keyframes tileSheen { from { background-position: 100% 0; } to { background-position: -60% 0; } }
body.admin .tile.letter { background-color: #fff; background-image: radial-gradient(circle at 35% 30%, #fff 0%, #f1f6fc 55%, #e3ecf7 100%); color: #00254e;
  box-shadow: inset 0 -2px 3px rgba(91,126,166,.12); }
body.admin .tile.letter:hover { background-image: linear-gradient(100deg, #fff 35%, #fdf3dc 50%, #fff 65%); }
body.admin .tile::before { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; background: #d9b25a; opacity: 0; pointer-events: none;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
body.admin .tile:hover::before { animation: adTwinkle 1.6s ease-in-out infinite; }
body.admin .tile .sw { position: relative; width: 14px; height: 14px; box-shadow: inset -2px -2px 3px rgba(0,0,0,.18), inset 1px 1px 2px rgba(255,255,255,.85), 0 0 0 1px rgba(255,255,255,.6); }
body.admin .tile .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 5px; height: 5px; background: #fff; border-radius: 50%; opacity: .9; }
body.admin .tile.clar b { color: #00254e; }

/* ---------- everything else, like the quote page ---------- */
body.admin .utabs button::after, body.admin .seg-tabs button::after, body.admin .seg button::after { display: none; }
/* stone type cards (Lab Grown / Moissanite / Natural): champagne glow, sparkling icon, gold glow when chosen, shine on hover */
body.admin .stype { position: relative; overflow: hidden; transition: box-shadow .15s, border-color .15s, transform .15s; }
body.admin .stype::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent); transform: skewX(-20deg); }
body.admin .stype:hover::after, body.admin .stype.on::after { animation: adGlint 2.8s ease-in-out infinite; }
body.admin .stype:hover { border-color: #e2c98f; transform: translateY(-1px); }
body.admin .stype.on { background: radial-gradient(120% 100% at 0% 0%, #fdf6e3 0%, #fff 60%); box-shadow: 0 0 0 1px var(--brand), 0 8px 20px -10px rgba(184,137,42,.6); }
body.admin .stype .ic { background: radial-gradient(circle at 35% 30%, #fff 0%, #eef4fb 60%, #dce7f5 100%); color: #5b7ea6; }
body.admin .stype.on .ic { background: linear-gradient(140deg, #fff4cc, #ecc96c 45%, #c8962c); color: #fff; box-shadow: 0 0 8px rgba(233,200,118,.7); }
body.admin .stype .ok { background: linear-gradient(140deg, #f5da8e, #c8962c 70%); }
/* Inventory / Prices tabs: gold underline with a shimmer, gold step number */
body.admin .utabs button.on { border-bottom-color: transparent; position: relative; }
body.admin .utabs button.on::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, #b8892a, #fff4cc 35%, #c8962c 55%, #f5da8e 75%, #b8892a); background-size: 200% 100%; animation: adShine 4s linear infinite; }
body.admin .utabs button.on .n { background: linear-gradient(140deg, #f5da8e, #c8962c 70%); border-color: #c8962c; }
/* edit side panel: champagne header with a gold edge, sparkling icon box */
body.admin .dtop { position: relative; background: linear-gradient(180deg, #fdf6e3, #fff); }
body.admin .dtop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5px;
  background: linear-gradient(90deg, #e9c876, #fff4cc 25%, #b8892a 50%, #f5da8e 75%, #e9c876); background-size: 200% 100%; animation: adShine 8s linear infinite; }
body.admin .dico { background: radial-gradient(circle at 35% 30%, #fff 0%, #fdf6e3 70%, #f3e4bd 100%); box-shadow: inset 0 0 0 1px #f0e2bf; }
body.admin .dsec > b, body.admin .dsec > .lbl { color: #8a6420; }
/* option pills in the edit panel: gold glow when chosen */
body.admin .opt { transition: border-color .15s, box-shadow .15s; }
body.admin .opt:hover { border-color: #e2c98f; }
body.admin .opt.on { box-shadow: 0 0 0 1px var(--brand), 0 3px 10px -4px rgba(184,137,42,.6); }
body.admin .seg button.on { box-shadow: 0 0 0 1px var(--brand), 0 6px 16px -8px rgba(184,137,42,.6); }
/* price tables: gold-tinted price boxes, gold focus, champagne row hover */
body.admin table.grid input:not(.empty) { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #ecdcb6; color: #00254e; font-weight: 600; }
body.admin table.grid tr:hover td.c { color: #8a6420; }
body.admin table.grid td.c { color: #00254e; }
body.admin .pricebox { background: linear-gradient(180deg, #fffaf0, #fff 70%); border-color: #f0e2bf; }
body.admin .pricebox input, body.admin .money input { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #e7d3a4; color: #8a6420; font-weight: 600; }
/* Settings boxes: gold tint like the quote page number boxes */
body.admin .field-grid input { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #ecdcb6; color: #00254e; font-weight: 600; }
body.admin .ig { border-color: #ecdcb6; background: linear-gradient(180deg, #fffaf0, #fff); }
body.admin .ig input { background: transparent; color: #00254e; font-weight: 600; }
body.admin .ig .ad { background: #fdf6e3; color: #8a6420; border-color: #ecdcb6; }
body.admin .ig:focus-within { border-color: #c8962c; box-shadow: 0 0 0 3px rgba(233,200,118,.35); }
/* Quotes page: quote number as a gold tag, status labels, CSV link button */
body.admin .qno { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
  color: #8a6420; background: linear-gradient(180deg, #fffaf0, #fbf0d6); border: 1px solid #ecd9a8; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.admin table.quotes .d { font-size: 13px; color: var(--muted); margin-top: 3px; }
body.admin table.quotes td { vertical-align: top; }
body.admin .qst { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
body.admin .qst.ok { background: #e8f6ee; color: #147a43; } body.admin .qst.soon { background: #fff4e0; color: #a35a00; }
body.admin .qst.exp { background: #fdecea; color: #b42318; }
body.admin .btnlink { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; background: #fff; }
body.admin .btnlink:hover { border-color: #e7d3a4; background: #fffaf0; color: #8a6420; }
body.admin .btnlink svg { width: 16px; height: 16px; }
/* Quotes page sparkle: rows light up champagne with a shine, quote tags glint, gold prices, lively status labels, glinting CSV button */
body.admin table.quotes tr { position: relative; }
body.admin table.quotes tr:not(:first-child):hover td { background: linear-gradient(90deg, #fffaf0, #fff 70%); }
body.admin table.quotes tr:not(:first-child):hover .qno { box-shadow: 0 0 0 1px #c8962c, 0 3px 10px -3px rgba(184,137,42,.6); }
body.admin .qno { position: relative; overflow: hidden; }
body.admin .qno::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent); transform: skewX(-20deg); }
body.admin table.quotes tr:hover .qno::after { animation: adGlint 1.8s ease-in-out infinite; }
body.admin table.quotes tr.qtop .qno { background: linear-gradient(140deg, #f5da8e, #c8962c 70%); color: #fff; border-color: #c8962c;
  text-shadow: 0 1px 1px rgba(122,90,28,.4); }
body.admin table.quotes tr.qtop .qno::after { animation: adGlint 4s ease-in-out infinite; }
body.admin table.quotes td b { color: #00254e; }
body.admin table.quotes td:nth-child(4) b { color: #8a6420; font-size: 16px; }
body.admin table.quotes td:nth-child(7) { color: #8a6420; font-weight: 600; }
body.admin .qst { position: relative; padding-left: 18px; }
body.admin .qst::before { content: ""; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: currentColor;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin .qst.soon { animation: qSoon 2.2s ease-in-out infinite; }
@keyframes qSoon { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,138,0,0); } 50% { box-shadow: 0 0 0 3px rgba(217,138,0,.18); } }
body.admin .qst.exp::before { animation: none; opacity: .6; }
body.admin .btnlink { position: relative; overflow: hidden; background: linear-gradient(160deg, #fffaf0, #fdf3dc 60%, #fffaf0); border-color: #e7d3a4; color: #8a6420; }
body.admin .btnlink::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); transform: skewX(-20deg); animation: adGlint 4.5s ease-in-out infinite; }
body.admin .search input { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #ecdcb6; }

/* Settings: gold coin by the exchange rate, champagne tip, gem step numbers joined by a gold line,
   champagne subtotal, shining Total row, gold flash on example amounts that change */
body.admin .fxrow { align-items: center; }
body.admin .fxcoin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #6b4a12;
  background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 55%, #b8892a); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #e9c876, 0 3px 8px -3px rgba(184,137,42,.6);
  position: relative; overflow: hidden; }
body.admin .fxcoin::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent);
  transform: skewX(-20deg); animation: adGlint 4s ease-in-out infinite; }
body.admin .tip { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #fdf6e3; border: 1px solid #f0e2bf; color: #8a6420; }
body.admin .tip svg.i { color: #c8962c; }
body.admin .qsteps td.no { position: relative; }
body.admin .qsteps td.no::before { content: ""; position: absolute; left: 35px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #f0e2bf, #e9c876, #f0e2bf); }
body.admin .qsteps tr:nth-child(2) td.no::before { top: 50%; }
body.admin .qsteps tr.final td.no::before { bottom: 50%; }
body.admin .qsteps .nc { position: relative; z-index: 1; width: 26px; height: 26px; color: #6b4a12; font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #f5da8e 65%, #e2bd66); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e9c876; transition: transform .15s; }
body.admin .qsteps tr:nth-child(-n+4) .nc { color: #00254e; background: radial-gradient(circle at 35% 30%, #fff, #dfeaf7 55%, #9fb9da); }
body.admin .qsteps tr:hover .nc { transform: scale(1.12); }
body.admin .qsteps .nc.fin { width: 30px; height: 30px; color: #fff; background: radial-gradient(circle at 35% 30%, #3c5f8e, #00254e 70%); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e9c876; }
body.admin .qsteps .nc.fin svg { width: 15px; height: 15px; }
body.admin .qsteps .nc.fin::after { content: ""; position: absolute; right: -7px; top: -6px; width: 9px; height: 9px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin .qsteps tr:not(.subt):not(.final):not(:first-child):hover td { background: #fffcf4; }
body.admin .qsteps tr.subt td { background: linear-gradient(90deg, #fdf6e3, #fffaf0 60%, #fdf6e3); border-top: 1px solid #f0e2bf; border-bottom: 1px solid #f0e2bf; }
body.admin .qsteps tr.subt td.ex { color: #8a6420; }
body.admin .qsteps tr.final td { background: linear-gradient(180deg, #fffaf0, #fdf3dc); border-top: 1.5px solid #e9c876; }
body.admin .qsteps .big { background: linear-gradient(100deg, #00254e 0%, #00254e 40%, #c8962c 50%, #00254e 60%, #00254e 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: adNum 4.5s ease-in-out infinite; }
body.admin .qsteps td.ex span, body.admin .qsteps td.ex { transition: color .2s; }
body.admin .qsteps .bump { animation: exBump .9s ease-out; }
body.admin .qsteps .big.bump { animation: exBump .9s ease-out, adNum 4.5s ease-in-out infinite; }
@keyframes exBump { 0% { text-shadow: 0 0 0 rgba(233,200,118,0); } 25% { text-shadow: 0 0 10px rgba(233,200,118,.95); background-color: #fff4cc; } 100% { text-shadow: 0 0 0 rgba(233,200,118,0); } }
body.admin .exl { color: #8a6420; font-weight: 500; }
/* Sales team: gold medallion on "Add", gem-ringed initials, @username, glowing Active pill,
   icon buttons (Remove turns red on hover), champagne row glow */
body.admin .tadd-h { display: flex; gap: 14px; align-items: center; }
body.admin .tmed { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #6b4a12; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 60%, #c8962c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e9c876, 0 4px 10px -4px rgba(184,137,42,.6); }
body.admin .tmed svg { width: 19px; height: 19px; }
body.admin .tmed::after { content: ""; position: absolute; right: -6px; top: -5px; width: 9px; height: 9px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin .tadd .pwin { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
body.admin .tsum { display: flex; gap: 8px; align-items: center; }
body.admin .tsum span { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
body.admin .tsum-on { color: #1d7a4c; background: #e8f6ee; border: 1px solid #c4e8d3; }
body.admin .tsum-off { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
body.admin .tteam tr:not(:first-child) td { transition: background .15s; }
body.admin .tteam tr:not(:first-child):hover td { background: #fffcf4; }
body.admin .tteam tr.off td { opacity: .75; }
body.admin .tteam tr.off td.tacts { opacity: 1; }
body.admin .tteam tr.off .tav2 { background: #8794a6; }
body.admin .tteam tr.off td b { color: var(--muted); }
body.admin .tteam th:last-child { text-align: right; }
body.admin .tteam td.tacts { text-align: right; white-space: nowrap; }
body.admin .tteam tr:hover .tav2 { transform: scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e9c876, 0 0 12px rgba(233,200,118,.7); }
body.admin .tteam tr:hover .tav2::after { animation: adGlint 1.8s ease-in-out infinite; }
body.admin .tteam tr td b { color: #00254e; }
body.admin .twho { display: flex; align-items: center; gap: 12px; }
body.admin .tav2 { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 35% 30%, #3c5f8e, #00254e 70%); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e9c876; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
body.admin .tav2::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); }
body.admin .tuser { font-size: 13px; color: #8a6420; margin-top: 1px; }
body.admin .tstat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
body.admin .tstat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
body.admin .tstat.on { color: #1d7a4c; background: #e8f6ee; border-color: #c4e8d3; }
body.admin .tstat.on::before { background: #22a061; border-color: #22a061; animation: tLive 2.2s ease-in-out infinite; }
@keyframes tLive { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,160,97,.5); } 60% { box-shadow: 0 0 0 5px rgba(34,160,97,0); } }
body.admin .tlast { color: var(--muted); white-space: nowrap; }
body.admin .tlast svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: #c8962c; }
body.admin .tbtn { display: inline-flex; vertical-align: middle; align-items: center; height: 32px; gap: 6px; padding: 6px 11px; font-size: 13px; border-radius: 999px; }
body.admin .tbtn svg { width: 14px; height: 14px; color: #c8962c; }
body.admin .tbtn .tx { display: inline-block; width: 14px; text-align: center; font-size: 16px; line-height: 14px; color: #c0392b; }
body.admin .tbtn.tdel:hover { color: #b42318; border-color: #f3c3bd; background: #fff3f1; }
/* Accuracy check: empty state with gold gem medallion and "how it works" steps, gold progress bar to 20 checked,
   icons on the tiles, gem placeholder photos, SQ chips, waiting pill that pulses, "ace" badge with a star, gold flash on save */
body.admin .accempty { display: flex; gap: 14px; align-items: center; }
body.admin .accempty b { color: #00254e; font-size: 17px; font-weight: 600; }
body.admin .accempty p { margin: 2px 0 0; color: var(--muted); }
body.admin .accsteps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
body.admin .accsteps span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: #00254e;
  background: linear-gradient(160deg, #fffaf0, #fff 70%); border: 1px solid #f0e2bf; }
body.admin .accsteps span svg { width: 15px; height: 15px; color: #c8962c; }
body.admin .accsteps i { color: #c8962c; font-style: normal; font-weight: 700; }
body.admin .accgoal { margin-top: 16px; }
body.admin .accgoal-t { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
body.admin .accgoal-t span { display: inline-flex; align-items: center; gap: 6px; }
body.admin .accgoal-t svg { width: 15px; height: 15px; color: #c8962c; }
body.admin .accgoal-t b { color: #8a6420; }
body.admin .accgoal-t small { font-size: 13px; font-weight: 600; color: #8a6420; white-space: nowrap; }
body.admin .accbar { height: 8px; border-radius: 999px; background: #f5ecd6; overflow: hidden; box-shadow: inset 0 1px 2px rgba(138,100,32,.15); }
body.admin .accbar i { display: block; height: 100%; min-width: 8px; border-radius: 999px; background: linear-gradient(100deg, #c8962c, #f5da8e 45%, #c8962c 60%, #e9c876);
  background-size: 220% 100%; animation: adShine 3s linear infinite; }
body.admin .badge.stonep { background: #fdf6e3; color: #8a6420; border: 1px solid #f0e2bf; }
body.admin .badge.stonep::before { background: #c8962c; }
body.admin .badge.await { background: #fdf6e3; color: #8a6420; border: 1px solid #f0e2bf; }
body.admin .badge.await::before { background: #e9c876; animation: qSoonDot 1.8s ease-in-out infinite; }
@keyframes qSoonDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,200,118,.7); } 60% { box-shadow: 0 0 0 4px rgba(233,200,118,0); } }
body.admin .badge.ace { position: relative; padding-right: 20px; }
body.admin .badge.ace::after { content: ""; position: absolute; right: 6px; top: 50%; margin-top: -4.5px; width: 9px; height: 9px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin table.accs img, body.admin table.accs .noimg { border: 1px solid #f0e2bf; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f0e2bf; transition: transform .15s, box-shadow .15s; }
body.admin table.accs .noimg { display: grid; place-items: center; color: #c8962c; background: radial-gradient(circle at 35% 30%, #fff, #fdf6e3 70%); }
body.admin table.accs .noimg svg { width: 22px; height: 22px; }
body.admin table.accs tr:hover img, body.admin table.accs tr:hover .noimg { transform: scale(1.05); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e9c876, 0 6px 14px -6px rgba(184,137,42,.6); }
body.admin table.accs td b { color: #00254e; }
body.admin table.accs .qno { font-size: 12px; padding: 1px 8px; }
body.admin table.accs td.sqp { text-align: right; white-space: nowrap; font-weight: 700; color: #00254e; }
body.admin table.accs tr.done td:nth-child(4) .money input { border-color: #c8962c; box-shadow: 0 0 0 3px rgba(233,200,118,.25); }
body.admin table.accs tr.saved td { animation: accSaved 1.2s ease-out; }
@keyframes accSaved { 0% { background: #fff4cc; } 100% { background: transparent; } }
body.admin .accdel { width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 17px; }
body.admin .accdel:hover { color: #b42318; border-color: #f3c3bd; background: #fff3f1; }
/* Centre stones: champagne "add" bars, gold group headings with a star, starred clarity chips,
   price tables with a gem range badge, gold "prices filled" meter, gem-tile colour letters, row highlight */
body.admin .blk-f { background: linear-gradient(180deg, #fffaf0, #fdf6e3); border-top-color: #f0e2bf; }
body.admin .ghead { color: #8a6420; display: flex; align-items: center; gap: 6px; }
body.admin .ghead::before { content: ""; width: 9px; height: 9px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
body.admin .tile.clar b { display: inline-flex; align-items: center; gap: 5px; }
body.admin .tile.clar b::before { content: ""; width: 8px; height: 8px; background: #d9b25a; transition: transform .3s;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
body.admin .tile.clar:hover b::before { animation: adTwinkle 1.6s ease-in-out infinite; }
body.admin .range { border-color: #f0e2bf; transition: box-shadow .15s, border-color .15s; }
body.admin .range:hover { border-color: #e2c98f; box-shadow: 0 8px 20px -12px rgba(184,137,42,.55); }
body.admin .range .head { background: linear-gradient(90deg, #fdf6e3, #fffaf0 60%, #fff); border-bottom-color: #f0e2bf; gap: 14px; }
body.admin .range .head > b { display: inline-flex; align-items: center; gap: 9px; color: #00254e; font-weight: 700; }
body.admin .rgem { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #6b4a12; position: relative; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 60%, #c8962c); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #e9c876; }
body.admin .rgem svg { width: 15px; height: 15px; }
body.admin .rgem::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent); transform: skewX(-20deg); }
body.admin .range:hover .rgem::after { animation: adGlint 1.8s ease-in-out infinite; }
body.admin .rfillw { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
body.admin .rfillw small { font-size: 12.5px; color: #8a6420; font-weight: 600; white-space: nowrap; }
body.admin .rfill { width: 90px; height: 6px; border-radius: 999px; background: #f5ecd6; overflow: hidden; }
body.admin .rfill i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e9c876, #c8962c); transition: width .3s; }
body.admin .rfill.full i { background: linear-gradient(100deg, #c8962c, #f5da8e 45%, #c8962c 60%, #e9c876); background-size: 220% 100%; animation: adShine 3s linear infinite; }
body.admin table.grid td.gr .cn { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #00254e;
  background: linear-gradient(160deg, #fff, #eef3f9); border: 1px solid #d5e0ee; }
body.admin table.grid td.c .cn { transition: color .15s; }
body.admin table.grid tr:hover td.c .cn { color: #8a6420; }
body.admin table.grid tr:hover td.gr .cn { border-color: #e9c876; background: linear-gradient(160deg, #fffaf0, #fdf3dc); box-shadow: 0 0 8px rgba(233,200,118,.6); }
body.admin table.grid tr:hover td input:not(.empty) { border-color: #e2c98f; }
body.admin table.grid tr:hover td { background: #fffcf4; }
/* Side stones: group headers with a gem dot in the cut colour, gold count and a fading gold line;
   price boxes with a cut-colour gem badge, live worked example, and shape chips with the owner's icons */
body.admin .sgrp { margin: 24px 0 12px; }
body.admin .sgrp .gdot { width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cc) 75%); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #e9c876; }
body.admin .sgrp .cut { font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; }
body.admin .sgrp .gcount { font-size: 12.5px; font-weight: 600; color: #8a6420; }
body.admin .sgrp .gline { flex: 1; height: 1px; background: linear-gradient(90deg, #e9c876, rgba(233,200,118,0)); }
body.admin .cutbox { position: relative; overflow: hidden; border-left: 4px solid var(--cc); transition: box-shadow .15s, transform .15s; }
body.admin .cutbox:hover { box-shadow: 0 10px 22px -12px rgba(184,137,42,.6); transform: translateY(-1px); }
body.admin .cutbox::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); }
body.admin .cutbox:hover::after { animation: adGlint 2s ease-in-out infinite; }
body.admin .cutbox h3 { display: inline-flex; align-items: center; gap: 9px; color: #00254e; }
body.admin .cgem { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), var(--cc) 70%); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #e9c876; }
body.admin .cgem svg { width: 15px; height: 15px; }
body.admin .cbadge { font-size: 12.5px; font-weight: 600; color: #8a6420; background: #fdf6e3; border: 1px solid #f0e2bf; padding: 2px 9px; border-radius: 999px; }
body.admin .cex { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; color: var(--muted); padding: 4px 10px; border-radius: 8px; }
body.admin .cex svg { width: 14px; height: 14px; color: #c8962c; }
body.admin .cex b { color: #8a6420; }
body.admin .cex.bump { animation: cexBump .9s ease-out; }
@keyframes cexBump { 0% { background: #fff4cc; } 100% { background: transparent; } }
body.admin .cchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
body.admin .cchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #00254e; padding: 2px 9px 2px 4px; border-radius: 999px;
  background: #fff; border: 1px solid #f0e2bf; transition: border-color .15s, box-shadow .15s; }
body.admin .cchip:hover { border-color: #e9c876; box-shadow: 0 0 8px rgba(233,200,118,.55); }
body.admin .cchip .ownwrap, body.admin .cchip > svg { width: 18px; height: 18px; display: inline-grid; place-items: center; }
body.admin .cchip .ownwrap img, body.admin .cchip svg { width: 16px; height: 16px; }
/* Metal prices: gold ingot by the gold rate, live price of pure gold, purity bars, gold per-gram prices that flash,
   spheres that glint on row hover, worked example under Labour */
body.admin .goldrate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid #f0e2bf;
  background: linear-gradient(90deg, #fdf6e3, #fffaf0 50%, #fff); }
body.admin .goldrate .aside { margin-left: 0; }
body.admin .ingot { width: 46px; height: 26px; flex: none; position: relative; overflow: hidden;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); background: linear-gradient(160deg, #fff4cc, #e9c876 40%, #c8962c 75%, #a87a1f);
  filter: drop-shadow(0 2px 3px rgba(138,100,32,.35)); }
body.admin .ingot::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.95), transparent);
  transform: skewX(-20deg); animation: adGlint 3.5s ease-in-out infinite; }
body.admin .puregr { font-size: 13.5px; font-weight: 600; color: #8a6420; background: #fff; border: 1px solid #f0e2bf; padding: 3px 10px; border-radius: 999px; }
body.admin .puregr:empty { display: none; }
body.admin .mtbl tr:not(:first-child):hover td { background: #fffcf4; }
body.admin .mtbl td b { color: #00254e; }
body.admin .mtbl .sphere { position: relative; overflow: hidden; transition: transform .15s; }
body.admin .mtbl tr:hover .sphere { transform: scale(1.12); box-shadow: 0 0 10px rgba(233,200,118,.7); }
body.admin .mtbl .sphere::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent); transform: skewX(-20deg); }
body.admin .mtbl tr:hover .sphere::after { animation: adGlint 1.6s ease-in-out infinite; }
body.admin .mtbl td.ex { color: #8a6420; font-weight: 700; font-size: 16px; }
body.admin .mtbl .bump { animation: exBump .9s ease-out; }
body.admin .pbar { display: inline-block; vertical-align: middle; width: 80px; height: 6px; margin-left: 12px; border-radius: 999px; background: #f5ecd6; overflow: hidden; }
body.admin .pbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f5da8e, #c8962c); transition: width .3s; }
body.admin .mex { display: flex; width: fit-content; margin-top: 14px; background: #fffaf0; border: 1px solid #f0e2bf; }
body.admin .mex:empty { display: none; }
/* Change password dialog: gold lock medallion with a star, labelled boxes with Show/Hide, gold strength meter, live checklist */
body.admin .cpmed { position: relative; color: #6b4a12; background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 60%, #c8962c) !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e9c876, 0 4px 10px -4px rgba(184,137,42,.6) !important; overflow: visible; }
body.admin .cpmed::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin .cpbody .dsec { margin-top: 12px; }
body.admin .cpl { display: block; font-size: 13.5px; font-weight: 600; color: #00254e; margin-bottom: 6px; }
body.admin .pwf { position: relative; }
body.admin .pwf input { width: 100%; padding-right: 66px; }
body.admin .pwf input:focus { border-color: #c8962c; box-shadow: 0 0 0 3px rgba(233,200,118,.3); }
body.admin .pwf button.pweye { position: absolute; margin: 0; right: 5px; top: 50%; transform: translateY(-50%); height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 600;
  border-radius: 999px; color: #8a6420; background: #fdf6e3; border: 1px solid #f0e2bf; box-shadow: none; }
body.admin .pwf button.pweye:hover { background: #fff4cc; border-color: #e9c876; }
body.admin .pweye::after { display: none !important; }
body.admin .pwstr { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
body.admin .pwmeter { flex: 1; height: 6px; border-radius: 999px; background: #f5ecd6; overflow: hidden; }
body.admin .pwmeter i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .3s, background .3s; }
body.admin .pwmeter i.weak { background: #d9534f; } body.admin .pwmeter i.fair { background: #e0a43a; }
body.admin .pwmeter i.good { background: linear-gradient(90deg, #e9c876, #c8962c); }
body.admin .pwmeter i.strong { background: linear-gradient(100deg, #c8962c, #f5da8e 45%, #c8962c 60%, #e9c876); background-size: 220% 100%; animation: adShine 3s linear infinite; }
body.admin #cpStr { min-width: 60px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--muted); }
body.admin #cpStr.weak { color: #b42318; } body.admin #cpStr.fair { color: #a86a00; } body.admin #cpStr.good, body.admin #cpStr.strong { color: #8a6420; }
body.admin .pwchk { list-style: none; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fffaf0; border: 1px solid #f0e2bf; display: grid; gap: 5px; }
body.admin .pwchk li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); transition: color .2s; }
body.admin .pwchk li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #d8c9a3; box-sizing: border-box; flex: none; transition: all .2s; }
body.admin .pwchk li.ok { color: #00254e; font-weight: 600; }
body.admin .pwchk li.ok::before { border: 0; background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 55%, #c8962c);
  box-shadow: 0 0 6px rgba(233,200,118,.8); clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); width: 15px; height: 15px; }
/* Admin sign-in: like the staff sign-in (twinkling stars by the logo, champagne + ice glow) but with a gold lock medallion
   and an "Owner only" tag; Show/Hide on the password boxes (reuses .pwf/.pweye) */
body.admin #gate { background: radial-gradient(60% 45% at 50% 18%, #fdf6e3 0%, rgba(253,246,227,0) 70%), radial-gradient(50% 40% at 85% 85%, #eef4fb 0%, rgba(238,244,251,0) 70%), var(--bg); }
body.admin .gatebox .logo .wrap { position: relative; display: inline-block; }
body.admin .gatebox .tw { position: absolute; pointer-events: none; clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 3.2s ease-in-out infinite; }
body.admin .gatebox .tw.t1 { width: 12px; height: 12px; right: -18px; top: -10px; background: #d9b25a; }
body.admin .gatebox .tw.t2 { width: 7px; height: 7px; right: -26px; top: 6px; background: #8fb0dc; animation-delay: .9s; }
body.admin .gatebox .tw.t3 { width: 9px; height: 9px; left: -18px; bottom: -2px; background: #8fb0dc; animation-delay: 1.7s; }
body.admin .gmed { width: 46px; height: 46px; margin: -6px auto 12px; border-radius: 50%; display: grid; place-items: center; color: #6b4a12; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 60%, #c8962c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e9c876, 0 6px 14px -6px rgba(184,137,42,.7); }
body.admin .gmed svg { width: 21px; height: 21px; }
body.admin .gmed::before { content: ""; position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%); background-size: 300% 100%; animation: adShine 4s linear infinite; }
body.admin .gmed::after { content: ""; position: absolute; right: -6px; top: -5px; width: 11px; height: 11px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin .ownertag { display: table; margin: 6px auto 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #8a6420; background: #fdf6e3; border: 1px solid #f0e2bf; padding: 2px 10px; border-radius: 999px; }
body.admin .gatebox .pwf input { margin: 0; }
body.admin .gatebox .pwf { margin-bottom: 8px; }
body.admin .gatebox input:focus { border-color: #c8962c; box-shadow: 0 0 0 3px rgba(233,200,118,.35); outline: none; }
/* Side menu: gold edge line, group labels with a star and fading gold rule, champagne hover that slides the icon,
   active page with a gold icon badge, glint and gem dot, gold-ringed owner avatar with a live dot, red sign-out on hover */
body.admin .side { border-right: 0; box-shadow: inset -1px 0 0 #f0e2bf; }
body.admin .side .group { display: flex; align-items: center; gap: 6px; }
body.admin .side .group::before { content: ""; width: 7px; height: 7px; flex: none; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
body.admin .side .group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #ecd9a8, rgba(236,217,168,0)); }
body.admin .side nav a, body.admin .side .foot a { position: relative; overflow: hidden; transition: background .2s, color .2s, padding .2s; }
body.admin .side nav a svg.i, body.admin .side .foot a svg.i { transition: transform .2s, color .2s; }
body.admin .side nav a:not(.on):hover, body.admin .side .foot a:hover { background: linear-gradient(90deg, #fdf6e3, rgba(253,246,227,0)); color: #00254e; }
body.admin .side nav a:not(.on):hover svg.i, body.admin .side .foot a:hover svg.i { transform: translateX(2px) scale(1.08); color: #b8892a; }
body.admin .side nav a.on svg.i { width: 26px; height: 26px; padding: 5px; margin: -5px -2px -5px -5px; border-radius: 50%; color: #6b4a12;
  background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 60%, #c8962c); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #e9c876; box-sizing: border-box; }
body.admin .side nav a.on::before { content: ""; position: absolute; right: 12px; top: 50%; margin-top: -4.5px; width: 9px; height: 9px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin .side nav a.on::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); transform: skewX(-20deg); animation: adGlint 5s ease-in-out infinite; }
body.admin .side .foot { border-top: 0; position: relative; }
body.admin .side .foot::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 1px; background: linear-gradient(90deg, rgba(236,217,168,0), #e9c876, rgba(236,217,168,0)); }
body.admin .side .me { border-top: 0; position: relative; }
body.admin .side .me::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 1px; background: linear-gradient(90deg, rgba(236,217,168,0), #e9c876, rgba(236,217,168,0)); }
body.admin .side .me .av { position: relative; background: radial-gradient(circle at 35% 30%, #3c5f8e, #00254e 70%); }
body.admin .side .me .av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%;
  background: #22a061; box-shadow: 0 0 0 2px #fff; animation: tLive 2.2s ease-in-out infinite; }
body.admin .side .me b { color: #00254e; }
body.admin .side .me small { color: #8a6420; font-weight: 600; }
body.admin .side #signOut:hover { color: #b42318; background: #fff3f1; }
@media (max-width: 900px) { body.admin .side .group::after, body.admin .side nav a.on::before { display: none; } }
/* Save bar states: unsaved = champagne bar, amber pill with a pulsing dot, glowing Save button; saving = spinning gold dot;
   saved = a burst of gold stars from the Save button; error = soft red pill */
body.admin .bar { transition: background .3s; }
body.admin .bar[data-state=dirty] { background: linear-gradient(180deg, rgba(253,246,227,.97), rgba(255,250,240,.97)); }
body.admin .bar .saved.dirty { padding: 4px 12px 4px 10px; border-radius: 999px; background: #fff4e0; border: 1px solid #f3d9a6; color: #8a5a00; font-size: 13.5px; }
body.admin .bar .saved.dirty::before { width: 8px; height: 8px; background: #e0a43a; animation: qSoonDot 1.6s ease-in-out infinite; }
body.admin .bar .saved.err { padding: 4px 12px 4px 10px; border-radius: 999px; background: #fff3f1; border: 1px solid #f3c3bd; font-size: 13.5px; }
body.admin .bar .saved.busy::before { width: 10px; height: 10px; background: none; border: 2px solid #f0e2bf; border-top-color: #c8962c; box-sizing: border-box; animation: sbSpin .8s linear infinite; }
@keyframes sbSpin { to { transform: rotate(360deg); } }
body.admin .sbw { position: relative; display: inline-flex; }
body.admin .bar[data-state=dirty] #save { animation: sbGlow 1.8s ease-in-out infinite; }
@keyframes sbGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,200,118,0), 0 4px 12px -6px rgba(0,37,78,.5); } 50% { box-shadow: 0 0 0 4px rgba(233,200,118,.45), 0 4px 14px -4px rgba(184,137,42,.6); } }
body.admin .sbstars { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
body.admin .sbstars i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; opacity: 0; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
body.admin .sbstars i:nth-child(2n) { width: 7px; height: 7px; background: #8fb0dc; }
body.admin .bar.popping .sbstars i { animation: sbBurst 1.1s ease-out forwards; }
body.admin .bar.popping .sbstars i:nth-child(1) { --dx: -70px; --dy: -34px; }
body.admin .bar.popping .sbstars i:nth-child(2) { --dx: -40px; --dy: -46px; animation-delay: .05s; }
body.admin .bar.popping .sbstars i:nth-child(3) { --dx: -6px; --dy: -52px; animation-delay: .1s; }
body.admin .bar.popping .sbstars i:nth-child(4) { --dx: 30px; --dy: -46px; animation-delay: .03s; }
body.admin .bar.popping .sbstars i:nth-child(5) { --dx: 62px; --dy: -36px; animation-delay: .08s; }
body.admin .bar.popping .sbstars i:nth-child(6) { --dx: 78px; --dy: -14px; animation-delay: .12s; }
@keyframes sbBurst { 0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0deg); } 20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(90deg); } }
body.admin .bar.popping .saved:not(.dirty):not(.err):not(.busy) { animation: sbPop .6s ease-out; }
@keyframes sbPop { 0% { transform: scale(.9); } 50% { transform: scale(1.06); color: #8a6420; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { body.admin .bar.popping .sbstars i, body.admin .bar[data-state=dirty] #save { animation: none; } }
/* Shape edit popups (centre + side stones): gold-ringed shape picture with a glint and star, picture greys when Off,
   ticked chips champagne with a gold star, pill "Select all / Clear", chosen cut type with a gold tick, champagne footer */
body.admin #dlg .dtop .dico:not(.cpmed) { position: relative; overflow: visible; background: radial-gradient(circle at 35% 30%, #fff, #fdf6e3 70%, #f3e4bd) !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e9c876, 0 6px 14px -8px rgba(184,137,42,.7) !important; border-radius: 14px; transition: filter .3s, opacity .3s; }
body.admin #dlg .dtop .dico:not(.cpmed)::after { content: ""; position: absolute; right: -6px; top: -6px; width: 11px; height: 11px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin #dlg .dtop .dico:not(.cpmed) img, body.admin #dlg .dtop .dico:not(.cpmed) svg { transition: transform .3s; }
body.admin #dlg .dtop:hover .dico:not(.cpmed) img, body.admin #dlg .dtop:hover .dico:not(.cpmed) svg { transform: rotate(-8deg) scale(1.06); }
body.admin #dlg.isoff .dtop .dico { filter: grayscale(1); opacity: .55; }
body.admin #dlg.isoff .dtop .dico::after { display: none; }
body.admin #dlg.isoff #actTxt { color: var(--muted); }
body.admin #dlg #actTxt { font-weight: 600; color: #1d7a4c; }
body.admin #dlg .dtop #sname, body.admin #dlg .dtop #mname { font-weight: 600; color: #00254e; }
body.admin #dlg .opt.on { border-color: #c8962c; background: linear-gradient(160deg, #fffaf0, #fdf3dc); color: #00254e; position: relative;
  box-shadow: 0 0 0 1px #e9c876, 0 3px 10px -4px rgba(184,137,42,.6); }
body.admin #dlg .opt.on::after { content: ""; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; background: #c8962c;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
body.admin #dlg .opt { transition: transform .12s, border-color .15s, box-shadow .15s, background .15s; }
body.admin #dlg .opt:active { transform: scale(.92); }
body.admin #dlg .opt:not(.on):hover { border-color: #e2c98f; border-style: solid; background: #fffcf4; }
body.admin #dlg .lbl button.link { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #8a6420; text-decoration: none; }
body.admin #dlg .lbl button.link:hover { background: #fdf6e3; box-shadow: inset 0 0 0 1px #f0e2bf; text-decoration: none; }
body.admin #dlg .lbl .cnt { color: #8a6420; font-weight: 600; background: #fdf6e3; border: 1px solid #f0e2bf; padding: 1px 8px; border-radius: 999px; }
body.admin #dlg .seg button { position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
body.admin #dlg .seg button:hover { border-color: #e2c98f; transform: translateY(-1px); }
body.admin #dlg .seg button.on { border-color: #c8962c; background: linear-gradient(160deg, #fffaf0, #fdf3dc); color: #00254e; box-shadow: 0 0 0 1px #e9c876, 0 6px 16px -8px rgba(184,137,42,.6); }
body.admin #dlg .seg button.on::before { content: "✓"; position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: radial-gradient(circle at 35% 30%, #f5da8e, #c8962c 70%); }
body.admin #dlg .seg button.on small { color: #8a6420; font-weight: 600; }
body.admin #dlg footer { background: linear-gradient(180deg, #fffaf0, #fdf6e3); border-top-color: #f0e2bf; }
body.admin #dlg button.textdel { padding: 6px 12px; border-radius: 999px; }
body.admin #dlg button.textdel:hover { background: #fff3f1; text-decoration: none; box-shadow: inset 0 0 0 1px #f3c3bd; }
/* Metal edit popup: bigger shiny metal in the gold-ringed tile, purity tag under a gold karat's name,
   metal colour dots as tiny spheres, live "On the quote page" preview chips */
body.admin #dlg .dico .msw { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset -2px -3px 6px rgba(0,0,0,.15), 0 2px 5px rgba(0,0,0,.15); }
body.admin #dlg .kpur { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12.5px; font-weight: 600; color: #8a6420; }
body.admin #dlg .kpur:empty { display: none; }
body.admin #dlg .kpur svg { width: 13px; height: 13px; color: #c8962c; }
body.admin #dlg .opt .sw, body.admin #dlg .mpi .sw { width: 13px; height: 13px; border-radius: 50%; position: relative; overflow: hidden; flex: none;
  box-shadow: inset -1px -2px 3px rgba(0,0,0,.18), 0 0 0 1px rgba(169,132,63,.3); }
body.admin #dlg .opt .sw::after, body.admin #dlg .mpi .sw::after { content: ""; position: absolute; left: 20%; top: 14%; width: 40%; height: 30%; border-radius: 50%; background: rgba(255,255,255,.8); }
body.admin #dlg .mtip { margin-top: 0; }
body.admin #dlg .mprev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #fffaf0; border: 1px dashed #e7d3a4; }
body.admin #dlg .mpl { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a6420; margin-bottom: 2px; }
body.admin #dlg .mpi { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #00254e;
  background: #fff; border: 1px solid #f0e2bf; animation: mpIn .3s ease-out; }
@keyframes mpIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
/* Quotes CSV download: bobbing arrow on hover, gold count, spinning ring while preparing, star burst when saved (reuses .sbstars) */
body.admin .csvdl .dlico { position: relative; display: inline-grid; place-items: center; }
body.admin .csvdl .dlico i { position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 9px; font-weight: 800; line-height: 1; color: #fff; background: #c8962c; box-shadow: 0 0 0 1.5px #fffaf0; }
body.admin .csvdl:hover .dlico i { animation: dlBob .8s ease-in-out infinite; }
@keyframes dlBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
body.admin .csvdl .dlcnt { font-size: 12px; font-weight: 700; color: #fff; background: #c8962c; padding: 1px 7px; border-radius: 999px; margin-left: 2px; }
body.admin .csvdl.busy { pointer-events: none; }
body.admin .csvdl.busy .dlico { visibility: hidden; }
body.admin .csvdl.busy .dlico::before { content: ""; visibility: visible; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #f0e2bf; border-top-color: #c8962c; animation: sbSpin .8s linear infinite; }
body.admin .sbw.popping .sbstars i { animation: sbBurst 1.1s ease-out forwards; }
body.admin .sbw.popping .sbstars i:nth-child(1) { --dx: -50px; --dy: -28px; }
body.admin .sbw.popping .sbstars i:nth-child(2) { --dx: -28px; --dy: -40px; animation-delay: .05s; }
body.admin .sbw.popping .sbstars i:nth-child(3) { --dx: -4px; --dy: -44px; animation-delay: .1s; }
body.admin .sbw.popping .sbstars i:nth-child(4) { --dx: 22px; --dy: -40px; animation-delay: .03s; }
body.admin .sbw.popping .sbstars i:nth-child(5) { --dx: 46px; --dy: -30px; animation-delay: .08s; }
body.admin .sbw.popping .sbstars i:nth-child(6) { --dx: 58px; --dy: -10px; animation-delay: .12s; }
/* Quotes table rows: gold edge on hover, "New" tag that twinkles, centre stone shape tile, salesperson initials,
   champagne discount tag, "Due soon / Passed" required-by tags, expert price with a closeness badge, expired rows faded */
body.admin table.quotes tr:not(:first-child) td:first-child { box-shadow: inset 3px 0 0 transparent; transition: box-shadow .2s; }
body.admin table.quotes tr:not(:first-child):hover td:first-child { box-shadow: inset 3px 0 0 #c8962c; }
body.admin table.quotes tr.qold td { opacity: .7; }
body.admin table.quotes td:first-child { white-space: nowrap; }
body.admin table.quotes tr.qold:hover td { opacity: 1; }
body.admin .qnew { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: #8a6420; background: #fff4cc; border: 1px solid #e9c876; vertical-align: middle; }
body.admin .qnew::before { content: ""; width: 8px; height: 8px; background: #c8962c;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.4s ease-in-out infinite; }
body.admin .qitem { display: flex; gap: 10px; align-items: flex-start; }
body.admin .qshape { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #fdf6e3 75%);
  border: 1px solid #f0e2bf; transition: transform .2s, box-shadow .2s; }
body.admin .qshape img, body.admin .qshape svg, body.admin .qshape .ownwrap { width: 24px; height: 24px; }
body.admin table.quotes tr:hover .qshape { transform: rotate(-6deg) scale(1.06); box-shadow: 0 0 0 1px #e9c876, 0 4px 10px -4px rgba(184,137,42,.6); }
body.admin .qwho { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #00254e; }
body.admin .qwho .tav2 { width: 26px; height: 26px; font-size: 10.5px; }
body.admin table.quotes tr:hover .qwho .tav2 { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e9c876, 0 0 10px rgba(233,200,118,.7); }
body.admin .qdisc { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #8a6420; background: #fdf6e3; border: 1px solid #f0e2bf; }
body.admin .qdue { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
body.admin .qdue.soon { color: #a35a00; background: #fff4e0; animation: qSoon 2.2s ease-in-out infinite; }
body.admin .qdue.past { color: var(--muted); background: var(--surface-2); }
body.admin table.quotes td:nth-child(7) .badge { margin-top: 4px; font-size: 11.5px; }
/* Quotes search: gold magnifier that turns while typing, "/" key hint, match count and clear ×, gold-marked matches, friendly no-match message */
body.admin .qsearch svg.i { color: #c8962c; transition: transform .3s; z-index: 1; }
body.admin .qsearch.typing svg.i { transform: translateY(-50%) rotate(-20deg) scale(1.15) !important; }
body.admin .qsearch input { width: 280px; padding-right: 40px; }
body.admin .qsearch.has input { padding-right: 100px; border-color: #c8962c; box-shadow: 0 0 0 3px rgba(233,200,118,.25); }
body.admin .qsearch input:focus { border-color: #c8962c; box-shadow: 0 0 0 3px rgba(233,200,118,.3); outline: none; }
body.admin .qsearch input::-webkit-search-cancel-button { display: none; }
body.admin .qkey { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; display: grid; place-items: center;
  font: 600 12px/1 var(--font); color: #8a6420; background: #fdf6e3; border: 1px solid #e7d3a4; border-bottom-width: 2px; border-radius: 5px; }
body.admin .qsearch input:focus ~ .qkey { opacity: 0; }
body.admin .qhits { position: absolute; right: 36px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: #fff;
  background: #c8962c; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
body.admin .qsearch .qclear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border-radius: 50%;
  font-size: 15px; line-height: 1; color: #8a6420; background: #fdf6e3; }
body.admin .qsearch .qclear:hover { color: #b42318; background: #fff3f1; }
body.admin table.quotes mark { color: inherit; background: linear-gradient(180deg, transparent 45%, #f9e4a6 45%); border-radius: 2px; padding: 0 1px; }
body.admin table.quotes .qno mark { background: none; padding: 0; border-radius: 0; box-shadow: inset 0 -2px 0 currentColor; }
body.admin .qnone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.admin .qnone > div { flex: 1; min-width: 220px; }
body.admin .qnone b { color: #00254e; font-size: 16px; }
body.admin .qnone p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { body.admin .qsearch input { width: 100%; } body.admin .qkey { display: none; } }
/* Quotes status tabs: a marker per status (gold star All, green Valid, pulsing amber Expiring soon, red Expired), counts as small pills,
   empty tabs dimmed, chosen tab champagne with a gold ring, rows fade in when switching tabs */
body.admin .qtabs button { display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s, box-shadow .2s; }
body.admin .qtabs .qtd { width: 8px; height: 8px; border-radius: 50%; flex: none; }
body.admin .qtabs .qt-all .qtd { width: 9px; height: 9px; border-radius: 0; background: #c8962c; clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
body.admin .qtabs .qt-valid .qtd { background: #22a061; }
body.admin .qtabs .qt-soon .qtd { background: #e0a43a; }
body.admin .qtabs .qt-soon:not(.zero) .qtd { animation: qSoonDot 1.6s ease-in-out infinite; }
body.admin .qtabs .qt-exp .qtd { background: #d9534f; }
body.admin .qtabs .qtc { min-width: 20px; padding: 0 6px; height: 18px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: rgba(0,37,78,.07); color: var(--muted); }
body.admin .qtabs button.zero { opacity: .55; }
body.admin .qtabs button.zero .qtd { background: #c3cad4 !important; }
body.admin .qtabs button:hover { color: #00254e; }
body.admin .qtabs button:hover .qtd { transform: scale(1.25); transition: transform .2s; }
body.admin .qtabs button.on { background: linear-gradient(160deg, #fffaf0, #fff); color: #00254e; font-weight: 600; opacity: 1; }
body.admin .qtabs button.on .qtc { background: #c8962c; color: #fff; }
body.admin .qtabs .qt-soon.on .qtc { background: #e0a43a; }
body.admin .qtabs .qt-valid.on .qtc { background: #22a061; }
body.admin .qtabs .qt-exp.on .qtc { background: #d9534f; }
body.admin .qtabs .qt-all.on .qtd { animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin table.quotes.qfade tr:not(:first-child) { animation: qRowIn .35s ease-out both; }
body.admin table.quotes.qfade tr:nth-child(3) { animation-delay: .04s; } body.admin table.quotes.qfade tr:nth-child(4) { animation-delay: .08s; }
body.admin table.quotes.qfade tr:nth-child(5) { animation-delay: .12s; } body.admin table.quotes.qfade tr:nth-child(n+6) { animation-delay: .16s; }
@keyframes qRowIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.admin table.quotes.qfade tr { animation: none; } }
/* At a glance (Quotes): numbers count up, trend tag vs last month, 6-month gold bar chart, valid/expiring bar, discount share bar, clickable Still valid tile */
body.admin .glance > div { display: flex; flex-direction: column; }
body.admin .glance .tic { position: absolute; right: 12px; top: 12px; float: none; margin: 0; }
body.admin .gtrend { align-self: flex-start; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
body.admin .gtrend.up { color: #1d7a4c; background: #e8f6ee; border-color: #c4e8d3; }
body.admin .gtrend.down { color: #b42318; background: #fff3f1; border-color: #f3c3bd; }
body.admin .gspark { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 8px; }
body.admin .gspark i { flex: 1; max-width: 16px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #f5da8e, #c8962c); transform-origin: bottom; animation: gGrow .6s ease-out both; }
body.admin .gspark i.none { background: #f0e2bf; }
body.admin .gspark i:last-child { box-shadow: 0 0 6px rgba(233,200,118,.8); }
body.admin .gspark i:nth-child(2) { animation-delay: .05s; } body.admin .gspark i:nth-child(3) { animation-delay: .1s; } body.admin .gspark i:nth-child(4) { animation-delay: .15s; }
body.admin .gspark i:nth-child(5) { animation-delay: .2s; } body.admin .gspark i:nth-child(6) { animation-delay: .25s; }
@keyframes gGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
body.admin .gbar { display: flex; height: 6px; margin-top: 10px; border-radius: 999px; background: #f5ecd6; overflow: hidden; }
body.admin .gbar i { display: block; height: 100%; background: linear-gradient(90deg, #e9c876, #c8962c); animation: gFill .8s ease-out both; transform-origin: left; }
body.admin .gbar i.am { background: #e0a43a; }
@keyframes gFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body.admin .gpct { margin-top: 5px; text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; color: #8a6420 !important; font-weight: 600; }
body.admin .gclick { cursor: pointer; }
body.admin .gclick:active { transform: translateY(0) scale(.99) !important; }
body.admin .gsoon { color: #a35a00; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(163,90,0,.35); text-underline-offset: 2px; cursor: pointer; }
body.admin .gsoon:hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { body.admin .gspark i, body.admin .gbar i { animation: none; } }
/* Page titles (all Admin pages): gold badge with the page icon, a slow gold shine across the title; Quotes adds a "Latest" quote tag */
body.admin .ptrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
body.admin .pmed { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #6b4a12; position: relative; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 60%, #c8962c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e9c876, 0 4px 10px -4px rgba(184,137,42,.6); }
body.admin .pmed svg { width: 19px; height: 19px; }
body.admin .pmed::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent);
  transform: skewX(-20deg); animation: adGlint 6s ease-in-out infinite; }
body.admin .ptitle { margin: 0; }
body.admin .ptitle { background: linear-gradient(100deg, #00254e 0%, #00254e 42%, #c8962c 50%, #00254e 58%, #00254e 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: pShine 7s ease-in-out infinite; }
@keyframes pShine { 0%, 60% { background-position: 100% 0; } 100% { background-position: 0 0; } }
body.admin .platest { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 6px; margin-left: 14px; border-radius: 999px; font-size: 13px;
  color: #8a6420; background: #fdf6e3; border: 1px solid #f0e2bf; box-shadow: none; }
body.admin .platest:hover { border-color: #c8962c; background: #fff4cc; box-shadow: 0 3px 10px -4px rgba(184,137,42,.6); }
body.admin .platest .pl-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #c8962c; padding: 1px 7px; border-radius: 999px; }
body.admin .platest b { color: #00254e; font-weight: 700; }
body.admin .platest span:last-child { color: var(--muted); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { body.admin .ptitle, body.admin .pmed::after { animation: none; } }
/* Quotes page description: gold quote-number chips, gold icons on "downloads / emails", green privacy tag with a shield */
body.admin .qdesc { line-height: 1.9; }
body.admin .qdesc .dchip { display: inline-block; margin: 0 3px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 22px;
  color: #8a6420; background: #fdf6e3; border: 1px solid #e9c876; position: relative; overflow: hidden; vertical-align: 1px; }
body.admin .qdesc .dchip::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.95), transparent);
  transform: skewX(-20deg); animation: adGlint 5s ease-in-out infinite; }
body.admin .qdesc .dchip + .dchip::after { animation-delay: .4s; }
body.admin .qdesc .dact { display: inline-flex; align-items: center; gap: 4px; color: #00254e; font-weight: 600; }
body.admin .qdesc .dact svg { width: 15px; height: 15px; color: #c8962c; }
body.admin .qdesc .dpriv { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 0 10px 0 7px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  line-height: 24px; color: #1d7a4c; background: #e8f6ee; border: 1px solid #c4e8d3; white-space: nowrap; }
body.admin .qdesc .dpriv svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { body.admin .qdesc .dchip::after { animation: none; } }
/* Quotes table header: gold column icons, click to sort with a gold arrow, sorted column champagne-gold with a gold underline */
body.admin table.quotes .qhead th { cursor: pointer; user-select: none; white-space: nowrap; position: relative; transition: background .15s, color .15s; }
body.admin table.quotes .qhead th > * { vertical-align: middle; }
body.admin table.quotes .qhead th svg.i { width: 13px; height: 13px; margin-right: 5px; color: #c8962c; opacity: .8; transition: transform .2s, opacity .2s; }
body.admin table.quotes .qhead th.r { text-align: right; }
body.admin table.quotes .qhead .sarr { font-style: normal; font-size: 8px; letter-spacing: -1px; margin-left: 5px; color: #d8c9a3; transition: color .15s; }
body.admin table.quotes .qhead th:hover { background: #fdf0cf; color: #6b4a12; }
body.admin table.quotes .qhead th:hover svg.i { transform: scale(1.15) rotate(-8deg); opacity: 1; }
body.admin table.quotes .qhead th:hover .sarr { color: #c8962c; }
body.admin table.quotes .qhead th.on { background: linear-gradient(180deg, #fff4cc, #fdecc0); color: #00254e; }
body.admin table.quotes .qhead th.on svg.i { opacity: 1; }
body.admin table.quotes .qhead th.on .sarr { color: #c8962c; font-size: 10px; letter-spacing: 0; }
body.admin table.quotes .qhead th.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #e9c876, #fff4cc, #c8962c); background-size: 200% 100%; animation: adShine 3s linear infinite; }
/* Quotes table footer: champagne totals row with a shining gold top line, count, total + average, discounts, expert closeness */
body.admin table.quotes tr.qfoot td { background: linear-gradient(180deg, #fffaf0, #fdf3dc) !important; border-top: 0; border-bottom: 0; padding-top: 14px; padding-bottom: 14px;
  vertical-align: middle; opacity: 1 !important; animation: none !important; position: relative; }
body.admin table.quotes tr.qfoot td:first-child { box-shadow: none !important; }
body.admin table.quotes tr.qfoot td { border-top: 2px solid #e9c876 !important; }
body.admin .qf-n { color: #8a6420; font-weight: 600; margin-right: 14px; }
body.admin .qf-n b { font-size: 17px; color: #00254e; }
body.admin .qf-x { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
body.admin .qf-x svg { width: 14px; height: 14px; color: #c8962c; }
body.admin td.qf-tot { text-align: right; white-space: nowrap; }
body.admin td.qf-tot small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6420; }
body.admin td.qf-tot b { font-size: 18px !important; background: linear-gradient(100deg, #7a5a1c 0%, #b8892a 30%, #e9c876 45%, #b8892a 60%, #7a5a1c 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: adNum 4.5s ease-in-out infinite; }
body.admin td.qf-tot span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
body.admin td.qf-disc { text-align: left; }
@media (prefers-reduced-motion: reduce) { body.admin td.qf-tot b { animation: none; } }
/* Quotes empty states: no quotes yet (big gold gem, how-it-works steps, open quote page) and empty tabs (green check when it's good news) */
body.admin .qempty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 10px 18px;
  background: radial-gradient(50% 60% at 50% 0%, #fdf6e3 0%, rgba(253,246,227,0) 70%); }
body.admin .qempty .qe-big { width: 58px; height: 58px; margin-bottom: 14px; }
body.admin .qempty .qe-big svg { width: 27px; height: 27px; }
body.admin .qempty .qe-big::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%); background-size: 300% 100%; animation: adShine 4s linear infinite; }
body.admin .qempty > b { font-size: 19px; color: #00254e; font-weight: 600; }
body.admin .qempty > p { margin: 6px 0 0; max-width: 480px; color: var(--muted); }
body.admin .qempty .accsteps { justify-content: center; margin-top: 18px; }
body.admin .qempty .accsteps .dchip { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #8a6420; background: #fff4cc; border: 1px solid #e9c876; }
body.admin .qempty .qe-go { margin-top: 18px; }
body.admin .qetab.ok .tmed { color: #fff; background: radial-gradient(circle at 35% 30%, #6fd39e, #22a061 65%, #1d7a4c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #b6e3c8, 0 4px 10px -4px rgba(29,122,76,.5); }
body.admin .qetab.ok .tmed::after { background: #d9b25a; }
/* Quotes row hover: a light sweep across the row, soft gold shadow, shimmering price, a star at the row end; click the quote number to copy it */
body.admin table.quotes tr:not(.qhead):not(.qfoot) { position: relative; transition: box-shadow .2s; }
body.admin table.quotes tr:not(.qhead):not(.qfoot):hover { box-shadow: 0 6px 18px -12px rgba(184,137,42,.7); }
body.admin table.quotes tr:not(.qhead):not(.qfoot)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 20%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255,244,204,.75), transparent); transform: skewX(-20deg); }
body.admin table.quotes tr:not(.qhead):not(.qfoot):hover::after { animation: qSweep 1.1s ease-out; }
@keyframes qSweep { 0% { left: -30%; opacity: 1; } 100% { left: 110%; opacity: 0; } }
body.admin table.quotes tr:not(.qhead):not(.qfoot) td:last-child { position: relative; }
body.admin table.quotes tr:not(.qhead):not(.qfoot) td:last-child::after { content: ""; position: absolute; right: 2px; top: 8px; width: 9px; height: 9px; background: #d9b25a; opacity: 0;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); transition: opacity .2s; }
body.admin table.quotes tr:not(.qhead):not(.qfoot):hover td:last-child::after { opacity: 1; animation: adTwinkle 1.6s ease-in-out infinite; }
body.admin table.quotes tr:not(.qhead):not(.qfoot):hover td:nth-child(4) b { background: linear-gradient(100deg, #7a5a1c 0%, #b8892a 30%, #e9c876 45%, #b8892a 60%, #7a5a1c 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: adNum 1.6s ease-in-out infinite; }
body.admin .qno.qcp { cursor: copy; }
body.admin .qno.qcp:focus-visible { outline: 2px solid #c8962c; outline-offset: 2px; }
body.admin .qno.qcp.done { background: #22a061 !important; border-color: #22a061 !important; color: #fff !important; animation: qCopied .5s ease-out; }
body.admin .qno.qcp.done mark { background: none; color: inherit; box-shadow: none; }
@keyframes qCopied { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { body.admin table.quotes tr:hover::after, body.admin table.quotes tr:hover td:nth-child(4) b { animation: none; } }
/* Quotes item details as chips */
body.admin .ichips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; max-width: 300px; }
body.admin .qic { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: #33506f; background: #f5f7fa; border: 1px solid #e3e8ef; transition: border-color .15s, background .15s; }
body.admin table.quotes tr:hover .qic { border-color: #ecdcb6; background: #fffcf4; }
body.admin .qic .gdot { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset -1px -1px 2px rgba(0,0,0,.15); }
body.admin .qic.st-lab_diamond .gdot { background: radial-gradient(circle at 35% 30%, #fff, #cfe2f6 55%, #8fb0dc); }
body.admin .qic.st-natural_diamond .gdot { background: radial-gradient(circle at 35% 30%, #fff, #eef1f4 55%, #b8c0cb); }
body.admin .qic.st-moissanite .gdot { background: radial-gradient(circle at 35% 30%, #fff, #e6dcf5 55%, #a98fd0); }
body.admin .qic.ct { color: #8a6420; background: #fdf6e3; border-color: #f0e2bf; font-weight: 700; }
body.admin .qic.gr { color: #00254e; background: #fff; }
body.admin .qic.more { color: #8a6420; background: #fff; border-style: dashed; border-color: #e7d3a4; }
body.admin .qic.sidest svg { width: 10px; height: 10px; color: #c8962c; }
body.admin .qic .mball { width: 10px; height: 10px; border-radius: 50%; position: relative; overflow: hidden; box-shadow: inset -1px -1px 2px rgba(0,0,0,.2), 0 0 0 .5px rgba(169,132,63,.35); }
body.admin .qic .mball::after { content: ""; position: absolute; left: 18%; top: 12%; width: 42%; height: 32%; border-radius: 50%; background: rgba(255,255,255,.8); }
body.admin .qic.gm { color: var(--muted); font-weight: 500; }
/* Quotes Price column: polished gold price, full price struck through + discount tag (like the customer PDF), a gold size bar; the biggest quote's bar shines */
body.admin td.qprc { text-align: right; white-space: nowrap; }
body.admin td.qprc > b { font-size: 16px; }
body.admin .qwas { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 3px; }
body.admin .qwas s { font-size: 12.5px; color: var(--muted); text-decoration-color: rgba(180,35,24,.55); text-decoration-thickness: 1.5px; }
body.admin .qwas .qdisc { margin-top: 0; }
body.admin .qpbar { display: block; width: 70px; height: 4px; margin: 7px 0 0 auto; border-radius: 999px; background: #f5ecd6; overflow: hidden; }
body.admin .qpbar i { display: block; height: 100%; margin-left: auto; border-radius: 999px; background: linear-gradient(90deg, #f5da8e, #c8962c); transition: width .4s; }
body.admin .qpbar i[style*="width:100%"] { background: linear-gradient(100deg, #c8962c, #fff4cc 45%, #c8962c 60%, #e9c876); background-size: 220% 100%; animation: adShine 3s linear infinite; }
body.admin table.quotes tr:hover .qpbar { background: #f0e2bf; }
/* Quotes Valid until column: countdown ring (green / amber pulsing / red empty), date with "in N days", status tag */
body.admin td.qval { white-space: nowrap; }
body.admin .qvrow { display: flex; align-items: center; gap: 8px; }
body.admin .vring { width: 22px; height: 22px; flex: none; transform: rotate(-90deg); }
body.admin .vring circle { fill: none; stroke-width: 3; }
body.admin .vring .vbg { stroke: #eef1f4; }
body.admin .vring .vfg { stroke-linecap: round; stroke: #22a061; transition: stroke-dasharray .5s; }
body.admin .vring.soon .vfg { stroke: #e0a43a; }
body.admin .vring.soon { animation: vPulse 2s ease-in-out infinite; }
@keyframes vPulse { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 3px rgba(224,164,58,.8)); } }
body.admin .vring.exp .vbg { stroke: #f8d7d3; }
body.admin table.quotes tr:hover .vring.ok .vfg { stroke: #c8962c; }
body.admin .vdate { display: block; color: #00254e; }
body.admin .vrel { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
body.admin td.qval .qst { margin-top: 5px; margin-left: 30px; }
@media (prefers-reduced-motion: reduce) { body.admin .vring.soon { animation: none; } }
/* Change history timeline: gold line, gem dots, area badge, who chip, champagne glow on hover */
body.admin .timeline { position: relative; padding-left: 26px; }
body.admin .timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #e9c876, #fff4cc 20%, #c8962c 50%, #f5da8e 80%, #e9c876); background-size: 100% 200%; animation: tlShine 6s linear infinite; }
@keyframes tlShine { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
body.admin .tday + .tday { margin-top: 18px; }
body.admin .tdate { position: relative; margin: 0 0 10px -26px; padding-left: 26px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a6420; }
body.admin .titem { position: relative; margin-bottom: 10px; }
body.admin .tdot { position: absolute; left: -24px; top: 14px; width: 14px; height: 14px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #dfeaf7 55%, #9fb9da 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e9c876; }
body.admin .titem:first-child .tdot::after { content: ""; position: absolute; right: -8px; top: -7px; width: 8px; height: 8px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
body.admin .tcard { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
body.admin .tcard:hover { border-color: #e2c98f; box-shadow: 0 6px 16px -8px rgba(184,137,42,.55); transform: translateX(2px);
  background: linear-gradient(90deg, #fffaf0, #fff 70%); }
body.admin .tcard::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent); transform: skewX(-20deg); }
body.admin .tcard:hover::after { animation: adGlint 1.8s ease-in-out infinite; }
body.admin .tcard b { display: block; color: #00254e; font-weight: 600; margin: 4px 0 2px; }
body.admin .tarea { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #8a6420; background: #fdf6e3; border: 1px solid #f0e2bf; }
body.admin .tarea svg { width: 13px; height: 13px; }
body.admin .tmeta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
body.admin .tav { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff;
  background: #00254e; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #e9c876; }
/* count pills, pills and badges: champagne */
body.admin .cnt, body.admin .pill { background: #fdf6e3; border-color: #f0e2bf; color: #8a6420; }
/* "At a glance" / accuracy tiles: gold icon badge, polished-gold numbers, shimmering top line, lift + glow + sheen on hover */
body.admin .acc-stats > div { overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; background-size: 220% 100%;
  background-image: linear-gradient(110deg, #fffaf0 0%, #fff 45%, #fdf3dc 55%, #fffaf0 100%); background-position: 100% 0; }
body.admin .acc-stats > div:hover { transform: translateY(-2px); border-color: #e2c98f; box-shadow: 0 10px 22px -10px rgba(184,137,42,.6);
  animation: tileSheen 1.8s ease-in-out infinite; }
body.admin .acc-stats > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #e9c876, #fff4cc 25%, #b8892a 50%, #f5da8e 75%, #e9c876); background-size: 200% 100%; animation: adShine 6s linear infinite; }
body.admin .acc-stats .tic { float: right; width: 30px; height: 30px; margin: -2px -2px 0 6px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #fff4cc, #ecc96c 45%, #c8962c); color: #fff; box-shadow: 0 2px 8px -2px rgba(184,137,42,.7); }
body.admin .acc-stats .tic svg { width: 16px; height: 16px; stroke-width: 2.2; }
body.admin .acc-stats b { background: linear-gradient(100deg, #7a5a1c 0%, #b8892a 30%, #e9c876 45%, #b8892a 60%, #7a5a1c 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: adNum 4.5s ease-in-out infinite; }
@keyframes adNum { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
body.admin .acc-stats > div::after { right: 44px !important; }
/* Accuracy check stats: champagne tiles, gold numbers, a twinkling star */
body.admin .acc-stats > div { position: relative; background: linear-gradient(160deg, #fffaf0, #fff 70%); border-color: #f0e2bf; }
body.admin .acc-stats b { color: #8a6420; }
body.admin .acc-stats > div::after { content: ""; position: absolute; right: 10px; top: 10px; width: 8px; height: 8px; background: #d9b25a;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 3s ease-in-out infinite; }
/* "All changes saved": a twinkling gold star instead of a plain dot */
body.admin .saved:not(.dirty):not(.err):not(.busy)::before { width: 9px; height: 9px; border-radius: 0; background: #c8962c;
  clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); animation: adTwinkle 2.6s ease-in-out infinite; }
/* toast: navy pill with a gold check badge, a glint on arrival, a twinkling star and a gold time line; errors red with a shake;
   sits above the Save bar when that is showing */
body.admin .toast { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 999px; overflow: hidden; font-weight: 600; }
body.admin .bar:not(.hidden) ~ .toast { bottom: 84px; }
body.admin .toast .tbadge { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #6b4a12;
  background: radial-gradient(circle at 35% 30%, #fff4cc, #e9c876 60%, #c8962c); box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
body.admin .toast .tbadge svg { width: 15px; height: 15px; stroke-width: 2.6; }
body.admin .toast.err .tbadge { color: #b42318; background: #fff; }
body.admin .toast::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
body.admin .toast.show::after { animation: tGlint .9s ease-out .15s; }
@keyframes tGlint { from { left: -60%; } to { left: 130%; } }
body.admin .toast:not(.err) .tbadge { position: relative; }
body.admin .toast.show:not(.err) .tbadge { animation: tPop .45s ease-out; }
@keyframes tPop { 0% { transform: scale(.4) rotate(-30deg); } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1); } }
body.admin .toast .tbar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; transform-origin: left;
  background: linear-gradient(90deg, #e9c876, #fff4cc, #c8962c); }
body.admin .toast.err .tbar { background: rgba(255,255,255,.6); }
body.admin .toast.show .tbar { animation-name: tRun; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes tRun { from { transform: scaleX(1); } to { transform: scaleX(0); } }
body.admin .toast.show.err { animation: tShake .4s ease-in-out .1s; }
@keyframes tShake { 0%, 100% { margin-left: 0; } 25% { margin-left: -5px; } 50% { margin-left: 5px; } 75% { margin-left: -3px; } }
@media (prefers-reduced-motion: reduce) { body.admin .toast.show::after, body.admin .toast.show .tbadge, body.admin .toast.show.err { animation: none; } }
/* toast: navy with a gold edge */
body.admin .toast { box-shadow: 0 0 0 1px rgba(233,200,118,.6), 0 10px 24px -8px rgba(0,37,78,.5); }
body.admin .toast:not(.err) { background: linear-gradient(140deg, #00254e, #0b3566); }
/* breadcrumbs: gold arrow; icon buttons gold on hover */
body.admin .crumbs i { color: #c8962c; }
body.admin .iconbtn:hover { color: #8a6420; background: #fdf6e3; }

/* the owner's shape drawings: bigger, so their facets show */
body.admin .icbox .ownwrap { width: 84%; height: 84%; } body.admin .icbox .ownwrap img.own { width: 100%; height: 100%; }
body.admin .sc .icbox .ownwrap { width: 44px; height: 44px; }
body.admin .icbox { background: #fff; overflow: hidden; }
body.admin .icbox img.own { width: 84%; height: 84%; object-fit: contain; }
body.admin .sc .icbox { width: 56px; height: 56px; border-radius: 10px; }
body.admin .sc .icbox img.own { width: 44px; height: 44px; }
body.admin .dico img.own { width: 40px; height: 40px; }
body.admin .sc:hover .icbox { border-color: #e7d3a4; box-shadow: 0 2px 8px -3px rgba(184,137,42,.4); }

@media (prefers-reduced-motion: reduce) { body.admin *, body.admin *::before, body.admin *::after { animation: none !important; } }
