/* tab-board.css - the centre tab row as an ANNUNCIATOR PANEL (1.18.4.0).
   Picked from mockups: G, "Annunciator" (Top Bar canvas, round 3). Replaces the
   1.11.9.30 board strip and the 1.18.1.4 Live Cartridges.

   Every tab is a lens in a recessed panel, like the warning panels on a ship's
   console. An unlit lens is dark glass with its glyph and name engraved in dim
   amber; the open tab is backlit solid amber with dark text, the one lit thing
   on the row. A venture with a live fault (FMVenture.set(..., 'bad'): Recovery
   CLOSED, Customs SUSPENDED) is a red lens; an 'ok' or 'warn' status line takes
   the glyph's place in green or amber. No glow on letters: the softness of the
   old row was text-shadow on small dot-matrix type.

   STYLE ONLY. Every .tab node, id, data-tab and data-i18n is unchanged, so
   core.js, mobile.js and the tutorial bind exactly as before. Trade glyphs are
   CSS masks on ::before because applyI18n overwrites each trade tab's
   textContent and would delete a child icon; ventures keep their .vc-ic span.
   No display is set on trade tabs: core.js and funds.js reveal Capital Houses
   with an inline display:inline-block, and inside the flex group that is
   blockified anyway.

   FITTING (tab-board.js). One row, every lens the same width. When it does not
   fit, the panel stacks into two rows, TRADE over VENTURES, with every name
   kept (fmt-f1). Only past that do lenses drop to glyphs: ventures first
   (fmt-f2), then trade (fmt-f3). Names stay in the DOM for tooltips, screen
   readers and i18n. Phones never see any of this: mobile.css hides the row and
   every rule is scoped off .fm-mobile. */
body:not(.fm-mobile) #fmTabs{gap:10px;align-items:stretch;padding:6px;margin:3px 3px 9px;border-radius:4px;background:#050806;
  box-shadow:inset 0 0 0 1px #000,inset 0 2px 8px #000,0 0 0 1px color-mix(in srgb,var(--panel-edge) 18%,#080a08),0 0 0 4px #0a120c}
body:not(.fm-mobile) #fmTabs .tabgroup{position:relative;gap:4px;align-items:stretch;padding:15px 0 0}
body:not(.fm-mobile) #fmTabs [data-grp="trade"]{flex:4 1 0}
body:not(.fm-mobile) #fmTabs [data-grp="ventures"]{flex:6 1 0}
body:not(.fm-mobile) #fmTabs .tabgroup-label{position:absolute;top:2px;left:2px;padding:0;margin:0;
  font-family:'Share Tech Mono',ui-monospace,monospace;font-weight:400;font-size:9px;line-height:1;letter-spacing:.24em;color:var(--muted);opacity:.55}
body:not(.fm-mobile) #fmTabs .tabgroup-sep{margin:2px 0;background:color-mix(in srgb,var(--amber) 16%,transparent);opacity:1}

/* The lens. flex-basis 0 shares the group's width evenly; min-width stays auto, so a
   lens never shrinks below its name and the row overflows (and tab-board.js stacks it)
   instead of clipping. */
body:not(.fm-mobile) #fmTabs .tabgroup .tab{flex:1 1 0;position:relative;box-sizing:border-box;height:46px;margin:0;padding:7px 8px 0;
  border:1px solid #000;border-radius:2px;background:#0b0e0b;
  box-shadow:inset 0 0 0 1px #1c241e,inset 0 6px 10px rgba(255,255,255,.025);
  font-family:'Share Tech Mono',ui-monospace,monospace;font-weight:400;font-size:10px;line-height:12px;letter-spacing:.14em;
  text-transform:uppercase;text-align:center;white-space:nowrap;text-shadow:none;
  color:color-mix(in srgb,var(--amber) 72%,#000);opacity:1;transition:background-color .12s,color .12s,box-shadow .12s}
body:not(.fm-mobile) #fmTabs .tabgroup .tab:hover{background:#0e120e;color:var(--gold);box-shadow:inset 0 0 0 1px #3a4a3e,inset 0 6px 10px rgba(255,255,255,.04)}
body:not(.fm-mobile) #fmTabs .tabgroup .tab:focus-visible{outline:1px solid var(--gold);outline-offset:2px}
/* trade glyph: a block above the name */
body:not(.fm-mobile) #fmTabs [data-grp="trade"] .tab::before{content:'';display:block;width:16px;height:16px;margin:0 auto 5px;background:currentColor;
  -webkit-mask:var(--tb-ic) center/16px 16px no-repeat;mask:var(--tb-ic) center/16px 16px no-repeat}
