/* OPC-Grow account tabs and read-only API pages */
.mypage-layout { grid-template-columns: minmax(285px, 320px) minmax(0, 1fr); }
.sidebar { padding: 16px 12px; }
.account-menu { margin-top: 12px; }
.account-menu .sidebar-nav,
.account-menu-more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}
.account-menu .sidebar-nav li,
.account-menu-more li { min-width: 0; }
.account-menu .sidebar-nav a,
.account-menu-more a,
.account-menu-more-toggle {
  box-sizing: border-box;
  width: 100%;
  min-height: 68px;
  padding: 8px 3px;
  border: 1px solid #e7e9ee;
  border-left: 1px solid #e7e9ee;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size: .72rem;
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.account-menu .sidebar-nav a span:last-child,
.account-menu-more a span:last-child,
.account-menu-more-toggle .account-menu-more-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu .sidebar-nav a:hover,
.account-menu-more a:hover,
.account-menu-more-toggle:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  color: #1d4ed8;
  opacity: 1;
}
.account-menu .sidebar-nav a.active,
.account-menu-more a.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 3px 12px rgba(37,99,235,.09);
}
.account-menu-icon { font-size: 1.12rem; line-height: 1; }
.account-menu-more-item { min-width: 0; }
.account-menu-more-toggle {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}
.account-menu-more-toggle[aria-expanded="true"] { background: #f1f5f9; border-color: #cbd5e1; }
.account-menu-arrow { font-size: .8rem; line-height: 1; color: #64748b; }
.account-menu-more {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.account-menu-more[hidden] { display: none; }
.data-api-page { min-width: 0; }
.data-api-page > h1 { font-size: 1.7rem; margin-bottom: 6px; }
.data-api-lead { color: #64748b; margin-bottom: 18px; }
.data-api-callout {
  padding: 16px 18px;
  margin: 16px 0;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  background: #eff6ff;
  color: #334155;
  line-height: 1.65;
}
.data-api-card {
  padding: 18px;
  margin: 14px 0;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15,23,42,.035);
}
.data-api-card h2 { font-size: 1.08rem; margin: 0 0 10px; }
.data-api-card p { color: #64748b; line-height: 1.65; margin: 8px 0; }
.data-api-card ul { margin: 8px 0 12px 20px; line-height: 1.9; }
.data-api-card code { padding: 2px 5px; border-radius: 5px; background: #f1f5f9; color: #0f172a; overflow-wrap: anywhere; }
.data-api-form label { display: block; margin-bottom: 7px; font-weight: 700; }
.data-api-form textarea,
.data-api-card textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 12px;
  margin: 8px 0 12px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  line-height: 1.55;
}
.data-api-card #agentPrompt { min-height: 230px; font-size: .88rem; }
.data-api-new-key { border-color: #fbbf24; background: #fffbeb; }
.api-key-copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.api-key-copy-row input { flex: 1 1 220px; min-width: 0; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-family: var(--mono); }
@media (max-width: 768px) {
  .mypage-layout { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { position: static; padding: 14px 10px; }
  .account-menu .sidebar-nav,
  .account-menu-more { gap: 6px; }
  .account-menu .sidebar-nav a,
  .account-menu-more a,
  .account-menu-more-toggle { min-height: 64px; font-size: .68rem; border-radius: 10px; }
  .account-menu-icon { font-size: 1.05rem; }
  .data-api-card { padding: 15px; }
}
