/*
 * The "glass" look: a soft background with blurred colour, frosted translucent cards, pill buttons and chips, a floating menu.
 * It only overrides the look of the application (colours, rounding, shadows); nothing of the markup or the functions changes.
 * Everything is under `html.glass`, so it is switched on and off by one class. The light and the dark glass share the rules: they differ
 * in the variables only (the two blocks of variables right below).
 */

/* ---- the light glass ---- */
html.glass {
  --bg: #e8eaee;
  --card: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.5);
  --soft2: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.85);
  --grid: rgba(21, 32, 27, 0.07);
  --ink: #121b26;
  --muted: #5b6a7a;
  --yellow: #f6e15a;
  --yellow-ink: #1c1a0e;

  --g-card: var(--card);
  --g-card-in: rgba(255, 255, 255, 0.55); /* a card inside a card */
  --g-border: rgba(255, 255, 255, 0.85);
  --g-shadow: 0 10px 34px rgba(31, 46, 74, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --g-pill: rgba(255, 255, 255, 0.65);
  --g-pill-border: #fff;
  --g-pill-shadow: 0 3px 10px rgba(31, 46, 74, 0.06);
  --g-pill-on: #fff;
  --g-pill-on-shadow: 0 5px 16px rgba(31, 46, 74, 0.14);
  --g-field: rgba(255, 255, 255, 0.72);
  --g-field-border: rgba(31, 46, 74, 0.16);
  --g-field-shadow: inset 0 1px 2px rgba(31, 46, 74, 0.08);
  --g-float: rgba(255, 255, 255, 0.99);
  --g-solid: rgb(255, 255, 255); /* what floats and must not show anything through (a notice) */
  --g-float-shadow: 0 18px 50px rgba(31, 46, 74, 0.22);
  --g-sticky: rgb(248, 249, 252);
  --g-sep: rgba(21, 32, 27, 0.07);
  --g-hover: rgba(255, 255, 255, 0.55);
  --g-side-mix: 92%; /* how much of the colour of the firm the menu keeps; the colour itself is read on the menu (--menu is set per firm) */
  --g-side-border: rgba(255, 255, 255, 0.8);
  --g-wait: rgba(255, 239, 214, 0.75);
  --g-done: rgba(222, 245, 232, 0.75);
  --g-info: rgba(226, 237, 255, 0.78);
  --g-green-pill: rgba(214, 242, 226, 0.85);
  --g-green-ink: #0a4d3f;
  --g-danger: #f4c5c0;
  --g-danger-ink: #7a1d17;
  --g-backdrop: rgba(30, 40, 60, 0.28);
  --g-bg:
    radial-gradient(900px 620px at 82% -4%, rgba(247, 214, 66, 0.6), transparent 62%),
    radial-gradient(760px 600px at 4% 96%, rgba(118, 160, 214, 0.5), transparent 64%),
    radial-gradient(700px 520px at 46% 46%, rgba(255, 255, 255, 0.75), transparent 72%),
    radial-gradient(520px 420px at 100% 100%, rgba(240, 150, 90, 0.28), transparent 66%), #e9ebef;
}

/* ---- the dark glass: deep blue ground with soft blue, violet and amber light, glass that is a little lighter than the ground ---- */
html.glass[data-theme="dark"] {
  --bg: #080d18;
  --card: rgba(255, 255, 255, 0.07);
  --soft: rgba(255, 255, 255, 0.05);
  --soft2: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.14);
  --grid: rgba(255, 255, 255, 0.08);
  --ink: #e8eef7;
  --muted: #9fb0c4;

  --g-card-in: rgba(255, 255, 255, 0.06);
  --g-border: rgba(255, 255, 255, 0.14);
  --g-shadow: 0 12px 38px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --g-pill: rgba(255, 255, 255, 0.08);
  --g-pill-border: rgba(255, 255, 255, 0.16);
  --g-pill-shadow: none;
  --g-pill-on: rgba(255, 255, 255, 0.18);
  --g-pill-on-shadow: 0 5px 16px rgba(0, 0, 0, 0.35);
  --g-field: rgba(255, 255, 255, 0.07);
  --g-field-border: rgba(255, 255, 255, 0.16);
  --g-field-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  --g-float: rgba(22, 29, 46, 0.99);
  --g-solid: rgb(22, 29, 46);
  --g-float-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --g-sticky: rgb(21, 28, 44);
  --g-sep: rgba(255, 255, 255, 0.08);
  --g-hover: rgba(255, 255, 255, 0.08);
  --g-side-mix: 80%;
  --g-side-border: rgba(255, 255, 255, 0.12);
  --g-wait: rgba(245, 147, 49, 0.2);
  --g-done: rgba(40, 170, 105, 0.18);
  --g-info: rgba(70, 120, 230, 0.2);
  --g-green-pill: rgba(40, 170, 105, 0.25);
  --g-green-ink: #bfe8d2;
  --g-danger: rgba(220, 80, 70, 0.3);
  --g-danger-ink: #ffb4ae;
  --g-backdrop: rgba(0, 0, 0, 0.5);
  --g-bg:
    radial-gradient(900px 640px at 84% -6%, rgba(232, 168, 50, 0.3), transparent 62%),
    radial-gradient(800px 640px at 2% 98%, rgba(48, 98, 214, 0.42), transparent 64%),
    radial-gradient(680px 520px at 52% 42%, rgba(110, 80, 200, 0.22), transparent 70%), #080d18;
}

