/* ── Mobile-optimized overrides for mscp-m.html ── */
* { box-sizing: border-box; }

/* Titlebar: compact, hide decorative buttons */
.titlebar {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
}
.titlebar-text { font-size: 1rem; font-weight: bold; flex: 1; }
.titlebar-btns { display: none; }

/* Address bar: wrap instead of overflow */
.addressbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
}
.address-box {
  flex: 1 1 100%;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-box {
  flex: 1 1 100%;
  font-size: 0.8rem;
}
.nav-btn { display: none; }

/* Toolbar: horizontal scrollable, compact */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
}
.tool-sep { display: none; }
.view-by { font-size: 0.8rem; }
.view-select { font-size: 0.8rem; }

/* Shell: stack nav above content on mobile */
.shell {
  display: flex;
  flex-direction: column;
}

/* Nav pane: horizontal scrollable strip */
.nav-pane {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  border-bottom: 1px solid #ccc;
}
.nav-section-title {
  width: 100%;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-link {
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
}
.nav-divider { width: 100%; height: 1px; margin: 4px 0; }

/* Main content */
.content { padding: 10px; }
.content-title { font-size: 1rem; margin-bottom: 10px; }

/* Category grid: 2 columns on mobile, 1 on very small */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 400px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* Category items */
.category-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
}
.cat-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.cat-text { flex: 1; min-width: 0; }
.cat-title { font-size: 0.9rem; font-weight: bold; display: block; margin-bottom: 4px; }
.cat-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}
.cat-sub a { display: block; }

/* Status bar */
.statusbar { font-size: 0.75rem; padding: 4px 8px; }

/* Footer */
footer { font-size: 0.75rem; padding: 8px; text-align: center; }
footer div { margin-bottom: 4px; }