/* Planner reference: task list, daily focus and recent completions. */
.planner-design {
  --pd-panel: #fff;
  --pd-panel2: #f5fafe;
  --pd-edge: #c8ddeb;
  --pd-text: #183349;
  --pd-soft: #5c788e;
  --pd-blue: #1584c5;
  --pd-red: #d84458;
  --pd-green: #15976b;
  --pd-amber: #b57e15;
  --pd-track: #d5e4ee;
  min-width: 0;
  max-width: 100%;
  color: var(--pd-text);
  padding-bottom: 20px;
}
[data-theme="dark"] .planner-design {
  --pd-panel: #0b1f2d;
  --pd-panel2: #102737;
  --pd-edge: #24465a;
  --pd-text: #f0f6ff;
  --pd-soft: #a6c1d7;
  --pd-blue: #28baff;
  --pd-red: #ff6578;
  --pd-green: #24dc9c;
  --pd-amber: #ffbf45;
  --pd-track: #28485e;
}
.planner-design .page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}
.planner-design .page-head h1 {
  font-size: 32px;
  line-height: 1.1;
  color: var(--pd-text);
  margin: 8px 0;
}
.planner-design .page-head p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pd-soft);
  margin: 0;
}
.planner-design .eyebrow {
  color: var(--pd-blue);
  font-size: 10px;
  letter-spacing: 1.8px;
}
.pd-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pd-header-actions button {
  min-height: 46px;
  padding: 10px 20px;
  white-space: nowrap;
}
.planner-design button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.planner-design .primary {
  background: linear-gradient(120deg, #25a1f5, #1688e9);
  border: 1px solid #38b2ff;
  color: #fff;
}
.planner-design .secondary {
  background: linear-gradient(130deg, var(--pd-panel2), var(--pd-panel));
  border: 1px solid var(--pd-edge);
  color: var(--pd-text);
}
.planner-design button:focus-visible,
.planner-design summary:focus-visible {
  outline: 2px solid var(--pd-blue);
  outline-offset: 3px;
}
.planner-design [data-app-icon] {
  display: inline-flex;
}
.pd-header-actions svg {
  width: 21px;
  height: 21px;
}
.pd-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.pd-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 19px 20px;
  min-height: 98px;
  border: 1px solid var(--pd-edge);
  border-radius: 11px;
  background: linear-gradient(130deg, var(--pd-panel2), var(--pd-panel));
}
.pd-stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 3px solid #2389b944;
  background: #1b96d31a;
  color: var(--pd-blue);
}
.pd-stat-icon svg {
  width: 31px;
  height: 31px;
}
.pd-stat > div {
  min-width: 0;
}
.pd-stat small {
  display: block;
  color: var(--pd-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.pd-stat strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.pd-stat.red {
  border-color: #bd53654a;
  background: linear-gradient(120deg, #c0455611, var(--pd-panel));
}
.pd-stat.red small,
.pd-stat.red .pd-stat-icon {
  color: var(--pd-red);
}
.pd-stat.red .pd-stat-icon {
  border-color: #bd53654a;
  background: #db59651a;
}
.pd-stat.purple {
  border-color: #746dd65c;
  background: linear-gradient(120deg, #746dd611, var(--pd-panel));
}
.pd-stat.purple small,
.pd-stat.purple .pd-stat-icon {
  color: #938bea;
}
.pd-stat.purple .pd-stat-icon {
  border-color: #746dd65c;
  background: #746dd61a;
}
.pd-stat.muted .pd-stat-icon {
  color: var(--pd-soft);
  background: #54779215;
  border-color: transparent;
}
.pd-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pd-tabs {
  display: inline-flex;
  gap: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--pd-edge);
  border-radius: 9px;
  background: var(--pd-panel);
}
.pd-tabs button {
  border: 0;
  border-radius: 6px;
  padding: 9px 11px;
  background: transparent;
  color: var(--pd-soft);
  font-size: 11px;
  font-weight: 650;
  min-height: 36px;
}
.pd-tabs button.active {
  color: #fff;
  background: linear-gradient(120deg, #259fec, #178bd9);
  box-shadow: 0 0 8px #178bd935;
}
.pd-tabs svg {
  width: 16px;
  height: 16px;
}
.pd-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 165px;
  min-width: 145px;
  max-width: 300px;
}
.pd-search > span {
  position: absolute;
  left: 12px;
  color: var(--pd-soft);
  pointer-events: none;
}
.pd-search svg {
  width: 17px;
  height: 17px;
}
.pd-search input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 8px 10px 8px 38px;
  font-size: 11px;
  border: 1px solid var(--pd-edge);
  border-radius: 8px;
  background: var(--pd-panel);
  color: var(--pd-text);
}
.pd-search input::placeholder {
  color: var(--pd-soft);
}
.pd-filters {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--pd-edge);
  border-radius: 8px;
  overflow: hidden;
  background: var(--pd-panel);
}
.pd-filters select {
  border: 0;
  border-right: 1px solid var(--pd-edge);
  border-radius: 0;
  background: transparent;
  color: var(--pd-text);
  font-size: 10px;
  width: auto;
  min-width: 0;
  max-width: 155px;
  height: 39px;
  padding: 8px;
}
.pd-filters select:last-child {
  border-right: 0;
}
.planner-design select option {
  background: var(--pd-panel);
  color: var(--pd-text);
}
.pd-export {
  display: flex;
  gap: 8px;
  margin: 0 !important;
}
.pd-export button {
  font-size: 11px;
  height: 40px;
  padding: 8px 12px;
}
.pd-export svg {
  width: 16px;
  height: 16px;
}
.pd-more-filters {
  position: relative;
}
.pd-more-filters > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--pd-edge);
  border-radius: 8px;
  height: 40px;
  padding: 8px 11px;
  color: var(--pd-soft);
  font-size: 11px;
  background: var(--pd-panel);
}
.pd-more-filters summary::-webkit-details-marker,
.pd-task-menu summary::-webkit-details-marker {
  display: none;
}
.pd-more-filters svg {
  width: 16px;
  height: 16px;
}
.pd-more-filters > div {
  position: absolute;
  right: 0;
  top: 48px;
  width: 270px;
  max-width: 85vw;
  z-index: 8;
  padding: 15px;
  background: var(--pd-panel2);
  border: 1px solid var(--pd-edge);
  border-radius: 10px;
  box-shadow: 0 10px 35px #0003;
  display: grid;
  gap: 12px;
}
.pd-more-filters label {
  display: grid;
  gap: 5px;
  color: var(--pd-soft);
  font-size: 12px;
}
.pd-more-filters input,
.pd-more-filters select {
  width: 100%;
  min-width: 0;
  border-color: var(--pd-edge);
  background: var(--pd-panel);
  color: var(--pd-text);
}
.pd-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.pd-priorities,
.pd-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.pd-priority-panel,
.pd-group,
.pd-panel {
  border: 1px solid var(--pd-edge);
  border-radius: 12px;
  background: linear-gradient(140deg, var(--pd-panel), var(--pd-panel2));
  min-width: 0;
}
.pd-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 17px 18px;
}
.pd-panel-head h2,
.pd-group > header h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
  color: var(--pd-text);
}
.pd-panel-head h2 > span svg,
.pd-panel-head h2 > svg {
  width: 25px;
  height: 25px;
  color: var(--pd-red);
  flex-shrink: 0;
}
.pd-panel-head select {
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  font-size: 10px;
  border-color: var(--pd-edge);
  background: var(--pd-panel);
  color: var(--pd-text);
}
.pd-count {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  border-radius: 9px;
  padding: 5px 9px;
  white-space: nowrap;
}
.pd-count.red {
  color: var(--pd-red);
  background: #ff53651f;
}
.pd-count.green {
  color: var(--pd-green);
  background: #16c88a20;
}
.pd-priority-panel > .pd-group {
  border: 0;
  border-top: 1px solid var(--pd-edge);
}
.pd-group > header {
  padding: 13px 17px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.pd-group > header h2 {
  font-size: 16px;
  color: var(--pd-amber);
}
.pd-group.red > header h2 {
  color: var(--pd-red);
}
.pd-group > header h2 svg {
  width: 27px;
  height: 27px;
  padding: 4px;
  border-radius: 50%;
  background: var(--pd-amber);
  color: var(--pd-panel);
}
.pd-group.red > header h2 svg {
  background: var(--pd-red);
}
.pd-group > header small {
  font-size: 11px;
  color: var(--pd-soft);
}
.pd-task-list {
  display: grid;
  gap: 9px;
  padding: 0 15px 15px;
}
.pd-task {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 72px 105px 120px 20px;
  gap: 13px;
  align-items: center;
  padding: 15px 14px;
  border: 1px solid var(--pd-edge);
  border-left: 5px solid var(--pd-amber);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pd-panel2), var(--pd-panel));
  min-width: 0;
}
.pd-task.is-late {
  border-left-color: var(--pd-red);
}
.pd-task.is-done {
  border-left-color: var(--pd-green);
}
.pd-task.is-running {
  border-left-color: var(--pd-blue);
}
.pd-task-check {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1dbf95;
  cursor: pointer;
}
.pd-task-copy {
  min-width: 0;
}
.pd-task h3,
.pd-completed-card h3 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--pd-text);
  overflow-wrap: anywhere;
}
.pd-task-copy p,
.pd-completed-card > p {
  font-size: 11px;
  line-height: 1.4;
  color: var(--pd-soft);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.pd-running-label {
  color: var(--pd-blue);
  font-size: 10px;
}
.pd-category {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  color: var(--pd-blue);
  background: #088bcb20;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 750;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pd-task-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--pd-soft);
  white-space: nowrap;
}
.pd-task-date.is-late {
  color: var(--pd-red);
}
.pd-task-date svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.pd-task-progress {
  min-width: 0;
}
.pd-task-progress > span {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 7px;
}
.pd-task-progress b {
  font-weight: 650;
}
.pd-task-progress > i,
.pd-completed-progress > i {
  display: block;
  height: 6px;
  border-radius: 8px;
  background: var(--pd-track);
  overflow: hidden;
}
.pd-task-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #147fd4, #2ec7f5);
}
.pd-task.is-done .pd-task-progress em {
  background: var(--pd-green);
}
.pd-task-menu {
  position: relative;
  justify-self: end;
}
.pd-task-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--pd-soft);
  display: grid;
  place-items: center;
  width: 24px;
  min-height: 30px;
  border-radius: 5px;
}
.pd-task-menu > summary:hover {
  background: var(--pd-track);
}
.pd-task-menu svg {
  width: 18px;
  height: 18px;
}
.pd-task-menu > div {
  position: absolute;
  right: 0;
  top: 32px;
  min-width: 155px;
  z-index: 9;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--pd-edge);
  border-radius: 9px;
  background: var(--pd-panel);
  box-shadow: 0 7px 25px #0004;
}
.pd-task-menu button {
  justify-content: flex-start;
  background: none;
  border: 0;
  padding: 9px;
  color: var(--pd-text);
  font-size: 12px;
  cursor: pointer;
}
.pd-task-menu button:hover {
  background: var(--pd-panel2);
}
.planner-design .danger {
  color: var(--pd-red) !important;
}
.pd-on-time,
.pd-empty-note {
  padding: 17px;
  color: var(--pd-soft);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}