/* the background: soft colour behind everything. It is a layer of its own that stays in place while the page scrolls (a background
   "fixed" on the body is painted again at every step of the scroll, which is slow, above all in Safari) */
html.glass { background: var(--bg); }
html.glass body { background: transparent; }
html.glass body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--g-bg);
  pointer-events: none;
}

/* ---- the layout: the menu floats as a rounded glass panel ---- */
html.glass .shell { padding: 16px; gap: 18px; }
html.glass .main { padding: 8px 12px 48px; }
@media (min-width: 861px) {
  html.glass .side {
    top: 16px;
    height: calc(100vh - 32px);
    border-radius: 28px;
    background: color-mix(in srgb, var(--menu) var(--g-side-mix), transparent);
    border: 1px solid var(--g-side-border);
    box-shadow: var(--g-shadow);
  }
}
/* the menu scrolls when it is longer than the window. The panel itself does not scroll: the block inside does, and it reaches 14px beyond the
   panel, so the thin bar of the scroll sits in the gap beside the menu, not on it */
@media (min-width: 861px) {
  html.glass .side { overflow: visible; padding: 0; gap: 0; }
  html.glass .side-scroll {
    --side-gap: 20px;
    align-self: flex-start; /* the narrow menu centres what is in it: the block must stay at the left edge, or its bar sits on the panel */
    display: flex;
    flex-direction: column;
    gap: var(--side-gap);
    flex: 1 1 auto;
    min-height: 0;
    width: calc(100% + 14px);
    overflow-x: hidden;
    overflow-y: scroll; /* the place of the bar is always there (the bar itself shows only when there is something to scroll), so what is inside is as far from the right edge of the panel as from the left one, with or without a scroll */
    padding: 20px 20px 20px 14px; /* the right side: 14px of the panel's padding + the 14px beyond it - the 8px of the bar */
    border-radius: 27px 0 0 27px;
  }
  /* Firefox has its own thin bar; Chrome and Safari take the one below, which always takes its 8px */
  @supports (-moz-appearance: none) {
    html.glass .side-scroll {
      scrollbar-width: thin;
      scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent;
    }
  }
  html.glass.side-off .side-scroll { --side-gap: 14px; align-items: center; padding: 14px 14px 14px 8px; }
  /* the line above the user is as far from what is over it as from what is under it (the gap of the menu was added above the line only:
     30px over it, 10px under it) */
  html.glass .userbox { margin-top: calc(-1 * var(--side-gap)); }
  html.glass .side-scroll::-webkit-scrollbar { width: 8px; }
  html.glass .side-scroll::-webkit-scrollbar-track { background: transparent; }
  html.glass .side-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 8px; }
}
/* the bar at the top: the search takes the free room (it was cut short, with an empty gap beside it) */
@media (min-width: 861px) {
  html.glass .top .chips { flex: 0 1 auto; }
  html.glass .top-tools { flex: 1 1 400px; }
  html.glass .top-search { flex: 1 1 auto; max-width: 520px; margin-left: auto; }
  html.glass .top-search .filter-input { width: 100%; }
}
html.glass .userbox { border-top-color: var(--g-sep); }

