:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #182a2a;
  background: #f5f7f8;
  font-size: 16px;
  line-height: 1.5;
  --green: #123d38;
  --muted: #627372;
  --line: #dfe7e5;
  --lime: #c7f578;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: #216757;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #719c2e;
  outline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 10px 15px;
  color: inherit;
  min-height: 44px;
}
button:hover {
  border-color: #8aa29c;
  background: #f4f8f6;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #1d514a;
}
.quiet {
  background: transparent;
}
.danger {
  color: #a24033;
}
.small {
  font-size: 0.875rem;
  padding: 7px 12px;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand small {
  display: block;
  color: #b9d0c9;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 48px;
}
.sidebar nav button {
  border: 0;
  color: #c4d7d2;
  background: transparent;
  text-align: left;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 14px;
  font-size: 0.9375rem;
}
.sidebar nav button.active {
  background: #28564b;
  color: var(--lime);
}
.navicon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sidebar .note {
  margin-top: auto;
  color: #b7ccc6;
  font-size: 0.8125rem;
  border-top: 1px solid #41645c;
  padding-top: 22px;
}
.sidebar .note strong {
  display: block;
  color: white;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}
.main {
  grid-column: 2;
  padding: 28px 44px 50px;
  max-width: 1600px;
  width: 100%;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
  margin-bottom: 25px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
}
.topbar .profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e4ebe9;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.topright {
  display: flex;
  align-items: center;
  gap: 16px;
}
.status {
  font-size: 0.8125rem;
  border: 1px solid #decda9;
  color: #72551d;
  border-radius: 30px;
  padding: 6px 12px;
  background: #fff9e8;
}
.status.connected {
  background: #edf6e7;
  color: #315b28;
  border-color: #c5daba;
}
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 17px;
  background: #eaf0ed;
  border: 1px solid #d4e0da;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.banner strong {
  font-weight: 650;
}
.banner.warn {
  background: #fff8e9;
  border-color: #eddfba;
  color: #765922;
}
.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
}
.pagehead h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0 0 9px;
  font-weight: 700;
}
.pagehead p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9375rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 27px;
}
.stat {
  padding: 21px 24px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: white;
}
.stat:first-child {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.stat .label {
  font-size: 0.875rem;
  color: var(--muted);
}
.stat:first-child .label,
.stat:first-child small {
  color: #c7d7d3;
}
.stat .value {
  font-size: 2.25rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -1.5px;
  margin: 8px 0;
}
.stat small {
  color: var(--muted);
  font-size: 0.8125rem;
}
.stat.alert .value {
  color: #b75734;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 1.0625rem;
  margin: 0;
  letter-spacing: -0.25px;
}
.count {
  background: #edf1ef;
  border-radius: 25px;
  font-size: 0.75rem;
  padding: 4px 9px;
  color: #536a61;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 8px;
  padding: 8px 13px;
  white-space: nowrap;
  font-size: 0.875rem;
  min-height: 40px;
  color: var(--muted);
}
.tabs button.active {
  background: #e9f0eb;
  color: #23563c;
  font-weight: 650;
}
.task {
  padding: 20px 22px;
  border-bottom: 1px solid #edf0ee;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.task:last-child {
  border: 0;
}
.task:hover {
  background: #fbfcfb;
}
.taskcheck {
  width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 3px;
}
.taskcheck.done {
  background: #dfeecf;
  color: #306244;
  border-color: #cadbb8;
}
.taskbody {
  flex: 1;
  min-width: 0;
}
.tasktitle {
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  padding: 0;
  text-align: left;
  min-height: 0;
  background: transparent;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
}
.tasktitle:hover {
  background: none;
  text-decoration: underline;
}
.taskmeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 10px;
}
.tag {
  border-radius: 5px;
  padding: 3px 7px;
  background: #edf3f0;
  color: #4d6c61;
  font-size: 0.75rem;
}
.tag.high {
  background: #fff0e5;
  color: #985227;
}
.tag.review {
  background: #eef0fb;
  color: #5a6295;
}
.due.overdue {
  color: #b24e33;
}
.sidepanel {
  padding: 22px;
}
.sidepanel h2 {
  margin-bottom: 18px;
}
.groupmini {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #edf0ee;
}
.avatar {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  background: #e7efe9;
  border-radius: 11px;
  color: #365e46;
  font-weight: 700;
  font-size: 0.8125rem;
  display: grid;
  place-items: center;
}
.groupmini:nth-child(3n) .avatar {
  background: #f8eddb;
  color: #8d6740;
}
.groupmini .grouptext {
  min-width: 0;
  flex: 1;
}
.groupmini strong {
  font-size: 0.875rem;
  display: block;
  overflow-wrap: anywhere;
}
.groupmini small {
  font-size: 0.75rem;
  color: var(--muted);
}
.sidefoot {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.7;
}
.sidefoot strong {
  color: #34524b;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
input,
select,
textarea {
  border: 1px solid #ccd9d3;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: inherit;
  max-width: 100%;
  min-height: 44px;
}
input[type='search'] {
  flex: 1;
  min-width: 160px;
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  font-size: 1.1rem;
  color: #243f36;
  margin: 0 0 8px;
}
.empty p {
  font-size: 0.9375rem;
  max-width: 460px;
  margin: 0 auto 18px;
}
.groupcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.groupcard {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 21px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.groupcard .info {
  flex: 1;
  min-width: 0;
}
.groupcard h3 {
  font-size: 1rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.groupcard p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 5px 0;
}
.switch {
  width: 48px;
  min-height: 28px;
  height: 28px;
  padding: 3px;
  border: 0;
  background: #d1dbd6;
  border-radius: 20px;
  flex-shrink: 0;
}
.switch:before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0002;
}
.switch.on {
  background: #317158;
}
.switch.on:before {
  transform: translateX(20px);
}
.message {
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 9px 0 0;
}
.message small {
  color: var(--muted);
}
.messagehead {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.connectgrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}
.connectcard {
  padding: 26px;
}
.connectcard p,
.connectcard li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
}
.connectcard ol {
  padding-left: 23px;
}
.connectcard li {
  padding: 5px 0;
}
.qr {
  display: block;
  max-width: 260px;
  width: 100%;
  margin: 20px auto;
  border-radius: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.event {
  font-size: 0.875rem;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.event small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.reportbody {
  padding: 25px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.reportfilters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.reportfilters label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
}
.reportfilters input {
  min-width: 150px;
}
.notice {
  padding: 16px;
  border-radius: 10px;
  background: #f5f7f4;
  color: #536a5b;
  font-size: 0.875rem;
  line-height: 1.7;
}
.loading {
  padding: 60px;
  text-align: center;
}
.login {
  max-width: 440px;
  margin: 12vh auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}
.login .brand {
  margin-bottom: 25px;
}
.login input {
  width: 100%;
  margin: 10px 0 18px;
}
.login p {
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 15px 80px #09272040;
  max-width: 620px;
  width: calc(100% - 32px);
  padding: 0;
  color: inherit;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #102c2755;
  backdrop-filter: blur(3px);
}
.dialoghead {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.dialogbody {
  padding: 24px;
}
.dialogbody label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  margin-bottom: 17px;
}
.dialogbody textarea {
  min-height: 95px;
  resize: vertical;
}
.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
blockquote {
  margin: 12px 0 20px;
  padding: 15px 18px;
  border-left: 3px solid #9bb98b;
  background: #f3f6f2;
  color: #4f6659;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #173d35;
  color: white;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 5px 30px #173d3530;
  max-width: 90%;
  z-index: 20;
  display: none;
}
#toast.show {
  display: block;
}
.fine {
  font-size: 0.8125rem;
  color: var(--muted);
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.full {
  width: 100%;
}
.mobilebrand {
  display: none;
}
.linkbutton {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--green);
  color: white;
}
.errorbox {
  border: 1px solid #e9c9b8;
  color: #994b2e;
  background: #fff4e9;
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.task-empty {
  padding: 38px 24px;
}
.datedisplay {
  text-transform: capitalize;
}
.selection-summary {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 17px;
}
.scroll-list {
  max-height: 500px;
  overflow: auto;
}
@media (min-width: 1500px) {
  .main {
    padding-left: 60px;
    padding-right: 60px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 25px 16px;
  }
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .main {
    padding: 24px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidepanel {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .connectgrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: auto;
    padding: 6px 5px calc(6px + env(safe-area-inset-bottom));
    z-index: 10;
    background: #fff;
    border-top: 1px solid var(--line);
    color: #284c40;
  }
  .sidebar > .brand,
  .sidebar .note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
    margin: 0;
  }
  .sidebar nav button {
    font-size: 0.6875rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 7px 3px;
    color: #687d74;
    border-radius: 8px;
    min-width: 0;
    letter-spacing: 0;
  }
  .sidebar nav button.active {
    background: #ebf2e7;
    color: #2c5941;
  }
  .navicon {
    width: 21px;
    height: 21px;
  }
  .main {
    padding: 18px 16px 115px;
  }
  .topbar {
    padding-bottom: 17px;
    margin-bottom: 18px;
  }
  .mobilebrand {
    display: flex;
    font-size: 1.15rem;
  }
  .mobilebrand img {
    width: 32px;
    height: 32px;
  }
  .topbar .eyebrow,
  .profile {
    display: none !important;
  }
  .topright {
    gap: 8px;
  }
  .status {
    font-size: 0.6875rem;
    padding: 5px 8px;
  }
  .banner {
    font-size: 0.8125rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
  }
  .banner button {
    font-size: 0.8125rem;
    padding: 3px 0;
    min-height: 30px;
    border: 0;
    background: transparent;
  }
  .pagehead {
    align-items: flex-start;
    margin: 21px 0 18px;
    gap: 12px;
  }
  .pagehead h1 {
    font-size: 1.65rem;
  }
  .pagehead p {
    font-size: 0.875rem;
  }
  .pagehead > button {
    font-size: 0.8125rem;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    border-radius: 12px;
    padding: 16px;
  }
  .stat .value {
    font-size: 1.9rem;
    margin: 5px 0;
  }
  .stat .label {
    font-size: 0.8125rem;
  }
  .stat small {
    font-size: 0.75rem;
  }
  .panelhead {
    padding: 17px;
  }
  .task {
    padding: 17px 15px;
    gap: 11px;
  }
  .tasktitle {
    font-size: 0.9375rem;
  }
  .taskmeta {
    font-size: 0.8125rem;
    gap: 7px;
  }
  .tabs {
    padding: 9px;
    gap: 0;
  }
  .tabs button {
    font-size: 0.8125rem;
    padding: 8px 10px;
  }
  .groupcards {
    grid-template-columns: 1fr;
  }
  .groupcard {
    padding: 17px;
  }
  .connectcard {
    padding: 20px;
  }
  .connectgrid {
    gap: 15px;
  }
  .reportbody {
    padding: 18px;
    font-size: 0.875rem;
  }
  .reportfilters {
    gap: 10px;
  }
  .reportfilters label {
    flex: 1;
    min-width: 130px;
  }
  .reportfilters select {
    width: 100%;
  }
  .formrow {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dialogbody {
    padding: 20px;
  }
  dialog {
    width: calc(100% - 20px);
  }
  .login {
    margin: 8vh 16px;
    padding: 25px;
  }
  .datedisplay {
    font-size: 0.8125rem;
  }
  .pagehead .datedisplay {
    display: none;
  }
  #toast {
    bottom: 100px;
    width: max-content;
    text-align: center;
  }
  .toolbar select {
    max-width: 100%;
  }
  .notice {
    padding: 12px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .banner,
  .pagehead button,
  .reportfilters,
  .actions,
  .toolbar,
  #toast {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0;
  }
  .panel {
    border: 0;
  }
  .reportbody {
    padding: 0;
  }
  .pagehead {
    margin-top: 0;
  }
}

.reportpanel {
  margin-bottom: 20px;
}
.connectcard form label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-size: 0.875rem;
}
.connectcard form input:not([type='checkbox']) {
  width: 100%;
}
.connectcard form .checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkline input[type='checkbox'] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}
.notice details summary {
  cursor: pointer;
}
.notice p {
  margin: 9px 0;
}
