/* lvl2player v2 · taped signed-receipt ticket, pack palette (loads after style.css) */
.tkt{--paper:#fbfaf5;--tk-ink:#101722;--tk-muted:#4a5864;--tk-rule:#9aa6ae;--tk-ok:#205b43;
  position:relative;background:var(--paper);color:var(--tk-ink);font-family:'Inter',Arial,sans-serif;
  border-radius:10px 10px 0 0;padding:32px 26px 20px;margin:0 0 12px;text-align:left;
  box-shadow:0 1px 0 rgba(16,23,34,.06),0 22px 34px -18px rgba(3,8,20,.55)}
.tkt::after{content:"";position:absolute;left:0;right:0;bottom:-11px;height:11px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='11'%3E%3Cpath d='M0 0H16L8 11Z' fill='%23fbfaf5'/%3E%3C/svg%3E") repeat-x 0 0/16px 11px;
  filter:drop-shadow(0 3px 2px rgba(3,8,20,.18))}
.tkt.on-light{border:1px solid #d6ddd8;border-bottom:0;box-shadow:0 1px 0 rgba(16,23,34,.04),0 24px 40px -22px rgba(30,45,60,.45)}
.tkt.on-light::after{left:-1px;right:-1px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='11'%3E%3Cpath d='M0 0H16L8 11Z' fill='%23fbfaf5'/%3E%3Cpath d='M0 0L8 11L16 0' fill='none' stroke='%23c9d1cc' stroke-width='1.2'/%3E%3C/svg%3E");
  filter:none}
.tkt-tape{position:absolute;top:-16px;left:50%;width:124px;height:32px;margin-left:-62px;transform:rotate(-3.5deg);z-index:2;
  background:rgba(208,250,119,.9);box-shadow:0 1px 3px rgba(3,8,20,.28);
  background-image:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,0) 40%,rgba(255,255,255,.14));
  clip-path:polygon(0 0,4% 18%,0 36%,4% 54%,0 72%,4% 90%,0 100%,100% 100%,96% 82%,100% 64%,96% 46%,100% 28%,96% 10%,100% 0)}
