:root{
  --ink:#e9eeec;
  --glass:rgba(255,255,255,.82);
  --glass-2:rgba(16,40,36,.05);
  --glass-3:rgba(16,40,36,.085);
  --edge:rgba(16,40,36,.10);
  --edge-2:rgba(16,40,36,.065);
  --fg:#12201c;
  --fg-2:#56685f;
  --fg-3:#8a9892;
  --surface:#ffffff;
  --surface-2:rgba(255,255,255,.97);
  --scroll:#c6cfcb;
  --live:#0d8470;
  --live-2:#0a6b5b;
  --live-soft:rgba(13,132,112,.11);
  --shadow:0 18px 50px -12px rgba(18,38,34,.22), 0 2px 6px rgba(18,38,34,.06);
  --shadow-sm:0 1px 2px rgba(18,38,34,.08), 0 2px 8px rgba(18,38,34,.06);
  --r:20px;
  --mono:'JetBrains Mono',ui-monospace,monospace;
}
/* After dark (night.js sets html.night when the sun is well below the horizon
   at the map centre): the same chrome on dark glass, text lightened to match. */
html.night{
  --ink:#0f1620;
  --glass:rgba(22,30,42,.84);
  --glass-2:rgba(255,255,255,.06);
  --glass-3:rgba(255,255,255,.1);
  --edge:rgba(255,255,255,.12);
  --edge-2:rgba(255,255,255,.07);
  --fg:#e8edf2;
  --fg-2:#aab6c1;
  --fg-3:#7d8a96;
  --surface:#1b2536;
  --surface-2:rgba(24,33,48,.97);
  --scroll:#3a4656;
  --live:#2fb39a;
  --live-2:#27997f;
  --live-soft:rgba(47,179,154,.16);
  --shadow:0 18px 50px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
  --shadow-sm:0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
}
.glass,.brand,.credit,.about,.fb-dialog,.s-list,.leaflet-popup-content-wrapper,.leaflet-popup-tip,.plabel,.ibtn{
  transition:background-color .8s,color .8s,border-color .8s}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{font-family:'Space Grotesk',system-ui,sans-serif;background:var(--ink);color:var(--fg);overflow:hidden;
     -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
a{color:var(--live);text-decoration:none}
a:hover{color:var(--live-2);text-decoration:underline}
button{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--live);outline-offset:2px}
#map{position:absolute;inset:0;background:#e8ecea;z-index:0}
.leaflet-tile-pane{filter:saturate(1.12) brightness(1.03) contrast(.94);transition:filter 1.5s}
#map{transition:background 1.5s}
body{transition:background 1.5s}
.leaflet-container{background:#e8ecea;font-family:inherit}
.leaflet-tile{opacity:1!important}

.ui{position:absolute;inset:0;z-index:500;pointer-events:none}
.ui > *{pointer-events:auto}
.glass{background:var(--glass);backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);
       border:1px solid var(--edge);border-radius:var(--r);box-shadow:var(--shadow)}

/* identity */
.brand{position:absolute;top:24px;left:24px;width:340px;pointer-events:none;display:flex;align-items:center;gap:14px;
       padding:14px 18px;border-radius:var(--r);background:var(--glass);border:1px solid var(--edge);
       backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);box-shadow:var(--shadow)}
.brand > div:first-child{display:flex;align-items:baseline;gap:12px}
.word{font-size:30px;font-weight:700;letter-spacing:-.04em;line-height:1}
.word b{font-weight:700}
.word em{font-style:normal;color:var(--live)}
.tag{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:700;
     letter-spacing:.16em;text-transform:uppercase;color:var(--live);background:var(--live-soft);
     padding:4px 9px 4px 8px;border-radius:999px;transform:translateY(-3px)}
.pulse{width:6px;height:6px;border-radius:50%;background:var(--live);flex:none;
       box-shadow:0 0 0 0 rgba(14,134,114,.55);animation:pl 2.4s infinite}
@keyframes pl{0%{box-shadow:0 0 0 0 rgba(14,134,114,.45)}70%{box-shadow:0 0 0 8px rgba(14,134,114,0)}100%{box-shadow:0 0 0 0 rgba(14,134,114,0)}}
.clock{margin-left:auto;font-family:var(--mono);font-size:12.5px;font-weight:500;color:var(--fg-2);letter-spacing:.02em;
       font-variant-numeric:tabular-nums}

