/* ============ ONE Desk design tokens ============ */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #e4e7ec;
  --divider: #eef0f3;
  --divider-soft: #f2f4f7;
  --input-border: #d0d5dd;
  --text: #101828;
  --text-2: #344054;
  --text-3: #475467;
  --text-meta: #5d6679;
  --icon-muted: #667085;
  --chevron: #98a2b3;
  --hover: #f2f4f7;
  --row-hover: #f9fafb;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eef2ff;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --notify-dot: #d92d20;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --ink: #101828;
  --st-open: #2e90fa;
  --st-progress: #7a5af8;
  --st-hold: #f79009;
  --st-closed: #17b26a;
  --st-overdue: #f04438;
  --st-neutral: #98a2b3;
  --st-open-icon: #1570ef;
  --st-progress-icon: #6938ef;
  --st-hold-icon: #dc6803;
  --st-closed-icon: #079455;
  --st-overdue-icon: #d92d20;
  --pr-critical: #b42318;
  --pr-critical-bg: #fef3f2;
  --pr-high: #b93815;
  --pr-high-bg: #fef6ee;
  --pr-medium: #b54708;
  --pr-medium-bg: #fffaeb;
  --pr-low: #475467;
  --pr-low-bg: #f2f4f7;
  --radius-card: 14px;
  --radius-control: 10px;
  --radius-nav: 8px;
  --radius-pill: 999px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  /* names the page styles written before the tokens still use, mapped onto the tokens (pages are restyled in later steps) */
  --card: var(--surface);
  --line: var(--border);
  --muted: var(--text-meta);
  --brand: var(--accent);
  --brand-d: var(--accent-hover);
  --brand-2: var(--accent-soft);
  --navy: var(--ink);
  --r: var(--radius-card);
  --shadow: none;
  --amber: #f29a1f;
  --green: #1a9a56;
  --ok: #079455;
  --ok-2: #ecfdf3;
  --warn: var(--danger);
  --warn-2: var(--danger-soft);
  --hold: #b54708;
  --hold-2: #fffaeb;
  --pink: #c11574;
  --pink-2: #fdf2fa;
  --blue: #1570ef;
  --blue-2: #eff8ff;
}
@media (max-width: 767px) {
  :root {
    --radius-card: 16px;
    --radius-control: 12px;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 var(--sans);
}
a {
  color: var(--brand);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 4px 0;
  font-weight: 700;
  letter-spacing: -0.4px;
}
h2 {
  font-size: 17px;
  margin: 22px 0 10px;
  font-weight: 700;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12.5px;
}
.mono {
  font-family: var(--mono);
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.1s,
    background 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(30, 75, 143, 0.3);
}
.btn.primary:hover {
  background: var(--brand-d);
}
.btn.dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn.big {
  min-height: 52px;
  font-size: 16px;
  width: 100%;
}
.btn.danger {
  color: var(--warn);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn.soft {
  background: var(--brand-2);
  color: var(--brand);
  border-color: transparent;
}
.btn.sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
.iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  position: relative;
}

/* cards & chips */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}
.chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.c0 {
  background: var(--brand-2);
  color: var(--brand);
}
.c1 {
  background: var(--hold-2);
  color: var(--hold);
}
.c2 {
  background: var(--ok-2);
  color: var(--ok);
}
.c3 {
  background: var(--pink-2);
  color: var(--pink);
}
.c4 {
  background: var(--blue-2);
  color: var(--blue);
}
.c5 {
  background: var(--warn-2);
  color: var(--warn);
}
.plate {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--brand-2);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
}
.s-open {
  background: var(--ok-2);
  color: var(--ok);
}
.s-hold {
  background: var(--hold-2);
  color: var(--hold);
}
.s-closed {
  background: #eef0f4;
  color: #6b7080;
}
.s-rejected {
  background: var(--warn-2);
  color: var(--warn);
}
.p-high {
  background: var(--warn-2);
  color: var(--warn);
}
.p-medium {
  background: var(--hold-2);
  color: var(--hold);
}
.p-low {
  background: var(--ok-2);
  color: var(--ok);
}
.p-int {
  background: var(--pink-2);
  color: var(--pink);
}

/* forms */
label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  margin: 14px 0 6px;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9fd;
  outline: none;
  transition:
    border 0.15s,
    background 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  background: #fff;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
  min-width: 150px;
}
input[type='checkbox'] {
  width: auto;
  min-height: 0;
  accent-color: var(--brand);
}
.hp {
  position: absolute;
  left: -9999px;
}
.err {
  color: var(--warn);
  font-size: 13.5px;
}
.files {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.files .btn {
  flex: 1;
  margin: 0;
  min-height: 56px;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  border-style: dashed;
  background: #f8f9fd;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: 16px;
  padding: 0 14px;
  box-shadow: var(--shadow);
  flex: 1;
}
.search input {
  border: 0;
  background: transparent;
  padding-left: 0;
}
.search svg {
  color: var(--muted);
}

/* tabs */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  border: 0;
  background: var(--card);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.tab.on {
  background: var(--brand);
  color: #fff;
}

/* public */
.hero .logo {
  display: block;
  height: 84px;
  width: auto;
  max-width: 100%;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 34px;
}
.hero h1 span {
  color: var(--green);
}
.svc {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.svc:hover {
  transform: translateY(-2px);
}
.svc .t {
  flex: 1;
  min-width: 0;
}
.svc b {
  display: block;
  font-size: 15px;
}
.svc .chev {
  color: var(--muted);
}
.head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.head h1 {
  font-size: 22px;
  flex: 1;
  margin: 0;
}
.stub {
  background: var(--card);
  border-radius: 24px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: up 0.3s ease-out;
  position: relative;
}
.stub::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 62px;
  border-top: 2px dashed var(--line);
}
.stub .no {
  font: 700 30px var(--mono);
  letter-spacing: 0.5px;
  color: var(--brand);
}
.stub.left {
  text-align: left;
}
.stub.left::after {
  display: none;
}
@keyframes up {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.stamps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stamps li {
  position: relative;
  padding: 0 0 18px 30px;
  margin-left: 10px;
  border-left: 2px solid var(--line);
}
.stamps li:last-child {
  border-color: transparent;
}
.stamps li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.stamps li.faint {
  opacity: 0.45;
}
.stamps li.faint::before {
  border-color: var(--line);
}
.stamps .when {
  font-size: 12px;
  color: var(--muted);
}
.thumbs img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 8px 0 0;
  border: 1px solid var(--line);
  background: var(--bg);
}
.thumbs .fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 8px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 11px 18px;
  border-radius: 14px;
  display: none;
  z-index: 20;
  max-width: 90vw;
  box-shadow: var(--shadow);
}

/* ring */
.ring {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ring b {
  position: absolute;
  font-size: 20px;
  font-weight: 700;
}

/* console shell */
.top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  flex-wrap: wrap;
}
.top .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-right: 14px;
}
.top .logo img {
  height: 34px;
  width: auto;
}
.top nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.top nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}
.top nav a.on {
  color: var(--brand);
  background: var(--brand-2);
}
.top .sp {
  flex: 1;
}
.top select {
  width: auto;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 10px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d63b3, #1e4b8f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.cwrap {
  padding: 20px;
  max-width: 1240px;
  margin: 0 auto;
}
.bnav {
  display: none;
}
@media (max-width: 760px) {
  .top nav,
  .top .who {
    display: none;
  }
  .top {
    padding: 12px 16px;
  }
  .cwrap {
    padding: 16px 16px 100px;
  }
  .bnav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    align-items: center;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    z-index: 10;
  }
  .bnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    min-width: 56px;
  }
  .bnav a.on {
    color: var(--brand);
  }
  .bnav .fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    margin-top: -26px;
    box-shadow: 0 8px 20px rgba(30, 75, 143, 0.45);
  }
}

/* dashboard */
.hello {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.hello h1 {
  font-size: 26px;
}
.dash {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 14px;
  margin: 14px 0;
}
@media (max-width: 860px) {
  .dash {
    grid-template-columns: 1fr;
  }
}
.progress {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--brand-2);
  border: 0;
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.stat .chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.stat b {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}
.stat span {
  font-size: 12.5px;
  color: var(--muted);
}
.sechead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
}
.sechead h2 {
  margin: 0;
}
.sechead a {
  font-size: 13px;
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: center;
}
.filters select {
  width: auto;
  min-width: 160px;
  background: var(--card);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.tlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trow {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s;
}
.trow:hover {
  transform: translateX(2px);
}
.trow .tm {
  flex: 1;
  min-width: 0;
}
.trow b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trow .sub {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--ok);
  flex-shrink: 0;
}
.dot.hold {
  border-color: var(--hold);
}
.dot.closed {
  border-color: #c4c7d4;
  background: #c4c7d4;
}
.dot.rejected {
  border-color: var(--warn);
  background: var(--warn-2);
}
.trow.over {
  border-color: #f8c9c9;
}
.trow.over .dot {
  border-color: var(--warn);
}
.trow.over .due {
  color: var(--warn);
  font-weight: 700;
}
.trow.dim {
  opacity: 0.55;
}
.empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--muted);
}

/* profile */
.profile {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 26px 20px 0;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile .avatar {
  width: 76px;
  height: 76px;
  font-size: 26px;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.25);
}
.profile .muted {
  color: #a9acc8;
}
.pstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px -20px 0;
  background: rgba(255, 255, 255, 0.06);
}
.pstats div {
  padding: 14px 4px;
}
.pstats b {
  display: block;
  font-size: 20px;
}
.pstats span {
  font-size: 12px;
  color: #a9acc8;
}
.menu {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin: 14px 0;
  overflow: hidden;
}
.menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.menu a:last-child {
  border: 0;
}
.menu a .chev {
  margin-left: auto;
  color: var(--muted);
}
.menu a svg:first-child {
  color: var(--muted);
}

