@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/dm-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/manrope.woff2') format('woff2');
}
:root {
  --bg: #f7f8f5;
  --surface: #fff;
  --ink: #172d36;
  --muted: #72817f;
  --green: #087c60;
  --green-dark: #05634c;
  --mint: #e9f3ed;
  --border: #e8ece7;
  --amber: #926416;
  --red: #b44343;
  --radius: 20px;
  --shadow: 0 3px 18px #17342b04;
  font-family:
    'DM Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: Manrope, 'DM Sans', sans-serif;
}
h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -1.1px;
  font-weight: 800;
}
h2 {
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 1rem;
  font-weight: 750;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.tiny {
  font-size: 0.75rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: #6e7e77;
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button .icon {
  width: 19px;
  height: 19px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f2b65b;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #bfdcd1;
  outline-offset: 1px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 15px;
}
.skip-link:focus {
  top: 15px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 36px 22px 22px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.brand-mark {
  height: 39px;
  width: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-weight: 700;
  flex: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
}
.brand .brand-accent {
  color: var(--green);
}
.nav-label {
  padding: 0 15px;
  margin: 49px 0 13px;
  font-size: 0.75rem;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #99a49f;
}
.nav-group {
  display: grid;
  gap: 7px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 550;
  color: #6b7b7b;
}
.nav-link.active {
  background: var(--mint);
  color: var(--green);
  font-weight: 700;
}
.nav-link:hover {
  background: #f1f5f2;
  color: var(--green);
}
.nav-link.active:after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
}
.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 30px 13px 22px;
}
.circle-box {
  margin-top: auto;
  background: #f7f9f6;
  padding: 18px 14px;
  border-radius: 14px;
}
.avatar-stack {
  display: flex;
  margin-bottom: 13px;
  padding-left: 3px;
}
.avatar-stack .avatar {
  margin-left: -3px;
  border: 2px solid #f7f9f6;
  width: 29px;
  height: 29px;
  font-size: 0.75rem;
}
.circle-box h3 {
  font-size: 0.8rem;
}
.circle-box p {
  font-size: 0.75rem;
  margin-top: 5px;
  color: var(--muted);
}
.sidebar-foot {
  padding: 19px 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a099;
}
.sidebar-foot .icon {
  width: 15px;
  height: 15px;
}
.app-body {
  margin-left: 232px;
  min-height: 100vh;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 550;
}
.breadcrumb .icon {
  color: var(--green);
  width: 18px;
  height: 18px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.private-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: #7a8982;
}
.private-label .icon {
  width: 15px;
  height: 15px;
}
.avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6ede0;
  color: #526e47;
  font-size: 0.75rem;
  font-weight: 700;
  flex: none;
}
.avatar.color-1 {
  background: #f4e9da;
  color: #986d41;
}
.avatar.color-2 {
  background: #e4e9f4;
  color: #617ba1;
}
.avatar.color-3 {
  background: #f1e1e4;
  color: #a96e77;
}
.profile-trigger {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.8rem;
  font-weight: 600;
}
.profile-trigger .icon {
  width: 14px;
  height: 14px;
}
.content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 42px 24px;
}
.demo-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #827343;
  background: #faf7eb;
  border: 1px solid #f0ead6;
  padding: 9px 13px;
  border-radius: 9px;
  margin-bottom: 27px;
}
.demo-strip .icon {
  width: 15px;
  height: 15px;
}
.demo-strip button {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 0.75rem;
  color: #786337;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 3px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}
.page-heading h1 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-heading h1 .icon {
  width: 28px;
  height: 28px;
  color: #b7a969;
  stroke-width: 1.5;
}
.page-heading p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 9px;
}
.date-label {
  margin-bottom: 10px;
  font-size: 0.75rem;
  letter-spacing: 1.45px;
  color: #8a9790;
  text-transform: uppercase;
  font-weight: 600;
}
.btn {
  border: 1px solid transparent;
  background: var(--green);
  color: white;
  border-radius: 10px;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    background 0.18s,
    transform 0.18s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: #dfe6df;
}
.btn.secondary:hover {
  background: #f3f6f3;
}
.btn.light {
  background: #e9f3ee;
  color: var(--green);
}
.btn.light:hover {
  background: #d9ede2;
}
.btn.danger {
  background: #fff0f0;
  color: var(--red);
  border-color: #f5d8d8;
}
.btn.sm {
  padding: 8px 12px;
  min-height: 38px;
  font-size: 0.77rem;
}
.btn.full {
  width: 100%;
}
.text-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.77rem;
  font-weight: 650;
  color: var(--green);
  padding: 8px 0;
}
.text-btn .icon {
  height: 15px;
  width: 15px;
}
.icon-btn {
  height: 38px;
  width: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  flex: none;
}
.icon-btn .icon {
  width: 18px;
  height: 18px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-pad {
  padding: 25px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.card-header h2 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-header .icon {
  width: 18px;
  height: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 7px;
  padding: 5px 9px;
  background: #e9f5ec;
  color: #397b55;
  font-size: 0.75rem;
  font-weight: 650;
}
.pill .icon {
  width: 13px;
  height: 13px;
}
.pill:has(.status-dot) {
  border-radius: 20px;
}
.pill.amber {
  color: var(--amber);
  background: #fcf3df;
}
.pill.red {
  color: var(--red);
  background: #ffeded;
}
.pill.blue {
  color: #54769b;
  background: #edf2fa;
}
.pill.gray {
  color: #798782;
  background: #f0f3ef;
}
.status-dot {
  height: 6px;
  width: 6px;
  background: currentColor;
  border-radius: 50%;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 23px;
  align-items: start;
}
.machine-card {
  background: #edf4ef;
  border: 1px solid #e4ece5;
  position: relative;
  min-height: 303px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.machine-top {
  padding: 25px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.machine-top .eyebrow {
  font-size: 0.75rem;
}
.machine-content {
  padding: 24px 28px 27px;
  position: relative;
  z-index: 1;
  width: 58%;
}
.machine-content h2 {
  font-size: 1.85rem;
  line-height: 1.22;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.machine-content p {
  font-size: 0.82rem;
  color: #6c8275;
  line-height: 1.6;
  max-width: 200px;
  margin-bottom: 22px;
}
.machine-picture {
  position: absolute;
  right: 5px;
  top: 35px;
  width: 49%;
  height: 246px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.machine-foot {
  position: relative;
  z-index: 1;
  background: #ffffff91;
  border-top: 1px solid #dfe9e2;
  padding: 16px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.location-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
}
.location-block > .icon {
  color: var(--green);
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.location-block strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.location-block span {
  font-size: 0.75rem;
  color: #86938a;
}
.location-link {
  white-space: nowrap;
  font-size: 0.75rem;
  color: #6c8275;
}
.location-link .icon {
  width: 16px;
  height: 16px;
}
.stock-card {
  min-height: 350px;
}
.stock-card .card-header {
  margin-bottom: 24px;
}
.stock-number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 4px;
}
.stock-number strong {
  font-family: Manrope, sans-serif;
  font-size: 2.5rem;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.stock-number span {
  font-size: 1rem;
  color: #849289;
}
.stock-sub {
  font-size: 0.75rem;
  color: var(--muted);
}
.gauge {
  height: 12px;
  border-radius: 20px;
  background: #ecf0eb;
  overflow: hidden;
  margin: 23px 0 10px;
}
.gauge-fill {
  height: 100%;
  background: var(--green);
  border-radius: 20px;
  transition: width 0.3s;
}
.gauge-labels {
  display: flex;
  justify-content: space-between;
  color: #9aa49c;
  font-size: 0.75rem;
}
.stock-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  margin: 17px 0 19px;
  color: #819087;
}
.stock-caption .icon {
  width: 15px;
  height: 15px;
  color: #6f9980;
}
.stock-card .btn {
  font-size: 0.77rem;
}
.subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-top: 22px;
}
.info-card {
  padding: 20px;
  min-height: 139px;
}
.info-card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: #7d8d84;
  margin-bottom: 15px;
}
.info-card-label .icon {
  width: 16px;
  height: 16px;
}
.info-card-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 650;
}
.info-card-value .avatar {
  width: 31px;
  height: 31px;
  font-size: 0.75rem;
}
.info-card p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
  padding-left: 41px;
}
.next-slot {
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 5px;
}
.next-slot + p {
  padding: 0;
}
.calendar-mini {
  margin-top: 22px;
  padding: 21px 23px;
}
.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.calendar-title {
  font-family: Manrope, sans-serif;
  font-size: 0.94rem;
  font-weight: 750;
  text-transform: capitalize;
}
.calendar-controls {
  display: flex;
  gap: 5px;
}
.calendar-controls button {
  border: none;
  background: transparent;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.calendar-controls button:hover {
  background: var(--mint);
}
.calendar-controls .icon {
  width: 16px;
  height: 16px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.weekday {
  font-size: 0.75rem;
  color: #929d96;
  text-align: center;
  padding: 3px 0 7px;
}
.day {
  border: 0;
  position: relative;
  aspect-ratio: 1.3;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}
.day:hover {
  background: #eaf3ed;
}
.day.today {
  background: var(--green);
  color: white;
  font-weight: 700;
}
.day.booked:not(.today) {
  background: #ecf3e9;
  color: #52784a;
}
.day.maintenance:not(.today) {
  background: #fff0d5;
  color: #996b20;
}
.day.selected {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.day.other {
  color: #c8cec8;
}
.day.booked:after {
  content: '';
  width: 3px;
  height: 3px;
  background: currentColor;
  position: absolute;
  bottom: 3px;
  border-radius: 50%;
}
.calendar-legend {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  color: #849087;
  margin-top: 14px;
}
.legend-square {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
  background: #e1ebdb;
}
.legend-square.available {
  background: var(--green);
}
.legend-square.maintenance {
  background: #edd7a8;
}
.reservation-card {
  margin-top: 22px;
  padding: 24px;
}
.reservation-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.reservation-row:first-of-type {
  border: 0;
}
.reservation-row:last-child {
  padding-bottom: 0;
}
.date-tile {
  width: 49px;
  min-width: 49px;
  background: #f4f6f0;
  border-radius: 9px;
  padding: 7px 3px;
  text-align: center;
}
.date-tile strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.4;
}
.date-tile span {
  font-size: 0.75rem;
  letter-spacing: 0.7px;
  color: #819071;
  text-transform: uppercase;
}
.reservation-info {
  flex: 1;
  min-width: 0;
}
.reservation-info h3 {
  font-size: 0.81rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}
.reservation-info p {
  font-size: 0.75rem;
  margin-top: 5px;
  color: var(--muted);
}
.reservation-row .pill {
  font-size: 0.75rem;
  padding: 5px 7px;
}
.reservation-row .icon-btn {
  border: 0;
  width: 27px;
  height: 30px;
  color: #a3afa5;
}
.activity-card {
  margin-top: 22px;
  padding: 23px 25px;
}
.activity-list {
  display: grid;
  gap: 0;
}
.activity-row {
  position: relative;
  display: flex;
  gap: 13px;
  padding: 13px 0;
}
.activity-row:not(:last-child):after {
  content: '';
  position: absolute;
  left: 16px;
  top: 48px;
  bottom: -10px;
  width: 1px;
  background: #edf0eb;
}
.activity-symbol {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #eff5ec;
  display: grid;
  place-items: center;
  color: #74936b;
  flex: none;
  z-index: 1;
}
.activity-symbol .icon {
  width: 16px;
  height: 16px;
}
.activity-symbol.blue {
  background: #edf2f8;
  color: #7e95ac;
}
.activity-row p {
  font-size: 0.78rem;
  line-height: 1.45;
}
.activity-row p strong {
  font-weight: 600;
}
.activity-row small {
  font-size: 0.75rem;
  color: #939f96;
  display: block;
  margin-top: 5px;
}
.activity-time {
  margin-left: auto;
  font-size: 0.75rem;
  white-space: nowrap;
  color: #a2aaa2;
  margin-top: 3px;
}
.home-bottom {
  font-size: 0.75rem;
  color: #9aa59a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 31px;
}
.home-bottom .icon {
  width: 14px;
  height: 14px;
}
.bottom-nav {
  display: none;
}
.mobile-brand {
  display: none;
}
.booking-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.35fr);
  gap: 24px;
  align-items: start;
}
.booking-calendar {
  padding: 26px;
}
.booking-calendar .day {
  aspect-ratio: 1.2;
  font-size: 0.86rem;
  min-height: 43px;
}
.booking-calendar .weekday {
  font-size: 0.77rem;
}
.booking-calendar .calendar-title {
  font-size: 1.05rem;
}
.booking-calendar .calendar-legend {
  font-size: 0.75rem;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 6px;
  background: #edf1ea;
  padding: 5px;
  border-radius: 11px;
  width: fit-content;
  margin-bottom: 24px;
}
.tab {
  border: 0;
  padding: 9px 17px;
  border-radius: 7px;
  background: transparent;
  color: #7b887f;
  font-size: 0.8rem;
  font-weight: 550;
  min-height: 39px;
}
.tab.active {
  color: var(--green);
  background: white;
  box-shadow: 0 1px 5px #173a1710;
}
.selected-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.selected-day h2 {
  text-transform: capitalize;
  font-size: 1.07rem;
}
.slot-option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 17px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.slot-option h3 {
  font-size: 0.88rem;
}
.slot-option p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
}
.schedule-empty {
  padding: 36px 12px;
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  gap: 12px;
}
.schedule-empty > .icon {
  width: 32px;
  height: 32px;
  color: #a5baa9;
}
.schedule-empty h3 {
  color: var(--ink);
  font-size: 0.95rem;
}
.schedule-empty p {
  font-size: 0.82rem;
  max-width: 300px;
}
.page-section {
  margin-top: 25px;
}
.list-card {
  padding: 4px 23px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child {
  border: 0;
}
.list-row-main {
  flex: 1;
  min-width: 0;
}
.list-row-main h3 {
  font-size: 0.87rem;
}
.list-row-main p {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 5px;
}
.row-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 21px;
}
.stat-card label {
  font-size: 0.8rem;
  color: var(--muted);
}
.stat-card strong {
  display: block;
  font:
    750 1.8rem Manrope,
    sans-serif;
  margin-top: 9px;
}
.movement-amount {
  font-weight: 650;
  font-size: 0.93rem;
  color: var(--green);
  white-space: nowrap;
}
.movement-amount.negative {
  color: #76847b;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.8rem;
}
.data-table th {
  padding: 15px 14px;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #fafbf8;
  color: #7d8c81;
  font-weight: 550;
}
.data-table td {
  padding: 16px 14px;
  border-top: 1px solid var(--border);
}
.data-table td small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
}
.data-table .avatar {
  vertical-align: middle;
  margin-right: 7px;
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}
.profile-card {
  padding: 29px;
  max-width: 800px;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}
