/* ---------------------------------------------------------------------------
   Skin: Windows 7 Aero
   Every rule here starts with html[data-skin="aero"], so this file does nothing
   until the head script in index.html sets that attribute. With no attribute
   the app is exactly style.css. Removing the skin means deleting this file and
   its <link>.

   Ported 2026-09-13 from .scratch/motion-playground/, where it was tuned on the
   phone and approved. The playground's switches are gone and their approved
   values are fixed in: grey client areas, black titles on a white halo, the
   wallpaper and the glow are on; per-source tints and diagonal streaks are off.
   See .scratch/skins/spec.md.

   Most selectors keep the playground's :is(.screen, .viewer, .keepbar) scope.
   It no longer protects a Lab, but it does keep the push-button rules off the
   keep bar, which has its own taskbar buttons, and it keeps every rule at the
   specificity it was tuned at against style.css.
   --------------------------------------------------------------------------- */

/* SELAWIK: Microsoft's open stand-in for Segoe UI, built to its metrics. OFL
   (fonts/selawik/SELAWIK-LICENSE.txt), and "Selawik" is a Reserved Font Name,
   so the files ship unmodified: subsetting them would mean renaming the family.
   Segoe UI itself cannot ship, and Android has no copy. Four weights, 58 KB.
   A face is only downloaded when something uses it, so the default look never
   fetches these. */
@font-face { font-family: "Selawik"; font-weight: 300; font-display: swap; src: url("../fonts/selawik/selawkl.woff2") format("woff2"); }
@font-face { font-family: "Selawik"; font-weight: 400; font-display: swap; src: url("../fonts/selawik/selawk.woff2") format("woff2"); }
@font-face { font-family: "Selawik"; font-weight: 600; font-display: swap; src: url("../fonts/selawik/selawksb.woff2") format("woff2"); }
@font-face { font-family: "Selawik"; font-weight: 700; font-display: swap; src: url("../fonts/selawik/selawkb.woff2") format("woff2"); }

