@font-face {
  font-family: Inter;
  src: local('Inter');
  font-display: swap;
}
:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #292a35;
  background: #fff;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  --muted: #747581;
  --line: #e5e5ec;
  --accent: #5259c9;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input, a { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #747ad9; outline-offset: 4px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; width: 190px; max-width: 100%; height: auto; }
.text-button { font-size: .875rem; color: #62636f; padding: 10px 0; white-space: nowrap; }
.text-button:hover { color: #292a35; text-decoration: underline; text-underline-offset: 4px; }
.flightatom strong { font-weight: 550; color: #666773; }

/* Sign-in */
.login-shell { min-height: 100vh; display: flex; flex-direction: column; background: #fdfdfe; }
.login-header { min-height: 112px; display: flex; align-items: center; padding: 0 6.3%; gap: 28px; }
.workspace-label { border-left: 1px solid #dcdee7; padding-left: 26px; color: var(--muted); font-size: .8125rem; }
.login-help { margin-left: auto; }
.login-main { max-width: 1390px; width: 100%; margin: auto; padding: 58px 7.3% 80px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.login-content h1 { font-size: clamp(50px, 5.2vw, 72px); line-height: 1.1; letter-spacing: -3px; font-weight: 450; }
.login-intro { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); margin-top: 25px; max-width: 350px; }
.signin-area { max-width: 365px; margin-top: 36px; }
.microsoft-button { display: flex; align-items: center; justify-content: center; gap: 14px; background: #565dd7; color: #fff; border-radius: 6px; padding: 18px 20px; font-size: .9375rem; font-weight: 500; transition: background .15s; }
.microsoft-button:hover { background: #474fc3; }
.microsoft-mark { display: grid; width: 18px; height: 18px; grid-template-columns: 1fr 1fr; gap: 2px; flex-shrink: 0; }
.microsoft-mark i { background: #fff; }
.signin-caption { font-size: .8125rem; color: var(--muted); margin-top: 15px; text-align: center; }
.application-directory { padding: 37px 36px 31px; background: #f6f6f9; border: 1px solid #e8e8ee; border-radius: 9px; }
.application-directory h2 { font-size: .8125rem; font-weight: 500; color: #6f707c; margin-bottom: 22px; }
.application-directory ul { padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; column-gap: 28px; }
.application-directory li { padding: 23px 0; border-top: 1px solid #e0e0e8; font-size: 23px; font-weight: 450; letter-spacing: -.6px; }
.application-directory p { margin-top: 22px; padding-top: 23px; border-top: 1px solid #e0e0e8; font-size: .8125rem; color: #777783; line-height: 1.7; }
.login-footer { display: flex; align-items: center; justify-content: space-between; padding: 26px 6.3%; font-size: .75rem; color: #878893; gap: 15px; }
.error-banner { background: #fff1f0; color: #953c36; border-radius: 6px; padding: 14px; margin-top: 20px; font-size: .875rem; line-height: 1.6; }
.dev-preview { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 5px 5px 0 0; background: #eeedf6; color: #6b638b; font-size: .75rem; white-space: nowrap; }

/* Workspace */
.workspace-shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; background: #fafafd; border-right: 1px solid var(--line); padding: 35px 20px 0; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 10; }
.sidebar > .brand { padding: 0 14px; }
.sidebar .brand-logo { width: 160px; }
.organization { padding: 15px 14px 37px; color: #868692; font-size: .75rem; }
.nav-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 5px; font-size: .875rem; text-align: left; color: #74747f; margin-bottom: 3px; }
.nav-link:hover { background: #f0f0f6; color: #4c4c5d; }
.nav-link.active { color: #5355a8; background: #eeedf7; font-weight: 500; }
.nav-count { font-size: .75rem; color: #7d7ca0; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.sidebar-footnote { border-top: 1px solid var(--line); margin-top: 15px; padding: 24px 14px; font-size: .75rem; color: #898994; }
.workspace-body { margin-left: 236px; width: calc(100% - 236px); }
.topbar { min-height: 82px; padding: 0 44px; border-bottom: 1px solid #eeeef3; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumb { font-size: .8125rem; color: #94939f; display: flex; gap: 15px; align-items: center; }
.breadcrumb > span { color: #c2c0cb; }
.breadcrumb strong { font-weight: 400; color: #777480; }
.main-content { padding: 47px 44px 0; max-width: 1440px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.date-label { font-size: .75rem; color: #888590; margin-bottom: 14px; }
.page-heading h1 { font-size: 33px; letter-spacing: -1.1px; line-height: 1.3; font-weight: 450; }
.page-subtitle { font-size: .875rem; color: #83808c; margin-top: 12px; line-height: 1.6; }
.secondary-button { border: 1px solid #dedde7; padding: 11px 15px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 450; background: #fff; white-space: nowrap; }
.secondary-button:hover { background: #faf9fd; border-color: #c5c2d8; }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 39px 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.app-tabs { display: flex; gap: 23px; align-self: stretch; }
.app-tab { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 2px solid transparent; font-size: .875rem; color: #8e879a; }
.app-tab.active { color: #5751a4; border-bottom-color: #6861bd; font-weight: 500; }
.app-tab > span { font-size: .75rem; color: #9a91aa; }
.toolbar-right { display: flex; align-items: center; gap: 15px; }
.search-field { display: flex; align-items: center; gap: 10px; border: 1px solid #e4e1e9; border-radius: 5px; padding: 11px 12px; max-width: 240px; background: #fff; }
.search-field input { border: 0; outline: none; min-width: 0; width: 166px; font-size: .8125rem; background: transparent; color: #504958; }
.search-field:focus-within { outline: 2px solid #8d86cf; outline-offset: 2px; }
.search-field input::placeholder { color: #9992a2; }
.search-field kbd { font-size: .75rem; border: 1px solid #e7e3ed; border-radius: 3px; padding: 0 4px; color: #9c93a8; }
.view-switch { display: flex; gap: 2px; border: 1px solid #e2dce9; border-radius: 5px; padding: 3px; }
.view-switch button { min-height: 31px; padding: 6px 9px; color: #95899f; font-size: .75rem; border-radius: 3px; }
.view-switch button.selected { background: #f0edf5; color: #70617f; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.app-card { border: 1px solid #e4dfeb; border-radius: 7px; padding: 27px 24px 0; min-width: 0; background: #fff; transition: border-color .15s; }
.app-card:hover { border-color: #c5bacf; }
.card-copy h2 { font-size: 25px; font-weight: 450; letter-spacing: -.7px; }
.favorite-button { padding: 10px 0 8px; text-align: left; color: #93859e; font-size: .75rem; line-height: 1.5; }
.favorite-button:hover { color: #655078; text-decoration: underline; text-underline-offset: 4px; }
.favorite-button.is-favorite { color: #6c5784; }
.card-bottom { border-top: 1px solid #eee7f3; margin-top: 25px; padding: 17px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.role-label { font-size: .8125rem; color: #908397; }
.open-app { color: #706084; font-size: .8125rem; text-underline-offset: 4px; }
.open-app:hover { color: #493759; text-decoration: underline; }
.managed-label { font-size: .75rem; color: #a08fa8; }
.access-note { display: flex; justify-content: center; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin: 32px 0 40px; font-size: .75rem; color: #9a8ba4; line-height: 1.8; text-align: center; }
.inline-button { padding: 4px 0; font-size: inherit; color: #796289; }
.inline-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.list-view { grid-template-columns: 1fr; gap: 0; border: 1px solid #e4dfeb; border-radius: 7px; overflow: hidden; }
.list-view .app-card { border: 0; border-bottom: 1px solid #eae2f0; border-radius: 0; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 24px; }
.list-view .app-card:last-child { border-bottom: 0; }
.list-view .card-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex: 1; min-width: 0; }
.list-view .card-copy h2 { font-size: 20px; }
.list-view .favorite-button { padding: 8px 0; }
.list-view .card-bottom { margin: 0 0 0 12px; padding: 0; border: 0; gap: 35px; min-width: 136px; }
.empty-state { grid-column: 1 / -1; padding: 55px 22px; text-align: center; border: 1px solid #e5ddec; border-radius: 7px; }
.list-view .empty-state { border: 0; }
.empty-state h2 { font-size: 21px; letter-spacing: -.4px; font-weight: 450; }
.empty-state p { font-size: .875rem; color: #92829f; line-height: 1.7; margin: 12px auto 0; max-width: 420px; }
.empty-state .secondary-button { margin-top: 23px; }
.invisible { visibility: hidden; }
.demo-banner { border: 1px solid #e5dceb; background: #faf7fc; border-radius: 4px; padding: 9px 12px; margin-bottom: 26px; font-size: .75rem; color: #8c739e; }
.demo-banner span { color: #a28eae; margin-left: 12px; }

/* Feedback and account */
.initial-loading, .load-error { min-height: 100vh; display: flex; justify-content: center; align-items: center; color: #84708f; flex-direction: column; gap: 18px; padding: 24px; text-align: center; }
.load-error h1 { font-size: 30px; letter-spacing: -.8px; font-weight: 450; }
.load-error p { font-size: 1rem; line-height: 1.7; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 14px 22px; border-radius: 6px; background: #38303f; color: #fff; font-size: .875rem; line-height: 1.6; z-index: 100; max-width: calc(100vw - 30px); text-align: center; }
.toast[hidden] { display: none; }
dialog { border: 1px solid #e3d9eb; border-radius: 10px; padding: 30px; width: 460px; max-width: calc(100vw - 32px); color: #48374f; }
dialog::backdrop { background: #29213050; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.dialog-heading h2 { font-size: 23px; font-weight: 450; letter-spacing: -.6px; }
dialog p { font-size: .875rem; line-height: 1.75; color: #907c9b; }
dialog strong { font-weight: 550; }
.help-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e9dff0; }
.help-section h3 { font-size: .9375rem; font-weight: 500; margin-bottom: 8px; }
.account-card { display: flex; align-items: center; gap: 17px; background: #f9f6fb; padding: 20px; border-radius: 6px; margin-bottom: 22px; }
.account-card > div { min-width: 0; }
.account-card strong { font-size: 1rem; overflow-wrap: anywhere; }
.account-card p { font-size: .8125rem; margin-top: 5px; overflow-wrap: anywhere; }
.account-card .microsoft-mark { width: 24px; height: 24px; }
.account-card .microsoft-mark i:nth-child(1) { background: #f25022; }
.account-card .microsoft-mark i:nth-child(2) { background: #7fba00; }
.account-card .microsoft-mark i:nth-child(3) { background: #00a4ef; }
.account-card .microsoft-mark i:nth-child(4) { background: #ffb900; }
.logout-button { margin-top: 24px; }

@media (min-width: 1500px) {
  .main-content { padding: 56px 60px 0; }
  .app-card { padding: 32px 28px 0; }
  .card-bottom { margin-top: 35px; padding: 20px 0; }
  .app-grid { gap: 22px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 216px; padding-left: 14px; padding-right: 14px; }
  .workspace-body { margin-left: 216px; width: calc(100% - 216px); }
  .main-content { padding: 36px 28px 0; }
  .topbar { padding: 0 28px; }
  .app-grid { gap: 14px; }
  .app-card { padding: 24px 19px 0; }
  .list-view { gap: 0; }
  .search-field input { width: 135px; }
  .section-toolbar { gap: 14px; }
  .app-tabs { gap: 17px; }
  .toolbar-right { gap: 10px; }
  .login-main { gap: 55px; padding-left: 7%; padding-right: 7%; }
  .application-directory { padding: 30px; }
}
@media (max-width: 950px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-view { grid-template-columns: 1fr; }
  .section-toolbar { align-items: stretch; flex-direction: column; gap: 17px; }
  .toolbar-right { justify-content: space-between; }
  .search-field { max-width: none; flex: 1; }
  .search-field input { width: 100%; }
  .app-tabs { border-bottom: 1px solid #eee8f3; }
  .list-view .card-copy { align-items: flex-start; flex-direction: column; gap: 4px; }
  .list-view .favorite-button { padding: 3px 0; }
}
@media (max-width: 800px) {
  .login-main { grid-template-columns: 1fr; gap: 54px; padding: 40px 9% 55px; max-width: 640px; }
  .login-content h1 { font-size: 58px; }
  .login-intro { max-width: none; }
  .signin-area { max-width: 365px; }
  .application-directory { padding: 30px 32px 27px; }
  .workspace-label { display: none; }
}
@media (max-width: 680px) {
  .login-header { min-height: 90px; padding: 0 7%; gap: 16px; }
  .login-header .brand-logo { width: 160px; }
  .login-help { font-size: .8125rem; }
  .login-content h1 { font-size: 52px; letter-spacing: -2px; }
  .login-main { padding-top: 32px; gap: 42px; }
  .signin-area { max-width: none; margin-top: 28px; }
  .login-intro { font-size: 1rem; }
  .microsoft-button { font-size: .875rem; }
  .application-directory { padding: 25px; }
  .application-directory li { font-size: 22px; padding: 20px 0; }
  .login-footer { padding: 24px 7%; flex-wrap: wrap; }
  .sidebar { position: static; width: 100%; border: 0; border-bottom: 1px solid var(--line); display: block; padding: 23px 21px 0; }
  .sidebar > .brand { padding: 0; }
  .organization, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 12px; margin-top: 22px; }
  .nav-link { padding: 12px 10px; justify-content: center; font-size: .8125rem; border-radius: 4px 4px 0 0; margin-bottom: 0; }
  .nav-count { display: none; }
  .workspace-shell { display: block; }
  .workspace-body { margin: 0; width: 100%; }
  .topbar { min-height: 64px; padding: 0 23px; }
  .breadcrumb { font-size: .75rem; gap: 11px; }
  .main-content { padding: 28px 21px 0; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-heading h1 { font-size: 29px; }
  .page-subtitle { margin-top: 9px; }
  .page-heading > .secondary-button { font-size: .8125rem; }
  .section-toolbar { margin-top: 26px; margin-bottom: 20px; padding-bottom: 16px; }
  .app-tabs { gap: 25px; }
  .app-tab { font-size: .875rem; }
  .search-field input { font-size: .8125rem; }
  .search-field kbd { display: none; }
  .view-switch button { padding: 7px 9px; }
  .app-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-card { padding: 22px 22px 0; }
  .card-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
  .card-copy h2 { font-size: 24px; }
  .favorite-button { font-size: .75rem; }
  .card-bottom { margin-top: 18px; padding: 15px 0; }
  .role-label, .open-app { font-size: .875rem; }
  .access-note { margin: 25px 0 34px; font-size: .75rem; }
  .list-view { gap: 0; }
  .list-view .app-card { padding: 17px; gap: 15px; }
  .list-view .card-copy { flex-direction: column; align-items: flex-start; gap: 3px; }
  .list-view .card-copy h2 { font-size: 20px; }
  .list-view .card-bottom { min-width: 118px; gap: 18px; margin-left: 0; }
  .list-view .managed-label { max-width: 80px; text-align: right; font-size: .75rem; }
  .empty-state { padding: 40px 16px; }
  .empty-state h2 { font-size: 20px; }
  .demo-banner span { display: block; margin: 5px 0 0; }
  .invisible { display: none; }
}
@media (max-width: 359px) {
  .login-header { padding: 0 6%; }
  .login-header .brand-logo { width: 140px; }
  .login-help { font-size: .75rem; }
  .sidebar nav { gap: 4px; }
  .nav-link { padding-left: 6px; padding-right: 6px; }
  .card-copy { gap: 10px; }
  .card-copy h2 { font-size: 22px; }
  .favorite-button { font-size: .75rem; }
  .app-card { padding-left: 18px; padding-right: 18px; }
  .list-view .card-bottom { min-width: 101px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