.profile-summary .avatar {
  width: 70px;
  height: 70px;
  font-size: 1.4rem;
}
.profile-summary h2 {
  font-size: 1.3rem;
}
.profile-summary p {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 6px 0 8px;
}
.settings-row {
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border);
}
.settings-row > .icon {
  color: var(--green);
}
.settings-row .row-text {
  flex: 1;
}
.settings-row h3 {
  font-size: 0.87rem;
}
.settings-row p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
}
.help-card {
  padding: 22px;
  background: #f0f5ed;
  border: 1px solid #e3ebdf;
  border-radius: 15px;
  margin-top: 20px;
}
.help-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
}
.help-card p {
  font-size: 0.78rem;
  color: #7d8d7a;
  margin-top: 8px;
}
.alert {
  background: #fff6e5;
  border: 1px solid #f1dfbc;
  border-radius: 11px;
  padding: 15px 17px;
  color: #8c6529;
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.alert > .icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
}
.alert.info {
  background: #edf5f0;
  color: #4d7663;
  border-color: #d8e8dd;
}
.alert.error {
  background: #fff0f0;
  color: var(--red);
  border-color: #f1d8d8;
}
.inline-error {
  font-size: 0.8rem;
  background: #fff0f0;
  border-radius: 8px;
  padding: 11px;
  color: var(--red);
  margin: 14px 0;
}
.inline-error:empty {
  display: none;
}
.spaced {
  display: grid;
  gap: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field > span,
.form-field > label {
  font-size: 0.8rem;
  font-weight: 550;
}
.form-field small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  background: white;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 0.88rem;
}
.form-field textarea {
  resize: vertical;
  min-height: 87px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a7afa5;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: #6f7e73;
  line-height: 1.5;
}
.check-field input {
  accent-color: var(--green);
  height: 17px;
  width: 17px;
  flex: none;
}
.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}
.amount-options {
  display: flex;
  gap: 8px;
  margin: 9px 0;
}
.amount-options button {
  flex: 1;
  padding: 9px;
  background: #f3f6ef;
  border: 1px solid #e5ebdf;
  border-radius: 8px;
  font-size: 0.8rem;
}
.amount-options button:hover {
  background: var(--mint);
  color: var(--green);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 21px;
  padding: 28px;
  width: min(480px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 24px 90px #173b3030;
  background: #fff;
}
dialog::backdrop {
  background: #142d3855;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}
.dialog-head h2 {
  font-size: 1.25rem;
}
.dialog-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 23px;
}
.dialog-head .icon-btn {
  border: 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translate(-50%, 25px);
  background: #173a30;
  color: #fff;
  padding: 16px 23px;
  border-radius: 12px;
  box-shadow: 0 7px 30px #173a3020;
  max-width: calc(100vw - 30px);
  font-size: 0.84rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
  z-index: 100;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #9e4141;
}
.auth-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #edf4ed;
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
}
.auth-story .brand {
  margin-bottom: 30px;
}
.auth-story h1 {
  margin-top: 10%;
  font-size: 2.5rem;
  line-height: 1.2;
  max-width: 370px;
}
.auth-story p {
  margin-top: 15px;
  color: #74907b;
  font-size: 0.92rem;
  max-width: 340px;
}
.auth-story img {
  width: 80%;
  max-height: 45vh;
  object-fit: contain;
  mix-blend-mode: multiply;
  align-self: center;
  margin: auto;
}
.auth-form-area {
  padding: 48px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}
