/* Native mobile and Electron desktop presentation. Browser desktop keeps the base admin layout. */
.admin-brand-mark,
.admin-brand-copy,
.admin-user-identity {
  display: inline-flex;
  align-items: center;
}

.admin-brand-copy strong {
  font: inherit;
}

.admin-brand-copy small,
.admin-brand-mark,
.admin-user-status-dot,
.mobile-bottom-nav,
.desktop-app-workspace,
.native-app-card-list {
  display: none;
}

/* Electron desktop */
html.desktop-shell {
  --desktop-sidebar: 208px;
  --desktop-sidebar-bg: #172126;
  --desktop-sidebar-line: #2d393e;
  --desktop-sidebar-text: #aeb9bd;
  --desktop-sidebar-active: #ffffff;
  --desktop-canvas: #f4f6f8;
  --desktop-accent: #2475e8;
  color-scheme: light;
}

html.desktop-shell,
html.desktop-shell body {
  min-width: 0;
  min-height: 100%;
  background: var(--desktop-canvas);
}

html.desktop-shell body {
  --canvas: var(--desktop-canvas);
  --brand: var(--desktop-sidebar-bg);
  --accent: #223136;
  overflow-x: hidden;
}

html.desktop-shell .mobile-appbar,
html.desktop-shell .mobile-bottom-nav,
html.desktop-shell .admin-backdrop,
html.desktop-shell .developer-mail-mobile-nav {
  display: none !important;
}

html.desktop-shell .admin-shell {
  display: flex !important;
  min-height: 100dvh;
}

html.desktop-shell .admin-sidebar {
  position: sticky !important;
  inset: auto !important;
  top: 0 !important;
  z-index: 20;
  width: var(--desktop-sidebar) !important;
  min-width: var(--desktop-sidebar) !important;
  max-width: var(--desktop-sidebar) !important;
  min-height: 100dvh;
  height: 100dvh;
  flex: 0 0 var(--desktop-sidebar) !important;
  border: 0;
  border-right: 1px solid #10181c;
  background: var(--desktop-sidebar-bg);
  box-shadow: none;
  overflow: hidden;
  transform: none !important;
}

html.desktop-shell .admin-brand {
  height: 66px;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 16px;
  border-bottom: 1px solid var(--desktop-sidebar-line);
  background: transparent;
  font-size: 15px;
  font-weight: 760;
}

html.desktop-shell .admin-brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: #ffffff;
  color: #172126;
  font-size: 12px;
  font-weight: 850;
}

html.desktop-shell .admin-brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1.1;
}

html.desktop-shell .admin-brand-copy small {
  display: block;
  color: #8e9a9f;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

html.desktop-shell .admin-nav {
  padding: 10px 8px 18px;
  scrollbar-color: #425158 transparent;
  scrollbar-width: thin;
}

html.desktop-shell .admin-nav-item,
html.desktop-shell .admin-nav-group {
  min-height: 38px;
  gap: 9px;
  margin: 0;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--desktop-sidebar-text);
  font-size: 13px;
  font-weight: 650;
}

html.desktop-shell .admin-nav-group {
  min-height: 32px;
  margin-top: 12px;
  color: #7f8d92;
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

html.desktop-shell .admin-nav-item:hover,
html.desktop-shell .admin-child-link:hover {
  background: #223036;
  color: #ffffff;
}

html.desktop-shell .admin-nav-item.is-active,
html.desktop-shell .admin-child-link.is-active {
  background: #2b3a40;
  color: var(--desktop-sidebar-active);
}

html.desktop-shell .admin-nav-item.is-active::before,
html.desktop-shell .admin-nav-group.is-open::before {
  display: none;
}

html.desktop-shell .admin-nav-icon {
  width: 19px;
  height: 19px;
}

html.desktop-shell .admin-nav-icon svg,
html.desktop-shell .admin-child-link .admin-nav-icon svg {
  width: 17px;
  height: 17px;
}

html.desktop-shell .admin-chevron {
  width: 15px;
  height: 15px;
  color: #6f7d82;
}

html.desktop-shell .admin-child-nav {
  gap: 2px;
  padding: 3px 0 0;
}

html.desktop-shell .admin-child-link {
  min-height: 36px;
  gap: 9px;
  padding: 0 10px 0 25px;
  border-radius: 6px;
  color: #9eaaae;
  font-size: 12px;
  font-weight: 600;
}

html.desktop-shell .admin-nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
}

html.desktop-shell .admin-version {
  padding: 10px 16px 13px;
  border-top-color: var(--desktop-sidebar-line);
  color: #69777c;
  font-size: 10px;
}

