.mobile-more-grid {
  display: grid;
  gap: 10px;
}

.mobile-more-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}

.mobile-more-option > span {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-solid);
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--accent);
  font-size: 18px;
}

.mobile-more-option strong {
  font-size: 14px;
}

.mobile-more-option small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mobile-more-option.active {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border));
  background: var(--accent-soft);
}

.mobile-more-option.danger > span,
.mobile-more-option.danger strong {
  color: var(--danger);
}

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

.app-launch-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 164px;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-launch-card:hover,
.app-launch-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.app-launch-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.app-launch-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent-soft), var(--surface-3));
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.app-launch-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.app-launch-copy > strong {
  font-size: 18px;
  line-height: 1.25;
}

.app-launch-copy > small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.app-launch-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 760;
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .workspace,
  .content,
  .topbar {
    min-width: 0;
    max-width: 100%;
  }

  .mobile-nav .nav-button {
    font-size: 10px;
    line-height: 1.2;
  }

  .mobile-nav .nav-button .nav-icon {
    font-size: 18px;
  }

  .mobile-top-brand .brand-copy span {
    font-size: 9px;
  }

  .field label {
    font-size: 13px;
  }

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

@media (max-width: 580px) {
  .responsive-table {
    min-width: 0 !important;
    max-width: 100%;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    min-width: 0;
    max-width: 100%;
  }

  .responsive-table tr {
    overflow: hidden;
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .responsive-table td > * {
    min-width: 0;
    max-width: 100%;
  }

  .responsive-table td.table-primary {
    display: block;
    overflow-wrap: anywhere;
  }

  .responsive-table td.table-primary .text-button {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .responsive-table .table-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .responsive-table select.search-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 180px !important;
    justify-self: end;
  }

  .admin-tabs,
  .tabs {
    scrollbar-width: thin;
  }

  .config-item {
    align-items: flex-start;
  }

  .config-item > .table-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .modal-head,
  .modal-body,
  .modal-footer {
    padding-left: 17px;
    padding-right: 17px;
  }

  .modal-footer {
    flex-wrap: wrap;
  }

  .modal-footer .button {
    flex: 1 1 130px;
  }

  .mobile-more-option {
    min-height: 72px;
  }

  .app-launch-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 138px;
    padding: 18px;
  }

  .app-launch-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    font-size: 16px;
  }

  .app-launch-copy > strong {
    font-size: 16px;
  }
}
