/* JacotePOS agent pages: /agent (agent.html) and /agent/check (agent-check.html). Script: agent.js. */
.ag-earn{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem}
.ag-earn div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1rem}
.ag-earn b{display:block;font:800 1.5rem var(--display);color:var(--accent)}
.ag-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:1.4rem;display:grid;gap:.9rem;max-width:560px}
.ag-card label{display:grid;gap:.3rem;font-weight:700}
.ag-card input[type=text],.ag-card input[type=tel],.ag-card input[type=password]{font:inherit;padding:.7rem .8rem;border:2px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink)}
.ag-card .row label{display:flex;gap:.5rem;font-weight:500;align-items:flex-start}
.ag-err{color:var(--danger,#b42318);font-weight:700;min-height:1.2em}
.ag-link{font:600 .95rem ui-monospace,Consolas,monospace;word-break:break-all;background:var(--sunk);padding:.7rem;border-radius:10px}
.ag-pill{display:inline-block;padding:.2rem .8rem;border-radius:99px;font-weight:800}
.ag-waiting{background:#FFF1D6;color:#7A4B00}.ag-active{background:#E0F2ED;color:#13614F}.ag-stopped{background:#FDE2E1;color:#8A1C14}
.ag-never{background:#FFF1D6;color:#5A3800;border-radius:12px;padding:.8rem 1rem;font-weight:600}
.ag-terms{max-width:760px}.ag-terms li{margin:.35rem 0}
/* How it works: numbered steps */
.ag-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.8rem;counter-reset:s}
.ag-steps li{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1rem;counter-increment:s}
.ag-steps li::before{content:counter(s);display:inline-grid;place-items:center;width:2rem;height:2rem;border-radius:99px;background:var(--accent);color:#fff;font-weight:800;margin-bottom:.5rem}
.ag-steps b{display:block;margin-bottom:.2rem}
/* Folded sections (What you need, the terms, the agent's own tables) */
details.ag-fold{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:.2rem 1rem;max-width:760px}
details.ag-fold>summary{cursor:pointer;font-weight:800;padding:.8rem 0;list-style-position:outside}
details.ag-fold[open]>summary{border-bottom:1px solid var(--line);margin-bottom:.6rem}
details.ag-fold ul,details.ag-fold ol{margin:.4rem 0 .9rem}
.ag-sum{max-width:760px;margin:0 0 .8rem}.ag-sum li{margin:.25rem 0}
.ag-report{display:grid;gap:.5rem;margin-top:.6rem}
/* Small phones (320 px): the form boxes fit the card instead of their default width (28 Nov 2026). */
.ag-card,.ag-card label{min-width:0}.ag-card input[type=text],.ag-card input[type=tel],.ag-card input[type=password]{width:100%;min-width:0;box-sizing:border-box}
/* The agent's 4 documents (28 Nov 2026): one row each, name and state on the left, the upload button on the right. */
.ag-doc{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.7rem 0;border-top:1px solid var(--line)}.ag-doc>div{min-width:0}.ag-doc .btn{flex:none;cursor:pointer}
.ag-doc .ag-err{min-height:0;font-size:.9rem}
