:root {
  --ink: #252338;
  --muted: #625f73;
  --purple: #5943d6;
  --purple-dark: #4630b4;
  --paper: #f7f6fb;
  --line: #e5e2ef;
  --green: #276c59;
  --urgent: #fff0eb;
  --medium: #f0edff;
  --low: #eaf4ef;
  --radius: 18px;
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--purple);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[contenteditable]:focus-visible {
  outline: 3px solid #9b5200;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  font-weight: 650;
  margin-bottom: 20px;
}
h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  font-weight: 650;
}
h3 {
  font-size: 1.15rem;
}
em {
  font-style: normal;
  color: var(--purple);
}
.brand {
  font-size: 2.2rem;
  letter-spacing: -0.1em;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-dot {
  font-size: 0.6rem;
  color: var(--purple);
  margin-left: 7px;
  vertical-align: middle;
  letter-spacing: normal;
}
.topbar {
  min-height: 92px;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}
.topbar nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.topbar nav > a:not(.button) {
  color: var(--ink);
  text-decoration: none;
}
.topbar form {
  margin: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 15px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  background: var(--purple);
  color: white;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 20px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.45;
}
.button:hover {
  background: var(--purple-dark);
  text-decoration: none;
}
.button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover {
  background: #f1eefc;
}
.button.small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.85rem;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--purple);
  padding: 8px 0;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.actions form {
  margin: 0;
}
.eyebrow {
  display: block;
  color: var(--purple);
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  margin-bottom: 22px;
}
.hero {
  max-width: 1380px;
  margin: auto;
  padding: 85px 6% 100px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 70px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
  letter-spacing: -0.065em;
}
.lead {
  font-size: 1.15rem;
  max-width: 540px;
  color: var(--muted);
  line-height: 1.8;
}
.hero .actions {
  margin: 30px 0 22px;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 20px 75px #30225612;
  transform: rotate(1deg);
}
.preview h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 25px;
}
.pill {
  font-size: 0.65rem;
  color: var(--purple);
  background: #efebff;
  padding: 6px 9px;
  border-radius: 7px;
  font-weight: 750;
  letter-spacing: 0.09em;
}
.meter {
  height: 7px;
  background: #eeebf5;
  border-radius: 8px;
  overflow: hidden;
}
.meter > span {
  display: block;
  background: var(--purple);
  height: 100%;
  border-radius: 8px;
}
.preview .meter {
  margin-bottom: 12px;
}
.demo-task,
.demo-event {
  border-radius: 10px;
  padding: 15px 17px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.demo-task > span,
.demo-event > span {
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.urgent {
  background: var(--urgent);
  color: #843b28;
}
.medium {
  background: var(--medium);
  color: #49349b;
}
.low {
  background: var(--low);
  color: #276048;
}
.demo-event {
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  font-size: 0.9rem;
}
.breathing {
  margin-top: 20px;
  background: #f0f7f1;
  border-radius: 10px;
  color: #316343;
  padding: 13px;
  font-size: 0.85rem;
}
.section {
  max-width: 1240px;
  margin: auto;
  padding: 70px 5%;
}
.section > h2 {
  max-width: 700px;
  font-size: 2.6rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 50px;
}
.feature-grid p {
  color: var(--muted);
}
.feature-number {
  font-size: 0.9rem;
  color: var(--purple);
  display: block;
  margin-bottom: 25px;
}
.closing {
  margin: 40px auto 80px;
  max-width: 1120px;
  background: #eeebfa;
  padding: 60px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.closing h2 {
  font-size: 2.7rem;
}
.price {
  flex-shrink: 0;
}
.price strong {
  font-size: 3rem;
  letter-spacing: -0.07em;
}
.price small {
  font-size: 0.9rem;
  letter-spacing: 0;
}
.price p {
  font-size: 0.9rem;
  color: var(--muted);
}
footer {
  padding: 45px 5%;
  border-top: 1px solid var(--line);
  background: white;
  font-size: 0.8rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
footer p {
  color: var(--muted);
}
footer a:not(.brand) {
  color: var(--muted);
}
.content {
  max-width: 1080px;
  margin: 55px auto;
  padding: 0 25px;
}
.content.wide {
  max-width: 1450px;
}
.narrow {
  max-width: 800px;
  margin: 55px auto;
  padding: 0 25px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 28px 0;
}
.panel h2 {
  font-size: 1.55rem;
}
.panel p {
  color: var(--muted);
}
.auth-layout {
  max-width: 1200px;
  margin: 75px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 0 40px;
  align-items: center;
}
.auth-card {
  max-width: 510px;
  width: 100%;
  margin: 0;
}
.auth-intro h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #aaa5bb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 46px;
  margin-bottom: 18px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--purple);
  flex-shrink: 0;
  margin: 0;
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  margin: 20px 0;
}
.check > input {
  margin-top: 3px;
}
.check a {
  display: inline;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.form-grid label {
  margin: 0;
}
.form-grid .check {
  align-items: center;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-form input,
.inline-form select {
  width: auto;
  max-width: 100%;
  margin: 0;
}
.inline-form input[type="number"] {
  width: 90px;
}
.inline-form input[type="email"] {
  width: 100%;
}
.inline-form > label {
  flex: 1;
}
.inline-form > label select {
  width: 100%;
}
.message {
  padding: 15px 20px;
  background: #eaf4ef;
  border: 1px solid #b0d1c0;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #28553e;
}
.warning {
  background: #fff5e5;
  border-color: #e8cd9e;
  color: #79531b;
}
.error,
.danger {
  color: #a4312f;
}
.error {
  font-size: 0.9rem;
}
.workspace {
  padding: 35px 2.5%;
  max-width: 1900px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 22px;
}
.page-heading h1 {
  font-size: 2.7rem;
  margin-bottom: 7px;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-heading p {
  margin: 0;
}
.planner-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.segmented {
  background: #eae7f2;
  border-radius: 10px;
  padding: 4px;
  display: flex;
}
.segmented > a {
  padding: 6px 18px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 7px;
  font-size: 0.9rem;
}
.segmented .selected {
  background: white;
  box-shadow: 0 1px 5px #28213e12;
  color: var(--ink);
}
.legend {
  font-size: 0.75rem;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 10px;
}
.urgent-dot {
  background: #b7563f;
}
.medium-dot {
  background: #6952c7;
}
.low-dot {
  background: #3e7b5a;
}
.planner-note {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 900px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 10px;
  overflow-x: auto;
  align-items: start;
  padding: 4px 2px 20px;
  scroll-snap-type: x proximity;
}
.day-column {
  background: #efedf5;
  border: 1px solid #e5e1ee;
  border-radius: 14px;
  min-height: 650px;
  scroll-snap-align: start;
  overflow: hidden;
}
.is-today {
  border-color: #9281e5;
}
.day-header {
  padding: 15px 13px 17px;
  background: #faf9fd;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.day-header > a:first-child {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
  flex: 1;
  text-decoration: none;
}
.add-task {
  width: 34px;
  min-height: 34px;
  font-size: 1.35rem;
  text-align: center;
  text-decoration: none;
  background: #eeebf9;
  border-radius: 8px;
}
.day-header p {
  font-size: 0.78rem;
  width: 100%;
  margin: 2px 0;
}
.day-header .muted {
  font-size: inherit;
}
.day-header .meter {
  width: 100%;
  height: 5px;
  margin: 4px 0;
}
.day-header small {
  font-size: 0.7rem;
}
.day-stack {
  padding: 9px;
}
.task-block {
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}
.task-block[draggable="true"] {
  cursor: grab;
}
.task-block.dragging {
  opacity: 0.5;
}
.day-column.drag-target {
  outline: 3px dashed var(--purple);
  outline-offset: -5px;
}
.priority-2 {
  background: var(--urgent);
  border-color: #ebd2c8;
  color: #80351f;
}
.priority-1 {
  background: var(--medium);
  border-color: #d9d1f3;
  color: #443180;
}
.priority-0 {
  background: var(--low);
  border-color: #cce0d3;
  color: #27553c;
}
.block-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  font-weight: 750;
  text-transform: uppercase;
  gap: 8px;
  margin-bottom: 9px;
}
.task-title {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.task-title > span {
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 650;
  color: inherit;
  text-decoration: none;
}
.task-title form {
  margin: 0;
}
.complete {
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 24px;
  min-height: 28px;
  font-size: 1.2rem;
  line-height: 1;
  color: inherit;
}
.task-block details {
  font-size: 0.7rem;
  margin-top: 8px;
}
.task-block summary {
  min-height: 28px;
  cursor: pointer;
}
.move-details {
  margin-top: auto !important;
  padding-top: 8px;
}
.move-form input {
  font-size: 0.75rem;
  padding: 5px;
  min-height: 36px;
  margin: 5px 0;
}
.move-form button {
  font-size: 0.75rem;
  min-height: 32px;
}
.done {
  opacity: 0.7;
}
.done .task-title > span {
  text-decoration: line-through;
}
.rich-content {
  font-size: 0.8rem;
}
.rich-content p {
  margin: 8px 0;
}
.rich-content ul,
.rich-content ol {
  padding-left: 20px;
}
.appointments-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 14px 2px 8px;
}
.event-block {
  background: white;
  border: 1px solid #ddd8eb;
  border-left: 4px solid var(--purple);
  padding: 12px 10px;
  border-radius: 9px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.event-block h3 {
  font-size: 0.83rem;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0 0 7px;
}
.event-block p {
  font-size: 0.66rem;
  margin-bottom: 4px;
}
.event-block details,
.event-block small {
  font-size: 0.68rem;
}
.free-space {
  border: 1px dashed #cdc8dc;
  border-radius: 9px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666075;
  font-size: 0.75rem;
  padding: 12px;
  text-align: center;
}
.empty-note {
  font-size: 0.75rem;
  text-align: center;
  padding: 20px 5px;
  color: var(--muted);
}
.overload > span {
  background: #af3f35;
}
.overload-text {
  color: #9d302a;
  font-weight: 650;
}
.single-day {
  grid-template-columns: 1fr;
  max-width: 850px;
  margin: auto;
}
.single-day .task-title > span {
  font-size: 1rem;
}
.single-day .block-meta {
  font-size: 0.75rem;
}
.single-day .day-header p {
  font-size: 0.9rem;
}
.single-day .day-column {
  min-height: 400px;
}
.single-day .day-header > a:first-child {
  font-size: 1.15rem;
}
.single-day .task-block {
  padding: 20px;
}
.single-day .event-block {
  padding: 20px;
}
.single-day .event-block h3 {
  font-size: 1rem;
}
.single-day .event-block p {
  font-size: 0.85rem;
}
.single-day .move-details {
  align-self: flex-end;
}
.single-day .move-form {
  display: flex;
  gap: 8px;
}
.single-day .move-form input {
  margin: 0;
}
.calendar-account {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 20px;
}
.calendar-row,
.rule-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.calendar-row .check,
.rule-row .check {
  margin: 0;
}
.calendar-row .check:first-child {
  flex: 1;
  min-width: 160px;
}
.rule-row > label:first-child {
  width: 115px;
}
.rule-row > label {
  font-size: 0.75rem;
}
.rule-row input[type="time"] {
  padding: 5px 7px;
  width: 110px;
  margin: 0;
  min-height: 40px;
}
.rule-row .button {
  margin-top: 17px;
}
details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 40px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
}
caption {
  text-align: left;
  color: var(--muted);
  padding: 12px 0;
}
th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f6f4fb;
  font-size: 0.75rem;
}
td small {
  display: block;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
}
td input,
td select {
  font-size: 0.8rem;
}
td details {
  font-size: 0.8rem;
  min-width: 250px;
}
.request {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.request time {
  font-size: 0.8rem;
}
.request-list {
  list-style: none;
  padding: 0;
}
.request-list li {
  display: flex;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.digest {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95rem;
}
.legal h2 {
  font-size: 1.4rem;
  margin: 35px 0 15px;
}
.legal p {
  color: var(--muted);
}
dt {
  font-weight: 700;
  margin-top: 20px;
}
dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.editor-toolbar {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #f5f2fc;
  border: 1px solid #aaa5bb;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}
.editor-toolbar button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
.wysiwyg {
  min-height: 220px;
  max-height: 600px;
  overflow: auto;
  padding: 15px;
  border: 1px solid #aaa5bb;
  border-radius: 0 0 8px 8px;
  margin-bottom: 12px;
  background: white;
}
.wysiwyg ul,
.wysiwyg ol {
  padding-left: 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .week-grid {
    gap: 15px;
  }
  .day-stack {
    padding: 12px;
  }
  .task-title > span {
    font-size: 0.95rem;
  }
  .block-meta {
    font-size: 0.7rem;
  }
  .day-header {
    padding: 18px;
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding: 15px 4%;
    align-items: flex-start;
  }
  .topbar nav {
    gap: 8px 15px;
    justify-content: flex-end;
    font-size: 0.8rem;
  }
  .hero {
    padding: 55px 5%;
    gap: 35px;
  }
  .preview {
    padding: 20px;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .feature-grid {
    gap: 25px;
  }
  .closing {
    margin: 30px 5%;
    padding: 35px;
  }
  .auth-layout {
    gap: 30px;
    padding: 0 25px;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .week-grid {
    grid-template-columns: repeat(7, minmax(220px, 1fr));
  }
  .single-day {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
}
@media (max-width: 650px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    font-size: 2rem;
  }
  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    gap: 5px 18px;
  }
  .topbar nav .button {
    min-height: 40px;
  }
  .topbar nav form {
    margin-left: auto;
  }
  .topbar .text-button {
    font-size: 0.8rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 40px 6%;
  }
  .hero h1 {
    font-size: 3.7rem;
  }
  .lead {
    font-size: 1rem;
  }
  .hero .actions .button {
    width: 100%;
  }
  .hero .actions .text-button {
    margin: auto;
  }
  .preview {
    transform: none;
    padding: 20px;
  }
  .preview-top .muted {
    font-size: 0.72rem;
  }
  .preview h2 {
    font-size: 1.35rem;
  }
  .section {
    padding: 40px 6%;
  }
  .section > h2 {
    font-size: 2rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .feature-number {
    margin-bottom: 8px;
  }
  .closing {
    flex-direction: column;
    align-items: stretch;
    padding: 30px 25px;
    margin-bottom: 40px;
  }
  .closing h2 {
    font-size: 2rem;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    margin: 35px auto;
    gap: 10px;
  }
  .auth-intro h1 {
    font-size: 2.6rem;
  }
  .auth-intro p {
    display: none;
  }
  .auth-card {
    padding: 25px;
  }
  .content,
  .narrow {
    padding: 0 17px;
    margin: 35px auto;
  }
  .panel {
    padding: 22px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .inline-form {
    align-items: stretch;
  }
  .inline-form input,
  .inline-form select {
    flex: 1;
    min-width: 120px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .page-heading h1 {
    font-size: 2.2rem;
  }
  .page-heading .actions {
    width: 100%;
    gap: 8px;
  }
  .page-heading .button {
    font-size: 0.8rem;
    padding: 10px 13px;
  }
  .workspace {
    padding: 25px 15px;
  }
  .planner-toolbar {
    gap: 12px;
  }
  .planner-toolbar .legend {
    width: 100%;
  }
  .week-grid {
    grid-template-columns: repeat(7, 84vw);
    gap: 12px;
  }
  .single-day {
    grid-template-columns: 1fr;
  }
  .day-column {
    min-height: 500px;
  }
  .day-header > a:first-child {
    font-size: 1rem;
  }
  .day-header p {
    font-size: 0.85rem;
  }
  .task-title > span {
    font-size: 1rem;
  }
  .block-meta {
    font-size: 0.72rem;
  }
  .task-block {
    padding: 14px;
  }
  .event-block h3 {
    font-size: 0.95rem;
  }
  .event-block p {
    font-size: 0.8rem;
  }
  .rule-row {
    gap: 12px;
  }
  .rule-row > label:first-child {
    width: 100%;
  }
  .rule-row .button {
    margin-top: 0;
  }
  .calendar-row {
    gap: 12px;
  }
  .calendar-row .check:first-child {
    width: 100%;
    flex: auto;
  }
  .calendar-row .check {
    font-size: 0.8rem;
  }
  .table-scroll {
    margin: 0 -5px;
  }
  .request-list li {
    flex-direction: column;
    gap: 3px;
  }
  footer {
    padding: 30px 6%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .topbar,
  footer,
  .print-page {
    display: none;
  }
  body {
    background: white;
  }
  .legal {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .legal p {
    color: black;
  }
  a {
    color: inherit;
  }
}
