/* =========================================================
   Assignment Tracker (School hub, version 52)
   Loaded after theme.css on the tool pages. Same frame as Action Items (.tk): the list on the left, the next seven
   days on the right. School green takes the place of safety yellow inside this tool. On phones the List and Next 7
   days tabs switch panes.
   ========================================================= */
@media screen {

#panel-assign {
  --mascot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 58'%3E%3Cellipse cx='25' cy='54' rx='18' ry='3' fill='%231B2125' opacity='.15'/%3E%3Cg transform='translate(1 4)'%3E%3Cpath d='M11 8h24a3 3 0 0 1 3 3v35H14a3 3 0 0 1-3-3z' fill='%236BCB77' stroke='%231B2125' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M16 8v38' stroke='%231B2125' stroke-width='2'/%3E%3Cpath d='M29 8v11l3-3 3 3V8' fill='%23fff' stroke='%231B2125' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='22' cy='24' r='2.2' fill='%231B2125'/%3E%3Ccircle cx='31' cy='24' r='2.2' fill='%231B2125'/%3E%3Cpath d='M24 29q2.5 2.8 5 0' fill='none' stroke='%231B2125' stroke-width='2' stroke-linecap='round'/%3E%3Cellipse cx='19' cy='29' rx='2.4' ry='1.5' fill='%23F4B6B0'/%3E%3Cellipse cx='34' cy='29' rx='2.4' ry='1.5' fill='%23F4B6B0'/%3E%3C/g%3E%3C/svg%3E"); --mascot-w: 52px; --mascot-h: 60px; --note: "due dates, sorted for you";
  --yel: #6bcb77; --yel-hover: #84d58e; --yel-soft: #ddf2e0; --yel-line: #b5e3bb; --yel-ink: #1f5a28; --on-yel: #1b2125; --hl: #6bcb77;
}
:root:lang(es) #panel-assign { --note: "las fechas, en orden"; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-tc-theme="light"]) #panel-assign { --yel-soft: #15301a; --yel-line: #2a5531; --yel-ink: #a8e2b0; --hl: #2e6b37; }
}
:root[data-theme="dark"]:not([data-tc-theme="light"]) #panel-assign, :root[data-tc-theme="dark"] #panel-assign { --yel-soft: #15301a; --yel-line: #2a5531; --yel-ink: #a8e2b0; --hl: #2e6b37; }

/* ---------- the frame: the list on the left, the next seven days on the right ---------- */
.as .tk-main { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); }
.as-side { background: var(--canvas); }
@media (min-width: 921px) { .as-side { border-left: 2px solid var(--edge); border-radius: 0 16px 16px 0; } }
.as .tk-try, .as .notice, .as .warn { margin: 6px 0 0; }
.as-print-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- the form ---------- */
.as-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr); gap: 10px; margin-top: 10px; padding: 14px; border: 2px solid var(--edge); border-radius: 14px; background: var(--yel-soft); }
.as-form-h { grid-column: 1 / -1; margin: 0; font: 700 18px/1.2 var(--f-cond); }
.as-form .tk-l em { font-style: normal; font-weight: 400; color: var(--muted); }
.as-f-t { grid-column: 1 / -1; }
.as-form-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk .as-del { margin-left: auto; min-height: 40px; }
.as-form .tk-err { grid-column: 1 / -1; margin: 0; }

/* ---------- the list ---------- */
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.as-chips[hidden] { display: none; }
.as-chip { min-height: 36px; padding: 0 13px; border: 2px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 13.5px/1 var(--f-ui); cursor: pointer; }
.as-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.as-group { margin-top: 18px; }
.as-group h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 700 19px/1.2 var(--f-cond); }
.as-group h3 .tk-n { margin: 0; }
.as-g-over h3 { color: var(--bad); }
.as-list, .as-done { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.as-done { margin-top: 10px; }
.as-done[hidden] { display: none; }
.as-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border: 2px solid var(--edge); border-radius: 12px; background: var(--surface); }
.as-item.sel { box-shadow: var(--pop-sm); outline: 3px solid var(--yel); outline-offset: 1px; }
.as-ck { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 2px solid var(--edge); border-radius: 8px; background: var(--surface); color: transparent; cursor: pointer; }
.as-ck svg { width: 18px; height: 18px; }
.as-ck[aria-checked="true"] { background: var(--yel); color: #1b2125; }
.as-txt { display: grid; gap: 2px; min-width: 0; }
.as-t { font-weight: 600; overflow-wrap: anywhere; }
.as-m { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.as-item.done .as-t { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.as-late { padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--surface); font: 700 12px/1.2 var(--f-ui); white-space: nowrap; }
.as-ed { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.as-ed:hover { background: var(--surface-2); color: var(--ink); }
.as-ed svg { width: 20px; height: 20px; }
.as-empty { margin: 18px 0 0; padding: 18px; border: 2px dashed var(--line-2); border-radius: 12px; color: var(--muted); text-align: center; }
.tk .as-done-btn { margin-top: 14px; min-height: 40px; }

/* ---------- the next seven days ---------- */
.as-side-h { margin: 0; min-height: 40px; display: flex; align-items: center; font: 700 24px/1.1 var(--f-cond); }
.as-week { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.as-day { padding: 8px 10px; border: 2px solid var(--edge); border-radius: 10px; background: var(--surface); }
.as-day.free { border-style: dashed; border-color: var(--line-2); background: transparent; }
.as-dh { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.as-dh span { color: var(--muted); }
.as-day ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
.as-day li { display: flex; align-items: baseline; gap: 7px; overflow-wrap: anywhere; }
.as-day p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.as-dc { color: var(--muted); }
.as-dk { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); transform: translateY(-1px); }
.as-k-hw { background: var(--yel); } .as-k-test { background: #f47c66; } .as-k-project { background: #b89cff; } .as-k-reading { background: #63b3ed; }

/* ---------- phones: one pane at a time ---------- */
@media (max-width: 920px) {
  .as .tk-main { display: block; }
  .as[data-pane="list"] .as-side, .as[data-pane="week"] .as-list-pane { display: none; }
  .as-side { background: var(--surface); }
  .as-side > .as-side-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 520px) {
  .as-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; }
  .as-f-cls { grid-column: 1 / -1; }
  .as-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .as-late { grid-column: 2; justify-self: start; grid-row: 2; }
}

} /* end screen */

/* ---------- the printed list ---------- */
.as-s-g { margin-top: 14px; break-inside: avoid; page-break-inside: avoid; }
.as-s-g h3 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1.5px solid var(--pt-head); font: 700 14px/1.2 var(--f-cond); color: var(--pt-head); }
.as-s-g ul { list-style: none; margin: 0; padding: 0; }
.as-s-g li { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 5px 0; border-bottom: 1px solid var(--pt-rule); font-size: 12px; }
.as-s-t { font-weight: 600; }
.as-s-m { color: var(--pt-label); font-size: 11px; text-align: right; }
.as-s-none { margin: 18px 0; color: var(--pt-label); }
.as-s-lines { margin-top: 18px; display: grid; gap: 22px; }
.as-s-lines i { border-bottom: 1px solid var(--pt-line); }
.as-sheet .ss-foot { margin-top: 14px; }

@media print {
  .as-form, .as-chips, .as-side, .as-print-btn, .as-ed, .as-done-btn { display: none !important; }
}
