/* Classroom print queue.
   Hand-written CSS in the visual language of the owner's other app: cream
   page, Neue Haas Grotesk, round pills with thin gray outlines, green for
   whatever is chosen, soft floating cards, blurred-backdrop modals. Light only. */

@font-face {
  font-family: 'neue-haas-grotesk';
  src: url('fonts/NeueHaasDisplayRoman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'neue-haas-grotesk';
  src: url('fonts/NeueHaasDisplayMediu.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'neue-haas-grotesk';
  src: url('fonts/NeueHaasDisplayBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'neue-haas-grotesk';
  src: url('fonts/NeueHaasDisplayBlack.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fffaf4;
  --ink: #333333;
  --green: #4a9b4e;
  --orange: #f7901e;
  --red: #f04e23;
  --blue: #2c6bc0;

  --ink-80: rgba(51, 51, 51, 0.8);
  --ink-70: rgba(51, 51, 51, 0.7);
  --ink-60: rgba(51, 51, 51, 0.6);
  --ink-50: rgba(51, 51, 51, 0.5);
  --ink-05: rgba(51, 51, 51, 0.05);
  --ink-03: rgba(51, 51, 51, 0.03);
  --gray-200: #e5e7eb;
  --gray-300: #d1d5dc;
  --gray-400: #99a1af;
  --gray-500: #6a7282;
  --card: #fffefd; /* white at 80% over the cream */

  --shadow-rest: 0 1px 2px rgba(51, 51, 51, 0.04);
  --shadow-open: 0 10px 30px rgba(51, 51, 51, 0.08);
  --shadow-pop: 0 20px 60px rgba(51, 51, 51, 0.18);
  --shadow-modal: 0 25px 50px -12px rgba(51, 51, 51, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'neue-haas-grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
main:focus { outline: none; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 8px 16px; border-radius: 9999px;
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ nav */

.nav { flex: none; height: 56px; background: var(--cream); border-bottom: 1px solid var(--ink); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 100%; max-width: 1800px; margin: 0 auto; padding: 0 24px;
}
.nav__inner { container-type: inline-size; }

/* Squarage Labs × LILA. The Labs logo is an outlined copy of the one in the
   Labs nav (tiles 28px tall, green "Labs" in Neue Haas Black at 39px), and
   LILA is set in that same Black at that same size in ink, so its capitals
   stand as tall as the tiles. Everything is sized in em off one font-size,
   which shrinks with the bar so the lockup never pushes the links off. */
.brand {
  --brand-size: min(39px, (100cqi - 260px) / 11.4);
  flex: none; display: flex; align-items: baseline; min-width: 0;
  font-size: var(--brand-size); font-weight: 900; line-height: 1;
  white-space: nowrap; text-decoration: none; color: var(--ink); border-radius: 4px;
}
.brand__labs { display: contents; }
/* The image is cut so its bottom is the ink of "Labs"; pull that down past the baseline. */
.brand__mark { display: block; width: auto; height: 0.733em; margin-bottom: -0.017em; }
.brand__x { margin: 0 0.32em; font-size: 0.55em; font-weight: 500; color: var(--ink-50); position: relative; top: -0.3em; }
img.brand__lila { display: block; width: auto; height: 0.715em; } /* a real LILA logo, cap height tall */

.nav__links { display: flex; align-items: center; gap: 32px; min-width: 0; }
.nav__link {
  position: relative; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
  color: var(--ink); text-decoration: none; border-radius: 4px; transition: color 150ms;
}
.nav__link:hover { color: var(--orange); }
.nav__link[aria-current='page'] { color: var(--green); }
.nav__dot {
  position: absolute; top: -2px; right: -9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--red);
}
.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__bell {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--gray-300); background: #fff; color: var(--ink-70);
  transition: color 200ms, background-color 200ms, border-color 200ms;
}
.nav__bell:hover { border-color: var(--gray-400); }
.nav__bell[aria-pressed='true'] { border-color: var(--green); background: var(--green); color: #fff; }

/* ----------------------------------------------------------------- page */

/* The queue lines up with the bar across the top; History is one slim column. */
.main { flex: 1; width: 100%; max-width: 1800px; margin: 0 auto; padding: 32px 24px 48px; }
.main--slim { max-width: 800px; }

.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.head__text { min-width: 0; }
.head h1 { font-size: 28px; font-weight: 700; line-height: 1.25; }
.head p { font-size: 14px; color: var(--gray-500); overflow-wrap: anywhere; }
.head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.notice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  max-width: 760px; margin-bottom: 16px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--gray-200); background: #fff; font-size: 13px;
}
.notice--warning { border-color: rgba(247, 144, 30, 0.5); }

/* The queue: picture cards, as many across as fit. History: one calm column. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.queue { min-width: 0; }
@media (min-width: 1600px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); }
}
.more { display: flex; justify-content: center; margin-top: 16px; }

.empty { max-width: 760px; padding: 56px 24px; border: 1px dashed var(--gray-300); border-radius: 16px; text-align: center; }
.empty__title { font-size: 15px; font-weight: 500; color: var(--ink-70); }
.empty__text { margin-top: 4px; font-size: 13px; color: var(--gray-500); }

/* The quiet line under every page. */
.foot { flex: none; width: 100%; max-width: 1800px; margin: 0 auto; padding: 0 24px 28px; }
.foot--slim { max-width: 800px; }
.foot__inner {
  display: flex; flex-direction: column; gap: 6px; padding-top: 14px;
  border-top: 1px solid var(--gray-200); font-size: 12px; line-height: 1.5; color: var(--gray-500);
}
.foot__status { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.foot__item { display: inline-flex; align-items: center; gap: 7px; }
.foot__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--gray-300); }
.foot__item--good .foot__dot { background: var(--green); }
.foot__item--bad { color: var(--red); }
.foot__item--bad .foot__dot { background: var(--red); }

/* ---------------------------------------------------------------- pills */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  max-width: 100%; padding: 4px 14px; border-radius: 9999px;
  border: 1px solid var(--gray-300); background: #fff; color: var(--ink-80);
  font-size: 13px; line-height: 1.5; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color 200ms, background-color 200ms, border-color 200ms;
}
.pill:hover { border-color: var(--gray-400); }
.pill:disabled { opacity: 0.4; }
.pill.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.pill--danger:hover { border-color: var(--red); color: var(--red); }
.pill--danger.is-armed { border-color: var(--red); color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 100%; padding: 8px 16px; border-radius: 9999px;
  border: 1px solid var(--gray-300); background: #fff; color: var(--ink);
  font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color 200ms, background-color 200ms, border-color 200ms;
}
.btn:hover { border-color: var(--gray-400); }
.btn:disabled { color: var(--gray-400); }
.btn:disabled:hover { border-color: var(--gray-300); }
.btn--primary { padding: 8px 20px; border-color: transparent; background: var(--green); color: #fff; font-weight: 700; }
.btn--primary:hover { border-color: transparent; background: rgba(74, 155, 78, 0.9); }
.btn--primary:disabled, .btn--primary:disabled:hover { border-color: transparent; background: var(--gray-300); color: #fff; }


.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.chip {
  flex: none; padding: 2px 8px; border-radius: 9999px; border: 1px solid var(--gray-300);
  background: #fff; color: var(--gray-500); font-size: 11px; line-height: 1.5; font-weight: 700; white-space: nowrap;
}
.chip--warning { border-color: rgba(247, 144, 30, 0.5); color: var(--orange); }

/* The one green selection that glides between the options. */
.seg {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  width: max-content; max-width: 100%; padding: 4px; border-radius: 9999px; background: rgba(51, 51, 51, 0.06);
}
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n));
  transform: translateX(calc(var(--i) * 100%)); border-radius: 9999px; background: var(--green);
  box-shadow: var(--shadow-sm); transition: transform 200ms ease-out; pointer-events: none;
}
.seg__opt {
  position: relative; z-index: 1; min-width: 0; padding: 4px 12px; border-radius: 9999px;
  font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink-70); white-space: nowrap;
  transition: color 200ms;
}
.seg__opt:hover { color: var(--ink); }
.seg__opt[aria-pressed='true'] { color: #fff; }

/* ---------------------------------------------------------- design cards */

.card {
  position: relative; min-width: 0; padding: 12px;
  border: 1px solid var(--gray-200); border-radius: 16px; background: var(--card);
  box-shadow: var(--shadow-rest);
  transition: border-color 200ms, box-shadow 600ms, opacity 200ms;
}
.card:hover { border-color: var(--gray-400); }
.card.is-fresh { border-color: var(--green); box-shadow: 0 0 0 3px rgba(74, 155, 78, 0.25); }
.card.is-busy { opacity: 0.6; }
.card__open { display: flex; min-width: 0; border-radius: 12px; text-align: left; }
.card__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.card__name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: 16px; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere;
}
.card__meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--gray-500); }
.card__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__when { flex: none; white-space: nowrap; }
.card__when::before { content: '·'; margin-right: 6px; }
.card__line { font-size: 13px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__flag { display: flex; margin-top: 4px; }
.card__wait { padding: 9px 0; font-size: 14px; line-height: 20px; color: var(--gray-500); text-align: center; }
.card__error { font-size: 13px; line-height: 1.4; color: var(--red); overflow-wrap: anywhere; }

/* In the queue: the picture on top, one button underneath. */
.card--tile { display: flex; flex-direction: column; gap: 12px; }
.card--tile .card__open { flex: 1; flex-direction: column; gap: 10px; }
.card--tile .card__text { flex: none; padding: 0 4px; }
.card--tile .card__flag { position: absolute; top: 20px; left: 20px; margin: 0; }
.card--tile .card__act { display: flex; }
.card--tile .card__act > * { flex: 1; }
.card--tile .card__error { padding: 0 4px; }

/* In History: one line per design. */
.card--row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.card--row .card__open { flex: 1 1 240px; align-items: center; gap: 12px; }
.card--row .card__act { flex: none; margin-left: auto; }
.card--row .card__error { flex: 1 1 100%; }

.tile {
  position: relative; display: grid; place-items: center; flex: none; width: 80px; aspect-ratio: 1;
  border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; overflow: hidden; color: rgba(51, 51, 51, 0.3);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.tile .ico { width: 28px; height: 28px; stroke-width: 1.2; }
.tile--small { width: 56px; border-radius: 10px; }
.tile--large { width: 192px; border-radius: 16px; }
.tile--large img { padding: 12px; }
.tile--large .ico { width: 40px; height: 40px; stroke-width: 1; }
.card--tile .tile { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; background: var(--ink-03); }
.card--tile .tile img { padding: 10px; }
.card--tile .tile .ico { width: 36px; height: 36px; stroke-width: 1; }

.dot {
  display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 2px; border-radius: 50%; vertical-align: -1px;
  background: var(--gray-200); box-shadow: inset 0 0 0 1px rgba(51, 51, 51, 0.28);
}

/* -------------------------------------------------------------- popover */

.popwrap { position: relative; display: flex; }
.pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  display: flex; flex-direction: column; gap: 2px; width: max-content; min-width: 180px; max-width: min(280px, calc(100vw - 32px));
  padding: 8px; border: 1px solid var(--gray-200); border-radius: 16px; background: #fff;
  box-shadow: var(--shadow-pop); transform-origin: top right; animation: popIn 200ms var(--ease-pop);
}
.pop__text { padding: 6px 12px 8px; font-size: 13px; color: var(--ink-70); white-space: normal; overflow-wrap: anywhere; }

/* ------------------------------------------------------ needs attention */

.attention {
  display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-bottom: 24px; padding: 14px 20px 16px;
  border: 1px solid rgba(240, 78, 35, 0.4); border-radius: 16px; background: rgba(240, 78, 35, 0.06);
}
.attention__title { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--red); }
.attention__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.attention__row .card__error { flex: 1 1 100%; }
.attention__what { flex: 1 1 240px; min-width: 0; border-radius: 6px; text-align: left; font-size: 14px; overflow-wrap: anywhere; }
.attention__what strong { font-weight: 500; }
.attention__why { display: block; font-size: 13px; color: var(--ink-70); }

