/* Waffle House website, brief 8: phone first, the bottom tab bar, every setting, live overview (after style2.css). */
:root { --tabbar-h: 66px; --safe-b: env(safe-area-inset-bottom, 0px); }
.small { font-size: 13.5px; }
.minw0 { min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.full { width: 100%; justify-content: center; }
.tight { gap: 6px; } .mt4 { margin-top: 6px; }
.span4 { grid-column: 1 / -1; }
.showsm { display: none !important; }
.scrollrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scrollrow::-webkit-scrollbar { display: none; }
.noscroll { overflow: hidden; }
:focus-visible { outline: 3px solid var(--honey-hi); outline-offset: 2px; }
button:focus:not(:focus-visible) { outline: none; }

/* the top bar and the phone's tab bar */
.top .nav a.on { box-shadow: 0 2px 0 #8a5d22; }
.iconbtn { padding: 8px 12px; }
.tabbar { display: none; }
.netbar { position: sticky; top: 59px; z-index: 19; text-align: center; padding: 8px 14px; font-weight: 800; font-size: 14px; background: #3a1f17; color: #ffd2c6; border-bottom: 1px solid #6b3226; }
#who .pillbtn svg { width: 18px; height: 18px; }

/* "heard from" pills */
.hpill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card2); color: var(--muted); white-space: nowrap; }
.hpill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hpill.ok { color: var(--ok); border-color: rgba(143,207,122,.4); background: rgba(143,207,122,.08); }
.hpill.honey { color: var(--honey-hi); border-color: rgba(214,164,76,.45); background: rgba(214,164,76,.1); }
.hpill.warn { color: #f0a35a; border-color: rgba(240,163,90,.5); background: rgba(240,163,90,.1); }
.hpill.bad { color: var(--bad); border-color: rgba(236,122,98,.45); background: rgba(236,122,98,.1); }
.reached { margin: -6px 0 14px; }

/* her head */
.charhead .head { align-items: center; }
.charhead .char .av { width: 64px; height: 74px; }
.charhead h1 { font-size: 30px; }
.expwrap { min-width: 220px; }
.expwrap .expbar { height: 10px; }
.lbl { align-self: flex-start; }
.tabs a svg { flex: none; }

/* the zoom buttons on maps */
.zbtns { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.zbtns button { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 20px; background: rgba(34,25,18,.9); color: var(--butter); box-shadow: 0 0 0 1px var(--line2) inset, 0 4px 12px rgba(0,0,0,.4); }
.touchmap svg { touch-action: none; }
.sidegrid { grid-template-columns: minmax(0, 1fr) 340px; }
.pickgrid { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); }

/* sheets (a box on a computer, sliding up from the bottom on a phone) */
.sheethead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheetbtns { justify-content: flex-end; }
.optlist { display: grid; gap: 8px; }
.opt { padding: 12px 14px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--honey); }
.namelist { display: block; margin: 8px 0; color: var(--muted); font-size: 14px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet { animation: up .16s ease-out; }

/* who: chips to pick characters */
.chipbtn { background: var(--bg2); color: var(--muted); box-shadow: 0 0 0 1px var(--line2) inset; padding: 8px 15px; font-size: 14px; font-weight: 800; white-space: nowrap; flex: none; }
.chipbtn:hover { color: var(--cream); background: var(--card2); filter: none; }
.chipbtn.on { background: linear-gradient(180deg, var(--honey-hi), var(--honey)); color: #2a1a0c; box-shadow: 0 2px 0 #8a5d22; }
.chipbtn.chr i { width: 9px; height: 9px; border-radius: 50%; background: var(--cc); }
.chipbtn.inc { color: var(--cream); box-shadow: 0 0 0 1px var(--honey) inset; }
.whocard { padding: 14px 16px; }
.whohead { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.whobar { display: flex; gap: 8px; }
.whobar.wrap { flex-wrap: wrap; margin-top: 10px; }
.wholist { display: grid; gap: 6px; max-height: 50vh; overflow: auto; margin-top: 12px; }
.whorow { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; }
.whorow:has(input:checked) { border-color: var(--honey); }
.whorow .faint { margin-left: auto; font-size: 13px; text-align: right; }
.reslist { display: grid; gap: 6px; margin-top: 10px; }
.resrow { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }

/* settings */
.settabs { margin-bottom: 14px; padding: 2px; }
.setgroups { columns: 2 420px; column-gap: 16px; }
.setcard { break-inside: avoid; margin-bottom: 16px; display: block; }
.setrow .ctl { flex: none; max-width: 55%; }
.setrow select { max-width: 100%; }
.setrow.wide { flex-wrap: wrap; } .setrow.wide .ctl { max-width: none; width: 100%; } .setrow.wide input { width: 100%; }
.setnow { font-size: 13px; color: var(--faint); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.setnow b { color: var(--cream); display: inline !important; font-weight: 800; }
.setrow.older .t b { color: var(--muted); }
.setrow.older .badge { white-space: normal; max-width: 200px; text-align: center; }
.setsub { gap: 10px; }
.tog { padding: 0; box-shadow: none; display: inline-block; }
.tog:hover { filter: none; }
.savedock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + var(--safe-b)); display: none; justify-content: center; pointer-events: none; }
.savedock.show { display: flex; }
.savein { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 18px; border-radius: 999px; background: #33251b; border: 1px solid var(--honey); box-shadow: 0 12px 32px rgba(0,0,0,.55); max-width: 100%; }

/* charts and her week */
.mchart { width: 100%; height: auto; display: block; }
.mchart text { font-family: "WH Text", sans-serif; }
.chartcard .ctip { min-height: 1.2em; text-align: right; }
.weeksum { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weeksum > div, .tgrid > div, .lnums > div { display: grid; gap: 1px; }
.weeksum span, .tgrid span, .lnums span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.weeksum b { font-family: "WH Display", Georgia, serif; font-size: 24px; color: var(--butter); font-variant-numeric: tabular-nums; }
.weeksum .warn b, .tgrid .warn b { color: var(--bad); }
.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; padding: 6px 0 4px; }
.tgrid b { font-size: 19px; color: var(--cream); }
.tblwrap { overflow-x: auto; }

/* Live */
.livegrid .card.stat .v { font-size: 32px; }
.alarmcard { border-color: rgba(236,122,98,.5); background: linear-gradient(180deg, #3a221a, #2c1a14); }
.alarm { color: #ffc2b4; font-weight: 800; }
.alarm::before { content: "! "; color: var(--bad); }
.sumrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sumrow .card { padding: 14px 16px; }
.sumrow .v { font-size: 28px; }
.warnstat { border-color: rgba(236,122,98,.5); }
.warnstat .v { color: #ffb4a3; }
.livecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lcard { display: grid; gap: 8px; cursor: pointer; border-left: 4px solid var(--cc, transparent); padding: 14px 16px; transition: border-color .12s, transform .12s; }
.lcard:hover { border-color: var(--honey); transform: translateY(-1px); }
.lcard.dim .doing2, .lcard.dim .lnums { opacity: .6; }
.lcard .nm { font-family: "WH Display", Georgia, serif; font-weight: 800; color: var(--butter); font-size: 19px; }
.lcard .sub { color: var(--faint); font-size: 13px; }
.doing2 { font-size: 14.5px; line-height: 1.35; }
.lnums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.lnums b { font-size: 15px; color: var(--cream); font-variant-numeric: tabular-nums; }
.stt { font-size: 13.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }

/* Control */
.bigctls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.bigctl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 16px 16px; border-radius: 14px; text-align: left;
  background: linear-gradient(180deg, var(--card2), var(--card)); color: var(--cream); box-shadow: 0 0 0 1px var(--line2) inset, var(--shadow); font-size: 15.5px; }
.bigctl:hover { color: var(--butter); filter: brightness(1.08); }
.bigctl .ic { font-size: 20px; color: var(--honey-hi); width: 24px; text-align: center; }
.bigctl small { font-size: 12px; color: var(--faint); font-weight: 800; }
.bigctl.big { box-shadow: 0 0 0 1px #6b3226 inset, var(--shadow); } .bigctl.big .ic { color: var(--bad); }

/* More */
.morelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.morerow { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--cream); }
.morerow:hover { border-color: var(--honey); color: var(--cream); }
.morerow > span:nth-child(2) { display: grid; flex: 1; } .morerow .muted { font-size: 14px; }
.mic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(214,164,76,.14); color: var(--honey-hi); flex: none; }
.mic svg { width: 24px; height: 24px; }
.chev { font-size: 26px; color: var(--faint); }
.installcard { border-style: dashed; }
.ttscen select { max-width: 220px; }

/* the list page's filters (phone: folded under one button) */
.srow { display: flex; gap: 8px; flex: 1 1 260px; }
.srow input { flex: 1; min-width: 0; }
.moref { display: contents; }
.selhead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------------- a phone ---------------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .top { padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); gap: 10px; flex-wrap: nowrap; }
  .brand { font-size: 18px; } .brand svg { width: 30px; height: 30px; }
  .hidesm { display: none !important; }
  .showsm { display: inline-flex !important; }
  .netbar { top: 54px; }
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
  .foot { padding-bottom: 20px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: linear-gradient(180deg, rgba(34,25,18,.97), rgba(23,17,13,.99)); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 11.5px; font-weight: 800; position: relative; }
  .tabbar a .ti svg { width: 25px; height: 25px; display: block; }
  .tabbar a.on { color: var(--honey-hi); }
  .tabbar a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--honey-hi); }
  .savedock { bottom: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: 10px; }
  .savein { width: 100%; justify-content: space-between; border-radius: 16px; }
  .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); max-width: calc(100% - 32px); text-align: center; border-radius: 16px; }
  .modal { place-items: end center; padding: 0; }
  .modal .mbox { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + var(--safe-b)); }
  .sheetbtns { position: sticky; bottom: -18px; background: linear-gradient(180deg, transparent, #281d15 30%); padding-top: 12px; }
  .sheetbtns button { flex: 1; justify-content: center; }
  .sumrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sumrow > :last-child { grid-column: 1 / -1; }
  .weeksum { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .weeksum b { font-size: 20px; }
  .setgroups { columns: 1; }
  .setrow { flex-wrap: wrap; } .setrow .ctl { max-width: 100%; margin-left: auto; }
  .setrow select { max-width: 70vw; }
  .sidegrid, .pickgrid { grid-template-columns: 1fr; }
  .charhead h1 { font-size: 25px; }
  .charhead .head { gap: 12px; }
  .charhead .head > .spacer { display: none; }
  .expwrap { width: 100%; min-width: 0; }
  .tabs { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); border-radius: 0; border-left: 0; border-right: 0; padding: 6px 10px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .moref { display: none; }
  .toolbar.open .moref { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .toolbar.open .moref > * { flex: 1 1 45%; }
  .selbar .selhead { width: 100%; justify-content: space-between; }
  .bigctls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bigctl { padding: 15px 12px; font-size: 14.5px; gap: 8px; }
  .morelist { grid-template-columns: 1fr; }
  .head { margin-bottom: 14px; }
  .livecards { grid-template-columns: 1fr; }
  .hero { padding-top: 10px; gap: 22px; } .hero h1 { font-size: 36px; }
  .steps { grid-template-columns: 1fr; }
  .codebox input { width: 100%; font-size: 28px; }
  .tt .palette { flex-wrap: nowrap; overflow-x: auto; }
  .tt .tok { flex: none; }
  .ttscen { width: 100%; } .ttscen select { flex: 1; max-width: none; }
  .mapwrap svg { max-height: 62vh; }
  .facts { margin-top: 0; }
}
@media (max-width: 400px) {
  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lnums b { font-size: 14px; }
}
/* fingers: everything one can press is at least 44 px */
@media (pointer: coarse) {
  button, .btn { min-height: 44px; }
  button.small, .btn.small, .chipbtn { min-height: 42px; }
  button.mini { min-height: 34px; min-width: 34px; justify-content: center; }
  .tog { width: 58px; height: 34px; min-height: 0; } .tog::after { width: 26px; height: 26px; } .tog.on::after { left: 27px; }
  .stepper button { min-width: 46px; min-height: 44px; justify-content: center; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  input[type=text], input[type=search], select, textarea, input[type=time], input[type=date] { min-height: 46px; font-size: 16px; }
  .seg button { min-height: 40px; }
  .crow .ck { padding: 6px; margin: -6px; }
  .tabs a { padding: 10px 16px; }
  .sw { width: 38px; height: 38px; }
}
/* the list's rows: small pills that wrap instead of running over */
.crow .hpill { white-space: normal; max-width: 100%; margin-top: 3px; line-height: 1.25; }
.crow .lc { display: flex; flex-wrap: wrap; gap: 4px; }
/* settings: find, folded long help */
.setfind { margin-bottom: 12px; }
.setfind input { width: 100%; }
.switch .t span.help.fold { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.switch .t span.help.fold.open { display: block; -webkit-line-clamp: unset; }
.switch .t span.f7 { display: none; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.switch .t span.help.open + span.f7 { display: block; }
.setrow .t { min-width: 0; }
.switch .t .setnow span { font-size: 12.5px; }
.switch .t .badge.honey { color: var(--honey-hi); } .switch .t .badge.ok { color: var(--ok); } .switch .t .badge.bad { color: var(--bad); }
@media (max-width: 820px) { .whobar.wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .whobar.wrap::-webkit-scrollbar { display: none; } }
.livegrid { align-items: start; grid-auto-flow: row dense; }
.livegrid .mapcard { grid-row: span 2; }
.livegrid .stat { align-self: stretch; }
@media (max-width: 980px) { .livegrid .mapcard { grid-row: auto; } }
@media (max-width: 980px) { .livegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .livegrid > .span2, .livegrid > .span4 { grid-column: 1 / -1; } .livegrid .stat .v { font-size: 26px; } }
.tt > div, .grid > div, .sidegrid > div { min-width: 0; }
@media (max-width: 820px) {
  .kgrid .switch { flex-wrap: wrap; } .kgrid .switch .t { flex-basis: 60%; }
  .kgrid .switch input[type=time] { width: 128px; }
  .krow { flex-wrap: wrap; } .krow > .faint:last-child { white-space: normal; }
  .parties { grid-template-columns: 1fr; }
  .pool .slots { grid-template-columns: 1fr; }
}
@media (max-width: 820px) { body:not(.signed) .tabbar { display: none; } body:not(.signed) { padding-bottom: var(--safe-b); } }
@media (max-width: 820px) { .wrow { display: grid; grid-template-columns: 70px 1fr; } .wrow .badge, .wrow button { grid-column: 2; justify-self: start; } }
.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.multi .chipbtn { padding: 6px 12px; font-size: 13px; }
