/*
  Mardo UI
  Mini libreria visual aislada para PHP tradicional, HTML, CSS y JS vanilla.
*/

:root {
  color-scheme: light;
  --mardo-font-sans: Inter, ui-sans-serif, system-ui, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mardo-bg: #f5f7fb;
  --mardo-bg-soft: #eef3f8;
  --mardo-surface: rgba(255, 255, 255, 0.78);
  --mardo-surface-solid: #ffffff;
  --mardo-surface-elevated: rgba(255, 255, 255, 0.92);
  --mardo-control: rgba(255, 255, 255, 0.86);
  --mardo-control-hover: #ffffff;
  --mardo-menu: rgba(255, 255, 255, 0.94);
  --mardo-text: #1d1d1f;
  --mardo-text-soft: #5f636d;
  --mardo-text-muted: #8a8f99;
  --mardo-border: rgba(30, 41, 59, 0.12);
  --mardo-border-strong: rgba(30, 41, 59, 0.2);
  --mardo-primary: #007aff;
  --mardo-primary-strong: #0064d8;
  --mardo-primary-soft: rgba(0, 122, 255, 0.12);
  --mardo-success: #22a06b;
  --mardo-success-soft: rgba(34, 160, 107, 0.14);
  --mardo-danger: #ff3b30;
  --mardo-danger-soft: rgba(255, 59, 48, 0.14);
  --mardo-warning: #b7791f;
  --mardo-warning-soft: rgba(251, 191, 36, 0.18);
  --mardo-info: #0a84ff;
  --mardo-info-soft: rgba(10, 132, 255, 0.14);
  --mardo-purple: #7c3aed;
  --mardo-purple-soft: rgba(124, 58, 237, 0.12);
  --mardo-radius-xs: 8px;
  --mardo-radius-sm: 12px;
  --mardo-radius-md: 16px;
  --mardo-radius-lg: 22px;
  --mardo-radius-xl: 28px;
  --mardo-shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
  --mardo-shadow-md: 0 18px 50px rgba(15, 23, 42, 0.13);
  --mardo-shadow-lg: 0 26px 80px rgba(15, 23, 42, 0.18);
  --mardo-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(15, 23, 42, 0.06);
  --mardo-blur: saturate(1.6) blur(22px);
  --mardo-transition: 180ms ease;
  --mardo-ring: 0 0 0 4px rgba(0, 122, 255, 0.18);
  --mardo-demo-bg-top-left: rgba(104, 132, 173, 0.12);
  --mardo-demo-bg-bottom-right: rgba(128, 145, 170, 0.12);
  --mardo-demo-bg-start: #eef3f9;
  --mardo-demo-bg-end: #dde5ef;
  --mardo-main-surface-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.96));
  --mardo-main-surface-header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.98));
  --mardo-main-surface-border: rgba(30, 41, 59, 0.1);
  --mardo-main-surface-shadow: none;
  --mardo-sidebar-link-color-demo: rgba(29, 29, 31, 0.78);
  --mardo-sidebar-link-hover-demo: rgba(30, 41, 59, 0.06);
  --mardo-sidebar-link-active-demo: rgba(30, 41, 59, 0.08);
  --mardo-sidebar-label-demo: rgba(29, 29, 31, 0.42);
  --mardo-sidebar-divider-demo: rgba(30, 41, 59, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-mardo-theme="light"]) {
    color-scheme: dark;
    --mardo-bg: #111113;
    --mardo-bg-soft: #19191d;
    --mardo-surface: rgba(31, 31, 35, 0.72);
    --mardo-surface-solid: #1f1f23;
    --mardo-surface-elevated: rgba(42, 42, 47, 0.9);
    --mardo-control: rgba(58, 58, 63, 0.76);
    --mardo-control-hover: rgba(72, 72, 78, 0.92);
    --mardo-menu: rgba(38, 38, 42, 0.94);
    --mardo-text: #f5f5f7;
    --mardo-text-soft: #c4c7cf;
    --mardo-text-muted: #8f939c;
    --mardo-border: rgba(255, 255, 255, 0.12);
    --mardo-border-strong: rgba(255, 255, 255, 0.2);
    --mardo-primary: #0a84ff;
    --mardo-primary-strong: #5eb0ff;
    --mardo-primary-soft: rgba(10, 132, 255, 0.18);
    --mardo-success: #30d158;
    --mardo-success-soft: rgba(48, 209, 88, 0.16);
    --mardo-danger: #ff453a;
    --mardo-danger-soft: rgba(255, 69, 58, 0.18);
    --mardo-warning: #ffd60a;
    --mardo-warning-soft: rgba(255, 214, 10, 0.16);
    --mardo-info: #64d2ff;
    --mardo-info-soft: rgba(100, 210, 255, 0.16);
    --mardo-purple: #bf5af2;
    --mardo-purple-soft: rgba(191, 90, 242, 0.16);
    --mardo-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
    --mardo-shadow-md: 0 18px 54px rgba(0, 0, 0, 0.32);
    --mardo-shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.45);
    --mardo-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.22);
    --mardo-ring: 0 0 0 4px rgba(10, 132, 255, 0.24);
    --mardo-demo-bg-top-left: rgba(110, 110, 118, 0.16);
    --mardo-demo-bg-bottom-right: rgba(80, 84, 92, 0.18);
    --mardo-demo-bg-start: #1b1b1d;
    --mardo-demo-bg-end: #101011;
    --mardo-main-surface-bg: linear-gradient(180deg, rgba(30, 30, 32, 0.98), rgba(20, 20, 22, 0.98));
    --mardo-main-surface-header-bg: linear-gradient(180deg, rgba(38, 38, 40, 0.98), rgba(26, 26, 28, 0.98));
    --mardo-main-surface-border: rgba(255, 255, 255, 0.08);
    --mardo-main-surface-shadow: none;
    --mardo-sidebar-link-color-demo: rgba(255, 255, 255, 0.82);
    --mardo-sidebar-link-hover-demo: rgba(255, 255, 255, 0.05);
    --mardo-sidebar-link-active-demo: rgba(255, 255, 255, 0.1);
    --mardo-sidebar-label-demo: rgba(255, 255, 255, 0.5);
    --mardo-sidebar-divider-demo: rgba(255, 255, 255, 0.05);
  }
}

:root[data-mardo-theme="dark"],
.mardo-theme-dark {
  color-scheme: dark;
  --mardo-bg: #111113;
  --mardo-bg-soft: #19191d;
  --mardo-surface: rgba(31, 31, 35, 0.72);
  --mardo-surface-solid: #1f1f23;
  --mardo-surface-elevated: rgba(42, 42, 47, 0.9);
  --mardo-control: rgba(58, 58, 63, 0.76);
  --mardo-control-hover: rgba(72, 72, 78, 0.92);
  --mardo-menu: rgba(38, 38, 42, 0.94);
  --mardo-text: #f5f5f7;
  --mardo-text-soft: #c4c7cf;
  --mardo-text-muted: #8f939c;
  --mardo-border: rgba(255, 255, 255, 0.12);
  --mardo-border-strong: rgba(255, 255, 255, 0.2);
  --mardo-primary: #0a84ff;
  --mardo-primary-strong: #5eb0ff;
  --mardo-primary-soft: rgba(10, 132, 255, 0.18);
  --mardo-success: #30d158;
  --mardo-success-soft: rgba(48, 209, 88, 0.16);
  --mardo-danger: #ff453a;
  --mardo-danger-soft: rgba(255, 69, 58, 0.18);
  --mardo-warning: #ffd60a;
  --mardo-warning-soft: rgba(255, 214, 10, 0.16);
  --mardo-info: #64d2ff;
  --mardo-info-soft: rgba(100, 210, 255, 0.16);
  --mardo-purple: #bf5af2;
  --mardo-purple-soft: rgba(191, 90, 242, 0.16);
  --mardo-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
  --mardo-shadow-md: 0 18px 54px rgba(0, 0, 0, 0.32);
  --mardo-shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.45);
  --mardo-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.22);
  --mardo-ring: 0 0 0 4px rgba(10, 132, 255, 0.24);
  --mardo-demo-bg-top-left: rgba(110, 110, 118, 0.16);
  --mardo-demo-bg-bottom-right: rgba(80, 84, 92, 0.18);
  --mardo-demo-bg-start: #1b1b1d;
  --mardo-demo-bg-end: #101011;
  --mardo-main-surface-bg: linear-gradient(180deg, rgba(30, 30, 32, 0.98), rgba(20, 20, 22, 0.98));
  --mardo-main-surface-header-bg: linear-gradient(180deg, rgba(38, 38, 40, 0.98), rgba(26, 26, 28, 0.98));
  --mardo-main-surface-border: rgba(255, 255, 255, 0.08);
  --mardo-main-surface-shadow: none;
  --mardo-sidebar-link-color-demo: rgba(255, 255, 255, 0.82);
  --mardo-sidebar-link-hover-demo: rgba(255, 255, 255, 0.05);
  --mardo-sidebar-link-active-demo: rgba(255, 255, 255, 0.1);
  --mardo-sidebar-label-demo: rgba(255, 255, 255, 0.5);
  --mardo-sidebar-divider-demo: rgba(255, 255, 255, 0.05);
}

:root[data-mardo-theme="light"],
.mardo-theme-light {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--mardo-bg);
}

body.mardo-ui {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--mardo-text);
  background: linear-gradient(180deg, var(--mardo-bg), var(--mardo-bg-soft));
  font-family: var(--mardo-font-sans);
  line-height: 1.5;
  transition: background var(--mardo-transition), color var(--mardo-transition);
}

body.mardo-demo-app {
  background:
    radial-gradient(circle at top left, var(--mardo-demo-bg-top-left), transparent 28rem),
    radial-gradient(circle at bottom right, var(--mardo-demo-bg-bottom-right), transparent 24rem),
    linear-gradient(180deg, var(--mardo-demo-bg-start), var(--mardo-demo-bg-end) 68%);
  overflow-x: hidden;
}

body.mardo-ui button,
body.mardo-ui input,
body.mardo-ui select,
body.mardo-ui textarea {
  font: inherit;
}

body.mardo-ui a {
  color: inherit;
  text-decoration: none;
}

.mardo-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.mardo-demo-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.mardo-demo-main {
  min-width: 0;
}

.mardo-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.mardo-topbar {
  position: relative;
  z-index: 110;
}

.mardo-topbar-title-group,
.mardo-topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
}

.mardo-topbar-title-group {
  flex: 1 1 320px;
  gap: 12px;
}

.mardo-topbar-title-copy {
  min-width: 0;
}

.mardo-topbar .mardo-heading {
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
  line-height: 1.05 !important;
}

.mardo-topbar .mardo-kicker {
  margin-bottom: 8px;
  font-size: 0.7rem !important;
}

.mardo-topbar .mardo-section-copy {
  margin-top: 5px;
  font-size: 0.9rem !important;
}

.mardo-topbar-actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.mardo-mobile-menu-button {
  display: none !important;
  flex: 0 0 auto;
}

.mardo-mobile-menu-button .mardo-icon,
.mardo-topbar-back .mardo-icon,
.mardo-topbar-button-icon,
.mardo-topbar-branch-icon,
.mardo-topbar-chevron,
.mardo-topbar-option-icon,
.mardo-topbar-option-check,
.mardo-topbar-tool-icon,
.mardo-topbar-tool-arrow,
.mardo-topbar-popover-footer > span {
  display: grid;
  place-items: center;
}

.mardo-mobile-menu-button svg,
.mardo-topbar-back svg,
.mardo-topbar-button-icon svg,
.mardo-topbar-branch-icon svg,
.mardo-topbar-chevron svg,
.mardo-topbar-option-icon svg,
.mardo-topbar-option-check svg,
.mardo-topbar-tool-icon svg,
.mardo-topbar-tool-arrow svg,
.mardo-topbar-empty svg,
.mardo-topbar-popover-footer svg {
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision;
}

.mardo-topbar-menu {
  position: relative;
  min-width: 0;
}

.mardo-topbar-icon-button,
.mardo-topbar-branch-button {
  border: 1px solid var(--mardo-border);
  background: var(--mardo-control);
  color: var(--mardo-text);
  box-shadow: var(--mardo-control-shadow);
  cursor: pointer;
  transition:
    background var(--mardo-transition),
    border-color var(--mardo-transition),
    box-shadow var(--mardo-transition);
  -webkit-appearance: none;
  appearance: none;
}

.mardo-topbar-icon-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border-radius: 12px;
}

.mardo-topbar-button-icon {
  width: 18px;
  height: 18px;
}

