:root {
  --ws-bg: var(--surface);
  --ws-ink: var(--text);
  --ws-muted: var(--muted);
  --ws-line: var(--line);
}
.ws-shell {
  max-width: 1440px;
  margin: auto;
  padding: 32px;
  color: var(--ws-ink);
}
html.dark {
  --ws-bg: var(--surface);
  --ws-ink: var(--text);
  --ws-muted: var(--muted);
  --ws-line: var(--line);
}
.ws-heading {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.ws-heading h1 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.055em;
  margin: 8px 0 10px;
  font-weight: 750;
}
.ws-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--ws-muted);
  letter-spacing: 0.06em;
}
.ws-actions,
.ws-toolbar,
.ws-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ws-toolbar {
  margin: 20px 0;
}
.ws-toolbar .input {
  width: auto;
  min-width: 130px;
  flex: 1;
}
.ws-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.ws-metric {
  padding: 23px;
  border-radius: 22px;
  display: flex;
  gap: 20px;
  flex-direction: column;
  background: var(--ws-bg);
  border: 1px solid var(--ws-line);
}
.ws-metric strong {
  font-size: 38px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.ws-metric span {
  font-size: 13px;
}
.ws-metric.mint {
  background: #b5f18b;
  color: #253527;
}
.ws-metric.lilac {
  background: #c8bcff;
  color: #30294e;
}
.ws-metric.blue {
  background: #4668e8;
  color: #fff;
}
.ws-metric.peach {
  background: #ffd7c3;
  color: #53352d;
}
.ws-nav {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0 15px;
  scrollbar-gutter: stable;
}
.ws-nav a {
  white-space: nowrap;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--ws-muted);
  font-size: 13px;
}
.ws-nav a[aria-current='page'] {
  background: var(--ws-ink);
  color: var(--ws-bg);
}
.crm-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--ws-line);
}
.crm-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.crm-quick-link,
.crm-nav-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ws-muted);
  background: transparent;
}
.crm-quick-link {
  max-width: 220px;
}
.crm-quick-link > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-quick-link:hover,
.crm-nav-all:hover {
  background: var(--surface-2);
  color: var(--text);
}
.crm-quick-link[aria-current='page'] {
  background: var(--accent);
  color: var(--accent-text);
}
.crm-nav-all {
  flex: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}
