@font-face {
  font-family: "Nunito Sans";
  src: url("/workroom-nunito.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/workroom-nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --air-font: "Nunito Sans", system-ui, sans-serif;
  --air-page: #f4f9fd;
  --air-secondary: #e8f0f8;
  --air-primary: #3f8cff;
  --air-link: #225dc3;
  --air-blue-2: #e8f1ff;
  --air-blue-3: #f3f7fc;
  --ink: #0a1629;
  --muted: #58667a;
  --line: #dfe7f1;
  --card-radius: 24px;
  --card-shadow: 0 6px 24px rgb(31 57 100 / 5%);
  --primary-button: #2268d6;
}

body { background: var(--air-page); }
body:has(.workspace-shell) { min-width: 0; }
h1 { font-size: clamp(26px, 2.65vw, 36px); line-height: 1.16; font-weight: 800; letter-spacing: -.025em; }
h2 { font-weight: 800; }
h3 { font-weight: 750; }
button { font-weight: 700; }
button.primary {
  color: white;
  background: var(--primary-button);
  border-color: var(--primary-button);
  box-shadow: 0 4px 10px rgb(34 104 214 / 16%);
}
button.primary:hover:not(:disabled) { background: #1957bb; border-color: #1957bb; }
:focus-visible { outline-color: #2268d6; }

@media screen {
  .shell.workspace-shell, .shell.workspace-shell:has(.desk-layout) {
    display: grid;
    grid-template-columns: clamp(178px, 15vw, 200px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "sidebar header" "sidebar main";
    align-items: start;
    gap: 18px 30px;
    padding: 20px clamp(20px, 2.75vw, 40px) 24px 20px;
  }
  .workspace-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 42px;
    min-height: calc(100dvh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    border-radius: var(--card-radius);
    background: white;
    box-shadow: var(--card-shadow);
    padding: 34px 16px 22px;
  }
  .workspace-sidebar .brand { gap: 9px; padding: 0 6px; }
  .workspace-sidebar .brand img { width: 38px; height: 38px; flex: none; }
  .workspace-sidebar .brand b { font-size: 14px; }
  .workspace-nav { gap: 6px; }
  .workspace-nav > button {
    width: 100%;
    min-height: 44px;
    gap: 8px;
    border-radius: 11px;
    padding: 8px 12px;
    color: var(--muted);
    text-align: start;
    font-weight: 700;
  }
  .workspace-nav > button:is(:hover, .active) {
    background: var(--air-blue-2);
    color: var(--air-link);
    box-shadow: none;
  }
  .workspace-nav > button.active { box-shadow: inset 3px 0 var(--air-primary); }
  .workspace-nav .count, .workspace-notifications .count {
    color: var(--air-link);
    background: #dceaff;
    font-size: 11px;
    font-weight: 800;
  }

  .workspace-bar {
    grid-area: header;
    top: 20px;
    justify-content: flex-end;
    min-height: 48px;
    gap: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }
  .workspace-mobile { display: none; }
  .workspace-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .workspace-notifications {
    display: grid;
    place-items: center;
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
  }
  .workspace-notifications .count {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    border-radius: 8px;
    padding: 0 4px;
  }
  .workspace-profile { position: relative; min-width: 0; }
  .workspace-profile summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    max-width: min(310px, 38vw);
    padding: 8px 14px;
    border-radius: 14px;
    background: white;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }
  .workspace-profile summary::-webkit-details-marker { display: none; }
  .workspace-profile summary::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin: -4px 1px 0 2px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }
  .profile-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--air-blue-2);
    color: var(--air-link);
    font-size: 12px;
    font-weight: 800;
  }
  .profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace-profile-menu {
    position: absolute;
    inset: calc(100% + 8px) 0 auto auto;
    z-index: 30;
    display: grid;
    gap: 3px;
    width: min(250px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 12px 32px rgb(20 45 83 / 15%);
  }
  .workspace-profile-info {
    display: grid;
    gap: 2px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .workspace-profile-info small { color: var(--muted); }
  .workspace-profile-menu > :is(button, a) { padding: 8px 10px; text-align: start; }
  .workspace-profile-menu [data-action="logout"] { color: var(--danger); }

  .workspace-shell > .main, .workspace-shell .main:has(.desk-layout) {
    grid-area: main;
    width: 100%;
    min-width: 0;
    padding: 0;
  }
  .workspace-shell .main > .page, .workspace-shell .page:has(.desk-layout) {
    width: 100%;
    min-width: 0;
    padding: 12px 0 24px;
    gap: 20px;
  }
  .workspace-shell :is(.page-head, .work-heading, .desk-head) h1,
  .workspace-shell .page > .row > h2 { color: var(--ink); }
  .workspace-shell .page-head p { color: var(--muted); }
  .workspace-shell :is(.page-head, .work-heading) { justify-content: space-between; }
  .workspace-shell :is(.panel, .project-card, .desk-box, .desk-list, .desk-people, .messenger, .work-card) {
    border-color: transparent;
    border-radius: var(--card-radius);
    background-color: white;
    box-shadow: var(--card-shadow);
  }
  .workspace-shell :is(.desk-task.chosen, .project-card:hover) { border-color: var(--air-primary); }
  .workspace-shell .switch { background: var(--air-secondary); }
  .workspace-shell .switch button.selected { background: white; color: var(--air-link); }
  .workspace-shell .task-group-title {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--air-secondary);
    color: var(--ink);
  }
  .task-group-title span { color: var(--muted); }
  .workspace-shell .desk-layout {
    grid-template-columns: clamp(225px, 24%, 280px) minmax(0, 1fr) minmax(130px, 16%);
    gap: 18px;
  }
  .workspace-shell :is(.desk-list,.desk-people) {
    top: 88px;
    max-height: calc(100dvh - 102px);
  }
  .workspace-shell .page > .desk-layout .desk-project {
    padding: 0;
    background: transparent;
  }
  .workspace-shell .desk-head { padding: 3px 4px 10px; }
  .workspace-shell .desk-head h1 { font-size: clamp(23px, 2.2vw, 34px); }
  .workspace-shell .desk-tabs { gap: 5px; padding: 5px; border-radius: 13px; background: white; }
  .workspace-shell .desk-tabs > :is(button, details) { border-radius: 9px; }
  .workspace-shell .desk-tabs :is(button,summary) { min-height: 36px; }
  .workspace-shell .desk-list { padding: 13px; }
  .workspace-shell .desk-list-title { flex-wrap: wrap; justify-content: flex-start; }
  .workspace-shell .desk-list-title h2 { font-size: 16px; }
  .workspace-shell #desk-list-body { display: grid; gap: 7px; }
  .workspace-shell .desk-row { padding: 7px 4px; }
  .workspace-shell .desk-row.current { background: var(--air-blue-3); box-shadow: inset 3px 0 var(--air-primary); }
  .workspace-shell .desk-row .desk-name small { white-space: normal; }
  .workspace-shell .desk-content { gap: 13px; }
  .workspace-shell .desk-content .task { padding: 17px; }
  .workspace-shell .process-strip { border-color: var(--line); background: white; border-radius: 12px; }
  .workspace-shell .work-card { padding: 14px; border-radius: 16px; }
  .workspace-shell .work-list > .task { background: white; }
  .workspace-shell :is(.staff-feed,.chat-scroll) { background: var(--air-blue-3); }
  .workspace-shell .chat-bubble { border-color: var(--line); }
  .workspace-shell .outgoing .chat-bubble { background: var(--air-blue-2); border-color: #dceaff; }
  .workspace-shell .staff-chat-layout { grid-template-columns: minmax(0, 1fr) minmax(145px, 23%); gap: 16px; }
  .workspace-shell .staff-inbox { width: 100%; }
  .workspace-shell .staff-inbox .inbox-entry { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .workspace-shell .inbox-entry .inbox-avatar { display: grid; place-items: center; color: var(--air-link); background: var(--air-blue-2); }
  .workspace-shell .staff-inbox .inbox-preview { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .workspace-shell .inbox-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.record-meta, .desk-row-meta { display: flex; flex-wrap: wrap; gap: 3px 9px; }
.workspace-shell .desk-row .desk-row-meta { display: flex; }
.field-help-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; min-width: 0; }
.field-help-trigger {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid #9aafce;
  border-radius: 50%;
  background: white;
  color: var(--air-link);
  font: 800 12px/1 var(--air-font);
  vertical-align: middle;
  cursor: help;
}
h3 > .field-help-trigger, label > .field-help-trigger { margin-inline-start: 6px; }
.field-help-trigger:is(:hover,:focus-visible) { background: var(--air-blue-2); border-color: var(--air-primary); }
.field-help-inline, .field-help-group { display: flex; align-items: center; gap: 6px; }
.field-help-group { grid-column: 1 / -1; }
.button-tip { border-color: var(--line); box-shadow: 0 8px 28px rgb(23 53 93 / 16%); white-space: pre-line; }

.login {
  min-height: calc(100dvh - 40px);
  max-width: 1360px;
  margin: 20px auto;
  width: calc(100% - 64px);
  grid-template-columns: 1fr 1fr;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: white;
}
.login-intro {
  min-width: 0;
  padding: clamp(34px, 5vw, 68px) clamp(28px, 6vw, 90px);
  gap: 26px;
  justify-content: flex-start;
  background: #3f8cff;
  color: white;
}
.login-intro .brand b, .login-intro h1 { color: white; }
.login-intro .brand img { border: 3px solid white; border-radius: 11px; }
.login-intro h1 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; }
.login-illustration { display: block; width: 100%; height: auto; max-width: 500px; margin-block: auto; }
.login-form { gap: 28px; padding: clamp(32px, 5vw, 72px); }
.login-form > * { width: min(100%, 410px); margin-inline: auto; }
.login-form h2 { font-size: 24px; text-align: start; }
.login-form .field { gap: 8px; }
.login-form .field input { min-height: 48px; border-radius: 12px; }
.login-form [type="submit"] { min-width: 128px; justify-self: start; }

@media screen and (min-width: 901px) and (max-width: 1200px) {
  .shell.workspace-shell, .shell.workspace-shell:has(.desk-layout) { gap: 16px 20px; }
  .workspace-shell .desk-layout { grid-template-columns: minmax(215px, 30%) minmax(0, 1fr); }
  .workspace-shell .desk-people { grid-column: 2; grid-row: auto; position: static; max-height: none; }
}

@media screen and (max-width: 900px) {
  .shell.workspace-shell, .shell.workspace-shell:has(.desk-layout) {
    display: block;
    padding: 10px 10px 18px;
  }
  .workspace-bar {
    position: sticky;
    top: 10px;
    z-index: 24;
    justify-content: space-between;
    gap: 8px;
    min-height: 70px;
    padding: 8px 12px;
    border-radius: var(--card-radius);
    background: white;
    box-shadow: var(--card-shadow);
  }
  .workspace-mobile { display: flex; align-items: center; gap: 8px; }
  .workspace-bar .brand { display: flex; }
  .workspace-bar .brand b { display: none; }
  .workspace-bar .brand img { width: 40px; height: 40px; }
  .workspace-nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: white;
  }
  .workspace-nav-toggle span, .workspace-nav-toggle span::before, .workspace-nav-toggle span::after {
    width: 19px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
  }
  .workspace-nav-toggle span { position: relative; }
  .workspace-nav-toggle span::before, .workspace-nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .workspace-nav-toggle span::before { top: -6px; }
  .workspace-nav-toggle span::after { top: 6px; }
  .workspace-sidebar {
    display: none;
    position: fixed;
    z-index: 23;
    inset: 88px auto 10px 10px;
    width: min(282px, calc(100vw - 20px));
    min-height: 0;
    max-height: none;
    padding: 14px 12px;
    box-shadow: 0 12px 35px rgb(20 45 83 / 18%);
  }
  .workspace-shell:has(.workspace-nav-toggle[aria-expanded="true"]) .workspace-sidebar { display: flex; }
  .workspace-sidebar .brand { display: none; }
  .workspace-account { gap: 4px; }
  .workspace-profile summary, .workspace-notifications { box-shadow: none; }
  .workspace-profile summary { padding: 5px; min-width: 44px; }
  .workspace-profile summary::after, .profile-name { display: none; }
  .workspace-shell .main > .page, .workspace-shell .page:has(.desk-layout) { padding: 26px 4px 12px; gap: 16px; }
  .workspace-shell .desk-layout { display: flex; flex-direction: column; gap: 13px; }
  .workspace-shell :is(.desk-list,.desk-project,.desk-people) { position: static; width: 100%; max-height: none; }
  .workspace-shell .desk-project { order: 1; }
  .workspace-shell .desk-people { order: 2; display: block; }
  .workspace-shell .desk-tabs { flex-wrap: wrap; contain: none; }
  .workspace-shell .desk-tabs :is(button,summary) { min-height: 44px; }
  .workspace-shell .desk-list[data-list-open="false"] #desk-list-body { display: none; }
  .workspace-shell #desk-rows { max-height: min(290px, 39dvh); }
  .workspace-shell .staff-chat-layout { grid-template-columns: minmax(0,1fr); }
  .workspace-shell .staff-inbox .inbox-entry { padding: 13px 12px; gap: 9px; }
}

@media screen and (max-width: 760px) {
  .login { display: grid; grid-template-columns: 1fr; align-content: start; width: auto; min-height: 0; margin: 24px 16px; background: transparent; gap: 24px; overflow: visible; }
  .login-intro { background: transparent; padding: 18px 5px; align-items: center; }
  .login-intro .brand b { color: var(--air-link); }
  .login-intro h1, .login-illustration { display: none; }
  .login-form { border-radius: var(--card-radius); padding: 32px 24px; box-shadow: var(--card-shadow); }
}

@media print {
  .workspace-sidebar, .workspace-bar { display: none; }
}

.workspace-shell .desk-head > .record-meta { display: flex; }
.workspace-shell .staff-inbox .inbox-entry[aria-current="true"] {
  background: var(--air-blue-3);
  box-shadow: inset 3px 0 var(--air-primary);
}
.workspace-shell .staff-thread-list { min-width: 0; }
@media screen and (min-width: 1251px) {
  .workspace-shell .staff-chat-layout {
    grid-template-columns: minmax(195px, 25%) minmax(0, 1fr) minmax(145px, 18%);
  }
}
@media screen and (max-width: 1250px) {
  .workspace-shell .staff-thread-list { display: none; }
}

.workspace-nav { grid-template-columns: minmax(0, 1fr); }
.workspace-nav > button { min-width: 0; }
.workspace-nav > button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.workspace-nav > button > .count { flex: none; }
.workspace-shell #desk-list-body { grid-template-columns: minmax(0, 1fr); }
.workspace-shell .desk-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.workspace-shell .desk-filters { flex-wrap: wrap; }
.workspace-shell .desk-filters button { white-space: normal; }
.workspace-shell .desk-sort select { min-width: 0; max-width: 100%; }
.workspace-shell .desk-sort .field-help-heading { flex-wrap: nowrap; }
.workspace-shell :is(.desk-row, .desk-cols) { grid-template-columns: minmax(0, 1fr) repeat(3, 28px); }
.workspace-shell .desk-row .desk-icon { padding-inline: 3px; }
.workspace-shell .desk-name strong { white-space: normal; }
.workspace-shell .desk-row .desk-row-meta { flex-direction: column; gap: 2px; }
.workspace-shell .desk-box h3 { justify-content: flex-start; }
.workspace-shell .desk-tabs > button:not([aria-pressed="true"]) {
  box-shadow: none;
  color: var(--muted);
  background: transparent;
}
.workspace-shell .desk-tabs > button[aria-pressed="true"] {
  box-shadow: none;
  color: var(--air-link);
  background: var(--air-blue-2);
}

.workspace-nav-toggle span,
.workspace-nav-toggle span::before,
.workspace-nav-toggle span::after { background: var(--ink); }

.workspace-sidebar .nav > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  white-space: normal;
}
.workspace-shell .desk-sort {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}
.workspace-shell .desk-sort select { width: 100%; }
.workspace-shell .desk-row .desk-name { padding-inline: 5px; }
.workspace-shell .desk-row .desk-name strong { white-space: normal; }

.workspace-shell .desk-cols { display: none; }
.workspace-shell .desk-row {
  grid-template-columns: repeat(3, max-content) minmax(0, 1fr);
  justify-items: start;
  padding: 8px;
}
.workspace-shell .desk-row .desk-name { grid-column: 1 / -1; width: 100%; }
.workspace-shell .desk-row .desk-row-meta { flex-direction: row; gap: 2px 7px; }
.workspace-shell .desk-row .desk-icon { min-width: 36px; }