/* tables & workspace */
.tblwrap {
  overflow-x: auto;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #fafbfe;
}
.card table th {
  background: transparent;
}
tr.click {
  cursor: pointer;
}
tr.click:hover {
  background: #fafbfe;
}
tr.over td {
  color: var(--warn);
}
tr.dim {
  opacity: 0.5;
}
.ws {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 16px;
}
@media (max-width: 1060px) {
  .ws {
    grid-template-columns: 1fr;
  }
}
.ws .card:first-child {
  margin-top: 0;
}
.ev {
  position: relative;
  border-left: 2px solid var(--line);
  padding: 0 0 16px 18px;
  margin-left: 6px;
}
.ev::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.ev.int::before {
  border-color: var(--hold);
}
.ev .meta {
  font-size: 12px;
  color: var(--muted);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.kpi b {
  font-size: 28px;
  font-weight: 700;
  display: block;
}
.kpi span {
  font-size: 12.5px;
  color: var(--muted);
}
.kpi.warn b {
  color: var(--warn);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 760px) {
  .two {
    grid-template-columns: 1fr;
  }
}
.bar {
  height: 8px;
  background: var(--brand);
  border-radius: 99px;
}
.bartrack {
  background: var(--brand-2);
  border-radius: 99px;
}
dialog {
  background: var(--card);
  border: 0;
  border-radius: 24px;
  max-width: 540px;
  width: 92vw;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(30, 30, 80, 0.25);
}
dialog h2 {
  margin-top: 0;
}
dialog::backdrop {
  background: rgba(28, 29, 46, 0.45);
  backdrop-filter: blur(2px);
}
@media (max-width: 600px) {
  h1 {
    font-size: 24px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .stub .no {
    font-size: 24px;
  }
}
.top {
  flex-wrap: nowrap;
}
.top nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.top nav a {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .top .who {
    display: none;
  }
  .top nav a {
    padding: 8px 9px;
  }
}
.brow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.brow > div {
  flex: 1;
}
a.svc {
  color: var(--ink);
}
.iconpick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.iconpick label {
  margin: 0;
  cursor: pointer;
}
.iconpick input {
  display: none;
}
.iconpick input:checked + .chip {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
}
.svc .btn {
  flex-shrink: 0;
}
div.svc:hover {
  transform: none;
}
.p-critical {
  background: #3b0d12;
  color: #fff;
}
.slabox {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--brand-2);
  color: var(--brand);
  margin-top: 6px;
}
.slabox b {
  font-size: 14px;
}
.slabox .small {
  color: var(--muted);
}
.slabox.hold {
  background: var(--hold-2);
  color: var(--hold);
}
.slabox.late {
  background: var(--warn-2);
  color: var(--warn);
}
.rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-2);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 32px !important;
}
.uact {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.uact .btn {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 13px;
}
@media (max-width: 760px) {
  .trow {
    flex-wrap: wrap;
  }
  .uact {
    width: 100%;
    justify-content: flex-start;
    padding-left: 52px;
  }
}
.fld {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0;
  background: #fbfbfe;
}
.fhead {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fhead input {
  flex: 2;
  min-width: 0;
}
.fhead select {
  flex: 1;
  min-width: 170px;
}
.fnum {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-2);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 26px;
}
.fld > textarea,
.fld > input {
  margin-top: 8px;
  min-height: 44px;
  font-size: 14px;
}
.fld > textarea {
  min-height: 86px;
}
.fact {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.fact .sp {
  flex: 1;
}
.fact .btn {
  min-height: 34px;
  padding: 4px 12px;
}
.switch {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
}
.preview {
  margin-top: 14px;
  padding: 4px 14px 14px;
  border: 2px dashed var(--line);
  border-radius: 16px;
}
.preview :disabled {
  opacity: 1;
  cursor: default;
}
@media (max-width: 600px) {
  .fhead {
    flex-wrap: wrap;
  }
  .fhead select {
    flex-basis: 100%;
    margin-left: 34px;
  }
}
.codebox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #f8f9fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 8px 12px;
  margin: 8px 0;
}
.codebox pre {
  flex: 1;
  margin: 0;
  font: 12.5px/1.5 var(--mono);
  white-space: pre-wrap;
  word-break: break-all;
  min-width: 0;
}
.codebox .btn {
  min-height: 34px;
  padding: 4px 12px;
  flex-shrink: 0;
}
code {
  font: 12.5px var(--mono);
  background: var(--brand-2);
  color: var(--brand);
  padding: 1px 6px;
  border-radius: 6px;
}
.top .logo {
  white-space: nowrap;
  flex-shrink: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-btn {
  border: 1px solid var(--line);
  background: var(--brand-2);
  color: var(--brand);
  border-radius: 8px;
  padding: 4px 9px;
  font: 500 12px var(--mono);
  cursor: pointer;
}
.chip-btn:hover {
  border-color: var(--brand);
}
.chip-btn.alt {
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
}
/* ticket action buttons: one colour per status change, lifted */
.actbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.btn.act {
  min-height: 50px;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px -6px var(--sh, rgba(30, 55, 110, 0.25));
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.15s;
}
.btn.act:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -8px var(--sh, rgba(30, 55, 110, 0.35));
}
.btn.act:active {
  transform: translateY(0) scale(0.98);
}
.act-closed {
  background: var(--ok);
  color: #fff;
  --sh: rgba(26, 154, 86, 0.5);
}
.act-closed:hover {
  filter: brightness(1.05);
}
.act-hold {
  background: var(--hold-2);
  color: #b45309;
  border-color: #f6d9a6 !important;
  --sh: rgba(245, 158, 11, 0.4);
}
.act-rejected {
  background: var(--warn-2);
  color: var(--warn);
  border-color: #f7c6c6 !important;
  --sh: rgba(239, 68, 68, 0.35);
}
.act-open,
.act-reopen {
  background: var(--blue-2);
  color: var(--blue);
  border-color: #c7dcfb !important;
  --sh: rgba(59, 130, 246, 0.35);
}
.act-note {
  background: var(--brand-2);
  color: var(--brand);
  border-color: #cfdcf0 !important;
  --sh: rgba(30, 75, 143, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .btn.act,
  .btn.act:hover {
    transform: none;
  }
}
.chip-btn.blk {
  background: #e3f6ec;
  color: #15803d;
  font-family: var(--sans);
  font-weight: 600;
}
.fsec {
  margin: 18px 0 4px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9fc;
}
.fsec > b {
  display: block;
  font-size: 14px;
  color: var(--brand);
}
.fsec label:first-of-type {
  margin-top: 8px;
}
.ftypes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.ftype {
  margin: 0;
  cursor: pointer;
}
.ftype input {
  display: none;
}
.ftype span {
  display: block;
  height: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.ftype span b {
  display: block;
  font-size: 14px;
}
.ftype span small {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
.ftype.on span {
  border-color: var(--brand);
  background: var(--brand-2);
}
.ftype.on b {
  color: var(--brand);
}
.tls {
  margin-top: 4px;
}
.tls textarea {
  min-height: 96px;
  font-size: 13.5px;
}
/* ticket cards */
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.tcard::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--ok);
}
.tcard.st-hold::before {
  background: var(--hold);
}
.tcard.st-over::before {
  background: var(--warn);
}
.tcard.st-closed::before {
  background: #c4c7d4;
}
.tcard.st-rejected::before {
  background: #f3a3a3;
}
.tcard:hover,
.tcard:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(30, 55, 110, 0.3);
  outline: none;
}
.tc-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tc-top .sp {
  flex: 1;
}
.tc-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.tc-title {
  font-size: 16.5px;
  line-height: 1.3;
}
.tc-svc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.tc-svc .chip {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
.tc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.tc-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.tc-foot b {
  color: var(--ink);
  font-weight: 600;
}
.tcard.st-over .tc-foot,
.tcard.st-over .tc-foot b {
  color: var(--warn);
}
.tcard.st-hold .tc-foot b {
  color: #b45309;
}
.stub::after {
  display: none;
}
.p-esc {
  background: var(--warn-2);
  color: #b91c1c;
}
.tc-row.esc {
  color: var(--warn);
  font-weight: 600;
}

/* status colours: open = new (blue), in progress = active (green) */
.s-open {
  background: var(--blue-2);
  color: var(--blue);
}
.s-in_progress {
  background: var(--ok-2);
  color: var(--ok);
}
.tcard::before {
  background: var(--blue);
}
.tcard.st-in_progress::before {
  background: var(--ok);
}
.stats {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
#to {
  font-weight: 600;
}
#to option:disabled {
  color: #b0b4c8;
}

/* form layout: paired fields line up their boxes; on phones they stack */
.row {
  align-items: flex-end;
}
@media (max-width: 560px) {
  form .row:not(.hr) {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  form .row:not(.hr) > * {
    min-width: 0;
  }
}
.prow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
@media (max-width: 560px) {
  .prow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#to {
  text-overflow: ellipsis;
}
/* busy top bar (super admin): the menu takes its own row instead of being clipped */
@media (max-width: 1280px) and (min-width: 761px) {
  .top {
    flex-wrap: wrap;
  }
  .top nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }
}
/* ticket page: navy summary header, coloured section headings */
.tk {
  overflow: hidden;
}
.tk-head {
  margin: -18px -18px 14px;
  padding: 18px;
  background: linear-gradient(135deg, var(--brand), #2d63b3);
  color: #fff;
  border-bottom: 4px solid var(--amber);
}
.tk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tk-top .mono {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}
.tk-head h2 {
  margin: 12px 0 4px;
  color: #fff;
  font-size: 21px;
}
.tk-svc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
.tk-desc {
  background: var(--brand-2);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 14px;
}
.tk-fields {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px 12px;
  margin-bottom: 12px;
}
.tk-fields > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.tk-fields > div:last-child {
  border: 0;
}
.tk-fields span {
  color: var(--muted);
  flex: 0 1 50%;
}
.tk-fields b {
  flex: 1 1 50%;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cardh {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cardh .chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.cardh b {
  font-size: 15px;
}
.k-blue {
  border-top: 3px solid var(--blue);
}
.k-brand {
  border-top: 3px solid var(--brand);
}
.k-green {
  border-top: 3px solid var(--ok);
}
.k-orange {
  border-top: 3px solid var(--amber);
}
.k-pink {
  border-top: 3px solid var(--pink);
}
.tk-person {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
  background: linear-gradient(135deg, #f6ad45, var(--amber));
}
.tk-person b {
  font-size: 14.5px;
}
.tk-empty {
  background: var(--hold-2);
  color: #b45309;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  margin-top: 12px;
}
.ev:last-child::before {
  background: var(--brand);
}
.ev:last-child {
  border-left-color: transparent;
}
/* home: navy weekly-progress card, coloured stat tiles */
.progress.week {
  background: var(--brand);
  color: #fff;
  border-bottom: 4px solid var(--amber);
  box-shadow: 0 10px 26px rgba(30, 75, 143, 0.25);
}
.progress.week .ring b {
  color: #fff;
}
.progress.week b {
  font-size: 16px;
}
.progress.week .soft {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}
.stat {
  border-top: 3px solid var(--line);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.stat:hover {
  transform: translateY(-2px);
}
.stat.kc0 {
  border-top-color: var(--brand);
}
.stat.kc1 {
  border-top-color: var(--hold);
}
.stat.kc2 {
  border-top-color: var(--ok);
}
.stat.kc4 {
  border-top-color: var(--blue);
}
.stat.kc5 {
  border-top-color: var(--warn);
}
.stat.on {
  background: var(--brand-2);
  border-color: var(--brand);
}
.stat.hot b {
  color: var(--warn);
}
.ptsbadge {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--hold-2);
  color: #b45309;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #fbd9a5;
}
.empty .chip.big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 4px;
}
.empty p b {
  color: var(--ink);
  font-size: 15px;
}
@media (max-width: 560px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats .stat:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
}
.svcpick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.svcpick label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  font-size: 13.5px;
  margin: 0;
}
.svcpick input {
  width: auto;
  min-height: 0;
}
@media (max-width: 560px) {
  .svcpick {
    grid-template-columns: 1fr;
  }
}
.req {
  color: var(--warn);
  font-weight: 700;
}
/* phones: grid and flex children may shrink below their content, so nothing pushes the page sideways */
.two > *,
.ws > *,
.dash > *,
.stats > *,
.row > *,
.tgrid > * {
  min-width: 0;
}
.card {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .card table,
  #main > table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
  .card {
    padding: 16px;
  }
  h1 {
    font-size: 24px;
  }
  .tblwrap table {
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .top {
    padding: 10px 12px;
    gap: 4px;
  }
  .top select {
    max-width: 120px;
    padding: 4px 6px;
    font-size: 13px;
  }
  .top .logo {
    margin-right: 4px;
    font-size: 14px;
  }
  .top .logo img {
    height: 28px;
  }
  .bnav {
    box-sizing: border-box;
  }
}
[hidden] {
  display: none !important;
}
.rfil {
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.rfil select {
  flex: 0 1 200px;
}
.dfield {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  flex: 1 1 140px;
}
.dfield input {
  min-height: 44px;
}
@media (max-width: 560px) {
  /* the filter row takes the screen's width, not the width of its longest option (that widened the whole page) */
  .rep-h > .rfil {
    flex: 1 1 100%;
    min-width: 0;
  }
  .rfil select {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  .rfil .btn {
    flex: 1 1 100%;
  }
}
.limitbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--hold-2);
  color: #92400e;
  border: 1px solid #fbd9a5;
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 8px 0;
}
.limitbox b {
  display: block;
  color: #7c2d12;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.limitbox svg {
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 2px;
}
@media (max-width: 560px) {
  .hrhead {
    display: none;
  }
}
.other-input {
  margin-top: 8px;
}
/* first-visit card offering the step-by-step guide (landing page and staff home) */
.guidecard {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  background: var(--card);
  border: 2px solid var(--amber);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}
.guidecard .t {
  flex: 1;
  min-width: 0;
}
.guidecard b {
  display: block;
  font-size: 15px;
}
.guidecard .new {
  display: inline-block;
  background: var(--amber);
  color: #1f1406;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 2px 9px;
  margin-bottom: 4px;
}
.guidecard .gact {
  display: flex;
  gap: 8px;
  flex: 1 1 100%;
}
.guidecard .gact .btn {
  flex: 1;
  margin: 0;
}
/* same-day duplicate reports */
.knownissue {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--hold-2);
  color: var(--hold);
  font-size: 14px;
  line-height: 1.5;
}
.knownissue svg {
  flex: none;
  margin-top: 1px;
}
.card.mine {
  background: var(--brand-2);
  border-color: transparent;
}
.mine p {
  margin: 6px 0 0;
}
.p-many {
  background: var(--hold-2);
  color: var(--hold);
  font-weight: 700;
}
.rqrow {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.rqrow:first-of-type {
  border-top: 0;
}
/* ONE Desk Bot */
.botbtn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(30, 75, 143, 0.35);
}
.botbtn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
/* staff on a phone or tablet: the help chat is in More (a floating button would sit on top of fields and buttons) */
body.console .botbtn {
  display: none;
}
body.console .botp {
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) {
  body.console .botbtn {
    display: grid;
    bottom: 24px;
  }
  body.console .botp {
    bottom: 88px;
  }
}
.botp {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 41;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(24, 35, 58, 0.22);
  overflow: hidden;
}
body.console .botp {
  bottom: calc(152px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) {
  body.console .botp {
    bottom: 92px;
  }
}
.botp header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: var(--brand);
  color: #fff;
  border-bottom: 3px solid var(--amber);
}
.botp header div {
  flex: 1;
  min-width: 0;
}
.botp header b {
  display: block;
}
.botp header small {
  opacity: 0.8;
  font-size: 12px;
}
.botp header .iconbtn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
}
.botava {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}
.botava svg {
  width: 20px;
  height: 20px;
}
.botlog {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.bmsg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bmsg.bot {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bmsg.me {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bitems {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.bitem {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--brand-2);
  color: var(--ink);
  text-decoration: none;
}
.bitem small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.bchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bchips .chip-btn {
  font: 600 12.5px var(--sans, inherit);
  font-family: inherit;
  border-radius: 99px;
  padding: 6px 11px;
}
.botf {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.botf input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.botf .btn {
  min-height: 44px;
  padding: 0 14px;
}
/* team daily queue: the requestor's queue number, the providers' "waiting" bar */
.queuebox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blue-2);
  color: #1e3a6e;
  border-left: 4px solid var(--blue);
  font-size: 14px;
  line-height: 1.5;
}
.queuebox svg {
  flex: none;
  margin-top: 2px;
  color: var(--blue);
}
.queuebox b:first-child {
  display: block;
  font-size: 16px;
  color: var(--brand);
}
.queuebox div div {
  margin-top: 2px;
}
.queuebar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--blue-2);
  color: #1e3a6e;
  border: 1px solid #cfdcf0;
  cursor: pointer;
}
.queuebar > div {
  flex: 1;
}
.queuebar svg {
  flex: none;
  color: var(--blue);
}
.p-queue {
  background: var(--blue-2);
  color: var(--blue);
  font-weight: 700;
}
/* get the app: install guide (page and dialog), iPhone hint */
.idlg {
  max-width: 520px;
  width: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
}
.idlg-h {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 6px;
}
.idlg-h > div {
  flex: 1;
}
.idlg-h img {
  border-radius: 10px;
}
.idlg-b {
  padding: 0 16px 16px;
}
.itabs {
  margin: 10px 0 4px;
  overflow-x: auto;
}
.itabs .tab {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.isteps {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.isteps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  line-height: 1.55;
  font-size: 14.5px;
}
.isteps li:first-child {
  border-top: 0;
}
.isteps svg {
  vertical-align: -5px;
}
.istep {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.ikey {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--brand-2);
  color: var(--brand);
  white-space: nowrap;
}
.iok {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ok-2);
  color: var(--ok);
  font-weight: 700;
  margin-bottom: 6px;
}
.iguide [data-install-now] {
  width: 100%;
  margin-top: 12px;
}
.iosbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}
.iosbar > div {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.4;
}
.iosbar img {
  border-radius: 9px;
}
.iosbar svg {
  vertical-align: -5px;
}
.iosbar .btn {
  margin: 0;
  min-height: 36px;
  padding: 6px 12px;
}
/* sticky Install button: on every screen until ONE Desk runs installed */
.istick {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 39;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 99px;
  background: var(--amber);
  color: #1f1406;
  font: 700 14px var(--sans, inherit);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.istick:hover {
  filter: brightness(1.05);
}
@media (max-width: 760px) {
  body.console .istick {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
}
@media print {
  .istick {
    display: none;
  }
}
.wrap {
  padding-bottom: max(90px, var(--pb, 0px));
}
.istick.one {
  background: var(--ok);
  color: #fff;
}
/* top-right corner on public screens: Sign in, with App & settings under it */
.corner {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 30;
}
.corner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.corner-btn svg:last-child {
  transform: rotate(90deg);
  transition: transform 0.15s;
}
.corner.open .corner-btn svg:last-child {
  transform: rotate(-90deg);
}
.corner-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 250px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  padding: 6px;
}
.corner.open .corner-menu {
  display: block;
}
.corner-menu a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
}
.corner-menu a:hover {
  background: var(--brand-2);
}
.corner-menu a svg {
  color: var(--brand);
  flex: none;
}
.corner-menu b {
  display: block;
  font-size: 14px;
}
.corner-menu small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
body:not(.console) .wrap {
  padding-top: 64px;
}
/* Food: Screen 2 choice (rating is the big, filled, first card), stars, chips, categories, confirm sheet */
.foodpick {
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 16px;
  margin: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.foodpick .t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.foodpick .t span {
  font-size: 14px;
  line-height: 1.4;
}
.foodpick small {
  font-size: 12.5px;
  opacity: 0.85;
}
.foodpick.primary {
  background: var(--brand);
  color: #fff;
  padding: 24px 18px;
  box-shadow: 0 10px 26px rgba(30, 75, 143, 0.3);
  border-bottom: 4px solid var(--amber);
}
.foodpick.primary b {
  font-size: 20px;
}
.foodpick.primary .fp-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--amber);
  flex: none;
}
.foodpick.secondary {
  background: var(--card);
  border: 1.5px solid var(--line);
  padding: 12px 16px;
}
.foodpick.secondary b {
  font-size: 15px;
}
.foodpick.secondary .t span {
  color: var(--muted);
  font-size: 13px;
}
.foodpick.secondary .fp-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--warn-2);
  color: var(--warn);
  display: grid;
  place-items: center;
  flex: none;
}
.stars {
  display: flex;
  gap: 6px;
}
.stars label {
  margin: 0;
  cursor: pointer;
}
.stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.stars span {
  font-size: 40px;
  line-height: 1;
  color: #d6d8e6;
  transition: transform 0.1s;
}
.stars label:has(~ label input:checked) span,
.stars input:checked + span {
  color: var(--amber);
}
.stars:hover span {
  color: var(--amber) !important;
}
.stars label:hover ~ label span {
  color: #d6d8e6 !important;
}
.stars input:focus-visible + span {
  outline: 2px solid var(--brand);
  border-radius: 6px;
}
.fchips,
.fcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fchips label,
.fcats label {
  margin: 0;
  cursor: pointer;
}
.fchips input,
.fcats input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.fchips span,
.fcats span {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
}
.fchips input:checked + span {
  background: var(--brand-2);
  border-color: var(--brand);
  color: var(--brand);
}
.fcats input:checked + span {
  background: var(--warn-2);
  border-color: var(--warn);
  color: #9f1d22;
}
.fchips input:focus-visible + span,
.fcats input:focus-visible + span {
  outline: 2px solid var(--brand);
}
.soft-link {
  font-weight: 700;
  color: var(--warn);
}
dialog.sheet {
  max-width: 440px;
  width: calc(100% - 24px);
  border: 0;
  border-radius: 20px;
  padding: 22px;
}
dialog.sheet .btn {
  width: 100%;
}
.btn.ghost {
  background: none;
  border: 0;
  color: var(--muted);
}
/* kitchen dashboard */
.fscores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .fscores {
    grid-template-columns: repeat(2, 1fr);
  }
}
.fscore {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fscore b {
  font-size: 28px;
}
.fchart {
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.fchart .g {
  stroke: #eceef5;
}
.fchart text {
  font-size: 11px;
  fill: var(--muted);
}
.flegend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  margin-top: 6px;
}
.flegend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
}
.hbar {
  display: grid;
  grid-template-columns: 130px 1fr 34px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 14px;
}
.hbar > div {
  background: var(--brand-2);
  border-radius: 99px;
  height: 10px;
}
.hbar i {
  display: block;
  height: 10px;
  border-radius: 99px;
}
.hbar b {
  text-align: right;
}

/* ============ Shared components (design system) ============ */
h1 {
  font-weight: 700;
  letter-spacing: -0.2px;
}
h2 {
  font-weight: 600;
}
a:focus-visible,
button:focus-visible,
[role='tab']:focus-visible,
.tcard:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Cards: white, hairline border, no shadow, no coloured edges */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
}
.card.k-blue,
.card.k-brand,
.card.k-green,
.card.k-orange,
.card.k-pink {
  border-top: 1px solid var(--border);
}
/* Buttons */
.btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--input-border);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
  box-shadow: none;
  text-decoration: none;
}
.btn:hover {
  background: var(--hover);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}
.btn.soft {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
  font-weight: 600;
}
.btn.danger {
  color: var(--danger);
}
.btn.big {
  min-height: 48px;
  font-size: 15px;
}
.iconbtn,
.ibtn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: inline-grid;
  place-items: center;
  box-shadow: none;
  position: relative;
  cursor: pointer;
  flex: none;
}
.iconbtn:hover,
.ibtn:hover {
  background: var(--hover);
}
/* Inputs */
input,
select,
textarea {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  background: var(--surface);
}
input[type='checkbox'],
input[type='radio'] {
  width: auto; /* a tick or a dot is its own size, never "fill the row" (hidden chip radios widened their dialogs) */
  min-height: 0;
  outline-offset: 2px;
}
select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
}
label {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-2);
}
label small {
  color: var(--text-meta);
}
.search {
  border: 1px solid var(--input-border);
  border-radius: var(--radius-control);
  box-shadow: none;
}
.search input {
  outline: 0 !important;
  min-height: 38px;
}
/* StatusPill, StatusIcon, PriorityTag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
}
.pill.st {
  padding: 3px 10px 3px 8px;
}
.sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--st-neutral);
}
.pill.s-open,
.pill.s-hold,
.pill.s-closed,
.pill.s-rejected,
.pill.s-in_progress,
.pill.p-int,
.pill.p-esc,
.pill.p-many,
.pill.p-queue {
  background: var(--surface);
  color: var(--text-2);
}
.sicon {
  display: inline-grid;
  place-items: center;
  flex: none;
}
.ptag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ptag.pr-critical,
.pill.p-critical {
  color: var(--pr-critical);
}
.ptag.pr-high,
.pill.p-high {
  color: var(--pr-high);
}
.ptag.pr-medium,
.pill.p-medium {
  color: var(--pr-medium);
}
.ptag.pr-low,
.pill.p-low {
  color: var(--pr-low);
}
.ptag.pv {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}
.ptag.pv.pr-critical,
.pill.p-critical {
  background: var(--pr-critical-bg);
  border-color: transparent;
}
.ptag.pv.pr-high,
.pill.p-high {
  background: var(--pr-high-bg);
  border-color: transparent;
}
.ptag.pv.pr-medium,
.pill.p-medium {
  background: var(--pr-medium-bg);
  border-color: transparent;
}
.ptag.pv.pr-low,
.pill.p-low {
  background: var(--pr-low-bg);
  border-color: transparent;
}
/* CardHeading */
.chead {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.chead .tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f2f4f7;
  color: var(--text-2);
  display: grid;
  place-items: center;
  flex: none;
}
/* Avatar */
.av {
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  flex: none;
  background: #f2f4f7;
  color: #344054;
  width: 36px;
  height: 36px;
  font-size: 13px;
  line-height: 1;
}
.av-24 {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.av-28 {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.av-32 {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.av-36 {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
.av-40 {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.av-44 {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.av-dark {
  background: var(--ink);
  color: #fff;
}
.av-accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.avatar {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.avatar.sm {
  background: #f2f4f7;
  color: #344054;
}
/* Tabs: underline on desktop, chips on mobile */
.tabs {
  gap: 4px;
  padding: 0;
  margin: 4px 0 14px;
  border-bottom: 1px solid var(--divider);
}
.tab {
  background: none;
  box-shadow: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 10px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-meta);
}
.tab:hover {
  color: var(--text);
}
.tab.on {
  background: none;
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.tab .cnt {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: #f2f4f7;
  color: var(--text-3);
}
.tab.on .cnt {
  background: var(--accent-soft);
  color: var(--accent);
}
/* EmptyState */
.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-meta);
}
.empty b,
.empty .et {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
/* Chat button */
.botbtn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--ink);
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
}
.botbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.console .botbtn {
  bottom: 28px;
}
body.console .botp {
  bottom: 92px;
}

/* ============ App shell ============ */
/* Desktop header */
.top {
  display: block;
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brandlink {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  flex: none;
}
.logo-tile {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.top nav {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.top nav::-webkit-scrollbar {
  display: none;
}
.top nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: var(--radius-nav);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}
.top nav a:hover {
  background: var(--hover);
  color: var(--text);
}
.top nav a.on {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.top-r {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}
.top select {
  width: auto;
  min-height: 40px;
  padding: 6px 34px 6px 12px;
  border-radius: var(--radius-control);
}
.ibtn .ndot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--notify-dot);
  border: 2px solid var(--surface);
  box-sizing: content-box;
}
.vdiv {
  width: 1px;
  height: 28px;
  background: var(--border);
}
.melink {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border-radius: var(--radius-control);
  padding: 2px;
}
.melink .who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}
.melink .who b {
  font-size: 13px;
  font-weight: 600;
}
.melink .who span {
  font-size: 12px;
  color: var(--text-meta);
}
.cwrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 96px;
}
/* Mobile app bar + bottom tab bar + More sheet */
.bnav {
  display: none;
}
.msheet-back {
  display: none;
}
@media (max-width: 767px) {
  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }
  .btn {
    min-height: 48px;
  }
  .iconbtn,
  .ibtn {
    width: 44px;
    height: 44px;
  }
  .top-in {
    min-height: 56px;
    padding: 0 6px 0 16px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .brandlink .logo-tile {
    width: 30px;
    height: 30px;
  }
  .top nav,
  .top .who,
  .top .vdiv,
  .top .gear {
    display: none;
  }
  .top-r {
    gap: 0;
  }
  .top .ibtn {
    border: 0;
    background: none;
  }
  .top select {
    min-height: 36px;
    font-size: 13px;
    padding: 4px 28px 4px 8px;
    max-width: 104px;
  }
  .melink {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }
  .melink .av {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .cwrap {
    padding: 16px 16px calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .bnav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
    min-height: calc(60px + env(safe-area-inset-bottom, 0px));
    justify-content: initial;
  }
  .bnav a,
  .bnav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    min-width: 0;
    border: 0;
    background: none;
    padding: 0;
    font: 500 11px var(--sans);
    color: var(--text-meta);
    cursor: pointer;
    position: relative;
  }
  .bnav a.on,
  .bnav button.on {
    color: var(--accent);
    font-weight: 600;
  }
  .bnav .newt {
    width: 52px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    margin: 0 auto;
    box-shadow: none;
  }
  .bnav .ndot {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--notify-dot);
    border: 2px solid var(--surface);
  }
  body.console .botbtn {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  body.console .botp {
    bottom: calc(152px + env(safe-area-inset-bottom, 0px));
  }
  .botbtn {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  #toast {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .msheet-back {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(16, 24, 40, 0.45);
  }
  .msheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 61;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    max-height: 86vh;
    overflow-y: auto;
  }
  .msheet .grab {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #d0d5dd;
    margin: 0 auto 8px;
  }
  .msheet-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
  }
  .msheet-h h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
  }
  .msheet-x {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #f2f4f7;
    color: var(--text-2);
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .mrow {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--divider-soft);
    background: none;
    color: var(--text);
    font: 500 15px var(--sans);
    text-align: left;
    padding: 0;
    cursor: pointer;
  }
  .mrow:first-of-type {
    border-top: 0;
  }
  .mrow .tile {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5f6f8;
    color: var(--text-2);
    display: grid;
    place-items: center;
    flex: none;
  }
  .mrow span.l {
    flex: 1;
  }
  .mrow .chv {
    color: var(--chevron);
  }
}
@media (min-width: 768px) {
  .msheet,
  .msheet-back {
    display: none !important;
  }
}
/* the floating install pill is gone: Install app lives in the profile menu and the More sheet */
.istick {
  display: none !important;
}

