.personal-schedule { min-width: 0; }

.ps-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-bottom: .65rem;
}
.ps-heading h3 { margin: 0; font-size: 1.25rem; }
.ps-heading-actions, .ps-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  min-width: 0;
}
.ps-heading .auth-primary, .ps-actions .auth-primary { width: auto; }
.ps-clock { color: #57685a; font-size: .8rem; white-space: nowrap; }
.personal-schedule button { font-size: .875rem; cursor: pointer; }
.personal-schedule button:disabled { opacity: .55; cursor: default; }
.ps-day-navigation { display: inline-flex; align-items: center; gap: .25rem; }
.personal-schedule .ps-day-step {
  display: grid;
  place-items: center;
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 1px solid #dce4db;
  border-radius: 8px;
  background: #f5f7f3;
  color: #2c4235;
  font-size: 1.5rem;
  line-height: 1;
}
.personal-schedule .ps-date-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .7rem;
  min-height: 2.5rem;
  border: 1px solid #dce4db;
  border-radius: 8px;
  background: #f5f7f3;
  color: #2c4235;
  font-weight: 600;
}
.ps-date-toggle::after {
  content: '';
  width: .4rem;
  height: .4rem;
  margin: -.2rem .15rem 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ps-date-toggle[aria-expanded=true]::after { margin-top: .2rem; transform: rotate(225deg); }
.ps-date-picker {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0;
  top: calc(100% + .35rem);
  width: min(100%, 22rem);
  box-sizing: border-box;
  padding: .65rem;
  border: 1px solid #dce4db;
  border-radius: 12px;
  background: #fff;
  color: #2c4235;
  box-shadow: 0 10px 28px #182d1d26;
}
.ps-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: .25rem; }
.ps-calendar-heading button, .ps-date-picker .ps-today { padding: .35rem .55rem; }
.ps-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .2rem;
  margin: .35rem 0 .5rem;
}
.ps-weekday { text-align: center; padding: .25rem 0; font-size: .875rem; color: #57685a; }
.personal-schedule .ps-date {
  box-sizing: border-box;
  min-width: 0;
  min-height: 2.3rem;
  padding: .15rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f4f7f3;
  color: #2c4235;
  text-align: center;
}
.personal-schedule .ps-date[aria-current=date] { border-color: #759280; }
.personal-schedule .ps-date.ps-outside { background: transparent; color: #68766a; }
.personal-schedule .ps-date[aria-pressed=true] { background: #345642; color: #fff; }
.ps-today { display: block; margin-inline-start: auto; }

.ps-agenda {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ps-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .65rem;
  padding: .7rem 0;
  border-bottom: 1px solid #edf0eb;
  overflow-wrap: anywhere;
}
.ps-item:last-child { border-bottom: 0; }
.ps-item [data-ps-done], .ps-item [data-ps-work-done], .ps-item [data-ps-marketing-done], .ps-task-state {
  width: 1.1rem;
  height: 1.1rem;
  margin: .3rem 0 0;
  accent-color: #345642;
}
.ps-task-state {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid #8b9d90;
  border-radius: 4px;
}
.ps-completed .ps-task-state { background: #345642; color: #fff; border-color: #345642; }
.ps-completed .ps-task-state::after { content: '✓'; font-size: .82rem; line-height: 1; }
.ps-item-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .5rem; min-width: 0; }
.ps-item-title strong { font-size: 1rem; line-height: 1.45; }
.ps-tag { color: #526e59; font-size: .875rem; white-space: nowrap; }
.ps-tag-milestone {
  padding: .08rem .45rem;
  border-radius: 5px;
  background: #e2ede4;
  color: #284e37;
  font-weight: 600;
}
.ps-completed strong { text-decoration: line-through; color: #627367; }
.ps-item .ps-meta, .ps-item-details p { margin: .2rem 0 0; font-size: .875rem; color: #41574a; }
.personal-schedule .ps-row-action { min-height: 2rem; padding: .25rem .55rem; white-space: nowrap; }
.ps-item-details { margin-top: .15rem; }
.ps-item-details summary { cursor: pointer; color: #526e59; font-size: .875rem; }
.ps-report-card {
  padding: 1rem;
  margin-bottom: .5rem;
  border: 1px solid #dbe5db;
  border-radius: .75rem;
  background: #f7faf7;
  min-width: 0;
}
.ps-report-items { list-style: none; padding: 0; margin: .65rem 0; }
.ps-report-items > li { padding: .65rem 0; border-top: 1px solid #dbe5db; }
.ps-report-card .ps-notes { margin: .25rem 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.ps-report-card .ps-item-details { margin-top: .4rem; }
.ps-report-card [data-ps-report-notify-status]:empty { display: none; }
.ps-notes { white-space: pre-wrap; }
.ps-empty { margin: 0; padding: .8rem 0; color: #52665a; }
.ps-status, .ps-edit-meta { margin: 0; color: #52665a; font-size: .875rem; }
.ps-status:not(:empty), .ps-edit-meta:not(:empty) { margin: .55rem 0; }
.ps-read-error { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; color: #6c522e; }

.ps-editor { margin-top: 1rem; padding: 1rem; border: 1px solid #becdc0; border-radius: 12px; background: #f8faf7; }
.ps-editor h4 { margin: 0 0 .5rem; font-size: 1.1rem; }
.ps-reminder-settings { margin-top: .65rem; }
.ps-reminder-settings summary { cursor: pointer; color: #345642; font-size: .9rem; }
.personal-schedule label { display: flex; flex-direction: column; gap: .4rem; font-size: .875rem; }
.personal-schedule input:not([type=checkbox]), .personal-schedule select, .personal-schedule textarea {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: .65rem;
  border: 1px solid #d8e0d9;
  border-radius: 8px;
  background: #fff;
  color: #253940;
  font: inherit;
}
.personal-schedule .ps-check { flex-direction: row; align-items: center; font-size: 1rem; }
.ps-check input { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.ps-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .2rem 1rem; margin-bottom: .5rem; }
.ps-editor textarea { width: 100%; resize: vertical; }
.ps-editor .ps-check, .ps-actions { margin-top: .65rem; }
.personal-schedule [hidden] { display: none !important; }
.personal-schedule :focus-visible { outline: 2px solid #59795f; outline-offset: 2px; }
.studio-content .auth-card .personal-schedule label { font-size: .875rem; }
.studio-content .auth-card .personal-schedule .ps-check { font-size: 1rem; }
.studio-content .auth-card .personal-schedule input:not([type=checkbox]),
.studio-content .auth-card .personal-schedule select,
.studio-content .auth-card .personal-schedule textarea { font-size: 1rem; }

@media (max-width: 600px) {
  .ps-heading h3 { flex-basis: 100%; }
  .ps-clock { font-size: .75rem; }
  .ps-date-picker { inset-inline: 0 auto; }
  .ps-form-grid { grid-template-columns: 1fr; }
  .ps-form-grid > span:empty { display: none; }
  .ps-editor { padding: .75rem; }
  .ps-item { gap: .45rem; }
  .personal-schedule .ps-row-action { min-height: 2.5rem; }
}

.ps-comments { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dce4db; }
.ps-comments h4 { margin: 0 0 .65rem; font-size: 1.05rem; }
.ps-comments [data-thread] { color: #52665a; font-size: .9rem; }
.ps-comments article { margin: 0 0 .65rem; }
.ps-comments article header, .ps-comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ps-comments article time { font-size: .8rem; }
.ps-comments article p { margin: .15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #293e32; }
.ps-comments textarea { display: block; width: 100%; resize: vertical; margin: .65rem 0 .4rem; }
.ps-comment-actions { justify-content: space-between; }
.ps-comments [data-mentions]:not(:empty) { margin-bottom: .5rem; }
