.global-skip { position: fixed; top: 10px; left: 10px; z-index: 120; padding: 9px 13px; color: #fffdf8; background: #17303d; transform: translateY(-160%); }
.global-skip:focus { transform: translateY(0); }
.global-header { position: sticky; top: 0; z-index: 80; background: rgba(255,253,248,.97); border-bottom: 1px solid #d9cfbf; backdrop-filter: blur(12px); }
.global-header-inner { width: min(1180px, calc(100% - 40px)); min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; margin: 0 auto; }
.global-brand { display: flex; align-items: center; gap: 10px; color: #17303d; font-size: .88rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.global-brand-mark { width: 34px; aspect-ratio: 1; display: grid; place-items: center; color: #fffdf8; background: #c85d43; border-radius: 50% 50% 50% 8px; transform: rotate(-8deg); font-family: Georgia, serif; }
.global-nav { display: flex; justify-content: center; gap: 4px; }
.global-nav-group { position: relative; }
.global-nav-top { display: flex; align-items: center; }
.global-nav-link { min-height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 13px; color: #17303d; background: transparent; border: 0; border-radius: 8px; font-family: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.global-nav-link::after { content: ""; width: 7px; height: 7px; flex: 0 0 auto; margin-top: -4px; border-right: 1.5px solid #7c898d; border-bottom: 1.5px solid #7c898d; transform: rotate(45deg); transition: margin .18s ease, transform .18s ease; }
.global-nav-group.open .global-nav-link::after { margin-top: 4px; transform: rotate(225deg); }
.global-nav-group.active .global-nav-link, .global-nav-link:hover, .global-nav-link:focus-visible { color: #9f3e2c; background: #f5f0e6; }
.global-mega { position: absolute; top: calc(100% - 2px); left: 50%; width: min(640px, calc(100vw - 40px)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; padding: 24px 28px 26px; visibility: hidden; opacity: 0; transform: translate(-50%, 8px); background: #fffdf8; border: 1px solid #d9cfbf; border-radius: 4px; box-shadow: 0 20px 44px rgba(23,48,61,.14); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.global-nav-group.open .global-mega { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.global-nav-group--before .global-mega { left: 0; transform: translate(0, 8px); }
.global-nav-group--before.open .global-mega { transform: translate(0, 0); }
.global-nav-group--after .global-mega { right: 0; left: auto; transform: translate(0, 8px); }
.global-nav-group--after.open .global-mega { transform: translate(0, 0); }
.global-mega-title { grid-column: 1 / -1; padding: 0 0 14px; color: #9f3e2c; border-bottom: 1px solid #d9cfbf; font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.global-mega a { position: relative; min-height: 76px; display: flex; align-items: center; padding: 15px 30px 15px 0; color: #17303d; border-bottom: 1px solid #e8e0d3; text-decoration: none; transition: color .2s ease; }
.global-mega a::after { content: "→"; position: absolute; right: 2px; color: #c85d43; opacity: 0; transform: translateX(-5px); transition: opacity .2s ease, transform .2s ease; }
.global-mega a:hover, .global-mega a:focus-visible { color: #9f3e2c; }
.global-mega a:hover::after, .global-mega a:focus-visible::after { opacity: 1; transform: translateX(0); }
.global-mega strong { display: block; font-size: .82rem; }
.global-mega span:last-child { display: block; margin-top: 3px; color: #5b696d; font-size: .69rem; line-height: 1.35; }
.global-nav-cta { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; padding: 0 17px; color: #fffdf8; background: #c85d43; border: 1px solid #c85d43; border-radius: 999px; font-size: .8rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.global-nav-cta:hover, .global-nav-cta:focus-visible, .global-nav-cta.active { background: #9f3e2c; }
.global-cta { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; color: #fffdf8; background: #c85d43; border: 1px solid #c85d43; border-radius: 999px; font-size: .82rem; font-weight: 850; text-decoration: none; }
.global-cta:hover { background: #9f3e2c; }
.global-menu-toggle { display: none; width: 44px; height: 44px; place-items: center; color: #17303d; background: #fffdf8; border: 1px solid #d9cfbf; border-radius: 10px; font-size: 1.25rem; cursor: pointer; }
.global-footer { padding: 48px 0 26px; color: #5b696d; background: #fffdf8; border-top: 1px solid #d9cfbf; }
.global-footer-grid { width: min(1180px, calc(100% - 40px)); display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 28px; margin: 0 auto; }
.global-footer h3 { margin: 0 0 12px; color: #17303d; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.global-footer p { max-width: 260px; font-size: .78rem; }
.global-footer ul { margin: 0; padding: 0; list-style: none; }
.global-footer li { margin-bottom: 8px; }
.global-footer a { color: #5b696d; font-size: .76rem; text-decoration: none; }
.global-footer a:hover { color: #9f3e2c; }
.global-footer-bottom { width: min(1180px, calc(100% - 40px)); display: flex; justify-content: space-between; gap: 20px; margin: 34px auto 0; padding-top: 20px; border-top: 1px solid #d9cfbf; font-size: .68rem; }
.compact-head { padding: 34px 0 22px; background: #f5f0e6; }
.compact-head .wrap { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.compact-head h1 { max-width: 820px; margin: 0 0 7px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.02; }
.compact-head p { max-width: 680px; margin: 0; color: #5b696d; font-size: .92rem; }
.breadcrumbs { margin-bottom: 8px; color: #9f3e2c; font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.head-status { flex: 0 0 auto; padding: 10px 13px; color: #17303d; background: #fffdf8; border: 1px solid #d9cfbf; border-radius: 10px; font-size: .75rem; font-weight: 800; }
.tool-workspace, .plan-workspace { padding-top: 24px !important; }
.compact-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.compact-meta span { padding: 6px 9px; color: #17303d; background: #fffdf8; border: 1px solid #d9cfbf; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.compact-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: #5b696d; font-size: .75rem; font-weight: 800; }
@media (max-width: 900px) {
  .global-header-inner { grid-template-columns: 1fr auto auto; gap: 10px; }
  .global-menu-toggle { display: grid; }
  .global-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; max-height: calc(100vh - 120px); overflow-y: auto; padding: 12px 20px 20px; background: #fffdf8; border-bottom: 1px solid #d9cfbf; box-shadow: 0 16px 30px rgba(23,48,61,.12); }
  .global-nav.open { display: block; }
  .global-nav-group { border-bottom: 1px solid #e8e0d3; }
  .global-nav-top { justify-content: space-between; }
  .global-nav-link { width: 100%; justify-content: space-between; padding-left: 4px; }
  .global-mega { position: static; width: auto; display: none; grid-template-columns: 1fr; visibility: visible; opacity: 1; transform: none !important; padding: 0 0 10px; border: 0; box-shadow: none; }
  .global-mega-title { padding: 12px 4px 8px; }
  .global-mega a { min-height: 64px; padding-left: 4px; }
  .global-nav-group.open .global-mega { display: block; }
  .global-nav-group.open .global-mega { transform: none; }
  .global-nav-cta { width: 100%; min-height: 48px; margin: 14px 0 0; border-radius: 6px; }
  .global-footer-grid { grid-template-columns: 1fr 1fr; }
  .global-footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .global-header-inner, .global-footer-grid, .global-footer-bottom { width: min(100% - 28px, 1180px); }
  .global-brand span:last-child { display: none; }
  .global-cta { padding: 0 13px; font-size: .75rem; }
  .compact-head .wrap { align-items: flex-start; flex-direction: column; }
  .head-status { align-self: flex-start; }
  .global-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .global-footer-bottom { flex-direction: column; }
}