.crm-nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-2);
}
.dialog.crm-section-dialog {
  width: min(940px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: 20px;
}
.crm-section-dialog .dialog-heading {
  padding: 14px 20px;
}
.crm-section-dialog .dialog-heading h2 {
  font-size: 18px;
}
.crm-section-dialog .dialog-body {
  padding: 12px 20px 18px;
  max-height: calc(100dvh - 100px);
}
.crm-section-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--bg);
}
.crm-section-search:focus-within {
  border-color: var(--blue);
}
.crm-section-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 12px;
}
.crm-section-search > span {
  font-size: 11px;
}
.crm-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.crm-section-group {
  min-width: 0;
}
.crm-section-group h3 {
  margin: 0 0 10px;
  padding-left: 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.crm-section-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.35;
}
.crm-section-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.crm-section-link > .icon {
  color: var(--muted);
}
.crm-section-group.tone-blue .icon {
  color: var(--blue);
}
.crm-section-group.tone-purple .icon {
  color: #8061bc;
}
.dark .crm-section-group.tone-purple .icon {
  color: var(--purple);
}
.crm-section-group.tone-mint .icon {
  color: var(--success);
}
.crm-section-link:hover {
  background: var(--surface-2);
}
.crm-section-link[aria-current='page'] {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 650;
}
.crm-section-link[aria-current='page'] > .icon {
  color: inherit;
}
.crm-section-empty {
  padding: 30px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 760px) {
  .crm-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .crm-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-quick-link {
    max-width: none;
    justify-content: flex-start;
  }
  .crm-nav-all {
    width: 100%;
  }
  .crm-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .crm-section-dialog .dialog-heading {
    padding: 12px 16px;
  }
  .crm-section-dialog .dialog-heading h2 {
    font-size: 16px;
  }
  .crm-section-dialog .dialog-body {
    padding: 10px 12px 16px;
  }
  .crm-section-link {
    font-size: 11px;
    padding: 8px 5px;
    gap: 6px;
  }
}
.ws-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  overflow: auto;
  padding: 4px 0 16px;
}
.ws-column {
  padding: 15px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--ws-ink) 4%, transparent);
  min-height: 320px;
}
.ws-column h2 {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  margin: 5px 0 18px;
}
.ws-task {
  padding: 18px;
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  background: var(--ws-bg);
  margin-bottom: 12px;
  text-align: left;
  width: 100%;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.ws-task:hover {
  transform: translateY(-3px);
  border-color: #9d91df;
}
.ws-task h3 {
  font-size: 15px;
  margin: 8px 0 16px;
  line-height: 1.5;
}
.ws-task-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ws-muted);
}
.ws-task p {
  font-size: 13px;
  color: var(--ws-muted);
}
.ws-tag {
  display: inline-flex;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  background: color-mix(in srgb, #c8bcff 25%, var(--ws-bg));
  color: var(--ws-ink);
}
.ws-tag.urgent {
  background: #ffd7c3;
  color: #683b2c;
}
.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ws-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ws-grid > .ws-empty {
  grid-column: 1 / -1;
  width: 100%;
}
.ws-panel {
  padding: 24px;
  background: var(--ws-bg);
  border: 1px solid var(--ws-line);
  border-radius: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ws-panel h2,
.ws-panel h3 {
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}
.ws-panel p {
  line-height: 1.6;
}
.ws-panel footer {
  margin-top: 20px;
}
.ws-empty {
  text-align: center;
  padding: 70px 24px;
  max-width: 540px;
  margin: auto;
}
.ws-empty h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
}
.ws-empty p {
  color: var(--ws-muted);
  line-height: 1.7;
}
.ws-empty-mark {
  display: inline-grid;
  place-content: center;
  width: 76px;
  height: 76px;
  background: color-mix(in srgb, #c8bcff 35%, var(--ws-bg));
  border-radius: 28px;
  transform: rotate(-8deg);
  margin-bottom: 10px;
}
.ws-empty .button {
  margin-top: 15px;
}
.ws-table-wrap {
  overflow: auto;
  border: 1px solid var(--ws-line);
  border-radius: 22px;
  background: var(--ws-bg);
}
.ws-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
  font-size: 13px;
}
.ws-table th {
  color: var(--ws-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 17px 20px;
  background: color-mix(in srgb, var(--ws-ink) 3%, transparent);
}
.ws-table td {
  padding: 17px 20px;
  border-top: 1px solid var(--ws-line);
  vertical-align: middle;
}
.ws-table button.ws-link {
  font: inherit;
  text-align: left;
  font-weight: 650;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.ws-table tr:hover {
  background: color-mix(in srgb, #c8bcff 8%, transparent);
}
.ws-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.ws-form {
  display: grid;
  gap: 24px;
}
.ws-form .field {
  min-width: 0;
}
.ws-form .input {
  width: 100%;
  box-sizing: border-box;
}
.ws-form textarea {
  resize: vertical;
  min-height: 92px;
}
.ws-span {
  grid-column: 1/-1;
}
.ws-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.ws-check input {
  accent-color: #4668e8;
  width: 18px;
  height: 18px;
}
.ws-error,
.ws-failure {
  color: var(--danger, #b23b50);
}
.ws-failure {
  padding: 30px;
}
.ws-failure p {
  overflow-wrap: anywhere;
}
.ws-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--ws-line);
}
.ws-item:last-child {
  border: 0;
}
.ws-item > div {
  flex: 1;
  min-width: 0;
}
.ws-item h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.ws-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ws-muted);
}
.ws-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ws-line);
  margin: 18px 0;
}
.ws-progress > span {
  display: block;
  height: 100%;
  background: #93cf6b;
  border-radius: 8px;
  width: var(--progress, 0%);
}
.ws-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.ws-calendar > div {
  min-height: 95px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--ws-line);
  overflow: hidden;
}
.ws-calendar .ws-calendar-head {
  min-height: 0;
  border: 0;
  color: var(--ws-muted);
  font-size: 12px;
}
.ws-calendar button {
  border: 0;
  display: block;
  text-align: left;
  background: #c8bcff;
  color: #30294e;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  padding: 5px;
  margin-top: 6px;
  max-width: 100%;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-timeline {
  padding: 6px 0;
}
.ws-timeline article {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--ws-line);
}
.ws-timeline time {
  font-weight: 700;
  font-size: 15px;
}
.ws-timeline small {
  display: block;
  color: var(--ws-muted);
  font-weight: 400;
  margin-top: 5px;
}
.ws-homework {
  padding: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, #c8bcff 13%, transparent);
  margin-top: 12px;
}
.ws-homework summary {
  cursor: pointer;
  font-weight: 650;
}
.ws-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  padding: 9px 12px;
  margin: 5px 5px 0 0;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
}
.ws-note {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--ws-line);
  background: var(--ws-bg);
  padding: 24px;
  border-radius: 22px;
  min-height: 180px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.ws-note:nth-child(3n + 1) {
  background: color-mix(in srgb, #b5f18b 20%, var(--ws-bg));
}
.ws-note:nth-child(3n + 2) {
  background: color-mix(in srgb, #c8bcff 22%, var(--ws-bg));
}
.ws-note h2 {
  font-size: 20px;
  margin: 0 0 14px;
}
.ws-note p {
  line-height: 1.6;
  font-size: 14px;
  white-space: pre-wrap;
}
.ws-big-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #c8bcff;
  display: grid;
  place-content: center;
  font-size: 28px;
  color: #30294e;
  margin-bottom: 20px;
}
.ws-cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 16px;
}
.ws-hero {
  background: var(--ws-ink);
  color: var(--ws-bg);
  padding: 40px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin: 20px 0 28px;
  overflow: hidden;
}
.ws-hero h2 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.06em;
  margin: 0 0 15px;
}
.ws-orbit {
  width: 150px;
  height: 150px;
  border-radius: 45px;
  background: #b5f18b;
  color: #293a25;
  display: grid;
  place-content: center;
  font-size: 65px;
  transform: rotate(-12deg);
  box-shadow: 18px 18px 0 #c8bcff;
}
.ws-admin-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.ws-admin-layout > * {
  min-width: 0;
}
.ws-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ws-admin-nav button {
  text-align: left;
  justify-content: flex-start;
}
.ws-admin-nav button[aria-current='page'] {
  background: var(--ws-ink);
  color: var(--ws-bg);
}
.ws-detail {
  padding: 20px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ws-detail-dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  font-size: 14px;
}
.ws-detail-dl dt {
  color: var(--ws-muted);
}
.ws-detail-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.ws-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 45px;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  margin: 18px 0;
}
.ws-bar-row .ws-progress {
  margin: 0;
}
.ws-gantt {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 600px;
  margin: 18px 0;
  font-size: 13px;
}
.ws-gantt-track {
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(100% / 14 - 1px),
    var(--ws-line) calc(100% / 14 - 1px),
    var(--ws-line) calc(100% / 14)
  );
  height: 32px;
}
.ws-gantt-bar {
  display: block;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: #c8bcff;
  color: #30294e;
  font: inherit;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  min-width: 12px;
}
.ws-chat-log {
  height: 380px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}
