/* Hand-written: what the designs do with script, done here with CSS instead. Everything
   else comes from the converter (admin.css). Colours are the designs' own. */

/* Anything the page hides stays hidden, whatever its class says. */
[hidden] { display: none !important; }

/* Sign in: the button turns blue once the username and password are filled in. */
.sign-in-form:has([name="username"]:valid):has([name="password"]:valid) .sign-in-button:enabled {
  background: #3D2BFF;
  color: #FFFFFF;
  box-shadow: 2px 2px 0 0 #0A0A0A;
}

/* Sign in: a code box with a digit in it. */
.code-boxes input:not(:placeholder-shown) {
  border-color: #3D2BFF;
  background: #F1EFFF;
}
.code-boxes input.code-wrong { border-color: #E5484D; }

/* First sign-in: "Check and continue" turns blue once six digits are typed. */
.setup-form:has(.setup-code:valid) .setup-button {
  background: #3D2BFF;
  color: #FFFFFF;
  box-shadow: 2px 2px 0 0 #0A0A0A;
}

/* First sign-in: the QR code image fills its square. */
.qr-image {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* First sign-in: the form around "I've saved them" adds no box of its own, so the card's
   spacing stays as designed. */
.saved-form { display: contents; }

/* First sign-in: ticking "I've saved them" lights up the box and the Continue button. */
.saved-tick:has(input:checked) {
  border-color: #3D2BFF;
  background: #E4E0FF;
}
.saved-form:has(.saved-tick input:checked) .saved-button {
  background: #3D2BFF;
  color: #FFFFFF;
  box-shadow: 2px 2px 0 0 #0A0A0A;
  cursor: pointer;
}

/* Settings: each section is a form; the form adds no box of its own. */
.settings-form { display: contents; }

/* Settings: switches and topic chips that are off (the design's own "off" colours). */
.c-7c1ddd.is-off { background: #E3E3E3; }
.c-7c1ddd.is-off > span { left: 2px; }
.c-54e7fe.is-off { background: #FFFFFF; box-shadow: none; }

/* Settings: badges without the moving shine. */
.no-shine { animation: none !important; }

/* Settings: dropdowns look like the design's; the real list is the browser's own, laid
   invisibly over the top so a click or tap opens it. */
.dropdown { position: relative; }
.dropdown-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}

/* Settings: the rep photo, and its upload button (the file picker sits over the button). */
.photo-button { position: relative; overflow: hidden; }
.photo-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rep-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Settings: a link that looks like the button beside it. */
.as-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

/* Settings: "Change password" turns blue once all three fields are filled in properly. */
.password-form:has([name="current"]:valid):has([name="new"]:valid):has([name="again"]:valid) .password-button {
  background: #3D2BFF;
  color: #FFFFFF;
  cursor: pointer;
}

/* Import: the upload form and the "Checking…" wrapper add no box of their own. */
.import-form, .import-checking { display: contents; }
.import-checking[hidden] { display: none !important; }

/* Demos: the filter, menu and outcome forms add no box of their own. */
.filters-form, .menu-form, .outcome-form { display: contents; }

/* Demos: the Actions menu opens without script (a details box); open, its button turns
   black and its row light blue, as in the design. */
.row-menu > summary { list-style: none; display: flex; align-items: center; justify-content: center; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary.c-bca2ea { background: #0A0A0A; color: #FFFFFF; box-shadow: none; }
.row-menu[open] > summary.c-3a2ea7 { background: #0A0A0A; color: #FFFFFF; }
.demo-row:has(.row-menu[open]) { background: #F1EFFF; }
.c-3e98ec:has(.demo-row:nth-last-child(-n+4) .row-menu[open]) { padding-bottom: 300px; }
.card-menu { position: relative; }
.card-menu > .c-3c4a74 { top: calc(100% + 4px); left: auto; right: 0; }
.c-3c4a74 [aria-disabled="true"] { cursor: default; }
.menu-link, .play-link { text-decoration: none; }
/* Links and summaries drawn as buttons measure like buttons (borders inside). */
.menu-link, .play-link, .row-menu > summary { box-sizing: border-box; }
.menu-link:hover, .c-3c4a74 button:hover { background: #F1EFFF; }

/* Demos: nothing matches the filters (the design's box). */
.no-match { padding: 18px; border: 3px dashed #0A0A0A; font-size: 15px; }

/* Demos without script: the outcome's Save button. */
.outcome-save { margin-top: 4px; font-size: 12px; }

/* One demo: links drawn as the design's buttons and tabs. */
.btn-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.tab-link { display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }

/* One demo: the access bar and the time bars, drawn to their length without a style. */
.fill-bar { display: block; width: 100%; height: 100%; }
.c-e0fe17 > .fill-bar { position: absolute; inset: 0; }
.item-bar { display: block; flex: none; }

/* One demo: Andre's next step is typed straight into the card; empty, it shows the hint
   in the card's own colour. */
.next-step {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  resize: none;
  field-sizing: content;
}
.next-step::placeholder { color: inherit; opacity: 1; }
.next-step:focus { outline: 2px solid #3D2BFF; outline-offset: 2px; }

/* One demo: the badges and the Locked state the design's samples don't draw, in the
   design's own colours (designs\ui\midas-store.js). */
.badge-p {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6), 2px 2px 0 0 #0A0A0A;
  background: linear-gradient(110deg,#8E96A3 0%,#E8ECF2 18%,#B8BEC8 34%,#FFFFFF 50%,#A9B0BC 66%,#E8ECF2 82%,#8E96A3 100%);
  background-size: 300% 100%;
  animation: metal 2.6s ease-in-out infinite alternate;
}
.badge-g {
  box-shadow: 2px 2px 0 0 #0A0A0A;
  background: linear-gradient(160deg,#F2CF6B 0%,#D9A92A 55%,#B88A1C 100%);
  animation: none;
}
.badge-s {
  box-shadow: 2px 2px 0 0 #0A0A0A;
  background: linear-gradient(160deg,#E6E6E6 0%,#C4C4C4 55%,#A8A8A8 100%);
  animation: none;
}
.state-locked { border-style: solid; background: #0A0A0A; color: #FFFFFF; }
.c-680813.btn-link, .c-8fc112.btn-link { color: #0A0A0A; }
.c-0dbff4.btn-link:hover, .play-link:hover { color: #FFFFFF; }
.c-e308d9.btn-link:hover { color: #B3261E; }
/* One demo: "Print" (the printout, P2) sits in the password row; as wide as its word, so the
   password never wraps on a phone. */
.print-link { min-width: 0; padding: 0 9px; background: #FFFFFF; color: #0A0A0A; }
.c-8b3558:has(> .print-link) > .c-7f2ae0 { white-space: nowrap; }
.print-link:hover { background: #E4E0FF; color: #0A0A0A; }

/* Library: "Upload images" is a file picker drawn as the design's button. */
.upload-label { display: inline-flex; align-items: center; box-sizing: border-box; cursor: pointer; }

/* Library: a design card's details, shown while the pointer is over it (the design's
   hover box). */
.lib-tip {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  background: #0A0A0A;
  color: #FFFFFF;
  border: 3px solid #0A0A0A;
  box-shadow: 2px 2px 0 0 #3D2BFF;
}
.c-9b9e73:hover > .lib-tip, .c-9b9e73:focus-within > .lib-tip { display: flex; }
.lib-tip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lib-tip-id { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; }
.lib-tip-status { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; background: #3D2BFF; padding: 1px 6px; }
.lib-tip-desc { font-size: 12px; line-height: 1.4; color: #E8E8E8; }
.lib-tip-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lib-tip-stat { display: flex; flex-direction: column; padding: 5px 7px; border: 2px solid #3A3A3A; }
.lib-tip-stat > strong { font-family: 'Space Grotesk', sans-serif; font-size: 16px; line-height: 1; }
.lib-tip-stat > span { font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; text-transform: uppercase; color: #BDBDBD; }
.lib-tip-label { font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; text-transform: uppercase; color: #9C93FF; }
.lib-tip-fields { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.lib-tip-fields > li { display: flex; justify-content: space-between; gap: 6px; font-family: 'Space Mono', monospace; font-size: 10px; }
.lib-tip-fields > li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-tip-req, .lib-tip-opt { flex: none; }
.lib-tip-req { color: #FFFFFF; }
.lib-tip-opt { color: #8A8A8A; }
.lib-tip-open { margin-top: auto; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #BDBDBD; }

/* Library: each image's real picture fills the card's top, where the design drew stripes
   as a stand-in. The stripes and file name stay underneath while it loads. */
.lib-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Bookings (design 15) ───────────────────────────────────────────────
   What the design's sample week never shows, in the design's own colours (its CELL and
   month-cell values): time off, days without hours, days past "how far ahead", the
   booked-share bars (1% steps), and the badges its sample has no call for. */
.bk-off { background: #F3D9D9; color: #8A2A2A; }
.bk-day-no { background: #F5F5F5; color: #8A8A8A; }
.bk-day-off { background: #F3D9D9; color: #8A2A2A; }
.bk-month-nohours { background: repeating-linear-gradient(-45deg,#F7F7F7 0 6px,#ECECEC 6px 8px); }
/* The move picker's days and times are links drawn as the design's chips. */
.bk-pick { text-decoration: none; }
.bk-bar { display: block; height: 100%; background: #3D2BFF; }
.bk-bar-0 { width: 0%; }
.bk-bar-1 { width: 1%; }
.bk-bar-2 { width: 2%; }
.bk-bar-3 { width: 3%; }
.bk-bar-4 { width: 4%; }
.bk-bar-5 { width: 5%; }
.bk-bar-6 { width: 6%; }
.bk-bar-7 { width: 7%; }
.bk-bar-8 { width: 8%; }
.bk-bar-9 { width: 9%; }
.bk-bar-10 { width: 10%; }
.bk-bar-11 { width: 11%; }
.bk-bar-12 { width: 12%; }
.bk-bar-13 { width: 13%; }
.bk-bar-14 { width: 14%; }
.bk-bar-15 { width: 15%; }
.bk-bar-16 { width: 16%; }
.bk-bar-17 { width: 17%; }
.bk-bar-18 { width: 18%; }
.bk-bar-19 { width: 19%; }
.bk-bar-20 { width: 20%; }
.bk-bar-21 { width: 21%; }
.bk-bar-22 { width: 22%; }
.bk-bar-23 { width: 23%; }
.bk-bar-24 { width: 24%; }
.bk-bar-25 { width: 25%; }
.bk-bar-26 { width: 26%; }
.bk-bar-27 { width: 27%; }
.bk-bar-28 { width: 28%; }
.bk-bar-29 { width: 29%; }
.bk-bar-30 { width: 30%; }
.bk-bar-31 { width: 31%; }
.bk-bar-32 { width: 32%; }
.bk-bar-33 { width: 33%; }
.bk-bar-34 { width: 34%; }
.bk-bar-35 { width: 35%; }
.bk-bar-36 { width: 36%; }
.bk-bar-37 { width: 37%; }
.bk-bar-38 { width: 38%; }
.bk-bar-39 { width: 39%; }
.bk-bar-40 { width: 40%; }
.bk-bar-41 { width: 41%; }
.bk-bar-42 { width: 42%; }
.bk-bar-43 { width: 43%; }
.bk-bar-44 { width: 44%; }
.bk-bar-45 { width: 45%; }
.bk-bar-46 { width: 46%; }
.bk-bar-47 { width: 47%; }
.bk-bar-48 { width: 48%; }
.bk-bar-49 { width: 49%; }
.bk-bar-50 { width: 50%; }
.bk-bar-51 { width: 51%; }
.bk-bar-52 { width: 52%; }
.bk-bar-53 { width: 53%; }
.bk-bar-54 { width: 54%; }
.bk-bar-55 { width: 55%; }
.bk-bar-56 { width: 56%; }
.bk-bar-57 { width: 57%; }
.bk-bar-58 { width: 58%; }
.bk-bar-59 { width: 59%; }
.bk-bar-60 { width: 60%; }
.bk-bar-61 { width: 61%; }
.bk-bar-62 { width: 62%; }
.bk-bar-63 { width: 63%; }
.bk-bar-64 { width: 64%; }
.bk-bar-65 { width: 65%; }
.bk-bar-66 { width: 66%; }
.bk-bar-67 { width: 67%; }
.bk-bar-68 { width: 68%; }
.bk-bar-69 { width: 69%; }
.bk-bar-70 { width: 70%; }
.bk-bar-71 { width: 71%; }
.bk-bar-72 { width: 72%; }
.bk-bar-73 { width: 73%; }
.bk-bar-74 { width: 74%; }
.bk-bar-75 { width: 75%; }
.bk-bar-76 { width: 76%; }
.bk-bar-77 { width: 77%; }
.bk-bar-78 { width: 78%; }
.bk-bar-79 { width: 79%; }
.bk-bar-80 { width: 80%; }
.bk-bar-81 { width: 81%; }
.bk-bar-82 { width: 82%; }
.bk-bar-83 { width: 83%; }
.bk-bar-84 { width: 84%; }
.bk-bar-85 { width: 85%; }
.bk-bar-86 { width: 86%; }
.bk-bar-87 { width: 87%; }
.bk-bar-88 { width: 88%; }
.bk-bar-89 { width: 89%; }
.bk-bar-90 { width: 90%; }
.bk-bar-91 { width: 91%; }
.bk-bar-92 { width: 92%; }
.bk-bar-93 { width: 93%; }
.bk-bar-94 { width: 94%; }
.bk-bar-95 { width: 95%; }
.bk-bar-96 { width: 96%; }
.bk-bar-97 { width: 97%; }
.bk-bar-98 { width: 98%; }
.bk-bar-99 { width: 99%; }
.bk-bar-100 { width: 100%; }
.bk-badge-s { width: 36px; height: 26px; flex: none; box-sizing: border-box; display: grid; place-items: center; border: 2px solid var(--ink); background: linear-gradient(160deg,#E6E6E6 0%,#C4C4C4 55%,#A8A8A8 100%); background-size: 300% 100%; animation: none; font-family: var(--display); font-size: 12px; font-weight: 700; color: #0A0A0A; text-shadow: 0 1px 0 rgba(255,255,255,0.75); }
.bk-next-p { width: 52px; height: 40px; flex: none; box-sizing: border-box; display: grid; place-items: center; border: 3px solid #FFFFFF; background: linear-gradient(110deg,#8E96A3 0%,#E8ECF2 18%,#B8BEC8 34%,#FFFFFF 50%,#A9B0BC 66%,#E8ECF2 82%,#8E96A3 100%); background-size: 300% 100%; animation: metal 2.6s ease-in-out infinite alternate; font-family: var(--display); font-size: 18px; font-weight: 700; color: #0A0A0A; text-shadow: 0 1px 0 rgba(255,255,255,0.75); }
.bk-next-gp { width: 52px; height: 40px; flex: none; box-sizing: border-box; display: grid; place-items: center; border: 3px solid #FFFFFF; background: linear-gradient(110deg,#A8740A 0%,#FFE7A0 16%,#D4A017 32%,#FFF7D6 48%,#C9961A 64%,#FFE08A 80%,#A8740A 100%); background-size: 300% 100%; animation: metal 2.2s ease-in-out infinite alternate; font-family: var(--display); font-size: 18px; font-weight: 700; color: #0A0A0A; text-shadow: 0 1px 0 rgba(255,255,255,0.75); }
.bk-next-g { width: 52px; height: 40px; flex: none; box-sizing: border-box; display: grid; place-items: center; border: 3px solid #FFFFFF; background: linear-gradient(160deg,#F2CF6B 0%,#D9A92A 55%,#B88A1C 100%); background-size: 300% 100%; animation: none; font-family: var(--display); font-size: 18px; font-weight: 700; color: #0A0A0A; text-shadow: 0 1px 0 rgba(255,255,255,0.75); }
.bk-next-s { width: 52px; height: 40px; flex: none; box-sizing: border-box; display: grid; place-items: center; border: 3px solid #FFFFFF; background: linear-gradient(160deg,#E6E6E6 0%,#C4C4C4 55%,#A8A8A8 100%); background-size: 300% 100%; animation: none; font-family: var(--display); font-size: 18px; font-weight: 700; color: #0A0A0A; text-shadow: 0 1px 0 rgba(255,255,255,0.75); }