/* -------------------------------------------------------------- readouts */

.readout { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 30px; padding: 3px 0; font-size: 14px; }
.readout--control { align-items: center; }
.readout__label { flex: none; color: var(--gray-500); }
.readout__value { min-width: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout__detail { margin-top: -1px; font-size: 12px; color: var(--ink-50); text-align: right; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- modal */

.modal {
  width: min(94vw, 560px); max-width: none; max-height: 90dvh; margin: auto; padding: 0; border: 0;
  border-radius: 24px; background: var(--cream); color: inherit; box-shadow: var(--shadow-modal); overflow: hidden;
}
.modal--sm { width: min(92vw, 440px); }
.modal[open] { display: flex; flex-direction: column; animation: popIn 200ms var(--ease-pop); }
.modal::backdrop { background: rgba(51, 51, 51, 0.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: fadeIn 160ms ease-out; }
.modal__inner { display: flex; flex-direction: column; min-height: 0; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 28px 8px; }
.modal__heading { min-width: 0; }
.modal__title { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.modal__sub { margin-top: 2px; font-size: 13px; color: var(--gray-500); overflow-wrap: anywhere; }
.modal__close {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; margin: -4px -4px 0 0;
  border-radius: 50%; color: rgba(51, 51, 51, 0.4); font-size: 22px; line-height: 1;
  transition: color 200ms, background-color 200ms;
}
.modal__close:hover { background: var(--ink-05); color: var(--ink); }
.modal__body { display: flex; flex-direction: column; gap: 20px; min-height: 0; padding: 16px 28px 28px; overflow-y: auto; }

.summary { display: flex; gap: 24px; align-items: center; }
.summary__rows { flex: 1; min-width: 0; }
.colours { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; }
.colour { white-space: nowrap; }

.stack { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13px; font-weight: 500; color: var(--ink-60); }
.small { font-size: 12px; color: var(--ink-50); overflow-wrap: anywhere; }
.lede { font-size: 14px; color: var(--ink-70); }
.field {
  width: 100%; min-width: 0; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--ink-03);
  font-size: 14px; line-height: 1.5; outline: none; transition: background-color 150ms, box-shadow 150ms;
}
.field::placeholder { color: #a1a1a1; }
.field:focus { background: #fff; box-shadow: 0 0 0 2px rgba(74, 155, 78, 0.4); }
textarea.field { display: block; resize: none; line-height: 1.6; }
.field--file { padding: 8px 12px; color: var(--ink-70); }
.field--file::file-selector-button {
  margin-right: 12px; padding: 4px 14px; border-radius: 9999px; border: 1px solid var(--gray-300);
  background: #fff; color: var(--ink-80); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}

.stepper { display: flex; align-items: center; gap: 4px; margin-right: -4px; }
.step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink-50); transition: color 200ms, background-color 200ms; }
.step:hover { background: var(--ink-05); color: var(--ink); }
.step:disabled { opacity: 0.3; }
.value-pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 9999px;
  border: 1px solid var(--gray-300); background: #fff; font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums; transition: border-color 200ms, box-shadow 200ms;
}
.value-pill:hover { border-color: var(--gray-400); }
.value-pill:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(74, 155, 78, 0.2); }
.value-pill input[aria-invalid='true'] { color: var(--red); }
.value-pill input { width: 4ch; padding: 0; border: 0; background: none; outline: none; text-align: right; font-variant-numeric: tabular-nums; }

.note { padding: 12px 16px; border-radius: 12px; background: var(--ink-03); font-size: 13px; color: var(--ink-80); overflow-wrap: anywhere; }
.note strong { font-weight: 700; }
.note--warning { background: rgba(247, 144, 30, 0.08); }
.note--warning strong { color: var(--orange); }
.note--error { background: rgba(240, 78, 35, 0.06); }
.note--error strong { color: var(--red); }
.note__quote { margin-top: 6px; white-space: pre-wrap; }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }

.tips { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-80); }
.tips li { position: relative; padding-left: 14px; overflow-wrap: anywhere; }
.tips li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--gray-400); }

