/* ==========================================================================
   User profile page (pages/user-profile.php)

   Ported from the founder's design-canvas screen "User Profile.dc.html".
   Entirely scoped under .mn-prof, so it is inert on every other page sharing
   the resource-hub profile, same as qp-subject-page.css and semester-bundle.css
   beside it in includes/page-style-profiles.php.

   The canvas screen carried its styling as inline style= attributes. Route
   level inline styling is not allowed here, so every rule below is a named,
   reusable class instead.
   ========================================================================== */

.mn-prof {
  --prof-page: #f8f9fc;
  --prof-ink: #0d1526;
  --prof-ink-soft: #2c3e5c;
  --prof-muted: #5a718c;
  --prof-line: #dce6f5;
  --prof-line-soft: #f2f5fa;
  --prof-link: #1d50ca;
  --prof-link-hover: #1740a0;
  --prof-tint: #eef4ff;
  --prof-tint-line: #d3e2fc;
  --prof-navy: #0b1d4e;

  background: var(--prof-page);
  color: var(--prof-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ---------- Hero ---------- */

.mn-prof-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0b1d4e 0%, #123178 55%, #1e3a8a 100%);
}

.mn-prof-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.mn-prof-hero-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 32px 2.1rem;
}

.mn-prof-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.mn-prof-id {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.mn-prof-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-family: var(--f-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  object-fit: cover;
}

.mn-prof-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9dbaf0;
}

.mn-prof-eyebrow-sep { opacity: 0.45; }

.mn-prof-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mn-prof-name {
  margin: 0;
  font-family: var(--app-font-display, 'Lora', Georgia, serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.mn-prof-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mn-prof-flag--verified {
  background: #cffafe;
  color: #155e75;
}

.mn-prof-college {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.mn-prof-college a { color: inherit; text-decoration: underline; }
.mn-prof-college a:hover { color: #ffffff; }

/* The shared .mn-clogo mark sitting in front of the college name. The mark
   brings its own size and tint from college-logo.css, so this only has to put
   it on the same line and keep a long college name from wrapping under it. */
.mn-prof-college--mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mn-prof-college--mark .mn-clogo {
  /* Lighter than the sheet's default inset rule, which is drawn for a white
     card and all but disappears against this navy band. */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.mn-prof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mn-prof-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.1rem;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.mn-prof-btn--light {
  background: #ffffff;
  color: var(--prof-navy);
  font-weight: 700;
}
.mn-prof-btn--light:hover { background: #e8f0fe; color: var(--prof-navy); }

.mn-prof-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}
.mn-prof-btn--ghost:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

/* ---------- Shell ---------- */

.mn-prof-shell {
  flex: 1;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.75rem 3rem;
}

.mn-prof-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mn-prof-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ---------- Section heading ---------- */

.mn-prof-sec-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.85rem;
}

.mn-prof-sec-label {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prof-muted);
  white-space: nowrap;
}

.mn-prof-sec-rule {
  flex: 1;
  height: 1px;
  background: var(--prof-line);
}

/* ---------- Card ---------- */

.mn-prof-card {
  background: #ffffff;
  border: 1px solid var(--prof-line);
  border-radius: 12px;
}

.mn-prof-card--pad {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mn-prof-card--flush { overflow: hidden; }

.mn-prof-bio {
  margin: 0;
  max-width: 68ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--prof-ink-soft);
  white-space: pre-line;
  text-wrap: pretty;
}

.mn-prof-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--prof-muted);
}

.mn-prof-sub {
  margin-bottom: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--prof-muted);
}

.mn-prof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mn-prof-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  border-radius: 7px;
  background: var(--prof-page);
  border: 1px solid var(--prof-line);
  font-size: 0.78rem;
  color: var(--prof-ink-soft);
}

.mn-prof-tag--link {
  background: var(--prof-tint);
  border-color: var(--prof-tint-line);
  font-weight: 600;
  color: var(--prof-link);
  text-decoration: none;
}
.mn-prof-tag--link:hover { background: #e0ebff; color: var(--prof-link-hover); }

/* ---------- Shared resources ---------- */

.mn-prof-res-head,
.mn-prof-res-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 180px 96px 64px;
  gap: 1rem;
}

.mn-prof-res-head {
  padding: 0.7rem 1.15rem;
  background: #fbfcfe;
  border-bottom: 1px solid #eef2f8;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--prof-muted);
}

.mn-prof-res-row {
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--prof-line-soft);
}

