/* SuperTop Takeoff pages. Colours, type, radii and shadows come only from the brand tokens (--st-*). */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--st-bg-section); color: var(--st-fg); font-size: 14px; line-height: 1.5; }
[data-theme="dark"] body, body[data-theme="dark"] { background: var(--st-bg); }
button, input, select { font-family: var(--st-font-family-body); }
.tk-loading { padding: var(--st-space-8); color: var(--st-fg-muted); }

/* top bar */
.tk-top { position: sticky; top: 0; z-index: 5; height: 56px; display: flex; align-items: center; gap: var(--st-space-4);
  padding: 0 var(--st-space-6); background: var(--st-bg); border-bottom: 1px solid var(--st-line); }
.tk-brand { display: flex; align-items: center; gap: var(--st-space-2); font: 800 17px/1 var(--st-font-family-heading); color: var(--st-fg-heading); text-decoration: none; }
.tk-brand img { width: 26px; height: 26px; }
.tk-brand b { color: var(--st-wordmark-accent); }
.tk-crumb { color: var(--st-fg-muted); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-crumb a { color: var(--st-fg-muted); text-decoration: none; }
.tk-crumb a:hover { color: var(--st-action-hover); }
.tk-spacer { flex: 1; }
.tk-tool { background: transparent; border: 1px solid var(--st-line); color: var(--st-fg); border-radius: var(--st-radius-pill);
  padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.tk-tool:hover { border-color: var(--st-line-strong); }
.tk-tool:focus-visible { outline: none; box-shadow: var(--st-shadow-focus); }

/* page */
.tk-main { max-width: var(--st-container-max); margin: 0 auto; padding: var(--st-space-6); }
.tk-h1 { font: 800 26px/1.2 var(--st-font-family-heading); color: var(--st-fg-heading); margin: 0 0 var(--st-space-1); }
.tk-sub { color: var(--st-fg-muted); margin: 0 0 var(--st-space-5); }
.tk-row { display: flex; gap: var(--st-space-3); align-items: center; flex-wrap: wrap; }
.tk-card { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow-card); padding: var(--st-space-5); }
[data-theme="dark"] .tk-card { box-shadow: none; background: var(--st-bg-subtle); }
.tk-section { margin-top: var(--st-space-6); }
.tk-h2 { font: 800 18px/1.3 var(--st-font-family-heading); color: var(--st-fg-heading); margin: 0 0 var(--st-space-3); }
.tk-h3 { font: 700 15px/1.3 var(--st-font-family-heading); margin: var(--st-space-4) 0 var(--st-space-2); }
.tk-card > div > .tk-h3, .tk-card > div > .tk-muted { padding: 0 var(--st-space-4); }
.tk-muted { color: var(--st-fg-muted); }
.tk-error { color: var(--st-color-danger-fg); font-weight: 600; }
.st-input { width: 100%; }
[data-theme="dark"] .st-input { background: var(--st-color-dark-surface); color: var(--st-fg); border-color: var(--st-color-dark-border-strong); }
label.tk-field { display: block; font-weight: 600; font-size: 13px; margin-bottom: var(--st-space-3); }
label.tk-field span { display: block; margin-bottom: 4px; }

/* login */
.tk-login { max-width: 380px; margin: 12vh auto; }
.tk-login .st-btn { width: 100%; justify-content: center; margin-top: var(--st-space-2); }

/* lists and tables */
.tk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tk-table th, .tk-table td { padding: 8px 10px; border-bottom: 1px solid var(--st-line); text-align: left; vertical-align: top; }
.tk-table th { font-weight: 700; color: var(--st-fg-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; background: var(--st-bg-subtle); }
.tk-table td.n, .tk-table th.n { text-align: right; white-space: nowrap; }
.tk-table tr.tk-click { cursor: pointer; }
.tk-table tr.tk-click:hover td { background: var(--st-bg-subtle); }
.tk-table .tk-quote { color: var(--st-fg-muted); font-size: 12px; max-width: 520px; }
.tk-scroll { overflow-x: auto; }

/* cards */
.tk-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--st-space-2); margin-top: var(--st-space-2); }
.tk-stat { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: var(--st-radius-md); padding: var(--st-space-2); min-width: 0; }
[data-theme="dark"] .tk-stat { background: var(--st-bg-subtle); }
.tk-stat b { display: block; font: 800 18px/1.2 var(--st-font-family-heading); color: var(--st-fg-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-stat span { display: block; color: var(--st-fg-muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tabs */
.tk-tabs { display: flex; gap: var(--st-space-1); border-bottom: 1px solid var(--st-line); margin: var(--st-space-6) 0 var(--st-space-4); flex-wrap: wrap; }
.tk-tab { background: none; border: none; padding: 10px 14px; font-weight: 700; color: var(--st-fg-muted); cursor: pointer; border-bottom: 3px solid transparent; }
.tk-tab[aria-selected="true"] { color: var(--st-action); border-bottom-color: var(--st-action); }
.tk-tab:focus-visible { outline: none; box-shadow: var(--st-shadow-focus); }
/* Specification: a tab per kind, its codes, its search (the ERP PM, 美东 11/22) */
.tk-subtabs { margin: var(--st-space-2) var(--st-space-4) var(--st-space-3); }
.tk-spectools { display: flex; align-items: center; gap: var(--st-space-3); flex-wrap: wrap; margin: 0 var(--st-space-4) var(--st-space-2); }
.tk-search { width: min(320px, 100%); }
.tk-codes { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 var(--st-space-4) var(--st-space-3); }
.tk-codes:empty { display: none; }
.tk-code { background: none; border: none; padding: 2px 4px; font: inherit; font-weight: 700; color: var(--st-action); text-decoration: underline; cursor: pointer; border-radius: 4px; }   /* every code on every page: dark green, bold, underlined (the ERP PM, 美东 11/23) */
.tk-code:focus-visible { outline: none; box-shadow: var(--st-shadow-focus); }
mark.tk-hit { background: var(--st-color-warning-bg); color: var(--st-color-warning-fg); padding: 0 1px; border-radius: 2px; }
@keyframes tk-flash { from { background: var(--st-color-warning-bg); } to { background: transparent; } }
tr.tk-flash > td { animation: tk-flash 2s ease-out; }
/* Back to top, one for the whole site */
.tk-totop { position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 8px 14px; border-radius: var(--st-radius-pill); border: 1px solid var(--st-line);
  background: var(--st-surface, #fff); color: var(--st-action); font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.tk-totop[hidden] { display: none; }

/* upload */
.tk-files { list-style: none; padding: 0; margin: var(--st-space-3) 0 0; }
.tk-files li { display: grid; grid-template-columns: 1fr 120px 70px 28px; gap: var(--st-space-3); align-items: center; padding: 6px 0; border-bottom: 1px solid var(--st-line); }
.tk-bar { height: 8px; background: var(--st-bg-subtle); border-radius: var(--st-radius-pill); overflow: hidden; border: 1px solid var(--st-line); }
.tk-bar i { display: block; height: 100%; width: 0; background: var(--st-action); transition: width .2s; }
.tk-x { background: none; border: none; color: var(--st-fg-muted); cursor: pointer; font-size: 18px; line-height: 1; }
.tk-stages { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px var(--st-space-4); }
.tk-stages li { display: flex; gap: var(--st-space-2); align-items: center; color: var(--st-fg-muted); }
.tk-stages li.done { color: var(--st-color-success-fg); }
.tk-stages li.now { color: var(--st-fg); font-weight: 700; }
.tk-stages li::before { content: "○"; width: 18px; display: inline-block; }
.tk-stages li.done::before { content: "✓"; }
.tk-stages li.now::before { content: "●"; color: var(--st-action); }
.tk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-space-5); }
@media (max-width: 900px) { .tk-cards { grid-template-columns: repeat(2, 1fr); } .tk-grid2 { grid-template-columns: 1fr; } }
.tk-detail > td { background: var(--st-color-surface-subtle, rgba(127,127,127,.06)); }
.tk-detail .tk-h3 { padding: 0; }
/* dashboard (v1.2 §13.8) */
.tk-date-soon { background: #FFF4D6; color: #8A5A00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.tk-date-late { background: #FDECEA; color: #B42318; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.tk-seg { display: inline-flex; gap: 4px; }
.tk-seg [aria-pressed="true"] { background: var(--st-color-primary, #1f7a4d); color: #fff; }
.tk-board { display: grid; grid-template-columns: repeat(7, minmax(180px, 1fr)); gap: 10px; overflow-x: auto; }
.tk-col { background: var(--st-surface-2, rgba(127,127,127,.06)); border-radius: 10px; padding: 8px; min-height: 240px; }
.tk-col > header { font-weight: 700; margin-bottom: 6px; }
.tk-col-body { display: flex; flex-direction: column; gap: 8px; min-height: 200px; border-radius: 8px; }
.tk-col-body.tk-drop { outline: 2px dashed var(--st-color-primary, #1f7a4d); }
.tk-kcard { background: var(--st-surface, #fff); border: 1px solid var(--st-line, #dfe4dc); border-radius: 8px; padding: 8px; cursor: grab; font-size: 13px; }
.tk-kcard.tk-dragging { opacity: .5; }
.tk-dialog { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-start; justify-content: center; padding-top: 60px; z-index: 50; }
.tk-dialog > div { background: var(--st-surface, #fff); color: inherit; border-radius: 12px; padding: 18px 20px; width: min(640px, 94vw); max-height: 84vh; overflow: auto; }
.tk-form { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; align-items: center; }
.tk-form-note { grid-column: 1 / -1; margin: 0; }   /* a note takes the whole row, not a cell: the labels after it stay beside their inputs */
.tk-banner { background: #FFF4D6; color: #6B4600; border-radius: 8px; padding: 8px 12px; margin: 8px 0; display: flex; gap: 10px; align-items: center; }

/* background jobs: big progress bar, time left, toasts */
.tk-bar--big { height: 14px; margin-top: var(--st-space-3); }
.tk-bar--big i { transition: width .8s linear; }
.tk-eta { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.tk-next { border-left: 4px solid var(--st-action); }
.tk-job--done h2 { color: var(--st-color-success-fg); }
.tk-banner--red { background: #FDE8E8; color: #8A1C1C; }
.tk-pick-list { max-height: 260px; overflow: auto; border: 1px solid var(--st-line, #D9DDD5); border-radius: 8px; padding: 6px 10px; }
.tk-pick-row { display: block; padding: 2px 0; }
.tk-qty-orange { color: #B54708; font-weight: 700; background: #FCEFE3; border-radius: 4px; padding: 0 6px; }
.tk-qty-red { color: #B42318; font-weight: 700; background: #FDE8E8; border-radius: 4px; padding: 0 6px; }
.tk-banner--ok { background: var(--st-color-success-bg, #E7F6EC); color: var(--st-color-success-fg, #1E6B3A); justify-content: space-between; }
.tk-toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 80; width: min(380px, calc(100vw - 32px)); }
.tk-toast { background: var(--st-surface, #fff); color: inherit; border: 1px solid var(--st-line); border-left: 4px solid var(--st-color-success-fg, #1E6B3A);
  border-radius: 10px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.tk-toast--error { border-left-color: var(--st-color-danger-fg, #B42318); }
.tk-toast--info { border-left-color: var(--st-color-text-muted, #5B6670); }
.tk-toast p { margin: 4px 0 8px; color: var(--st-fg-muted); }

/* workbench (M4): three columns that fill the window */
.tk-main.wb-main { max-width: none; padding: 0; height: calc(100vh - 56px); display: flex; flex-direction: column; }
.wb-bar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--st-line); background: var(--st-bg); }
.wb-pname { font-family: var(--st-font-family-heading); }
.wb-seg { display: inline-flex; gap: 4px; }
.wb-sm { padding: 3px 9px; font-size: 12px; text-decoration: none; }
.tk-tool.wb-on, .wb-chipbtn.wb-on, .wb-folder.wb-on { background: var(--st-action); color: #fff; border-color: var(--st-action); }
.wb-sm-text { font-size: 12px; }
.wb-grid { flex: 1; min-height: 0; display: flex; }
.wb-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--st-bg); }
.wb-col[hidden], .wb-split[hidden] { display: none; }
.wb-mid { flex: 1; background: var(--st-bg-section); }
.wb-split { width: 6px; cursor: col-resize; background: var(--st-line); flex: 0 0 6px; }
.wb-split:hover { background: var(--st-action); }
.wb-left { border-right: 1px solid var(--st-line); }
.wb-lhead { padding: 8px; border-bottom: 1px solid var(--st-line); display: grid; gap: 6px; }
.wb-folders { display: flex; gap: 4px; }
.wb-folder, .wb-chipbtn { border: 1px solid var(--st-line); background: transparent; color: var(--st-fg); border-radius: var(--st-radius-pill); padding: 3px 10px; font-weight: 600; font-size: 12px; cursor: pointer; }
.wb-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.wb-filters[hidden] { display: none; }
.wb-both { font-size: 12px; color: var(--st-fg-muted); }
.wb-search { padding: 6px 10px; }
.wb-list { overflow: auto; flex: 1; padding: 4px 0; }
.wb-group { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--st-fg-muted); padding: 8px 10px 2px; font-weight: 700; }
.wb-item { display: flex; gap: 6px; align-items: center; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; padding: 5px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.wb-item:hover { background: var(--st-bg-subtle); }
.wb-item.wb-sel { background: var(--st-color-success-bg, #E7F6EC); box-shadow: inset 3px 0 0 var(--st-action); }
.wb-item--static { cursor: default; }
.wb-item-r { margin-left: auto; display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.wb-item .st-chip { font-size: 10.5px; padding: 0 6px; }
.wb-page { padding-left: 24px; font-size: 12px; }
.wb-hit { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.wb-dots { display: inline-flex; gap: 2px; }
.wb-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--st-line); }
.wb-dot--confirmed { background: var(--st-color-success-fg, #1E6B3A); }
.wb-dot--pending { background: #E5A50A; }
.wb-dot--changed { background: var(--st-color-danger-fg, #B42318); }
.wb-mhead { padding: 8px 12px; background: var(--st-bg); border-bottom: 1px solid var(--st-line); }
.wb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wb-uname { font: 800 18px/1.2 var(--st-font-family-heading); }
.wb-areas { font-size: 12px; margin-top: 2px; }
.wb-mbody { overflow: auto; flex: 1; padding: 10px 12px; }
.wb-empty { padding: 24px; }
.wb-figs { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.wb-fig { margin: 0; background: #fff; border: 1px solid var(--st-line); border-radius: 8px; padding: 6px; max-width: 100%; }
.wb-fig svg { max-width: 100%; height: auto; display: block; }
.wb-fig figcaption { font-size: 11px; color: #5B6660; text-align: center; }
.wb-fig [data-ref] { cursor: pointer; }
.wb-fig [data-ref]:hover polygon, .wb-fig [data-ref]:hover line { stroke: #147A41; }
.wb-fig .wb-ref-sel polygon { fill: #DDF3E4 !important; stroke: #147A41 !important; }
.wb-fig .wb-ref-sel line { stroke: #147A41 !important; }
.wb-fig .wb-ref-sel text { fill: #147A41 !important; }
.wb-table { width: 100%; border-collapse: collapse; background: var(--st-bg); font-size: 13px; }
.wb-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--st-fg-muted); padding: 6px 8px; border-bottom: 1px solid var(--st-line); }
.wb-table td { padding: 5px 8px; border-bottom: 1px solid var(--st-line); vertical-align: top; }
.wb-num { text-align: right; font-variant-numeric: tabular-nums; }
.wb-row-sel td { background: var(--st-color-success-bg, #E7F6EC); }
.wb-run { cursor: pointer; }
.wb-dims { display: flex; flex-wrap: wrap; gap: 4px; }
.wb-dim { border: 1px dashed var(--st-line-strong); background: transparent; color: inherit; border-radius: 6px; padding: 1px 6px; cursor: text; font: inherit; font-variant-numeric: tabular-nums; }
.wb-dim:hover { border-color: var(--st-action); border-style: solid; }
.wb-dim--manual { border-color: #B54708; border-style: solid; background: #FCEFE3; color: #6B2F05; }
.wb-dk { font-size: 10.5px; color: var(--st-fg-muted); font-weight: 700; }
.wb-editing { display: inline-flex; gap: 4px; align-items: center; }
.wb-dimin { width: 92px; padding: 2px 6px; }
.wb-seq { display: flex; flex-wrap: wrap; gap: 3px; }
.wb-segbtn { border: 1px solid var(--st-line); background: var(--st-bg); color: inherit; border-radius: 4px; padding: 0 5px; font-size: 11.5px; cursor: pointer; }
.wb-segbtn--filler { background: #F3EBDD; }
.wb-segbtn--appliance { background: #EEF1F4; }
.wb-segbtn--corner { background: #ECEFF2; }
.wb-feedback:empty { display: none; }
.wb-fbbox { margin: 8px 12px 0; padding: 8px 10px; border: 1px solid #E5A50A; background: #FFF8E6; color: #4A3200; border-radius: 8px; display: grid; gap: 6px; }
.wb-fbbox .st-input { flex: 1; min-width: 220px; }
.wb-fbkind { width: auto; flex: 0 0 auto !important; min-width: 0 !important; }
.wb-fbbox--ok { border-color: var(--st-color-success-fg, #1E6B3A); background: var(--st-color-success-bg, #E7F6EC); color: var(--st-color-success-fg, #1E6B3A); display: flex; justify-content: space-between; align-items: center; }
/* original page viewer */
.wb-viewer { display: flex; flex-direction: column; height: 100%; }
.wb-vbar { display: flex; gap: 4px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--st-line); flex-wrap: wrap; }
.wb-pagesel { width: auto; max-width: 220px; padding: 3px 8px; font-size: 12px; }
.wb-zoom { font-size: 12px; min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.wb-scroll { flex: 1; overflow: auto; background: #6E7672; cursor: grab; position: relative; }
.wb-scroll.wb-grab { cursor: grabbing; }
.wb-sheet { position: relative; margin: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.wb-canvas { position: absolute; left: 0; top: 0; }
.wb-overlay { position: absolute; inset: 0; }
.wb-overlay.wb-measuring { cursor: crosshair; }
.wb-hl { position: absolute; border: 2px solid #E5A50A; background: rgba(229,165,10,.12); pointer-events: none; }
.wb-hl--src { border-color: #D92D20; background: rgba(217,45,32,.14); box-shadow: 0 0 0 3px rgba(217,45,32,.18); }
.wb-hl--view { border: 1.5px dashed #147A41; background: transparent; }
.wb-hl--seg { border: 1px solid rgba(20,122,65,.6); background: rgba(20,122,65,.06); }
.wb-hl--hit { border-color: #2563EB; background: rgba(37,99,235,.15); }
.wb-mpt { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #D92D20; pointer-events: none; }
.wb-mline { position: absolute; left: 0; top: 0; pointer-events: none; }
.wb-mline line { stroke: #D92D20; stroke-width: 2; }
.wb-mlabel { position: absolute; background: #D92D20; color: #fff; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.wb-vstatus { font-size: 12px; padding: 2px 8px; min-height: 20px; }
.wb-vstatus:empty { display: none; }

/* revision review (M5) */
.rv-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(420px, 40%) minmax(0, 1fr); }
.rv-list { overflow: auto; border-right: 1px solid var(--st-line); background: var(--st-bg); padding-bottom: 24px; }
.rv-head { padding: 10px 12px; border-bottom: 1px solid var(--st-line); }
.rv-head .tk-table, .rv-head table { font-size: 12px; }
.rv-viewers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; min-width: 0; }
.rv-v { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; border-right: 1px solid var(--st-line); }
.rv-vh { font-weight: 700; font-size: 12px; padding: 4px 8px; background: var(--st-bg-subtle); }
.rv-v .wb-viewer { flex: 1; min-height: 0; }
.rv-item { padding: 8px 12px; border-bottom: 1px solid var(--st-line); cursor: pointer; }
.rv-item:hover { background: var(--st-bg-subtle); }
.rv-item--manual { box-shadow: inset 3px 0 0 var(--st-color-danger-fg, #B42318); }
.rv-item-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv-diff { font-size: 12.5px; margin-top: 3px; }
.rv-old { color: var(--st-color-danger-fg, #B42318); text-decoration: line-through; text-decoration-thickness: 1px; }
.rv-new { color: var(--st-color-success-fg, #1E6B3A); font-weight: 600; }
.tk-link { color: var(--st-action); font-weight: 600; text-decoration: none; }

/* common areas in the workbench */
.wb-group--row { display: flex; justify-content: space-between; align-items: center; }
.wb-out { opacity: .55; text-decoration: line-through; }
.wb-toggle { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.wb-addpiece { margin-top: 14px; padding: 10px 12px; background: var(--st-bg); border: 1px dashed var(--st-line-strong); border-radius: 8px; }
.wb-dimlab { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
.wb-dimlab--v { flex-direction: column; align-items: flex-start; gap: 2px; margin-right: 8px; }

/* angled countertops */
.wb-angle-chip { font-size: 10.5px; font-weight: 700; color: #fff; background: #7C3AED; border-radius: 999px; padding: 0 6px; }
.wb-angle-banner { margin-top: 6px; padding: 6px 10px; border: 1.5px solid #7C3AED; background: #F3EEFF; color: #4C1D95; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.wb-angle-banner--ok { border-color: var(--st-color-success-fg, #1E6B3A); background: var(--st-color-success-bg, #E7F6EC); color: var(--st-color-success-fg, #1E6B3A); }
.wb-fig--angled { border: 2px solid #7C3AED; }
.wb-dim--angle { border-color: #7C3AED; border-style: solid; background: #F3EEFF; color: #4C1D95; }
.wb-angle-ed { padding: 6px 0; }
.wb-angle-ed .wb-fig svg { max-width: 380px; }
.wb-hl--angle { border-color: #7C3AED; background: rgba(124,58,237,.15); border-radius: 50%; box-shadow: 0 0 0 4px rgba(124,58,237,.25); }

/* a status chip in a table cell stays on one line */
td .st-chip, td .tk-chip { white-space: nowrap; }
/* a small turning ring in front of a line that says something is being looked up (pure CSS) */
.tk-spin { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--st-line, #ccc); border-top-color: var(--st-primary, #1F4E79); border-radius: 50%; animation: tk-spin .8s linear infinite; }
@keyframes tk-spin { to { transform: rotate(360deg); } }

/* the project page, compact (Raymond 美东 11/21): the title, the buttons, the progress box and the cards in the first screen */
.tk-ovtitle { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-2) var(--st-space-4); margin: 0 0 var(--st-space-2); }
.tk-ovtitle .tk-h1 { font-size: 20px; margin: 0; }
.tk-ovbtns { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--st-space-2) var(--st-space-4); margin: 0 0 var(--st-space-2); }
.tk-ovbtns-left, .tk-ovbtns-right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-2); }
.tk-ovbtns-right { margin-left: auto; justify-content: flex-end; }
/* the one progress box (a job, an upload): title, bar and times on a row; the steps side by side on the next */
.tk-job { display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; align-items: center; gap: var(--st-space-1) var(--st-space-4); }
.tk-job h2 { margin: 0; font-size: 15px; }
.tk-job .tk-bar { margin: 0; }
.tk-job .tk-eta { margin: 0; white-space: nowrap; }
.tk-job > :not(h2):not(.tk-bar):not(.tk-eta) { grid-column: 1 / -1; }
.tk-card:has(> .tk-job) { padding: var(--st-space-2) var(--st-space-4); }
@media (max-width: 640px) { .tk-job { grid-template-columns: 1fr; } .tk-job .tk-eta { white-space: normal; } }
.tk-codecard { background: var(--st-surface, #fff); color: inherit; border: 1px solid var(--st-border, #cfd8d3); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 10px 12px; font-size: 13px; max-height: 60vh; overflow: auto; }
.tk-codecard-row { margin: 6px 0; color: var(--st-fg); }
.tk-codecard-src { font-size: 12px; color: var(--st-fg); }   /* where it is from: readable, not grey */
/* a material with no code on the drawing: what was written, in plain text (not a link); its card says so */
.tk-material { background: none; border: none; padding: 0; font: inherit; color: var(--st-fg); cursor: pointer; text-align: left; }
.tk-material:focus-visible { outline: none; box-shadow: var(--st-shadow-focus); }
