@font-face {
  font-family: "IBM Plex Sans";
  src: url("ci/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("ci/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root:root, :root.dark {
  color-scheme: light;
  --ink: #000033;
  --blue: #336699;
  --sky: #33ccff;
  --linen: #f3efe8;
  --stone: #e6dfd3;
  --ink70: #4d4d70;
  --line: #dcdad8;
  --white: #fff;
  --black: #000033;
  --primary: var(--blue);
  --primary-h: 210deg;
  --primary-s: 50%;
  --primary-l: 40%;
  --link: var(--blue);
  --site-background: var(--linen);
  --background: var(--linen);
  --scheme-main: #fff;
  --scheme-main-bis: #faf9f6;
  --scheme-main-ter: var(--linen);
  --grey-50: #faf9f6;
  --grey-100: #f3f1ed;
  --grey-200: #e6e5e6;
  --grey-300: #ccccd6;
  --grey-400: #77778c;
  --grey-500: #68687c;
  --grey-600: var(--ink70);
  --grey-700: #333354;
  --grey-800: var(--ink);
  --grey-900: var(--ink);
  --text: var(--ink);
  --text-strong: var(--ink);
  --text-muted: var(--ink70);
  --text-light: var(--ink70);
  --text-invert: white;
  --switch-view-active-background: var(--ink);
  --family-sans-serif: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

body, #app, #app :is(button,input,select,textarea,h1,h2,h3,h4,.button,.username,.project-title) {
  font-family: var(--family-sans-serif);
}
#app :is(code,pre,kbd,.tag,.task-id,.limit) { font-family: var(--mono); }
#app :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

#app .navbar {
  background: var(--ink);
  color: white;
  align-items: center;
  padding-inline: 20px;
  gap: 8px;
}
#app .navbar .logo-link {
  display: flex;
  align-items: center;
  flex: none;
  gap: 16px;
  margin: 0;
}
#app .navbar .logo-link > div {
  width: 132px;
  height: 60px;
  background: url("ci/logo-white.svg") center / 160px auto no-repeat;
}
#app .navbar .logo-link img { visibility: hidden; }
#app .navbar .logo-link::after {
  content: "Office";
  border-inline-start: 1px solid #555575;
  padding-inline-start: 16px;
  font-size: 15px;
  font-weight: 300;
  color: white;
}
#app .navbar .menu-button { margin-inline: 8px auto; }
#app .navbar .menu-button::before, #app .navbar .menu-button::after {
  background: white;
  block-size: 2px;
  inline-size: 21px;
}
#app .navbar .project-title-wrapper { margin-inline: auto 4px; gap: 4px; }
#app .navbar .project-title { color: #fff; font-size: 15px; font-weight: 400; }
#app .navbar :is(.trigger-button,.project-title-button,.username-dropdown-trigger) { color: white; background: transparent; }
#app .navbar .avatar { width: 32px; height: 32px; }
#app .navbar :focus-visible { outline-color: var(--sky); }

#app .menu-container { background: #fff; border-inline-end: 1px solid var(--line); box-shadow: none; }
#app .menu-container .menu { background: white; }
#app .menu-container .top-menu { padding-block-start: 12px; }
#app .menu-container .menu-list li > a, #app .menu-container .menu-list li > div {
  border-radius: 8px;
  color: var(--ink70);
}
#app .menu-container .menu-list li > a.router-link-exact-active,
#app .menu-container .menu-list li > div:has(a.router-link-active) { background: #eaf1f7; color: var(--blue); }
#app .menu-container .menu-list a:hover, #app .menu-container .menu-list li > div:hover { background-color: #f2f5f8; }
#app .menu-container .menu-label { font: 500 11px/1.4 var(--mono); color: var(--ink70); letter-spacing: .08em; }

