:root {
  --ink: #242b33;
  --sub: #526171;
  --line: #dbe2e9;
  --canvas: #f3f5f8;
  --focus: #3a617e;
  --panel-radius: 12px;
  --workspace-inset: clamp(20px, 3vw, 48px);
  --rail-width: clamp(208px, 16.2vw, 242px);
}

body { line-height: 1.5; }
[hidden] { display: none !important; }
summary { cursor: pointer; }
:where(summary, button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button, a, summary { -webkit-tap-highlight-color: #c9161f17; }
.skip:focus { inset: 10px auto auto 12px; box-shadow: 0 2px 12px #242b3326; border-radius: 6px; }

/* Navigation and shared page frame */
.shell { grid-template-columns: var(--rail-width) minmax(0, 1fr); }
.shell .sidenav {
  position: sticky;
  top: 0;
  width: auto;
  height: 100dvh;
  padding: 0 14px 14px;
}
.brandline {
  display: flex;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}
.shell .brandrow {
  justify-content: space-between;
  gap: 10px;
  padding: 10px 5px;
  border: 0;
}
.shell .brandrow img { width: min(128px, 70%); height: 34px; object-fit: contain; object-position: left center; }
.shell .brandrow b { border-left: 1px solid var(--line); padding-left: 10px; font-size: 20px; letter-spacing: -.7px; }
.nav-close { display: none; }
.sidenav nav { margin-inline: -4px; padding: 0 4px; flex: 1; }
.shell .navgroup { padding-top: 16px; }
.shell .navgroup h2 { color: var(--sub); margin: 0 11px 3px; }
.shell .navlink,
.nav-more > summary {
  min-height: 44px;
  gap: 10px;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: 7px;
  color: #3d4b59;
  font-size: 14px;
  font-weight: 550;
}
.nav-more { margin-block: 12px 6px; }
.nav-more > summary {
  display: flex;
  align-items: center;
  list-style: none;
}
.nav-more > summary::-webkit-details-marker,
.action-menu > summary::-webkit-details-marker,
.workspace-disclosure > summary::-webkit-details-marker { display: none; }
.nav-more > summary > span,
.navlink > span { flex: 1; text-align: left; }
.nav-more[open] { background: #f6f8fa; border-radius: 7px; }
.nav-more .navlink { padding-left: 21px; }
.nav-more.active > summary { color: var(--red-dark); }
.nav-more > summary:hover { background: #eff2f7; }
.shell .navlink.active {
  background: #faeaec;
  color: var(--red-dark);
  box-shadow: inset 3px 0 var(--red);
  font-weight: 680;
}
.shell .navlink .nav-count { background: #edf1f5; color: #344d65; }
.shell .navlink.active .nav-count { background: #f4d8dc; color: var(--red-dark); }
.shell .navfoot { padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.shell .topbar {
  min-height: 68px;
  height: auto;
  gap: 14px;
  padding: 8px var(--workspace-inset);
}
.topbar .global-search {
  align-items: center;
  height: 42px;
  min-width: 190px;
  width: min(370px, 42%);
  color: var(--sub);
  background: #f3f6f8;
  border-color: #e1e6ed;
  border-radius: 8px;
  font-weight: 500;
}
.global-search:hover { background: #eaf0f4; }
.topbar .global-search span { display: inline; }
.topbar kbd, .help-content kbd {
  display: inline-block;
  border: 1px solid #c9d3df;
  border-radius: 4px;
  padding: 1px 6px;
  background: #fff;
  color: #415065;
  font: 500 12px/1.4 ui-monospace, monospace;
}
.topbar .topactions { gap: 8px; }
.topbar .assistant-top, .topbar .profilebutton {
  min-height: 44px;
  padding: 5px 8px;
  border-radius: 7px;
  border: 0;
  color: #3f5162;
}
.profilebutton:hover { background: #eff2f7; }
.topbar .proftext b { max-width: 195px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.topbar .iconbutton, .dialoghead .iconbutton { width: 44px; height: 44px; flex: none; }
.notifydot { right: 9px; top: 7px; width: 8px; height: 8px; }
.mobile-location { display: none; }

#main {
  max-width: 1600px;
  padding: clamp(24px, 3vw, 43px) var(--workspace-inset) 44px;
}
.pagetitle { gap: 14px 24px; flex-wrap: wrap; margin-bottom: 25px; }
.pagetitle h1 { font-size: clamp(29px, 3vw, 44px); letter-spacing: -.05em; }
.pagetitle p { max-width: 65ch; margin-top: 8px; line-height: 1.45; }
.pagetools, .pagetitle > div:first-child { min-width: 0; }
.pagetitle h1[tabindex]:focus { outline: none; }
.pagetools { justify-content: flex-start; }
.button, .textbutton, .tab { min-height: 40px; }
.button[aria-busy="true"], .textbutton[aria-busy="true"], .taskrow[aria-busy="true"] { cursor: wait; }
.button { border-radius: 8px; gap: 8px; }
.textbutton { padding: 5px 0; }
.button.danger { color: #9c1825; }
.section-tabs { gap: 5px; }
.section-tabs .tab { padding-inline: 12px; }
.section-tabs .selected { background: #faeaec; border-color: #f0d4d8; }
.panel { border-radius: var(--panel-radius); }
.panelhead { padding: 17px 21px; }
.panel h2 { font-size: clamp(18px, 1.5vw, 22px); }
.panelhead p { margin-top: 4px; line-height: 1.5; }
.panel :is(.taskrow, .mailrow, .meetingrow, .metric):focus-visible { outline-offset: -3px; z-index: 1; }
.empty { padding: 28px 20px; gap: 4px; }
.empty > span { display: none; }
.empty > p { max-width: 40ch; }
.empty > b { font-size: 16px; }

/* Shared menus, filters and card details */
.action-menu { position: relative; min-width: 0; }
.action-menu > summary { list-style: none; white-space: nowrap; }
.action-menu[open] > summary { background: #eff2f7; border-color: #abbcc9; }
.action-menu-items {
  position: absolute;
  z-index: 9;
  inset: calc(100% + 6px) 0 auto auto;
  width: max-content;
  min-width: 200px;
  max-width: min(305px, calc(100vw - 35px));
  display: grid;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 10px 26px #23394d24;
}
.action-menu-items > :is(.button, .textbutton) {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  border: 0;
  padding: 8px 10px;
}
.nav-more[open] > summary svg:last-child,
.action-menu[open] > summary svg:last-child,
.workspace-disclosure[open] > summary > svg { transform: rotate(180deg); }
.workspace-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 20px;
  list-style: none;
  color: #344b60;
}
.workspace-disclosure > summary:hover { background: #f5f7fa; }
.workspace-disclosure > summary:focus-visible { outline-offset: -3px; }
.workspace-disclosure > summary small { display: block; color: var(--sub); font-size: 13px; }
.card-disclosure {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.card-disclosure > summary {
  min-height: 43px;
  padding: 10px 0;
  color: #39536a;
  font-size: 14px;
  font-weight: 650;
}
.card-disclosure[open] > div { padding: 4px 0 12px; }
.detailactions > .card-disclosure { border: 0; margin: 0; }
.detailactions > .card-disclosure[open] { width: 100%; }
.detailactions > .card-disclosure > summary { padding: 8px 10px; }
.detailactions > .card-disclosure > div { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.dialogtitle { font-size: clamp(22px, 2.3vw, 30px); overflow-wrap: anywhere; }
.dialogbody { overflow-wrap: anywhere; }
.dialogbody > .facts { margin-top: 12px; }
.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); background: #f2f5f8; padding: 14px 16px; }
.facts dt, .detailmeta small { line-height: 1.35; }
.dialogbody .detailsection h3 { color: #283947; }
.dialogbody .formgrid, .dialogbody .singlefield { line-height: 1.45; }
.dialogbody .formgrid { gap: 13px 16px; }
.dialogbody :is(.formgrid label, .singlefield) { font-size: 14px; color: #3f5060; }
.dialogbody :is(input:not([type="checkbox"], [type="radio"]), select) { min-height: 42px; }
.dialogbody :is(select, input, textarea) { border-color: #bdc9d5; }
.dialogbody :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--red); }
.dialogbody :is(.formgrid details, .checkfield details) > summary { color: #37556b; padding-block: 6px; }
.dialogbody .formfoot { gap: 9px; }
.feedback:empty { min-height: 0; margin-top: 0; }
/* Sign-in and access by corporate mail */
.access-content { width: min(100%, 30rem); margin-inline: auto; }
.loginbody #login-form { gap: 12px; }
.access-content .singlefield input, .access-content .button { min-height: 44px; }
.access-intro { margin: 0 0 16px; color: var(--sub); font-size: 15px; line-height: 1.5; }
.access-messages .note { margin-top: 0; overflow-wrap: anywhere; }
.access-messages .feedback { overflow-wrap: anywhere; }
.access-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.access-content .access-secondary {
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  color: var(--red-dark);
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.access-first {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px 18px;
  border-inline-start: 3px solid var(--sreda-red);
  border-radius: 7px;
  background: var(--sreda-cloud);
}
.access-first h3 { font-size: 19px; line-height: 1.3; }
.access-first p { font-size: 14px; line-height: 1.5; }
.access-first .button {
  justify-self: start;
  border-color: var(--red-dark);
  color: var(--red-dark);
  white-space: normal;
  text-align: center;
}
.access-first .button:hover { background: #fff4f5; }
.access-steps {
  margin: 12px 0 0;
  padding: 14px 12px 14px 34px;
  border-inline-start: 3px solid var(--sreda-steel);
  border-radius: 7px;
  background: var(--sreda-cloud);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.access-steps li + li { margin-top: 6px; }
.access-steps li::marker { color: var(--sreda-steel); font-weight: 700; }

@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-art { min-height: 0; flex-direction: row; align-items: center; gap: 12px; padding: 16px 20px; }
  .login-art > img { width: min(110px, 43%); }
  .login-art h1 { font-size: 32px; letter-spacing: -.04em; }
  .login-art p { display: none; }
  .loginbody { align-content: start; padding: 22px clamp(16px, 5vw, 28px) 30px; }
  .loginbody h2 { margin-bottom: 14px; letter-spacing: -.02em; }
}
@media (max-width: 425px) {
  .access-first .button { justify-self: stretch; }
}


/* First day and the personal daily view */
.workspace-guide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 21px;
  padding: 16px 18px;
  border: 1px solid #e8d6da;
  border-left: 3px solid var(--red);
  border-radius: var(--panel-radius);
  background: #fffafb;
}
.guide-icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 9px;
  background: #f8e6e9;
  color: var(--red-dark);
}
.guide-progress { color: #7f3240; font-size: 13px; font-weight: 650; }
.guide-copy h2 { font-size: clamp(17px, 1.4vw, 20px); }
.guide-copy p { margin-top: 4px; font-size: 14px; color: var(--sub); max-width: 67ch; }
.guide-copy .feedback { color: #9c1825; }
.guide-actions { display: flex; align-items: center; gap: 10px; }
.guide-primary { color: var(--red-dark); border-color: #e6b9c0; }
.guide-primary:hover { background: #f9e9eb; color: var(--red-dark); }
.guide-actions .textbutton { color: #5a5763; }
.workgrid { grid-template-columns: minmax(0, 1.65fr) minmax(294px, .95fr); gap: 20px; }
.priorities .panelhead { border-bottom: 1px solid var(--line); min-height: 70px; }
.priorities .panelhead > div { min-width: 0; }
.priorities .panelhead .textbutton { flex: none; }
.review-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 4px 20px;
  border-bottom: 1px solid #e2eaf0;
  background: #f1f6fa;
  color: #35536b;
  font-size: 14px;
}
.review-callout > span { display: flex; align-items: center; gap: 7px; }
.agenda { display: block; }
.agenda-head {
  background: #3b546b;
  padding: 16px 18px;
}
.agenda-head h2 { margin: 0; font-size: clamp(19px, 1.5vw, 23px); letter-spacing: -.03em; }
.agenda-head p { margin-top: 4px; color: #f1f5fa; font-size: 14px; }
.agenda .weekdays { display: grid; padding: 12px 9px 9px; gap: 2px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays button { min-height: 43px; }
.weekdays button:hover { background: #eff2f7; }
.weekdays .selected:hover { background: #f7dce0; }
.agenda-list { padding: 4px 10px; }
.agenda-item { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.agenda-item:focus-visible { outline-offset: -2px; }
.agenda-foot { padding: 3px 18px; }
.agenda-foot .textbutton { gap: 8px; }
#calendar-load > .loadpanel { margin-top: 16px; }
.loadgrid { border-top: 1px solid var(--line); padding-top: 16px; }
.loaditem { min-width: 0; overflow-wrap: anywhere; }
.loaditem .loadbar i, .projecttile .loadbar i { background: #587b96; }
.loaditem > small { display: block; }

/* Work lists and reports */
.task-registry .listtools { flex-wrap: wrap; padding: 12px 16px; }
.task-registry .filterbar { padding: 12px 16px; gap: 10px 14px; }
.mini-search input { min-width: 0; max-width: none; width: min(270px, 100%); padding: 10px 5px; }
.filterbar :is(input, select) { min-height: 38px; }
.filterbar .filterlabel { flex: 0 1 auto; min-width: 0; color: var(--sub); }
.filterbar .filterlabel span { display: inline; }
.task-filters { border-top: 1px solid var(--line); }
.task-filters summary { padding-inline: 17px; }
.task-filters summary > span { display: flex; align-items: center; gap: 9px; }
.task-filters summary b { font-size: 14px; }
.task-filters .filterbar { align-items: end; display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); background: #f7f9fb; }
.task-filters .filterlabel { display: grid; gap: 4px; font-weight: 600; }
.task-filters .filterlabel :is(select,input) { width: 100%; max-width: none; font-weight: 400; }
.task-filters .textbutton { align-self: stretch; }
.result-count { padding: 7px 17px; background: #f4f6f9; border-top: 1px solid var(--line); color: var(--sub); font-size: 13px; }
.taskrow {
  grid-template-columns: minmax(0,1fr) minmax(70px, 107px) minmax(100px, 115px) minmax(65px, 85px) 32px;
  gap: 8px;
  padding: 13px 19px;
}
.compact .taskrow { grid-template-columns: minmax(0,1fr) minmax(90px, auto) minmax(64px, auto); padding: 13px 19px; }
.tasktitle, .tasktitle > span { display: block; }
.tasktitle b { overflow-wrap: anywhere; line-height: 1.4; font-size: 15px; }
.tasktitle small { display: block; margin-top: 3px; }
.statecell .pill, .rankcell .pill { display: inline-block; vertical-align: middle; }
.due { font-variant-numeric: tabular-nums; }
.due.late { font-weight: 650; }
.deadline-day > h3 { padding: 11px 19px; background: #f0f3f7; color: #405971; font-size: 15px; }
.boardcard:focus-visible { outline-offset: 0; }
.mailrow, .meetingrow { overflow-wrap: anywhere; align-items: center; }
.meetingrow:first-child { border-top: 0; }
.calstamp { border-radius: 7px; background: #f4f7fa; }
.projectgrid { grid-template-columns: repeat(auto-fill,minmax(min(100%, 275px),1fr)); gap: 16px; }
.projecttile { min-width: 0; overflow-wrap: anywhere; }
.projecttile h2 { margin: 10px 0 8px; font-size: 19px; }
.projecttile > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex: 0 1 auto;
}
.projecttile > footer { margin: auto 0 0; padding-top: 16px; align-items: center; }
.projecttile > footer small { white-space: nowrap; }
.projecttile > .loadbar { margin: 6px 0; }
.report-period { color: var(--sub); margin: -12px 0 15px; font-size: 14px; }
.metrics { margin-bottom: 10px; }
.metric + .metric { border-color: var(--line); }
.metric { min-height: 64px; }
.metric-top { line-height: 1.35; width: 100%; }
.report-secondary { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 16px; padding: 0; }
.report-secondary > div { display: flex; align-items: baseline; gap: 7px; font-size: 13px; color: var(--sub); }
.report-secondary dd { margin: 0; color: #374f64; font-weight: 700; }
.reporttable:focus-visible { outline-offset: -3px; }
.settings-account { gap: 12px 20px; flex-wrap: wrap; overflow: visible; }
.settings-account h2 { margin: 2px 0 5px; }
.settings-account .inputrow { align-items: flex-start; }
.account-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.account-summary .avatar { width: 45px; height: 45px; }
.account-summary h3 { font-size: 17px; }
.account-summary p { color: var(--sub); font-size: 14px; }
.account-options { display: flex; flex-wrap: wrap; gap: 8px; }
.account-options .note { flex-basis: 100%; }
.card-disclosure .note + .account-options { margin-top: 8px; }
.help-content { display: grid; justify-items: start; gap: 8px; }
.help-content h3 { margin-top: 6px; font-size: 17px; }
.help-content p { color: var(--sub); }
.help-content .button + h3 { margin-top: 14px; }
.isu-people-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.isu-people-secondary-actions button { min-height: 42px; }

@media (max-width: 1100px) {
  .taskrow { grid-template-columns: minmax(0,1fr) minmax(63px, 82px) 94px 74px 30px; }
  .guide-actions { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 980px) {
  .topbar .profilebutton .proftext, .topbar .profilebutton > svg { display: none; }
  .workgrid { grid-template-columns: minmax(0,1fr); }
  .agenda { display: block; }
  .task-registry .listtools { align-items: flex-start; }
}
@media (max-width: 760px) {
  :root { --workspace-inset: 15px; }
  .shell .sidenav {
    position: fixed;
    width: min(300px, calc(100% - 40px));
    height: 100dvh;
    visibility: hidden;
    padding-inline: 14px;
  }
  .shell.menushow .sidenav { visibility: visible; }
  .brandline { min-height: 64px; gap: 6px; }
  .shell .brandrow { justify-content: flex-start; }
  .nav-close { display: inline-flex; flex: none; }
  .mobile-location { display: block; min-width: 0; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
  .shell .topbar { min-height: 59px; padding: 5px 7px; gap: 1px; }
  .topbar .topactions { gap: 1px; }
  .topbar .global-search, .topbar .assistant-top, .topbar .profilebutton { min-width: 44px; width: 44px; min-height: 44px; height: 44px; justify-content: center; padding: 0; }
  .topbar .global-search { border: 0; background: transparent; }
  .topbar .global-search span, .topbar .global-search kbd { display: none; }
  #main { padding-top: 20px; }
  .pagetitle { gap: 10px; margin-bottom: 18px; }
  .panelhead { padding: 12px 15px; }
  .panelhead .textbutton { font-size: 14px; }
  .button, .textbutton, .tab { min-height: 44px; }
  .tab { white-space: normal; }
  .pagetools { justify-content: flex-start; }
  .settings-account .inputrow { display: grid; width: 100%; justify-items: start; }
  .settings-account .action-menu-items { position: static; max-width: 100%; margin-top: 6px; }
  .workspace-guide { grid-template-columns: auto minmax(0,1fr); gap: 10px; padding: 12px; }
  .guide-icon { width: 34px; height: 34px; align-self: start; }
  .guide-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .workgrid { gap: 15px; }
  .priorities .panelhead { min-height: 60px; }
  .review-callout { padding-inline: 14px; }
  .listtools .switcher, .panelhead .switcher { flex-wrap: wrap; }
  .task-registry .filterbar { padding-inline: 13px; }
  .taskrow, .compact .taskrow { grid-template-columns: minmax(0,1fr) minmax(65px, auto) 31px; gap: 4px 8px; padding: 12px 13px; }
  .compact .taskrow { grid-template-columns: minmax(0,1fr) minmax(65px, auto); }
  .taskrow .tasktitle { grid-column: 1 / -1; }
  .taskrow .task-owner { grid-column: 3; grid-row: 2; }
  .taskrow .avatar, .taskrow .statecell { display: inline-flex; }
  .taskrow .rankcell { grid-column: 1 / -1; grid-row: 3; }
  .taskrow .rankcell:empty { display: none; }
  .taskrow .due { justify-self: end; }
  .tasktitle small, .due, .pill { font-size: 12px; }
  .isc-controls { gap: 7px; }
  .isu-calendar :is(.isc-arrow,.isc-today,.isc-mode,.isc-date) { min-height: 44px; }
  .isu-calendar .isc-arrow { width: 44px; }
  .dialogbody :is(.formgrid input, .formgrid select, .formgrid textarea, .singlefield input, .singlefield textarea) { font-size: 16px; }
}
@media (max-width: 390px) {
  .shell .mobile-location { font-size: 13px; }
  .workspace-guide { gap: 8px; }
  .guide-actions { flex-wrap: wrap; gap: 2px 10px; }
  .projecttile { padding: 17px; }
  .meetingrow { gap: 9px; }
  .meetingrow > svg { display: none; }
  .metricicon { display: none; }
}
