/* SurfSignal Desktop view (my.surf-signal.com). docs/desktop-view-plan.md: §5.4 (the view, LOCKED = Website/drafts/desktop-view/desktop.html)
   and §16 (the screens around it, LOCKED = screens.html draft 7). Sizes and colours come from the Flutter code named in each comment. */


  :root{--ink:#0A2859;--primary:#00AEEF;--card:#EFF4F7;--border:#ACB3BD;--line:#E3E9F1;--night:#E2E2E2;
        --lab:40px;--labt:56px;--lvw:25px;--lvgap:8px;--pinw:calc(var(--labt) + var(--lvw) + var(--lvgap) - 2px);--hour:25px;--z:1;--ww:431px;--stick:0px}
  *{box-sizing:border-box}
  html,body{overscroll-behavior:none}   /* the page's own edges do not bounce either (owner 2026-11-20) */
  body{margin:0;background:#fff;color:var(--ink);font-family:"Cabin",system-ui,sans-serif;font-size:14px;
       display:flex;flex-direction:column;min-height:100vh;min-height:100svh}   /* a column: #app grows, the footer sits at the bottom */
  #app{flex:1 0 auto}
  /* the footer (owner 2026-11-23): the website footer's links row (#ss-footer: Cabin 14 px ink, no underline, 8 / 22 px gaps,
     white, no rule on top (owner: the site has one, not here), 36 / 44 px padding), text only: no badges, language menu or copyright */
  #foot{padding:36px 20px 44px;text-align:center;font:14px/1.5 Cabin,system-ui,sans-serif;color:var(--ink);background:#fff}
  #foot:empty{display:none}
  #foot nav{display:flex;flex-wrap:wrap;gap:8px 22px;justify-content:center}
  #foot a{color:var(--ink);text-decoration:none}
  #foot a:hover{text-decoration:underline;text-underline-offset:2px}   /* the site hovers in primary blue; our rule: ink + underline */
  .logoa{display:block;line-height:0}   /* the logo = a link to the website (new tab); the image keeps its own size rules */
  button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
  svg.i{width:20px;height:20px;fill:currentColor;display:block}


  /* ---- Top bar: logo | the app's summary + the day strip | the page's own actions ---- */
  #bar{position:sticky;top:env(safe-area-inset-top, 0px);z-index:40;background:#fff}   /* no rule under it: the app's header has none (owner 2026-11-20) */
  #bar .row{height:64px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;width:var(--wwv);max-width:calc(100% - 40px);margin:0 auto}
  #bar .logo{height:36px;width:auto;display:block}
  .thead{position:relative}
  .spotmenu{position:absolute;right:-8px;top:42px;z-index:20;min-width:200px;background:#fff;box-shadow:0 6px 24px rgba(10,40,89,.18);padding:6px 0;font-family:Cabin,sans-serif}
  .spotmenu button,.spotmenu a{display:flex;align-items:center;gap:12px;width:100%;padding:10px 16px;font-size:14px;color:var(--ink);text-decoration:none;text-align:left}
  .spotmenu button:hover,.spotmenu a:hover{background:rgba(10,40,89,.05)}
  .spotmenu svg{width:16px;height:16px;fill:var(--ink);flex:0 0 16px}
  .navmenu{position:absolute;right:max(8px, env(safe-area-inset-right, 0px));top:100%;z-index:45;min-width:240px;background:#fff;box-shadow:0 6px 24px rgba(10,40,89,.18);padding:6px 0;font-family:Cabin,sans-serif}
  .navmenu button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 16px;font-size:14px;color:var(--ink);text-align:left}
  .navmenu button:hover:not([disabled]){background:rgba(10,40,89,.05)}
  .navmenu button[disabled]{opacity:.45;cursor:default}
  .navmenu svg{width:18px;height:18px;fill:var(--ink);flex:0 0 18px}
  .btn{height:36px;padding:0 14px;background:var(--primary);color:#fff;font-weight:700;display:inline-flex;align-items:center;gap:6px;font-family:"Cabin",sans-serif}
  .btn svg{width:18px;height:18px;fill:#fff}
  .btn[disabled]{background:#B9C2CC;cursor:default}
  .chk{display:inline-flex;align-items:center;gap:6px;font-family:"Cabin",sans-serif}
  .chk svg{width:22px;height:22px;fill:var(--ink)}
  .ibtn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}
  .lnk{color:var(--ink);font-family:"Cabin",sans-serif}
  .lnk:hover{text-decoration:underline}

  /* ---- Page: one column the width of the screen, scaled evenly like the partner widget ---- */
  .col{width:var(--ww);margin:0 auto 60px;zoom:var(--z);padding-top:0}   /* the gap under the bar is the same at every width (owner 2026-11-21; was 12 px above 1180 px only) */
  .tile{background:var(--card);padding:0 8px;margin:0 0 8px;position:relative}
  /* spots on hold = the app's archived band: 12 / 14 px inner, the lock in the bell's gutter, the body on the title's rail */
  .tile.onhold{padding:12px 8px 14px}
  .tile.onhold .thead{height:auto}
  .tile.onhold .thead .ic svg{width:18px;height:18px;fill:var(--ink)}
  .tile.onhold .ohb{margin:6px 8px 0 40px;font:13px/1.5 Cabin,sans-serif;color:rgba(10,40,89,.78)}
  .tail{height:8px}
  .stale{display:flex;align-items:center;gap:8px;padding:4px 0 8px 8px;font:13px Cabin,sans-serif;color:var(--ink)}
  .stale svg{width:16px;height:16px;fill:var(--ink)}
  .loadfail{display:flex;flex-direction:column;align-items:center;gap:8px;padding:80px 20px;text-align:center;font-family:Cabin,sans-serif}
  .loadfail svg{width:28px;height:28px;fill:var(--ink)}
  .loadfail b{font-size:16px}
  .loadfail span{font-size:14px;color:rgba(10,40,89,.7)}


  /* ---- Tile header (alert_tile.dart): title row 40, partner row 14 pulled up 8 ---- */
  .thead{display:flex;align-items:center;height:40px}
  .thead .ic{width:var(--lab);flex:0 0 var(--lab);display:flex;align-items:center;padding-left:6px}
  .thead .ttl{font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 auto}
  .thead .ttl.partner{text-decoration:underline;cursor:pointer}
  .thead .acts{display:flex;align-items:center;margin-right:-8px}
  .sub{height:14px;margin:-8px 0 8px var(--lab);font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* ---- The hour grid: labels + live column pinned left (with a gap), then every hour of every day ---- */
  .hs{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:grab;user-select:none;overscroll-behavior-x:none}   /* a hard swipe stops at the first / last hour: no rubber band, no browser back gesture (owner 2026-11-20) */
  .hs::-webkit-scrollbar{display:none}
  .hs.drag{cursor:grabbing}
  /* The live column is pinned next to the labels (owner 2026-11-22): its track = one hour column + 6 px, its right border
     (--lvgap, was 2 px) is the card-colour gap the hours slide under. app.js LIVE_GAP = --lvgap - 2. */
  .hg{display:grid;grid-template-columns:var(--labt) calc(var(--lvw) + var(--lvgap) - 2px) repeat(var(--cols),var(--hour));width:max-content;position:relative}
  .hg > .l{position:sticky;left:0;z-index:4;background:var(--card);height:25px;display:flex;align-items:center;padding:0 3px;font-size:10px;white-space:nowrap;overflow:hidden}
  .hg > .l.set{font-weight:600}
  .hg > .l.sky{height:35px}
  .hg > .l.ar{height:16px}
  .hg > .l.gy{height:auto;padding:0;align-items:stretch}
  .hg > .lv{position:sticky;left:var(--labt);z-index:4;height:25px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;
            background:#fff;border-right:var(--lvgap) solid var(--card);cursor:pointer}
  /* the live outline (live panel open) on the pinned cells: sides on every day-tile row, top on Hour, bottom on the last */
  /* drawn on ::before ABOVE the wash (.wash::after) so a washed live column keeps a full-ink outline, as the hours' .selcol (owner 2026-11-23) */
  .hg > .lv.ls::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;box-shadow:inset 2px 0 var(--ink),inset -2px 0 var(--ink)}
  .hg > .lv.ls.t::before{box-shadow:inset 2px 0 var(--ink),inset -2px 0 var(--ink),inset 0 2px var(--ink)}
  .hg > .lv.ls.b::before{box-shadow:inset 2px 0 var(--ink),inset -2px 0 var(--ink),inset 0 -2px var(--ink)}
  .hg > .lv.clear{background:var(--card)}
  .hg > .lv.nw{font-weight:400}
  .hg > .lv.blank{background:var(--card);cursor:default}
  .hg > .lv.sky{height:35px} .hg > .lv.ar{height:16px} .hg > .lv.gy{height:auto}
  .hg > .lv svg.sens{width:16px;height:16px;fill:none;stroke:var(--primary)}
  .hg > .lv svg.sens circle{fill:var(--primary);stroke:none}
  .hg > .c{position:relative;height:25px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;cursor:pointer;
           border-right:.5px solid rgba(255,255,255,.7);border-bottom:.5px solid rgba(255,255,255,.7)}
  .hg > .c.h{font-weight:400;background:#fff}
  .hg > .c.h.b{font-weight:700}
  .hg > .c.h.night{background:var(--night)}
  .hg > .c.sky{height:35px}
  .hg > .c.sky svg{width:15px;height:15px}
  .hg > .c.ar{height:16px;border:0;cursor:default}
  .hg > .c.na{background:transparent;cursor:default}
  /* days without data: one small box, centred in the visible part of that stretch (sticky inside the scroller) */
  .nabox{position:absolute;top:0;display:flex;align-items:center;pointer-events:none;z-index:2}
  .nab{position:sticky;left:calc((var(--vw) - 240px) / 2);width:240px;margin-left:12px;padding:10px 14px;background:#fff;border:1px solid var(--line);
       text-align:center;font:13px Cabin,sans-serif;color:rgba(10,40,89,.7)}
  .hg > .c.sc{box-shadow:inset 1.5px 0 var(--ink),inset -1.5px 0 var(--ink)}
  .hg > .c.sc.first{box-shadow:inset 1.5px 0 var(--ink),inset -1.5px 0 var(--ink),inset 0 1.5px var(--ink)}
  .hg > .c.sc.last{box-shadow:inset 1.5px 0 var(--ink),inset -1.5px 0 var(--ink),inset 0 -1.5px var(--ink)}
  /* The Day row (owner 2026-11-20): one merged cell per day with the table's white hairline, the label at the day's
     first hour column. Was: overflow:hidden made each day box the scroll area for its sticky label, so every label sat
     44 px INTO its day and never stuck. Now (overflow:clip, no scroll area) the label starts on the day's first hour and
     sticks to the left edge while that day is half scrolled; without clip support it simply stays at the day's start. */
  .hg > .dh{grid-column:span var(--nh);height:25px;display:flex;align-items:center;cursor:pointer;white-space:nowrap;overflow:hidden}
  /* Day boundaries (owner 2026-11-21, replaces the white day outline and the 2 px card gaps): ONE thin dark blue line per
     boundary, from the top of the Day row through the table, the spacer and the graphs to the bottom of the spot, drawn
     over the grid (rows() places one .dsep per day in the header grid and in the body grid). Under the sticky labels,
     the tap outline and the graph crosshair / tooltip. */
  /* colour (owner 2026-11-22): the app agenda's hour digits (agenda_view.dart, AppColors.darkBlue at 40 %), not full ink */
  .hg > .dsep{position:absolute;top:0;bottom:0;width:1px;margin-left:-.5px;background:rgba(10,40,89,.4);pointer-events:none;z-index:1}
  .hg > .dh span{font-size:10px;padding:0 4px;font-weight:700;color:rgba(10,40,89,.4)}   /* every day label bold, in the day lines' colour = the app agenda's hour digits, dark blue at 40 % (owner 2026-11-22; was full ink, 2026-11-21) */
  @supports (overflow:clip){ .hg > .dh{overflow:clip} .hg > .dh span{position:sticky;left:calc(var(--labt) + var(--lvw) + var(--lvgap) - 2px)} }
  /* The now line (owner 2026-11-23): dotted, in the day lines' colour, over the cells like them (app.js rows()). Today's day
     label is opaque and above it, so the label covers the line and the NOW marker when it sticks while scrolling. */
  .hg > .nowl{position:absolute;top:0;bottom:0;width:1px;margin-left:-.5px;pointer-events:none;z-index:1;
              background:repeating-linear-gradient(to bottom,rgba(10,40,89,.4) 0 2px,transparent 2px 5px)}
  .hg > .nowm{position:absolute;top:0;height:25px;display:flex;align-items:center;font-size:10px;font-weight:700;color:rgba(10,40,89,.4);
              white-space:nowrap;pointer-events:none;z-index:1}
  .hg > .dh.today span{position:relative;z-index:2;align-self:stretch;display:flex;align-items:center;background:var(--card)}
  @supports (overflow:clip){ .hg > .dh.today span{position:sticky} }
  /* alert_tile.dart _DayTilesGlow: a white band (0 -> 70 % -> 0, 36 % of the width) sweeps left to right every 1.4 s */
  .rowswrap{position:relative}
  .glow{position:absolute;left:var(--labt);right:0;top:0;pointer-events:none;z-index:8;
        background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.7),rgba(255,255,255,0)) no-repeat;background-size:36% 100%;animation:sweep 1.4s linear infinite}
  @keyframes sweep{from{background-position:-56% 0}to{background-position:156% 0}}
  .selcol{position:absolute;top:0;border:2px solid var(--ink);pointer-events:none;z-index:3}
  .selcol.nb{border-bottom:0} .selcol.nt{border-top:0}
  /* the card's header sticks under the bar, the Day + Hour rows under the header; both release when the spot has passed */
  .tophead{position:sticky;top:calc(env(safe-area-inset-top, 0px) + var(--stick));z-index:8;background:var(--card);margin:0 -8px;padding:4px 8px 0}   /* 4 px above the title row, inside the card */
  .hhead{position:sticky;top:calc(env(safe-area-inset-top, 0px) + var(--stick) + var(--th, 0px));z-index:6;background:var(--card)}
  .hg > .dh.on span{font-weight:700;color:rgba(10,40,89,.4)}
  .hg > .full{grid-column:1 / -1}
  /* Full-width rows (spacers, graph titles, captions): the card colour under the pinned labels + live column (--pinw),
     see-through over the hours (owner 2026-11-22: nothing ever shows behind the first column; the day lines still run
     unbroken past the graph titles in the hours). The live wind panel is opaque all the way. */
  .hg > .full .pin{position:sticky;left:0;width:var(--vw);z-index:5;background:linear-gradient(90deg,var(--card) var(--pinw),transparent var(--pinw))}
  .hg > .full.lvfull .pin{background:var(--card)}
  .emo{font-size:9px;line-height:1}
  .hg .arw{width:13px;height:13px}
  .arw{width:13px;height:13px;fill:var(--ink);display:block}
  .wash::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.75);pointer-events:none}

  /* Graph headers (wind_forecast_graph.dart title row) */
  .gt{display:flex;align-items:center;justify-content:space-between;padding:0 0 5px 8px}
  .gt .t{display:flex;align-items:center;gap:6px;min-width:0}
  .gt .t svg{width:16px;height:16px;fill:var(--primary);flex:0 0 16px}
  .gt .t b{font-size:20px;white-space:nowrap}
  .gt .t small{font-size:11px;color:rgba(10,40,89,.7)}
  .gt .leg{display:flex;align-items:center;gap:12px;font-size:10px;padding-right:12px}
  .gt .leg i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:-1px}
  .info{width:16px;height:16px;border:1.4px solid var(--ink);display:inline-flex;align-items:center;justify-content:center;font:700 10px/1 Cabin,sans-serif;cursor:pointer}
  .banner{margin:0 8px 8px;padding:8px 12px;background:rgba(0,174,239,.08);border:1px solid rgba(0,174,239,.18);font-size:12px;line-height:1.4;color:rgba(10,40,89,.75)}
  .gbox{position:relative;cursor:crosshair;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}   /* a sideways touch drag scrubs the graph, a vertical one still scrolls the page */
  .gbox svg.g{display:block}
  .xh{position:absolute;width:1.5px;background:rgba(10,40,89,.85);pointer-events:none;z-index:4}
  .tip{position:absolute;box-shadow:0 2px 8px rgba(10,40,89,.18);background:rgba(10,40,89,.92);color:#fff;padding:8px 10px;max-width:160px;pointer-events:none;z-index:6;white-space:nowrap}
  .tip div{font-weight:600;font-size:12px;line-height:1.4}
  .tip .tm{color:rgba(255,255,255,.7);font-weight:400;font-size:11px;line-height:1.2;margin-top:4px}
  .arrows{position:relative}
  .arrows .a{position:absolute;width:13px;height:13px}

  /* Live wind (live_weather_overlay.dart), under the rows, centred */
  .lwrap{display:flex;justify-content:center;padding:12px 0 6px}
  .strow{background:rgba(255,255,255,.8);padding:3px 8px;display:flex;align-items:center;font-size:10px;color:var(--border);white-space:nowrap;position:relative}
  .strow .nm{display:inline-flex;align-items:center;color:var(--ink);font-weight:600;flex:1 1 auto;min-width:0;overflow:hidden}
  .strow .nm[data-act]{cursor:pointer}
  .strow .nm svg{width:18px;height:18px;fill:var(--primary);flex:0 0 18px;margin-right:2px}
  .strow .dot{padding:0 4px}
  .strow a{color:var(--border);text-decoration:underline}
  /* live_weather_overlay.dart: the stand-in notice, one muted line under the station row, on the name's vertical line
     (20 px in when the row has the dropdown arrow), same ink, normal weight; never red (it is not a verdict) */
  .strow{flex-wrap:wrap}
  .strow .fbn{flex:1 0 100%;margin-top:2px;color:var(--ink);font-weight:400;white-space:normal}
  .strow .fbn.dd{padding-left:20px}
  /* live_weather_overlay.dart: no readings at all = the graph area says so, 12 px in the border grey */
  .lvnone{display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--border)}
  .lvnone.openmsg{height:40px}   /* an open column with nothing to add (Adjust view all off) */
  /* alert_tile.dart: the live icon turns dark blue while the column shows dashes or a stand-in station */
  .hg > .lv svg.sens.muted{stroke:var(--ink)}
  .hg > .lv svg.sens.muted circle{fill:var(--ink)}
  .stmenu{position:absolute;left:0;top:100%;z-index:20;background:var(--card);min-width:260px;box-shadow:0 6px 24px rgba(10,40,89,.18);padding:6px 0}
  /* the station list inside the page's pop-up (owner 2026-11-20): the same rows, full width of the pop-up, the shown one bold */
  .stmenu.inl{position:static;box-shadow:none;min-width:0;padding:0 0 6px;margin:0 -24px;background:#fff}
  .stmenu.inl button{padding:0 24px;font-size:14px}
  .stmenu.inl button.on{font-weight:700}
  .stmenu button{display:flex;width:100%;height:44px;align-items:center;padding:0 16px;font-size:13px;color:var(--ink);gap:8px;text-align:left}
  .stmenu button:hover{background:rgba(10,40,89,.05)}
  .stmenu .km{margin-left:auto;color:rgba(10,40,89,.45)}
  .stmenu .sep{display:flex;align-items:center;gap:8px;height:28px;padding:0 12px;font-size:11px;color:var(--border)}
  .stmenu .sep i{flex:1;height:.5px;background:var(--border)}
  .mini{position:absolute;width:68px;height:68px;right:20px;bottom:56px;background:#26323c center/cover no-repeat;pointer-events:none;z-index:2}
  .mini svg{position:absolute;inset:0}
  /* the Mapbox / OSM credit inside the image (spot pages' .mapCredit, smaller for the 68 px map) */
  .miniCredit{position:absolute;right:0;bottom:0;z-index:3;padding:0 2px;background:rgba(255,255,255,.8);font:4.6px/1.3 Cabin,sans-serif;text-align:right;color:#333;pointer-events:auto;white-space:nowrap}
  .miniCredit a{color:#333;text-decoration:none}
  .miniCredit a:hover{text-decoration:underline}
  .vlab{position:absolute;font-size:11px;font-weight:700;line-height:1.2;padding:1px 4px;pointer-events:none}

  /* Cams + conditions: open under the tile header, side by side */
  .extras{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start;margin:0 0 8px}
  .camrow{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;flex:1 1 100%;min-width:0}
  .camrow .cam{flex:0 0 400px;text-decoration:none}
  .cam{aspect-ratio:16/9;background:#1d2733;color:#fff;position:relative;display:flex;align-items:center;justify-content:center;font-family:Cabin,sans-serif}
  .cam .nm{position:absolute;left:10px;bottom:8px;font-size:12px;opacity:.9}
  .cam .pl{width:48px;height:48px;fill:#fff;opacity:.9}
  .cam.link{background:#fff;color:var(--ink);flex-direction:column;gap:6px;font-size:13px}
  .ibtn.on{box-shadow:inset 0 -2px var(--ink)}   /* selected = dark blue (owner rule), as the selected tab's underline */
  .cam.link svg{width:20px;height:20px;fill:var(--ink)}
  .cam.link .nm{position:static;opacity:.75}
  .cond{flex:1 1 100%;background:#fff;padding:0 12px 12px;font-family:Cabin,sans-serif}
  .ctabs{display:flex;gap:18px;border-bottom:1px solid var(--line);align-items:flex-end}
  .ctabs button{padding:10px 0 7px;font-size:14px;border-bottom:2px solid transparent;color:rgba(10,40,89,.6)}
  .ctabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--ink);font-weight:700}
  .cbody{display:flex;flex-wrap:wrap;gap:0 28px;align-items:flex-start;padding-top:8px}
  .cbody .specs{flex:1 1 360px;max-width:760px;columns:2 340px;column-gap:28px}   /* reads top to bottom, then the next column */
  .cbody .specs .spec{break-inside:avoid}
  /* functions/spot-pages/spot-pages.css: .mapFig / .mapCap / .roseBox / .mapCredit */
  .pMaps{display:flex;flex-wrap:wrap;gap:0 16px;padding-top:2px}
  .mapFig{margin:0;width:150px}
  .mapCap{display:block;margin:0 0 8px;padding-bottom:2px;border-bottom:1px solid var(--line);font-size:11px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;color:rgba(10,40,89,.7);line-height:20px;white-space:nowrap}
  .roseBox{position:relative;width:150px;height:150px;overflow:hidden;background:#cfd8e0}
  .roseBox img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .roseBox svg{position:absolute;inset:0;width:100%;height:100%}
  .mapCredit{position:absolute;bottom:0;right:0;z-index:5;font-size:6.5px;line-height:1.3;background:rgba(255,255,255,.8);padding:0 3px;white-space:nowrap;color:#333;font-family:Cabin,sans-serif}
  .mapCredit a{text-decoration:none;margin-left:2px;color:#333}
  .mapCredit a:first-child{margin-left:0}
  .mapCredit a:hover{text-decoration:underline}
  .spec{display:grid;grid-template-columns:86px 96px minmax(0,1fr);align-items:center;gap:8px;min-height:30px;font-size:13px}
  .spec.wide{grid-template-columns:86px minmax(0,1fr)}
  .spec .sl{opacity:.75}
  .spec .sv{font-weight:700}
  .bar{position:relative;height:7px;margin:0 6px}
  .bar .base{position:absolute;inset:0}
  .bar .mk{position:absolute;top:5px;width:12px;height:10px;margin-left:-6px}
  .gen{margin-top:12px;font-size:11px;color:rgba(10,40,89,.62);line-height:1.45}

  /* Menus and dialogs */
  .pop{position:absolute;z-index:50;background:var(--card);box-shadow:0 6px 24px rgba(10,40,89,.18);min-width:190px;padding:6px 0;font-family:Cabin,sans-serif}
  .pop button,.pop a{display:flex;align-items:center;gap:12px;width:100%;padding:10px 16px;font-size:14px;color:var(--ink);text-decoration:none;text-align:left}
  .pop button:hover,.pop a:hover{background:rgba(10,40,89,.05)}
  .pop svg{width:16px;height:16px;fill:var(--ink)}
  .scrim{position:fixed;inset:0;background:rgba(10,40,89,.25);z-index:60;display:flex;align-items:center;justify-content:center;font-family:Cabin,sans-serif}
  .dlg{background:#fff;position:relative}
  .kv{display:grid;grid-template-columns:150px 1fr;gap:8px 12px;font:14px/1.4 Cabin,sans-serif;padding-bottom:12px}
  .kv span:nth-child(odd){color:rgba(10,40,89,.7)}
  .kv span:nth-child(even){font-weight:700}
  /* The partner pop-up = the app's partner_info_dialog.dart (owner 2026-11-22: copied a-z). Header: the partner's name
     with the 16 px primary star (InfoGroupHeader leading). Body type = AppTextStyles.body: 14 px, line height 1.35. */
  .ghead .pstar{width:16px;height:16px;fill:var(--primary);vertical-align:-3px;margin-right:6px}
  .pinfo{font:14px/1.35 Cabin,sans-serif;color:var(--ink);margin-top:-4px}
  .plogo{margin:6px 0 6px}   /* _NetworkLogoBox: left, max 96 px high, contained */
  .plogo img{display:block;max-height:96px;max-width:100%;object-fit:contain}
  .pkv{display:flex;align-items:center;padding-top:2px}                          /* _kvRow */
  .pkl{flex:0 0 74px;width:74px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pkvv{min-width:0;padding:1px 0;line-height:1.1;color:var(--primary);text-decoration:underline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}                   /* the business types: primary chips, square */
  .pchip{padding:6px 10px;background:var(--primary);border:1px solid var(--primary);color:#fff;font:11px/1 Cabin,sans-serif}
  .pdesc{display:flex;max-height:170px;margin-top:12px}                            /* _descriptionBox: 170 px, scrolls, the 3 px bar */
  .pdt{flex:1;min-width:0;overflow-y:auto;padding:8px 12px 8px 0;white-space:pre-line;scrollbar-width:none}
  .pdt::-webkit-scrollbar{display:none}
  .pdesc > i{flex:0 0 3px;margin:8px 0;background:#E0E0E0}
  .pempty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 12px;background:#FAFAFA;color:#616161;text-align:center;line-height:1.25}
  .pempty .psq{width:22px;height:22px;border:1.6px solid #757575;color:#757575;display:inline-flex;align-items:center;justify-content:center;font:700 13px/1 Cabin,sans-serif}
  .info.sq{width:17px;height:17px;flex:0 0 17px;cursor:pointer}
  /* the app's Guide (info_dialog.dart / info_rows.dart) */
  .guide{max-height:86vh;overflow-y:auto;padding:0 24px 10px}
  /* the top stays in view while the guide scrolls, so the close button is always there */
  .gtop{position:sticky;top:0;z-index:2;background:#fff;margin:0 -24px;padding:6px 56px 0 24px}
  .gtop .x{position:absolute;right:8px;top:8px}
  /* pop-up section headers = the WEBSITE's group header (share page .groupH, owner 2026-11-20): 12 px bold, .08em, uppercase */
  .ghead{margin:30px 0 10px;padding-bottom:6px;border-bottom:1px solid rgba(172,179,189,.45);font:700 12px Cabin,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:rgba(10,40,89,.7)}
  .ghead.first{margin-top:14px}
  .gnote{margin:-2px 0 14px;font:13px/1.5 Cabin,sans-serif;color:rgba(10,40,89,.78)}
  .grow{display:grid;grid-template-columns:24px 1fr;column-gap:10px;padding-bottom:14px;font-family:Cabin,sans-serif}
  .gic svg{width:20px;height:20px;fill:var(--primary);display:block}
  .gic svg.sens{fill:none;stroke:var(--primary)} .gic svg.sens circle{fill:var(--primary);stroke:none}
  .gti{font-size:14px;font-weight:700;color:var(--ink)}
  .gbo{font-size:13px;line-height:1.45;color:var(--ink);margin-top:2px}
  .shl{display:flex;align-items:center;gap:10px;margin:0 0 4px;padding:6px 6px 6px 10px;background:var(--card);font-family:Cabin,sans-serif}
  .shu{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
  .shl .btn{height:34px;flex:0 0 auto}
  .shq{display:flex;align-items:center;gap:16px;margin:14px 0 12px}
  .shq canvas{width:140px;height:140px;flex:0 0 140px;background:#fff}


  /* ---- The view's bar (owner 2026-11-20, round 2): the logo alone, centred (the app's AppBar); row 2 = the app's band:
     the counts centred, settings / Log out / refresh / the refresh time left, Highlight / help right. ONE text style for
     every text on the row: 12 px Cabin, normal, dark blue, no exceptions (links underline on hover only). Icons 16 px.
     Logo 48 px = the app's 4 : 1 logo-to-band-text proportion (40 px logo, 10 px band). Scoped to .vbar: the login /
     paused bar (barScreen) is unchanged. ---- */
  #bar .vbar .row{grid-template-areas:none;padding:0;gap:16px;grid-template-columns:1fr auto 1fr;align-items:center;
                  width:max(var(--ww), min(760px, calc(100% - 40px)));max-width:calc(100% - 16px);margin:0 auto}
  /* ^ the bar = the CARDS' width at every size (owner 2026-11-21): its outer actions (Log out, Show all, the menu icon)
     line up with the card edge. Never narrower than 760 px while the window allows it, so the action cluster always fits
     (a spot list of only a few hours can make the cards narrower than that). Overrides the old narrow rule on #bar .row. */
  #bar .vbar .row.top{height:72px}   /* 12 px above and below the 48 px logo (owner 2026-11-22; was 60) */
  #bar .vbar .row.top .logoa{grid-column:2;justify-self:center}
  #bar .vbar .row.top .logo{grid-area:auto;grid-column:2;justify-self:center;height:48px;margin:0}
  #bar .vbar .navbtn{display:inline-flex;grid-area:auto;justify-content:flex-end;width:40px}   /* ONE menu style at every width (owner 2026-11-21) */
  #bar .vbar .navbtn svg{margin-right:-2.5px}   /* the menu glyph has 2.5 px of built-in side space: its visible edge on the card edge, like Highlight */
  #bar .vbar .row.top .side.r{position:relative}
  #bar .vbar .navmenu{right:0;top:calc(100% + 6px)}   /* opens right under the ☰, not at the window edge */
  #bar .vbar .row.band{height:34px;padding-bottom:12px}   /* one band height at every width; 12 px under the counts (owner 2026-11-22; was 28 / 6) */
  #bar .vbar .tx{font:400 12px/20px "Cabin",sans-serif;color:var(--ink);white-space:nowrap;text-decoration:none}
  #bar .vbar .lk{cursor:pointer}
  #bar .vbar .lk:hover{text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px}
  #bar .vbar .hlw{position:static}   /* the older #bar .hlw rules (grey, underlined, absolute when narrow) never apply here */
  #bar .vbar .tx.warn{display:inline-flex;align-items:center;gap:6px}
  #bar .vbar .tx.warn svg{width:16px;height:16px;fill:var(--ink)}
  #bar .vbar .sum{grid-column:2;justify-self:center}
  #bar .vbar .sum .sep{margin:0 5px}
  #bar .vbar .side{display:flex;align-items:center;gap:16px;min-width:0;white-space:nowrap}
  #bar .vbar .side.r{grid-column:3;justify-self:end}   /* fixed columns: the counts stay centred when a side hides */
  /* refresh = its icon + its time as ONE button (owner 2026-11-20: attached, always tappable); the text keeps the row style */
  #bar .vbar .rfb{display:inline-flex;align-items:center;gap:5px;height:28px;color:var(--ink)}
  #bar .vbar .rfb svg{width:16px;height:16px;fill:var(--ink);flex:0 0 16px}
  #bar .vbar .rfb:hover .tx{text-decoration:underline;text-underline-offset:3px}
  /* narrow: the app's look, the logo row with the menu; the band = the counts + Highlight at the right edge (same style) */
  @media (max-width:980px){
    #bar .vbar .row{gap:0}
    #bar .vbar .row.band{padding:0 0 12px}   /* Show all on the card edge too */
  }

  @media (max-width:760px){ #bar .vbar .rfb .upw{display:none} }   /* narrower: "Highlight  ⟳ 15:09", never into the counts */

  /* ---- Weather Icons (self-hosted, SIL OFL): the glyphs the app's Sky row draws (weather_icons) ---- */
  @font-face{font-family:"Weather Icons";font-weight:400;font-style:normal;font-display:block;src:url("vendor/weathericons-regular-webfont.woff2") format("woff2")}
  .wi{font-family:"Weather Icons";font-style:normal;font-weight:400;font-size:14px;line-height:1;display:inline-block}

  /* ============================================================================================================
     THE SCREENS AROUND THE VIEW (docs/desktop-view-plan.md §16, LOCKED 2026-11-20 = Website/drafts/desktop-view/screens.html
     draft 7): login, first load, paused, "this page is for your phone", the bridge and the phone block. Scoped under
     .scr so the view's own pop-up classes (.ghead, .grow, .btn) stay untouched. Type = the WEBSITE's page system.
     ============================================================================================================ */
  .scr{--caption:#7E8794;--hair:rgba(172,179,189,.45);--primary-down:#0099D4;font-family:"Cabin",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.5}
  .scr.page{padding:56px 20px 72px}
  .scr .h1{margin:0;font:700 26px/1.2 Cabin,sans-serif}
  @media (max-width:599px){ .scr .h1{font-size:24px} }
  .scr .lead{margin:8px 0 0;font:16px/1.5 Cabin,sans-serif;color:rgba(10,40,89,.75)}
  .scr .need{margin:14px 0 0;font:600 16px/1.4 Cabin,sans-serif;color:var(--ink)}
  .scr .caption{font:14px/1.45 Cabin,sans-serif;color:var(--caption)}
  /* the share page's group header (owner 2026-11-20: the website's 12 px, also for the pop-ups) */
  .scr .groupH{margin:36px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--hair);font:700 12px Cabin,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:rgba(10,40,89,.7)}
  .scr .body15{margin:0;font:15px/1.5 Cabin,sans-serif;color:rgba(10,40,89,.75)}
  .scr .badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
  .scr .badges img{display:block;width:130px;height:40px}
  .scr .tlink{font:700 16px Cabin,sans-serif;color:var(--ink);text-decoration:underline;text-decoration-color:var(--hair);text-underline-offset:3px;cursor:pointer;background:none;border:0;padding:0}
  .scr .tlink:hover{text-decoration-color:var(--ink)}
  /* buttons: square, Cabin 700; filled = primary (hover #0099D4), outline = white with a 1 px ink edge */
  .scr .fbtn,.scr .obtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:4px 24px;font:700 16px/1.15 Cabin,sans-serif;text-decoration:none;cursor:pointer;border-radius:0;transition:background .15s}
  .scr .fbtn{background:var(--primary);color:#fff;border:0}
  .scr .fbtn:hover{background:var(--primary-down)}
  .scr .obtn{background:#fff;color:var(--ink);border:1px solid var(--ink)}
  .scr .obtn:hover{background:rgba(10,40,89,.06)}
  .scr .obtn[disabled]{opacity:.5;cursor:default}
  .scr .fbtn.wide{display:flex;width:100%}

  /* the login: what this page is + the steps on the left, the card on the right (layout B) */
  /* Three blocks (owner 2026-11-22): wide = intro + "New to SurfSignal?" on the left, the QR card on the right over both
     (one height, owner 2026-11-21: the card in balance with the text); one column = intro, the QR card, then the promo. */
  .scr .colB{max-width:820px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto 1fr;
             grid-template-areas:"intro card" "newto card";column-gap:56px;row-gap:0;align-items:stretch}
  .scr .colB > .intro{grid-area:intro}
  .scr .colB > .newto{grid-area:newto}
  .scr .colB > .right{grid-area:card;display:flex;flex-direction:column}
  .scr .colB > .right > .lcard{flex:1 1 auto;justify-content:center}
  @media (max-width:760px){
    .scr .colB{grid-template-columns:1fr;grid-template-rows:none;grid-template-areas:"intro" "card" "newto";row-gap:28px;max-width:440px}
    .scr .colB > .newto .groupH{margin-top:8px}   /* 28 + 8 = the 36 px the header has above it in the wide layout */
  }
  /* the card: the QR AND the code field in one view */
  .scr .lcard{background:var(--card);padding:18px;display:flex;flex-direction:column;align-items:center;gap:10px;position:relative}   /* trimmed to the text column's height (owner 2026-11-21) */
  .scr .qrbox{width:184px;height:184px;background:#fff;padding:8px;position:relative}
  .scr .qrbox canvas{width:168px;height:168px;display:block}   /* 168 px still scans easily from a screen; drawn at 400 px for sharpness */
  .scr .qrbox.off canvas{opacity:.12}
  .scr .qrbox.wait canvas{opacity:0}
  .scr .qrveil{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px}
  .scr .clabel{font:600 14px Cabin,sans-serif;margin-top:2px}
  .scr .fail{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;min-height:300px;justify-content:center}
  .scr .fail svg{width:28px;height:28px;fill:var(--ink)}
  .scr .fail b{font-size:16px;font-weight:600;line-height:1.3}
  .scr .fail .caption{margin-top:-6px}
  .scr .fail .fbtn{margin-top:6px}
  /* a message under the code field, with the view's square icon; ink, never red */
  .scr .lnote{display:flex;align-items:flex-start;gap:8px;max-width:292px;font:14px/1.4 Cabin,sans-serif;text-align:left}
  .scr .sq{width:17px;height:17px;flex:0 0 17px;border:1.4px solid var(--ink);display:inline-flex;align-items:center;justify-content:center;font:700 10px/1 Cabin,sans-serif;margin-top:1px}
  /* the 6-digit field: six white boxes, one real input on top (paste + one-time-code autofill work) */
  .scr .otp{position:relative;display:flex;gap:8px}
  .scr .otp span{width:42px;height:52px;background:#fff;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font:700 22px Cabin,sans-serif}
  .scr .otp span.cur{border:2px solid var(--ink)}
  /* grouped 3 + 3 like the app's approval sheet ("123 456", owner 2026-11-20): a wider gap after the third box */
  .scr .otp span:nth-of-type(3){margin-right:10px}
  .scr .otp input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;border:0;padding:0;cursor:text;caret-color:transparent}

  /* centred pages (paused, the bridge opened on a computer): icon, the h1, the actions */
  .scr .centre{display:flex;flex-direction:column;align-items:center;gap:12px;padding:88px 20px 48px;text-align:center}
  .scr .centre > svg{width:32px;height:32px;fill:var(--ink)}
  .scr .centre .acts{margin-top:12px;display:flex;flex-direction:column;align-items:center;gap:10px}
  .scr .centre .acts.inline{flex-direction:row;gap:8px;margin-top:0}
  .scr .hair{width:100%;max-width:440px;height:1px;background:var(--hair);margin:28px 0 12px}

  /* first load: MIRRORS the app (home_screen.dart first-alert overlay): white, 18 bold dark blue, 16 px gap, the spinner */
  .scr .firstload{min-height:calc(100vh - 64px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:20px;text-align:center}
  .scr .firstload b{font:700 18px Cabin,sans-serif}
  .spin{width:36px;height:36px;animation:ssrot 1.4s linear infinite;display:block}
  .spin circle{fill:none;stroke:var(--primary);stroke-width:4;stroke-dasharray:1 200;stroke-dashoffset:0;animation:ssdash 1.4s ease-in-out infinite}
  @keyframes ssrot{to{transform:rotate(360deg)}}
  @keyframes ssdash{0%{stroke-dasharray:1 200;stroke-dashoffset:0}50%{stroke-dasharray:75 200;stroke-dashoffset:-25}100%{stroke-dasharray:75 200;stroke-dashoffset:-99}}

  /* the phone pages (the bridge, the phone block): WHITE, no box, no shadow, left-aligned; the button in the website's
     bottom bar */
  .scr.phonepage{min-height:100vh;min-height:100svh;background:#fff}   /* svh = the screen WITH the browser bars showing: no scroll on a phone (100vh is taller there; owner 2026-11-21) */
  .scr .phead{padding:calc(18px + env(safe-area-inset-top)) 18px 0;display:flex;justify-content:center}
  .scr .phead img{height:44px;width:auto;display:block}
  .scr .pbody{padding:28px 18px 140px}
  .scr .pbody .ghead{margin:0 0 18px;padding-bottom:6px;border-bottom:1px solid rgba(172,179,189,.45);font:700 12px Cabin,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:rgba(10,40,89,.7)}
  .scr .pbody .grow{display:grid;grid-template-columns:24px 1fr;column-gap:10px;padding:0}
  .scr .pbody .gic svg{width:20px;height:20px;fill:var(--primary);display:block}
  .scr .pbody .gti{font:700 14px/1.4 Cabin,sans-serif;color:var(--ink)}
  .scr .pbody .gbo{font:13px/1.45 Cabin,sans-serif;color:var(--ink);margin-top:2px}
  /* the bridge on a phone (owner 2026-11-20): the logo on top, ONE block in the middle of the screen: icon, one line, the
     button right under it, the "Nothing happened?" note under the button. Read and tap in one place. */
  .scr.phonepage{display:flex;flex-direction:column}
  .scr .pmid{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:16px 24px 24px}
  .scr .pmid .pic svg{width:32px;height:32px;fill:var(--primary);display:block}
  .scr .pmid .pline{margin:14px 0 22px;max-width:320px;font:600 18px/1.4 Cabin,sans-serif;color:var(--ink)}
  .scr .pmid .fbtn.wide{max-width:320px}
  .scr .pmid .pline + .psub{margin:-16px 0 22px}   /* the phone page's second line, tucked under the first */
  .scr .pmid .psub{max-width:320px;font:14px/1.5 Cabin,sans-serif;color:rgba(10,40,89,.75)}
  /* the phone page's address box (owner 2026-11-21): the share pop-up's link box (card colour), one tap selects it all */
  .scr .pmid .urlbox{width:100%;max-width:320px;padding:12px 16px;background:var(--card);font:600 16px/1.3 Cabin,sans-serif;color:var(--ink);user-select:all;-webkit-user-select:all;word-break:break-all}
  .scr .pmid .note{margin-top:16px;font:13px/1.35 Cabin,sans-serif;color:var(--caption)}
  .scr .pmid .note a{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--hair);text-underline-offset:3px}
  /* the bridge's "New to SurfSignal?" (owner 2026-11-20): the login page's block, centred under the main block, quieter */
  .scr .pnew{width:100%;max-width:360px;margin:0 auto;padding:0 24px calc(18px + env(safe-area-inset-bottom));text-align:center}
  .scr .pnew .groupH{margin:0 0 10px}
  .scr .pnew .body15{margin:0;font:14px/1.5 Cabin,sans-serif;color:rgba(10,40,89,.75)}
  .scr .pnew .badges{justify-content:center;margin-top:14px}
  .scr .pnew .caption{margin:10px 0 0;font-size:13px}
  .scr .pbar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--hair);padding:14px 18px calc(16px + env(safe-area-inset-bottom))}
  .scr .pbar .note{font:13px/1.35 Cabin,sans-serif;color:var(--caption);margin-bottom:12px}
  .scr .pbar .note a{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--hair);text-underline-offset:3px}
  .scr .pbar .inner{max-width:600px;margin:0 auto}