html[data-skin="aero"] {
  --aero-alpha: 0.38;          /* how much colour the glass carries */
  --aero-blur: 10px;
  --aero-gloss: 0.34;          /* strength of the highlight */
  --aero-radius: 8px;
  --aero-rgb: 74, 142, 222;    /* Windows 7 "Sky" */
  --aero-face: "Selawik", "Segoe UI", system-ui, sans-serif;

  /* A framed card's client area: Windows 7's grey. */
  --aero-client: #f0f0f0;
  --aero-client-ink: #1e1e1e;

  /* Windows 7's greys and blues, named once. */
  --w7-instruction: #003399;   /* a dialog's main instruction */
  --w7-link: #0066cc;
  --w7-btn:      linear-gradient(180deg, #f2f2f2 0%, #ebebeb 49%, #dddddd 50%, #cfcfcf 100%);
  --w7-btn-hot:  linear-gradient(180deg, #eaf6fd 0%, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%);
  --w7-btn-down: linear-gradient(180deg, #e5f4fc 0%, #c4e5f6 49%, #98d1ef 50%, #68b3db 100%);
  --w7-select:   linear-gradient(180deg, #dcebfc 0%, #c1dbfc 100%);

  /* GOLD BECOMES THE TASKBAR'S ATTENTION ORANGE. Gold means "something new is
     waiting" (style.css, --accent), and in Windows 7 a taskbar button flashing
     orange meant the same thing. Chosen by the user on 2026-09-13. The keep
     bar's Update button wears the full gradient of the same colour. */
  --accent:      #f5a023;
  --accent-lift: #ffc166;
  --on-accent:   #2b1700;
  --ghost:       rgba(245, 160, 35, 0.12);

  /* THE SHEEN, named once because every glass surface wears it: the button
     gloss, bright above a sharp edge. */
  --aero-sheen: linear-gradient(180deg,
    rgba(255, 255, 255, var(--aero-gloss)) 0%,
    rgba(255, 255, 255, calc(var(--aero-gloss) * 0.4)) 42%,
    rgba(255, 255, 255, 0) 43%);
}

/* THE WALLPAPER. Glass only reads as glass with something behind it. A fixed
   layer rather than background-attachment: fixed, which phones ignore. The
   top colour, #0e3a78, is also the status bar's under this skin (index.html). */
html[data-skin="aero"] body { background: #06122b; }
/* NOT its own layer in a screen slide (motion 02), so it moves with the page.
   Captured separately, it was drawn over the page and covered the slide; put
   underneath, the glass was photographed with nothing behind its blur, and
   every slide started 20% darker than the live screen. */
html[data-skin="aero"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 36%, rgba(170, 225, 255, 0.13) 43%, transparent 50%),
    linear-gradient(125deg, transparent 55%, rgba(120, 200, 255, 0.10) 61%, transparent 68%),
    radial-gradient(ellipse 70% 35% at 15% 22%, rgba(120, 200, 255, 0.34), transparent 70%),
    radial-gradient(ellipse 90% 30% at 85% 55%, rgba(60, 140, 235, 0.34), transparent 70%),
    radial-gradient(ellipse 60% 25% at 30% 88%, rgba(90, 220, 255, 0.20), transparent 70%),
    linear-gradient(165deg, #0e3a78 0%, #082456 45%, #04122e 100%);
}

/* --- Cards you open: tinted, blurred glass --------------------------------
   The picker's bands came first. Every other named card (shelf, creators,
   niches) and the platform screen's feed rows wear the same glass, because
   they do the same job: tap to go somewhere. */
html[data-skin="aero"] :is(.nametile, .feedbtn) {
  border-radius: var(--aero-radius);
  background: rgba(var(--aero-rgb), var(--aero-alpha));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
  backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
}

/* The app's colour field would cover the glass, so it steps aside. */
html[data-skin="aero"] :is(.nametile, .feedbtn) .cardfield { display: none; }
html[data-skin="aero"] :is(.nametile, .feedbtn) .ghost { color: rgba(255, 255, 255, 0.07); }

/* THE GLOSS AND THE WHITE INNER EDGE, on ::before. Not an inset box-shadow on
   the card: style.css explains that the card's children cover one, which is
   why its gold ring is a pseudo-element too. Title bars and settings cards
   wear the same layer. */
html[data-skin="aero"] :is(.nametile, .feedbtn, .appbar, .viewer__bar, .source)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background: var(--aero-sheen);
}

/* Text sits above the gloss. z-index only, never position: every child that
   shows is already positioned in style.css (the badge absolutely), and the
   field and the ghost must stay where they are. */
html[data-skin="aero"] :is(.nametile, .feedbtn) > :not(.cardfield, .ghost) { z-index: 2; }
html[data-skin="aero"] :is(.nametile__meta, .feedbtn__note) {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
html[data-skin="aero"] .feedbtn__chev { color: rgba(255, 255, 255, 0.8); }
html[data-skin="aero"] :is(.nametile__name, .feedbtn__name) {
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(170, 220, 255, 0.75), 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* THE PRESS: the taskbar's glow rising from the bottom edge, replacing the gold
   ring. Same ::after the ring uses, so the two can never both show. Not on the
   shelf's squares: style.css gives them no press ring because their ::after
   may already be the "new work" ring, which stays (in orange). */
html[data-skin="aero"] :is(.nametile--band, .feedbtn)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 105%, rgba(140, 215, 255, 0.6), rgba(140, 215, 255, 0) 70%);
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  html[data-skin="aero"] :is(.nametile--band, .feedbtn):hover::after { opacity: 0.5; }
}
html[data-skin="aero"] :is(.nametile--band, .feedbtn):active::after { opacity: 1; border: 0; }

/* --- Type and text on the wallpaper ---------------------------------------- */

/* Swapping the app's display token, so every heading follows. */
html[data-skin="aero"] :is(.screen, .viewer, .keepbar) {
  --font-display: var(--aero-face);
  font-family: var(--aero-face);
  --text-dim: #bcd2ee;
  --text-faint: #93abca;
  /* The build stamp. Still the quietest text, but style.css's value was 2.1:1
     on the wallpaper (found by snapshot.py --audit). */
  --text-ghost: #8093b3;
  --line: rgba(255, 255, 255, 0.2);
}
html[data-skin="aero"] :is(.subline, .screennote, .settings__footnote, .orderbar__note, .settabs + .segchoice__note, .recents__title, .search__help, .shelf__status, .nichesaved__title, .nichefilter__help, .feed-footer__text) {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
/* Light, the way Windows 7 set big headings. Selawik has the weight; the app's
   display face does not. */
html[data-skin="aero"] .headline {
  font-weight: 300;
  font-size: 1.875rem;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(140, 200, 255, 0.55), 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Windows drew focus as a dotted rectangle inside the control. */
html[data-skin="aero"] :is(.screen, .viewer, .keepbar) :focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: -0.25rem;
}

/* --- Title bars: the app bar and the viewer's bar ------------------------- */
html[data-skin="aero"] :is(.appbar, .viewer__bar) {
  background: rgba(var(--aero-rgb), var(--aero-alpha));
  -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
  backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
/* The old gradient needed room to fade; glass does not. */
html[data-skin="aero"] .viewer__bar { padding-bottom: 0.25rem; }
html[data-skin="aero"] :is(.appbar, .viewer__bar, .source) > * { position: relative; z-index: 2; }

/* A feed's name ("31 subreddits", an artist) is a heading, so it is set light
   like the headline. Selawik bold at style.css's tight spacing looked like a
   different face. */
html[data-skin="aero"] .feedhead__name {
  font-weight: 300;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(140, 200, 255, 0.55), 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Windows 7's own title text: black, on a soft white halo. Settings cards use
   their heading as a title bar, so .source__name wears it too. */
html[data-skin="aero"] .appbar__title {
  font-weight: 400;
  letter-spacing: 0;
  color: #000;
  text-shadow: 0 0 6px #fff, 0 0 10px #fff, 0 0 16px rgba(255, 255, 255, 0.9);
}

/* TOOLBAR BUTTONS: the glyph on a small glass square that lights blue when
   pressed. The 44px tap target is unchanged; the square is drawn inside it. */
html[data-skin="aero"] :is(.appbar, .viewer__bar) .iconbtn { background: none; color: #fff; }
html[data-skin="aero"] :is(.appbar, .viewer__bar) .iconbtn::before {
  content: "";
  position: absolute;
  inset: 0.3125rem;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 49%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
html[data-skin="aero"] :is(.appbar, .viewer__bar) .iconbtn:active::before {
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(140, 215, 255, 0.9), rgba(140, 215, 255, 0) 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 51%);
}
/* STATE COLOURS SURVIVE THE WHITE GLYPHS. The rule above outranks style.css's
   one-class state rules, so without these a starred post, a favourited one
   and a running lazy scroll would all look off. */
html[data-skin="aero"] .viewer__bar .viewer__star--on { color: var(--accent); }
html[data-skin="aero"] .viewer__bar .viewer__favorite--on { color: #ff5c8a; }
html[data-skin="aero"] .viewer__bar .viewer__pocket-open--lazy { color: var(--accent); }
html[data-skin="aero"] :is(.appbar, .viewer__bar) .iconbtn svg {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

/* BACK IS EXPLORER'S BLUE ORB. The first button in an app bar is always Back;
   Sources has none, so its bar starts with the title and nothing matches. */
html[data-skin="aero"] .appbar > .iconbtn:first-child::before {
  inset: 0.25rem;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 70% 45% at 50% 22%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 50% 85%, #7fd0ff 0%, #2a78d6 45%, #0d3f95 100%);
  box-shadow: 0 0 0 1px rgba(0, 25, 70, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 4px rgba(0, 0, 0, 0.5);
}
html[data-skin="aero"] .appbar > .iconbtn:first-child:active::before {
  filter: brightness(1.2) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(0, 25, 70, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 0 12px rgba(120, 200, 255, 0.9);
}
html[data-skin="aero"] .appbar > .iconbtn:first-child svg path { stroke-width: 3; }

/* CLOSE IS THE RED CAPTION BUTTON. */
html[data-skin="aero"] #viewer-close::before {
  inset: 0.625rem 0.125rem;
  border-radius: 4px;
  background: linear-gradient(180deg, #eeb4a4 0%, #d9694b 45%, #c3381b 50%, #cf4a2a 75%, #e8906b 100%);
  box-shadow: 0 0 0 1px #4a1206, inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
html[data-skin="aero"] #viewer-close:active::before {
  background: linear-gradient(180deg, #ffc6b3 0%, #f4815d 45%, #e2401c 50%, #f06036 75%, #ffc08f 100%);
  box-shadow: 0 0 0 1px #4a1206, inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 12px rgba(255, 110, 60, 0.85);
}
html[data-skin="aero"] #viewer-close svg {
  width: 1rem;
  height: 1rem;
  filter: drop-shadow(0 0 1px #3a0b00) drop-shadow(0 0 1px #3a0b00);
}
html[data-skin="aero"] #viewer-close svg path { stroke-width: 3.5; }

html[data-skin="aero"] .viewer__group {
  padding: 0.1875rem 0.625rem;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 51%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* --- Framed cards: a glass frame round a grey client area ------------------
   Settings cards keep their heading as the title bar. Cards with no heading
   (empty, error, peek, lookup) get the frame alone. CONTEXT.md spends
   "window" on the rate-limit period, so these are framed cards, not windows. */
html[data-skin="aero"] .source {
  position: relative;
  padding: 0 0.4375rem 0.4375rem;
  border-radius: var(--aero-radius);
  background: rgba(var(--aero-rgb), calc(var(--aero-alpha) + 0.2));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
  backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
}
/* The sheen belongs to the title strip, not the whole card. */
html[data-skin="aero"] .source::before { background-size: 100% 2.5rem; background-repeat: no-repeat; }
html[data-skin="aero"] .source__name {
  margin: 0;
  padding: 0.4375rem 0.375rem;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #000;
  text-shadow: 0 0 6px #fff, 0 0 10px #fff, 0 0 16px rgba(255, 255, 255, 0.9);
}
html[data-skin="aero"] .source .settings__form {
  border-radius: 2px;
  background: var(--aero-client);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

html[data-skin="aero"] :is(.status--empty, .status--error, .shelf__empty, .viewer__peek-card) {
  border: 0.4375rem solid rgba(var(--aero-rgb), calc(var(--aero-alpha) + 0.2));
  border-radius: var(--aero-radius);
  background: linear-gradient(var(--aero-client), var(--aero-client)) padding-box, var(--aero-sheen);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
  backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
}
/* The app's colour field and initial would cover the client area. */
html[data-skin="aero"] :is(.settings__form, .status--empty, .status--error, .shelf__empty) > :is(.cardfield, .ghost) { display: none; }
/* style.css writes this in translucent white, which vanishes on grey. */
html[data-skin="aero"] :is(.status--empty, .status--error) .status__detail { color: #5b5b5b; }
/* The shelf's empty card is one sentence in the display face; in a framed card
   it reads as the main instruction instead. */
html[data-skin="aero"] .shelf__empty {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--w7-instruction);
}
/* Loading is not framed, so it stands on the wallpaper like any other note. */
html[data-skin="aero"] .status:not(.status--empty, .status--error) .status__text {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
html[data-skin="aero"] :is(.status__text, .lookup__title, .viewer__peek-name) {
  font-weight: 400;
  letter-spacing: 0;
}

/* THE GREY CLIENT AREA re-points the app's own colour tokens, so everything
   inside follows without a rule of its own. */
html[data-skin="aero"] :is(.settings__form, .status--empty, .status--error, .shelf__empty, .viewer__peek-card) {
  --bg: #ffffff;
  --bg-raised: #f0f0f0;
  --bg-pressed: #dadada;
  --line: #c9ccd1;
  --text: #1e1e1e;
  --text-dim: #5b5b5b;
  --text-faint: #767676;
  --pill-bg: rgba(0, 0, 0, 0.08);
  --pill-fg: #6d6d6d;
  color: var(--text);
}
html[data-skin="aero"] :is(.status--empty .status__text, .status--error .status__text, .lookup__title, .viewer__peek-name, .storage__total) { color: var(--w7-instruction); }
html[data-skin="aero"] .settings__link { color: var(--w7-link); }
html[data-skin="aero"] .settings__status--ok { color: #2a7a2a; }
html[data-skin="aero"] .storage__total { font-weight: 300; font-size: 1.75rem; letter-spacing: 0; }

/* --- Push buttons: grey, split gloss, blue when pressed -------------------- */
/* A feed header's Follow and Keep are push buttons too. */
html[data-skin="aero"] :is(.screen, .viewer) :is(.btn, .field__reveal, .feedhead__follow) {
  border: 1px solid #707070;
  border-radius: 3px;
  background: var(--w7-btn);
  color: #000;
  font-weight: 400;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}
@media (hover: hover) and (pointer: fine) {
  html[data-skin="aero"] :is(.screen, .viewer) :is(.btn, .field__reveal, .feedhead__follow):hover { background: var(--w7-btn-hot); border-color: #3c7fb1; }
}
html[data-skin="aero"] :is(.screen, .viewer) :is(.btn, .field__reveal, .feedhead__follow):active {
  background: var(--w7-btn-down);
  border-color: #2c628b;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  filter: none;
}
/* THE DEFAULT BUTTON, the one Enter would press: a blue edge, and a fill that
   slowly breathes blue and back, as Windows 7's did. The breath sits on ::after
   below the label; isolation keeps it above the button's own fill. */
html[data-skin="aero"] :is(.screen, .viewer) .btn--primary {
  position: relative;
  isolation: isolate;
  border-color: #3c7fb1;
  box-shadow: inset 0 0 0 1px #9fdcff;
}
html[data-skin="aero"] :is(.screen, .viewer) .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--w7-btn-hot);
  opacity: 0;
  pointer-events: none;
  animation: aero-breathe 1.6s ease-in-out infinite alternate;
}
@keyframes aero-breathe { to { opacity: 1; } }
html[data-skin="aero"] :is(.screen, .viewer) .btn:disabled { border-color: #adb2b5; background: #f4f4f4; color: #838383; }
html[data-skin="aero"] :is(.screen, .viewer) .btn:disabled::after { content: none; }

/* --- Text boxes and the drop-down ------------------------------------------ */
html[data-skin="aero"] :is(.field__input, .lookup__name, .search__input, .nichefilter__input) {
  border: 1px solid #abadb3;
  border-top-color: #8e8f8f;
  border-radius: 2px;
  background: #fff;
  color: #000;
}
html[data-skin="aero"] :is(.field__input, .lookup__name, .search__input, .nichefilter__input):focus {
  outline: none;
  border-color: #3d7bad;
  box-shadow: 0 0 0 1px rgba(61, 123, 173, 0.25);
}
html[data-skin="aero"] .field__select {
  border: 1px solid #707070;
  border-radius: 3px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23000'/%3E%3C/svg%3E"), var(--w7-btn);
  background-position: right 0.5rem center, 0 0;
  background-size: 1.125rem, auto;
  background-repeat: no-repeat;
  color: #000;
}
html[data-skin="aero"] .field__select:focus { outline: 1px dotted #000; outline-offset: -0.25rem; }

/* The platform screen's search bar is a button dressed as a text box, so it
   gets the text box. */
html[data-skin="aero"] .searchbar {
  border: 1px solid #abadb3;
  border-top-color: #8e8f8f;
  border-radius: 2px;
  background: #fff;
  color: #6d6d6d;
}
html[data-skin="aero"] .searchbar__icon { color: #6d6d6d; }
html[data-skin="aero"] .searchbar:active { box-shadow: 0 0 0 1px rgba(61, 123, 173, 0.4); border-color: #3d7bad; }

/* --- Lists of words: Explorer's list box -----------------------------------
   Recent searches and tag suggestions. One white box with rows inside it,
   rather than a stack of separate cards, and the light-blue selection on press. */
html[data-skin="aero"] :is(.recents__list, .suggest__list) {
  gap: 0;
  border: 1px solid #828790;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  --text: #1e1e1e;
  --text-dim: #6d6d6d;
}
html[data-skin="aero"] :is(.recents__item, .suggest__row) {
  border-radius: 0;
  border-bottom: 1px solid #ececec;
  background: none;
  color: var(--text);
}
html[data-skin="aero"] :is(.recents__item, .suggest__list > li):last-child,
html[data-skin="aero"] .suggest__list > li:last-child .suggest__row { border-bottom: 0; }
html[data-skin="aero"] :is(.recents__item:active, .suggest__row:active) {
  background: var(--w7-select);
  box-shadow: inset 0 0 0 1px #84acdd;
}

/* --- Settings tabs: a property sheet's tab strip --------------------------- */
html[data-skin="aero"] .settabs {
  align-items: flex-end;
  gap: 0;
  padding: 0 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 0;
  background: none;
}
html[data-skin="aero"] .settabs .segseg {
  min-height: 2.25rem;
  margin-right: -1px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 51%, rgba(255, 255, 255, 0.12) 100%);
  color: #fff;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
html[data-skin="aero"] .settabs .segseg--on {
  position: relative;
  z-index: 1;
  min-height: 2.625rem;
  background: var(--aero-client);
  color: var(--aero-client-ink);
  text-shadow: none;
}

/* Any other one-of-several: a row of push buttons, the chosen one held down.
   The feed's Live/Kept switch is one as well. */
html[data-skin="aero"] :is(.segchoice:not(.settabs), .keepswitch) { gap: 0.25rem; padding: 0; border: 0; border-radius: 0; background: none; }
html[data-skin="aero"] :is(.segchoice:not(.settabs) .segseg, .keepseg) {
  border: 1px solid #707070;
  border-radius: 3px;
  background: var(--w7-btn);
  color: #000;
  font-weight: 400;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}
html[data-skin="aero"] :is(.segchoice:not(.settabs) .segseg--on, .keepseg--on) {
  border-color: #2c628b;
  background: var(--w7-btn-down);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Switches become check boxes: Windows 7 had no switches. Same markup in
   Settings (buildSwitchRow) and in the viewer's Pocket (index.html). */
html[data-skin="aero"] .switchrow__track,
html[data-skin="aero"] .switchrow__input:checked ~ .switchrow__track {
  width: 1.125rem;
  height: 1.125rem;
  border: 1px solid #8e8f8f;
  border-radius: 2px;
  background: linear-gradient(135deg, #d3d3d3, #fcfcfc);
  box-shadow: inset 0 0 0 1px #f6f6f6;
}
html[data-skin="aero"] .switchrow__knob {
  top: 0.0625rem;
  left: 0.3125rem;
  width: 0.3125rem;
  height: 0.625rem;
  border: solid #21436f;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: none;
  transform: rotate(45deg) scale(0);
}
html[data-skin="aero"] .switchrow__input:checked ~ .switchrow__track .switchrow__knob {
  background: none;
  transform: rotate(45deg) scale(1);
}

/* THE STORAGE BAR IS THE GREEN PROGRESS BAR, glint included. */
html[data-skin="aero"] .storage__bar {
  height: 0.9375rem;
  border: 1px solid #b2b2b2;
  border-radius: 3px;
  background: linear-gradient(180deg, #f3f3f3 0%, #e2e2e2 50%, #d6d6d6 51%, #ebebeb 100%);
}
html[data-skin="aero"] .storage__fill {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(180deg, #c6f5b9 0%, #4fd847 40%, #06b025 50%, #22c737 80%, #6ee06a 100%);
}
html[data-skin="aero"] .storage__fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: aero-glint 2.4s linear infinite;
}
@keyframes aero-glint { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* style.css's reduced-motion rule shortens animations but leaves infinite ones
   looping, which would turn the breath and the glint into flicker. */
@media (prefers-reduced-motion: reduce) {
  html[data-skin="aero"] :is(.btn--primary, .storage__fill)::after { animation: none !important; }
}

/* --- Thumbnails: a thin light frame, and Explorer's selection on press ----- */
html[data-skin="aero"] .tile {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
}
html[data-skin="aero"] .tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
html[data-skin="aero"] .tile:active::after {
  z-index: 2;
  border: 1px solid #84acdd;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(220, 235, 252, 0.45), rgba(193, 219, 252, 0.3));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Order chips: quiet glass until chosen, then the light-blue selection. Tag
   chips (trending artists, a profile's groups, the tag drawer) wear the same
   glass, and a chip that is only a label wears none. */
html[data-skin="aero"] :is(.orderchip, .tagchip) {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 51%, rgba(255, 255, 255, 0.06) 100%);
  color: #e8f1fc;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
html[data-skin="aero"] .orderchip--on {
  border-color: #7da2ce;
  background: var(--w7-select);
  color: #000;
  font-weight: 400;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
html[data-skin="aero"] :is(.orderchip, .tagchip):active {
  border-color: #7da2ce;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 8px rgba(140, 200, 255, 0.6);
}
html[data-skin="aero"] .tagchip--inert { background: none; box-shadow: none; }

/* THE TAG DRAWER is a dark glass pane, like the taskbar, so the black viewer
   stays black and the tag colours keep the dark ground they were picked on.
   Show all / Show fewer is a push button. */
html[data-skin="aero"] .tagdrawer {
  border-left: 1px solid rgba(0, 0, 0, 0.8);
  background: rgba(10, 22, 44, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.25), -0.25rem 0 1rem rgba(0, 0, 0, 0.4);
}
html[data-skin="aero"] .tagdrawer__toggle {
  border: 1px solid #707070;
  border-radius: 3px;
  background: var(--w7-btn);
  color: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}
html[data-skin="aero"] .tagdrawer__toggle:active {
  background: var(--w7-btn-down);
  border-color: #2c628b;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* THE POCKET'S SHEET is the same dark glass pane as the tag drawer: both slide
   over the black viewer, and its switches are already check boxes. */
html[data-skin="aero"] .pocket__sheet {
  border-top: 1px solid rgba(0, 0, 0, 0.8);
  background: rgba(10, 22, 44, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 -0.25rem 1rem rgba(0, 0, 0, 0.4);
}

/* --- The niche screen ----------------------------------------------------- */
/* The featured squares are photographs, so they get the thumbnail's thin frame
   rather than glass. Outer shadow only: the image is an absolute child and
   would cover an inset one. */
html[data-skin="aero"] .nichecard {
  border-radius: var(--aero-radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
}
html[data-skin="aero"] .nichesaved__rule { border-top-color: rgba(255, 255, 255, 0.2); }

/* --- Subreddit results: glass rows, like the platform screen's feed rows ---
   Not the feed rows' ::before sheen: these are plain buttons with a Follow
   button beside them, so the gloss is a background layer instead. */
html[data-skin="aero"] .subresult__open {
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: var(--aero-radius);
  background: var(--aero-sheen), rgba(var(--aero-rgb), var(--aero-alpha));
  -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
  backdrop-filter: blur(var(--aero-blur)) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
html[data-skin="aero"] .subresult__open:active {
  background:
    radial-gradient(ellipse 75% 65% at 50% 105%, rgba(140, 215, 255, 0.6), rgba(140, 215, 255, 0) 70%),
    var(--aero-sheen), rgba(var(--aero-rgb), var(--aero-alpha));
}
html[data-skin="aero"] .subresult__title { color: rgba(255, 255, 255, 0.78); }
/* FOLLOWING IS THE BUTTON HELD DOWN, as a chosen segment is. The push-button
   rule outranks style.css's .subresult__follow--on, which would otherwise make
   Follow and Following look identical. */
html[data-skin="aero"] :is(.screen, .viewer) :is(.btn.subresult__follow--on, .feedhead__follow--on) {
  border-color: #2c628b;
  background: var(--w7-btn-down);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  color: #000;
}

/* The toast is a tooltip. */
html[data-skin="aero"] .viewer__toast {
  border: 1px solid #767676;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff, #e4e5f0);
  color: #4c4c4c;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4);
}

/* THE KEEP BAR IS THE TASKBAR: dark glass on the bottom edge, a bright top
   line, and Update glowing orange the way a taskbar button asked for you. */
html[data-skin="aero"] .keepbar {
  border-top: 1px solid rgba(0, 0, 0, 0.85);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.08) 51%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(rgba(var(--aero-rgb), 0.2), rgba(var(--aero-rgb), 0.2)),
    rgba(10, 22, 44, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 -0.25rem 1rem rgba(0, 0, 0, 0.4);
  --text: #fff;
}
html[data-skin="aero"] .keepbar__line { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
html[data-skin="aero"] .keepbar .btn {
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 49%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
html[data-skin="aero"] .keepbar .btn:active {
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(140, 215, 255, 0.8), rgba(140, 215, 255, 0) 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 49%, rgba(255, 255, 255, 0) 50%);
}
html[data-skin="aero"] .keepbar .btn--primary {
  border-color: #6b3a00;
  background: linear-gradient(180deg, #ffd88a 0%, #f7aa2e 49%, #ec8a10 50%, #f5a531 100%);
  text-shadow: 0 1px 2px rgba(90, 40, 0, 0.9);
}
