@font-face {
  font-family: FSA;
  src: local("Microsoft YaHei UI"), local("PingFang SC");
}
* {
  box-sizing: border-box;
}
.site-filing {
  margin-top: 24px;
  padding: 16px 0;
  color: #59655d;
  font-size: 12px;
  text-align: center;
}
.site-filing a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body {
  margin: 0;
  font-family: Inter, FSA, "Microsoft YaHei", system-ui, sans-serif;
  color: #202d2a;
  background: #fafbf9;
  font-size: 14px;
  line-height: 1.65;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #fff;
  padding: 9px 15px;
  color: #34473e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
button:hover {
  background: #f0f5f1;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8dbca5;
  outline-offset: 3px;
}
input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #fff;
  color: #253a30;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #438c69;
  box-shadow: 0 0 0 3px #e4efe7;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 17px 0 8px;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 7px;
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.4;
  letter-spacing: -1px;
  margin-bottom: 5px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  margin-bottom: 12px;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.muted {
  color: #7d8780;
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  color: #84968a;
  letter-spacing: 2px;
  font-weight: 650;
  margin-bottom: 10px;
}
.primary {
  background: #28674f;
  border-color: #28674f;
  color: #fff;
}
.primary:hover {
  background: #1f523e;
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: #738078;
}
.danger {
  color: #a64639;
  border-color: #edd8d3;
  background: #fffafa;
}
.full {
  width: 100%;
}
.icon-button {
  padding: 8px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #28634f;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #849185;
  letter-spacing: 1px;
  margin-top: 5px;
}
.brand-mark {
  width: 28px;
  height: 31px;
  background: linear-gradient(
    137deg,
    #337459 47%,
    #fafbf9 48%,
    #fafbf9 51%,
    #245b49 52%
  );
  clip-path: polygon(28% 0, 100% 0, 100% 73%, 73% 100%, 0 100%, 0 28%);
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 210px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 16px 0;
  border-right: 1px solid #e6ebe6;
  display: flex;
  flex-direction: column;
  background: #f7f9f6;
  z-index: 5;
}
.sidebar > .brand {
  margin: 0 14px 46px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: #647169;
  font-weight: 500;
}
nav a.active {
  background: #e7f0e9;
  color: #236347;
}
nav a:hover {
  background: #edf3ee;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom > .quiet {
  margin: 4px 0 14px;
}
.connection {
  padding: 14px;
  font-size: 11px;
  color: #6b7e71;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  height: 7px;
  width: 7px;
  background: #599170;
  border-radius: 50%;
  display: inline-block;
}
.dot.warning {
  background: #b9904e;
}
.profile {
  border-top: 1px solid #e3e9e2;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
}
.profile small {
  display: block;
  color: #98a298;
  font-size: 9px;
}
.profile .icon-button {
  margin-left: auto;
  border: 0;
  background: none;
  color: #8d998f;
}
.avatar {
  background: #dae9dc;
  color: #37694e;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
}
main {
  width: calc(100% - 210px);
  margin-left: 210px;
  padding: 35px 34px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-header p {
  margin-bottom: 0;
}
.page-header .eyebrow {
  margin-bottom: 8px;
}
.notice {
  background: #fff8e8;
  color: #8c682d;
  border: 1px solid #eee0bd;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.error-text {
  color: #a33a2d;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  border: 1px solid #dbe6dd;
  background: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 35px #12362120;
  max-width: 90vw;
}
.card {
  background: #fff;
  border: 1px solid #e3e9e3;
  border-radius: 12px;
  overflow: hidden;
}
.card-head {
  padding: 20px 23px;
  border-bottom: 1px solid #edf0ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-head h3 {
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  padding: 21px 24px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #859189;
  font-size: 12px;
}
.stat strong {
  font-size: 31px;
  display: block;
  line-height: 1.4;
  font-weight: 550;
  color: #314a3b;
  margin: 9px 0 3px;
}
.stat small {
  color: #99a196;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.stack {
  display: grid;
  gap: 22px;
  align-content: start;
}
.list-row {
  padding: 18px 23px;
  display: flex;
  gap: 17px;
  align-items: center;
  border-bottom: 1px solid #f0f2ef;
  width: 100%;
  text-align: left;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong {
  font-size: 14px;
  font-weight: 550;
}
.list-row .grow {
  flex: 1;
  min-width: 0;
}
.list-row p {
  font-size: 12px;
  color: #8b968e;
  margin: 3px 0 0;
}
.time-label {
  color: #4b7258;
  font-size: 12px;
  width: 48px;
}
.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  background: #eaf3ec;
  color: #44805b;
  white-space: nowrap;
}
.pill.pending {
  background: #fcf3df;
  color: #a18446;
}
.pill.bad {
  background: #faebe5;
  color: #a6614c;
}
.empty {
  text-align: center;
  padding: 54px 22px;
  color: #8d9a8f;
}
.empty svg {
  width: 35px;
  height: 35px;
  color: #9cac9e;
  margin-bottom: 12px;
}
.empty h3 {
  font-size: 15px;
  color: #65766a;
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  max-width: 320px;
  margin: 0 auto 16px;
}
.welcome {
  background: #eef4ed;
  padding: 23px;
  border-radius: 10px;
}
.welcome p {
  margin-bottom: 0;
  color: #6e8372;
  font-size: 13px;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid #e7ece7;
  flex-wrap: wrap;
}
.toolbar h3 {
  margin: 0 8px;
}
.toolbar .segments {
  margin-left: auto;
}
.segments {
  display: inline-flex;
  gap: 2px;
  background: #f6f8f5;
  padding: 3px;
  border: 1px solid #e1e8e1;
  border-radius: 8px;
}
.segments button {
  padding: 5px 17px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.segments button.active {
  background: #e0ede3;
  color: #2c7350;
}
.calendar-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.calendar-main {
  flex: 1;
  min-width: 0;
}
.week-scroll {
  overflow: auto;
  max-height: calc(100vh - 265px);
  min-height: 400px;
}
.week-grid {
  display: grid;
  grid-template-columns: 50px repeat(7, minmax(80px, 1fr));
  position: relative;
  min-width: 610px;
}
.day-head {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: center;
  background: #fff;
  padding: 12px 4px;
  border-bottom: 1px solid #e6ece6;
  font-size: 11px;
  color: #809083;
  height: 71px;
}
.day-head b {
  font-size: 18px;
  color: #4c6353;
  display: block;
  line-height: 1.4;
  font-weight: 500;
}
.day-head.today {
  background: #eaf3e9;
  color: #3b7851;
}
.day-head.today b {
  color: #33734a;
}
.hours {
  background: #fff;
  position: relative;
}
.hour {
  height: 60px;
  font-size: 10px;
  color: #95a094;
  text-align: center;
  border-bottom: 1px solid transparent;
  padding-top: 1px;
}
.day-track {
  position: relative;
  height: 1440px;
  border-left: 1px solid #edf1ec;
}
.day-track.today {
  background-color: #f7faf6;
}
.event-block {
  container-type: inline-size;
  position: absolute;
  left: 3px;
  right: 3px;
  border: 0;
  border-left: 3px solid #67a37b;
  border-radius: 4px;
  background: #e4f0e7;
  padding: 5px 7px;
  text-align: left;
  display: block;
  overflow: hidden;
  font-size: 10px;
  white-space: normal;
  line-height: 1.5;
  min-height: 20px;
  color: #41644b;
  transform-origin: top left;
  z-index: 1;
}
.event-block strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-block:hover {
  background: #d9eade;
}
.event-block.pending {
  background: #fbf0dc;
  border-color: #d4b36c;
  color: #8b7549;
}
.event-block.external {
  background: #eaf0f9;
  border-color: #89aada;
  color: #54729a;
}
.event-block.selected {
  outline: 2px solid #357150;
  outline-offset: -1px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.month-label {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: #8a988b;
  border-bottom: 1px solid #e9eee7;
}
.month-day {
  min-height: 130px;
  padding: 9px 7px;
  border-bottom: 1px solid #edf1ea;
  border-right: 1px solid #edf1ea;
}
.month-day.outside {
  background: #fafbf9;
  color: #b9c0b7;
}
.day-num {
  border: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  font-size: 12px;
  background: none;
  margin-bottom: 7px;
}
.month-day.today .day-num {
  background: #2c6b4f;
  color: white;
  border-radius: 50%;
}
.month-event {
  padding: 3px 6px;
  background: #edf4eb;
  border: 0;
  border-radius: 4px;
  text-align: left;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  margin-bottom: 4px;
  color: #48694b;
}
.inspector {
  width: 280px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5ebe3;
  border-radius: 12px;
  flex-shrink: 0;
}
.inspector-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.inspector h2 {
  font-size: 19px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.detail-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 12px;
  color: #718274;
}
.detail-line svg {
  width: 17px;
}
.note-box {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid #e6ece5;
  border-radius: 8px;
  font-size: 12px;
  color: #728273;
  min-height: 110px;
  max-height: 240px;
  overflow: auto;
  margin: 17px 0 24px;
}
.inspector .actions {
  flex-wrap: wrap;
}
.inspector button {
  font-size: 12px;
}
.kb-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search {
  max-width: 360px;
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search input {
  padding-left: 39px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #9da99c;
  width: 17px;
}
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.document-card {
  padding: 22px;
  cursor: pointer;
  display: block;
  text-align: left;
  white-space: normal;
  min-height: 214px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.document-card:hover {
  border-color: #a9c8ad;
  background: #fff;
  transform: translateY(-2px);
}
.doc-symbol {
  width: 35px;
  height: 38px;
  background: #edf3ea;
  color: #6d956c;
  display: grid;
  place-items: center;
  border-radius: 7px;
  margin-bottom: 17px;
}
.doc-title {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}
.doc-excerpt {
  color: #919b90;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
  font-size: 12px;
  line-height: 1.7;
}
.doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef2ea;
  margin-top: 18px;
  padding-top: 13px;
  font-size: 10px;
  color: #96a18f;
  gap: 8px;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.tag {
  background: #f2f5ee;
  color: #8b9b7c;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
  font-size: 12px;
  color: #82907f;
}
.document-reading {
  padding: 30px;
  max-width: 940px;
  margin: auto;
}
.document-reading h1 {
  font-size: 26px;
}
.document-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.95;
  font-size: 14px;
  color: #4c6050;
  margin: 28px 0;
}
.document-meta {
  font-size: 11px;
  color: #8c9a89;
}
.reader-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.reader-actions button,
.reader-actions a {
  font-size: 12px;
}
.download {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce4df;
  padding: 9px 15px;
  border-radius: 8px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eef1ec;
  font-size: 12px;
}
.history-row button {
  font-size: 11px;
  padding: 5px 10px;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #eef4ed;
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story h1 {
  font-size: 43px;
  line-height: 1.7;
  font-weight: 500;
  color: #2a5941;
  margin: 20px 0;
}
.login-story p {
  color: #7d917e;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 50px;
}
.login-panel form {
  width: 100%;
  max-width: 350px;
}
.login-panel h2 {
  font-size: 26px;
  margin: 12px 0;
}
.login-panel .full {
  margin: 12px 0 20px;
}
.mobile-brand {
  display: none;
}
dialog {
  border: 1px solid #dce6dd;
  border-radius: 14px;
  padding: 0;
  width: 530px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  color: #2d4034;
  box-shadow: 0 24px 90px #18342225;
}
dialog::backdrop {
  background: #1a2e254a;
  backdrop-filter: blur(2px);
}
#dialog-body {
  padding: 27px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  margin: 0;
  font-size: 21px;
}
.dialog-head button {
  border: 0;
  background: none;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #edf1e9;
  margin-top: 24px;
  padding-top: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid label {
  margin-bottom: 0;
}
.confirm-details {
  max-height: 250px;
  overflow: auto;
  padding: 15px;
  background: #f6f8f3;
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.editor-content {
  min-height: 260px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #8b9b8a;
}
.all-day {
  font-size: 10px;
  margin: 4px;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-reader-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.drafts {
  margin-top: 22px;
}
.drafts summary {
  padding: 14px;
  color: #7d8e7b;
  cursor: pointer;
}
.error-panel {
  padding: 30px;
  color: #9b6854;
}
.error-panel button {
  margin-top: 15px;
}
@media (min-width: 1700px) {
  main {
    padding: 40px 50px;
  }
  .inspector {
    width: 310px;
  }
  .week-scroll {
    max-height: calc(100vh - 280px);
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 185px;
    padding-left: 12px;
    padding-right: 12px;
  }
  main {
    margin-left: 185px;
    width: calc(100% - 185px);
    padding: 28px 23px;
  }
  .sidebar > .brand {
    margin-left: 13px;
  }
  .inspector {
    width: 255px;
    padding: 18px;
  }
  .kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 18px;
  }
  .calendar-layout {
    gap: 15px;
  }
  .overview-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
@media (max-width: 1000px) {
  .calendar-layout {
    display: block;
  }
  .inspector {
    width: 100%;
    margin-top: 18px;
  }
  .week-scroll {
    max-height: 65vh;
  }
  .stats {
    gap: 12px;
  }
  .stat strong {
    font-size: 26px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 165px;
  }
  main {
    margin-left: 165px;
    width: calc(100% - 165px);
  }
  nav a {
    gap: 10px;
    padding: 11px;
  }
  .profile {
    gap: 7px;
  }
  .profile small {
    font-size: 8px;
  }
  .page-header h1 {
    font-size: 26px;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 13px;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 67px;
    padding: 0;
    background: #fbfcfaf5;
    border-top: 1px solid #e4ebe1;
    border-right: 0;
    backdrop-filter: blur(10px);
  }
  .sidebar > .brand,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
  }
  nav a {
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-radius: 0;
    padding: 9px 22px;
  }
  nav a.active {
    background: none;
    color: #2c7452;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 25px 17px 90px;
  }
  .page-header {
    gap: 12px;
    margin-bottom: 23px;
  }
  .page-header h1 {
    font-size: 24px;
  }
  .page-header .muted {
    font-size: 11px;
  }
  .page-header .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .page-header button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 15px 17px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat small {
    font-size: 10px;
  }
  .kb-grid {
    grid-template-columns: 1fr;
  }
  .document-card {
    min-height: 180px;
  }
  .toolbar {
    padding: 12px 10px;
    gap: 6px;
  }
  .toolbar h3 {
    font-size: 13px;
  }
  .toolbar button {
    padding: 6px 10px;
  }
  .toolbar .segments {
    margin-left: 0;
  }
  .segments button {
    padding: 5px 13px;
  }
  .month-day {
    padding: 5px 3px;
    min-height: 96px;
  }
  .month-label {
    padding: 10px 0;
    font-size: 10px;
  }
  .month-event {
    font-size: 9px;
    padding: 2px;
  }
  .login-shell {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 35px;
  }
  .mobile-brand {
    display: block;
    margin-bottom: 65px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid label {
    margin-top: 12px;
  }
  #dialog-body {
    padding: 22px;
  }
  .document-reading {
    padding: 20px;
  }
  .toast {
    bottom: 80px;
  }
  .week-scroll {
    min-height: 380px;
  }
  .overview-grid {
    gap: 17px;
  }
  .search {
    max-width: none;
  }
  .document-text {
    font-size: 13px;
  }
  .card-head {
    padding: 17px;
  }
  .list-row {
    padding: 16px 17px;
  }
  .notice {
    font-size: 12px;
  }
  .connection {
    display: none;
  }
}
.muted,
.stat small,
.doc-excerpt,
.doc-footer,
.document-meta,
.list-row p,
.hour,
.month-label,
.day-head,
.stat-top,
.tag,
.empty p,
.profile small {
  color: #68766b;
}
.eyebrow {
  color: #627b69;
}
.sidebar-bottom .connection {
  color: #587061;
}
.week-grid.day-view {
  grid-template-columns: 50px 1fr;
  min-width: 0;
}
.day-view .event-block {
  font-size: 12px;
  padding: 8px 14px;
}
.day-view .event-block strong {
  font-size: 14px;
}
.mobile-tools {
  display: none;
}
@media (max-width: 650px) {
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  nav a {
    min-width: 0;
    padding: 9px 2px;
  }
  .mobile-tools {
    display: flex;
    flex-direction: column;
    border: 0;
    background: none;
    min-width: 0;
    padding: 9px 2px;
    font-size: 10px;
    color: #647169;
    gap: 3px;
    border-radius: 0;
  }
  .mobile-tools svg {
    width: 20px;
    height: 20px;
  }
}
/* Knowledge answers share the existing reading surface and typography. */
.knowledge-qa {
  padding: 24px;
  margin-bottom: 24px;
}
.knowledge-qa h2 {
  margin: 4px 0 12px;
}
.answer-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.source-list details {
  border-top: 1px solid #e2e7e1;
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.source-list summary {
  cursor: pointer;
  font-weight: 600;
}
.source-list blockquote {
  white-space: pre-wrap;
  margin: 16px 0;
  padding: 0 16px;
  border-left: 3px solid #afcabb;
  line-height: 1.7;
}
.citation {
  font-weight: 600;
  text-decoration: underline;
}
mark {
  background: #e5efd3;
  color: inherit;
  scroll-margin-top: 24px;
}
.login-options {
  width: min(100%, 400px);
}
#key-login {
  margin-top: 28px;
}
#key-login > summary {
  cursor: pointer;
  color: #67766b;
  margin-bottom: 20px;
}
.refresh-status {
  color: #718274;
  font-size: 12px;
  align-self: center;
}
.skeleton-rows {
  padding: 24px;
  display: grid;
  gap: 18px;
  min-height: 170px;
}
.skeleton-rows span {
  border-radius: 8px;
  height: 26px;
  background: #edf2ee;
  animation: breathe 1.5s ease-in-out infinite alternate;
}
.skeleton-rows span:nth-child(2) { width: 78%; }
.skeleton-rows span:nth-child(3) { width: 58%; }
@keyframes breathe { to { opacity: .45; } }
.week-scroll { overflow-anchor: none; }
.time-line, .focus-band {
  position: absolute;
  width: 100%;
  pointer-events: none;
}
.time-line { border-top: 1px solid #edf1ec; }
.focus-band {
  background: #dfece433;
  border-block: 1px dashed #b6cec0;
}
.focus-tick {
  position: absolute;
  right: 5px;
  font-size: 10px;
  color: #2c6b4f;
  font-weight: 600;
  line-height: 14px;
}
.hour-hidden { visibility: hidden; }
.event-block.compact {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  line-height: 16px;
}
.event-block.compact strong {
  order: -1;
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.event-block.compact .event-time { font-size: 10px; flex-shrink: 0; }
.event-block.compact .event-end { display: none; }
.event-block.selected {
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 6px 18px #2c6b4f20;
  overflow: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
}
.event-block.selected strong {
  font-size: 12px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  flex-shrink: 0;
}
.event-block.selected > * { flex-shrink: 0; }
.event-duration { font-size: 10px; opacity: .8; margin-top: auto; }
.event-block.selected:not(.external) .event-duration { padding-right: 20px; }
.plan-note-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: #e4f1e7;
  z-index: 3;
}
.note-ink-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 48% 55% 44% 58%;
  background: #327754;
  box-shadow: inset 2px 2px 3px #ffffff90, 0 2px 5px #27583a24;
}
.note-entry { width: 100%; display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 18px; }
.note-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 100px; overflow: hidden; }
.note-entry-label { display: flex; gap: 8px; align-items: center; color: #327754; }
#dialog.plan-note-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  perspective: 1200px;
}
#dialog.plan-note-dialog::backdrop { background: #eff4ef59; backdrop-filter: none; }
.plan-note-dialog #dialog-body { padding: 0; }
.plan-note-dialog .dialog-head { display: none; }
.plan-note-presence { position: absolute; width: min(550px, calc(100vw - 24px)); transform-origin: center; }
.plan-note-context { position: relative; padding: 0 26px 24px 0; }
.plan-note-context h3 { font-size: 28px; font-weight: 500; margin: 8px 0 0; overflow-wrap: anywhere; }
.plan-note-context > span { display: block; font-size: 12px; }
.plan-note-context .note-close { position: absolute; right: -12px; top: -12px; background: transparent; border: 0; border-radius: 50%; }
.plan-note-surface { position: relative; transform-style: preserve-3d; }
.plan-note-front, .plan-note-back { backface-visibility: hidden; }
.plan-note-front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #e4f1e7;
  color: #2d6447;
  pointer-events: none;
  border-radius: 38% 48% 36% 44% / 35% 42% 36% 45%;
  transform: rotateY(180deg);
}
.plan-note-front strong { font-size: 22px; }
.plan-note-back { position: relative; padding: 0; background: transparent; border: 0; margin: 0; }
.plan-note-skin {
  position: absolute;
  inset: 0;
  border-radius: 38% 48% 36% 44% / 35% 42% 36% 45%;
  background: #edf4e8;
  background-image: radial-gradient(ellipse at 18% 15%, #fbfdec70, transparent 68%);
  box-shadow: 0 18px 55px #244b3226, inset 0 0 45px #bfd2b833;
  pointer-events: none;
}
.plan-note-skin::before { content: ""; position: absolute; inset: 1% -1%; border-radius: inherit; background: inherit; transform: rotate(-5deg); opacity: .22; filter: blur(5px); }
.plan-note-writing { position: relative; padding: 54px 62px 50px; max-height: calc(100dvh - 32px); overflow: auto; scrollbar-width: thin; scrollbar-color: #bccdbc transparent; }
.plan-note-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-note-tools label { margin: 0; font-size: 12px; font-weight: 400; color: #607969; }
.plan-note-tools button { padding: 7px 8px; }
#plan-note-content { height: 164px; min-height: 110px; max-height: 35dvh; resize: none; font-size: 17px; line-height: 2; margin: 12px 0 0; padding: 4px 8px; background: transparent; border: 0; border-radius: 0; box-shadow: none; caret-color: #245f47; }
#plan-note-content:focus-visible { box-shadow: inset 2px 0 #5b916559; }
.plan-note-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 18px 0 8px; }
.plan-note-footer .small { font-size: 11px; }
.plan-note-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.plan-note-dialog button.quiet { background: transparent; border: 0; }
.plan-note-actions .primary { border-radius: 46% 54% 45% 50% / 48% 44% 52% 48%; padding: 12px 18px; box-shadow: 0 4px 14px #32775422; }
.plan-note-back .form-error { margin: 10px 0 0; }
.plan-note-dialog[data-note-mode="pull"] .plan-note-presence { width: min(680px, calc(100vw - 24px)); }
.plan-note-dialog[data-note-mode="pull"] .plan-note-skin { background: #fff9ec; border-radius: 6px 30px 10px 22px; box-shadow: 0 18px 55px #54472220; }
.plan-note-dialog[data-note-mode="pull"] .plan-note-skin::before { content: none; }
.plan-note-dialog[data-note-mode="pull"] .plan-note-skin::after { content: ""; position: absolute; right: 0; top: 0; width: 28px; height: 28px; border-radius: 0 25px 0 4px; background: linear-gradient(45deg, #e8dcc0 48%, #f7f3e8 52%); }
.plan-note-dialog[data-note-mode="pull"] .plan-note-writing { padding: 36px 42px; }
.plan-note-dialog[data-note-mode="pull"] #plan-note-content { height: 272px; background-image: repeating-linear-gradient(transparent 0 33px, #bbaa871f 33px 34px); background-position: 0 4px; }
#plan-note-conflict:not(:empty) { padding: 12px; margin-top: 12px; border: 1px solid #decf9e; border-radius: 10px; background: #fffaeb; }
#plan-note-conflict pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 130px; overflow: auto; font: inherit; }
@media (max-width: 600px) {
  .plan-note-writing { padding: 40px 30px 36px; }
  .plan-note-context { padding-bottom: 14px; }
  .plan-note-context h3 { font-size: 24px; }
  .plan-note-skin, .plan-note-front { border-radius: 24% 32% 28% 30% / 18% 24% 20% 26%; }
  .plan-note-dialog button { min-height: 44px; }
  .plan-note-dialog[data-note-mode="pull"] .plan-note-writing { padding: 28px 24px; }
}
@container (max-width: 90px) {
  .event-duration { display: none; }
  .event-time { font-size: 9px; }
}
.event-block:focus-visible { outline: 2px solid #245f47; outline-offset: 1px; }
.bubble-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
.bubble-particles span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffffee, #afd1bcbb 55%, #71a58baa);
  border: 1px solid #8db69e99;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-rows span { animation: none; }
}
