* {
  box-sizing: border-box;
}
:root {
  font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #172f2a;
  background: #f7f8f4;
  --bg: #f7f8f4;
  --card: #fff;
  --ink: #172f2a;
  --muted: #596b64;
  --line: #dce4de;
  --green: #155c4b;
  --deep: #123e37;
  --mint: #dbf1df;
  --coral: #fc936d;
  --radius: 16px;
}
body {
  margin: 0;
  min-width: 300px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #459a85;
  outline-offset: 3px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 680;
  line-height: 1.17;
}
h1 {
  font-size: clamp(27px, 3.4vw, 44px);
  letter-spacing: -0.045em;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.012em;
}
small {
  font-size: 12px;
}
button,
input,
select,
textarea {
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
.ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: none;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -0.8px;
  font-size: 21px;
  line-height: 1.15;
  white-space: nowrap;
}
.logo img { display:block; flex:none; }
.logo .brand-fb { color:#24775d; }
.auth-art .logo .brand-fb { color:#b6e5c4; }
.muted,
.sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.btn,
.icon-btn,
.link-btn,
.nav-link,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 0;
  text-decoration: none;
}
.btn {
  font-weight: 630;
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 9px 16px;
  line-height: 1.25;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.btn:hover,
.icon-btn:hover {
  background: #eef4ef;
}
.btn.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.btn.primary:hover {
  background: #104b3d;
}
.btn.tinted {
  background: #e6f3e8;
  border-color: #c6decf;
  color: var(--green);
}
.btn.danger,
.text-danger {
  color: #a63b35;
}
.btn.small {
  min-height: 34px;
  font-size: 13px;
  padding: 6px 10px;
}
.icon-btn {
  width: 39px;
  min-width: 39px;
  height: 39px;
  border-radius: 9px;
  color: var(--muted);
}
.link-btn {
  padding: 6px 0;
  color: var(--green);
  font-weight: 650;
  text-align: left;
}
.link-btn:hover {
  text-decoration: underline;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  background: #edf1ed;
  color: #475a52;
  white-space: normal;
}
.pill::before,
.dot {
  content: '';
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill.good {
  background: #e0f2e8;
  color: #185b40;
}
.pill.warn {
  background: #fff0d9;
  color: #815120;
}
.pill.bad {
  background: #feeadf;
  color: #983c28;
}
.pill.live {
  background: #d7f0ec;
  color: #096154;
}
.loading-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  font-weight: 650;
}
.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 64px);
  background: var(--bg);
}
.auth-wrap {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 620px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 70px #173b2c0d;
}
.auth-art {
  background: var(--deep);
  color: white;
  padding: clamp(27px, 4.5vw, 57px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.auth-art::after {
  content: '';
  position: absolute;
  border: 1px solid #ffffff12;
  width: 410px;
  height: 410px;
  border-radius: 46%;
  transform: rotate(-24deg);
  bottom: -220px;
  right: -90px;
  box-shadow:
    0 0 0 26px #ffffff04,
    0 0 0 52px #ffffff04,
    0 0 0 78px #ffffff04;
  z-index: -1;
}
.auth-art h2 {
  font-size: clamp(34px, 4.7vw, 60px);
  font-weight: 630;
  letter-spacing: -0.055em;
  line-height: 1.02;
  max-width: 420px;
  margin: 65px 0 17px;
}
.auth-art h2 span {
  color: #bbefc9;
}
.auth-art .sub {
  color: #c9dcd4;
  max-width: 370px;
  line-height: 1.65;
}
.schedule-art {
  margin: 36px 0 4px;
  border: 1px solid #678b7d6b;
  border-radius: 16px;
  padding: 19px;
  background: #204a41;
  max-width: 390px;
}
.art-head {
  color: #d5e9dd;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 620;
}
.art-hours {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
}
.art-hours span {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.4px;
  background: #31594f;
  border: 1px solid #568072;
  color: #e6f2e9;
  text-align: center;
  padding: 11px 2px;
  border-radius: 8px;
}
.art-hours span:first-child {
  background: #bce5be;
  color: #1b4836;
  border-color: #bce5be;
}
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 5vw, 65px);
}
.auth-content > div {
  width: 100%;
  max-width: 370px;
}
.auth-tabs {
  display: flex;
  gap: 3px;
  border-radius: 10px;
  background: #f0f3ef;
  border: 1px solid var(--line);
  padding: 4px;
  margin-bottom: 29px;
}
.tab {
  flex: 1;
  font-weight: 650;
  color: var(--muted);
  border-radius: 7px;
  padding: 9px 12px;
}
.tab.sel {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #142a1e1a;
}
.auth-content h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.auth-form {
  margin-top: 23px;
  display: grid;
  gap: 17px;
}
.auth-form .btn {
  margin-top: 4px;
  min-height: 46px;
  justify-content: space-between;
  padding-inline: 17px;
}
.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100svh;
}
.rail {
  display: flex;
  flex-flow: column;
  background: #fcfdf9;
  border-right: 1px solid var(--line);
  padding: 28px 15px 16px;
  position: sticky;
  top: 0;
  height: 100svh;
  z-index: 5;
}
.rail .logo {
  padding: 0 9px;
}
.nav {
  display: grid;
  gap: 4px;
  margin-top: 45px;
}
.nav-link {
  justify-content: flex-start;
  min-height: 44px;
  border-radius: 9px;
  padding: 9px 13px;
  gap: 12px;
  color: #50645a;
  font-weight: 580;
  text-align: left;
  text-decoration: none;
}
.nav-link:hover {
  background: #f0f4ee;
}
.nav-link.current {
  color: #154e3c;
  background: #dceee0;
  font-weight: 700;
}
.nav-link .ico {
  width: 19px;
  height: 19px;
}
.rail-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f9dfcd;
  border: 1px solid #eed0bd;
  font-size: 15px;
  font-weight: 680;
  color: #764b34;
  width: 35px;
  height: 35px;
  flex: none;
}
.account {
  min-width: 0;
  flex: 1;
}
.account strong,
.account span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account strong {
  font-size: 13px;
}
.account span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.top {
  display: flex;
  align-items: center;
  min-height: 65px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
  padding: 10px clamp(20px, 4vw, 64px);
  font-size: 13px;
  color: var(--muted);
}
.top .crumb {
  color: var(--ink);
  font-weight: 630;
}
.top time {
  margin-left: auto;
  text-transform: capitalize;
  color: var(--muted);
  font-size: 13px;
}
.bottom-nav,
.drawer-close,
.scrim {
  display: none;
}
.body {
  max-width: 1560px;
  padding: clamp(22px, 3.2vw, 48px) clamp(16px, 4vw, 64px) 50px;
  margin: 0 auto;
}
.page-head,
.section-head,
.actions,
.line,
.row {
  display: flex;
  align-items: center;
}
.page-head {
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-head p {
  margin-top: 8px;
}
.section-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.section-head h2 {
  font-size: 20px;
}
.actions {
  flex-wrap: wrap;
  gap: 8px;
}
.line {
  gap: 10px;
}
.cards {
  display: grid;
  gap: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.stat b {
  font-size: 36px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.stat span:last-child {
  grid-column: 1/-1;
  font-size: 13px;
  color: var(--muted);
}
.stat .mark,
.mark {
  display: grid;
  place-items: center;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  background: #e3f1e5;
  color: #28684c;
}
.stat:nth-child(2) .mark {
  background: #fce8d8;
  color: #a95b3f;
}
.stat:nth-child(3) .mark {
  background: #e5eee9;
  color: #326152;
}
.panel,
.item,
.empty,
.up-next {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.panel {
  padding: 21px;
  min-width: 0;
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.dash-grid > * {
  min-width: 0;
}
.vstack {
  display: grid;
  gap: 17px;
}
.up-next {
  padding: 24px;
  background: var(--deep);
  color: white;
  display: grid;
  gap: 13px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.up-next::after {
  content: '';
  z-index: -1;
  position: absolute;
  right: -60px;
  bottom: -100px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid #a0c9b233;
  box-shadow:
    0 0 0 18px #a0c9b20b,
    0 0 0 36px #a0c9b20b;
}
.up-next .line {
  font-size: 13px;
  color: #c7e4d6;
}
.up-next strong {
  font-size: 27px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.up-next .sub {
  color: #d5e7dd;
}
.up-next .link-btn {
  color: #c0eecb;
  justify-self: start;
}
.empty {
  text-align: center;
  padding: clamp(24px, 5vw, 56px) 18px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.empty.compact {
  border: 0;
  padding: 22px 12px;
  background: #f7f9f5;
  border-radius: 10px;
}
.empty .mark {
  width: 49px;
  height: 49px;
  border-radius: 15px;
  margin-bottom: 4px;
}
.empty .mark .ico {
  width: 23px;
  height: 23px;
}
.empty .sub {
  max-width: 420px;
}
.empty .btn {
  margin-top: 5px;
}
.row {
  gap: 12px;
  min-width: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.row:first-child {
  border-top: 0;
}
.row .main {
  min-width: 0;
  flex: 1;
}
.row .main strong {
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.product .photo {
  background: #edf1ea;
  aspect-ratio: 1.55;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product .inner,
.item {
  padding: 18px;
}
.product .inner {
  display: grid;
  gap: 11px;
  overflow-wrap:anywhere;
}
.product .price {
  font-weight: 720;
  color: var(--green);
  font-size: 17px;
}
.product .text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-height: 4.6em;
  overflow: auto;
}
.group-url {
  color: var(--green);
  word-break: break-all;
  font-size: 13px;
}
.item {
  display: grid;
  gap: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.item-head h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.item-head h3,
.item-head .pill {
  min-width: 0;
}
.item-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.meta-line .ico {
  width: 16px;
  height: 16px;
}
.mini-track {
  height: 6px;
  background: #edf2ee;
  border-radius: 99px;
  overflow: hidden;
}
.mini-track progress {
  display: block;
  height: 6px;
  width: 100%;
  accent-color: #488f6f;
}
.history {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
td,
th {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
table small {
  display: block;
  max-width: 360px;
  color: var(--muted);
  margin-top: 5px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 20px 85px #12291e33;
  width: min(570px, calc(100vw - 28px));
  max-height: calc(100svh - 32px);
  overflow: auto;
}
dialog.wide {
  width: min(760px, calc(100vw - 28px));
}
dialog::backdrop {
  background: #132c25a8;
}
.dialog-head,
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 22px;
}
.dialog-main {
  padding: 21px 23px;
  display: grid;
  gap: 18px;
}
.dialog-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  background: #f8faf6;
}
.form-layout {
  display: grid;
  gap: 16px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
}
.field small,
.hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bacbc1;
  border-radius: 8px;
  padding: 10px 11px;
  line-height: 1.35;
}
input:not([type='checkbox']):not([type='file']),
select {
  min-height: 41px;
}
input[type='file'] {
  font-size: 13px;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
fieldset {
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
}
legend {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 0;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 200px;
  overflow: auto;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.check:has(input:checked) {
  background: #edf7ef;
  border-color: #afd3b8;
}
.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
  flex: none;
}
.field-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}
.field-head b {
  font-size: 14px;
}
.field-head .link-btn {
  font-size: 12px;
}
.days {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.days .check {
  gap: 5px;
}
.hours {
  display: grid;
  gap: 6px;
  max-width: 265px;
}
.hour {
  display: flex;
  gap: 6px;
  align-items: center;
}
.form-error {
  color: #8d312b;
  background: #fff1e9;
  border: 1px solid #f1cbbf;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.form-error:empty {
  display: none;
}
.draft-link {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 15px;
  background: #eff5ee;
  border-radius: 9px;
  justify-content: space-between;
  font-size: 13px;
}
.thumb {
  max-width: 145px;
  max-height: 90px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#notice {
  position: fixed;
  z-index: 15;
  bottom: 16px;
  right: 16px;
  max-width: min(410px, calc(100vw - 32px));
  border-radius: 10px;
  color: #fff;
  background: #234c3b;
  box-shadow: 0 8px 35px #15301f30;
  font-size: 14px;
  line-height: 1.45;
}
#notice:not(:empty) {
  padding: 12px 16px;
}
#notice.err {
  background: #833b2f;
}
.remote {
  display: block;
  width: 100%;
  height: clamp(320px, 55vh, 680px);
  border: 1px solid var(--line);
  border-radius: 12px;
}
@media (min-width: 1600px) {
  .shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}
@media (max-width: 980px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 10px;
  }
  .rail .logo {
    font-size: 19px;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .auth-wrap {
    min-height: 560px;
  }
  .auth-art h2 {
    margin-top: 45px;
  }
}
@media (max-width: 760px) {
  .auth-page {
    padding: 12px;
    align-content: center;
  }
  .auth-wrap {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 490px;
    border-radius: 18px;
  }
  .auth-art {
    padding: 22px 25px;
  }
  .auth-art h2 {
    font-size: 29px;
    margin: 20px 0 8px;
    max-width: 100%;
    line-height: 1.12;
  }
  .auth-art .sub {
    font-size: 13px;
    max-width: 100%;
  }
  .schedule-art {
    display: none;
  }
  .auth-content {
    padding: 25px;
  }
  .auth-content h1 {
    font-size: 27px;
  }
  .auth-tabs {
    margin-bottom: 18px;
  }
  .auth-content > div {
    max-width: 100%;
  }
  .shell {
    display: block;
  }
  body.menu-open { overflow:hidden; }
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    padding: max(16px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility:hidden;
    transform: translateX(-105%);
    transition: transform .18s, visibility .18s;
  }
  .rail.open {
    transform: translateX(0);
    visibility:visible;
  }
  .rail-heading {display:flex; align-items:center; justify-content:space-between; gap:6px;}
  .drawer-close {display:inline-flex;}
  .nav .nav-link {min-height:48px;}
  .scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #172a22a3;
    z-index: 4;
    border: 0;
  }
  .top {
    display:none;
  }
  .bottom-nav {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
    position:fixed;
    z-index:3;
    inset:auto 0 0;
    padding:7px max(10px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    background:#fbfcf8;
    border-top:1px solid var(--line);
    box-shadow:0 -5px 18px #173b2c0d;
  }
  .bottom-link {
    display:grid;
    justify-items:center;
    align-content:center;
    gap:4px;
    min-height:52px;
    border:0;
    border-radius:10px;
    background:none;
    color:#52645d;
    text-decoration:none;
    font-size:11px;
    font-weight:650;
    line-height:1.15;
  }
  .bottom-link[aria-current], .bottom-link.current {background:#e4f2e8;color:#174e3f;}
  .body {
    padding: max(22px,env(safe-area-inset-top)) 15px calc(90px + env(safe-area-inset-bottom));
  }
  body:has(.bottom-nav) #notice {bottom:calc(75px + env(safe-area-inset-bottom));}
  .page-head {
    gap: 12px;
    margin-bottom: 18px;
  }
  .stats {
    gap: 7px;
    margin-bottom: 15px;
  }
  .stat {
    padding: 12px;
    gap: 8px;
  }
  .stat b {
    font-size: 26px;
  }
  .stat .mark {
    width: 27px;
    height: 27px;
    border-radius: 7px;
  }
  .stat .mark .ico {
    width: 15px;
    height: 15px;
  }
  .stat span:last-child {
    font-size: 11px;
  }
  .up-next,
  .panel {
    padding: 17px;
  }
  .nav {
    margin-top: 30px;
  }
  .item {
    padding: 14px;
  }
  .item-head .pill {flex:none;white-space:nowrap;}
  .page-head .sub {
    font-size: 13px;
  }
  .btn, .btn.small, .tab, .auth-content .link-btn {min-height:44px;}
  .icon-btn {width:44px;min-width:44px;height:44px;}
  input,textarea,select {font-size:16px;}
  input:not([type='checkbox']):not([type='file']), select {min-height:46px;}
  input[type='date'] {appearance:none;}
  input[type='file'] {max-width:100%;font-size:14px;}
  input[type='file']::file-selector-button {min-height:36px;margin-inline-end:8px;}
  dialog, dialog.wide {
    position:fixed;
    inset:auto 0 0;
    width:100%;
    max-width:none;
    max-height:calc(100dvh - max(8px, env(safe-area-inset-top)));
    margin:0;
    border-radius:20px 20px 0 0;
    scroll-padding-block:68px calc(85px + env(safe-area-inset-bottom));
    overscroll-behavior:contain;
  }
  .dialog-head,
  .dialog-foot {
    position:sticky;
    z-index:2;
    padding:9px 16px;
  }
  .dialog-head {top:0;background:#fff;}
  .dialog-foot {bottom:0;padding-bottom:max(10px,env(safe-area-inset-bottom));}
  .dialog-foot .btn {flex:1;max-width:340px;}
  .dialog-main {
    padding: 16px;
  }
  .check {min-height:44px;}
  .field-head .link-btn, .form-layout > .link-btn, #exact-times > .link-btn {min-height:44px;}
  .days {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
  .days .check {padding:6px;justify-content:center;}
  .days .check input {width:14px;height:14px;}
  .hours {max-width:100%;}
  .remote {min-height:260px;height:min(57dvh,470px);}
  .panel:has(.history) {padding:0;border:0;background:none;}
  .history {overflow:visible;}
  .history table,.history tbody,.history tr,.history td {display:block;}
  .history thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  .history table {font-size:15px;overflow-wrap:anywhere;}
  .history tr {border:1px solid var(--line);border-radius:12px;background:#fff;padding:13px 15px;margin-bottom:10px;}
  .history tr td {padding:5px 0;border:0;}
  .history tr td:first-child {font-size:12px;color:var(--muted);}
  .history tr td:nth-child(2) {font-weight:650;}
  .history small {font-weight:400;font-size:13px;}
  .history td .link-btn {min-height:44px;}
  .section-head {
    align-items: flex-start;
  }
  .section-head .link-btn {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .cols,
  .check-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 5px;
  }
  .stat span:last-child {
    order: 2;
  }
  .stat .mark {
    display: none;
  }
  .stat b {
    order: 1;
  }
  .page-head .btn {
    font-size: 13px;
  }
  .dialog-head h2 {
    font-size: 19px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .row .pill {
    font-size: 10px;
  }
  .auth-art .sub {
    line-height: 1.42;
  }
  .auth-form {
    gap: 13px;
  }
  .auth-art .logo {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.security-panel { margin-top: 16px; }
.security-qr { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.security-key { display: block; overflow-wrap: anywhere; margin-top: 8px; }
.recovery-codes { font-size: 16px; line-height: 1.8; user-select: all; }
.beta-tag { align-self:flex-start; display:inline-block; margin:10px 9px 0; padding:4px 9px; background:#e5f1e7; color:#225140; border-radius:999px; font-size:11px; font-weight:700; }
.auth-art .beta-tag {margin-left:0;background:#cfead5;}
.inbox-entry {display:grid;gap:10px;overflow-wrap:anywhere;}
.inbox-entry .btn {justify-self:start;}
.feedback-message {white-space:pre-wrap;line-height:1.5;}
.admin-tabs {display:flex;flex-wrap:wrap;gap:7px;border-bottom:1px solid var(--line);margin-bottom:20px;}
.admin-tabs a {display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:9px 12px;color:var(--muted);border-bottom:3px solid transparent;text-decoration:none;font-size:14px;font-weight:650;}
.admin-tabs a[aria-current] {color:var(--green);border-color:var(--green);}
.admin-count {padding:2px 7px;border-radius:999px;background:#e4f2e8;color:#225140;font-size:12px;}
.admin-summary {grid-template-columns:repeat(4,minmax(0,1fr));}
.admin-box + .admin-box {margin-top:18px;}
.admin-box h2 + .sub {margin-top:5px;}
.admin-toolbar {display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-bottom:14px;}
.admin-toolbar .field {width:min(260px,100%);}
.admin-toolbar .btn {min-height:41px;}
.admin-note {margin:9px 0 12px;color:var(--muted);font-size:13px;line-height:1.45;}
.admin-days,.admin-accounts {display:grid;gap:0;}
.admin-day {display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,5fr);align-items:start;gap:10px;border-top:1px solid var(--line);padding:12px 0;}
.admin-day time {font-weight:680;font-size:14px;}
.admin-day small,.admin-account small,.admin-detail-list small {display:block;color:var(--muted);line-height:1.35;margin-top:3px;}
.admin-day dl,.admin-detail {margin:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;}
.admin-day dt,.admin-detail dt {color:var(--muted);font-size:12px;line-height:1.35;overflow-wrap:anywhere;}
.admin-day dd,.admin-detail dd {margin:3px 0 0;font-weight:680;overflow-wrap:anywhere;}
.admin-day dd small {font-weight:400;}
.admin-account {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1.2fr) 1fr 1fr auto;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 0;font-size:14px;overflow-wrap:anywhere;}
.admin-account .btn {justify-self:start;}
.admin-pages {display:flex;align-items:center;gap:10px;margin-top:12px;}
.admin-detail {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.admin-detail-list {margin:0;padding:0;list-style:none;}
.admin-detail-list li {display:flex;align-items:start;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line);overflow-wrap:anywhere;}
.admin-detail-list .pill {flex:none;}
.admin-recent {display:grid;font-size:13px;}
.admin-recent div {display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;border-top:1px solid var(--line);padding:8px 0;}
@media(max-width:760px) {
  .admin-summary {grid-template-columns:repeat(2,minmax(0,1fr));}
  .admin-day {grid-template-columns:minmax(0,1fr);}
  .admin-day dl {grid-template-columns:repeat(3,minmax(0,1fr));}
  .admin-account {grid-template-columns:repeat(2,minmax(0,1fr));}
  .admin-account > div:first-child {grid-column:1/-1;}
  .admin-detail {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:380px) {
  .admin-toolbar .field {width:100%;}
}
