:root {
  font-family: Inter, Arial, sans-serif;
  color-scheme: dark;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  --background: var(--studio-bg,#173d35);
  --accent: var(--studio-accent,#a4e3cc);
  accent-color: var(--accent);
  --text: #ffffff;
  --line: var(--studio-line,#416c5c);
  --muted: var(--studio-muted,#b5cec2);
  --panel: var(--studio-surface,#1c443b);
  --button-bg: var(--studio-surface,#234d42);
  --button-hover: var(--studio-soft,#2c5c4e);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  border: 1px solid var(--line);
  background: var(--button-bg);
  color: inherit;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
button:hover:not(:disabled) {
  background: var(--button-hover);
}
.primary {
  background: var(--accent);
  border-color: var(--studio-accent,#91cfb7);
  color: var(--studio-bg,#173d35);
}
.primary:hover:not(:disabled) {
  background: var(--studio-accent,#bdeedb);
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.danger {
  color: #ffaaa7;
}
.loading {
  padding: 40px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--background);
  color: var(--text);
  border-radius: 7px;
  padding: 10px;
}
textarea {
  resize: vertical;
  line-height: 1.55;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: calc(100vh - 54px);
}
.sidebar {
  border-right: 1px solid var(--line);
  background: var(--studio-bg,#12342d);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -1.4px;
}
.wordmark img {
  width: 40px;
  height: 40px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--muted);
  text-transform: uppercase;
}
.sidebar .eyebrow {
  margin-bottom: 12px;
}
.project-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.schedule-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.schedule-item {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 10px;
}
.schedule-select {
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
  background: transparent;
  border: 0;
  padding: 11px 8px 11px 12px;
}
.schedule-select small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.schedule-item.selected {
  background: var(--studio-surface,#235143);
  border-color: #70a58f;
}
.schedule-item-actions {
  display: flex;
  flex-shrink: 0;
  gap: 1px;
  padding-right: 5px;
}
.schedule-icon {
  display: grid;
  place-items: center;
  padding: 6px;
  width: 28px;
  height: 32px;
  border-radius: 6px;
}
.main {
  min-width: 0;
  padding: 24px 28px;
}
.heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.heading-info {
  min-width: 0;
  flex: 1;
}
.heading-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.heading h1 {
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.month-nav h2 {
  font-size: 18px;
  text-transform: capitalize;
  min-width: 155px;
  letter-spacing: -0.5px;
}
.icon {
  padding: 7px 11px;
}
.segmented {
  display: flex;
  padding: 3px;
  background: var(--studio-surface,#1c443b);
  border-radius: 8px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: 12px;
}
.segmented button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--studio-bg,#173d35);
  box-shadow: 0 1px 4px #00000012;
}
.row-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 2px 0 10px;
}
.row-strip > .quiet {
  padding: 7px 9px;
  font-size: 12px;
}
.row-chip {
  font-size: 11px;
  border-radius: 20px;
  padding: 6px 10px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--row);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.calendar-card {
  color-scheme: light;
  color: var(--studio-bg,#173d35);
  --text: var(--studio-bg,#173d35);
  --line: #dce8e1;
  --muted: #5d7468;
  --button-bg: #fff;
  --button-hover: #edf6f1;
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 8px 26px #00000028;
}
.calendar-scroll {
  overflow: auto;
}
.calendar-grid {
  min-width: 730px;
  padding: 22px;
}
.week {
  margin-bottom: 22px;
}
.week:last-child {
  margin-bottom: 0;
}
.week-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--studio-bg,#173d35);
  margin: 0 0 9px;
}
.week-grid {
  display: grid;
  grid-template-columns: 95px repeat(7, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.day-head,
.lane,
.cell,
.blank {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.day-head {
  font-size: 10px;
  padding: 9px 7px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
  background: #edf6f1;
}
.day-head strong {
  color: var(--studio-bg,#173d35);
  font-size: 15px;
}
.day-head.inactive {
  color: #99afa3;
}
.day-head.inactive strong {
  color: inherit;
}
.lane {
  background: #f6fbf8;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 8px;
  font-size: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
  border-left: 3px solid var(--row);
}
.row-handle[draggable="true"] {
  cursor: grab;
  user-select: none;
}
.row-handle[draggable="true"]:active {
  cursor: grabbing;
}
.row-handle[draggable="true"]::after {
  content: "⋮⋮";
  margin-left: auto;
  color: #6a8e7e;
  font-size: 11px;
  letter-spacing: -2px;
}
.week .row-drop-before {
  box-shadow: inset 0 3px #27836a;
}
.week .row-drop-after {
  box-shadow: inset 0 -3px #27836a;
}
.cell {
  border-radius: 0;
  min-height: 57px;
  padding: 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  position: relative;
  transition: background 0.12s;
}
.cell.has-task {
  background: color-mix(in srgb, var(--row) 9%, white);
}
.cell:hover:not(:disabled) {
  background: color-mix(in srgb, var(--row) 16%, white);
}
.cell-add {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  color: var(--text);
  opacity: .65;
}
.cell-add::before { content: "+"; }
.cell-add:hover { background: var(--header-bg); border-radius: 5px; opacity: 1; }
.calendar-card button.cell:is(:focus, [aria-pressed="true"]):not(:disabled) {
  outline: 2px solid currentColor;
  outline-offset: -2px;
  z-index: 1;
}
.calendar-card button.cell[aria-pressed="true"] {
  box-shadow: inset 0 0 0 999px #448f9026;
}
.cell.cell-editor {
  display: block;
  width: 100%;
  min-width: 0;
  resize: none;
  overflow: hidden;
  border: 1px solid #448f90;
  border-radius: 0;
  outline: 2px solid #448f90;
  outline-offset: -2px;
  background: #ffffff;
  color: var(--studio-bg,#173d35);
  caret-color: var(--studio-bg,#173d35);
  box-shadow: none;
  transition: none;
}
.cell.cell-editor:hover,
.cell.cell-editor:focus {
  background: #ffffff;
}
.blank {
  background: #f1f6f3;
}
.calendar-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 13px 22px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  gap: 8px;
}
.note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.portrait-grid {
  max-width: 680px;
  margin: auto;
  padding: 20px;
}
.portrait-day {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 9px;
  overflow: hidden;
}
.portrait-date {
  background: #edf6f1;
  padding: 15px 10px;
  font-size: 11px;
}
.portrait-date strong {
  font-size: 23px;
  display: block;
  margin-bottom: 4px;
}
.portrait-lane {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
}
.portrait-lane .cell {
  border-right: 0;
  min-height: 42px;
}
.portrait-lane .lane {
  border-left: 3px solid var(--row);
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.empty-state img {
  width: 75px;
}
.empty-state h1 {
  font-size: 31px;
  letter-spacing: -1px;
}
.empty-state p {
  max-width: 430px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.warning {
  background: #392d20;
  color: #ffe1ac;
  border: 1px solid #715634;
  padding: 13px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.warning .actions {
  margin-top: 8px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  color: inherit;
  background: var(--panel);
  width: min(540px, calc(100vw - 28px));
  max-height: 90vh;
  box-shadow: 0 20px 90px #0003;
}
html[data-studio-tool="dario"] .studio-global-header {
  background: #0d2c25;
  border-bottom-color: var(--line);
}
html[data-studio-tool="dario"] .studio-global-header :is(a, button):focus-visible {
  outline-color: var(--accent);
}
html[data-studio-tool="dario"] .studio-global-header .studio-global-account {
  border-color: var(--line);
}
html[data-studio-tool="dario"] .studio-global-header .studio-global-account:hover {
  background: var(--accent);
  color: var(--studio-bg,#173d35);
}
dialog::backdrop {
  background: #061c15bb;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
.dialog-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.6;
}
.form-stack {
  display: grid;
  gap: 18px;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.template-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.template-options label {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: var(--button-bg);
  font-size: 12px;
}
.template-options input {
  width: auto;
}
.template-options small {
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.preset-open { margin-top: 8px; justify-self: start; }
.preset-section { display: grid; gap: 12px; }
.preset-section[hidden] { display: none; }
.preset-error { color: #ffc1b6; }
.row-editor {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px 32px 32px;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
}
.row-editor input[type="color"] {
  height: 36px;
  padding: 3px;
}
.row-editor button {
  padding: 6px;
  font-size: 14px;
}
.row-editor input[type="text"] {
  padding: 8px;
  font-size: 13px;
}
.row-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin: 16px 0 8px;
}
.help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.preview-dialog {
  width: min(1100px, calc(100vw - 24px));
}
.preview-pages {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}
.preview-pages canvas {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 14px #0002;
  border-radius: 3px;
}
.preview-pages figure {
  margin: 0;
}
.preview-pages figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: capitalize;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--studio-accent,#a4e3cc);
  color: var(--studio-bg,#173d35);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  z-index: 50;
  max-width: 90vw;
  box-shadow: 0 3px 15px #0002;
}
#toast:empty {
  display: none;
}
.gbp-context {
  margin: 0;
}
.project-picker {
  max-width: 1150px;
  margin: auto;
  padding: 40px;
}
.top-mobile {
  display: none;
}
@media (max-width: 1050px) {
  .main {
    padding: 20px 18px;
  }
  .sidebar {
    padding: 25px 15px;
  }
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .heading h1 {
    font-size: 25px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px;
    gap: 13px;
  }
  .wordmark {
    font-size: 23px;
  }
  .wordmark img {
    width: 32px;
    height: 32px;
  }
  .sidebar .project-title,
  .sidebar .eyebrow {
    display: none;
  }
  .schedule-list {
    display: flex;
    overflow: auto;
    margin: 0;
  }
  .schedule-item {
    min-width: 210px;
    max-width: 260px;
    flex-shrink: 0;
  }
  .main {
    padding: 18px 14px;
  }
  .heading {
    flex-direction: column;
    gap: 8px;
  }
  .heading h1 {
    font-size: 24px;
  }
  .heading-controls {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 12px;
  }
  .toolbar {
    align-items: start;
    gap: 8px;
  }
  .month-nav {
    gap: 7px;
  }
  .month-nav h2 {
    font-size: 18px;
    min-width: 160px;
  }
  .calendar-grid {
    padding: 12px;
  }
  .portrait-grid {
    padding: 10px;
  }
  .portrait-day {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .portrait-lane {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .portrait-date {
    padding: 13px 7px;
  }
  .form-two {
    grid-template-columns: 1fr;
  }
  .template-options {
    grid-template-columns: 1fr;
  }
  .template-options label {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .template-options small {
    margin-left: auto;
  }
  dialog {
    padding: 20px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .row-editor {
    gap: 4px;
    grid-template-columns: 30px minmax(0, 1fr) 28px 28px 28px;
  }
  .studio-global-context {
    display: none;
  }
  .project-picker {
    padding: 20px 14px;
  }
}

.cell:disabled {
  opacity: 1;
  cursor: default;
}
.day-head {
  border-radius: 0;
  font-weight: 400;
}
.day-head:disabled,
.portrait-date:disabled {
  opacity: 1;
  cursor: default;
}
.portrait-date {
  border: 0;
  border-radius: 0;
  text-align: left;
  font-weight: 400;
}
.blocked-date {
  background: #dce7e1;
  color: #52695e;
}
.blocked-cell,
.blocked-cell:hover:not(:disabled) {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    135deg,
    #edf2ee,
    #edf2ee 7px,
    #e3ebe5 7px,
    #e3ebe5 8px
  );
  color: #52695e;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.5;
  white-space: pre-wrap;
  text-align: left;
  min-height: 57px;
  overflow-wrap: anywhere;
}
.blocked-cell:disabled {
  opacity: 1;
  cursor: default;
}
.blocked-cell:hover:not(:disabled) {
  filter: brightness(0.98);
}
.portrait-lane .blocked-cell {
  min-height: 42px;
}
.preview-dialog {
  width: min(1400px, calc(100vw - 24px));
}
.export-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
}
.export-settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--line);
  padding-right: 22px;
}
.export-settings h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.export-palette {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.export-palette legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.palette-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.palette-options label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--button-bg);
  cursor: pointer;
  font-size: 11px;
}
.palette-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}
.palette-options label:has(input:checked) {
  border-color: var(--palette-accent);
  box-shadow: inset 0 0 0 1px var(--palette-accent);
  color: var(--text);
}
.palette-options label:has(input:focus-visible) {
  outline: 2px solid var(--palette-accent);
  outline-offset: 3px;
}
.palette-options label:has(input:disabled) {
  opacity: 0.6;
  cursor: default;
}
.palette-swatch {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--palette-accent) 65%, var(--palette-ink) 65%);
}
.export-palette .help {
  margin-top: 8px;
  font-size: 11px;
}
.export-settings input[type="color"] {
  height: 40px;
  padding: 4px;
}
.export-settings input[type="file"] {
  font-size: 11px;
}
.export-content {
  min-width: 0;
}
.export-settings [hidden] {
  display: none;
}
@media (max-width: 700px) {
  .export-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .export-settings {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
  }
  .export-content .actions {
    gap: 7px;
  }
  .export-content .actions button {
    font-size: 11px;
  }
  .blocked-cell {
    font-size: 10px;
  }
}

.page-background-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.page-background-options button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  font-size: 11px;
}
.page-background-options span {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #ffffff55;
  background: var(--swatch);
}
.page-background-options button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Scope row editing to its visible week and distinguish dates outside the range. */
.week-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; gap: 12px; }
.week-heading .week-title { margin: 0; }
.calendar-card .week-rows-button { padding: 4px 7px; font-size: 10px; color: #52695e; min-height: 26px; }
.calendar-card .week-rows-button:hover:not(:disabled) { background: #edf6f1; }
.week-row-select { display: grid; gap: 7px; margin-bottom: 14px; }
.calendar-card .blank { background: #fafafa; }
.calendar-card .outside-period { border-radius: 0; color: #a9b2ad; min-height: 57px; text-align: left; padding: 8px; font-size: 11px; }
.calendar-card .outside-period:hover:not(:disabled) { background: #edf6f1; color: var(--studio-bg,#173d35); }
.calendar-card .outside-period-head { flex-wrap: wrap; row-gap: 2px; background: #f5f5f5; }
.outside-period-head small { flex-basis: 100%; font-size: 8px; font-weight: 400; color: #747d77; }

.week-actions { display: flex; align-items: center; gap: 5px; }
.week-actions button { display: inline-flex; align-items: center; gap: 5px; }

/* One saved calendar theme is shared by the editor and export renderer. */
.calendar-card { color: var(--text); background: var(--calendar-bg); }
.calendar-card .week-title, .calendar-card .week-rows-button { color: var(--text); }
.calendar-card .week-grid { grid-template-columns: 95px repeat(var(--day-count), minmax(0, 1fr)); }
.calendar-card .day-head, .calendar-card .portrait-date,
.calendar-card .day-head:hover:not(:disabled), .calendar-card .portrait-date:hover:not(:disabled) {
  background: var(--header-bg); color: var(--header-muted);
}
.calendar-card .day-head strong, .calendar-card .portrait-date strong { color: var(--header-ink); }
.calendar-card .outside-period-head small { color: var(--header-muted); }
.calendar-card .lane { background: var(--area-bg); color: var(--area-ink); }
.calendar-card .row-handle::after { color: var(--area-ink); opacity: .65; }
.calendar-card .cell { background: var(--calendar-bg); color: var(--text); }
.calendar-card .cell.has-task { background: var(--task-bg); color: var(--task-ink); }
.calendar-card .cell:hover:not(:disabled) { background: var(--task-bg); color: var(--task-ink); }
.calendar-card .cell.cell-editor { background: var(--calendar-bg); color: var(--text); caret-color: var(--text); }
.calendar-card .blank, .calendar-card .outside-period:hover:not(:disabled) { background: var(--outside-bg); color: var(--muted); }
.calendar-card .blocked-cell, .calendar-card .blocked-cell:hover:not(:disabled) {
  background: repeating-linear-gradient(135deg, var(--blocked-bg), var(--blocked-bg) 7px, var(--hatch) 7px, var(--hatch) 8px);
  color: var(--blocked-ink);
}
.calendar-empty { padding: 32px; line-height: 1.6; }
.calendar-card .cell,
.calendar-card .blocked-cell,
.calendar-card .outside-period { cursor: default; }
.fill-handle { position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; background: currentColor; border: 2px solid var(--calendar-bg); touch-action: none; }
.calendar-card button.cell.task-drag-source { opacity: .6; }
.calendar-card button.cell.task-drop-target {
  outline: 2px solid currentColor;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 999px #448f9038;
}
.calendar-card .cell.has-task { padding-right: 12px; padding-bottom: 12px; }
.calendar-card .fill-range, .calendar-card .fill-source { outline: 2px solid currentColor; outline-offset: -2px; }
.calendar-card .fill-range { box-shadow: inset 0 0 0 999px #448f9020; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; }
.custom-calendar-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.week-heading-title { display: flex; align-items: center; gap: 6px; }
.calendar-card .week-icon { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; padding: 5px; border: 0; color: var(--text); }
.calendar-card .week-icon:hover:not(:disabled) { background: var(--header-bg); }
.calendar-card .week-move-handle { cursor: grab; }
.calendar-card .week-move-handle:active { cursor: grabbing; }
.week-dragging { opacity: .6; }
.week-drop-target { outline: 2px solid var(--text); outline-offset: 5px; border-radius: 4px; }
