/* BioStudio AI — mobile platform app layouts (Tier 1) */

/* ---- Dashboard & Settings grouped lists ---- */
#os.shell-mobile .dashboard-app,
#os.shell-mobile .partner-portal-app,
#os.shell-mobile .app-content {
  background: var(--ios-bg);
}

#os.shell-mobile .dashboard-hero {
  padding: 8px 16px 12px;
  background: transparent;
  border: none;
}

#os.shell-mobile .dashboard-hero-mark { font-size: 40px; }
#os.shell-mobile .dashboard-hero h1,
#os.shell-mobile .dashboard-hero h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

#os.shell-mobile .dashboard-section,
#os.shell-mobile .settings-section {
  margin: 0 16px 16px;
  padding: 0;
  background: var(--ios-grouped);
  border-radius: var(--ios-radius);
  overflow: hidden;
  border: none;
  box-shadow: none;
}

#os.shell-mobile .dashboard-section-head {
  padding: 12px 16px 8px !important;
  border-bottom: 0.5px solid var(--ios-separator);
}

#os.shell-mobile .settings-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--ios-secondary);
  padding: 16px 16px 8px;
  margin: 0;
}

#os.shell-mobile .settings-section .app-content,
#os.shell-mobile .app .app-content {
  padding: 0 0 16px;
}

#os.shell-mobile .btn,
#os.shell-mobile .st-btn {
  min-height: var(--ios-touch);
  font-size: 16px;
}

#os.shell-mobile .dashboard-hero + .settings-section {
  margin-top: 0;
}

/* ---- Messages master-detail ---- */
#os.shell-mobile .msg-root {
  grid-template-columns: 1fr !important;
  position: relative;
}

#os.shell-mobile .msg-left {
  border-right: none;
  width: 100%;
}

#os.shell-mobile .msg-right {
  position: absolute;
  inset: 0;
  background: var(--ios-grouped, #fff);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 2;
}

#os.shell-mobile .msg-root.msg-thread-open .msg-right {
  transform: translateX(0);
}

#os.shell-mobile .msg-back {
  border: none;
  background: none;
  color: var(--ios-accent, #0a84ff);
  font-size: 17px;
  min-height: var(--ios-touch, 44px);
  padding: 0 8px;
  cursor: pointer;
  margin-right: 4px;
}

#os.shell-mobile .msg-conv,
#os.shell-mobile .msg-result {
  min-height: var(--ios-touch, 44px);
}

#os.shell-mobile .msg-input,
#os.shell-mobile .msg-search {
  font-size: 16px;
}

/* ---- Organization platform ---- */
#os.shell-mobile .org-platform-header {
  padding: 12px 16px 8px;
  flex-direction: column;
  align-items: stretch;
}

#os.shell-mobile .org-platform-header h1 {
  font-size: 28px;
  font-weight: 700;
}

#os.shell-mobile .org-platform-body {
  flex-direction: column;
}

#os.shell-mobile .org-platform-nav {
  flex-direction: row;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-right: none;
  border-bottom: 0.5px solid var(--ios-separator);
  padding: 8px 12px;
  gap: 8px;
  flex-shrink: 0;
}

#os.shell-mobile .org-platform-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(118, 118, 128, 0.12);
  font-size: 14px;
}

#os.shell-mobile .org-platform-tab.active {
  background: var(--ios-accent, #0a84ff);
  color: #fff;
}

#os.shell-mobile .org-platform-content {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  max-width: 100%;
}

#os.shell-mobile .dashboard-content,
#os.shell-mobile .profile-content,
#os.shell-mobile .admin-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

#os.shell-mobile .org-platform-status {
  max-width: none;
  text-align: left;
  margin: 0 16px 8px;
}

/* ---- Shared / Notifications ---- */
#os.shell-mobile .share-app .app-content,
#os.shell-mobile .notification-center-app {
  background: var(--ios-bg);
}

#os.shell-mobile .share-sidebar,
#os.shell-mobile .nc-sidebar {
  display: none;
}

#os.shell-mobile .share-main,
#os.shell-mobile .nc-main {
  width: 100%;
}

/* ---- Profile ---- */
#os.shell-mobile .profile-hero {
  text-align: center;
  padding: 24px 16px;
}

#os.shell-mobile .profile-hero-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
}

/* ---- Tables on mobile ---- */
#os.shell-mobile .st-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#os.shell-mobile .st-table th:first-child,
#os.shell-mobile .st-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--st-panel, #fff);
  z-index: 1;
}

#os.shell-mobile .st-mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

#os.shell-mobile .st-mobile-card {
  background: var(--ios-grouped, #fff);
  border-radius: var(--ios-radius, 10px);
  padding: 12px 14px;
  border: 0.5px solid var(--ios-separator);
}

#os.shell-mobile .st-mobile-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 3px 0;
}

#os.shell-mobile .st-mobile-card-label {
  color: var(--ios-secondary);
  flex-shrink: 0;
}

/* ---- Platform dialogs ---- */
#os.shell-mobile .platform-dialog-card {
  width: min(440px, 94vw);
  border-radius: var(--ios-sheet-radius, 13px);
}
