/*
   The page's stylesheet, compiled into the executable and served at /page.css by its fingerprint.
   DESIGN.md is the rulebook it follows.

   It is laid out in layers, and a later layer wins over an earlier one whatever the selectors: the
   tokens, the base elements, the components, what belongs to one page, and last the phone. The
   bottom sheet stands in the phone's layer, since it must win over the phone's own panel rules.

   The page writes a few values onto the root ahead of this, all worked out in Rust: the
   fingerprinted addresses of the fonts and the map, the map window's size, and the painted world's
   aspect.
*/
@layer tokens, base, components, page, phone;

@layer tokens {
  :root {
    color-scheme: light dark;

    /*
       The zinc scale, one value for each scheme through light-dark(). Every text colour holds 4.5:1
       on the ground it is used on, and the kit page works the ratios out.
    */
    --background: light-dark(oklch(100% 0 0), oklch(14.08% 0.0044 285.82));
    --foreground: light-dark(oklch(14.08% 0.0044 285.82), oklch(98.51% 0 0));
    --muted: light-dark(oklch(96.74% 0.0013 286.38), oklch(24.1% 0.0076 285.82));
    --muted-strong: light-dark(oklch(91.97% 0.004 286.32), oklch(37.05% 0.0119 285.81));
    --hover: light-dark(oklch(98.51% 0 0), oklch(17.9% 0.0061 285.77));
    --muted-foreground: light-dark(oklch(52.35% 0.0124 285.96), oklch(71.18% 0.0129 286.07));
    --border: light-dark(oklch(91.97% 0.004 286.32), oklch(27.39% 0.0055 286.03));
    --ring: light-dark(oklch(71.18% 0.0129 286.07), oklch(44.19% 0.0146 285.79));

    /* The three states that carry colour: standing, expected, and overdue. */
    --alive: light-dark(oklch(50.81% 0.1049 165.61), oklch(84.52% 0.1299 164.98));
    --alive-ground: light-dark(oklch(97.93% 0.0207 166.11), oklch(24.88% 0.0444 167.54));
    --open: light-dark(oklch(55.53% 0.1455 49), oklch(87.9% 0.1534 91.61));
    --open-ground: light-dark(oklch(98.69% 0.0214 95.28), oklch(24.12% 0.0426 80.23));
    --overdue: light-dark(oklch(50.54% 0.1905 27.52), oklch(80.77% 0.1035 19.57));
    --overdue-ground: light-dark(oklch(97.05% 0.0129 17.38), oklch(21.24% 0.0531 22.69));
    --pin: oklch(57.71% 0.2152 27.33);
    --shadow: light-dark(0 4px 16px rgb(0 0 0 / .08), 0 4px 16px rgb(0 0 0 / .5));
    --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
    --monospace: "Geist Mono", "Geist Mono Fallback", ui-monospace, Menlo, Consolas, monospace;
    --radius-small: 4px;
    --radius: 6px;
    --radius-panel: 8px;
    --radius-frame: 10px;
    --radius-pill: 999px;
    --fade: .12s;
  }
}

@layer base {
  * {
    box-sizing: border-box;
  }

  html {
    scroll-padding-top: 3.5rem;
  }

  body {
    margin: 0 auto;
    max-width: 68rem;
    padding: 2.5rem 1.5rem 3rem;
    background: var(--background);
    color: var(--foreground);
    font: 14px/1.5 var(--sans);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
  }

  h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.02em;
  }

  h2 {
    margin: 0 0 .6rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
  }

  code {
    font: .8125rem/1.5 var(--monospace);
    font-variant-numeric: slashed-zero;
  }

  svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
  }

  /*
     The sprite the icons are drawn from. A browser does not hide an SVG for its hidden attribute,
     and display: none would lose its symbols in some browsers. The sprite is given no size instead.
  */
  svg[hidden] {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  form {
    display: inline-flex;
    margin: 0;
    vertical-align: middle;
  }

  input {
    width: 3.6rem;
    padding: .2rem .45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    font: inherit;
    font-size: .8125rem;
  }

  button, summary {
    padding: .2rem .55rem;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted-foreground);
    font: inherit;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--fade), color var(--fade);
  }

  button:hover, summary:hover, details[open] > summary {
    background: var(--muted);
    color: var(--foreground);
  }

  /*
     A tap is seen at once, and a mark on its way to the server stays dimmed until the row shows it.
  */
  button, summary, nav a, section a {
    touch-action: manipulation;
  }

  button:active, summary:active {
    background: var(--muted);
    color: var(--foreground);
  }

  button[aria-busy] {
    opacity: .45;
    pointer-events: none;
  }

  button:focus-visible,
  summary:focus-visible,
  input:focus-visible,
  select:focus-visible,
  a:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 1px;
  }

  /*
     A popover keeps the browser's own hiding, which an author rule on a form would otherwise
     override.
  */
  [popover]:not(:popover-open) {
    display: none;
  }

  @media (prefers-reduced-motion: reduce) {
    * {
      transition-duration: 0s !important;
      animation-duration: 0s !important;
    }
  }
}