#app .office-page-heading, #app .project-title-print {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem,3.05vw,3rem);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -.045em;
  margin: 0 0 16px;
  text-align: start;
}
#app .office-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1.5 var(--mono);
  color: var(--blue);
  margin-bottom: 6px;
}
#app .office-breadcrumb::after { content: "›"; font-size: 16px; }
#app .project-header { gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #d8d2c9; }
#app .project-header .action-buttons { gap: 8px; }
#app .project-header .button { min-height: 44px; border-radius: 24px; box-shadow: none; }
#app .project-header a[href*="filters"] { background: #fff; color: var(--blue); border: 1px solid var(--line); }
#app .project-header a[href*="projects/new"], #app .project-header a[href*="projects/create"] { background: var(--ink); color: white; }
#app .project-grid {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr));
  grid-auto-rows: 162px;
  gap: 14px;
}
#app .project-grid .project-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 4px #00003308;
  background-color: white;
}
#app .project-grid .project-card:hover, #app .project-grid .project-card:focus-within {
  box-shadow: 0 4px 14px #00003314;
  border-color: var(--blue);
}
#app .project-grid .project-title { color: var(--ink); font-size: 21px; font-weight: 600; letter-spacing: -.035em; }
#app .project-grid .project-card.has-background .project-title { color: white; }
#app .project-grid .office-area-icon {
  position: absolute;
  inset: 17px auto auto 20px;
  width: 46px;
  height: 46px;
  padding: 11px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--linen);
  color: var(--blue);
  pointer-events: none;
}
#app .project-card:has(.project-button[aria-label="Office/Lexi"]):not(.has-background) { background: var(--ink); }
#app .project-card:has(.project-button[aria-label="Office/Lexi"]):not(.has-background) :is(.project-title,.favorite,.settings-dropdown) { color: white; }
#app .project-card:has(.project-button[aria-label="Office/Lexi"]) .office-area-icon { background: white; }

#app .app-content .switch-view-container { padding-bottom: 12px; border-bottom: 1px solid #d8d2c9; margin-bottom: 16px; }
#app .switch-view-container .switch-view { border: 1px solid var(--line); background: #fff; border-radius: 24px; box-shadow: none; }
#app .switch-view-container .switch-view-button { color: var(--ink70); padding: 7px 16px; border-radius: 24px; font-size: 14px; }
#app .switch-view-container .switch-view-button.is-active { background: var(--ink); color: #fff; }
#app .project-kanban .kanban {
  block-size: max(330px,calc(100dvh - 268px));
  padding-inline: 0;
  margin-inline: 0;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #9595a9 transparent;
}
#app .project-kanban .kanban-view { container-type: inline-size; }
#app .project-kanban ul.kanban-bucket-container { flex: none; gap: 12px; }
#app .project-kanban .bucket:not(.is-collapsed):not(.new-bucket) {
  flex: none;
  inline-size: max(238px,calc((100cqi - 36px)/4));
  min-inline-size: 0;
  margin: 0;
  border: 1px solid #d9d6d0;
  border-radius: 12px;
  background: #eae7e1;
}
#app .project-kanban .bucket { --status-color: var(--blue); }
#app .project-kanban .bucket[data-office-state="active"] { --status-color: #087297; }
#app .project-kanban .bucket[data-office-state="waiting"] { --status-color: #946119; }
#app .project-kanban .bucket[data-office-state="done"] { --status-color: #33704d; }
#app .project-kanban .bucket-header {
  background: #faf9f6;
  padding: 6px 8px;
  min-height: 48px;
  border-bottom: 1px solid #d9d6d0;
  justify-content: flex-start;
}
#app .project-kanban .bucket-header::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-color); margin-inline-start: 4px;
}
#app .project-kanban .bucket-header .title { color: var(--ink); font-size: 15px; line-height: 1.2; width: auto; min-width: 0; }
#app .project-kanban .bucket-header .options { margin-inline-start: auto; }
#app .project-kanban .bucket-header .limit { color: var(--ink70); font-size: 11px; }
#app .project-kanban .bucket .tasks { scrollbar-width: thin; scrollbar-color: #a7a6ab transparent; }
#app .project-kanban .bucket .task-item { background-color: transparent; padding: 4px 7px; }
#app .project-kanban .bucket .task-item:first-of-type { padding-top: 8px; }
#app .project-kanban .kanban-card {
  color: var(--ink);
  border-radius: 8px;
  border: 1px solid #dedde2;
  box-shadow: 0 1px 2px #0000330e;
}
#app .project-kanban .kanban-card:hover, #app .project-kanban .kanban-card:focus-within { border-color: #9aafc5; }
#app .project-kanban .kanban-card .p-2 { padding: 12px 13px; }
#app .project-kanban .kanban-card h3 {
  font-size: 15px; font-weight: 600; line-height: 1.35; margin-block: 5px 8px; letter-spacing: -.012em;
}
#app .project-kanban .kanban-card .task-id { font: 500 10px/1.4 var(--mono); color: var(--ink70); }
#app .kanban-card__title-link[data-office-title] { display: block; font-size: 0; }
#app .kanban-card__title-link[data-office-title]::after { content: attr(data-office-title); font: 600 15px/1.35 var(--family-sans-serif); }
#app .kanban-card .task-id[data-office-id]::after { content: " · " attr(data-office-id); }
#app .kanban-card .footer { gap: 6px; color: var(--ink70); }
#app .kanban-card .footer .tag { font-size: 10px; line-height: 1.5; border-radius: 12px; margin: 0; }
#app .kanban-card .footer .icon { background: transparent; padding: 0 3px; }
#app .project-kanban .bucket-footer { padding: 6px 8px; background: #f6f4f0; border-top: 1px solid #d9d6d0; box-shadow: none; }
#app .project-kanban .bucket-footer .button { color: var(--blue); border-radius: 8px; justify-content: flex-start; font-weight: 600; font-size: 13px; }
#app .project-kanban .new-bucket { align-self: flex-start; }
#app .project-kanban .new-bucket .button { background: transparent; color: var(--blue); border: 1px dashed #9595a9; border-radius: 8px; }

