#who { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; max-width: min(420px, 70vw); }
#who .who-email { color: #9BB0CC; font-size: 12px; }
.auth, .wide { width: min(360px, 100%); }
#venueCode { width: min(420px, 100%); font-family: Consolas, "Cascadia Mono", monospace; }
.auth { display: grid; gap: 10px; }
.plain.wide { width: min(360px, 100%); padding: 10px 14px; }
.auth input, .field input, .field select, .day input, .lookup input { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; width: 100%; background: #fff; color: inherit; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.loc, .listcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; text-align: left; }
.loc:hover { border-color: var(--blue); }
.loc-open { display: block; width: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.loc .plain { margin-top: 12px; }
main.many { max-width: none; }
#places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: stretch; }
#places > .loc { width: auto; min-width: 0; max-width: none; }
#places .loc-links { flex-wrap: wrap; }
#places .loc-more { width: auto; min-width: 0; }
#places .bill-block { max-width: none; }
.spare-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--deep); font-size: 12px; font-weight: 800; }
body.sheet-open { overflow: hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 12px 22px; background: #EEF3FB; border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.dialog-head h2 { margin: 0; font-size: 18px; }
.add-card { width: min(480px, 100%); margin: 12vh auto 0; }
.add-choices { display: flex; flex-wrap: wrap; gap: 10px; }
#createSheet { overflow: hidden; padding: 24px 16px; display: flex; }
.create-card { width: min(760px, 100%); max-height: 100%; margin: auto; display: flex; flex-direction: column; overflow: hidden; }
.create-card > .dialog-head { flex: none; }
#floorSheet, #historySheet { overflow: hidden; padding: 24px 16px; display: flex; }
#floorSheet .sheet-card { margin: auto; }
.floor-install { padding: 16px 22px 22px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.floor-install p { margin: 0; }
#floorCode svg { width: 240px; height: 240px; background: #fff; border-radius: 8px; }
.history-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 22px 22px; display: grid; gap: 12px; align-content: start; }
.history-body > p { margin: 0; }
.hist-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.hist-row.first { border-color: #9DB7E3; background: #F6F9FE; }
.hist-top { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; }
.hist-top > b { font-size: 16px; text-align: right; }
.hist-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 800; }
.hist-top small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.hist-status { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #E3F6EC; color: #1E6B45; }
.hist-status.warn { background: #FDE8E8; color: #9B1C1C; }
.hist-status.wait { background: #FFF4D6; color: #7A5A0B; }
.hist-status.gray { background: #EEF1F5; color: #4A5568; }
.hist-pays { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.hist-pays .failed { color: #9B1C1C; }
.hist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-actions .plain { margin-top: 0; }
#createDialog { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#createDialog > .panel { border: 0; border-radius: 0; padding-bottom: 0; }
#createDialog .savebar { position: sticky; bottom: 0; z-index: 5; margin: 18px -22px 0; padding: 14px 22px; background: #fff; border-top: 1px solid var(--line); }
#createDialog #createTitle { display: none; }
#createDialog #createNote { margin-top: 0; }
.grid .field.wide { width: auto; }
#createHome:empty { display: none; }
.loc-links { margin-top: 12px; }
.loc-links .plain { margin-top: 0; }
.loc-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.loc-more > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #355DA6; list-style: none; display: flex; align-items: center; gap: 6px; user-select: none; }
.loc-more > summary::-webkit-details-marker { display: none; }
.loc-more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.loc-more[open] > summary::before { transform: rotate(45deg); }
.loc-more > .products { margin-top: 8px; }
.connection { margin-top: 12px; display: grid; gap: 8px; text-align: left; }
.connection span { display: block; }
.download { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.download a { text-decoration: none; }
.loc-open > b, .listhead > b { display: block; font-size: 17px; }
.products { margin-top: 12px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
#productList { display: grid; gap: 12px; margin-top: 12px; }
#productList > .product-add { margin-top: 0; }
#productList > .products { margin-top: 0; }
.bill-block { display: grid; gap: 6px; max-width: 480px; }
.bill-label { margin: 6px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; background: #E3F6EC; color: #1E6B45; font-size: 13px; font-weight: 600; }
.chip.trial { background: #FFF4D6; color: #7A5A0B; }
.paid-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.paid-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; font-size: 14px; }
.paid-list b { text-align: right; }
.paid-list small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.bill-block > .muted.small { margin: 0; }
.bill-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bill-actions .primary { margin-top: 0; }
.product-add { display: flex; flex-wrap: wrap; gap: 8px; }
.period-row { display: flex; flex-wrap: wrap; gap: 8px; }
.period-row .plain.on { background: #EAF1FD; border-color: var(--blue); color: var(--blue); }
#billingChoices { display: grid; grid-template-columns: 1fr 1fr; }
#billingChoices .plain { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
#billingChoices .plain span { font-size: 13px; font-weight: 600; }
.bill-lines { display: grid; gap: 4px; margin-top: 4px; }
.bill-lines div { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 14px; }
.bill-lines div:last-child { font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); }
.bill-block .primary { margin-top: 8px; }
.product-add .plain, .bill-block .plain { margin-top: 0; }
a.plain { font-size: 14px; font-weight: 700; }
.venue-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.venue-head h1 { font-size: 26px; }
.venue-head .primary { margin-left: auto; }
#home, #venue { display: grid; gap: 20px; }
#home > .notice { margin-top: 0; }
.license-tie { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: #f4f7fb; border: 1px solid var(--line); }
.license-tie p { margin: 0; font-weight: 800; color: var(--ink); }
.license-tie .field { margin-top: 12px; }
.license-tie .plain { margin-top: 10px; }
.product-add a span { color: var(--muted); font-weight: 600; }
#lists { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.listhead .count { font-size: 20px; font-weight: 700; }
.board { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.board th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 10px 6px 0; }
.board td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.board .num { width: 2.2em; color: var(--muted); }
.board .when { white-space: nowrap; width: 5.5em; }
.phone { margin-right: 6px; color: #355DA6; }
.set-tabs { flex-wrap: wrap; gap: 0; margin-top: 14px; border-bottom: 1px solid var(--line); }
.set-tabs .tab { background: transparent; border: 0; border-radius: 0; margin-bottom: -1px; padding: 10px 16px; color: var(--muted); font-weight: 700; box-shadow: inset 0 -2px 0 transparent; }
.set-tabs .tab:hover:not(.on) { background: transparent; color: var(--ink); box-shadow: inset 0 -2px 0 #C5D4EA; }
.set-tabs .tab.on { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.set-pane { padding-top: 10px; }
#games { display: grid; gap: 12px; margin-top: 8px; }
#games .game { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #FAFCFF; }
.game-top { display: flex; gap: 10px; align-items: center; }
.game-top .g-name { flex: 1; max-width: 420px; }
.game-top .g-remove { margin-left: auto; }
.game-fields { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.game-fields .field { width: auto; display: grid; gap: 4px; align-items: start; justify-items: start; }
.g-days .day { display: grid; }
.game .opts { grid-column: auto; }
.game-fields select, .game-fields input { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: inherit; }
.game-fields .g-early { width: 170px; }
.game-fields select { width: auto; }
.game-fields .g-wait { width: 80px; }
.stay { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stay-minutes { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.g-days { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; justify-self: start; }
.g-days .day input { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.game .g-name[readonly] { background: #F1F4F9; color: var(--muted); }
.game select:disabled, .game input:disabled { background: #F1F4F9; color: #8A97AA; }
.set-pane > .checks, .set-pane > .days { margin-top: 14px; }
.set-pane > #addList { margin-top: 12px; }
.set-pane > #blocked { margin-top: 10px; }
.game .g-name { font: inherit; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; width: 100%; min-width: 0; background: #fff; color: inherit; }
.day-head { padding-bottom: 0; }
#settings .savebar { position: sticky; bottom: 0; margin: 18px -22px -22px; padding: 14px 22px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.saved.bad { color: #B3261E; }
#settings .row-between { align-items: baseline; }
.player { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.player span { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 14px; }
.field { display: grid; gap: 4px; font-size: 14px; }
.field.wide, .checks { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.checks label, .game label { display: flex; align-items: center; gap: 8px; }
.game { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.game .opts { display: flex; flex-wrap: wrap; gap: 8px 14px; grid-column: 1 / -1; }
.address-find { display: grid; gap: 8px; margin-top: 14px; justify-items: start; }
.address-find .field, .address-find .hits { width: 100%; }
.lookup { position: relative; display: flex; gap: 8px; align-items: center; }
.lookup input { flex: 1; width: auto; min-width: 0; }
.lookup .primary { white-space: nowrap; }
a.primary { text-decoration: none; cursor: pointer; }
#venueFindNote { margin: 8px 0 0; }
.ask-card { width: min(480px, 100%); margin: 12vh auto 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.consent input { width: auto; margin-top: 3px; }
.ask-body { padding: 22px 22px 18px; display: grid; gap: 12px; }
.ask-body h2, .ask-body p { margin: 0; }
.ask-body .savebar { margin-top: 4px; }
.ask-body .error { margin: 0; }
#venueHits.popup { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; margin: 0; max-height: 280px; overflow: auto; box-shadow: 0 10px 28px rgba(20, 32, 51, .16); }
#venueHits button { display: grid; gap: 2px; }
#venueHits button span { color: var(--muted); font-size: 13px; }
#venueHits button b { font-size: 15px; }
.hits { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.hits button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.hits button:first-child { border-top: 0; }
.hits button:hover { background: #f4f7fb; }
.days { display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: 110px 170px 170px; gap: 8px 12px; align-items: center; }
h3 { margin-top: 22px; font-size: 16px; }
.savebar { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.saved { color: #1E6B45; font-size: 14px; }
@media (max-width: 760px) {
  .grid, .day, #lists { grid-template-columns: 1fr; }
  .listcard { overflow-x: auto; }
  .board .when { white-space: normal; }
  .listhead, .player, .game { flex-wrap: wrap; }
  .game { grid-template-columns: 1fr; }
  .day-head { display: none; }
  #settings .savebar { margin: 18px -16px -16px; padding: 12px 16px; }
  #createSheet { padding: 8px; }
  #createDialog .savebar { margin: 18px -16px 0; padding: 12px 16px; }
}