@layer components {
  /*
     The filters above the table: the status chips, To Park beside them, the Filters button, and
     the tally of cameras parked at the line's end.
  */
  .filters {
    margin-top: 1.25rem;
  }

  /*
     The chip, a pill link that names a status, the current one filled. The Filters button is a
     chip too, filled where a choice narrows the table. The chips are the nav's own links, since
     Clear in the panel is a link as well.
  */
  nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
  }

  nav > a, details.choices > summary {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    padding: .25rem .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--background);
    color: var(--muted-foreground);
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: none;
  }

  nav > a:hover, details.choices > summary:hover, details.choices[open] > summary {
    background: var(--hover);
    color: var(--foreground);
  }

  nav > a[aria-current], details.choices.narrowed > summary {
    border-color: var(--foreground);
    background: var(--foreground);
    color: var(--background);
  }

  nav > a small, details.choices > summary small {
    font-weight: 500;
  }

  nav > a[aria-current] small, details.choices.narrowed > summary small {
    color: inherit;
  }

  /* To Park is a task and not a filter, and it stands a little apart from the chips. */
  nav > a[href="/?view=to-park"] {
    margin-left: .5rem;
  }

  /* The tally of cameras parked, at the line's end. */
  nav p.tally {
    margin: 0 0 0 auto;
    color: var(--muted-foreground);
    font-size: .8125rem;
  }

  nav p.tally b {
    color: var(--foreground);
    font-weight: 500;
  }

  /*
     The panel of choices hangs under its button at a desk: four groups, each a row of pills with
     Any first, the chosen one filled, and Clear at the foot. It is a details element, so a page
     without the script opens it in place and sends it by its own button.
  */
  details.choices {
    position: relative;
  }

  details.choices > form {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 5;
    display: grid;
    gap: .85rem;
    min-width: 24rem;
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--background);
    box-shadow: var(--shadow);
  }

  details.choices fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  details.choices legend {
    margin-bottom: .35rem;
    padding: 0;
    color: var(--muted-foreground);
    font-size: .75rem;
    font-weight: 500;
  }

  /* A pill is a label around its radio, which is kept out of sight and reached by the keyboard. */
  details.choices label {
    display: inline-flex;
    align-items: center;
    padding: .25rem .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted-foreground);
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
  }

  details.choices label:hover {
    background: var(--hover);
    color: var(--foreground);
  }

  details.choices label:has(input:checked) {
    border-color: var(--foreground);
    background: var(--foreground);
    color: var(--background);
  }

  details.choices label:has(input:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }

  details.choices input[type="radio"] {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
  }

  /* Clear leaves the status as it is and opens the choices again, and shows only where one narrows. */
  details.choices a.clear {
    justify-self: start;
    color: var(--muted-foreground);
    font-size: .8125rem;
    text-underline-offset: 3px;
  }

  details.choices a.clear:hover {
    color: var(--foreground);
  }

  details.choices a.clear[hidden] {
    display: none;
  }

  /* The badge, the state word in a tinted pill with a dot, one width for every word. */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 4.25rem;
    margin-right: .5rem;
    padding: 0 .55rem;
    border-radius: var(--radius-pill);
    background: var(--muted);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.375rem;
  }

  .badge::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: currentColor;
  }

  tr.alive .badge {
    background: var(--alive-ground);
    color: var(--alive);
  }

  tr.open .badge {
    background: var(--open-ground);
    color: var(--open);
  }

  tr.overdue .badge {
    background: var(--overdue-ground);
    color: var(--overdue);
  }

  /*
     Outlined instead of filled, for a sighting too old to count on and for a spawn fixed by the
     calendar.
  */
  tr.stale .badge, tr.scheduled .badge {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--border);
  }

  tr.stale .badge {
    color: var(--muted-foreground);
  }

  tr.scheduled .badge {
    color: var(--foreground);
  }

  tr.scheduled .badge::before {
    content: none;
  }

  tr.waiting .badge, tr.missing .badge {
    color: var(--muted-foreground);
  }

  tr.unknown .badge {
    min-width: 0;
    padding-left: 0;
    background: transparent;
    color: var(--muted-foreground);
    font-weight: 400;
  }

  tr.unknown .badge::before {
    content: none;
  }

  /*
     The three panels that open beside a row: the story and the drops under a name, the map under a
     territory, and the sentence under a state. Each is hidden until a click, or Enter or Space,
     opens it, which the script records as `aria-expanded` on its opener. Each is anchored to what
     opens it and flipped by the browser where it would leave the viewport. Passing over a row opens
     nothing, since a panel that opened at a touch of the pointer stood in the way of the buttons.
     Without the script a focus opens it.
  */
  .name {
    anchor-name: --name;
    anchor-scope: --name;
    width: fit-content;
    border-radius: var(--radius-small);
    outline-offset: 2px;
  }

  .name a {
    color: inherit;
    text-decoration: none;
    border-radius: var(--radius-small);
    outline-offset: 2px;
  }

  /*
     What opens a panel takes the pointer's hand, and a name and a territory say so by a dotted line
     under them once the pointer is on their row. A state is its badge and needs no line. The panels
     themselves open nothing and keep the plain pointer.
  */
  :is(.name a, .where, .state) {
    cursor: pointer;
    text-decoration-style: dotted;
    text-decoration-color: var(--muted-foreground);
    text-underline-offset: 3px;
  }

  :is(.lore, .map, .why) {
    cursor: auto;
  }

  @media (hover: hover) {
    tbody tr:hover :is(.name a, .where) {
      text-decoration-line: underline;
    }
  }

  .where {
    anchor-name: --where;
    anchor-scope: --where;
    position: relative;
    display: flex;
    width: fit-content;
    align-items: center;
    gap: .3rem;
    border-radius: var(--radius-small);
    outline-offset: 2px;
  }

  .state {
    anchor-name: --state;
    anchor-scope: --state;
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .1rem;
    min-width: 1.75rem;
    min-height: 1.5rem;
    border-radius: var(--radius);
    cursor: default;
    outline-offset: 2px;
  }

  /*
     A killed boss says two lengths of time, which do not always fit beside the word. They go
     under it in every such row, and the rows read alike.
  */
  tr:is(.waiting, .open, .overdue) .state {
    flex-direction: column;
    align-items: flex-start;
  }

  .map, .why, .lore {
    position: fixed;
    position-area: bottom span-right;
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
    margin: 6px 0;
    z-index: 3;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    opacity: 0;
    transition: opacity var(--fade), display var(--fade) allow-discrete;
  }

  .map {
    position-anchor: --where;
    width: var(--map-width);
    height: var(--map-height);
    overflow: hidden;
    border-radius: var(--radius-frame);
    background: var(--muted) var(--world-map) no-repeat;
  }

  .why {
    position-anchor: --state;
    width: max-content;
    max-width: 17rem;
    padding: .45rem .65rem;
    border-radius: var(--radius-panel);
    background: var(--background);
    color: var(--foreground);
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.45;
    text-wrap: pretty;
  }

  /*
     The story and the drops scroll where they are long, by the keyboard too, since the panel takes
     the focus. It touches its name, the two reading as one.
  */
  .lore {
    position-anchor: --name;
    z-index: 5;
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(24rem, 45dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: .6rem .75rem;
    border-radius: var(--radius-panel);
    background: var(--background);
    color: var(--foreground);
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
  }

  .lore > span {
    display: block;
    text-wrap: pretty;
  }

  /*
     What a boss is made of heads its panel, each figure under the game's own label, then what it can
     do, each ability with the game's name for it in grey, and what it is weak to and resists. Hit
     points not yet read in game are greyed with their label, and the day anything was read follows
     in grey. Each minion it brings is set out the same way under a hairline, then the whole company
     added up and a note on where the grey figures and the abilities come from.
  */
  .lore > .figures, .minion > .figures {
    display: flex;
    flex-wrap: wrap;
    gap: .1rem .9rem;
    font-variant-numeric: tabular-nums;
  }

  /* The abilities stand one under another beside their label. */
  .lore > .abilities, .minion > .abilities {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .1rem .6rem;
  }

  .abilities > span {
    grid-column: 2;
  }

  :is(.figures, .abilities, .together) small {
    display: inline;
    color: var(--muted-foreground);
    font-size: inherit;
  }

  .lore .reckoned, .lore > .read, .minion > .read, .lore > .note {
    color: var(--muted-foreground);
  }

  .lore > .figures ~ span {
    margin-top: .4rem;
  }

  .minion > span {
    display: block;
    margin-top: .2rem;
  }

  .lore > .minion {
    padding-top: .5rem;
    border-top: 1px solid var(--border);
  }

  .minion > strong {
    font-weight: 500;
  }

  .lore > .together {
    padding-top: .5rem;
    border-top: 1px solid var(--border);
  }

  /*
     A drop is its icon, a cell of the one sheet of icons drawn at 20 pixels from 32, then its name,
     its grade where it has one, and its chance. The chance is held to the last column, and an item
     without a grade needs nothing in the grade's place.
  */
  .lore > .drops {
    display: grid;
    grid-template-columns: 1.25rem 1fr auto auto;
    gap: .2rem .5rem;
  }

  .drops b {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 3px;
    background: var(--item-icons) calc(var(--x) * -1.25rem) calc(var(--y) * -1.25rem) / calc(var(--item-columns) * 1.25rem) auto no-repeat;
  }

  .drops small {
    color: var(--muted-foreground);
    font-weight: 500;
    line-height: inherit;
  }

  /* A day is never broken at its hyphens. */
  .read time {
    white-space: nowrap;
  }

  /* A drop list read in game is headed by the day it was read. */
  .drops > .read {
    grid-column: 1 / -1;
    color: var(--muted-foreground);
    font-weight: 500;
  }

  .lore > .drops:not(:first-child) {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
  }

  .drops i {
    grid-column: 4;
    min-width: 3.4rem;
    font-style: normal;
    color: var(--muted-foreground);
    text-align: right;
  }

  /* What the knowledge database lists for a boss with no chance beside it. */
  .drops.without {
    color: var(--muted-foreground);
  }

  .drops.without b {
    opacity: .55;
  }

  .drops.without i {
    min-width: 0;
  }

  .drops.without::before {
    content: "No chance given";
    grid-column: 1 / -1;
    font-weight: 500;
  }

  /*
     A closed panel is not laid out at all, which with six hundred of them is most of the page's
     work, and its map is not fetched until one opens. The fade starts from the starting style once
     a panel is first drawn.
  */
  .name:has(> a[aria-expanded="true"]) .lore,
  .where[aria-expanded="true"] .map,
  .state[aria-expanded="true"] .why,
  :root:not(.scripted) :is(.name:focus-within .lore, .where:focus .map, .state:focus .why) {
    display: block;
    opacity: 1;
    transition: opacity var(--fade), display 0s allow-discrete;

    @starting-style {
      opacity: 0;
    }
  }

  .where svg {
    width: .75rem;
    height: .75rem;
    flex: none;
    opacity: .7;
  }

  .where:hover, .where[aria-expanded="true"] {
    color: var(--foreground);
  }

  .pin {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--pin);
    box-shadow: 0 0 0 1px rgb(0 0 0 / .5), 0 2px 6px rgb(0 0 0 / .5);
  }

  /*
     Several pins in one window are smaller, which keeps them apart, and stand over the caption, where
     a window held to the image's edge can bring them.
  */
  .map.spread .pin {
    z-index: 1;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-width: 1.5px;
  }

  /* The letter of the post a pin marks, where several cameras watch one boss. */
  .pin b {
    position: absolute;
    left: 12px;
    top: -9px;
    padding: 0 .2rem;
    border-radius: var(--radius-small);
    background: rgb(0 0 0 / .7);
    color: #ffffff;
    font: 600 .65rem/1.2 var(--monospace);
  }

  .world {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 48px;
    aspect-ratio: var(--world-aspect);
    border: 1px solid rgb(255 255 255 / .7);
    border-radius: var(--radius-small);
    background: var(--world-map) 0 0 / 100% 100% no-repeat;
    box-shadow: 0 1px 4px rgb(0 0 0 / .5);
  }

  .world i {
    position: absolute;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--pin);
    box-shadow: 0 0 0 1px #ffffff;
  }

  .caption {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    width: fit-content;
    padding: .05rem .4rem;
    border-radius: var(--radius-small);
    background: rgb(0 0 0 / .65);
    color: #ffffff;
    font: .6875rem/1.5 var(--monospace);
  }

  /*
     The kill-minutes box, a popover opened by the chevron beside Kill, anchored to it, and
     dismissed by a click elsewhere or Escape.
  */
  .earlier-toggle {
    padding: 0 .4rem;
    margin-left: -.3rem;
  }

  .earlier-toggle::after, summary::after {
    content: "";
    display: inline-block;
    width: .35rem;
    height: .35rem;
    margin: 0 .1rem .15rem;
    border-right: 1.5px solid;
    border-bottom: 1.5px solid;
    transform: rotate(45deg);
    transition: transform var(--fade);
  }

  .earlier-toggle:has(+ :popover-open),
  .earlier-toggle:has(+ :popover-open)::after,
  details[open] > summary::after {
    transform: rotate(225deg);
    margin-bottom: -.05rem;
  }

  .earlier-toggle:has(+ :popover-open) {
    transform: none;
    background: var(--muted);
    color: var(--foreground);
  }

  form.earlier {
    position: fixed;
    position-area: bottom span-left;
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
    inset: auto;
    margin: 4px 0;
    align-items: center;
    gap: .45rem;
    padding: .45rem .5rem .45rem .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--background);
    box-shadow: var(--shadow);
    color: var(--muted-foreground);
    font-size: .8125rem;
  }

  form.earlier:popover-open {
    display: inline-flex;
  }

  form.earlier button {
    background: var(--muted);
    color: var(--foreground);
  }

  form.kill button:hover, form.earlier button:hover {
    background: var(--overdue-ground);
    color: var(--overdue);
  }

  /*
     A browser without anchor positioning, Safari before 26 among them, would leave the box and
     the panels wherever they fall. The box is centred on the screen there instead, and each
     panel hangs under what opens it.
  */
  @supports not (anchor-name: --anchor) {
    form.earlier {
      inset: 0;
      margin: auto;
    }

    .name {
      position: relative;
    }

    .map, .why, .lore {
      position: absolute;
      top: 100%;
      left: 0;
    }
  }

  /* The copy button beside a login or the password, revealed by the script. */
  button.copy {
    display: inline-flex;
    padding: .2rem;
    line-height: 0;
  }

  button.copy[hidden] {
    display: none;
  }

  button.copy svg {
    width: .8rem;
    height: .8rem;
  }

  button.copy .done, button.copy.copied .ready {
    display: none;
  }

  button.copy.copied .done {
    display: inline;
    color: var(--alive);
    stroke-width: 2;
  }

  /* The section above the table, and the notice. */
  section {
    margin-top: 1.5rem;
    padding: .9rem 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-frame);
  }

  section ul {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  section li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .2rem .7rem .2rem .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted-foreground);
    font-size: .8125rem;
  }

  section a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--foreground);
    font-weight: 500;
    text-decoration: none;
  }

  section a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  section a::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: currentColor;
  }

  section a.alive::before {
    background: var(--alive);
  }

  p.notice {
    margin: 1.25rem 0 0;
    padding: .75rem 1rem;
    border: 1px solid var(--overdue);
    border-radius: var(--radius-panel);
    background: var(--overdue-ground);
    color: var(--overdue);
  }

  /*
     What the server said in place of doing as asked, at the foot of the screen for a few seconds.
  */
  p.said {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 6;
    translate: -50% 0;
    width: max-content;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: .6rem .9rem;
    border: 1px solid var(--overdue);
    border-radius: var(--radius-panel);
    background: var(--overdue-ground);
    color: var(--overdue);
    box-shadow: var(--shadow);
    font-size: .8125rem;
  }

  p.empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted-foreground);
    text-wrap: balance;
  }

  /* The tag on a camera that waits close to its boss. */
  .nearby {
    display: inline-block;
    margin-left: .35rem;
    padding: 0 .45rem;
    border-radius: var(--radius-pill);
    background: var(--open-ground);
    color: var(--open);
    font-size: .6875rem;
    font-weight: 500;
    line-height: 1.125rem;
  }

  /*
     The frame and the table. Every cell's first line is one 1.5rem line, and a row reads across on
     one level whatever each cell holds.
  */
  .frame {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-frame);
    container-type: inline-size;
  }

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .6rem .9rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
  }

  th:first-child {
    border-top-left-radius: var(--radius-frame);
  }

  th:last-child {
    border-top-right-radius: var(--radius-frame);
  }

  td {
    padding: .75rem .9rem;
    vertical-align: top;
    border-top: 1px solid var(--border);
    line-height: 1.5rem;
  }

  tbody tr:first-child td {
    border-top: 0;
  }

  tbody tr:hover td {
    background: var(--hover);
  }

  tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-frame);
  }

  tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-frame);
  }

  td small {
    display: block;
    font-size: .8125rem;
    line-height: 1.25rem;
    color: var(--muted-foreground);
  }

  tr:target td {
    animation: arrive 2.4s ease-out;
  }

  @keyframes arrive {
    from {
      background: var(--muted);
    }

    to {
      background: transparent;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    tr:target td {
      animation: none;
      background: var(--hover);
    }
  }

  /* The disclosure's summary, without the browser's own marker. */
  summary {
    list-style: none;
    padding: .2rem .4rem;
  }

  summary::-webkit-details-marker {
    display: none;
  }
}

