html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-x pan-y;
}

#root,
.app-shell,
.contract-layout,
.lead-layout,
.lead-columns,
.panel,
.topbar,
header,
footer {
  min-width: 0;
  max-width: 100%;
}

img,
video,
canvas {
  max-width: 100%;
}

.nav-scroll,
.docx-preview,
[data-horizontal-scroll="true"] {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

body.reshape90-module-open {
  overflow: hidden !important;
}

#reshape90-module-host {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  height: auto;
  min-height: 100%;
  max-width: none;
  overflow: hidden;
  background: var(--reshape90-shell-bg, var(--shell-bg, #fafaf9));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#reshape90-module-host.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.reshape90-module-loading[hidden] {
  display: none !important;
}

.reshape90-module-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--reshape90-shell-bg, var(--shell-bg, #fafaf9));
  visibility: hidden;
  pointer-events: none;
}

.reshape90-module-frame.is-active {
  visibility: visible;
  pointer-events: auto;
}

.reshape90-module-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--reshape90-shell-fg, var(--shell-fg, #1c1917));
  background: var(--reshape90-shell-bg, var(--shell-bg, #fafaf9));
  font: 600 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reshape90-module-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 77, 139, 0.25);
  border-top-color: #ff4d8b;
  border-radius: 999px;
  animation: reshape90-spin 0.7s linear infinite;
}

@keyframes reshape90-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

header .nav-scroll {
  scrollbar-width: none;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
}

header .nav-scroll::-webkit-scrollbar {
  display: none;
}

header .nav-scroll > button,
header .nav-scroll > a {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.r90-client-filter-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  scrollbar-width: none;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.r90-client-filter-scroll::-webkit-scrollbar {
  display: none;
}

.r90-client-filter-scroll > button {
  flex: 0 0 auto;
  min-width: max-content;
  scroll-snap-align: start;
}

.r90-programs-shell {
  width: 100%;
  min-width: 0;
  padding: 20px;
  color: var(--r90p-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.r90-programs-shell button,
.r90-programs-shell input {
  font: inherit;
  letter-spacing: 0;
}

.r90-programs-header,
.r90-programs-list-heading,
.r90-program-title-line,
.r90-program-actions,
.r90-program-delete-confirm,
.r90-program-modal-header,
.r90-program-modal-actions,
.r90-program-preview {
  display: flex;
  align-items: center;
}

.r90-programs-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.r90-programs-header > div {
  min-width: 0;
}

.r90-programs-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--r90p-text);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.25;
}

.r90-programs-header h2 svg {
  color: var(--r90p-accent);
}

.r90-programs-header p {
  margin: 5px 0 0;
  color: var(--r90p-muted);
  font-size: 13px;
  line-height: 1.45;
}

.r90-program-primary,
.r90-program-modal-actions .is-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--r90p-accent);
  border-radius: 8px;
  background: var(--r90p-accent);
  color: #fff;
  font-weight: 750;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
}

.r90-program-primary {
  min-height: 42px;
  padding: 0 15px;
  white-space: nowrap;
}

.r90-program-primary:active,
.r90-program-modal-actions .is-primary:active,
.r90-program-actions button:active,
.r90-program-delete-confirm button:active {
  transform: scale(0.97);
}

.r90-programs-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--r90p-border-light);
  border-radius: 8px;
  background: var(--r90p-surface-alt);
}

.r90-programs-summary > div {
  min-width: 0;
  padding: 14px 16px;
}

.r90-programs-summary > div + div {
  border-left: 1px solid var(--r90p-border-light);
}

.r90-programs-summary span,
.r90-programs-summary strong {
  display: block;
  min-width: 0;
}

.r90-programs-summary span {
  margin-bottom: 4px;
  color: var(--r90p-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.r90-programs-summary strong {
  overflow: hidden;
  color: var(--r90p-text);
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90-programs-list-heading {
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 10px;
}

.r90-programs-list-heading h3 {
  margin: 0;
  color: var(--r90p-text);
  font-size: 14px;
  font-weight: 750;
}

.r90-programs-list-heading > span {
  color: var(--r90p-muted);
  font-size: 12px;
  font-weight: 650;
}

.r90-programs-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.r90-program-row {
  position: relative;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--r90p-border-light);
  border-radius: 8px;
  background: var(--r90p-surface);
}

.r90-program-color {
  align-self: stretch;
  width: 6px;
  min-height: 62px;
  border-radius: 4px;
}

.r90-program-content {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(300px, 1.2fr);
  gap: 22px;
  align-items: center;
  min-width: 0;
}

.r90-program-title-line {
  min-width: 0;
  gap: 8px;
}

.r90-program-title-line h4 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--r90p-text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90-program-title-line span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--r90p-accent) 30%, transparent);
  border-radius: 999px;
  background: var(--r90p-accent-soft);
  color: var(--r90p-accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.r90-program-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  min-width: 0;
}