body:not(.fm-mobile) #fmTabs .tabgroup .tab::after{content:none}
/* venture lens: glyph, name, and a status line only while a module has a live one up */
body:not(.fm-mobile) #fmTabs .tab.vc{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;line-height:12px}
body:not(.fm-mobile) #fmTabs .tab.vc::before{content:none}
.vc-ic{position:relative;flex:none;display:block;width:16px;height:16px}
.vc-ic::after{content:'';position:absolute;inset:0;background:currentColor;-webkit-mask:var(--vc-ic) center/contain no-repeat;mask:var(--vc-ic) center/contain no-repeat}
.vc-txt{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.vc-nm{font:inherit;letter-spacing:inherit;line-height:12px;text-transform:uppercase;white-space:nowrap}
.vc-tk{display:none;width:0;min-width:100%;font-family:'Share Tech Mono',ui-monospace,monospace;font-size:8px;line-height:9px;letter-spacing:.16em;
  text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.vc-tk[data-tone]{display:block}
body:not(.fm-mobile) #fmTabs .tab.vc:has(.vc-tk[data-tone]){justify-content:center;padding-top:0}
body:not(.fm-mobile) #fmTabs .tab.vc:has(.vc-tk[data-tone]) .vc-ic{display:none}
.vc-tk[data-tone="ok"]{color:var(--green)}
.vc-tk[data-tone="warn"]{color:var(--gold)}
.vc-tk[data-tone="bad"]{color:inherit}
/* fault: a red lens */
body:not(.fm-mobile) #fmTabs .tab.vc:has(.vc-tk[data-tone="bad"]){background:#1c0808;color:#ff7a6a;box-shadow:inset 0 0 0 1px #4a1616,inset 0 0 10px rgba(255,90,80,.15)}
/* lit: the open tab, solid amber, dark text. Last, so it wins over a fault. */
body:not(.fm-mobile) #fmTabs .tabgroup .tab.active,
body:not(.fm-mobile) #fmTabs .tabgroup .tab.vc.active{background:var(--amber);color:var(--bg);border-color:#000;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gold) 55%,#fff),inset 0 0 14px rgba(255,248,220,.5),0 0 14px color-mix(in srgb,var(--amber) 35%,transparent)}
body:not(.fm-mobile) #fmTabs .tab.vc.active .vc-tk{color:inherit}
/* Unread Fleshbook posts: the tab is hidden on desktop since 1.11.9.173 (the top-bar key carries the badge). */
body:not(.fm-mobile) #unread-fleshbook{font-family:'Share Tech Mono',ui-monospace,monospace;text-shadow:none;vertical-align:1px}

/* Two rows (fmt-f1): TRADE over VENTURES, the group name to the left of each row. */
body.fmt-f1:not(.fm-mobile) #fmTabs{flex-direction:column;gap:5px}
body.fmt-f1:not(.fm-mobile) #fmTabs .tabgroup{flex:0 0 auto;padding:0 0 0 72px}
body.fmt-f1:not(.fm-mobile) #fmTabs .tabgroup-label{top:50%;transform:translateY(-50%)}
body.fmt-f1:not(.fm-mobile) #fmTabs .tabgroup-sep{display:none}
/* Glyph only, one group at a time: ventures (fmt-f2), then trade (fmt-f3). The open tab
   folds with its group, so selecting a tab never changes what fits. */
body.fmt-f2:not(.fm-mobile) #fmTabs [data-grp="ventures"] .tab.vc{justify-content:center;padding:0 10px}
body.fmt-f2:not(.fm-mobile) #fmTabs [data-grp="ventures"] .tab.vc .vc-nm{display:none}
body.fmt-f3:not(.fm-mobile) #fmTabs [data-grp="trade"] .tab{font-size:0;padding:14px 10px 0}
body.fmt-f3:not(.fm-mobile) #fmTabs [data-grp="trade"] .tab::before{margin:0}
@media(prefers-reduced-motion:reduce){body:not(.fm-mobile) #fmTabs .tabgroup .tab{transition:none}}

/* Glyphs, one-colour, drawn at 16 px. */
#fmTabs .tab[data-tab="market"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v12M12 3v10M8 5v8'/%3E%3Crect x='2.8' y='5' width='2.4' height='5'/%3E%3Crect x='6.8' y='7' width='2.4' height='4'/%3E%3Crect x='10.8' y='4' width='2.4' height='5'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="pnl"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 13h12M2 13V3'/%3E%3Cpath d='M4 10l3-3 2 2 4-5'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="heat"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 14c-2.8 0-4.5-1.9-4.5-4.3C3.5 6.6 6.5 5 6.5 2c2 1 3.2 3 3 5 .8-.4 1.3-1.2 1.4-2 1.3 1.2 1.6 2.9 1.6 4.4C12.5 12 10.8 14 8 14z'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="guild"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l6-3.5L14 6M3 13.5h10M4 7v5M7 7v5M9 7v5M12 7v5'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="galactic"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.8l5.4 3.1v6.2L8 14.2l-5.4-3.1V4.9z'/%3E%3Ccircle cx='8' cy='8' r='1.6'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="mining"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5C5.5 3 10.5 3 13 5.5M8 4.2l-5.5 9.5'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="recovery"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 2h11M8 2v7M8 9a2.6 2.6 0 1 1-2.6 2.6'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="river"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v13M3 6.5l5 1.5 5-1.5M5.5 13.5h5M8 8v4'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="fleshbook"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5v3h2l5 3v-9l-5 3z'/%3E%3Cpath d='M11.5 5.5c1 .8 1 4.2 0 5M13.2 4c1.9 1.6 1.9 6.4 0 8'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="arena"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='2.5' width='8' height='11' rx='1'/%3E%3Cpath d='M3.5 4.5v8.2c0 .8.5 1.3 1.3 1.3'/%3E%3Cpath d='M8.5 6l1.5 2-1.5 2L7 8z'/%3E%3C/svg%3E")}
/* 1.18.0.0: VENTURES > SKILL, a chess pawn */
#fmTabs .tab[data-tab="skill"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='4.2' r='1.9'/%3E%3Cpath d='M6.4 6.4h3.2L10.6 11H5.4zM4 13.6h8M5 11h6v2.6H5z'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="customs"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.3 2.5h3.4v3.2l1.8 1.3H4.5l1.8-1.3z'/%3E%3Cpath d='M3.5 9h9v2.5h-9zM5 13.5h6'/%3E%3C/svg%3E")}
#fmTabs .tab[data-tab="devlogs"]{--tb-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.8' y='3' width='12.4' height='8.5' rx='1'/%3E%3Cpath d='M6.5 5.4v3.8l3.2-1.9zM5 13.5h6'/%3E%3C/svg%3E")}
#fmTabs .tab.vc[data-tab="galactic"]{--vc-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cellipse cx='12' cy='12' rx='10.5' ry='3.8' transform='rotate%28-20 12 12%29'/%3E%3Ccircle cx='20.5' cy='8.5' r='1.2' fill='%23000'/%3E%3C/svg%3E")}
#fmTabs .tab.vc[data-tab="customs"]{--vc-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 3h5v5l2.5 2H7l2.5-2z'/%3E%3Cpath d='M4.5 13h15v4h-15z'/%3E%3Cpath d='M7 20.5h10'/%3E%3C/svg%3E")}
#fmTabs .tab.vc[data-tab="skill"]{--vc-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='6' r='2.6'/%3E%3Cpath d='M9.5 9.5h5l1.5 7h-8z'/%3E%3Cpath d='M6 21h12M7.5 16.5h9V21h-9z'/%3E%3C/svg%3E")}
#fmTabs .tab.vc[data-tab="arena"]{--vc-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='10' height='14' rx='1.5' transform='rotate%28-10 8.5 12%29'/%3E%3Crect x='10.5' y='4' width='10' height='14' rx='1.5'/%3E%3Cpath d='M15.5 8.5l1.8 2.5-1.8 2.5-1.8-2.5z'/%3E%3C/svg%3E")}
#fmTabs .tab.vc[data-tab="mining"]{--vc-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8c4.5-4.5 11.5-4.5 16 0'/%3E%3Cpath d='M12 5.5V20'/%3E%3Cpath d='M4 21l3-4 3 1 2-3 2 3 3-1 3 4z'/%3E%3C/svg%3E")}
#fmTabs .tab.vc[data-tab="recovery"]{--vc-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18M7 4v2M17 4v2'/%3E%3Crect x='8' y='6' width='8' height='4' rx='1'/%3E%3Cpath d='M12 10v6'/%3E%3Cpath d='M12 16a2.4 2.4 0 1 0 2.4 2.4'/%3E%3C/svg%3E")}
#fmTabs .tab.vc[data-tab="river"]{--vc-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3 10l9 3 9-3M7 21h10M12 13v6'/%3E%3Ccircle cx='12' cy='5' r='1'/%3E%3C/svg%3E")}
