/* Page chrome is isolated from legacy nav/button rules in individual pages. */
body[data-gremio-shell] { min-height: 100dvh; display: flex; flex-direction: column; }
.gremio-app-header { flex: 0 0 68px; height: 68px !important; min-height: 68px; padding: 0 !important; }
.gremio-app-header .gremio-header-inner { box-sizing: border-box; display: flex; align-items: center; gap: 28px; width: min(1240px, 100%); height: 100%; min-width: 0; margin: 0 auto; padding: 0 20px; }
.gremio-app-header .gremio-header-brand { flex: 0 0 auto; margin: 0; padding: 0; color: #245bea; font-size: 25px; font-weight: 800; line-height: 1; letter-spacing: -.8px; text-decoration: none; white-space: nowrap; }
.gremio-app-header nav.gremio-app-links { position: static; inset: auto; display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; width: auto; min-height: 0; height: auto; margin: 0 0 0 auto; padding: 0; gap: 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; z-index: auto; }
.gremio-app-header nav.gremio-app-links a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 10px 0; border-radius: 0; line-height: 1.4; white-space: nowrap; transform: none; box-shadow: none; }
.gremio-app-header .profile-menu { flex: 0 0 auto; display: block; width: auto; margin: 0; padding: 0; }
.gremio-app-header button.profile-button { display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 8px; width: auto !important; min-width: 88px; height: 42px; min-height: 42px; max-height: 42px; margin: 0; padding: 10px 14px; border: 1px solid #dce4ef; border-radius: 10px; background: #fff; color: #17233b; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap !important; }
.gremio-app-header .gremio-menu-chevron { display: block; flex: 0 0 14px; width: 14px; height: 14px; margin: 0; transform: none; }
.gremio-app-header button[aria-expanded="true"] .gremio-menu-chevron { transform: rotate(180deg); }
.gremio-app-header .profile-dropdown { z-index: 2000; width: 238px; min-width: 238px; max-width: calc(100vw - 32px); text-align: left; }
.gremio-app-header .profile-dropdown li a { width: 100%; box-sizing: border-box; margin: 0; transform: none; box-shadow: none; }
body[data-gremio-shell] > .gremio-footer { margin-top: auto; }
body[data-gremio-shell] .gremio-footer { box-sizing: border-box; flex: 0 0 auto; width: 100%; padding: 24px 20px; border-top: 1px solid #dce4ef; background: #fff; color: #58677e; }
body[data-gremio-shell] .gremio-footer-content { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; width: min(1200px, 100%); max-width: 1200px; margin: 0 auto; padding: 0; text-align: left; }
body[data-gremio-shell] .gremio-footer-text { flex: 0 1 auto; margin: 0; padding: 0; color: #58677e; font-size: 13px; line-height: 1.6; }
body[data-gremio-shell] .gremio-footer-links { position: static; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px 20px; width: auto; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
body[data-gremio-shell] .gremio-footer-links a { display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0; color: #40536e; border: 0; border-radius: 0; background: transparent; font-size: 13px; font-weight: 400; line-height: 1.5; text-decoration: none; white-space: nowrap; transform: none; box-shadow: none; }
body[data-gremio-shell] .gremio-footer-links a:hover { color: #245bea; text-decoration: underline; }
.gremio-app-page .cv-section-nav { position: static; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; width: min(1160px, calc(100% - 40px)); margin: 24px auto 0; padding: 0; border: 0; background: transparent; }
.gremio-app-page .cv-section-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border: 1px solid #dce4ef; border-radius: 10px; color: #40536e; background: #fff; font-size: 14px; line-height: 1.4; text-decoration: none; box-shadow: none; transform: none; }
.gremio-app-page .cv-section-nav a:last-child { margin-left: auto; color: #245bea; }
.gremio-cv-heading { margin-bottom: 24px; }
.gremio-cv-heading h1 { margin: 0 0 8px; font-size: 28px; color: #17233b; }
.gremio-cv-heading p { margin: 0; color: #58677e; font-size: 15px; line-height: 1.6; }
.gremio-cv-public-title { margin: 26px 0 14px !important; scroll-margin-top: 90px; font-size: 20px !important; }
.gremio-cv-empty { margin: 12px 0; padding: 20px; border: 1px dashed #dce4ef; border-radius: 12px; color: #58677e; font-size: 15px; line-height: 1.6; }
.gremio-app-page .my-curriculum { margin: 0 0 24px; }
.gremio-app-page .my-curriculum .my-cv-head { margin-bottom: 14px; }
.gremio-profile-details { padding: 0 !important; overflow: visible; }
.gremio-profile-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; color: #17233b; font-size: 18px; font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer; }
.gremio-profile-details > summary::-webkit-details-marker { display: none; }
.gremio-profile-details > summary::after { content: '+'; display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; background: #f0f5ff; color: #245bea; font-size: 20px; }
.gremio-profile-details[open] > summary::after { content: '−'; }
.gremio-profile-details-body { padding: 0 24px 24px; }
.gremio-support-main { box-sizing: border-box; flex: 1; width: min(1040px, calc(100% - 40px)); margin: 52px auto; }
.gremio-support-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 40px; }
.gremio-support-copy h1 { margin: 14px 0 18px; color: #17233b; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -1px; }
.gremio-support-copy p { max-width: 520px; margin: 0 0 20px; color: #58677e; font-size: 17px; line-height: 1.7; }
.gremio-support-label { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #eaf1ff; color: #245bea; font-size: 13px; font-weight: 600; }
.gremio-support-card { padding: 30px; border: 1px solid #dce4ef; border-radius: 18px; background: #fff; box-shadow: 0 8px 32px #17233b08; }
.gremio-support-card h2 { margin: 0 0 12px; font-size: 23px; color: #17233b; }
.gremio-support-card p { margin: 0 0 22px; color: #58677e; font-size: 15px; line-height: 1.65; }
.gremio-support-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 20px; border-radius: 10px; background: #245bea; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.gremio-support-button:hover { background: #1747c5; color: #fff; }
.gremio-support-card .gremio-support-domain { margin: 14px 0 0; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.gremio-support-note { margin: 30px 0 0; padding: 20px 24px; border: 1px solid #dce4ef; border-radius: 14px; background: #fff; color: #58677e; font-size: 14px; line-height: 1.7; }
.gremio-admin-page .admin-login-screen { position: relative; inset: auto; z-index: auto; flex: 1; min-height: calc(100dvh - 180px); padding: 36px 20px; background: #f6f8fc; }
.gremio-admin-page .login-container { box-shadow: 0 6px 28px #17233b0d; border: 1px solid #dce4ef; border-radius: 18px; padding: 32px; }
body.gremio-admin-page { padding-top: 0; }
body.gremio-admin-page.gremio-admin-authorized { padding-top: 72px !important; }
.gremio-admin-authorized > .gremio-app-header { display: none !important; }
@media (max-width: 640px) {
  .gremio-app-header .gremio-header-brand,
  .main-header .header-logo,
  .auth-header .logo,
  .auth-header .logo-link { font-size: clamp(17px, 5.6vw, 25px); }
  .gremio-app-header { flex-basis: 64px; height: 64px !important; min-height: 64px; }
  .gremio-app-header .gremio-header-inner { gap: 16px; padding: 0 16px; }
  .gremio-app-header nav.gremio-app-links { display: none; }
  .gremio-app-header .profile-menu { margin-left: auto; }
  body[data-gremio-shell] .gremio-footer { padding: 22px 20px; }
  body[data-gremio-shell] .gremio-footer-content { flex-direction: column; align-items: flex-start; gap: 8px; }
  body[data-gremio-shell] .gremio-footer-links { gap: 6px 18px; }
  .gremio-app-page .cv-section-nav { margin-top: 20px; gap: 8px; }
  .gremio-app-page .cv-section-nav a:last-child { margin-left: 0; }
  .gremio-profile-details > summary { padding: 20px; font-size: 17px; }
  .gremio-profile-details-body { padding: 0 20px 20px; }
  .gremio-support-main { margin: 30px auto; }
  .gremio-support-grid { grid-template-columns: 1fr; gap: 20px; }
  .gremio-support-card { padding: 24px; }
  .gremio-admin-page .login-container { padding: 24px; }
}