.mn-prof-res-row:last-child { border-bottom: none; }

.mn-prof-res-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--prof-ink);
}

.mn-prof-res-meta {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.mn-prof-res-type {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--prof-tint);
  color: var(--prof-link);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.mn-prof-res-college {
  font-size: 0.8rem;
  color: var(--prof-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mn-prof-res-college a { color: var(--prof-ink-soft); text-decoration: none; }
.mn-prof-res-college a:hover { color: var(--prof-link); text-decoration: underline; }

.mn-prof-res-date {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--prof-muted);
  white-space: nowrap;
}

.mn-prof-res-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.75rem;
  border-radius: 7px;
  border: 1px solid var(--prof-line);
  background: #ffffff;
  color: var(--prof-ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.mn-prof-res-view:hover {
  background: var(--prof-tint);
  border-color: #c7d9fc;
  color: var(--prof-link);
}

.mn-prof-empty { padding: 2rem 1.25rem; text-align: center; }

.mn-prof-empty-title {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--prof-ink);
}

.mn-prof-empty-text {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--prof-muted);
}

.mn-prof-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  background: var(--prof-link);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.mn-prof-empty-cta:hover { background: var(--prof-link-hover); color: #ffffff; }

/* ---------- Academic journey ---------- */

.mn-prof-journey { padding: 0.4rem 1.15rem; }

.mn-prof-journey-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--prof-line-soft);
}

.mn-prof-journey-row:last-child { border-bottom: none; }

.mn-prof-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: #b6c3d6;
  box-shadow: 0 0 0 3px #eef2f8;
}

.mn-prof-dot--current {
  background: #1d7a4c;
  box-shadow: 0 0 0 3px #d7efe1;
}

.mn-prof-journey-body { flex: 1; min-width: 0; }

.mn-prof-journey-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mn-prof-journey-course {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--prof-ink);
}

.mn-prof-journey-college {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--prof-ink-soft);
}

.mn-prof-journey-range {
  margin-top: 0.3rem;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  color: var(--prof-muted);
}

.mn-prof-badge {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: var(--prof-line-soft);
  color: var(--prof-muted);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.mn-prof-badge--current {
  background: #f2fbf6;
  color: #1d7a4c;
}

/* ---------- Sidebar: plan ---------- */

.mn-prof-plan {
  background: var(--prof-navy);
  border-radius: 12px;
  padding: 1.05rem 1.1rem;
}

.mn-prof-plan-label {
  margin-bottom: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.mn-prof-plan-name {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.mn-prof-plan-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.mn-prof-plan-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.mn-prof-plan-key { font-size: 0.79rem; color: rgba(255, 255, 255, 0.7); }

.mn-prof-plan-val {
  font-size: 0.79rem;
  font-weight: 600;
  color: #ffffff;
  text-align: right;
}

.mn-prof-plan-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.mn-prof-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
}

.mn-prof-plan-btn--light {
  background: #ffffff;
  color: var(--prof-navy);
  font-weight: 700;
}
.mn-prof-plan-btn--light:hover { background: #e8f0fe; color: var(--prof-navy); }

.mn-prof-plan-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}
.mn-prof-plan-btn--ghost:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

/* ---------- Sidebar: free account ---------- */

.mn-prof-upsell {
  background: #ffffff;
  border: 1px solid var(--prof-line);
  border-radius: 12px;
  padding: 1.05rem 1.1rem;
}

.mn-prof-upsell-label {
  margin-bottom: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--prof-muted);
}

.mn-prof-upsell-name {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--prof-ink);
}

.mn-prof-upsell-text {
  margin: 0 0 0.9rem;
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--prof-muted);
}

.mn-prof-upsell-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--prof-link);
  color: #ffffff;
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
}
.mn-prof-upsell-cta:hover { background: var(--prof-link-hover); color: #ffffff; }

/* ---------- Sidebar: quick info ---------- */

.mn-prof-quick {
  background: #ffffff;
  border: 1px solid var(--prof-line);
  border-radius: 12px;
  padding: 1.05rem 1.1rem;
}

.mn-prof-quick-label {
  margin-bottom: 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--prof-muted);
}

.mn-prof-quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mn-prof-quick-key {
  margin-bottom: 0.1rem;
  font-size: 0.74rem;
  color: var(--prof-muted);
}

.mn-prof-quick-link {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--prof-link);
  text-decoration: none;
}
.mn-prof-quick-link:hover { color: var(--prof-link-hover); text-decoration: underline; }

