/* Waffle House website, brief 4: many characters, controls, real schedules, KPQ (loaded after style.css). */
.dot.rest { background: var(--sky); } .dot.off { background: #5d4a3a; }
.nowrap { flex-wrap: nowrap; white-space: nowrap; }
.lvbox { width: 58px; padding: 7px 9px !important; text-align: center; }
.nick { font: 600 18px "WH Text", sans-serif; color: var(--muted); }
.grp { color: var(--honey-hi); font-weight: 800; }
button.mini { padding: 1px 7px; font-size: 12px; background: transparent; color: var(--muted); box-shadow: 0 0 0 1px var(--line2) inset; }
button.mini:hover { color: var(--butter); }
button.dangerfill { background: linear-gradient(180deg, #ef8a72, #c4432b); color: #fff; box-shadow: 0 2px 0 #7a2a1a; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1 1 200px; min-width: 160px; }
.selbar { position: sticky; top: 62px; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 14px; margin-bottom: 12px; background: linear-gradient(180deg, #33251b, #2a1e16); }
.selbar .ck { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.selbar .selcount { min-width: 150px; }
.ctls { display: flex; flex-wrap: wrap; gap: 6px; }
.ctl .ic { width: 16px; display: inline-block; text-align: center; color: var(--honey-hi); }
.ctl.big { box-shadow: 0 0 0 1px #6b3226 inset; }
.ctl.big .ic { color: var(--bad); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--honey); cursor: pointer; }
.clist { display: grid; gap: 6px; }
.crow { display: grid; grid-template-columns: 30px minmax(170px, 1.4fr) 92px minmax(120px, 1fr) minmax(150px, 1.4fr) 108px 84px minmax(130px, 1fr) minmax(120px, 1fr); gap: 10px; align-items: center;
  padding: 9px 12px 9px 10px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cc, transparent); font-size: 14px; }
.crow.head { background: transparent; border-color: transparent; color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding-top: 0; padding-bottom: 0; }
.crow.sel { border-color: var(--honey); box-shadow: 0 0 0 1px var(--honey) inset; }
.crow.dim .who, .crow.dim .where, .crow.dim .doing { opacity: .62; }
.crow .who { display: flex; gap: 10px; align-items: center; cursor: pointer; min-width: 0; }
.crow .who .nm { font-weight: 800; color: var(--butter); font-size: 15.5px; }
.crow .sub { color: var(--faint); font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.crow .doing > div:first-child, .crow .where > div:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .pots { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; color: var(--muted); }
.crow .pots span:first-child { color: #f19a8a; } .crow .pots span:last-child { color: #9cc7e4; }
.av.sm { width: 38px; height: 44px; border-radius: 9px; background: radial-gradient(circle at 50% 70%, #3b2a1c, #241a12); display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
.expbar.sm { height: 5px; margin: 3px 0 1px; }
.badge.cmd { display: inline-block; font-weight: 700; white-space: normal; line-height: 1.3; padding: 3px 9px; }
.badge.cmd i { font-style: normal; font-weight: 600; opacity: .85; }
.cmdlist { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.cmdrow { display: flex; gap: 10px; align-items: center; }
.cmdrow > .faint { min-width: 74px; font-size: 12.5px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 16px; }
.facts > div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; }
.facts .k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.facts b { color: var(--cream); font-size: 14.5px; }
.ctlcard .ctls { gap: 8px; }
.modal { position: fixed; inset: 0; background: rgba(10,7,5,.66); display: grid; place-items: center; z-index: 60; padding: 16px; backdrop-filter: blur(2px); }
.mbox { width: min(520px, 100%); max-height: 90vh; overflow: auto; }
.fl { display: grid; gap: 5px; font-weight: 800; color: var(--muted); font-size: 14px; }
.fl input, .fl textarea { width: 100%; }
.radio { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; padding: 0; border-radius: 50%; box-shadow: 0 0 0 2px #0004 inset; justify-content: center; }
.sw.on { box-shadow: 0 0 0 3px var(--butter); }
.sw.none { background: var(--bg2); color: var(--muted); }
/* the week of windows */
.weekgrid { display: grid; grid-template-columns: 46px 1fr; gap: 7px 10px; align-items: center; }
.weekgrid .wd { font-weight: 800; color: var(--muted); cursor: pointer; padding: 4px 0; border-radius: 8px; text-align: center; }
.weekgrid .wd.on { background: var(--honey); color: #2a1a0c; }
.wtrack { position: relative; height: 38px; border-radius: 10px; background: repeating-linear-gradient(90deg, #1b140f 0, #1b140f calc(100% / 24 - 1px), #2a1f17 calc(100% / 24 - 1px), #2a1f17 calc(100% / 24)); border: 1px solid var(--line2); cursor: crosshair; touch-action: none; user-select: none; }
.win { position: absolute; top: 3px; bottom: 3px; border-radius: 8px; background: linear-gradient(180deg, #e2b25c, #b9862f); color: #2a1a0c; font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; cursor: grab; box-shadow: 0 2px 6px #0006; }
.win .eg { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; background: rgba(42,26,12,.18); }
.win .eg.l { left: 0; } .win .eg.r { right: 0; }
.wrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--line); }
input[type=time], input[type=date] { font: 600 15px "WH Text", sans-serif; color: var(--cream); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 7px 9px; color-scheme: dark; }
.savebar { border-top: 1px solid var(--line); padding-top: 16px; }
/* KPQ */
.kgrid { grid-template-columns: minmax(280px, 380px) 1fr; }
.klist { display: grid; gap: 4px; max-height: 620px; overflow: auto; }
.krow { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.krow.dim { opacity: .5; cursor: default; }
.krow .spacer { flex: 1; }
.krow > .faint { white-space: nowrap; }
.cdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 10px 0; }
.party { background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; transition: border-color .1s; }
.party.over { border-color: var(--honey); box-shadow: 0 0 0 2px rgba(214,164,76,.3); }
.pool { margin-top: 6px; border-style: dashed; }
.slots { display: grid; gap: 6px; margin-top: 8px; }
.pool .slots { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.slot { border: 1px dashed var(--line2); border-radius: 9px; padding: 9px; color: var(--faint); font-size: 13px; text-align: center; }
.pchip { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 9px; background: var(--card2); border: 1px solid var(--line2); border-left: 4px solid var(--cc); cursor: grab; font-size: 13.5px; flex-wrap: wrap; }
.pchip.held { border-color: var(--honey); box-shadow: 0 0 0 2px rgba(214,164,76,.4); }
.pchip .crown { color: var(--honey-hi); }
.pchip .mini { margin-left: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; }
.tbl td { padding: 8px; border-top: 1px dashed var(--line); }

@media (max-width: 1180px) {
  .crow { grid-template-columns: 30px minmax(160px, 1.3fr) 86px minmax(140px, 1.4fr) 104px minmax(120px, 1fr) minmax(110px, 1fr); }
  .crow .where, .crow .pots { display: none; }
  .crow.head > span:nth-child(4), .crow.head > span:nth-child(7) { display: none; }
}
@media (max-width: 980px) {
  .kgrid { grid-template-columns: 1fr; }
  .selbar { top: 0; position: relative; }
}
@media (max-width: 720px) {
  h1 { font-size: 27px; }
  .top { gap: 8px; } .nav { overflow-x: auto; max-width: 100%; } .nav a { padding: 6px 10px; font-size: 14px; }
  .crow.head { display: none; }
  .crow { grid-template-columns: 26px 1fr auto; grid-template-areas: "ck who lv" "ck doing doing" "ck st money" "ck lc lc"; gap: 4px 10px; }
  .crow .ck { grid-area: ck; align-self: start; padding-top: 10px; } .crow .who { grid-area: who; } .crow .lv { grid-area: lv; text-align: right; }
  .crow .doing { grid-area: doing; } .crow .st { grid-area: st; } .crow .money { grid-area: money; text-align: right; } .crow .lc { grid-area: lc; }
  .crow .lc:empty { display: none; }
  .selbar .ctls { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .selbar .ctl { flex: none; }
  .weekgrid { grid-template-columns: 38px 1fr; }
  .wtrack { height: 34px; } .win span { font-size: 10.5px; }
  .facts > div { flex: 1 1 40%; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; border-radius: 14px; } .tabs a { flex: none; }
  .tbl { font-size: 12.5px; }
  .toolbar > * { flex: 1 1 45%; }
  .head .switch { width: 100%; }
}
