#dashboardView .plan-grid { display: block; grid-template-columns: none; background: transparent; border: 0; }

#dashboardView .task-heading strong {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.45;
}

#dashboardView .task-heading { align-items: start; }
#dashboardView .plan-item { min-width: 0; }
#dashboardView .task-timer { min-height: 44px; }
#dashboardView .plan-item > input { width: 18px; height: 18px; cursor: pointer; }

.plan-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.plan-heading-actions .text-button { margin: 0; white-space: nowrap; }
.plan-editor[hidden], .plan-add-row label[hidden] { display: none !important; }
.plan-editor {
  margin: 12px 0 20px;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid #30505b;
  background: #0c1b21;
  box-shadow: 0 18px 45px #0003;
  animation: plan-editor-in .2s ease-out both;
}
.plan-editor-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.plan-editor-head strong { color: #e9f4f6; font-size: 1.08rem; }
.plan-editor-head p, .plan-editor-empty { margin: 6px 0 0; color: #8da6af; font-size: .78rem; line-height: 1.6; }
.plan-editor-close { width: 36px; height: 36px; flex: none; border: 1px solid #355560; background: #102630; color: #d5e8ec; cursor: pointer; font-size: 1.35rem; }
.plan-editor-rows { display: grid; gap: 8px; }
.plan-editor-row { display: grid; grid-template-columns: 28px minmax(120px, 1fr) minmax(110px, 150px) auto; gap: 10px; align-items: end; padding: 12px; background: #10242c; border: 1px solid #29434d; }
.plan-editor-order { align-self: center; color: #6fb9c9; text-align: center; font: 700 .85rem/1 Bahnschrift, sans-serif; }
.plan-editor label, .plan-add-row label { display: grid; gap: 5px; min-width: 0; color: #a5c2ca; font-size: .74rem; }
.plan-editor input, .plan-editor select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 8px 11px; border: 1px solid #3b606a; border-radius: 3px; outline: none; background: #08171d; color: #f1f7f8; font: inherit; font-size: .9rem; }
.plan-editor input:focus-visible, .plan-editor select:focus-visible, .plan-editor button:focus-visible { outline: 2px solid #22c6e5; outline-offset: 2px; }
.plan-editor-row-actions { display: flex; gap: 5px; align-items: center; }
.plan-editor-row-actions button { min-width: 36px; min-height: 42px; padding: 7px; border: 1px solid #385762; background: #132c35; color: #dcebee; cursor: pointer; }
.plan-editor-row-actions button:last-child { min-width: 48px; color: #ffb8b8; }
.plan-editor-row-actions button:disabled { opacity: .35; cursor: default; }
.plan-add-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(110px, 160px) auto; gap: 10px; align-items: end; margin-top: 16px; padding: 14px; border: 1px dashed #3a7483; background: #10252b; }
.plan-add-row .secondary, .plan-editor-footer button { min-height: 42px; }
.plan-editor-error { min-height: 1.25em; margin: 8px 0; color: #ff9999; font-size: .8rem; }
.plan-editor-footer { display: flex; justify-content: flex-end; gap: 10px; }
.plan-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed #3b6672; background: #0d2027; }
.plan-empty strong { color: #ebf3f5; }
.plan-empty p { color: #91aab3; line-height: 1.6; }
.plan-empty button { min-height: 42px; }
html[data-theme="day"] .plan-editor { background: #f8fcfe; border-color: #bdd9e2; box-shadow: 0 16px 35px #1c61701a; }
html[data-theme="day"] .plan-editor-head strong, html[data-theme="day"] .plan-empty strong { color: #173b4b; }
html[data-theme="day"] .plan-editor-head p, html[data-theme="day"] .plan-editor-empty, html[data-theme="day"] .plan-empty p { color: #527481; }
html[data-theme="day"] .plan-editor-row, html[data-theme="day"] .plan-add-row, html[data-theme="day"] .plan-empty { background: #edf7fa; border-color: #c3dce4; }
html[data-theme="day"] .plan-editor label, html[data-theme="day"] .plan-add-row label { color: #315b6a; }
html[data-theme="day"] .plan-editor input, html[data-theme="day"] .plan-editor select { background: #fff; border-color: #a6c9d4; color: #173b4b; }
html[data-theme="day"] .plan-editor-close, html[data-theme="day"] .plan-editor-row-actions button { background: #fff; border-color: #b7d2dc; color: #245368; }
html[data-theme="day"] .plan-editor-row-actions button:last-child { color: #9a3543; }
html[data-theme="day"] .plan-editor-error { color: #a62f41; }
@keyframes plan-editor-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  #dashboardView .plan-grid { grid-template-columns: 1fr; }
  .plan-heading-actions { width: 100%; justify-content: space-between; }
  .plan-editor-row { grid-template-columns: 24px minmax(0, 1fr) 92px; gap: 8px; }
  .plan-editor-row-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .plan-add-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan-add-row label:first-child, .plan-add-row label[hidden] + label, .plan-add-row label:not([hidden]) { grid-column: 1 / -1; }
  .plan-add-row .secondary { grid-column: 1 / -1; }
  .plan-editor-row-actions button { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .plan-editor { animation: none; } }

/* Shredder-style daily list: the slit marks today's completion, never deletes a template. */
#dashboardView .plan-grid { display: block; }
#dashboardView .shredder { position: relative; width: min(900px, 100%); margin: 0 auto; color: #eaf3f5; -webkit-tap-highlight-color: transparent; }
.shredder__list { display: grid; gap: 9px; position: relative; z-index: 2; }
.shredder__slot { position: relative; min-width: 0; }
.shredder__item { position: relative; outline: none; transform-origin: 50% 50%; }
.shredder__item.is-dragging { z-index: 5; filter: drop-shadow(0 17px 24px #0007); cursor: grabbing; }
.shredder__card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; min-height: 78px; padding: 11px 15px; border: 1px solid #365965; border-radius: 4px; background: #0e2027; box-shadow: 0 5px 13px #0002; box-sizing: border-box; }
.shredder__item:hover .shredder__card { border-color: #478fa1; background: #112b34; }
.shredder__drag { display: grid; place-items: center; width: 36px; min-width: 36px; height: 42px; padding: 0; border: 1px solid #31545f; border-radius: 3px; background: #122c35; color: #8bd3e2; cursor: grab; touch-action: none; font-size: 1.4rem; line-height: 1; user-select: none; }
.shredder__drag:active { cursor: grabbing; }
.shredder__card .task-timer { min-width: 0; width: 100%; min-height: 48px; text-align: left; border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer; display: grid; align-content: center; gap: 12px; }
.shredder__card .task-heading { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; min-width: 0; }
.shredder__card .task-heading strong { color: #ebf4f6; font-size: .86rem; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.shredder__card .task-timer-state { color: #80a1aa; flex: none; font-size: .72rem; font-variant-numeric: tabular-nums; }
.shredder__card .task-progress-track { display: block; position: relative; width: 100%; height: 3px; border-radius: 999px; background: #17333d; overflow: hidden; }
.shredder__card .task-progress-fill { display: block; width: 0; height: 100%; background: #29bddc; transition: width .25s linear; }
.shredder__card .task-progress-glint { position: absolute; top: 0; left: 0; z-index: 1; width: 22px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #8df1ff, #e1fcff, transparent); box-shadow: 0 0 9px #48dfff; opacity: 0; pointer-events: none; }
.shredder__card .task-progress-track.has-timer-glint .task-progress-glint { opacity: 1; }
.shredder__card .task-timer-reset { display: none; margin: 0; padding: 6px 8px; border: 0; background: transparent; color: #a4bec6; cursor: pointer; font-size: .7rem; }
.shredder__card .task-timer-reset.active { display: inline-block; }
.shredder__finish { min-width: 58px; min-height: 42px; padding: 7px 10px; border: 1px solid #397c8e; border-radius: 3px; background: #12313a; color: #b4e8f0; cursor: pointer; font-size: .75rem; }
.shredder__finish:hover, .shredder__drag:hover { background: #174654; color: #e8fbff; }
.shredder__slit { height: 31px; position: relative; margin-top: 13px; border-radius: 999px; background: linear-gradient(#06151a 0 43%, #387686 46% 54%, #07151a 57% 100%); box-shadow: inset 0 0 8px #000b, 0 0 12px #1db4d128; transition: box-shadow .2s, background .2s; }
.shredder__slit span { position: absolute; right: 10px; top: -10px; padding: 2px 7px; background: #0a1b21; color: #83b7c2; font-size: .65rem; pointer-events: none; }
.shredder__slit.is-over, .shredder__slit.is-feeding { box-shadow: inset 0 0 8px #000b, 0 0 22px #25c5e5a3; }
.shredder__fall { position: relative; height: 110px; overflow: hidden; pointer-events: none; background: linear-gradient(#12323b45, #07191e0a 78%); }
.shredder__strip { position: absolute; margin: 0; pointer-events: none; box-shadow: none; }
.shredder__strip button { pointer-events: none; }
.shredder__all-done { margin: 0; padding: 26px 20px; border: 1px solid #356a5a; color: #a5e3c9; background: #0e2923; text-align: center; }
.shredder__completed { width: min(900px, 100%); margin: 13px auto 0; padding: 13px 0 0; border-top: 1px solid #28434c; }
.shredder__completed > strong { color: #9acbb9; font-size: .78rem; }
.shredder__completed > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.shredder__completed span { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 7px 5px 11px; border: 1px solid #315a51; border-radius: 999px; background: #102820; color: #b4dbc9; font-size: .75rem; overflow-wrap: anywhere; }
.shredder__completed button { min-height: 30px; padding: 3px 7px; border: 0; border-radius: 999px; background: #244a41; color: #d0f2df; cursor: pointer; font-size: .7rem; }
.shredder__finish:focus-visible, .shredder__drag:focus-visible, .shredder__completed button:focus-visible { outline: 2px solid #40d5f0; outline-offset: 2px; }
html[data-theme="day"] #dashboardView .shredder { color: #194353; }
html[data-theme="day"] .shredder__card { background: #fff; border-color: #b8d7e0; box-shadow: 0 5px 15px #285a6817; }
html[data-theme="day"] .shredder__item:hover .shredder__card { background: #f1fbfd; border-color: #7bb5c5; }
html[data-theme="day"] .shredder__card .task-heading strong { color: #194353; }
html[data-theme="day"] .shredder__card .task-timer-state, html[data-theme="day"] .shredder__card .task-timer-reset { color: #4e7582; }
html[data-theme="day"] .shredder__drag { background: #eaf6fa; border-color: #bbd9e1; color: #247087; }
html[data-theme="day"] .shredder__finish { background: #e7f5f9; border-color: #9cc9d6; color: #17627a; }
html[data-theme="day"] .shredder__slit { background: linear-gradient(#d9ecf1 0 43%, #559aab 46% 54%, #d5e8ed 57% 100%); box-shadow: inset 0 0 7px #416b7745, 0 0 10px #4599ad3b; }
html[data-theme="day"] .shredder__slit span { background: #f4fbfd; color: #386d7b; }
html[data-theme="day"] .shredder__fall { background: linear-gradient(#d7edf27d, #eef8fb08 78%); }
html[data-theme="day"] .shredder__completed { border-color: #bbd9d0; }
html[data-theme="day"] .shredder__completed > strong { color: #306c58; }
html[data-theme="day"] .shredder__completed span { background: #edf8f1; color: #225c48; border-color: #b8d9c8; }
html[data-theme="day"] .shredder__completed button { background: #d8eee1; color: #256449; }
html[data-theme="day"] .shredder__all-done { background: #eff9f3; color: #256449; border-color: #b8d9c8; }
@media (max-width: 760px) {
  .shredder__card { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 7px; padding: 11px 9px; }
  .shredder__card .task-timer-reset.active { grid-column: 2 / -1; justify-self: end; min-height: 32px; }
  .shredder__finish { min-width: 52px; padding-inline: 7px; }
  .shredder__fall { height: 76px; }
  .shredder__completed > div { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .shredder__slit, .shredder__card .task-progress-fill { transition: none; } .shredder__card .task-progress-glint { display: none; } }
