:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --base: #fbf4f4;
  --surface: #fff;
  --ink: #2b1216;
  --ink-2: #5e4146;
  --ink-3: #8f7378;
  --lacquer: #c8102e;
  --lacquer-deep: #9c0b22;
  --petal: #f9d3d9;
  --petal-soft: #fdecee;
  --sage: #4a7a2c;
  --sage-soft: #e7f0dc;
  --amber: #9a6a12;
  --amber-soft: #fbf0d9;
  --line: #f0d8dc;
  --danger: #a3262f;
  --display: "Gloock", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slot: 22px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--base);
  color: var(--ink);
  font: 400 15px / 1.5 var(--sans);
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--lacquer);
}

:focus-visible {
  outline: 2px solid var(--lacquer);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
}

h1 {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.1;
}

h2 {
  font-family: var(--display);
  font-size: 1.4rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: .87rem;
}

.num {
  font-variant-numeric: tabular-nums;
}

.login {
  place-items: center;
  min-height: 100vh;
  padding: 16px;
  display: grid;
}

.login form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(400px, 100%);
  padding: 32px;
}

.login h1 {
  margin-bottom: 6px;
}

.shell {
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.side {
  background: var(--ink);
  color: #e9dfe8;
  flex-direction: column;
  gap: 2px;
  height: 100vh;
  padding: 20px 14px;
  display: flex;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.side .brand {
  font-family: var(--display);
  color: #fff;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 20px;
  font-size: 1.35rem;
  text-decoration: none;
  display: flex;
}

.side .brand i {
  background: linear-gradient(160deg, #d0617f, var(--lacquer));
  border-radius: 50% 50% 22% 22% / 40% 40% 9% 9%;
  width: 11px;
  height: 18px;
  display: block;
}

.side button {
  all: unset;
  cursor: pointer;
  color: #cbbccb;
  border-radius: 10px;
  justify-content: space-between;
  padding: 10px 12px;
  font-weight: 500;
  display: flex;
}

.side button:hover {
  color: #fff;
  background: #ffffff0f;
}

.side button:focus-visible {
  outline: 2px solid var(--petal);
}

.side .foot {
  border-top: 1px solid #ffffff1a;
  gap: 6px;
  margin-top: auto;
  padding: 14px 10px 0;
  font-size: .85rem;
  display: grid;
}

.side .foot a {
  color: #cbbccb;
}

.main {
  min-width: 0;
  padding: 24px 28px 64px;
}

.topbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  display: flex;
}

.topbar .actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.mobile-nav {
  display: none;
}

.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--ink);
  white-space: nowrap;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.btn:hover {
  border-color: var(--ink-3);
}

.btn-primary {
  background: var(--lacquer);
  border-color: var(--lacquer);
  color: #fff;
}

.btn-primary:hover {
  background: var(--lacquer-deep);
  border-color: var(--lacquer-deep);
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-ok {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.btn-danger {
  color: var(--danger);
  border-color: #ecc9c7;
}

.btn-sm {
  border-radius: 8px;
  min-height: 32px;
  padding: 0 10px;
  font-size: .87rem;
}

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.icon-btn {
  width: 38px;
  padding: 0;
}

input, select, textarea {
  background: var(--surface);
  border: 1px solid #d9c8cd;
  border-radius: 9px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
}

textarea {
  resize: vertical;
  min-height: 76px;
}

input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--lacquer);
  padding: 0;
}

input[type="color"] {
  width: 56px;
  padding: 2px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--lacquer);
  box-shadow: 0 0 0 3px var(--petal);
  outline: none;
}

label.f {
  margin-bottom: 12px;
  display: block;
}

label.f > span {
  margin-bottom: 4px;
  font-size: .88rem;
  font-weight: 600;
  display: block;
}

label.f small {
  color: var(--ink-3);
  margin-top: 3px;
  display: block;
}