.mardo-topbar-icon-button:hover,
.mardo-topbar-icon-button[aria-expanded="true"],
.mardo-topbar-branch-button:hover,
.mardo-topbar-branch-button[aria-expanded="true"] {
  border-color: var(--mardo-border-strong);
  background: var(--mardo-control-hover);
}

.mardo-topbar-icon-button:focus-visible,
.mardo-topbar-branch-button:focus-visible,
.mardo-topbar-option:focus-visible,
.mardo-topbar-tool:focus-visible,
.mardo-topbar-notification:focus-visible {
  outline: 0;
  box-shadow: var(--mardo-ring);
}

.mardo-topbar-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid var(--mardo-surface-solid);
  border-radius: 999px;
  background: var(--mardo-danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.mardo-topbar-branch {
  max-width: min(340px, 32vw);
}

.mardo-topbar-branch-button {
  display: grid;
  width: 100%;
  min-width: 185px;
  height: 38px;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border-radius: 12px;
  text-align: left;
  white-space: nowrap;
}

.mardo-topbar-branch-button > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--mardo-text);
  font-size: 0.79rem;
  font-weight: 740;
  text-overflow: ellipsis;
}

.mardo-topbar-branch-icon {
  width: 18px;
  height: 18px;
  color: var(--mardo-text-soft);
}

.mardo-topbar-chevron {
  width: 14px;
  height: 14px;
  color: var(--mardo-text-muted);
  transition: transform var(--mardo-transition);
}

.mardo-topbar-branch-button[aria-expanded="true"] .mardo-topbar-chevron {
  transform: rotate(180deg);
}

.mardo-topbar-separator {
  width: 1px;
  height: 28px;
  margin: 0 3px;
  background: var(--mardo-border);
}

.mardo-topbar-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 250;
  display: none;
  width: 250px;
  max-width: calc(100vw - 24px);
  padding: 7px;
  border: 1px solid var(--mardo-border);
  border-radius: 16px;
  background: var(--mardo-menu);
  box-shadow: var(--mardo-shadow-lg);
  color: var(--mardo-text);
  backdrop-filter: var(--mardo-blur);
  -webkit-backdrop-filter: var(--mardo-blur);
}

.mardo-topbar-popover-wide {
  width: 360px;
}

.mardo-topbar-popover.is-open {
  display: block;
  animation: mardo-topbar-popover-in 140ms ease-out;
}

@keyframes mardo-topbar-popover-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mardo-topbar-popover-title {
  display: grid;
  gap: 2px;
  padding: 9px 10px 8px;
  border-bottom: 1px solid var(--mardo-border);
}

.mardo-topbar-popover-title strong {
  font-size: 0.82rem;
  font-weight: 780;
}

.mardo-topbar-popover-title small,
.mardo-topbar-tool small,
.mardo-topbar-notification small,
.mardo-topbar-empty small {
  color: var(--mardo-text-soft);
  font-size: 0.72rem;
  font-weight: 500;
}

.mardo-topbar-option-list {
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 4px;
}

.mardo-topbar-option {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mardo-text);
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.mardo-topbar-option:hover,
.mardo-topbar-option.is-active {
  background: var(--mardo-surface-elevated);
}

.mardo-topbar-option strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mardo-topbar-option-icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid var(--mardo-border);
  border-radius: 9px;
  background: var(--mardo-control);
  color: var(--mardo-text-soft);
}

.mardo-topbar-option-check {
  width: 16px;
  height: 16px;
  color: var(--mardo-primary);
  opacity: 0;
}

.mardo-topbar-option.is-active .mardo-topbar-option-check,
.mardo-topbar-option[aria-pressed="true"] .mardo-topbar-option-check {
  opacity: 1;
}

.mardo-topbar-branch.is-loading {
  pointer-events: none;
  opacity: 0.65;
}

.mardo-topbar-tool,
.mardo-topbar-notification {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 9px;
  border-radius: 11px;
}

.mardo-topbar-tool {
  grid-template-columns: 34px minmax(0, 1fr) 16px;
}

.mardo-topbar-notification {
  grid-template-columns: 8px minmax(0, 1fr);
}

.mardo-topbar-tool:hover,
.mardo-topbar-notification:hover {
  background: var(--mardo-surface-elevated);
}

.mardo-topbar-tool.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.mardo-topbar-tool > span:nth-child(2),
.mardo-topbar-notification > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.mardo-topbar-tool strong,
.mardo-topbar-notification strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mardo-topbar-tool-icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: var(--mardo-primary-soft);
  color: var(--mardo-primary);
}

.mardo-topbar-tool-arrow {
  width: 14px;
  height: 14px;
  color: var(--mardo-text-muted);
}

.mardo-topbar-notification-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mardo-primary);
}

.mardo-topbar-empty {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 20px 12px;
  text-align: center;
}

.mardo-topbar-empty > span {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  color: var(--mardo-text-muted);
}

.mardo-topbar-empty strong {
  font-size: 0.82rem;
}

.mardo-topbar-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding: 10px;
  border-top: 1px solid var(--mardo-border);
  color: var(--mardo-primary);
  font-size: 0.76rem;
  font-weight: 700;
}

.mardo-topbar-popover-footer > span {
  width: 14px;
  height: 14px;
}

.mardo-heading {
  margin: 0;
  color: var(--mardo-text);
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

.mardo-section-title {
  margin: 0;
  color: var(--mardo-text);
  font-size: 1.22rem;
  font-weight: 720;
  letter-spacing: 0;
}

.mardo-section-copy,
.mardo-muted {
  color: var(--mardo-text-soft);
}

.mardo-section-copy {
  max-width: 68ch;
  margin: 8px 0 0;
  font-size: 0.98rem;
}

.mardo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--mardo-primary-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mardo-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--mardo-success);
  box-shadow: 0 0 0 6px var(--mardo-success-soft);
}

.mardo-panel {
  border: 1px solid var(--mardo-border);
  border-radius: var(--mardo-radius-xl);
  background: var(--mardo-surface);
  box-shadow: var(--mardo-shadow-md);
  backdrop-filter: var(--mardo-blur);
  -webkit-backdrop-filter: var(--mardo-blur);
}

.mardo-card,
.mardo-dashboard-card {
  position: relative;
  overflow: visible;
  border: 1px solid var(--mardo-border);
  border-radius: var(--mardo-radius-lg);
  background: var(--mardo-surface-solid);
  box-shadow: var(--mardo-shadow-sm);
  color: var(--mardo-text);
  transition:
    transform var(--mardo-transition),
    border-color var(--mardo-transition),
    background var(--mardo-transition),
    box-shadow var(--mardo-transition);
}

.mardo-card.has-popover,
.mardo-dashboard-card.has-popover,
.mardo-settings-list.has-popover,
.mardo-main-surface.has-popover {
  z-index: 95;
}

.mardo-card:hover,
.mardo-dashboard-card:hover {
  transform: translateY(-2px);
  border-color: var(--mardo-border-strong);
  box-shadow: var(--mardo-shadow-md);
}

.mardo-card-glass {
  background: var(--mardo-surface);
  backdrop-filter: var(--mardo-blur);
  -webkit-backdrop-filter: var(--mardo-blur);
}

.mardo-card-compact {
  border-radius: var(--mardo-radius-md);
}

.mardo-card-body,
.mardo-dashboard-card-body {
  padding: 22px;
}

.mardo-card-compact .mardo-card-body {
  padding: 16px;
}

.mardo-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mardo-card-title {
  margin: 0;
  color: var(--mardo-text);
  font-size: 1rem;
  font-weight: 730;
}

.mardo-card-subtitle {
  margin: 5px 0 0;
  color: var(--mardo-text-soft);
  font-size: 0.9rem;
}

.mardo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.mardo-dashboard-value {
  margin: 0;
  color: var(--mardo-text);
  font-size: 2.2rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
}

.mardo-dashboard-label {
  margin: 8px 0 0;
  color: var(--mardo-text-soft);
  font-size: 0.92rem;
}

.mardo-dashboard-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mardo-success-soft);
  color: var(--mardo-success);
  font-size: 0.82rem;
  font-weight: 700;
}

.mardo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.mardo-col-3 {
  grid-column: span 3;
}

.mardo-col-4 {
  grid-column: span 4;
}

.mardo-col-6 {
  grid-column: span 6;
}

.mardo-col-8 {
  grid-column: span 8;
}

.mardo-col-12 {
  grid-column: span 12;
}

.mardo-section {
  margin-top: 24px;
}

.mardo-section + .mardo-section {
  margin-top: 28px;
}

.mardo-span-full {
  grid-column: 1 / -1;
}

.mardo-mt-4 {
  margin-top: 16px;
}

.mardo-button {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 720;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  transition:
    transform var(--mardo-transition),
    background var(--mardo-transition),
    border-color var(--mardo-transition),
    box-shadow var(--mardo-transition),
    color var(--mardo-transition),
    opacity var(--mardo-transition);
}

.mardo-button:hover {
  transform: translateY(-1px);
}

.mardo-button:active {
  transform: translateY(0) scale(0.98);
}

.mardo-button:focus-visible {
  outline: 0;
  box-shadow: var(--mardo-ring);
}

.mardo-button[disabled],
.mardo-button-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}


.mardo-button.mardo-back-button,
.mardo-topbar-back {
  font-weight: 500;
}

.mardo-button-primary {
  background: linear-gradient(180deg, var(--mardo-primary), var(--mardo-primary-strong));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.28);
}

.mardo-button-secondary {
  border-color: var(--mardo-border);
  background: var(--mardo-surface-elevated);
  color: var(--mardo-text);
}

.mardo-button-danger {
  background: linear-gradient(180deg, #ff6961, var(--mardo-danger));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(255, 59, 48, 0.24);
}

.mardo-button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--mardo-primary-strong);
}

.mardo-button-ghost:hover {
  background: var(--mardo-primary-soft);
}

