  :root{
    --bg:#f7f8fa; --ink:#0d0f14; --muted:#5b616e; --faint:#666c79; --line:#e6e8ec;
    --accent:#b0154f;
    --c0:#f0f1f3; --c1:#fbe3ea; --c2:#f3aec4; --c3:#e0527f; --c4:#b0154f;
    --pad:clamp(24px,4vw,96px);
  }
  *{box-sizing:border-box}
  [hidden]{display:none!important}
  html,body{overscroll-behavior-y:none} /* no pull-to-refresh or rubber-band bounce on phones */
  body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
  button{font:inherit;color:inherit;cursor:pointer}
  :focus-visible{outline:3px solid var(--accent);outline-offset:2px}
  .st:focus-visible{outline:none;stroke:var(--ink);stroke-width:3}
  .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .skip{position:absolute;left:8px;top:-60px;z-index:100;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;font-size:14px}
  .skip:focus{top:8px}
  .top{position:sticky;top:0;z-index:30}
  .notice{background:#fdf1f5;border-bottom:1px solid #f6d3df;color:#6b0f33;font-size:12px;line-height:1.4;padding:7px max(var(--pad),calc((100% - 2200px)/2 + var(--pad)))}
  .foot{width:100%;max-width:2200px;margin:0 auto;padding:0 var(--pad) 40px;font-size:12.5px;line-height:1.55;color:var(--muted)}
  .foot p{margin:0 0 6px;max-width:820px}
  .foot a{color:var(--accent)}
  @media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

  /* ---------- header ---------- */
  header{background:#fff;border-bottom:1px solid var(--line);height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 max(var(--pad),calc((100% - 2200px)/2 + var(--pad)));font-size:13px;color:var(--muted)}
  .brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);min-width:0}
  .brand img{width:38px;height:38px;flex:none;display:block}
  .brand b{display:block;font-size:17px;letter-spacing:-.02em;line-height:1.1}
  .brand small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
  .totals{color:var(--faint);font-size:13px;margin:-14px 0 22px}
  .iconbtn{display:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;place-items:center}
  .iconbtn svg,.search svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}

  /* ---------- layout (base = tablet, 768–1199) ---------- */
  main{max-width:2200px;margin:0 auto;padding:32px var(--pad) 56px;display:grid;grid-template-columns:minmax(0,1fr);gap:32px}
  h1{font-size:clamp(34px,5.4vw,52px);line-height:1.02;letter-spacing:-.045em;margin:0 0 14px;font-weight:700}
  .lede{color:var(--muted);font-size:17px;line-height:1.5;margin:0 0 24px;max-width:680px}
  .search{display:block;flex:none;position:relative;width:100%;margin:0 0 22px}
  .search svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);stroke:var(--faint);pointer-events:none}
  .search input{width:100%;padding:14px 18px 14px 44px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:15px;color:var(--ink);outline:none;box-shadow:0 2px 10px rgba(20,25,40,.04)}
  input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:16px;height:16px;cursor:pointer;opacity:.55;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0f14' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat}
  input[type=search]::-webkit-search-cancel-button:hover{opacity:1}
  .pick{position:relative;margin:0 0 18px}
  .pick-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px 16px 13px 18px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:16px;font-weight:500;color:var(--ink);text-align:left;box-shadow:0 2px 10px rgba(20,25,40,.04)}
  .pick-btn:focus-visible,.pick-btn[aria-expanded="true"]{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(176,21,79,.12)}
  .pick-btn svg{flex:none;width:18px;height:18px;stroke:var(--faint);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
  .pick-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
  .pick-btn i,.pick-list i{font-style:normal;color:var(--faint);font-weight:400;margin-left:6px}
  .pick-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:10;margin:0;padding:6px;list-style:none;max-height:min(320px,50dvh);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 40px rgba(13,15,20,.16);outline:none}
  .pick-list li{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:12px;font-size:15px;cursor:pointer}
  .pick-list li.act{background:#f2f3f5}
  .pick-list li[aria-selected="true"]{color:var(--accent);font-weight:600}
  .search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(176,21,79,.12)}

  /* map */
  .mapwrap{display:contents}
  #map{width:100%;max-width:880px;margin:0 auto;height:auto;display:block;overflow:visible}
  .st{fill:var(--c0);stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-linejoin:round;-webkit-tap-highlight-color:transparent;cursor:default;transition:filter .12s,opacity .15s;outline:none}
  .st.l1{fill:var(--c1)} .st.l2{fill:var(--c2)} .st.l3{fill:var(--c3)} .st.l4{fill:var(--c4)}
  .st.has{cursor:pointer}
  .st.has:hover,.st.has:focus-visible{filter:brightness(.92)}
  .st.sel{stroke:var(--ink);stroke-width:2}
  .st.dim{opacity:.25}
  .lbl{font-size:24px;font-weight:700;fill:#5c0f2e;pointer-events:none;text-anchor:middle;font-family:ui-monospace,Menlo,monospace}
  .lbl.w{fill:#fff}
  .lbl.z{fill:#666c79;font-weight:600;font-size:20px}
  #tip{position:fixed;pointer-events:none;background:var(--ink);color:#fff;font-size:12px;padding:5px 9px;border-radius:7px;opacity:0;transform:translate(-50%,-130%);white-space:nowrap;z-index:5}
  .grab,.seeall,.scrim,.sov{display:none}

  /* results */
  .card{display:flex;flex-direction:column}
  .head{margin-bottom:14px;flex:none}
  .eyebrow{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
  .state{font-size:30px;line-height:1.05;letter-spacing:-.04em;font-weight:700;margin:0}
  .sub{font-size:14px;color:var(--muted);margin-top:8px}
  .areas{display:flex;flex-wrap:nowrap;gap:6px;margin:0 0 16px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .areas::-webkit-scrollbar,.mapwrap::-webkit-scrollbar{display:none}
  .chip{flex:none;border:0;background:#f2f3f5;border-radius:999px;padding:7px 12px;font-size:12.5px;font-weight:500;color:#3a3f4b;white-space:nowrap}
  .chip i{font-style:normal;color:var(--faint);margin-left:5px;font-weight:400}
  .chip:hover{background:#e8eaee}
  .chip.on{background:var(--ink);color:#fff}
  .chip.on i{color:#c9ccd3}
  #list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .row{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:16px}
  .row h3{margin:0;font-size:16px;font-weight:600;letter-spacing:-.015em;line-height:1.3}
  .meta{font-size:12.5px;color:var(--muted);margin:3px 0 6px}
  .meta .rt{color:var(--muted);font-weight:500}
  .docs{font-size:13.5px;color:var(--ink);line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dir{position:relative;z-index:1;flex:none;display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--ink);font-size:13px;font-weight:500;white-space:nowrap;padding:6px 2px;border-radius:8px;transition:color .15s}
  .dir svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .dir .ext{width:12px;height:12px;opacity:.55}
  .dir:hover,.dir:focus-visible{color:var(--accent)}
  .rowhit{position:absolute;inset:0;border:0;background:none;padding:0;border-radius:inherit;cursor:pointer}
  .rowhit:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
  .row:has(.rowhit:hover){background:#fafafb}
  .none.unavailable{padding:30px 0;line-height:1.5;color:var(--ink)}
  .unavailable p{margin:6px 0 14px;color:var(--muted)}
  .none{grid-column:1/-1;padding:26px 0;color:var(--muted);font-size:14px}
  @media (pointer:coarse){ .dir{padding:12px 4px} .chip{padding:10px 14px} }

  /* ---------- desktop (1200+) ---------- */
  @media (min-width:1200px){
    main{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(36px,5vw,110px);align-items:start;padding-top:48px}
    h1{font-size:clamp(40px,3.4vw,72px)}
    #map{max-width:1100px;margin:8px 0 0}
      .card{position:sticky;top:24px;max-height:max(480px,calc(100vh - 136px));background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:0 8px 30px rgba(20,25,40,.06)}
    .state{font-size:36px}
    .head{margin-bottom:18px}
    .areas{flex-wrap:wrap;overflow:visible}
    .chip{padding:6px 11px}
    #list{display:block;overflow-y:auto;min-height:0;margin:0 -10px;padding:0 10px;overscroll-behavior:contain}
    .row{flex-direction:row;align-items:center;gap:16px;padding:18px 0;background:none;border:0;border-top:1px solid var(--line);border-radius:0}
    .none{border-top:1px solid var(--line)}
  }
  /* desktop that is tall enough: fit the window so only the list scrolls */
  @media (min-width:1200px) and (min-height:700px){
    body{height:100vh;overflow:hidden;display:flex;flex-direction:column}
    .top,.foot{flex:none}
    .notice{display:none}
    .foot{padding-bottom:14px;font-size:11.5px}
    .foot p{margin:0 0 2px;max-width:none}
    main{flex:1;min-height:0;width:100%;padding-top:48px;padding-bottom:36px;align-items:stretch}
    .left{display:flex;flex-direction:column;min-height:0}
    #map{flex:1;min-height:0;height:100%;max-width:none;margin:0}
    .card{position:static;max-height:100%;min-height:0}
  }

  /* ---------- phone (<768) ---------- */
  @media (max-width:520px){ #map{width:135%!important} }
  @media (max-width:767px){
    :root{--pad:16px}
    body{padding-bottom:calc(var(--sheet-h,170px) + env(safe-area-inset-bottom))}
    header{height:56px}
    .brand small,#totals,.search{display:none}
      .iconbtn{display:grid}
    main{padding-top:20px;gap:0}
    h1{font-size:28px;margin-bottom:8px}
    .lede{font-size:13px;margin-bottom:14px}
    .mapwrap{display:block;overflow-x:auto;margin:0 -16px;padding:0 16px;scrollbar-width:none;overscroll-behavior-x:contain}
    #map{width:100%;max-width:none;margin:0}

    .card{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -10px 40px rgba(13,15,20,.16);padding:18px 18px 16px;max-height:calc(100vh - var(--top-h,110px) - 8px);max-height:calc(100dvh - var(--top-h,110px) - 8px);transition:height .25s ease}
    .card.open{height:calc(100vh - var(--top-h,110px) - 8px);height:calc(100dvh - var(--top-h,110px) - 8px)}
    .card.open .grab{display:grid;place-items:center;position:absolute;top:10px;right:12px;width:44px;height:44px;border:0;border-radius:50%;background:#f2f3f5;color:var(--ink)}
    .grab svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
    .card.open .head{padding-right:52px}
    .seeall svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;margin-left:6px;vertical-align:-3px}
    .state{font-size:26px}
    .areas{display:none}
    .card.open .areas{display:flex}
    #list{display:block;flex:1;min-height:0;overflow:hidden}
    .card.open #list{overflow-y:auto;overscroll-behavior:contain}
    .row{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0}
    .card:not(.open) .row{border-top:0;padding:4px 0 0}
    .card:not(.open) .row:nth-child(n+2){display:none}
    .seeall{display:block;flex:none;width:100%;margin-top:12px;padding:15px;border:0;border-radius:14px;background:var(--ink);color:#fff;font-weight:600;font-size:15px}
    .card.open .seeall{display:none}
    .card:not(.open) .seeall{position:absolute;right:14px;top:14px;width:auto;margin:0;padding:7px 12px;font-size:12.5px;font-weight:500;border-radius:999px;background:#fff;color:var(--ink);border:1px solid var(--line)}
    .card:not(.open) .row .docs{display:none} /* the peek keeps Directions beside the name */
    .card:not(.open) .meta{margin-bottom:0}
    .card:not(.open) .head{margin-bottom:10px}
    .card:not(.open) .state{font-size:22px}
    .pick-list{position:fixed;left:12px;right:12px;top:calc(var(--top-h,110px) + 12px);bottom:auto;z-index:40;max-height:calc(100vh - var(--top-h,110px) - 28px);max-height:calc(100dvh - var(--top-h,110px) - 28px);box-shadow:0 0 0 100vmax rgba(13,15,20,.4)}
    .scrim{display:block;position:fixed;inset:0;background:rgba(13,15,20,.35);z-index:15}

    .sov{display:flex;flex-direction:column;position:fixed;inset:0;z-index:50;background:#fff}
    .sov-top{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line)}
    .sov-top .search{display:block;margin:0;flex:1}
    .sov-top .search input{background:#f2f3f5;border-color:transparent;box-shadow:none;padding:11px 14px 11px 40px;font-size:16px}
    .sov-top .search svg{left:13px}
    .sov-cancel{border:0;background:none;color:var(--accent);font-weight:600;font-size:15px;padding:8px 2px}
    .sov-count{padding:14px 16px 4px;font-size:13px;color:var(--muted)}
    #sovList{flex:1;overflow-y:auto;padding:0 16px 24px}
    #sovList .none{padding:20px 0}
  }

  /* ---------- row layout ---------- */
  .acts{flex:none;position:relative;z-index:1}
  .row>div:not(.acts){min-width:0;flex:1 1 auto;max-width:100%}
  /* phone: Directions sits on the same line as the hospital name, as a quiet icon */
  @media (max-width:767px){
    .row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:0;align-items:start}
    .row>div:not(.acts),.acts{display:contents}
    .row h3{grid-column:1;grid-row:1;align-self:start;padding-top:2px}
    .row .dir{grid-column:2;grid-row:1;align-self:start;width:40px;height:40px;padding:0;justify-content:center;gap:0;color:var(--muted)}
    .row .dir span,.row .dir .ext{display:none}
    .row .dir svg{width:20px;height:20px}
    .row .meta,.row .docs{grid-column:1/-1}
    .row .meta{grid-row:2}
    .row .docs{grid-row:3}
  }
  .add{flex:none;border:0;border-radius:999px;background:var(--accent);color:#fff;padding:10px 16px;font-size:13px;font-weight:600;white-space:nowrap}
  .add:hover{background:#8f1040}
  @media (max-width:767px){ header .add{padding:9px 13px;font-size:12.5px} }

  .dlg{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:0;border-radius:20px;padding:0;color:var(--ink);box-shadow:0 24px 80px rgba(13,15,20,.28)}
  .dlg::backdrop{background:rgba(13,15,20,.5)}
  .dlg form,.dlg .done{padding:22px 22px 20px}
  .dlg h2{margin:0 0 4px;font-size:21px;letter-spacing:-.03em}
  .dlg .sub{color:var(--muted);font-size:13.5px;line-height:1.5;margin:0 0 16px}
  .fld{display:block;margin:0 0 14px}
  .fld>span{display:block;font-size:13px;font-weight:600;margin-bottom:5px}
  .fld>label,.fld .flabel{display:block;font-size:13px;font-weight:600;margin-bottom:5px}
  .fld .flabel em{font:inherit;font-style:normal;font-weight:400;color:var(--muted)}
  /* the larger dialog used by the Add a listing form */
  .dlg.big{width:min(760px,calc(100vw - 32px))}
  .dlg.big .dform .fhead{padding:34px 64px 0 40px}
  .dlg.big .dform .fbody{padding:4px 40px 10px}
  .dlg.big .dform .ffoot{padding:18px 40px 26px}
  .dlg.big h2{font-size:30px;margin-bottom:8px}
  .dlg.big .sub{font-size:16.5px;margin-bottom:10px}
  .dlg.big .trust{font-size:15px;margin:0 0 26px}
  .dlg.big .fld,.dlg.big .row2{margin-bottom:22px}
  .dlg.big .row2{gap:20px}
  .dlg.big .row2 .fld{margin-bottom:0}
  .dlg.big .fld>span,.dlg.big .fld>label,.dlg.big .fld .flabel{font-size:15px;margin-bottom:8px}
  .dlg.big .fld input,.dlg.big .combo input[type=text]{font-size:17px;padding:15px 17px;border-radius:14px}
  .dlg.big .combo-list li{padding:12px 14px;font-size:16.5px}
  .dlg.big .fld>.linkbtn{font-size:15.5px}
  .dlg.big .fine{font-size:13.5px;margin:6px 0 20px}
  .dlg.big .btns{gap:12px}
  .dlg.big .btn{padding:14px 26px;font-size:16px}
  @media (max-width:520px){ .dlg.big .dform .fhead{padding:24px 56px 0 20px} .dlg.big .dclose{top:16px;right:12px} .dlg.big .dform .fbody{padding:4px 20px 8px} .dlg.big .dform .ffoot{padding:14px 20px 20px} .dlg.big h2{font-size:26px} }
  .trust{margin:-6px 0 16px;font-size:13px;line-height:1.5;color:var(--muted)}
  .row2{display:grid;grid-template-columns:1fr 1.4fr;gap:12px}
  @media (max-width:520px){ .row2{grid-template-columns:1fr;gap:0} }
  .combo{position:relative}
  .combo input[type=text]{width:100%;font:inherit;font-size:15px;padding:11px 13px;border:1px solid #cfd3da;border-radius:12px;background:#fff;color:var(--ink)}
  .combo input[type=text]:focus{outline:3px solid var(--accent);outline-offset:1px;border-color:transparent}
  .combo-list{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 4px);margin:0;padding:6px;list-style:none;max-height:220px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(13,15,20,.16)}
  .combo-list li{padding:9px 11px;border-radius:9px;font-size:14.5px;cursor:pointer}
  .combo-list li.act{background:#f2f3f5}
  .combo-list li[aria-selected="true"]{color:var(--accent);font-weight:600}
  .combo-list li.none{color:var(--muted);cursor:default}
  .chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:9px 10px;border:1px solid #cfd3da;border-radius:12px;background:#fff;cursor:text}
  .chips:focus-within{outline:3px solid var(--accent);outline-offset:1px;border-color:transparent}
  .chip3{display:inline-flex;align-items:center;gap:2px;padding:5px 4px 5px 12px;border-radius:999px;background:#f2f3f5;font-size:14.5px;font-weight:500;max-width:100%;overflow-wrap:anywhere}
  .chip3 button{width:24px;height:24px;border:0;border-radius:50%;background:none;color:var(--muted);font-size:17px;line-height:1;cursor:pointer}
  .chip3 button:hover,.chip3 button:focus-visible{background:#e1e4e8;color:var(--ink)}
  .chips .chipin{flex:1 1 160px;min-width:140px;border:0;outline:0;background:none;font:inherit;font-size:15px;padding:6px 4px;color:var(--ink)}
  .chips .chipin:disabled{display:none}
  /* long forms: the heading and the buttons stay in view, only the fields scroll */
  .dclose{position:absolute;top:14px;right:14px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:none;color:var(--muted);font-size:26px;line-height:1;cursor:pointer}
  .dclose:hover,.dclose:focus-visible{background:#f2f3f5;color:var(--ink)}
  .dlg.big .dclose{top:22px;right:24px}
  .chips .chipin:focus,.chips .chipin:focus-visible{outline:0}
  .dform{position:relative;display:flex;flex-direction:column;max-height:calc(100dvh - 24px);padding:0!important}
  .dform .fhead{flex:none;padding:22px 56px 0 22px}
  .dform .fbody{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 22px 6px}
  .dform .ffoot{flex:none;margin:0;padding:14px 22px 20px;border-top:1px solid var(--line)}
  .fld small{display:block;color:var(--muted);font-size:12px;margin-top:4px;line-height:1.4}
  .fld input,.fld select,.fld textarea{width:100%;font:inherit;font-size:15px;padding:11px 13px;border:1px solid #cfd3da;border-radius:12px;background:#fff;color:var(--ink)}
  .fld textarea{min-height:92px;resize:vertical}
  .fld input:focus,.fld select:focus,.fld textarea:focus{outline:3px solid var(--accent);outline-offset:1px;border-color:transparent}
  .hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
  .btns{display:flex;gap:10px;justify-content:flex-end;margin-top:6px}
  .btn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:11px 18px;font-weight:600;font-size:14px}
  .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
  .btn.primary:hover{background:#8f1040}
  .toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:100;display:grid;gap:8px;justify-items:center;width:min(480px,calc(100vw - 24px));pointer-events:none}
  .toast{pointer-events:auto;display:flex;align-items:center;gap:12px;background:var(--ink);color:#fff;border-radius:14px;padding:12px 8px 12px 16px;font-size:14px;line-height:1.45;box-shadow:0 12px 40px rgba(13,15,20,.28);animation:toastin .2s ease-out}
  .toast.out{opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s}
  .toast .tmsg{flex:1}
  .toast .tact{flex:none;color:#fff;font-weight:600;text-underline-offset:2px}
  .toast .tx{flex:none;width:28px;height:28px;border:0;border-radius:8px;background:none;color:#c9ccd3;font-size:18px;line-height:1;cursor:pointer}
  .toast .tx:hover,.toast .tx:focus-visible{background:rgba(255,255,255,.14);color:#fff}
  @keyframes toastin{from{opacity:0;transform:translateY(8px)}}
  @media (max-width:767px){ .toasts{bottom:calc(var(--sheet-h,0px) + 16px + env(safe-area-inset-bottom))} }
  .btn.destructive{background:#9a1033;border-color:#9a1033;color:#fff}
  .btn.destructive:hover{background:#7d0d29}
  .dlg.confirm{width:min(420px,calc(100vw - 24px))}
  .btn[disabled]{opacity:.55;cursor:default}
  .err{background:#fdecef;color:#7a0a24;border-radius:12px;padding:10px 13px;font-size:13.5px;line-height:1.45;margin:0 0 14px}
  .fine{font-size:12px;color:var(--muted);line-height:1.5;margin:0 0 14px}
  .cf{min-height:65px;margin:0 0 14px}

  /* ---------- reviews & accounts ---------- */
  .acct{flex:none;border:0;background:none;border-radius:8px;padding:8px 6px;font-size:13.5px;font-weight:500;white-space:nowrap;color:var(--ink)}
  .acct:hover,.acct:focus-visible{color:var(--accent)}
  .avatar{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:#eceef1;color:var(--ink);font-size:14px;font-weight:600;text-transform:uppercase;display:inline-grid;place-items:center;padding:0}
  .avatar:hover{background:#e1e4e8}
  header .brand{margin-right:auto}
  a.acct{text-decoration:none;display:inline-block}
  .acctwrap{position:relative;flex:none}
  .acctmenu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:220px;max-width:min(320px,90vw);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 40px rgba(13,15,20,.16);padding:6px}
  .acctmenu .who{margin:0;padding:8px 10px 10px;border-bottom:1px solid var(--line);font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
  .acctmenu a,.acctmenu button{display:block;width:100%;text-align:left;border:0;background:none;border-radius:8px;padding:9px 10px;font-size:14px;color:var(--ink);text-decoration:none;cursor:pointer}
  .acctmenu a:hover,.acctmenu button:hover{background:#f2f3f5}
  .acctpage .acct{display:inline-block}
  @media (max-width:430px){ header{gap:6px} header .brand span{display:none} }
  @media (max-width:767px){ header .acct{padding:8px 4px;font-size:13px} header .avatar{width:32px;height:32px} }
  .linkbtn{border:0;background:none;padding:0;font:inherit;color:var(--accent);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
  .linkbtn.danger{color:#9a1033}
  @media (min-width:768px){ #acctFoot{display:none} }
  .rt{color:var(--accent);font-weight:600}
  .dlg.wide{width:min(760px,calc(100vw - 32px))}
  .dlg .pane{padding:22px 22px 20px}
  .dlg .pane>h2{margin:0 0 6px}
  .rv-list{margin:6px 0 4px;max-height:min(52vh,460px);overflow-y:auto;padding-right:2px}
  .rv{border-top:1px solid var(--line);padding:14px 0}
  .rv-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:12.5px;color:var(--muted)}
  .rv-meta .linkbtn{margin-left:auto;font-size:12.5px}
  .rv-body{margin:8px 0 0;font-size:14.5px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
  .rv-actions{display:flex;gap:16px;margin-top:8px;font-size:13px}
  .rv-report{background:#f7f8fa;border-radius:12px;padding:14px;margin-top:10px}
  .stars{color:#c98a00;letter-spacing:1px;font-size:15px}
  .chip2{border-radius:999px;padding:2px 9px;font-size:11.5px;font-weight:600;background:#f2f3f5;color:#3a3f4b}
  .chip2.st-ok{background:#e4f6ea;color:#0b5d2a}
  .chip2.st-pending{background:#fff4d6;color:#6b4e00}
  .chip2.st-no{background:#fdecef;color:#7a0a24}
  .rate{display:flex;gap:2px}
  .rate button{border:0;background:none;font-size:34px;line-height:1;color:#d3d6dc;padding:4px 3px;cursor:pointer;transition:color .12s}
  .rate button.on,.rate button[aria-checked=true]{color:#c98a00}
  @media (hover:hover){ .rate:hover button{color:#d3d6dc} .rate button:hover,.rate button:has(~ button:hover){color:#e0a800} }
  .btns.spread{justify-content:space-between;align-items:center}
  .btns.spread>span{display:flex;gap:10px}


  /* ---------- account page ---------- */
  body.acctpage{height:auto;overflow:visible;display:block}
  .page{width:80%;max-width:none;margin:0 auto;padding:36px 0 64px}
  @media (max-width:767px){ .page{width:100%;padding:28px var(--pad) 56px} }
  .page h1{font-size:clamp(26px,3.4vw,30px);letter-spacing:-.03em;margin:0}
  .pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 24px}
  .pagehead .who2{margin:4px 0 0;font-size:14px;color:var(--muted);overflow-wrap:anywhere}
  .page .lede{font-size:16px;color:var(--ink);margin:0 0 8px}
  .panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin:0 0 20px}
  .panel>h2{margin:0 0 16px;font-size:17px;letter-spacing:-.02em}
  .panel.danger{border-color:#f1c4cf;background:#fffafb}
  .panel.danger h2{margin:0;color:#7d0d29;font-size:16px}
  .panel.danger .arow{padding:0;border:0}
  .panel .count{display:inline-block;min-width:22px;padding:1px 8px;border-radius:999px;background:#f2f3f5;color:var(--muted);font-size:12.5px;font-weight:600;text-align:center;vertical-align:middle}
  .panel .count:empty{display:none}
  .rv-list.open{max-height:none;overflow:visible}
  .panel .rv:first-child{border-top:0;padding-top:0}
  .empty{padding:6px 0 2px}
  .empty .btn{display:inline-block;margin-top:6px;text-decoration:none}
  .arow{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--line)}
  .arow:first-of-type{border-top:0;padding-top:0}
  .arow.stack{align-items:flex-start}
  .arow .sub{margin:2px 0 0}
  .arow strong{font-size:14px}
  .btns.left{justify-content:flex-start}
  .mycard{padding:18px 0}
  .mc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
  .mc-title{margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em;line-height:1.35;overflow-wrap:anywhere}
  .mc-head .chip2{flex:none;margin-top:1px}
  .mc-sub{display:flex;align-items:center;gap:8px;margin-top:3px;font-size:12.5px;color:var(--muted)}
  .mc-sub .stars{font-size:13px;letter-spacing:.5px}
  .mycard .rv-body{margin:10px 0 0;font-size:15px;line-height:1.55;color:var(--ink)}
  .mycard .fine{margin:8px 0 0}
  .mc-actions{display:flex;gap:6px;margin:12px 0 0 -8px}
  .qbtn{border:0;background:none;border-radius:8px;padding:6px 8px;font:inherit;font-size:13px;font-weight:500;color:var(--muted);cursor:pointer}
  .qbtn:hover,.qbtn:focus-visible{background:#f2f3f5;color:var(--ink)}
  .qbtn.del:hover,.qbtn.del:focus-visible{background:#fdecef;color:#9a1033}
  .opts{display:grid;gap:10px;margin:14px 0 16px}
  .opt{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid var(--line);border-radius:14px;cursor:pointer}
  .opt:has(input:checked){border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
  .opt:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
  .opt input{flex:none;margin:3px 0 0;width:17px;height:17px;accent-color:var(--ink)}
  .opt strong{display:block;font-size:14px}
  .opt small{display:block;margin-top:2px;font-size:12.5px;line-height:1.5;color:var(--muted)}
  .dlg.wide-ish{width:min(480px,calc(100vw - 24px))}
  .dlg.confirm .fld input:focus{outline:2px solid var(--ink);outline-offset:0;border-color:transparent}
  a.btn{text-decoration:none;display:inline-block}
  .btn.danger{color:#9a1033;border-color:#f1c4cf}
  .btn.danger.solid{background:#9a1033;border-color:#9a1033;color:#fff}
  .btn.danger.solid:disabled{opacity:.4;cursor:not-allowed}
  @media (max-width:640px){ .arow{flex-direction:column;align-items:stretch} .pagehead{flex-wrap:wrap} .panel{padding:20px} }


  /* ---------- reviews dialog ---------- */
  .rvdlg{padding:34px 40px 28px}
  .rvdlg .dh{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
  .rvdlg h2{font-size:28px;margin:0 0 6px;line-height:1.2;letter-spacing:-.03em}
  .rvdlg .dh .sub{margin:0;font-size:15px}
  .rvdlg .x{flex:none;width:40px;height:40px;margin:-8px -10px 0 0;border:0;border-radius:50%;background:none;color:var(--muted);font-size:26px;line-height:1;cursor:pointer}
  .rvdlg .x:hover{background:#f2f3f5;color:var(--ink)}
  .rv-tabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 18px;padding-bottom:2px;border-bottom:1px solid var(--line);scrollbar-width:none}
  .rv-tabs::-webkit-scrollbar{display:none}
  .rv-tabs button{flex:none;border:0;background:none;padding:11px 14px;margin-bottom:-1px;font-size:15px;font-weight:500;color:var(--muted);border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
  .rv-tabs button:hover{color:var(--ink)}
  /* inset focus ring: the tab strip scrolls sideways, which would clip an outer ring into stray bars */
  .rv-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:-4px;border-radius:8px}
  .rv-tabs button[aria-selected="true"]{color:var(--ink);font-weight:600;border-bottom-color:var(--ink)}
  .rvdlg .rv-list{max-height:min(50vh,500px);margin:0}
  .rv-sum{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:2px 0 6px}
  .rv-sum .avg{font-size:36px;font-weight:700;letter-spacing:-.03em}
  .rv-sum .cnt{font-size:15px;color:var(--muted)}
  .rv-empty{padding:34px 0 26px}
  .rv-empty .lead{margin:0 0 4px;font-size:19px;font-weight:600}
  .rv-empty .sub{margin:0;font-size:15.5px}
  .rvdlg .rv{padding:20px 0}
  .rvdlg .rv-body{font-size:15.5px;line-height:1.6}
  .rvdlg .rv-meta{font-size:13.5px}
  .rvdlg .dfoot{margin-top:20px;padding-top:20px}
  .rvdlg .dfoot .btn{padding:14px 28px;font-size:16px}
  .rvdlg .dfoot .linkbtn{font-size:15px;padding:10px 4px}
  .rvdlg .wf .fld input,.rvdlg .wf textarea{font-size:16px}
  .rvdlg .rv:first-of-type{border-top:0}
  .rv-sum + .rv{border-top:1px solid var(--line)}
  .rv-meta .quiet{margin-left:auto}
  .linkbtn.quiet{color:var(--muted);text-decoration:none;font-size:13px}
  .linkbtn.quiet:hover,.linkbtn.quiet:focus-visible{color:var(--accent);text-decoration:underline}
  .dfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
  .dfoot .btn{margin-left:auto}

  /* write-a-review form */
  .wf{padding:0!important}
  .rate-row{display:flex;align-items:center;gap:12px;margin:4px 0 16px;min-height:48px}
  .rate-word{font-size:14px;font-weight:600;color:var(--muted)}
  .wf .fld{margin:0 0 10px}
  .wf textarea{width:100%;min-height:150px;font:inherit;font-size:15px;line-height:1.55;padding:14px 15px;border:1px solid #cfd3da;border-radius:14px;resize:vertical;color:var(--ink);background:#fff}
  .wf textarea:focus{outline:3px solid var(--accent);outline-offset:1px;border-color:transparent}
  .wf .count{display:block;text-align:right;color:var(--muted);font-size:12px;margin-top:6px}
  .wf .fine{margin:0 0 12px}
  .dfoot{position:sticky;bottom:0;background:#fff}

  /* phone: dialogs become bottom sheets, with a footer that stays in reach above the keyboard */
  @media (max-width:767px){
    #dlg2{width:100%;max-width:none;margin:auto 0 0;max-height:92dvh;border-radius:22px 22px 0 0}
    .rvdlg{padding:20px 18px 0}
    .rvdlg h2{font-size:22px}
    .rvdlg .dfoot .btn{padding:13px 22px;font-size:15px}
    .rvdlg .dfoot{margin:14px -18px 0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -1px 0 var(--line)}
    .rvdlg .dfoot .btn{padding:13px 22px}
    .rvdlg .x{width:44px;height:44px}
    .rate button{font-size:40px;padding:4px 5px}
    .wf textarea,.fld input,.fld select,.fld textarea,.combo input[type=text],.chips .chipin{font-size:16px}
    .rvdlg .rv-list{max-height:none}
  }
  .switchrow{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;cursor:pointer}
  .switchrow input{flex:none;width:44px;height:26px;appearance:none;-webkit-appearance:none;border-radius:999px;background:#d3d6dc;position:relative;cursor:pointer;transition:background .15s}
  .switchrow input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s}
  .switchrow input:checked{background:var(--accent)}
  .switchrow input:checked::after{transform:translateX(18px)}
  .switchrow input:disabled{opacity:.5;cursor:default}
