html,body{margin:0;height:100%;background:transparent;overflow:hidden}
body{font:12px Verdana,Arial,sans-serif;color:#2b1d0e}

/* Width follows the window. The game serves its own narrow layout under
   about 900px, where a fixed panel covers most of the screen and cannot be
   moved out of the way. The 520px it was drawn at left the title bar with
   nothing to spare once the language picker joined it. */
#tb-panel{position:fixed;z-index:99999;width:min(580px, calc(100vw - 24px));max-height:86vh;background:#f4e4bc;
  border:2px solid #7d510f;border-radius:5px;font:12px/1.5 Verdana,Arial,sans-serif;color:#3b2a12;
  box-shadow:0 6px 22px rgba(0,0,0,.45);display:flex;flex-direction:column}
/* Collapsed, the header IS the panel, so it has to fit its own contents rather
   than a number somebody picked. A fixed 220px clipped the collapse button the
   moment a state word appeared beside the name, and "another tab is driving"
   pushed it off the edge entirely. */
#tb-panel.tb-collapsed{width:auto;min-width:190px;max-width:min(340px,calc(100vw - 24px))}
#tb-panel.tb-collapsed .tb-body{display:none}
#tb-head{background:linear-gradient(#d8bd85,#c1a264);padding:6px 9px;cursor:move;display:flex;
  align-items:center;gap:7px;border-bottom:1px solid #7d510f;border-radius:3px 3px 0 0}
#tb-head b{flex:none;font-size:13px;letter-spacing:.3px}
#tb-head .tb-btn{flex:none}
/* The language picker: a flag and the language in its own name, opening a
   list of the same. A <details> rather than a <select> because a <select>
   cannot carry a picture, and the flag is what makes the list readable to
   somebody who cannot read the panel yet. */
#tb-head .tb-lang{position:relative;flex:none}
#tb-head .tb-lang>summary{display:flex;align-items:center;gap:5px;max-width:150px;padding:2px 5px;
  border:1px solid #7d510f;border-radius:3px;background:#ecd9b0;color:#3b2a12;
  font:11px Verdana,Arial,sans-serif;cursor:pointer;list-style:none;white-space:nowrap}