.mardo-button-icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.mardo-button-sm {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.mardo-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mardo-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mardo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mardo-field {
  display: grid;
  gap: 8px;
}

.mardo-field-density-compact {
  gap: 5px;
}

.mardo-field-inline {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.mardo-field-inline-main,
.mardo-settings-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mardo-field-inline-control,
.mardo-settings-control {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

.mardo-label {
  color: var(--mardo-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.mardo-helper {
  color: var(--mardo-text-muted);
  font-size: 0.82rem;
}

.mardo-field-inline .mardo-label,
.mardo-settings-copy .mardo-label {
  font-weight: 560;
}

.mardo-field-inline .mardo-helper,
.mardo-settings-copy .mardo-helper {
  font-size: 0.77rem;
}

.mardo-field-error .mardo-helper,
.mardo-error-text {
  color: var(--mardo-danger);
}

.mardo-input,
.mardo-select,
.mardo-textarea,
.mardo-select-trigger,
.mardo-date-trigger {
  width: 100%;
  border: 1px solid var(--mardo-border);
  border-radius: var(--mardo-radius-md);
  background: var(--mardo-control);
  box-shadow: var(--mardo-control-shadow);
  color: var(--mardo-text);
  outline: 0;
  transition:
    border-color var(--mardo-transition),
    box-shadow var(--mardo-transition),
    background var(--mardo-transition),
    opacity var(--mardo-transition);
}

.mardo-input,
.mardo-select,
.mardo-select-trigger,
.mardo-date-trigger {
  min-height: 44px;
  padding: 0 14px;
}

.mardo-control-compact {
  min-height: 32px;
  border-radius: 11px;
  padding: 0 11px;
  font-size: 0.88rem;
}

.mardo-textarea.mardo-control-compact {
  min-height: 88px;
  padding: 10px 11px;
}

.mardo-select-trigger,
.mardo-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.mardo-select-trigger:hover,
.mardo-date-trigger:hover {
  background: var(--mardo-control-hover);
}

.mardo-field-inline .mardo-input,
.mardo-field-inline .mardo-select-trigger,
.mardo-field-inline .mardo-date-trigger,
.mardo-field-inline .mardo-select-control,
.mardo-field-inline .mardo-date-control {
  width: min(100%, 220px);
}

.mardo-field-inline .mardo-textarea {
  width: min(100%, 280px);
}

.mardo-textarea {
  min-height: 116px;
  resize: vertical;
  padding: 12px 14px;
}

.mardo-input::placeholder,
.mardo-textarea::placeholder {
  color: var(--mardo-text-muted);
}

.mardo-input:focus,
.mardo-select:focus,
.mardo-textarea:focus,
.mardo-select-trigger:focus,
.mardo-date-trigger:focus,
.mardo-select-control.is-open .mardo-select-trigger,
.mardo-date-control.is-open .mardo-date-trigger {
  border-color: var(--mardo-primary);
  box-shadow: var(--mardo-ring);
}

.mardo-input[disabled],
.mardo-select[disabled],
.mardo-textarea[disabled],
.mardo-select-trigger[disabled],
.mardo-date-trigger[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

.mardo-field-error .mardo-input,
.mardo-field-error .mardo-select,
.mardo-field-error .mardo-textarea,
.mardo-field-error .mardo-select-trigger,
.mardo-field-error .mardo-date-trigger {
  border-color: var(--mardo-danger);
}

.mardo-select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mardo-text-soft) 50%),
    linear-gradient(135deg, var(--mardo-text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.mardo-select-control,
.mardo-date-control {
  position: relative;
}

.mardo-select-control.is-open,
.mardo-date-control.is-open {
  z-index: 90;
}

.mardo-settings-list {
  border: 1px solid var(--mardo-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 6%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: visible;
  position: relative;
}

.mardo-settings-list > * {
  padding: 11px 14px;
}

.mardo-settings-list > * + * {
  border-top: 1px solid var(--mardo-border);
}

.mardo-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.mardo-card-form-reference {
  background: var(--mardo-surface-solid);
}

.mardo-card-form-reference .mardo-card-body {
  padding: 18px;
}

.mardo-app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 8px 14px 0;
}

.mardo-app-layout {
  position: relative;
  display: grid;
  grid-template-columns: var(--mardo-app-sidebar-width, 252px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
}

.mardo-sidebar-pane {
  position: relative;
  top: 0;
  width: var(--mardo-app-sidebar-width, 252px);
  min-width: var(--mardo-app-sidebar-width, 252px);
  max-width: var(--mardo-app-sidebar-width, 252px);
  overflow: visible;
  border: 0;
  min-height: 100%;
  border-radius: 0;
  padding-top: 2px;
  background:
    linear-gradient(180deg, rgba(34, 34, 36, 0.92), rgba(21, 21, 23, 0.96));
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: saturate(1.04) blur(18px);
  -webkit-backdrop-filter: saturate(1.04) blur(18px);
}

.mardo-demo-app .mardo-sidebar-pane {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: var(--mardo-app-sidebar-width, 252px);
  min-width: var(--mardo-app-sidebar-width, 252px);
  max-width: var(--mardo-app-sidebar-width, 252px);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-header,
.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-user {
  padding-left: 22px;
  padding-right: 22px;
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-header {
  padding-top: 18px;
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-nav {
  padding: 8px 18px 10px;
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-apps {
  padding-left: 18px;
  padding-right: 18px;
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-group + .mardo-sidebar-group {
  border-top-color: var(--mardo-sidebar-divider-demo);
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-link {
  color: var(--mardo-sidebar-link-color-demo);
  background: transparent;
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-link:hover {
  background: var(--mardo-sidebar-link-hover-demo);
  color: var(--mardo-text);
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-link.is-active {
  background: var(--mardo-sidebar-link-active-demo);
  color: var(--mardo-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-label {
  color: var(--mardo-sidebar-label-demo);
}

.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-user {
  margin-top: auto;
  margin-bottom: 14px;
  border-top: 0;
}

.mardo-main-surface {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 100%;
  margin: 6px 0 8px -10px;
  border: 1px solid var(--mardo-main-surface-border);
  border-radius: 34px;
  background: var(--mardo-main-surface-bg);
  box-shadow: var(--mardo-main-surface-shadow);
  overflow: visible;
}

.mardo-main-surface .mardo-topline {
  margin: 0;
  padding: 18px 28px 18px;
  border-bottom: 1px solid var(--mardo-main-surface-border);
  border-radius: 34px 34px 0 0;
  background: var(--mardo-main-surface-header-bg);
}

.mardo-main-scroll {
  padding: 20px 28px 44px;
}

.mardo-client-admin {
  display: grid;
  gap: 12px;
  border: 1px solid var(--mardo-border);
  border-radius: 16px;
  padding: 14px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 5%);
  box-shadow: none;
}

.mardo-client-admin-head {
  display: grid;
  gap: 10px;
  align-items: start;
}

.mardo-client-admin-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 780;
  line-height: 1.1;
}

.mardo-client-admin-copy {
  margin: 3px 0 0;
  color: var(--mardo-text-soft);
  font-size: 0.72rem;
}

.mardo-client-admin-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mardo-client-admin-tools::-webkit-scrollbar {
  display: none;
}

.mardo-client-search,
.mardo-client-pill,
.mardo-client-primary,
.mardo-client-icon-button,
.mardo-client-page-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--mardo-border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 8%);
  color: var(--mardo-text);
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 680;
}

.mardo-client-search {
  width: 210px;
  min-width: 210px;
  padding: 0 9px;
}

.mardo-client-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  outline: 0;
}

.mardo-client-pill,
.mardo-client-primary,
.mardo-client-icon-button,
.mardo-client-page-button {
  padding: 0 9px;
  cursor: pointer;
}

.mardo-client-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--mardo-primary), var(--mardo-primary-strong));
  color: #ffffff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--mardo-primary), transparent 68%);
}

.mardo-client-tool-icon {
  display: inline-flex;
  width: 13px;
  height: 13px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mardo-client-tool-icon svg,
.mardo-client-icon-button svg {
  width: 13px;
  height: 13px;
}

.mardo-client-table-shell {
  overflow: hidden;
  border: 1px solid var(--mardo-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 6%);
  box-shadow: none;
}

.mardo-client-table-shell-simple .mardo-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mardo-client-table-shell-simple .mardo-table {
  min-width: 760px;
}

.mardo-client-table-shell-simple .mardo-table-actions {
  gap: 6px;
}

.mardo-client-table-shell-simple .mardo-table th,
.mardo-client-table-shell-simple .mardo-table td {
  padding: 10px 13px;
  font-size: 0.82rem;
}

.mardo-client-table-shell-simple .mardo-table th {
  background: color-mix(in srgb, var(--mardo-surface-elevated), transparent 14%);
  font-size: 0.68rem;
}

.mardo-client-table-shell-simple .mardo-table tbody tr:hover {
  background: color-mix(in srgb, var(--mardo-primary-soft), transparent 35%);
}

.mardo-client-table-shell-simple .mardo-badge {
  min-height: 22px;
  padding: 4px 8px;
  font-size: 0.7rem;
}

.mardo-client-table {
  width: 100%;
  border-collapse: collapse;
}

.mardo-client-table th,
.mardo-client-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--mardo-border);
  text-align: left;
  vertical-align: middle;
}

.mardo-client-table th {
  color: var(--mardo-text-muted);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mardo-client-table tbody tr {
  transition: background var(--mardo-transition), box-shadow var(--mardo-transition);
}

.mardo-client-table tbody tr:hover {
  background: color-mix(in srgb, var(--mardo-primary-soft), transparent 10%);
}

.mardo-client-table tbody tr.is-highlighted {
  background: color-mix(in srgb, var(--mardo-primary-soft), transparent 36%);
  box-shadow: inset 3px 0 0 var(--mardo-primary);
}

.mardo-client-person {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mardo-client-table-shell-simple .mardo-client-person {
  gap: 8px;
}

.mardo-client-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  font-weight: 760;
}

.mardo-client-table-shell-simple .mardo-client-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.mardo-client-avatar-blue {
  background: rgba(66, 133, 244, 0.14);
  color: #3b82f6;
}

.mardo-client-avatar-amber {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.mardo-client-avatar-slate {
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
}

.mardo-client-avatar-rose {
  background: rgba(244, 114, 182, 0.16);
  color: #e11d48;
}

.mardo-client-person strong,
.mardo-client-stack strong {
  display: block;
  color: var(--mardo-text);
  font-size: 1rem;
}

.mardo-client-table-shell-simple .mardo-client-person strong {
  font-size: 0.84rem;
}

.mardo-client-person small,
.mardo-client-stack small,
.mardo-client-table-footer {
  color: var(--mardo-text-soft);
  font-size: 0.84rem;
}

.mardo-client-table-shell-simple .mardo-client-person small {
  font-size: 0.7rem;
}

.mardo-client-stack {
  display: grid;
  gap: 4px;
}

.mardo-client-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 700;
}

.mardo-client-status-success {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.mardo-client-status-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.mardo-client-status-neutral {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.mardo-client-status-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.mardo-client-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.mardo-client-dot.is-success {
  color: var(--mardo-success);
}

.mardo-client-note-success {
  color: #16a34a;
}

.mardo-client-note-warning {
  color: #d97706;
}

.mardo-client-note-neutral {
  color: var(--mardo-text-soft);
}

.mardo-client-note-danger {
  color: #dc2626;
}

.mardo-client-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.mardo-client-action-button {
  display: inline-grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  padding: 0;
  line-height: 0;
}

.mardo-client-action-button .mardo-icon {
  display: grid;
  width: 13px;
  height: 13px;
  margin: 0;
  place-items: center;
}

.mardo-client-icon-button {
  width: 42px;
  min-width: 42px;
  justify-content: center;
  padding: 0;
}

.mardo-client-table-actions-head {
  text-align: right;
}

.mardo-client-table-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--mardo-border);
  padding: 9px 12px;
  font-size: 0.68rem;
}

.mardo-client-table-footer .mardo-client-pill,
.mardo-client-table-footer .mardo-client-page-button {
  min-height: 26px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 0.66rem;
}

.mardo-client-table-footer .mardo-client-page-button {
  min-width: 26px;
  border-color: transparent;
  background: var(--mardo-primary);
  color: #ffffff;
}

.mardo-demo-app .mardo-heading {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 690;
  line-height: 1.06;
}

.mardo-demo-app .mardo-kicker {
  margin-bottom: 10px;
}

.mardo-demo-app .mardo-section {
  margin-top: 20px;
}

.mardo-control-glyph,
.mardo-date-glyph {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.16);
}

.mardo-control-glyph::before,
.mardo-control-glyph::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--mardo-text-soft);
  border-bottom: 2px solid var(--mardo-text-soft);
}

.mardo-control-glyph::before {
  top: 7px;
  transform: rotate(225deg);
}

.mardo-control-glyph::after {
  bottom: 7px;
  transform: rotate(45deg);
}

.mardo-date-glyph::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid var(--mardo-text-soft);
  border-radius: 5px;
  box-shadow: inset 0 4px 0 rgba(120, 120, 128, 0.22);
}

.mardo-select-menu,
.mardo-date-popover {
  display: none;
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  border: 1px solid var(--mardo-border);
  border-radius: 18px;
  background: var(--mardo-menu);
  box-shadow: var(--mardo-shadow-lg);
  backdrop-filter: var(--mardo-blur);
  -webkit-backdrop-filter: var(--mardo-blur);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity var(--mardo-transition),
    transform var(--mardo-transition),
    visibility var(--mardo-transition);
  visibility: hidden;
}

.mardo-select-control.is-above .mardo-select-menu,
.mardo-date-control.is-above .mardo-date-popover {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom center;
}

.mardo-select-control.is-end-aligned .mardo-select-menu,
.mardo-date-control.is-end-aligned .mardo-date-popover {
  left: auto;
  right: 0;
}

.mardo-select-menu {
  box-sizing: border-box;
  width: auto;
  width: -webkit-max-content;
  width: max-content;
  min-width: 100%;
  max-width: 360px;
  max-width: calc(100vw - 32px);
  max-width: min(360px, calc(100vw - 32px));
  gap: 4px;
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 7px;
}

.mardo-select-control.is-open .mardo-select-menu {
  display: grid;
}

.mardo-date-control.is-open .mardo-date-popover {
  display: block;
}

.mardo-select-control.is-open .mardo-select-menu,
.mardo-date-control.is-open .mardo-date-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.mardo-select-option {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  padding: 9px 36px 9px 12px;
  background: transparent;
  color: var(--mardo-text);
  cursor: pointer;
  font-weight: 650;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background var(--mardo-transition), color var(--mardo-transition), transform var(--mardo-transition);
}

.mardo-select-option:hover,
.mardo-select-option:focus,
.mardo-select-option.is-focused {
  background: rgba(120, 120, 128, 0.14);
  outline: 0;
}

.mardo-select-option:active {
  transform: scale(0.985);
}

.mardo-select-option.is-selected {
  background: var(--mardo-primary);
  color: #ffffff;
}

.mardo-select-option.is-selected::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 7px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.mardo-date-popover {
  width: 318px;
  max-width: calc(100vw - 32px);
  width: min(318px, calc(100vw - 32px));
  padding: 12px;
}

.mardo-date-control.is-open .mardo-date-popover,
.mardo-date-popover.is-mardo-date-portal-open {
  display: block;
  position: fixed !important;
  top: var(--mardo-date-popover-top, 12px) !important;
  right: auto !important;
  bottom: auto !important;
  left: var(--mardo-date-popover-left, 12px) !important;
  z-index: 26000 !important;
  width: var(--mardo-date-popover-width, min(318px, calc(100vw - 24px))) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: min(var(--mardo-date-popover-max-height, calc(100svh - 24px)), calc(100svh - 24px)) !important;
  opacity: 1;
  overflow: auto !important;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

@supports not (height: 100svh) {
  .mardo-date-control.is-open .mardo-date-popover,
  .mardo-date-popover.is-mardo-date-portal-open {
    max-height: min(var(--mardo-date-popover-max-height, calc(100vh - 24px)), calc(100vh - 24px)) !important;
  }
}

.mardo-date-titlebar {
  display: flex;
  min-width: 0;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.mardo-date-title-trigger {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(120, 120, 128, 0.12);
  color: var(--mardo-text);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 760;
  text-transform: capitalize;
  transition: background var(--mardo-transition), color var(--mardo-transition), transform var(--mardo-transition);
}

.mardo-date-title-trigger:hover,
.mardo-date-title-trigger:focus,
.mardo-date-title-trigger.is-active {
  background: var(--mardo-primary-soft);
  color: var(--mardo-primary-strong);
  outline: 0;
}

.mardo-date-title-trigger:active {
  transform: scale(0.985);
}

.mardo-action-icon svg {
  width: 18px;
  height: 18px;
}

.mardo-action-danger {
  color: var(--mardo-danger);
}

.mardo-action-danger:hover {
  background: var(--mardo-danger-soft);
}

.mardo-date-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.mardo-date-nav {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.14);
  color: var(--mardo-text);
  cursor: pointer;
}

.mardo-date-nav:hover {
  background: rgba(120, 120, 128, 0.24);
}

.mardo-date-nav::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.mardo-date-nav[data-mardo-date-prev]::before {
  transform: rotate(45deg);
}

.mardo-date-nav[data-mardo-date-next]::before {
  transform: rotate(225deg);
}

.mardo-date-weekdays,
.mardo-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mardo-date-panel {
  display: none;
}

.mardo-date-panel.is-active {
  display: block;
}

.mardo-date-weekdays {
  margin-bottom: 5px;
  color: var(--mardo-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.mardo-date-day,
.mardo-date-day-empty {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
}

.mardo-date-day {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mardo-text);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 680;
  transition: background var(--mardo-transition), color var(--mardo-transition), transform var(--mardo-transition);
}

.mardo-date-day:hover,
.mardo-date-day:focus {
  background: rgba(120, 120, 128, 0.16);
  outline: 0;
}

.mardo-date-day:active {
  transform: scale(0.94);
}

.mardo-date-day.is-today {
  color: var(--mardo-primary-strong);
}

.mardo-date-day.is-selected {
  background: var(--mardo-primary);
  color: #ffffff;
}

.mardo-date-months-grid,
.mardo-date-years-grid {
  display: grid;
  gap: 6px;
}

.mardo-date-months-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mardo-date-years-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mardo-date-choice {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 8px 10px;
  background: transparent;
  color: var(--mardo-text);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
  transition: background var(--mardo-transition), color var(--mardo-transition), transform var(--mardo-transition);
}

.mardo-date-choice:hover,
.mardo-date-choice:focus,
.mardo-date-choice.is-focused {
  background: rgba(120, 120, 128, 0.14);
  outline: 0;
}

.mardo-date-choice:active {
  transform: scale(0.985);
}

.mardo-date-choice.is-selected {
  background: var(--mardo-primary);
  color: #ffffff;
}

.mardo-date-choice.is-current {
  color: var(--mardo-primary-strong);
}

.mardo-switch-field {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  color: var(--mardo-text);
  font-weight: 650;
}

.mardo-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.mardo-switch-track {
  position: relative;
  width: 52px;
  height: 32px;
  border: 1px solid var(--mardo-border);
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.28);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14);
  transition: background var(--mardo-transition), border-color var(--mardo-transition);
}

.mardo-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
  transition: transform var(--mardo-transition), background var(--mardo-transition);
}

.mardo-switch-input:checked + .mardo-switch-track {
  border-color: var(--mardo-success);
  background: var(--mardo-success);
}

.mardo-switch-input:checked + .mardo-switch-track::after {
  transform: translateX(20px);
}

.mardo-switch-input:focus-visible + .mardo-switch-track {
  box-shadow: var(--mardo-ring);
}

.mardo-switch-input:disabled + .mardo-switch-track,
.mardo-switch-input:disabled ~ .mardo-switch-label {
  cursor: not-allowed;
  opacity: 0.5;
}

.mardo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 18, 20, 0.44);
  backdrop-filter: saturate(1.35) blur(18px);
  -webkit-backdrop-filter: saturate(1.35) blur(18px);
}

.mardo-modal-backdrop.is-open {
  display: flex;
  animation: mardo-fade-in 160ms ease both;
}

.mardo-modal {
  width: 560px;
  max-width: 100%;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  max-height: min(720px, calc(100vh - 40px));
  max-height: min(720px, calc(100dvh - 40px));
  overflow: hidden;
  border: 1px solid var(--mardo-border);
  border-radius: var(--mardo-radius-xl);
  background: var(--mardo-surface-elevated);
  box-shadow: var(--mardo-shadow-lg);
  color: var(--mardo-text);
  animation: mardo-scale-in 180ms ease both;
}

.mardo-modal-header,
.mardo-modal-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.mardo-modal-header {
  border-bottom: 1px solid var(--mardo-border);
}

.mardo-modal-footer {
  border-top: 1px solid var(--mardo-border);
}

.mardo-modal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.mardo-modal-footer .mardo-muted {
  min-width: 0;
}

.mardo-modal-footer .mardo-toolbar {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.mardo-modal-footer .mardo-button {
  min-width: 116px;
}

.mardo-modal-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 760;
}

.mardo-modal-description {
  margin: 5px 0 0;
  color: var(--mardo-text-soft);
  font-size: 0.92rem;
}

.mardo-modal-body {
  max-height: calc(100vh - 250px);
  max-height: calc(100dvh - 250px);
  overflow: auto;
  padding: 20px;
}

.mardo-modal-close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.18);
  color: var(--mardo-text-soft);
  cursor: pointer;
  transition: background var(--mardo-transition), color var(--mardo-transition);
}