#app .task-view-container .task-view { background: #fff; border-radius: 12px; color: var(--ink); }
#app .task-view .description :is(p,li) { line-height: 1.65; }
#app .task-view .description h2 { font-weight: 600; color: var(--ink); letter-spacing: -.025em; }
#app .task-view .description pre {
  padding: 16px; border: 1px solid var(--stone); border-radius: 8px; background: #f6f3ee; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere; font: 500 13px/1.55 var(--mono);
}
#app .task-view .description pre code { white-space: inherit; color: inherit; background: transparent; }
#app .office-prompt-tools { display: flex; justify-content: flex-end; margin: 0 0 8px; }
#app .office-prompt-tools button { border: 1px solid var(--line); background: white; border-radius: 24px; min-height: 42px; padding: 6px 16px; font-weight: 600; color: var(--blue); cursor: pointer; }
#app .task-view .description .office-prompt-heading::before {
  content: ""; display: inline-block; width: 24px; height: 24px; vertical-align: -.16em;
  margin-inline-end: 8px; background: url("ci/lidoos-iq-mark.svg") center / contain no-repeat;
}
@media (max-width: 768px) {
  #app .navbar { padding-inline: 6px; gap: 0; }
  #app .navbar .menu-button { order: -1; margin: 0; width: 44px; }
  #app .navbar .logo-link > div { width: 108px; background-size: 122px; }
  #app .navbar .logo-link::after { display: none; }
  #app .navbar .project-title-wrapper { padding: 0; margin: 0 0 0 auto; }
  #app .navbar .project-title-wrapper .project-title { display: none; }
  #app .navbar .navbar-end { margin-inline-start: auto; }
  #app .office-page-heading, #app .project-title-print { margin-bottom: 12px; }
  #app .app-content:has(.project-header), #app .app-content:has(.project-kanban) { padding-inline: 14px; }
  #app .app-content .switch-view-container { flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 8px; }
  #app .switch-view-container .switch-view { gap: 2px; padding: 3px; }
  #app .switch-view-container .switch-view-button { font-size: 13px; padding-inline: 9px; }
  #app .switch-view-container .filter-container { margin: 0; }
  #app .project-header { align-items: flex-start; gap: 8px; }
  #app .project-header .action-buttons { flex-flow: row wrap; }
  #app .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 142px; gap: 9px; }
  #app .project-grid .project-card { padding: 13px; }
  #app .project-grid .project-title { font-size: 17px; }
  #app .project-grid .office-area-icon { inset: 12px auto auto 12px; height: 38px; width: 38px; padding: 8px; }
  #app .project-kanban .kanban { block-size: max(310px,calc(100dvh - 233px)); margin-inline-end: -14px; padding-inline-end: 14px; }
  #app .project-kanban .bucket:not(.is-collapsed):not(.new-bucket) { inline-size: min(82vw,340px); scroll-snap-align: start; }
}
@media print {
  #app .office-breadcrumb, #app .office-prompt-tools { display: none; }
}