/* -------------------------------------------------------------- sign-in */

/* The same quiet screen as the owner's other app: a title, one underlined
   field and one green button, alone on the cream page. */
.signin {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--cream); color: inherit; overflow-y: auto;
}
.signin[open] { display: flex; align-items: center; justify-content: center; }
.signin::backdrop { background: var(--cream); }
.signin__inner { width: 100%; max-width: 384px; padding: 32px; }
.signin__title { margin-bottom: 48px; container-type: inline-size; }
.signin__title .brand { --brand-size: min(39px, 100cqi / 11.5); justify-content: center; }
.signin__form { display: flex; flex-direction: column; gap: 24px; }
.signin__field {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 2px solid rgba(51, 51, 51, 0.15); border-radius: 0;
  background: transparent; font-size: 14px; outline: none; transition: border-color 150ms;
}
.signin__field:focus, .signin__field:focus-visible { border-bottom-color: var(--green); outline: none; }
.signin__field::placeholder { color: #a1a1a1; }
.signin__error { font-size: 14px; color: var(--red); }
.signin__btn {
  width: 100%; padding: 12px; border-radius: 8px; background: var(--green); color: #fff;
  font-size: 14px; font-weight: 500; transition: opacity 150ms;
}
.signin__btn:disabled { opacity: 0.5; }
.signin__hint { margin-top: 24px; font-size: 12px; color: var(--ink-50); text-align: center; }

/* ---------------------------------------------------------------- extras */

.toasts {
  position: fixed; left: 0; right: 0; bottom: 24px; z-index: 60; display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding: 0 16px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; max-width: min(100%, 480px); padding: 10px 16px;
  border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; font-size: 13px;
  box-shadow: var(--shadow-pop); pointer-events: auto; overflow-wrap: anywhere; animation: toastIn 200ms var(--ease-pop);
}
.toast--error { border-color: rgba(240, 78, 35, 0.4); color: var(--red); }
.toast__text { min-width: 0; }
.toast__detail { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-60); }
.toast .pill { flex: none; }

