/* =====================================================================
   tablets.css: the Tablet Launcher (R87). The Admin Launcher's look,
   finger-sized, for the Guild's tablets. Day and night are the fleet's
   dress now (R145: light first, night one tap away, remembered on each
   tablet); the charcoal night of R87 is retired with the other per-app
   night themes. Only the few rules a single-door, touch-first page needs;
   launcher.css carries everything else.
   ===================================================================== */
body { -webkit-tap-highlight-color: transparent; }

/* administrators only: the page is plain for a tablet */
body:not(.admin) .admin-only { display: none !important; }
body.admin .tabfoot { display: none; }

/* a tablet without its link, and the sign-in, share the plaque look */
#needLink { position: fixed; inset: 0; background: var(--cream); display: flex; align-items: center; justify-content: center; z-index: 15; padding: 16px; }
#needLink .box { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 4px 14px var(--shadow); border-radius: var(--r); padding: 30px 28px 26px; max-width: 440px; width: 100%; text-align: center; }
#needLink h2 { font-family: var(--fell); color: var(--ink); font-size: 32px; font-weight: 400; margin: 10px 0 8px; }
#needLink .whimsy { font-size: 18px; margin: 0 0 18px; }

/* the find box needs no keyboard hint on glass */
.find input { width: 260px; min-height: 46px; font-size: 17px; }
@media (max-width: 720px) { .find input { width: 100%; } }

/* one door per app: the admin medallion rules, under their own name */
.door.main { min-height: 0; padding: 6px 4px 4px; }
.door.main .cartouche { width: 96px; height: 96px; font-size: 36px; transition: transform .15s, box-shadow .15s; }
.door.main:active .cartouche { transform: scale(.96); }
.door.main .name { font-size: 18px; }
.door.main.unhung .cartouche { opacity: .5; border-style: dashed; }
.door.main.unhung .name { opacity: .6; }

/* finger-sized: wider columns, taller tiles */
main { padding-top: 34px; }
.apps { grid-template-columns: repeat(auto-fill, 136px); gap: 30px 16px; }
.sites { grid-template-columns: repeat(auto-fill, 100px); gap: 20px 14px; }
.site .mark { width: 60px; height: 60px; }
.site .mark img { width: 34px; height: 34px; }
.site .name { font-size: 14px; }
.app:hover, .site:hover { background: none; }
.app:active, .site:active { background: rgba(var(--ink-rgb), .06); }
body.editing .apps { grid-template-columns: repeat(auto-fill, 136px); }
body.editing .app { padding-top: 40px; }
@media (max-width: 640px) {
  .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 6px; }
  .sites { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .door.main .cartouche { width: 80px; height: 80px; font-size: 30px; }
  .door.main .name { font-size: 16px; }
}

/* tablet links */
.linkform { display: flex; gap: 8px; margin: 4px 0 12px; }
.linkform input { flex: 1; min-width: 0; min-height: 40px; }
.linkbox { background: var(--cream); border: 1px solid var(--line); border-radius: var(--plaque-radius); padding: 12px; margin: 0 0 12px; }
.linkbox .h { font-family: var(--fellsc); color: var(--ink); font-size: 18px; letter-spacing: .04em; }
.linkbox .meta { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.linkbox input { width: 100%; font-size: 13px; margin-bottom: 8px; }
.versions.links li.off { opacity: .55; }
.versions.links li button.sure { background: var(--danger); border-color: var(--danger); color: #fff; }

/* the quiet way in for an administrator */
.tabfoot { text-align: center; padding: 0 0 26px; }
.linkish { border: 0; background: none; color: var(--faint); min-height: 44px; min-width: 44px; font-size: 14px; }

/* R140.5: today's rate for US bills, from the Count of Hearts: a chip in the bar's slot */
.usd-rate { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: .02em;
  border: 1.5px solid var(--gold); background: var(--paper); color: var(--ink); border-radius: 99px; padding: 8px 14px; white-space: nowrap; }
.usd-rate b { color: var(--gold-text); font-weight: 800; }

/* =====================================================================
   R161: the station's roster, the manager's medallion and page, the
   six-digit pad, and the editor's three lists (tablets, stations,
   managers). Finger-sized throughout.
   ===================================================================== */
/* the roster: a row of names, one lit */
#rosterSection { padding: 18px 0 0; }
.rosterhead { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.rosterq { font-family: var(--fellsc); font-size: 19px; letter-spacing: .04em; color: var(--muted); }
.roster { display: flex; flex-wrap: wrap; gap: 8px; }
.who { min-height: 46px; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line2); background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; }
.who.on { border-color: var(--gold); background: var(--gold-wash, rgba(191, 155, 48, .14)); color: var(--gold-text); font-weight: 700; }
.who.off { opacity: .5; }
.who.big { min-height: 64px; font-size: 19px; padding: 10px 20px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.who.big small { font-size: 13px; color: var(--muted); font-weight: 400; }
.who.sure { border-color: var(--danger); color: var(--danger); }
.mpick { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }

/* the manager's medallion wears the same cartouche, weightier ring */
.app.manager .cartouche { box-shadow: 0 0 0 2px var(--gold); }

/* the manager's page */
#managerSection { padding-top: 26px; }
.mhead { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.mname { font-family: var(--fell); font-size: 30px; color: var(--ink); line-height: 1.1; }
.mhouse { font-family: var(--sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-top: 2px; }
.mhead .chip { margin-left: auto; }
.mtools-h { margin-top: 26px; }
.mtools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool { min-height: 54px; padding: 10px 18px; border-radius: var(--plaque-radius); border: 1.5px solid var(--line2); background: var(--paper); color: var(--ink); font-family: var(--fellsc); font-size: 18px; letter-spacing: .03em; }
.tool.off { opacity: .45; border-style: dashed; }
#mUnhung { color: var(--muted); font-size: 14px; font-family: var(--sans); margin: 8px 0 0; }

/* the pad: six dots, twelve keys, thumbs */
.pinDlg { width: min(420px, calc(100vw - 32px)); }
.dots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 16px; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); background: transparent; }
.dot.on { background: var(--gold); border-color: var(--gold); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { min-height: 64px; font-family: var(--sans); font-size: 26px; font-variant-numeric: tabular-nums; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--paper); color: var(--ink); }
.key.fn { font-size: 18px; color: var(--muted); }
.key:active { background: rgba(var(--ink-rgb), .08); }

/* the editor's lists */
.linkform.stacked { flex-wrap: wrap; }
.linkform.stacked select { flex: 1; min-width: 180px; min-height: 40px; }
.versions.links li button { margin-left: 0; }
.versions.links li button:first-of-type { margin-left: auto; }
.versions.managers li { flex-wrap: wrap; }
.mform { border: 1px solid var(--line); border-radius: var(--plaque-radius); padding: 8px 14px; margin: 0 0 12px; }
.mform summary { font-family: var(--fellsc); font-size: 18px; letter-spacing: .04em; cursor: pointer; min-height: 32px; }
.mform .fields { margin-top: 10px; }
.grants { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; grid-column: 1 / -1; }
@media (max-width: 560px) { .grants { grid-template-columns: 1fr; } }
