:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --ink: #202124;
  --muted: #6b6f76;
  --line: #dcd8cf;
  --line-strong: #c9c3b8;
  --brand: #1f5a54;
  --brand-2: #2f7b70;
  --accent: #b75f32;
  --warning: #d69c1f;
  --danger: #b84c49;
  --success: #2d7d52;
  --nav: #263331;
  --nav-2: #344642;
  --shadow: 0 20px 45px rgba(32, 33, 36, 0.08);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans", "Noto Sans TC", "Noto Sans SC", "Noto Sans Thai",
    "Noto Sans JP", "Noto Sans KR", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(246, 244, 239, 0.9), rgba(246, 244, 239, 0.96)),
    radial-gradient(circle at 20% 10%, rgba(31, 90, 84, 0.14), transparent 34%);
}

.login-panel {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-brand {
  align-items: flex-start;
  padding: 24px;
  background: var(--nav);
  color: #f4f0e8;
  border-radius: var(--radius);
}

.login-form {
  display: grid;
  align-content: center;
  gap: 16px;
}

.login-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.login-copy,
.login-demo {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #f1eee7;
  border-radius: 6px;
}

.login-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.login-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.08);
}

.auth-panel {
  display: none;
  gap: 14px;
}

.auth-panel.active {
  display: grid;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  background: var(--nav);
  color: #f4f0e8;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 780;
}

.brand-subtitle {
  margin-top: 2px;
  color: rgba(244, 240, 232, 0.72);
  font-size: 12px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-group-title {
  padding: 0 12px 3px;
  color: rgba(244, 240, 232, 0.52);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  line-height: 1.35;
}

.nav-button {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: rgba(244, 240, 232, 0.82);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: var(--nav-2);
  color: #ffffff;
}

.nav-button svg {
  flex: 0 0 18px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(244, 240, 232, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.title-block {
  min-width: 0;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.page-title {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.session-pill {
  display: grid;
  gap: 1px;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.session-pill strong {
  font-size: 12px;
}

.session-pill span {
  color: var(--muted);
}

.select,
.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 10px;
  outline: none;
}

.textarea {
  min-height: 82px;
  resize: vertical;
}

.select:focus,
.input:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 90, 84, 0.12);
}

.lang-select {
  min-width: 148px;
}

.compact-select,
.compact-input {
  min-width: 150px;
}

.content {
  padding: 24px 26px 36px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.panel,
.entity-card,
.pos-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 16px;
  min-height: 112px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 820;
  line-height: 1.1;
}

.metric-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  margin-top: 16px;
  overflow: hidden;
}

.roadmap-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.roadmap-block .module-list {
  margin-top: 12px;
}

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

.panel-title {
  margin: 0;
  font-size: 16px;
}

.panel-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.panel-body {
  padding: 16px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar .input,
.toolbar .select {
  width: auto;
  min-width: 170px;
}

.btn {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.btn.primary:hover {
  background: var(--brand-2);
  color: #fff;
}

.btn.danger {
  border-color: rgba(184, 76, 73, 0.35);
  color: var(--danger);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.btn.small {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  font-size: 14px;
}

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

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #eef1ed;
  color: var(--brand);
}

.status.warn {
  background: #fff4da;
  color: #8b650d;
}

.status.danger {
  background: #ffe8e6;
  color: var(--danger);
}

.status.success {
  background: #e5f4eb;
  color: var(--success);
}

.status.neutral {
  background: #eef0f2;
  color: #4d5560;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
}

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

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

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

.alert-card {
  min-height: 92px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  text-align: left;
}

.alert-card:hover {
  border-color: var(--brand);
}

.alert-card.critical {
  border-left-color: var(--danger);
}

.alert-card.warning {
  border-left-color: var(--warning);
}

.alert-card.information {
  border-left-color: var(--brand);
}

.alert-card strong {
  line-height: 1.35;
}

.alert-card span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.entity-card {
  padding: 15px;
}

.member-card {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
}

.member-card:hover,
.member-card.active {
  border-color: var(--brand);
  box-shadow: 0 12px 26px rgba(32, 33, 36, 0.08);
}

.entity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.entity-name {
  font-weight: 780;
}

.entity-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.entity-stats {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fbfaf7;
}

.mini-stat strong {
  display: block;
  font-size: 16px;
}

.mini-stat span {
  color: var(--muted);
  font-size: 11px;
}

.crm-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 0.65fr);
  gap: 16px;
  align-items: start;
}

.member-list {
  display: grid;
  gap: 10px;
}

.member-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 12px;
}

.member-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.member-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.detail-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-grid div,
.note-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf7;
  padding: 9px 10px;
}

.profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.profile-grid strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.crm-section {
  margin-top: 16px;
}

.section-title {
  margin-bottom: 8px;
  font-weight: 780;
}

.timeline-item {
  border-left: 2px solid var(--brand);
  padding: 2px 0 10px 10px;
  display: grid;
  gap: 3px;
}

.timeline-item strong {
  font-size: 12px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 13px;
}

.compact-table table {
  min-width: 620px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
  background: #fbfaf7;
}

.analytics-table th,
.analytics-table td {
  white-space: nowrap;
}

.rank-badge {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nav);
  color: #f4f0e8;
  font-size: 12px;
  font-weight: 800;
}

.progress-cell {
  min-width: 150px;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8df;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 16px;
}

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

.product-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  min-height: 146px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  touch-action: manipulation;
}

.product-tile:hover {
  border-color: var(--brand);
}

.shoe-thumb {
  height: 48px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 28% 42%, rgba(255, 255, 255, 0.88), transparent 18%),
    linear-gradient(130deg, #e7e1d7, #b8c9c3);
  position: relative;
  overflow: hidden;
}

.shoe-thumb::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 12%;
  bottom: 11px;
  height: 9px;
  background: rgba(32, 33, 36, 0.62);
  border-radius: 999px 999px 7px 7px;
}

.shoe-thumb::before {
  content: "";
  position: absolute;
  left: 23%;
  right: 22%;
  bottom: 19px;
  height: 17px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 34px 44px 12px 9px;
  transform: skewX(-10deg);
}

.product-name {
  font-weight: 760;
}

.product-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tile-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  font-weight: 820;
}

.cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfaf7;
}

.cart-name {
  font-weight: 700;
}

.cart-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.totals {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.total-row.grand {
  font-size: 20px;
  font-weight: 820;
}

.segmented {
  display: inline-flex;
  background: #eeebe4;
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
}

.segmented button {
  border: 0;
  background: transparent;
  border-radius: 4px;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--muted);
}

.segmented button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.08);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.pos-mode-bar,
.pos-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pos-actions-row {
  margin-bottom: 0;
}

.payment-grid button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 7px 8px;
  text-align: center;
  overflow-wrap: anywhere;
}

.payment-grid button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.market-strip > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf7;
  padding: 10px;
}

.market-strip strong {
  display: block;
  margin-top: 3px;
}

.payment-list {
  margin-top: 12px;
  line-height: 1.45;
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 32px));
  background: #1f2b29;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  z-index: 50;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 30, 31, 0.34);
  z-index: 80;
  display: none;
}

.drawer-backdrop.show {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 90;
  box-shadow: -28px 0 60px rgba(32, 33, 36, 0.18);
  transform: translateX(105%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.drawer.show {
  transform: translateX(0);
}

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

.drawer-title {
  margin: 0;
  font-size: 18px;
}

.drawer-body {
  padding: 18px;
  overflow: auto;
}

.drawer-footer {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.section-gap {
  margin-top: 22px;
}

.report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.module-title {
  font-weight: 780;
}

.module-copy {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.ai-signals {
  margin-top: 14px;
}

.compact-list {
  grid-template-columns: 1fr;
}

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

.settings-nested {
  padding: 12px 0 0;
}

.ai-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 156px;
}

.ai-orb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 860;
  box-shadow: 0 18px 32px rgba(31, 90, 84, 0.18);
}

.mobile-menu {
  display: none;
}

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

@media (max-width: 1120px) {
  .dashboard-grid,
  .alert-grid,
  .entity-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pos-layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .login-panel {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    z-index: 70;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar {
    align-items: flex-start;
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 20px;
  }

  .content {
    padding: 16px;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    width: 100%;
  }

  .table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .table-wrap::before {
    content: "Swipe table";
    display: block;
    position: sticky;
    left: 0;
    padding: 8px 10px;
    color: var(--muted);
    background: #fbfaf7;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    text-transform: uppercase;
  }

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 10px 8px;
  }

  .dashboard-grid,
  .entity-grid,
  .product-grid,
  .form-grid,
  .module-list,
  .market-strip,
  .crm-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

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

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

  .product-tile {
    min-height: 128px;
  }

  .drawer {
    width: 100vw;
  }

  .toolbar .input,
  .toolbar .select {
    width: 100%;
    min-width: 0;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