html.desktop-shell .admin-version-code {
  color: #9ba7ab;
}

html.desktop-shell .admin-main {
  min-width: 0;
  width: calc(100% - var(--desktop-sidebar));
}

html.desktop-shell .admin-topbar {
  min-height: 58px;
  height: 58px;
  padding: 0 22px;
  border-bottom-color: #dfe4e8;
  background: rgba(255, 255, 255, .96);
}

html.desktop-shell .admin-title {
  display: block !important;
  font-size: 17px;
  font-weight: 760;
}

html.desktop-shell .admin-user {
  gap: 9px;
  font-size: 12px;
}

html.desktop-shell .admin-user-identity {
  gap: 7px;
  min-width: 0;
  padding-right: 6px;
  color: #475467;
  font-weight: 650;
}

html.desktop-shell .admin-user-status-dot {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px #e7f8ef;
}

html.desktop-shell .admin-topbar .ghost-button,
html.desktop-shell .admin-topbar .link-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

html.desktop-shell .admin-content {
  width: 100%;
  padding: 20px 22px 34px;
}

html.desktop-shell .page-header {
  align-items: center;
  margin-bottom: 14px;
}

html.desktop-shell .page-kicker {
  margin-bottom: 2px;
  font-size: 11px;
}

html.desktop-shell .page-heading {
  font-size: 22px;
}

html.desktop-shell .page-actions {
  display: flex;
  width: auto;
  gap: 7px;
}

html.desktop-shell .page-actions > *,
html.desktop-shell .page-actions form,
html.desktop-shell .page-actions form button {
  width: auto;
}

html.desktop-shell .link-button,
html.desktop-shell .ghost-button,
html.desktop-shell .primary-button,
html.desktop-shell .danger-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 12px;
}

html.desktop-shell .metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

html.desktop-shell .metric-card,
html.desktop-shell .panel {
  border-color: #dfe4e8;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
}

html.desktop-shell .metric-card {
  min-height: 82px;
  padding: 13px 14px;
}

html.desktop-shell .metric-label {
  font-size: 11px;
}

html.desktop-shell .metric-value {
  margin-top: 8px;
}

html.desktop-shell .metric-value strong {
  font-size: 25px;
}

html.desktop-shell .metric-value span {
  font-size: 11px;
}

html.desktop-shell .panel {
  margin-top: 12px;
}

html.desktop-shell .panel-header {
  min-height: 46px;
  padding: 0 14px;
}

html.desktop-shell .panel-title {
  font-size: 13px;
}

html.desktop-shell .panel-body {
  padding: 14px;
}

html.desktop-shell .split-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 12px;
}

html.desktop-shell .filter-bar {
  display: flex;
  grid-template-columns: none;
  gap: 7px;
  padding: 10px;
}

html.desktop-shell .filter-input,
html.desktop-shell .filter-select,
html.desktop-shell .field-control {
  width: auto;
  min-height: 34px;
  height: 34px;
  border-radius: 5px;
  font-size: 12px;
}

html.desktop-shell .filter-input {
  min-width: 230px;
}

html.desktop-shell .filter-select {
  min-width: 126px;
}

html.desktop-shell .table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

html.desktop-shell .data-table.mobile-card-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 12px;
}

html.desktop-shell .data-table.mobile-card-table colgroup {
  display: table-column-group;
}

html.desktop-shell .data-table.mobile-card-table thead {
  display: table-header-group;
}

html.desktop-shell .data-table.mobile-card-table tbody {
  display: table-row-group;
}

