/* Cracked Ops's own pieces (ops/start.ts, ops/in.ts), in the kit's tokens (public/rate-b.css :root) and the frame's
   (public/frame.css .st-app). Every product page Ops draws gets this file too (worker.ts dressed). */

.op-start, .op-you { width: 100%; max-width: 1200px; margin: 0 auto; display: grid; gap: 16px; align-content: start; }
.op-head { display: grid; gap: 4px; }
.op-eyebrow { margin: 0; font: 600 13px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.op-h1 { margin: 0; font: 400 32px/36px var(--display); letter-spacing: -.01em; color: var(--ink); }

/* the dashboards: a phone's column of rows (name and line on the left, the number on the right), 60 px each, so seven
   fit above the tabs in a 393 x 793 window with its 34 px home-indicator inset */
.op-tiles { display: grid; gap: 8px; }
.op-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 24px 20px; column-gap: 12px; align-content: center; height: 60px; padding: 0 16px;
  border-radius: var(--r-well); background: var(--st-pan, var(--card)); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none;
  transition: background .12s ease, transform .12s var(--out); }
.op-tile:hover { background: var(--st-pan2, var(--raised)); }
.op-tile:active { transform: scale(.98); }
.op-tile-k { grid-column: 1; grid-row: 1; align-self: end; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 16px/20px var(--sans); }
.op-tile-s { grid-column: 1; grid-row: 2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 13px/20px var(--sans); color: var(--muted); }
.op-tile-n { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 400 24px/28px var(--display); font-variant-numeric: tabular-nums; }
.op-tile.bad .op-tile-n { color: var(--red-text); }
.op-tile.ok .op-tile-n { color: var(--green-text); }

/* a computer: the rail and a grid of tiles, three across, the number large under the name */
@media (min-width: 900px) {
  .op-start { gap: 24px; }
  .op-h1 { font-size: 40px; line-height: 44px; }
  .op-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .op-tile { grid-template-columns: minmax(0, 1fr); grid-template-rows: 24px 56px 20px; row-gap: 8px; height: 168px; padding: 24px; border-radius: var(--r-card); align-content: start; }
  .op-tile-n { grid-column: 1; grid-row: 2; align-self: end; font-size: 48px; line-height: 56px; }
  .op-tile-s { grid-column: 1; grid-row: 3; }
}

/* sign in (/in): one field, one button */
.op-in { width: 100%; max-width: 440px; margin: auto; display: grid; gap: 16px; padding: 24px 0; }
.op-lede { margin: 0; font: 400 16px/24px var(--sans); color: var(--ink-82); }
.op-wrong { margin: 0; padding: 12px 16px; border-radius: var(--r-well); background: var(--red-dark); color: var(--red-text); font: 600 15px/20px var(--sans); }
.op-form { display: grid; gap: 8px; }
.op-label { font: 600 13px/16px var(--sans); color: var(--muted); }
.op-code { height: 56px; padding: 0 16px; border: 0; border-radius: var(--r-well); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  font: 400 24px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.op-code:focus { outline: 2px solid var(--c-mark); outline-offset: 0; }
.op-go { width: 100%; margin-top: 8px; }
.op-quiet { margin: 0; font: 400 14px/20px var(--sans); color: var(--muted); }
.op-quiet a { color: var(--ink); }

/* You: who is signed in here */
.op-you { max-width: 560px; margin: 0; }
.op-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; margin: 0; padding: 24px; border-radius: var(--r-card); background: var(--st-pan, var(--card)); box-shadow: inset 0 0 0 1px var(--line); }
.op-dl dt { font: 600 14px/20px var(--sans); color: var(--muted); }
.op-dl dd { margin: 0; overflow-wrap: anywhere; font: 400 15px/20px var(--sans); color: var(--ink); }

/* a shorter phone window (an iPhone SE's Home Screen app is 375 x 667, the phone in Safari 390 x 660): the rows tighten
   so all seven still fit above the tabs; under 620 px tall (320 x 568) each row is its name and number alone */
@media (max-width: 899px) and (max-height: 720px) {
  .op-start { gap: 12px; }
  .op-h1 { font-size: 28px; line-height: 32px; }
  .op-tiles { gap: 6px; }
  .op-tile { height: 52px; }
}
@media (max-width: 899px) and (max-height: 619px) {
  .op-eyebrow { display: none; }
  .op-tile { height: 44px; grid-template-rows: 44px; }
  .op-tile-k { align-self: center; }
  .op-tile-s { display: none; }
  .op-tile-n { grid-row: 1; font-size: 20px; line-height: 24px; }
}
