:root {
  --inov-navy: #1a303a;
  --inov-beige: #d4c3a3;
  --inov-paper: #f9f6f0;
  --inov-surface: #ffffff;
  --inov-muted: #65716f;
  --inov-line: #ded8cd;
}

.inov-shell-header {
  position: sticky;
  top: 0;
  z-index: 2300;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px clamp(16px, 4vw, 42px);
  background: rgba(249, 246, 240, .96);
  border-bottom: 1px solid var(--inov-line);
  box-shadow: 0 4px 18px rgba(26, 48, 58, .06);
  backdrop-filter: blur(14px);
}

.inov-shell-brand {
  width: 132px;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(26, 48, 58, .08);
  border-radius: 12px;
  background: #fff;
}

.inov-shell-brand img { width: 100%; height: 100%; display: block; object-fit: contain; }
.inov-shell-brand:focus-visible,
.inov-shell-desktop-nav a:focus-visible,
.inov-utility-menu summary:focus-visible,
.inov-utility-menu a:focus-visible,
.inov-utility-menu button:focus-visible,
.inov-bottom-nav a:focus-visible { outline: 3px solid #168db8; outline-offset: 2px; }

.inov-shell-desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.inov-shell-desktop-nav a { color: var(--inov-navy); text-decoration: none; font-size: .9rem; font-weight: 750; }
.inov-shell-desktop-nav a[aria-current="page"] { color: #087ca7; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 9px; }

.inov-utility-menu { position: relative; }
.inov-utility-menu summary { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--inov-line); border-radius: 12px; background: #fff; cursor: pointer; list-style: none; }
.inov-utility-menu summary::-webkit-details-marker { display: none; }
.inov-utility-menu summary span { width: 20px; height: 2px; display: block; border-radius: 2px; background: var(--inov-navy); transition: transform .2s, opacity .2s; }
.inov-utility-menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.inov-utility-menu[open] summary span:nth-child(2) { opacity: 0; }
.inov-utility-menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.inov-utility-menu nav { position: absolute; top: calc(100% + 10px); right: 0; width: min(290px, calc(100vw - 24px)); display: grid; padding: 12px; border: 1px solid var(--inov-line); border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(26, 48, 58, .18); }
.inov-utility-menu nav p { margin: 4px 10px 8px; color: var(--inov-muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.inov-utility-menu nav a,
.inov-utility-menu nav button { min-height: 44px; display: flex; align-items: center; padding: 8px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--inov-navy); text-decoration: none; font: inherit; font-size: .9rem; font-weight: 700; text-align: left; cursor: pointer; }
.inov-utility-menu nav a:hover,
.inov-utility-menu nav button:hover { background: var(--inov-paper); }
.inov-utility-menu nav button { margin-top: 5px; border-top: 1px solid var(--inov-line); color: #9b2f2f; }

.inov-bottom-nav { display: none; }

body.has-app-shell > #navArea,
body.has-app-shell > .legacy-page-header,
body.has-app-shell > .bottom-nav,
body.has-app-shell > .calendar-bottom-nav { display: none !important; }

body.has-app-shell {
  --ink: var(--inov-navy);
  --muted: var(--inov-muted);
  --paper: var(--inov-paper);
  --card: #fff;
  --line: var(--inov-line);
  --green: #087ca7;
  --green-dark: var(--inov-navy);
  --mint: #e8f5f9;
  --blue: #168db8;
  background: var(--inov-paper);
  color: var(--inov-navy);
  display: block;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
body.has-app-shell main,
body.has-app-shell .schedule-manage-page { margin-top: 32px; }
body.has-app-shell .today-shell { max-width: 1120px; }
body.has-app-shell .next-card { background: var(--inov-navy); }
body.has-app-shell .schedule-panel,
body.has-app-shell .progress-panel,
body.has-app-shell .tomorrow-panel,
body.has-app-shell .today-news-panel,
body.has-app-shell .quick-grid a { border-color: var(--inov-line); background: #fff; }
body.has-app-shell .eyebrow,
body.has-app-shell .section-heading a { color: #087ca7; }
body.has-app-shell .progress-ring { background: conic-gradient(#168db8 var(--progress), #ebe6dc 0); }

@media (max-width: 760px) {
  body.has-app-shell { padding: 0 0 calc(76px + env(safe-area-inset-bottom)); }
  body.has-app-shell main,
  body.has-app-shell .schedule-manage-page { margin-top: 0; padding-top: 28px; }
  body.has-app-shell .mypage-container,
  body.has-app-shell .login-container,
  body.has-app-shell .container { margin-top: 24px; margin-bottom: 24px; }
  .inov-shell-header { min-height: 62px; padding: 7px 14px; }
  .inov-shell-brand { width: 112px; height: 40px; }
  .inov-shell-desktop-nav { display: none; }
  .inov-utility-menu summary { width: 40px; height: 40px; }
  .inov-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2400;
    height: calc(68px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    padding: 7px 6px env(safe-area-inset-bottom);
    border-top: 1px solid var(--inov-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(26, 48, 58, .08);
    backdrop-filter: blur(14px);
  }
  .inov-bottom-nav a { min-width: 0; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; color: var(--inov-muted); text-decoration: none; font-size: 10px; font-weight: 800; line-height: 1; }
  .inov-bottom-nav .nav-icon { height: 23px; display: grid; place-items: center; font-size: 17px; line-height: 1; }
  .inov-bottom-nav .nav-label { white-space: nowrap; }
  .inov-bottom-nav a.active { color: #087ca7; background: #e8f5f9; }
  .inov-bottom-nav .inov-add-action .nav-icon { width: 42px; height: 42px; margin-top: -22px; border: 4px solid #fff; border-radius: 50%; background: var(--inov-navy); color: #fff; font-size: 24px; box-shadow: 0 7px 18px rgba(26, 48, 58, .23); }
  .inov-bottom-nav .inov-add-action .nav-label { margin-top: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  .inov-utility-menu summary span { transition: none; }
}
