/* assets screens: styles for this module only. Loaded after index.html and theme.css, so a plain selector here wins ties. */

/* Icon tile in a category's colour (the nearest .db-t-* sets --c1, --c2, --cg). Sizes: xs, sm, default, lg. */
#page[data-module="assets"] .as-ic, #drawer-root .as-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 12px -8px rgba(var(--cg), .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
#page[data-module="assets"] .as-ic svg, #drawer-root .as-ic svg { width: 16px; height: 16px; }
#page[data-module="assets"] .as-ic.xs, #drawer-root .as-ic.xs { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
#page[data-module="assets"] .as-ic.xs svg, #drawer-root .as-ic.xs svg { width: 11px; height: 11px; }
#page[data-module="assets"] .as-ic.sm, #drawer-root .as-ic.sm { width: 24px; height: 24px; border-radius: 8px; }
#page[data-module="assets"] .as-ic.sm svg, #drawer-root .as-ic.sm svg { width: 13px; height: 13px; }
#page[data-module="assets"] .as-ic.lg { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 10px 18px -10px rgba(var(--cg), .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
#page[data-module="assets"] .as-ic.lg svg { width: 22px; height: 22px; }

/* Device, category and licence cards: a faint wash of the category colour at the top and a watermark icon */
#page[data-module="assets"] .as-dev { position: relative; overflow: hidden; padding: 18px; }
#page[data-module="assets"] .as-dev::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 84px; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--cg), .09), rgba(var(--cg), 0)); }
#page[data-module="assets"] .as-wm { position: absolute; right: -16px; top: -16px; width: 104px; height: 104px; color: rgba(var(--cg), .07); stroke-width: 1.3; pointer-events: none;
  transition: transform .4s var(--t-ease), color .3s; }
#page[data-module="assets"] .as-dev:hover .as-wm { transform: rotate(-8deg) scale(1.05); color: rgba(var(--cg), .11); }
#page[data-module="assets"] .as-foot { border-top: 1px solid rgba(111, 99, 240, .08); }
#page[data-module="assets"] .as-list > li + li { border-top: 1px solid #F1F0FB; }
#page[data-module="assets"] .as-lic .as-list { border-top: 1px solid rgba(111, 99, 240, .08); }

/* Meter: one value against a whole */
#page[data-module="assets"] .as-m { height: 6px; border-radius: 6px; background: rgba(var(--cg), .13); overflow: hidden; }
#page[data-module="assets"] .as-m > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
/* Split bar: several parts of one whole, with a legend */
#page[data-module="assets"] .as-split { display: flex; gap: 2px; height: 8px; border-radius: 8px; background: #F1F0FB; overflow: hidden; }
#page[data-module="assets"] .as-split > i { display: block; height: 100%; background: linear-gradient(90deg, var(--c1), var(--c2)); }
#page[data-module="assets"] .as-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #64748B; }
#page[data-module="assets"] .as-leg > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#page[data-module="assets"] .as-leg em { font-style: normal; font-weight: 600; color: #1E1B4B; font-variant-numeric: tabular-nums; }
#page[data-module="assets"] .as-dot { width: 8px; height: 8px; border-radius: 99px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
#page.page-in[data-module="assets"] :is(.as-m > i, .as-split) { animation: db-grow .9s var(--t-ease) .15s both; transform-origin: left; }

/* Countdown and type chips: a tinted pill with an icon */
#page[data-module="assets"] .as-cd, #drawer-root .as-cd { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 11px; font-weight: 500; line-height: 1;
  padding: 4px 8px; border-radius: 999px; color: var(--c1); background: rgba(var(--cg), .1); }
#page[data-module="assets"] .as-cd svg, #drawer-root .as-cd svg { width: 12px; height: 12px; }

/* An item someone holds, and a licence seat they hold */
#page[data-module="assets"] .as-item { display: inline-flex; align-items: center; gap: 8px; }
#page[data-module="assets"] .as-tag { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 11px; color: #4C1D95; padding: 2px 7px; border-radius: 7px; background: #F5F3FF; }
#page[data-module="assets"] .as-tag svg { width: 11px; height: 11px; color: #8B5CF6; }

#page[data-module="assets"] .as-noscroll { scrollbar-width: none; }
#page[data-module="assets"] .as-noscroll::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  #page.page-in[data-module="assets"] :is(.as-m > i, .as-split) { animation: none; }
  #page[data-module="assets"] .as-wm { transition: none; }
}
