/* Shared by the real page and the Try Chordae practice page. Change it here and both update. */
/*wrap-guard*/body{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}

  .sw-head{ display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:.7rem; margin-bottom:.6rem; }
  .sync-chips{ display:flex; gap:8px; flex-wrap:wrap; }
  .sync-chip{ font-size:var(--fs-xs); color:var(--c-success); background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.25);
              border-radius:var(--r-1); padding:.25rem .7rem; font-weight:600; }   /* wraps at large text sizes instead of running off the edge */
  .sw-hint{ color:var(--muted-ink,var(--c-ink-muted)); font-size:var(--fs-md); margin-bottom:1.1rem; }
  .sw-hint a{ color:var(--c-gold-ink); }

  .cal-card{ background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--r-2);
             box-shadow:var(--sh-1); overflow:hidden; margin-bottom:1.6rem; }
  .cal-head{ display:flex; align-items:center; gap:.8rem; padding:.9rem 1.2rem .8rem;
             border-bottom:2px solid var(--p-gold); background:var(--c-surface); }
  .cal-head img{ height:36px; }
  .cal-month{ font-family:'Playfair Display',Georgia,serif; font-weight:600; font-size:var(--fs-lg); color:var(--c-ink-strong); }
  .cal-name{ color:var(--muted-ink,var(--c-ink-muted)); font-size:var(--fs-xs); }
  .sw-cal{ width:100%; border-collapse:collapse; table-layout:fixed; }
  .sw-cal th{ background:var(--c-surface-cream-2); color:var(--c-ink-strong); font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.08em;
              padding:6px 4px; text-align:center; border:1px solid var(--c-line); font-weight:600; }
  .sw-cal td{ border:1px solid var(--c-line); vertical-align:top; height:76px; padding:3px; background:var(--c-surface); }
  .sw-cal td.out{ background:var(--c-surface-cream-2); }
  .sw-cal .dnum{ font-size:var(--fs-xs); color:var(--muted-ink,var(--c-ink-muted)); font-weight:600; }
  .swchip{ margin-top:3px; border-left:3px solid var(--c-line-ink); background:var(--c-surface); border-radius:var(--r-2); padding:3px 5px;
           font-size:var(--fs-xs); line-height:1.2; cursor:pointer; transition:transform .12s, box-shadow .12s; }
  .swchip:hover{ transform:translateY(-2px); box-shadow:var(--sh-2); }
  .swchip .lbl{ display:block; font-weight:600; color:var(--c-ink); }
  .swchip .tm{ display:block; color:var(--muted-ink,var(--c-ink-muted)); font-size:var(--fs-xs); }
  .swchip.day{ border-left-color:var(--p-day); } .swchip.swing{ border-left-color:var(--p-swing); }
  .swchip.night{ border-left-color:var(--p-night); background:var(--c-info-bg); } .swchip.pit{ border-left-color:var(--p-pit); }
  .swchip.posted{ outline:2px dashed var(--p-gold); outline-offset:1px; }
  .swchip.lock{ opacity:.75; cursor:default; filter:grayscale(.5); } .swchip.lock .tm{ color:var(--c-ink); }
  html[data-theme="dark"] .swchip.lock .tm{ color:var(--app-text,var(--p-line-warm)); }
  .swchip.lock:hover{ transform:none; box-shadow:none; }
  .offchip{ margin-top:3px; border-left:3px solid var(--p-slate-2); background:var(--c-surface-sunk); color:var(--c-ink-faint); border-radius:var(--r-2);
            padding:3px 5px; font-size:var(--fs-xs); line-height:1.2; font-style:italic; }
  .offchip.wait{ border-left-style:dashed; background:var(--c-surface-cream); }

  /* modal */
  .sw-overlay{ display:none; position:fixed; inset:0; background:rgba(28,37,54,.45); z-index:1050;
               align-items:flex-start; justify-content:center; padding:30px 12px; overflow:auto; }
  .sw-overlay.show{ display:flex; }
  .sw-modal{ background:var(--c-surface); border-radius:var(--r-2); max-width:640px; width:100%;
             box-shadow:var(--sh-3); overflow:hidden; animation:swpop .18s ease; }
  @keyframes swpop{ from{ transform:scale(.96); opacity:0; } to{ transform:scale(1); opacity:1; } }
  .swm-head{ background:var(--c-surface); color:var(--c-ink-strong); border-bottom:1px solid var(--c-line); padding:15px 20px; display:flex; justify-content:space-between; align-items:center; }
  .swm-head .x{ cursor:pointer; font-size:var(--fs-xl); opacity:.7; background:none; border:0; padding:.1rem .4rem; color:inherit; line-height:1; } .swm-head .x:hover{ opacity:1; }
  .swm-shift{ font-family:'Playfair Display',Georgia,serif; font-size:var(--fs-lg); }
  .swm-sub{ font-size:var(--fs-xs); opacity:.75; }
  .swm-body{ padding:20px; }
  .sw-choice{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .sw-choice button{ border:1.5px solid var(--c-line); background:var(--c-surface); border-radius:var(--r-1); padding:17px;
                     cursor:pointer; text-align:center; transition:all .15s; }
  .sw-choice button:not(:disabled):hover{ border-color:var(--p-gold); transform:translateY(-2px); box-shadow:var(--sh-2); }
  .sw-choice button:disabled{ opacity:.55; cursor:default; }
  .sw-choice .big{ font-size:var(--fs-2xl); display:block; margin-bottom:5px; }
  .sw-choice b{ color:var(--c-ink-strong); } .sw-choice small{ display:block; color:var(--muted-ink,var(--c-ink-muted)); margin-top:4px; font-size:var(--fs-xs); }
  .swm-note{ margin-top:14px; font-size:var(--fs-xs); color:var(--muted-ink,var(--c-ink-muted)); text-align:center; }
  .sw-back{ font-size:var(--fs-xs); color:var(--c-gold-ink); cursor:pointer; margin-bottom:10px; display:inline-block; }
  .cand{ display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--c-line); border-radius:var(--r-2);
         margin-bottom:6px; background:var(--c-surface); font-size:var(--fs-md); }
  .cand input{ width:17px; height:17px; accent-color:var(--p-gold); }
  .cand .nm{ font-weight:600; } .cand .why{ color:var(--muted-ink,var(--c-ink-muted)); font-size:var(--fs-xs); }
  .fit{ margin-left:auto; font-size:var(--fs-xs); font-weight:700; border-radius:var(--r-1); padding:2px 8px; white-space:nowrap; }
  .fit.f3{ background:rgba(16,185,129,.14); color:var(--c-success); } .fit.f2{ background:rgba(245,158,11,.16); color:var(--c-warning); }
  .fit.f1{ background:rgba(123,28,28,.1); color:var(--c-crimson); }
  /* fit-reason breakdown */
  .whybox{ background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--r-2); padding:.6rem .75rem; margin-top:8px; }
  .whyhead{ font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--c-gold-ink); font-weight:700; margin-bottom:.35rem; }
  .whyrow{ display:flex; gap:.5rem; align-items:start; font-size:var(--fs-xs); color:var(--c-ink); padding:.18rem 0; }
  .whyrow .wd{ font-size:var(--fs-xs); letter-spacing:.1em; white-space:nowrap; margin-top:.15rem; }
  .whyrow.w3 .wd{ color:var(--c-success); } .whyrow.w2 .wd{ color:var(--c-warning); } .whyrow.w1 .wd{ color:var(--c-crimson); }
  .whyrow b{ font-weight:600; color:var(--c-ink-strong); }
  .cand.noel{ opacity:.55; background:var(--c-surface); } .cand.noel .nm{ text-decoration:line-through; }
  .sw-send{ width:100%; margin-top:10px; background:var(--p-gold); color:var(--c-on-gold); border:none; border-radius:var(--r-2);
            padding:12px; font-weight:600; font-size:var(--fs-md); cursor:pointer; }
  .sw-send:hover{ background:var(--p-amber); } .sw-send:disabled{ opacity:.5; cursor:default; }
  .src-note{ font-size:var(--fs-xs); color:var(--muted-ink,var(--c-ink-muted)); margin-top:9px; }
  .sec-title{ font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--c-gold-ink); font-weight:700; margin:12px 0 6px; }
  .selall{ font-size:var(--fs-xs); color:var(--c-gold-ink); font-weight:600; white-space:nowrap; }
  .selall a{ color:var(--c-gold-ink); text-decoration:underline; cursor:pointer; }
  .selall a:hover{ color:var(--c-warning); }
  .sw-notes{ width:100%; border:1.5px solid var(--c-line); border-radius:var(--r-2); padding:.55rem .8rem; font-size:var(--fs-sm);
             background:var(--c-surface); margin-top:4px; } .sw-notes:focus{ outline:none; border-color:var(--p-gold); }
  .sw-spin{ text-align:center; color:var(--muted-ink,var(--c-ink-muted)); font-size:var(--fs-md); padding:18px 0; }
  .sw-toast{ position:fixed; bottom:calc(24px + var(--cd-tabs-h,0px)); left:50%; transform:translateX(-50%) translateY(90px); background:var(--c-surface);
             color:var(--c-ink-strong); border:1px solid var(--c-line-strong); border-radius:var(--r-2); padding:12px 22px; font-size:var(--fs-md); font-weight:600; box-shadow:var(--sh-2);
             transition:transform .25s, opacity .25s, visibility .25s; z-index:1060; opacity:0; visibility:hidden; pointer-events:none; }
  /* hidden until shown: since the phone tab bar lifted it, sliding down alone left an empty box over the Swaps tab */
  .sw-toast.show{ transform:translateX(-50%) translateY(0); opacity:1; visibility:visible; pointer-events:auto; }

  /* trade flow */
  .t-cand{ border:1px solid var(--c-line); border-radius:var(--r-2); margin-bottom:8px; background:var(--c-surface); overflow:hidden; }
  .t-cand>.trow{ display:flex; align-items:center; gap:10px; padding:10px 12px; cursor:pointer; font-size:var(--fs-md); }
  .t-cand>.trow:hover{ background:var(--c-surface); }
  .t-cand .arrow{ margin-left:auto; color:var(--muted-ink,var(--c-ink-muted)); transition:transform .15s; }
  .t-cand.open .arrow{ transform:rotate(90deg); }
  .t-body{ display:block; border-top:1px dashed var(--c-line); padding:12px; background:var(--c-surface-warm); }
  .offer-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
  @media(max-width:560px){ .offer-grid{ grid-template-columns:repeat(2,1fr); } }
  .sw-list{ display:none }
  .sw-past summary{ cursor:pointer; color:var(--c-ink-faint); font-size:var(--fs-md); padding:.6rem .4rem; list-style:none } .sw-past summary::before{ content:'▸ '; } .sw-past[open] summary::before{ content:'▾ '; }
  .sw-row{ display:flex; gap:.7rem; align-items:flex-start; padding:.5rem 0; border-top:1px solid var(--c-line-warm) }
  .sw-row:first-child{ border-top:none }
  .sw-date{ flex:0 0 44px; text-align:center; background:var(--c-surface-cream); border-radius:var(--r-2); padding:.3rem 0 }
  .sw-date b{ display:block; font-size:var(--fs-base); color:var(--c-ink-strong); line-height:1.1 } .sw-date small{ font-size:var(--fs-xs); letter-spacing:.06em; text-transform:uppercase; color:var(--c-ink-faint) }
  .sw-chips{ flex:1; display:flex; flex-direction:column; gap:.3rem }
  .sw-list .swchip{ font-size:var(--fs-md); padding:.45rem .6rem } .sw-list .swchip .tm{ font-size:var(--fs-xs); margin-left:.35rem }
  @media(max-width:600px){ .sw-list{ display:block } .sw-grid-wrap{ display:none } .cal-head img{ height:26px } }
  .offer{ display:flex; align-items:center; gap:.5rem; border:1.5px solid var(--c-line); border-radius:var(--r-2);
          padding:7px 10px; cursor:pointer; font-size:var(--fs-xs); background:var(--c-surface); transition:all .12s; min-width:0; }
  .offer span:last-child{ min-width:0; } .offer b, .offer small{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .offer:hover{ border-color:var(--p-gold); }
  .offer.sel{ border-color:var(--p-gold); background:var(--c-surface-cream); }
  .offer .ock{ width:15px; height:15px; border:1.5px solid var(--c-line); border-radius:var(--r-1); display:inline-flex;
               align-items:center; justify-content:center; font-size:var(--fs-xs); color:var(--p-white); flex-shrink:0; }
  .offer.sel .ock{ background:var(--p-gold); border-color:var(--p-gold); }
  .offer b{ color:var(--c-ink-strong); display:block; } .offer small{ color:var(--muted-ink,var(--c-ink-muted)); display:block; }
  .mini-cal{ width:100%; border-collapse:collapse; table-layout:fixed; background:var(--c-surface); margin-bottom:4px; }
  .mini-cal th{ background:var(--c-surface-cream-2); color:var(--c-ink-strong); font-size:var(--fs-xs); padding:3px 2px; text-transform:uppercase;
                letter-spacing:.06em; text-align:center; border:1px solid var(--c-line); font-weight:600; }
  .mini-cal td{ height:46px; padding:2px; border:1px solid var(--c-line); vertical-align:top; background:var(--c-surface); }
  .mini-cal td.out{ background:var(--c-surface-cream-2); }
  .mini-cal .dn{ font-size:var(--fs-xs); color:var(--muted-ink,var(--c-ink-muted)); font-weight:700; }
  .mini{ margin-top:2px; border-left:2.5px solid var(--c-line-ink); background:var(--c-surface); border-radius:var(--r-1); padding:1px 3px;
         font-size:var(--fs-xs); line-height:1.2; font-weight:600; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .mini.day{ border-left-color:var(--p-day); } .mini.swing{ border-left-color:var(--p-swing); }
  .mini.night{ border-left-color:var(--p-night); background:var(--c-info-bg); } .mini.pit{ border-left-color:var(--p-pit); }
  .mini.gone{ opacity:.8; text-decoration:line-through; text-decoration-color:var(--p-red);
              text-decoration-thickness:2px; border-left-color:var(--p-red) !important; background:var(--c-danger-bg); }
  .mini.offm{ border-left-color:var(--p-slate-2); background:var(--c-surface-sunk); color:var(--c-ink-faint); font-style:italic; font-weight:400; }
  .mini.ghost{ border:none; border-left:3px solid var(--p-green); background:var(--p-green); color:var(--p-white); font-size:var(--fs-xs);
               padding:2px 4px; }
  .mini-cal td{ position:relative; }
  .mini-cal td.td-in{ background:var(--c-success-bg) !important; outline:2.5px solid var(--p-green); outline-offset:-2.5px; }
  .mini-cal td.td-out{ background:var(--c-danger-bg) !important; outline:2.5px solid var(--p-red); outline-offset:-2.5px; }
  .cellbadge{ position:absolute; top:1px; right:1px; font-size:var(--fs-xs); font-weight:800; color:var(--p-white);
              border-radius:var(--r-1); padding:0 4px; letter-spacing:.06em; z-index:1; }
  .cellbadge.bin{ background:var(--p-green); } .cellbadge.bout{ background:var(--p-red); }
  .swap-summary{ display:flex; gap:1rem; flex-wrap:wrap; align-items:center; background:var(--c-surface);
                 border:1px solid var(--c-line); border-radius:var(--r-2); padding:.55rem .8rem; margin-top:10px; font-size:var(--fs-xs); }
  .swap-summary .pillin{ background:var(--p-green); color:var(--p-white); border-radius:var(--r-2); padding:1px 7px; font-weight:700; font-size:var(--fs-xs); }
  .swap-summary .pillout{ background:var(--p-red); color:var(--p-white); border-radius:var(--r-2); padding:1px 7px; font-weight:700; font-size:var(--fs-xs); }
  .prev-title{ font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--c-gold-ink); font-weight:700; margin:10px 0 5px; }
  .verdict-ok{ display:flex; gap:8px; align-items:center; background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.3);
               color:var(--c-success); font-size:var(--fs-xs); border-radius:var(--r-2); padding:7px 10px; margin-top:8px; }
  .verdict-warn{ display:flex; gap:8px; align-items:start; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.4);
                 color:var(--c-warning); font-size:var(--fs-xs); border-radius:var(--r-2); padding:7px 10px; margin-top:8px; }

  /* legend guide */
  .sw-legend{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:.6rem;
              background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--r-2); padding:.8rem 1rem;
              margin:0 0 1.1rem; }
  .lg-item{ display:flex; align-items:center; gap:.7rem; }
  .lg-sample{ min-width:86px; max-width:86px; pointer-events:none; margin-top:0; }
  .lg-txt{ font-size:var(--fs-xs); color:var(--muted-ink,var(--c-ink-muted)); line-height:1.3; }
  .lg-txt b{ color:var(--c-ink); font-size:var(--fs-xs); }

  /* offers for you */
  .offers-card{ background:var(--c-surface); border:1px solid var(--c-line); border-left:4px solid var(--p-gold); border-radius:var(--r-2);
                box-shadow:var(--sh-1); padding:1rem 1.2rem; margin-bottom:1.4rem; }
  .offers-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.6rem; }
  .offers-eyebrow{ font-size:var(--fs-xs); letter-spacing:.2em; text-transform:uppercase; color:var(--c-gold-ink); font-weight:700; }
  .offers-title{ font-family:'Playfair Display',Georgia,serif; font-weight:600; color:var(--c-ink-strong); font-size:var(--fs-lg); }
  /* look A: a quiet count beside the section title (the maroon badge is kept for the menu's to-do counts) */
  .offers-count{ display:inline-block; background:var(--c-surface-sunk); color:var(--c-ink-strong); border:1px solid var(--c-line);
                 border-radius:var(--r-1); font-size:var(--fs-xs); font-weight:700; padding:.05rem .45rem; vertical-align:middle;
                 margin-left:.3rem; font-family:'Inter',sans-serif; }
  .offers-all{ font-size:var(--fs-xs); color:var(--c-gold-ink); text-decoration:none; font-weight:600; white-space:nowrap; }
  .offer-row{ display:flex; align-items:center; gap:.9rem; padding:.6rem .7rem; border:1px solid var(--c-line);
              border-radius:var(--r-2); margin-bottom:.45rem; background:var(--c-surface); text-decoration:none; color:var(--c-ink);
              transition:transform .12s, box-shadow .12s; }
  .offer-row:hover{ transform:translateY(-1px); box-shadow:var(--sh-2); color:var(--c-ink); }
  .of-date{ font-weight:700; font-size:var(--fs-sm); color:var(--c-ink-strong); min-width:58px; text-align:center; line-height:1.15; }
  .of-date small{ display:block; font-weight:400; color:var(--muted-ink,var(--c-ink-muted)); font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.07em; }
  .of-main{ flex:1; min-width:0; }
  .of-shift{ display:block; font-weight:600; font-size:var(--fs-md); }
  .of-time{ color:var(--muted-ink,var(--c-ink-muted)); font-weight:400; font-size:var(--fs-xs); margin-left:.3rem; }
  .of-who{ display:block; color:var(--muted-ink,var(--c-ink-muted)); font-size:var(--fs-xs); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .of-type{ font-size:var(--fs-xs); font-weight:700; border-radius:var(--r-1); padding:.2rem .6rem; white-space:nowrap; }
  .of-type.giveaway{ background:rgba(16,185,129,.12); color:var(--c-success); }
  .of-type.trade{ background:rgba(99,102,241,.12); color:var(--c-night-ink); }
  .of-go{ color:var(--c-gold-ink); font-size:var(--fs-xs); font-weight:600; white-space:nowrap; }
  @media(max-width:640px){ .of-type{ display:none; } }