.r90-program-metrics > div {
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid var(--r90p-border-light);
}

.r90-program-metrics span,
.r90-program-metrics strong {
  display: block;
}

.r90-program-metrics span {
  margin-bottom: 3px;
  color: var(--r90p-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.r90-program-metrics strong {
  color: var(--r90p-text);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.r90-program-actions {
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.r90-program-actions button,
.r90-program-delete-confirm button,
.r90-programs-empty button,
.r90-program-modal-header button,
.r90-program-modal-actions button {
  border: 1px solid var(--r90p-border);
  border-radius: 8px;
  background: var(--r90p-surface-alt);
  color: var(--r90p-text);
  font-weight: 700;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, opacity 120ms ease;
}

.r90-program-actions button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.r90-program-actions .is-default-action {
  border-color: color-mix(in srgb, var(--r90p-accent) 35%, var(--r90p-border));
  color: var(--r90p-accent);
}

.r90-program-actions .is-delete-action {
  color: #dc2626;
}

.r90-program-actions button:disabled,
.r90-program-delete-confirm button:disabled,
.r90-program-modal button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.r90-program-delete-confirm {
  grid-column: 2 / -1;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--r90p-border-light);
}

.r90-program-delete-confirm span {
  margin-right: auto;
  color: var(--r90p-text);
  font-size: 12px;
  font-weight: 700;
}

.r90-program-delete-confirm button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

.r90-program-delete-confirm .is-danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.r90-programs-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 20px;
  border: 1px dashed var(--r90p-border);
  border-radius: 8px;
  color: var(--r90p-muted);
  text-align: center;
}

.r90-programs-empty strong {
  color: var(--r90p-text);
}

.r90-programs-empty button {
  min-height: 38px;
  margin-top: 4px;
  padding: 0 13px;
  color: var(--r90p-accent);
}

.r90-program-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.r90-program-modal {
  width: min(100%, 560px);
  max-height: min(760px, calc(100dvh - 40px));
  overflow-y: auto;
  border: 1px solid var(--r90p-border);
  border-radius: 8px;
  background: var(--r90p-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  color: var(--r90p-text);
}

.r90-program-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--r90p-border-light);
  background: var(--r90p-surface);
}

.r90-program-modal-header span {
  display: block;
  margin-bottom: 3px;
  color: var(--r90p-accent);
  font-size: 10px;
  font-weight: 800;
}

.r90-program-modal-header h3 {
  margin: 0;
  color: var(--r90p-text);
  font-size: 19px;
  font-weight: 750;
}

.r90-program-modal-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
}

.r90-program-modal form {
  display: grid;
  gap: 17px;
  padding: 20px;
}

.r90-program-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.r90-program-field > span,
.r90-program-colors legend {
  color: var(--r90p-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.r90-program-field > input,
.r90-program-field > div {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--r90p-border);
  border-radius: 8px;
  background: var(--r90p-bg);
  color: var(--r90p-text);
}

.r90-program-field > input {
  padding: 0 13px;
}

.r90-program-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.r90-program-field > div input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--r90p-text);
}

.r90-program-field small {
  padding: 0 12px;
  color: var(--r90p-muted);
  font-size: 11px;
  white-space: nowrap;
}

.r90-program-number-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.r90-program-colors {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.r90-program-colors legend {
  margin-bottom: 9px;
  padding: 0;
}

.r90-program-colors > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.r90-program-colors button,
.r90-program-colors label {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid transparent;
  border-radius: 999px;
}

.r90-program-colors button {
  padding: 0;
}

.r90-program-colors button.is-selected {
  border-color: var(--r90p-text);
  box-shadow: inset 0 0 0 3px var(--r90p-surface);
}

.r90-program-colors label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-color: var(--r90p-border);
  background: var(--r90p-surface-alt);
  color: var(--r90p-muted);
  font-weight: 800;
}

