/* Plan the week, option D (2026-10-24). Rendered by js/quinn/week-planner.js
   inside the existing #quinn-week-builder dialog (head kept as is). */
#quinn-week-builder.qwp-on .quinn-week-dialog { width: min(1120px, 100%); height: min(760px, calc(100vh - 36px)); }
#quinn-week-builder.qwp-on .quinn-week-dialog-body { padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; }
#quinn-week-builder.qwp-on .quinn-week-dialog-foot { gap: 10px; }

.qwp { flex: 1; display: flex; min-height: 0; }
.qwp-lbl { font-size: 13.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #5B616B; }
.qwp-side { width: 208px; flex: none; border-right: 1px solid var(--border, #E9ECEF); background: #FFFBFA; padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; box-sizing: border-box; }
.qwp-tile { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink, #111114); background: var(--coral-50, #FDE7E2); border: 1px solid var(--coral-100, #FCD1C7); border-radius: 10px; padding: 9px 10px; cursor: grab; }
.qwp-tile:hover { border-color: var(--coral-300, #F38A6E); background: #fff; }
.qwp-tile:active { cursor: grabbing; }
.qwp-tile .ti { font-size: 15px; color: var(--coral-500, #D85A30); }
.qwp-grip { width: 8px; height: 14px; flex: none; background: radial-gradient(circle, var(--coral-500, #D85A30) 1.2px, transparent 1.3px) 0 0 / 4px 4px; opacity: .8; }
.qwp-sum { margin-top: auto; border-top: 1px solid var(--border, #E9ECEF); padding-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.qwp-sum-n { font-size: 14px; color: var(--ink, #111114); }
.qwp-sum-d { font-size: 14px; color: #5B616B; line-height: 1.4; }
.qwp-link { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 700; color: var(--coral-500, #D85A30); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.qwp-link:disabled { opacity: .4; cursor: default; }
.quinn-week-dialog-foot .qwp-link { padding: 10px 12px; font-size: 14.5px; }

.qwp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px; gap: 12px; overflow-y: auto; }
.qwp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; flex: 1; min-height: 260px; }
.qwp-day { position: relative; border: 1px solid var(--border, #E9ECEF); border-radius: 12px; padding: 9px 7px; display: flex; flex-direction: column; gap: 7px; background: #fff; min-width: 0; }
.qwp-day.over { border-color: var(--coral-300, #F38A6E); background: #FFFBFA; }
.qwp-dh { text-align: center; }
.qwp-dh b { display: block; font-size: 14px; color: var(--ink, #111114); }
.qwp-dh span { font-size: 14px; color: #5B616B; }
.qwp-has { background: #F7F8F9; border-radius: 8px; padding: 6px 7px; }
.qwp-has-h { display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #5B616B; margin-bottom: 3px; }
.qwp-has ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.qwp-has ul { gap: 5px; }
.qwp-has li { display: grid; grid-template-columns: 6px minmax(0, 1fr); column-gap: 6px; align-items: center; font-size: 13.5px; line-height: 1.25; color: #111114; }
.qwp-has li b { font-weight: 600; }
.qwp-has li span:last-child { grid-column: 2; color: #5B616B; font-size: 13.5px; }
.qwp-ex-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--teal-500, #009580); }
.qwp-has li.pend .qwp-ex-dot { background: var(--coral-500, #D85A30); }
.qwp-has li.more { display: block; color: #5B616B; font-weight: 600; padding-left: 12px; }
.qwp-post { font: inherit; text-align: left; width: 100%; border: 1.5px solid var(--coral-300, #F38A6E); border-radius: 10px; background: #fff; padding: 8px; display: flex; flex-direction: column; gap: 4px; cursor: grab; color: var(--ink, #111114); }
.qwp-post.sug { border-style: dashed; border-color: var(--coral-500, #D85A30); }
.qwp-post.on { border: 2px solid var(--coral-500, #D85A30); box-shadow: 0 0 0 3px var(--coral-50, #FDE7E2); }
.qwp-post:hover { background: #FFFBFA; }
.qwp-post b { font-size: 14px; line-height: 1.25; }
.qwp-post-t { font-size: 13.5px; color: #5B616B; }
.qwp-post-ch { display: flex; gap: 3px; flex-wrap: wrap; }
.qwp-sug { font-size: 13px; font-weight: 800; color: var(--coral-500, #D85A30); letter-spacing: .02em; }
.qwp-add { margin-top: auto; font: inherit; font-size: 14px; font-weight: 600; color: #5B616B; background: none; border: 1.5px dashed var(--border, #E9ECEF); border-radius: 10px; padding: 8px 4px; display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.qwp-add:hover { color: var(--coral-500, #D85A30); border-color: var(--coral-300, #F38A6E); }
.qwp-drop { display: none; border: 2px dashed var(--coral-300, #F38A6E); border-radius: 10px; padding: 10px 4px; text-align: center; font-size: 14px; font-weight: 700; color: var(--coral-500, #D85A30); background: var(--coral-50, #FDE7E2); }
.qwp.dragging .qwp-day.over .qwp-drop { display: block; }
.qwp.dragging .qwp-day.over .qwp-add { display: none; }

.qwp-ed, .qwp-all { border: 1.5px solid var(--coral-300, #F38A6E); border-radius: 12px; background: #FFFBFA; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.qwp-all { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.qwp-ed-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.qwp-ed-f { display: flex; flex-direction: column; gap: 6px; }
.qwp-ed-f label, .qwp-ed label.qwp-lbl { font-size: 13.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #5B616B; }
.qwp-ed select, .qwp-ed input[type="time"], .qwp-ed input[type="text"], .qwp-all input[type="time"] { font: inherit; font-size: 14.5px; color: var(--ink, #111114); border: 1px solid var(--border, #E9ECEF); border-radius: 8px; padding: 8px 10px; background: #fff; box-sizing: border-box; }
.qwp-ed input[type="text"] { width: 100%; }
.qwp-ed select:focus, .qwp-ed input:focus, .qwp-all input:focus { outline: 2px solid var(--coral-300, #F38A6E); outline-offset: 0; }
.qwp-chs { display: flex; gap: 5px; }
.qwp-ch { padding: 0; border: 0; background: none; border-radius: 9px; cursor: pointer; opacity: .35; filter: grayscale(1); }
.qwp-ch.on { opacity: 1; filter: none; }
.qwp-ch.off { cursor: not-allowed; }
.qwp-ch:focus-visible { outline: 2px solid var(--coral-500, #D85A30); outline-offset: 2px; }
.qwp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.qwp-pill { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border, #E9ECEF); background: #fff; color: var(--ink, #111114); cursor: pointer; }
.qwp-pill.on { background: var(--coral-500, #D85A30); border-color: var(--coral-500, #D85A30); color: #fff; font-weight: 700; }
.qwp-ed-act { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.qwp-done { font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: var(--coral-500, #D85A30); border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; }
.qwp-all .qwp-done { margin-left: auto; }

.qwp-hint { margin-right: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #5B616B; }
.qwp-hint-sw { width: 18px; height: 12px; border: 1.5px dashed var(--coral-500, #D85A30); border-radius: 4px; flex: none; }
#quinn-week-builder .quinn-week-confirm:disabled { opacity: .5; cursor: default; }

@media (max-width: 860px) {
  .qwp { flex-direction: column; }
  .qwp-side { width: auto; border-right: 0; border-bottom: 1px solid var(--border, #E9ECEF); flex-direction: row; flex-wrap: wrap; }
  .qwp-tile { width: auto; }
  .qwp-sum { margin-top: 0; border-top: 0; padding-top: 0; width: 100%; }
  .qwp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Save for later: light teal tint (2026-10-24, Mark) */
#quinn-week-builder .quinn-week-save { background: #EAF7F5; }
#quinn-week-builder .quinn-week-save:hover { background: #D5F0EB; }
/* The day columns shrank below their posts when the editor opened under
   them, so the posts ran over the editor (2026-11-25). The grid now keeps
   its full height and the window scrolls instead. */
.qwp-main > * { flex-shrink: 0; }
.qwp-grid { flex: 1 0 auto; }