.mardo-modal-close:hover {
  background: rgba(120, 120, 128, 0.28);
  color: var(--mardo-text);
}

.mardo-popup-backdrop {
  align-items: flex-end;
  padding: 22px;
}

.mardo-popup-backdrop-confirm {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mardo-popup {
  width: 760px;
  max-width: calc(100vw - 44px);
  width: min(760px, calc(100vw - 44px));
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--mardo-border), transparent 25%);
  border-radius: 18px;
  padding: 22px 24px 24px;
  background: color-mix(in srgb, var(--mardo-menu), transparent 4%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: var(--mardo-text);
  backdrop-filter: var(--mardo-blur);
  -webkit-backdrop-filter: var(--mardo-blur);
  animation: mardo-scale-in 180ms ease both;
}

.mardo-popup-confirm {
  width: 560px;
  max-width: calc(100vw - 48px);
  width: min(560px, calc(100vw - 48px));
  border-radius: 30px;
  padding: 34px 30px 28px;
}

.mardo-popup-icon {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  margin: -6px 0 16px;
}

.mardo-popup-icon svg,
.mardo-popup-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.mardo-popup-title,
.mardo-popup-message {
  margin: 0;
}

.mardo-popup-title {
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.25;
}

.mardo-popup-confirm .mardo-popup-title {
  max-width: 480px;
  font-size: 1.34rem;
  font-weight: 820;
  line-height: 1.16;
  letter-spacing: 0;
}

.mardo-popup-message {
  color: var(--mardo-text);
  font-size: 1.05rem;
  line-height: 1.38;
}

.mardo-popup-confirm .mardo-popup-message {
  margin-top: 18px;
  font-size: 1.14rem;
  line-height: 1.3;
}

.mardo-popup-title + .mardo-popup-message {
  margin-top: 8px;
}

.mardo-popup-confirm .mardo-popup-title + .mardo-popup-message {
  margin-top: 18px;
}

.mardo-popup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.mardo-popup-confirm .mardo-popup-actions {
  gap: 16px;
  margin-top: 28px;
}

.mardo-popup-button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background var(--mardo-transition),
    color var(--mardo-transition),
    transform var(--mardo-transition),
    opacity var(--mardo-transition);
}

.mardo-popup-confirm .mardo-popup-button {
  min-height: 50px;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 700;
}

.mardo-popup-button:hover {
  transform: translateY(-1px);
}

.mardo-popup-button:active {
  transform: scale(0.985);
}

.mardo-popup-button:focus-visible {
  outline: 0;
  box-shadow: var(--mardo-ring);
}

.mardo-popup-button-primary {
  background: #0a84ff;
  color: #ffffff;
}

.mardo-popup-button-secondary {
  background: rgba(120, 120, 128, 0.2);
  color: var(--mardo-text);
}

.mardo-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--mardo-border);
  border-radius: var(--mardo-radius-lg);
  background: var(--mardo-surface-solid);
  box-shadow: var(--mardo-shadow-sm);
}

.mardo-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--mardo-text);
}

.mardo-table th,
.mardo-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mardo-border);
  text-align: left;
  vertical-align: middle;
}

.mardo-table th {
  background: color-mix(in srgb, var(--mardo-surface-elevated), transparent 8%);
  color: var(--mardo-text-soft);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mardo-table tr:last-child td {
  border-bottom: 0;
}

.mardo-table tbody tr {
  transition: background var(--mardo-transition);
}

.mardo-table tbody tr:hover {
  background: var(--mardo-primary-soft);
}

.mardo-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mardo-table-actions-heading,
.mardo-table-cell-right {
  text-align: right;
}

.mardo-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.mardo-badge-success {
  background: var(--mardo-success-soft);
  color: var(--mardo-success);
}

.mardo-badge-error,
.mardo-badge-danger {
  background: var(--mardo-danger-soft);
  color: var(--mardo-danger);
}

.mardo-badge-warning {
  background: var(--mardo-warning-soft);
  color: var(--mardo-warning);
}

.mardo-badge-info {
  background: var(--mardo-info-soft);
  color: var(--mardo-info);
}

.mardo-badge-neutral {
  border-color: var(--mardo-border);
  background: rgba(120, 120, 128, 0.12);
  color: var(--mardo-text-soft);
}

.mardo-empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  color: var(--mardo-text-soft);
  text-align: center;
}

.mardo-empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--mardo-text);
  font-size: 1rem;
}

.mardo-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
  display: flex;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mardo-border);
  border-radius: var(--mardo-radius-xl);
  background: var(--mardo-surface);
  box-shadow: var(--mardo-shadow-md);
  backdrop-filter: var(--mardo-blur);
  -webkit-backdrop-filter: var(--mardo-blur);
}

.mardo-sidebar-header,
.mardo-sidebar-user {
  flex: 0 0 auto;
  padding: 18px;
}

.mardo-sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mardo-sidebar-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(120, 120, 128, 0.14);
  color: #ffffff;
  font-weight: 800;
}

.mardo-sidebar-mark svg,
.mardo-sidebar-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.mardo-sidebar-mark.has-brand-logo {
  background: transparent;
  color: inherit;
}

.mardo-sidebar-mark.has-brand-logo img,
.mardo-sidebar-app-image .mardo-brand-logo-image {
  object-fit: contain;
}

.mardo-sidebar-name {
  margin: 0;
  color: var(--mardo-text);
  font-size: 0.92rem;
  font-weight: 760;
}

.mardo-sidebar-meta {
  margin: 2px 0 0;
  color: var(--mardo-text-muted);
  font-size: 0.82rem;
}

.mardo-sidebar-shortcuts {
  display: grid;
  gap: 12px;
}

.mardo-sidebar-shortcut {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  min-width: 0;
  min-height: 64px;
  gap: 12px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--mardo-border), transparent 18%);
  border-radius: 16px;
  padding: 12px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 8%);
  color: var(--mardo-text);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition:
    background var(--mardo-transition),
    border-color var(--mardo-transition),
    box-shadow var(--mardo-transition),
    color var(--mardo-transition),
    transform var(--mardo-transition);
}

