/* Management guidance, 15.09.2026. Existing portal type and theme tokens;
   no global resets, no new fonts, no timers or continuous visual effects. */
.mg-section { --mg-text: var(--ps-text, #f5f2e9); --mg-soft: var(--ps-soft, #b2b6b3); --mg-line: var(--ps-line, #303631); color: var(--mg-text); scroll-margin-top: 12px; }
.mg-section a { color: inherit; }
.mg-section a:focus-visible, .mg-section button:focus-visible,
.mg-section summary:focus-visible, .mg-profile-panel:focus-visible { outline: 2px solid var(--ps-jade, #2ed9a6); outline-offset: 5px; }
.mg-profile-layout, .mg-questions-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.mg-section .mg-lead { max-width: 47ch; margin: 23px 0 0; color: var(--mg-soft); font: 500 15px/1.7 "Manrope", sans-serif; }
.mg-section .mg-text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; margin-top: 24px; font: 750 14px/1.5 "Manrope", sans-serif; text-decoration: none; }
.mg-text-link > span { color: var(--ps-jade, #2ed9a6); font-size: 23px; transition: transform 180ms ease; }
.mg-text-link:hover > span { transform: translate(2px, -2px); }
.mg-section .mg-note { max-width: 49ch; margin: 18px 0 0; color: var(--mg-soft); font: 500 12px/1.65 "Manrope", sans-serif; }
.mg-note a { text-decoration: underline; text-underline-offset: 3px; }
.mg-profile { min-width: 0; overflow: hidden; border: 1px solid var(--mg-line); border-radius: 20px; background: var(--ps-panel); box-shadow: 0 26px 50px -44px rgba(0,0,0,.7); }
.mg-profile-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 24px; border-bottom: 1px solid var(--mg-line); font: 750 11px/1.3 "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.mg-pill { padding: 5px 8px; border: 1px solid var(--mg-line); border-radius: 5px; color: var(--mg-soft); font-size: 9px; letter-spacing: .07em; }
.mg-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-bottom: 1px solid var(--mg-line); padding: 0 14px; }
.mg-tabs button { position: relative; min-width: 0; min-height: 55px; padding: 10px 6px; border: 0; background: transparent; color: var(--mg-soft); cursor: pointer; font: 650 12px/1.4 "Manrope", sans-serif; transition: color 180ms ease, background 180ms ease; }
.mg-tabs button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 1px; background: var(--ps-jade, #2ed9a6); transform: scaleX(0); transition: transform 180ms ease; }
.mg-tabs button[aria-selected="true"] { color: var(--mg-text); background: var(--ps-panel); }
.mg-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.mg-tabs button:focus-visible { outline-offset: -5px; }
.mg-profile-panel { min-height: 372px; padding: 27px 26px 12px; animation: mg-panel-in 180ms ease both; }
.mg-profile-panel[hidden] { display: none !important; }
.mg-section .mg-panel-label { margin: 0 0 12px; color: var(--ps-jade, #2ed9a6); font: 750 10px/1.4 "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.mg-section .mg-profile-panel h3 { margin: 0; font: 750 clamp(23px,2.5vw,29px)/1.13 "Bricolage Grotesque","Manrope",sans-serif; letter-spacing: -.025em; }
.mg-profile-panel > p:not(.mg-panel-label) { margin: 15px 0 22px; color: var(--mg-soft); font: 500 14px/1.65 "Manrope", sans-serif; }
.mg-profile-facts { margin: 0; }
.mg-profile-facts > div { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--mg-line); }
.mg-profile-facts dt { padding-top: 2px; color: var(--mg-soft); font: 650 11px/1.5 "Manrope", sans-serif; }
.mg-profile-facts dd { margin: 0; font: 600 13px/1.55 "Manrope", sans-serif; }
.mg-profile-bottom { display: flex; align-items: center; gap: 12px; padding: 17px 26px; border-top: 1px solid var(--mg-line); color: var(--mg-soft); font: 500 11px/1.5 "Manrope",sans-serif; }
.mg-profile-bottom > span:first-child { color: var(--ps-jade, #2ed9a6); font-size: 22px; }
.mg-start-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 32px; }
.mg-route { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(24px,3vw,38px); border: 1px solid var(--mg-line); border-radius: 20px; background: var(--ps-panel); }
.mg-route-label { display: inline-flex; align-items: center; gap: 12px; font: 700 12px/1.4 "Manrope",sans-serif; color: var(--mg-soft); }
.mg-route-label svg { width: 24px; height: 24px; fill: none; stroke: var(--ps-jade,#2ed9a6); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mg-route--management .mg-route-label svg { stroke: var(--ps-coral,#ff735f); }
.mg-section .mg-route h3 { max-width: 20ch; margin: 25px 0 0; font: 730 clamp(24px,2.4vw,30px)/1.15 "Bricolage Grotesque","Manrope",sans-serif; letter-spacing: -.025em; }
.mg-route p { flex: 1; margin: 17px 0 28px; color: var(--mg-soft); font: 500 14px/1.65 "Manrope",sans-serif; }
.mg-route .pr-metal-button, .mg-outline-button { width: 100%; min-height: 56px; font-size: 13px; line-height: 1.4; }
.mg-route .pr-metal-button { color: #fff; }
.mg-outline-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 20px; border: 1px solid var(--mg-line); border-radius: 999px; font: 750 13px/1.4 "Manrope",sans-serif; text-decoration: none; transition: border-color 180ms ease; }
.mg-outline-button:hover { border-color: var(--ps-jade,#2ed9a6); }
.mg-route a svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mg-route small { margin-top: 15px; color: var(--mg-soft); font: 500 11px/1.6 "Manrope",sans-serif; }
.mg-faq { border-top: 1px solid var(--mg-line); }
.mg-faq details { border-bottom: 1px solid var(--mg-line); }
.mg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 78px; padding: 22px 0; cursor: pointer; list-style: none; font: 700 15px/1.5 "Manrope",sans-serif; }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary > span { flex: 0 0 26px; display: flex; align-items: center; justify-content: center; align-self: center; box-sizing: border-box; width: 26px; height: 26px; border: 1px solid var(--mg-line); border-radius: 50%; color: var(--ps-jade,#2ed9a6); line-height: 0; }
.mg-faq summary > span > svg { display: block; flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; transform-origin: center; transition: transform 180ms ease; }
.mg-faq details[open] summary > span > svg { transform: rotate(45deg); }
.mg-faq-answer { padding: 0 36px 25px 0; color: var(--mg-soft); font: 500 14px/1.7 "Manrope",sans-serif; }
.mg-faq-answer p { margin: 0 0 12px; }
.mg-faq-answer a { display: inline-flex; gap: 9px; padding: 7px 0; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; color: var(--mg-text); }
@keyframes mg-panel-in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .mg-profile-layout, .mg-questions-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .mg-start-grid { grid-template-columns: minmax(0,1fr); }
  .mg-profile-top { padding-inline: 20px; }
  .mg-profile-panel { min-height: 400px; padding-inline: 20px; }
  .mg-profile-facts > div { grid-template-columns: 74px minmax(0,1fr); }
  .mg-profile-bottom { padding-inline: 20px; }
  .mg-route { padding: 24px; }
}
@media (max-width: 380px) {
  .mg-tabs { padding-inline: 6px; }
  .mg-tabs button { font-size: 11px; }
  .mg-profile-panel { padding-inline: 17px; }
  .mg-profile-facts > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .mg-profile-facts dt { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
  .mg-route { padding: 20px; }
  .mg-route .pr-metal-button, .mg-outline-button { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-section *, .mg-section *::before, .mg-section *::after { animation: none !important; transition: none !important; }
}