.mn-prof-quick-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.mn-prof-quick-row--rule {
  padding-top: 0.7rem;
  border-top: 1px solid #eef2f8;
}

.mn-prof-quick-row-key { font-size: 0.79rem; color: var(--prof-muted); }

.mn-prof-quick-row-val {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--prof-ink);
  text-align: right;
}

.mn-prof-quick-row-val--num { font-family: var(--f-mono); font-weight: 700; }

/* ---------- Flash message ---------- */

.mn-prof-flash {
  margin: 1rem auto 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  padding: 0.75rem 1.75rem;
}

.mn-prof-flash-inner {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--prof-line);
  background: #ffffff;
  font-size: 0.86rem;
  color: var(--prof-ink-soft);
}

.mn-prof-flash-inner--success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.mn-prof-flash-inner--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

/* ---------- Ad panel ---------- */

.mn-prof-ad { margin-top: 0.25rem; }

/* ---------- Edit modal ---------- */

.mn-prof-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 29, 78, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.mn-prof-modal.is-open { display: flex; }

.mn-prof-modal-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(4, 16, 31, 0.3);
}

.mn-prof-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eef2f8;
}

.mn-prof-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--prof-ink);
}

.mn-prof-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--prof-page);
  color: var(--prof-muted);
  cursor: pointer;
}
.mn-prof-modal-close:hover { background: #eef2f8; color: var(--prof-ink); }

.mn-prof-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mn-prof-fieldgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mn-prof-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mn-prof-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--prof-ink);
}

.mn-prof-field-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--prof-muted);
}

.mn-prof-input,
.mn-prof-select {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--prof-line);
  border-radius: 9px;
  background: #ffffff;
  font-size: 0.86rem;
  color: var(--prof-ink);
}

.mn-prof-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--prof-line);
  border-radius: 9px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--prof-ink);
  resize: vertical;
}

.mn-prof-input:focus,
.mn-prof-select:focus,
.mn-prof-textarea:focus {
  outline: none;
  border-color: var(--prof-link);
  box-shadow: 0 0 0 3px rgba(29, 80, 202, 0.14);
}

.mn-prof-field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.mn-prof-count {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--prof-muted);
}

.mn-prof-count.is-full { color: #b45309; }

.mn-prof-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mn-prof-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--prof-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--prof-ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.mn-prof-choice input { position: absolute; opacity: 0; pointer-events: none; }

.mn-prof-choice.is-on {
  border-color: var(--prof-link);
  background: var(--prof-tint);
  color: var(--prof-link);
}

.mn-prof-choice.is-off { opacity: 0.45; cursor: not-allowed; }

.mn-prof-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid #eef2f8;
  background: #fbfcfe;
}

.mn-prof-modal-btn {
  min-height: 42px;
  padding: 0 1.1rem;
  border: 1px solid var(--prof-line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--prof-ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.mn-prof-modal-btn:hover { background: var(--prof-line-soft); }

.mn-prof-modal-btn--primary {
  border-color: transparent;
  background: var(--prof-link);
  color: #ffffff;
  font-weight: 700;
  padding: 0 1.2rem;
}
.mn-prof-modal-btn--primary:hover { background: var(--prof-link-hover); }

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .mn-prof-shell { grid-template-columns: minmax(0, 1fr); }
  .mn-prof-side {
    order: -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .mn-prof-hero-inner { padding: 1.4rem 16px 1.5rem; }
  .mn-prof-hero-row { flex-direction: column; align-items: flex-start; }
  .mn-prof-avatar { width: 60px; height: 60px; font-size: 1.4rem; }
  .mn-prof-name { font-size: 1.4rem; }
  .mn-prof-actions { width: 100%; }
  .mn-prof-actions > * { flex: 1 1 auto; justify-content: center; }
  .mn-prof-shell { padding: 1rem 1rem 2.5rem; }
  .mn-prof-side { grid-template-columns: minmax(0, 1fr); }
  .mn-prof-flash { padding: 0.75rem 1rem; }

  .mn-prof-res-head { display: none; }
  .mn-prof-res-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mn-prof-res-col { display: none; }
  .mn-prof-res-meta { display: flex; }

  .mn-prof-modal { align-items: flex-end; padding: 0; }
  .mn-prof-modal-box { border-radius: 16px 16px 0 0; max-height: 92vh; }
  .mn-prof-fieldgrid { grid-template-columns: minmax(0, 1fr); }
}