.mardo-sidebar-shortcut:hover {
  border-color: var(--mardo-border-strong);
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 0%);
  color: var(--mardo-text);
  transform: translateY(-1px);
}

.mardo-sidebar-shortcut-image {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(120, 120, 128, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.mardo-sidebar-shortcut-image img,
.mardo-sidebar-shortcut-image svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mardo-sidebar-shortcut-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: left;
}

.mardo-sidebar-shortcut-copy strong,
.mardo-sidebar-shortcut-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mardo-sidebar-shortcut-copy strong {
  color: var(--mardo-text);
  font-size: 0.88rem;
  font-weight: 760;
}

.mardo-sidebar-shortcut-copy small {
  color: var(--mardo-text-muted);
  font-size: 0.76rem;
}

.mardo-sidebar-shortcut-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  color: var(--mardo-text-muted);
}

.mardo-sidebar-shortcut-chevron {
  justify-self: end;
  transform: rotate(-45deg);
}

.mardo-sidebar-nav {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 20px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 18px 14px;
  scrollbar-width: thin;
}

.mardo-sidebar-group {
  display: grid;
  gap: 8px;
}

.mardo-sidebar-group + .mardo-sidebar-group {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--mardo-border);
}

.mardo-sidebar-label {
  padding: 8px 10px 4px;
  color: var(--mardo-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mardo-sidebar-link {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--mardo-text-soft);
  font-size: 0.94rem;
  font-weight: 700;
  transition: background var(--mardo-transition), color var(--mardo-transition);
}

.mardo-sidebar-link-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  color: currentColor;
}

.mardo-sidebar-link-icon svg {
  width: 18px;
  height: 18px;
}

.mardo-sidebar-link-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mardo-sidebar-badge {
  display: inline-flex;
  min-width: 24px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0 7px;
  background: color-mix(in srgb, var(--mardo-primary-soft), var(--mardo-surface-solid) 26%);
  color: var(--mardo-primary-strong);
  font-size: 0.72rem;
  font-weight: 790;
}

.mardo-sidebar-link:hover {
  background: rgba(120, 120, 128, 0.12);
  color: var(--mardo-text);
}

.mardo-sidebar-link.is-active {
  background: var(--mardo-primary-soft);
  color: var(--mardo-primary-strong);
}

.mardo-sidebar-link.is-active .mardo-sidebar-link-icon {
  background: transparent;
}

.mardo-sidebar-user {
  display: flex;
  min-height: 64px;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  border-top: 0;
}

.mardo-sidebar-user > span:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.mardo-sidebar-user .mardo-sidebar-name,
.mardo-sidebar-user .mardo-sidebar-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mardo-sidebar-apps {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  padding: 0 18px 18px;
}

.mardo-sidebar-app-switcher {
  box-sizing: border-box;
  display: grid;
  width: calc(100% - 36px);
  max-width: calc(100% - 36px);
  min-width: 0;
  flex: 0 0 auto;
  gap: 2px;
  margin: 12px 18px 14px;
  border: 1px solid color-mix(in srgb, var(--mardo-border), transparent 20%);
  border-radius: 18px;
  padding: 8px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 7%);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.mardo-sidebar-app-summary {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  padding: 0 8px;
  color: var(--mardo-text-soft);
  font-size: 0.78rem;
  font-weight: 740;
  cursor: pointer;
  list-style: none;
}

.mardo-sidebar-app-summary > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mardo-sidebar-app-summary::-webkit-details-marker {
  display: none;
}

.mardo-sidebar-app-summary:hover {
  background: var(--mardo-sidebar-link-hover-demo);
  color: var(--mardo-text);
}

.mardo-sidebar-app-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--mardo-transition);
}

.mardo-sidebar-app-switcher[open] .mardo-sidebar-app-chevron {
  transform: rotate(225deg);
}

.mardo-sidebar-app-option {
  position: relative;
  box-sizing: border-box;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  min-height: 54px;
  border-radius: 13px;
  padding: 8px 8px 8px 10px;
  color: var(--mardo-text);
}

.mardo-sidebar-app-option:hover {
  background: var(--mardo-sidebar-link-hover-demo);
}

.mardo-sidebar-app-option.is-selected {
  background: var(--mardo-primary-soft);
}

.mardo-sidebar-app-dot {
  position: absolute;
  left: -8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mardo-primary);
  opacity: 0;
}

.mardo-sidebar-app-option.is-selected .mardo-sidebar-app-dot {
  opacity: 1;
}

.mardo-sidebar-app-image {
  display: block;
  width: 34px;
  min-width: 0;
  height: 34px;
  max-width: 34px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(120, 120, 128, 0.14);
}

.mardo-sidebar-app-image svg,
.mardo-sidebar-app-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.mardo-sidebar-app-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.mardo-sidebar-app-copy strong,
.mardo-sidebar-app-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mardo-sidebar-app-copy strong {
  font-size: 0.9rem;
  font-weight: 760;
}

.mardo-sidebar-app-copy small {
  color: var(--mardo-text-muted);
  font-size: 0.78rem;
}

.mardo-sidebar-app-check {
  position: relative;
  min-width: 0;
  width: 14px;
  max-width: 14px;
  height: 14px;
  color: var(--mardo-primary);
  opacity: 0;
}

.mardo-sidebar-app-option.is-selected .mardo-sidebar-app-check {
  opacity: 1;
}

.mardo-sidebar-app-check::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.mardo-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: var(--mardo-purple-soft);
  color: var(--mardo-purple);
  font-weight: 800;
}

.mardo-sidebar-toggle {
  display: none;
}

.mardo-toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  width: 390px;
  max-width: calc(100vw - 36px);
  width: min(390px, calc(100vw - 36px));
  gap: 12px;
  pointer-events: none;
}

.mardo-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--mardo-border);
  border-radius: var(--mardo-radius-lg);
  padding: 14px;
  background: var(--mardo-surface-elevated);
  box-shadow: var(--mardo-shadow-md);
  color: var(--mardo-text);
  pointer-events: auto;
  animation: mardo-toast-in 180ms ease both;
}

.mardo-toast.is-leaving {
  animation: mardo-toast-out 160ms ease both;
}

.mardo-toast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.mardo-toast-success .mardo-toast-icon {
  background: var(--mardo-success-soft);
  color: var(--mardo-success);
}

.mardo-toast-error .mardo-toast-icon {
  background: var(--mardo-danger-soft);
  color: var(--mardo-danger);
}

.mardo-toast-warning .mardo-toast-icon {
  background: var(--mardo-warning-soft);
  color: var(--mardo-warning);
}

.mardo-toast-info .mardo-toast-icon {
  background: var(--mardo-info-soft);
  color: var(--mardo-info);
}

.mardo-toast-title {
  display: block;
  margin: 0 0 6px;
  font-weight: 760;
  line-height: 1.2;
}

.mardo-toast-message {
  display: block;
  margin: 0;
  color: var(--mardo-text-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.mardo-toast-close {
  border: 0;
  background: transparent;
  color: var(--mardo-text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.mardo-theme-toggle {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: 1px solid var(--mardo-border);
  border-radius: 999px;
  padding: 4px;
  background: var(--mardo-surface);
  box-shadow: var(--mardo-shadow-sm);
}

.mardo-theme-option {
  min-width: 74px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--mardo-text-soft);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
  transition: background var(--mardo-transition), color var(--mardo-transition);
}

.mardo-theme-option.is-active {
  background: var(--mardo-surface-solid);
  color: var(--mardo-text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.mardo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mardo-action-bar {
  --mardo-action-size: 58px;
  --mardo-action-icon-size: 24px;
  display: flex;
  max-width: 100%;
  gap: 14px;
  align-items: center;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mardo-action-bar::-webkit-scrollbar,
.mardo-tabs::-webkit-scrollbar {
  display: none;
}

.mardo-action-bar-compact {
  --mardo-action-size: 52px;
  --mardo-action-icon-size: 24px;
  gap: 12px;
}

.mardo-action-group {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: var(--mardo-action-size);
  align-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--mardo-border), transparent 34%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 4%);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--mardo-blur);
  -webkit-backdrop-filter: var(--mardo-blur);
}

.mardo-action-button {
  display: inline-flex;
  width: var(--mardo-action-size);
  min-width: var(--mardo-action-size);
  height: var(--mardo-action-size);
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-left: 1px solid transparent;
  background: transparent;
  color: var(--mardo-text-soft);
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transition:
    background var(--mardo-transition),
    color var(--mardo-transition),
    transform var(--mardo-transition);
}

.mardo-action-button + .mardo-action-button {
  border-left-color: color-mix(in srgb, var(--mardo-border), transparent 35%);
}

.mardo-action-button:hover {
  background: rgba(120, 120, 128, 0.12);
  color: var(--mardo-text);
}

.mardo-action-button:active {
  transform: none;
}

.mardo-action-button:focus-visible {
  outline: 0;
  box-shadow: inset var(--mardo-ring);
}

.mardo-action-button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
}

.mardo-action-button-menu {
  width: calc(var(--mardo-action-size) + 28px);
  min-width: calc(var(--mardo-action-size) + 28px);
  padding: 0 16px;
}

.mardo-action-icon,
.mardo-action-trailing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.mardo-action-icon {
  width: var(--mardo-action-icon-size);
  height: var(--mardo-action-icon-size);
}

.mardo-action-trailing {
  width: 18px;
  height: 18px;
  color: var(--mardo-text-muted);
}

.mardo-action-icon svg {
  display: block;
  width: var(--mardo-action-icon-size);
  height: var(--mardo-action-icon-size);
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.mardo-action-trailing svg {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.mardo-action-icon svg *,
.mardo-action-trailing svg * {
  vector-effect: non-scaling-stroke;
}

.mardo-action-tone-warning .mardo-action-icon {
  color: #ff9f0a;
}

.mardo-tabs {
  display: flex;
  max-width: 100%;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mardo-tab {
  display: inline-flex;
  min-width: 118px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--mardo-border), transparent 32%);
  border-radius: 999px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--mardo-surface-elevated), transparent 4%);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  color: color-mix(in srgb, var(--mardo-text), transparent 40%);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 780;
  white-space: nowrap;
  transition:
    background var(--mardo-transition),
    border-color var(--mardo-transition),
    color var(--mardo-transition),
    box-shadow var(--mardo-transition),
    transform var(--mardo-transition);
}

.mardo-tab-icon-only {
  width: 118px;
  padding: 0;
}

.mardo-tab:hover {
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 0%);
  color: var(--mardo-text);
}

.mardo-tab:active {
  transform: scale(0.98);
}

.mardo-tab:focus-visible {
  outline: 0;
  box-shadow: var(--mardo-ring);
}

.mardo-tab.is-active {
  min-width: clamp(220px, 34vw, 360px);
  border-color: transparent;
  background: #4aa866;
  color: #ffffff;
  box-shadow:
    0 16px 32px rgba(48, 160, 92, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.mardo-tab-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mardo-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mardo-tab-icon svg {
  width: 100%;
  height: 100%;
}

.mardo-ios-showcase {
  display: grid;
  gap: 18px;
}

.mardo-ios-actions-panel {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--mardo-border);
  border-radius: 26px;
  padding: 18px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 4%);
  box-shadow: var(--mardo-shadow-sm);
}

.mardo-inbox-preview {
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--mardo-border);
  border-radius: 28px;
  padding: 18px;
  background: color-mix(in srgb, var(--mardo-surface-solid), transparent 2%);
  box-shadow: var(--mardo-shadow-sm);
}

.mardo-inbox-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.mardo-inbox-header h3,
.mardo-inbox-header p,
.mardo-inbox-callout p,
.mardo-inbox-message p,
.mardo-inbox-message small {
  margin: 0;
}

.mardo-inbox-header h3 {
  color: var(--mardo-text);
  font-size: 1.55rem;
  line-height: 1.05;
}

.mardo-inbox-header p {
  margin-top: 4px;
  color: var(--mardo-text-soft);
  font-size: 1rem;
}

.mardo-inbox-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-radius: 18px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--mardo-success-soft), var(--mardo-surface-solid) 50%);
  color: color-mix(in srgb, var(--mardo-success), var(--mardo-text) 40%);
}

.mardo-inbox-callout strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
}

.mardo-inbox-callout p {
  margin-top: 8px;
  color: currentColor;
  font-size: 1rem;
  line-height: 1.35;
}

.mardo-inbox-callout button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.mardo-inbox-callout button:hover {
  background: rgba(120, 120, 128, 0.14);
}