/* the items of the menu: pills; the lit one is a lighter pill with a soft shadow */
html.glass .nav a { border-radius: 999px; font-weight: 600; }
html.glass .nav a:hover { background: var(--g-hover); }
html.glass .nav a.on { background: var(--g-pill-on); color: var(--ink); box-shadow: var(--g-pill-on-shadow); }
html.glass .nav a.on svg { color: var(--accent); }

/* ---- cards: frosted glass ---- */
html.glass .card,
html.glass .tile,
html.glass .kpi-tile,
html.glass .order-card,
html.glass .pay-sec,
html.glass .warn-card,
html.glass .inbox-item {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: 24px;
  box-shadow: var(--g-shadow);
}
html.glass .order-card { border-radius: 18px; }
html.glass .pay-sec { border-left-width: 1px; position: relative; }
/* the stripe of a coloured card stays, as a soft bar on the edge */
html.glass .pay-sec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: var(--stripe, #f59331);
  pointer-events: none;
}
html.glass .pay-sec.wait { --stripe: #f59331; background: linear-gradient(180deg, var(--g-wait), var(--g-card) 150px); }
html.glass .pay-sec.done { --stripe: #1a7f4b; background: linear-gradient(180deg, var(--g-done), var(--g-card) 150px); }
html.glass .pay-sec.info { --stripe: #2e6fd6; background: linear-gradient(180deg, var(--g-info), var(--g-card) 150px); }
html.glass .tile { transition: box-shadow 0.2s, transform 0.2s; }
html.glass .tile:hover { border-color: var(--g-pill-border); box-shadow: 0 14px 38px rgba(31, 46, 74, 0.16); transform: translateY(-1px); }

/* a card inside a card, a row of an order or an item of the inbox: a lighter, flat layer inside the panel they sit in */
html.glass .card .card,
html.glass .pay-sec .order-card,
html.glass .pay-sec .card,
html.glass .inbox-item,
html.glass .card .kpi-tile {
  background: var(--g-card-in);
}

/* the card of a firm (the details of the firm on the home page, the list of the firms in the administration): rounded like the other cards, with
   the stripe in the colour of the firm as a soft bar. Inside another card it has no box of its own (a lighter square in a round card looked cut off) */
html.glass .co-card {
  position: relative;
  border: 1px solid var(--g-border);
  border-radius: 24px;
  background: var(--g-card);
  box-shadow: var(--g-shadow);
  padding: 20px 22px 20px 28px;
}
html.glass .co-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: var(--co, var(--accent));
  pointer-events: none;
}
html.glass .card .co-card { background: var(--g-card-in); box-shadow: none; }
html.glass .entity-card .co-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 6px 0 6px 24px; }
html.glass .entity-card .co-card::before { left: 4px; top: 6px; bottom: 6px; border-radius: 6px; }

/* the dark panel of the home page: rounder, with a soft glow on the edge */
html.glass .hero { border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 22px 60px rgba(20, 40, 90, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
html.glass .kpi { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; }

/* ---- headings: lighter, a little tighter ---- */
html.glass h1,
html.glass h2,
html.glass h3 { font-weight: 600; letter-spacing: -0.015em; }
html.glass .top h1 { font-size: 28px; font-weight: 500; }
html.glass .kpi-tile b { font-weight: 500; font-size: 26px; letter-spacing: -0.02em; }

/* ---- buttons and chips: pills; the main button is yellow, the others are glass ---- */
html.glass .btn {
  border-radius: 999px;
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 6px 18px rgba(214, 180, 20, 0.28);
}
html.glass .btn:hover { filter: brightness(1.04); }
html.glass .btn.secondary {
  background: var(--g-pill);
  color: var(--ink);
  border: 1px solid var(--g-pill-border);
  box-shadow: var(--g-pill-shadow);
}
html.glass .btn.danger { background: var(--g-danger); color: var(--g-danger-ink); box-shadow: none; }
html.glass .chip {
  background: var(--g-pill);
  border: 1px solid var(--g-pill-border);
  color: var(--ink);
  box-shadow: var(--g-pill-shadow);
}
/* back and forward of the installed app: a soft glass pill like the years */
html.glass .hist-nav { background: var(--g-pill); border: 1px solid var(--g-pill-border); box-shadow: var(--g-pill-shadow); }
html.glass .hist-btn + .hist-btn { border-left-color: var(--g-sep); }
/* "Show more" of the reminders is a soft pill like the others */
html.glass .rem-more { background: var(--g-pill); border: 1px solid var(--g-pill-border); box-shadow: var(--g-pill-shadow); }
/* the knowledge of Fred: the cards and the dashed file box in the glass */
html.glass .fred-list li { background: var(--g-card-in); border-color: var(--g-border); }
html.glass .fp-btn { background: var(--g-pill); border-color: var(--g-pill-border); }
html.glass .fred-upload .fp { border: 1px dashed var(--g-field-border); background: var(--g-field); border-radius: 14px; }
html.glass .fred-upload .fp-btn { border-radius: 999px; }
html.glass .chip.on { background: var(--g-pill-on); color: var(--ink); box-shadow: var(--g-pill-on-shadow); border-color: var(--g-pill-border); }
/* the years: a row of soft pills; the open year is lighter, the current one a little green */
html.glass .chip.year { background: var(--g-pill); border: 1px solid var(--g-pill-border); color: var(--ink); box-shadow: var(--g-pill-shadow); }
html.glass .chip.year:hover { background: var(--g-pill-on); filter: none; }
html.glass .chip.year.on,
html.glass .chip.year[aria-current] { background: var(--g-pill-on); box-shadow: var(--g-pill-on-shadow); }
html.glass .chip.role-badge { background: var(--g-green-pill); border-color: var(--g-pill-border); color: var(--g-green-ink); }
/* the year that is open wears the colour of the firm (as in the classic look) */
html.glass .chip.year.current { background: color-mix(in srgb, var(--accent) 14%, var(--g-pill-on)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
html.glass[data-theme="dark"] .chip.year.current { background: color-mix(in srgb, var(--accent) 50%, transparent); border-color: color-mix(in srgb, var(--accent) 75%, transparent); color: var(--ink); }

/* ---- the fields ---- */
html.glass input[type="text"],
html.glass input[type="email"],
html.glass input[type="date"],
html.glass input[type="number"],
html.glass input[type="search"],
html.glass input[type="password"],
html.glass input[type="tel"],
html.glass input[type="url"],
html.glass input:not([type]),
html.glass input[type="month"],
html.glass input[type="time"],
html.glass input[type="datetime-local"],
html.glass select,
html.glass textarea {
  background: var(--g-field);
  border: 1px solid var(--g-field-border);
  border-radius: 14px;
  box-shadow: var(--g-field-shadow);
  color: var(--ink);
}
/* every search (the one at the top, the ones above the lists, the audit) is one pill: the field inside has no box of its own, or there are two boxes one in the other */
html.glass .filter-input,
html.glass .top-search label {
  background: var(--g-field);
  border: 1px solid var(--g-field-border);
  border-radius: 999px;
  box-shadow: var(--g-pill-shadow);
}
html.glass .filter-input input[type="search"],
html.glass .top-search input[type="search"] { background: transparent; border: 0; box-shadow: none; border-radius: 999px; }
html.glass .filter-input:focus-within { border-color: var(--accent); }
html.glass .top-tools .chip,
html.glass .top-tools button { border-radius: 999px; }

/* small buttons in rows (copy, eye, flag, tick) are soft glass circles */
html.glass .btn.sm.secondary,
html.glass .icon-btn { background: var(--g-pill); border: 1px solid var(--g-pill-border); box-shadow: var(--g-pill-shadow); }

/* ---- tables: quiet lines, small capitals in the heads ---- */
html.glass th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
/* the small capitals are for the heads of the columns; a name in a row (a contact, a supplier) is shown as it is written on its card */
html.glass tbody th { text-transform: none; letter-spacing: normal; }
html.glass th,
html.glass td { border-bottom-color: var(--g-sep); }

/* ---- small things ---- */
html.glass .badge { border-radius: 999px; border: 1px solid var(--g-border); }
html.glass .banner { border-radius: 30px; background: linear-gradient(90deg, #f7d84a, #f6b64a); color: #2b1700; box-shadow: 0 8px 22px rgba(240, 170, 40, 0.25); }
/* the buttons in the yellow banner keep dark text in both modes (the ink of the dark mode is light) */
html.glass .banner .chip,
html.glass .banner .chip:hover { background: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.8); color: #2b1700; box-shadow: none; }
html.glass .fred-chat { border-radius: 24px; background: var(--g-float); border-color: var(--g-border); box-shadow: var(--g-float-shadow); }
html.glass .fred-msg.me { background: #2e6fd6; color: #fff; }
html.glass .fred-areas,
html.glass .fred-areas-list li { border-color: var(--g-sep); }
html.glass .fred-attach { background: var(--g-pill); border-color: var(--g-pill-border); }
html.glass .hand-btn { background: var(--g-float); border-color: var(--g-border); }
/* switched on: the colour of the firm with a white hand (the glass look gave it the white of the closed one, and the white hand vanished on it) */
html.glass .hand-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- what floats over the page (menus, dialogs, previews, the bar with the save button) must be nearly solid: through a see-through one
   the page behind would show ---- */
html.glass .dd ul,
html.glass .zdd ul,
html.glass .acct-list,
html.glass .thumb-pop,
html.glass dialog,
html.glass .co-save {
  background: var(--g-float);
  color: var(--ink);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-float-shadow);
}
html.glass .dd ul,
html.glass .zdd ul,
html.glass .acct-list { border-radius: 18px; }
html.glass dialog { border-radius: 24px; }
html.glass dialog::backdrop { background: var(--g-backdrop); }
/* a notice that floats over the page (a toast: the discrepancies, an error, a confirmation) is solid too, in the tint of its kind: through a see-through one
   the figures of the page behind did overwrite its text (on a phone as well) */
html.glass .toast > [role] {
  background: var(--g-solid);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-float-shadow);
  border-radius: 18px;
  background-clip: padding-box;
}
html.glass .toast > .warn-card,
html.glass .toast > .warn-box { background: color-mix(in srgb, var(--warn) 16%, var(--g-solid)); border-color: color-mix(in srgb, var(--warn) 50%, var(--g-solid)); }
html.glass .toast > .err { background: color-mix(in srgb, #d8483c 14%, var(--g-solid)); border-color: color-mix(in srgb, #d8483c 50%, var(--g-solid)); }
html.glass .toast > .ok { background: color-mix(in srgb, #1a7f4b 14%, var(--g-solid)); border-color: color-mix(in srgb, #1a7f4b 45%, var(--g-solid)); }
html.glass .co-save { border-radius: 0 0 24px 24px; box-shadow: none; border-width: 1px 0 0; }

/* sticky cells of the tables (the actions at the right end, the first column) cover what scrolls under them */
html.glass tr[data-doc-id] > td.doc-actions-cell,
html.glass tr[data-filter-row="revenue"] > td.doc-actions-cell,
html.glass tr.pay-main > td:has(> .doc-icons),
html.glass th.col-act,
html.glass .cf-table th:first-child,
html.glass .cf-table td:first-child { background: var(--g-sticky); }
/* the plus of a month stands on the tint of its line, but solid: what scrolls under it must not show through (the headings did overwrite each other) */
html.glass tbody.month-group > tr.month-head > td.month-act { background: color-mix(in srgb, var(--accent) 7%, var(--g-sticky)); }

/* ---- a person who asked for less transparency: the cards are solid, the look stays calm ---- */
@media (prefers-reduced-transparency: reduce) {
  html.glass { --card: #ffffff; --g-card: #ffffff; --g-card-in: #f6f7fa; --line: #e4e7ec; --g-border: #e4e7ec; }
  html.glass[data-theme="dark"] { --card: #161d2e; --g-card: #161d2e; --g-card-in: #1b2438; --line: #2a3550; --g-border: #2a3550; }
  html.glass .side { background: color-mix(in srgb, var(--menu) 90%, var(--bg)); }
}

/* ---- the coloured buttons of the glass look: one pill for all, the kind is told by the colour of the border and of the picture (delete red, edit green,
   done teal, back amber, open indigo, add blue, depreciation pink, plan cyan); the same kinds as the tones of the classic look (buttonTone.ts) ---- */
html.glass .btn.secondary.bt-del,
html.glass .btn.danger,
html.glass .btn.danger.sm,
html.glass form[action*="/delete"] .btn,
html.glass .btn[formaction*="/delete"],
html.glass .icon-btn.remove { background: var(--g-pill); color: #a1281c; border: 1px solid #f1b7b0; box-shadow: var(--g-pill-shadow); }
html.glass .btn.secondary.bt-del:hover,
html.glass .btn.danger:hover,
html.glass .btn.danger.sm:hover,
html.glass form[action*="/delete"] .btn:hover,
html.glass .btn[formaction*="/delete"]:hover,
html.glass .icon-btn.remove:hover { background: color-mix(in srgb, #a1281c 9%, var(--g-pill)); filter: none; }
html.glass[data-theme="dark"] .btn.secondary.bt-del,
html.glass[data-theme="dark"] .btn.danger,
html.glass[data-theme="dark"] .btn.danger.sm,
html.glass[data-theme="dark"] form[action*="/delete"] .btn,
html.glass[data-theme="dark"] .btn[formaction*="/delete"],
html.glass[data-theme="dark"] .icon-btn.remove { color: #ffb4ab; border-color: #7a3a35; }
html.glass[data-theme="dark"] .btn.secondary.bt-del:hover,
html.glass[data-theme="dark"] .btn.danger:hover,
html.glass[data-theme="dark"] .btn.danger.sm:hover,
html.glass[data-theme="dark"] form[action*="/delete"] .btn:hover,
html.glass[data-theme="dark"] .btn[formaction*="/delete"]:hover,
html.glass[data-theme="dark"] .icon-btn.remove:hover { background: color-mix(in srgb, #ffb4ab 12%, var(--g-pill)); }
html.glass .btn.secondary.bt-edit { background: var(--g-pill); color: #25693a; border: 1px solid #a9d8b7; box-shadow: var(--g-pill-shadow); }
html.glass .btn.secondary.bt-edit:hover { background: color-mix(in srgb, #25693a 9%, var(--g-pill)); filter: none; }
html.glass[data-theme="dark"] .btn.secondary.bt-edit { color: #a9dcb6; border-color: #3d6a4b; }
html.glass[data-theme="dark"] .btn.secondary.bt-edit:hover { background: color-mix(in srgb, #a9dcb6 12%, var(--g-pill)); }
html.glass .btn.secondary.bt-done,
html.glass .btn.done,
html.glass .icon-btn.add,
html.glass .icon-btn.in { background: var(--g-pill); color: #0f6b5f; border: 1px solid #9fd6cc; box-shadow: var(--g-pill-shadow); }
html.glass .btn.secondary.bt-done:hover,
html.glass .btn.done:hover,
html.glass .icon-btn.add:hover,
html.glass .icon-btn.in:hover { background: color-mix(in srgb, #0f6b5f 9%, var(--g-pill)); filter: none; }
html.glass[data-theme="dark"] .btn.secondary.bt-done,
html.glass[data-theme="dark"] .btn.done,
html.glass[data-theme="dark"] .icon-btn.add,
html.glass[data-theme="dark"] .icon-btn.in { color: #9be0d4; border-color: #2f6a60; }
html.glass[data-theme="dark"] .btn.secondary.bt-done:hover,
html.glass[data-theme="dark"] .btn.done:hover,
html.glass[data-theme="dark"] .icon-btn.add:hover,
html.glass[data-theme="dark"] .icon-btn.in:hover { background: color-mix(in srgb, #9be0d4 12%, var(--g-pill)); }
html.glass .btn.secondary.bt-back,
html.glass .btn.secondary.bt-end,
html.glass .icon-btn.loan.on { background: var(--g-pill); color: #8a5a00; border: 1px solid #f0d49a; box-shadow: var(--g-pill-shadow); }
html.glass .btn.secondary.bt-back:hover,
html.glass .btn.secondary.bt-end:hover,
html.glass .icon-btn.loan.on:hover { background: color-mix(in srgb, #8a5a00 9%, var(--g-pill)); filter: none; }
html.glass[data-theme="dark"] .btn.secondary.bt-back,
html.glass[data-theme="dark"] .btn.secondary.bt-end,
html.glass[data-theme="dark"] .icon-btn.loan.on { color: #ffcf8a; border-color: #7a5a2a; }
html.glass[data-theme="dark"] .btn.secondary.bt-back:hover,
html.glass[data-theme="dark"] .btn.secondary.bt-end:hover,
html.glass[data-theme="dark"] .icon-btn.loan.on:hover { background: color-mix(in srgb, #ffcf8a 12%, var(--g-pill)); }
html.glass .btn.secondary.bt-out,
html.glass .btn.secondary.eye-btn,
html.glass .btn.eye-btn,
html.glass .acts-toggle.btn.secondary { background: var(--g-pill); color: #3d4a9a; border: 1px solid #bcc3ee; box-shadow: var(--g-pill-shadow); }
html.glass .btn.secondary.bt-out:hover,
html.glass .btn.secondary.eye-btn:hover,
html.glass .btn.eye-btn:hover,
html.glass .acts-toggle.btn.secondary:hover { background: color-mix(in srgb, #3d4a9a 9%, var(--g-pill)); filter: none; }
html.glass[data-theme="dark"] .btn.secondary.bt-out,
html.glass[data-theme="dark"] .btn.secondary.eye-btn,
html.glass[data-theme="dark"] .btn.eye-btn,
html.glass[data-theme="dark"] .acts-toggle.btn.secondary { color: #bcc3f5; border-color: #444d8a; }
html.glass[data-theme="dark"] .btn.secondary.bt-out:hover,
html.glass[data-theme="dark"] .btn.secondary.eye-btn:hover,
html.glass[data-theme="dark"] .btn.eye-btn:hover,
html.glass[data-theme="dark"] .acts-toggle.btn.secondary:hover { background: color-mix(in srgb, #bcc3f5 12%, var(--g-pill)); }
html.glass .btn.secondary.bt-add,
html.glass label.btn.secondary,
html.glass summary.btn.secondary,
html.glass .fp-btn,
html.glass .rem-more,
html.glass .icon-btn.cal { background: var(--g-pill); color: #14578a; border: 1px solid #a8d0ee; box-shadow: var(--g-pill-shadow); }
html.glass .btn.secondary.bt-add:hover,
html.glass label.btn.secondary:hover,
html.glass summary.btn.secondary:hover,
html.glass .fp-btn:hover,
html.glass .rem-more:hover,
html.glass .icon-btn.cal:hover { background: color-mix(in srgb, #14578a 9%, var(--g-pill)); filter: none; }
html.glass[data-theme="dark"] .btn.secondary.bt-add,
html.glass[data-theme="dark"] label.btn.secondary,
html.glass[data-theme="dark"] summary.btn.secondary,
html.glass[data-theme="dark"] .fp-btn,
html.glass[data-theme="dark"] .rem-more,
html.glass[data-theme="dark"] .icon-btn.cal { color: #9fd0f2; border-color: #2e5a7a; }
html.glass[data-theme="dark"] .btn.secondary.bt-add:hover,
html.glass[data-theme="dark"] label.btn.secondary:hover,
html.glass[data-theme="dark"] summary.btn.secondary:hover,
html.glass[data-theme="dark"] .fp-btn:hover,
html.glass[data-theme="dark"] .rem-more:hover,
html.glass[data-theme="dark"] .icon-btn.cal:hover { background: color-mix(in srgb, #9fd0f2 12%, var(--g-pill)); }
html.glass .btn.secondary.bt-asset { background: var(--g-pill); color: #9b2c57; border: 1px solid #f0b8ce; box-shadow: var(--g-pill-shadow); }
html.glass .btn.secondary.bt-asset:hover { background: color-mix(in srgb, #9b2c57 9%, var(--g-pill)); filter: none; }
html.glass[data-theme="dark"] .btn.secondary.bt-asset { color: #f3b3cf; border-color: #7a3a58; }
html.glass[data-theme="dark"] .btn.secondary.bt-asset:hover { background: color-mix(in srgb, #f3b3cf 12%, var(--g-pill)); }
html.glass .btn.secondary.bt-plan { background: var(--g-pill); color: #0b6a8c; border: 1px solid #a5d4e8; box-shadow: var(--g-pill-shadow); }
html.glass .btn.secondary.bt-plan:hover { background: color-mix(in srgb, #0b6a8c 9%, var(--g-pill)); filter: none; }
html.glass[data-theme="dark"] .btn.secondary.bt-plan { color: #9bd6ee; border-color: #2e6580; }
html.glass[data-theme="dark"] .btn.secondary.bt-plan:hover { background: color-mix(in srgb, #9bd6ee 12%, var(--g-pill)); }
