/* Aufgaben: aus der Entwurfskarte "Aufgabe, fällig heute" (Heute.dc.html) abgeleitet. */
.ag { display: flex; flex-direction: column; gap: 24px; }
.ag > .msg:empty { display: none; }
.ag-ph { margin-bottom: 0; }
.ag-ph .acts { gap: 8px; }
.ag-ph .acts .select { min-width: 170px; }
.ag-ph .acts .select select { height: 42px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.ag-ph .btn.primary { border-radius: 12px; padding: 0 16px; }

.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.ag-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.ag-card.is-done { background: #F7F3EC; }
.ag-card.is-done .ag-title .nm { color: var(--text-2); }
.ag-empty { flex-direction: row; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; cursor: default; }
.ag-empty .ic { font-size: 18px; color: var(--text-3); }

.ag-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ag-k { gap: 8px; font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ag-k .ic { font-size: 14px; }
.ag-k.late, .ag-meta .late { color: var(--bad); }
.ag-loc { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.ag-title { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ag-title .nm { flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: 600 19px/1.3 var(--sans); color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .ag-title .nm:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; } }
.ag-title .cnt, .ag-chk .num { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-prog { height: 6px; border-radius: 6px; background: #E7E1D5; margin: 12px 0 6px; overflow: hidden; }
.ag-prog i { display: block; width: 100%; height: 100%; background: #5F7F40; border-radius: 6px; transform-origin: left center; transition: transform .3s var(--ease-out); }
.ag-items { display: flex; flex-direction: column; }
.ag-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid #EAE3D6; background: transparent; text-align: left; cursor: pointer; font: 400 15px/1.35 var(--sans); color: var(--ink); }
.ag-it:first-child { border-top: 0; }
.ag-it:disabled { cursor: default; }
.ag-it .box { width: 22px; height: 22px; border-radius: 7px; flex: none; display: flex; align-items: center; justify-content: center; background: transparent; border: 1.5px solid var(--line-2); color: transparent; transition: background-color 150ms ease, border-color 150ms ease; }
.ag-it .box .ic { font-size: 13px; stroke-width: 3; }
.ag-it.done .box { background: #5F7F40; border-color: #5F7F40; color: var(--surface); }
.ag-it .tx { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ag-it.done .t { text-decoration: line-through; color: #A39886; }
.ag-it .by { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.ag-it:active:not(:disabled) .box { transform: scale(.92); }
.ag-snip { margin: 12px 0 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-more { align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent-deep); font: 600 13px/1.4 var(--sans); cursor: pointer; }
.ag-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #EAE3D6; }
.ag-nobody { font-size: 13px; color: var(--text-3); }
.ag-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ag-pill.new { background: var(--surface-2); color: var(--text-2); }
.ag-pill.wait { background: var(--accent-soft); color: var(--accent-deep); }
.ag-pill.ok { background: #EEF3E8; color: #4A6630; }

/* Detail */
.ag-det { display: flex; flex-direction: column; gap: 12px; }
.ag-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--text-2); }
.ag-meta .ic { font-size: 15px; color: var(--text-3); }
.ag-desc { margin: 0; white-space: pre-wrap; }
.ag-chk { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ag-det .ag-prog { margin: 0; }
.ag-who { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-person { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 500; }

/* Wizard */
.ag-form { display: flex; flex-direction: column; gap: 16px; }
.ag-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .ag-two { grid-template-columns: 1fr; } }
.ag-form .opt { font-weight: 400; color: var(--text-3); font-size: 13px; }
.ag-erows { display: flex; flex-direction: column; gap: 8px; }
.ag-erows:empty { display: none; }
.ag-er { display: flex; align-items: center; gap: 10px; }
.ag-er .box { width: 22px; height: 22px; border-radius: 7px; flex: none; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); color: transparent; }
.ag-er.add .box { border-style: dashed; color: var(--text-3); }
.ag-er.add .box .ic { font-size: 13px; }
.ag-er .input { flex: 1; min-width: 0; }