#app .button { text-transform: none; }
#app .switch-view-container .filter-container .button {
  background: white; border: 1px solid var(--line); box-shadow: none; border-radius: 8px; color: var(--ink);
}
#app .project-kanban .bucket-header .has-text-success { color: #33704d; }
#app .kanban-card .task-id .kanban-card__done { background: #e1f1e6; color: #205136; }
#app .task-view .heading h1.title { font: 400 clamp(22px,2.5vw,36px)/1.18 var(--family-sans-serif); letter-spacing: -.03em; }
#app .task-view .heading .task-id { font: 500 13px/1.4 var(--mono); color: var(--blue); }
#app .task-view .description pre :is(code,span) { color: var(--ink); font-weight: 500; }
#app .task-view .description .office-prompt-tools { float: inline-end; position: relative; z-index: 1; }
#app .task-view .description .task-section-title { min-height: 42px; display: flex; align-items: center; }
#app .office-area-total { display: block; font: 500 11px/1.5 var(--mono); color: var(--ink70); margin-top: 4px; }
#app .project-card:has(.project-button[aria-label="Office/Lexi"]):not(.has-background) .office-area-total { color: #d7e4f0; }
#app .project-card.has-background .office-area-total { color: white; }
#app .menu-container nav.menu:last-of-type::before { content: attr(aria-label); display: block; color: var(--ink70); font: 500 11px/1.5 var(--mono); padding: 10px 16px 2px; }

#app .project-kanban .bucket-header { border-block-start: 3px solid var(--status-color); }
#app .project-kanban .bucket-header::before { display: none; }
#app .project-kanban .bucket-header .office-count, #app .project-kanban .bucket-header .limit {
  background: white; color: var(--ink70); border: 1px solid var(--line); border-radius: 12px;
  padding: 1px 6px; font: 500 11px/1.35 var(--mono);
}
#app .project-header a[href*="projects/new"]::after, #app .project-header a[href*="projects/create"]::after {
  content: ""; background: var(--sky); border-radius: 50%; width: 7px; height: 7px; margin-inline-start: 8px;
}

/* Room for pointer, keyboard and touch on the primary Office controls. */
#app .navbar :is(.menu-button,.project-title-button,.trigger-button,.username-dropdown-trigger),
#app .project-kanban .bucket-header .dropdown-trigger {
  min-inline-size: 48px;
  min-block-size: 48px;
}
#app .menu-container .menu-list.other-menu-items li,
#app .menu-container .menu-list li > div { min-block-size: 48px; }
#app .project-header .button, #app .switch-view-container .button,
#app .switch-view-container .switch-view-button, #app .project-kanban .bucket-footer .button,
#app .office-prompt-tools button, #app .task-view .action-buttons .button { min-block-size: 48px; }
#app .switch-view-container .switch-view-button { display: inline-flex; align-items: center; justify-content: center; }
#app .task-view .heading .is-done { color: #205136; background: #e1f1e6; border-radius: 12px; }
#app .menu-container .menu-list li > a.router-link-exact-active,
#app .menu-container .menu-list li > div:has(a.router-link-active) { box-shadow: inset 3px 0 var(--ink); }
@media (min-width: 769px) {
  #app .project-kanban .kanban { block-size: max(330px,calc(100dvh - 284px)); }
}
@media (max-width: 768px) {
  #app .project-kanban .kanban { block-size: max(310px,calc(100dvh - 253px)); }
}
@media (prefers-reduced-motion: reduce) {
  #app .project-grid .project-card, #app .kanban .task, #app .navbar .menu-button::before,
  #app .navbar .menu-button::after { transition: none; }
}