/* panel */
.panel{position:absolute;top:104px;bottom:64px;left:24px;width:340px;display:flex;flex-direction:column;overflow:hidden}
.tabs{display:flex;margin:10px 10px 0;padding:4px;gap:2px;background:var(--glass-2);border-radius:14px;flex:none}
.tab{flex:1;border:0;background:transparent;font:inherit;font-size:13px;font-weight:600;color:var(--fg-2);
     padding:8px 2px;border-radius:10px;cursor:pointer;letter-spacing:-.01em;white-space:nowrap;
     transition:background .18s,color .18s,box-shadow .18s}
.tab:hover{color:var(--fg)}
.tab[aria-selected="true"]{background:var(--surface);color:var(--fg);box-shadow:var(--shadow-sm)}
.body{overflow-y:auto;overflow-x:hidden;flex:1;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}
.body::-webkit-scrollbar{width:7px}
.body::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:4px}
.body[hidden]{display:none}

/* live readout */
.readout{margin:10px 10px 2px;padding:14px 16px;border-radius:14px;background:var(--live-soft);
         display:flex;align-items:center;gap:12px}
.big{font-family:var(--mono);font-weight:700;font-size:34px;line-height:1;letter-spacing:-.05em;
     color:var(--live);font-variant-numeric:tabular-nums}
.big.idle{color:var(--fg-3)}
.rlab{font-size:12px;color:var(--fg-2);line-height:1.35}
.rlab b{display:block;color:var(--fg);font-weight:600;font-size:14px}
.stamp{margin-left:auto;font-family:var(--mono);font-size:10.5px;color:var(--fg-2);text-align:right;white-space:nowrap;
       background:var(--surface);padding:3px 7px;border-radius:6px}

.head{padding:16px 20px 6px;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--fg-3)}

/* rows: a coloured dot names the layer, the switch on the right says whether it is shown */
.row{position:relative;display:grid;grid-template-columns:1fr auto 34px;gap:12px;align-items:center;margin:1px 8px;padding:10px 12px;
     border-radius:12px;cursor:pointer;transition:background .14s}
.row:hover{background:var(--glass-2)}
.row.on{background:transparent}
.row.on:hover{background:var(--glass-2)}
.row > span:nth-child(2){min-width:0}
.bar{order:3;position:relative;width:34px;height:20px;border-radius:999px;background:var(--glass-3);
     box-shadow:inset 0 0 0 1px var(--edge);transition:background .18s}
.bar::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--surface);
            box-shadow:0 1px 3px rgba(18,38,34,.3);transition:transform .18s}