.r90-program-colors label input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.r90-program-preview {
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--r90p-border-light);
  border-radius: 8px;
  background: var(--r90p-surface-alt);
}

.r90-program-preview > span {
  align-self: stretch;
  flex: 0 0 5px;
  min-height: 40px;
  border-radius: 4px;
}

.r90-program-preview > div {
  min-width: 0;
}

.r90-program-preview strong,
.r90-program-preview small {
  display: block;
  min-width: 0;
}

.r90-program-preview strong {
  margin-bottom: 3px;
  overflow: hidden;
  color: var(--r90p-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90-program-preview small {
  color: var(--r90p-muted);
  font-size: 11px;
  line-height: 1.4;
}

.r90-program-error {
  padding: 11px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 650;
}

.r90-program-modal-actions {
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.r90-program-modal-actions button {
  min-height: 42px;
  padding: 0 14px;
}

.r90-program-modal-actions .is-primary {
  min-width: 166px;
}

@media (max-width: 1100px) {
  .r90-program-row {
    grid-template-columns: 6px minmax(0, 1fr);
  }

  .r90-program-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .r90-program-delete-confirm {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .r90-programs-shell {
    padding: 14px 12px 24px;
  }

  .r90-programs-header {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .r90-programs-header h2 {
    font-size: 18px;
  }

  .r90-programs-header p {
    max-width: 210px;
    font-size: 12px;
  }

  .r90-program-primary {
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }

  .r90-programs-summary > div {
    padding: 12px;
  }

  .r90-programs-summary span {
    font-size: 9px;
  }

  .r90-programs-summary strong {
    font-size: 13px;
  }

  .r90-programs-list-heading {
    margin-top: 20px;
  }

  .r90-program-row {
    grid-template-columns: 5px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .r90-program-color {
    width: 5px;
    min-height: 98px;
  }

  .r90-program-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .r90-program-title-line h4 {
    font-size: 15px;
  }

  .r90-program-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .r90-program-metrics > div {
    padding: 0 8px;
  }

  .r90-program-metrics > div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .r90-program-metrics span {
    font-size: 8px;
  }

  .r90-program-metrics strong {
    font-size: 11px;
  }

  .r90-program-actions {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .r90-program-actions button {
    width: 100%;
    min-width: 0;
    padding: 0 5px;
    white-space: normal;
  }

  .r90-program-actions button:only-child,
  .r90-program-actions button:first-child:nth-last-child(2),
  .r90-program-actions button:first-child:nth-last-child(2) ~ button {
    grid-column: auto;
  }

  .r90-program-delete-confirm {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .r90-program-delete-confirm span {
    flex: 1 0 100%;
  }

  .r90-program-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .r90-program-modal {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 20px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .r90-program-modal-header {
    padding: 15px 16px;
  }

  .r90-program-modal form {
    gap: 15px;
    padding: 16px;
  }

  .r90-program-number-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .r90-program-modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  }

  .r90-program-modal-actions button,
  .r90-program-modal-actions .is-primary {
    min-width: 0;
    width: 100%;
    padding: 0 8px;
    font-size: 12px;
  }
}

.r90-calendar-shell {
  width: 100%;
  min-width: 0;
  padding: 20px;
  border-radius: 16px;
  color: var(--r90-text);
}

.r90-calendar-heading,
.r90-calendar-toolbar,
.r90-calendar-agenda-header,
.r90-calendar-task {
  display: flex;
  align-items: center;
}

.r90-calendar-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.r90-calendar-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--r90-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.r90-calendar-heading h2 svg {
  color: var(--r90-accent);
}

.r90-calendar-heading > span {
  color: var(--r90-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.r90-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  min-width: 0;
}

.r90-calendar-panel,
.r90-calendar-agenda {
  min-width: 0;
  border: 1px solid var(--r90-border-light);
  border-radius: 12px;
  background: var(--r90-surface-alt);
}

.r90-calendar-panel {
  padding: 14px;
}

.r90-calendar-toolbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px auto;
  gap: 8px;
  margin-bottom: 14px;
}

.r90-calendar-icon-button,
.r90-calendar-today {
  height: 40px;
  border: 1px solid var(--r90-border);
  border-radius: 8px;
  background: var(--r90-surface);
  color: var(--r90-text);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.r90-calendar-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
}

.r90-calendar-today {
  padding: 0 13px;
  color: var(--r90-accent);
  font-size: 12px;
  font-weight: 700;
}

.r90-calendar-icon-button:active,
.r90-calendar-today:active,
.r90-calendar-day:active,
.r90-calendar-task:active {
  transform: scale(0.97);
}

.r90-calendar-month {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  color: var(--r90-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90-calendar-weekdays,
.r90-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.r90-calendar-weekdays {
  margin-bottom: 6px;
}

.r90-calendar-weekdays span {
  padding: 4px 0;
  color: var(--r90-subtle);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.r90-calendar-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--r90-text);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.r90-calendar-day.is-outside {
  opacity: 0.32;
}

.r90-calendar-day.is-today {
  border-color: var(--r90-accent);
}

.r90-calendar-day.has-tasks {
  background: var(--r90-accent-soft);
  color: var(--r90-accent);
}

.r90-calendar-day.is-selected {
  border-color: var(--r90-accent);
  background: var(--r90-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 77, 139, 0.22);
}

.r90-calendar-day-number {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.r90-calendar-task-count {
  position: absolute;
  right: 4px;
  bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--r90-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.r90-calendar-day.is-selected .r90-calendar-task-count {
  background: #fff;
  color: var(--r90-accent);
}

.r90-calendar-agenda {
  display: flex;
  min-height: 390px;
  padding: 14px;
  flex-direction: column;
}

.r90-calendar-agenda-header {
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid var(--r90-border-light);
}

.r90-calendar-agenda-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.r90-calendar-agenda-header span {
  color: var(--r90-subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.r90-calendar-agenda-header strong {
  overflow: hidden;
  color: var(--r90-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90-calendar-agenda-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--r90-accent-soft);
  color: var(--r90-accent) !important;
  font-size: 12px !important;
}

.r90-calendar-task-list {
  display: flex;
  margin-top: 12px;
  flex-direction: column;
  gap: 8px;
}

.r90-calendar-task {
  width: 100%;
  min-width: 0;
  gap: 10px;
  padding: 11px;
  border-radius: 10px;
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease;
}

.r90-calendar-task-bar {
  width: 4px;
  height: 38px;
  flex: 0 0 4px;
  border-radius: 999px;
}

.r90-calendar-task-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

.r90-calendar-task-title,
.r90-calendar-task-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r90-calendar-task-title {
  font-size: 13px;
  font-weight: 700;
}

.r90-calendar-task-meta {
  font-size: 11px;
}

.r90-calendar-empty {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  color: var(--r90-subtle);
  text-align: center;
}

.r90-calendar-empty strong {
  color: var(--r90-muted);
  font-size: 14px;
}

.r90-calendar-empty span {
  max-width: 230px;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  body::before,
  body::after {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 2147483646;
    display: block;
    background: var(--reshape90-shell-bg, #fafaf9);
    content: "";
    pointer-events: none;
  }

  body::before {
    top: 0;
    height: env(safe-area-inset-top);
  }

  body::after {
    bottom: 0;
    height: env(safe-area-inset-bottom);
  }

  .r90-calendar-shell {
    padding: 16px;
  }

  .r90-calendar-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .r90-calendar-heading > span {
    white-space: normal;
  }

  .r90-calendar-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .r90-calendar-panel,
  .r90-calendar-agenda {
    border-radius: 10px;
  }

  .r90-calendar-panel {
    padding: 10px;
  }

  .r90-calendar-toolbar {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .r90-calendar-icon-button {
    width: 38px;
    height: 38px;
  }

  .r90-calendar-today {
    grid-column: 1 / -1;
    height: 36px;
  }

  .r90-calendar-weekdays,
  .r90-calendar-grid {
    gap: 4px;
  }

  .r90-calendar-day {
    border-radius: 8px;
  }

  .r90-calendar-day-number {
    font-size: 12px;
  }

  .r90-calendar-task-count {
    right: 2px;
    bottom: 2px;
    min-width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .r90-calendar-agenda {
    min-height: 220px;
    padding: 12px;
  }

  .r90-calendar-empty {
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reshape90-module-spinner {
    animation-duration: 1.4s;
  }

  .r90-calendar-icon-button,
  .r90-calendar-today,
  .r90-calendar-day,
  .r90-calendar-task {
    transition: none;
  }
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