.mardo-inbox-callout button svg {
  width: 24px;
  height: 24px;
}

.mardo-inbox-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-top: 1px solid var(--mardo-border);
  padding: 20px 0 2px;
}

.mardo-inbox-unread {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--mardo-primary);
}

.mardo-inbox-message strong {
  display: block;
  color: var(--mardo-text);
  font-size: 1.05rem;
}

.mardo-inbox-message p {
  margin-top: 5px;
  color: var(--mardo-text);
}

.mardo-inbox-message small {
  display: block;
  margin-top: 6px;
  color: var(--mardo-text-muted);
  line-height: 1.35;
}

.mardo-inbox-message time {
  color: var(--mardo-text-soft);
  font-size: 0.95rem;
  white-space: nowrap;
}

.mardo-split {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

@supports not (background: color-mix(in srgb, #000000, #ffffff)) {
  .mardo-settings-list,
  .mardo-client-admin,
  .mardo-client-table-shell,
  .mardo-client-table-shell-simple .mardo-table th,
  .mardo-sidebar-shortcut,
  .mardo-sidebar-app-switcher,
  .mardo-action-group,
  .mardo-tab,
  .mardo-ios-actions-panel,
  .mardo-inbox-preview {
    background: var(--mardo-surface-solid);
  }

  .mardo-client-search,
  .mardo-client-pill,
  .mardo-client-icon-button,
  .mardo-client-page-button,
  .mardo-popup {
    background: var(--mardo-surface-elevated);
  }

  .mardo-card-form-reference {
    background: var(--mardo-surface-solid);
  }

  .mardo-sidebar-shortcut,
  .mardo-sidebar-app-switcher,
  .mardo-action-group,
  .mardo-tab,
  .mardo-popup {
    border: 1px solid var(--mardo-border);
  }

  .mardo-client-primary {
    background: linear-gradient(180deg, var(--mardo-primary), var(--mardo-primary-strong));
    box-shadow: 0 12px 28px rgba(0, 122, 255, 0.22);
  }

  .mardo-table th {
    background: var(--mardo-surface-elevated);
  }

  .mardo-client-table tbody tr:hover,
  .mardo-client-table-shell-simple .mardo-table tbody tr:hover,
  .mardo-client-table tbody tr.is-highlighted {
    background: var(--mardo-primary-soft);
  }

  .mardo-sidebar-shortcut:hover,
  .mardo-tab:hover {
    background: var(--mardo-surface-solid);
  }

  .mardo-sidebar-badge {
    background: var(--mardo-primary-soft);
  }

  .mardo-action-button,
  .mardo-action-trailing,
  .mardo-tab {
    color: var(--mardo-text-soft);
  }

  .mardo-action-button + .mardo-action-button {
    border-left-color: var(--mardo-border);
  }

  .mardo-tab.is-active {
    background: #4aa866;
    color: #ffffff;
  }

  .mardo-inbox-callout {
    background: var(--mardo-success-soft);
    color: var(--mardo-success);
  }
}

@keyframes mardo-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mardo-scale-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mardo-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mardo-toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@media (max-width: 980px) {
  .mardo-topbar-title-group {
    flex-basis: 270px;
  }

  .mardo-topbar-actions {
    max-width: 100%;
  }

  .mardo-mobile-menu-button {
    display: none !important;
  }

  body.mardo-sidebar-open {
    overflow: hidden;
  }

  .mardo-demo-layout {
    display: block;
  }

  .mardo-app-layout {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .mardo-demo-app .mardo-sidebar-pane {
    position: fixed;
    z-index: 76;
    top: 12px;
    left: 12px;
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-header {
    padding: 0;
  }

  .mardo-demo-app .mardo-sidebar-pane .mardo-split {
    display: block;
  }

  .mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-brand {
    display: none;
  }

  .mardo-demo-app .mardo-sidebar-pane.is-open {
    width: min(320px, calc(100vw - 24px));
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border: 1px solid var(--mardo-border);
    border-radius: 24px;
    background: var(--mardo-menu);
    box-shadow: var(--mardo-shadow-lg);
    backdrop-filter: var(--mardo-blur);
    -webkit-backdrop-filter: var(--mardo-blur);
  }

  .mardo-demo-app .mardo-sidebar-pane.is-open .mardo-sidebar-header {
    padding: 14px 14px 8px;
  }

  .mardo-demo-app .mardo-sidebar-pane.is-open .mardo-split {
    display: flex;
  }

  .mardo-demo-app .mardo-sidebar-pane.is-open .mardo-sidebar-brand {
    display: flex;
  }

  .mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-nav {
    max-height: none;
    overflow: visible;
    padding: 8px 14px 12px;
  }

  .mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-app-switcher {
    margin: 0 14px 12px;
  }

  .mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-user {
    padding: 14px;
  }

  .mardo-sidebar-pane {
    padding-top: 0;
  }

  .mardo-main-surface {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 30px;
  }

  .mardo-main-surface .mardo-topline {
    padding-left: 76px;
  }

  .mardo-client-admin-head,
  .mardo-client-table-footer {
    align-items: stretch;
  }

  .mardo-client-admin-tools {
    justify-content: flex-start;
  }

  .mardo-sidebar-toggle {
    display: inline-flex;
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 999px;
    box-shadow: var(--mardo-shadow-sm);
  }

  .mardo-demo-app .mardo-sidebar-pane.is-open .mardo-sidebar-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .mardo-sidebar[data-mardo-collapsible="true"] .mardo-sidebar-apps,
  .mardo-sidebar[data-mardo-collapsible="true"] .mardo-sidebar-app-switcher,
  .mardo-sidebar[data-mardo-collapsible="true"] .mardo-sidebar-nav,
  .mardo-sidebar[data-mardo-collapsible="true"] .mardo-sidebar-user {
    display: none;
  }

  .mardo-sidebar[data-mardo-collapsible="true"].is-open .mardo-sidebar-apps,
  .mardo-sidebar[data-mardo-collapsible="true"].is-open .mardo-sidebar-app-switcher {
    display: grid;
  }

  .mardo-sidebar[data-mardo-collapsible="true"].is-open .mardo-sidebar-nav {
    display: grid;
  }

  .mardo-sidebar[data-mardo-collapsible="true"].is-open .mardo-sidebar-user {
    display: flex;
  }
}

@media (max-width: 760px) {
  .mardo-mobile-menu-button {
    display: inline-grid !important;
  }
}

@media (max-width: 760px) {
  .mardo-topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .mardo-topbar-title-group,
  .mardo-topbar-actions {
    width: 100%;
  }

  .mardo-topbar-title-group {
    flex-basis: 100%;
  }

  .mardo-topbar-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 40px 40px 40px;
    gap: 8px;
    align-items: center;
    justify-content: stretch;
  }

  .mardo-topbar-title-copy .mardo-kicker,
  .mardo-topbar-title-copy .mardo-section-copy {
    display: none;
  }

  .mardo-topbar .mardo-heading {
    font-size: 1.5rem !important;
  }

  .mardo-topbar-branch {
    grid-column: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    flex: none;
  }

  .mardo-topbar-branch-button {
    width: 100%;
    min-width: 0;
    height: 40px;
  }

  .mardo-topbar-actions > .mardo-button-icon,
  .mardo-topbar-icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .mardo-topbar-notifications-menu,
  .mardo-topbar-tools-menu,
  .mardo-topbar-separator {
    display: none;
  }

  .mardo-topbar-popover,
  .mardo-topbar-popover-wide {
    width: min(360px, calc(100vw - 36px));
    max-height: min(440px, calc(100vh - 120px));
    max-height: min(440px, calc(100dvh - 120px));
    overflow-y: auto;
  }

  .mardo-topbar-back span:last-child {
    display: none;
  }

  .mardo-topbar-back {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
  }

  .mardo-shell {
    width: min(100% - 22px, 1180px);
    padding: 18px 0 40px;
  }

  .mardo-app-shell {
    width: 100%;
    padding: 0;
  }

  .mardo-demo-main {
    width: 100%;
    min-width: 0;
  }

  .mardo-grid,
  .mardo-form-grid {
    grid-template-columns: 1fr;
  }

  .mardo-col-3,
  .mardo-col-4,
  .mardo-col-6,
  .mardo-col-8,
  .mardo-col-12 {
    grid-column: span 1;
  }

  .mardo-card-body,
  .mardo-dashboard-card-body {
    padding: 18px;
  }

  .mardo-main-surface {
    border-radius: 26px;
  }

  .mardo-main-surface .mardo-topline {
    padding: 18px 18px 16px 76px;
    border-radius: 26px 26px 0 0;
  }

  .mardo-main-scroll {
    overflow-x: hidden;
    padding: 16px 18px 28px;
  }

  .mardo-client-admin {
    gap: 18px;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .mardo-client-admin-title {
    font-size: 1.42rem;
    line-height: 1.08;
  }

  .mardo-client-admin-copy {
    display: none;
  }

  .mardo-client-admin-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  .mardo-client-search {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    flex: 1 1 100%;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .mardo-client-tool-icon {
    width: 18px;
    height: 18px;
  }

  .mardo-client-tool-icon svg,
  .mardo-client-icon-button svg {
    width: 18px;
    height: 18px;
  }

  .mardo-client-admin-tools > .mardo-client-pill {
    min-height: 42px;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .mardo-client-admin-tools > .mardo-client-primary {
    width: 100%;
    min-height: 52px;
    flex: 1 1 100%;
    justify-content: center;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 760;
  }

  .mardo-client-table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .mardo-client-table {
    min-width: 920px;
  }

  .mardo-client-table-shell-simple .mardo-table-wrap {
    overflow: visible;
  }

  .mardo-client-table-shell-simple .mardo-table {
    display: block;
    min-width: 0;
    border-collapse: separate;
  }

  .mardo-client-table-shell-simple .mardo-table thead {
    display: none;
  }

  .mardo-client-table-shell-simple .mardo-table tbody {
    display: grid;
    gap: 12px;
  }

  .mardo-client-table-shell-simple .mardo-table tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(84px, auto);
    grid-template-rows: minmax(34px, auto) minmax(38px, auto) minmax(74px, auto);
    column-gap: 12px;
    overflow: hidden;
    border: 1px solid var(--mardo-border);
    border-radius: 18px;
    background: var(--mardo-surface-solid);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  }

  .mardo-client-table-shell-simple .mardo-table td {
    display: block;
    min-width: 0;
    border-bottom: 0;
    padding: 0;
    font-size: 0.95rem;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(1) {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 42px;
    align-items: center;
    align-self: center;
    justify-self: start;
    margin: 0 0 0 14px;
    border: 1px solid var(--mardo-border);
    border-radius: 9px;
    padding: 0 10px;
    background: rgba(120, 120, 128, 0.12);
    color: var(--mardo-text);
    font-weight: 760;
    white-space: nowrap;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    padding: 14px 0 12px;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    padding: 14px 14px 2px 0;
    color: var(--mardo-text-soft);
    font-size: 0.9rem;
    text-align: right;
    white-space: nowrap;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    padding: 2px 14px 12px 0;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(5) {
    display: grid;
    grid-column: 1 / 3;
    grid-row: 3;
    gap: 3px;
    align-content: center;
    border-top: 1px solid var(--mardo-border);
    padding: 12px 0 12px 14px;
    text-align: left;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(5)::before {
    content: attr(data-label);
    color: var(--mardo-text-soft);
    font-size: 0.8rem;
    font-weight: 650;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(6) {
    grid-column: 3;
    grid-row: 3;
    align-self: stretch;
    border-top: 1px solid var(--mardo-border);
    padding: 12px 14px 12px 0;
  }

  .mardo-client-table-shell-simple .mardo-table-cell-right {
    color: var(--mardo-text);
    font-size: 1.18rem;
    font-weight: 780;
  }

  .mardo-client-table-shell-simple .mardo-client-person {
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .mardo-client-table-shell-simple .mardo-client-person > span:last-child {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .mardo-client-table-shell-simple .mardo-client-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .mardo-client-table-shell-simple .mardo-client-person strong,
  .mardo-client-table-shell-simple .mardo-client-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mardo-client-table-shell-simple .mardo-client-person strong {
    font-size: 1rem;
    line-height: 1.12;
  }

  .mardo-client-table-shell-simple .mardo-client-person small {
    margin-top: 5px;
    font-size: 0.82rem;
  }

  .mardo-client-table-shell-simple .mardo-badge {
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .mardo-client-table-shell-simple .mardo-table-actions {
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .mardo-client-action-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 999px;
    background: rgba(120, 120, 128, 0.12);
  }

  .mardo-client-action-button .mardo-icon,
  .mardo-client-action-button .mardo-icon svg {
    width: 18px;
    height: 18px;
  }

  .mardo-client-table-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    border-top: 0;
    padding: 12px 6px 0;
    font-size: 0.82rem;
  }

  .mardo-client-table-footer .mardo-client-pagination {
    justify-self: center;
  }

  .mardo-client-table-footer > .mardo-client-pill {
    display: none;
  }

  .mardo-client-table-footer .mardo-client-page-button {
    min-width: 38px;
    min-height: 38px;
    border-radius: 11px;
    font-size: 0.92rem;
  }

  .mardo-table-wrap .mardo-empty-state {
    min-height: 112px;
    border: 1px solid var(--mardo-border);
    border-radius: 18px;
    background: var(--mardo-surface-solid);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    text-align: left;
  }

  .mardo-empty-state strong {
    font-size: 1rem;
  }

  .mardo-ios-actions-panel,
  .mardo-inbox-preview {
    border-radius: 22px;
    padding: 14px;
  }

  .mardo-action-bar {
    --mardo-action-size: 52px;
    --mardo-action-icon-size: 24px;
    gap: 10px;
  }

  .mardo-action-bar-compact {
    --mardo-action-size: 46px;
    --mardo-action-icon-size: 22px;
  }

  .mardo-inbox-header {
    flex-direction: column;
  }

  .mardo-tab {
    min-width: 74px;
    min-height: 52px;
    gap: 8px;
    padding: 0;
    font-size: 0.92rem;
  }

  .mardo-tab-label {
    display: none;
  }

  .mardo-tab-icon-only {
    width: 74px;
    padding: 0;
  }

  .mardo-tab.is-active {
    width: 74px;
    min-width: 0;
    flex: 0 0 auto;
  }

  .mardo-tab-icon {
    width: 22px;
    height: 22px;
  }

  .mardo-inbox-callout {
    border-radius: 16px;
    padding: 16px;
  }

  .mardo-modal-backdrop {
    align-items: flex-end;
    padding: 10px 10px 42px;
    padding: 10px 10px calc(42px + env(safe-area-inset-bottom)) 10px;
  }

  .mardo-modal {
    border-radius: 24px;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    max-height: calc(100dvh - 42px - env(safe-area-inset-bottom));
  }

  .mardo-modal-body {
    max-height: calc(100vh - 280px);
    max-height: calc(100dvh - 280px);
    max-height: calc(100dvh - 250px - env(safe-area-inset-bottom));
  }

  .mardo-modal-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .mardo-modal-footer .mardo-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .mardo-modal-footer .mardo-button {
    min-width: 0;
    width: 100%;
  }

  .mardo-popup-backdrop {
    padding: 10px 10px 42px;
    padding: 10px 10px calc(42px + env(safe-area-inset-bottom)) 10px;
  }

  .mardo-popup {
    width: 100%;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    max-height: calc(100dvh - 42px - env(safe-area-inset-bottom));
    overflow: auto;
    border-radius: 18px;
    padding: 18px;
  }

  .mardo-popup-confirm {
    border-radius: 28px;
    padding: 26px 20px 20px;
  }

  .mardo-popup-icon {
    width: 86px;
    height: 86px;
    margin-top: -4px;
  }

  .mardo-popup-confirm .mardo-popup-title {
    font-size: 1.22rem;
  }

  .mardo-popup-confirm .mardo-popup-message {
    font-size: 1.02rem;
  }

  .mardo-popup-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mardo-theme-toggle {
    width: 100%;
  }

  .mardo-theme-option {
    flex: 1;
  }

  .mardo-field-inline {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mardo-field-inline .mardo-input,
  .mardo-field-inline .mardo-select-trigger,
  .mardo-field-inline .mardo-date-trigger,
  .mardo-field-inline .mardo-select-control,
  .mardo-field-inline .mardo-date-control,
  .mardo-field-inline .mardo-textarea {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .mardo-client-admin-tools > .mardo-client-pill {
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .mardo-client-table-shell-simple .mardo-table tr {
    grid-template-columns: auto minmax(0, 1fr) minmax(76px, auto);
    column-gap: 10px;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(1) {
    min-height: 38px;
    margin-left: 12px;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(3) {
    padding: 12px 12px 2px 0;
    font-size: 0.82rem;
  }

  .mardo-client-table-shell-simple .mardo-table td:nth-child(4) {
    padding: 2px 12px 12px 0;
  }

  .mardo-client-table-shell-simple .mardo-client-person {
    gap: 10px;
  }

  .mardo-client-table-shell-simple .mardo-client-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.92rem;
  }

  .mardo-client-table-shell-simple .mardo-client-person strong {
    font-size: 0.94rem;
  }

  .mardo-client-table-shell-simple .mardo-client-person small {
    font-size: 0.76rem;
  }

  .mardo-client-action-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .mardo-modal-footer .mardo-toolbar {
    grid-template-columns: 1fr;
  }
}
/* Locked topbar contract: modules should not restyle this surface. */
html body .mardo-main-surface > header.mardo-topbar.mardo-topline,
html body header.mardo-topbar.mardo-topline {
  position: relative !important;
  z-index: 110 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 22px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--mardo-text) !important;
  font-family: var(--mardo-font) !important;
  letter-spacing: 0 !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-title-group,
html body header.mardo-topbar.mardo-topline .mardo-topbar-title-group,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-actions,
html body header.mardo-topbar.mardo-topline .mardo-topbar-actions {
  display: flex !important;
  min-width: 0 !important;
  align-items: center !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-title-group,
html body header.mardo-topbar.mardo-topline .mardo-topbar-title-group {
  flex: 1 1 320px !important;
  gap: 12px !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-title-copy,
html body header.mardo-topbar.mardo-topline .mardo-topbar-title-copy {
  min-width: 0 !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-heading,
html body header.mardo-topbar.mardo-topline .mardo-heading {
  margin: 0 !important;
  color: var(--mardo-text) !important;
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-kicker,
html body header.mardo-topbar.mardo-topline .mardo-kicker {
  display: inline-flex !important;
  margin: 0 0 8px !important;
  color: var(--mardo-primary) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-section-copy,
html body header.mardo-topbar.mardo-topline .mardo-section-copy {
  margin: 5px 0 0 !important;
  color: var(--mardo-text-soft) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-actions,
html body header.mardo-topbar.mardo-topline .mardo-topbar-actions {
  flex: 0 1 auto !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 7px !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-mobile-menu-button,
html body header.mardo-topbar.mardo-topline .mardo-mobile-menu-button {
    display: none !important;
  }

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-icon-button,
html body header.mardo-topbar.mardo-topline .mardo-topbar-icon-button,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch-button,
html body header.mardo-topbar.mardo-topline .mardo-topbar-branch-button {
  border: 1px solid var(--mardo-border) !important;
  background: var(--mardo-control) !important;
  color: var(--mardo-text) !important;
  box-shadow: var(--mardo-control-shadow) !important;
  cursor: pointer !important;
  font-family: var(--mardo-font) !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-icon-button,
html body header.mardo-topbar.mardo-topline .mardo-topbar-icon-button {
  position: relative !important;
  display: inline-grid !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  place-items: center !important;
  border-radius: 12px !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-button-icon,
html body header.mardo-topbar.mardo-topline .mardo-topbar-button-icon,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch-icon,
html body header.mardo-topbar.mardo-topline .mardo-topbar-branch-icon,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-chevron,
html body header.mardo-topbar.mardo-topline .mardo-topbar-chevron,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-option-icon,
html body header.mardo-topbar.mardo-topline .mardo-topbar-option-icon,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-option-check,
html body header.mardo-topbar.mardo-topline .mardo-topbar-option-check,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-tool-icon,
html body header.mardo-topbar.mardo-topline .mardo-topbar-tool-icon,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-tool-arrow,
html body header.mardo-topbar.mardo-topline .mardo-topbar-tool-arrow {
  display: grid !important;
  place-items: center !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-button-icon,
html body header.mardo-topbar.mardo-topline .mardo-topbar-button-icon {
  width: 18px !important;
  height: 18px !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline svg,
html body header.mardo-topbar.mardo-topline svg {
  width: 100% !important;
  height: 100% !important;
  shape-rendering: geometricPrecision !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-icon-button:hover,
html body header.mardo-topbar.mardo-topline .mardo-topbar-icon-button:hover,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-icon-button[aria-expanded="true"],
html body header.mardo-topbar.mardo-topline .mardo-topbar-icon-button[aria-expanded="true"],
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch-button:hover,
html body header.mardo-topbar.mardo-topline .mardo-topbar-branch-button:hover,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch-button[aria-expanded="true"],
html body header.mardo-topbar.mardo-topline .mardo-topbar-branch-button[aria-expanded="true"] {
  border-color: var(--mardo-border-strong) !important;
  background: var(--mardo-control-hover) !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-menu,
html body header.mardo-topbar.mardo-topline .mardo-topbar-menu {
  position: relative !important;
  min-width: 0 !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch,
html body header.mardo-topbar.mardo-topline .mardo-topbar-branch {
  max-width: min(340px, 32vw) !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch-button,
html body header.mardo-topbar.mardo-topline .mardo-topbar-branch-button {
  display: grid !important;
  width: 100% !important;
  min-width: 185px !important;
  height: 38px !important;
  grid-template-columns: 20px minmax(0, 1fr) 16px !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  text-align: left !important;
  white-space: nowrap !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch-button > strong,
html body header.mardo-topbar.mardo-topline .mardo-topbar-branch-button > strong {
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--mardo-text) !important;
  font-size: 0.79rem !important;
  font-weight: 740 !important;
  text-overflow: ellipsis !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch-icon,
html body header.mardo-topbar.mardo-topline .mardo-topbar-branch-icon {
  width: 18px !important;
  height: 18px !important;
  color: var(--mardo-text-soft) !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-chevron,
html body header.mardo-topbar.mardo-topline .mardo-topbar-chevron {
  width: 14px !important;
  height: 14px !important;
  color: var(--mardo-text-muted) !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-separator,
html body header.mardo-topbar.mardo-topline .mardo-topbar-separator {
  width: 1px !important;
  height: 28px !important;
  margin: 0 3px !important;
  background: var(--mardo-border) !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-popover,
html body header.mardo-topbar.mardo-topline .mardo-topbar-popover {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  z-index: 250 !important;
  display: none !important;
  width: 250px !important;
  max-width: calc(100vw - 24px) !important;
  padding: 7px !important;
  border: 1px solid var(--mardo-border) !important;
  border-radius: 16px !important;
  background: var(--mardo-menu) !important;
  box-shadow: var(--mardo-shadow-lg) !important;
  color: var(--mardo-text) !important;
  backdrop-filter: var(--mardo-blur) !important;
  -webkit-backdrop-filter: var(--mardo-blur) !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-popover-wide,
html body header.mardo-topbar.mardo-topline .mardo-topbar-popover-wide {
  width: 360px !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-popover.is-open,
html body header.mardo-topbar.mardo-topline .mardo-topbar-popover.is-open {
  display: block !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-option,
html body header.mardo-topbar.mardo-topline .mardo-topbar-option {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 30px minmax(0, 1fr) 18px !important;
  gap: 9px !important;
  align-items: center !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--mardo-text) !important;
  text-align: left !important;
  cursor: pointer !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-option:hover,
html body header.mardo-topbar.mardo-topline .mardo-topbar-option:hover,
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-option.is-active,
html body header.mardo-topbar.mardo-topline .mardo-topbar-option.is-active {
  background: var(--mardo-surface-elevated) !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-option strong,
html body header.mardo-topbar.mardo-topline .mardo-topbar-option strong {
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--mardo-text) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline,
  html body header.mardo-topbar.mardo-topline {
    align-items: flex-start !important;
    gap: 14px !important;
    padding-left: 10px !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-title-group,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-title-group,
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-actions,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-actions {
    width: 100% !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-title-group,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-title-group {
    flex-basis: 100% !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-actions,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px 40px 40px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: stretch !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-title-copy .mardo-kicker,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-title-copy .mardo-kicker,
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-title-copy .mardo-section-copy,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-title-copy .mardo-section-copy {
    display: none !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-heading,
  html body header.mardo-topbar.mardo-topline .mardo-heading {
    font-size: 1.5rem !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-mobile-menu-button,
  html body header.mardo-topbar.mardo-topline .mardo-mobile-menu-button {
    display: inline-grid !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    place-items: center !important;
  }

  .mardo-demo-app .mardo-sidebar-pane:not(.is-open) {
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
  }

  .mardo-demo-app .mardo-sidebar-pane:not(.is-open) .mardo-sidebar-toggle {
    display: none !important;
  }

  .mardo-demo-app .mardo-sidebar-pane.is-open {
    pointer-events: auto !important;
  }

  .mardo-demo-app .mardo-sidebar-pane.is-open .mardo-sidebar-toggle {
    display: inline-flex !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-branch {
    grid-column: 1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-branch-button,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-branch-button {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-icon-button,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-icon-button,
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-actions > .mardo-button-icon,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-actions > .mardo-button-icon {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-notifications-menu,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-notifications-menu,
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-tools-menu,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-tools-menu,
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-separator,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-separator {
    display: none !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-popover,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-popover,
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-popover-wide,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-popover-wide {
    width: min(360px, calc(100vw - 36px)) !important;
    max-height: min(440px, calc(100dvh - 120px)) !important;
    overflow-y: auto !important;
  }
}
/* Locked app surface contract: modules should not resize the main container. */
html body .mardo-app-shell {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 12px 12px 0 !important;
}

html body .mardo-app-layout {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
  min-height: calc(100vh - 22px) !important;
  min-height: calc(100dvh - 22px) !important;
  grid-template-columns: var(--mardo-app-sidebar-width, 252px) minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  overflow-x: hidden !important;
}

html body .mardo-demo-main {
  width: 100% !important;
  min-width: 0 !important;
}

html body .mardo-main-surface {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: calc(100vh - 22px) !important;
  min-height: calc(100dvh - 22px) !important;
  margin: 0 !important;
  flex-direction: column !important;
  border: 1px solid var(--mardo-main-surface-border) !important;
  border-radius: 34px !important;
  background: var(--mardo-main-surface-bg) !important;
  box-shadow: var(--mardo-main-surface-shadow) !important;
}

html body .mardo-main-surface > .mardo-topline {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 22px 30px 20px !important;
  border-bottom: 1px solid var(--mardo-main-surface-border) !important;
  border-radius: 34px 34px 0 0 !important;
  background: var(--mardo-main-surface-header-bg) !important;
}

html body .mardo-main-scroll {
  min-width: 0 !important;
}

html body .mardo-sidebar-pane {
  width: var(--mardo-app-sidebar-width, 252px) !important;
  min-width: var(--mardo-app-sidebar-width, 252px) !important;
  max-width: var(--mardo-app-sidebar-width, 252px) !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

@media (max-width: 900px) {
  html body .mardo-app-shell {
    padding: 0 !important;
  }

  html body .mardo-app-layout {
    display: block !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  html body .mardo-main-surface {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--mardo-bg) !important;
    box-shadow: none !important;
  }

  html body .mardo-main-surface > .mardo-topline {
    padding: calc(18px + env(safe-area-inset-top)) 18px 16px !important;
    border-radius: 0 !important;
    background: var(--mardo-bg) !important;
  }

  html body .mardo-demo-app .mardo-sidebar-pane {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }

  html body .mardo-demo-app .mardo-sidebar-pane.is-open {
    width: min(320px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: min(320px, calc(100vw - 24px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
  }

  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane:not(.is-open) .mardo-sidebar-header {
    display: block !important;
  }
}

@media (max-width: 760px) {
  html body .mardo-demo-app .mardo-sidebar-pane:not(.is-open) {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
  }

  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane:not(.is-open) .mardo-sidebar-header,
  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane:not(.is-open) .mardo-sidebar-toggle {
    display: none !important;
  }

  html body .mardo-demo-app .mardo-sidebar-pane.is-open {
    pointer-events: auto !important;
  }
}
/* Compacta el sidebar dinamico para reducir scroll vertical. */
.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic .mardo-sidebar-header {
  padding-bottom: 8px;
}

.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic .mardo-sidebar-nav {
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 10px;
}

.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic .mardo-sidebar-group {
  gap: 4px;
}

.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic .mardo-sidebar-group + .mardo-sidebar-group {
  padding-top: 8px;
}

.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic .mardo-sidebar-link {
  min-height: 34px;
  gap: 10px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic .mardo-sidebar-link-text {
  font-size: 13px;
}

.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic .mardo-sidebar-app-switcher {
  margin-top: 10px;
  margin-bottom: 6px;
}

.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic .mardo-sidebar-user {
  padding-top: 8px;
  padding-bottom: 8px;
}
/* Acciones directas del topbar. */
html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-action,
html body header.mardo-topbar.mardo-topline .mardo-topbar-action {
  min-height: 38px !important;
  padding-inline: 13px !important;
  white-space: nowrap !important;
}

html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-action .mardo-icon,
html body header.mardo-topbar.mardo-topline .mardo-topbar-action .mardo-icon {
  width: 18px !important;
  height: 18px !important;
}

@media (max-width: 760px) {
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline.has-topbar-actions .mardo-topbar-actions,
  html body header.mardo-topbar.mardo-topline.has-topbar-actions .mardo-topbar-actions {
    grid-template-columns: minmax(0, 1fr) repeat(4, 40px) !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-action,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-action {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  html body .mardo-main-surface > header.mardo-topbar.mardo-topline .mardo-topbar-action > span:last-child,
  html body header.mardo-topbar.mardo-topline .mardo-topbar-action > span:last-child {
    display: none !important;
  }
}
@media (max-width: 760px) {
  html body .mardo-main-surface > header.mardo-topbar.mardo-topline.has-modules-button .mardo-topbar-actions,
  html body header.mardo-topbar.mardo-topline.has-modules-button .mardo-topbar-actions {
    grid-template-columns: minmax(0, 1fr) repeat(4, 40px) !important;
  }
}
/* Superficie principal sin sombra ni recorte inferior. */
html body.mardo-ui .mardo-main-surface {
  --mardo-main-scroll-bottom-space: 44px;
  box-shadow: none !important;
  overflow: visible !important;
}

html body.mardo-ui .mardo-main-surface > .mardo-main-scroll {
  padding-bottom: max(
    var(--mardo-main-scroll-bottom-space),
    calc(var(--mardo-main-scroll-bottom-space) + env(safe-area-inset-bottom))
  ) !important;
  scroll-padding-bottom: var(--mardo-main-scroll-bottom-space);
}

@media (max-width: 760px) {
  html body.mardo-ui .mardo-main-surface {
    --mardo-main-scroll-bottom-space: 30px;
  }
}

/* Modales de filtros: los dropdowns flotan sobre el modal y no fuerzan alto interno. */
.mardo-modal-filter {
  width: min(760px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  overflow: visible;
}

.mardo-modal-filter .mardo-modal-body {
  overflow: visible;
}

.mardo-modal-filter .mardo-products-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
  align-items: start;
}

.mardo-modal-filter .mardo-products-filter-search {
  grid-column: 1 / -1;
  min-width: 0;
}

.mardo-modal-filter .mardo-products-filter-search .mardo-field {
  width: 100%;
}

.mardo-modal-filter .mardo-field,
.mardo-modal-filter .mardo-input,
.mardo-modal-filter .mardo-select-control,
.mardo-modal-filter .mardo-date-control,
.mardo-modal-filter .mardo-select-trigger,
.mardo-modal-filter .mardo-date-trigger {
  width: 100%;
  min-width: 0;
}

.mardo-modal-filter .mardo-select-menu,
.mardo-modal-filter .mardo-date-popover {
  z-index: 1200;
}

.mardo-modal-filter .mardo-date-control.is-above .mardo-date-popover {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom center;
}

.mardo-modal-filter .mardo-select-control.is-open.is-above .mardo-select-menu,
.mardo-modal-filter .mardo-date-control.is-open.is-above .mardo-date-popover {
  transform: translateY(0) scale(1);
}

.mardo-modal-filter .mardo-select-menu {
  width: 100%;
  min-width: 100%;
  max-width: min(360px, calc(100vw - 32px));
}

.mardo-modal-filter .mardo-date-popover {
  width: min(318px, calc(100vw - 32px));
  min-width: min(100%, 318px);
  max-width: calc(100vw - 32px);
}

.mardo-modal-filter [data-mardo-select-label],
.mardo-modal-filter [data-mardo-date-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .mardo-modal-filter {
    width: 100%;
    max-width: 100%;
  }

  .mardo-modal-filter .mardo-products-filter-grid {
    grid-template-columns: 1fr;
  }

  .mardo-modal-filter .mardo-select-menu,
  .mardo-modal-filter .mardo-date-popover {
    max-width: calc(100vw - 28px);
  }
}

/* Dropdowns dentro de cualquier modal: al abrirse no quedan recortados por el body del modal. */
@supports selector(.mardo-modal:has(.mardo-select-control.is-open)) {
  .mardo-modal:has(.mardo-select-control.is-open),
  .mardo-modal:has(.mardo-date-control.is-open),
  .mardo-modal:has(.mardo-select-control.is-open) .mardo-modal-body,
  .mardo-modal:has(.mardo-date-control.is-open) .mardo-modal-body {
    overflow: visible;
  }
}

.mardo-modal .mardo-select-control.is-open,
.mardo-modal .mardo-date-control.is-open {
  z-index: 1300;
}

.mardo-modal .mardo-select-menu,
.mardo-modal .mardo-date-popover {
  z-index: 1300;
}

.mardo-modal .mardo-date-control.is-above .mardo-date-popover {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom center;
}

.mardo-modal .mardo-select-control.is-open.is-above .mardo-select-menu,
.mardo-modal .mardo-date-control.is-open.is-above .mardo-date-popover {
  transform: translateY(0) scale(1);
}
/* Modales siempre por encima del shell principal y topbar. */
html body.mardo-ui .mardo-modal-backdrop {
  z-index: 20000 !important;
}

html body.mardo-ui .mardo-modal-backdrop .mardo-modal {
  position: relative;
  z-index: 1;
}
/* Back buttons stay lighter than primary actions. */
html body .mardo-shell .mardo-app-layout .mardo-button.mardo-back-button,
html body .mardo-shell .mardo-app-layout .mardo-button.mardo-back-button > span,
html body .mardo-shell .mardo-app-layout .mardo-button.mardo-back-button .mardo-icon,
html body .mardo-shell .mardo-app-layout .mardo-topbar-back,
html body .mardo-shell .mardo-app-layout .mardo-topbar-back > span {
  font-weight: 400 !important;
}

/* Sidebar contract: every module must keep the same navigation size. */
html body.mardo-ui.mardo-demo-app {
  --mardo-app-sidebar-width: 252px;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane,
html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar,
html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic {
  box-sizing: border-box !important;
  position: sticky !important;
  top: 0 !important;
  width: var(--mardo-app-sidebar-width, 252px) !important;
  min-width: var(--mardo-app-sidebar-width, 252px) !important;
  max-width: var(--mardo-app-sidebar-width, 252px) !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  padding-right: 0 !important;
  overflow: hidden !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-header,
html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-user {
  padding-right: 22px !important;
  padding-left: 22px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-header {
  padding-top: 18px !important;
  padding-bottom: 8px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-nav {
  gap: 8px !important;
  padding: 4px 18px 10px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-group {
  gap: 4px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-group + .mardo-sidebar-group {
  margin-top: 4px !important;
  padding-top: 8px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-label {
  padding: 8px 10px 4px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-link {
  min-height: 38px !important;
  gap: 10px !important;
  border-radius: 14px !important;
  padding: 7px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-link-icon {
  width: 20px !important;
  height: 20px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-link-icon svg {
  width: 18px !important;
  height: 18px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-app-switcher {
  box-sizing: border-box !important;
  width: calc(100% - 36px) !important;
  max-width: calc(100% - 36px) !important;
  margin: 10px 18px 6px !important;
  padding: 8px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-app-summary {
  min-height: 34px !important;
  padding: 0 8px !important;
  font-size: 0.78rem !important;
  font-weight: 740 !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-user {
  min-height: 64px !important;
  margin-top: auto !important;
  margin-bottom: 14px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-user::after,
html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane .mardo-sidebar-user-chevron {
  display: none !important;
}

@media (max-width: 900px) {
  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane,
  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar,
  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic {
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top)) !important;
    left: 12px !important;
    z-index: 220 !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    overflow: hidden !important;
  }

  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane.is-open,
  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar.is-open,
  html body.mardo-ui.mardo-demo-app .mardo-sidebar-pane.mardo-sidebar-dynamic.is-open {
    width: min(320px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: min(320px, calc(100vw - 24px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
  }
}
.mardo-toast > :nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0;
}