/* Task forms extend the shared ZestyTS stylesheet; no duplicate site theme. */
.task-page { --ink: var(--text); --link: #c8b5ff; min-width: 280px; }
.task-page h1, .task-page h2, .task-page h3, .task-page p { margin: 0; }
.task-page h1, .task-page h2, .task-page h3 { line-height: 1.15; font-weight: 800; }
.task-page p + p { margin-top: 1rem; }
.task-page .shell { width: min(900px, calc(100% - 40px)); margin-inline: auto; }
.task-shell { max-width: 800px; padding-block: 48px 64px; }
.task-header { margin-bottom: 28px; }
.task-header h1 { margin-block: 12px 16px; font-size: clamp(34px, 6vw, 48px); overflow-wrap: anywhere; }
.task-intro { max-width: 42rem; color: var(--muted); font-size: 18px; }
.task-file-entry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.task-file-entry h2 { font-size: 18px; }
.task-file-entry .hint { margin-top: 4px; }
#file-replace h2 { font-size: 22px; }
#file-replace p { margin-top: 10px; }
#file-replace .actions { gap: 10px 16px; margin-top: 16px; }
.task-card { padding: 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; margin-bottom: 24px; min-width: 0; }
.task-card h2 { font-size: clamp(26px, 5vw, 34px); overflow-wrap: anywhere; }
.task-card > .hint { margin-top: .6rem; }
.task-card .eyebrow { margin-bottom: .7rem; }
.field { display: grid; gap: .5rem; margin-bottom: 20px; min-width: 0; }
.field label { font-weight: 700; }
.optional, .hint { font-size: 15px; color: var(--muted); font-weight: 400; }
.hint a, .task-part a, .details-content a { color: var(--link); }
.hint a:hover, .task-part a:hover, .details-content a:hover { color: var(--gold); }
input, textarea, button, select { font: inherit; }
input:not([type="checkbox"]), textarea, select { width: 100%; min-height: 48px; min-width: 0; padding: 12px 14px; color: var(--ink); background: var(--page); border: 1px solid #687187; border-radius: 6px; }
input:not([type="checkbox"]), textarea { appearance: none; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:disabled, select:disabled, button:disabled { opacity: .55; cursor: not-allowed; }
input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--purple); }
button { cursor: pointer; }
.task-page .button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; background: var(--purple-dark); color: #fff; font-weight: 800; text-decoration: none; }
.task-page .button:hover { background: #55329e; color: #fff; }
.secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 18px; background: var(--surface-strong); color: var(--ink); border: 1px solid #687187; border-radius: 6px; font-weight: 700; text-decoration: none; }
.secondary-button:hover { border-color: var(--gold); color: var(--gold); }
select.secondary-button { display: block; padding-inline: 12px; text-align: left; font-size: 16px; }
.text-button, .text-link { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; color: var(--link); border: 0; background: transparent; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover, .text-link:hover { color: var(--gold); }
.short-field { max-width: 18rem; }
.check-field { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 1rem; }
.task-details { margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.task-details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; line-height: 1.5; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--gold); font-size: 22px; font-weight: 400; line-height: 1.2; }
details[open] summary::after { content: "−"; }
.task-details .details-content { padding-bottom: 1rem; }
.details-content p + p { margin-top: .7rem; }
.task-part { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.task-part h3 { margin-bottom: .5rem; font-size: 17px; }
.task-part p, .task-part li { white-space: pre-wrap; overflow-wrap: anywhere; }
.task-part ol { margin: 0; padding-left: 1.5rem; }
.task-part li + li { margin-top: .5rem; }
#branch-list { list-style: none; padding: 0; margin-top: 16px; }
#branch-list > li { padding: 16px 0 16px 14px; border-left: 2px solid var(--purple); border-bottom: 1px solid var(--line); }
#branch-list > li:last-child { border-bottom: 0; }
#branch-list > li > .hint { margin-top: 4px; }
#branch-list .task-details { margin-top: 10px; margin-bottom: 0; }
#branch-list .task-details p { padding-bottom: 14px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; }
.task-card .actions { gap: 10px 16px; margin-top: 24px; }
.action-hint { margin-top: 1rem; }
.date-time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
#calendar-form > .hint { margin-bottom: 1rem; }
#calendar-options .task-details { margin-top: 1rem; margin-bottom: 0; }
#copy-fallback { margin-top: 24px; margin-bottom: 0; }
.task-bottom { padding-inline: 2px; }
.task-bottom > .hint { max-width: 43rem; }
.task-bottom button { margin-top: .8rem; }
.task-alert { padding: 14px 16px; margin-bottom: 24px; background: var(--surface-strong); border: 1px solid var(--teal); border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .task-shell { padding-block: 28px 44px; }
  .task-header { margin-bottom: 22px; }
  .task-card { padding: 20px; }
  .task-intro { font-size: 17px; }
}
@media (max-width: 400px) {
  .task-page .shell { width: calc(100% - 28px); }
  .task-card { padding: 16px; }
  .date-time-fields { grid-template-columns: 1fr; gap: 0; }
  .task-card .actions { align-items: stretch; }
  .task-card .actions > .button, .task-card .actions > .secondary-button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-contrast: more) { .task-page { --muted: var(--ink); --line: #8e95a6; } input:not([type="checkbox"]), textarea, select, .secondary-button { border-color: #8e95a6; } }