html.desktop-shell .data-table.mobile-card-table tr {
  display: table-row;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html.desktop-shell .data-table.mobile-card-table th,
html.desktop-shell .data-table.mobile-card-table td {
  display: table-cell;
  min-width: 0;
  padding: 10px 11px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
  vertical-align: middle;
}

html.desktop-shell .data-table.mobile-card-table th {
  color: #667085;
  font-size: 10px;
}

html.desktop-shell .data-table.mobile-card-table td::before {
  display: none !important;
}

html.desktop-shell .data-table.mobile-card-table td:first-child,
html.desktop-shell .data-table.mobile-card-table td.mobile-card-primary,
html.desktop-shell .data-table.mobile-card-table td.mobile-card-actions {
  padding: 10px 11px;
  border-top: 0;
  border-bottom: 1px solid #edf0f3;
}

html.desktop-shell .data-table.mobile-card-table td.mobile-card-actions {
  display: table-cell;
}

html.desktop-shell .cell-title {
  font-size: 12px;
}

html.desktop-shell .cell-sub {
  font-size: 10px;
}

html.desktop-shell .status-badge {
  min-height: 20px;
  padding: 0 7px;
  font-size: 10px;
}

html.desktop-shell .app-mode-tabs {
  gap: 8px;
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid #e5e9ed;
}

html.desktop-shell .admin-page-apps .panel {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.desktop-shell .admin-page-apps .filter-bar {
  margin-bottom: 10px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .admin-page-apps .apps-mode-head,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-table-view,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-batch-delete {
  display: none;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-workspace {
  min-height: calc(100dvh - 250px);
  display: grid;
  grid-template-columns: 218px minmax(430px, 1fr) 270px;
  overflow: hidden;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-pane,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-center-pane,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-inspector-pane {
  min-width: 0;
  min-height: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-pane {
  border-right: 1px solid #e1e6ea;
  background: #fbfcfd;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-center-pane {
  padding: 14px;
  background: #f4f6f8;
  overflow-y: auto;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-inspector-pane {
  border-left: 1px solid #e1e6ea;
  background: #fff;
  overflow-y: auto;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-workspace-pane-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid #e5e9ed;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-workspace-pane-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-workspace-pane-head strong {
  color: #111827;
  font-size: 12px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-workspace-pane-head span {
  color: #98a2b3;
  font-size: 9px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list {
  max-height: calc(100dvh - 299px);
  overflow-y: auto;
  padding: 6px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-item {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 5px;
  color: #344054;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-item:hover {
  background: #f0f3f6;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-item.is-selected {
  background: #eaf2ff;
  color: #1849a9;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #e2e7eb;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-copy,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-state {
  min-width: 0;
  display: grid;
  gap: 3px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-copy strong,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-copy strong,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-state strong {
  font-size: 11px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-copy small,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-state small {
  color: #98a2b3;
  font-size: 8px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-state {
  justify-items: end;
  text-align: right;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-state .is-ok {
  color: #039855;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-list-state .is-warning {
  color: #dc6803;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-summary-icon {
  width: 54px;
  height: 54px;
  border: 1px solid #e2e7eb;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-summary-copy {
  min-width: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-summary-copy h2 {
  margin: 0;
  overflow: hidden;
  color: #101828;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-summary-copy p {
  margin: 4px 0 6px;
  overflow: hidden;
  color: #667085;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-open-download {
  align-self: start;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-summary-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-package-facts {
  display: grid;
  grid-template-columns: .8fr .65fr minmax(0, 2fr) .8fr;
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-package-facts > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px 12px;
  border-right: 1px solid #edf0f3;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-package-facts > div:last-child {
  border-right: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-package-facts dt,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-package-facts dd {
  margin: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-package-facts dt {
  color: #667085;
  font-size: 9px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-package-facts dd {
  overflow: hidden;
  color: #101828;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-package-facts dd.is-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-metrics > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-right: 1px solid #edf0f3;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-metrics > div:last-child {
  border-right: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-metrics span {
  color: #667085;
  font-size: 9px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-metrics strong {
  overflow: hidden;
  color: #101828;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-metrics strong.is-text {
  font-size: 11px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-section-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 8px;
  padding: 4px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-section-tabs > * {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #667085;
  font-size: 9px;
  font-weight: 700;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-app-section-tabs .is-active {
  background: #223136;
  color: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inventory-summary,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-summary {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inventory-summary,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-summary {
  padding: 13px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-section-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-section-heading h3,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-section-heading p {
  margin: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-section-heading h3 {
  color: #101828;
  font-size: 12px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-section-heading p {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 8px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-section-heading > strong {
  color: #039855;
  font-size: 12px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-section-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inventory-track {
  height: 6px;
  margin: 13px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f4;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inventory-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #12b76a;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inventory-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inventory-counts > div {
  display: grid;
  gap: 4px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inventory-counts span {
  color: #98a2b3;
  font-size: 8px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inventory-counts strong {
  color: #101828;
  font-size: 14px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds .desktop-section-heading {
  min-height: 44px;
  padding: 0 13px;
  border-bottom: 1px solid #edf0f3;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds th,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds td {
  padding: 9px 11px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds th {
  color: #667085;
  background: #f8fafc;
  font-size: 8px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds tr:last-child td {
  border-bottom: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds td:first-child {
  display: grid;
  gap: 3px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds td strong {
  color: #101828;
  font-size: 9px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-recent-builds td small {
  color: #98a2b3;
  font-size: 8px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-workspace-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 20px;
  color: #98a2b3;
  font-size: 10px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-app {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-app img {
  width: 54px;
  height: 54px;
  border: 1px solid #e2e7eb;
  border-radius: 10px;
  object-fit: cover;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-app > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-app strong {
  color: #101828;
  font-size: 13px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-package-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 3px 0 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-package-facts > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-package-facts dt,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-package-facts dd {
  min-width: 0;
  margin: 0;
  font-size: 9px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-package-facts dt {
  color: #98a2b3;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-package-facts dd {
  overflow: hidden;
  color: #475467;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backups {
  display: grid;
  gap: 0;
  margin-top: 10px;
  max-height: 330px;
  overflow-y: auto;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #edf0f3;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup > img {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e7eb;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup-copy strong,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup-copy strong {
  color: #101828;
  font-size: 10px;
  font-weight: 700;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup-copy span,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup-state small {
  color: #98a2b3;
  font-size: 8px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-store-backup-state {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.appstore-table-backups {
  max-height: 180px;
  display: grid;
  overflow-y: auto;
}

.appstore-table-backup {
  min-width: 0;
  padding: 7px 0;
  border-top: 1px solid #edf0f3;
}

.appstore-table-backup:first-child {
  border-top: 0;
}

.appstore-table-backup .cell-title,
.appstore-table-backup .cell-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appstore-table-backup-time {
  color: #667085;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid #edf0f3;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-actions > *,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-actions form,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-actions form button {
  width: 100%;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-actions .primary-button {
  grid-column: 1 / -1;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section {
  padding: 14px 13px;
  border-bottom: 1px solid #edf0f3;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section-head > strong {
  color: #101828;
  font-size: 11px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 9px;
  line-height: 1.6;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section dl {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 9px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section dt,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section dd {
  margin: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section dd {
  color: #344054;
  text-align: right;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-switches {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid #edf0f3;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-switches > label {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f3;
  color: #475467;
  font-size: 9px;
  font-weight: 680;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-switches > label:last-child {
  border-bottom: 0;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-section-head > span:last-child {
  color: #98a2b3;
  font-size: 8px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-maintenance {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-maintenance form,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-maintenance form button,
:is(html.desktop-shell, html.web-app-workspace:not(.native-shell)) .desktop-inspector-maintenance > button {
  width: 100%;
}

@media (min-width: 1181px) {
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-workspace {
    min-height: max(620px, calc(100dvh - 292px));
    grid-template-columns: 230px minmax(0, 1fr) 300px;
    border-radius: 8px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-list-item {
    min-height: 68px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 10px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-list-icon {
    width: 40px;
    height: 40px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-list-copy strong,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-list-state strong {
    font-size: 13px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-list-copy small,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-list-state small,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-workspace-pane-head span {
    font-size: 10px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-workspace-pane-head strong {
    font-size: 14px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-summary {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    padding: 16px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-summary-icon {
    width: 62px;
    height: 62px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-summary-copy h2 {
    font-size: 19px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-summary-copy p,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-package-facts dt,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-metrics span,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-section-heading p,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-inspector-section p,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-inspector-section dl > div,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-inspector-switches > label {
    font-size: 11px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-metrics strong {
    font-size: 21px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-metrics strong.is-text,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-package-facts dd,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-section-heading h3,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-inspector-section-head > strong {
    font-size: 13px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-package-facts dd.is-mono {
    font-size: 11px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-section-tabs > *,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-recent-builds table {
    font-size: 11px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-inventory-counts span,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-recent-builds th,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-recent-builds td small,
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-inspector-section-head > span:last-child {
    font-size: 10px;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-recent-builds td strong {
    font-size: 11px;
  }
}

@media (max-width: 1180px) {
  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .admin-page-apps .apps-mode-head {
    display: flex;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-table-view {
    display: block;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-batch-delete {
    display: inline-flex;
  }

  html.web-app-workspace:not(.desktop-shell):not(.native-shell) .desktop-app-workspace {
    display: none;
  }
}

html.desktop-shell .app-mode-tab {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 6px;
}

html.desktop-shell .app-mode-tab-title {
  font-size: 14px;
}

html.desktop-shell .app-mode-tab-meta {
  margin-top: 2px;
  font-size: 10px;
}

html.desktop-shell .app-mode-tab-count {
  font-size: 19px;
}

html.desktop-shell .app-mode-tab-state {
  padding: 3px 7px;
  font-size: 9px;
}

html.desktop-shell .apps-mode-head {
  margin: 4px 12px 10px;
}

html.desktop-shell .apps-mode-title {
  font-size: 14px;
}

html.desktop-shell .apps-mode-desc {
  font-size: 10px;
}

html.desktop-shell .app-row-actions,
html.desktop-shell .builds-actions {
  display: flex;
  grid-template-columns: none;
  gap: 4px;
}

html.desktop-shell .app-row-actions > *,
html.desktop-shell .app-row-actions form,
html.desktop-shell .app-row-actions form button,
html.desktop-shell .builds-actions > *,
html.desktop-shell .builds-actions form,
html.desktop-shell .builds-actions form button {
  width: auto;
}

html.desktop-shell .app-modal {
  align-items: center;
  place-items: center;
  padding: 24px;
}

html.desktop-shell .app-modal-dialog,
html.desktop-shell .app-modal-dialog.edit-dialog,
html.desktop-shell .build-error-dialog {
  width: min(920px, calc(100vw - 48px)) !important;
  max-height: calc(100dvh - 48px);
  border-radius: 8px;
}

html.desktop-shell .developer-public-link-bar {
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr) auto;
  gap: 10px;
}

html.desktop-shell .developer-mail-workspace {
  height: calc(100dvh - 238px);
  min-height: 480px;
  gap: 0;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

html.desktop-shell .developer-mail-column {
  border: 0;
  border-right: 1px solid #e5e9ed;
  border-radius: 0;
}

html.desktop-shell .developer-mail-column:last-child {
  border-right: 0;
}

html.desktop-shell .developer-mail-column-header {
  min-height: 44px;
  padding: 10px 12px;
}

html.desktop-shell .developer-mail-column-title {
  font-size: 12px;
}

html.desktop-shell .developer-mailbox-link,
html.desktop-shell .developer-mail-list-item {
  padding: 10px 12px;
}

html.desktop-shell .developer-mailbox-email,
html.desktop-shell .developer-mail-subject {
  font-size: 12px;
}

html.desktop-shell .developer-mail-detail {
  padding: 16px;
}

html.desktop-shell .developer-mail-detail-title {
  font-size: 18px;
}

html.desktop-shell .developer-mail-body {
  font-size: 12px;
}

@media (min-width: 1181px) {
  html.desktop-shell .developer-mail-workspace {
    grid-template-columns: 230px 340px minmax(0, 1fr);
  }

  html.desktop-shell .developer-mail-column.detail-column {
    grid-column: auto;
  }
}

@media (max-width: 1050px) {
  html.desktop-shell {
    --desktop-sidebar: 72px;
  }

  html.desktop-shell .admin-brand {
    justify-content: center;
    padding: 0;
  }

  html.desktop-shell .admin-brand-copy,
  html.desktop-shell .admin-nav-item > span:not(.admin-nav-icon):not(.admin-nav-badge),
  html.desktop-shell .admin-nav-group > span:not(.admin-nav-icon):not(.admin-nav-badge),
  html.desktop-shell .admin-child-link > span:not(.admin-nav-icon):not(.admin-nav-badge),
  html.desktop-shell .admin-chevron,
  html.desktop-shell .admin-version {
    display: none;
  }

  html.desktop-shell .admin-nav-item,
  html.desktop-shell .admin-nav-group,
  html.desktop-shell .admin-child-link {
    justify-content: center;
    padding: 0;
  }

  html.desktop-shell .admin-nav-group {
    margin-top: 8px;
  }

  html.desktop-shell .admin-child-nav {
    padding-top: 0;
  }

  html.desktop-shell .admin-content {
    padding: 16px 16px 28px;
  }

  html.desktop-shell .split-grid {
    grid-template-columns: 1fr;
  }

  html.desktop-shell .desktop-app-workspace {
    grid-template-columns: 198px minmax(0, 1fr);
  }

  html.desktop-shell .desktop-app-inspector-pane {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 198px repeat(3, minmax(0, 1fr));
    border-top: 1px solid #e1e6ea;
    border-left: 0;
  }

  html.desktop-shell .desktop-app-inspector-pane .desktop-workspace-pane-head,
  html.desktop-shell .desktop-app-inspector-pane .desktop-inspector-actions,
  html.desktop-shell .desktop-app-inspector-pane .desktop-inspector-section {
    border-right: 1px solid #edf0f3;
    border-bottom: 0;
  }

  html.desktop-shell .desktop-app-inspector-pane .desktop-inspector-actions {
    grid-template-columns: 1fr;
  }

  html.desktop-shell .desktop-app-inspector-pane .desktop-inspector-actions .primary-button {
    grid-column: auto;
  }
}

/* Capacitor mobile and tablet */
html.native-shell {
  --native-ink: #111827;
  --native-brand: #172126;
  --native-canvas: #f3f6f8;
  color-scheme: light;
}

html.native-shell,
html.native-shell body {
  min-width: 0;
  min-height: 100%;
  background: var(--native-canvas);
}

html.native-shell body {
  --brand: var(--native-brand);
  --canvas: var(--native-canvas);
}

html.native-shell .admin-brand {
  gap: 10px;
}

html.native-shell .admin-brand-mark {
  width: 32px;
  height: 32px;
  justify-content: center;
  border-radius: 7px;
  background: #fff;
  color: #172126;
  font-size: 12px;
  font-weight: 850;
}

html.native-shell .admin-brand-copy {
  display: grid;
  gap: 2px;
}

html.native-shell .admin-brand-copy small {
  display: block;
  color: rgba(255, 255, 255, .56);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

html.native-shell .admin-user-identity {
  gap: 7px;
}

html.native-shell .admin-user-status-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b76a;
}

html.native-shell .metric-card,
html.native-shell .panel,
html.native-shell .data-table.mobile-card-table tr {
  box-shadow: none;
}

html.native-shell .metric-card,
html.native-shell .panel {
  border-color: #dfe5ea;
}

html.native-shell .flash {
  border-radius: 8px;
}

html.native-shell .native-app-card {
  overflow: hidden;
  border: 1px solid #dfe5ea;
  border-radius: 7px;
  background: #fff;
}

html.native-shell .native-app-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

html.native-shell .native-app-card-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #e2e7eb;
  border-radius: 7px;
  object-fit: cover;
  background: #f2f4f7;
}

html.native-shell .native-app-card-copy {
  min-width: 0;
}

html.native-shell .native-app-card-copy h3,
html.native-shell .native-app-card-copy p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.native-shell .native-app-card-copy h3 {
  color: #101828;
  font-size: 15px;
}

html.native-shell .native-app-card-copy p {
  margin-top: 4px;
  color: #667085;
  font-size: 10px;
}

html.native-shell .native-app-card-metrics,
html.native-shell .native-store-summary {
  display: grid;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
  background: #fbfcfd;
}

html.native-shell .native-app-card-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.native-shell .native-store-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.native-shell .native-app-card-metrics > a,
html.native-shell .native-store-summary > div {
  min-width: 0;
  min-height: 54px;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 8px;
  border-right: 1px solid #edf0f3;
  text-align: center;
}

html.native-shell .native-app-card-metrics > a:last-child,
html.native-shell .native-store-summary > div:last-child {
  border-right: 0;
}

html.native-shell .native-store-summary > div:nth-child(2) {
  border-right: 0;
}

html.native-shell .native-store-summary > div:nth-child(-n+2) {
  border-bottom: 1px solid #edf0f3;
}

html.native-shell .native-app-card-metrics span,
html.native-shell .native-store-summary span {
  color: #667085;
  font-size: 9px;
}

html.native-shell .native-app-card-metrics strong,
html.native-shell .native-store-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.native-shell .native-store-summary strong {
  font-size: 11px;
}

html.native-shell .native-store-summary small {
  color: #98a2b3;
  font-size: 8px;
  white-space: nowrap;
}

html.native-shell .native-store-backups {
  display: grid;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

html.native-shell .native-store-backup {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid #edf0f3;
}

html.native-shell .native-store-backup:first-child {
  border-top: 0;
}

html.native-shell .native-store-backup > img {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e7eb;
  border-radius: 7px;
  object-fit: cover;
  background: #f8fafc;
}

html.native-shell .native-store-backup-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

html.native-shell .native-store-backup-copy strong,
html.native-shell .native-store-backup-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.native-shell .native-store-backup-copy strong {
  color: #101828;
  font-size: 11px;
}

html.native-shell .native-store-backup-copy span,
html.native-shell .native-store-backup-time {
  color: #667085;
  font-size: 8px;
}

html.native-shell .native-store-backup-time {
  text-align: right;
  white-space: nowrap;
}

html.native-shell .native-app-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 12px;
}

html.native-shell .native-app-card-actions > * {
  width: 100%;
  min-width: 0;
}

html.native-shell .native-app-more {
  border-top: 1px solid #edf0f3;
}

html.native-shell .native-app-more summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

html.native-shell .native-app-more summary::-webkit-details-marker {
  display: none;
}

html.native-shell .native-app-more summary::after {
  content: "⌄";
  margin-left: 5px;
}

html.native-shell .native-app-more[open] summary::after {
  transform: rotate(180deg);
}

html.native-shell .native-app-more > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 11px;
}

html.native-shell .native-app-more form,
html.native-shell .native-app-more button,
html.native-shell .native-app-more a {
  width: 100%;
  min-height: 34px;
}

html.native-shell .native-app-delete {
  color: #d92d20;
}

@media (max-width: 767px) {
  html.native-shell body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  html.native-shell .mobile-appbar {
    min-height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
    background: var(--native-brand);
    box-shadow: none;
  }

  html.native-shell .mobile-menu-button {
    display: none;
  }

  html.native-shell .mobile-appbar-title {
    gap: 3px;
  }

  html.native-shell .mobile-appbar-product {
    font-size: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  html.native-shell .mobile-appbar-page {
    font-size: 17px;
  }

  html.native-shell .admin-topbar {
    display: none;
  }

  html.native-shell .admin-shell {
    min-height: calc(100dvh - 56px - env(safe-area-inset-top));
  }

  html.native-shell .admin-content {
    padding: 14px 12px calc(26px + env(safe-area-inset-bottom));
  }

  html.native-shell .page-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  html.native-shell .page-kicker {
    margin-bottom: 3px;
    font-size: 10px;
    text-transform: uppercase;
  }

  html.native-shell .page-heading {
    font-size: 21px;
  }

  html.native-shell .page-actions {
    display: flex;
    width: calc(100vw - 24px);
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  html.native-shell .page-actions::-webkit-scrollbar {
    display: none;
  }

  html.native-shell .page-actions > *,
  html.native-shell .page-actions form,
  html.native-shell .page-actions form button,
  html.native-shell .page-actions a {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  html.native-shell .page-actions > :only-child {
    grid-column: auto;
  }

  html.native-shell .metric-grid {
    gap: 8px;
  }

  html.native-shell .metric-card {
    min-height: 78px;
    padding: 11px 12px;
    border-radius: 7px;
  }

  html.native-shell .metric-value strong {
    font-size: 23px;
  }

  html.native-shell .panel {
    border-radius: 7px;
  }

  html.native-shell .panel-header {
    min-height: 46px;
    padding: 10px 12px;
  }

  html.native-shell .panel-body {
    padding: 12px;
  }

  html.native-shell .filter-bar {
    padding: 10px;
  }

  html.native-shell .data-table.mobile-card-table tbody {
    gap: 8px;
  }

  html.native-shell .data-table.mobile-card-table tr {
    gap: 7px;
    padding: 11px;
    border-radius: 7px;
  }

  html.native-shell .data-table.mobile-card-table td {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
  }

  html.native-shell .data-table.mobile-card-table td::before {
    font-size: 11px;
  }

  html.native-shell .app-mode-tabs {
    gap: 7px;
    margin: 0;
    padding: 9px;
  }

  html.native-shell .app-mode-tab {
    min-height: 58px;
    gap: 8px;
    padding: 10px;
    border-radius: 7px;
  }

  html.native-shell .app-mode-tab-title {
    font-size: 13px;
  }

  html.native-shell .app-mode-tab-meta {
    display: none;
  }

  html.native-shell .app-mode-tab-count {
    font-size: 19px;
  }

  html.native-shell .app-mode-tab-state {
    padding: 3px 6px;
    font-size: 9px;
  }

  html.native-shell .desktop-app-table-view,
  html.native-shell .desktop-batch-delete {
    display: none;
  }

  html.native-shell .native-app-card-list {
    display: grid;
    gap: 9px;
    padding: 10px;
    border-top: 1px solid #e5e9ed;
  }

  html.native-shell .apps-mode-head {
    margin: 2px 10px 9px;
  }

  html.native-shell .apps-mode-desc {
    display: none;
  }

  html.native-shell .developer-mail-mobile-nav {
    top: calc(56px + env(safe-area-inset-top));
    margin: 10px 0;
    padding: 4px;
    border-radius: 7px;
    box-shadow: none;
  }

  html.native-shell .developer-mail-mobile-nav button {
    min-height: 36px;
    border-radius: 5px;
    font-size: 12px;
  }

  html.native-shell .developer-mail-workspace {
    height: calc(100dvh - 230px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: 410px;
  }

  html.native-shell .developer-mail-column {
    border-radius: 7px;
  }

  html.native-shell .developer-mail-column-header {
    padding: 11px 12px;
  }

  html.native-shell .mobile-bottom-nav {
    position: fixed;
    z-index: 75;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(58px + env(safe-area-inset-bottom));
    display: flex;
    align-items: flex-start;
    padding: 5px 8px env(safe-area-inset-bottom);
    border-top: 1px solid #dfe5ea;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
    backdrop-filter: blur(16px);
  }

  html.native-shell .mobile-bottom-nav-item {
    min-width: 0;
    min-height: 48px;
    flex: 1 1 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 2px 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #7b8790;
    font-size: 10px;
    font-weight: 680;
    cursor: pointer;
  }

  html.native-shell .mobile-bottom-nav-item svg {
    width: 20px;
    height: 20px;
  }

  html.native-shell .mobile-bottom-nav-item.is-active {
    color: #172126;
  }

  html.native-shell .mobile-bottom-nav-item.is-active svg {
    color: #2475e8;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  html.native-shell {
    --native-sidebar: 196px;
  }

  html.native-shell .mobile-appbar,
  html.native-shell .mobile-bottom-nav,
  html.native-shell .admin-backdrop {
    display: none !important;
  }

  html.native-shell .admin-shell {
    display: flex !important;
    min-height: 100dvh;
  }

  html.native-shell .admin-sidebar {
    position: sticky !important;
    inset: auto !important;
    top: 0 !important;
    width: var(--native-sidebar) !important;
    min-width: var(--native-sidebar) !important;
    max-width: var(--native-sidebar) !important;
    height: 100dvh;
    min-height: 100dvh;
    flex: 0 0 var(--native-sidebar) !important;
    border-right: 0;
    background: var(--native-brand);
    box-shadow: none;
    overflow: hidden;
    transform: none !important;
  }

  html.native-shell .admin-brand {
    height: 64px;
    padding: 0 14px;
    font-size: 14px;
  }

  html.native-shell .admin-nav {
    padding: 8px;
  }

  html.native-shell .admin-nav-item,
  html.native-shell .admin-nav-group {
    min-height: 38px;
    gap: 8px;
    margin: 0;
    padding: 0 9px;
    border-radius: 6px;
    color: #aeb9bd;
    font-size: 12px;
  }

  html.native-shell .admin-nav-group {
    min-height: 30px;
    margin-top: 9px;
    color: #77858a;
    font-size: 10px;
  }

  html.native-shell .admin-nav-item.is-active,
  html.native-shell .admin-child-link.is-active {
    background: #2b3a40;
    color: #fff;
  }

  html.native-shell .admin-nav-item.is-active::before,
  html.native-shell .admin-nav-group.is-open::before {
    display: none;
  }

  html.native-shell .admin-child-nav {
    gap: 1px;
    padding: 2px 0;
  }

  html.native-shell .admin-child-link {
    min-height: 34px;
    gap: 8px;
    padding: 0 8px 0 22px;
    border-radius: 5px;
    color: #9eaaae;
    font-size: 11px;
  }

  html.native-shell .admin-nav-icon,
  html.native-shell .admin-nav-icon svg,
  html.native-shell .admin-child-link .admin-nav-icon svg {
    width: 17px;
    height: 17px;
  }

  html.native-shell .admin-chevron {
    width: 14px;
    height: 14px;
    color: #66747a;
  }

  html.native-shell .admin-version {
    border-top-color: #2d393e;
    color: #718086;
    font-size: 9px;
  }

  html.native-shell .admin-version-code {
    color: #9eaaae;
  }

  html.native-shell .admin-main {
    width: calc(100% - var(--native-sidebar));
  }

  html.native-shell .admin-topbar {
    display: flex;
    min-height: 56px;
    padding: 0 18px;
    background: #fff;
  }

  html.native-shell .admin-title {
    display: block;
    font-size: 16px;
  }

  html.native-shell .admin-user {
    width: auto;
    font-size: 11px;
  }

  html.native-shell .admin-topbar .ghost-button,
  html.native-shell .admin-topbar .link-button {
    min-height: 30px;
    font-size: 10px;
  }

  html.native-shell .admin-content {
    padding: 18px 18px calc(28px + env(safe-area-inset-bottom));
  }

  html.native-shell .page-heading {
    font-size: 23px;
  }

  html.native-shell .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.native-shell .desktop-app-table-view,
  html.native-shell .desktop-batch-delete {
    display: none;
  }

  html.native-shell .native-app-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border-top: 1px solid #e5e9ed;
  }
}

/* Native login keeps the same form but uses the app shell proportions. */
html.native-shell .auth-wrap {
  min-height: 100dvh;
  padding-top: calc(34px + env(safe-area-inset-top));
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  background: #f3f6f8;
}

html.native-shell .auth-wrap::before {
  display: none;
}

html.native-shell .auth-card {
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .09);
}

html.desktop-shell .auth-wrap {
  background: #f4f6f8;
}

html.desktop-shell .auth-card {
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .1);
}