.auth-card {
  width: 100%;
  max-width: 385px;
}
.auth-card h1 {
  font-size: 1.8rem;
}
.auth-card > p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 10px 0 25px;
}
.auth-card .brand {
  display: none;
}
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #97a296;
  margin-top: 30px;
}
.auth-footer .icon {
  width: 14px;
  height: 14px;
}
.code-input {
  font-size: 1.4rem !important;
  letter-spacing: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.qr-code {
  display: block;
  width: 210px;
  height: 210px;
  margin: 15px auto;
}
.secret {
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  font-family: monospace;
  background: #f5f7f1;
  padding: 12px;
  border-radius: 8px;
  user-select: all;
}
.recovery-codes {
  font-family: monospace;
  font-size: 0.95rem;
  background: #f3f6ef;
  border-radius: 12px;
  padding: 18px;
  line-height: 2.1;
  white-space: pre-wrap;
  text-align: center;
}
.initial-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
}
.initial-loading p {
  font-size: 0.9rem;
  color: var(--muted);
}
.loader {
  width: 24px;
  height: 24px;
  border: 2px solid #dce6db;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.busy {
  display: inline-block;
  vertical-align: middle;
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff77;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 7px;
}
.admin-tabs {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 23px;
}
.admin-tabs .tab {
  white-space: nowrap;
}
.audit-detail {
  overflow-wrap: anywhere;
  max-width: 420px;
  font-size: 0.75rem;
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.hidden {
  display: none !important;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}
.mode-select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-top: 13px;
  background: white;
}
.offline-note {
  padding: 10px;
  background: #fff0d5;
  color: #8c6529;
  text-align: center;
  font-size: 0.78rem;
}
.stock-large .stock-number strong {
  font-size: 3.1rem;
}
.icon-background {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.empty-page {
  min-height: 220px;
}
.hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 18px;
}
.hint .icon {
  height: 15px;
  width: 15px;
}
.availability-total {
  font-size: 0.76rem;
  color: var(--green);
  padding: 7px 10px;
  background: var(--mint);
  border-radius: 7px;
}
.calendar-empty {
  min-height: 40px;
}
.full-width {
  grid-column: 1/-1;
}
.error-page {
  max-width: 500px;
  margin: 15vh auto;
  text-align: center;
  padding: 30px;
}
.error-page p {
  margin: 15px 0 23px;
  color: var(--muted);
}
.link-box {
  padding: 13px;
  border-radius: 10px;
  background: #f5f7f1;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  user-select: all;
}
.bar-segments {
  display: flex;
  gap: 4px;
  margin-top: 22px;
  height: 13px;
}
.bar-segments span {
  flex: 1;
  border-radius: 3px;
  background: #ebf0e8;
}
.bar-segments span.filled {
  background: var(--green);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.view {
  animation: appear 0.25s ease-out;
}
@media (min-width: 1450px) {
  .content {
    padding-top: 42px;
  }
  .machine-card {
    min-height: 329px;
  }
  .machine-picture {
    height: 267px;
    right: 12px;
  }
  .machine-content {
    padding-top: 35px;
  }
  .stock-card {
    min-height: 329px;
  }
  .stock-card .card-header {
    margin-bottom: 13px;
  }
  .stock-card .gauge {
    margin-top: 20px;
  }
  .stock-card .stock-caption {
    margin: 14px 0;
  }
  .dashboard-grid {
    gap: 27px;
    grid-template-columns: minmax(0, 1.9fr) minmax(295px, 1fr);
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 202px;
    padding: 30px 15px 20px;
  }
  .brand {
    font-size: 1.3rem;
  }
  .app-body {
    margin-left: 202px;
  }
  .topbar {
    padding: 0 26px;
  }
  .content {
    padding: 28px 26px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(266px, 1fr);
    gap: 18px;
  }
  .machine-content {
    padding-left: 22px;
    width: 62%;
  }
  .machine-top {
    padding-left: 22px;
    padding-right: 20px;
  }
  .machine-content h2 {
    font-size: 1.55rem;
  }
  .machine-content p {
    max-width: 165px;
  }
  .machine-picture {
    width: 48%;
    right: 0;
    top: 44px;
    height: 227px;
  }
  .machine-foot {
    padding: 15px 21px;
  }
  .location-link {
    display: none;
  }
  .card-pad {
    padding: 22px;
  }
  .stock-card {
    min-height: 344px;
  }
  .subgrid {
    gap: 12px;
  }
  .info-card {
    padding: 17px 15px;
  }
  .info-card p {
    padding-left: 0;
  }
  .info-card .avatar {
    width: 25px;
    height: 25px;
  }
  .content h1 {
    font-size: 1.85rem;
  }
  .reservation-card {
    padding: 20px;
  }
  .reservation-row {
    gap: 9px;
  }
  .reservation-row .pill {
    display: none;
  }
  .calendar-mini {
    padding: 20px;
  }
  .split-grid {
    grid-template-columns: 1fr 1.3fr;
  }
}
@media (max-width: 930px) {
  .sidebar {
    width: 80px;
    align-items: center;
    padding: 28px 12px;
  }
  .sidebar .brand-name,
  .nav-label,
  .nav-link > span,
  .sidebar .circle-box,
  .sidebar-foot,
  .nav-divider {
    display: none;
  }
  .sidebar .brand-mark {
    height: 40px;
    width: 40px;
  }
  .sidebar .nav-group {
    margin-top: 36px;
    gap: 15px;
  }
  .sidebar .nav-group + .nav-group {
    margin-top: 20px;
  }
  .sidebar .nav-link {
    padding: 14px;
  }
  .nav-link.active:after {
    display: none;
  }
  .sidebar .nav-link .icon {
    width: 22px;
    height: 22px;
  }
  .app-body {
    margin-left: 80px;
  }
  .topbar {
    height: 75px;
  }
  .topbar-right {
    gap: 17px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
  }
  .page-heading {
    gap: 14px;
  }
  .page-heading .btn {
    padding: 11px 13px;
    font-size: 0.75rem;
  }
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .booking-calendar .day {
    aspect-ratio: 2;
  }
  .booking-layout > .card {
    max-width: none;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .split-grid .stock-card {
    max-width: none;
    min-height: unset;
  }
  .stock-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
  }
  .stock-large .card-header {
    grid-column: 1/-1;
  }
  .stock-large .btn {
    grid-column: 1/-1;
  }
  .auth-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .auth-story {
    padding: 36px 30px;
  }
  .auth-story h1 {
    font-size: 2rem;
  }
  .toast {
    left: calc(50% + 40px);
  }
}
@media (max-width: 730px) {
  .sidebar {
    display: none;
  }
  .app-body {
    margin-left: 0;
  }
  .topbar {
    height: 73px;
    padding: 0 22px;
    background: var(--bg);
    border-bottom: 0;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    font-size: 1.3rem;
  }
  .mobile-brand .brand-mark {
    height: 33px;
    width: 33px;
    border-radius: 10px;
  }
  .topbar-right .private-label,
  .profile-trigger > span:not(.avatar),
  .profile-trigger > .icon {
    display: none;
  }
  .profile-trigger {
    padding: 0;
  }
  .profile-trigger .avatar {
    width: 34px;
    height: 34px;
  }
  .content {
    padding: 10px 21px 110px;
  }
  .demo-strip {
    font-size: 0.75rem;
    padding: 8px 10px;
    gap: 6px;
    margin-bottom: 24px;
  }
  .demo-strip button {
    font-size: 0.75rem;
  }
  .demo-strip .icon {
    width: 13px;
    height: 13px;
  }
  .demo-strip .demo-desktop {
    display: none;
  }
  .date-label {
    font-size: 0.75rem;
    margin-bottom: 8px;
    letter-spacing: 1.1px;
  }
  .page-heading {
    margin-bottom: 23px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 1.7rem;
    letter-spacing: -0.8px;
    gap: 9px;
  }
  .page-heading h1 .icon {
    width: 23px;
    height: 23px;
  }
  .page-heading p {
    font-size: 0.8rem;
    margin-top: 7px;
  }
  .page-heading > .btn {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .machine-card {
    min-height: 319px;
  }
  .machine-top {
    padding: 22px 22px 0;
  }
  .machine-top .eyebrow {
    font-size: 0.75rem;
  }
  .machine-content {
    padding: 23px 22px 25px;
    width: 60%;
  }
  .machine-content h2 {
    font-size: 1.8rem;
    max-width: 190px;
  }
  .machine-content p {
    font-size: 0.8rem;
    max-width: 165px;
    margin-bottom: 20px;
  }
  .machine-picture {
    top: 43px;
    right: 0;
    height: 234px;
    width: 51%;
  }
  .machine-foot {
    padding: 15px 20px;
  }
  .location-link {
    display: block;
  }
  .location-block strong {
    font-size: 0.8rem;
  }
  .location-block span {
    font-size: 0.75rem;
  }
  .subgrid {
    gap: 13px;
    margin-top: 16px;
  }
  .info-card {
    padding: 18px 15px;
    min-height: 138px;
  }
  .info-card-label {
    font-size: 0.75rem;
    margin-bottom: 14px;
    gap: 6px;
  }
  .info-card-value {
    font-size: 0.78rem;
    gap: 8px;
  }
  .info-card-value .avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .info-card p {
    font-size: 0.75rem;
    padding-left: 0;
    margin-top: 8px;
  }
  .next-slot {
    font-size: 0.9rem;
  }
  .dashboard-right {
    display: contents;
  }
  .stock-card {
    min-height: unset;
    padding: 22px;
  }
  .stock-card .card-header {
    margin-bottom: 14px;
  }
  .stock-number {
    margin-top: 5px;
  }
  .stock-number strong {
    font-size: 2.2rem;
  }
  .stock-card .gauge {
    margin-top: 16px;
  }
  .stock-caption {
    margin: 15px 0;
  }
  .stock-card .btn {
    font-size: 0.8rem;
  }
  .calendar-mini {
    display: none;
  }
  .reservation-card {
    padding: 21px;
    margin-top: 17px;
  }
  .reservation-card .card-header {
    margin-bottom: 9px;
  }
  .reservation-row .pill {
    display: inline-flex;
  }
  .reservation-row {
    gap: 13px;
  }
  .reservation-info h3 {
    font-size: 0.8rem;
  }
  .reservation-info p {
    font-size: 0.75rem;
  }
  .activity-card {
    margin-top: 18px;
    padding: 21px;
  }
  .activity-card .card-header {
    margin-bottom: 10px;
  }
  .activity-row p {
    font-size: 0.77rem;
  }
  .home-bottom {
    font-size: 0.75rem;
    margin-top: 23px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    background: #ffffffed;
    backdrop-filter: blur(15px);
    border-top: 1px solid #e7ece5;
    z-index: 30;
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 550;
    color: #8b988e;
    min-height: 43px;
    justify-content: center;
  }
  .bottom-nav .icon {
    width: 21px;
    height: 21px;
  }
  .bottom-nav a.active {
    color: var(--green);
    font-weight: 700;
  }
  .bottom-nav a.active .icon {
    stroke-width: 2.1;
  }
  .card {
    border-radius: 17px;
  }
  .toast {
    left: 50%;
    bottom: 93px;
    font-size: 0.78rem;
    width: max-content;
    max-width: calc(100vw - 30px);
  }
  .booking-layout {
    gap: 18px;
  }
  .booking-calendar {
    padding: 21px;
  }
  .booking-calendar .day {
    aspect-ratio: 1.12;
  }
  .booking-calendar .calendar-legend {
    font-size: 0.75rem;
  }
  .booking-layout .card-pad {
    padding: 21px;
  }
  .tabs {
    margin-bottom: 19px;
    max-width: 100%;
  }
  .tab {
    font-size: 0.77rem;
    padding: 8px 14px;
  }
  .selected-day h2 {
    font-size: 0.97rem;
  }
  .stat-grid {
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-card {
    padding: 16px 13px;
  }
  .stat-card label {
    font-size: 0.75rem;
    line-height: 1.5;
    display: block;
  }
  .stat-card strong {
    font-size: 1.4rem;
  }
  .list-card {
    padding: 0 17px;
  }
  .list-row {
    flex-wrap: wrap;
    gap: 11px;
  }
  .list-row .row-actions {
    margin-left: auto;
  }
  .list-row-main h3 {
    font-size: 0.8rem;
  }
  .list-row-main p {
    font-size: 0.75rem;
  }
  .profile-card {
    padding: 22px;
  }
  .profile-summary .avatar {
    height: 58px;
    width: 58px;
    font-size: 1.15rem;
  }
  .profile-summary h2 {
    font-size: 1.2rem;
  }
  .profile-summary p {
    font-size: 0.79rem;
  }
  .settings-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .settings-row .row-text {
    min-width: 65%;
  }
  .settings-row .btn {
    margin-left: 31px;
    font-size: 0.75rem;
  }
  .profile-card .form-actions {
    justify-content: flex-start;
  }
  .auth-wrap {
    display: block;
    background: var(--bg);
  }
  .auth-story {
    display: none;
  }
  .auth-form-area {
    min-height: 100dvh;
    background: var(--bg);
    padding: 35px 25px;
  }
  .auth-card .brand {
    display: flex;
    margin-bottom: 47px;
  }
  .auth-card h1 {
    font-size: 1.8rem;
  }
  .auth-card > p {
    font-size: 0.87rem;
  }
  .auth-card .demo-strip {
    margin-bottom: 28px;
  }
  .auth-footer {
    margin-top: 27px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 1rem;
  }
  .form-actions .btn {
    font-size: 0.79rem;
  }
  .row-actions .btn.sm {
    font-size: 0.75rem;
  }
  .stock-large {
    display: block;
  }
  .admin-toolbar h2 {
    font-size: 1rem;
  }
  .admin-toolbar > .btn {
    font-size: 0.75rem;
  }
  .data-table th {
    font-size: 0.75rem;
  }
  .data-table td {
    font-size: 0.75rem;
  }
  .data-table th,
  .data-table td {
    padding: 14px 10px;
  }
  .admin-tabs {
    width: 100%;
    border-radius: 10px;
  }
  .admin-tabs .tab {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
  .page-section {
    margin-top: 19px;
  }
  .activity-time {
    font-size: 0.75rem;
  }
  .card-header h2 {
    font-size: 0.95rem;
  }
  .card-header {
    margin-bottom: 18px;
  }
  .empty-page {
    min-height: 180px;
  }
  .calendar-legend {
    gap: 10px;
  }
  .auth-card .dialog-desc {
    margin-bottom: 20px;
  }
}
@media (max-width: 370px) {
  .content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .machine-content h2 {
    font-size: 1.58rem;
  }
  .machine-content {
    width: 65%;
  }
  .machine-picture {
    width: 49%;
  }
  .machine-content p {
    max-width: 145px;
  }
  .machine-content .btn {
    font-size: 0.75rem;
    padding: 11px 14px;
  }
  .machine-top .pill {
    font-size: 0.75rem;
  }
  .location-link {
    display: none;
  }
  .info-card-value {
    font-size: 0.75rem;
  }
  .subgrid {
    gap: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .reservation-row .pill {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Lisibilité et ordre des informations sur téléphone. */
@media (max-width: 730px) {
  .dashboard-left {
    display: contents;
  }
  .dashboard-grid .machine-card {
    order: 1;
  }
  .dashboard-grid .subgrid {
    order: 2;
  }
  .dashboard-grid .stock-card {
    order: 3;
  }
  .dashboard-grid .reservation-card {
    order: 4;
  }
  .dashboard-grid .activity-card {
    order: 5;
  }
  .dashboard-grid .help-card {
    order: 6;
  }
  .form-field > span,
  .form-field > label,
  .list-row-main h3,
  .reservation-info h3,
  .stock-sub,
  .settings-row h3 {
    font-size: 0.875rem;
  }
  .machine-content p,
  .page-heading p,
  .dialog-desc,
  .form-note,
  .auth-card > p {
    font-size: 0.875rem;
  }
  .btn {
    min-height: 46px;
  }
  .stock-caption {
    font-size: 0.8rem;
  }
  .profile-summary p {
    overflow-wrap: anywhere;
  }
  .profile-summary {
    min-width: 0;
  }
  .profile-summary > div {
    min-width: 0;
  }
  .info-card-value {
    line-height: 1.45;
  }
  .info-card-value .avatar {
    flex: none;
  }
}

/* Taille de lecture minimale et commandes tactiles. */
.page-heading p,
.machine-content p,
.dialog-desc,
.auth-card > p {
  font-size: 1rem;
}
.btn,
.btn.sm,
.text-btn,
.tab,
.stock-sub,
.stock-caption,
.info-card-label,
.settings-row h3,
.reservation-info h3,
.activity-row p,
.list-row-main h3,
.form-field > span,
.form-field > label,
.form-note {
  font-size: 0.875rem;
}
.location-block strong {
  font-size: 0.9375rem;
}
.day {
  font-size: 0.875rem;
}
.profile-trigger {
  min-height: 44px;
  min-width: 44px;
}
.calendar-controls button {
  min-height: 40px;
  min-width: 40px;
}
.machine-content p {
  max-width: 220px;
}
.machine-content {
  width: 59%;
}
.machine-picture {
  right: 0;
  width: 45%;
}
.machine-content h2 {
  font-size: 1.8rem;
}
.icon-btn {
  min-height: 40px;
  min-width: 40px;
}
.info-card-value {
  font-size: 0.875rem;
}
.info-card p {
  font-size: 0.75rem;
}
@media (max-width: 730px) {
  .calendar-controls button,
  .icon-btn {
    min-height: 44px;
    min-width: 44px;
  }
  .bottom-nav a {
    font-size: 0.75rem;
  }
  .machine-content p {
    font-size: 0.9375rem;
    max-width: 178px;
  }
  .machine-content h2 {
    font-size: 1.7rem;
  }
  .machine-content {
    width: 62%;
  }
  .machine-picture {
    width: 46%;
    top: 65px;
  }
  .machine-content .btn {
    font-size: 0.8rem;
    padding: 11px 13px;
  }
  .info-card-value {
    font-size: 0.875rem;
  }
  .info-card .avatar {
    display: none;
  }
  .reservation-row .pill {
    display: none;
  }
  .stock-card .btn {
    font-size: 0.875rem;
  }
  .page-heading p {
    font-size: 0.9375rem;
  }
  .topbar .brand-name {
    font-size: 1.3rem;
  }
}

.form-field {
  min-width: 0;
}
.form-field input {
  min-width: 0;
}
.form-actions {
  flex-wrap: wrap;
}
.btn.full {
  white-space: normal;
}
@media (max-width: 730px) {
  .topbar {
    padding-top: env(safe-area-inset-top);
    height: calc(73px + env(safe-area-inset-top));
  }
  .auth-form-area {
    padding-top: max(35px, env(safe-area-inset-top));
    padding-bottom: max(35px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions .btn {
    flex: 1;
    white-space: normal;
  }
}
