@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DM-Sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: "DM Sans", "Inter", Arial, Helvetica, sans-serif;
  background: #f8f9fb;
  color: #222528;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #508cb4;
  outline-offset: 3px;
}
button {
  background: transparent;
  border: 0;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
header {
  background: #fff;
  border-bottom: 1px solid #dedfe1;
}
.navwrap {
  max-width: 1512px;
  padding: 0 4.5%;
  height: 74px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: clamp(25px, 5vw, 80px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  letter-spacing: -1.7px;
  font-weight: 760;
}
.brand img {
  width: 36px;
  height: 36px;
}
nav {
  display: flex;
  gap: 5px;
  align-items: center;
}
nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  color: #62646a;
  border-radius: 7px;
  padding: 11px 14px;
}
nav a:hover,
.iconbtn:hover,
.account:hover {
  background: #f5f5f5;
}
nav .active {
  background: #f0f1f2;
  color: #202226;
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  padding: 5px;
  border-radius: 18px;
}
.account i {
  display: contents;
}
.avatar {
  display: grid;
  place-items: center;
  background: #f4dbea;
  border: 1px solid #d6b8cc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 15px;
}
main {
  max-width: 1512px;
  margin: 0 auto;
  padding: 32px 4.5% 50px;
}
.pagehead,
.sectionhead,
.panelhead,
.monthbar,
.row,
.footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pagehead {
  margin-bottom: 24px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 3vw, 47px);
  font-weight: 660;
  line-height: 1.1;
  letter-spacing: -2.1px;
}
.subtitle {
  margin-top: 9px;
  font-size: 15px;
  color: #666b72;
  line-height: 1.5;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.primary {
  background: #26282a;
  color: white;
  box-shadow: 0 1px 1px #0002;
}
.primary:hover {
  background: #404347;
}
.secondary {
  background: #fff;
  border: 1px solid #dcdde0;
}
.secondary:hover {
  background: #f6f7f8;
}
.workspacegrid {
  display: grid;
  grid-template-columns: minmax(0, 1.96fr) minmax(290px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.panel,
.record {
  background: #fff;
  border: 1px solid #dfe1e4;
  border-radius: 13px;
}
.calendar {
  overflow: hidden;
}
.panelhead {
  padding: 20px 22px;
}
.headingicon {
  display: flex;
  align-items: center;
  gap: 9px;
}
.headingicon svg {
  width: 19px;
  height: 19px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.35px;
}
.legend {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #63676f;
}
.legend span,
.tag,
.metaicon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  display: inline-block;
}
.monthbar {
  padding: 0 22px 15px;
}
.monthbar strong {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.monthcontrols {
  display: flex;
  align-items: center;
  gap: 5px;
}
.iconbtn,
.todaybtn {
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #dedfe2;
  border-radius: 6px;
  color: #51555c;
  background: white;
}
.todaybtn {
  font-size: 12px;
  padding: 0 10px;
  font-weight: 550;
}
.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekdays {
  background: #f8f9fa;
  border-block: 1px solid #e3e4e6;
}
.weekdays span {
  padding: 9px 3px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #6a6d74;
  letter-spacing: 0.6px;
}
.day {
  min-height: 63px;
  position: relative;
  border-right: 1px solid #e6e7e9;
  border-bottom: 1px solid #e6e7e9;
  min-width: 0;
  padding: 4px 4px 5px;
  cursor: pointer;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day:nth-last-child(-n + 7) {
  border-bottom: 0;
}
.day:hover {
  background: #faf9f3;
}
.other {
  background: #fbfbfc;
}
.daynum {
  font-size: 12px;
  font-weight: 520;
  display: grid;
  place-items: center;
  height: 21px;
  min-width: 21px;
  width: fit-content;
  margin: 0 0 3px 1px;
  border-radius: 50%;
  color: #41444a;
}
.other .daynum {
  color: #a6a9ad;
}
.day.current {
  background: #fffbed;
}
.current .daynum {
  background: #f4d460;
  color: #2f2c21;
  font-weight: 700;
}
.event {
  padding: 4px 5px;
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}
.tag.decision {
  background: #fae0eb;
  color: #7a405c;
}
.tag.report {
  background: #deedfc;
  color: #365f83;
}
.event-category {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #0002;
  vertical-align: 1px;
  margin-right: 5px;
}
.daymore {
  font-size: 11px;
  color: #6b6d72;
}
.deadlinepanel {
  display: flex;
  flex-direction: column;
}
.deadlinepanel .panelhead {
  padding-bottom: 8px;
}
.deadlineitem {
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  padding: 15px 0;
  border-bottom: 1px solid #e9eaec;
  width: 100%;
}
.deadlineitem:last-child {
  border: 0;
}
.deadlineitem:hover,
.taskrow:hover,
.record:hover {
  background: #fbfbfc;
}
.deadlinelist {
  padding: 0 21px;
  flex: 1;
}
.datebox {
  width: 45px;
  min-width: 45px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  background: #f8f8f9;
  border: 1px solid #e0e2e5;
  border-radius: 8px;
}
.datebox b {
  font-size: 20px;
  letter-spacing: -0.8px;
  line-height: 1.05;
}
.datebox small {
  font-size: 9px;
  letter-spacing: 0.7px;
  font-weight: 650;
  color: #656971;
}
.deadlineitem .title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}
.details {
  min-width: 0;
}
.tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #73767d;
  font-size: 12px;
}
.tag {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.15;
}
.tag svg {
  width: 10px;
  height: 10px;
}
.timedue {
  font-size: 11px;
  color: #6b6e73;
}
.soon {
  color: #b54a47;
}
.footbtn {
  width: calc(100% - 42px);
  border: 1px solid #dadce0;
  margin: 5px 21px 17px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
}
.footbtn:hover {
  background: #f6f7f9;
}
.sectionhead {
  margin: 26px 0 14px;
}
.textbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 550;
}
.textbtn:hover {
  text-decoration: underline;
}
.tasklist {
  padding: 0 20px;
}
.taskrow {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 3px;
  border-bottom: 1px solid #eaebed;
}
.taskrow:last-child {
  border-bottom: 0;
}
.taskrow .details {
  flex: 1;
}
.taskrow h3 {
  margin-bottom: 4px;
}
.hint,
.empty {
  font-size: 14px;
  color: #676c72;
  line-height: 1.55;
}
.empty {
  padding: 28px;
  text-align: center;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 0 10px;
}
.search input {
  border: 0;
  width: 210px;
}
.toolbar select {
  width: auto;
}
.fullcal .day {
  min-height: 91px;
}
.fullcal .event {
  font-size: 13px;
}
.fullcal .panelhead {
  padding-bottom: 20px;
}
.countpill {
  border-radius: 20px;
  background: #f1f2f4;
  font-size: 12px;
  padding: 3px 8px;
}
.status {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #dedfe1;
  border-radius: 5px;
  font-size: 12px;
}
.status.pending,
.event.pending {
  background: #d4edda;
  color: #245c38;
  border-color: #c1dfc8;
}
.status.turned,
.event.turned {
  background: #cce7fa;
  color: #214e72;
  border-color: #b3d8f0;
}
.status.urgent,
.event.urgent {
  background: #852b3c;
  color: #fff;
  border-color: #852b3c;
}
.dot.pending {
  background: #9bc9a7;
}
.dot.turned {
  background: #87bddf;
}
.dot.urgent {
  background: #852b3c;
}
.timedue {
  color: #852b3c;
}
.deadlinecolumn {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  align-self: stretch;
}
.nextpanel {
  border-top: 3px solid #852b3c;
}
.nextpanel .panelhead {
  padding-bottom: 12px;
}
.nextpanel .headingicon svg,
.deadlinepanel .headingicon svg {
  color: #852b3c;
}
.nextbody {
  padding: 0 22px 14px;
}
.nexttime {
  display: block;
  color: #852b3c;
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 7px;
}
.nexttask {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.nexttask + .nexttask {
  border-top: 1px solid #eee;
}
.nexttask:hover span {
  text-decoration: underline;
}
.sideempty {
  margin: 0;
  padding: 6px 22px 22px;
  color: #646973;
  font-size: 14px;
}
.deadlineitem .title {
  display: block;
  overflow-wrap: anywhere;
}
.deadlineitem .datebox {
  background: #fff8f8;
  border-color: #ead4d8;
  color: #852b3c;
}
.deadlineitem .datebox small {
  color: #852b3c;
}
.timedue {
  font-size: 13px;
  font-weight: 600;
}
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}
.category-label i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #0002;
  flex: none;
}
.rowmeta {
  display: block;
  margin-top: 5px;
  color: #676c72;
  font-size: 13px;
}
.newcategory:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  background: #f7f8f9;
  border: 1px solid #e6e8e9;
  border-radius: 8px;
  padding: 12px;
}
.newcategory input[type="color"] {
  width: 100%;
  min-width: 60px;
  height: 39px;
  padding: 3px;
  cursor: pointer;
}
.records {
  display: grid;
  gap: 10px;
}
.record {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.record .details {
  flex: 1;
}
.record .hint {
  margin-top: 4px;
}
.recordicon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  border-radius: 8px;
  background: #e5f0fa;
}
.seg {
  display: inline-flex;
  border: 1px solid #d9dbdf;
  background: white;
  padding: 3px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.seg button {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 5px;
}
.seg .sel {
  background: #eeeef1;
  font-weight: 600;
}
dialog {
  width: min(530px, calc(100% - 28px));
  padding: 0;
  background: #fff;
  border: 1px solid #d6d9df;
  border-radius: 15px;
  box-shadow: 0 18px 80px #1a233333;
  color: #24272a;
  max-height: 89dvh;
}
dialog::backdrop {
  background: #20263266;
  backdrop-filter: blur(2px);
}
.dialoghead {
  padding: 22px 24px 17px;
  border-bottom: 1px solid #e6e7e9;
}
.dialoghead h2 {
  font-size: 22px;
}
.dialoghead .iconbtn {
  border: 0;
}
.content,
form.form {
  padding: 22px 24px;
}
.fields {
  display: grid;
  gap: 16px;
}
label.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
input,
textarea,
select {
  padding: 10px 11px;
  border: 1px solid #d9dce0;
  border-radius: 7px;
  min-width: 0;
  background: #fff;
  font-size: 14px;
}
textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.5;
}
select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23545a60' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  appearance: none;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.err {
  color: #a52f34;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 12px;
}
.err:empty {
  display: none;
}
.detailtitle {
  font-size: 24px;
  letter-spacing: -0.85px;
  margin: 9px 0 14px;
}
.keyvalues {
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: 11px;
  column-gap: 12px;
  font-size: 14px;
  margin: 18px 0;
}
.keyvalues dt {
  color: #6b6f75;
}
.keyvalues dd {
  margin: 0;
}
.notes {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.hr {
  height: 1px;
  background: #e3e5e8;
  margin: 18px 0;
}
.source {
  margin-top: 15px;
}
.source summary {
  font-size: 13px;
  cursor: pointer;
  color: #5c6268;
}
.source p {
  margin-top: 8px;
}
.bullets {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
}
.locked {
  max-width: 440px;
  margin: 10vh auto;
  background: #fff;
  border: 1px solid #dfe1e4;
  padding: 30px;
  border-radius: 15px;
}
.locked h1 {
  font-size: 32px;
  margin-bottom: 10px;
}
.locked form {
  margin-top: 20px;
}
.locked .primary {
  width: 100%;
}
.percent {
  color: #40444b;
  font-weight: 600;
}
.mobile-only {
  display: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 19px;
  background: #25282b;
  color: white;
  box-shadow: 0 4px 20px #0002;
  border-radius: 8px;
  font-size: 14px;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.15s;
}
#toast.show {
  opacity: 1;
}
.reviewbox {
  background: #fff6da;
  padding: 14px;
  border-radius: 8px;
  margin: 12px 0;
}
.reviewbox p {
  margin-bottom: 8px;
}
@media (min-width: 1540px) {
  .day {
    min-height: 78px;
  }
  .deadlineitem {
    padding: 20px 0;
  }
}
@media (max-width: 1080px) {
  .navwrap {
    gap: 25px;
  }
  nav a {
    padding: 9px 10px;
  }
  .account > span:nth-child(2) {
    display: none;
  }
  .workspacegrid {
    grid-template-columns: minmax(0, 1.75fr) minmax(264px, 1fr);
    gap: 15px;
  }
  .panelhead,
  .monthbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .deadlinelist {
    padding: 0 15px;
  }
  .calendar .headingicon svg {
    display: none;
  }
  .deadlineitem {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  main {
    padding: 24px 17px 40px;
  }
  .navwrap {
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 12px 17px 0;
    gap: 12px;
  }
  .brand {
    font-size: 25px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .account {
    grid-column: 2;
    grid-row: 1;
  }
  .account > span:nth-child(2) {
    display: inline;
  }
  .navwrap nav {
    grid-column: 1/-1;
    grid-row: 2;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 8px;
  }
  nav a {
    justify-content: center;
    font-size: 12px;
    gap: 5px;
    flex: 1;
    padding: 8px 6px;
  }
  nav svg {
    width: 15px;
    height: 15px;
  }
  .workspacegrid {
    grid-template-columns: 1fr;
  }
  .pagehead {
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
  }
  .subtitle {
    font-size: 13px;
  }
  .pagehead .primary {
    font-size: 13px;
    padding: 10px;
  }
  .deadlineitem {
    padding: 12px 0;
  }
  .calendar .headingicon svg {
    display: inline;
  }
  .day {
    min-height: 56px;
    padding: 3px 2px;
  }
  .event {
    font-size: 10px;
    padding: 3px;
  }
  .legend {
    font-size: 11px;
    gap: 7px;
  }
  .panelhead {
    padding-top: 17px;
    padding-bottom: 15px;
  }
  h2 {
    font-size: 18px;
  }
  .sectionhead {
    margin-top: 22px;
  }
  .fullcal .day {
    min-height: 65px;
  }
  .fullcal .event {
    font-size: 10px;
  }
  .record {
    padding: 13px;
  }
  .taskrow {
    gap: 8px;
  }
  .taskrow h3 {
    font-size: 14px;
  }
  .taskrow {
    flex-wrap: wrap;
  }
  .taskrow .details {
    min-width: 40%;
  }
  .account {
    font-size: 12px;
  }
  .formrow {
    grid-template-columns: 1fr;
  }
  .tasklist {
    padding: 0 12px;
  }
  .record .status {
    font-size: 10px;
  }
}
@media (max-width: 400px) {
  .navwrap nav a {
    font-size: 11px;
  }
  .calendar .headingicon svg {
    display: none;
  }
  .account > span:nth-child(2) {
    display: none;
  }
  .subtitle {
    max-width: 210px;
  }
  .datebox {
    min-width: 39px;
    width: 39px;
  }
}

@media (max-width: 760px) {
  .calendar .panelhead {
    flex-wrap: wrap;
  }
  .legend {
    flex-wrap: wrap;
  }
  .taskrow > .status {
    font-size: 11px;
  }
  .deadlinecolumn {
    align-self: stretch;
  }
}

.deadlinecolumn .deadlinepanel {
  flex: 1;
}
.scheduleempty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 100px;
}
.scheduleempty svg {
  color: #757980;
  background: #f4f5f6;
  box-sizing: content-box;
  padding: 10px;
  border-radius: 12px;
}

.dashboardhead {
  margin-bottom: 22px;
}
.dashboarddate {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.25;
}
