/* The signed-in app's frame (Nov 5, 2026; index.html, js/app-shell.js).
   Computers: a sidebar with the sections (a slim rail of icons below 1600px wide, so Find Jobs keeps its search row
   and three columns) and a top bar with a job search, reminders and the Account menu.
   Phones and small tablets (below 900px): the sections become a tab bar at the bottom, with Career Tools as one tab
   and its three tools as tabs at the top of the page. */
#dashboard {
  --side: 248px;
  position: relative;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
}
/* One background for the whole sidebar column, however long the page is. */
#dashboard::before { content: ""; grid-column: 1; grid-row: 1 / -1; border-right: 1px solid var(--line); background: #0f1729; }
/* The page's header (banner) runs across the top: the logo over the sidebar, the top bar over the page. */
.dashboard-header { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-width: 0; }
#dashboard .brand-block { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; min-height: 76px; padding: 12px 24px; }
#dashboard .brand-block .logo { font-size: 32px; line-height: 1; }
#dashboard .brand-block .tagline { font-size: 12px; }

/* Sidebar */
.app-sidebar { grid-column: 1; grid-row: 2; position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 18px; min-height: calc(100vh - 76px); max-height: 100vh; overflow-y: auto; padding: 8px 14px 20px; }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; color: #c7d1e3; font-size: 15px; line-height: 1.25; text-decoration: none; }
.app-nav a:hover { background: var(--card-hover); color: var(--white); }
.app-nav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.app-nav a.active:hover { background: var(--accent-hover); color: var(--accent-ink); }
.app-nav a.active:focus-visible { outline-color: var(--accent-ink); }
.app-nav a:focus-visible { outline-offset: -3px; }
/* Career Tools is a tab only in the phone tab bar. On computers its three tools have their own links. */
.app-nav a[data-group] { display: none; }
.nav-icon { flex-shrink: 0; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-next { margin-top: auto; }
.nav-next-link { display: grid; gap: 9px; padding: 18px 16px; border: 1px solid #2f5a3f; border-radius: 16px; background: linear-gradient(160deg, #1d3a2b, #122219); color: #c4d4c8; font-size: 13px; line-height: 1.35; text-decoration: none; }
.nav-next-link:hover { border-color: var(--accent-line); }
.nav-next-icon { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.nav-next-cta { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin-top: 4px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 800; }
.nav-next-cta::after { content: "\2192"; }
.nav-next-link:hover .nav-next-cta { background: var(--accent-hover); }
.nav-next-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--white); font-size: 17px; font-weight: 800; }
.nav-next-head strong { color: var(--accent); font-size: 17px; }
.nav-next-meter { height: 6px; overflow: hidden; border-radius: 99px; background: #26324a; }
.nav-next-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); }
.nav-next-step { color: #c4d4c8; }

/* Top bar */
.top-bar { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.top-search { position: relative; flex: 0 1 420px; min-width: 0; margin: 0 0 0 auto; }
.top-search input { width: 100%; min-height: 46px; padding: 10px 16px 10px 48px; border: 1px solid var(--field-border); border-radius: 999px; background: #0f1729; color: var(--ink); font: inherit; font-size: 15px; }
.top-search input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.top-search-go { position: absolute; top: 50%; left: 5px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.top-search-go:hover { color: var(--white); }
.top-search-go:focus-visible { outline-offset: 0; }
.icon-button { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: none; color: #c7d1e3; cursor: pointer; text-decoration: none; }
.icon-button:hover, .icon-button[aria-expanded="true"] { border-color: var(--line); background: var(--card); color: var(--white); }
.top-search-link { display: none; }
.reminders-area { position: relative; flex-shrink: 0; margin-left: auto; }
.top-search:not([hidden]) ~ .reminders-area { margin-left: 0; }
.reminders-count { position: absolute; top: 1px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.reminders-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 340px; max-width: calc(100vw - 28px); padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.reminders-title { margin: 0 0 6px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); color: var(--white); font-size: 15px; font-weight: 700; }
.reminders-list { display: grid; gap: 2px; max-height: min(60vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.reminders-list li { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.reminders-list a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.reminders-list a:hover { text-decoration: underline; }
.reminders-list a:focus-visible { outline-offset: 1px; }
.reminder-when { color: var(--muted); font-size: 12px; }
.reminder.overdue .reminder-when { color: #ffb86b; }
.reminders-list .hint { color: var(--muted); font-size: 13px; }
.reminders-all { display: flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 12px; border-top: 1px solid var(--line); color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.reminders-all:hover { text-decoration: underline; }
.reminders-all:focus-visible { outline-offset: -3px; }
.account-area { position: relative; display: flex; align-items: center; flex-shrink: 0; margin-left: auto; }
.reminders-area:not([hidden]) + .account-area { margin-left: 0; }
.account-button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px 4px 4px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.account-button:hover, .account-button.active, .account-button[aria-expanded="true"] { border-color: var(--line); background: var(--card); }
.account-avatar { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--accent-line); border-radius: 50%; background: linear-gradient(135deg, #24334b, #17243a); color: var(--accent); font-size: 16px; font-weight: 700; }
.account-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.account-button[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 270px; max-width: calc(100vw - 28px); padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.account-who { display: grid; gap: 2px; min-width: 0; margin: 0 0 6px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.account-who strong, .account-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-who strong { font-size: 15px; }
.account-who span { color: var(--muted); font-size: 13px; }
.account-who .workspace-label { margin: 4px 0 0; font-size: 11px; color: var(--accent); }
.account-menu a, .account-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: var(--card-hover); }
.account-menu a.active { color: var(--accent); font-weight: 700; }
.account-menu #sign-out { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--muted); }

/* Career Radar: on wide screens its title sits in the top bar, to the left of the search (radar-page.css). */
@media (min-width: 1280px) {
  /* It never reaches the search: the room left of the search, Bell and Account menu (--top-tools) is its limit. */
  #dashboard:has(#tab-radar:not([hidden])) #tab-radar .rh-head { position: absolute; top: 0; left: calc(var(--side) + 24px); height: 76px; max-width: calc(100% - var(--side) - 24px - var(--top-tools, 700px)); margin: 0; }
  #dashboard:has(#tab-radar:not([hidden])) #tab-radar .rh-head > div { min-width: 0; }
  #dashboard:has(#tab-radar:not([hidden])) #tab-radar .rh-head :is(h2, .rh-subtitle) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #dashboard:has(#tab-radar:not([hidden])) > .workspace-shell { padding-top: 18px; }
}

/* The page */
#dashboard > .workspace-shell { grid-column: 2; grid-row: 2; justify-self: center; width: 100%; max-width: 1800px; min-width: 0; padding: 22px 24px 32px; }
/* Career Tools' own tabs: phones only (computers have a sidebar link for each tool). */
.tools-nav { display: none; }

@media (forced-colors: active) {
  .app-nav a.active { text-decoration: underline; text-underline-offset: 4px; }
}

/* Narrower computers and tablets in landscape: a rail of icons with short labels, so Find Jobs keeps room for its
   search row and three columns. */
@media (max-width: 1599px) {
  #dashboard { --side: 96px; }
  #dashboard .brand-block { align-items: center; padding: 12px 6px; }
  #dashboard .brand-block .logo { font-size: 23px; letter-spacing: -1.2px; }
  #dashboard .brand-block .tagline { display: none; }
  .app-sidebar { padding: 8px 8px 24px; }
  .app-nav a { flex-direction: column; justify-content: center; gap: 5px; min-height: 66px; padding: 8px 4px; font-size: 11.5px; line-height: 1.2; text-align: center; }
  .nav-next { display: none; }
  .top-search { flex-basis: 320px; }
  #dashboard { --top-tools: 600px; }
}

/* Phones and small tablets: logo and top bar on top, the sections in a tab bar at the bottom. */
@media (max-width: 899px) {
  html:has(#dashboard:not([hidden])) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  #dashboard { grid-template-columns: minmax(0, 1fr); }
  #dashboard::before { display: none; }
  .dashboard-header { position: relative; grid-template-columns: auto minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  #dashboard .brand-block { align-items: flex-start; min-height: 64px; padding: 10px 0 10px 16px; }
  #dashboard .brand-block .logo { font-size: 27px; letter-spacing: -1.6px; }
  #dashboard .brand-block .tagline { display: block; font-size: 11px; }
  .top-bar { min-height: 64px; padding: 10px 12px 10px 16px; gap: 8px; border-bottom: 0; }
  .app-sidebar { display: contents; }
  .app-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 35; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 2px; padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: rgba(15, 23, 41, 0.97); box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.35); }
  .app-nav a { flex-direction: column; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; font-size: 11px; line-height: 1.15; text-align: center; white-space: nowrap; }
  .app-nav a .nav-label { display: none; }
  .app-nav a::after { content: attr(data-short); }
  .app-nav a.active { box-shadow: inset 0 3px 0 var(--accent); }
  .app-nav a[data-tab="ai"], .app-nav a[data-tab="resumes"], .app-nav a[data-tab="coach"] { display: none; }
  .app-nav a[data-group] { display: flex; }
  .app-nav a.nav-settings { display: none; }
  .top-search { flex: 1 1 auto; max-width: 560px; }
  #dashboard > .workspace-shell { grid-column: 1; padding: 18px 14px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .tools-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; }
  .tools-nav a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
  .tools-nav a:hover { color: var(--white); }
  .tools-nav a.active { border-color: var(--accent-line); background: rgba(167, 255, 120, 0.08); color: var(--accent); }
  /* The reminders open under the top bar, as wide as the screen allows (up to 400px), on the right. */
  .reminders-area { position: static; }
  .reminders-panel { top: calc(100% + 6px); right: 12px; left: 12px; width: auto; max-width: 400px; margin-left: auto; }
}
@media (max-width: 599px) {
  #dashboard .brand-block .tagline { display: none; }
  #dashboard .brand-block { justify-content: center; }
  .top-bar { gap: 6px; padding-right: 10px; }
  .top-search { display: none; }
  .top-search-link { display: grid; margin-left: auto; }
  .reminders-area { margin-left: 0; }
  .account-button { gap: 6px; padding: 3px 8px 3px 3px; font-size: 14px; }
  .account-avatar { width: 34px; height: 34px; font-size: 15px; }
  .account-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
  .app-nav { padding-right: 2px; padding-left: 2px; }
  .app-nav a { padding-right: 0; padding-left: 0; font-size: 10px; }
}
