/* portal_task_detail.html — extracted page CSS (Session 18, Phase A) */

/* --- block 1 of 1 --- */
:root{--bg:#f3f4f6;--card:#fff;--text:#1f2937;--muted:#6b7280;--border:#e5e7eb;--blue:#1e40af;--bluebg:#eff6ff;--good:#15803d;--goodbg:#dcfce7;--warn:#b45309;--warnbg:#fef3c7;--low:#b91c1c;--lowbg:#fee2e2}
*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--text);font-size:16px;line-height:1.5;padding:1rem 1rem 4rem}
.skip{position:absolute;left:-9999px;top:0;background:#fff;padding:.5rem 1rem;z-index:100}.skip:focus{left:0}

.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-wrap:wrap;gap:.5rem}
.topbar a{color:var(--blue);font-weight:600;text-decoration:none;padding:.5rem .6rem;border-radius:4px}
.topbar a:focus{outline:3px solid var(--blue);outline-offset:2px}
.headline{background:var(--card);border-radius:12px;padding:1.2rem 1.4rem;border-left:8px solid var(--blue);box-shadow:0 2px 6px rgba(0,0,0,.06);margin-bottom:1rem}
.headline h1{font-size:1.2rem;margin:0 0 .25rem;color:var(--blue)}
.headline p{margin:0;color:var(--muted);font-size:.9rem}

/* --- checkout stepper --- */
.stepper{background:var(--card);border-radius:12px;padding:1rem 1.2rem;box-shadow:0 1px 3px rgba(0,0,0,.05);margin-bottom:.6rem}
.stepper ol{display:flex;justify-content:space-between;list-style:none;margin:0;padding:0;gap:.4rem;align-items:center}
.stepper li{display:flex;flex-direction:column;align-items:center;flex:1;text-align:center;position:relative;color:var(--muted);font-size:.82rem}
.stepper .bubble{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background:#e5e7eb;color:var(--muted);margin-bottom:.35rem;border:2px solid #e5e7eb}
.stepper li.done .bubble{background:var(--good);color:#fff;border-color:var(--good)}
.stepper li.done{color:var(--good)}
.stepper li.active .bubble{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 0 0 3px var(--bluebg)}
.stepper li.active{color:var(--blue);font-weight:700}
.stepper li .lbl{font-size:.78rem;line-height:1.15}
.stepper li:not(:last-child)::after{content:"";position:absolute;top:16px;left:calc(50% + 22px);width:calc(100% - 44px);height:2px;background:#e5e7eb}
.stepper li.done:not(:last-child)::after{background:var(--good)}

.progress-wrap{background:#e5e7eb;border-radius:8px;height:12px;margin:0 0 1.2rem;overflow:hidden}
.progress-wrap .bar{background:var(--blue);height:100%;transition:width .3s ease}
.progress-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:.82rem;margin:0 0 1rem}

/* --- step cards --- */
.step{background:var(--card);border-radius:10px;padding:1.1rem 1.2rem;margin-bottom:.75rem;box-shadow:0 1px 3px rgba(0,0,0,.05);border-left:6px solid var(--border);display:none}
.step.visible{display:block}
.step.active{border-left-color:var(--blue)}
.step h2{margin:0 0 .4rem;color:var(--blue);font-size:1.05rem}
.step h2 .n{display:inline-block;background:var(--bluebg);color:var(--blue);border-radius:50%;width:24px;height:24px;text-align:center;line-height:24px;font-size:.85rem;margin-right:.4rem;font-weight:700}
.step p{margin:0 0 .7rem}
.step .hint{color:var(--muted);font-size:.9rem}

/* --- buttons --- */
.btn-row{display:flex;justify-content:space-between;gap:.6rem;margin-top:1rem}
button,.btn{min-height:44px;padding:.65rem 1.15rem;border:none;border-radius:8px;font-weight:700;font-size:.95rem;cursor:pointer;font-family:inherit;background:var(--blue);color:#fff}
button:hover,.btn:hover{background:#1e3a8a}
button:focus,.btn:focus{outline:3px solid var(--blue);outline-offset:2px}
button.alt{background:var(--card);color:var(--blue);border:1px solid var(--border)}
button.alt:hover{background:var(--bluebg)}
button[disabled],button[disabled]:hover{background:#e5e7eb;color:var(--muted);cursor:not-allowed}

textarea{width:100%;min-height:220px;padding:.7rem;border:1px solid var(--border);border-radius:8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9rem;box-sizing:border-box}
textarea:focus{outline:3px solid var(--blue);outline-offset:2px}

pre.prompt{background:#0b1220;color:#e5e7eb;padding:.9rem;border-radius:8px;overflow:auto;max-height:300px;font-size:.84rem;line-height:1.35;white-space:pre-wrap;word-break:break-word}

.success{background:var(--goodbg);color:var(--good);border-left:6px solid var(--good);padding:.85rem 1rem;border-radius:10px;margin-bottom:1rem}
.err{background:var(--lowbg);color:var(--low);border-left:6px solid var(--low);padding:.85rem 1rem;border-radius:10px;margin-bottom:1rem}

.done-card{background:var(--goodbg);color:var(--good);border-radius:12px;padding:1.6rem 1.4rem;text-align:center}
.done-card h2{margin:0 0 .5rem;font-size:1.2rem}
.done-card p{margin:.3rem 0 1rem}
.done-card a{color:var(--good);font-weight:700;text-decoration:underline}

@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.pause-btn{background:#fff;color:#1e40af;border:2px solid #1e40af;border-radius:8px;padding:.6rem 1rem;font-weight:700;font-size:.95rem;min-height:44px;cursor:pointer}
.pause-btn:focus{outline:3px solid #1f2937;outline-offset:2px}
