/* Digital OS 4.0 — Design System Digital Premium (Etapa 05).
   Camada visual isolada: sem dependências externas, sem alterações de dados ou permissões. */
:root {
  --sidebar: 282px;
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --text: #172239;
  --muted: #61718d;
  --border: #e0e7f2;
  --blue: #385fda;
  --blue-2: #6789ed;
  --purple: #7760d8;
  --focus-ring: rgba(70,104,230,.18);
  --shadow: 0 18px 42px rgba(28,48,92,.09);
  --shadow-sm: 0 8px 26px rgba(28,48,92,.055);
  --radius: 18px;
  --premium-soft: #edf2ff;
  --premium-sidebar: #080d1b;
}
html[data-theme="dark"] {
  --bg: #080e1a;
  --surface: #101a2c;
  --surface-2: #142137;
  --text: #ecf2fe;
  --muted: #a3b3ce;
  --border: #25344d;
  --blue: #7291ff;
  --blue-2: #5da9ff;
  --purple: #ab87ff;
  --success: #48d4a2;
  --warning: #f6b957;
  --danger: #ff8196;
  --focus-ring: rgba(106,145,255,.25);
  --shadow: 0 18px 50px rgba(0,0,0,.25);
  --shadow-sm: 0 8px 25px rgba(0,0,0,.18);
  --premium-soft: #172642;
}
body { font-size: 13.5px; letter-spacing: .002em; }
html[data-theme="dark"] body {
  background: radial-gradient(ellipse at 77% 3%, rgba(45,65,143,.13), transparent 35%), var(--bg);
}
body:not(.auth-page):not(.tracking-page) { min-width: 320px; }
:focus-visible { outline: 2px solid #7291ff; outline-offset: 3px; }
::selection { background: #526fe6; color: white; }

/* Sidebar, identidade e navegação */
.sidebar {
  background:
    radial-gradient(ellipse 235px 290px at 4% 0%, rgba(53,73,178,.2), transparent 75%),
    linear-gradient(170deg,#0c1326 0%,#080d1b 72%);
  border-right: 1px solid rgba(145,164,221,.12);
  padding: 23px 14px 16px;
  box-shadow: 10px 0 30px rgba(2,6,19,.12);
}
.sidebar-brand-row { display: flex; align-items: flex-start; justify-content: space-between; }
.sidebar .brand { padding: 2px 12px 0; min-height: 59px; }
.brand-logo { width: 230px; max-height: 56px; filter: none; }
.brand-product {
  display: flex; gap: 9px; align-items: center;
  color: #e7eeff; font-weight: 800; font-size: 12px; letter-spacing: .1em;
  margin: 0 11px 24px; padding: 12px 1px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.brand-product small { display: block; color: #7587ad; font-size: 9px; letter-spacing: .12em; margin-top: 2px; font-weight: 700; }
.brand-product-dot { display: inline-block; width: 8px; height: 8px; flex: none; background: #64baff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(96,139,255,.12); }
.company-chip { margin: 0 8px 12px; border-color: rgba(146,170,234,.1); background: rgba(122,149,217,.07); padding: 11px 13px; }
.company-chip strong { color: #e9efff; }
.sidebar nav { gap: 3px; overflow-y: auto; min-height: 0; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #263452 transparent; }
.nav-section-heading { display: block; color: #6f83a9; font-size: 9px; letter-spacing: .19em; font-weight: 850; padding: 19px 14px 7px; }
.nav-section-heading:first-child { padding-top: 9px; }
.sidebar nav a { min-height: 43px; padding: 10px 13px; border-radius: 11px; font-size: 12.5px; font-weight: 650; color: #9eafcc; border: 1px solid transparent; }
.sidebar nav a svg { width: 18px; height: 18px; opacity: .9; }
.sidebar nav a:hover { transform: none; color: #eef4ff; border-color: rgba(114,145,255,.09); background: rgba(98,129,231,.08); }
.sidebar nav a.active { background: linear-gradient(100deg,rgba(73,96,218,.34),rgba(74,50,146,.13)); border-color: rgba(114,145,255,.22); box-shadow: inset 3px 0 0 #7aa9ff, 0 8px 22px rgba(0,0,0,.09); }
.sidebar nav a.active svg { color: #a9c2ff; }
.sidebar-footer { border-top-color: rgba(255,255,255,.085); margin-top: auto; padding: 18px 5px 0; }
.user-avatar { background: linear-gradient(135deg,#506cea,#8d61d8); border-radius: 12px; }
.logout-link { border-radius: 8px; color: #e1a9bd; padding: 6px 3px; }
.logout-link:hover { color: #fff; }
.version { opacity: .75; }
.sidebar-close { display: none; }

/* Área principal e barra superior */
.main { min-width: 0; }
.topbar {
  min-height: 88px; padding: 17px clamp(20px, 2.3vw, 36px);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.90); box-shadow: 0 8px 24px rgba(25,38,72,.025);
}
html[data-theme="dark"] .topbar { background: rgba(10,17,30,.88); box-shadow: 0 8px 30px rgba(0,0,0,.09); }
.topbar-title .eyebrow { font-size: 9px; letter-spacing: .15em; color: var(--muted); }
.topbar-title .eyebrow span { color: var(--blue); margin: 0 5px; }
.topbar-title h1 { color: var(--text); font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.65px; font-weight: 800; margin-top: 3px; }
.topbar-title p { position: static; font-size: 10px; margin-top: 1px; }
.topbar-actions { gap: 10px; }
.global-search {
  display: flex; align-items: center; gap: 9px; width: clamp(180px, 18vw, 300px);
  height: 41px; padding: 0 11px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.global-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; flex: none; }
.global-search input,.global-search input:focus,html[data-theme="dark"] .global-search input {
  border: 0; box-shadow: none; outline: 0; background: transparent; padding: 0; font-size: 11px; min-width: 0;
}
.global-search input::-webkit-search-cancel-button { cursor: pointer; }
.global-search button { font-size: 0; width: 1px; padding: 0; border: 0; background: transparent; overflow: hidden; }
.topbar .btn-primary { min-height: 41px; }
.content { padding: 28px clamp(20px,2.3vw,36px) 34px; max-width: 1770px; }
.app-footer { padding: 4px clamp(20px,2.3vw,36px) 23px; border-top: 0; }
.footer-version { margin-left: auto; opacity: .7; }

/* Botões e superfícies */
.btn { border-radius: 11px; padding: 10px 15px; min-height: 41px; font-size: 12px; font-weight: 750; letter-spacing: .005em; }
.btn-primary { color: #fff; background: linear-gradient(110deg,#496ced,#6260df); box-shadow: 0 6px 20px rgba(61,89,211,.19); }
.btn-primary:hover { box-shadow: 0 9px 26px rgba(61,89,211,.3); }
.btn-light,html[data-theme="dark"] .btn-light { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-light:hover,html[data-theme="dark"] .btn-light:hover { border-color: var(--blue); }
.btn-success { background: #16966f; }
.panel,html[data-theme="dark"] .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(16px,1.8vw,24px); margin-bottom: 18px; }
.panel-head { gap: 15px; margin-bottom: 20px; }
.panel-head h2 { color: var(--text); font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.panel-head p { color: var(--muted); margin-top: 4px; line-height: 1.5; }
.panel h3 { font-weight: 800; letter-spacing: -.25px; }
.alert { border-radius: 12px; box-shadow: none; }
.muted { line-height: 1.55; }

/* Painel: hero e indicadores */
.welcome-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 20px; padding: clamp(23px,3vw,36px);
  margin-bottom: 22px; border: 1px solid rgba(155,179,255,.27); border-radius: 22px;
  color: #f9fbff;
  background: radial-gradient(circle at 88% 35%,rgba(135,122,255,.34),transparent 33%),
              radial-gradient(circle at 11% 0%,rgba(80,143,255,.25),transparent 36%),
              linear-gradient(118deg,#182b58 0%,#101c3e 47%,#11112e 100%);
  box-shadow: 0 16px 45px rgba(19,37,88,.22);
}
.welcome-panel:after { content:""; position:absolute; width:350px; height:350px; border:1px solid rgba(255,255,255,.1); border-radius:50%; right:-100px; top:-155px; pointer-events:none; box-shadow: 0 0 0 50px rgba(255,255,255,.025),0 0 0 105px rgba(255,255,255,.025); }
.welcome-panel > * { z-index:1; }
.welcome-kicker { display: inline-flex; gap: 9px; align-items: center; color: #afc7ff; letter-spacing: .14em; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.welcome-kicker:before { content:""; width:7px; height:7px; border-radius:50%; background:#64d1ff; box-shadow:0 0 0 4px rgba(100,209,255,.12); }
.welcome-panel h2 { font-size: clamp(23px,2.5vw,35px); font-weight: 850; line-height:1.18; letter-spacing:-1.1px; margin: 12px 0 10px; }
.welcome-panel p { max-width: 580px; font-size: 12.5px; color: #c4d3ef; line-height:1.7; margin: 0; }
.welcome-actions { display: flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top: 23px; }
.welcome-actions .btn-primary { background: #ecf1ff; color:#243b89; box-shadow: none; }
.welcome-actions .btn-light { background: rgba(255,255,255,.08)!important; color:white!important; border-color:rgba(255,255,255,.22)!important; }
.welcome-emblem { width:115px; aspect-ratio:1; display:grid; place-items:center; border-radius:28px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.14); transform:rotate(7deg); box-shadow:0 25px 48px rgba(0,0,0,.12); }
.welcome-emblem img { width:88px; transform:rotate(-7deg); }
.stats-grid { gap: 15px; margin-bottom: 20px; }
.stat-card,html[data-theme="dark"] .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius:18px; padding: 20px 19px; min-height:154px; box-shadow:var(--shadow-sm); }
.stat-card:after { width: 126px; height: 126px; right: -41px; top: -50px; background: radial-gradient(circle,rgba(99,121,238,.1),transparent 66%); }
.stat-icon { width: 34px; height: 34px; margin-bottom: 16px; display:grid; place-items:center; border-radius:11px; color:#6d81e5; background:rgba(99,121,238,.12); }
.stat-icon svg { width:19px; height:19px; fill:currentColor; }
.stat-card.success .stat-icon { color: var(--success); background: rgba(30,163,117,.12); }
.stat-card.danger .stat-icon { color: var(--danger); background: rgba(216,73,99,.12); }
.stat-card span { letter-spacing:.035em; font-size: 10.5px; font-weight:750; color:var(--muted); }
.stat-card strong { display:block; font-weight: 850; font-size: clamp(23px,2vw,33px); color:var(--text); margin: 6px 0 4px; letter-spacing:-.9px; overflow-wrap:anywhere; }
.stat-card small { font-size: 11px; line-height: 1.5; display:block; }
.dashboard-grid { grid-template-columns: minmax(0,1.6fr) minmax(300px,.9fr); gap:18px; }
.progress-track { height: 7px; }
.progress-row header { font-size: 11px; color:var(--muted); }
.progress-row header strong { color:var(--text); }
.activity-item { position:relative; padding: 0 0 15px 19px; border-left:1px solid var(--border); border-bottom:0; margin-left:5px; }
.activity-item:before { content:""; position:absolute; width:9px; height:9px; background:#627de6; border:2px solid var(--surface); border-radius:50%; left:-5px; top:3px; box-shadow:0 0 0 2px var(--border); }
.activity-item:last-child { border-left-color:transparent; }

/* Tabelas, filtros, ações e formulário */
.table-wrap { border-radius: 13px; border-color:var(--border); scrollbar-width:thin; scrollbar-color: #54617c transparent; }
table { border-collapse:separate; border-spacing:0; }
th,html[data-theme="dark"] th { color:var(--muted); background:var(--surface-2); padding:13px 15px; font-size:10px; font-weight:800; letter-spacing:.075em; }
td { padding:14px 15px; border-color:var(--border); font-size:12px; line-height:1.5; }
td strong { font-weight:800; }
tbody tr { transition:background .14s; }
tbody tr:hover,html[data-theme="dark"] tbody tr:hover { background:rgba(100,135,226,.07); }
td small { line-height:1.45; }
.actions a,.table-link { font-weight:800; color:var(--blue); }
.table-link:hover,.actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge { font-size:10px; padding:5px 10px; letter-spacing:.006em; }
.badge::before { width:5px; height:5px; }
input,select,textarea,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea {
  border:1px solid var(--border); background:var(--surface-2); color:var(--text); border-radius:10px; padding:10px 12px;
}
input:focus,select:focus,textarea:focus,html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px var(--focus-ring); }
input::placeholder,textarea::placeholder { color: var(--muted); opacity:.8; }
input[type="checkbox"],input[type="radio"] { width:auto; }
label,html[data-theme="dark"] label { color:var(--text); font-weight:700; }
.section-title,html[data-theme="dark"] .section-title { border-bottom-color:var(--border); color:var(--text); font-size:12px; }
.section-note { color:var(--muted); }
.form-grid { gap:18px; }
.form-actions,html[data-theme="dark"] .form-actions { border-color:var(--border); background:var(--surface); }
.inline-total { border-color:var(--border); background:var(--premium-soft); }
.inline-total strong { color:var(--blue); }
.search-form { align-items:center; }
.search-form select { min-width:148px; }
.list-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 15px; }
.list-summary h2 { margin:0; font-size:17px; letter-spacing:-.25px; }
.list-summary span { color:var(--muted); font-size:11px; font-weight:650; }
.details-head { background: var(--surface); border:1px solid var(--border); padding:21px 23px; border-radius:var(--radius); box-shadow:var(--shadow-sm); margin-bottom:20px; }
.details-head h2 { letter-spacing:-.7px; color:var(--text); }
.details-grid { gap:16px; }
.details-grid .panel { height:calc(100% - 18px); }
dl { gap:10px; }
dd { font-weight:700; }
.timeline>div { border-left-color:var(--blue); }

/* Quadro Kanban */
.kanban-toolbar { padding:22px!important; }
.kanban-filters { gap:10px; }
.kanban-counter { border-top:1px solid var(--border); padding-top:13px; }
.kanban-board { gap:16px; padding: 3px 2px 26px; scrollbar-width:thin; }
.kanban-lane { width:284px; min-width:284px; border-radius:17px; min-height:345px; border-color:var(--border); background:var(--surface-2); }
.kanban-lane-head { padding:16px 14px; }
.kanban-lane-head strong { border-radius:9px; min-width:26px; padding:5px 8px; text-align:center; font-size:12px; color:var(--text); }
.kanban-stack { gap:11px; padding:11px; }
.kanban-card { border-radius:13px; padding:15px; background:var(--surface); border-color:var(--border); box-shadow:0 6px 20px rgba(0,0,0,.06); transition: box-shadow .18s,transform .18s,border-color .18s; }
.kanban-card[draggable=true]:hover { border-color:var(--blue); box-shadow:0 12px 26px rgba(22,40,87,.14); transform:translateY(-2px); }
.kanban-client { font-size:13px; }
.kanban-code { color:var(--blue); }
.kanban-details { gap:4px; font-size:11px; }
.kanban-change-row select { font-size:11px; padding:7px 9px; }
.kanban-lane.drop-ready { border-color:#8293ff; background:rgba(93,122,253,.12); }
.kanban-empty { border-style:dashed; border-radius:11px; }
.kanban-feedback:not(:empty) { border-left:3px solid var(--blue); }

/* Financeiro */
.financial-stats { margin:0 0 20px; }
.financial-stats .stat-card:before { content:"R$"; display:grid; place-items:center; width:33px; height:33px; font-size:12px; font-weight:850; background:var(--premium-soft); color:var(--blue); border-radius:10px; margin-bottom:15px; }
.financial-stats .stat-card.danger:before { color:var(--danger); }
.financial-stats .stat-card.success:before { color:var(--success); }
.financial-summary>div,.financial-form { background:var(--surface-2); border:1px solid var(--border); border-radius:14px; }
.financial-summary>div { padding:18px; }
.financial-summary strong { color:var(--text); font-weight:850; }
.financial-form h4 { font-size:13px; color:var(--text); }
.financial-filters { align-items:end; gap:10px; }
.financial-filters label { font-size:11px; }
.financial-filters input { min-width:155px; }

/* Fotos, arquivos e acompanhamento */
.attachment-item { border-color:var(--border); background:var(--surface-2); }
.attachment-thumbnail { background:var(--premium-soft); }
.attachment-thumbnail img { transition:transform .2s; }
.attachment-thumbnail:hover img { transform:scale(1.04); }
.attachment-caption strong { color:var(--text); }
.tracking-result,html[data-theme="dark"] .tracking-result { background:var(--surface); border-color:var(--border); }
.tracking-box,html[data-theme="dark"] .tracking-box { background:var(--surface-2); border-color:var(--border); }

/* Entrada, instalador e página pública */
.auth-page { background:
  radial-gradient(circle at 19% 20%,rgba(69,101,214,.22),transparent 34%),
  radial-gradient(circle at 88% 83%,rgba(86,61,180,.18),transparent 30%),
  linear-gradient(130deg,#080f21,#101a34 52%,#10142a); }
.auth-page:before { background-size:50px 50px; opacity:.52; }
.auth-card,.install-card { border-radius:24px; width:min(465px,100%); padding:clamp(25px,3vw,38px); }
.auth-card,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .install-card {
  background:rgba(16,26,47,.96); border:1px solid rgba(148,174,255,.16); box-shadow:0 30px 90px rgba(0,0,0,.38); color:#f0f4ff;
}
html[data-theme="light"] .auth-card,html[data-theme="light"] .install-card { background:rgba(255,255,255,.98); color:var(--text); border-color:#dfe7f6; }
.auth-logo { width:min(285px,100%); height:auto; max-height:initial; min-height:52px; margin:0 auto 4px; }
.auth-logo img,.auth-logo .logo-dark,html[data-theme="dark"] .auth-logo .logo-dark { max-height:90px; width:100%; object-fit:contain; }
.auth-brandline { margin-top:19px; font-weight:850; letter-spacing:.2em; color:#8caeff; }
.auth-card h1,.install-card h1 { font-size:23px; letter-spacing:-.5px; }
.auth-card p,.install-card p { line-height:1.55; }
.auth-card .stack-form { margin-top:23px; gap:17px; }
.auth-card input { min-height:45px; }
.auth-card .btn-primary { margin-top:4px; min-height:45px; }
.auth-links { font-size:11px; margin-top:23px; }
.auth-links a { color:var(--blue); }
html[data-theme="dark"] .auth-links a { color:#a3baff; }
.tracking-page { background:var(--bg); }
.tracking-brand .auth-logo { width:min(285px,80vw); }

/* Responsividade e acessibilidade */
@media (max-width: 1450px) {
  .global-search { width:205px; }
  .topbar { gap:11px; }
}
@media (max-width: 1190px) {
  .dashboard-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .global-search { display:none; }
}
@media (max-width: 980px) {
  :root { --sidebar:270px; }
  .sidebar { padding-top:17px; }
  .sidebar-close { display:none; place-items:center; flex:none; width:32px; height:32px; border:1px solid rgba(255,255,255,.18); border-radius:8px; background:rgba(255,255,255,.08); color:#e9efff; font-size:25px; margin-top:2px; }
  .topbar { min-height:73px; padding:11px 18px; }
  .content { padding:19px 17px 26px; }
  .app-footer { padding:7px 18px 19px; }
  .form-actions,html[data-theme="dark"] .form-actions { background:var(--surface); }
}
@media (max-width: 820px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar-close { display:grid; }
  .menu-open .sidebar { transform:translateX(0); }
  .welcome-emblem { width:78px; border-radius:20px; }
  .welcome-emblem img { width:60px; }
  .welcome-panel { grid-template-columns:1fr auto; }
  .panel-head { align-items:flex-start; }
  .topbar-title .eyebrow { display:none; }
  .topbar-title p { display:none; }
  .topbar .btn-primary { min-width:41px; }
  .kanban-lane { min-width:260px; width:260px; }
  .list-summary { flex-wrap:wrap; }
}
@media (max-width: 560px) {
  .content { padding:14px 12px 25px; }
  .topbar { padding:10px 12px; gap:8px; }
  .topbar-title h1 { font-size:17px; }
  .topbar-actions { gap:6px; }
  .theme-toggle { min-width:40px; width:40px; padding:0; }
  .topbar-actions .theme-toggle span { display:none; }
  .welcome-panel { grid-template-columns:1fr; border-radius:17px; padding:21px 18px; }
  .welcome-panel h2 { font-size:23px; }
  .welcome-emblem { display:none; }
  .welcome-actions .btn { min-height:39px; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .stat-card { min-height:139px!important; padding:15px!important; }
  .stat-card strong { font-size:clamp(19px,5vw,26px); }
  .stat-icon { margin-bottom:9px; width:31px; height:31px; }
  .panel,html[data-theme="dark"] .panel { padding:15px; border-radius:15px; }
  .search-form select { flex:1; min-width:120px; }
  .form-grid,.report-grid { grid-template-columns:1fr; }
  .details-head { padding:17px; }
  .financial-stats .stat-card:before { margin-bottom:12px; }
  .financial-filters { align-items:stretch; }
  .financial-filters label { flex:1; }
  .financial-filters input { min-width:0; }
}
@media (max-width: 370px) {
  .stats-grid { grid-template-columns:1fr; }
  .topbar-title h1 { max-width:135px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
@media print {
  .sidebar,.sidebar-backdrop,.topbar,.app-footer,.welcome-actions,.theme-toggle,.global-search,.sidebar-close { display:none!important; }
  .main { margin-left:0!important; }
  .content { padding:0!important; }
  .panel,.stat-card { box-shadow:none!important; break-inside:avoid; }
  .welcome-panel { color:#172239!important; background:white!important; border:1px solid #ddd!important; }
}
/* Grid-content containment: tabelas grandes rolam dentro dos cartões em telas estreitas. */
.content, .dashboard-grid, .dashboard-grid>div, .panel, .table-wrap { min-width:0; }
.table-wrap { max-width:100%; overflow-x:auto; }
@media (max-width:1190px) { .dashboard-grid { grid-template-columns:minmax(0,1fr); } }

/* Digital OS 4.0 — correção do fluxo Kanban (sem alterar o tema Premium) */
.kanban-assign { border-top:1px solid var(--border); padding-top:9px; margin-top:4px; }
.kanban-assign summary { font-size:12px; font-weight:700; color:var(--blue); cursor:pointer; }
.kanban-assign-form { display:grid; gap:7px; margin-top:9px; }
.kanban-assign-form select { min-width:0; width:100%; padding:8px; }
.kanban-assign-form button { justify-self:start; }
.kanban-hint { margin:0; font-size:11px; line-height:1.4; color:var(--muted); }
.kanban-card-message:not(:empty) { padding:9px; border-radius:9px; background:rgba(220,62,76,.09); border:1px solid var(--danger); color:var(--danger); font-size:11px; line-height:1.45; }
.kanban-cancel-field:not([hidden]) { display:block; font-size:11px; margin-top:7px; }
.kanban-cancel-field input { width:100%; min-width:0; margin-top:5px; padding:9px; }
.kanban-board[aria-busy="true"] .kanban-change button,.kanban-board[aria-busy="true"] .kanban-assign-form button { opacity:.5; pointer-events:none; }
.kanban-change-row select:focus-visible,.kanban-assign-form select:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }

.kanban-blocked { border-top:1px solid var(--border); padding-top:7px; }
.kanban-blocked summary { font-size:10px; cursor:pointer; color:var(--muted); }
.kanban-blocked ul { padding-left:18px; margin:9px 0; max-height:160px; overflow-y:auto; font-size:10px; color:var(--muted); line-height:1.5; }
.kanban-blocked li { margin-bottom:6px; }

.kanban-lane.drop-blocked { border-color:var(--danger); box-shadow:inset 0 0 0 1px var(--danger); }

/* Acompanhamento: chave unica visivel na OS interna */
.tracking-staff-key { margin:10px 0 14px; padding:13px 14px; border:1px solid var(--border); background:var(--surface-2); border-radius:12px; }
.tracking-staff-key span { display:block; color:var(--muted); font-weight:800; font-size:9px; letter-spacing:.11em; }
.tracking-staff-key strong { display:block; margin-top:5px; color:var(--text); font:800 clamp(17px,2vw,23px)/1.2 ui-monospace,Consolas,monospace; letter-spacing:1px; overflow-wrap:anywhere; }
