/* CoreShift Lockout — industrial, calm, high-contrast. */
:root {
  --paper: #F3EFE6; --paper-2: #EAE4D7; --card: #FFFFFF;
  --ink: #16181B; --ink-2: #33373D; --muted: #6B7077; --rule: #DDD6C8;
  --signal: #DC4A12; --signal-ink: #B83A0C;
  --danger: #B3261E; --safety: #F2C230; --ok: #2E7D4F; --ok-bg: #DCEFE3; --warn-bg: #FFF4CC; --bad-bg: #F6DCD8;
  --steel: #2A2F35;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--signal-ink); }
h1, h2, h3 { font-stretch: 87.5%; letter-spacing: -.015em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: 37.4px; font-weight: 750; } h2 { font-size: 26.4px; font-weight: 700; } h3 { font-size: 19.8px; font-weight: 700; }
p { margin: 0 0 .8em; color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.brand__word { font: 750 23.1px/1 var(--sans); font-stretch: 87.5%; letter-spacing: -.02em; }
.brand__ai { color: var(--signal); margin-left: 3px; }
.product { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.product__icon { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px #3A4048; }
.product__text { display: flex; flex-direction: column; gap: 3px; }
.product__prefix { font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.product__name { font: 800 24.2px/1 var(--sans); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: #fff; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 17px/1 var(--sans); padding: 12px 18px; border-radius: 8px; border: 2px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; min-height: 46px; }
.btn:hover { background: var(--steel); }
.btn--signal { background: var(--signal); border-color: var(--signal); }
.btn--signal:hover { background: var(--signal-ink); border-color: var(--signal-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--sm { min-height: 36px; padding: 8px 12px; font-size: 16px; }
.btn--block { width: 100%; }
label { display: block; font-weight: 650; font-size: 16px; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 15px; color: var(--muted); margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=file], select, textarea {
  width: 100%; font: 400 18px/1.4 var(--sans); padding: 11px 12px; border: 1.5px solid #C9C2B4; border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(220,74,18,.2); }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 17px; }
.alert--err { background: var(--bad-bg); color: #7A1C15; } .alert--ok { background: var(--ok-bg); color: #1F5C38; } .alert--warn { background: var(--warn-bg); color: #6B5200; }

/* ---------- Sign-in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth__brand { position: relative; background: var(--ink); color: #F3EFE6; padding: 48px 56px; display: flex; flex-direction: column; overflow: hidden; }
.auth__brand .brand__word { color: #F3EFE6; }
.auth__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: repeating-linear-gradient(-45deg, var(--safety) 0 22px, var(--ink) 22px 44px); }
.auth__hero { margin-top: auto; margin-bottom: auto; padding: 48px 0; max-width: 560px; }
.auth__hero .product { margin-bottom: 26px; }
.auth__hero .product__name { font-size: 33px; } .auth__hero .product__icon { width: 56px; height: 56px; border-radius: 12px; } .auth__hero .product__prefix { font-size: 15px; }
.auth__title { font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1.02; color: #fff; margin-bottom: 18px; }
.auth__lede { color: #C9CED4; font-size: 19.8px; max-width: 46ch; }
.auth__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth__points li { display: flex; gap: 12px; align-items: flex-start; color: #E3E0D8; font-size: 17px; }
.auth__points svg { flex: none; margin-top: 2px; }
.auth__tag { position: absolute; right: 48px; top: 120px; width: 170px; transform: rotate(6deg); opacity: .95; }
.auth__foot { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: #9AA3AB; font-size: 15px; line-height: 1; text-decoration: none; margin-bottom: 22px; }
.auth__foot img { width: 18px; height: 18px; border-radius: 4px; opacity: .9; }
.auth__foot b { color: #E3E0D8; font-weight: 600; }
.auth__foot:hover b { color: #fff; }
.auth__dot { width: 3px; height: 3px; border-radius: 50%; background: #5A6068; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth__card { width: 100%; max-width: 420px; }
.auth__card h1 { font-size: 33px; }
.auth__divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; margin: 26px 0; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.auth__worker { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; }
.auth__worker p { margin: 0; font-size: 16px; }
.auth__legal { margin-top: 28px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { padding: 28px 20px 40px; }
  .auth__hero { padding: 28px 0 8px; }
  .auth__tag, .auth__points { display: none; }
  .auth__form { padding: 32px 16px 48px; }
}

/* ---------- App shell ---------- */
.top { background: var(--ink); color: #fff; }
.top__row { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.top .brand__word { color: #fff; font-size: 19.8px; }
.top__sep { width: 1px; height: 28px; background: #3A4048; }
.top .product__icon { width: 34px; height: 34px; } .top .product__name { font-size: 19.8px; }
.top__nav { display: flex; gap: 6px; margin-left: 12px; }
.top__nav a { color: #C9CED4; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 17px; }
.top__nav a:hover, .top__nav a[aria-current] { background: #2A2F35; color: #fff; }
.top__user { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 16px; color: #C9CED4; }
.top__user a { color: #fff; }
.stripe { height: 6px; background: repeating-linear-gradient(-45deg, var(--safety) 0 12px, var(--ink) 12px 24px); }
.page { max-width: 1200px; margin: 0 auto; padding: 28px 20px 64px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.crumbs { font-size: 16px; color: var(--muted); margin-bottom: 6px; } .crumbs a { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }
.stat b { display: block; font: 800 37.4px/1 var(--sans); font-stretch: 87.5%; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 16px; }
.bar { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-top: 10px; } .bar i { display: block; height: 100%; background: var(--ok); }
table.list { width: 100%; border-collapse: collapse; font-size: 17px; }
table.list th { text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--rule); }
table.list td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.list tr:hover td { background: #FBFAF6; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 15px; font-weight: 700; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: #1F5C38; } .pill--draft { background: var(--warn-bg); color: #6B5200; } .pill--bad { background: var(--bad-bg); color: #7A1C15; } .pill--none { background: #ECE8E0; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 17px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo figcaption { font-size: 15px; padding: 6px 8px; background: #fff; }
.photo form { position: absolute; top: 6px; right: 6px; }
.photo button { border: 0; background: rgba(22,24,27,.75); color: #fff; border-radius: 6px; font-size: 14px; padding: 4px 8px; cursor: pointer; }
.energy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.energy { border: 1px solid var(--rule); border-left: 6px solid var(--signal); border-radius: 8px; padding: 12px 14px; background: #fff; }
.energy h3 { margin-bottom: 4px; } .energy p { margin: 0; font-size: 16px; }
.qrbox { display: flex; gap: 16px; align-items: center; }
.qrbox svg { width: 128px; height: 128px; background: #fff; padding: 6px; border: 1px solid var(--rule); border-radius: 6px; }
.section { margin-top: 20px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two { grid-template-columns: 1fr; } .top__nav { display: none; } }

/* Editor */
.etable { width: 100%; border-collapse: collapse; font-size: 16px; }
.etable th { text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px; }
.etable td { padding: 4px; vertical-align: top; }
.etable input, .etable select { padding: 8px; font-size: 16px; }
.etable tr.low td { background: var(--warn-bg); }
.etable tr.low input { background: #FFFBEA; border-color: #E2C766; }
.etable input { min-width: 130px; } .etable td:first-child input { min-width: 64px; }
.scroll { overflow-x: auto; }
.questions { background: var(--warn-bg); border-radius: 8px; padding: 14px 18px; }
.questions ul { margin: 6px 0 0; padding-left: 20px; }

/* Chips (checkbox groups) */
.label { display: block; font-weight: 650; font-size: 16px; margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1.5px solid #C9C2B4; border-radius: 99px; background: #fff; font-weight: 600; font-size: 16px; cursor: pointer; }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--signal); }
.chip:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }

/* Lockout */
.lockbanner { background: var(--danger); color: #fff; border-radius: var(--radius); padding: 14px 18px; font-size: 18.7px; }
.lockbanner b { letter-spacing: .08em; }
.muted-light { color: #FBD9D3; font-size: 16px; margin-top: 2px; }
.point { border-top: 1px solid var(--rule); padding: 12px 0; }
.point h3 { margin-bottom: 2px; }
.checks { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.checks .chip { border-radius: 8px; }
.inline-details { display: inline-block; margin-left: 6px; }
.inline-details summary { cursor: pointer; color: var(--signal-ink); font-size: 16px; }
.qrow { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--rule); padding: 10px 0; }
.qrow p { margin: 0; }
.seg { display: inline-flex; border: 1.5px solid #C9C2B4; border-radius: 8px; overflow: hidden; flex: none; }
.seg label { margin: 0; } .seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; font-weight: 700; font-size: 16px; cursor: pointer; background: #fff; }
.seg label + label span { border-left: 1.5px solid #C9C2B4; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--signal); }
input[type=date] { width: 100%; font: 400 18px/1.4 var(--sans); padding: 10px 12px; border: 1.5px solid #C9C2B4; border-radius: 8px; background: #fff; }
.etable textarea { min-height: 0; padding: 8px; font-size: 16px; min-width: 180px; }
@media (max-width: 700px) { .qrow { flex-direction: column; align-items: flex-start; } }

[hidden] { display: none !important; }

/* Voice input */
.voice-wrap { position: relative; }
.voice-wrap > input, .voice-wrap > textarea { padding-right: 52px; }
.mic { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.mic.on { background: var(--danger); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(179,38,30,.5); } 70% { box-shadow: 0 0 0 12px rgba(179,38,30,0); } 100% { box-shadow: 0 0 0 0 rgba(179,38,30,0); } }
.interim { color: var(--muted); font-style: italic; font-size: 16px; min-height: 1.2em; margin-top: 4px; }

/* Capture at the machine */
.cap { max-width: 860px; }
.cap-fields { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.shot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; margin: 0;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-weight: 700; font-size: 17px; text-align: center; padding: 10px; cursor: pointer; }
.shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shot .ic { font-size: 28.6px; line-height: 1; }
.shot small { font-weight: 500; color: var(--muted); font-size: 14px; }
.shot--main { background: var(--ink); color: #fff; } .shot--main small { color: #C9CED4; }
.shot--read { border-color: var(--signal); }
.shot:active { transform: scale(.98); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumb { margin: 0; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.thumb figcaption { font-size: 13px; padding: 3px 6px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb.up img { opacity: .5; } .thumb.err { outline: 2px solid var(--danger); cursor: pointer; }
.cap-bar { position: sticky; bottom: 0; padding: 12px 0; background: var(--paper); margin-top: 16px; }
.cap-bar .btn { min-height: 56px; font-size: 18.7px; }

/* Round 3: inbox, chat, team, AI */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--signal); color: #fff; font: 700 14px/1 var(--sans); }
.test-banner { background: #6B5200; color: #FFF4CC; text-align: center; font: 700 15px var(--sans); letter-spacing: .06em; padding: 6px; }
.mnav { display: none; gap: 4px; overflow-x: auto; background: var(--ink); padding: 0 12px 10px; }
.mnav a { color: #C9CED4; text-decoration: none; padding: 7px 10px; border-radius: 6px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.mnav a[aria-current] { background: #2A2F35; color: #fff; }
@media (max-width: 900px) { .mnav { display: flex; } }
.thread { display: flex; justify-content: space-between; gap: 16px; padding: 14px 6px; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.thread:first-child { border-top: 0; } .thread:hover { background: #FBFAF6; }
.thread p { margin: 2px 0 0; } .thread--waiting { border-left: 4px solid var(--signal); padding-left: 12px; }
.code-big { font: 700 44px/1 var(--mono); letter-spacing: .18em; margin: 6px 0 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 40vh; }
.chat--lead { max-height: 60vh; overflow-y: auto; }
.chat-empty { color: var(--muted); text-align: center; margin: 30px 0; }
.msg { max-width: 82%; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); align-self: flex-start; }
.msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); }
.msg--me .msg__who { color: #C9CED4; }
.msg--assistant { background: #EEF3FB; border-color: #C9D6EC; }
.msg__who { font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.msg__text { font-size: 18px; line-height: 1.4; white-space: normal; }
.msg img { max-width: 100%; max-height: 260px; border-radius: 8px; margin-top: 6px; display: block; }
.msg__tag { font-size: 14px; color: #F2C230; margin-top: 4px; }
.chat-bar { position: sticky; bottom: 0; background: var(--paper); padding: 10px 12px 14px; border-top: 1px solid var(--rule); }
.chat-bar--lead { margin-top: 10px; border: 0; padding: 0; position: static; }
.chat-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end; }
.chat-bar--lead .chat-row { grid-template-columns: 1fr auto; }
.chat-row textarea { min-height: 46px; }
.chat-cam { position: relative; width: 46px; height: 46px; border-radius: 8px; border: 1.5px solid #C9C2B4; background: #fff; display: grid; place-items: center; font-size: 22px; margin: 0; cursor: pointer; }
.chat-cam input { position: absolute; inset: 0; opacity: 0; }
.chat-ai { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.chat-ai input { width: 18px; height: 18px; accent-color: var(--signal); }
.ai-card { border-left: 6px solid #3B5BA5; }
.issue { padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; font-size: 16px; background: var(--paper); }
.issue--high { background: var(--bad-bg); } .issue--medium { background: var(--warn-bg); }
.ai-cap { display: block; color: #3B5BA5; font-size: 14px; margin-top: 2px; }
.chat-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.chat-row .voice-wrap, .chat-row > textarea { flex: 1; min-width: 0; }
.chat-row .interim { flex-basis: 100%; order: 5; margin: 0; }
.chat-row .btn { min-height: 46px; }

.ai-cap { display: block; color: #3B5BA5; font-size: 14px; margin-top: 4px; }
.ai-cap summary { cursor: pointer; font-weight: 700; }
.photos { align-items: start; }

/* =====================================================================
   Theme: Industrial (chosen Oct 14, 2026). Dark sidebar, safety yellow,
   condensed type. Overrides the earlier styles above.
   ===================================================================== */
:root {
  --paper: #ECE9E3; --paper-2: #E2DED5; --card: #FFFFFF;
  --ink: #101317; --ink-2: #33383F; --muted: #5F6670; --rule: #E2DED5;
  --steel: #262C33; --safety: #F2C230; --radius: 8px;
}
body { font: 400 17px/1.5 var(--sans); background: var(--paper); }
h1 { font: 800 37.4px/1.05 var(--sans); font-stretch: 82%; letter-spacing: 0; }
h2 { font: 800 17px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
h3 { font-weight: 800; }
.empty h2 { font-size: 24.2px; text-transform: none; letter-spacing: 0; font-stretch: 85%; }
a { color: #A8360C; }

/* Buttons */
.btn { border-radius: 6px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 800 16px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; min-height: 44px; }
.btn:hover { background: var(--steel); border-color: var(--steel); }
.btn--signal { background: var(--ink); border-color: var(--ink); color: var(--safety); }
.btn--signal:hover { background: var(--steel); border-color: var(--steel); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn--sm { min-height: 34px; font-size: 14.5px; padding: 7px 11px; }
.btn--big { min-height: 52px; font-size: 18px; }
.btn:disabled { opacity: .6; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #A8360C; text-decoration: underline; cursor: pointer; }

/* Forms */
input:not([type]), input[type=text], input[type=email], input[type=file], input[type=date], select, textarea { border: 2px solid #CFCAC0; border-radius: 6px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: none; }
label, .label { font-weight: 700; font-size: 14.5px; text-transform: uppercase; letter-spacing: .06em; color: #3A3F45; }
.chip { font-size: 16px; text-transform: none; letter-spacing: 0; border-width: 2px; border-radius: 6px; }
.chip:has(input:checked) { border-color: var(--ink); background: #FFF8DC; }
.checks .chip, .qrow label { text-transform: none; letter-spacing: 0; }

/* Cards, stats, pills, tables */
.card { border: 0; border-top: 4px solid var(--ink); border-radius: var(--radius); }
.stat b { font: 800 39.6px/1 var(--sans); font-stretch: 80%; }
.stat--warn { border-top-color: var(--signal); } .stat--y { border-top-color: var(--safety); } .stat--bad { border-top-color: var(--danger); }
.pill { border-radius: 4px; font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; }
.pill--bad { background: var(--danger); color: #fff; }
table.list th { border-bottom-width: 2px; }
table.list td { border-bottom-color: #EEEAE3; }
.alert { border-radius: 6px; }
.lockbanner { border-radius: var(--radius); }
.lockbanner b { font-weight: 800; letter-spacing: .06em; }
.questions { border-radius: 6px; border-left: 4px solid var(--safety); }

/* App shell: dark sidebar */
.shell { display: grid; grid-template-columns: 304px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--ink); color: #C9CED4; padding: 20px 14px 0; display: flex; flex-direction: column; overflow-y: auto; }
.side__logo { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font: 800 18.7px var(--sans); font-stretch: 85%; letter-spacing: .1em; padding: 0 8px 22px; }
.side__logo img { width: 32px; height: 32px; border-radius: 7px; }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #C9CED4; text-decoration: none; font-weight: 700; font-size: 17px; border-radius: 6px; }
.side__nav a:hover { background: #1D2228; color: #fff; }
.side__nav a[aria-current] { background: var(--safety); color: var(--ink); }
.side__nav a[aria-current] .badge { background: var(--ink); color: var(--safety); }
/* "+ Add machine" is styled by .navrow--add */
.side__me { margin-top: auto; padding: 16px 8px; font-size: 14.5px; color: #8A929B; border-top: 1px solid #262C33; }
.side__me b { color: #E3E0D8; } .side__me a { color: #E3E0D8; }
.side__stripe { height: 10px; margin: 0 -14px; background: repeating-linear-gradient(-45deg, var(--safety) 0 14px, var(--ink) 14px 28px); flex: none; }
.badge { border-radius: 4px; }
.shell__main { min-width: 0; }
.page { max-width: 1180px; margin: 0; padding: 28px 32px 64px; }
.page__head { align-items: flex-end; }
.crumbs { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: sticky; z-index: 5; height: auto; padding: 10px 12px 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side__logo { padding: 0 6px 8px 0; font-size: 17px; } .side__logo img { width: 28px; height: 28px; }
  .side__nav { flex-direction: row; overflow-x: auto; width: 100%; padding-bottom: 8px; gap: 4px; }
  .side__nav a { white-space: nowrap; padding: 7px 10px; font-size: 16px; gap: 6px; }
  .side__nav a:last-child { margin-top: 0; }
  .side__me { display: none; }
  .side__stripe { width: calc(100% + 24px); margin: 0 -12px; height: 6px; }
  .page { padding: 20px 16px 56px; }
  h1 { font-size: 30.8px; }
}
.mnav { display: none !important; }

/* Sign in */
.signin { display: grid; grid-template-columns: minmax(0, 1fr) 500px; min-height: 100vh; background: var(--ink); }
.signin__art { position: relative; padding: 44px 48px; color: #E7E4DC; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden;
  background: radial-gradient(1200px 600px at 15% 115%, #2A2F36 0%, #101317 60%); }
.signin__logo { display: flex; gap: 12px; align-items: center; font: 800 20.9px var(--sans); font-stretch: 85%; letter-spacing: .1em; color: #fff; }
.signin__logo img { width: 40px; height: 40px; border-radius: 9px; }
.signin__art h1 { font: 800 clamp(38px, 4.6vw, 60px)/1 var(--sans); font-stretch: 78%; color: #fff; margin: 0 0 16px; max-width: 620px; position: relative; z-index: 1; }
.signin__art h1 em { font-style: normal; color: var(--safety); }
.signin__art p { color: #A9B0B8; font-size: 19.8px; max-width: 440px; position: relative; z-index: 1; }
.signin__by { color: #79818A; font-size: 15px; text-decoration: none; position: relative; z-index: 1; }
.signin__machine { position: absolute; right: -60px; bottom: 34px; width: 380px; opacity: .55; }
.signin__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--safety) 0 18px, var(--ink) 18px 36px); }
.signin__form { background: #F4F2EE; display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.signin__box { width: 100%; max-width: 370px; }
.signin__box h2 { font: 800 35.2px/1.1 var(--sans); font-stretch: 85%; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.signin__box .muted { margin-bottom: 22px; }
.signin__box input[type=email] { font-size: 18.7px; padding: 13px 14px; }
.signin__box .btn { margin-top: 14px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { text-align: center; font: 800 30.8px var(--sans); padding: 10px 0; border: 2px solid #CFCAC0; border-radius: 6px; width: 100%; background: #fff; }
.otp input:focus { border-color: var(--ink); outline: none; }
.signin__resend { margin-top: 16px; font-size: 16px; }
.signin__floor { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding-top: 18px; border-top: 2px solid #E2DED5; font-size: 16px; color: #3A3F45; }
.signin__floor svg { flex: none; }
.signin__legal { font-size: 14px; color: #8A9098; margin-top: 22px; }
@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr; }
  .signin__art { padding: 24px 20px 36px; gap: 14px; }
  .signin__art h1 { font-size: 39.6px; } .signin__art p { font-size: 18px; }
  .signin__machine, .signin__by { display: none; }
  .signin__form { padding: 28px 16px 40px; align-items: flex-start; }
}
.dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash__side { display: grid; gap: 16px; }
.dash-lock { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; color: #fff; margin-bottom: 14px; }
.feed { display: block; padding: 8px 0 8px 12px; border-left: 3px solid var(--safety); margin-bottom: 6px; color: inherit; text-decoration: none; font-size: 16px; }
.feed span { display: block; color: var(--muted); font-size: 14px; }
a.feed:hover { background: #FBFAF6; }
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; } }

.energy { border: 0; border-left: 6px solid var(--ink); border-radius: 6px; background: #F7F5F1; }
.energy--low { border-left-color: var(--safety); background: #FFF8DC; }
.energy h3 { font-size: 18.7px; margin-bottom: 2px; }
.energy__mag { color: var(--muted) !important; font-size: 15px !important; margin-bottom: 6px !important; }
.kv dd { overflow-wrap: anywhere; }

/* Capture tiles: real icons, sentence case */
.shots { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.shot { text-transform: none; letter-spacing: 0; min-height: 150px; gap: 6px; padding: 16px 12px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.shot b { font: 800 18.7px/1.15 var(--sans); }
.shot small { font: 500 15px/1.3 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.shot__ic { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.shot--main { background: var(--ink); color: #fff; } .shot--main small { color: #C9CED4; }
.shot__ai { margin-top: 2px; font: 700 13.5px var(--sans); color: #3B5BA5; background: #EEF3FB; border-radius: 4px; padding: 2px 7px; }
.shot--read { border-color: var(--ink); }
.shot:hover { background: #FBFAF6; } .shot--main:hover { background: var(--steel); }
.lead-text { font-size: 18.7px; color: var(--ink-2); max-width: 760px; margin-bottom: 22px; }
.jha-new { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.jha-help { display: grid; gap: 16px; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ex { border: 1.5px solid #CFCAC0; background: #fff; border-radius: 99px; padding: 6px 12px; font: 600 15px var(--sans); color: var(--ink-2); cursor: pointer; }
.ex:hover { border-color: var(--ink); color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li::before { content: "▸ "; color: var(--signal); font-weight: 800; }
.mini-jha { width: 100%; border-collapse: collapse; font-size: 15px; }
.mini-jha th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; background: var(--safety); padding: 5px 6px; }
.mini-jha td { padding: 6px; border-bottom: 1px solid #EEEAE3; vertical-align: top; }
@media (max-width: 1000px) { .jha-new { grid-template-columns: 1fr; } }
.two-up { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .two-up { grid-template-columns: 1fr; gap: 0; } }

/* Purpose line and Get started checklist */
.goal { margin: 8px 0 0; font-size: 18px; color: var(--ink-2); }
.setup { background: #fff; border-radius: var(--radius); border-top: 4px solid var(--safety); padding: 20px 22px; margin-bottom: 18px; }
.setup__head { display: flex; justify-content: space-between; align-items: baseline; }
.setup__head h2 { font-size: 19.8px; margin: 0; } .setup__head span { color: var(--muted); font-weight: 700; font-size: 16px; }
.setup__bar { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; } .setup__bar i { display: block; height: 100%; background: var(--ok); }
.setup__steps { list-style: none; margin: 0; padding: 0; }
.setup__steps li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #F0ECE5; }
.setup__steps li:first-child { border-top: 0; }
.setup__steps b { font-size: 18px; } .setup__steps p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.setup__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--paper-2); color: var(--muted); }
.is-done .setup__n { background: var(--ok); color: #fff; } .is-done b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.is-next .setup__n { background: var(--ink); color: var(--safety); }
.is-next { background: #FFFBEA; margin: 0 -22px; padding: 14px 22px !important; }
@media (max-width: 700px) { .setup__steps li { grid-template-columns: 32px 1fr; } .setup__steps li .btn { grid-column: 2; justify-self: start; } }

/* Machine cards on the dashboard */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mcard { display: block; border-radius: 10px; overflow: hidden; background: #F7F5F1; color: inherit; text-decoration: none; border: 1px solid #ECE8E0; }
.mcard:hover { border-color: var(--ink); }
.mcard__ph { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.mcard__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard__tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--safety); font: 700 15px var(--mono); padding: 3px 8px; border-radius: 4px; }
.mcard__b { padding: 12px 14px 14px; display: grid; gap: 2px; }
.mcard__b b { font-size: 18.7px; } .mcard__b .muted { font-size: 15px; }
.mcard__next { margin-top: 8px; font-size: 15px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.credit { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Simple dashboard: what needs you, then your machines */
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.dhead h1 { margin: 0; }
.needs { background: #fff; border-radius: var(--radius); padding: 6px 0; margin-bottom: 26px; }
.needs h2 { padding: 12px 18px 6px; margin: 0; font-size: 15px; color: var(--muted); }
.need { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #F0ECE5; color: var(--ink); text-decoration: none; font-size: 18px; }
.need:hover { background: #FBFAF6; }
.need span { width: 28px; text-align: center; }
.need em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); background: var(--paper-2); padding: 5px 10px; border-radius: 5px; }
.need--red { background: #FDF1EF; } .need--red em { background: var(--danger); color: #fff; }
.mhead { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.mcards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mcard { background: #fff; border: 0; }
.mcard__ph { background: #E6E2DA; }
.mcard__ic { width: 64px; height: 64px; fill: none; stroke: #A39E94; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mcard__b { padding: 12px 14px; }
.mcard__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--muted); font-size: 15px; }
.need__t { flex: 1; min-width: 0; } .need span:first-child { flex: none; } .need em { flex: none; }
.need .need__t { width: auto; text-align: left; }

/* Plan a job by talking */
.talk { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.talk__chat { background: #fff; border-radius: var(--radius); padding: 14px; }
.talk__msgs { display: flex; flex-direction: column; gap: 10px; min-height: 340px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 85%; padding: 11px 14px; border-radius: 14px; font-size: 18px; line-height: 1.45; }
.bubble--assistant { align-self: flex-start; background: #F3F1EC; border-bottom-left-radius: 4px; }
.bubble--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.bubble--wait { color: var(--muted); font-style: italic; }
.talk__bar { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.talk__bar .voice-wrap, .talk__bar > textarea { flex: 1; }
.talk__bar textarea { min-height: 48px; }
.talk__draft .card { position: sticky; top: 16px; }
.draft__task { font: 800 22px/1.2 var(--sans); margin: 4px 0 2px; }
.draft__steps { padding-left: 20px; margin: 12px 0; }
.draft__steps li { margin-bottom: 10px; font-size: 16px; }
.draft__steps b { display: block; font-size: 17px; }
.draft__steps .haz { display: block; color: #8A3A0C; } .draft__steps .ctl { display: block; color: #1F5C38; }
.pulse { animation: pulse 1.4s 3; }
@media (max-width: 900px) { .talk { grid-template-columns: 1fr; } .talk__msgs { max-height: none; } }

/* Plant switcher */
.plantsw { margin: -8px 4px 16px; border: 1.5px solid #2E343B; border-radius: 8px; }
.plantsw summary { list-style: none; cursor: pointer; padding: 8px 12px; color: #fff; display: flex; flex-direction: column; gap: 1px; }
.plantsw summary::-webkit-details-marker { display: none; }
.plantsw summary b { font-size: 17px; } .plantsw summary b::after { content: " ▾"; color: var(--safety); }
.plantsw__k { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8A929B; }
.plantsw__menu { border-top: 1px solid #2E343B; padding: 6px; display: grid; gap: 2px; }
.plantsw__menu button, .plantsw__menu a { display: block; width: 100%; text-align: left; background: none; border: 0; color: #C9CED4; font: 600 16px var(--sans); padding: 8px; border-radius: 6px; text-decoration: none; cursor: pointer; }
.plantsw__menu button:hover, .plantsw__menu a:hover { background: #1D2228; color: #fff; }
@media (max-width: 900px) { .plantsw { margin: 0 0 8px; order: 3; width: 100%; } }
.score { font: 800 19.8px var(--sans); padding: 3px 10px; border-radius: 6px; }
.score--ok { background: var(--ok-bg); color: #1F5C38; } .score--mid { background: var(--warn-bg); color: #6B5200; } .score--bad { background: var(--bad-bg); color: #7A1C15; }

/* ---------- Jobs: talk, steps, send ---------- */
.jobgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .jobgrid { grid-template-columns: 1fr; } }
.jtalk textarea { font-size: 18.7px; }
.jtalk__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.speak { display: inline-flex; align-items: center; gap: 4px; background: #EEE9DE; border-radius: 999px; padding: 3px 3px 3px 12px; font-size: 15px; }
.speak button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; font: 700 15px/1 inherit; cursor: pointer; color: var(--ink-2, #3A3F46); }
.speak button.on { background: #101317; color: #F2C230; }
.jtalk__reply { margin-top: 12px; background: #F4F1EA; border-left: 4px solid #101317; padding: 10px 12px; border-radius: 6px; }
.qs { margin: 0; padding-left: 20px; } .qs li { margin-bottom: 10px; } .qs .why { display: block; font-size: 15px; color: #8A5A00; }
#qbox { border-left: 6px solid #F2C230; }
.jsteps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 10px; }
.jstep { counter-increment: st; display: grid; grid-template-columns: 34px 136px minmax(0, 1fr) 28px; gap: 8px; align-items: start; padding: 10px 0; border-top: 1px solid var(--rule, #E3DDD0); }
.jstep::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; background: #101317; color: #F2C230; font: 800 16px/28px var(--mono, monospace); text-align: center; margin-top: 4px; }
.jstep textarea { min-height: 0; resize: none; overflow: hidden; }
.jstep .x { border: 0; background: none; font-size: 24.2px; line-height: 1; cursor: pointer; color: #8A8F96; }
.jstep--lockout textarea, .jstep--lockout span { border-left: 4px solid #B3261E; }
.jstep--check textarea, .jstep--check span { border-left: 4px solid #2E7D4F; }
.jstep--restore textarea, .jstep--restore span { border-left: 4px solid #1F5FAD; }
.jsteps[data-show="en"] .lang-es, .jsteps[data-show="es"] .lang-en { display: none; }
.jsteps--read .jstep { grid-template-columns: 34px minmax(0, 1fr); font-size: 18px; }
.jsteps--read .jstep span { padding-left: 10px; }
.w-tabs { display: inline-flex; background: #2A2F35; border-radius: 999px; padding: 3px; }
.w-tabs button { color: #C9CED4; font: 700 15px/1 inherit; padding: 8px 12px; border-radius: 999px; border: 0; background: none; cursor: pointer; }
.w-tabs .on { background: #F2C230; color: #101317; }
.w-tabs--light { background: #EEE9DE; } .w-tabs--light button { color: #3A3F46; }
.crew { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.newmsg { display: flex; gap: 8px; align-items: center; }
.newmsg select { min-width: 220px; }
.side__push { margin-top: 8px; background: none; border: 1px solid #3A3F46; color: #C9CED4; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 15px; cursor: pointer; }

/* English / Español tab */
.shell__top { display: flex; justify-content: flex-end; padding: 14px 32px 0; }
.langtab { display: inline-flex; background: #E6E0D3; border-radius: 999px; padding: 3px; gap: 2px; }
.langtab a { color: #3A3F46; text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 16px; border-radius: 999px; }
.langtab a.on { background: #101317; color: #F2C230; }
.signin__lang { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.top__row .langtab { margin-left: auto; }
@media (max-width: 760px) { .shell__top { padding: 10px 16px 0; } }

.need .pill { width: auto; flex: none; white-space: nowrap; }
.need span.need__t { width: auto; flex: 1; text-align: left; }
.signin__form { position: relative; }
.signin__lang { position: absolute; top: 24px; right: 24px; margin: 0; }

/* Info cards on the menu */
.navrow { position: relative; display: flex; align-items: center; gap: 4px; }
.navrow > a { flex: 1; min-width: 0; }
.navrow--add { margin-top: 10px; }

.navrow--add > a { border: 1.5px dashed #3A414A; }
.navinfo { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #4A525C; background: none; color: #9AA3AB;
  font: italic 700 15px/1 Georgia, serif; cursor: pointer; padding: 0; display: grid; place-items: center; }
.navinfo:hover, .navinfo[aria-expanded="true"] { border-color: var(--safety); color: var(--safety); }
.navinfo:focus-visible { outline: 2px solid var(--safety); outline-offset: 2px; }
.navtip { position: fixed; z-index: 60; width: 340px; max-width: calc(100vw - 24px); background: #fff; color: var(--ink); border-radius: 10px;
  border-top: 5px solid var(--safety); box-shadow: 0 12px 32px rgba(0,0,0,.28); padding: 14px 16px; font-size: 16px; line-height: 1.45; }
.navtip__title { display: block; font-size: 18px; margin-bottom: 6px; }
.navtip p { margin: 8px 0 0; color: #3A3F46; }
.navtip__k { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A5A00; margin-bottom: 2px; }
@media (max-width: 900px) { .navrow { flex: none; } .navinfo { width: 20px; height: 20px; } }

.btn--danger { color: #B3261E; border-color: #E8B8B3; }
.btn--danger:hover { background: #FDF1EF; color: #8E1C16; }
.need-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid #F0ECE5; }
.need-row .need { flex: 1; border-top: 0; min-width: 0; }
.need-row form, .need-row > span { padding-right: 12px; flex: none; }

/* ---------- Training ---------- */
.tstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tstat { background: #fff; border-radius: 10px; padding: 14px 16px; border-top: 5px solid #2E7D4F; }
.tstat b { display: block; font-size: 35.2px; line-height: 1; }
.tstat span { font-size: 15px; color: #5A6068; }
.tstat--warn { border-top-color: var(--safety); } .tstat--bad { border-top-color: #B3261E; } .tstat--bad b { color: #B3261E; }
@media (max-width: 900px) { .tstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tgap { border-left: 6px solid var(--safety); margin-bottom: 18px; }
.tgap__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tgap__p { display: inline-flex; align-items: baseline; gap: 8px; background: #FFF6D6; border: 1px solid #F2C230; border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.tgap__p span { font-size: 15px; color: #5A6068; } .tgap__p em { font-style: normal; font-weight: 800; font-size: 15px; color: #8A5A00; }
.tgap__p:hover { background: #FCEBB0; }
.ttabs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ttabs a { padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #3A3F46; background: #E6E0D3; }
.ttabs a.on { background: #101317; color: #F2C230; }
.ttabs input { margin-left: auto; max-width: 260px; }
.trow { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2fr) minmax(170px, 1fr) auto; gap: 8px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule, #E3DDD0); }
.trow:first-child { border-top: 0; }
.trow__who { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.trow__who b { font-size: 18.7px; }
.trow__mach { display: flex; flex-wrap: wrap; gap: 6px; }
.trow__date { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 16px; }
.trow__hist { grid-column: 1 / -1; font-size: 16px; }
.trow__hist summary { cursor: pointer; color: #5A6068; }
.thist { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0 0 14px; color: #3A3F46; }
.tchip { background: #EEF5F0; color: #1E5C38; border-radius: 6px; padding: 4px 9px; font-size: 16px; font-weight: 600; }
.tchip--bad { background: #FDF1EF; color: #8E1C16; }
@media (max-width: 900px) { .trow { grid-template-columns: 1fr; } }
.tdialog { border: 0; border-radius: 14px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.tdialog::backdrop { background: rgba(16,19,23,.55); }
.tdialog form { padding: 20px 24px; }
.tdialog__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tdialog__x { border: 0; background: none; font-size: 30.8px; line-height: 1; cursor: pointer; color: #5A6068; }
.tstep { border: 0; border-top: 1px solid var(--rule, #E3DDD0); margin: 0; padding: 14px 0; }
.tstep legend { font-weight: 800; font-size: 18px; padding: 0; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tstep legend span { width: 24px; height: 24px; border-radius: 50%; background: #101317; color: #F2C230; display: grid; place-items: center; font-size: 15px; }
.tstep select, .tstep input[type=text] { width: 100%; }
.tkind { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 10px 12px; border: 1.5px solid #E3DDD0; border-radius: 8px; margin-bottom: 8px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 500; color: #16181B; }
.tkind input { grid-row: span 2; margin-top: 3px; }
.tkind span { color: #5A6068; font-size: 16px; }
.tkind:has(input:checked) { border-color: #101317; background: #FAF8F2; }
.tdialog__foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule, #E3DDD0); }
.trow__sub { font-size: 15px; }
.trow--off { opacity: .55; }
.trow__act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.trow--m { grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); }
.tbottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .tbottom { grid-template-columns: 1fr; } }
.trow { grid-template-columns: minmax(170px, 1fr) minmax(0, 1.5fr) minmax(220px, 1fr) minmax(0, 300px); }
.trow__act { max-width: 300px; }
.trow__date .pill { white-space: normal; }
.ttabs input[type=search] { padding: 9px 12px; border: 1.5px solid #D9D3C7; border-radius: 999px; font: inherit; font-size: 16px; background: #fff; min-width: 220px; }
@media (max-width: 900px) { .trow, .trow--m { grid-template-columns: 1fr; } .trow__act { justify-content: flex-start; max-width: none; } .ttabs input[type=search] { margin-left: 0; width: 100%; } }

/* ---------- Team and training: compact table ---------- */
.tsum { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.tsum__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 17px; color: #3A3F46; }
.tsum__facts b { font-size: 19.8px; color: #101317; margin-right: 2px; }
.tsum__facts .is-warn b { color: #A86A00; } .tsum__facts .is-bad b { color: #B3261E; }
.tsum__code { font-size: 16px; } .tsum__code b { font-size: 19.8px; letter-spacing: .08em; margin-left: 6px; }
.ttable-wrap { padding: 6px 0; overflow-x: auto; }
.ttable { width: 100%; border-collapse: collapse; font-size: 17px; }
.ttable th { text-align: left; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #6B7077; font-weight: 700; padding: 10px 16px; border-bottom: 1px solid #E3DDD0; white-space: nowrap; }
.ttable td { padding: 10px 16px; border-bottom: 1px solid #F0ECE5; vertical-align: middle; }
.ttable tbody tr:hover { background: #FBFAF6; }
.ttable tr.is-off { opacity: .5; }
.ttable__act { text-align: right; white-space: nowrap; }
.ttable__act .btn { margin-right: 8px; }
.tname { display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; color: inherit; }
.tname b { font-size: 17px; } .tname span { font-size: 15px; color: #6B7077; }
.tname:hover b { text-decoration: underline; }
.tmore { background: none; border: 0; font: inherit; font-weight: 700; font-size: 16px; color: #3A3F46; cursor: pointer; padding: 6px 4px; }
.tmore:hover { color: #101317; text-decoration: underline; }
.tdue { font-size: 16px; white-space: nowrap; }
.tdue--overdue { color: #B3261E; font-weight: 700; } .tdue--soon { color: #A86A00; font-weight: 700; } .tdue--ok { color: #2E7D4F; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tmatrix th { text-align: center; white-space: normal; min-width: 92px; }
.tmatrix th:first-child { text-align: left; }
.tmatrix th.is-bad { color: #B3261E; }
.tmatrix__c { text-align: center; }
.tcheck { color: #2E7D4F; font-weight: 800; font-size: 19.8px; } .tdot { color: #C9C3B6; font-size: 22px; }
.tmatrix tfoot td { font-weight: 700; font-size: 16px; border-bottom: 0; border-top: 2px solid #E3DDD0; }
.tmatrix tfoot td.is-bad { color: #B3261E; }
.pdrawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(440px, 100vw); border: 0; padding: 0; display: none; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.25); }
.pdrawer[open] { display: flex; }
.pdrawer::backdrop { background: rgba(16,19,23,.45); }
.pdrawer__head { display: flex; justify-content: space-between; gap: 10px; padding: 20px 22px 14px; border-bottom: 1px solid #E3DDD0; }
.pdrawer__body { padding: 6px 22px; overflow-y: auto; flex: 1; }
.pdrawer__body section { padding: 12px 0; border-bottom: 1px solid #F0ECE5; }
.pdrawer__body h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #6B7077; margin: 0 0 8px; }
.pdrawer__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 22px; border-top: 1px solid #E3DDD0; }
.taccess summary { cursor: pointer; }
.tbottom h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
@media (max-width: 760px) { .ttable thead { display: none; } .ttable tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid #F0ECE5; } .ttable td { border: 0; padding: 4px 14px; } .tmatrix tr { display: table-row; } .tmatrix thead { display: table-header-group; } .tmatrix td { padding: 8px; border-bottom: 1px solid #F0ECE5; } }