.row.on .bar{background:currentColor;box-shadow:none}
.row.on .bar::after{transform:translateX(14px);background:#fff}
/* the text column inherits the row's layer colour, so its dot can use currentColor */
.row > span:nth-child(2){position:relative;padding-left:17px}
.row > span:nth-child(2)::before{content:"";position:absolute;left:0;top:6px;width:9px;height:9px;border-radius:3px;background:currentColor}
.rname{display:block;font-size:14px;font-weight:600;color:var(--fg);letter-spacing:-.01em}
.rsub{display:block;font-size:12px;color:var(--fg-2);margin-top:2px;line-height:1.35}
.rnum{font-family:var(--mono);font-size:14px;font-weight:700;color:var(--fg-3);font-variant-numeric:tabular-nums;
      text-align:right;min-width:28px}
.row.on .rnum{color:var(--fg)}
.rnum.hot{cursor:pointer;border-radius:8px;padding:3px 6px;margin:-3px -6px;transition:background .14s,color .14s}
.rnum.hot:hover{background:var(--live-soft);color:var(--live)}
.rnum small{visibility:hidden}
.row.on .rnum small{visibility:visible}
.rnum small{display:block;font-size:9px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
            color:var(--fg-3);margin-top:2px;font-family:'Space Grotesk',sans-serif}
.rnum button{border:0;background:none;color:var(--live);font:inherit;font-size:10.5px;cursor:pointer;
             text-decoration:underline;padding:0}
.row.nofeed{cursor:default;opacity:.5}
.row.nofeed:hover{background:transparent}
.row.nofeed .rnum{color:var(--fg-3);font-size:11.5px;font-weight:400;font-family:'Space Grotesk',sans-serif}

.filt{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;margin:0 10px 6px 28px;padding:7px 12px;
      border-radius:10px;cursor:pointer;font-size:12.5px;color:var(--fg-2);background:var(--glass-2)}
.filt:hover{background:var(--glass-3)}
.filt input{accent-color:var(--live);width:15px;height:15px;margin:0;grid-row:span 2}
.filt span{font-weight:600;color:var(--fg)}
.filt small{font-size:11px;color:var(--fg-3);line-height:1.3}
.note{margin:12px 10px 4px;padding:12px 14px;font-size:11.5px;color:var(--fg-2);line-height:1.55;
      border-radius:12px;background:var(--glass-2)}

/* search */
.search{position:relative;display:flex;align-items:center;gap:8px;padding:0 6px 0 14px;height:44px;width:280px;border-radius:14px;
        transition:box-shadow .18s,border-color .18s}
.search:focus-within{border-color:var(--live);box-shadow:0 0 0 3px var(--live-soft),var(--shadow)}
.search svg{width:17px;height:17px;color:var(--fg-3);flex:none}
.search input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:14px;color:var(--fg);outline:none;height:100%}
.search input:focus-visible{outline:none}
.search input::placeholder{color:var(--fg-3)}
.search input::-webkit-search-cancel-button{display:none}
.search > button{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:var(--fg-3);font:inherit;font-size:17px;cursor:pointer;flex:none}
.search > button:hover{background:var(--glass-2);color:var(--fg)}
.s-list{position:absolute;top:50px;left:0;right:0;display:flex;flex-direction:column;padding:6px;border-radius:14px;
        background:var(--surface-2);border:1px solid var(--edge);box-shadow:var(--shadow);max-height:60vh;overflow:auto}
.s-hit{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;text-align:left;border:0;background:transparent;font:inherit;
       padding:9px 11px;border-radius:10px;cursor:pointer;color:var(--fg)}
.s-hit b,.s-hit small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s-hit b{font-size:13.5px;font-weight:600}
.s-hit small{font-size:11.5px;color:var(--fg-2)}
.s-hit:hover,.s-hit.active{background:var(--live-soft)}
.s-none{padding:10px 12px;font-size:13px;color:var(--fg-3)}
.pin.search i{background:var(--fg);width:11px;height:11px}
.plabel.search{font-size:12.5px}

/* top right */
.tr{position:absolute;top:24px;right:24px;display:flex;gap:8px;align-items:flex-start}
.seg{display:flex;padding:4px;gap:2px;border-radius:14px;height:44px}
.seg button{border:0;background:transparent;font:inherit;font-size:12.5px;font-weight:700;color:var(--fg-2);
            padding:0 13px;border-radius:10px;cursor:pointer;letter-spacing:.03em;transition:background .18s,color .18s}
.seg button:hover{color:var(--fg)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:var(--shadow-sm)}
.ibtn{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;cursor:pointer;
      color:var(--fg-2);background:var(--glass);backdrop-filter:blur(20px);
      -webkit-backdrop-filter:blur(20px);border:1px solid var(--edge);box-shadow:var(--shadow)}
.ibtn:hover{color:var(--live)}
.ibtn svg{width:19px;height:19px}

.rail{position:absolute;top:80px;right:24px;width:44px;display:flex;flex-direction:column;align-items:center;
      padding:4px 0;border-radius:14px}
.rail button{width:36px;height:34px;border:0;background:none;font:inherit;font-size:19px;color:var(--fg-2);
             cursor:pointer;border-radius:10px;line-height:1}
.rail button:hover{background:var(--glass-2);color:var(--live)}
.rail hr{width:20px;border:0;border-top:1px solid var(--edge);margin:2px 0}