.pd-on-time {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-on-time svg {
  width: 22px;
  height: 22px;
  color: var(--pd-green);
}
.pd-focus .pd-panel-head,
.pd-recent .pd-panel-head {
  padding: 13px 15px;
}
.pd-focus .pd-panel-head h2 > svg {
  color: var(--pd-blue);
}
.pd-today {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--pd-edge);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 10px;
  color: var(--pd-soft);
  background: var(--pd-panel2);
}
.pd-today svg {
  width: 13px;
  height: 13px;
}
.pd-focus-body {
  margin: 0 15px 15px;
  padding: 18px;
  border: 1px dashed #4b728e88;
  border-radius: 10px;
}
.pd-focus-empty {
  text-align: center;
  padding: 10px 0 22px;
}
.pd-focus-empty > span svg {
  width: 36px;
  height: 36px;
  color: var(--pd-soft);
}
.pd-focus-empty h3 {
  font-size: 14px;
  color: var(--pd-text);
  margin: 12px 0 7px;
}
.pd-focus-empty p {
  color: var(--pd-soft);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.pd-focus-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px minmax(0, 0.85fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--pd-edge);
  padding-top: 17px;
}
.pd-small-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--pd-blue);
  background: #058edb22;
}
.pd-small-icon.green {
  color: var(--pd-green);
  background: #09bc8b20;
}
.pd-small-icon svg {
  width: 21px;
  height: 21px;
}
.pd-focus-summary small {
  display: block;
  color: var(--pd-soft);
  font-size: 11px;
  margin-top: 4px;
}
.pd-focus-summary strong {
  font-size: 20px;
  display: block;
  color: var(--pd-text);
}
.pd-focus-summary > div:last-child strong {
  font-size: 12px;
}
.pd-focus-tasks {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}
.pd-task.is-compact {
  grid-template-columns: 18px minmax(0, 1fr) 20px;
  gap: 8px;
  padding: 12px 9px;
}
.pd-task.is-compact .pd-task-copy {
  grid-column: 2;
}
.pd-task.is-compact .pd-category {
  grid-column: 2;
}
.pd-task.is-compact .pd-task-date {
  grid-column: 2;
}
.pd-task.is-compact .pd-task-progress {
  grid-column: 2;
}
.pd-task.is-compact .pd-task-menu {
  grid-column: 3;
  grid-row: 1;
}
.pd-task.is-compact .pd-task-check {
  grid-row: 1;
}
.pd-recent .pd-panel-head h2 {
  font-size: 15px;
  gap: 9px;
}
.pd-recent .pd-panel-head h2 > span svg {
  color: var(--pd-green);
}
.pd-history-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pd-blue);
  font-size: 11px;
  cursor: pointer;
}
.pd-history-link svg {
  width: 15px;
  height: 15px;
}
.pd-completed-card {
  border: 1px solid var(--pd-edge);
  border-left: 5px solid var(--pd-green);
  border-radius: 10px;
  padding: 13px 15px;
  margin: 0 15px 13px;
  background: linear-gradient(135deg, var(--pd-panel2), var(--pd-panel));
}
.pd-completed-head {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}
.pd-completed-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pd-completed-meta > span:last-child {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: var(--pd-soft);
}
.pd-completed-meta svg {
  width: 13px;
  height: 13px;
}
.pd-completed-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.pd-completed-progress > i {
  background: var(--pd-green);
  flex: 1;
  min-width: 35px;
}
.pd-completed-progress > span {
  font-size: 11px;
  white-space: nowrap;
  color: var(--pd-soft);
}
.pd-completed-subtasks {
  display: grid;
  gap: 7px;
  margin: 12px 0 18px;
}
.pd-completed-subtasks label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--pd-soft);
}
.pd-completed-subtasks input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #1cd59a;
}
.pd-completed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.pd-completed-actions button {
  padding: 0;
  background: none;
  border: 0;
  font-size: 11px;
  color: var(--pd-blue);
  cursor: pointer;
}
.pd-completed-actions svg {
  width: 16px;
  height: 16px;
}
.planner-design .kanban-column,
.planner-design .planner-agenda,
.planner-design .planner-calendar,
.planner-design .planner-history {
  background: var(--pd-panel);
  border-color: var(--pd-edge);
  color: var(--pd-text);
}
.planner-design .planner-card {
  background: var(--pd-panel2);
  border-color: var(--pd-edge);
  color: var(--pd-text);
}
.planner-design .planner-card p {
  color: var(--pd-soft);
}
#app:has(> .planner-design):focus {
  outline: none;
}
.planner-design button > [data-app-icon] {
  margin: 0;
}
.pd-stat-icon > [data-app-icon] {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
}
.pd-focus-empty > [data-app-icon] {
  width: 36px;
  height: 36px;
}
.pd-panel-head h2 > [data-app-icon] {
  width: 25px;
  height: 25px;
}
.pd-group > header h2 > [data-app-icon] {
  width: 27px;
  height: 27px;
}
.pd-task-date > [data-app-icon] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  flex-basis: 15px;
}
.pd-today > [data-app-icon],
.pd-completed-meta [data-app-icon] {
  width: 13px;
  height: 13px;
  min-width: 13px;
  flex-basis: 13px;
}
.pd-panel-head select {
  width: auto;
  flex: 0 1 215px;
}
.pd-task-check,
.pd-completed-subtasks input {
  appearance: none;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px solid #8ab7d0;
  border-radius: 3px;
}
.pd-task-check:checked,
.pd-completed-subtasks input:checked {
  background: #20d39a;
  border-color: #20d39a;
}
.pd-task-check:checked:after,
.pd-completed-subtasks input:checked:after {
  content: "";
  display: block;
  width: 7px;
  height: 4px;
  border: solid #06382e;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  margin-top: -2px;
}
.pd-task-check:focus-visible {
  outline: 2px solid var(--pd-blue);
  outline-offset: 3px;
}
.pd-completed-subtasks input:disabled {
  opacity: 1;
}
@media (max-width: 1450px) {
  .planner-design .page-head {
    flex-wrap: wrap;
  }
  .pd-task {
    grid-template-columns: 18px minmax(0, 1fr) 92px 20px;
    gap: 10px;
  }
  .pd-task-copy {
    grid-column: 2;
  }
  .pd-task .pd-category {
    grid-column: 2;
    grid-row: 2;
  }
  .pd-task-date {
    grid-column: 3;
    grid-row: 2;
  }
  .pd-task-progress {
    grid-column: 3;
    grid-row: 1;
  }
  .pd-task-menu {
    grid-column: 4;
    grid-row: 1/3;
  }
  .pd-header-actions button {
    font-size: 12px;
    padding: 9px 15px;
  }
  .pd-stat {
    gap: 13px;
    padding: 16px;
  }
  .pd-stat-icon {
    width: 49px;
    height: 49px;
    flex-basis: 49px;
  }
  .pd-stat strong {
    font-size: 27px;
  }
}
@media (max-width: 1100px) {
  .pd-columns {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }
  .pd-stats {
    gap: 10px;
  }
  .pd-stat {
    gap: 10px;
    padding: 13px;
  }
  .pd-stat-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .pd-stat-icon svg {
    width: 24px;
    height: 24px;
  }
  .pd-stat small {
    font-size: 9px;
  }
  .pd-focus-summary {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }
  .pd-focus-summary .pd-small-icon {
    width: 32px;
    height: 32px;
  }
  .pd-focus-body {
    padding: 13px;
  }
}
@media (max-width: 900px) {
  html:has(.planner-design),
  body:has(.planner-design) {
    overflow-x: hidden;
  }
  #app:has(> .planner-design) {
    min-width: 0;
    max-width: 100%;
  }
  .pd-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .pd-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-stat {
    min-height: 86px;
  }
  .pd-stat small {
    font-size: 10px;
  }
  .pd-toolbar {
    gap: 9px;
  }
  .pd-tabs {
    flex-wrap: wrap;
  }
  .pd-search {
    max-width: none;
  }
  .pd-header-actions {
    gap: 8px;
  }
  .pd-more-filters > div {
    left: 0;
    right: auto;
  }
}
@media (max-width: 600px) {
  .planner-design .page-head h1 {
    font-size: 27px;
  }
  .planner-design .page-head p {
    font-size: 12px;
  }
  .pd-header-actions {
    width: 100%;
  }
  .pd-header-actions button {
    flex: 1;
    min-width: 100px;
    min-height: 42px;
    padding: 9px;
    font-size: 11px;
  }
  .pd-stats {
    margin-bottom: 17px;
    gap: 8px;
  }
  .pd-stat {
    gap: 10px;
    padding: 12px;
    min-height: 85px;
  }
  .pd-stat-icon {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
    border-width: 2px;
  }
  .pd-stat strong {
    font-size: 25px;
  }
  .pd-stat small {
    font-size: 9px;
    letter-spacing: 0.3px;
  }
  .pd-toolbar {
    margin-bottom: 15px;
  }
  .pd-tabs {
    width: 100%;
  }
  .pd-tabs button {
    flex: 1 0 28%;
    font-size: 11px;
    padding: 8px;
  }
  .pd-search {
    flex: 1 0 100%;
    max-width: 100%;
  }
  .pd-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pd-filters select {
    width: 100%;
    max-width: none;
    font-size: 9px;
    padding: 6px;
    min-width: 0;
  }
  .pd-export {
    margin-left: auto !important;
  }
  .pd-columns {
    gap: 13px;
  }
  .pd-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-panel-head {
    padding: 13px;
  }
  .pd-panel-head h2 {
    font-size: 17px;
    gap: 8px;
  }
  .pd-task-list {
    padding: 0 10px 10px;
  }
  .pd-task {
    padding: 12px 10px;
    gap: 9px;
    grid-template-columns: 16px minmax(0, 1fr) 76px 18px;
  }
  .pd-task h3 {
    font-size: 12px;
  }
  .pd-task-copy p {
    font-size: 10px;
  }
  .pd-task-date {
    font-size: 9px;
    gap: 3px;
  }
  .pd-task-date svg {
    width: 12px;
    height: 12px;
  }
  .pd-task-progress > span {
    font-size: 9px;
  }
  .pd-task-menu > summary {
    width: 20px;
  }
  .pd-task .pd-category {
    font-size: 8px;
    padding: 4px 6px;
  }
  .pd-group > header {
    padding: 12px;
  }
  .pd-group > header h2 {
    font-size: 14px;
  }
  .pd-focus-summary {
    grid-template-columns: 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  }
  .pd-task.is-compact .pd-task-menu {
    grid-row: 1;
  }
  .pd-completed-card {
    margin: 0 12px 12px;
    padding: 12px;
  }
  .pd-more-filters > div {
    width: 245px;
  }
  .pd-recent .pd-panel-head {
    gap: 9px;
  }
}
@media print {
  .planner-design .pd-header-actions,
  .planner-design .pd-toolbar,
  .planner-design .pd-task-menu,
  .planner-design .pd-completed-actions {
    display: none;
  }
  .planner-design .pd-columns {
    grid-template-columns: 1fr;
  }
  .planner-design {
    --pd-text: #111;
    --pd-soft: #444;
    --pd-panel: #fff;
    --pd-panel2: #fff;
    --pd-edge: #bbb;
    --pd-track: #ddd;
  }
  .planner-design .pd-task,
  .planner-design .pd-panel,
  .planner-design .pd-group,
  .planner-design .pd-stat {
    break-inside: avoid;
  }
}