.ws-chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--ws-bg);
  max-width: 85%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ws-chat-bubble.mine {
  align-self: flex-end;
  background: #b5f18b;
  color: #253527;
}
.ws-chat-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.ws-chat-form textarea {
  flex: 1;
}
.ws-shell
  :where(.ws-board, .ws-nav, .ws-table-wrap, .ws-chat-log, .ws-form textarea, .ws-admin-nav, .ws-scroll) {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
  scrollbar-gutter: stable;
}
.ws-shell ::-webkit-scrollbar,
.ws-form ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.ws-shell ::-webkit-scrollbar-thumb,
.ws-form ::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: var(--scroll);
}
@media (max-width: 1000px) {
  .ws-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ws-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ws-shell {
    padding: 24px;
  }
  .ws-heading {
    align-items: start;
    flex-direction: column;
  }
  .ws-admin-layout {
    grid-template-columns: 1fr;
  }
  .ws-admin-nav {
    flex-direction: row;
    overflow: auto;
  }
  .ws-admin-nav button {
    white-space: nowrap;
  }
  .ws-calendar > div {
    min-height: 65px;
    padding: 5px;
  }
}
@media (max-width: 600px) {
  .ws-item {
    flex-wrap: wrap;
  }
  .ws-item > div {
    flex-basis: 100%;
  }
  .ws-detail-dl {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .ws-shell {
    padding: 16px;
  }
  .ws-grid,
  .ws-grid.two,
  .ws-form-grid {
    grid-template-columns: 1fr;
  }
  .ws-span {
    grid-column: auto;
  }
  .ws-heading h1 {
    font-size: 31px;
  }
  .ws-metric {
    padding: 18px;
  }
  .ws-metric strong {
    font-size: 31px;
  }
  .ws-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }
  .ws-orbit {
    display: none;
  }
  .ws-timeline article {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ws-calendar {
    gap: 3px;
  }
  .ws-calendar > div {
    font-size: 11px;
    min-height: 55px;
  }
  .ws-calendar button {
    font-size: 9px;
    padding: 3px;
  }
  .ws-panel {
    padding: 19px;
  }
  .ws-chat-form {
    flex-direction: column;
  }
  .ws-bar-row {
    grid-template-columns: 90px 1fr 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ws-shell *,
  .ws-form * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.app-page #workspace > .ws-shell {
  padding: 0;
}
.ws-form,
.dialog-body {
  scrollbar-color: var(--scroll) transparent;
}
.ws-shell ::-webkit-scrollbar-thumb:hover,
.ws-form ::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
.ws-log {
  height: 430px;
  overflow: auto;
  background: var(--bg);
  color: var(--text);
  padding: 20px;
  border-radius: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.7 ui-monospace,
    Consolas,
    monospace;
  scrollbar-color: var(--scroll) transparent;
}
.ws-rich {
  gap: 0;
}
.ws-rich > span {
  margin-bottom: 8px;
}
.ws-rich-toolbar {
  display: flex;
  gap: 3px;
  padding: 6px;
  overflow: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}
.ws-rich-toolbar .button {
  padding: 7px 10px;
  white-space: nowrap;
}
.ws-rich-input {
  min-height: 160px;
  max-height: 50vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  outline: none;
  background: var(--surface);
  line-height: 1.6;
}
.ws-rich-input:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.ws-rich-input[contenteditable='false'] {
  opacity: 0.65;
}
.ws-rich-input table,
.ws-detail table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}
.ws-rich-input td,
.ws-rich-input th,
.ws-detail td,
.ws-detail th {
  padding: 8px;
  border: 1px solid var(--line);
}
.ws-rich-input blockquote,
.ws-detail blockquote {
  margin: 12px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--blue);
  background: var(--surface-2);
}
.ws-rich-input pre,
.ws-detail pre {
  overflow: auto;
}
.ws-rich-input a,
.ws-detail a {
  color: var(--blue);
}
.ws-history-chart {
  display: block;
  width: 100%;
  color: var(--blue);
  min-height: 120px;
}
.ws-table-wrap {
  max-width: 100%;
}
.ws-detail {
  overflow-wrap: anywhere;
}
.ws-note.bg-note-grad-1 {
  background: color-mix(in srgb, var(--surface) 75%, #b5f18b);
}
.ws-note.bg-note-grad-2 {
  background: color-mix(in srgb, var(--surface) 75%, #c8bcff);
}
.ws-note.bg-note-grad-3 {
  background: color-mix(in srgb, var(--surface) 85%, #4668e8);
}
.ws-note.bg-note-grad-4 {
  background: color-mix(in srgb, var(--surface) 75%, #ffc8aa);
}
.ws-calendar-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  margin-bottom: 20px;
}
.ws-calendar-grid.month,
.ws-calendar-grid.week {
  grid-template-columns: repeat(7, minmax(145px, 1fr));
}
.ws-calendar-grid.day,
.ws-calendar-grid.agenda {
  grid-template-columns: 1fr;
}
.ws-calendar-day {
  min-height: 140px;
  background: var(--surface);
  padding: 12px;
}
.ws-calendar-day h3 {
  font-size: 13px;
}
.ws-calendar-event {
  position: relative;
  border-radius: 10px;
  background: var(--surface-2);
  margin: 5px 0;
  padding: 6px 20px 6px 8px;
}
.ws-calendar-event > button:first-child {
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: grab;
  width: 100%;
}
.ws-calendar-event small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}
.ws-plan-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 22px;
  min-height: 28px;
  color: var(--blue);
  background: none;
  border: 0;
  cursor: ns-resize;
  touch-action: none;
}
.ws-calendar-hour {
  min-height: 56px;
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.ws-calendar-hour > time {
  font-size: 10px;
  color: var(--muted);
}
