/* DIFF mobile workspace R1. Original product layout, no remote assets. */
.page-tool .shell{max-width:1440px;margin:auto;padding-top:8px;}
.page-tool .intro{margin:20px 0 24px;gap:16px;}
.page-tool .intro h1{font-size:30px;line-height:1.35;}
.page-tool .intro .eyebrow{margin-bottom:4px;}
.page-tool .workspace-art{width:112px;height:78px;}
.ws-stages{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--border);background:#f8fbfa;}
.ws-stages button{font:inherit;font-size:14px;line-height:20px;font-weight:600;border:0;background:none;padding:0;min-height:44px;display:flex;align-items:center;gap:8px;color:var(--text-2);cursor:pointer;}
.ws-stages button[aria-current="step"]{color:var(--active);}
.ws-stages button:disabled{opacity:.65;cursor:default;}
.ws-stage-number{display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;width:28px;height:28px;font-size:11px;font-variant-numeric:tabular-nums;}
[aria-current="step"] .ws-stage-number{color:white;background:var(--active);border-color:var(--active);}
.ws-stage-connector{height:1px;width:28px;background:var(--border);}
.ws-private{margin-left:auto;font-size:12px;line-height:18px;color:var(--text-2);}
.ws-private::before{content:'✓';color:var(--active);margin-right:6px;}
.ws-input-tabs{display:none;}
.ws-next-side{display:none;}
.ws-samples{padding:8px 20px 12px;border-top:1px solid var(--divider);font-size:13px;background:#fcfefd;}
.ws-samples summary{min-height:44px;display:list-item;align-content:center;width:fit-content;cursor:pointer;color:var(--text-2);}
.ws-sample-options{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:6px;}
.ws-result .intro{margin:12px 0;}
.ws-result .intro .eyebrow,.ws-result .intro .lead,.ws-result .workspace-art{display:none;}
.ws-result .intro h1{font-size:20px;line-height:28px;margin:0;}
.bar-result{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px 12px;padding:16px 20px;}
.bar-result .sum{grid-column:1;grid-row:1;}
.bar-result .progress-text{grid-column:2;grid-row:1;}
.bar-result .take{grid-column:4;grid-row:1;}
.bar-result #btn-back{grid-column:3;grid-row:1;}
.bar-result .seg{grid-column:1;grid-row:2;justify-self:start;}
.bar-result #btn-find{grid-column:2;grid-row:2;}
.bar-result #btn-list{grid-column:3/5;grid-row:2;}
.bar-result .spacer{display:none;}
.bar-result .bar-status:empty{display:none;}
.bar-result .bar-status{grid-column:1/-1;}
.wf-nav{padding:8px 20px;gap:8px;}
.wf-tab{border:0;border-radius:6px;background:transparent;padding:0 10px;font-size:13px;}
.wf-tab::before{content:'↗';margin-right:6px;}
.wf-tab[aria-expanded="true"]::before{content:'−';}
.ws-map{padding:12px 20px 8px;background:#f9fbfa;border-bottom:1px solid var(--divider);min-width:0;}
.ws-map-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.ws-map h3{font-size:14px;line-height:20px;}
#ws-types{font-size:12px;line-height:18px;color:var(--text-2);margin:2px 0 0;}
.ws-card-arrows{display:flex;align-items:center;gap:2px;white-space:nowrap;}
.ws-card-arrows button{font-size:24px;width:44px;min-height:44px;padding:0;}
#ws-card-position{font-size:12px;line-height:20px;min-width:32px;text-align:center;font-variant-numeric:tabular-nums;color:var(--text-2);}
.ws-cards{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;position:relative;padding:3px 2px 7px;cursor:grab;touch-action:pan-x pan-y pinch-zoom;}
.ws-cards::-webkit-scrollbar{display:none;}
.ws-cards.is-dragging{scroll-snap-type:none;cursor:grabbing;}
.ws-card{flex:0 0 260px;min-width:0;display:flex;flex-direction:column;gap:3px;text-align:start;white-space:normal;font:inherit;font-size:13px;line-height:20px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;color:var(--text);background:#fff;cursor:inherit;scroll-snap-align:start;user-select:none;transition:border-color 150ms,background-color 150ms;}
.ws-card[aria-current="true"]{border-color:var(--active);box-shadow:inset 3px 0 var(--active);background:var(--active-soft);}
.ws-card:disabled{opacity:.55;}
.ws-card-head{display:flex;justify-content:space-between;gap:8px;font-size:11px;line-height:18px;margin-bottom:3px;}
.ws-kind{font-weight:700;}
.ws-line{color:var(--text-2);}
.ws-card-before,.ws-card-after{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}
.ws-card-before{color:var(--del-ink);text-decoration:line-through;text-decoration-color:#ca9399;}
.ws-card-after{color:var(--ins-ink);font-weight:600;}
.ws-map .ws-map-hint{font-size:11px;line-height:18px;margin:2px 0 0;}
.stepbar{bottom:0;z-index:15;box-shadow:0 -3px 12px rgb(24 33 47 / .04);}
@media(min-width:1180px){.bar-result #btn-list{display:none;}.bar-result{grid-template-columns:minmax(0,1fr) auto auto auto;}.bar-result #btn-find{grid-column:2/5;justify-self:end;}.rail{top:12px;max-height:calc(100dvh - 24px);}.rail-head{min-height:52px;}.rail .wf-panel{padding:16px;}}
@media(max-width:1179px){.rail{top:auto;left:max(8px,calc((100vw - 780px)/2));right:8px;bottom:0;width:auto;max-height:76dvh;border:1px solid var(--border);border-radius:18px 18px 0 0;transform:translateY(105%);box-shadow:0 -12px 50px rgb(24 33 47 / .2);padding-bottom:env(safe-area-inset-bottom);}.rail-head{position:sticky;top:0;z-index:2;background:#fff;min-height:56px;padding-left:20px;}.rail-head h3{font-size:16px;}.rail .wf-panel{padding:16px 20px;}.rail .wf-check .wf-input{font-size:14px;line-height:22px;}.results.rail-open .rail{transform:none;}}
@media(max-width:767px){
  .page-tool .shell{padding:12px 12px 24px;}
  .page-tool .intro{margin:4px 4px 16px;gap:8px;}
  .page-tool .intro h1{font-size:24px;line-height:32px;margin-bottom:6px;}
  .page-tool .intro .lead{font-size:14px;line-height:22px;}
  .page-tool .workspace-art{width:64px;height:60px;}
  .page-tool .intro .eyebrow{font-size:10px;line-height:16px;letter-spacing:0;}
  .top-in{padding:0 12px;}.site-nav{margin-left:auto;}.lang-nav{flex-basis:auto;margin-left:0;width:100%;}.lang-nav ul{justify-content:space-between;}.lang-nav a{font-size:12px;min-height:36px;padding:0 4px;}
  .ws-stages{padding:6px 12px;gap:8px;}.ws-stages button{font-size:13px;gap:6px;}.ws-stage-number{width:24px;height:24px;}.ws-stage-connector{width:18px;}.ws-private{display:none;}
  .bar-input{gap:2px 8px;padding:4px 12px;}.bar-input .menu summary{font-size:12px;min-height:40px;}.bar-input .btn{min-height:40px;padding:0 6px;font-size:12px;}.bar-input .spacer{display:none;}.bar-input .menu:nth-child(2){margin-right:auto;}.bar-input #btn-to-result{width:100%;}
  .ws-input-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px 12px 0;gap:8px;background:#f8fbfa;border-top:1px solid var(--divider);}
  .ws-input-tabs button{display:flex;gap:8px;align-items:center;min-height:60px;background:none;border:0;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;font:inherit;color:var(--text-2);text-align:start;padding:6px;cursor:pointer;}
  .ws-input-tabs button[aria-selected="true"]{color:var(--active);border-bottom-color:var(--active);background:#fff;}
  .ws-tab-letter{display:grid;place-items:center;width:26px;height:28px;border:1px solid var(--border);border-radius:5px;background:white;font-size:13px;font-weight:700;}
  .ws-input-tabs button>span:last-child{font-size:14px;font-weight:600;line-height:20px;}.ws-input-tabs small{display:block;font-size:11px;font-weight:400;line-height:18px;}
  .pane-b{border-top:0;}.pane-head{min-height:48px;padding:4px 12px;}.pane-head label{font-size:13px;}.pane-head .count{font-size:10px;line-height:16px;}.pane-head .btn{font-size:12px;padding:0 8px;min-height:40px;}
  .pane textarea{height:clamp(190px,29dvh,300px);font-size:16px;line-height:26px;padding:12px 16px;}
  .ws-next-side{display:inline-flex;flex:1 1 140px;font-size:13px;}.input-foot{gap:8px;position:static;padding:12px;}.btn-compare{flex:1 1 120px;}
  .ws-samples{padding:0 12px 4px;}.ws-samples summary{font-size:12px;}.ws-sample-options .btn{width:100%;justify-content:flex-start;}
  .ws-result .intro{margin:0 4px 10px;}.ws-result .intro h1{font-size:17px;line-height:24px;}
  .bar-result{grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:6px 8px;}
  .bar-result .sum{grid-column:1;grid-row:1;font-size:17px;line-height:24px;}.bar-result .sum .sub{display:block;font-size:12px;line-height:18px;margin-left:0;}
  .bar-result .take{grid-column:2;grid-row:1/3;align-self:center;}.bar-result #btn-take{padding:0 14px;}
  .bar-result .progress-text{grid-column:1;grid-row:2;font-size:12px;line-height:18px;}
  .bar-result .seg{grid-column:1/-1;grid-row:3;justify-self:stretch;order:initial;margin-top:4px;}
  .bar-result #btn-back{grid-column:1;grid-row:4;justify-self:start;font-size:12px;min-height:40px;padding:0 4px;}
  .bar-result #btn-find{grid-column:2;grid-row:4;min-height:40px;font-size:12px;padding:0 4px;}
  .bar-result #btn-list{grid-column:1/-1;grid-row:5;font-size:12px;min-height:36px;justify-self:start;padding:0 4px;}
  .wf-nav{padding:4px 8px;gap:2px;justify-content:space-between;}.wf-tab{padding:0 5px;font-size:11px;min-height:44px;line-height:16px;}.wf-tab::before{margin-right:4px;}
  .ws-map{padding:10px 12px 8px;}.ws-map-head{gap:4px;}.ws-map h3{font-size:13px;line-height:20px;}#ws-types{font-size:10px;line-height:16px;}.ws-card-arrows{gap:0;}.ws-card-arrows button{width:36px;min-width:36px;}.ws-card{flex-basis:85%;font-size:13px;line-height:20px;padding:9px 12px;}.ws-cards{margin-right:-12px;padding-right:12px;}.ws-map .ws-map-hint{font-size:10px;line-height:16px;}
  .stepbar{position:sticky;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));}.stepbar .btn{font-size:12px;padding:0 6px;}.stepbar .pos{font-size:10px;line-height:14px;}.btn-step{min-width:44px;}.pos{grid-column:1/-1;}
  .rail .wf-panel{padding:12px;}.rail{left:6px;right:6px;max-height:78dvh;}.rail .wf-store-row{gap:8px;}.rail .wf-store-row .btn{width:auto;flex:1 1 120px;}
  .footer-in{font-size:11px;line-height:18px;}.footer-in p{font-size:11px;line-height:18px;}
}
@media(max-width:359px){.page-tool .workspace-art{display:none;}.page-tool .intro h1{font-size:22px;line-height:30px;}.wf-tab{font-size:10px;padding:0 3px;}.wf-tab::before{display:none;}.ws-stages button{font-size:12px;}.pane-head{flex-wrap:wrap;}.pane-head .count{order:3;flex-basis:100%;}.ws-card-arrows button{width:32px;min-width:32px;}#ws-types{max-width:160px;}.ws-map h3{font-size:12px;}.ws-card{flex-basis:88%;}}
@media(prefers-reduced-motion:reduce){.ws-card{transition:none;}.ws-cards{scroll-behavior:auto;}}
.motion-reduced .ws-card{transition:none;}.motion-reduced .ws-cards{scroll-behavior:auto;}
.ws-options{border-bottom:1px solid var(--divider);background:#fff;}
.ws-options>summary{font-size:13px;font-weight:600;color:var(--active);min-height:44px;align-content:center;padding:0 20px;cursor:pointer;}
.ws-options-actions{display:flex;gap:8px;padding:0 12px 8px;flex-wrap:wrap;}
.ws-options .workflow{border-bottom:0;border-top:1px solid var(--divider);}
.ws-options-actions #btn-list{display:inline-flex;}
.ws-options-actions .btn{font-size:13px;}
.ws-options[open] .wf-nav{padding-top:4px;padding-bottom:4px;}
.bar-result{grid-template-columns:minmax(0,1fr) auto;}
.bar-result .progress-text{grid-column:1;grid-row:2;justify-self:start;line-height:20px;}
.bar-result .take{grid-column:2;grid-row:1/3;align-self:center;}
.bar-result .seg{grid-column:1/-1;grid-row:3;}
@media(max-width:767px){.ws-options>summary{padding:0 12px;}.bar-result .progress-text{font-size:12px;}.bar-result .seg{margin-top:2px;}.ws-options-actions .btn{flex:1 1 auto;font-size:12px;}}
@media print{.ws-stages,.ws-input-tabs,.ws-samples,.ws-map{display:none!important;}}
/* Narrow disclosures anchor to the toolbar, never to the second summary. */
@media(max-width:767px){
  .bar-input{position:relative;}
  .bar-input>.menu{position:static;}
  .bar-input .menu-body{left:8px;right:8px;top:calc(100% + 4px);width:auto;}
  .pane-head .count{font-size:11px;}
  .wf-tab{font-size:12px;}
  #ws-types{font-size:12px;line-height:18px;}
  .ws-map .ws-map-hint{font-size:12px;line-height:18px;}
}