.drop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(255, 250, 244, 0.85); }
.drop__box { padding: 40px 48px; border: 2px dashed var(--green); border-radius: 24px; background: #fff; font-size: 17px; font-weight: 500; color: var(--green); text-align: center; }

.noscript { margin: 24px; padding: 12px 16px; border-radius: 12px; background: rgba(240, 78, 35, 0.06); color: var(--red); }

/* --------------------------------------------------------- small screens */

@media (max-width: 560px) {
  .nav__inner { padding: 0 16px; gap: 10px; }
  /* Phones keep "squarage × LILA": the tiles alone (see the <picture>), sized to what is left. */
  .brand { --brand-size: clamp(12px, (100cqi - 200px) / 9, 20px); }
  .nav .brand__mark { height: 0.718em; margin-bottom: 0; }
  .nav__links { gap: 14px; }
  .nav__tools { gap: 6px; }
  .main { padding: 24px 16px 40px; }
  .foot { padding: 0 16px 24px; }
  .head h1 { font-size: 24px; }
  .tile--small { width: 48px; }
  .modal__head { padding: 20px 20px 6px; }
  .modal__body { padding: 12px 20px 22px; }
  .summary { flex-direction: column; align-items: stretch; gap: 12px; }
  .tile--large { width: 100%; aspect-ratio: 16 / 9; }

  /* Queue cards lie down on a phone: small picture beside the name, button below. */
  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card--tile .card__open { flex-direction: row; align-items: center; gap: 12px; }
  .card--tile .card__text { flex: 1; padding: 0; }
  .card--tile .card__flag { position: static; margin-top: 4px; }
  .card--tile .tile { width: 72px; aspect-ratio: 1; }
  .card--tile .tile img { padding: 6px; }
  .card--tile .tile .ico { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