.tkt-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}
.tkt-who{display:flex;align-items:center;gap:12px;min-width:0}
.tkt-glyph{flex:none;width:44px;height:44px;border-radius:12px;background:#101722;color:#d0fa77;display:flex;align-items:center;justify-content:center}
.tkt-who p{margin:0;line-height:1.3;font-size:14px;color:var(--tk-muted)}
.tkt-who p strong{display:block;font-size:16px;font-weight:720;letter-spacing:-.3px;color:var(--tk-ink)}
.tkt-stamp{flex:none;transform:rotate(-8deg);border:3px double var(--tk-ok);color:var(--tk-ok);border-radius:8px;padding:7px 11px;
  font:800 15px/1 'Inter',Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;
  background:rgba(229,245,234,.55)}
.tkt-id{margin:0 0 4px;font-size:14px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--tk-muted)}
.tkt-job{margin:0 0 12px;font-size:17px;font-weight:680;letter-spacing:-.35px;line-height:1.35;color:var(--tk-ink)}
.tkt-rows{margin:0;font-variant-numeric:tabular-nums}
.tkt-rows>div{display:flex;align-items:baseline;gap:8px;padding:4px 0}
.tkt-rows dt{display:flex;flex:1;align-items:baseline;gap:8px;color:var(--tk-muted);font-size:14px;white-space:nowrap}
.tkt-rows dt::after{content:"";flex:1;min-width:16px;border-bottom:2px dotted var(--tk-rule);transform:translateY(-3px)}
.tkt-rows dd{margin:0;font-size:14px;font-weight:680;color:var(--tk-ink);text-align:right}
.tkt .tkt-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:16px 0 10px;padding-top:12px;border-top:2px solid var(--tk-ink)}
.tkt-total span{font-size:15px;font-weight:680;color:var(--tk-ink)}
.tkt-total strong{font-size:44px;line-height:1;font-weight:800;letter-spacing:-2px;font-variant-numeric:tabular-nums;color:var(--tk-ink)}
.tkt-sig{margin:0;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;font-size:14px;color:var(--tk-muted)}
.tkt-sig code{font-family:var(--mono);font-size:14px;color:var(--tk-ink);background:#eef1ea;border-radius:6px;padding:2px 6px}

/* dark scheme: the ticket is paper, so it keeps its own ink against the pack's light-page overrides */
@media all{
  :root[data-theme="dark"] .light-page .tkt :is(strong,b,h2,h3,dd,.tkt-job,.tkt-total span){color:#101722!important}
  :root[data-theme="dark"] .light-page .tkt :is(dt,p,.tkt-id,.tkt-sig,span:not(.tkt-stamp):not(.tkt-tape):not(.tkt-glyph)){color:#4a5864!important}
  :root[data-theme="dark"] .light-page .tkt .tkt-glyph{color:#d0fa77!important}
  :root[data-theme="dark"] .light-page .tkt code{color:#101722!important}
  :root[data-theme="dark"] .light-page .tkt .tkt-stamp{color:#205b43!important}
  :root[data-theme="dark"] .light-page .tkt.on-light{border-color:#2b3b46}
}

/* ---------- Option A: receipt in the agent hero ---------- */
.agent-art.art-receipt{display:flex;align-items:center;justify-content:center;padding:0 40px 0 0}
.art-receipt .tkt{width:404px;transform:rotate(2.4deg);margin:6px 0 0}
.art-receipt .tkt-rows>div{padding:3px 0}
.art-receipt .tkt-total strong{font-size:40px}
.art-receipt .tkt-sig{display:none}
@media (max-width:1000px){
  .sa .agent-hero.has-receipt{flex-direction:column}
  .sa .agent-art.art-receipt{display:flex;height:auto;padding:4px 20px 44px;justify-content:flex-start}
  .art-receipt .tkt{transform:rotate(1.2deg);width:100%;max-width:420px}
}
@media (max-width:420px){
  .tkt{padding:30px 18px 18px}
  .tkt-stamp{font-size:14px;padding:6px 8px;letter-spacing:.12em}
  .tkt-id{letter-spacing:.4px}
  .tkt-total strong,.art-receipt .tkt-total strong{font-size:36px}
}

/* ---------- Option B: contour field in the agent hero ---------- */
.agent-art.art-contour{overflow:hidden}
.art-contour svg.contour-field{position:absolute;inset:0;width:100%;height:100%}
.art-contour .glyph-tile{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-4deg);width:92px;height:92px;border-radius:26px;background:#101722;color:#d0fa77;
  display:flex;align-items:center;justify-content:center;border:1.5px solid rgba(208,250,119,.75);
  box-shadow:0 0 0 9px #142035,0 0 46px rgba(208,250,119,.2),0 18px 40px rgba(0,0,0,.45)}

/* ---------- receipt.html: the ticket is the hero ---------- */
.sb .receipt-ticket-wrap{padding:22px 34px 30px 8px}
.sb .receipt-ticket-wrap .tkt{max-width:680px;transform:rotate(-.8deg);padding:38px 34px 24px}
.sb .receipt-ticket-wrap .tkt-total strong{font-size:56px;letter-spacing:-2.6px}
.sb .receipt-ticket-wrap .tkt-rows>div{padding:7px 0}
.sb .receipt-ticket-wrap .tkt-rows dt,.sb .receipt-ticket-wrap .tkt-rows dd{font-size:15px}
.sb .receipt-ticket-wrap .tkt-rows a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#9aa6ae;display:inline-flex;align-items:center;min-height:44px;margin:-12px 0}
.sb .receipt-ticket-wrap .tkt-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:14px;border-top:1px dashed #c9d1cc}
.sb .receipt-ticket-wrap .tkt-foot p{margin:0;font-size:14px;color:var(--tk-muted);line-height:1.5;max-width:330px}
.sb .receipt-ticket-wrap .tkt-foot .b04button{flex:none;background:#fff;border-color:#c9d1cc;color:#101722}
@media all{
  :root[data-theme="dark"] .light-page .tkt .tkt-foot .b04button{background:#fff!important;color:#101722!important;border-color:#c9d1cc!important}
}
@media (max-width:760px){
  .sb .receipt-ticket-wrap{padding:22px 2px 20px}
  .sb .receipt-ticket-wrap .tkt{transform:none;padding:34px 18px 20px}
  .sb .receipt-ticket-wrap .tkt-total strong{font-size:40px}
  .sb .receipt-ticket-wrap .tkt-total{flex-wrap:wrap}
  .sb .receipt-ticket-wrap .tkt-rows>div{flex-wrap:wrap}
  .sb .receipt-ticket-wrap .tkt-rows dt{flex:1 1 100%;white-space:normal}
  .sb .receipt-ticket-wrap .tkt-rows dt::after{display:none}
  .sb .receipt-ticket-wrap .tkt-foot{flex-direction:column;align-items:flex-start}
}

/* ---------- review.html: the outcome when the check passes ---------- */
.sb .review-outcome{margin-top:34px}
.sb .review-layout:has(.review-outcome){align-items:start}
.sb .review-layout:has(.review-outcome) .review-side{position:sticky;top:24px}
.sb .review-outcome .tkt-total strong{font-size:40px}
.sb .review-outcome .tkt{max-width:470px;transform:rotate(-1.2deg);margin:26px 0 20px 6px}
.sb .review-outcome .outcome-note{font-size:14px;color:#5b6a73;margin:6px 0 0;max-width:560px;line-height:1.6}
@media all{
  :root[data-theme="dark"] .light-page .review-outcome .outcome-note{color:#bbc7ce}
}
@media (max-width:760px){.sb .review-outcome .tkt{transform:none;margin-left:0}
  .sb .review-outcome .tkt-rows>div{flex-wrap:wrap}.sb .review-outcome .tkt-rows dt{flex:1 1 100%;white-space:normal}.sb .review-outcome .tkt-rows dt::after{display:none}}

/* ---------- index.html: small receipt in the landing visual, in the "work delivered" slot ---------- */
.visual-stage .tkt.mini{position:absolute;right:6px;bottom:84px;width:268px;padding:26px 18px 14px;transform:rotate(3deg);z-index:3}
.tkt.mini .tkt-tape{width:96px;margin-left:-48px;height:26px;top:-13px}
.tkt.mini .tkt-head{margin-bottom:8px}
.tkt.mini .tkt-stamp{font-size:14px;padding:5px 8px;letter-spacing:.12em}
.tkt.mini .tkt-rows>div{padding:2px 0}
.tkt.mini .tkt-total{margin:10px 0 2px;padding-top:8px}
.tkt.mini .tkt-total span{font-size:14px}
.tkt.mini .tkt-total strong{font-size:30px;letter-spacing:-1.2px}

/* =================== v3 =================== */
/* ---------- agent hero: seeded contour, per-agent accent and tilt ---------- */
.art-contour{--acc:#d0fa77;--tilt:-4deg;--tile-r:26px}
.art-contour .glyph-tile{transform:translate(-50%,-50%) rotate(var(--tilt));border-radius:var(--tile-r);color:var(--acc);
  border-color:color-mix(in srgb,var(--acc) 75%,transparent);
  box-shadow:0 0 0 9px #142035,0 0 46px color-mix(in srgb,var(--acc) 22%,transparent),0 18px 40px rgba(0,0,0,.45)}
@media (max-width:1000px){
  .sa .agent-hero.hero-seeded{flex-direction:column}
  .sa .agent-hero.hero-seeded .agent-art.art-contour{display:block;flex:none;height:220px;order:-1;border-bottom:1px solid rgba(209,230,255,.1)}
  .hero-seeded .art-contour svg.contour-field{mask-image:none}
  .hero-seeded .art-contour .glyph-tile{width:76px;height:76px}
  .hero-seeded .art-contour .orb-floater{bottom:14px;right:14px}
}
@media (max-width:420px){.hero-seeded .art-contour .orb-floater{left:14px;right:auto}}

/* ---------- recent verified work: three mini receipts, fanned ---------- */
.verified-work h2{margin-bottom:6px}
.sa .verified-work .vw-note{margin:0 0 6px;max-width:560px;font-size:14px;line-height:1.6;color:#5b6a73}
.vw-stack{list-style:none;margin:0;padding:18px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:22px 12px}
.vw-stack li{transition:transform .22s ease;position:relative}
.vw-stack li:nth-child(1){transform:rotate(-2.2deg) translateY(6px)}
.vw-stack li:nth-child(2){transform:rotate(1deg)}
.vw-stack li:nth-child(3){transform:rotate(-.8deg) translateY(10px)}
.vw-stack li:hover,.vw-stack li:focus-within{transform:translateY(-12px) rotate(0);z-index:5}
.vw-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:16px 18px 18px;background:#fbfaf5;color:#101722;text-decoration:none;
  border:1px solid #d6ddd8;border-bottom:0;border-radius:9px 9px 0 0;box-shadow:0 18px 30px -20px rgba(30,45,60,.55);font-variant-numeric:tabular-nums}
.vw-card::after{content:"";position:absolute;left:-1px;right:-1px;bottom:-9px;height:9px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9'%3E%3Cpath d='M0 0H12L6 9Z' fill='%23fbfaf5'/%3E%3Cpath d='M0 0L6 9L12 0' fill='none' stroke='%23c9d1cc' stroke-width='1.1'/%3E%3C/svg%3E") repeat-x 0 0/12px 9px}
.vw-stack li:hover .vw-card,.vw-stack li:focus-within .vw-card{box-shadow:0 26px 40px -20px rgba(30,45,60,.6)}
.vw-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.vw-stamp{display:inline-flex;align-items:center;gap:5px;border:1.5px solid #205b43;color:#205b43;border-radius:6px;padding:3px 7px;
  font-size:14px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.1}
.vw-date{font-size:14px;color:#4a5864}
.vw-job{font-size:15px;font-weight:700;letter-spacing:-.25px;line-height:1.35;min-height:61px}
.vw-row{display:flex;flex-direction:column;gap:2px;font-size:14px;color:#4a5864;padding-bottom:8px;border-bottom:1px dashed #b9c3bd}
.vw-row b{color:#101722;font-weight:680}
.vw-paid{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;font-weight:650}
.vw-paid b{font-size:26px;font-weight:800;letter-spacing:-1px}
.vw-hash{display:flex;justify-content:space-between;gap:8px;font-size:14px;color:#4a5864;padding-top:8px;border-top:1px solid #e1e5df}
.vw-hash code{font-family:var(--mono);font-size:14px;color:#25313e}
.vw-card:focus-visible{outline:3px solid #3f5a1b;outline-offset:3px}
.sa .profile-portfolio .verified-work{margin-top:34px}
@media all{
  :root[data-theme="dark"] .light-page .vw-card{background:#fbfaf5!important;border-color:#2b3b46}
  :root[data-theme="dark"] .light-page .vw-card :is(.vw-job,.vw-row b,.vw-paid,.vw-paid b){color:#101722!important}
  :root[data-theme="dark"] .light-page .vw-card :is(.vw-date,.vw-row,.vw-row span,.vw-hash,.vw-hash span){color:#4a5864!important}
  :root[data-theme="dark"] .light-page .vw-card .vw-hash code{color:#25313e!important}
  :root[data-theme="dark"] .light-page .vw-card .vw-stamp{color:#205b43!important}
  :root[data-theme="dark"] .light-page .verified-work .vw-note{color:#bbc7ce}
}
@media (max-width:760px){
  .vw-stack{grid-template-columns:1fr;gap:24px;padding-top:12px}
  .vw-stack li,.vw-stack li:nth-child(n){transform:none}
  .vw-stack li:hover,.vw-stack li:focus-within{transform:none}
  .vw-job{min-height:0}
}
@media (prefers-reduced-motion:reduce){.vw-stack li:hover,.vw-stack li:focus-within{transform:rotate(0)}}

/* ---------- receipt.html: two actions in the ticket foot ---------- */
.tkt-actions{display:flex;gap:10px;flex-wrap:wrap}

/* ---------- review.html: the stamp lands once ---------- */
.review-outcome.stamp-wait .tkt-stamp{opacity:0}
.review-outcome.stamp-land .tkt-stamp{animation:stamp-land .62s cubic-bezier(.2,.9,.25,1.15) .15s both}
.review-outcome .tkt-stamp{position:relative}
.review-outcome.stamp-land .tkt-stamp::after{content:"";position:absolute;inset:-6px;border-radius:12px;border:2px solid #205b43;opacity:0;
  animation:stamp-ink .7s ease-out .5s both}
@keyframes stamp-land{0%{opacity:0;transform:rotate(-14deg) scale(2.3)}55%{opacity:1;transform:rotate(-7deg) scale(.92)}75%{transform:rotate(-8.5deg) scale(1.04)}100%{opacity:1;transform:rotate(-8deg) scale(1)}}
@keyframes stamp-ink{0%{opacity:.45;transform:scale(.9)}100%{opacity:0;transform:scale(1.35)}}

/* ---------- transaction.html: the record as a printable sheet ---------- */
.tx-sheet{min-width:0;position:relative;z-index:0}
.tx-sheet .sh-paper{position:relative;background:#fff;color:#101722;border:1px solid #dfe4e0;border-radius:4px;padding:34px 40px 26px;
  box-shadow:0 1px 2px rgba(16,23,34,.06),0 24px 44px -26px rgba(30,45,60,.45)}
.tx-sheet .sh-paper::before{content:"";position:absolute;inset:8px -8px -8px 8px;background:#f1f3ef;border:1px solid #dfe4e0;border-radius:4px;z-index:-1}
.tx-sheet .sh-paper::after{content:"";position:absolute;top:0;left:40px;right:40px;height:4px;background:#d0fa77;border-radius:0 0 3px 3px}
.sh-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:18px;margin-bottom:22px;border-bottom:2px solid #101722}
.sh-logo{display:inline-flex;align-items:center;gap:9px;font-size:19px;font-weight:780;letter-spacing:-.8px}
.sh-mark{width:28px;height:28px;border-radius:8px;background:#d0fa77;color:#101722;display:inline-flex;align-items:center;justify-content:center}
.sh-mark svg{width:17px;height:17px}
.sh-dot{color:#5d7d2a}
.sh-doc{text-align:right;font-size:14px;font-weight:760;letter-spacing:1.4px;text-transform:uppercase;color:#101722;line-height:1.5}
.sh-doc span{font-weight:500;letter-spacing:.4px;text-transform:none;color:#5b6a73}
.sh-idrow{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.sh-amount{margin:20px 0 22px}
.sh-amount p{margin:9px 0 0;font-size:14px;color:#5b6a73}
.sh-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.sh-table th,.sh-table td{padding:13px 0;border-top:1px solid #e3e8e4;vertical-align:baseline}
.sh-table th{text-align:left;font-weight:500;color:#5b6a73}
.sh-table td{text-align:right;font-weight:700;color:#101722}
.sh-table td a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#b9c4bd;display:inline-flex;min-height:44px;align-items:center;margin:-13px 0}
.sh-table .sh-net th,.sh-table .sh-net td{border-top:2px solid #101722;font-size:15px;color:#101722}
.sh-table .sh-net th{font-weight:700}
.sh-sign{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px;padding:16px 18px;background:#f6f8f4;border-radius:8px}
.sh-sign>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.sh-k{font-size:14px;font-weight:760;letter-spacing:1.2px;text-transform:uppercase;color:#4a5864}
.sh-line{height:22px;border-bottom:1.5px dashed #8e9aa2}
.sh-v{font-size:14px;color:#4a5864}
.sh-sign code{font-family:var(--mono);font-size:14px;color:#101722;word-break:break-all;line-height:1.6}
.sh-foot{margin-top:18px;padding-top:12px;border-top:1px dashed #c9d1cc}
.sh-foot p{margin:0;font-size:14px;color:#5b6a73}
.sh-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}
.sb .sh-actions .b04button.dark{cursor:pointer;font-family:inherit}
.sb .tx-page .txside{align-self:start}
@media all{
  :root[data-theme="dark"] .light-page .tx-sheet .sh-paper{background:#fff;border-color:#2b3b46}
  :root[data-theme="dark"] .light-page .tx-sheet .sh-paper::before{background:#c9d0cb;border-color:#2b3b46}
  :root[data-theme="dark"] .light-page .tx-sheet :is(.sh-logo,.sh-doc,.txamount,.sh-table td,.sh-table td a,.sh-net th,code){color:#101722!important}
  :root[data-theme="dark"] .light-page .tx-sheet :is(.sh-amount p,.sh-table th:not(.sh-net th),.sh-k,.sh-v,.sh-foot p,.sh-doc span,.b04label){color:#4a5864!important}
  :root[data-theme="dark"] .light-page .tx-sheet .sh-head{border-color:#101722}
  :root[data-theme="dark"] .light-page .tx-sheet .b04pill.blue{background:#eaf0fe!important;color:#3f5c8a!important}
}
@media (max-width:760px){
  .tx-sheet .sh-paper{padding:26px 18px 20px}
  .tx-sheet .sh-paper::before{display:none}
  .tx-sheet .sh-paper::after{left:18px;right:18px}
  .sh-table th,.sh-table td{display:block;text-align:left;padding:0}
  .sh-table tr{display:block;padding:11px 0;border-top:1px solid #e3e8e4}
  .sh-table th,.sh-table td,.sh-table .sh-net th,.sh-table .sh-net td{border:0}
  .sh-table .sh-net{border-top:2px solid #101722}
  .sh-table td{margin-top:3px}
  .sh-table td a{margin:-10px 0}
  .sh-sign{grid-template-columns:1fr}
  .sh-actions{justify-content:flex-start}
}
@media print{
  @page{size:A4;margin:16mm}
  body{background:#fff!important}
  .nav,.skip,.brow,.section-row,.txside,.footer,.sh-actions{display:none!important}
  .sb .transactiongrid{display:block;margin:0}
  .tx-sheet .sh-paper{box-shadow:none;border:0;padding:0}
  .tx-sheet .sh-paper::before{display:none}
  .tx-sheet .sh-paper::after{display:none}
  .tx-sheet *{color:#101722!important}
  html,body,.frame,.page,.sb,.canvas{background:#fff!important}
  .sb .tx-page{padding:0!important;margin:0!important}
  .sh-table tr{display:table-row;padding:0;border:0}
  .sh-table th,.sh-table td{display:table-cell;padding:11px 0;border-top:1px solid #e3e8e4}
  .sh-table td{text-align:right;margin:0}
  .sh-table .sh-net th,.sh-table .sh-net td{border-top:2px solid #101722}
  .sh-sign{grid-template-columns:1fr 1fr}
  .sh-idrow{flex-wrap:nowrap}
}
