.day-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 22px;
}
.day-date {
  display: flex;
  gap: 9px;
  align-items: center;
}
.day-date label {
  font-size: 10px;
  color: var(--muted);
}
.day-date input {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.day-numbers {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 11px;
}
.day-numbers strong {
  font-size: 20px;
  color: var(--ink);
  margin-right: 4px;
}
.day-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.45fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  font-size: 18px;
  margin: 0 0 5px;
}
.section-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.section-heading > button {
  margin-left: auto;
  white-space: nowrap;
}
.step-number {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f7e8e7;
  color: var(--red);
  font-weight: 650;
  font-size: 12px;
}
.dropzone {
  margin: 20px;
  padding: 22px 12px;
  border: 1.5px dashed #d5cfc3;
  background: #fcfbf7;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.dropzone.dragging {
  background: #f6e6e4;
  border-color: var(--red);
}
.dropzone strong {
  font-size: 13px;
}
.dropzone small {
  font-size: 10px;
}
.drop-icon {
  font-size: 30px;
  color: var(--red);
}
.text-button {
  font-size: 11px;
  color: var(--red);
  padding: 5px;
}
.library-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 15px;
  font-size: 10px;
  color: var(--muted);
}
.day-assets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
}
.day-asset {
  min-width: 0;
}
.day-asset > button {
  display: block;
  padding: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f5f3ec;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.day-asset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.15s;
}
.day-asset > button:hover img {
  transform: scale(1.06);
}
.asset-plus {
  position: absolute;
  right: 5px;
  bottom: 5px;
  background: white;
  color: var(--red);
  width: 23px;
  height: 23px;
  border-radius: 50%;
  box-shadow: 0 1px 5px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
}
.day-asset > strong {
  display: block;
  font-size: 10px;
  margin: 8px 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.day-asset > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.day-asset small {
  font-size: 9px;
}
.day-hint {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 0 20px 20px;
}
.day-composer .empty {
  padding: 35px 25px;
}
.sequence-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #efefe8;
}
.sequence-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
}
.sequence-order strong {
  color: var(--red);
  font-size: 12px;
  margin-bottom: 5px;
}
.sequence-order button {
  padding: 2px 5px;
}
.sequence-thumb,
.sequence-text-icon {
  width: 58px;
  height: 65px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: #f6f3ed;
}
.sequence-text-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #7a826f;
}
.sequence-content {
  flex: 1;
  min-width: 0;
}
.sequence-content > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sequence-content strong {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.content-kind {
  font-size: 9px;
  color: var(--red);
  background: #faf0ec;
  padding: 3px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.sequence-content textarea {
  font-size: 11px;
  padding: 7px 10px;
  min-height: 60px;
}
.sequence-content > small {
  font-size: 10px;
  line-height: 1.6;
}
.sequence-row > .icon-button {
  font-size: 20px;
  padding: 0 2px;
}
.sequence-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fafbf8;
}
.sequence-footer small {
  font-size: 10px;
}
.schedule-setup {
  padding: 0 20px 20px;
}
.schedule-setup .section-heading {
  padding: 24px 0 18px;
  border: 0;
}
.schedule-setup > .two-cols {
  margin: 18px 0;
}
.schedule-setup fieldset {
  margin: 0 0 18px;
}
.round-times {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.round-time {
  background: #f8f6f0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 105px;
  max-width: 160px;
}
.round-time label {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
}
.round-time input {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 4px;
}
.round-time > button {
  align-self: flex-start;
  color: var(--muted);
}
.add-round {
  border: 1px dashed #d9c2bb;
  border-radius: 7px;
  color: var(--red);
  font-size: 11px;
  padding: 15px;
  min-height: 86px;
  flex: 1;
}
.day-channel-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.day-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #f3f6ef;
  border: 1px solid #e1e8da;
  border-radius: 7px;
  padding: 14px;
  font-size: 11px;
  margin-bottom: 15px;
}
.day-summary > strong {
  font-size: 12px;
  font-weight: 600;
  color: #476047;
}
.day-summary > span {
  color: var(--muted);
}
.day-summary > small {
  font-size: 10px;
}
.day-save {
  width: 100%;
  padding: 14px;
  font-size: 13px;
  margin: 12px 0;
}
.schedule-setup > .day-hint {
  margin: 0;
  text-align: center;
}
.saved-round {
  padding: 0 22px 10px;
}
.saved-round-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f7f2;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0 5px;
}
.saved-round-heading h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.saved-round-heading small {
  font-size: 10px;
}
.saved-round-heading label {
  font-size: 10px;
  flex-direction: row;
  align-items: center;
  color: var(--muted);
}
.saved-round-heading input {
  width: 110px;
  padding: 7px;
  font-weight: 600;
}
.day-event {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
}
.day-event.changed {
  background: #fff9e9;
}
.event-time {
  font-size: 9px;
  color: var(--muted);
  width: 108px;
  flex-shrink: 0;
}
.event-time input {
  font-size: 17px;
  padding: 8px;
  font-weight: 600;
}
.event-thumb {
  width: 56px;
  height: 60px;
  flex-shrink: 0;
  background: #f3f1e9;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #858a78;
}
.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.event-content {
  flex: 1;
  min-width: 0;
}
.event-content > strong {
  font-size: 12px;
  margin-left: 7px;
}
.event-content p {
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0;
  max-height: 75px;
  overflow: auto;
  line-height: 1.5;
}
.event-content > small {
  font-size: 9px;
}
.event-status {
  max-width: 180px;
  flex-shrink: 0;
  text-align: right;
}
.event-status .row-actions {
  justify-content: flex-end;
}
.event-status button {
  font-size: 10px;
}
.day-change-bar {
  position: sticky;
  bottom: 0;
  background: #fff8e4;
  border-top: 1px solid #e8d8ad;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  box-shadow: 0 -4px 15px #00000008;
}
.day-change-bar > div {
  display: flex;
  gap: 10px;
}
.day-edit-body {
  padding: 24px;
}
#day-editor {
  max-width: 620px;
}
#day-upload-status,
#day-upload-errors {
  margin: 10px 20px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.sticker-thumb {
  background: repeating-conic-gradient(#f5f5f2 0% 25%, #e8e9e2 0% 50%) 50% /
    16px 16px;
}
.day-calendar {
  overflow: visible;
}
@media (max-width: 1200px) {
  .day-workbench {
    grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.3fr);
    gap: 15px;
  }
  .day-numbers {
    gap: 12px;
  }
  .day-assets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .day-toolbar {
    flex-wrap: wrap;
  }
  .section-heading {
    padding: 18px;
  }
  .sequence-thumb {
    width: 45px;
  }
  .sequence-row {
    padding: 14px 12px;
    gap: 7px;
  }
}
@media (max-width: 950px) {
  .day-workbench {
    grid-template-columns: 1fr;
  }
  .day-assets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dropzone {
    padding: 15px;
  }
  .day-event {
    flex-wrap: wrap;
  }
  .event-status {
    max-width: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-left: 0;
  }
  .event-content {
    min-width: 150px;
  }
}
@media (max-width: 600px) {
  .day-toolbar {
    padding: 14px;
    gap: 15px;
  }
  .day-date {
    gap: 5px;
    flex-wrap: wrap;
  }
  .day-date input {
    width: 150px;
  }
  .day-numbers {
    width: 100%;
    justify-content: space-between;
  }
  .day-assets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 16px;
  }
  .section-heading {
    padding: 16px 14px;
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .section-heading > button {
    padding: 8px;
    font-size: 10px;
  }
  .sequence-content > div {
    display: block;
  }
  .sequence-content strong {
    display: block;
    max-width: 175px;
    margin: 5px 0;
  }
  .sequence-thumb,
  .sequence-text-icon {
    width: 42px;
    height: 50px;
  }
  .sequence-order {
    width: 17px;
  }
  .schedule-setup {
    padding: 0 14px 16px;
  }
  .round-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .round-time {
    max-width: none;
    min-width: 0;
  }
  .saved-round {
    padding: 0 10px 10px;
  }
  .saved-round-heading {
    padding: 12px;
  }
  .saved-round-heading label {
    flex-direction: column;
    font-size: 9px;
  }
  .day-event {
    gap: 10px;
    padding: 13px 5px;
  }
  .event-time {
    width: 97px;
  }
  .event-time input {
    font-size: 15px;
  }
  .event-thumb {
    width: 43px;
    height: 50px;
  }
  .event-content {
    min-width: 90px;
  }
  .event-content > strong {
    display: block;
    margin: 5px 0 0;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .day-change-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .day-change-bar > div {
    justify-content: space-between;
  }
  .day-change-bar button {
    font-size: 10px;
    padding: 10px;
  }
  .day-edit-body {
    padding: 18px;
  }
  .day-library .day-hint {
    margin: 0 14px 14px;
  }
}