@layer page {
  header {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex-wrap: wrap;
  }

  header p {
    margin: 0;
    color: var(--muted-foreground);
  }

  header p.drawn {
    margin-left: auto;
  }

  form.search {
    align-self: center;
  }

  form.search input {
    width: 14rem;
    padding: .3rem .6rem;
    appearance: none;
  }

  header p.drawn a {
    margin-left: .35rem;
    color: var(--foreground);
    text-underline-offset: 3px;
  }

  /* The password every game account shares, under the clocks and in sight on every page. */
  header p.accounts {
    flex-basis: 100%;
    margin-top: -.5rem;
    text-align: right;
  }

  header p.accounts code {
    margin-left: .35rem;
    color: var(--foreground);
  }

  table.bosses {
    table-layout: fixed;
  }

  table.bosses col.level {
    width: 3.75rem;
  }

  table.bosses col.camera {
    width: 13rem;
  }

  table.bosses col.status {
    width: 14.5rem;
  }

  table.bosses col.mark {
    width: 17rem;
  }

  td.level {
    color: var(--muted-foreground);
  }

  tr.first-of-level td.level {
    color: var(--foreground);
    font-weight: 500;
  }

  td.boss strong {
    display: block;
    font-weight: 500;
  }

  td.camera {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* A boss with no camera says why in a sentence, which wraps as a sentence does. */
  td.camera.none {
    white-space: normal;
  }

  td.camera > code {
    display: block;
  }

  td.camera small {
    display: flex;
    align-items: center;
    gap: .15rem;
  }

  td.camera small code {
    font-size: .75rem;
  }

  td.camera.planned code, td.camera .post.planned code, td.camera.none {
    color: var(--muted-foreground);
  }

  /*
     A boss several cameras watch gives a line to each account, its run of characters with the login
     beside it, and under them how many stand parked.
  */
  td.camera .post {
    display: flex;
    align-items: center;
    gap: .4rem;
  }

  td.camera .tally {
    display: block;
    white-space: normal;
    color: var(--muted-foreground);
  }

  tr.elsewhere td {
    color: var(--muted-foreground);
  }

  tr.elsewhere td.boss strong {
    font-weight: 400;
  }

  td.mark {
    padding-left: .4rem;
    white-space: nowrap;
  }

  .marks {
    display: grid;
    grid-template-columns: 3.4rem 4rem 2.6rem 1.9rem 3.6rem;
    align-items: center;
    min-height: 1.5rem;
  }

  /*
     The kill box is a child of the grid too, and an alignment given to it would place it within
     its anchored area instead. Safari takes `start` there at its word and opens the box at the
     left edge of the page.
  */
  .marks > :not([popover]) {
    justify-self: start;
  }

  .marks > .alive {
    grid-column: 1;
  }

  .marks > .missing {
    grid-column: 2;
  }

  .marks > .kill {
    grid-column: 3;
  }

  .marks > .earlier-toggle {
    grid-column: 4;
  }

  .marks > .undo {
    grid-column: 5;
  }

  .marks button {
    height: 1.5rem;
    padding: 0 .5rem;
    line-height: 1.5rem;
  }

  .marks .earlier-toggle {
    padding: 0 .4rem;
  }

  /*
     A mark button stands on a soft fill at rest, which says it is there to be pressed, and the
     fill deepens under the pointer or a press. Kill and its chevron are one button split in two.
     The hover is left to devices that have one, since a phone keeps it after a tap.
  */
  .marks button, form.park button {
    background: var(--muted);
  }

  .marks button:active,
  form.park button:active,
  .marks .earlier-toggle:has(+ :popover-open),
  main.kit button.pointed {
    background: var(--muted-strong);
    color: var(--foreground);
  }

  @media (hover: hover) {
    .marks button:hover, form.park button:hover {
      background: var(--muted-strong);
      color: var(--foreground);
    }
  }

  .marks form.kill button:is(:hover, :active, .pointed) {
    background: var(--overdue-ground);
    color: var(--overdue);
  }

  .marks > .kill {
    justify-self: end;
  }

  .marks > .kill button {
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .marks > .earlier-toggle {
    margin-left: 1px;
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  /*
     Parking is done from To Park and undone from Parked. Elsewhere the buttons would only crowd the
     camera column.
  */
  table.bosses:not([data-slice*="camera=parked"]) :is(form.park, td.camera .unpark) {
    display: none;
  }

  form.park button {
    margin-left: .35rem;
    padding: 0 .35rem;
    font-size: .75rem;
  }

  table.parking td.camera code {
    display: inline;
  }

  table.parking tr.account td {
    padding: .7rem .9rem .5rem;
    background: var(--muted);
    font-weight: 500;
  }

  table.parking tr.account td span {
    margin-left: .5rem;
    color: var(--muted-foreground);
    font-weight: 400;
  }

  table.parking tbody:first-of-type tr.account td {
    border-top: 0;
  }

  table.parking td.step {
    width: 1%;
    color: var(--muted-foreground);
  }

  table.parking td.stand code {
    font-size: .75rem;
  }

  table.parking td.stand span.label {
    display: none;
    color: var(--muted-foreground);
    font-size: .8125rem;
  }

  table.parking td.boss strong, table.parking td.boss small {
    display: inline;
  }

  table.parking td.boss .where {
    display: flex;
  }

  footer {
    margin-top: 1.5rem;
    color: var(--muted-foreground);
    font-size: .8125rem;
  }

  footer p {
    margin: 0 0 .35rem;
    max-width: 56rem;
    text-wrap: pretty;
  }

  footer form button {
    margin: .5rem 0 0 -.55rem;
  }

  footer dl.legend {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .2rem .9rem;
    margin: 0 0 .9rem;
    max-width: 56rem;
  }

  footer dt {
    color: var(--foreground);
    font-weight: 500;
  }

  footer dd {
    margin: 0;
  }

  footer details.how {
    display: block;
    margin-bottom: .5rem;
  }

  /* The summary's padding is taken back, and its words line up with the paragraph above. */
  footer details.how summary {
    margin-left: -.4rem;
  }

  footer details.how summary::after {
    margin-left: .4rem;
  }

  footer details.how p {
    margin: .35rem 0 0;
  }

  .narrow {
    max-width: 20rem;
    margin: 14vh auto 0;
  }

  .narrow h1 {
    margin-bottom: .25rem;
  }

  .narrow h2 {
    margin: 2rem 0 .25rem;
    font-size: 1rem;
  }

  .narrow p {
    margin: 0 0 1.25rem;
    color: var(--muted-foreground);
    text-wrap: pretty;
  }

  .narrow form {
    display: flex;
    flex-direction: column;
    gap: .6rem;
  }

  .narrow label {
    font-size: .8125rem;
    font-weight: 500;
  }

  .narrow input {
    width: 100%;
    padding: .5rem .7rem;
    font-size: 1rem;
  }

  .narrow button {
    padding: .55rem;
    background: var(--foreground);
    color: var(--background);
    font-size: .875rem;
  }

  .narrow button:hover {
    background: var(--foreground);
    color: var(--background);
    opacity: .88;
  }

  .narrow p.refused {
    margin: 0;
    color: var(--overdue);
    font-size: .8125rem;
  }

  .narrow select {
    width: 100%;
    padding: .5rem .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    font: inherit;
  }

  .narrow button.secondary {
    background: var(--muted);
    color: var(--foreground);
  }

  .narrow p.back {
    margin-top: 1.25rem;
  }

  .narrow a {
    color: var(--foreground);
    text-underline-offset: 3px;
  }

  /*
     The kit, every component in every state, for review. The panels and the kill box stand open in
     the flow, and each column is one scheme.
  */
  main.kit {
    max-width: none;
  }

  main.kit h2 {
    margin-top: 2rem;
  }

  main.kit .schemes {
    display: grid;
    gap: 2rem;
  }

  main.kit .scheme {
    padding: 1rem;
    border-radius: var(--radius-frame);
    background: var(--background);
    color: var(--foreground);
  }

  main.kit .scheme.light {
    color-scheme: only light;
  }

  main.kit .scheme.dark {
    color-scheme: only dark;
  }

  main.kit .phone {
    width: 358px;
  }

  main.kit .swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: .5rem;
  }

  main.kit .swatch {
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    font-size: .8125rem;
  }

  main.kit .swatch b {
    display: block;
    font-weight: 500;
  }

  main.kit .swatch i {
    display: inline-block;
    width: .9rem;
    height: .9rem;
    margin-right: .4rem;
    vertical-align: -.15rem;
    border: 1px solid var(--border);
    border-radius: 3px;
  }

  main.kit .kit-form {
    margin: 0;
  }

  main.kit > p.back {
    margin-top: 1.5rem;
  }

  main.kit .ratio {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .35rem .6rem;
    border-radius: var(--radius);
    font-size: .8125rem;
  }

  main.kit .ratio.fails {
    outline: 2px solid var(--overdue);
  }

  main.kit .open .map, main.kit .open .why, main.kit .open .lore {
    position: static;
    display: block;
    opacity: 1;
    margin: .5rem 0 0;
  }

  main.kit .open .lore {
    max-height: none;
    font-weight: 400;
  }

  main.story {
    max-width: 34rem;
    margin: 6vh auto 0;
  }

  main.story h1 {
    margin-bottom: .25rem;
  }

  main.story > p {
    margin: 0 0 1rem;
    color: var(--muted-foreground);
  }

  main.story .lore {
    position: static;
    display: block;
    opacity: 1;
    max-height: none;
    width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    font-size: .9375rem;
  }

  main.story p.back {
    margin-top: 1.25rem;
  }

  main.kit form.earlier {
    display: inline-flex;
    position: static;
  }

  main.kit .row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    margin: .5rem 0;
  }
}

@layer phone {
  @media (max-width: 720px) {
    body {
      padding: 1.25rem 1rem 2rem;
    }

    /*
       The search stays at the top with the chips, since typing a name is the quickest way to a boss
       from deep in the list. A sticky element stays only within its parent, and the header
       therefore gives up its box: its parts stand in the page's own column, the title, the clock,
       the search, then the rest. The subtitle goes, and the title says enough on a phone.
    */
    body:has(> header) {
      display: flex;
      flex-direction: column;
      --pinned: 3.25rem;
    }

    header {
      display: contents;
    }

    header h1 + p {
      display: none;
    }

    header p.drawn {
      margin: .2rem 0 0;
    }

    header p.accounts {
      margin: .1rem 0 0;
      text-align: left;
    }

    form.search {
      order: 1;
      align-self: stretch;
      position: sticky;
      top: 0;
      z-index: 4;
      height: var(--pinned);
      margin: .35rem -1rem 0;
      padding: .5rem 1rem .25rem;
      background: var(--background);
    }

    form.search input {
      width: 100%;
      height: 2.5rem;
      padding: 0 .7rem;
    }

    main {
      order: 2;
    }

    footer {
      order: 3;
    }

    /*
       The bosses seen standing are one line that scrolls sideways, as the chips are, however many
       there are.
    */
    section {
      display: flex;
      align-items: center;
      gap: .75rem;
      margin-top: .5rem;
      padding: .55rem 1rem;
      overflow-x: auto;
      scrollbar-width: none;
    }

    section::-webkit-scrollbar {
      display: none;
    }

    section h2 {
      flex: none;
      margin: 0;
    }

    section ul {
      flex-wrap: nowrap;
    }

    section li {
      flex: none;
    }

    /* A phone zooms the page into any field whose text is under 16px. */
    input, select {
      font-size: 1rem;
    }

    form.earlier input {
      width: 4.5rem;
    }

    /*
       The chips stay at the top in two lines: the five statuses, sized to share the screen's width,
       then the tally with To Park and the Filters button at the right. Nothing scrolls sideways,
       and another level is one tap away from anywhere in a long list. The row's ground reaches
       down to the table, and nothing scrolls through under it.
    */
    nav {
      position: sticky;
      top: var(--pinned);
      z-index: 4;
      display: grid;
      grid-template-columns: repeat(5, auto);
      gap: .4rem .25rem;
      margin: .25rem -1rem 0;
      padding: .35rem 1rem .6rem;
      background: var(--background);
    }

    nav > a, details.choices > summary {
      justify-content: center;
      padding: .25rem .35rem;
      font-size: .75rem;
    }

    nav > a[href="/?view=to-park"] {
      grid-row: 2;
      grid-column: 4;
      margin-left: 0;
    }

    details.choices {
      grid-row: 2;
      grid-column: 5;
    }

    nav p.tally {
      grid-row: 2;
      grid-column: 1 / 4;
      align-self: center;
      margin: 0;
    }

    /* Without the script the panel hangs under its button, within the screen. */
    details.choices > form {
      left: auto;
      right: 0;
      width: calc(100vw - 2rem);
      min-width: 0;
    }

    /* The bar gives up its box, as the header does, and the chips stay pinned on their own. */
    .filters {
      display: contents;
    }

    .filters + .frame {
      margin-top: 0;
    }

    html {
      scroll-padding-top: 8.25rem;
    }

    /*
       A boss's story and drops take the screen's width and most of its height, under the name or
       over it.
    */
    .lore {
      position-area: none;
      top: anchor(bottom);
      left: 1rem;
      right: 1rem;
      width: auto;
      max-height: 60dvh;
      position-try-fallbacks: flip-block;
    }
  }

  /*
     The rows become cards when the frame is narrower than a phone's screen less the page's own
     padding, wherever that frame stands.
  */
  @container (width <= 688px) {
    table, tbody {
      display: block;
    }

    thead, colgroup {
      display: none;
    }

    tr {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "boss status" "camera camera" "mark mark";
      column-gap: 1rem;
      row-gap: .5rem;
      padding: .9rem 1rem;
      border-top: 1px solid var(--border);
    }

    /*
       A card off the screen is not laid out until it nears it, which with two hundred of them is
       most of a turn to All. Containment would clip a panel to its card, and the card in hand, by
       pointer, focus, or an open kill box, is taken out of it.
    */
    tbody tr {
      content-visibility: auto;
      contain-intrinsic-size: auto 9.4rem;
    }

    tbody tr:hover, tbody tr:focus-within, tbody tr:has(:popover-open, [aria-expanded="true"]) {
      content-visibility: visible;
    }

    /*
       The grid above would otherwise show the rows a slice hides, this layer being the later one.
    */
    tbody tr[hidden] {
      display: none;
    }

    /* The first card shown has no line above it, whichever row of the table it is. */
    tbody tr:nth-child(1 of :not([hidden])) {
      border-top: 0;
    }

    td {
      padding: 0;
      border: 0;
    }

    tbody tr:hover td {
      background: transparent;
    }

    /*
       The level shares the camera's line, at its far end. A camera line is never long enough to
       reach it.
    */
    td.level {
      grid-area: camera;
      justify-self: end;
    }

    td.level::before {
      content: "Lv ";
    }

    td.boss {
      grid-area: boss;
      min-width: 0;
    }

    td.camera {
      grid-area: camera;
      justify-self: start;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0 .6rem;
      min-width: 0;
      max-width: calc(100% - 4.5rem);
    }

    /*
       A boss that comes some other way has a long line where the state goes and no buttons, and its
       state takes a line of its own.
    */
    tr.elsewhere {
      grid-template-areas: "boss boss" "camera camera" "status status";
    }

    tr.elsewhere td.status {
      justify-self: start;
    }

    tr.elsewhere td.status .state {
      justify-content: flex-start;
    }

    tr.elsewhere td.mark {
      display: none;
    }

    td.camera, td.camera small {
      white-space: normal;
    }

    td.camera > code {
      display: inline;
    }

    td.camera small {
      flex-wrap: nowrap;
    }

    button.copy {
      padding: .35rem;
    }

    td.status {
      grid-area: status;
      justify-self: end;
    }

    td.status .state {
      justify-content: flex-end;
    }

    tr:is(.waiting, .open, .overdue) td.status .state {
      align-items: flex-end;
    }

    .why {
      position-area: bottom span-left;
    }

    td.mark {
      grid-area: mark;
      margin-left: -.6rem;
      padding: 0;
    }

    .marks {
      grid-template-columns: 3.6rem 4.75rem 2.5rem 2.25rem 4rem;
    }

    .marks button {
      height: 2.25rem;
      line-height: 2.25rem;
      padding: 0 .6rem;
    }

    tr:target {
      animation: arrive 2.4s ease-out;
    }

    tr:target td {
      animation: none;
    }

    table.parking tr.account {
      display: block;
      padding: 0;
    }

    table.parking tr.account td {
      display: block;
      padding: .7rem 1rem;
    }

    table.parking tr:not(.account) {
      grid-template-columns: 1.25rem 1fr;
      grid-template-areas: "step boss" "step camera" "step stand" "step mark";
      column-gap: .5rem;
    }

    table.parking td.step {
      grid-area: step;
    }

    table.parking td.boss {
      grid-area: boss;
    }

    table.parking td.camera {
      grid-area: camera;
    }

    table.parking td.stand {
      grid-area: stand;
    }

    table.parking td.mark {
      grid-area: mark;
    }

    table.parking td.stand span.label {
      display: inline;
    }
  }

  /*
     Where the script has found a phone or any touch (the class `sheets` on the root), the three
     panels that open beside a row give way to one sheet at the foot of the screen. It opens on a
     deliberate tap and shuts by its Close button, a tap outside it, or Escape. The panels stay as
     they are for a pointer, and for a page without script.
  */
  html.sheets main:not(.kit) :is(.lore, .map, .why) {
    display: none;
  }

  .sheet {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    max-height: 75dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: var(--radius-frame) var(--radius-frame) 0 0;
    background: var(--background);
    color: var(--foreground);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .sheet[open] {
    display: flex;
    flex-direction: column;
  }

  html:has(.sheet[open]) {
    overflow: hidden;
  }

  .sheet::backdrop {
    background: oklch(0% 0 0 / .45);
  }

  .sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .25rem .5rem .25rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .sheet-header strong {
    min-width: 0;
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sheet-close {
    flex: none;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 .9rem;
    color: var(--foreground);
    font-size: .9375rem;
  }

  .sheet-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }

  .sheet .lore, .sheet .map, .sheet .why {
    position: static;
    display: block;
    opacity: 1;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    overflow: visible;
    background: transparent;
    font-size: .9375rem;
  }

  .sheet .map {
    position: relative;
    width: var(--map-width);
    max-width: 100%;
    height: var(--map-height);
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-frame);
    background: var(--muted) var(--world-map) no-repeat;
    font-size: .8125rem;
  }

  @media (prefers-reduced-motion: no-preference) {
    .sheet[open] {
      transition: transform .2s ease-out;

      @starting-style {
        transform: translateY(100%);
      }
    }
  }

  main.kit .sheet {
    position: static;
    display: flex;
    flex-direction: column;
    width: auto;
    max-height: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-frame);
  }

  /*
     The panel of filters is the sheet too where the script has found a phone, with its own head
     and Close button. The backdrop is a real element, drawn by the details itself, so that the
     tap that dismisses it presses nothing beneath.
  */
  html.sheets details.choices > form {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 6;
    width: auto;
    min-width: 0;
    max-height: 75dvh;
    gap: 1rem;
    padding: 0 1rem calc(1.25rem + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: var(--radius-frame) var(--radius-frame) 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  details.choices .sheet-header {
    display: none;
  }

  html.sheets details.choices .sheet-header {
    display: flex;
    margin: 0 -1rem;
  }

  html.sheets details.choices label {
    min-height: 2.25rem;
    padding: .25rem .75rem;
    font-size: .875rem;
  }

  html.sheets details.choices[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 5;
    background: oklch(0% 0 0 / .45);
  }

  html.sheets:has(details.choices[open]) {
    overflow: hidden;
  }

  @media (prefers-reduced-motion: no-preference) {
    html.sheets details.choices[open] > form {
      transition: transform .2s ease-out;

      @starting-style {
        transform: translateY(100%);
      }
    }
  }

  main.kit details.choices {
    flex: 1 1 100%;
  }

  main.kit details.choices > form {
    position: static;
    width: auto;
    min-width: 0;
    box-shadow: none;
  }

  main.kit details.choices::before {
    content: none;
  }
}
