/* Wallet-specific layout. Shared accordion and phone shell live in guides.css. */
.wallet-guide .wallet-outcome{margin:36px 0 40px}
.wallet-guide .wallet-journey{list-style:none;padding:0;display:grid;grid-template-columns:120px repeat(2,minmax(0,220px));gap:42px;align-items:end;justify-content:center;margin:0}
.wallet-guide .wallet-journey>li{margin:0;padding:0;min-width:0;position:relative}
.wallet-guide .wallet-journey>li:not(:last-child):after{content:'→';position:absolute;right:-29px;top:44%;color:var(--muted)}
.wallet-guide .wallet-journey p{margin:18px 0 0;min-height:48px}
.wallet-guide .wallet-journey p span{color:var(--muted);display:block;margin-bottom:5px}
.wallet-app-visual{height:490px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.wallet-app-visual svg{width:90px;max-width:80%;height:auto}

.wallet-guide .wallet-stack-context{position:absolute;left:3%;top:75%;width:94%;height:7%;border-radius:8px;box-shadow:0 0 0 1000px rgb(249 248 243 / 65%);pointer-events:none;z-index:1}
.wallet-guide .guide-start{display:grid;grid-template-columns:1fr 1fr;gap:12px 44px}
.wallet-guide .guide-start h2{grid-column:1/-1}
.wallet-guide .guide-start .tool-list{margin:0}
.wallet-guide .guide-start .wallet-cost{margin:0;max-width:48ch}
.wallet-stage-body{padding:0 8px 20px}
.wallet-guide .wallet-action{max-width:62ch;margin:0 0 28px}
.wallet-guide .action-number{display:block;color:var(--muted);margin-bottom:8px;}
.wallet-guide .wallet-action p{margin:5px 0 0 30px}

.wallet-guide .wallet-prep{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:48px;align-items:start}
.wallet-guide .artwork-preview{margin:0;width:180px}
.wallet-guide .artwork-preview img{display:block;width:100%;height:auto;border-radius:8px}
.wallet-guide .action-details{margin:8px 0 0 30px;padding-left:18px}
.wallet-guide .action-details li{margin:0 0 8px;padding:0}
.wallet-guide .action-details ul{margin:10px 0 0;padding-left:20px}
.wallet-guide .group-title{margin:28px 0 20px}
.wallet-guide .wallet-screens{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 40px;margin-bottom:40px;align-items:start}
.wallet-guide .wallet-screens figure,.wallet-guide .generate-step figure{margin:0;min-width:0}
.wallet-guide .editor-screen{border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px;box-sizing:border-box}
.wallet-guide .editor-content{position:relative;width:100%}
.wallet-guide .editor-screen img{width:100%;height:auto;display:block}
.wallet-guide .editor-highlight{position:absolute;border:0;border-radius:3px 5px 4px 2px;box-sizing:border-box;pointer-events:none}
.wallet-guide .field-screens .editor-screen{min-height:196px;display:flex;align-items:center}
.wallet-guide .wallet-screens figcaption,.wallet-guide .generate-step figcaption{margin-top:18px;color:var(--ink);}
.wallet-guide .wallet-screens .wallet-action,.wallet-guide .generate-step .wallet-action{margin:0}
.wallet-guide .wallet-phone-figure{width:min(100%,250px);justify-self:center}
.wallet-guide .style-screens{grid-template-columns:1fr 1fr}
.wallet-guide .install-screens{max-width:760px;margin-inline:auto;gap:48px}
.wallet-guide .generate-step{max-width:360px;margin:0 0 40px}
.wallet-guide .generate-crop{overflow:hidden}
.wallet-guide .generate-crop .editor-content{aspect-ratio:491/180;overflow:hidden}
.wallet-guide .generate-crop img{position:absolute;bottom:0;left:0;width:100%;height:auto}
.wallet-guide .generate-crop .editor-highlight{left:34.6232%!important;top:62.7778%!important;width:24.4399%!important;height:26.6667%!important}
.wallet-guide .wallet-test{border-top:1px solid var(--line);padding-top:28px;margin-top:12px}
.wallet-guide .wallet-finish{max-width:650px;margin-top:42px}
.wallet-guide .wallet-finish h2{margin:0 0 14px}
.wallet-guide .wallet-finish p{margin:0}
@media(max-width:650px){
 .wallet-guide .wallet-journey{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 26px;max-width:430px;margin:auto}
 .wallet-guide .wallet-journey>li:first-child{grid-column:1/-1;display:flex;align-items:center;gap:16px}
 .wallet-app-visual{height:auto;display:block}
 .wallet-app-visual svg{width:52px;max-width:none;display:block}
 .wallet-app-visual>span{display:none}
 .wallet-guide .wallet-journey>li:first-child p{margin:0;min-height:0}
 .wallet-guide .wallet-journey>li:after{display:none}
 .wallet-guide .wallet-journey p{margin-top:12px}
 .wallet-guide .wallet-outcome{margin:28px 0}
 .wallet-guide .guide-start{display:block}
 .wallet-guide .guide-start .wallet-cost{margin-top:20px}
 .wallet-guide .wallet-prep,.wallet-guide .wallet-screens{grid-template-columns:1fr;gap:32px}
 .wallet-guide .artwork-preview{width:160px;margin:0 auto 12px}
 .wallet-stage-body{padding-inline:4px}
 .wallet-guide .field-screens .editor-screen{min-height:0}
 .wallet-guide .wallet-phone-figure{width:250px;max-width:90%}
 .wallet-guide .install-screens{max-width:340px}
 .wallet-guide .iphone17-frame{border-radius:28px;padding:5px}
 .wallet-guide .iphone17-frame .recorded-phone{border-radius:21px}
}
.wallet-guide .generate-step{max-width:760px;margin-inline:auto}
.wallet-guide .generate-step figure{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.wallet-guide .generate-step figcaption{margin:0}
@media(max-width:650px){.wallet-guide .generate-step{max-width:340px}.wallet-guide .generate-step figure{grid-template-columns:1fr;gap:18px}}
/* Same stage and action rhythm as the Shortcuts guide; desktop UI needs wider screenshots. */
.wallet-guide .wallet-journey{align-items:center}
.wallet-guide .wallet-journey>li:not(:last-child):after{top:50%;transform:translateY(-50%);}
.wallet-app-visual{height:auto}
.wallet-guide .guide-start{display:block}
.wallet-guide .guide-start h2{margin-bottom:16px}
.wallet-guide .tool-list{max-width:680px}
.wallet-guide .tool-list li{margin:0 0 10px}
.wallet-guide .tool-list li>span{margin-top:4px;}
.wallet-guide .wallet-sequence{max-width:800px;gap:40px;align-items:start}
.wallet-guide .wallet-sequence figure{width:min(100%,352px);margin:0;justify-self:center}
.wallet-guide .wallet-sequence figure:after{display:none!important}
.wallet-guide .wallet-sequence .wallet-action{margin:0}
.wallet-guide .wallet-sequence .action-number{margin-bottom:8px}
.wallet-guide .wallet-sequence figcaption{margin-top:16px;color:var(--ink)}
.wallet-guide .wallet-sequence .editor-screen{padding:8px;border:0;border-radius:8px}
.wallet-guide .wallet-sequence .wallet-phone-figure{width:min(100%,260px)}
.wallet-guide .wallet-sequence .wallet-action p,.wallet-guide .wallet-sequence .action-details{margin-left:0}
.wallet-guide .wallet-sequence .action-details{padding-left:20px}
.wallet-guide .wallet-sequence .action-details li{margin-bottom:6px}

@media(max-width:650px){.wallet-guide .wallet-journey>li:first-child{justify-content:center}.wallet-guide .wallet-journey>li:first-child:after{display:block;content:'↓';position:static;transform:none;margin-left:12px}.wallet-guide .wallet-sequence{grid-template-columns:1fr}.wallet-guide .wallet-sequence figure{width:min(100%,352px)}}
/* Group each illustration with its own numbered action. */
.wallet-guide .wallet-prep{display:block}
.wallet-guide .wallet-prep .wallet-action{max-width:none}
.wallet-guide .artwork-preview{width:180px;margin:20px 0 0 30px}
.wallet-guide .wallet-sequence>figure>.action-number{margin:0 0 12px}
.wallet-guide .wallet-sequence .editor-screen{padding:14px;border:1px solid #d7dbd4;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgb(38 58 46 / 6%)}
.wallet-guide .wallet-sequence .editor-content>img:first-child{border-radius:5px}
.wallet-guide #create>.wallet-stage-body>.wallet-action{margin-bottom:44px}
.wallet-guide .wallet-journey{grid-template-columns:100px 24px 220px 24px 220px;gap:18px;align-items:center}
.wallet-guide .wallet-journey>li:after{display:none!important}
.wallet-guide .wallet-journey>.journey-arrow{display:flex;align-items:center;justify-content:center}
.journey-arrow svg{display:block;width:24px;height:24px;fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wallet-guide .ada-qr{position:absolute;display:block;height:auto!important;border-radius:0!important}
.wallet-guide .ada-expanded .ada-qr{left:31%;top:35.2%;width:38%!important}
.wallet-guide .ada-editor .ada-qr{left:32.8%;top:54.8%;width:28.3%!important}
@media(max-width:650px){
 .wallet-guide .wallet-journey{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:18px 8px}
 .wallet-guide .wallet-journey>li:first-child{grid-column:1/-1}
 .wallet-guide .wallet-journey>.journey-arrow:nth-child(2){display:none}
 .wallet-guide .wallet-journey>li:nth-child(3){grid-column:1}
 .wallet-guide .wallet-journey>li:nth-child(4){grid-column:2}
 .wallet-guide .wallet-journey>li:nth-child(5){grid-column:3}
 .wallet-guide .artwork-preview{margin-left:30px}
}
.wallet-guide .iphone17-frame .recorded-phone>img.ada-qr{position:absolute;z-index:2;height:auto;object-fit:fill}
/* Clear hierarchy and one shared text grid. */
.wallet-guide header{width:100%;max-width:680px}
.wallet-guide header h1,.wallet-guide header .guide-lead{width:100%;max-width:none}
.wallet-guide .guide-masthead .botanical-divider{width:320px;max-width:46%;aspect-ratio:3/1;height:auto;margin:0;flex-shrink:0}
.wallet-guide .guide-start h2{margin:0 0 24px}
.wallet-guide .workflow-heading{position:relative;display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px 20px;margin:0 0 26px}
.wallet-guide .workflow-eyebrow{grid-column:1/-1;color:var(--muted);margin:0}
.wallet-guide .workflow-heading h2{margin:0}
.wallet-guide .workflow-count{color:var(--muted);padding-bottom:4px}
.wallet-guide .guide-stage>summary .step-number{min-width:54px;color:#66775d}
.wallet-guide .guide-stage>summary{gap:22px;min-height:100px}
.wallet-guide .artwork-preview{padding:9px;border:1px solid #d7dbd4;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgb(38 58 46 / 6%);box-sizing:border-box}
.wallet-guide .artwork-preview img{border-radius:5px}
.wallet-guide .step-completion{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:10px;min-height:24px}
.wallet-guide .step-completion .step-check{margin:2px 0 0;align-self:start}
.wallet-guide .wallet-action p,.wallet-guide .wallet-sequence .wallet-action p{margin-left:30px}
.wallet-guide .action-details,.wallet-guide .wallet-sequence .action-details{margin-left:30px;padding-left:0;list-style-position:outside}
.wallet-guide .action-details li{padding-left:0}
.wallet-guide .guide-back{margin-top:38px;}

/* Wallet prerequisites: three aligned items, as in Cecilia’s approved sketch. */
main.project-guide.wallet-guide.guide-layout.guide-consistent .guide-start .wallet-needs-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:32px;
  row-gap:16px;
  width:100%;
  max-width:none;
  margin:0;
  padding:0!important;
  list-style:none;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .guide-start .wallet-needs-list>li{
  margin:0;
  padding:0;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .guide-start .wallet-needs-list .requirement-name{
  display:block;
  margin:0 0 8px;
  font-size:17px;
  line-height:1.5;
  font-weight:500;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .guide-start .wallet-needs-list .requirement-note{
  display:block;
  margin:0;
  font-size:16px;
  line-height:1.5;
  color:var(--muted);
}
@media(max-width:760px){
  main.project-guide.wallet-guide.guide-layout.guide-consistent .guide-start .wallet-needs-list{
    grid-template-columns:minmax(0,1fr);
    row-gap:24px;
  }
}
/* Both desktop arrow strokes share one SVG coordinate system and y=12. */
.wallet-guide .wallet-outcome{position:relative}
.wallet-guide .journey-connectors{position:absolute;width:660px;height:24px;left:50%;top:50%;transform:translate(-50%,-50%);fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.wallet-guide .journey-arrow svg{visibility:hidden}
@media(max-width:650px){
 .wallet-guide .journey-connectors{display:none}
 .wallet-guide .journey-arrow svg{visibility:visible}

 .wallet-guide .guide-stage>summary .step-number{min-width:42px}
 .wallet-guide .guide-stage>summary{gap:14px}

}
.wallet-guide #wallet-workflow{color:var(--ink);margin:0}

/* Number and action form a single heading, without completion controls. */

.wallet-guide .stage-label{display:block;margin-bottom:7px;color:var(--muted)}
.wallet-guide .action-title{display:flex;align-items:baseline;gap:12px;margin-bottom:8px}
.wallet-guide .action-title .action-number{flex:0 0 28px;margin:0;}

.wallet-guide .wallet-action p,.wallet-guide .wallet-sequence .wallet-action p{margin-left:40px}
.wallet-guide .action-details,.wallet-guide .wallet-sequence .action-details{margin-left:40px;padding-left:0}
.wallet-guide .wallet-sequence figure{justify-self:start}
.wallet-guide .wallet-prep{display:grid;grid-template-columns:minmax(0,1fr) 210px;column-gap:40px;row-gap:28px;align-items:start}
.wallet-guide .wallet-prep .wallet-action{grid-column:1;margin:0}
.wallet-guide .wallet-prep .artwork-preview{grid-column:2;grid-row:1/3;width:210px;margin:0;align-self:center}
/* Cecilia approved Soft highlighter for Wallet, 10 November 2026. */
.wallet-guide .editor-content{isolation:isolate}
.wallet-guide .editor-highlight{background:rgba(242,207,71,.48);mix-blend-mode:multiply;box-shadow:none;pointer-events:none;z-index:2}
/* A broad marker surround stays yellow outside dark buttons, preserving their labels. */
.wallet-guide .wallet-sequence .editor-highlight.highlight-dark{background:transparent;mix-blend-mode:normal;box-shadow:0 0 0 6px #f7e7a0}
@media(max-width:650px){
 .wallet-guide .wallet-prep{grid-template-columns:1fr;gap:28px}
 .wallet-guide .wallet-prep .artwork-preview{grid-column:1;grid-row:auto;width:180px;margin-left:40px}
 .wallet-guide .action-title{gap:10px}
 .wallet-guide .action-title .action-number{flex-basis:26px}
 .wallet-guide .wallet-action p,.wallet-guide .wallet-sequence .wallet-action p,.wallet-guide .action-details,.wallet-guide .wallet-sequence .action-details{margin-left:36px}
}
/* Shared edges, readable numbering and inset bullets. */
.wallet-guide .wallet-prep{width:min(100%,calc(50% + 330px))}
.wallet-guide .guide-stage>summary .step-number{display:inline-grid;flex:0 0 auto;width:max-content;min-width:0;text-align:center}
.wallet-guide .stage-label{display:flex;justify-content:space-between;width:100%;text-align:left}

.wallet-guide .action-details,.wallet-guide .wallet-sequence .action-details{list-style:none}
.wallet-guide .action-details li,.wallet-guide .wallet-sequence .action-details li{position:relative;padding-left:18px}
.wallet-guide .action-details li:before{content:'•';position:absolute;left:0;top:0}
.wallet-guide .wallet-sequence .editor-highlight{box-shadow:none}
.wallet-guide .wallet-finish{width:100%;max-width:680px}
@media(max-width:650px){.wallet-guide .wallet-prep{width:100%}}
/* A shared number gutter keeps each stage's content under its heading. */
.wallet-guide{--stage-number-width:48px;--stage-gap:22px;--stage-side:8px;--stage-rail:70px}
.wallet-guide .guide-stage>summary{gap:var(--stage-gap);padding-inline:var(--stage-side)}
.wallet-guide .guide-stage>summary .step-number{flex-basis:var(--stage-number-width);width:var(--stage-number-width)}
.wallet-guide .stage-label{width:max-content;min-width:100%;box-sizing:border-box}
.wallet-guide .wallet-stage-body{padding-left:calc(var(--stage-side) + var(--stage-rail));padding-right:var(--stage-side)}
.wallet-guide .wallet-prep{width:min(100%,calc(50% + 330px - var(--stage-rail)/2))}
@media(max-width:650px){
 .wallet-guide{--stage-number-width:40px;--stage-gap:14px;--stage-side:4px;--stage-rail:54px}
 .wallet-guide .wallet-prep{width:100%}
}

/* Heading margins are layout; all typography comes from guide-typography.css. */
.wallet-guide .action-title{margin:0 0 8px}
.wallet-guide .action-name{min-width:0}

/* Focused readability refinements; retain the approved guide scale and imagery. */
main.project-guide.wallet-guide.guide-layout.guide-consistent .guide-stage>summary h3,
main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-finish h2{
  text-wrap:balance;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-prep-actions{
  display:contents;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-prep-actions>.wallet-action{
  grid-column:1;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-prep>.artwork-preview{
  grid-column:2;
  grid-row:2;
  align-self:start;
}
@media(max-width:650px){
  main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-prep>.artwork-preview{
    grid-column:1;
    grid-row:3;
    margin-left:0;
  }
}

/* Keep the title and units intact, and switch columns before screenshots become cramped. */
main.project-guide.wallet-guide.guide-layout.guide-consistent header h1{
  text-wrap:balance;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-measure{
  white-space:nowrap;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .screenshot-sequence.wallet-sequence{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
}

@media(min-width:651px){
  main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-phrase{
    white-space:nowrap;
  }
}

/* Give short screens a full-width workflow heading and separate input settings. */
main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-field-values{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  column-gap:12px;
  row-gap:2px;
  margin:4px 0 0;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-field-values :is(dt,dd){
  margin:0;
}
@media(max-width:360px){
  main.project-guide.wallet-guide.guide-layout.guide-consistent .workflow-heading{
    align-items:baseline;
  }
  main.project-guide.wallet-guide.guide-layout.guide-consistent .workflow-eyebrow{
    grid-column:1;
    grid-row:1;
  }
  main.project-guide.wallet-guide.guide-layout.guide-consistent .workflow-count{
    grid-column:2;
    grid-row:1;
    padding-bottom:0;
  }
  main.project-guide.wallet-guide.guide-layout.guide-consistent .workflow-heading h2{
    grid-column:1/-1;
    grid-row:2;
  }
}

/* Final text polish: avoid orphan words and split interface labels. */
main.project-guide.wallet-guide.guide-layout.guide-consistent .guide-lead{
  text-wrap:pretty;
}
main.project-guide.wallet-guide.guide-layout.guide-consistent .wallet-keep-together{
  white-space:nowrap;
}