.credit{position:absolute;left:24px;bottom:20px;font-size:10px;color:var(--fg-2);max-width:340px;line-height:1.45;
        background:var(--glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
        border:1px solid var(--edge-2);border-radius:999px;padding:5px 12px}
.credit a{color:var(--fg-2)}

/* about */
.scrim{position:absolute;inset:0;background:rgba(18,32,28,.38);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
       display:none;place-items:center;z-index:900;padding:24px}
.scrim.open{display:grid}
.about{max-width:560px;width:100%;padding:32px 34px 28px;max-height:84vh;overflow:auto;background:var(--surface-2);border-radius:24px}
.about h2{font-size:26px;font-weight:700;letter-spacing:-.03em;margin:0 0 10px}
.about p{font-size:14px;line-height:1.65;color:var(--fg-2);margin:0 0 6px}
.about dl{margin:18px 0 14px;font-size:13px;line-height:1.55;border-top:1px solid var(--edge-2)}
.about dt{font-weight:600;color:var(--fg);padding-top:12px}
.about dd{margin:2px 0 0;padding-bottom:12px;color:var(--fg-2);border-bottom:1px solid var(--edge-2)}
.about .x{margin-top:18px;border:0;background:var(--live);color:#fff;font:inherit;font-weight:700;font-size:14px;
          padding:12px 24px;border-radius:999px;cursor:pointer}
.about .x:hover{background:var(--live-2)}

/* leaflet */
.leaflet-popup-content-wrapper{background:var(--surface-2);backdrop-filter:blur(14px);border:1px solid var(--edge);
  border-radius:13px;box-shadow:var(--shadow);color:var(--fg)}
.leaflet-popup-content{margin:12px 15px;font-size:13px}
.leaflet-popup-content b{display:block;font-size:14px;font-weight:600;margin-bottom:3px;letter-spacing:-.01em}
.leaflet-popup-content small{color:var(--fg-2);font-size:12px;font-family:var(--mono)}
.leaflet-popup-tip{background:var(--surface-2)}
.leaflet-popup-close-button{color:var(--fg-3)!important}
.leaflet-container a.leaflet-popup-close-button:hover{color:var(--fg)!important}
.leaflet-control-attribution{background:var(--glass)!important;color:var(--fg-3)!important;font-size:10px!important;
  border-radius:7px;padding:2px 7px!important}
.leaflet-control-attribution a{color:var(--fg-2)!important}

.pin i{width:9px;height:9px;border-radius:50%;background:var(--live);display:block;
       box-shadow:0 0 0 3px var(--surface), 0 1px 6px rgba(18,38,34,.35)}
.plabel{position:absolute;left:50%;transform:translate(-50%,-30px);white-space:nowrap;
        background:var(--surface-2);backdrop-filter:blur(8px);border:1px solid var(--edge);
        box-shadow:0 2px 8px rgba(18,38,34,.14);
        border-radius:8px;padding:4px 9px;font-size:11.5px;font-weight:600;color:var(--fg)}
.plabel.big2{color:var(--live);border-color:rgba(14,134,114,.45)}
.aq{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:#fff;
    font-family:var(--mono);font-size:13px;font-weight:700;line-height:1;
    box-shadow:0 2px 9px rgba(18,38,34,.35);border:2px solid rgba(255,255,255,.95)}
.aq span{display:none}
.leaflet-marker-icon:hover .aq span{display:block;position:absolute;top:34px;left:50%;
    transform:translateX(-50%);background:var(--surface-2);color:var(--fg);
    font-family:'Space Grotesk',sans-serif;font-size:11px;font-weight:600;white-space:nowrap;
    padding:3px 8px;border-radius:7px;border:1px solid var(--edge);box-shadow:0 2px 8px rgba(18,38,34,.16)}

.dep .leaflet-popup-content{margin:12px 14px;min-width:230px}
.dep-list{display:flex;flex-direction:column;gap:2px;margin-top:9px;
          padding-top:8px;border-top:1px solid var(--edge-2)}
.dep-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;padding:3px 0}
.dep-code{color:#fff;font-family:var(--mono);font-size:11px;font-weight:700;padding:2px 6px;
          border-radius:5px;min-width:26px;text-align:center}
.dep-to{font-size:12.5px;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}
.dep-min{font-family:var(--mono);font-size:13px;font-weight:700;color:var(--live);
         font-variant-numeric:tabular-nums}
