@import url("/static/shared/fonts.css");

:root { --app-header-height: 56px; --app-workspace-max: 1400px; }

.app-topbar, .app-shell > .sidebar { -webkit-font-smoothing: antialiased; }

.app-topbar { position: sticky; top: 0; z-index: 20; box-sizing: border-box; display: flex; align-items: center; gap: 16px; height: var(--app-header-height); padding: 0 32px 0 0; border-bottom: 1px solid #E7E9E6; background: #FFFFFF; color: #141816; font-family: 'IBM Plex Sans', sans-serif; }
.app-topbar .brand-cell { flex: none; display: flex; align-items: center; height: 55px; padding-left: 20px; color: #15251E; text-decoration: none; }
.app-topbar .wordmark { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; line-height: 1; }
.app-topbar .wordmark-name { color: #141816; font: 600 22px/1 'IBM Plex Serif', Georgia, serif; letter-spacing: -0.01em; }
.app-topbar .wordmark-descriptor { color: #858C87; font: 500 19px/1 'IBM Plex Serif', Georgia, serif; }
.topbar-space { flex: 1; }
.topbar-search { display: flex; align-items: center; gap: 8px; flex: 0 1 min(340px, 36vw); min-width: 100px; height: 36px; box-sizing: border-box; padding: 0 8px 0 11px; border: 1px solid #D6DAD5; border-radius: 8px; background: #F5F6F3; color: #858C87; cursor: text; transition: border-color .12s, background .12s, box-shadow .12s; }
.topbar-search:hover { border-color: #C6CBC5; }
.topbar-search:focus-within { border-color: #1E5C42; background: #FFFFFF; box-shadow: 0 0 0 3px rgb(30 92 66 / 12%); }
.topbar-search svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.topbar-search input { flex: 1; min-width: 0; width: 100%; height: 34px; padding: 0; border: 0; outline: 0; background: transparent; color: #141816; font: 13.5px 'IBM Plex Sans', sans-serif; }
.topbar-search input::placeholder { color: #858C87; }
@media (max-width: 1199px) { .app-topbar { padding-right: 24px; } }
.account-slot { flex: none; width: 64px; margin-top: auto; }

/* Only the surrounding shell changes on Applications, Resume and Feed Status. */
.shell.app-shell { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: calc(100vh - var(--app-header-height)); }
@media (min-width: 761px) {
  body:has(> .app-shell) { background: #E6EAE3; }
  .app-topbar, .shell.app-shell {
    width: 100%; max-width: calc(76px + var(--app-workspace-max));
    box-shadow: 1px 0 0 #CDD4C9, 12px 0 28px -12px rgb(21 37 30 / 6%);
  }
  .shell.app-shell { background: #FFFFFF; }
}
.app-shell > .sidebar { position: sticky; top: var(--app-header-height); z-index: 21; align-self: start; box-sizing: border-box; width: 76px; height: calc(100vh - var(--app-header-height)); min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 14px; background: #15251E; color: #FFFFFF; }
.app-shell .side-nav { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: none; margin: 0; padding: 0 6px; overflow: visible; }
.app-shell .side-nav a { position: relative; box-sizing: border-box; flex: none; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 9px 0 7px; border-radius: 10px; background: transparent; color: rgb(255 255 255 / 68%); font: 500 11px/1.45 'IBM Plex Sans', sans-serif; text-decoration: none; white-space: nowrap; transition: background-color 120ms ease, color 120ms ease; }
.app-shell .side-nav a:hover { background: #1D3027; color: #FFFFFF; }
.app-shell .side-nav a.active { background: #22372D; color: #FFFFFF; font-weight: 600; }
.app-shell .side-nav .nav-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell .side-nav a.active .nav-icon { color: #D5E88A; }
.app-shell .side-nav [hidden] { display: none; }
.app-shell .side-nav a:focus-visible { outline: 2px solid #D9F36A; outline-offset: 2px; }
.app-topbar a:focus-visible, .app-topbar button:focus-visible { outline: 2px solid #1E5C42; outline-offset: 2px; }

/* The shared identity control stays at the foot of the navigation rail. */
.sidebar .account { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; border-radius: 10px; color: rgb(255 255 255 / 68%); font: 500 11px/1.45 'IBM Plex Sans', sans-serif; text-decoration: none; }
.sidebar .account-avatar { box-sizing: border-box; flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 9px 0 7px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.sidebar .account-initials { position: relative; box-sizing: border-box; width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #E1CDB5; color: #4B3928; font: 600 12px/1 'IBM Plex Sans', sans-serif; }
.sidebar .account-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sidebar .account-initials.is-empty { border: 1px solid rgb(255 255 255 / 22%); background: #22372D; color: rgb(255 255 255 / 68%); }
.sidebar .account-avatar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sidebar .account.is-guest:hover, .sidebar .account-avatar:hover, .sidebar .account.is-open .account-avatar { background: #1D3027; color: #FFFFFF; }
.sidebar .account.is-guest:focus-visible, .sidebar .account-avatar:focus-visible, .sidebar .account-menu-item:focus-visible { outline: 2px solid #D9F36A; outline-offset: 2px; }
.sidebar .account-text, .sidebar .account-more { display: none; }
.sidebar .account-menu { position: absolute; top: auto; right: auto; bottom: calc(100% + 10px); left: 0; z-index: 25; box-sizing: border-box; display: none; width: 240px; max-width: calc(100vw - 24px); border: 1px solid #D9DDD9; border-radius: 10px; background: #FFFFFF; padding: 6px; box-shadow: 0 8px 24px rgb(20 24 22 / 14%); }
.sidebar .account.is-open .account-menu { display: block; }
.sidebar .account-menu-name { margin: 0; padding: 6px 8px 0; color: #141816; font: 600 13px/1.5 'IBM Plex Sans', sans-serif; }
.sidebar .account-menu-email { overflow-wrap: anywhere; margin: 0; padding: 3px 8px 8px; border-bottom: 1px solid #E7E9E6; color: #59615C; font: 400 12px/1.5 'IBM Plex Sans', sans-serif; }
.sidebar .account-menu-item { width: 100%; display: block; margin: 4px 0 0; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: #2D3330; font: 500 13px/1.5 'IBM Plex Sans', sans-serif; text-align: left; cursor: pointer; }
.sidebar .account-menu-item:hover { background: #F1F3F0; color: #141816; }

@media (max-width: 760px) {
  .app-topbar { position: static; flex-wrap: wrap; height: auto; min-height: var(--app-header-height); padding: 0 16px 8px 0; row-gap: 8px; }
  .app-topbar .brand-cell { padding-left: 16px; }
  .topbar-search { order: 3; flex: 1 0 calc(100% - 16px); margin-left: 16px; }
  .shell.app-shell { display: flex; flex-direction: column; min-height: 0; }
  .app-shell > .sidebar { position: static; align-self: stretch; flex-direction: row; width: auto; height: auto; min-height: 0; padding: 6px 12px; gap: 8px; }
  .app-shell .side-nav { flex: 1; flex-direction: row; gap: 4px; padding: 0; }
  .app-shell .side-nav a { flex: 1; }
  .account-slot { width: 48px; margin-top: 0; }
  .sidebar .account-avatar { width: 48px; padding: 2px 0; gap: 2px; }
  .sidebar .account-menu { top: calc(100% + 10px); right: 0; bottom: auto; left: auto; }
  .opportunities-app .sidebar .account-menu { top: auto; bottom: calc(100% + 10px); }
}
@media (max-width: 400px) { .app-topbar .wordmark-name { font-size: 22px; } .app-topbar .wordmark-descriptor { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .app-shell .side-nav a { transition: none; } }