/* ============ Home (dashboard) ============ */
.d-only {
  display: initial;
}
.m-only {
  display: none !important;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-meta);
}
.eyebrow.up {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.home {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home .card {
  margin: 0;
}
.greet {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.greet h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.greet-r {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ptschip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.ptschip svg {
  color: var(--warning);
}
.ovr {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.wk {
  flex: 1 1 320px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.wk-l {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}
.wk-s {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}
.pring {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.pring b {
  position: absolute;
  font-size: 18px;
  font-weight: 700;
}
.stcard {
  flex: 999 1 640px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  overflow: hidden;
}
.stcell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 22px 24px;
  border: 0;
  border-left: 1px solid var(--divider);
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  min-width: 0;
}
.stcell:first-child {
  border-left: 0;
}
.stcell:hover,
.stcell.on {
  background: var(--row-hover);
}
.stcell:focus-visible {
  outline-offset: -2px;
}
.stl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}
.stcell b {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stcell b.hot {
  color: var(--danger);
}
.stc {
  font-size: 12px;
  color: var(--text-meta);
}
.queuebar {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.queuebar > span {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.queuebar .small {
  color: var(--text-3);
}
.queuebar svg {
  color: var(--icon-muted);
}
.mt {
  padding: 0;
  overflow: hidden;
}
.mt-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 20px 24px 0;
}
.mt-t {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.mt-t h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.mt-n {
  font-size: 13px;
  color: var(--text-meta);
}
.mt-tools,
.mt-more {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mt-tools .search {
  margin: 0;
  min-width: 240px;
  flex: 1;
  padding: 0 12px;
  gap: 8px;
}
.mt-tools .search svg {
  color: var(--icon-muted);
}
.mt-tools select {
  width: auto;
  max-width: 240px;
}
.mt-tabs {
  margin: 12px 0 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tblbox {
  overflow-x: auto;
}
.ttable {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 14px;
}
.ttable th {
  text-transform: none;
  letter-spacing: 0;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ttable td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}
.ttable th:first-child,
.ttable td:first-child {
  padding-left: 24px;
}
.ttable th:last-child,
.ttable td:last-child {
  padding-right: 24px;
}
.ttable tbody tr {
  cursor: pointer;
}
.ttable tbody tr:hover {
  background: var(--row-hover);
}
.ttable tbody tr:last-child td {
  border-bottom: 0;
}
.ttable tr.dim {
  opacity: 0.7;
}
.tt-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
}
.tt-no {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-meta);
}
.tt-main b {
  font-weight: 600;
}
.tt-svc {
  font-size: 12px;
  color: var(--text-meta);
}
.tt-req {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.tt-loc {
  color: var(--text-3);
  max-width: 260px;
}
.tt-st {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tt-when {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.tt-when small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-meta);
}
.tt-when.done {
  color: var(--text-3);
}
.tcards {
  display: none;
}
.mt-empty {
  padding: 16px;
}
/* ticket card (phones, and short lists elsewhere) */
.tgrid {
  gap: 10px;
}
.tcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  box-shadow: none;
  transform: none !important;
  transition: none;
}
.tcard::before {
  display: none !important;
}
.tcard:hover {
  background: var(--row-hover);
  box-shadow: none;
}
.tc-r1 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tc-r1 .sp {
  flex: 1;
}
.tc-no {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-meta);
}
.tc-r2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tc-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.tc-loc {
  font-size: 13px;
  color: var(--text-3);
}
.tc-r3 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f2f4f7;
  font-size: 12px;
  color: var(--text-2);
}
.tc-who {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-when {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--text-2);
}
.tc-when.done {
  color: var(--text-3);
}
@media (max-width: 767px) {
  .d-only {
    display: none !important;
  }
  .m-only {
    display: initial !important;
  }
  a.m-only.stcell,
  button.m-only {
    display: flex !important;
  }
  .iconbtn.m-only {
    display: inline-grid !important;
  }
  .home {
    gap: 16px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .greet {
    align-items: center;
    flex-wrap: nowrap;
  }
  .greet h1 {
    font-size: 22px;
  }
  .ptschip {
    height: 32px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    padding: 0 12px;
  }
  .wk {
    padding: 16px;
    gap: 14px;
    flex-basis: 100%;
  }
  .wk .pring b {
    font-size: 14px;
  }
  .wk-l {
    font-size: 16px;
  }
  .wk > span {
    display: inline-flex !important;
  }
  .wk > span.d-only {
    display: none !important;
  }
  .stcard {
    flex-basis: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .stcell {
    min-height: 78px;
    padding: 14px 16px;
    gap: 6px;
    border-left: 0;
    border-top: 1px solid var(--divider);
  }
  .stcell:nth-child(-n + 2) {
    border-top: 0;
  }
  .stcell:nth-child(even) {
    border-left: 1px solid var(--divider);
  }
  .stcell b {
    font-size: 24px;
  }
  .stc {
    display: none;
  }
  .stl svg {
    width: 16px;
    height: 16px;
  }
  .stcell.viewrep {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
  }
  .mt {
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .mt-h {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .mt-t {
    align-items: center;
  }
  .mt-t .iconbtn {
    margin-left: auto;
  }
  .mt-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .mt-tools .search {
    min-width: 0;
    min-height: 46px;
  }
  .mt-more {
    display: none;
  }
  .mt-more.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .mt-tools select {
    max-width: none;
    width: 100%;
  }
  /* Chips: a 34px pill inside a 44px tap target; the row scrolls edge to edge */
  .tabs {
    border-bottom: 0;
    gap: 8px;
    margin: 0 0 4px;
    padding: 0;
  }
  .mt-tabs {
    margin: 12px -16px 12px;
    padding: 0 16px;
    border-bottom: 0;
  }
  .tab {
    position: relative;
    min-height: 44px;
    padding: 0 14px;
    margin: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    background: none;
    z-index: 0;
  }
  .tab::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    bottom: 5px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    z-index: -1;
  }
  .tab.on {
    color: #fff;
    font-weight: 600;
    border: 0;
  }
  .tab.on::before {
    background: var(--accent);
    border-color: var(--accent);
  }
  .tab .cnt {
    margin: 0;
    background: #f2f4f7;
    color: var(--text-3);
  }
  .tab.on .cnt {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
  }
  .tblbox {
    display: none;
  }
  .tcards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mt-empty {
    padding: 0;
  }
  .mt-empty .empty {
    background: var(--surface);
    border: 1px dashed #d0d5dd;
    border-radius: 16px;
  }
}
.wk > span.m-only {
  display: none !important;
}
@media (max-width: 767px) {
  .wk > span.m-only {
    display: inline-flex !important;
  }
}

/* ============ Ticket detail ============ */
body.on-ticket .cwrap > .head {
  display: none;
}
.tkp {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tkp .card {
  margin: 0;
}
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  align-self: flex-start;
}
.backlink:hover {
  color: var(--text);
}
.tk-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.tk-title > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.tk-ids {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tk-ids .mono {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-meta);
}
.tk-title h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.tk-sub {
  color: var(--text-3);
}
.tk-acts {
  display: flex;
  gap: 10px;
}
.tk-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.tk-main {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tk-side {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sec-people {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sec-details,
.sec-activity {
  padding: 0;
  overflow: hidden;
}
.issue {
  padding: 20px 24px;
  border-bottom: 1px solid var(--divider);
}
.issue p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.eyebrow.ic {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.eyebrow.ic .tile {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #f2f4f7;
  color: var(--text-2);
  display: grid;
  place-items: center;
}
.dlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: 32px;
  padding: 8px 24px 16px;
  margin: 0;
}
.dli {
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7;
  min-width: 0;
}
.dli dt,
.locrow dt {
  font-size: 12px;
  color: var(--text-meta);
}
.dli dd,
.locrow dd {
  margin: 2px 0 0;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.act-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--divider);
}
.act-n {
  font-size: 13px;
  color: var(--text-meta);
}
.tl {
  list-style: none;
  margin: 0;
  padding: 20px 24px 8px;
  display: flex;
  flex-direction: column;
}
.tl li {
  display: flex;
  gap: 12px;
  position: relative;
}
.rail {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.rail i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tl li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl li:last-child::before {
  display: none;
}
.tl li.latest .rail {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.tlc {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 22px;
}
.tlt {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tlt b {
  font-weight: 600;
}
.tlm {
  font-size: 12px;
  color: var(--text-meta);
}
.bubble {
  margin-top: 4px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: #f2f4f7;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
.tag.warn {
  color: var(--warning);
  background: var(--warning-soft);
}
.tag.danger {
  color: var(--danger);
  background: var(--danger-soft);
}
.upd {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--divider);
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
}
.upd-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upd textarea {
  min-height: 0;
}
.upd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.upd-row .sp {
  flex: 1;
}
.upd-row .iconbtn {
  margin: 0;
}
.chk {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  cursor: pointer;
}
.chk input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
#earlyrow {
  margin-top: 12px;
}
.helper {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-meta);
  margin-top: 6px;
}
.helper svg {
  flex: none;
  margin-top: 1px;
}
.joinedto {
  font-size: 13px;
  margin: 0 0 14px;
}
.joinedto a {
  font-weight: 600;
}
.side {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chead .sp {
  flex: 1;
}
.sla-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sla-big {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sla-sub {
  font-size: 13px;
  color: var(--text-3);
}
.pbar {
  height: 6px;
  border-radius: 3px;
  background: #eef0f3;
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}
.sla-note {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}
.sla-note.danger {
  color: var(--danger);
}
.sla-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-meta);
  gap: 10px;
}
.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: 600 13px var(--sans);
  cursor: pointer;
}
.linkbtn:hover {
  color: var(--accent-hover);
}
.person {
  display: flex;
  gap: 12px;
  align-items: center;
}
.person b {
  font-weight: 600;
}
.psub {
  font-size: 13px;
  color: var(--text-3);
}
.crow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  min-width: 0;
}
.crow span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.crow svg {
  color: var(--icon-muted);
}
.crow:hover {
  color: var(--accent);
}
.sdiv {
  height: 1px;
  background: var(--divider);
}
.slabel {
  font-size: 12px;
  color: var(--text-meta);
}
.prow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text-2);
  font-size: 13px;
}
.prow:hover {
  background: var(--row-hover);
}
.rqrow {
  padding: 10px 0;
  border-top: 1px solid #f2f4f7;
}
.rqrow:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.rqrow .rqsaid {
  margin: 6px 0;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rqrow [data-split] {
  margin-top: 6px;
}
.tk-bar,
.tk-appbar,
.segs {
  display: none;
}
@media (max-width: 767px) {
  body.on-ticket .top,
  body.on-ticket .bnav {
    display: none;
  }
  body.on-ticket .cwrap {
    padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .tkp {
    gap: 0;
  }
  .tk-appbar {
    display: flex !important;
    align-items: center;
    gap: 2px;
    height: 56px;
    padding: 0 6px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .tk-appbar .ibtn {
    border: 0;
    background: none;
  }
  .tk-abt {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
  }
  .tk-abt b {
    font-size: 16px;
    font-weight: 600;
  }
  .tk-abt .mono {
    font-size: 13px;
    color: var(--text-meta);
  }
  .tk-title {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 16px 18px;
  }
  .tk-title h1 {
    font-size: 22px;
  }
  .tk-sub {
    font-size: 13px;
  }
  .tk-cols {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }
  .tk-main,
  .tk-side,
  .sec-people {
    display: contents;
  }
  .tk-cols .sla {
    order: 1;
  }
  .segs {
    order: 2;
  }
  .tk-cols section,
  .sec-people > .card {
    order: 3;
  }
  .sla {
    padding: 16px;
    border-radius: 16px;
  }
  .sla > .chead .tile,
  .sla > .chead > span:nth-child(2) {
    display: none;
  }
  .sla > .chead {
    position: absolute;
    right: 16px;
    top: 16px;
  }
  .sla {
    position: relative;
  }
  .sla-tile {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--warning-soft);
    color: var(--warning);
    display: grid !important;
    place-items: center;
    flex: none;
  }
  .sla-big {
    font-size: 17px;
  }
  .sla-sub {
    font-size: 12px;
  }
  .sla-foot .linkbtn {
    min-height: 44px;
  }
  .segs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    background: #eaecf0;
    border-radius: 14px;
    padding: 4px;
  }
  .segs button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: none;
    font: 500 14px var(--sans);
    color: var(--text-3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .segs button[aria-selected='true'] {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
  }
  .segs .cnt {
    font-size: 12px;
    font-weight: 600;
    background: #f2f4f7;
    color: var(--text-3);
    border-radius: 999px;
    padding: 1px 7px;
  }
  .tkp[data-seg='activity'] .sec-details,
  .tkp[data-seg='activity'] .sec-people > .card,
  .tkp[data-seg='details'] .sec-activity,
  .tkp[data-seg='details'] .sec-people > .card,
  .tkp[data-seg='people'] .sec-details,
  .tkp[data-seg='people'] .sec-activity {
    display: none;
  }
  .issue {
    padding: 16px;
  }
  .dlist {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    padding: 4px 16px 12px;
  }
  .dli-loc {
    display: none;
  }
  .locrow {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid #f2f4f7;
  }
  .locrow svg {
    color: var(--icon-muted);
    margin-top: 2px;
  }
  .act-h {
    padding: 14px 16px;
  }
  .act-h .chead .tile {
    display: none;
  }
  .tl {
    padding: 16px 16px 0;
    flex-direction: column-reverse;
  }
  .rail {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
  .tl li::before {
    left: 12px;
    top: 24px;
  }
  .tl li:last-child::before {
    display: block;
  }
  .tl li:first-child::before {
    display: none;
  }
  .side {
    border-radius: 16px;
    padding: 16px;
  }
  .crow,
  .prow {
    min-height: 44px;
  }
  #pri {
    min-height: 46px;
    font-size: 16px;
  }
  .tk-bar {
    display: flex !important;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .tk-bar .btn {
    min-height: 48px;
  }
  .tk-bar .btn.primary {
    flex: 1;
  }
  body.on-ticket .botbtn {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  /* the update form is a bottom sheet on phones */
  .upd {
    display: none;
  }
  .upd.open {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 61;
    background: var(--surface);
    border: 0;
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    max-height: 90vh;
    overflow-y: auto;
  }
  /* nothing in the sheet shrinks: it scrolls instead (the note box used to be squeezed to a sliver by the "Closed" sentences) */
  .upd.open > * {
    flex-shrink: 0;
  }
  .upd.open textarea {
    min-height: 110px;
    font-size: 16px;
  }
  /* the ready-made sentences: one swipeable row, each chip up to two lines */
  .upd .phr {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin: 0 0 8px;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }
  .upd .phr::-webkit-scrollbar {
    display: none;
  }
  .upd .phc {
    flex: 0 0 auto;
    max-width: 78%;
    scroll-snap-align: start;
    font-size: 14px;
    padding: 8px 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .upd.open::before {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #d0d5dd;
    margin: -6px auto 8px;
  }
  .upd-back[hidden] {
    display: none;
  }
  .upd-row .iconbtn {
    width: 44px;
    height: 44px;
  }
  .upd-row .sp {
    display: none;
  }
  .upd-row .chk {
    min-height: 44px;
    flex: 1;
  }
  .upd-row .btn {
    width: 100%;
    min-height: 48px;
  }
}
@media (max-width: 767px) {
  .backlink,
  .tk-acts {
    display: none !important;
  }
}
.tstamp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-meta);
}
.ptschip {
  position: relative;
}
.ptschip::after {
  content: '';
  position: absolute;
  inset: -6px 0;
}
/* review fixes: no coloured or gradient cards anywhere on the staff side */
.profile {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
}
.profile .muted,
.pstats span {
  color: var(--text-meta);
}
.pstats {
  background: none;
  border-top: 1px solid var(--divider);
}
.profile .avatar {
  border: 0;
}
.avatar,
.avatar.sm {
  background-image: none;
}
.rank {
  background: #f2f4f7;
  color: var(--text-2);
}
#to option:disabled {
  color: var(--text-meta);
}
.s-closed {
  color: var(--text-3);
}
/* review fixes: tap targets on phones; the header keeps one row at 1024px */
@media (max-width: 767px) {
  .brandlink {
    min-height: 44px;
  }
  .btn,
  .uact .btn {
    min-height: 44px;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .top-in {
    gap: 12px;
    padding: 0 20px;
  }
  .top nav a {
    padding: 8px 8px;
    gap: 6px;
  }
  .top .who,
  .top .vdiv {
    display: none;
  }
  .cwrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============ UI pass: header order, Reports, Attention, tables on phones ============ */
.top-in {
  flex-wrap: nowrap;
}
.brandlink {
  order: 1;
}
.top nav {
  order: 2;
  flex: 1 1 0;
}
.top-r {
  order: 3;
}
/* a soft fade where the nav scrolls */
.top nav {
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  padding-right: 24px;
}
.tab-cnt {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: #f2f4f7;
  color: var(--text-3);
}
.tab-cnt.hot {
  background: var(--danger-soft);
  color: var(--danger);
}
.attp,
.repp {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.attp .card,
.repp .card {
  margin: 0;
}
.repp .two {
  margin: 0;
}
.att {
  padding: 0;
  overflow: hidden;
}
.att-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--divider);
}
.att .empty {
  padding: 22px 16px;
}
.att-list {
  display: flex;
  flex-direction: column;
}
.att-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--divider-soft);
  color: var(--text);
  min-height: 56px;
}
.att-row:first-child {
  border-top: 0;
}
.att-row > span:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.att-row b {
  font-weight: 600;
}
a.att-row:hover {
  background: var(--row-hover);
}
.rep-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.kpis2 {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow: hidden;
}
.kpi2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-left: 1px solid var(--divider);
  border-top: 1px solid var(--divider);
  margin: -1px 0 0 -1px;
  min-width: 0;
}
.kpi2 span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}
.kpi2 b {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.kpi2 b.hot,
.rtable td.hot {
  color: var(--danger);
  font-weight: 600;
}
.kpi2 small {
  font-size: 12px;
  color: var(--text-meta);
}
.rchart {
  width: 100%;
  height: auto;
  margin-top: 12px;
}
.rchart .g {
  stroke: #eef0f3;
}
.rchart text {
  font-size: 11px;
  fill: var(--text-meta);
}
.rtable {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}
.rtable th {
  text-transform: none;
  letter-spacing: 0;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.rtable td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}
.rtable tbody tr:last-child td {
  border-bottom: 0;
}
.rtable td:first-child {
  white-space: normal;
  min-width: 160px;
}
.hbar {
  grid-template-columns: 110px 1fr 34px;
}
.hbar > div {
  background: #eef0f3;
}
/* working-day chips (on / off), not tabs */
.daypick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.daychip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.daychip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.daychip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .att .tblbox {
    display: none;
  }
  .att .tcards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  .att .tcard {
    border-radius: 12px;
  }
  .att-row {
    padding: 12px 16px;
  }
  .att-h {
    padding: 14px 16px;
  }
  .kpis2 {
    grid-template-columns: 1fr 1fr;
  }
  .kpi2 {
    padding: 14px 16px;
  }
  .kpi2 b {
    font-size: 22px;
  }
  .repp .tblbox {
    display: block;
  }
  .rep-h .btn {
    width: 100%;
  }
  .daychip {
    min-height: 44px;
  }
  /* any other table scrolls inside its own box instead of pushing the page sideways */
  #main table:not(.ttable):not(.rtable) {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
}
.linkbtn {
  white-space: nowrap;
}
/* small colourful touches: soft icon tiles, the gold star, medals */
.tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: #f2f4f7;
  color: var(--text-2);
}
.tile.t-blue {
  background: #eff8ff;
  color: #1570ef;
}
.tile.t-green {
  background: #ecfdf3;
  color: #079455;
}
.tile.t-amber {
  background: #fffaeb;
  color: #dc6803;
}
.tile.t-violet {
  background: #f4f3ff;
  color: #6938ef;
}
.tile.t-rose {
  background: #fef3f2;
  color: #d92d20;
}
.tile.t-teal {
  background: #f0fdf9;
  color: #0e9384;
}
.tile.t-slate {
  background: #f2f4f7;
  color: #475467;
}
.mrow .tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.eyebrow.ic .tile {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.menu a .tile {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  margin-right: 2px;
}
.ptschip svg,
.gold svg {
  color: #f79009;
  fill: #fec84b;
}
.gold {
  display: inline-flex;
  vertical-align: -3px;
}
.wave {
  display: inline-block;
  font-size: 0.9em;
}
.rank.r1,
.rank.r2,
.rank.r3 {
  background: none;
  font-size: 20px;
}
.kl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kl .tile {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.stl .sicon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f9fafb;
}
.menu a .tile svg,
.mrow .tile svg,
.chead .tile svg,
.kl .tile svg {
  color: inherit;
}

/* ============ Suggestion box, requester-type badges, reopen requests ============ */
.kindsw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #eaecf0;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 6px;
}
.kindsw label {
  margin: 0;
  cursor: pointer;
}
.kindsw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.kindsw span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-3);
}
.kindsw input:checked + span {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}
.kindsw input:focus-visible + span {
  outline: 2px solid var(--accent);
}
.kindsw input[value='suggestion']:checked + span svg {
  color: #dc6803;
}
.kindhint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffaeb;
  color: #93370d;
  font-size: 13px;
  margin-top: 8px;
}
.kindhint svg {
  flex: none;
  color: #dc6803;
  margin-top: 1px;
}
.kindhint[hidden],
.prob-only[hidden] {
  display: none;
}
/* requester type: student plain white; the others coloured like priority badges */
.rtb {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: 1px;
}
.rtb.rt-student {
  background: #fff;
  border-color: var(--border);
  color: var(--text-2);
}
.rtb.rt-faculty {
  background: #f4f3ff;
  color: #5925dc;
}
.rtb.rt-staff {
  background: #f0fdf9;
  color: #107569;
}
.rtb.rt-parent {
  background: #fffaeb;
  color: #b54708;
}
.rtb.rt-visitor {
  background: #fdf2fa;
  color: #c11574;
}
.whochips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.whochips label {
  margin: 0;
  cursor: pointer;
}
.whochips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.whochips .rtb {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
}
.whochips input:checked + .rtb {
  opacity: 1;
  font-weight: 600;
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px currentColor;
}
.whochips input:checked + .rtb.rt-student {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--text-2);
}
.whochips input:focus-visible + .rtb {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 767px) {
  .whochips .rtb {
    min-height: 44px;
  }
}
.pill.sugg {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}
.pill.sugg svg {
  color: #dc6803;
}
.pill.reoq {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}
.reoreq {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-color: #fedf89;
  background: #fffcf5;
  padding: 16px 20px;
}
.reo-h {
  display: flex;
  gap: 10px;
  align-items: center;
}
.reo-h b {
  font-weight: 600;
}
.reo-acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.reobar {
  border-color: #fedf89;
  background: #fffcf5;
}
.reobar svg {
  color: #dc6803;
}
.slarow > * {
  min-width: 110px;
}
@media (max-width: 767px) {
  .tk-cols .reoreq {
    order: 0;
  }
}
/* reminders: ticket side card, the Remind me dialog, Home's due list */
.remwhen .rtb {
  background: var(--surface-2, #f2f4f7);
  color: var(--text);
  border: 1px solid var(--border);
}
.remwhen input:checked + .rtb {
  background: #fff6e5;
  color: #93370d;
  border-color: #fec84b;
  box-shadow: none;
}
.remrow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.remrow:first-of-type {
  border-top: 0;
}
.remrow b {
  display: block;
  overflow-wrap: anywhere;
}
.remrow.due b {
  color: #93370d;
}
.remrow > a {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  align-items: baseline;
}
.remrow > a .psub {
  flex-basis: 100%;
}
.rem .remadd {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}
.rembox {
  border-color: #fedf89;
  background: #fffcf5;
  padding: 14px 18px;
  margin: 0 0 12px;
}
.rembox .chead .cnt {
  margin-left: 6px;
}

/* ============ Pastel accents, header More menu, spacing fixes ============ */
:root {
  --pa-blue: #eef4ff;
  --pa-blue-b: #d6e4ff;
  --pa-lav: #f4f2ff;
  --pa-lav-b: #e2dcff;
  --pa-peach: #fff5eb;
  --pa-peach-b: #fde3c7;
  --pa-mint: #edfbf3;
  --pa-mint-b: #cdefdb;
  --pa-rose: #fff1f2;
  --pa-rose-b: #fbd5da;
  --pa-sun: #fffbeb;
  --pa-sun-b: #fbeab5;
  --pa-sky: #eef9ff;
  --pa-sky-b: #cbeafb;
}
/* desktop header: More menu for the set-up screens */
.navmore {
  position: relative;
  order: 2;
  flex: none;
}
.navmore > button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  background: none;
  border-radius: var(--radius-nav);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
}
.navmore > button:hover {
  background: var(--hover);
  color: var(--text);
}
.navmore > button.on {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.navmenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
  padding: 6px;
}
.navmenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
}
.navmenu a:hover,
.navmenu a:focus-visible {
  background: var(--hover);
}
.navmenu a.on {
  background: var(--accent-soft);
  color: var(--accent);
}
.top nav {
  mask-image: none;
  -webkit-mask-image: none;
  padding-right: 2px;
}
@media (max-width: 767px) {
  .navmore {
    display: none;
  }
}

/* Home: each status a soft colour of its own */
.stcard {
  gap: 0;
}
.stcell[data-s='open'] {
  background: var(--pa-blue);
}
.stcell[data-s='in_progress'] {
  background: var(--pa-lav);
}
.stcell[data-s='hold'] {
  background: var(--pa-peach);
}
.stcell[data-s='closed'] {
  background: var(--pa-mint);
}
.stcell[data-s='overdue'] {
  background: var(--pa-rose);
}
.stcell {
  border-left-color: #fff;
}
.stcell:hover {
  filter: brightness(0.98);
}
.stcell.on {
  box-shadow: inset 0 -3px 0 var(--accent);
}
.wk {
  background: var(--pa-sky);
  border-color: var(--pa-sky-b);
}
/* Reports: KPI tiles take their icon's colour family */
.kpi2:has(.t-blue) {
  background: var(--pa-blue);
}
.kpi2:has(.t-green) {
  background: var(--pa-mint);
}
.kpi2:has(.t-amber) {
  background: var(--pa-peach);
}
.kpi2:has(.t-rose) {
  background: var(--pa-rose);
}
.kpi2:has(.t-violet) {
  background: var(--pa-lav);
}
.kpi2:has(.t-slate) {
  background: #f6f7f9;
}
.kpi2 {
  border-color: #fff;
}
/* Attention: a soft header strip per list */
.att-h:has(.t-rose) {
  background: var(--pa-rose);
}
.att-h:has(.t-amber) {
  background: var(--pa-peach);
}
.att-h:has(.t-blue) {
  background: var(--pa-blue);
}
.att-h:has(.t-violet) {
  background: var(--pa-lav);
}
.att-h:has(.t-green) {
  background: var(--pa-mint);
}
/* Ticket page: the issue box and SLA card */
.issue {
  background: var(--pa-blue);
  border-radius: 12px;
  padding: 14px 16px;
}
.card.side.sla {
  background: var(--pa-sun);
  border-color: var(--pa-sun-b);
}
/* Profile stats and points */
.pstats > div:nth-child(1) {
  background: var(--pa-sun);
}
.pstats > div:nth-child(2) {
  background: var(--pa-blue);
}
.pstats > div:nth-child(3) {
  background: var(--pa-mint);
}
.pstats > div:nth-child(4) {
  background: var(--pa-lav);
}
.pstats {
  gap: 8px;
  padding: 12px;
  margin-left: 0;
  margin-right: 0;
}
.pstats > div {
  border-radius: 12px;
  padding: 12px 4px;
}
.ptschip {
  background: var(--pa-sun);
  border-color: var(--pa-sun-b);
}
/* Public pages: soft colour wash behind the content */
body:not(.console) {
  background: radial-gradient(900px 420px at 0 0, #eaf2ff 0, transparent 70%), radial-gradient(700px 380px at 100% 0, #effbf4 0, transparent 70%), var(--bg);
  background-attachment: fixed;
}
/* People: actions on one row on phones */
@media (max-width: 760px) {
  .uact {
    padding-left: 0;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 4px;
  }
  .uact .btn {
    flex: 1 1 auto;
    padding: 6px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}
/* phones: the campus picker fits its name */
@media (max-width: 767px) {
  .top select {
    max-width: 132px;
  }
}
.kpi2:has(.t-teal) {
  background: var(--pa-sky);
}
.att-h:has(.t-teal) {
  background: var(--pa-sky);
}
.kpi2 .tile,
.att-h .tile,
.rembox .tile {
  background: #fff;
}
@media (min-width: 768px) {
  .top nav {
    flex: 0 1 auto;
  }
  .navmore {
    margin-right: auto;
  }
  .top-r {
    margin-left: auto;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .wk {
    flex-basis: 100%;
    padding: 18px 24px;
  }
  .stcard {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .stcell {
    padding: 18px 16px;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .top nav a svg,
  .navmore > button svg {
    display: none;
  }
  .top nav a,
  .navmore > button {
    padding: 8px 9px;
  }
}
/* lighter type: grayscale smoothing (macOS draws subpixel text heavier) and one step lighter bold text */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
b,
strong {
  font-weight: 600;
}
h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-weight: 600;
}
.stcell b,
.kpi2 b {
  font-weight: 600;
}
.tt-req,
.tt-loc {
  font-weight: 400;
}
/* Services: Edit, Deactivate, Delete on each team card */
.svcacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
  align-items: stretch;
}
.svcacts .btn {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}
.btn.danger-solid {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  box-shadow: none;
}
.btn.danger-solid:hover {
  background: #912018;
}
@media (max-width: 767px) {
  .svc:has(.svcacts) {
    flex-wrap: wrap;
  }
  .svcacts {
    flex-direction: row;
    width: 100%;
    padding-left: 58px;
  }
  .svcacts .btn {
    flex: 1;
    min-height: 40px;
  }
}
/* the raise form's choice: stacked option cards, not a side-by-side switch */
.kindsw {
  grid-template-columns: 1fr;
  gap: 10px;
  background: none;
  padding: 0;
  margin-bottom: 10px;
}
.kindsw span {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  min-height: 0;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}
.kindsw span b {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 600;
  font-size: 15px;
}
.kindsw span small {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.4;
}
.kindsw .ks-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pa-rose);
  color: #d92d20;
  flex: none;
}
.kindsw label:nth-child(2) .ks-ic {
  background: var(--pa-sun);
  color: #dc6803;
}
.kindsw input:checked + span {
  border-color: var(--accent);
  background: var(--pa-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
/* food feedback: day and meal pickers, meal settings */
.fpick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.fpick.meals {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.fpick label {
  margin: 0;
}
.fpick .rtb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
  opacity: 1;
}
.fpick .rtb small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-meta);
}
.fpick input:checked + .rtb {
  border-color: var(--accent);
  background: var(--pa-blue);
  box-shadow: none;
}
.mdot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.fpick.meals .rtb {
  display: block;
}
.fpick.meals .rtb small {
  display: block;
}
.mealhd,
.mealrow {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr auto 44px;
  gap: 8px;
  align-items: center;
}
.mealhd {
  margin-top: 10px;
}
.mealrow {
  margin-top: 8px;
}
.mealrow input {
  margin: 0;
}
.mealrow .chk {
  margin: 0;
  font-weight: 400;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .mealhd {
    display: none;
  }
  .mealrow {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .mealrow input[name='mname'] {
    grid-column: 1/-1;
  }
}
.dmgrid td,
.dmgrid th {
  white-space: nowrap;
}
/* Food scores: overall feedback, each meal apart, and complaints apart */
.fsec-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}
.fsec-h h2 {
  margin: 0;
  font-size: 18px;
}
.fsplit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.fsplit .card {
  margin: 0;
}
.fov {
  background: var(--pa-blue);
  border-color: var(--pa-blue-b);
}
.fmeal {
  border-top: 4px solid var(--mc);
}
.fm-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.fm-avg {
  display: block;
  font-size: 28px;
  font-weight: 600;
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
}
.fm-avg.hot {
  color: var(--danger);
}
.fov-n {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.fov-n b {
  color: var(--text);
  font-size: 15px;
}
.sdist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sdist > div {
  display: grid;
  grid-template-columns: 28px 1fr 34px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
}
.sdist i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(16, 24, 40, 0.07);
  overflow: hidden;
}
.sdist i b {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.sdist em {
  font-style: normal;
  text-align: right;
}
.fm-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ftip {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--pa-rose);
  border: 1px solid var(--pa-rose-b);
  color: #912018;
}
.fcomp {
  margin: 0;
}
.fc-n {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.fc-n > div {
  display: flex;
  flex-direction: column;
}
.fc-n b {
  font-size: 26px;
  font-weight: 600;
}
.fc-n b.hot {
  color: var(--danger);
}
.fc-n span {
  font-size: 12.5px;
  color: var(--text-3);
}
.fc-n .btn {
  margin-left: auto;
}
.fcomp .two {
  margin-top: 14px;
  gap: 20px;
}
@media (max-width: 767px) {
  .fc-n {
    gap: 16px;
  }
  .fc-n .btn {
    margin-left: 0;
    width: 100%;
  }
}
/* Food scores: keywords from written reviews */
.fkw {
  margin-top: 12px;
}
.kwcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.kw {
  border: 1px solid var(--pa-lav-b);
  background: var(--pa-lav);
  color: #4a1fb8;
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: var(--w, 14px);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}
.kw span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
}
.kw:hover {
  filter: brightness(0.97);
}
.kw.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.kw.on span {
  color: #dbe4ff;
}
.kwex {
  margin-top: 12px;
}
.kwex .brow {
  padding: 8px 0;
  border-top: 1px solid var(--divider);
}
.fm-kw {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
}
/* Food scores: one meal's page */
.fmeal[data-meal] {
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.1s;
}
.fmeal[data-meal]:hover {
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}
.fmeal[data-meal]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.fm-more {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mv-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  font-weight: 600;
}
.mv-h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--mc);
}
.mv-h h2 {
  margin: 0;
  font-size: 20px;
}
.mv-sum {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.6fr;
  gap: 12px;
  margin-top: 12px;
}
.mv-sum .card {
  margin: 0;
}
.mv-list {
  margin-top: 12px;
}
.mv-f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mv-f .chk {
  margin: 0;
  font-weight: 400;
}
.mv-row {
  padding: 12px 0;
  border-top: 1px solid var(--divider);
}
.mv-st {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mv-st b {
  color: #f79009;
  letter-spacing: 1px;
}
.mv-st b.hot {
  color: #d92d20;
}
.mv-st b span {
  color: #e4e7ec;
}
.mv-c {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text);
}
@media (max-width: 860px) {
  .mv-sum {
    grid-template-columns: 1fr;
  }
}
.kindsw[hidden] {
  display: none;
}
/* Food: feedback card first (yellow star), complaint second (red) */
.kindsw.foodkind label:nth-child(1) .ks-ic {
  background: var(--pa-sun);
  color: #dc6803;
}
.kindsw.foodkind label:nth-child(2) .ks-ic {
  background: var(--pa-rose);
  color: #d92d20;
}
.kindsw.foodkind + form.card {
  margin-top: 4px;
}
/* Food settings: feedback tag editor */
.tagedit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  min-height: 56px;
}
.tagc {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px 2px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--input-border);
}
.tagc b {
  font-weight: 500;
  padding: 4px 4px;
}
.tagc button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--icon-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}
.tagc button:hover {
  background: var(--hover);
  color: var(--text);
}
.tagc .tg-x:hover {
  background: var(--pa-rose);
  color: var(--danger);
}
.tagadd {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.tagadd input {
  flex: 1;
  margin: 0;
}
.tagadd .btn {
  flex: none;
}
/* Fair Score */
.fb-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.fb-team {
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  text-overflow: ellipsis;
}
.fbrow {
  align-items: center;
}
.fb-n {
  flex: 1;
  min-width: 0;
}
.fb-c {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.fchip2 {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--pa-blue);
  color: var(--text-3);
}
.fchip2 b {
  color: var(--text);
  font-weight: 600;
}
.fb-s {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  min-width: 56px;
  text-align: right;
}
.fb-low {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
}
.fmath {
  margin: 10px 0 6px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.fmath li {
  margin-bottom: 4px;
}
.fme-r {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
}
.fme-r i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--divider-soft);
  overflow: hidden;
}
.fme-r i b {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.fme-r em {
  font-style: normal;
  text-align: right;
  font-weight: 600;
}
.fme-why {
  margin-top: 10px;
}
.brief-now {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.brief-now > div {
  flex: 1 1 300px;
}
/* reply: ready-made sentences and the "Check before sending" preview */
.phr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.phr:empty {
  display: none;
}
.phc {
  border: 1px solid var(--pa-blue-b);
  background: var(--pa-blue);
  color: #1e3a8a;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}
.phc:hover {
  background: #dfe9ff;
}
dialog.sheet.prev {
  width: min(640px, 96vw);
  max-width: 640px;
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
}
.evtext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pv-h {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.pv-h h2 {
  margin: 0 0 2px;
}
.pv-tabs {
  display: flex;
  background: #f2f4f7;
  border-radius: 12px;
  padding: 4px;
  margin: 12px 0 8px;
}
.pv-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 8px;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.pv-tabs .on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}
.pv-fix {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 8px 0;
  line-height: 1.6;
}
.pv-fix b {
  color: #067647;
}
.pv-fix svg {
  color: #067647;
}
.pv-fix del {
  color: #d92d20;
  background: #fef3f2;
  text-decoration: line-through;
  padding: 0 2px;
  border-radius: 3px;
}
.pv-fix ins {
  color: #067647;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
}
.pv-mail {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 12px;
}
.pv-sub {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-3);
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
}
.pv-mail iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
  background: #f3f4fb;
}
.pv-acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  position: sticky;
  bottom: -18px;
  background: #fff;
  padding: 10px 0 4px;
}
.pv-acts .btn {
  flex: 1;
}
.pv-acts .primary {
  flex: 2;
}
.typed {
  margin-top: 4px;
  font-style: italic;
}
.brandf {
  margin: 10px 0 14px;
}
/* Notice board */
.nboard {
  padding: 14px 16px;
}
.nb-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.nb-h b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.nbchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}
.nbchips button {
  font: inherit;
  font-size: 12.5px;
  min-height: 36px;
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid var(--input-border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.nbchips button.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.ntrow {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-top: 1px solid var(--divider);
  color: var(--text);
  text-decoration: none;
}
.ntrow:first-of-type {
  border-top: 0;
}
.ntrow > div {
  flex: 1;
  min-width: 0;
}
.ntrow b {
  display: block;
  margin-top: 3px;
  font-weight: 600;
}
.ntrow .chev {
  color: var(--chevron);
}
.ntrow.imp {
  background: var(--pa-sun);
  border: 1px solid var(--pa-sun-b);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.ntag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pa-blue);
  color: var(--accent);
}
.ntag.imp {
  background: #fef0c7;
  color: #93370d;
  border: 1px solid #fec84b;
}
.ntcard {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
  background: var(--surface);
}
.ntcard.imp {
  background: var(--pa-sun);
  border-color: var(--pa-sun-b);
}
.ntcard h2,
.ntcard h3 {
  margin: 6px 0 4px;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.ntbody {
  margin-top: 8px;
  color: var(--text-2);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.ntbody a {
  color: var(--accent);
  text-decoration: underline;
}
.ntrow b,
.ntadm h3 {
  overflow-wrap: anywhere;
}
.nb-h a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.ntimg {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 10px auto 0;
  border-radius: 12px;
}
.ntfile {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 8px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
}
.ntfile span:nth-child(2) {
  flex: 1;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.ntfile .ft {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border-radius: 5px;
  padding: 3px 6px;
}
.ft.pdf {
  background: #d92d20;
}
.ft.xls {
  background: #079455;
}
.ft.doc {
  background: #1570ef;
}
dialog.ngate {
  width: min(520px, 96vw);
  max-height: 92vh;
  overflow: auto;
}
dialog.ngate h2 {
  margin: 2px 0 10px;
  font-size: 19px;
}
.btn.ok {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}
.ngate .btn {
  width: 100%;
  margin-top: 8px;
}
.ntadm h3 {
  margin: 6px 0 2px;
  font-size: 16px;
}
.ntadm.imp {
  border-color: var(--pa-sun-b);
  background: var(--pa-sun);
}
.ntacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ntacts .btn {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 13px;
}
.ntoff {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--pa-sun);
  border: 1px solid var(--pa-sun-b);
  font-size: 13px;
  line-height: 1.4;
}
.ntoff svg {
  flex: none;
  margin-top: 2px;
}
.ntsaved {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--pa-mint, #ecfdf3);
  line-height: 1.5;
}
.ntfrow > span,
.ntfrow > button:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}
.ntfrow > button:last-child {
  flex: none;
}
.ntfrow {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
}
.ntimp {
  background: var(--pa-sun);
  border: 1px solid var(--pa-sun-b);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}
dialog.ngate h2:focus {
  outline: none;
}
dialog .msheet-x {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: #f2f4f7;
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
dialog .msheet-x:hover {
  background: #e4e7ec;
}
.sechead .btn {
  flex: none;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .sechead {
    flex-wrap: wrap;
    gap: 8px;
  }
}
/* Notices | Policies switch on the staff Notices page */
.nkind {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--input-border);
  margin: 0 0 12px;
}
.nkind button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 0;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}
.nkind button.on {
  background: var(--ink);
  color: #fff;
}
.nkind .cnt {
  font-size: 11.5px;
  opacity: 0.8;
}
.polbox {
  margin: 0 0 14px;
}
/* a notice / policy shared in a reply: on the ticket, in the update form and in the picker */
.shrd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-top: 8px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.shrd > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.shrd small {
  color: var(--text-2);
  font-size: 11.5px;
}
.shrd b {
  font-size: 14px;
}
.shrd .msheet-x {
  width: 28px;
  height: 28px;
}
#shrow {
  margin-top: 8px;
}
#shrow .btn {
  margin-top: 8px;
}
.shpick {
  max-width: 560px;
}
.shopt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
}
.shopt > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.shopt small {
  color: var(--text-2);
  font-size: 12px;
}
.shopt:disabled {
  opacity: 0.55;
  cursor: default;
}
/* Department ranking: who is in each team (admins only) */
.dmem {
  margin-top: 8px;
  font-size: 13px;
}
.dmem summary {
  cursor: pointer;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 4px 10px;
  border: 1px solid var(--input-border);
  border-radius: 99px;
}
.dmem summary::-webkit-details-marker {
  display: none;
}
.dmem[open] summary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.dm {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 2px;
  border-bottom: 1px solid var(--divider);
}
.dm:last-child {
  border-bottom: 0;
}
.dm i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d5dd;
  flex: 0 0 8px;
}
.dm.on i {
  background: var(--ok);
}
.dm b {
  font-size: 13.5px;
}
.fb-lowm {
  margin-top: 8px;
}
/* people ranked inside a department */
.dm {
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 8px 2px;
}
.dmn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dmr {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: #f2f4f7;
  color: var(--text-2);
}
.dmr.r1 {
  background: #fef3c7;
  color: #92400e;
}
.dmr.r2 {
  background: #e5e7eb;
  color: #374151;
}
.dmr.r3 {
  background: #fde7d7;
  color: #9a3412;
}
.dms {
  font-size: 15px;
  color: var(--brand);
}
.dmu {
  padding: 8px 2px 0;
}
/* ---------- Canteen (canteen.js) ---------- */
.cn-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fef3c7;
  color: #78350f;
  margin: 8px 0;
}
.cn-banner.on {
  background: #dcfce7;
  color: #14532d;
}
.cn-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.cn-cats {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg, #f6f7fb);
  padding-top: 8px;
}
.cn-cat h2 {
  font-size: 16px;
  margin: 18px 0 4px;
}
.cn-cat {
  scroll-margin-top: 56px;
}
.cn-list {
  padding: 4px 14px;
}
.cn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cn-item:last-child {
  border-bottom: 0;
}
.cn-item.off {
  opacity: 0.55;
}
.cn-item.gone {
  opacity: 0.45;
}
.cn-in {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.cn-price {
  font-weight: 600;
  color: var(--brand);
}
.cn-veg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 1.5px solid #16a34a;
  border-radius: 3px;
  position: relative;
}
.cn-veg::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: #16a34a;
}
.cn-veg.nv {
  border-color: #b91c1c;
}
.cn-veg.nv::after {
  background: #b91c1c;
}
.cn-add {
  min-height: 36px;
  padding: 6px 16px;
}
.cn-so {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.cn-step {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--brand);
  border-radius: 12px;
  overflow: hidden;
}
.cn-step button {
  border: 0;
  background: var(--brand-2);
  color: var(--brand);
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.cn-step b {
  min-width: 28px;
  text-align: center;
}
.cn-wrap {
  padding-bottom: 96px;
}
.cn-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg, #f6f7fb) 30%);
  z-index: 20;
}
.cn-bar .btn {
  max-width: 528px;
  margin: 0 auto;
  display: flex;
}
.cn-tot {
  font-size: 15px;
}
.cn-otp {
  margin: 14px 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--brand-2);
}
.cn-token {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cn-token b {
  font: 700 56px/1.1 var(--mono, monospace);
  letter-spacing: 2px;
  color: var(--brand);
}
.cn-token.s-ready {
  background: #dcfce7;
  border-color: #86efac;
}
.cn-token.s-ready b {
  color: #15803d;
}
.cn-token.s-rejected b,
.cn-token.s-cancelled b {
  color: var(--muted);
  text-decoration: line-through;
}
.cn-stat {
  font-weight: 700;
  font-size: 16px;
}
.cn-token p {
  margin: 6px 0 0;
}
.cn-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 14px 0;
  gap: 4px;
}
.cn-steps li {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.cn-steps i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  margin-bottom: 6px;
}
.cn-steps li.done i,
.cn-steps li.now i {
  background: var(--brand);
}
.cn-steps li.now {
  color: var(--brand);
}
.cn-tk {
  display: inline-block;
  font: 700 15px var(--mono, monospace);
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--brand-2);
  color: var(--brand);
  flex-shrink: 0;
}
.cn-tk.sm {
  font-size: 12px;
  padding: 2px 6px;
}
.cn-tk.s-ready {
  background: #dcfce7;
  color: #15803d;
}
.cn-tk.s-placed {
  background: #fef3c7;
  color: #92400e;
}
.cn-tk.s-rejected,
.cn-tk.s-cancelled {
  background: #f3f4f6;
  color: #6b7280;
}
.cn-openbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-left: 4px solid #f59e0b;
}
.cn-openbar.on {
  border-left-color: #16a34a;
}
.cn-openbar > div {
  min-width: 0;
  flex: 1;
}
.cn-link {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  word-break: break-all;
}
.cn-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .cn-board {
    grid-template-columns: 1fr;
  }
}
.cn-col h3 {
  font-size: 15px;
  margin: 8px 0;
}
.cn-col .cnt {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  border-radius: 99px;
  background: var(--brand-2);
  color: var(--brand);
  font-size: 12px;
  padding: 1px 6px;
}
.cn-oc {
  margin: 0 0 12px;
  padding: 14px;
}
.cn-oc.s-placed {
  border-left: 4px solid #f59e0b;
}
.cn-oc.s-accepted {
  border-left: 4px solid var(--brand);
}
.cn-oc.s-ready {
  border-left: 4px solid #16a34a;
}
.cn-oh {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cn-oh > div {
  flex: 1;
  min-width: 0;
}
.cn-amt {
  white-space: nowrap;
}
.cn-lines {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 14px;
}
.cn-lines li {
  padding: 2px 0;
}
.cn-note {
  margin-top: 6px;
  font-size: 13px;
  background: #fffbeb;
  border-radius: 8px;
  padding: 6px 8px;
}
.cn-oc .fact .btn {
  flex: 1;
}
.cn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.cn-ch {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cn-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cn-sw {
  font-size: 13px;
  margin-right: 4px;
  white-space: nowrap;
}
.cn-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.cn-kpis .card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cn-kpis b {
  font-size: 22px;
}
.cn-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  margin-top: 12px;
}
.cn-bars div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}
.cn-bars i {
  display: block;
  width: 100%;
  max-width: 28px;
  background: var(--brand);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.cn-bars span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.cn-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 760px) {
  .cn-two {
    grid-template-columns: 1fr;
  }
}
.cn-mgrs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.cn-find {
  min-height: 40px;
  max-width: 170px;
  margin: 0;
}
.cn-hrs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  margin-top: 4px;
  opacity: 0.9;
}
.cn-banner > span {
  display: flex;
  flex-direction: column;
}
.cn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  margin: 10px 0;
  color: var(--muted);
}
.cn-search input {
  border: 0;
  background: transparent;
  flex: 1;
  min-height: 44px;
  margin: 0;
  padding: 0;
  outline: 0;
  box-shadow: none;
}
.cn-pop {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border-radius: 99px;
  padding: 1px 7px;
  vertical-align: 1px;
}
.cn-picks {
  margin: 12px 0;
}
.cn-picks > div {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 4px;
  scrollbar-width: none;
}
.cn-picks > div::-webkit-scrollbar {
  display: none;
}
.cn-pick {
  flex: 0 0 auto;
  min-width: 130px;
  max-width: 170px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cn-pick span {
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}
.cn-pick:disabled {
  opacity: 0.5;
}
.cn-livecard,
.cn-again {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
}
.cn-livecard > span:nth-child(2),
.cn-again > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cn-livecard.s-ready {
  border-color: #86efac;
  background: #f0fdf4;
}
.cn-again span.small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cn-eta {
  font-weight: 600;
  color: var(--brand);
}
.cn-hgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.cn-hgrid label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 4px;
}
@media (max-width: 560px) {
  .cn-hgrid {
    grid-template-columns: 1fr 1fr;
  }
}
.cn-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0;
}
@media (max-width: 560px) {
  .cn-openbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cn-openbar .btn,
  .cn-find {
    width: 100%;
    max-width: none;
  }
  .cn-oc .fact {
    flex-wrap: wrap;
  }
  .cn-acts .cn-sw {
    font-size: 12px;
  }
  .cn-item .cn-in b {
    word-break: break-word;
  }
  .cn-token b {
    font-size: 48px;
  }
}
.cn-bar {
  padding-right: 84px;
}
@media (min-width: 700px) {
  .cn-bar {
    padding-right: 16px;
  }
}
.cn-set {
  margin: 12px 0;
}
.cn-set > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.cn-set > summary .muted {
  font-weight: 400;
  flex-basis: 100%;
}
.cn-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
}
.cn-filters::-webkit-scrollbar {
  display: none;
}
.cn-filters .tab {
  flex-shrink: 0;
}
.cn-cat h2 .muted {
  font-weight: 500;
}
.cn-qp {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  color: var(--brand);
  font-size: 14px;
  margin: 0;
}
.cn-qp input {
  width: 72px;
  min-height: 32px;
  padding: 4px 8px;
  margin: 0;
  font-weight: 600;
}
.cn-qr {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .cn-qr {
    width: 160px;
    height: 160px;
    align-self: center;
  }
}
.cn-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}
.cn-opt {
  margin: 0;
  cursor: pointer;
}
.cn-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cn-opt > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--card);
}
.cn-opt > span svg {
  color: var(--brand);
}
.cn-opt small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.cn-opt input:checked + span {
  border-color: var(--brand);
  background: var(--brand-2);
  box-shadow: 0 0 0 2px var(--brand-2);
}
.cn-opt input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.cn-pay {
  border: 1px solid #fde68a;
}
.cn-pay.ok {
  border-color: #86efac;
  background: #f0fdf4;
}
.cn-pay > b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.cn-pay p {
  margin: 8px 0;
}
.cn-pay .btn.big {
  margin: 10px 0;
  text-decoration: none;
}
.cn-qrpay {
  margin: 6px 0 12px;
}
.cn-qrpay summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}
.cn-qrpay img {
  display: block;
  margin: 10px auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.cn-qrpay div {
  text-align: center;
}
.cn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cn-b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 99px;
  padding: 2px 9px;
  background: #f3f4f6;
  color: #374151;
}
.cn-b.unpaid {
  background: #fef3c7;
  color: #92400e;
}
.cn-b.claimed {
  background: #dbeafe;
  color: #1e40af;
}
.cn-b.paid {
  background: #dcfce7;
  color: #166534;
}
.cn-b.del {
  background: #ede9fe;
  color: #5b21b6;
}
.cn-board {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
  .cn-board {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .cn-board {
    grid-template-columns: 1fr;
  }
}
.cn-tk.s-out {
  background: #ede9fe;
  color: #5b21b6;
}
.cn-oc.s-out {
  border-left: 4px solid #7c3aed;
}
.cn-token.s-out b {
  color: #6d28d9;
}
.cn-addr {
  margin: 8px 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--brand-2);
}
.cn-hgrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cn-opt {
  position: relative;
  overflow: hidden;
}
.cn-opt input {
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
}
.cn-oos {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #991b1b;
  background: #fee2e2;
  border-radius: 99px;
  padding: 1px 7px;
  vertical-align: 1px;
}
.cn-book {
  min-height: 36px;
  padding: 6px 14px;
  border-color: #fca5a5;
  color: #991b1b;
  background: #fef2f2;
}
.cn-sum {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 6px;
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.cn-sum span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cn-sum small {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cn-sum b {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.cn-sum .mono {
  font-family: var(--mono);
}
.cn-warn {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 13px;
  color: #991b1b;
  background: #fef2f2;
  border-radius: 8px;
  padding: 6px 8px;
}
.cn-itab,
.cn-ktab {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}
.cn-itab th {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.cn-itab td {
  padding: 5px 0;
  border-bottom: 1px solid var(--divider, #eef0f3);
}
.cn-itab th:nth-child(n + 2),
.cn-itab td:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
  padding-left: 8px;
}
.cn-itab tfoot td {
  font-weight: 700;
  border: 0;
}
.cn-kh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.cn-kots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}
.cn-kot {
  margin: 0;
  border-top: 6px solid #f59e0b;
}
.cn-kot.cooking {
  border-top-color: var(--brand);
}
.cn-kot.late .cn-age {
  background: #fee2e2;
  color: #991b1b;
}
.cn-koth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cn-koth b {
  font: 700 20px var(--mono);
  flex: 1;
}
.cn-koth span {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.cn-age {
  background: #f3f4f6;
  border-radius: 99px;
  padding: 2px 8px;
}
.cn-ktab td {
  padding: 6px 0;
  font-size: 16px;
  border-bottom: 1px dashed var(--line);
}
.cn-ktab td.q {
  font: 700 20px var(--mono);
  width: 44px;
  color: var(--brand);
}
.cn-kot .fact .btn {
  flex: 1;
}
.cn-deal {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 7px;
  vertical-align: 1px;
  background: #dcfce7;
  color: #166534;
}
.cn-deal.flash {
  background: #fee2e2;
  color: #b91c1c;
}
.cn-deal.eod {
  background: #e0e7ff;
  color: #3730a3;
}
.cn-fast {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  border-radius: 99px;
  padding: 1px 7px;
  vertical-align: 1px;
}
.cn-price s {
  font-weight: 400;
  margin-right: 2px;
}
.cn-offf.on {
  background: #b91c1c;
}
.cn-popup {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  max-width: 420px;
  margin: 0 auto;
  z-index: 60;
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  border-top: 5px solid #dc2626;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: cnpop 0.3s ease-out;
}
.cn-popup.eod {
  border-top-color: #4f46e5;
}
.cn-popup > b {
  font-size: 18px;
}
.cn-pi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.cn-pi span {
  display: flex;
  justify-content: space-between;
}
.cn-px {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
}
@keyframes cnpop {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cn-popup {
    animation: none;
  }
}
.cn-add {
  white-space: nowrap;
}
.cn-item > [id^='st-'] {
  flex-shrink: 0;
}
.cn-in {
  flex: 1;
}
.cn-bars em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
  white-space: nowrap;
}
.cn-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .cn-three {
    grid-template-columns: 1fr;
  }
}
.cn-three .card {
  margin: 12px 0 0;
}
.cn-donut {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.cn-donut svg {
  flex-shrink: 0;
}
.cn-donut ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.cn-donut li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.cn-donut li i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cn-donut li b {
  margin-left: auto;
}
.cn-hb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.cn-hbr {
  display: grid;
  grid-template-columns: minmax(70px, 34%) 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.cn-hbr .l {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cn-hbr .t {
  background: #f1f5f9;
  border-radius: 6px;
  height: 12px;
  overflow: hidden;
}
.cn-hbr .t i {
  display: block;
  height: 100%;
  border-radius: 6px;
}
.cn-three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cn-pos {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 860px) {
  .cn-pos {
    grid-template-columns: 1fr;
  }
}
.cn-posg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.cn-pb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.cn-pb span {
  font-weight: 600;
  color: var(--brand);
  font-size: 14px;
}
.cn-pb:active {
  transform: scale(0.97);
}
.cn-pb.off {
  opacity: 0.45;
  cursor: default;
}
.cn-pb .cn-deal {
  font-size: 10px;
}
.cn-posb {
  position: sticky;
  top: 12px;
  margin: 0;
}
.cn-posb .btn.big {
  margin-top: 12px;
}
.cn-posb > .btn:not(.big) {
  width: 100%;
  margin-top: 8px;
}
.cn-posb .cn-item {
  gap: 8px;
}
.cn-posb .cn-item > span:first-child {
  flex: 1;
  min-width: 0;
}
.cn-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.cn-change {
  font-size: 16px;
  margin: 4px 0;
}
.cn-change b {
  font-size: 20px;
  color: #15803d;
}
.cn-shift {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
}
.cn-shift b {
  font-size: 15px;
}
.cn-prow {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
}
.cn-prow .btn {
  min-height: 34px;
  padding: 4px 12px;
  font-size: 13px;
}
.cn-b.ctr {
  background: #cffafe;
  color: #155e75;
}
.cn-staff {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.cn-srow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.cn-srow > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cn-srow select {
  width: auto;
  min-width: 150px;
  margin: 0;
}
@media (max-width: 480px) {
  .cn-srow {
    flex-wrap: wrap;
  }
  .cn-srow select {
    width: 100%;
  }
}
.cn-opt.dis {
  opacity: 0.45;
  cursor: not-allowed;
}
.bnav[hidden] {
  display: none !important;
}
.cn-stock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 55vh;
  overflow: auto;
  margin: 8px 0;
}
.cn-posbar {
  display: none;
}
@media (max-width: 860px) {
  .cn-posbar:not([hidden]) {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 30;
    background: var(--brand);
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(30, 75, 143, 0.35);
    text-decoration: none;
  }
}
.cn-upid {
  max-width: 380px;
}
.cn-upiqr {
  display: block;
  margin: 10px auto;
  width: 240px;
  height: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cn-upid ol {
  padding-left: 18px;
  margin: 8px 0;
}
/* Counter (POS): categories on the left, Veg / Non-veg items in the middle, the bill on the right */
.cn-pos3 {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1180px) {
  .cn-pos3 {
    grid-template-columns: 170px minmax(0, 1fr) 320px;
  }
}
.cn-poscats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 140px);
  overflow: auto;
}
.cn-poscats button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}
.cn-poscats button b {
  font-size: 12px;
  color: var(--muted);
  background: #f1f5f9;
  border-radius: 99px;
  padding: 1px 8px;
  font-weight: 600;
}
.cn-poscats button:hover {
  background: #f8fafc;
}
.cn-poscats button.on {
  background: var(--brand);
  color: #fff;
}
.cn-poscats button.on b {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.cn-pss {
  margin-bottom: 14px;
}
.cn-pss h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 6px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #16a34a;
}
.cn-pss h3.nv {
  border-bottom-color: #b91c1c;
}
.cn-pb {
  position: relative;
}
.cn-pb .cn-veg {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}
.cn-pb b {
  padding-right: 18px;
}
.cn-pb.v {
  border-left: 3px solid #16a34a;
}
.cn-pb.nv {
  border-left: 3px solid #b91c1c;
}
@media (max-width: 860px) {
  .cn-pos3 {
    grid-template-columns: 1fr;
  }
  .cn-poscats {
    flex-direction: row;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 6;
    max-height: none;
    padding: 6px;
    scrollbar-width: none;
  }
  .cn-poscats::-webkit-scrollbar {
    display: none;
  }
  .cn-poscats button {
    flex-shrink: 0;
    min-height: 40px;
  }
  .cn-posb {
    position: static;
  }
}
/* item photos (screens only) */
.cn-th {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f1f5f9;
}
.cn-th.lg {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}
.cn-th.sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 6px;
}
.cn-in .cn-th.lg {
  margin-right: 2px;
}
.cn-pbimg {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 4px;
  background: #f1f5f9;
}
.cn-phb {
  width: 44px;
  height: 44px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color: var(--muted);
}
.cn-phb .cn-th {
  width: 42px;
  height: 42px;
}
.cn-phprev {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: #f8fafc;
  border-radius: 12px;
  margin: 8px 0;
}
.cn-phprev img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
}
/* the live receipt */
.cn-rc {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ck);
}
.cn-rcband {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  background: linear-gradient(110deg, var(--ck) 0%, var(--ck) 40%, rgba(255, 255, 255, 0.55) 50%, var(--ck) 60%, var(--ck) 100%);
  background-size: 250% 100%;
  animation: cnband 2.4s linear infinite;
}
.cn-rcband b {
  font-size: 22px;
  letter-spacing: 0.12em;
}
@keyframes cnband {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}
.cn-rcbody {
  padding: 14px;
  position: relative;
}
.cn-rcrow {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.cn-rclive {
  color: #15803d;
  font-weight: 700;
  animation: cnblink 1s steps(2) infinite;
}
.cn-rclive.off {
  color: #b91c1c;
  animation: none;
}
@keyframes cnblink {
  50% {
    opacity: 0.35;
  }
}
.cn-rcbig {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
  text-align: center;
}
.cn-rcbig small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}
.cn-rcbig b {
  font-size: 22px;
  color: var(--ck);
}
.cn-rcclock {
  text-align: center;
  font: 700 30px var(--mono);
  letter-spacing: 0.06em;
  margin: 4px 0 10px;
}
.cn-rcitems div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 14px;
}
.cn-rcitems .t {
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 6px;
  font-weight: 700;
}
.cn-rcstamp {
  position: absolute;
  right: 12px;
  top: 46%;
  transform: rotate(-14deg);
  border: 3px solid #b91c1c;
  color: #b91c1c;
  font: 800 22px var(--mono);
  padding: 4px 10px;
  border-radius: 8px;
  opacity: 0.85;
}
.cn-rchelp {
  padding: 0 14px 12px;
}
@media (prefers-reduced-motion: reduce) {
  .cn-rcband {
    animation-duration: 6s;
  }
}
.cn-todayck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ck) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--ck) 30%, transparent);
  max-width: 100%;
}
.cn-todayck i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ck);
  flex: none;
}
.cn-todayck span {
  font-size: 12px;
  color: var(--muted);
}
.cn-todayck b {
  color: var(--ck);
  font-size: 13px;
}
/* the canteen's open/closed bar: name and state on one line, the note under it */
.cn-obh {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.cn-obt {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.cn-obi {
  display: inline-flex;
  flex: none;
  margin-top: 1px;
  color: #b45309;
}
.cn-openbar.on .cn-obi {
  color: #16a34a;
}
.cn-obn {
  font-size: 15px;
  line-height: 1.3;
  min-width: 0;
}
.cn-obs {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}
.cn-openbar.on .cn-obs {
  background: #dcfce7;
  color: #166534;
}
.cn-pb .cn-veg {
  width: 16px;
  height: 16px;
  z-index: 2;
  background: #fff;
  box-sizing: border-box;
  flex: none;
  top: 8px;
  right: 8px;
  box-shadow: 0 0 0 2px #fff;
}
/* Counter tiles, redesigned: picture area, name, price with +, veg mark on the corner, quantity badge */
.cn-posg {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.cn-pb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-left-width: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    border-color 0.12s;
}
.cn-pb.v,
.cn-pb.nv {
  border-left-width: 1px;
}
.cn-pb:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.cn-pb:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.cn-pb.in {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-2);
}
.cn-pbm {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}
.cn-pb.nv .cn-pbm {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}
.cn-pbm img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.cn-pbl {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 34px var(--sans);
  color: #15803d;
  opacity: 0.55;
}
.cn-pb.nv .cn-pbl {
  color: #b91c1c;
}
.cn-pb .cn-pbm .cn-veg {
  position: absolute;
  top: 8px;
  left: 8px;
  right: auto;
  z-index: 2;
  width: 16px;
  height: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.cn-pbq {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 99px;
  padding: 2px 9px;
  box-shadow: 0 2px 6px rgba(30, 75, 143, 0.35);
}
.cn-pbq:empty {
  display: none;
}
.cn-pbdeal {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 8px;
}
.cn-pbso {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: #991b1b;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}
.cn-pbt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  text-align: left;
}
.cn-pbt b {
  font-size: 14px;
  line-height: 1.25;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cn-pbp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.cn-pbp > span {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.cn-pbp s {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.cn-pbp i {
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-2);
  color: var(--brand);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.cn-pb:hover:not(:disabled) .cn-pbp i {
  background: var(--brand);
  color: #fff;
}
.cn-pb.off {
  opacity: 1;
  cursor: not-allowed;
}
.cn-pb.off .cn-pbt {
  opacity: 0.55;
}
.cn-pss h3 {
  border: 0;
  padding: 0;
  margin: 4px 0 10px;
}
.cn-pssl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px 5px 8px;
  border-radius: 99px;
  background: #ecfdf5;
  color: #166534;
}
.cn-pss h3.nv .cn-pssl {
  background: #fef2f2;
  color: #991b1b;
}
.cn-pssl b {
  background: #fff;
  border-radius: 99px;
  padding: 0 7px;
  font-size: 12px;
}
@media (max-width: 480px) {
  .cn-posg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cn-pbl {
    font-size: 28px;
  }
}
/* tiles: undo the older blue span rule, then set each part's own colour */
.cn-pb span {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}
.cn-pb.v,
.cn-pb.nv {
  border-left-color: var(--line);
}
.cn-pb.in {
  border-color: var(--brand);
}
.cn-pb .cn-pbt b {
  color: var(--ink);
}
.cn-pb .cn-pbp > span {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.cn-pb .cn-pbl {
  color: #15803d;
  font-size: 34px;
  font-weight: 700;
}
.cn-pb.nv .cn-pbl {
  color: #b91c1c;
}
.cn-pb .cn-pbq {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.cn-pb .cn-pbdeal {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.cn-pb .cn-pbso {
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
}
.cn-pb.off .cn-pbl {
  display: none;
}
.cn-rcband b {
  font-size: 18px;
  letter-spacing: 0.04em;
  text-align: center;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* emoji in place of a missing photo */
.cn-pb .cn-pbl {
  font-size: 44px;
  opacity: 1;
  filter: saturate(1.05);
}
.cn-pb.off .cn-pbl {
  display: grid;
  opacity: 0.35;
}
.cn-emo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f1f5f9;
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.cn-mic {
  position: relative;
  display: inline-flex;
}
.cn-mic .cn-emo {
  display: none;
}
/* phones: no picture area, a compact row with the emoji (photos are for bigger screens) */
@media (max-width: 600px) {
  .cn-mic .cn-th {
    display: none;
  }
  .cn-mic .cn-emo {
    display: grid;
  }
  .cn-emo {
    width: 44px;
    height: 44px;
    font-size: 24px;
    border-radius: 12px;
  }
  .cn-posg {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cn-pb {
    flex-direction: row;
    align-items: center;
    border-radius: 14px;
  }
  .cn-pbm {
    flex: none;
    width: 52px;
    height: 52px;
    aspect-ratio: auto;
    margin: 8px 0 8px 8px;
    border-radius: 12px;
  }
  .cn-pbm img {
    display: none;
  }
  .cn-pb .cn-pbl {
    font-size: 26px;
  }
  .cn-pb .cn-pbm .cn-veg {
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
  }
  .cn-pb .cn-pbq {
    top: auto;
    bottom: -6px;
    right: -6px;
    font-size: 11px;
    padding: 1px 6px;
  }
  .cn-pb .cn-pbdeal {
    display: none;
  }
  .cn-pbso {
    font-size: 9px !important;
  }
  .cn-pbt {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
  }
  .cn-pbt b {
    -webkit-line-clamp: 2;
  }
  .cn-pbp {
    gap: 10px;
  }
}
.guidelink {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 4px 0;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.guidelink:hover {
  color: var(--brand);
}
.guidelink span {
  flex: 1;
}
.guidelink svg {
  flex-shrink: 0;
}
/* canteen staff setup: search, filters, per-person features */
.cn-stf {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.cn-srow2 {
  border-bottom: 1px solid var(--line);
}
.cn-srow2 .cn-srow {
  border: 0;
}
.cn-feat {
  margin: 0 0 10px;
}
.cn-feat summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  padding: 2px 0;
}
.cn-fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 4px 14px;
  margin: 8px 0;
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
}
.cn-fgrid .chk {
  font-size: 13px;
  margin: 0;
}
.cn-fgroup {
  margin: 8px 0 0;
}
.cn-fgh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin: 0 2px -2px;
}
.cn-fgh .chk {
  margin: 0;
  font-size: 12.5px;
}
.cn-fgroup .cn-fgrid {
  margin-top: 4px;
}
.cn-feat .btn {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 12.5px;
}
/* inventory */
.cn-invl {
  padding: 4px 14px;
}
.cn-inv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cn-inv:last-of-type {
  border-bottom: 0;
}
.cn-invn {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cn-invq {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cn-invq b {
  font-size: 18px;
}
.cn-invq > span:first-of-type {
  color: var(--muted);
  font-size: 13px;
}
.cn-inv.low .cn-invq b {
  color: #b45309;
}
.cn-inv.out .cn-invq b {
  color: #b91c1c;
}
.cn-inva {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cn-inva .btn {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 13px;
}
@media (max-width: 760px) {
  .cn-inv {
    grid-template-columns: 1fr auto;
  }
  .cn-inva {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
}
/* inventory by category */
.cn-invg {
  padding: 0;
  overflow: hidden;
}
.cn-invg > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.cn-invg > summary::-webkit-details-marker {
  display: none;
}
.cn-invg > summary b {
  font-size: 15px;
}
.cn-invg:not([open]) > summary {
  border-bottom: 0;
}
.cn-lowt {
  color: #b45309;
  font-weight: 600;
}
.cn-icl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.cn-icr {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cn-icr input {
  flex: 1;
  margin: 0;
  min-height: 38px;
}
.cn-icr .muted {
  white-space: nowrap;
  min-width: 56px;
}
.iconbtn:disabled {
  opacity: 0.3;
  cursor: default;
}
/* canteen: Upload menu dialog (choose file → match columns → preview) */
dialog.mu {
  max-width: 640px;
  max-height: 92vh;
  overflow: auto;
}
.mu-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 14px 0;
  padding: 20px 14px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  color: var(--text-2);
}
.mu-file:hover {
  border-color: var(--brand);
  background: var(--brand-2);
}
.mu-file input {
  min-height: 0;
  padding: 6px;
  margin-top: 8px;
  max-width: 100%;
  background: none;
  border: 0;
}
.mu-dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mu-dl > span {
  flex-basis: 100%;
}
.mu-dl .btn {
  flex: 1 1 0;
  white-space: nowrap;
}
.mu-dl [data-dl='current'] {
  flex-basis: 100%;
} /* your own menu first, on its own row */
.mu-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px 14px;
}
.mu-map label {
  margin: 8px 0 0;
  min-width: 0;
}
.mu-map label > span {
  display: block;
  margin-bottom: 4px;
}
.mu-map select {
  min-height: 42px;
  padding: 8px 12px;
}
.mu-map small {
  display: block;
  min-height: 1.3em;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-req {
  color: var(--warn);
}
.mu-sum {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 10px;
}
.mu-sum div {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.mu-sum b {
  display: block;
  font-size: 22px;
  color: var(--text);
}
.mu-sum .bad {
  background: var(--warn-2);
}
.mu-sum .bad b {
  color: var(--warn);
}
.mu-sum small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.25;
}
.mu-note {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hold-2);
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.mu-rej {
  max-height: 220px;
  overflow: auto;
  margin: 6px 0;
  padding-left: 18px;
  font-size: 13.5px;
}
.mu-rej li {
  margin: 3px 0;
}
@media (max-width: 560px) {
  dialog.mu #df > .row {
    gap: 10px;
  }
} /* phones stack form rows with no gap; Cancel and the step button need one */
@media (max-width: 520px) {
  .mu-sum {
    grid-template-columns: repeat(2, 1fr);
  }
  .mu-dl .btn {
    flex: 1 1 100%;
  }
  .mu-map label {
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: center;
    column-gap: 10px;
    margin-top: 6px;
  }
  .mu-map label > span {
    margin: 0;
    line-height: 1.25;
  }
  .mu-map small {
    grid-column: 2;
  }
} /* name beside its select: half the scrolling */
@media (max-width: 560px) {
  .cn-mbtns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }
} /* Menu tab: five buttons in two columns instead of one squeezed row */
/* Upload menu: Cancel / Next / Preview / Import stay in reach at the bottom while the 11 mapping fields scroll (the dialog itself scrolls) */
dialog.mu #df > p.row:last-child {
  position: sticky;
  bottom: -22px;
  margin: 12px -22px -22px;
  padding: 12px 22px 22px;
  background: var(--card);
  border-top: 1px solid var(--line);
  z-index: 1;
}
dialog.mu #df > p.row > #derr {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
}
dialog.mu #df > p.row > #derr:empty {
  display: none;
}

/* ---------- Mail desk (mail.js): chips, thread, Confirm queue ---------- */
.mchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mchip.mail {
  color: #175cd3;
  background: #eff8ff;
  border-color: #b2ddff;
}
.mchip.sla-open {
  color: #175cd3;
}
.mchip.sla-hold {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}
.mchip.sla-overdue {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}
.mchip.sla-closed {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}
.mchip.sla-rejected {
  color: #b54708;
}
.mchip.lane-important {
  color: #b42318;
  border-color: #fecdca;
}
.mchip.lane-review {
  color: #6938ef;
  border-color: #d9d6fe;
}
.mchip.lane-noise,
.mchip.lane-auto {
  color: var(--text-3, #667085);
}
.mthread {
  display: grid;
  gap: 12px;
}
.mthread .card {
  margin: 0;
}
.mmsg .mm-h {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.mmsg .mm-h > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mm-b {
  margin-top: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.mmsg.out {
  border-left: 3px solid var(--accent);
}
.mmsg.out.cancelled {
  opacity: 0.55;
}
.mmsg.out.failed {
  border-left-color: var(--st-overdue);
}
.mmsg.out.pending_approval {
  border-left-color: var(--st-hold);
}
.mnote {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mnote:last-of-type {
  border-bottom: 0;
}
.mconf {
  margin: 10px 0;
}
.mconf.stale {
  border-color: var(--st-overdue);
}
.mconf textarea {
  width: 100%;
  margin-top: 8px;
}
.mset form {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}
.mundo {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #101828;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.mundo .btn {
  background: #fff;
  color: #101828;
}
.mbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mbar > * {
  flex: none;
}
.mbar > input:not([type='checkbox']),
.mbar > select {
  flex: 1 1 160px;
  min-width: 0;
  width: auto;
}
.mbar .sp {
  flex: 1 1 auto;
}
.mbar label.small {
  margin: 0;
  white-space: nowrap;
}
.mconn .mt-h {
  align-items: center;
}
.mconn ol {
  padding-left: 20px;
  line-height: 1.6;
}
.mconn details {
  margin: 6px 0 8px;
}
.msteps {
  list-style: none;
  padding: 0;
  margin: 10px 0 4px;
  display: grid;
  gap: 4px;
}
.msteps li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
}
.msteps li.ok svg {
  color: var(--st-closed-icon);
}
.msteps li.bad {
  color: #b42318;
}
.msteps li svg {
  flex: none;
  margin-top: 2px;
}
.mresume {
  margin-top: 10px;
}
.mresume iframe {
  width: 100%;
  height: 75vh;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.mchip.stage-new {
  color: #175cd3;
}
.mchip.stage-shortlisted,
.mchip.stage-interview {
  color: #6938ef;
  border-color: #d9d6fe;
}
.mchip.stage-offered,
.mchip.stage-hired {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}
.mchip.stage-rejected {
  color: #b42318;
}
.mchip.stage-on_hold {
  color: #b54708;
}
.mprev {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 8px;
}
.mprev th {
  text-align: left;
  color: var(--text-2);
  font-weight: 600;
  width: 70px;
  padding: 3px 8px 3px 0;
  vertical-align: top;
}
.mprev td {
  padding: 3px 0;
  overflow-wrap: anywhere;
}
.mprevbody {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  max-height: 240px;
  overflow: auto;
  font-family: Calibri, Arial, sans-serif;
  line-height: 1.5;
}
.mbudget {
  display: inline-block;
  vertical-align: middle;
  width: 90px;
  height: 7px;
  border-radius: 9px;
  background: #eef0f3;
  overflow: hidden;
  margin-left: 6px;
}
.mbudget i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.mbudget i.warn {
  background: var(--st-hold);
}
.mbudget i.full {
  background: var(--st-overdue);
}
.mfiles {
  margin-top: 10px;
}
.mfile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 6px 4px 10px;
  font-size: 13px;
}
.mfile .btn {
  padding: 4px 10px;
  min-height: 0;
}
/* People → campus admin features (super admin) */
.featbox {
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 6px;
  background: var(--surface);
}
.featwrap[hidden] {
  display: none;
}
.feat-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.featrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid var(--divider);
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}
.featrow input {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.featrow span {
  display: flex;
  flex-direction: column;
}
.featrow small {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.4;
}
/* Tenants → Features: on/off switches per campus */
.cfrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}
.cfrow span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cfrow small {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.4;
}
.tgl {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
  border-radius: 99px;
  background: #d0d5dd;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  margin: 0;
}
.tgl::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: left 0.15s;
}
.tgl:checked {
  background: var(--ok);
}
.tgl:checked::after {
  left: 23px;
}
.tgl:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ============ Leads (tele-callers): To call list, a lead, reports, set up ============ */
.ld-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 4px 0 6px;
}
.ld-ks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ld-k {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  min-width: 84px;
  display: flex;
  flex-direction: column;
}
.ld-k b {
  font-size: 20px;
  line-height: 1.1;
}
.ld-k span {
  font-size: 12px;
  color: var(--text-meta);
}
.ld-k.hot {
  border-color: #fecdca;
  background: var(--danger-soft);
}
.ld-k.hot b {
  color: var(--danger);
}
.ld-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ld-tools select {
  width: auto;
  min-width: 170px;
}
.ld-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.ld-list > .card {
  margin: 0;
}
.ld-list > .empty {
  grid-column: 1/-1;
}
.ld-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border-left: 4px solid var(--st-open);
}
.ld-card:hover {
  border-color: var(--input-border);
  border-left-color: var(--st-open);
}
.ld-card.late {
  border-left-color: var(--st-overdue);
}
.ld-top {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.ld-who {
  min-width: 0;
}
.ld-who b {
  font-size: 15.5px;
}
.ld-ref {
  font: 600 11.5px var(--mono);
  color: var(--text-meta);
  background: #f2f4f7;
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.ld-new {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--notify-dot);
  border-radius: 99px;
  padding: 1px 8px;
  vertical-align: 1px;
}
.ld-sub {
  font-size: 12.5px;
  color: var(--text-meta);
}
.ld-msg {
  margin: 0;
  background: #f6f8fb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--text-2);
  word-break: break-word;
}
.ld-when {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  gap: 6px;
  align-items: center;
}
.ld-when.late {
  color: var(--danger);
}
.ld-act {
  display: flex;
  gap: 8px;
}
.ld-act .btn {
  flex: 1 1 auto;
  white-space: nowrap;
  gap: 6px;
  padding: 8px 10px;
  min-height: 42px;
  font-size: 13.5px;
}
.ld-cap {
  margin: 6px 0 0;
}
.ld-st {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  border-radius: 99px;
  padding: 3px 10px;
  background: #f2f4f7;
  color: var(--text-2);
}
.ld-st.s-new {
  background: #eff8ff;
  color: #175cd3;
}
.ld-st.s-trying {
  background: var(--warning-soft);
  color: var(--warning);
}
.ld-st.s-callback {
  background: #f4f3ff;
  color: #5925dc;
}
.ld-st.s-interested {
  background: #ecfdf3;
  color: #067647;
}
.ld-st.s-won {
  background: #067647;
  color: #fff;
}
.ld-st.s-lost {
  background: #f2f4f7;
  color: var(--text-3);
}
.ld-st.s-invalid {
  background: var(--danger-soft);
  color: var(--danger);
}
.ld-pool {
  border-color: #fedf89;
  background: #fffcf5;
}
.ld-poolh {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.ld-prow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--divider);
}
.ld-prow .btn {
  min-height: 36px;
  padding: 6px 14px;
}
.ld-prow .linkbtn {
  text-align: left;
  color: var(--text);
}
.ld-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}
.ld-filters .search {
  min-width: 240px;
  flex: 1;
  margin: 0;
}
.ld-filters select {
  width: auto;
  min-width: 150px;
}
.ld-rows {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 6px;
}
.ld-rows > .card {
  margin: 0;
  border: 0;
}
.ld-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1.6fr) minmax(0, 1fr) 150px auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--divider);
  background: none;
  text-align: left;
  cursor: pointer;
}
.ld-row:first-child {
  border-top: 0;
}
.ld-row:hover {
  background: var(--row-hover);
}
.ld-row.late .ld-rd {
  color: var(--danger);
}
.ld-rn {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ld-rn small {
  color: var(--text-meta);
}
.ld-rc,
.ld-rd {
  font-size: 12.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
dialog.ld-dlg {
  max-width: 620px;
}
.ld-dh {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.ld-dh h3 {
  margin: 0 0 2px;
}
.ld-dact {
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
  flex-wrap: wrap;
}
.ld-dact .btn {
  flex: 1;
}
.ld-facts {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  margin: 10px 0;
  font-size: 13.5px;
}
.ld-facts dt {
  color: var(--text-meta);
}
.ld-facts dd {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ld-facts select {
  width: auto;
  min-width: 180px;
}
.ld-edit summary,
.ld-extra summary,
.ld-how summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent);
  margin: 6px 0;
}
.ld-first {
  background: #f6f8fb;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 13.5px;
  word-break: break-word;
}
.ld-first small {
  display: block;
  color: var(--text-meta);
  font-size: 11.5px;
}
.ld-extra table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ld-extra th {
  text-align: left;
  font-weight: 500;
  color: var(--text-meta);
  padding: 4px 8px 4px 0;
  width: 40%;
  vertical-align: top;
  word-break: break-word;
}
.ld-extra td {
  padding: 4px 0;
  word-break: break-word;
}
.ld-h4 {
  margin: 16px 0 8px;
  font-size: 14px;
}
.ld-oc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ld-ocb {
  display: flex !important;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.ld-ocb input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}
.ld-ocb:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ld-ocb.o-won:has(input:checked) {
  border-color: #067647;
  background: #ecfdf3;
}
.ld-ocb.o-lost:has(input:checked),
.ld-ocb.o-invalid:has(input:checked) {
  border-color: #98a2b3;
  background: #f2f4f7;
}
.ld-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.ld-quick .chip-btn,
.ld-per .chip-btn {
  font-family: var(--sans);
  font-weight: 600;
  border-radius: 99px;
  padding: 6px 12px;
}
.ld-noterow {
  margin: 6px 0 0;
}
.ld-tl {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--divider);
}
.ld-ev {
  position: relative;
  padding: 4px 0 10px 10px;
  font-size: 13px;
}
.ld-ev::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--st-neutral);
  border: 2px solid #fff;
}
.ld-ev.k-created::before,
.ld-ev.k-message::before {
  background: #25d366;
}
.ld-ev.k-call::before {
  background: var(--accent);
}
.ld-ev.k-call.o-won::before {
  background: #067647;
}
.ld-ev.k-call.o-no_answer::before {
  background: var(--st-hold);
}
.ld-evb {
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.ld-per {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 4px 0 10px;
}
.ld-per .chip-btn.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.ld-per .btn {
  margin-left: auto;
}
.ld-cust {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--text-meta);
}
.ld-cust input {
  width: auto;
  min-height: 34px;
  padding: 4px 8px;
}
.ld-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ld-two > .card {
  margin: 0;
}
.ld-chart b {
  font-size: 14px;
}
.ld-hb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.ld-hbr {
  display: grid;
  grid-template-columns: minmax(0, 150px) 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.ld-hbr .l {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
}
.ld-hbr .t {
  height: 10px;
  background: #f2f4f7;
  border-radius: 99px;
  overflow: hidden;
}
.ld-hbr .t i {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.ld-hbr b {
  font-size: 13px;
}
.ld-days {
  width: 100%;
  height: 130px;
  display: block;
  margin-top: 10px;
}
.ld-dx {
  display: flex;
  justify-content: space-between;
}
.ld-sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin: 0 4px 0 10px;
  vertical-align: -1px;
}
.ld-tab .tblwrap {
  margin-top: 10px;
  border: 0;
}
.rtable td.hot {
  color: var(--danger);
  font-weight: 600;
}
.ld-off {
  border-color: #fedf89;
  background: #fffcf5;
}
.ld-on {
  font-size: 14px !important;
}
.ld-callers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
  max-height: 320px;
  overflow: auto;
}
.ld-mask {
  filter: blur(5px);
  user-select: none;
}
.ld-how ol {
  padding-left: 18px;
  margin: 6px 0;
}
.ld-how code,
#ldbot code {
  font: 12px var(--mono);
  background: #f2f4f7;
  border-radius: 5px;
  padding: 1px 5px;
}
.ld-res {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}
.ld-res ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
@media (max-width: 767px) {
  .ld-list {
    grid-template-columns: 1fr;
  }
  .ld-two {
    grid-template-columns: 1fr;
  }
  .ld-oc {
    grid-template-columns: 1fr;
  }
  .ld-ks {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .ld-k {
    min-width: 0;
    padding: 6px 8px;
  }
  .ld-k b {
    font-size: 17px;
  }
  .ld-k span {
    font-size: 11px;
    line-height: 1.2;
  }
  .ld-tools {
    width: 100%;
  }
  .ld-tools select,
  .ld-tools .btn {
    flex: 1;
  }
  .ld-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .ld-rc,
  .ld-rd {
    display: none;
  }
  .ld-per .btn {
    margin-left: 0;
    width: 100%;
  }
  .ld-filters .search {
    min-width: 100%;
  }
  .ld-filters select {
    flex: 1;
    min-width: 0;
  }
  .ld-facts {
    grid-template-columns: 92px 1fr;
  }
}
/* kitchen dashboard: its own sideways-scrolling table (not hidden on phones), readable chart labels, praise tags */
.scrollx {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}
.scrollx table {
  min-width: 520px;
}
.tagc.good {
  background: var(--pa-mint);
  border-color: var(--pa-mint-b);
}
.tagc button.tg-gd {
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  width: auto;
  height: 24px;
  display: inline-block;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 99px;
  padding: 0 9px;
  margin: 0 2px;
  cursor: pointer;
  color: var(--text-2);
}
.tagc.good button.tg-gd {
  color: #067647;
  border-color: #abefc6;
}
@media (max-width: 767px) {
  .fchart text {
    font-size: 20px;
  }
}
/* ---- fixes from the independent audit (screens) ---- */
/* a long word without spaces (a file name, a code) wraps instead of pushing the page sideways */
.stub,
.stub h2,
.tk-title h1,
.tk-sub,
.ntcard,
.ngate,
.evtext,
.tm b,
.trow .sub,
.att-row b,
.psub {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tk-title {
  min-width: 0;
}
.tk-title > div {
  min-width: 0;
}
/* tablet widths: a little more room in the full header row (it already fades where it scrolls) */
@media (min-width: 768px) and (max-width: 1040px) {
  .top-in {
    gap: 12px;
    padding: 0 16px;
  }
  #tsw {
    max-width: 150px;
  }
}
/* finger-sized targets on phones */
@media (max-width: 767px) {
  #forgot.linkbtn {
    min-height: 44px;
    padding: 0 12px;
  }
  .nb-h a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }
  .nbchips button {
    min-height: 44px;
    padding: 8px 15px;
  }
}
/* empty rating stars can be seen before they are tapped */
.stars span {
  color: #98a2b3;
}
.stars label:hover ~ label span {
  color: #98a2b3 !important;
}
/* a form that is being sent shows it */
form[data-sending] button.primary,
form[data-sending] button.dark,
form[data-sending] button.danger {
  opacity: 0.65;
  cursor: progress;
}
/* canteen: "Also works as" ticks under a person's job, and the role switcher above the tabs */
.cn-also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  border: 0;
  margin: 0 0 6px;
  padding: 0;
}
.cn-also legend {
  float: left;
  margin-right: 6px;
  padding: 0;
}
.cn-also .chk {
  margin: 0;
  font-size: 13px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cn-also[hidden],
.cn-also [hidden] {
  display: none;
}
.cn-rsum {
  color: var(--brand);
  font-weight: 600;
}
.cn-rsum:empty {
  display: none;
}
.cn-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 0 0 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 100%;
}
.cn-role {
  flex: 1 1 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-2, var(--muted));
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cn-role:hover {
  background: #f2f4f7;
}
.cn-role.on {
  background: var(--brand);
  color: #fff;
}
.cn-role:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .cn-role {
    flex: 1 1 40%;
  }
}
@media (max-width: 600px) {
  .cn-invbtns {
    flex-direction: column;
    align-items: stretch;
  }
  .cn-invbtns .btn {
    width: 100%;
  }
}
/* inventory: Download window and the Upload stock preview */
.iv-dl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.iv-dl > .btn {
  justify-content: flex-start;
  margin-top: 8px;
}
.iv-dl > p {
  margin: 0 0 4px;
}
.iv-dates {
  margin: 2px 0;
}
.iv-dates label {
  margin-top: 4px;
}
.iu-wrap {
  max-height: 300px;
  overflow: auto;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.iu-tab {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.iu-tab th {
  position: sticky;
  top: 0;
  background: var(--card);
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.iu-tab td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--divider, #eef0f3);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.iu-tab td:first-child {
  white-space: nowrap;
  color: var(--muted);
}
.iu-a {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  white-space: nowrap;
}
.iu-add .iu-a {
  background: var(--brand-2);
  color: var(--brand);
}
.iu-update .iu-a {
  background: var(--hold-2);
}
.iu-refused .iu-a {
  background: var(--warn-2);
  color: var(--warn);
}
@media (max-width: 520px) {
  .iu-tab thead {
    display: none;
  }
  .iu-tab tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2px 8px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
  }
  .iu-tab td {
    padding: 0;
    border: 0;
  }
  .iu-tab td:last-child {
    grid-column: 1/-1;
    color: var(--text-2);
  }
}

/* ---------- Desktop navigation (app.js sideNav): icon rail on the left + the section's pages as a horizontal tab strip under the top bar; phones keep the top bar and bottom tab bar ---------- */
.snrail,
.subnav {
  display: none;
}
@media (min-width: 768px) {
  body.console.sn #app {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }
  body.console.sn .snrail {
    grid-column: 1;
    grid-row: 1/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 21;
    scrollbar-width: none;
  }
  .snrail-logo {
    margin-bottom: 8px;
  }
  .snrail-logo .logo-tile {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .snrail-div {
    width: 28px;
    height: 1px;
    background: var(--border);
    margin: 6px 0;
  }
  .snrail a:not(.snrail-logo) {
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px 5px;
    border-radius: 12px;
    color: var(--text-meta);
    font-size: 10.5px;
    font-weight: 500;
    text-align: center;
    line-height: 1.15;
    transition:
      background 0.15s,
      color 0.15s;
  }
  .snrail a:not(.snrail-logo) svg {
    width: 18px;
    height: 18px;
    padding: 5px 12px;
    border-radius: 999px;
    box-sizing: content-box;
    transition: background 0.15s;
  }
  .snrail a:not(.snrail-logo):hover {
    color: var(--text);
  }
  .snrail a:not(.snrail-logo):hover svg {
    background: var(--hover);
  }
  .snrail a.on {
    color: var(--accent);
    font-weight: 600;
  }
  .snrail a.on svg {
    background: var(--accent-soft);
  }
  .snrail a span {
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.console.sn .subnav {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    margin-right: auto;
  }
  body.console.sn.nosub .subnav {
    display: none;
  }
  .sn-h {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: none;
    padding: 8px 16px 8px 0;
    margin: 10px 0;
    border-right: 1px solid var(--border);
  }
  .sn-h > div {
    min-width: 0;
  }
  .sn-h b {
    display: block;
    font-size: 14px;
    line-height: 1.25;
  }
  .sn-h small {
    display: block;
    font-size: 11.5px;
    color: var(--text-meta);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
  .sn-list {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    align-self: stretch;
  }
  .sn-list::-webkit-scrollbar {
    display: none;
  }
  .sn-i {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    white-space: nowrap;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--text-2);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    min-height: 0;
    transition:
      background 0.15s,
      color 0.15s;
  }
  .sn-i svg {
    width: 16px;
    height: 16px;
    flex: none;
    opacity: 0.85;
  }
  .sn-i:hover {
    color: var(--text);
  }
  .sn-i.on {
    color: var(--accent);
    font-weight: 600;
  }
  .sn-i.on svg {
    opacity: 1;
  }
  .sn-i.on::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
  }
  .sn-b {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    background: #fef0c7;
    color: #b54708;
    border-radius: 999px;
    padding: 1px 8px;
  }
  body.console.sn header.top {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  body.console.sn .cwrap {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }
  body.console.sn .cwrap {
    width: 100%;
    box-sizing: border-box;
  }
  body.console.sn .top .brandlink,
  body.console.sn .top nav,
  body.console.sn .top .navmore {
    display: none;
  }
  body.console.sn .top-in {
    justify-content: flex-end;
    min-height: 58px;
    max-width: none;
    padding-left: 20px;
    align-items: stretch;
  }
  body.console.sn .top-r {
    align-self: center;
    flex: none;
  }
}
@media (min-width: 768px) {
  body.console.sn:not(.nosub) #main [data-subnav] {
    display: none;
  }
}
/* the section name already shows in the rail and the page title: the strip holds only the tabs */
@media (min-width: 768px) {
  body.console.sn .subnav .sn-h {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  body.console.sn .sn-i svg {
    display: none;
  }
  body.console.sn .sn-i {
    padding: 0 10px;
  }
}
/* tablets: the tabs take their own row under the campus picker and bell, so none are cut off */
@media (min-width: 768px) and (max-width: 1099px) {
  body.console.sn:not(.nosub) .top-in {
    flex-wrap: wrap;
    row-gap: 0;
  }
  body.console.sn .subnav {
    order: 2;
    flex-basis: 100%;
    min-height: 44px;
    border-top: 1px solid var(--border);
    margin: 0 -16px 0 -20px; /* edge to edge: the bar's own padding is 20px left, 16px right (-20px both sides overflowed by 4px) */
    padding: 0 10px;
  }
  body.console.sn .top-r {
    order: 1;
    margin-left: auto;
    padding: 8px 0;
  }
}
/* phones: tables that have no card version stay visible (Tenants, the mail AI budget); Tenants as one card per campus */
@media (max-width: 767px) {
  .tblbox.keep {
    display: block;
    max-width: 100%;
  }
  .tblbox.keep .ttable {
    min-width: 0;
  }
  .tblbox.keep .ttable th,
  .tblbox.keep .ttable td {
    padding: 10px 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .tn-tbl table,
  .tn-tbl tbody {
    display: block;
  }
  .tn-tbl tr:first-child {
    display: none;
  }
  .tn-tbl tr {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 12px 14px;
    margin: 0 0 10px;
  }
  .tn-tbl td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .tn-tbl td:nth-child(2) {
    font-weight: 600;
  }
  .tn-tbl td:nth-child(3),
  .tn-tbl td:nth-child(6) {
    flex-basis: 100%;
  }
  .tn-tbl td:nth-child(4)::before {
    content: 'Reopen days: ';
    color: var(--text-meta);
  }
  .tn-tbl td:nth-child(6) {
    white-space: normal !important;
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }
  .tn-tbl td:nth-child(6) .btn {
    flex: 1 1 0;
    min-height: 44px;
  }
  .mbar > span.small,
  .mbar > a {
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .cn-oc .fact .btn,
  .cn-kot .fact .btn {
    min-height: 44px;
  } /* Start cooking, Mark ready: the main tap on a busy counter */
  .cn-hgrid2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cn-hgrid2 input {
    min-width: 0;
    width: 100%;
  } /* date fields fit the Download window */
  .card table.cn-itab {
    white-space: normal;
    font-size: 13px;
  }
  .cn-itab td:first-child {
    overflow-wrap: anywhere;
  }
  .cn-itab th:nth-child(n + 2) {
    padding-left: 6px;
  } /* names wrap, the numbers stay in view */
  .cn-ch {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cn-also .chk {
    min-height: 44px;
  }
}
.cn-also .chk[hidden] {
  display: none !important;
} /* .chk's display:flex!important showed the person's own job under "Also works as" */

.mstart {
  max-width: 760px;
}
.mst {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
}
.mst li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mst li:last-child {
  border-bottom: 0;
}
.mst li p {
  margin: 2px 0 8px;
}
.mst-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
}
.mst li.done .mst-n {
  background: var(--st-closed);
  border-color: var(--st-closed);
  color: #fff;
}
.mst li.done b {
  color: var(--text-2);
}
/* ---------- Canteen: kiosks, desktops, tablets and phones ---------- */
/* touch screens (kiosks, tablets, phones): every canteen tap target at least 44px */
@media (pointer: coarse) {
  body.cn-stu .cn-step button {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  body.cn-stu .cn-add {
    min-height: 44px;
    padding: 8px 18px;
  }
  body.cn-stu .btn,
  body.cn-stu .tab,
  body.cn-stu .iconbtn {
    min-height: 44px;
  }
  body.cn-stu .corner-btn,
  .corner-btn {
    min-height: 44px;
  }
  body.cn-page #main .btn,
  body.cn-page #main .tab,
  body.cn-page #main select {
    min-height: 44px;
  }
  body.cn-page #main .cn-step button {
    width: 44px;
    height: 44px;
  }
  body.cn-page #main input[type='checkbox']:not(.tgl),
  body.cn-stu input[type='checkbox']:not(.tgl) {
    width: 22px;
    height: 22px;
  }
  body.cn-page #main label.chk {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    cursor: pointer;
  }
}
/* student menu: a wider page with two columns of dishes on desktops and kiosks */
@media (min-width: 900px) {
  body.cn-stu .wrap.cn-wrap {
    max-width: 980px;
  }
  body.cn-stu .cn-bar .btn {
    max-width: 948px;
  }
  body.cn-stu .cn-cat .cn-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
  body.cn-stu .cn-cat .cn-list .cn-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}
@media (min-width: 1500px) {
  body.cn-stu .wrap.cn-wrap {
    max-width: 1200px;
  }
  body.cn-stu .cn-bar .btn {
    max-width: 1168px;
  }
}
/* touch kiosks (a big touch screen): larger type and rows, readable from standing distance */
@media (pointer: coarse) and (min-width: 1000px) {
  body.cn-stu {
    font-size: 17px;
  }
  body.cn-stu .cn-item {
    padding: 16px 0;
  }
  body.cn-stu .cn-cat h2 {
    font-size: 20px;
  }
  body.cn-stu .cn-step button {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  body.cn-stu .cn-add {
    min-height: 52px;
    padding: 10px 22px;
    font-size: 16px;
  }
  body.cn-stu .cn-bar .btn {
    min-height: 60px;
    font-size: 18px;
  }
  body.cn-stu .cn-search input {
    min-height: 52px;
    font-size: 17px;
  }
  body.cn-page #main .btn {
    min-height: 48px;
  }
}
/* staff counter, orders and kitchen use the full width of wide screens and landscape kiosks */
@media (min-width: 1600px) {
  body.cn-page .cwrap {
    max-width: 1840px;
  }
  body.cn-page .cn-pos3 {
    grid-template-columns: 230px minmax(0, 1fr) 420px;
  }
}
/* student menu: filters and categories are chips at every width (touch kiosks read them as buttons, not underlined tabs) */
body.cn-stu .cn-filters .tab,
body.cn-stu .cn-cats .tab {
  position: relative;
  min-height: 44px;
  padding: 0 16px;
  margin: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  z-index: 0;
  flex-shrink: 0;
  white-space: nowrap;
}
body.cn-stu .cn-filters .tab::before,
body.cn-stu .cn-cats .tab::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  bottom: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: -1;
}
body.cn-stu .cn-filters .tab.on,
body.cn-stu .cn-cats .tab.on {
  color: #fff;
  font-weight: 600;
}
body.cn-stu .cn-filters .tab.on::before,
body.cn-stu .cn-cats .tab.on::before {
  background: var(--accent);
  border-color: var(--accent);
}
body.cn-stu .cn-cats {
  border-bottom: 0;
  gap: 8px;
}
@media (pointer: coarse) and (min-width: 1000px) {
  body.cn-stu .cn-filters .tab,
  body.cn-stu .cn-cats .tab {
    min-height: 54px;
    padding: 0 20px;
    font-size: 16px;
  }
}
/* canteen print stations, store stock in the kitchen, recipes */
.cn-strow {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}
.cn-stbtn {
  font-size: 13px;
  min-height: 36px;
  padding: 6px 12px;
}
.cn-stbtn.on {
  background: #dcfce7;
  color: #14532d;
  border-color: #86efac;
}
.cn-stbtn.bad {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.cn-strole {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.cn-strole label.chk {
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.cn-strole label.chk > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cn-strole label.chk:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-2);
}
.cn-stsetup {
  margin: 8px 0;
  padding: 12px 14px;
}
.cn-stsetup ol {
  margin: 6px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cn-stsetup code {
  word-break: break-all;
  font-size: 12px;
}
.cn-low {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef3c7;
  color: #78350f;
  font-size: 14px;
}
.cn-lowi {
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 13px;
}
.cn-lowi.out {
  border-color: #fca5a5;
  color: #991b1b;
  font-weight: 600;
}
.cn-recl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 78px 40px;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
}
.cn-recl select,
.cn-recl input {
  min-width: 0;
  margin: 0;
}
@media (max-width: 480px) {
  .cn-recl {
    grid-template-columns: minmax(0, 1fr) 76px 64px 40px;
  }
}
@media (pointer: coarse) {
  body.cn-page .cn-stbtn {
    min-height: 44px;
  }
}
@media (min-width: 768px) and (pointer: coarse) {
  .sn-i {
    min-height: 44px;
  }
  .snrail a:not(.snrail-logo) {
    min-height: 48px;
    justify-content: center;
  }
}
.cn-oc .fact {
  flex-wrap: wrap;
}
.cn-oc .fact .btn {
  flex: 1 1 auto;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  padding-inline: 10px;
}
/* canteen order board: small cards; the whole order opens in a pop-up */
.cn-om {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  border-left: 4px solid var(--border);
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.cn-om:hover {
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}
.cn-om:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cn-om.s-placed {
  border-left-color: #f59e0b;
}
.cn-om.s-accepted {
  border-left-color: var(--brand);
}
.cn-om.s-ready {
  border-left-color: #16a34a;
}
.cn-om.s-out {
  border-left-color: #7c3aed;
}
.cn-om.late {
  box-shadow: inset 0 0 0 1px #fca5a5;
}
.cn-om .cn-tk {
  font-size: 14px;
  padding: 4px 8px;
}
.cn-omn {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cn-omn b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cn-omn small {
  font-size: 12px;
  color: var(--text-meta);
  overflow-wrap: anywhere; /* time · day · items: wraps in a narrow board column instead of cutting to "1 it…" */
}
.cn-om .cn-amt {
  font-size: 15px;
}
.cn-omb {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cn-omb .cn-b {
  font-size: 11px;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
dialog.cn-odlg {
  max-width: 520px;
  padding: 10px;
  max-height: 92vh;
  overflow: auto;
}
dialog.cn-odlg .cn-oc {
  margin: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: none;
  padding: 12px 14px;
}
.cn-odx {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  margin: 4px 4px -40px 0;
  background: var(--card);
}
@media (pointer: coarse) {
  .cn-om {
    min-height: 56px;
  }
}
dialog.cn-odlg .cn-oh {
  padding-right: 46px;
}
/* student UPI: a button per payment app, back-from-the-app help, UTR paste */
.cn-upiapps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.cn-upiapps .btn {
  min-height: 48px;
  justify-content: center;
}
.cn-upiapps .btn:first-child {
  grid-column: 1/-1;
}
.cn-upiback {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  margin: 10px 0 4px;
  border-radius: 12px;
  background: #dcfce7;
  color: #14532d;
  font-size: 14px;
}
.cn-upiback svg {
  flex: none;
  margin-top: 2px;
}
#cnutrf.back input {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.cn-utrrow {
  gap: 8px;
  flex-wrap: nowrap;
}
.cn-utrrow input {
  flex: 1;
  min-width: 0;
}
.cn-utrrow .btn {
  flex: none;
  min-height: 44px;
}
.cn-upiapps {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}
#cnutrf .cn-utrrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex-direction: initial;
}
#cnutrf .cn-utrrow input {
  grid-column: 1/-1;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
#cnutrf .cn-utrrow .btn {
  width: 100%;
  margin: 0;
}
#cnutrf .cn-utrrow:not(:has(#cnutrp)) .btn {
  grid-column: 1/-1;
}
.cn-upiapps .btn {
  white-space: nowrap;
  padding-inline: 8px;
}
.cn-pay > b svg {
  color: #d97706;
}
.cn-pay.ok > b svg {
  color: #16a34a;
}
dialog.cn-odlg .cn-oc {
  border-left: 0;
}
.cn-upiapps {
  display: flex;
  flex-wrap: wrap;
}
.cn-upiapps .btn {
  flex: 1 1 0;
}
.cn-upiapps .btn:first-child {
  flex-basis: 100%;
}

/* canteen: the student's feedback on a collected order (stars per item), clear filters / clear cart */
.cn-rate {
  margin: 14px 0;
}
.cn-rate > b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.cn-rate.done > b {
  color: var(--ok, #067647);
}
.cn-rit {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cn-rit:last-of-type {
  border-bottom: 0;
}
.cn-rit .cn-in {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cn-stars {
  display: flex;
  gap: 2px;
  margin: 6px 0;
}
.cn-stars button {
  font-size: 30px;
  line-height: 1;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: #d0d5dd;
  cursor: pointer;
  min-height: 44px;
  min-width: 40px;
  transition:
    color 0.1s,
    transform 0.1s;
}
.cn-stars button.on {
  color: #f5a524;
}
.cn-stars button:active {
  transform: scale(1.15);
}
.cn-stars button:focus-visible {
  outline: 2px solid var(--accent);
  border-radius: 6px;
}
.cn-stars.ro {
  display: inline-flex;
  margin: 0;
  color: #f5a524;
  font-size: 16px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.cn-stars.ro i {
  font-style: normal;
  color: #d0d5dd;
}
.cn-ratehint {
  display: block;
  color: #b54708;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 2px;
}
.cn-fclear {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.cn-cartacts {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-top: 10px;
}
.cn-cartacts .btn {
  flex: 1;
}
.cn-fb-c {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.cn-fb-c:last-child {
  border-bottom: 0;
}
.campb {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft, #eef2ff);
  color: var(--accent, #2f55d4);
  font: 700 11px var(--sans);
  vertical-align: middle;
  letter-spacing: 0.3px;
}
.mt-camps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}
/* Tenants & campuses: one card per tenant, its campuses in a table */
.tn-org {
  margin: 0 0 14px;
}
.tn-orgh {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tn-orgh .sp {
  flex: 1;
}
.tn-org .tblbox {
  margin: 0;
}
.tt-main .campb {
  align-self: flex-start;
  margin: 2px 0 0;
}
/* canteen: the item's emoji picker (Add / Edit item) */
.cn-emopick {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  max-height: 260px;
  overflow: auto;
  margin-top: 4px;
}
.cn-emoauto {
  display: block;
  margin: 0 0 8px;
}
.cn-emoauto input,
.cn-emog input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  /* hidden, and as small as one pixel: the general "inputs fill the row" width made each 359px wide and the dialog scroll sideways */
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.cn-emoauto span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.cn-emoauto small {
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
}
.cn-emoauto b {
  font-size: 22px;
}
.cn-emog {
  margin-top: 6px;
}
.cn-emog > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.cn-emog > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.cn-emog label {
  display: block;
  cursor: pointer;
  line-height: 0;
  margin: 0;
}
.cn-emog label span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
}
.cn-emog label span:hover {
  background: var(--hover, #f2f4f7);
}
.cn-emog input:checked + span,
.cn-emoauto input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft, #eef2ff);
}
.cn-emog input:focus-visible + span,
.cn-emoauto input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.cn-emo.menu {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex: none;
}
/* canteen: combos, kitchen section printers */
.cn-combo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font: 700 11px var(--sans);
  vertical-align: middle;
}
.cn-parts {
  color: var(--muted);
}
.cn-save {
  color: var(--ok, #067647);
  font-weight: 700;
}
.cn-pbparts {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  margin: 2px 0;
}
.cn-slips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cn-slip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg, #f2f4f7);
  color: var(--text-2, #344054);
}
.cn-slip.printed {
  background: #ecfdf3;
  color: #067647;
}
.cn-slip.failed {
  background: #fef3f2;
  color: #b42318;
}
.cn-slip.queued,
.cn-slip.sent {
  background: #eff8ff;
  color: #175cd3;
}
.cn-prth {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cn-prth > div {
  flex: 1;
  min-width: 220px;
}
.cn-helper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef3f2;
  color: #7a271a;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cn-helper.on {
  background: #ecfdf3;
  color: #05603a;
}
.cn-helper > span {
  flex: 1;
  min-width: 220px;
}
.cn-catsec {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 16px;
  margin-top: 10px;
}
.cn-catsec label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}
.cn-catsec select {
  max-width: 60%;
}
.cn-cparts {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 10px;
}
.cn-cpart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.cn-cpart:last-child {
  border-bottom: 0;
}
.cn-cpart input {
  width: 70px;
}
.cn-csum {
  margin: 6px 0 2px;
}
.cn-cmd {
  white-space: pre-wrap;
  word-break: break-all;
  background: #101828;
  color: #f2f4f7;
  padding: 10px 12px;
  border-radius: 10px;
  font:
    12.5px/1.5 ui-monospace,
    monospace;
}
.rep-now {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #eaecf0);
  line-height: 1.6;
}
.rep-now .rn-closed {
  color: #067647;
  font-weight: 600;
}
.rep-now .rn-rejected {
  color: #b42318;
  font-weight: 600;
}
.rep-now .rn-open,
.rep-now .rn-in_progress {
  color: #175cd3;
  font-weight: 600;
}
.rep-now .rn-hold {
  color: #b54708;
  font-weight: 600;
}
/* Reports: the campus in view (its row = the cards) and the totals row */
.rtable tr.rep-me td {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.rtable tfoot tr.rep-tot td {
  border-top: 2px solid var(--line, #ddd);
  font-weight: 700;
}
/* Canteen time menus (Morning, Night …) */
.cn-tm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  white-space: nowrap;
}
.cn-tm.off {
  background: var(--soft, #f2f4f7);
  color: var(--muted, #667085);
}
.cn-tms summary {
  cursor: pointer;
}
.cn-tmrow {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  margin-top: 10px;
}
.cn-tmitems {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  max-height: 220px;
  overflow: auto;
}
.cn-tmnow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
/* a tab row wider than the screen: fade the side that has more tabs (set by fitTabs in app.js) */
.tabs.tb-more:not(.tb-e),
.sn-list.tb-more:not(.tb-e) {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.tabs.tb-more:not(.tb-s),
.sn-list.tb-more:not(.tb-s) {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
  mask-image: linear-gradient(to right, transparent, #000 40px);
}
.tabs.tb-more:not(.tb-s):not(.tb-e),
.sn-list.tb-more:not(.tb-s):not(.tb-e) {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
/* Audit: one change per row, in words */
.au-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.au-row {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.au-row:first-child {
  border-top: 0;
}
.au-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.au-s {
  font-weight: 600;
  color: var(--accent);
}
.au-m {
  margin-top: 2px;
}
.au-d {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  color: var(--text, #111827);
  overflow-wrap: anywhere;
}
.au-k {
  color: var(--muted);
}
.au-none {
  padding: 16px;
}
/* tablets: the ticket table needs ~900px; with the side menus a tablet has less, so it shows the ticket cards (as phones do) */
@media (min-width: 768px) and (max-width: 1199px) {
  .tblbox:has(> .ttable) {
    display: none;
  }
  .tblbox:has(> .ttable) ~ .tcards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
  }
  .att .tblbox:has(> .ttable) ~ .tcards {
    padding: 12px;
  }
}
/* tablets: the campuses table is too wide for the space beside the menus: show each campus as a card (as on phones) */
@media (min-width: 768px) and (max-width: 1099px) {
  .tn-tbl table,
  .tn-tbl tbody {
    display: block;
  }
  .tn-tbl tr:first-child {
    display: none;
  }
  .tn-tbl tr {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 12px 14px;
    margin: 0 0 10px;
  }
  .tn-tbl td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .tn-tbl td:nth-child(2) {
    font-weight: 600;
  }
  .tn-tbl td:nth-child(3),
  .tn-tbl td:nth-child(6) {
    flex-basis: 100%;
  }
  .tn-tbl td:nth-child(4)::before {
    content: 'Reopen days: ';
    color: var(--text-meta);
  }
  .tn-tbl td:nth-child(6) {
    white-space: normal !important;
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }
  .tn-tbl td:nth-child(6) .btn {
    flex: 1 1 0;
    min-height: 44px;
  }
}
/* laptops: a section with many pages (Canteen) fits its page buttons in the top bar */
@media (min-width: 768px) and (max-width: 1439px) {
  body.console.sn .sn-i {
    padding: 0 8px;
    gap: 5px;
  }
}
