/* Student workspace chrome. Page families own their content; this file owns the shell and its offsets. */
body.dp-app-shell {
  --dp-sidebar-width:240px;
  --dp-header-height:72px;
  --dp-bottom-nav-height:0px;
  --dp-ink:var(--ds-ink,#192840);
  --dp-muted:var(--ds-muted,#4e5e74);
  --dp-blue:var(--ds-cobalt,#EB6600);
  --dp-line:var(--ds-border,#d9e1ec);
  margin:0;
  padding:var(--dp-header-height) 0 var(--dp-bottom-nav-height) var(--dp-sidebar-width);
  min-width:0;
  min-height:100dvh;
  color-scheme:light;
  background:var(--ds-canvas,#f1f4f9);
  color:var(--dp-ink);
  font-family:var(--ds-font,"Geist",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.dp-app-shell *, .dp-app-shell *::before, .dp-app-shell *::after { box-sizing:border-box; }
/* Standalone page chrome is replaced only after the live workspace shell exists. Dialog headers remain intact. */
.dp-app-shell > :is(.site-header,.portal-header,.growth-top,.site-footer,.portal-footer),
.dp-app-shell > header:not(.dp-shell-header),
.dp-app-shell .workspace-nav { display:none; }
.dp-app-shell > main, .dp-app-shell #account-main { min-width:0; }
.dp-app-shell :is(button,summary,a) { touch-action:manipulation; }
.dp-app-shell :is(button,summary) { cursor:pointer; }
.dp-app-shell button:disabled { cursor:not-allowed; }
#degree-app-shell { color:var(--dp-ink); font:inherit; line-height:1.5; }
#degree-app-shell [hidden] { display:none!important; }
#degree-app-shell :is(a,button) { -webkit-tap-highlight-color:transparent; }
#degree-app-shell a { text-decoration:none; }
#degree-app-shell :is(a,button):focus-visible { outline:3px solid var(--dp-blue); outline-offset:3px; }
#degree-app-shell svg { display:block; flex:none; width:20px; height:20px; }

/* Desktop: familiar, persistent navigation with a quiet supporting rail. */
.dp-shell-sidebar { position:fixed; inset:0 auto 0 0; z-index:45; display:flex; flex-direction:column; width:var(--dp-sidebar-width); padding:20px 16px 16px; overflow-y:auto; overscroll-behavior:contain; border-right:1px solid var(--dp-line); background:var(--ds-nav,#efeeeb); }
#degree-app-shell .dp-shell-brand { display:flex; align-items:center; min-height:48px; margin:0 8px 28px; color:var(--dp-ink); }
#degree-app-shell .dp-shell-brand .ds-wordmark { font-size:25px; }
.dp-shell-nav { display:grid; gap:6px; }
#degree-app-shell .dp-shell-nav a { display:flex; align-items:center; gap:12px; min-height:48px; padding:12px; border-radius:8px; color:var(--dp-muted); font-size:16px; font-weight:550; line-height:1.4; }
#degree-app-shell .dp-shell-nav a:hover { color:var(--dp-ink); background:rgb(255 255 255 / 66%); }
#degree-app-shell .dp-shell-nav a[aria-current="page"] { color:var(--tok-acc-text,#B84F00); background:var(--ds-surface,#fff); box-shadow:inset 3px 0 0 var(--dp-blue); font-weight:650; }
#degree-app-shell .dp-shell-nav a[aria-current="page"] svg { stroke-width:2; }
.dp-shell-secondary { display:grid; gap:2px; margin-top:28px; padding-top:18px; border-top:1px solid var(--dp-line); }
#degree-app-shell .dp-shell-website { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; padding:10px 12px; border-radius:8px; color:var(--dp-muted); font-size:14px; font-weight:500; line-height:1.5; }
#degree-app-shell .dp-shell-website:hover { color:var(--tok-acc-text,#B84F00); background:rgb(255 255 255 / 66%); }
#degree-app-shell .dp-shell-website[aria-current="page"] { color:var(--tok-acc-text,#B84F00); background:var(--ds-surface,#fff); font-weight:650; }
#degree-app-shell .dp-shell-website svg { width:16px; height:16px; }
.dp-shell-sidebar-bottom { margin-top:auto; padding-top:24px; }
#degree-app-shell .dp-shell-account { display:flex; align-items:flex-start; gap:10px; min-height:68px; padding:16px 8px 4px; border-top:1px solid var(--dp-line); color:var(--dp-ink); }
.dp-shell-avatar { display:grid; place-items:center; flex:none; width:36px; height:36px; border:1px solid var(--dp-line); border-radius:50%; color:var(--tok-acc-text,#B84F00); background:var(--ds-surface,#fff); }
#degree-app-shell .dp-shell-avatar svg { width:18px; height:18px; }
.dp-shell-avatar-initial { font-size:16px; font-weight:650; }
.dp-shell-account > span:last-child { min-width:0; }
.dp-shell-account strong { display:block; overflow:hidden; color:var(--dp-ink); font-size:14px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.dp-shell-account small { display:block; margin-top:3px; color:var(--dp-muted); font-size:14px; font-weight:400; line-height:1.45; overflow-wrap:anywhere; }

/* A light task header keeps the real save state visible without competing with the plan. */
.dp-app-shell #degree-app-shell .dp-shell-header { position:fixed; inset:0 0 auto var(--dp-sidebar-width); z-index:40; display:flex; align-items:center; gap:12px 24px; width:auto; max-width:none; min-height:72px; margin:0; padding:12px 32px; border:0; border-bottom:1px solid var(--dp-line); background:var(--ds-surface,#fff); box-shadow:none; }
.dp-shell-location { flex:1; min-width:0; }
.dp-shell-page-title { color:var(--dp-ink); font-size:16px; font-weight:600; overflow-wrap:anywhere; }
.dp-shell-header-actions { display:flex; align-items:center; flex:none; gap:12px; }
.dp-shell-save { display:flex; align-items:center; gap:6px; max-width:34ch; color:var(--dp-muted); font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
#degree-app-shell .dp-shell-save svg { width:16px; height:16px; color:var(--ds-success,#166534); }
.dp-shell-save.dp-shell-save-warning { color:var(--ds-warning,#92400e); }
#degree-app-shell .dp-shell-save-account { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 14px; border:1px solid var(--dp-blue); border-radius:8px; color:var(--tok-acc-text,#B84F00); background:var(--ds-surface,#fff); font-size:14px; font-weight:650; line-height:1.4; text-align:center; white-space:nowrap; }
#degree-app-shell .dp-shell-save-account:hover { color:var(--tok-acc-text,#B84F00); background:var(--ds-soft-blue,#FFF0E3); }
#degree-app-shell .dp-shell-account-button { display:grid; place-items:center; flex:none; width:44px; min-height:44px; border:1px solid var(--dp-line); border-radius:50%; color:var(--dp-muted); background:var(--ds-surface,#fff); }
#degree-app-shell .dp-shell-account-button:hover { border-color:var(--tok-acc-btn-hover,#A83F00); color:var(--tok-acc-text,#B84F00); }
.dp-shell-mobile-brand, .dp-shell-bottom, .dp-shell-more-toggle, .dp-shell-more-menu { display:none; }
.dp-app-shell #portal-savings, .dp-app-shell #sheet-savings { top:var(--dp-header-height); }
.dp-app-shell #sheet-dialog-savings { top:0; }

/* Retained research workspace: hide the old landing page, keep its school policies and resources. */
.dp-app-shell.dp-explore-page > div[style*="background:#dbf484"], .dp-app-shell.dp-explore-page > footer:not(.dp-legal-footer),
.dp-app-shell.dp-explore-page :is(.hero,.promise,#workspace,.closing) { display:none; }
.dp-app-shell.dp-explore-page #learn > .eyebrow,
.dp-app-shell.dp-explore-page #learn > h2,
.dp-app-shell.dp-explore-page .learn-grid { display:none; }

/* App pages keep legal links close to the content, clear of the phone navigation. */
.dp-legal-footer{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin:32px 0 0;padding:20px;border-top:1px solid var(--dp-line,var(--ds-border));font-size:14px;line-height:1.5;color:var(--dp-muted,var(--ds-muted))}
.dp-legal-footer a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.dp-legal-footer a:hover { color:var(--tok-acc-text); }

@media (max-width:1100px) and (min-width:901px) {
  body.dp-app-shell { --dp-sidebar-width:224px; }
  .dp-shell-sidebar { padding-inline:12px; }
  #degree-app-shell .dp-shell-brand { margin-inline:4px; }
  #degree-app-shell .dp-shell-brand .ds-wordmark { font-size:24px; }
  .dp-app-shell #degree-app-shell .dp-shell-header { padding-inline:24px; gap:16px; }
}
@media (max-width:900px) {
  body.dp-app-shell { --dp-sidebar-width:0px; --dp-bottom-nav-height:calc(72px + env(safe-area-inset-bottom,0px)); }
  .dp-shell-sidebar { display:none; }
  .dp-app-shell #degree-app-shell .dp-shell-header { left:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; min-height:72px; padding:12px 20px; }
  #degree-app-shell .dp-shell-mobile-brand { display:inline-flex; align-items:center; min-height:44px; color:var(--dp-ink); }
  #degree-app-shell .dp-shell-mobile-brand .ds-wordmark { font-size:24px; }
  .dp-shell-page-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .dp-shell-header-actions { grid-column:2; grid-row:1; gap:8px; }
  #degree-app-shell .dp-shell-account-button { display:none; }
  #degree-app-shell .dp-shell-more-toggle { display:grid; place-items:center; width:44px; min-height:44px; padding:0; border:1px solid var(--dp-line); border-radius:8px; color:var(--dp-ink); background:var(--ds-surface,#fff); font:inherit; cursor:pointer; }
  #degree-app-shell .dp-shell-more-toggle:hover, #degree-app-shell .dp-shell-more-toggle[aria-expanded="true"] { background:var(--ds-soft-blue,#FFF0E3); border-color:var(--dp-blue); }
  .dp-shell-more-toggle span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .dp-shell-save { grid-column:1 / -1; grid-row:2; max-width:none; margin-top:2px; font-size:14px; }
  #degree-app-shell .dp-shell-more-menu:not([hidden]) { position:fixed; inset:var(--dp-header-height) 12px auto; z-index:46; display:grid; max-height:calc(100dvh - var(--dp-header-height) - var(--dp-bottom-nav-height) - 20px); padding:10px; overflow-y:auto; overscroll-behavior:contain; border:1px solid var(--dp-line); border-radius:12px; background:var(--ds-surface,#fff); box-shadow:var(--tok-shadow-panel); }
  #degree-app-shell .dp-shell-more-menu .dp-shell-website { min-height:48px; color:var(--dp-ink); font-size:16px; }
  #degree-app-shell .dp-shell-more-menu .dp-shell-website:hover { color:var(--tok-acc-text,#B84F00); background:var(--ds-soft-blue,#FFF0E3); }
  #degree-app-shell .dp-shell-bottom { position:fixed; inset:auto 0 0; z-index:40; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); min-height:var(--dp-bottom-nav-height); padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--dp-line); background:var(--ds-surface,#fff); }
  #degree-app-shell .dp-shell-bottom a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:0; min-height:62px; padding:6px 2px; border-radius:8px; color:var(--dp-muted); font-size:14px; font-weight:550; line-height:1.25; text-align:center; }
  #degree-app-shell .dp-shell-bottom a svg { width:21px; height:21px; }
  #degree-app-shell .dp-shell-bottom a[aria-current="page"] { color:var(--tok-acc-text,#B84F00); background:var(--ds-soft-blue,#FFF0E3); font-weight:650; }
  #degree-app-shell .dp-shell-bottom a:hover { color:var(--tok-acc-text,#B84F00); background:var(--ds-canvas,#f1f4f9); }
}
@media (max-width:420px) {
  .dp-app-shell #degree-app-shell .dp-shell-header { padding-inline:12px; gap:4px 8px; }
  #degree-app-shell .dp-shell-mobile-brand .ds-wordmark { font-size:24px; }
  #degree-app-shell .dp-shell-save-account { padding-inline:10px; }
  #degree-app-shell .dp-shell-bottom { padding-inline:4px; }
}
@media (prefers-reduced-motion:reduce) { #degree-app-shell * { animation:none; transition:none; scroll-behavior:auto; } }
@media print {
  body.dp-app-shell { padding:0!important; color:#000; background:#fff; }
  #degree-app-shell { display:none!important; }
}