.row2 {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.row3 {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  display: grid;
}

.inline-check {
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
}

.filters {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
}

.filters > * {
  width: auto;
  min-width: 140px;
}

.filters input[type="search"] {
  flex: 1;
  min-width: 220px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card + .card {
  margin-top: 16px;
}

.grid2 > .card + .card {
  margin-top: 0;
}

.card h2 {
  margin-bottom: 12px;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  display: grid;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.stat .v {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  line-height: 1.1;
}

.stat .l {
  color: var(--ink-3);
  font-size: .88rem;
}

.grid2 {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.notice {
  background: var(--petal-soft);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  font-size: .92rem;
}

.notice.ok {
  background: var(--sage-soft);
  color: #3f5a3d;
}

.notice.err {
  color: var(--danger);
  background: #fbecec;
}

.notice.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.empty {
  text-align: center;
  color: var(--ink-3);
  padding: 26px;
}

.list-item {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  display: grid;
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item:hover {
  background: var(--petal-soft);
}

.list-item .t {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.list-item .who {
  font-weight: 600;
}

.list-item .what {
  color: var(--ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .88rem;
  overflow: hidden;
}

.dot {
  vertical-align: 0;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  display: inline-block;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}

table.t {
  border-collapse: collapse;
  width: 100%;
  font-size: .93rem;
}

table.t th {
  text-align: left;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  padding: 10px 14px;
  font-size: .84rem;
  font-weight: 600;
}

table.t td {
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  padding: 11px 14px;
}

table.t tr:last-child td {
  border-bottom: 0;
}

table.t tbody tr {
  cursor: pointer;
}

table.t tbody tr:hover td {
  background: var(--petal-soft);
}

table.t td.r, table.t th.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.t tr.inactive td {
  color: var(--ink-3);
}

.cat-row td {
  cursor: default;
  font-weight: 700;
  background: var(--base) !important;
}

.pill {
  background: var(--sage-soft);
  color: var(--sage);
  white-space: nowrap;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: .78rem;
  font-weight: 700;
  display: inline-block;
}

.pill.checked_in {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.completed {
  background: var(--petal-soft);
  color: var(--lacquer);
}

.pill.cancelled, .pill.no_show {
  color: var(--ink-3);
  background: #efe9eb;
}

.pill.src {
  color: var(--ink-2);
  background: #efe9eb;
  font-weight: 600;
}

.cal-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.cal-head input[type="date"] {
  width: auto;
}

.cal-title {
  font-family: var(--display);
  font-size: 1.6rem;
}

.cal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.cal-grid {
  min-width: 100%;
  display: grid;
  position: relative;
}

.cal-colhead {
  z-index: 4;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px;
  font-weight: 700;
  display: flex;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.cal-colhead small {
  color: var(--ink-3);
  font-weight: 400;
}

.cal-corner {
  z-index: 6;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
}

.cal-times {
  z-index: 3;
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: -webkit-sticky;
  position: sticky;
  left: 0;
}

.cal-times div:first-child {
  transform: none;
}

.cal-times div {
  height: calc(var(--slot) * 4);
  color: var(--ink-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding: 0 8px;
  font-size: .78rem;
  transform: translateY(-.6em);
}

.cal-col {
  border-right: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(#f3ecee 1px, transparent 1px);
  background-size: 100% calc(var(--slot) * 4), 100% var(--slot);
  cursor: copy;
  position: relative;
}

.cal-off {
  pointer-events: none;
  background: repeating-linear-gradient(135deg, #f4eff1 0, #f4eff1 6px, #ebe3e6 6px, #ebe3e6 7px);
  position: absolute;
  left: 0;
  right: 0;
}

.cal-block {
  color: var(--ink-2);
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(135deg, #efe6e9 0, #efe6e9 6px, #e1d4d8 6px, #e1d4d8 7px);
  padding: 4px 8px;
  font-size: .78rem;
  position: absolute;
  left: 0;
  right: 0;
}

.appt {
  cursor: pointer;
  z-index: 2;
  border-left: 4px solid var(--c);
  background: #fff;
  background: color-mix(in srgb, var(--c), #fff 84%);
  color: var(--ink);
  text-align: left;
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: .8rem;
  line-height: 1.25;
  position: absolute;
  left: 4px;
  right: 4px;
  overflow: hidden;
}

.appt:hover {
  background: #fff;
  background: color-mix(in srgb, var(--c), #fff 74%);
}

.appt strong {
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
}

.appt span {
  color: var(--ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
}

.appt.completed {
  opacity: .65;
}

.appt.checked_in {
  box-shadow: inset 0 0 0 2px var(--amber);
}

.appt.no_show, .appt.cancelled {
  opacity: .45;
  text-decoration: line-through;
}

.now-line {
  background: var(--lacquer);
  z-index: 5;
  pointer-events: none;
  height: 2px;
  position: absolute;
  left: 0;
  right: 0;
}

.scrim {
  z-index: 40;
  background: #2a1f2d59;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.drawer {
  background: var(--surface);
  z-index: 41;
  flex-direction: column;
  width: min(520px, 100%);
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  box-shadow: -12px 0 40px #2a1f2d2e;
}

.drawer header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  display: flex;
}

.drawer .body {
  flex: 1;
  padding: 18px 20px 28px;
  overflow-y: auto;
}

.drawer footer {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  display: flex;
}

dl.kv {
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0 0 16px;
  display: grid;
}

dl.kv dt {
  color: var(--ink-3);
}

dl.kv dd {
  margin: 0;
  font-weight: 500;
}

.section-title {
  border-top: 1px solid var(--line);
  margin: 18px 0 8px;
  padding-top: 14px;
  font-weight: 700;
}

.status-row {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  display: flex;
}

.svc-pick {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 260px;
  margin-bottom: 12px;
  padding: 4px 10px;
  overflow-y: auto;
}

.svc-pick .cat {
  color: var(--ink-3);
  margin: 10px 0 2px;
  font-size: .82rem;
  font-weight: 700;
}

.svc-pick label {
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: .92rem;
  display: flex;
}

.svc-pick label span {
  flex: 1;
}

.svc-pick label em {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-size: .84rem;
  font-style: normal;
}

.times {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  display: grid;
}

.times button {
  background: var(--surface);
  color: #3f5a3d;
  font-variant-numeric: tabular-nums;
  border: 1px solid #cfdccb;
  border-radius: 8px;
  min-height: 36px;
  font-weight: 600;
}

.times button[aria-pressed="true"] {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.suggest {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: -6px 0 12px;
  overflow: hidden;
}

.suggest button {
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  padding: 8px 10px;
  display: block;
}

.suggest button:hover {
  background: var(--petal-soft);
}

.sched-row {
  flex-wrap: wrap;
  align-items: center;
  margin: 0 -4px 6px;
  display: flex;
}

.sched-row > * {
  margin: 2px 4px;
}

.sched-row > strong {
  flex: none;
  width: 44px;
}

.sched-row > input[type="checkbox"] {
  flex: none;
}

.sched-times {
  flex-wrap: wrap;
  flex: 236px;
  min-width: 0;
  margin: 0 -4px;
  display: flex;
}

.sched-times input[type="time"] {
  flex: 110px;
  min-width: 110px;
  min-height: 34px;
  margin: 2px 4px;
  padding: 4px 8px;
}

.team-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  display: grid;
}

.member {
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  border-top: 5px solid var(--c);
  border-radius: 14px;
  padding: 18px;
}

.member:hover {
  border-color: var(--ink-3);
  border-top-color: var(--c);
}

.member h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.member .days {
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  display: flex;
}

.member .days span {
  background: var(--sage-soft);
  color: var(--sage);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .75rem;
  font-weight: 600;
}

.member .days span.off {
  color: var(--ink-3);
  background: none;
  font-weight: 400;
}

.bars {
  align-items: flex-end;
  gap: 3px;
  height: 180px;
  padding-top: 10px;
  display: flex;
}

.bars div {
  background: var(--lacquer);
  border-radius: 3px 3px 0 0;
  flex: 1;
  min-height: 2px;
  position: relative;
}

.bars div:hover {
  background: var(--lacquer-deep);
}

.bar-axis {
  color: var(--ink-3);
  justify-content: space-between;
  margin-top: 6px;
  font-size: .78rem;
  display: flex;
}

.hbar {
  grid-template-columns: minmax(0, 1fr) 80px;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 10px;
  display: grid;
}

.hbar .track {
  background: var(--petal-soft);
  border-radius: 4px;
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
}

.hbar .track i {
  background: var(--c, var(--lacquer));
  border-radius: 4px;
  height: 100%;
  display: block;
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  display: flex;
}

.toast {
  background: var(--ink);
  color: #fff;
  z-index: 60;
  border-radius: 999px;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  font-weight: 500;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.spinner {
  vertical-align: -3px;
  border: 2px solid;
  border-right-color: #0000;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: .7s linear infinite spin;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

.side .brand img {
  background: #fde9ea;
  border-radius: 50%;
  flex: none;
  width: 40px;
  height: 40px;
}

.side .brand i {
  display: none;
}

.login-logo {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 10px 26px -10px #7a0a1e73;
}

.login h1 {
  text-align: center;
}

.brand-images {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  display: grid;
}

.brand-images .preview {
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--petal-soft);
  border-radius: 14px;
  width: 140px;
  height: 140px;
}

.brand-images .preview.round {
  border-radius: 50%;
}

.brand-images .preview.wide {
  width: 140px;
  height: 79px;
}

.brand-images .btns {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.seg {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  display: inline-flex;
  overflow: hidden;
}

.seg button {
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 8px 14px;
  font-weight: 600;
}

.seg button + button {
  border-left: 1px solid var(--line);
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.wk-day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-direction: column;
  min-height: 260px;
  display: flex;
  overflow: hidden;
}

.wk-day.is-today {
  border-color: var(--lacquer);
  box-shadow: 0 0 0 2px var(--petal);
}

.wk-head {
  background: var(--petal-soft);
  text-align: left;
  cursor: pointer;
  border: 0;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  display: flex;
}

.wk-head span {
  color: var(--ink-3);
  font-size: .85rem;
}

.wk-head strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
}

.wk-head em {
  color: var(--ink-3);
  margin-left: auto;
  font-size: .75rem;
  font-style: normal;
}

.is-today .wk-head {
  background: var(--lacquer);
}

.is-today .wk-head span, .is-today .wk-head strong, .is-today .wk-head em {
  color: #fff;
}

.wk-list {
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 8px;
  display: flex;
}

.wk-empty {
  color: var(--ink-3);
  padding: 6px 4px;
  font-size: .85rem;
}

.wk-add {
  border: 1px dashed var(--line);
  color: var(--ink-3);
  background: none;
  border-radius: 8px;
  margin-top: auto;
  padding: 6px;
  font-size: .85rem;
}

.wk-add:hover {
  border-color: var(--lacquer);
  color: var(--lacquer);
}

.chip {
  text-align: left;
  border: 0;
  border-left: 4px solid var(--c, var(--ink-3));
  background: #fff;
  background: color-mix(in srgb, var(--c, #8a7b8c), #fff 86%);
  cursor: pointer;
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: .82rem;
  line-height: 1.3;
}

.chip small {
  color: var(--ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
}

.chip.completed {
  opacity: .6;
}

.chip.no_show {
  opacity: .5;
  text-decoration: line-through;
}

.chip.checked_in {
  box-shadow: inset 0 0 0 2px var(--amber);
}

.chip.off {
  --c: #8a7b8c;
  cursor: default;
  background: repeating-linear-gradient(135deg, #f6eff1 0, #f6eff1 6px, #ece3e6 6px, #ece3e6 7px);
}

.month {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.mo-head {
  background: var(--petal-soft);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  display: grid;
}

.mo-head span {
  color: var(--ink-3);
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 600;
}

.mo-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  display: grid;
}

.mo-cell {
  border: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  flex-direction: column;
  gap: 3px;
  min-height: 112px;
  padding: 8px;
  display: flex;
  position: relative;
}

.mo-cell:nth-child(7n) {
  border-right: 0;
}

.mo-cell:hover {
  background: var(--petal-soft);
}

.mo-cell.out {
  color: var(--ink-3);
  background: #fcf8f8;
}

.mo-cell.closed .mo-num {
  color: var(--ink-3);
}

.mo-cell.is-today .mo-num {
  background: var(--lacquer);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}

.mo-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.mo-count {
  background: var(--lacquer);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 700;
  position: absolute;
  top: 8px;
  right: 8px;
}

.mo-items {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.mo-item {
  white-space: nowrap;
  text-overflow: ellipsis;
  border-left: 3px solid var(--c);
  padding-left: 5px;
  font-size: .76rem;
  overflow: hidden;
}

.mo-more, .mo-off {
  color: var(--ink-3);
  font-size: .74rem;
}

@media (max-width: 1100px) {
  .week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .week {
    grid-template-columns: minmax(0, 1fr);
  }

  .wk-day {
    min-height: 0;
  }

  .mo-cell {
    min-height: 64px;
    padding: 6px;
  }

  .mo-items, .mo-off {
    display: none;
  }

  .mo-count {
    top: auto;
    bottom: 6px;
    right: 6px;
  }

  .topbar .actions {
    width: 100%;
  }
}

.cover-lib {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  display: grid;
}

.cover-tile {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  flex-direction: column;
  margin: 0;
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  overflow: hidden;
}

.cover-tile.on {
  border-color: var(--lacquer);
  box-shadow: 0 0 0 2px var(--lacquer);
}

.cover-pick {
  background: var(--petal-soft);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  border: 0;
  width: 100%;
  padding: 0;
  display: block;
}

.cover-pick img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform .3s;
  display: block;
}

.cover-pick:hover img {
  transform: scale(1.04);
}

.cover-pick:focus-visible img {
  transform: scale(1.04);
}

.cover-pick:focus-visible {
  outline: 3px solid var(--lacquer);
  outline-offset: -3px;
}

.cover-tile figcaption {
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
}

.cover-tile .pill {
  vertical-align: middle;
  font-size: .7rem;
}

.tile-actions {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.cover-upload {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  display: flex;
}

.cover-upload .f {
  flex: 200px;
}

.backup-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 360px;
  overflow: auto;
}

.backup-row {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.backup-row:last-child {
  border-bottom: 0;
}

.backup-btns {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  display: flex;
}

@media (max-width: 560px) {
  .cover-lib {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .backup-row {
    flex-direction: column;
    align-items: stretch;
  }

  .backup-btns {
    justify-content: flex-start;
  }

  .topbar .actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar .actions .btn {
    min-height: 38px;
    padding: 7px 11px;
    font-size: .84rem;
  }

  .topbar .actions .icon-btn {
    padding: 7px 10px;
  }
}

:root {
  --shadow-sm: 0 1px 2px #2b12160f, 0 2px 8px -2px #2b12160f;
  --shadow: 0 1px 2px #2b12160d, 0 12px 32px -18px #2b121647;
  --r: 16px;
}

body {
  background: linear-gradient(180deg, #fff7f7 0, var(--base) 320px);
  background-attachment: fixed;
}

.shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

.ic {
  flex: none;
  width: 20px;
  height: 20px;
}

.side {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink-2);
  border-right: 1px solid var(--line);
  background: #ffffffdb;
  gap: 0;
  padding: 18px 12px;
}

.side .brand {
  color: var(--ink);
  padding: 2px 8px 14px;
  font-size: 1.25rem;
}

.side .brand img {
  width: 40px;
  height: 40px;
  box-shadow: var(--shadow-sm);
  border-radius: 50%;
}

.nav-group {
  border-top: 1px solid var(--line);
  gap: 2px;
  padding: 8px 0;
  display: grid;
}

.nav-group:first-of-type {
  border-top: 0;
}

.nav-h {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 12px;
  font-size: .7rem;
  font-weight: 700;
}

.side button {
  color: var(--ink-2);
  border-radius: 12px;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  font-size: .93rem;
  font-weight: 600;
  position: relative;
}

.side button:hover {
  background: var(--petal-soft);
  color: var(--ink);
}

.side button[aria-current="page"] {
  color: var(--lacquer-deep);
  background: linear-gradient(90deg, #fde6ea, #fff0f2);
}

.side button[aria-current="page"]:before {
  content: "";
  background: var(--lacquer);
  border-radius: 0 4px 4px 0;
  width: 4px;
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -12px;
}

.side button[aria-current="page"] .ic {
  color: var(--lacquer);
}

.side button .badge-n {
  background: var(--lacquer);
  color: #fff;
  border-radius: 999px;
  margin-left: auto;
  padding: 1px 7px;
  font-size: .72rem;
}

.side .foot {
  border-top: 1px solid var(--line);
  padding: 12px 4px 0;
}

.side .foot a {
  color: var(--ink-2);
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
}

.side .foot a:hover {
  background: var(--petal-soft);
}

.main {
  padding: 26px 32px 72px;
}

.topbar h1 {
  letter-spacing: -.01em;
  font-size: 2.1rem;
}

.card, .stat, .table-wrap, .member {
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border-color: #0000;
}

.btn {
  border-radius: 12px;
  transition: background .15s, border-color .15s, box-shadow .15s, transform 50ms;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  box-shadow: 0 6px 16px -8px #c8102eb3;
}

.btn-lg {
  min-height: 48px;
  padding: 0 20px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.tabbar, .more-sheet {
  display: none;
}

@media (max-width: 1100px) and (min-width: 701px) {
  .shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .side {
    align-items: center;
    padding: 14px 10px;
  }

  .side .brand span, .side button span, .nav-h, .side .foot a span {
    display: none;
  }

  .side .brand {
    padding: 0 0 10px;
  }

  .side button {
    justify-content: center;
    width: 44px;
    padding: 11px;
  }

  .side button[aria-current="page"]:before {
    left: -10px;
  }

  .nav-group {
    justify-items: center;
    width: 100%;
  }

  .side .foot {
    justify-items: center;
    width: 100%;
    display: grid;
  }

  .main {
    padding: 22px 22px 64px;
  }

  .drawer {
    width: min(640px, 92vw);
  }
}

@media (max-width: 700px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    display: none;
  }

  .main {
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom));
  }

  .topbar h1 {
    font-size: 1.7rem;
  }

  .tabbar {
    z-index: 40;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: #fffffff0;
    grid-template-columns: repeat(5, 1fr);
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .tabbar button {
    color: var(--ink-3);
    background: none;
    border: 0;
    border-radius: 12px;
    justify-items: center;
    gap: 2px;
    padding: 6px 0;
    font-size: .7rem;
    font-weight: 700;
    display: grid;
  }

  .tabbar button[aria-current="page"], .tabbar #moreBtn[aria-expanded="true"] {
    color: var(--lacquer);
  }

  .tabbar .ic {
    width: 22px;
    height: 22px;
  }

  .more-sheet:not([hidden]) {
    inset: auto 0 calc(64px + env(safe-area-inset-bottom)) 0;
    z-index: 39;
    border-top: 1px solid var(--line);
    background: #fff;
    border-radius: 22px 22px 0 0;
    max-height: 70vh;
    padding: 16px 12px 12px;
    display: block;
    position: fixed;
    overflow: auto;
    box-shadow: 0 -20px 50px -20px #2b121659;
  }

  .more-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    display: grid;
  }

  .more-grid button {
    background: var(--base);
    color: var(--ink-2);
    text-align: center;
    border: 0;
    border-radius: 14px;
    justify-items: center;
    gap: 6px;
    padding: 12px 4px;
    font-size: .74rem;
    font-weight: 700;
    display: grid;
  }

  .more-grid button[aria-current="page"] {
    background: var(--petal-soft);
    color: var(--lacquer-deep);
  }

  .more-grid .ic {
    width: 24px;
    height: 24px;
  }

  .drawer {
    width: 100vw;
  }

  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

.drawer.wide {
  width: min(980px, 100%);
}

.seg {
  border-radius: 12px;
}

.seg button[aria-pressed="true"] {
  background: var(--lacquer);
}

.neg, .stat.warn .v {
  color: var(--danger);
}

.stat-inline {
  margin: 10px 0;
  font-size: 1rem;
}

.stat-inline strong {
  font-size: 1.6rem;
  font-family: var(--display);
  color: var(--lacquer-deep);
  margin-right: 4px;
  font-weight: 400;
}

.method-strip {
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 18px;
  display: flex;
}

.method-strip span {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .88rem;
}

.desk {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  display: grid;
}

.desk-col {
  border: 1px solid var(--line);
  background: #fff9;
  border-radius: 20px;
  min-height: 160px;
  padding: 14px;
}

.desk-col h2 {
  font-family: var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  align-items: center;
  gap: 8px;
  margin: 2px 4px 12px;
  font-size: .82rem;
  font-weight: 800;
  display: flex;
}

.desk-col .count {
  background: var(--ink);
  color: #fff;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: .75rem;
}

.desk-card {
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  border-radius: 16px;
  margin-bottom: 10px;
  padding: 12px 14px 12px 18px;
  transition: transform .15s;
  position: relative;
  overflow: hidden;
}

.desk-card:before {
  content: "";
  background: var(--c);
  width: 5px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.desk-card:hover {
  transform: translateY(-1px);
}

.desk-top {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.desk-time {
  font-variant-numeric: tabular-nums;
  margin-right: auto;
  font-size: 1.15rem;
}

.desk-who {
  margin-top: 2px;
  font-weight: 700;
}

.desk-what, .desk-staff {
  color: var(--ink-2);
  font-size: .86rem;
}

.desk-warn {
  color: #6b5414;
  background: #fff3cd;
  border-radius: 10px;
  margin-top: 8px;
  padding: 6px 10px;
  font-size: .82rem;
}

.desk-btns {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  display: flex;
}

.desk-btns .btn {
  flex: auto;
}

.desk-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
  display: flex;
}

.desk-actions .btn {
  flex: 160px;
}

.doc-row {
  background: var(--sage-soft);
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 8px 12px;
  font-weight: 600;
  display: flex;
}

.doc-row.missing {
  color: #6b5414;
  background: #fff3cd;
}

.tk-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.tk-no {
  font-family: var(--display);
  font-size: 1.5rem;
}

.tk-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
  align-items: start;
  gap: 22px;
  display: grid;
}

.tk-lines .t td {
  vertical-align: top;
}

.tk-lines input {
  min-height: 34px;
  padding: 4px 8px;
}

.tk-lines .ln-qty {
  width: 60px;
}

.tk-lines .ln-price {
  text-align: right;
  width: 90px;
}

.tk-add {
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
  display: flex;
}

.tk-add select {
  flex: 160px;
  width: auto;
}

.inline-pair {
  gap: 6px;
  display: flex;
}

.inline-pair select {
  flex: none;
  width: 70px;
}

.tip-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.tip-row input {
  flex: 1;
  width: 110px;
}

.tk-side {
  background: var(--base);
  border-radius: 18px;
  padding: 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.tk-sum > div {
  justify-content: space-between;
  padding: 4px 0;
  display: flex;
}

.tk-sum .grand {
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.tk-sum .due {
  background: var(--lacquer);
  color: #fff;
  border-radius: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 1.2rem;
  font-weight: 800;
}

.tk-ok {
  background: var(--sage-soft);
  color: #2f5a1e;
  border-radius: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  font-weight: 700;
}

.tk-change {
  color: var(--sage);
  margin-bottom: 6px;
  font-weight: 800;
}

.pay-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  display: grid;
}

.pay-methods .btn {
  min-height: 44px;
}

.pay-line {
  border-bottom: 1px dashed var(--line);
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: .9rem;
  display: flex;
}

.qr-pay {
  background: #fff;
  border-radius: 14px;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px;
  display: grid;
}

.qr-box svg, .qr-mini svg {
  width: 100%;
  height: auto;
  display: block;
}

.qr-row {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  display: grid;
}

.qr-mini {
  border: 1px solid var(--line);
  border-radius: 12px;
  justify-items: center;
  gap: 4px;
  padding: 8px;
  font-size: .8rem;
  font-weight: 700;
  display: grid;
}

.hbar-row {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  padding: 6px 0;
  display: flex;
}

.t.mini td, .t.mini th {
  padding: 8px 6px;
}

.gc-art {
  color: #fff;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #9c0b22, #c8102e);
  border-radius: 18px;
  gap: 4px;
  margin-bottom: 12px;
  padding: 18px;
  display: grid;
}

.gc-art strong {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 400;
}

.gc-art .code {
  background: #ffffff2e;
  border-radius: 8px;
  justify-self: start;
  padding: 2px 8px;
  font-style: normal;
}

.code {
  font-family: ui-monospace, monospace;
}

.slide-list {
  gap: 8px;
  margin-bottom: 12px;
  display: grid;
}

.slide-row {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  display: grid;
}

.slide-row img {
  object-fit: cover;
  border-radius: 10px;
  width: 110px;
  height: 62px;
}

.slide-opts {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  display: flex;
}

.slide-opts select {
  width: auto;
  min-height: 32px;
  padding: 2px 8px;
}

.slide-btns {
  gap: 4px;
  display: flex;
}

.chk-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 12px;
  display: grid;
}

.doc-edit {
  min-height: 340px;
  font-size: .92rem;
  line-height: 1.5;
}

.doc-view {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 50vh;
  margin: 12px 0;
  padding: 14px;
  font-size: .92rem;
  line-height: 1.55;
  overflow: auto;
}

.sig-img img {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
}

.tpl-row {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.progress {
  background: var(--petal-soft);
  border-radius: 999px;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.progress i {
  background: var(--lacquer);
  height: 100%;
  transition: width .3s;
  display: block;
}

@media (max-width: 1100px) {
  .desk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tk-grid {
    grid-template-columns: 1fr;
  }

  .tk-side {
    position: static;
  }
}

@media (max-width: 700px) {
  .desk {
    grid-template-columns: 1fr;
  }

  .slide-row {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .slide-row img {
    width: 80px;
    height: 48px;
  }

  .slide-btns {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .qr-pay {
    grid-template-columns: 120px 1fr;
  }

  .tk-lines .ln-price {
    width: 74px;
  }
}

label.f > .inline-pair, label.f > .tip-row {
  font-weight: 400;
  font-size: inherit;
  margin: 0;
  display: flex;
}

.code {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .tk-lines th:nth-child(4), .tk-lines td:nth-child(4) {
    display: none;
  }

  .tk-lines .ln-qty {
    width: 46px;
  }

  .tk-lines .ln-name {
    min-width: 130px;
  }

  .tk-lines .t td, .tk-lines .t th {
    padding-left: 6px;
    padding-right: 6px;
  }
}

.credit {
  color: var(--ink-3);
  font-size: .76rem;
  line-height: 1.4;
}

.login .credit {
  text-align: center;
  margin: 18px 0 0;
}

.side .foot .credit {
  padding: 4px 8px 6px;
  display: block;
}

@media (max-width: 1100px) and (min-width: 701px) {
  .side .foot .credit {
    display: none;
  }
}

.tw-steps {
  color: var(--ink-2);
  margin: 10px 0 14px;
  padding-left: 1.2em;
  font-size: .9rem;
}

.tw-steps li {
  margin-bottom: 6px;
}

.pin-set {
  gap: 4px;
  max-width: 280px;
  margin: 8px 0;
  display: grid;
}

.login form + form {
  margin-top: 0;
}

.more-foot {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
}

.more-foot a {
  text-decoration: none;
}

.more-foot .credit {
  text-align: center;
  width: 100%;
  font-weight: 400;
}

body.role-staff [data-owner] {
  display: none !important;
}

.nav-group:not(:has(button:not([hidden]))) {
  display: none;
}

.who-line {
  color: var(--lacquer-deep);
  padding: 0 8px 4px;
  font-size: .8rem;
  font-weight: 700;
  display: block;
}

.who-line:empty {
  display: none;
}

#drawerFoot {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

#drawerFoot .btn-close {
  margin-left: auto;
}

#drawerFoot .btn-danger[style*="margin-left:auto"] ~ .btn-close {
  margin-left: 0;
}

.more-head {
  justify-content: space-between;
  align-items: center;
  margin: 0 4px 10px;
  display: flex;
}

.cat-list {
  gap: 8px;
  display: grid;
}

.cat-row-ed {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.cat-name {
  display: grid;
}

.cat-btns {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.gc-card {
  color: #fff;
  aspect-ratio: 1.586;
  background: radial-gradient(420px 220px at 95% 115%, #e8344f, #0000 70%), linear-gradient(135deg, #7e0a1d, #c8102e);
  border-radius: 20px;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 18px 20px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 40px -22px #7a0a1eb3;
}

.gc-card:after {
  content: "";
  background: #ffffff12;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  position: absolute;
  top: -40px;
  right: -40px;
}

.gc-card.void {
  filter: grayscale();
  opacity: .75;
}

.gc-card.pending {
  background: linear-gradient(135deg, #6b5a5d, #a08a8e);
}

.gc-top {
  z-index: 1;
  align-items: center;
  gap: 10px;
  display: flex;
  position: relative;
}

.gc-top img {
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
}

.gc-top span {
  font-family: var(--display);
  font-size: 1.15rem;
}

.gc-top em {
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
  margin-left: auto;
  font-size: .72rem;
  font-style: normal;
}

.gc-value {
  font-family: var(--display);
  z-index: 1;
  font-size: 2.4rem;
  line-height: 1;
  position: relative;
}

.gc-value small {
  font-family: var(--sans);
  opacity: .8;
  font-size: .85rem;
}

.gc-num {
  letter-spacing: .14em;
  z-index: 1;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 1.25rem;
  position: relative;
}

.gc-meta {
  z-index: 1;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  display: grid;
  position: relative;
}

.gc-meta span {
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  font-size: .64rem;
  display: block;
}

.gc-meta strong {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .9rem;
  font-weight: 700;
  display: block;
  overflow: hidden;
}

.wf-attn h2 {
  align-items: center;
  gap: 8px;
  display: flex;
}

.count {
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-family: var(--sans);
  border-radius: 999px;
  padding: 1px 8px;
}

.attn {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}

.attn:last-of-type {
  border-bottom: 0;
}

.attn > span:nth-child(2) {
  flex: 1;
}

.attn-ic {
  background: var(--petal-soft);
  border-radius: 10px;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.wf-board {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 16px;
  display: grid;
}

.wf-col {
  border: 1px solid var(--line);
  background: #fff9;
  border-radius: 18px;
  padding: 12px;
  position: relative;
}

.wf-col:not(:last-child):after {
  content: "›";
  background: var(--lacquer);
  color: #fff;
  z-index: 1;
  border-radius: 50%;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: .9rem;
  font-weight: 800;
  display: grid;
  position: absolute;
  top: 22px;
  right: -11px;
}

.wf-col header {
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.wf-col header h3 {
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: .95rem;
  display: flex;
}

.wf-col header p {
  color: var(--ink-3);
  margin: 2px 0 0;
  font-size: .76rem;
  line-height: 1.35;
}

.wf-step {
  background: var(--lacquer);
  color: #fff;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: .85rem;
  font-weight: 800;
  display: grid;
}

.wf-card {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--c);
  cursor: pointer;
  border-radius: 14px;
  margin-bottom: 8px;
  padding: 10px 12px 10px 14px;
}

.wf-t {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.wf-who {
  font-weight: 700;
}

.wf-what {
  color: var(--ink-2);
  font-size: .8rem;
}

.wf-act {
  margin-top: 8px;
}

.wf-act .btn {
  white-space: normal;
  width: 100%;
}

.wf-empty {
  color: var(--ink-3);
  text-align: center;
  padding: 10px 0;
}

.wf-closed {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  display: grid;
}

@media (max-width: 1400px) {
  .wf-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wf-col:not(:last-child):after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .wf-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wf-board {
    grid-template-columns: 1fr;
  }

  .gc-value {
    font-size: 2rem;
  }

  .gc-num {
    font-size: 1.05rem;
  }
}

.vc-card {
  aspect-ratio: 1.75;
  color: #3b1b10;
  background: radial-gradient(380px 200px at 100% 0, #c8102e24, #0000 70%), linear-gradient(135deg, #fff8ef, #f6e3c8);
  border: 2px dashed #c9a46a;
  border-radius: 20px;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 16px 20px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px -24px #7a460a99;
}

.vc-card.used, .vc-card.void, .vc-card.expired {
  filter: grayscale(.9);
  opacity: .75;
}

.vc-top {
  align-items: center;
  gap: 10px;
  display: flex;
}

.vc-top img {
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
}

.vc-title {
  font-family: var(--display);
  color: var(--lacquer-deep);
  font-size: 1.3rem;
  line-height: 1;
  display: block;
}

.vc-by {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6a3c;
  font-size: .72rem;
  display: block;
}

.vc-top em {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lacquer);
  margin-left: auto;
  font-size: .8rem;
  font-style: normal;
  font-weight: 800;
}

.vc-value {
  font-family: var(--display);
  color: var(--lacquer-deep);
  font-size: 2.1rem;
  line-height: 1.05;
}

.vc-cond {
  color: #8a6a3c;
  margin-top: -6px;
  font-size: .8rem;
}

.vc-num {
  letter-spacing: .14em;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.15rem;
}

.vc-meta {
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  display: grid;
}

.vc-meta span {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a6a3c;
  font-size: .62rem;
  display: block;
}

.vc-meta strong {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .88rem;
  display: block;
  overflow: hidden;
}

.vc-foot {
  color: #8a6a3c;
  text-align: right;
  font-size: .66rem;
}

.vi-hits {
  flex-wrap: wrap;
  gap: 6px;
  margin: -6px 0 10px;
  display: flex;
}

@media (max-width: 700px) {
  .vc-value {
    font-size: 1.7rem;
  }

  .vc-card {
    aspect-ratio: auto;
    gap: 8px;
  }
}

.line-pill {
  background: var(--lacquer) !important;
  color: #fff !important;
  border-color: #0000 !important;
}

.desk-wait {
  background: linear-gradient(180deg, var(--petal-soft), #fff9 160px);
}

html {
  -webkit-tap-highlight-color: #c8102e1f;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

@media (hover: none), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
    font-size: 16px;
  }

  button, .btn, a.btn {
    touch-action: manipulation;
  }
}

@media (hover: none) {
  .btn:hover {
    filter: none;
  }
}

img, svg, video {
  max-width: 100%;
}

@supports (height: 100dvh) {
  .login, .shell {
    min-height: 100dvh;
  }

  .side {
    height: 100dvh;
  }

  .cal {
    max-height: calc(100dvh - 150px);
  }
}

input, select, textarea {
  max-width: 100%;
}

.show-sm {
  display: none;
}

@media (max-width: 560px) {
  .hide-sm {
    display: none;
  }

  .show-sm {
    display: inline;
  }
}

.dev-link {
  color: inherit;
  text-underline-offset: 2px;
  -webkit-text-decoration: underline #c8102e59;
  text-decoration: underline #c8102e59;
}

.dev-link:hover {
  color: var(--lacquer);
  -webkit-text-decoration-color: currentColor;
  text-decoration-color: currentColor;
}

body.is-kiosk .dev-link {
  pointer-events: none;
  text-decoration: none;
}

.card-stamp {
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 3;
  white-space: nowrap;
  background: #2b12168c;
  border: 3px solid #fff;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 800;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%)rotate(-8deg);
  box-shadow: 0 6px 18px #0000002e;
}

.vc-card .card-stamp {
  color: #9c0b22;
  background: #ffffffd9;
  border-color: #9c0b22;
}

.zero {
  color: #9c0b22;
}

.speed-box .seg {
  margin-bottom: 10px;
}

.speed-preview {
  background: var(--petal-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 140px;
  position: relative;
  overflow: hidden;
}

.speed-preview img {
  object-fit: cover;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: opacity var(--fade, 1.2s) ease;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.speed-preview img.on {
  opacity: 1;
}

.pv-badge {
  color: #fff;
  background: #2b1216b3;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .8rem;
  font-weight: 700;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.wait-svc {
  flex-wrap: wrap;
  margin: -4px 0 10px;
  display: flex;
}

.wait-svc span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  margin: 2px 6px 2px 0;
  padding: 3px 10px;
  font-size: .78rem;
}

.wait-svc b {
  color: var(--lacquer);
  margin-right: 3px;
}

.fin-tabs {
  flex-wrap: wrap;
  margin: -6px 0 16px;
}

.fin-stats .stat.pos .v {
  color: var(--sage);
}

.fin-stats .stat.neg .v, .neg {
  color: var(--danger);
}

.pl-card h2 {
  margin-bottom: 0;
}

table.pl {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  width: 100%;
  margin-top: 12px;
}

table.pl td, table.pl th {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 7px 4px;
}

table.pl td.r {
  text-align: right;
  white-space: nowrap;
}

table.pl tr.sec th {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 0;
  padding-top: 18px;
  font-size: .74rem;
}

table.pl tr.sub td {
  border-top: 2px solid var(--ink);
  font-weight: 700;
}

table.pl tr.total td {
  border-top: 3px double var(--ink);
  border-bottom: 0;
  padding-top: 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

table.pl tr.total.pos td.r {
  color: var(--sage);
}

.pl-memo {
  background: var(--base);
  border-radius: 12px;
  margin-top: 18px;
  padding: 12px 14px;
}

.pl-memo h3 {
  margin: 0 0 6px;
  font-size: .9rem;
}

.fin-note {
  margin-top: 14px;
}

.fin-months .fm-legend {
  color: var(--ink-3);
  flex-wrap: wrap;
  margin: 0 0 8px;
  font-size: .8rem;
  display: flex;
}

.fm-legend span {
  align-items: center;
  margin-right: 14px;
  display: inline-flex;
}

.fm-legend span:before {
  content: "";
  border-radius: 3px;
  width: 10px;
  height: 10px;
  margin-right: 5px;
}

.fm-legend .k-rev:before, .b-rev {
  background: #d97a8a;
}

.fm-legend .k-exp:before, .b-exp {
  background: #b9a9ac;
}

.fm-legend .k-net:before, .b-net {
  background: var(--sage);
}

.b-net.neg {
  background: var(--danger);
}

.fm-row {
  border-top: 1px solid var(--line);
  grid-template-columns: 80px minmax(0, 1fr) 96px;
  align-items: center;
  padding: 5px 0;
  display: grid;
}

.fm-l {
  font-size: .85rem;
  font-weight: 600;
}

.fm-bars i {
  border-radius: 4px;
  min-width: 2px;
  height: 7px;
  margin: 2px 0;
  display: block;
}

.fm-v {
  text-align: right;
  font-size: .9rem;
  font-weight: 700;
}

.tp-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  display: grid;
}

.tp-card {
  text-align: left;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  padding: 10px 12px;
  display: flex;
}

.tp-card > * {
  margin: 2px 0;
}

.tp-card:hover {
  border-color: var(--lacquer);
}

.tp-warn {
  color: #9a6a12;
}

.tp-ok {
  color: var(--sage);
}

.pill.w2 {
  color: #24508f;
  background: #e5eefb;
  border-color: #c9daf3;
}

.pill.c1099 {
  background: var(--amber-soft);
  color: #7a5410;
  border-color: #f0dcae;
}

.pt-choice {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  display: grid;
}

.pt-opt {
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 12px;
  padding: 10px;
  display: flex;
}

.pt-opt input {
  margin: 3px 8px 0 0;
}

.pt-opt small {
  color: var(--ink-3);
  margin-top: 2px;
  font-size: .8rem;
  display: block;
}

.pt-opt:has(input:checked) {
  border-color: var(--lacquer);
  background: var(--petal-soft);
}

.pf-earn {
  margin: 8px 0 10px;
}

.pf-net {
  background: var(--sage-soft);
  border-radius: 12px;
  margin: 6px 0 14px;
  padding: 10px 14px;
  font-size: 1.15rem;
}

.fin-cats {
  margin: -4px 0 12px;
}

@media (max-width: 700px) {
  .row3 {
    grid-template-columns: 1fr 1fr;
  }

  .pt-choice {
    grid-template-columns: 1fr;
  }

  .fm-row {
    grid-template-columns: 64px minmax(0, 1fr) 84px;
  }
}

.stat .v {
  white-space: nowrap;
}

#yrPick, .fin-range select {
  width: auto;
}

.fin-who {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .fin-tabs {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    display: grid;
  }

  .fin-tabs button {
    padding: 10px 8px;
  }

  .fin-stats .stat .v {
    font-size: 1.5rem;
  }
}

.svc-thumb {
  object-fit: cover;
  background: var(--petal-soft);
  border-radius: 10px;
  width: 52px;
  height: 52px;
  display: block;
}

.svc-th-img, .svc-td-img {
  width: 64px;
}

.svc-table .cat-row td {
  display: table-cell;
}

.svc-table .cat-row td > span {
  margin-right: 10px;
}

.cat-add {
  float: right;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.svc-del {
  min-width: 38px;
}

.sf-pic {
  align-items: flex-start;
  margin-bottom: 14px;
  display: flex;
}

.sf-pic > img {
  object-fit: cover;
  background: var(--petal-soft);
  border-radius: 14px;
  flex: none;
  width: 120px;
  height: 90px;
  margin-right: 14px;
}

.sf-pic .btn {
  margin: 0 6px 6px 0;
}

.sf-lib {
  background: var(--base);
  border-radius: 12px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin: -4px 0 14px;
  padding: 10px;
  display: grid;
}

.sf-lib button {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  font-size: .74rem;
}

.sf-lib button:hover {
  border-color: var(--lacquer);
}

.sf-lib img {
  object-fit: cover;
  border-radius: 7px;
  width: 100%;
  height: 56px;
  margin-bottom: 2px;
  display: block;
}

.list-item .svc-thumb {
  width: 44px;
  height: 44px;
  margin-right: 10px;
}

@media (max-width: 700px) {
  .svc-th-img, .svc-td-img {
    width: 48px;
  }

  .svc-table .svc-thumb {
    width: 40px;
    height: 40px;
  }

  .cat-add {
    float: none;
    margin-top: 6px;
    display: inline-flex;
  }
}

.admin-top {
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px 0;
  display: flex;
}

.back-site {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: #fff;
  border-radius: 999px;
  align-items: center;
  padding: 7px 14px 7px 10px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  box-shadow: 0 1px 2px #2b12160d;
}

.back-site:hover {
  border-color: var(--lacquer);
  color: var(--lacquer);
}

.back-site .ic {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.admin-top-name {
  color: var(--ink-3);
  font-size: .8rem;
  font-weight: 600;
}

.main {
  padding-top: 14px;
}

.more-site {
  background: var(--petal-soft);
  color: var(--lacquer-deep);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.more-site .ic {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

@media (max-width: 700px) {
  .admin-top {
    padding: 10px 14px 0;
  }

  .admin-top-name {
    display: none;
  }
}

@media print {
  .admin-top {
    display: none;
  }
}

.svc-thumb, .sf-pic > img {
  flex: none;
  max-width: none;
}

.svc-table td.svc-td-img {
  padding-right: 4px;
}

@media (max-width: 700px) {
  .svc-table th:nth-child(3), .svc-table td:nth-child(3), .svc-table th:nth-child(5), .svc-table td:nth-child(5) {
    display: none;
  }

  .svc-table td, .svc-table th {
    padding-left: 8px;
    padding-right: 8px;
  }

  .svc-table td .muted.small {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .svc-table .cat-row td {
    padding-top: 14px;
  }
}

.admin-top-l {
  flex-wrap: wrap;
  align-items: center;
  display: flex;
}

.admin-top-l > * {
  margin: 0 8px 4px 0;
}

.back-prev {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  align-items: center;
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 700;
  display: inline-flex;
}

.back-prev span {
  margin-left: 4px;
}

.back-prev:hover {
  background: var(--lacquer);
}

.svc-filter {
  align-items: flex-end;
  margin-bottom: 12px;
}

.svc-filter select {
  min-width: 220px;
}

.cat-chips {
  flex-wrap: wrap;
  margin: 0 -3px;
  display: flex;
}

.chip-cat {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: #fff;
  border-radius: 999px;
  margin: 3px;
  padding: 5px 12px;
  font-size: .82rem;
  font-weight: 600;
}

.chip-cat b {
  color: var(--ink-3);
  margin-left: 2px;
  font-weight: 700;
}

.chip-cat.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chip-cat.on b {
  color: #f3c7d0;
}

.sf-lib-wrap {
  background: var(--base);
  border-radius: 12px;
  max-height: 360px;
  margin: -4px 0 14px;
  padding: 10px;
  overflow: auto;
}

.sf-lib-h {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 2px 6px;
  font-size: .74rem;
  font-weight: 700;
}

.sf-lib-wrap .sf-lib {
  background: none;
  margin: 0 0 10px;
  padding: 0;
}

@media (max-width: 700px) {
  .cat-chips {
    display: none;
  }

  .svc-filter select {
    width: 100%;
    min-width: 0;
  }

  .svc-filter .f {
    width: 100%;
  }
}

.mail-modes {
  flex-wrap: wrap;
}

.mail-explain {
  background: var(--base);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  font-size: .92rem;
}

.mail-explain p {
  margin: 0;
}

.mail-check {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  font-size: .9rem;
}

.mail-check p {
  margin: 0 0 6px;
}

.mail-check ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.mail-check li {
  margin: 4px 0;
}

code.copy-code, .dns-row code {
  background: var(--petal-soft);
  border: 1px solid var(--line);
  word-break: break-all;
  cursor: copy;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: .84rem;
}

.diag {
  margin-top: 12px;
}

.diag .t td {
  padding: 7px 8px;
}

.dns-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.dns-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  display: flex;
}

.dns-row dl.kv {
  grid-template-columns: 110px 1fr;
}

.sg-steps {
  margin: 0 0 12px;
  padding-left: 20px;
}

.sg-steps li {
  margin: 3px 0;
}

.fix-box {
  border: 2px solid var(--lacquer);
  background: #fff;
  border-radius: 12px;
  margin-top: 10px;
  padding: 12px 14px;
}

.mail-explain, .mail-check, #tOut, .fix-box, #tLog {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#mailForm select, #mailForm input {
  min-width: 0;
}

.sr-only {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

table.t th.del-cell, table.t td.del-cell {
  text-align: right;
  vertical-align: middle;
  width: 44px;
  padding-left: 4px;
  padding-right: 8px;
  position: relative;
}

.row-del {
  width: 34px;
  min-width: 34px;
  height: 34px;
  color: var(--ink-3);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.row-del .ic {
  width: 18px;
  height: 18px;
}

.row-del:hover {
  color: #b42318;
  background: #fdecea;
  border-color: #f3c3bd;
}

.row-del:focus-visible {
  color: #b42318;
  background: #fdecea;
  border-color: #f3c3bd;
}

body.role-staff .row-del, body.role-staff .del-cell {
  display: none !important;
}

.member {
  position: relative;
}

.member > .row-del {
  position: absolute;
  top: 10px;
  right: 10px;
}

.member h3 {
  padding-right: 36px;
}

.pay-line.has-del {
  align-items: center;
}

.pay-line.has-del > .row-del {
  order: 3;
  width: 30px;
  min-width: 30px;
  height: 30px;
}

.pay-line.has-del > span {
  flex: 1;
  min-width: 0;
}

.section-title-row {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.clr-when {
  margin: 4px 0 12px;
}

.clr-list {
  gap: 2px;
  margin-bottom: 8px;
  display: grid;
}

.clr-row {
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  font-size: .93rem;
  display: flex;
}

.clr-row input {
  flex: none;
  width: auto;
  margin: 0;
}

.clr-row span {
  flex: 1;
  min-width: 0;
}

.clr-row strong {
  flex: none;
}

.clr-row input:disabled ~ span, .clr-row input:disabled ~ strong {
  color: var(--ink-3);
}

.clr-sum {
  margin: 6px 0 14px;
  padding-left: 20px;
}

.clr-sum li {
  margin: 3px 0;
}

@media (max-width: 700px) {
  table.t th.del-cell, table.t td.del-cell {
    background: var(--surface);
    width: 38px;
    padding-right: 4px;
    position: -webkit-sticky;
    position: sticky;
    right: 0;
    box-shadow: -8px 0 8px -8px #2a1f2d2e;
  }
}

.list-item.cl-gc {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.docket {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  margin: 12px 0 4px;
  padding: 14px 16px;
}

.docket-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  display: flex;
}

.docket-label {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-size: .68rem;
  display: block;
}

.docket-head strong {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.1rem;
}

.docket-kv dd {
  overflow-wrap: anywhere;
}

code.fp {
  overflow-wrap: anywhere;
  font-size: .72rem;
}

.dk-ev {
  border-bottom: 1px dashed var(--line);
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  display: grid;
}

.dk-ev:last-child {
  border-bottom: 0;
}

.dk-dot {
  background: var(--ink-3);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin-top: 5px;
}

.dk-dot.signed, .dk-dot.agreed {
  background: #1f7a3d;
}

.dk-dot.emailed, .dk-dot.texted, .dk-dot.sent, .dk-dot.resend {
  background: var(--lacquer, #c8102e);
}

.admin-top-r {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.branch-pick {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 2px 10px;
  display: inline-flex;
}

.branch-pick .ic {
  width: 16px;
  height: 16px;
  color: var(--lacquer);
  flex: none;
}

.branch-pick select {
  min-width: 0;
  max-width: 46vw;
  box-shadow: none;
  background: none;
  border: 0;
  padding: 6px;
  font-weight: 600;
}

body.role-staff.role-manager [data-owner].mgr-ok {
  display: inline-flex !important;
}

.branch-card {
  gap: 6px;
  display: grid;
}

.branch-card .bc-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.branch-card h3 {
  margin: 0;
}

.branch-card .bc-map {
  border: 0;
  border-radius: 12px;
  width: 100%;
  height: 150px;
  margin-top: 6px;
}

.branch-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  display: grid;
}

@media (max-width: 700px) {
  .admin-top-name {
    display: none;
  }
}

.wf-move {
  border-radius: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 6px 8px;
  font-size: .82rem;
}

.gc-found, .vc-found {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  display: flex;
}

.gc-found:empty, .vc-found:empty {
  display: none;
}

.qr-pay.qr-big {
  text-align: center;
  border: 2px solid var(--lacquer);
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: 10px;
}

.qr-pay.qr-big .qr-box {
  width: 230px;
  max-width: 100%;
}

.qr-pay.qr-big .status-row {
  justify-content: center;
}

.pay-methods .pm-qr {
  color: #fff;
  background: #111;
  border-color: #111;
  grid-column: 1 / -1;
}

.pay-methods .pm-qr.btn-ink {
  background: var(--lacquer);
  border-color: var(--lacquer);
}

img, svg, video, iframe, canvas, .btn {
  max-width: 100%;
}

@media (max-width: 760px) {
  .main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .stats {
    gap: 10px;
    margin-bottom: 12px;
  }

  .stats > .stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .bars {
    height: 130px;
  }
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.2;
  }

  .main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card {
    padding: 16px 14px;
  }
}

.zelle-badge {
  color: #fff;
  background: #6d1ed4;
  border-radius: 18px;
  flex: none;
  place-items: center;
  width: 72px;
  height: 72px;
  font-size: 2rem;
  font-weight: 800;
  display: grid;
}

.zelle-dl {
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 8px 0;
  font-size: .95rem;
  display: grid;
}

.zelle-dl dt {
  color: var(--ink-3);
}

.zelle-dl dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 700;
}

.claim-box {
  background: #fff7e0;
  border: 1px solid #f0d68a;
  border-radius: 14px;
  gap: 4px;
  margin: 0 0 12px;
  padding: 12px 14px;
  display: grid;
}

.claim-pill {
  color: #6b5414;
  background: #fff3cd;
}

.zelle-mini {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  place-content: center;
  gap: 2px;
  padding: 8px;
  font-size: .8rem;
  display: grid;
}

.zelle-mini b {
  color: #6d1ed4;
}

.pay-methods .pm-off {
  color: var(--ink-3);
  border-style: dashed;
}

.pay-methods .pm-off small {
  font-size: .75rem;
  font-weight: 500;
}

.setup-note .btn {
  margin-top: 6px;
}

.cm-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  display: grid;
}

@media (max-width: 860px) {
  .cm-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cm-side {
  gap: 12px;
  display: grid;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.cm-side .card {
  gap: 8px;
  padding: 14px;
  display: grid;
}

.cm-ch {
  margin-top: 4px;
  display: inline-flex;
}

.f .lbl {
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 600;
  display: block;
}

.cm-reach {
  background: var(--petal-soft, #fbeef0);
  border-radius: 14px;
  gap: 6px;
  padding: 12px 14px;
  display: grid;
}

.cm-r strong {
  font-size: 1.5rem;
  font-family: var(--display, Georgia, serif);
}

.cm-r details ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.cm-checks {
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  list-style: none;
  display: grid;
}

.cm-checks li {
  background: #fff7e0;
  border: 1px solid #f0d68a;
  border-radius: 10px;
  padding: 8px 10px;
}

.cm-checks li.error {
  color: #8a1024;
  background: #fdecee;
  border-color: #f2b8c0;
}

.cm-allok {
  color: #2f5a1f;
  background: #eaf4e4;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: .9rem;
  font-weight: 600;
}

.sms-prev {
  gap: 4px;
  display: grid;
}

.sms-prev .bubble {
  color: #111;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #e9e9eb;
  border-radius: 18px 18px 18px 4px;
  max-width: 320px;
  padding: 10px 14px;
  font-size: .92rem;
  line-height: 1.4;
}

.mail-prev iframe {
  border: 1px solid var(--line);
  background: #fbf4f2;
  border-radius: 12px;
  width: 100%;
  height: 420px;
  margin-top: 6px;
}

.cm-confirm {
  align-items: flex-start;
  font-size: .85rem;
}

.small-v {
  font-size: 1.4rem !important;
}

.ten-dlc {
  background: var(--petal-soft, #fbeef0);
  border-radius: 12px;
  margin: 8px 0 12px;
  padding: 12px;
}

.join-qr {
  width: 150px;
}

.rules-list {
  gap: 6px;
  padding-left: 18px;
  display: grid;
}

.cal-bar {
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
  display: flex;
}

.cal-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
  display: grid;
}

.cal-month {
  background: var(--surface);
  border-radius: var(--r, 14px);
  box-shadow: var(--shadow);
  align-content: start;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.cal-month h2 {
  margin: 0;
  font-size: 1.3rem;
}

.cal-events {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.cal-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  gap: 6px;
  padding: 12px;
  display: grid;
}

.cal-card.saved {
  border-color: #b9d8ad;
}

.cal-top {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.cal-send {
  font-size: .9rem;
}

.cal-note {
  color: #8a5a00;
  background: #fff7e0;
  border-radius: 8px;
  padding: 6px 8px;
}

.cal-card .sms-prev .bubble {
  max-width: none;
  font-size: .85rem;
}

.cal-card .btn {
  justify-self: start;
}

.cm-tip {
  font-size: .9rem;
}

@media print {
  .side, .tabbar, .topbar .actions, .cal-bar .btn, [data-usetpl], .backbar, #toast {
    display: none !important;
  }

  .shell {
    display: block;
  }

  .main {
    padding: 0;
  }

  .cal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cal-month {
    box-shadow: none;
    break-inside: avoid;
    border: 1px solid #ddd;
  }
}

.cm-mode {
  background: var(--petal-soft, #fbeef0);
  border-radius: 12px;
  gap: 4px;
  margin: -4px 0 10px;
  padding: 10px 12px;
  font-size: .9rem;
  display: grid;
}

.cm-mode[hidden] {
  display: none;
}

.sub-filters {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.sub-filters input[type="search"] {
  flex: 200px;
}

.sub-filters select {
  width: auto;
}

.sub-bulk {
  background: #fff7e0;
  border: 1px solid #f0d68a;
  border-radius: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  display: flex;
}

.sub-bulk[hidden] {
  display: none;
}

.pager {
  color: var(--ink-2);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: .9rem;
  display: flex;
}

.lib-tabs {
  margin: 2px 0 12px;
}

.lib-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.lib-pane[hidden] {
  display: none;
}

.pm-bulk {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 2px 0 12px;
  display: flex;
}

.pm-bulk .small {
  flex: 220px;
}

.pm-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  display: grid;
}

.pm-month {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  min-width: 0;
  padding: 10px;
}

.pm-month.now {
  border-color: var(--lacquer);
  box-shadow: 0 0 0 2px #0000;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lacquer) 25%, transparent);
}

.pm-mh {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  display: flex;
}

.pm-mh .small {
  margin-left: auto;
}

.pm-mh .pill {
  font-size: .7rem;
}

.pm-thumbs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.pm-thumb, .pm-add {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--surface-2, #f6f1f2);
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.pm-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.pm-thumb.sel {
  outline: 3px solid var(--lacquer);
  outline-offset: 1px;
}

.pm-thumb.off img {
  opacity: .35;
  filter: grayscale();
}

.pm-thumb.off span {
  color: #fff;
  text-align: center;
  background: #0009;
  padding: 1px 0;
  font-size: .65rem;
  font-weight: 700;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
}

.pm-add {
  color: var(--ink-2);
  border-style: dashed;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 300;
  display: flex;
}

.pm-add:hover, .pm-add:focus-within {
  color: var(--lacquer);
  border-color: var(--lacquer);
}

.pm-editor {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  display: grid;
}

.pm-editor > img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
}

.pm-ed-form .f {
  margin-bottom: 10px;
}

.pm-ed-form .btns {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.pm-chips {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  display: flex;
}

.chip-check {
  position: relative;
}

.chip-check input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.chip-check span {
  text-align: center;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--surface);
  border-radius: 999px;
  min-width: 46px;
  padding: 6px 8px;
  font-size: .85rem;
  font-weight: 600;
  display: inline-block;
}

.chip-check input:checked + span {
  background: var(--lacquer);
  border-color: var(--lacquer);
  color: #fff;
}

.chip-check input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .pm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pm-month {
    padding: 8px;
  }

  .pm-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-editor {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .lib-tabs {
    width: 100%;
    display: flex;
  }

  .lib-tabs button {
    flex: 1;
    padding: 8px 6px;
  }

  .lib-pane .row2 {
    grid-template-columns: 1fr;
  }

  .lib-tabs button {
    white-space: nowrap;
    font-size: .85rem;
  }
}

.pm-slbar {
  border: 1px dashed var(--line);
  background: var(--surface);
  border-radius: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  display: flex;
}

.pm-slbar .small {
  flex: 100%;
}

.pm-thumb .pm-sl {
  letter-spacing: .2px;
  background: var(--lacquer);
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  position: absolute;
  top: 3px;
  right: 3px;
}

.pm-slider {
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  display: flex;
}

.pm-slider.on {
  border-color: #0000;
  border-color: color-mix(in srgb, var(--lacquer) 45%, transparent);
  background: none;
  background: color-mix(in srgb, var(--lacquer) 6%, transparent);
}

.warn-text {
  color: #9a5b00;
}

.speed-preview img.fit {
  object-fit: contain;
  background: #2b1216;
}

@media (max-width: 640px) {
  .pm-slbar .btn {
    flex: 100%;
  }
}

.pm-thumb .pm-ph {
  background: #ffffffeb;
  border-radius: 6px;
  padding: 2px 3px;
  font-size: .7rem;
  font-style: normal;
  line-height: 1;
  position: absolute;
  bottom: 3px;
  right: 3px;
}

.pm-phone {
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  display: flex;
}

.pm-phone img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: none;
  width: 72px;
}

.pm-ph-empty {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line);
  opacity: .6;
  border-radius: 8px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 72px;
  font-size: 1.6rem;
  display: flex;
}

@media (max-width: 380px) {
  .pm-phone {
    flex-direction: column;
  }

  .pm-grid {
    grid-template-columns: 1fr;
  }

  .pm-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nowrap {
  white-space: nowrap;
}

.sp-now h2 {
  margin-bottom: 10px;
}

.sp-chips {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.sp-chip {
  border: 1px solid #0000;
  border: 1px solid color-mix(in srgb, var(--lacquer) 35%, transparent);
  background: none;
  background: color-mix(in srgb, var(--lacquer) 6%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .9rem;
  font-weight: 600;
}

.sp-chip b {
  color: var(--lacquer);
  margin-left: 4px;
}

.sp-ev {
  background: var(--petal-soft, #fbe6ea);
  color: var(--lacquer);
  vertical-align: middle;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: .72rem;
  font-weight: 700;
  display: inline-block;
}

.sp-table s {
  color: var(--ink-3, #9a8a8d);
}

.sp-table td {
  vertical-align: top;
}

@media (max-width: 640px) {
  .sp-table thead {
    display: none;
  }

  .sp-table tr {
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 10px 0;
    display: grid;
  }

  .sp-table td {
    border: 0 !important;
    padding: 0 !important;
  }

  .sp-table td:nth-child(2) {
    order: -1;
    grid-column: 1 / -1;
  }

  .sp-table td:nth-child(3), .sp-table td:nth-child(5), .sp-table td:nth-child(6) {
    display: none;
  }
}

.ly-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  gap: 7px;
  margin-bottom: 12px;
  padding: 12px 14px;
  display: grid;
}

.ly-box.ready {
  border-color: var(--lacquer);
  border-color: color-mix(in srgb, var(--lacquer) 55%, transparent);
  background: var(--surface);
  background: color-mix(in srgb, var(--lacquer) 5%, var(--surface));
}

.ly-top {
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  display: flex;
}

.ly-pts {
  color: var(--lacquer);
  font-size: 1.35rem;
  font-weight: 800;
}

.ly-pts small {
  color: var(--ink-2);
  font-size: .7rem;
  font-weight: 600;
}

.ly-bar {
  background: #eee;
  background: color-mix(in srgb, var(--lacquer) 12%, #eee);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.ly-bar i {
  background: linear-gradient(90deg, #f06292, var(--lacquer));
  border-radius: 99px;
  height: 100%;
  display: block;
}

.ly-use {
  justify-self: start;
}

.ly-earn {
  gap: 2px;
  font-size: .85rem;
  display: grid;
}

.ly-part {
  color: var(--ink-2);
  justify-content: space-between;
  gap: 8px;
  font-size: .8rem;
  display: flex;
}

.ly-part b {
  color: #1f7a3a;
}

.ly-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.ly-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.ly-big {
  color: var(--lacquer);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.ly-big small {
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 600;
}

.ly-ready {
  color: var(--lacquer);
}

.ly-stats {
  grid-template-columns: repeat(4, minmax(64px, auto));
  gap: 6px 14px;
  display: grid;
}

.ly-stats div {
  text-align: center;
  display: grid;
}

.ly-stats b {
  font-size: 1.1rem;
}

.ly-stats span {
  color: var(--ink-2);
  font-size: .7rem;
  line-height: 1.2;
}

.ly-hist td.neg {
  color: var(--lacquer);
  font-weight: 700;
}

.ly-hist td.pos {
  color: #1f7a3a;
  font-weight: 700;
}

.ly-hist tr.lyk-redeem td {
  background: none;
  background: color-mix(in srgb, var(--lacquer) 5%, transparent);
}

.ly-adj summary {
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
}

.ly-adj[open] {
  padding-bottom: 4px;
}

.ly-explain {
  background: var(--surface-2, #faf5f6);
  border-radius: 10px;
  padding: 8px 10px;
}

.err-text {
  color: var(--lacquer);
}

@media (max-width: 640px) {
  .ly-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

.ly-cardrow {
  grid-template-columns: minmax(0, 360px) auto;
  align-items: start;
  gap: 12px;
  display: grid;
}

.ly-cardbtns {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  display: flex;
}

.lc-card {
  color: #fff;
  background: radial-gradient(320px 180px at 100% 0, #f5a3b547, #0000 70%), linear-gradient(135deg, #1f0b10 0%, #5a1626 62%, #8e0b21 100%);
  border-radius: 16px;
  gap: 6px;
  padding: 14px 16px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.lc-top {
  align-items: center;
  gap: 10px;
  display: flex;
}

.lc-top img {
  background: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.lc-top strong {
  font-family: var(--display, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.1;
  display: block;
}

.lc-top span {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e9b8a4;
  font-size: .62rem;
  display: block;
}

.lc-pts {
  font-family: var(--display, Georgia, serif);
  font-size: 1.9rem;
  line-height: 1;
}

.lc-pts small {
  color: #e9b8a4;
  font-size: .8rem;
}

.lc-bar {
  background: #ffffff2e;
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.lc-bar i {
  background: linear-gradient(90deg, #f5a3b5, #ffd6df);
  border-radius: 99px;
  height: 100%;
  display: block;
}

.lc-num {
  letter-spacing: .14em;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.02rem;
}

.lc-meta {
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 6px;
  display: grid;
}

.lc-meta span {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e9b8a4;
  font-size: .58rem;
  display: block;
}

.lc-meta b {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .78rem;
  display: block;
  overflow: hidden;
}

@media (max-width: 640px) {
  .ly-cardrow {
    grid-template-columns: 1fr;
  }

  .ly-cardbtns {
    flex-flow: wrap;
  }
}

.sup-tabs {
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.sup-filters {
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  display: flex;
}

.sup-filters input[type="search"] {
  flex: 260px;
}

.sup-filters select {
  flex: 0 240px;
}

.sup-group {
  margin: 0 0 18px;
}

.sup-group h3 {
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 8px;
  font-size: 1rem;
  display: flex;
}

.sup-shade {
  background: var(--petal-soft, #fbe6ea);
  color: var(--lacquer);
  vertical-align: middle;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: .72rem;
  font-weight: 700;
  display: inline-block;
}

.sup-qty b {
  font-size: 1.05rem;
}

.sup-qty.low b {
  color: var(--lacquer);
}

.sup-bar {
  background: #eee;
  border-radius: 99px;
  width: 90px;
  height: 5px;
  margin: 4px 0 2px;
  display: block;
  overflow: hidden;
}

.sup-bar i {
  background: #3f8f5a;
  border-radius: 99px;
  height: 100%;
  display: block;
}

.sup-bar.low i {
  background: var(--lacquer);
}

.sup-btns {
  justify-content: flex-end;
  gap: 6px;
  display: flex;
}

.sup-oq {
  text-align: right;
  width: 76px;
}

.sup-orderbar {
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  display: flex;
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -8px 22px -18px #00000059;
}

.sup-orderbar > span {
  margin-right: auto;
}

.sup-count {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  display: grid;
}

.sup-crow {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.sup-crow > span {
  flex: 1;
  min-width: 0;
  display: grid;
}

.sup-crow small {
  color: var(--ink-2);
  font-size: .74rem;
}

.sup-crow input {
  text-align: right;
  width: 84px;
  font-size: 1.05rem;
}

.sup-start {
  border-style: dashed;
}

.pf-more {
  margin: 4px 0 12px;
}

.pf-more summary {
  cursor: pointer;
  margin-bottom: 8px;
  font-size: .9rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .sup-table thead {
    display: none;
  }

  .sup-table tr {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 10px 0;
    display: grid;
  }

  .sup-table td {
    border: 0 !important;
    padding: 0 !important;
  }

  .sup-table td:first-child {
    grid-column: 1 / -1;
  }

  .sup-table td:nth-child(3), .sup-table td:nth-child(4) {
    display: none;
  }

  .sup-btns {
    align-self: center;
  }

  .sup-order thead {
    display: none;
  }

  .sup-order tr {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 4px 10px;
    padding: 10px 0;
    display: grid;
  }

  .sup-order td {
    border: 0 !important;
    padding: 0 !important;
  }

  .sup-order td:nth-child(2) {
    grid-column: 2 / -1;
  }

  .sup-order td:nth-child(3) {
    text-align: left;
    grid-column: 2;
  }

  .sup-order td:nth-child(5) {
    display: none;
  }

  .sup-count {
    grid-template-columns: 1fr;
  }

  .sup-orderbar {
    justify-content: stretch;
  }

  .sup-orderbar .btn {
    flex: 140px;
  }
}

@media (max-width: 900px) {
  .sup-orderbar {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

.sec-hero {
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  display: flex;
}

.sec-hero > div:nth-child(2) {
  flex: 260px;
  min-width: 0;
}

.sec-hero h2 {
  margin: 0 0 2px;
}

.sec-badge {
  background: var(--petal-soft);
  width: 58px;
  height: 58px;
  color: var(--lacquer);
  border-radius: 16px;
  flex: none;
  place-items: center;
  display: grid;
}

.sec-badge .ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  width: 32px;
  height: 32px;
}

.sec-good .sec-badge {
  background: var(--sage-soft);
  color: var(--sage);
}

.sec-warn .sec-badge {
  background: var(--amber-soft);
  color: var(--amber);
}

.sec-danger {
  border-color: #e9a5ad;
}

.sec-danger .sec-badge {
  color: var(--danger);
  background: #fbe1e4;
}

.sec-clean {
  background: var(--sage-soft);
  color: #3f5a3d;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.sec-clean > span {
  font-size: 1.4rem;
  font-weight: 800;
}

.sec-sev {
  white-space: nowrap;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .74rem;
  font-weight: 800;
  display: inline-block;
}

.sec-high {
  color: var(--danger);
  background: #fbe1e4;
}

.sec-med {
  background: var(--amber-soft);
  color: var(--amber);
}

.sec-low {
  color: var(--ink-2, #5a4a4e);
  background: #efe9eb;
}

.sec-info {
  color: #4f6075;
  background: #eef1f5;
}

.sec-path {
  word-break: break-all;
  background: none;
  padding: 0;
  font-size: .82rem;
}

.sec-table td {
  vertical-align: top;
}

.sec-checks {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.sec-checks li {
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.sec-dot {
  background: var(--sage-soft);
  width: 24px;
  height: 24px;
  color: var(--sage);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
  display: grid;
}

.sec-checks li.bad .sec-dot {
  color: var(--danger);
  background: #fbe1e4;
}

.sec-checks li.soft .sec-dot {
  color: #4f6075;
  background: #eef1f5;
}

.sec-todo {
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: .92rem;
  display: grid;
}

.sec-log tr.sec-fail td {
  background: #fff6f7;
}

.sec-ua {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 260px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .sec-table thead {
    display: none;
  }

  .sec-table tr {
    border-bottom: 1px solid var(--line);
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    padding: 10px 0;
    display: grid;
  }

  .sec-table td {
    border: 0;
    padding: 0;
  }

  .sec-table td:nth-child(3), .sec-table td:nth-child(5) {
    grid-column: 1 / -1;
  }

  .sec-table td:nth-child(4) {
    display: none;
  }

  .sec-table td.r {
    text-align: left;
  }

  .sec-hero #secFixAll {
    width: 100%;
  }
}

.pm-order {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
  display: flex;
}

.pm-order .small {
  margin-right: 4px;
}

/* flex gap fallback for older iPhones / Samsung Internet */
.no-fg .side > * { margin-bottom: 2px; }
.no-fg .side .brand > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .topbar > * { margin-right: 16px; margin-bottom: 16px; }
.no-fg .topbar .actions > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .btn > * { margin-right: 6px; margin-bottom: 0; }
.no-fg .inline-check > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .filters > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .cal-head > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .cal-colhead > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .drawer header > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .drawer footer > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .status-row > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .svc-pick label > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .member .days > * { margin-right: 4px; margin-bottom: 4px; }
.no-fg .bars > * { margin-right: 3px; margin-bottom: 0; }
.no-fg .status-list li > * { margin-right: 12px; margin-bottom: 0; }
.no-fg .brand-images .btns > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .wk-head > * { margin-right: 6px; margin-bottom: 0; }
.no-fg .wk-list > * { margin-bottom: 6px; }
.no-fg .mo-cell > * { margin-bottom: 3px; }
.no-fg .mo-items > * { margin-bottom: 2px; }
.no-fg .cover-tile figcaption > * { margin-bottom: 6px; }
.no-fg .tile-actions > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .cover-upload > * { margin-right: 12px; margin-bottom: 12px; }
.no-fg .backup-row > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .backup-btns > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .side .foot a > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .method-strip > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .desk-col h2 > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .desk-top > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .desk-btns > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .desk-actions > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .doc-row > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .tk-head > * { margin-right: 12px; margin-bottom: 0; }
.no-fg .tk-add > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .inline-pair > * { margin-right: 6px; margin-bottom: 0; }
.no-fg .tip-row > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .pay-line > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .slide-opts > * { margin-right: 10px; margin-bottom: 10px; }
.no-fg .slide-btns > * { margin-right: 4px; margin-bottom: 0; }
.no-fg .tpl-row > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .more-foot > * { margin-right: 16px; margin-bottom: 8px; }
.no-fg #drawerFoot > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .cat-row-ed > * { margin-right: 10px; margin-bottom: 10px; }
.no-fg .cat-btns > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .gc-top > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .wf-attn h2 > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .attn > * { margin-right: 12px; margin-bottom: 0; }
.no-fg .wf-col header > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .wf-col header h3 > * { margin-right: 6px; margin-bottom: 0; }
.no-fg .vc-top > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .vi-hits > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .section-title-row > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .clr-row > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .docket-head > * { margin-right: 10px; margin-bottom: 10px; }
.no-fg .admin-top-r > * { margin-right: 12px; margin-bottom: 0; }
.no-fg .branch-pick > * { margin-right: 6px; margin-bottom: 0; }
.no-fg .branch-card .bc-head > * { margin-right: 10px; margin-bottom: 10px; }
.no-fg .gc-found > *, .no-fg .vc-found > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .cal-bar > * { margin-right: 12px; margin-bottom: 12px; }
.no-fg .cal-events > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .cal-top > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .sub-filters > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .sub-bulk > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .pager > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .pm-bulk > * { margin-right: 12px; margin-bottom: 12px; }
.no-fg .pm-mh > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .pm-ed-form .btns > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .pm-chips > * { margin-right: 6px; margin-bottom: 6px; }
.no-fg .pm-slbar > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .pm-slider > * { margin-right: 10px; margin-bottom: 10px; }
.no-fg .pm-phone > * { margin-right: 12px; margin-bottom: 0; }
.no-fg .sp-chips > * { margin-right: 8px; margin-bottom: 8px; }
.no-fg .ly-top > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .ly-part > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .ly-head > * { margin-right: 14px; margin-bottom: 14px; }
.no-fg .ly-cardbtns > * { margin-bottom: 6px; }
.no-fg .lc-top > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .sup-filters > * { margin-right: 10px; margin-bottom: 10px; }
.no-fg .sup-group h3 > * { margin-right: 8px; margin-bottom: 0; }
.no-fg .sup-btns > * { margin-right: 6px; margin-bottom: 0; }
.no-fg .sup-orderbar > * { margin-right: 10px; margin-bottom: 10px; }
.no-fg .sup-crow > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .sec-hero > * { margin-right: 18px; margin-bottom: 18px; }
.no-fg .sec-clean > * { margin-right: 12px; margin-bottom: 0; }
.no-fg .sec-checks li > * { margin-right: 10px; margin-bottom: 0; }
.no-fg .pm-order > * { margin-right: 8px; margin-bottom: 8px; }