.dep-min small{font-family:'Space Grotesk',sans-serif;font-size:8.5px;font-weight:600;margin-left:2px;
               color:var(--fg-3)}
.dep-at{font-family:var(--mono);font-size:11px;color:var(--fg-3)}
.dep-none{margin-top:8px;font-size:12.5px;color:var(--fg-2)}
.ptext{margin-top:7px;font-size:12px;line-height:1.45;color:var(--fg-2);white-space:normal}

.far .plabel{display:none}
.far .plabel.big2{display:block}
.far .plabel.city{display:block}
.pin.city i{background:#15211e;width:7px;height:7px}
.pin.major i{background:#78350f}
.plabel.major{color:#78350f;border-color:rgba(120,53,15,.4)}
.far .plabel.major{display:block}
.plabel.city{font-size:12.5px;letter-spacing:-.01em}
.plane{width:22px;height:22px;transform-origin:50% 50%;filter:drop-shadow(0 1px 2px rgba(18,38,34,.45))}
.plane svg{display:block}
.leaflet-marker-icon:hover .plane{filter:drop-shadow(0 0 3px rgba(14,134,114,.8))}
.gveh{width:14px;height:14px;transform-origin:50% 50%;display:grid;place-items:center}
.gveh i{display:block;width:7px;height:11px;border-radius:2px;background:#f2b134;border:1.5px solid #fff;box-shadow:0 1px 3px rgba(18,38,34,.45)}
.plane-info div{margin-top:3px}
.plane-info .pk{color:var(--fg-3);font-size:11px;letter-spacing:.04em;text-transform:uppercase;margin-right:4px}
.far .aq{display:flex}
.far .leaflet-marker-icon:hover .plabel{display:block}
.leaflet-marker-icon:hover .pin i{box-shadow:0 0 0 3px #fff, 0 0 0 5px rgba(14,134,114,.4), 0 1px 6px rgba(18,38,34,.35)}

.grab{display:none}
@media (max-width:900px){
  /* Phone: a compact top bar and a bottom sheet that folds down to its tabs.
     --sheet is how much of the screen the sheet takes, so the map controls
     and the feedback button can sit just above it. */
  :root{--sheet:38vh}
  html.sheet-min{--sheet:72px}
  .brand{top:12px;left:12px;width:auto;padding:0 14px;height:42px;border-radius:14px}
  .word{font-size:22px}
  .tag,.clock{display:none}
  .tr{top:12px;right:12px;gap:6px}
  .seg{height:42px}
  .seg button{padding:0 11px}
  .ibtn{width:42px;height:42px}
  .search{position:absolute;top:50px;right:0;width:calc(100vw - 24px);height:44px}
  .rail{display:none}
  .credit{display:none}
  .panel{top:auto;bottom:10px;left:10px;right:10px;width:auto;height:var(--sheet);border-radius:22px;
         transition:height .22s ease,background-color .8s}
  .grab{display:block;flex:none;width:100%;height:14px;border:0;background:none;padding:0;cursor:pointer}
  .grab i{display:block;width:36px;height:4px;margin:6px auto 0;border-radius:2px;background:var(--scroll)}
  .tabs{margin:2px 8px 8px}
  html.sheet-min .panel .body{display:none}
  .readout{margin:0 8px 2px;padding:10px 14px}
  .big{font-size:28px}
  .head{padding:12px 18px 4px}
  .row{margin:0 6px;padding:8px 10px;gap:10px}
  .row > span:nth-child(2){min-width:0}
  .rsub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11.5px}
  .rnum small{display:none}
  .note{display:none}
  .leaflet-bottom{bottom:calc(var(--sheet) + 12px);transition:bottom .22s ease}
  .leaflet-control-attribution{font-size:9px!important}
}
@media (max-height:640px) and (min-width:901px){
  .panel{top:96px;bottom:56px}
}

/* ---------- feedback ---------- */
[hidden]{display:none!important}
/* Above the map chrome (500), below the about scrim (900) and the dialog. */
.fb-corner{position:fixed;right:24px;bottom:40px;z-index:600;display:flex;align-items:center;gap:6px}
.fb-fab{display:flex;align-items:center;gap:8px;padding:12px 18px;border:0;border-radius:999px;background:var(--live);
        color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 10px 28px rgba(14,134,114,.32)}
.fb-fab:hover{background:var(--live-2)}
.fb-dot{width:8px;height:8px;border-radius:50%;background:#f2b134;flex:none}
/* Shrinks the pill to the bubble below, and remembers it. */
.fb-shrink{width:26px;height:26px;border:0;border-radius:50%;background:var(--live);color:rgba(255,255,255,.75);
           font:inherit;font-size:15px;line-height:1;cursor:pointer;flex:none;box-shadow:0 6px 16px rgba(14,134,114,.28)}
.fb-shrink:hover{background:var(--live-2);color:#fff}
/* What is left once the reader has put the pill away: still reachable, no
   longer a sentence sitting on top of the map. */
.fb-bubble{position:fixed;right:24px;bottom:40px;z-index:600;width:40px;height:40px;display:grid;place-items:center;
           border:0;border-radius:50%;background:var(--live);color:#fff;cursor:pointer;opacity:.75;
           box-shadow:0 8px 20px rgba(14,134,114,.28)}
.fb-bubble:hover,.fb-bubble:focus-visible{opacity:1;background:var(--live-2)}
.fb-overlay{position:fixed;inset:0;z-index:950;background:rgba(18,32,28,.38);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
            display:grid;place-items:center;padding:20px}
.fb-dialog{width:100%;max-width:520px;max-height:90vh;overflow:auto;background:var(--surface);border:1px solid var(--edge);
           border-radius:24px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:14px}
.fb-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.fb-title{margin:0;font-size:22px;line-height:1.2;letter-spacing:-.02em;font-weight:700}
.fb-close{border:0;background:var(--glass-2);width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:18px;
          color:var(--fg-2);flex:none}
.fb-form{display:flex;flex-direction:column;gap:14px}
.fb-lead{margin:0;font-size:14px;line-height:1.5;color:var(--fg-2)}
.fb-chips{display:flex;flex-wrap:wrap;gap:6px}
.fb-chip{border:1px solid var(--edge);background:var(--surface);color:var(--fg-2);font:inherit;font-weight:600;font-size:13px;
         padding:8px 12px;border-radius:999px;cursor:pointer}
.fb-chip[aria-pressed="true"]{border-color:var(--fg);background:var(--fg);color:var(--ink)}
.fb-field{width:100%;border:1px solid var(--edge);border-radius:14px;outline:none;transition:border-color .15s,box-shadow .15s;background:var(--surface);color:var(--fg);font:inherit;
          font-size:14px;padding:12px 14px;resize:vertical}
.fb-field:focus{border-color:var(--live);box-shadow:0 0 0 3px var(--live-soft)}
.fb-error{margin:0;font-size:13px;font-weight:600;color:#b3261e;background:#fdecea;border-radius:10px;padding:10px 12px}
.fb-donetext{margin:0;font-size:15px;line-height:1.5;color:var(--fg-2)}
.fb-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
/* One line: the context can be long. */
.fb-context{font-size:12px;color:var(--fg-3);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 120px}
.fb-send{border:0;border-radius:999px;background:var(--live);color:#fff;font:inherit;font-weight:700;font-size:14px;
         padding:11px 22px;cursor:pointer;flex:none}
.fb-send:disabled{background:var(--scroll);cursor:not-allowed}
.fb-secondary{border:1px solid var(--edge);border-radius:999px;background:var(--surface);color:var(--fg);font:inherit;font-weight:600;
              font-size:14px;padding:10px 20px;cursor:pointer;flex:none}
@media (max-width:900px){
  /* The panel takes the bottom of the screen on a phone; the button sits just above it. */
  .fb-corner,.fb-bubble{right:12px;bottom:calc(var(--sheet) + 34px);transition:bottom .22s ease}
  .fb-fab{padding:8px 13px;font-size:13px;gap:7px;box-shadow:0 6px 16px rgba(14,134,114,.28)}
  .fb-shrink{width:24px;height:24px;font-size:14px}
  .fb-bubble{width:36px;height:36px}
  .fb-dialog{padding:22px}
}
