:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203e45;background:#f3f6f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.wrap{max-width:1120px;padding:22px clamp(16px,4vw,42px) 28px;margin:auto}.header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:33px}.brand{display:flex;align-items:center;gap:10px}.brand .mark{border-radius:12px;background:#193d46;color:white;display:grid;place-items:center;height:42px;width:42px;font-size:25px}.brand>div:last-child{display:flex;flex-direction:column}.brand b{font-size:19px;letter-spacing:-.7px}.brand small{font-size:9px;letter-spacing:1.8px;color:#748583;font-weight:800}.environment{background:#f3e1d0;color:#a15c32;border:1px solid #e7c3a5;border-radius:100px;font-size:10px;font-weight:850;letter-spacing:.55px;padding:9px 11px;white-space:nowrap}.dot{display:inline-block;width:7px;height:7px;background:#c27d45;border-radius:50%;margin-right:4px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:2px;color:#ad754b}.intro{margin-bottom:20px}.intro h1{font-size:clamp(27px,4vw,43px);letter-spacing:-1.3px;line-height:1.1;margin:8px 0 12px}.intro p{font-size:14px;color:#71827f;line-height:1.65;max-width:720px;margin:0}.warning{border:1px solid #ecc7a6;border-radius:12px;background:#fff7ed;padding:13px 16px;color:#865227;font-size:12px;line-height:1.55;margin-bottom:20px}.layout{display:grid;grid-template-columns:1.06fr .94fr;gap:17px;align-items:start}.panel{background:#fff;border:1px solid #e0e9e5;border-radius:16px;padding:clamp(16px,2.3vw,25px);box-shadow:0 2px 12px #1b41400a}.panel h2{font-size:18px;margin:0 0 12px;letter-spacing:-.45px}.panel-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.panel-top h2{margin:0}.status,.verification{font-size:11px;font-weight:750;border-radius:50px;padding:7px 9px;background:#ebf2ef;color:#35695c;white-space:nowrap}.status.rejected{background:#fff1eb;color:#a74e36}.status.completed{background:#e7f5e8;color:#2c7657}label:not(.attest){font-size:12px;font-weight:750;display:block;margin:16px 0 7px}select,input:not([type=checkbox]),textarea{width:100%;border:1px solid #cedbd6;border-radius:9px;padding:12px;background:white;color:#25484c;min-height:46px;font-size:14px}textarea{resize:vertical}.summary{line-height:2;background:#f4f8f6;border-radius:10px;padding:13px;margin:17px 0;font-size:12px;color:#687d79}.summary b{float:right;color:#315f59}.primary,.secondary,.danger{border:1px solid transparent;border-radius:10px;padding:12px 16px;min-height:46px;font-size:13px;font-weight:800}.primary{background:#214c51;color:white}.primary:hover{background:#31636a}.secondary{background:#fff;border-color:#bdcdc6;color:#24524f}.danger{background:#fff3ee;border-color:#e9baa3;color:#9c4b32}.panel #start{width:100%}#reset{width:100%;margin-top:15px}.muted{font-size:12px;color:#708784;line-height:1.6}.invoice{display:flex;flex-direction:column;gap:5px;border:1px solid #cfe0d6;background:#f0f7f2;border-radius:13px;padding:17px}.invoice-label{font-size:9px;font-weight:900;letter-spacing:1.6px;color:#a16946}.invoice strong{font-size:17px}.invoice span{font-size:23px;color:#204a4e;font-weight:850}.invoice small{color:#6e8580}.section-caption{font-size:10px;letter-spacing:1.5px;font-weight:850;color:#748982;margin:21px 0 9px}.route{border-left:2px solid #dde8e1;margin-left:10px}.route-step{position:relative;padding:11px 8px 12px 23px;display:flex;flex-direction:column;gap:4px}.route-step:before{content:"";position:absolute;left:-7px;top:15px;width:12px;height:12px;background:white;border:2px solid #b4c9bc;border-radius:50%}.route-step.active:before{background:#d38a59;border-color:#d38a59}.route-step.done:before{background:#46936d;border-color:#46936d}.route-step strong{font-size:13px}.route-step small{font-size:11px;color:#84938b}.route-step.active strong{color:#ae633e}.hint{background:#eff6f2;color:#486a61;padding:12px;border-radius:10px;font-size:12px;line-height:1.5;margin-top:12px}.attest{margin:15px 0;display:flex;align-items:flex-start;gap:10px;background:#f6f8f5;padding:13px;border:1px solid #d9e4de;border-radius:9px;font-size:12px;line-height:1.5}.attest input{width:21px;height:21px;flex:none;accent-color:#2c6553}.decisions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.empty{border:1px dashed #ceded6;border-radius:12px;padding:30px;text-align:center;font-size:12px;color:#899b95}.done{background:#eef8f0;border:1px solid #cfe4d6;border-radius:11px;padding:16px;font-size:13px;line-height:1.65}.done.rejected{background:#fff2ef;border-color:#ecc8b7}.evidence{margin-top:18px}.events{display:grid;gap:9px}.event{display:grid;grid-template-columns:34px 1fr;gap:12px;background:#f8faf9;border-radius:10px;padding:12px}.event-number{height:28px;width:28px;background:#e6eee9;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#42635e;font-size:12px}.event strong{font-size:13px}.event small,.event code{display:block;font-size:10px;color:#78908a;overflow-wrap:anywhere;margin-top:5px}.event p{margin:6px 0 0;font-size:12px;color:#576f69}.verification.valid{background:#e6f5eb;color:#297251}#certificate{margin-top:17px;border-top:1px solid #e1ebe5;padding-top:16px}#certificate small{display:block;font-size:10px;color:#80958f;margin-top:9px}footer{margin-top:23px;text-align:center;font-size:10px;color:#83948c}#flash{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:min(95vw,500px);background:#8f3f2f;color:white;padding:12px 18px;border-radius:10px;font-size:13px;box-shadow:0 6px 25px #1113;z-index:10}@media(max-width:780px){.layout{grid-template-columns:1fr}.header{margin-bottom:22px}.environment{font-size:9px}.panel{border-radius:12px}.intro h1{font-size:28px}}@media(max-width:430px){.wrap{padding:14px 12px 34px}.intro p{font-size:13px}.environment{padding:8px;font-size:8px}.brand b{font-size:17px}.brand small{font-size:8px}}
/* Signature box - finger/stylus drawing or a typed simulated signature. */
.signature-widget{border:1px solid #abc7bb;border-radius:13px;background:#fff;overflow:hidden;margin:16px 0 13px;box-shadow:0 2px 0 #d8e8df}
.sig-heading{display:flex;align-items:center;justify-content:space-between;background:#edf5f0;border-bottom:1px solid #d5e5da;padding:9px 12px;gap:8px}
.sig-heading-text{font-size:10px;font-weight:850;letter-spacing:1px;color:#315b53}
.sig-heading-text small{font-size:9px;color:#ae744e;letter-spacing:0}
.sig-toggle{display:flex;gap:2px;background:#dce9e1;border-radius:8px;padding:3px}
.sig-toggle button{border:0;border-radius:6px;background:transparent;padding:6px 13px;font-size:11px;font-weight:800;color:#647d72}
.sig-toggle button.active{background:#fff;color:#225c53;box-shadow:0 1px 4px #223b3320}
.sig-draw{position:relative;min-height:112px}
.sig-canvas{width:100%;height:112px;display:block;background:transparent;cursor:crosshair;touch-action:none;user-select:none}
.sig-canvas-prompt{pointer-events:none;position:absolute;left:0;right:0;top:42px;text-align:center;color:#9caea7;font-family:cursive;font-size:17px;font-style:italic}
.signature-widget.has-strokes .sig-canvas-prompt{display:none}
.sig-draw:after{content:"";pointer-events:none;position:absolute;left:18px;right:18px;bottom:12px;border-bottom:1px solid #d1ddd5}
.sig-type{padding:12px 14px 0;min-height:112px}
.sig-type .sig-type-input{font-size:12px;min-height:36px;padding:7px 10px}
.sig-type-preview{font:italic 30px "Brush Script MT","Segoe Script","Apple Chancery",cursive;color:#225664;min-height:55px;padding:10px 9px 5px;overflow-wrap:anywhere}
.sig-footer{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border-top:1px solid #e7eee9;gap:12px}
.sig-footer span{font-size:9px;color:#799088;line-height:1.5}
.sig-clear{border:0;background:transparent;font-size:11px;font-weight:850;color:#bd7047;min-height:34px;padding:5px 9px}
.signature-widget [hidden]{display:none!important}
.sig-event-mark{margin:8px 0 2px;padding:4px 8px;background:#fff;border:1px solid #d8e4dc;border-radius:7px;max-width:280px;overflow:hidden}
.sig-history-type{font:italic 25px "Brush Script MT","Segoe Script","Apple Chancery",cursive;color:#225664;line-height:1.5}
.sig-history-draw{height:50px;width:190px;max-width:100%;color:#225664}
@media(max-width:430px){.sig-heading{padding:8px}.sig-toggle button{padding:6px 11px}.sig-heading-text{letter-spacing:.5px}}

/* Limit scroll suppression to the actual draw surface, not the whole page.
   iOS Safari honours touch-action on the parent and non-passive touchmove
   handlers while a stroke is active. */
.sig-draw,.sig-canvas{
  touch-action:none!important;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  overscroll-behavior:contain;
}
.sig-draw{overflow:hidden}

/* A signature is a set of independent pen strokes, not one continuous path.
   Give longer signatures room; normal page scrolling remains available outside. */
.sig-draw{min-height:180px}
.sig-canvas{height:180px}
.sig-canvas-prompt{top:78px}
.sig-history-draw{height:67px}
@media(max-width:430px){
  .sig-draw{min-height:180px}
  .sig-canvas{height:180px}
  .sig-canvas-prompt{top:77px}
}

.sig-footer-actions{display:flex;gap:8px;align-items:center}
.sig-footer-actions button{border:0;background:transparent;font-size:11px;font-weight:800;min-height:34px;padding:5px 8px}
.sig-footer-actions .sig-undo{color:#29685c}
.sig-footer-actions .sig-clear{color:#ad633e}
@media(max-width:430px){
  .sig-footer{gap:4px;padding:7px 8px}
  .sig-footer span{max-width:44%}
  .sig-footer-actions{gap:0}
  .sig-footer-actions button{font-size:10px;padding:5px 6px}
}


/* Compact timelines: readable at a glance on narrow phones, full evidence on demand. */
.section-caption{margin:16px 0 7px}
.route{margin-left:10px;padding-left:10px;border-left:2px solid #dce9e1}
.route-step{min-height:49px;margin:0 0 3px;padding:7px 9px 7px 13px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:9px;border:1px solid transparent;border-radius:9px}
.route-step:before{left:-17px;top:50%;transform:translateY(-50%);width:11px;height:11px}
.route-step.active{background:#f9f0e8;border-color:#f0d9c7}
.route-step.done{background:#edf6ef;border-color:#e2efe6}
.route-copy{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.route-copy strong{font-size:12px;line-height:1.3}
.route-copy small{font-size:10px;line-height:1.35;color:#788e86}
.route-state{display:inline-block;flex:none;padding:5px 8px;font-size:10px;font-weight:800;border-radius:99px;background:#edf0ed;color:#76867d;white-space:nowrap}
.route-step.active .route-state{background:#f4ddc8;color:#9b5e38}
.route-step.done .route-state{background:#d9eee1;color:#347052}
.ap-step .route-copy small{color:#936d59}
.evidence>.panel-top{margin-bottom:8px}
.evidence>.muted{margin:5px 0 12px}
.events{position:relative;display:flex;flex-direction:column;gap:0;padding:0 0 0 3px}
.events:before{content:"";position:absolute;left:16px;top:12px;bottom:12px;width:2px;background:#deebe3}
.event{position:relative;display:grid;grid-template-columns:27px minmax(0,1fr);gap:10px;align-items:start;background:transparent;border-radius:0;padding:10px 0;box-shadow:none}
.event:not(:last-child){border-bottom:1px solid #e9f0ec}
.event-number{position:relative;z-index:1;width:27px;height:27px;font-size:10px;border:2px solid #fff;background:#e6f3ea;color:#2e7052}
.process-event .event-number{background:#f8e5d4;color:#965e3e;font-size:9px}
.event-body{min-width:0}
.event-compact{display:flex;gap:10px;align-items:center;justify-content:space-between;min-width:0}
.event-primary{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.event-primary strong{font-size:12px;line-height:1.3;letter-spacing:-.1px;color:#234e4b}
.event-actor{font-size:11px;color:#5d7770;line-height:1.3}
.event-primary time{font-size:10px;color:#8c9e97}
.event-mini{width:86px;height:40px;display:grid;place-items:center;flex:none;overflow:hidden;padding:3px 6px;border:1px solid #e0e9e4;border-radius:8px;background:#fafcfb}
.event-mini .sig-history-type{font-size:14px;line-height:1.2;overflow:hidden;white-space:nowrap;max-width:100%}
.event-mini .sig-history-draw{height:33px;width:73px;max-width:100%}
.event-process-label{flex:none;background:#f7e9df;border-radius:99px;color:#93623e;font-size:9px;font-weight:800;padding:4px 7px}
.event-proof{margin-top:4px}
.event-proof summary{cursor:pointer;display:list-item;margin-left:15px;padding:3px 0;font-size:10px;font-weight:750;color:#3e796d}
.event-proof[open]{padding-bottom:6px}
.event-proof .event-note{font-size:11px;line-height:1.45;color:#566d66;margin:8px 0}
.event-proof code{display:block;margin:8px 0 0;padding:9px;background:#f1f6f3;border-radius:7px;color:#4a665f;font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;word-break:break-word}
.event-proof .sig-event-mark{margin:8px 0 4px;max-width:275px}
.event-proof .sig-history-type{font-size:22px}
.event-proof .sig-history-draw{height:55px}
@media(max-width:430px){
 .route-step{padding:7px 7px 7px 12px}
 .route-state{padding:4px 7px}
 .event{gap:8px;padding:9px 0}
 .event-compact{gap:7px}
 .event-mini{width:74px;height:36px}
 .event-mini .sig-history-draw{width:60px;height:29px}
 .event-mini .sig-history-type{font-size:12px}
 .event-primary strong{font-size:11.5px}
 .event-actor{font-size:10.5px}
}

.route-step.returned{background:#fff2eb;border-color:#f2d4c1}
.route-step.returned:before{background:#cc7755;border-color:#cc7755}
.route-step.returned .route-state{background:#f9dccb;color:#98583f}
.process-event:has(.event-process-label) .event-body{min-width:0}

/* Tighter product header and stage bar: one clear mobile row. */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  gap:12px;
  margin:0 0 22px;
  padding:0 0 13px;
  border-bottom:1px solid #dce6df;
}
.header .brand{flex:1;min-width:0;gap:9px}
.header .brand .mark{flex:none;width:35px;height:35px;border-radius:10px;font-size:20px}
.header .brand-copy{display:flex;flex-direction:column;gap:1px;min-width:0}
.header .brand b{font-size:16px;line-height:1.2;letter-spacing:-.4px}
.header .brand small{font-size:10px;line-height:1.2;letter-spacing:.2px;text-transform:none;color:#78908a;font-weight:650}
.header .environment{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:30px;padding:7px 10px;font-size:9px;letter-spacing:.25px;font-weight:850;line-height:1.1}
.header .environment .dot{flex:none;width:7px;height:7px;margin:0}
.intro{margin-bottom:15px}
.intro .eyebrow{font-size:9px;letter-spacing:1.25px}
.intro h1{margin:6px 0 8px}
.panel-top{min-width:0;gap:8px}
.panel-top h2{min-width:0}
.panel-top .status{display:inline-flex;align-items:center;justify-content:center;max-width:66%;min-height:27px;padding:5px 9px;font-size:10px;line-height:1.3;text-align:center;white-space:normal}
@media(max-width:430px){
  .header{gap:7px;padding:2px 0 11px;margin-bottom:17px}
  .header .brand .mark{width:32px;height:32px;border-radius:9px;font-size:19px}
  .header .brand{gap:7px}
  .header .brand b{font-size:15px}
  .header .brand small{font-size:9px}
  .header .environment{font-size:8px;min-height:28px;padding:6px 8px;gap:4px}
  .intro h1{font-size:27px}
}
