/* /tools/ hub from the designer's tools.zip (Oct 27, 2026). Site colour roles; dense rows, filters on the left. */
.tl { margin-top: 4px; }
.tl a { text-decoration: none; }
.tl [hidden] { display: none !important; }
.tl-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 0 16px; }
.tl-intro h1 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.1; letter-spacing: -1px; margin: 0; }
.tl-intro h1 small { display: block; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--meta); font-weight: 600; margin: 0 0 12px; }
.tl-intro h1 span { color: var(--link); }
.tl-lede { color: var(--ink-2); margin: 12px 0 0; max-width: 82ch; font-size: 15px; }
.tl-stack { flex: none; display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--ink); font-size: 13px; }
.tl-stack span { color: var(--meta); }
.tl-stack strong { color: var(--link); font-size: 14px; }
.tl-stack:hover { border-color: var(--accent); }
.tl-search { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); margin: 0 0 12px; }
.tl-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.tl-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); padding: 8px 10px; outline: none; }
.tl-search button, .tl-apply, .tl-btn { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 9px; padding: 9px 18px; background: var(--accent); color: #fff; cursor: pointer; }
.tl-jump { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; margin: 0 0 22px; }
.tl-jump a { color: var(--ink-2); }
.tl-jump a:hover { color: var(--link); }
.tl-work { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.tl-side { position: sticky; top: 70px; display: grid; gap: 14px; max-height: calc(100vh - 86px); overflow: auto; scrollbar-width: thin; }
.tl-filters { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tl-filters > summary { list-style: none; display: none; }
.tl-filters > summary::-webkit-details-marker { display: none; }
.tl-fbody { padding: 14px; display: grid; gap: 12px; }
.tl-fh { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.tl-reset { font: inherit; font-size: 12.5px; background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; }
.tl-stages { display: grid; gap: 2px; }
.tl-stages button { text-align: left; font: inherit; font-size: 13.5px; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.tl-stages button:hover { background: var(--surface-2); color: var(--ink); }
.tl-stages button[aria-pressed="true"] { background: var(--accent-wash); color: var(--link); font-weight: 600; }
.tl-field { display: grid; gap: 4px; font-size: 12px; color: var(--meta); }
.tl-field select { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 8px; width: 100%; min-width: 0; text-overflow: ellipsis; }
/* grid items default to min-width:auto, so a select sized to its longest option widened the 250px sidebar (Dima, Oct 27) */
.tl-side, .tl-filters, .tl-fbody, .tl-field { min-width: 0; }
.tl-side { overflow-x: hidden; }
.tl-check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.tl-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.tl-check span { color: var(--meta); font-size: 12px; }
.tl-allcats { font-size: 13px; color: var(--link); }
.tl-apply { display: none; }
.tl-help { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(160deg, var(--accent-wash), transparent 70%), var(--surface); color: var(--ink); font-size: 13px; }
.tl-help span { color: var(--ink-2); }
.tl-help b { color: var(--link); margin-top: 4px; }
.tl-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--border); margin: 0 0 12px; }
.tl-tabs button { font: inherit; font-size: 14px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 0; color: var(--meta); cursor: pointer; }
.tl-tabs button:hover { color: var(--ink); }
.tl-tabs button[aria-pressed="true"] { color: var(--link); border-bottom-color: var(--accent); font-weight: 600; }
.tl-saved-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-2); font-size: 11.5px; text-align: center; }
.tl-rhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 0 10px; flex-wrap: wrap; }
.tl-rhead h2 { font-size: 19px; margin: 0; }
.tl-rhead p { margin: 2px 0 0; color: var(--meta); font-size: 13px; }
.tl-sort { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--meta); margin-left: auto; }
.tl-sort select { font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 8px; }
.tl-method { position: relative; font-size: 13px; }
.tl-method > summary { cursor: pointer; color: var(--link); list-style: none; }
.tl-method > summary::-webkit-details-marker { display: none; }
.tl-method > div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: min(440px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.18); color: var(--ink-2); }
.tl-method p { margin: 0 0 8px; }
.tl-method a { color: var(--link); }
.tl-active { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tl-active button { font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.tl-cmpbar { position: sticky; top: 64px; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 12px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); font-size: 14px; }
.tl-cmpbar span { flex: 1; }
.tl-x { font: inherit; font-size: 18px; line-height: 1; background: none; border: 0; color: var(--meta); cursor: pointer; padding: 4px 8px; }
.tl-cmp { margin: 0 0 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow-x: auto; }
.tl-cmp-head { display: flex; justify-content: space-between; align-items: center; }
.tl-cmp h2 { font-size: 16px; margin: 0; }
.tl-cmp table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13.5px; }
.tl-cmp th, .tl-cmp td { text-align: left; padding: 8px; border-top: 1px solid var(--border); vertical-align: top; }
.tl-cmp th[scope="row"] { color: var(--meta); font-weight: 500; white-space: nowrap; }
.tl-cmp p { margin: 0; color: var(--meta); font-size: 12.5px; }
.tl-list { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tl-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr) auto; grid-template-areas: "id m act" "more more more"; gap: 4px 16px; align-items: center; padding: 12px 16px; }
.tl-row + .tl-row { border-top: 1px solid var(--border); }
.tl-id { grid-area: id; display: flex; gap: 10px; align-items: center; min-width: 0; }
.tl-rank { flex: none; min-width: 22px; color: var(--meta); font-size: 13px; font-variant-numeric: tabular-nums; }
.tl-rank:empty { display: none; }
.tl-logo { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.tl-name { min-width: 0; }
.tl-name h3 { font-size: 14.5px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name h3 a { color: var(--ink); }
.tl-name h3 a:hover { color: var(--link); }
.tl-name span { display: block; color: var(--meta); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-m { grid-area: m; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; }
.tl-m dt { font-size: 10.5px; color: var(--meta); letter-spacing: .3px; white-space: nowrap; }
.tl-m dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-m dd small { font-size: 11.5px; color: var(--meta); font-weight: 500; }
.tl-m dd.up { color: var(--up); } .tl-m dd.down { color: var(--down); }
.tl-act { grid-area: act; display: flex; align-items: center; gap: 10px; }
.tl-pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tl-pick input { width: 16px; height: 16px; accent-color: var(--accent); }
.tl-save { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: none; color: var(--meta); cursor: pointer; }
.tl-save::before { content: ""; width: 13px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 17'%3E%3Cpath d='M1.5 1h11v14.5L7 12l-5.5 3.5z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 17'%3E%3Cpath d='M1.5 1h11v14.5L7 12l-5.5 3.5z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.tl-save[aria-pressed="true"] { color: var(--link); border-color: var(--accent); background: var(--accent-wash); }
.tl-save[aria-pressed="true"]::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 17'%3E%3Cpath d='M1.5 1h11v14.5L7 12l-5.5 3.5z' fill='black' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 17'%3E%3Cpath d='M1.5 1h11v14.5L7 12l-5.5 3.5z' fill='black' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.tl-more { grid-area: more; font-size: 13px; color: var(--ink-2); }
.tl-more summary { cursor: pointer; color: var(--meta); font-size: 12.5px; width: max-content; }
.tl-more p { margin: 6px 0 0; }
.tl-more a { color: var(--link); }
.tl-facts { color: var(--meta); }
.tl-empty { text-align: center; padding: 30px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; margin-top: 10px; }
.tl-empty h3 { margin: 0 0 4px; }
.tl-empty p { color: var(--meta); margin: 0 0 12px; }
.tl-btn2 { font: inherit; font-size: 14px; font-weight: 550; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.tl-btn2:hover { border-color: var(--accent); }
.tl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 13px; }
.tl-foot a { color: var(--link); }
.tl-sec { margin: 40px 0 0; }
.tl-sh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 0 0 8px; }
.tl-sh h2 { margin: 0; }
.tl-sh > a { font-size: 13px; color: var(--link); }
.tl-cap { color: var(--meta); font-size: 13px; margin: 0 0 12px; max-width: 90ch; }
.tl-eco, .tl-agents, .tl-ud { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-eco button, .tl-agents button, .tl-ud button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.tl-eco button span, .tl-agents button span { color: var(--meta); font-size: 12px; }
.tl-eco button[aria-pressed="true"], .tl-agents button[aria-pressed="true"], .tl-ud button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tl-eco button[aria-pressed="true"] span, .tl-agents button[aria-pressed="true"] span { color: inherit; opacity: .75; }
.tl-agents { margin: 0 0 12px; }
.tl-ud { display: none; margin: 0 0 10px; }
.tl-mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tl-mgrid > div { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tl-mgrid h3 { font-size: 13px; color: var(--meta); font-weight: 600; margin: 0 0 8px; }
.tl-mgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-mgrid a { font-size: 13.5px; color: var(--ink); }
.tl-mgrid a:hover { color: var(--link); }
.tl-stage-h { font-size: 15px; margin: 18px 0 8px; }
.tl-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 34px 0 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tl-keep div { flex: 1; min-width: 220px; }
.tl-keep h2 { font-size: 16px; margin: 0; }
.tl-keep p { margin: 2px 0 0; color: var(--meta); font-size: 13.5px; }
.tl-keep a { color: var(--link); font-size: 14px; font-weight: 550; }
.tl-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--meta); font-size: 12.5px; }
.tl-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tl-footer a { color: var(--link); }
@media (max-width: 1100px) { .tl-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id act" "m m" "more more"; } }
@media (max-width: 900px) { .tl-mgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .tl-intro { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tl-intro h1 span { display: none; }
  .tl-lede { font-size: 14px; }
  .tl-jump { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .tl-jump::-webkit-scrollbar { display: none; }
  .tl-work { grid-template-columns: 1fr; gap: 14px; }
  .tl-side { position: static; max-height: none; overflow: visible; }
  .tl.js .tl-filters > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; min-height: 44px; cursor: pointer; font-weight: 600; }
  .tl.js .tl-filters > summary::after { content: "⌄"; margin-left: auto; color: var(--meta); }
  .tl-fcount { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }
  .tl.js .tl-fbody { border-top: 1px solid var(--border); }
  .tl.js .tl-apply { display: block; min-height: 44px; }
  .tl-help { display: none; }
  .tl-m { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; }
  .tl-row { padding: 12px; }
  .tl-pick span { display: none; }
  .tl-pick input { width: 20px; height: 20px; }
  .tl-mgrid { grid-template-columns: 1fr; }
  .tl.js .tl-ud { display: flex; }
  .tl.js .tl-udgrid [data-ud-pane].off { display: none; }
  .tl-tabs button, .tl-stages button, .tl-check { min-height: 40px; }
}
