:root {
  --bar: 56px;
  --muted: rgba(255, 255, 255, 0.65);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 75% 25%, #2b698055, transparent 30%),
    linear-gradient(135deg, #07111e, #19465d);
}
.desktop {
  position: fixed;
  inset: 0 0 var(--bar);
  padding: 22px 24px 22px 310px;
}
.desktop-content {
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
}
.desktop-categories {
  columns: 3;
  column-gap: 14px;
}
.desktop-category,
.desktop-favourites {
  padding: 14px;
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  background: #050d171f;
  backdrop-filter: blur(8px);
}
.desktop-favourites {
  margin-top: 14px;
}
.desktop-category h2,
.heading h2 {
  margin: 0 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.heading small {
  color: var(--muted);
  font-size: 0.65rem;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
}
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffffff1f;
}
.resource {
  position: relative;
  display: flex;
  min-height: 86px;
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: transparent;
  text-align: center;
}
.resource:hover,
.resource:focus-visible,
.resource.pressing {
  background: #73b6df29;
  border-color: #abdff93d;
  outline: 0;
}
.icon,
.start-icon,
.modal-icon {
  display: grid;
  place-items: center;
  border: 1px solid #ffffff2e;
  box-shadow: 0 8px 20px #0004;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.25rem;
}
.resource label {
  max-width: 105px;
  font-size: 0.7rem;
  line-height: 1.12;
}
.dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7bd590;
}
.dot.coming-soon {
  background: #e4ad59;
}
.tile-applications {
  background: linear-gradient(145deg, #4b8ee0, #23548f);
}
.tile-proprietary-tools {
  background: linear-gradient(145deg, #55ad73, #287449);
}
.tile-accounting {
  background: linear-gradient(145deg, #9a7bd0, #5c438c);
}
.tile-useful-links {
  background: linear-gradient(145deg, #45afc1, #1d7180);
}
.tile-directors {
  background: linear-gradient(145deg, #747a82, #454a50);
}
.muted {
  opacity: 0.58;
  filter: saturate(0.18);
}
.muted:hover {
  opacity: 0.82;
}
.empty {
  padding: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
  border: 1px dashed #ffffff20;
  border-radius: 9px;
}
.empty[hidden] {
  display: none;
}
.hub-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: var(--bar);
  display: flex;
  width: 286px;
  padding: 26px;
  flex-direction: column;
  border-right: 1px solid #ffffff1f;
  background: linear-gradient(#09121dbd, #080f18e8);
  backdrop-filter: blur(18px);
}
.hub-panel > img {
  width: 74px;
}
.hub-copy {
  margin-top: 25px;
}
.hub-copy > span {
  color: #8fd39c;
  font-size: 0.72rem;
}
.hub-copy h1 {
  margin: 5px 0 8px;
  font-size: 2rem;
  font-weight: 300;
}
.hub-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.weather {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  background: #ffffff0d;
  font-size: 0.7rem;
}
.weather > strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 300;
}
.weather hr {
  border-color: #ffffff25;
}
.weather-main,
.tomorrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.weather-main {
  justify-content: flex-start;
  gap: 12px;
  margin: 10px 0;
}
.weather-main > i {
  font-size: 2rem;
  color: #a9d8f2;
}
.weather-main span small,
.tomorrow small {
  display: block;
  color: var(--muted);
}
.feedback {
  display: flex;
  margin-top: auto;
  padding: 11px;
  border: 1px solid #ffffff17;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  background: #ffffff0b;
}
.feedback span b,
.feedback span small {
  display: block;
}
.feedback small {
  color: var(--muted);
  font-size: 0.63rem;
}
.taskbar {
  position: fixed;
  inset: auto 0 0;
  display: grid;
  height: var(--bar);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6px 12px;
  background: #090f18dc;
  border-top: 1px solid #ffffff1c;
}
.taskbar button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: transparent;
  font-size: 1.3rem;
}
.taskbar button:hover,
.taskbar button.active {
  background: #ffffff1c;
}
.clock {
  justify-self: end;
  text-align: right;
  font-size: 0.7rem;
}
.clock b,
.clock small {
  display: block;
}
.start-menu {
  position: fixed;
  z-index: 10;
  bottom: 68px;
  left: 50%;
  width: min(600px, calc(100vw - 24px));
  max-height: calc(100vh - 86px);
  padding: 20px;
  border: 1px solid #ffffff24;
  border-radius: 14px;
  background: #141d2bed;
  opacity: 0;
  visibility: hidden;
  overflow: auto;
  transform: translate(-50%, 15px);
  backdrop-filter: blur(28px);
  transition: 0.16s;
}
.start-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.start-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.search {
  display: flex;
  margin: 18px 0;
  height: 40px;
  padding: 0 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff22;
  border-bottom: 2px solid #66aee4;
  border-radius: 7px;
  background: #0003;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}
.all {
  max-height: 245px;
  overflow: auto;
}
.start-grid .resource {
  min-height: 76px;
}
.start-grid .icon {
  width: 35px;
  height: 35px;
}
.modal-content {
  color: #fff;
  background: #121c2afa;
  border: 1px solid #ffffff24;
}
.modal-header,
.modal-footer {
  border-color: #ffffff17;
}
.modal-body {
  padding: 24px;
}
.modal-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 10px;
}
.modal-body > p {
  color: var(--muted);
}
.status {
  padding: 4px 7px;
  border-radius: 12px;
  background: #7bd59026;
  color: #9ee5af;
  font-size: 0.64rem;
  text-transform: uppercase;
}
.status.coming-soon {
  background: #e4ad5926;
  color: #f0c47c;
}
.modal-header h2 {
  margin: 8px 0 0;
  font-size: 1.1rem;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.details span {
  padding: 10px;
  border-radius: 8px;
  background: #ffffff0d;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}
.details b {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 0.72rem;
  text-transform: none;
}
.fav-button {
  margin-top: 15px;
  border: 0;
  color: #efc66f;
  background: transparent;
}
.launch {
  color: #07130a;
  background: #90d39d;
  font-weight: 700;
}
.launch.disabled {
  pointer-events: none;
  opacity: 0.5;
}
@media (max-width: 1050px) {
  .desktop {
    padding-left: 218px;
  }
  .hub-panel {
    width: 200px;
    padding: 18px;
  }
  .desktop-categories {
    columns: 2;
  }
}
@media (max-width: 700px) {
  .desktop {
    padding: 10px 10px 145px;
  }
  .hub-panel {
    top: auto;
    right: 0;
    bottom: var(--bar);
    width: auto;
    height: 130px;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .hub-copy p,
  .feedback,
  .tomorrow {
    display: none;
  }
  .weather {
    margin: 0 0 0 auto;
  }
  .desktop-categories {
    columns: 1;
  }
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .start-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Content-sized masonry category layout */
.desktop-category {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  vertical-align: top;
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.resource.my-tickets .icon {
  background: linear-gradient(145deg, #e99545, #a65320);
}
@media (max-width: 1050px) {
  .desktop-categories {
    columns: 2;
  }
}
@media (max-width: 700px) {
  .desktop-categories {
    columns: 1;
  }
}

/* Microsoft sign-in gate */
body:not(.signed-in) .desktop,
body:not(.signed-in) .start-menu,
body:not(.signed-in) .taskbar,
body.signed-in .auth-screen {
  display: none;
}
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
}
.auth-card {
  width: min(380px, 100%);
  padding: 32px 28px;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  background: linear-gradient(#09121dbd, #080f18e8);
  backdrop-filter: blur(18px);
  text-align: center;
}
.auth-card img {
  width: 74px;
}
.auth-card h1 {
  margin: 18px 0 8px;
  font-size: 2rem;
  font-weight: 300;
}
.auth-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.auth-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.65rem;
}
.auth-screen:is(
    [data-state="denied"],
    [data-state="error"],
    [data-state="unavailable"]
  )
  p {
  color: #f0c47c;
}
.ms-signin {
  display: inline-flex;
  height: 41px;
  padding: 0 12px;
  align-items: center;
  gap: 12px;
  border: 1px solid #8c8c8c;
  color: #5e5e5e;
  background: #fff;
  font:
    600 15px "Segoe UI",
    sans-serif;
}
.ms-signin:hover {
  background: #f3f3f3;
}
.auth-screen:is([data-state="loading"], [data-state="unavailable"]) .ms-signin {
  display: none;
}
.session {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
}
.session span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
