:root {
  font-family: "DM Sans", sans-serif;
  color: #263449;
  background: #f6f8fc;
  font-size: 14px;
  --blue: #2761df;
  --muted: #6d7a90;
  --line: #e5eaf2;
  --soft: #eff4ff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #94baff;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: white;
  padding: 16px;
}
.skip:focus {
  top: 12px;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--blue);
  border-radius: 12px;
  color: white;
  font-size: 25px;
}
.workspace {
  margin: 25px 0 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
}
.workspace small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #94a0b1;
  margin: 13px 12px 8px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
  overflow: auto;
}
.navlink {
  padding: 10px 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #617087;
  font-size: 13px;
  font-weight: 550;
}
.navlink:hover {
  background: #f5f7fb;
}
.navlink.active {
  color: var(--blue);
  background: var(--soft);
  font-weight: 700;
}
.navlink .count {
  margin-left: auto;
  font-size: 10px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 5px;
}
.account {
  margin-top: auto;
  padding: 18px 5px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: #e9f0ff;
  color: var(--blue);
  border-radius: 50%;
  font-weight: 700;
}
.account div {
  min-width: 0;
  flex: 1;
}
.account strong,
.account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.shell {
  margin-left: 232px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #ffffffde;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
  gap: 12px;
}
.topbar span {
  font-size: 12px;
  color: var(--muted);
}
.topbar strong {
  color: #4e5d73;
  font-weight: 500;
}
.topbar-actions,
.actions,
.filters,
.tabs,
.pillrow {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.main {
  max-width: 1600px;
  margin: auto;
  padding: 31px 35px 70px;
}
.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  color: #1b2b44;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin: 0 0 9px;
  font-weight: 800;
}
h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
.pagehead p,
.muted {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--blue);
  margin-bottom: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #263449;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 12px;
  min-height: 39px;
}
.btn:hover {
  border-color: #a7bce9;
  background: #f8faff;
}
.btn.primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.btn.primary:hover {
  background: #184fc7;
}
.btn.danger {
  color: #b54747;
  background: #fff9f9;
  border-color: #f0d6d6;
}
.btn.small {
  font-size: 11px;
  padding: 6px 10px;
  min-height: 32px;
}
.iconbtn {
  border: 0;
  background: transparent;
  padding: 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
}
.iconbtn:hover {
  background: var(--soft);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-family: Manrope;
  font-size: 30px;
  font-weight: 800;
  margin: 10px 0;
}
.stat small {
  color: var(--muted);
  font-size: 11px;
}
.stat .icon {
  float: right;
  color: var(--blue);
}
.grid2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.cardhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cardhead h2 {
  margin: 0;
}
.cardbody {
  padding: 22px;
}
.listrow {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #eef1f6;
}
.listrow:last-child {
  border: 0;
}
.listrow .grow {
  flex: 1;
  min-width: 0;
}
.listrow strong {
  font-weight: 600;
}
.listrow p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 5px;
  background: #f0f3f8;
  color: #6c788b;
}
.badge.green {
  color: #258b65;
  background: #eaf7f1;
}
.badge.blue {
  color: #2861cc;
  background: #edf3ff;
}
.badge.orange {
  color: #aa741a;
  background: #fff6df;
}
.badge.red {
  color: #b35454;
  background: #fceeee;
}
.badge.purple {
  color: #7956a8;
  background: #f4effc;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.filters {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
input,
select,
textarea {
  background: white;
  border: 1px solid #dce3ef;
  border-radius: 7px;
  padding: 10px 11px;
  max-width: 100%;
  min-width: 0;
}
input::placeholder {
  color: #98a2b4;
}
.search {
  min-width: 230px;
  flex: 1;
  max-width: 380px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 13px 19px;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8090a5;
  background: #fbfcfe;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 16px 19px;
  border-top: 1px solid #eef1f6;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
td .link {
  font-weight: 600;
  color: #263c61;
}
tr:hover td {
  background: #fcfdff;
}
.empty {
  text-align: center;
  padding: 50px 22px;
  color: var(--muted);
}
.empty .icon {
  width: 32px;
  height: 32px;
  color: #9ab0d4;
  margin-bottom: 14px;
}
.empty h3 {
  font-size: 15px;
}
.empty p {
  max-width: 420px;
  margin: 7px auto 18px;
}
.notice {
  padding: 13px 16px;
  border: 1px solid #dce7fc;
  background: #f1f6ff;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 12px;
  color: #4c658c;
  margin-bottom: 18px;
}
.notice.warning {
  background: #fff9e9;
  border-color: #f2e3b8;
  color: #916b1d;
}
.notice.error {
  background: #fff3f3;
  border-color: #f2d3d3;
  color: #a44a4a;
}
.tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  gap: 22px;
}
.tab {
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  color: var(--muted);
}
.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}
.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
  margin: 0;
}
.details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.details dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekday {
  padding: 11px 5px;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.day {
  min-height: 103px;
  padding: 10px 8px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day:hover {
  background: #f8faff;
}
.day.selected {
  background: #f1f6ff;
  box-shadow: inset 0 0 0 2px var(--blue);
}
.day.other {
  background: #fafbfd;
  color: #adb7c8;
}
.daynum {
  font-size: 12px;
  font-weight: 600;
}
.day.today .daynum {
  background: var(--blue);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: -3px;
}
.daytag {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #edf3ff;
  border-left: 2px solid #6290ef;
  padding: 4px;
  color: #4d72b9;
  border-radius: 3px;
  font-size: 9px;
  width: 100%;
}
.daytag.gray {
  background: #f2f2f2;
  border-color: #aaa;
  color: #888;
}
.slot {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 12px;
}
.slot strong {
  display: block;
  margin-bottom: 6px;
}
.slot p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 10px;
}
.slot button {
  margin-top: 7px;
}
.route-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.route-card h2 {
  margin: 13px 0 8px;
}
.route-card p {
  font-size: 12px;
  color: var(--muted);
}
.progress {
  height: 5px;
  background: #edf1f8;
  border-radius: 9px;
  margin: 20px 0 10px;
  overflow: hidden;
}
.progress div {
  background: var(--blue);
  height: 100%;
  border-radius: 9px;
}
.route-card footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stopnum {
  width: 29px;
  height: 29px;
  background: #edf3ff;
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.modal {
  width: min(650px, calc(100vw - 36px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 25px 100px #10203e33;
  max-height: 90dvh;
  overscroll-behavior: contain;
}
.modal.wide {
  width: min(850px, calc(100vw - 36px));
}
.modal::backdrop {
  background: #14223f65;
  backdrop-filter: blur(3px);
}
.modalhead {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modalhead h2 {
  font-size: 22px;
}
.modalhead p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.modalbody {
  padding: 23px;
  overflow: auto;
  max-height: calc(90dvh - 190px);
}
.modalfooter {
  padding: 16px 23px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-weight: 400;
}
.field small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.formrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 0;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.formerror {
  color: #a33f3f;
  background: #fff1f1;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}
.itemedit {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  margin-bottom: 12px;
}
.itemedit header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.itemedit .field {
  margin-bottom: 10px;
}
.stopedit {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.stopedit span {
  flex: 1;
}
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-art {
  background: #edf3ff;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.auth-art h1 {
  font-size: 43px;
  line-height: 1.2;
  max-width: 440px;
  margin: 45px 0 15px;
  letter-spacing: -1.6px;
}
.auth-art p {
  color: #6680aa;
  max-width: 380px;
}
.auth-flow {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}
.auth-flow div {
  background: #ffffffb0;
  padding: 16px;
  border-radius: 9px;
  max-width: 330px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #426196;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 365px;
}
.auth-form h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}
.auth-footer {
  font-size: 11px !important;
  line-height: 1.6;
  margin-top: 24px;
  color: #8e9ab0 !important;
}
.auth-signup {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
  text-align: center;
}
.auth-signup p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  margin-bottom: 24px;
  font-size: 13px;
}
.auth-back svg {
  width: 15px;
  transform: rotate(180deg);
}
.registration-form {
  max-width: 420px;
}
.registration-form .field {
  margin-bottom: 14px;
}
.registration-form .registration-status {
  margin: 8px 0 12px;
  font-size: 12px;
}
.registration-success ol {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.portal {
  max-width: 1060px;
  margin: auto;
  padding: 30px 24px 70px;
}
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.portal .pagehead {
  margin-bottom: 25px;
}
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 23px;
}
.portal .day {
  min-height: 72px;
  align-items: center;
  justify-content: center;
}
.portal .day:disabled {
  background: #fafbfe;
  color: #b9c2d0;
}
.portal .day.available {
  color: var(--blue);
  background: #f4f7ff;
}
.portal .day.selected {
  background: var(--blue);
  color: white;
}
.portal .day small {
  font-size: 9px;
}
.portal .field {
  font-size: 12px;
}
.portal-window {
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 10px 16px;
}
.portal-window strong {
  font-size: 14px;
}
.portal-window small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}
.field-page {
  max-width: 900px;
  margin: auto;
}
.mobile-banner {
  background: var(--blue);
  color: white;
  padding: 25px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.mobile-banner h1 {
  color: white;
  font-size: 25px;
}
.mobile-banner p {
  color: #dbe6ff;
  font-size: 12px;
}
.mobile-banner .btn {
  min-height: 40px;
}
.mobile-banner .btn:not(.primary):not(.danger) {
  color: #184fc7;
}
.mobile-banner .btn:focus-visible {
  outline-color: white;
}
.field-stop {
  background: white;
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 12px;
  margin-bottom: 15px;
}
.field-stop h2 {
  margin: 13px 0 8px;
}
.field-stop p {
  color: var(--muted);
  font-size: 12px;
}
.field-stop .actions .btn {
  flex: 1;
}
.syncbar {
  background: #fff4db;
  color: #9e741c;
  padding: 12px 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: #243c64;
  color: white;
  padding: 12px 20px;
  border-radius: 9px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  box-shadow: 0 6px 25px #10203e20;
}
#toast.show {
  opacity: 1;
}
.number {
  font-variant-numeric: tabular-nums;
}
.link {
  color: var(--blue);
}
.spacer {
  height: 16px;
}
.back {
  display: inline-flex;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}
.full {
  width: 100%;
}
.step {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.step p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.step .stopnum {
  width: 36px;
  height: 36px;
}
.history {
  font-size: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.history small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .main {
    padding: 36px 50px;
  }
  .day {
    min-height: 125px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding-inline: 12px;
  }
  .shell {
    margin-left: 200px;
  }
  .main {
    padding: 25px 23px;
  }
  .topbar {
    padding-inline: 23px;
  }
  .calendar-layout,
  .portal-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .auth-art {
    padding: 40px;
  }
}
@media (max-width: 850px) {
  .calendar-layout,
  .portal-layout,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .calendar-layout > aside {
    order: 1;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .day {
    min-height: 85px;
  }
  .auth-art {
    display: none;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-panel {
    padding: 30px;
  }
  .pagehead {
    flex-wrap: wrap;
  }
  .sidebar {
    width: 175px;
  }
  .shell {
    margin-left: 175px;
  }
  .sidebar .workspace {
    font-size: 12px;
  }
  .navlink {
    padding-inline: 9px;
    font-size: 12px;
    gap: 8px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: auto;
    padding: 16px 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .brand {
    font-size: 25px;
  }
  .sidebar > .workspace,
  .nav-caption,
  .account {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 6px;
    padding: 14px 0 11px;
    scrollbar-width: none;
  }
  .navlink {
    white-space: nowrap;
    font-size: 11px;
    gap: 6px;
    padding: 9px;
  }
  .navlink .icon {
    width: 15px;
    height: 15px;
  }
  .navlink .count {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 54px;
    padding: 0 18px;
  }
  .topbar > span {
    display: none;
  }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .main {
    padding: 24px 17px 60px;
  }
  .pagehead {
    gap: 15px;
  }
  .pagehead .actions {
    width: 100%;
  }
  h1 {
    font-size: 25px;
  }
  .stats {
    gap: 10px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat small {
    font-size: 10px;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .cardhead,
  .cardbody {
    padding: 17px;
  }
  .listrow {
    padding: 15px 17px;
    flex-wrap: wrap;
  }
  .listrow .actions {
    width: 100%;
    padding-left: 42px;
  }
  .calendar-layout {
    gap: 0;
  }
  .day {
    padding: 8px 3px;
    min-height: 77px;
  }
  .daytag {
    font-size: 8px;
    padding: 3px;
  }
  .calendar .weekday {
    font-size: 9px;
  }
  .filters {
    padding: 13px;
    gap: 9px;
  }
  .search {
    min-width: 100%;
    width: 100%;
    max-width: none;
  }
  .filters select {
    max-width: 100%;
    flex: 1;
  }
  .modal,
  .modal.wide {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }
  .modalhead {
    padding: 20px;
  }
  .modalbody {
    max-height: calc(100dvh - 190px);
    padding: 20px;
  }
  .modalfooter {
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .formrow {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .details {
    gap: 19px;
  }
  .portal {
    padding: 20px 17px 50px;
  }
  .portal-header {
    margin-bottom: 25px;
  }
  .portal-header .muted {
    font-size: 11px;
  }
  .portal .day {
    min-height: 65px;
  }
  .portal .day small {
    font-size: 8px;
  }
  .field-stop {
    padding: 19px;
  }
  .field-stop .actions {
    gap: 8px;
  }
  .field-stop .actions .btn {
    min-height: 44px;
  }
  .auth-panel {
    padding: 30px 24px;
  }
  .tabs {
    gap: 19px;
    overflow: auto;
    flex-wrap: nowrap;
  }
  .tab {
    white-space: nowrap;
  }
  .btn {
    min-height: 41px;
  }
  .mobile-banner {
    padding: 22px;
  }
  .syncbar {
    flex-wrap: wrap;
  }
  .topbar-actions .btn {
    font-size: 10px;
    padding: 7px 10px;
  }
  .stopedit {
    font-size: 11px;
  }
  .itemedit {
    padding: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