#tb-head .tb-lang>summary::-webkit-details-marker{display:none}
#tb-head .tb-lang>summary span{overflow:hidden;text-overflow:ellipsis}
#tb-head .tb-lang>summary:hover,#tb-head .tb-lang[open]>summary{background:#f4e6c6}
#tb-head .tb-lang>summary .tb-chev{width:9px;height:9px;flex:none;opacity:.7}
.tb-flag{width:15px;height:11px;flex:none;border-radius:1px;box-shadow:0 0 0 1px rgba(59,36,9,.45)}
.tb-lang-list{position:absolute;right:0;top:calc(100% + 4px);z-index:5;display:grid;
  grid-template-columns:repeat(2,minmax(152px,1fr));gap:1px;padding:4px;max-height:60vh;overflow:auto;
  background:#f4e4bc;border:1px solid #7d510f;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.4)}
/* Following the world is the first choice and a sentence rather than a name,
   so it gets the width of both columns. */
.tb-lang-list>.tb-lang-row:first-child{grid-column:1/-1;border-bottom:1px solid #d8c095;border-radius:3px 3px 0 0}
#tb-panel[dir=rtl] .tb-lang-list{right:auto;left:0}
.tb-lang-row{display:flex;align-items:center;gap:6px;padding:3px 6px;border:0;border-radius:3px;
  background:none;color:#3b2a12;font:11px Verdana,Arial,sans-serif;text-align:start;cursor:pointer;white-space:nowrap}
.tb-lang-row:hover{background:#e0c898}
.tb-lang-row.tb-on{background:#7d510f;color:#f4e4bc;font-weight:bold}
.tb-lang-row em{font-style:normal;opacity:.7;font-size:10px}
/* Collapsed, the title bar is the whole panel and its job is to take up no
   room. A language is picked about once; the state word beside it is read
   every time, and one of the two has to go. */
#tb-panel.tb-collapsed .tb-lang{display:none}
/* The one flexible thing in the header, and the only one allowed to lose
   characters: a truncated word still reads, a clipped button cannot be
   pressed. */
.tb-state-word{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:11px;color:#5d4a22;opacity:.85}
.tb-state-word.tb-hot{color:#a00;font-weight:bold;opacity:1}
.tb-dot{width:10px;height:10px;border-radius:50%;background:#8c8c8c;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.25) inset}
.tb-dot.tb-on{background:#3fa93f}.tb-dot.tb-halt{background:#c33}
.tb-body{overflow:auto;padding:7px 9px}
.tb-tabs{display:flex;gap:3px;margin-bottom:7px;flex-wrap:wrap}
.tb-tabs button{flex:1;min-width:60px;padding:4px 5px;border:1px solid #7d510f;background:#e0c898;
  cursor:pointer;font:11px Verdana;border-radius:3px;color:#3b2a12}
.tb-tabs button.tb-on{background:#7d510f;color:#f4e4bc;font-weight:bold}
.tb-sub{display:flex;gap:3px;margin:0 0 7px;flex-wrap:wrap}
.tb-sub button{padding:3px 9px;border:1px solid #a98a4e;background:#ecd9b0;cursor:pointer;
  font:11px Verdana;border-radius:3px}
.tb-sub button.tb-on{background:#c1a264;font-weight:bold}
#tb-panel table{width:100%;border-collapse:collapse;margin-bottom:7px;background:#fdf6e6}
#tb-panel th,#tb-panel td{text-align:left;padding:3px 5px;border-bottom:1px solid #e2cfa5;vertical-align:middle}
#tb-panel th{background:#e8d3a6;font-weight:bold;font-size:11px}
#tb-panel tr:hover td{background:#fbf0d8}
.tb-btn{padding:3px 9px;border:1px solid #7d510f;background:linear-gradient(#e8d3a6,#d8bd85);
  cursor:pointer;border-radius:3px;font:11px Verdana;color:#3b2a12}
.tb-btn:hover{background:linear-gradient(#f0e0bb,#e0c898)}
.tb-btn.tb-primary{background:linear-gradient(#8fbc6a,#6a9c46);color:#fff;border-color:#4d7a2c;font-weight:bold}
.tb-btn.tb-danger{background:linear-gradient(#d99,#c77);color:#fff;border-color:#a55}
.tb-btn.tb-mini{padding:1px 5px;font-size:10px;line-height:1.3}
.tb-btn[disabled]{opacity:.65;cursor:progress}
.tb-btn.tb-working{background:linear-gradient(#e6e0cf,#d5cdb6)}
.tb-btn.tb-did-ok{background:linear-gradient(#9c6,#7a4);color:#fff;border-color:#585}
.tb-btn.tb-did-fail{background:linear-gradient(#d99,#c77);color:#fff;border-color:#a55}
#tb-panel select,#tb-panel input[type=text],#tb-panel input[type=number]{font:11px Verdana;padding:2px 4px;
  border:1px solid #a98a4e;background:#fffaf0;border-radius:2px;color:#3b2a12}
#tb-panel input[type=number]{width:64px;text-align:right}
#tb-panel input[type=range]{vertical-align:middle;width:120px}
#tb-panel textarea{width:100%;height:210px;font:11px Consolas,monospace;border:1px solid #a98a4e;
  background:#fffaf0;border-radius:2px}
.tb-log{font:11px Consolas,monospace;max-height:300px;overflow:auto;background:#fffaf0;
  border:1px solid #d8c095;padding:4px;border-radius:2px}
.tb-log div{white-space:pre-wrap;word-break:break-word;border-bottom:1px solid #f2e8d2;padding:1px 0}
.tb-l-error{color:#a00}.tb-l-warn{color:#a56000}.tb-l-ok{color:#0a6b0a}.tb-l-debug{color:#999}
.tb-muted{color:#8a7a5c}
.tb-row{display:flex;gap:5px;align-items:center;margin:5px 0;flex-wrap:wrap}
.tb-banner{background:#f8d2d2;border:1px solid #c00;color:#800;padding:5px 7px;margin-bottom:7px;border-radius:3px}
.tb-note{background:#eef6e0;border:1px solid #9c4;color:#3a5a12;padding:4px 7px;margin-bottom:7px;border-radius:3px;font-size:11px}
.tb-pill{display:inline-block;background:#e8d3a6;border:1px solid #a98a4e;border-radius:9px;
  padding:1px 8px;font-size:10px;margin:1px 3px 1px 0}
.tb-pill.tb-hot{background:#f6d7a0;border-color:#c98}
.tb-sec{font-weight:bold;margin:9px 0 4px;padding-bottom:2px;border-bottom:2px solid #c1a264;font-size:12px}
/* ---- the game's own artwork -------------------------------------------- */
/* Every one of these is a CDN URL built at runtime from window.image_base -
   see TB.icons. Nothing is stored in this project. */
.tb-ico{width:16px;height:16px;vertical-align:-3px;image-rendering:auto;flex:none}
.tb-art{width:35px;height:auto;max-height:32px;display:block;margin:0 auto;flex:none}
/* Unit portraits ship at 18px and there is no larger path that exists for
   every unit - unit_axe@2x.webp is there, unit_snob@2x.webp is not - so they
   are scaled rather than swapped, and only to 28px. Past that an 18px source
   turns to mush, and optimize-contrast keeps the edges honest on the way. */
.tb-art-unit{width:28px;height:28px;display:block;margin:0 auto;flex:none;
  image-rendering:-webkit-optimize-contrast}
/* A building tile: the game's picture, the level to reach written on it, a
   stepper beside it, and what the village is at now underneath. */
.tb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px;margin:6px 0}
.tb-tile{border:1px solid #a98a4e;border-radius:4px;background:#ecd9b0;padding:4px 3px 3px;
  text-align:center;position:relative;transition:border-color .12s,background .12s}
/* Modifiers are prefixed, like everything else here.
   "tb-tile on done" looked harmless and was not: the game's own stylesheet
   defines a bare .done as a 10x10 tick sprite, so every finished building
   collapsed from 96x89 to 10x10 and spilled its contents across the grid. We
   are a guest on the game's page and it owns the unprefixed namespace, so
   nothing here may use a bare class name - not even a modifier.
   (No backticks in this block: it lives inside a template literal.) */
.tb-tile.tb-on{border-color:#7d510f;background:#f6ead0;box-shadow:0 0 0 1px #c1a264 inset}
/* Dimmed, but still readable: the game's icons are light line art, and .62 on
   top of that put them past the point of being seen at all. */
.tb-tile.tb-off{opacity:.78}
.tb-tile.tb-done{border-color:#3fa93f}
/* A recessed slot behind the picture.
   The game's icons are light line art and our panel is light parchment, so on
   a flat background they were present but barely readable - visible in a
   screenshot only once zoomed. A slightly darker inset gives them something to
   sit against, which is what makes the tiles legible at a glance rather than
   on inspection. */
.tb-tile-art{position:relative;height:36px;display:flex;align-items:center;justify-content:center;
  background:#dcc394;border:1px solid #c1a264;border-radius:3px;
  box-shadow:inset 0 1px 2px rgba(61,42,18,.28)}
.tb-tile.tb-off .tb-tile-art{background:#d6c3a0}
.tb-tile-lvl{position:absolute;left:1px;bottom:0;min-width:17px;padding:0 2px;font-size:10px;
  font-weight:bold;background:rgba(61,42,18,.82);color:#f4e4bc;border-radius:2px;line-height:14px}
.tb-tile.tb-done .tb-tile-lvl{background:rgba(31,110,31,.88)}
/* Scoped to the tile, and named for it.
   The first version called this .tb-step, which was already the class for
   build-order steps and for the paladin's skill list - so an unscoped
   position:absolute tore all three out of the flow and pinned them to the
   top-right corner of the panel, on top of the tab bar. Prefixing is not
   enough on its own; a name has to be unused as well. */
.tb-tile-step{position:absolute;right:0;top:0;display:flex;flex-direction:column;gap:1px}
.tb-tile-step button{width:15px;height:16px;padding:0;line-height:14px;font-size:9px;
  border:1px solid #a98a4e;background:#e0c898;color:#3b2a12;cursor:pointer;border-radius:2px}
.tb-tile-step button:hover{background:#c1a264}
.tb-tile-name{font-size:10px;font-weight:bold;line-height:1.25;margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-tile-now{font-size:9px;color:#8a7a5c;line-height:1.2}
.tb-tile.tb-done .tb-tile-now{color:#2f7d2f}
.tb-tile-warn{display:block;font-size:9px;color:#a00;line-height:1.2}
.tb-tile input.tb-tile-num{width:100%;font-size:10px;padding:1px 2px;margin-top:2px;
  border:1px solid #a98a4e;background:#fdf6e6;color:#3b2a12;text-align:center}
.tb-tile-first{display:flex;align-items:center;justify-content:space-between;gap:4px;
  font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#8a7a5c;margin-top:3px}
.tb-tile-first input{width:100%;min-width:0;font-size:10px;padding:1px 2px;
  border:1px solid #a98a4e;background:#fdf6e6;color:#3b2a12;text-align:center}
.tb-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px}
.tb-lvl{display:flex;align-items:center;gap:4px;justify-content:space-between;padding:2px 4px;border-bottom:1px solid #eee0c0}
.tb-lvl span{flex:1;font-size:11px}
.tb-cur{color:#8a7a5c;font-size:10px;min-width:26px;text-align:right}
.tb-step{display:flex;align-items:center;gap:4px;padding:3px 4px;border-bottom:1px solid #e2cfa5;font-size:11px}
.tb-step.tb-done{opacity:.5}
.tb-step.tb-now{background:#fdf0cd;box-shadow:inset 3px 0 0 #c8a13c}
.tb-step .tb-grip{color:#a98a4e;cursor:default;min-width:15px;font-size:10px}
.tb-step .tb-what{flex:1}
/* A card, for grouping things a person reads together. */
.tb-card{background:#fdf6e6;border:1px solid #d8c095;border-radius:4px;padding:8px 10px;margin-bottom:8px;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset}
.tb-card.tb-attention{background:#fbeede;border-color:#c9963c;box-shadow:inset 3px 0 0 #c8a13c}
/* The headline: one sentence on what is happening, and whether it needs a person. */
.tb-headline{display:flex;align-items:flex-start;gap:9px}
.tb-headline .tb-hl-what{flex:1}
.tb-headline .tb-hl-title{font-size:14px;font-weight:bold;letter-spacing:.2px;margin-bottom:1px}
.tb-headline .tb-hl-sub{color:#7a6a4c;font-size:11px}
.tb-glance{display:flex;gap:14px;flex-wrap:wrap;margin-top:7px;padding-top:7px;border-top:1px solid #eadfc2}
.tb-glance div{min-width:78px}
.tb-glance .tb-gl-k{font-size:10px;color:#8a7a5c;text-transform:uppercase;letter-spacing:.5px}
.tb-glance .tb-gl-v{font-size:12px;font-weight:bold}
/* One module, as a sentence rather than a record. */
.tb-mod{display:flex;align-items:flex-start;gap:8px;padding:5px 2px;border-bottom:1px solid #eee0c0}
.tb-mod:last-child{border-bottom:none}
.tb-mod .tb-mod-name{width:104px;flex:none;font-weight:bold;font-size:11px}
.tb-mod .tb-mod-body{flex:1;min-width:0}
.tb-mod .tb-mod-note{color:#8a7a5c;font-size:11px;margin-top:1px}
.tb-state{display:inline-block;width:8px;height:8px;border-radius:50%;margin:4px 0 0;flex:none;
  box-shadow:0 0 0 1px rgba(0,0,0,.18) inset}
.tb-state.tb-s-go{background:#5ea63f}.tb-state.tb-s-wait{background:#cfa13c}
.tb-state.tb-s-off{background:#b3a88f}.tb-state.tb-s-stop{background:#c33}
.tb-fold{color:#6b5a33;cursor:pointer;font-size:11px;text-decoration:underline dotted}
.tb-unit{color:#8a7a5c;font-size:10px;margin-left:3px}
/* A settings row: what it is, what it does, and what is true right now.
   The explanation is on the page rather than inside a title attribute, because
   an explanation nobody can see is an explanation nobody has. */
#tb-panel [hidden]{display:none!important}
.tb-tools{display:flex;gap:6px;align-items:center;margin:0 0 8px}
.tb-tools input[type=search]{flex:1;font:11px Verdana;padding:3px 6px;border:1px solid #a98a4e;
  background:#fffaf0;border-radius:3px;color:#3b2a12}
.tb-grp{margin-bottom:10px}
.tb-f{padding:6px 3px 7px;border-bottom:1px solid #eee0c0}
.tb-f:last-child{border-bottom:none}
.tb-f-main{display:flex;align-items:baseline;gap:9px}
.tb-f-label{flex:1;font-size:11.5px;line-height:1.35}
.tb-f-ctl{flex:none;white-space:nowrap;text-align:right;padding-top:1px}
.tb-f-why{color:#8a7a5c;font-size:10.5px;line-height:1.4;margin-top:3px;padding-right:70px;
  border-left:2px solid #d8c294;padding-left:6px}
.tb-f-more{cursor:pointer;color:#8a7a5c;font-size:11px;user-select:none;padding:0 2px}
.tb-f-more:hover{color:#7d510f}
.tb-f-meta{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:4px;font-size:10px;color:#8a7a5c}
.tb-f-now{background:#ece0c2;border:1px solid #dfcda2;border-radius:9px;padding:0 7px;color:#6b5a33}
.tb-f-wait{background:#f6e6c8;border:1px solid #d9bd84;border-radius:9px;padding:0 7px;color:#7a5a12}
.tb-f-dim{opacity:.6}
.tb-f-changed{box-shadow:inset 3px 0 0 #c8a13c}
.tb-more{padding:5px 3px 1px}
/* Settings by area. The tuning page used to be one wall of a hundred and
   fifteen rows with "show N more" under each section; now it opens on the
   areas as tiles - what each one is doing right now, in words - and one area
   at a time underneath, everything in it on show. */
.tb-area-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:2px 0 8px}
#tb-panel .tb-area{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:7px 8px 7px 7px;
  cursor:pointer;min-height:48px;background:linear-gradient(#fbf3de,#efdcb0);border:1px solid #c9a86a;
  border-radius:6px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 1px 2px rgba(60,40,10,.18);font:11px Verdana}
#tb-panel .tb-area:hover{border-color:#a07a36;background:linear-gradient(#fdf6e4,#f3e2b9)}
#tb-panel .tb-area:focus-visible{outline:2px solid #c8a13c;outline-offset:1px}
.tb-area-ico{flex:none;width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff8e4,#e2c98f);border:1px solid #b99656;
  box-shadow:inset 0 -1px 2px rgba(90,60,15,.25)}
.tb-area-ico .tb-ico{margin:0}
.tb-area-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tb-area-name{font-weight:bold;font-size:11.5px;color:#3b2409;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.tb-area-sum{font-size:10px;color:#6b5a33;line-height:1.3}
.tb-area-tag{font-size:9px;font-weight:normal;border-radius:8px;padding:0 6px;line-height:14px;
  background:linear-gradient(#d9b458,#b8902f);color:#fffaf0;border:1px solid #9c7424}
.tb-area-tag.tb-area-off{background:#cdbb92;border-color:#b09a68;color:#5a4a2a}
#tb-panel .tb-area>.tb-chev{flex:none;color:#a07a36;width:11px;height:11px}
.tb-area.tb-area-dim .tb-area-name,.tb-area.tb-area-dim .tb-area-ico{opacity:.62}
.tb-areas .tb-grp{background:#fbf3de;border:1px solid #c9a86a;border-radius:6px;padding:4px 10px 8px;
  box-shadow:0 1px 2px rgba(60,40,10,.12)}
.tb-areas .tb-grp>.tb-sec{border-bottom:1px solid #d7bd86;margin:2px 0 6px;padding:3px 0 5px;font-size:12.5px}
.tb-area-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 6px}
.tb-area-nav{display:flex;justify-content:space-between;gap:6px;margin-top:8px}
#tb-panel .tb-area-step{display:inline-flex;align-items:center;gap:4px}
#tb-panel .tb-area-step .tb-chev{width:10px;height:10px}
.tb-area-where{font-size:10px;color:#8a7a5c}
/* The less-travelled settings of an area, on show but set apart: the shipped
   values suit most villages, and the frame says so without hiding anything. */
.tb-fine{margin-top:8px;padding:3px 8px 1px;background:rgba(201,168,106,.13);border:1px dashed #cfb27a;border-radius:5px}
.tb-fine-h{font-size:9.5px;letter-spacing:.5px;text-transform:uppercase;color:#8a6a2c;margin:3px 0 1px}
.tb-fine .tb-f{padding:5px 2px 6px;border-bottom-color:#e6d3a8}
.tb-fine .tb-f-label{font-size:11px}
/* Numbers step with the same chevrons as everything else, not the browser's
   own spinner triangles. */
#tb-panel input[type=number]{-moz-appearance:textfield}
#tb-panel input[type=number]::-webkit-inner-spin-button,
#tb-panel input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.tb-spin{display:inline-flex;align-items:stretch;vertical-align:middle;max-width:100%;min-width:0}
.tb-spin>input[type=number]{border-top-right-radius:0;border-bottom-right-radius:0;margin:0;min-width:0}
/* Where the box fills its tile, the stepper takes the box's place in the
   layout - otherwise the chevrons sit beside a full-width box and push out of
   the tile. */
.tb-pl-unit .tb-spin,.tb-fm-unit .tb-spin,.tb-tile .tb-spin{display:flex;width:100%}
.tb-pl-unit .tb-spin>input,.tb-fm-unit .tb-spin>input,.tb-tile .tb-spin>input{flex:1 1 auto;width:100%}
.tb-fm-unit .tb-spin{grid-column:1 / span 2;margin-top:4px}
.tb-tile>.tb-spin{margin-top:2px}
.tb-spin-btns{display:inline-flex;flex-direction:column;border:1px solid #a98a4e;border-left:none;
  border-radius:0 3px 3px 0;overflow:hidden;background:linear-gradient(#f7ecd0,#e6d2a4)}
#tb-panel .tb-spin-b{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:14px;flex:1;min-height:8px;cursor:pointer;color:#6b4a14}
#tb-panel .tb-spin-b+.tb-spin-b{border-top:1px solid #c9a86a}
#tb-panel .tb-spin-b:hover{background:#f0dcae;color:#3b2409}
#tb-panel .tb-spin-b .tb-chev{width:8px;height:8px;stroke-width:2.2}
.tb-spin-off .tb-spin-btns{opacity:.5;pointer-events:none}
.tb-tile-step button{display:flex;align-items:center;justify-content:center}
.tb-tile-step button .tb-chev{width:9px;height:9px}
.tb-away{background:#f7f2e2;border-color:#c9b98c}
.tb-setup-title{font-size:14px;font-weight:bold;letter-spacing:.2px;margin-bottom:1px}
.tb-setup-sub{color:#7a6a4c;font-size:11px;margin-bottom:4px}
/* Which number is which, said on the page. A grid of two bare numbers per row
   is guesswork, and a title attribute is an explanation nobody can see. */
.tb-legend{display:flex;justify-content:space-between;gap:10px;padding:0 4px 3px;
  font-size:10px;color:#8a7a5c;text-transform:uppercase;letter-spacing:.4px;
  border-bottom:1px solid #e2cfa5;margin-bottom:4px}
.tb-legend span:first-child{flex:1;text-align:left}
/* The city's jobs, as cards that say what each one does. */
.tb-jobs{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;margin-bottom:7px}
.tb-job{display:flex;align-items:flex-start;gap:6px;padding:4px 6px;border:1px solid #e2cfa5;
  border-radius:3px;background:#fdf6e6;cursor:pointer}
.tb-job.tb-on{background:#f3f7e8;border-color:#bcd08f}
.tb-job input{margin:2px 0 0}
.tb-job-text{flex:1;min-width:0}
.tb-job-name{display:block;font-weight:bold;font-size:11px}
.tb-job-name .tb-ico{margin-right:4px}
#tb-panel td .tb-ico{margin-right:4px}
.tb-mod-name .tb-ico{margin-right:4px}
.tb-sec .tb-ico{margin-right:5px;vertical-align:-3px}
.tb-job-what{display:block;color:#8a7a5c;font-size:10px;line-height:1.3}
/* On or off, visible without reading: the game's own checkboxes are 13px of
   grey and a settings page full of them says nothing at a glance. */
.tb-f-ctl input[type=checkbox]{appearance:none;-webkit-appearance:none;width:30px;height:16px;
  border-radius:9px;border:1px solid #a98a4e;background:#e6d7b4;position:relative;cursor:pointer;
  vertical-align:middle;margin:0;transition:background .12s}
.tb-f-ctl input[type=checkbox]:after{content:'';position:absolute;top:1px;left:1px;width:12px;height:12px;
  border-radius:50%;background:#fffaf0;box-shadow:0 1px 1px rgba(0,0,0,.3);transition:left .12s}
.tb-f-ctl input[type=checkbox]:checked{background:linear-gradient(#8fbc6a,#6a9c46);border-color:#4d7a2c}
.tb-f-ctl input[type=checkbox]:checked:after{left:15px}
.tb-f-ctl input[type=checkbox][disabled]{opacity:.5;cursor:default}
/* Start-up work still going: what it is, how far it has got, and a bar that
   keeps moving while it waits on the game. */
.tb-startup{margin:0 0 8px;padding:6px 8px 7px;border:1px solid #c9ad74;border-radius:4px;background:#fdf6e6}
.tb-su-text{font-size:11px;color:#5d4a22;margin-bottom:4px}
.tb-su-text b{color:#3b2a12}
.tb-su-bar{position:relative;height:5px;border-radius:3px;background:#e8d3a6;overflow:hidden}
.tb-su-fill{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:#7d510f;transition:width .4s}
.tb-su-run{position:absolute;top:0;bottom:0;left:-35%;width:35%;border-radius:3px;
  background:linear-gradient(90deg,rgba(217,164,65,0),#d9a441,rgba(217,164,65,0));animation:tb-su-run 1.4s linear infinite}
@keyframes tb-su-run{to{left:100%}}
@media (prefers-reduced-motion:reduce){.tb-su-run{animation-duration:3s}}

.tb-ord-row{gap:6px;padding:4px 4px}
.tb-ord-grip{cursor:grab;color:#b39a68;font-size:13px;line-height:1;padding:3px 2px;user-select:none;letter-spacing:-2px;touch-action:none}
.tb-ord-row.tb-ord-lifted .tb-ord-grip{cursor:grabbing}
.tb-ord-row.tb-ord-lifted{opacity:.4}
.tb-ord-row.tb-ord-above{box-shadow:inset 0 3px 0 #c8a13c}
.tb-ord-row.tb-ord-below{box-shadow:inset 0 -3px 0 #c8a13c}
.tb-ord-art{position:relative;width:26px;height:26px;flex:none;display:flex;flex-wrap:wrap;align-items:center;
  justify-content:center;background:#ead6a4;border:1px solid #d8c095;border-radius:4px}
.tb-ord-art img{width:22px;height:22px;object-fit:contain}
.tb-ord-art.tb-ord-trio img{width:11px;height:11px}
.tb-ord-art img.tb-ord-badge{position:absolute;right:-4px;bottom:-4px;width:13px;height:13px}
.tb-ord-what{display:flex;flex-direction:column;gap:3px;min-width:0}
.tb-ord-bar{position:relative;display:block;height:5px;border-radius:3px;background:#e6d3a8;overflow:hidden}
.tb-ord-bar>span{position:absolute;left:0;right:0;top:0;bottom:0;display:block}
.tb-ord-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:#b08a4a}
.tb-ord-bar.tb-ord-full i{background:#6a9c46}
.tb-ord-bar.tb-ord-live i{background:repeating-linear-gradient(45deg,#7d510f 0 5px,#b07a42 5px 10px);
  background-size:14px 14px;animation:tb-ord-stripes .9s linear infinite}
.tb-ord-note{font-size:10px;color:#8a7a5c}
.tb-btn.tb-ord-move{display:inline-flex;align-items:center;justify-content:center;width:22px;height:20px;padding:0}
.tb-chev{width:12px;height:12px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@keyframes tb-ord-stripes{to{background-position:14px 0}}

.tb-fm-card,.tb-fm-chip{background:#ead6a4;border:1px solid #c9a86a;border-radius:5px}
.tb-fm-card{padding:7px 9px;margin-bottom:7px}
.tb-fm-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.tb-fm-hico{width:30px;height:30px;flex:none;object-fit:contain}
.tb-fm-said{flex:1 1 180px;min-width:0}
.tb-fm-said b{display:block;font-size:13px;color:#2b1d0e}
.tb-fm-said small{display:block;font-size:10.5px;color:#6b5424}
.tb-fm-acts{display:flex;gap:5px;flex-wrap:wrap}
.tb-fm-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:7px}
.tb-fm-chip{display:flex;align-items:center;gap:6px;padding:5px 7px;min-width:0}
.tb-fm-chip>div{min-width:0}
.tb-fm-ico{width:20px;height:20px;flex:none;object-fit:contain}
.tb-fm-chip>div>span{display:block;font-size:9px;letter-spacing:.7px;text-transform:uppercase;color:#6b5424}
.tb-fm-chip b{display:block;font-size:16px;line-height:1.15;color:#2b1d0e}
.tb-fm-chip small{display:block;font-size:9.5px;line-height:1.25;color:#6b5424}
.tb-fm-k{font-size:9.5px;letter-spacing:.8px;text-transform:uppercase;color:#6b5424;display:flex;justify-content:space-between;gap:6px;margin-bottom:4px}
.tb-fm-mapcard{background:#f1e2bb}
.tb-fm-map{display:block;width:100%;height:230px;background:#f6ead0;border:1px solid #d8c095;border-radius:4px}
.tb-fm-grid{fill:none;stroke:#e2cfa5;stroke-width:1;vector-effect:non-scaling-stroke}
.tb-fm-reach{fill:rgba(255,246,220,.55);stroke:#7d510f;stroke-width:1.4;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
.tb-fm-sweep{fill:rgba(168,50,31,.07);stroke:#a8321f;stroke-width:1.4;vector-effect:non-scaling-stroke;
  transform-origin:0 0;animation:tb-fm-sweep 5s ease-out infinite}
.tb-fm-ready{fill:#5f8f3a;stroke:#2b1d0e;stroke-width:.8;vector-effect:non-scaling-stroke}
.tb-fm-rest{fill:#d9a441;stroke:#2b1d0e;stroke-width:.8;vector-effect:non-scaling-stroke}
.tb-fm-skip{fill:#f6ead0;stroke:#8a7a5c;stroke-width:1;vector-effect:non-scaling-stroke}
.tb-fm-player{fill:#c8826a;stroke:#6b3a2a;stroke-width:.8;vector-effect:non-scaling-stroke;opacity:.8}
.tb-fm-far{fill:#b9ad93;opacity:.55}
.tb-fm-gone{stroke:#8a7a5c;stroke-width:1.6;vector-effect:non-scaling-stroke}
.tb-fm-route{fill:none;stroke:#a8321f;stroke-width:1.6;stroke-dasharray:0 3.6;stroke-linecap:round;
  vector-effect:non-scaling-stroke;opacity:.85}
.tb-fm-hit{fill:none;stroke:#a8321f;stroke-width:1.2;vector-effect:non-scaling-stroke}
.tb-fm-rider{fill:#a8321f;stroke:#fdf6e6;stroke-width:1.3;vector-effect:non-scaling-stroke}
.tb-fm-route.tb-fm-spy{stroke:#4f6b7a;opacity:.7}.tb-fm-hit.tb-fm-spy{stroke:#4f6b7a}
.tb-fm-rider.tb-fm-spy{fill:#4f6b7a}
.tb-fm-home{fill:#f2c96a;stroke:#2b1d0e;stroke-width:1.2;vector-effect:non-scaling-stroke}
.tb-fm-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:5px;font-size:10px;color:#6b5424}
.tb-fm-legend span{display:inline-flex;align-items:center;gap:4px}
.tb-fm-legend i{width:9px;height:9px;border-radius:2px;display:inline-block;border:1px solid #2b1d0e}
.tb-fm-legend i.tb-fm-ready{background:#5f8f3a}.tb-fm-legend i.tb-fm-rest{background:#d9a441}
.tb-fm-legend i.tb-fm-skip{background:#f6ead0;border-color:#8a7a5c}.tb-fm-legend i.tb-fm-player{background:#c8826a;border-color:#6b3a2a}
.tb-fm-legend i.tb-fm-air{background:#a8321f;border-radius:50%}
.tb-fm-legend i.tb-fm-scout{background:#4f6b7a;border-radius:50%}
.tb-fm-legend i.tb-fm-back{width:12px;height:0;border:0;border-top:1.5px dotted #7d6f58;border-radius:0}
.tb-fm-return{fill:none;stroke:#7d6f58;stroke-width:1.1;stroke-dasharray:1 3;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.8}
.tb-fm-why{font-size:10px;color:#8a7a5c;margin-top:3px}
.tb-fm-why b{color:#6b5424}
.tb-fm-list{border:1px solid #d8c095;border-radius:4px;background:#fdf6e6;margin-bottom:7px}
.tb-fm-row{display:grid;grid-template-columns:18px 16px minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1fr);gap:8px;
  align-items:center;padding:5px 7px;border-bottom:1px solid #eadfc2}
.tb-fm-row:last-child{border-bottom:0}
.tb-fm-rank{width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:9.5px;font-weight:bold;color:#5a3d0f;background:radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 70%,#9a7322);box-shadow:0 1px 0 rgba(43,29,14,.35),inset 0 0 0 1px rgba(122,86,20,.55)}
.tb-fm-vil{width:16px;height:16px;display:block}
.tb-fm-vil path{fill:#a39a86;stroke:#2b1d0e;stroke-width:.9;stroke-linejoin:round}
.tb-fm-vil .tb-fm-roof{fill:#7d6f58}
.tb-fm-vil.tb-fm-vp path{fill:#c8826a}.tb-fm-vil.tb-fm-vp .tb-fm-roof{fill:#8e4f3a}
.tb-fm-row small{display:block;font-size:9.5px;color:#8a7a5c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-fm-row b{font-size:11.5px;color:#2b1d0e}
.tb-fm-row em{font-style:normal;font-size:9.5px;color:#8a7a5c;margin-left:4px}
.tb-fm-row em.tb-fm-full{color:#3f7a2a;font-weight:bold}
.tb-fm-bar{display:block;position:relative;height:4px;border-radius:2px;background:#e6d3a8;margin-top:3px;overflow:hidden}
.tb-fm-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:2px;background:#b08a4a}
.tb-fm-paybar i{background:#5f8f3a}
.tb-fm-units{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px;margin-bottom:7px}
.tb-fm-unit{display:grid;grid-template-columns:26px 1fr;grid-template-rows:auto 1fr auto auto;column-gap:6px;align-items:start;
  background:#ead6a4;border:1px solid #c9a86a;border-radius:5px;padding:5px 6px}
.tb-fm-uimg{grid-row:1 / span 2;width:24px;height:24px;object-fit:contain;margin-top:1px}
.tb-fm-uname{font-size:10.5px;font-weight:bold;line-height:1.2;color:#2b1d0e;overflow-wrap:anywhere}
.tb-fm-uhome{font-size:9.5px;color:#6b5424}
.tb-fm-unit input{grid-column:1 / span 2;width:100%;margin-top:4px}
.tb-fm-unit .tb-unit{grid-column:1 / span 2;margin-left:0;font-size:9.5px}
@keyframes tb-fm-sweep{0%{transform:scale(.04);opacity:.9}75%{transform:scale(1);opacity:.35}100%{transform:scale(1);opacity:0}}
@media (max-width:460px){.tb-fm-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tb-fm-row{grid-template-columns:16px 12px minmax(0,1fr) minmax(0,1fr)}.tb-fm-haul{display:none}}

#tb-head{background:linear-gradient(#94621f,#6b4410);color:#f4e4bc;border-bottom-color:#4d2f08}
#tb-head b{font-family:'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;font-size:14px;letter-spacing:.6px}
#tb-head .tb-state-word{color:#f2dcae}
#tb-head .tb-state-word.tb-hot{color:#ffc2ae}
.tb-ov-mark{width:20px;height:20px;flex:none;display:block}
.tb-dot.tb-on{animation:tb-ov-pulse 1.8s ease-in-out infinite;box-shadow:0 0 0 2px rgba(63,169,63,.28)}
.tb-ov{margin:0 0 8px}
.tb-ov-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 2px 6px}
.tb-ov-village{font-weight:bold;font-size:13px;color:#2b1d0e;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-ov-village span{font-weight:normal;color:#6b5424}
.tb-ov-pts{font-size:10.5px;color:#6b5424;white-space:nowrap}
.tb-ov .tb-glance{margin:0 0 7px;padding:0 2px 7px;border-top:0;border-bottom:1px solid #eadfc2}
.tb-ov-res{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:6px}
.tb-ov-chip,.tb-ov-card,.tb-ov-foot{background:#ead6a4;border:1px solid #c9a86a;border-radius:5px}
.tb-ov-chip{display:flex;align-items:center;gap:6px;padding:5px 6px;min-width:0}
.tb-ov-ico{width:18px;height:18px;flex:none;object-fit:contain}
.tb-ov-amt{flex:1;min-width:0;font-weight:bold;font-size:12px;line-height:1.25;white-space:nowrap}
.tb-ov-amt small{display:block;font-weight:normal;font-size:9.5px;color:#6b5424;overflow:hidden;text-overflow:ellipsis}
.tb-ov-silo{position:relative;flex:none;width:9px;height:28px;border:1px solid #b9975a;border-radius:3px;background:#d8bd85;overflow:hidden}
.tb-ov-silo>span{position:absolute;left:1px;right:1px;top:1px;bottom:1px;display:block}
.tb-ov-silo i{position:absolute;left:0;right:0;bottom:0;border-radius:2px;overflow:hidden;background:#6a9c46}
.tb-ov-silo i:after{content:"";position:absolute;left:0;right:0;height:45%;
  background:linear-gradient(rgba(255,255,255,0),rgba(255,255,255,.5),rgba(255,255,255,0));animation:tb-ov-shine 3.4s ease-in-out infinite}
.tb-ov-r-wood .tb-ov-silo i{background:#b07a42}.tb-ov-r-stone .tb-ov-silo i{background:#c0643a}.tb-ov-r-iron .tb-ov-silo i{background:#8b949c}
.tb-ov-silo.tb-ov-full{border-color:#a8321f;animation:tb-ov-warn 1.2s ease-in-out infinite alternate}
.tb-ov-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:6px}
.tb-ov-card{padding:6px 8px;min-width:0;position:relative}
.tb-ov-card.tb-ov-alarm{background:#f3d3c4;border-color:#a8321f}
.tb-ov-k{font-size:9.5px;letter-spacing:.8px;text-transform:uppercase;color:#6b5424;display:flex;justify-content:space-between;gap:6px}
.tb-ov-up{color:#3f7a2a;font-weight:bold;letter-spacing:0;text-transform:none}
.tb-ov-big{font-weight:bold;font-size:19px;line-height:1.2;color:#2b1d0e;white-space:nowrap}
.tb-ov-big small{font-size:11px;font-weight:normal;color:#6b5424}
.tb-ov-note{font-size:10px;color:#6b5424;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-ov-sparkbox{position:relative;height:30px;margin-top:4px}
.tb-ov-spark{display:block;width:100%;height:100%;overflow:visible}
.tb-ov-line{fill:none;stroke:#3f7a2a;stroke-width:1.6;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.tb-ov-area{fill:rgba(106,156,70,.18)}
.tb-ov-tip{position:absolute;right:-3px;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:#3f7a2a;
  animation:tb-ov-pulse 1.8s ease-in-out infinite}
.tb-ov-army{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;margin-top:5px}
.tb-ov-unit{display:flex;align-items:center;gap:5px;font-weight:bold;font-size:12.5px;white-space:nowrap}
.tb-ov-row{display:flex;align-items:center;gap:7px;margin-top:4px;min-width:0}
.tb-ov-row>div{min-width:0}
.tb-ov-row b{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-ov-bar{position:relative;height:7px;border-radius:4px;background:#d8bd85;margin-top:7px;overflow:hidden}
.tb-ov-bar>span{position:absolute;left:0;right:0;top:0;bottom:0;display:block}
.tb-ov-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;
  background:repeating-linear-gradient(45deg,#7d510f 0 6px,#94621f 6px 12px);background-size:17px 17px;animation:tb-ov-stripes 1s linear infinite}
.tb-ov-time{font-size:10px;color:#6b5424;text-align:right;margin-top:2px}
.tb-ov-track{position:relative;height:12px;margin-top:7px}
.tb-ov-track:before{content:"";position:absolute;left:0;right:0;top:5px;border-top:2px dotted #b9975a}
.tb-ov-track>span{position:absolute;left:0;right:0;top:0;bottom:0;display:block}
.tb-ov-mk{position:absolute;top:1px;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:#a8321f;box-shadow:0 0 0 2px #ead6a4}
.tb-ov-mk.tb-ov-first{animation:tb-ov-pulse 1.1s ease-in-out infinite}
.tb-ov-mk.tb-ov-home{left:5px;background:#3f7a2a;animation:tb-ov-pulse 2.4s ease-in-out infinite}
.tb-ov-feed{margin:2px 0 6px}
.tb-ov-feed .tb-ov-k{margin:0 2px 2px}
.tb-ov-item{display:flex;align-items:center;gap:6px;padding:3px 2px;border-bottom:1px solid #e3cd9b;font-size:11px}
.tb-ov-item>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-ov-item em{font-style:normal;color:#8a7a5c;font-size:10px;white-space:nowrap;max-width:45%;overflow:hidden;text-overflow:ellipsis}
.tb-ov-item.tb-ov-new{animation:tb-ov-in .55s ease-out both}
.tb-ov-item .tb-ov-ico{width:16px;height:16px}
.tb-ov-dot{width:16px;height:16px;flex:none;display:flex;align-items:center;justify-content:center}
.tb-ov-dot:before{content:"";width:6px;height:6px;border-radius:50%;background:#b9975a}
.tb-ov-foot{display:flex;align-items:center;gap:6px;font-size:10.5px;color:#6b5424;padding:4px 8px;margin-bottom:8px}
@keyframes tb-ov-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.6}}
@keyframes tb-ov-shine{0%{transform:translateY(240%)}60%,100%{transform:translateY(-140%)}}
@keyframes tb-ov-stripes{to{background-position:17px 0}}
@keyframes tb-ov-in{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
@keyframes tb-ov-warn{from{box-shadow:0 0 0 0 rgba(168,50,31,.1)}to{box-shadow:0 0 0 3px rgba(168,50,31,.35)}}
@media (prefers-reduced-motion:reduce){#tb-panel *,#tb-panel *:after{animation:none!important}}

.tb-air-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:7px}
.tb-air-chip,.tb-air-card,.tb-pl-card,.tb-pl-chip{background:#ead6a4;border:1px solid #c9a86a;border-radius:5px}
.tb-air-chip{display:flex;align-items:center;gap:7px;padding:5px 8px;min-width:0}
.tb-air-chip>div{min-width:0}
.tb-air-chip img{width:20px;height:20px;flex:none;object-fit:contain}
.tb-air-chip>div>span{display:block;font-size:9px;letter-spacing:.7px;text-transform:uppercase;color:#6b5424}
.tb-air-chip b{display:block;font-size:17px;line-height:1.15;color:#2b1d0e}
.tb-air-chip small{display:block;font-size:9.5px;line-height:1.25;color:#6b5424}
.tb-air-card{padding:7px 9px;margin-bottom:7px}
.tb-air-k{font-size:9.5px;letter-spacing:.8px;text-transform:uppercase;color:#6b5424;display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:5px}
.tb-air-k .tb-btn{letter-spacing:0;text-transform:none}
.tb-air-time{position:relative;height:30px;margin:2px 4px 0}
.tb-air-time:before{content:"";position:absolute;left:0;right:0;top:11px;border-top:2px dotted #b9975a}
.tb-air-time>span[data-live]{position:absolute;left:0;right:0;top:0;bottom:0;display:block}
.tb-air-tick{position:absolute;top:18px;font-size:9px;color:#8a7a5c;transform:translateX(-50%);white-space:nowrap}
.tb-air-tick:first-child{transform:none}
.tb-air-mk{position:absolute;top:6px;width:11px;height:11px;margin-left:-5.5px;border-radius:50%;box-shadow:0 0 0 2px #ead6a4}
.tb-air-mk.tb-air-out{background:#a8321f}.tb-air-mk.tb-air-spy{background:#4f6b7a}
.tb-air-mk.tb-air-home{background:#5f8f3a}.tb-air-mk.tb-air-sup{background:#2f6f8a}
.tb-air-legend{display:flex;flex-wrap:wrap;gap:3px 12px;margin-top:3px;font-size:10px;color:#6b5424}
.tb-air-legend span{display:inline-flex;align-items:center;gap:4px}
.tb-air-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}
.tb-air-sec{display:flex;align-items:baseline;justify-content:space-between;margin:9px 1px 4px;font-weight:bold;color:#2b1d0e;
  border-bottom:2px solid #c9a86a;padding-bottom:2px}
.tb-air-sec small{font-weight:normal;color:#6b5424}
.tb-air-list{border:1px solid #d8c095;border-radius:4px;background:#fdf6e6}
.tb-air-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:5px 8px;
  border-bottom:1px solid #eadfc2;border-left:3px solid transparent}
.tb-air-row:last-child{border-bottom:0}
.tb-air-row.tb-air-out{border-left-color:#a8321f}.tb-air-row.tb-air-spy{border-left-color:#4f6b7a}
.tb-air-row.tb-air-home{border-left-color:#5f8f3a}.tb-air-row.tb-air-sup{border-left-color:#2f6f8a}
.tb-air-ico{width:20px;height:20px;object-fit:contain}
.tb-air-main{min-width:0}
.tb-air-line{display:flex;align-items:baseline;gap:6px;min-width:0;white-space:nowrap}
.tb-air-line b{font-size:12px;color:#2b1d0e}
.tb-air-who{font-size:10px;color:#8a7a5c;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tb-air-tag{font-size:9px;letter-spacing:.4px;text-transform:uppercase;padding:1px 6px;border-radius:9px;
  background:#efe0bb;border:1px solid #d8c095;color:#6b5424;flex:none}
.tb-air-tag.tb-air-t-farm{background:#f3e3bd;border-color:#c9a86a;color:#7d510f}
.tb-air-tag.tb-air-t-scout{background:#e3e8ea;border-color:#b6c3c9;color:#3c5563}
.tb-air-tag.tb-air-t-hit{background:#f3d3c4;border-color:#d59a86;color:#8e2a19}
.tb-air-tag.tb-air-t-sup{background:#dbe9ee;border-color:#a9c6d1;color:#245a70}
.tb-air-bar{display:block;position:relative;height:4px;border-radius:2px;background:#e6d3a8;margin-top:4px;overflow:hidden}
.tb-air-bar>span{position:absolute;left:0;right:0;top:0;bottom:0;display:block}
.tb-air-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:2px;background:#a8321f}
.tb-air-spy .tb-air-bar i{background:#4f6b7a}.tb-air-home .tb-air-bar i{background:#5f8f3a}.tb-air-sup .tb-air-bar i{background:#2f6f8a}
.tb-air-units{display:flex;flex-wrap:wrap;gap:2px 7px;justify-content:flex-end;max-width:120px;font-size:11px;font-weight:bold;color:#2b1d0e}
.tb-air-units span{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
.tb-air-units img{width:15px;height:15px;object-fit:contain}
.tb-air-units em{font-style:normal;font-weight:normal;font-size:10px;color:#a99670}
.tb-air-when{text-align:right;white-space:nowrap;min-width:54px}
.tb-air-when b{display:block;font-size:12px;color:#2b1d0e}
.tb-air-when small{display:block;font-size:9.5px;color:#8a7a5c}
.tb-air-when .tb-btn{margin-top:2px}
.tb-air-empty{display:flex;align-items:center;gap:10px;padding:14px 12px;color:#6b5424}
.tb-air-empty b{display:block;color:#2b1d0e;font-size:12.5px}
@media (max-width:460px){.tb-air-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tb-air-row{grid-template-columns:20px minmax(0,1fr) auto}.tb-air-units{display:none}}

.tb-pl-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:7px}
.tb-pl-chip{padding:5px 8px;min-width:0}
.tb-pl-chip>span{display:block;font-size:9px;letter-spacing:.7px;text-transform:uppercase;color:#6b5424}
.tb-pl-chip b{display:block;font-size:16px;line-height:1.2;color:#2b1d0e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-pl-chip small{display:block;font-size:9.5px;color:#6b5424}
.tb-pl-card{padding:8px 10px;margin-bottom:7px;border-left:4px solid #b08a4a}
.tb-pl-card.tb-pl-standing{border-left-color:#a8321f}.tb-pl-card.tb-pl-train{border-left-color:#7a2a4f}
.tb-pl-card.tb-pl-fakes{border-left-color:#8a7a5c}.tb-pl-card.tb-pl-snipe{border-left-color:#2f6f8a}
.tb-pl-card.tb-pl-over{opacity:.62}
.tb-pl-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tb-pl-top b{font-size:13px;color:#2b1d0e;flex:1 1 auto;min-width:0}
.tb-pl-kind{font-size:9px;letter-spacing:.6px;text-transform:uppercase;padding:1px 7px;border-radius:9px;background:#f3d3c4;
  border:1px solid #d59a86;color:#8e2a19;white-space:nowrap}
.tb-pl-state{font-size:9.5px;padding:1px 7px;border-radius:9px;border:1px solid #c9a86a;background:#f6ead0;color:#6b5424;white-space:nowrap}
.tb-pl-state.tb-pl-live{background:#e2efd2;border-color:#9dbf7f;color:#3f7a2a}
.tb-pl-target{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:11px;color:#6b5424}
.tb-pl-target img{width:16px;height:16px}
.tb-pl-target b{color:#2b1d0e}
.tb-pl-army{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 12px;margin-top:7px}
.tb-pl-need{display:grid;grid-template-columns:20px 1fr;column-gap:6px;align-items:center}
.tb-pl-need img{grid-row:1 / span 2;width:20px;height:20px;object-fit:contain}
.tb-pl-need div{font-size:11px;color:#2b1d0e;white-space:nowrap}
.tb-pl-need div em{font-style:normal;color:#8a7a5c}
.tb-pl-bar{display:block;position:relative;height:5px;border-radius:3px;background:#d8bd85;margin-top:2px;overflow:hidden}
.tb-pl-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:#b08a4a}
.tb-pl-bar.tb-pl-full i{background:#5f8f3a}
.tb-pl-why{display:flex;align-items:center;gap:6px;margin-top:7px;padding:5px 8px;border-radius:4px;background:#f6ead0;
  border:1px solid #e2cfa5;font-size:11px;color:#5a4318}
.tb-pl-why:before{content:"";width:7px;height:7px;border-radius:50%;background:#c8a13c;flex:none}
.tb-pl-why.tb-pl-go:before{background:#5f8f3a}.tb-pl-why.tb-pl-stop:before{background:#a8321f}
.tb-pl-meta{margin-top:5px;font-size:10px;color:#8a7a5c}
.tb-pl-legs{margin-top:6px;border:1px solid #d8c095;border-radius:4px;background:#fdf6e6}
.tb-pl-leg{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:4px 8px;border-bottom:1px solid #eadfc2}
.tb-pl-leg:last-child{border-bottom:0}
.tb-pl-leg b{font-size:11.5px;color:#2b1d0e}
.tb-pl-leg small{display:block;font-size:9.5px;color:#8a7a5c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-pl-leg .tb-air-units{max-width:none}
.tb-pl-leg-when{text-align:right;font-size:11px;white-space:nowrap}
.tb-pl-leg-when small{text-align:right}
.tb-pl-leg.tb-pl-sent{background:#f1f6e8}.tb-pl-leg.tb-pl-failed{background:#fbe9e2}
.tb-pl-acts{display:flex;gap:5px;justify-content:flex-end;margin-top:6px}
.tb-pl-form{padding:8px 10px;margin-bottom:7px;background:#f1e2bb}
.tb-pl-grid{display:grid;grid-template-columns:110px minmax(0,1fr);gap:6px 10px;align-items:center}
.tb-pl-grid>label{font-size:11px;color:#5a4318}
.tb-pl-grid>label small{display:block;font-size:9.5px;color:#8a7a5c}
.tb-pl-grid select,.tb-pl-grid input,.tb-pl-grid textarea{max-width:100%}
#tb-panel .tb-pl-grid textarea{width:100%;height:38px;min-height:0;resize:vertical;box-sizing:border-box}
.tb-pl-units{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:5px}
.tb-pl-unit{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:5px;align-items:center;background:#ead6a4;
  border:1px solid #c9a86a;border-radius:4px;padding:4px 5px}
.tb-pl-unit img{grid-row:1 / span 2;width:20px;height:20px;object-fit:contain}
.tb-pl-unit input{width:100%}
.tb-pl-unit small{font-size:9px;color:#8a7a5c}
.tb-pl-kind-help{display:block;margin-top:3px;font-size:10px;line-height:1.35;color:#6b5424}
.tb-pl-go-row{display:flex;align-items:center;gap:8px;margin-top:8px}
.tb-pl-go-row small{color:#8a7a5c;font-size:10px}
@media (max-width:460px){.tb-pl-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-pl-grid{grid-template-columns:1fr}}

.tb-lg-bar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:6px}
.tb-lg-bar .tb-lg-sp{flex:1}
.tb-lg-bar select{font-size:11px}
.tb-lg-cats{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px}
.tb-lg-cat{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:10px;border:1px solid #d8c095;
  background:#f6ead0;color:#5a4318;font-size:10.5px;cursor:pointer;user-select:none}
.tb-lg-cat i{width:8px;height:8px;border-radius:50%;background:var(--k);display:inline-block}
.tb-lg-cat em{font-style:normal;color:#8a7a5c;font-size:9.5px}
.tb-lg-cat.tb-on{background:#6b4410;border-color:#4d2f08;color:#f4e4bc}
.tb-lg-cat.tb-on em{color:#e3c98f}
.tb-lg{border:1px solid #d8c095;border-radius:4px;background:#fdf6e6;max-height:420px;overflow:auto}
.tb-log.tb-lg{font:11px Verdana,Arial,sans-serif;padding:0}
.tb-log.tb-lg div{white-space:normal}
.tb-lg-row{display:grid;grid-template-columns:50px 72px minmax(0,1fr);gap:7px;align-items:baseline;padding:3px 8px 3px 6px;
  border-bottom:1px solid #f0e4c8;border-left:3px solid var(--k);font-size:11px;color:#2b1d0e}
.tb-lg-row:last-child{border-bottom:0}
.tb-lg-t{font:10px Consolas,monospace;color:#a08c63;white-space:nowrap}
.tb-lg-k{justify-self:start;font-size:9px;letter-spacing:.5px;text-transform:uppercase;padding:1px 6px;border-radius:8px;
  color:#fff;background:var(--k);white-space:nowrap}
.tb-lg-m{word-break:break-word}
.tb-lg-m b{font-weight:bold}
.tb-lg-row.tb-lg-ok .tb-lg-m:before{content:"\2713 ";color:#3f7a2a;font-weight:bold}
.tb-lg-row.tb-lg-warn{background:#fbf0d8}
.tb-lg-row.tb-lg-warn .tb-lg-m:before{content:"\26A0 ";color:#b07a14}
.tb-lg-row.tb-lg-error{background:#f8e0d8}
.tb-lg-row.tb-lg-error .tb-lg-m{color:#8e2a19}
.tb-lg-row.tb-lg-error .tb-lg-m:before{content:"\2716 ";color:#a8321f}
.tb-lg-row.tb-lg-debug{opacity:.6}
.tb-lg-none{padding:12px;color:#8a7a5c;text-align:center}

.tb-set-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px}
.tb-set-chip{display:flex;align-items:center;gap:7px;background:#ead6a4;border:1px solid #c9a86a;border-radius:5px;padding:5px 8px;min-width:0}
.tb-set-chip>div{min-width:0}
.tb-set-chip>div>span{display:block;font-size:9px;letter-spacing:.7px;text-transform:uppercase;color:#6b5424}
.tb-set-chip b{display:block;font-size:12.5px;color:#2b1d0e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-set-chip small{display:block;font-size:9.5px;color:#6b5424;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-set-lamp{width:10px;height:10px;border-radius:50%;flex:none;background:#b9ad93;box-shadow:0 0 0 2px #f1e2bb}
.tb-set-lamp.tb-set-go{background:#5f8f3a}.tb-set-lamp.tb-set-warn{background:#c8a13c}.tb-set-lamp.tb-set-stop{background:#a8321f}
.tb-set .tb-grp,.tb-set-card{background:#ead6a4;border:1px solid #c9a86a;border-radius:5px;padding:4px 10px 7px;margin-bottom:8px}
.tb-set .tb-grp>.tb-sec,.tb-set-card>.tb-sec{border-bottom:1px solid #c9a86a;margin:2px 0 5px;padding:3px 0 4px}
.tb-set .tb-f{border-top-color:#dcc38f}
.tb-set .tb-note{background:#f6ead0;border-color:#e2cfa5;color:#5a4318}
.tb-set-card .tb-row{margin:6px 0 2px}
.tb-set-card table{background:#fdf6e6;border:1px solid #d8c095;border-radius:4px}
.tb-set-danger{border-color:#d59a86;background:#f5dccf}
.tb-set-danger>.tb-sec{border-bottom-color:#d59a86}
.tb-set-lead{font-size:10.5px;color:#6b5424;margin:0 2px 7px}
@media (max-width:460px){.tb-set-chips{grid-template-columns:1fr}}
.tb-set .tb-grp>.tb-sec,.tb-set-card>.tb-sec{display:flex;align-items:center;gap:7px}
.tb-set .tb-grp>.tb-sec:before,.tb-set-card>.tb-sec:before{content:"";width:19px;height:19px;border-radius:50%;flex:none;
  background:radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322);box-shadow:0 1px 0 rgba(43,29,14,.35),inset 0 0 0 1px rgba(122,86,20,.55)}
.tb-set .tb-grp[data-grp="pace"]>.tb-sec:before{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%20stroke%3D'%235a3d0f'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%202.5h8M4%2013.5h8M5%202.5c0%203%206%203.5%206%205.5s-6%202.5-6%205.5M11%202.5c0%203-6%203.5-6%205.5s6%202.5%206%205.5'%2F%3E%3C%2Fsvg%3E") center/12px no-repeat,radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322)}
.tb-set .tb-grp[data-grp="human"]>.tb-sec:before{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%20stroke%3D'%235a3d0f'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'8'%20cy%3D'5'%20r%3D'2.4'%2F%3E%3Cpath%20d%3D'M3.5%2013.5c.6-3%202.4-4.4%204.5-4.4s3.9%201.4%204.5%204.4'%2F%3E%3C%2Fsvg%3E") center/12px no-repeat,radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322)}
.tb-set .tb-grp[data-grp="safety"]>.tb-sec:before{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%20stroke%3D'%235a3d0f'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M8%202l5%202v3.6c0%203-2.2%205.2-5%206.4-2.8-1.2-5-3.4-5-6.4V4z'%2F%3E%3Cpath%20d%3D'M5.8%208l1.6%201.6L10.4%206.4'%2F%3E%3C%2Fsvg%3E") center/12px no-repeat,radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322)}
.tb-set-card.tb-set-i-bell>.tb-sec:before{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%20stroke%3D'%235a3d0f'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%2011V7.4a4%204%200%200%201%208%200V11l1.2%201.3H2.8z'%2F%3E%3Cpath%20d%3D'M6.6%2013.6a1.5%201.5%200%200%200%202.8%200'%2F%3E%3C%2Fsvg%3E") center/12px no-repeat,radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322)}
.tb-set-card.tb-set-i-key>.tb-sec:before{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%20stroke%3D'%235a3d0f'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'5.3'%20cy%3D'10.7'%20r%3D'2.6'%2F%3E%3Cpath%20d%3D'M7.2%208.8l5.3-5.3M10.4%205.6l1.6%201.6M11.7%204.3l1.3%201.3'%2F%3E%3C%2Fsvg%3E") center/12px no-repeat,radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322)}
.tb-set-card.tb-set-i-look>.tb-sec:before{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%20stroke%3D'%235a3d0f'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'7'%20cy%3D'7'%20r%3D'4'%2F%3E%3Cpath%20d%3D'M10%2010l3.5%203.5'%2F%3E%3C%2Fsvg%3E") center/12px no-repeat,radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322)}
.tb-set-card.tb-set-i-chest>.tb-sec:before{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%20stroke%3D'%235a3d0f'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'2.5'%20y%3D'6'%20width%3D'11'%20height%3D'7'%20rx%3D'1'%2F%3E%3Cpath%20d%3D'M2.5%206l1.5-3h8l1.5%203M7%208.5h2'%2F%3E%3C%2Fsvg%3E") center/12px no-repeat,radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322)}
.tb-set-card.tb-set-i-reset>.tb-sec:before{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'none'%20stroke%3D'%235a3d0f'%20stroke-width%3D'1.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3.2%208a4.8%204.8%200%201%200%201.6-3.6'%2F%3E%3Cpath%20d%3D'M3%202.6v2.6h2.6'%2F%3E%3C%2Fsvg%3E") center/12px no-repeat,radial-gradient(circle at 35% 30%,#f7dc8e,#c8a13c 68%,#9a7322)}

#tb-head .tb-bug{display:flex;align-items:center;justify-content:center;width:22px;height:20px;padding:0;
  background:rgba(244,228,188,.14);border-color:rgba(217,164,65,.55);color:#f2dcae}
#tb-head .tb-bug:hover{background:rgba(244,228,188,.28);color:#fff6e4}
#tb-head .tb-bug[disabled]{opacity:.55;cursor:progress}
.tb-rp-ico{width:13px;height:13px;flex:none;display:block}
/* The notice strip above the dashboard: one line, two messages, quiet enough
   to live at the top of a tab that is read every day. */
.tb-nb{display:flex;align-items:center;gap:7px;margin:0 0 8px;padding:5px 8px;border:1px solid #d6bd87;
  border-left:3px solid #c08a2c;border-radius:4px;background:#fbf2dd;font-size:11px;color:#5d4a22}
.tb-nb [data-live]{display:flex;align-items:center;gap:7px;min-width:0}
.tb-nb .tb-rp-ico{width:14px;height:14px;color:#8a6516}
.tb-nb-txt{min-width:0}
.tb-nb-link{padding:0;border:0;background:none;font:inherit;color:#8a4a0c;font-weight:bold;
  text-decoration:underline;cursor:pointer}
.tb-nb-link:hover{color:#b2650f}
.tb-nb-link[disabled]{opacity:.6;cursor:progress}
/* A picture of the panel, set in a frame: it fills the frame and scrolls
   inside itself as it does in the game; its controls are for looking at. */
#tb-panel{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;
  width:auto!important;max-width:none!important;height:100%!important;max-height:none!important;
  display:flex!important;flex-direction:column;box-sizing:border-box}
#tb-panel .tb-body{flex:1;min-height:0;max-height:none!important}
#tb-panel button,#tb-panel a,#tb-panel input,#tb-panel select,#tb-panel label,#tb-panel [data-act],
#tb-panel [data-tab],#tb-panel [data-combat],#tb-panel [data-sub]{pointer-events:none}
