/* Identidade do INC OS (os.inclab.com.br): chão mineral claro, texto em tinta, coral para gravar e para a ação
   que importa, azul da marca para o que o INC OS gera e para seleção. Zalando Sans em 400/500/600, nunca 700
   (pedir 700 faz o navegador falsificar o negrito). Coral com texto claro não passa de 3:1: botão coral leva tinta. */
:root {
  --bg: #EDF2F1;
  --panel: rgba(255, 255, 255, .5);
  --surface: #F6F9F8;
  --fg: #141414;
  --muted: #5F6664;
  --line: rgba(20, 20, 20, .16);
  --line-soft: rgba(20, 20, 20, .08);
  --soft: #E4EAE9;
  --brand: #141414;
  --brand-soft: #DDEBF2;
  --cool: #ACD2E6;
  --accent: #EA5F59;
  --accent-ink: #B8352F;
  --accent-soft: #FBE7E5;
  --viz: #3D5A6C;
  --amber: #C98A00;
  --ok-bg: #E1F0E7; --ok-fg: #1F6B47;
  --warn-bg: #FBF0D6; --warn-fg: #8A5A00;
  --err-bg: #FBE4E2; --err-fg: #B8352F;
  --font: "Zalando Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --font-body: var(--font);
  --radius: 5px;
  --radius-s: 3px;
  --shadow: 0 8px 24px rgba(20, 20, 20, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: rgba(20, 20, 20, .28) transparent; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--accent); }
::selection { background: var(--cool); color: var(--fg); }
strong, b { font-weight: 600; }
a { color: var(--fg); text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .25s var(--ease); }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--font); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.05; margin: 0 0 20px; letter-spacing: -.02em; }
h2 { font-size: 19px; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 16px; line-height: 1.3; }
.muted { color: var(--muted); }
.error { color: var(--err-fg); background: var(--err-bg); padding: 9px 13px; border-radius: var(--radius-s); font-weight: 500; }
input[type=checkbox], input[type=radio] { accent-color: var(--fg); }

/* ----- cabeçalho ----- */
header.top { background: rgba(237, 242, 241, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex: 0 0 auto; }
.brand:hover { color: var(--fg); }
.brand img { width: 30px; height: 30px; display: block; border-radius: 4px; }
.brand .wordmark { font: 500 19px/1 var(--font); letter-spacing: -.01em; }
.brand .product { font: 400 15px/1 var(--font); color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
nav.main { display: flex; align-self: stretch; align-items: stretch; gap: 2px; margin-left: 4px; }
nav.main a { display: flex; align-items: center; color: var(--muted); text-decoration: none; padding: 0 11px; font-weight: 400; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.main a:hover { color: var(--fg); }
nav.main a.active { color: var(--fg); border-bottom-color: var(--fg); }
.user { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.user form { margin: 0; }
.user > a { color: var(--muted); text-decoration: none; }
.user > a:hover, .user > a.active { color: var(--fg); }

main { max-width: 1120px; margin: 0 auto; padding: 36px 24px 72px; }

/* ----- controles (campos com :where para as regras de contexto, como .title-form input, prevalecerem) ----- */
label { display: block; margin: 12px 0; font-weight: 500; font-size: 14px; }
label.check { font-weight: normal; display: flex; align-items: center; gap: 8px; }
input:where(:not([type=checkbox], [type=radio])), select, textarea { display: block; width: 100%; font: inherit; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--fg); transition: border-color .2s var(--ease); }
input:where(:not([type=checkbox], [type=radio])):hover, select:hover, textarea:hover { border-color: rgba(20, 20, 20, .32); }
::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
button, .button { font: 500 15px/1 var(--font); padding: 12px 18px; border: 1px solid transparent; border-radius: var(--radius-s); background: var(--fg); color: var(--bg); cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
button:hover, .button:hover { background: var(--accent); color: var(--fg); transform: translateY(-1px); }
button:active, .button:active { transform: none; }
button.small, .button.small { padding: 7px 12px; font-size: 13px; }
button.accent, .button.accent { background: var(--accent); color: var(--fg); }
button.accent:hover, .button.accent:hover { background: var(--fg); color: var(--bg); }
button.danger { background: transparent; color: var(--err-fg); border-color: currentColor; }
button.danger:hover { background: var(--err-bg); color: var(--err-fg); }
button.secondary, .button.secondary { background: transparent; color: var(--fg); border-color: var(--line); }
button.secondary:hover, .button.secondary:hover { background: var(--panel); border-color: var(--fg); color: var(--fg); }
button.link { background: none; border: 0; color: var(--muted); padding: 0; font-weight: 400; }
button.link:hover { background: none; color: var(--accent-ink); transform: none; }
button:disabled, button:disabled:hover { opacity: .45; cursor: default; transform: none; background: var(--fg); color: var(--bg); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 18px 0; }
.narrow { max-width: 400px; margin: 64px auto; }

/* ----- login ----- */
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 6px; }
.login-logo img { width: 64px; height: 64px; border-radius: 6px; }
.login-logo .wordmark { font: 500 30px/1 var(--font); letter-spacing: -.02em; }
.login-sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.login button { width: 100%; justify-content: center; margin-top: 8px; }

/* ----- filtros ----- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.filters input:not([type=checkbox]), .filters select { display: inline-block; width: auto; margin: 0; padding: 8px 10px; }
.filters label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: normal; font-size: 13px; color: var(--muted); }
.filters .grow { flex: 1 1 260px; }
.filters button { margin: 0; }
.bulk-bar { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
.bulk-bar button { margin: 0; }

/* ----- tabelas ----- */
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; font-size: 13px; border-bottom: 1px solid var(--line); }
td form { margin: 0; }
td select { width: auto; margin: 0; padding: 6px 8px; font-size: 14px; }
table.list td.sel, table.list th.sel { width: 32px; padding-right: 0; }
table.list tr.group td { color: var(--muted); font-weight: 500; font-size: 13px; padding: 20px 12px 8px; border-bottom: 1px solid var(--line); }
.nowrap { white-space: nowrap; }
.list td a { font-weight: 500; text-decoration: none; }
.list td a:hover { text-decoration: underline; }

/* ----- status ----- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: var(--radius-s); background: var(--soft); color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.done { background: var(--ok-bg); color: var(--ok-fg); }
.status.error { background: var(--err-bg); color: var(--err-fg); }
.status.transcribing, .status.uploaded { background: var(--warn-bg); color: var(--warn-fg); }
.status.uploading { background: var(--accent-soft); color: var(--accent-ink); }
.status.uploading::before { background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .status.uploading::before { animation: none; } }

/* ----- reunião ----- */
.title-form { display: flex; gap: 8px; margin: 8px 0; align-items: stretch; }
.title-form input { margin: 0; font: 500 24px/1.2 var(--font); letter-spacing: -.01em; border-color: transparent; background: transparent; padding-left: 0; text-overflow: ellipsis; }
.title-form input:hover, .title-form input:focus { border-color: var(--line); background: var(--surface); padding-left: 10px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.actions form { margin: 0; }
audio { width: 100%; margin: 12px 0; }
code.token { display: block; padding: 10px; background: var(--soft); border-radius: var(--radius-s); word-break: break-all; user-select: all; font-size: 14px; }
.transcript { margin-top: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.turn { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.turn:first-child { border-top: 0; }
.turn .who { font-weight: 500; color: var(--fg); }
.turn .who .t { display: block; font: 12px/1.6 var(--font); color: var(--muted); }
.turn p { margin: 0; max-width: 72ch; }
.seg { cursor: pointer; border-radius: var(--radius-s); transition: background .2s var(--ease); }
.seg:hover { background: var(--soft); }
.seg.now { background: var(--brand-soft); }

@media (max-width: 720px) {
  header.top .inner { height: auto; padding: 12px 16px 0; flex-wrap: wrap; gap: 6px 12px; }
  .brand .product { display: none; }
  nav.main { order: 3; width: 100%; margin: 0; padding-right: 28px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  nav.main a { height: 44px; white-space: nowrap; padding: 0 10px; }
  .admin-nav { margin-left: 4px; padding-left: 8px; }
  .user { margin-left: auto; gap: 10px; font-size: 13px; }
  .user > a { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { padding: 24px 16px 48px; }
  footer.site { padding: 0 16px; }
  .turn { grid-template-columns: 1fr; gap: 4px; }
  .title-form { flex-wrap: wrap; }
  .title-form input { flex: 1 1 100%; font-size: 21px; }
  .title-form button { align-self: flex-start; }
  table { display: block; overflow-x: auto; }
}

/* ----- rodapé ----- */
footer.site { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
footer.site .inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 30px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
footer.site code { background: var(--soft); padding: 1px 6px; border-radius: var(--radius-s); font-size: 12px; }

/* ----- instruções ----- */
ol.steps, ul.steps { margin: 0; padding-left: 22px; }
ol.steps li, ul.steps li { margin: 8px 0; max-width: 72ch; }
ol.steps code, ul.steps code, .card > p code { background: var(--soft); padding: 1px 6px; border-radius: var(--radius-s); font-size: 13px; }
::marker { color: var(--muted); }

/* ----- resumo e revisão ----- */
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.summary h3 { font-size: 14px; font-weight: 600; margin: 16px 0 4px; color: var(--fg); }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 3px 0; }
.summary p { max-width: 75ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.transcript-bar { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.transcript-bar form { margin-left: auto; }
.seg-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.seg-toggle button { border-radius: 0; background: var(--surface); color: var(--muted); }
.seg-toggle button:hover { background: var(--soft); color: var(--fg); transform: none; }
.seg-toggle button.on { background: var(--fg); color: var(--bg); }
.transcript[data-mode="revised"] .v-original, .transcript[data-mode="original"] .v-revised { display: none; }

/* ----- Google ----- */
.button.google { width: 100%; justify-content: center; gap: 10px; background: var(--surface); color: var(--fg); border-color: var(--line); font-weight: 500; padding: 13px 16px; }
.button.google:hover { background: #fff; border-color: var(--fg); color: var(--fg); }
.button.google svg { width: 18px; height: 18px; }
.password-login { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.password-login summary { cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; list-style: none; }
.password-login summary::-webkit-details-marker { display: none; }
.password-login button { width: 100%; justify-content: center; margin-top: 8px; }
.connect-google { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 20px; font-size: 14px; }
.connect-google .button { margin: 0; }
.attendees { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.drive-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.drive-links .button { margin: 0; }

/* ----- cabeçalho de página, abas, etiquetas ----- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 400; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--fg); }
.tabs a.on { color: var(--fg); border-bottom-color: var(--fg); }
.tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: var(--radius-s); background: var(--soft); color: var(--muted); vertical-align: 1px; }
.tag.project { background: var(--soft); color: var(--fg); }
.owner-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 12px 18px; }
.owner-bar .inline-form { max-width: 100%; min-width: 0; }
.owner-bar select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.inline-form .label { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.inline-form select { width: auto; margin: 0; padding: 7px 9px; }
.player-video { width: 100%; max-height: 480px; border-radius: var(--radius); background: #000; margin: 12px 0; }
.inline-create .row, .upload-form .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.inline-create .row label, .upload-form .row label { margin: 0; }
.inline-create .grow { flex: 1 1 260px; }
.upload-form { max-width: 640px; }
.progress { position: relative; height: 22px; border-radius: var(--radius-s); background: var(--soft); overflow: hidden; margin-top: 12px; }
.progress .bar { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.progress span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 22px; font-weight: 500; color: var(--fg); mix-blend-mode: difference; filter: invert(1); }
.hidden { display: none !important; }

/* ----- estatísticas ----- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: -1px -1px 0 var(--line-soft) inset; }
.kpi .v { font: 500 30px/1.05 var(--font); letter-spacing: -.02em; color: var(--fg); }
.kpi .v small { font-size: 14px; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi .d { font-size: 12px; font-weight: 500; }
.kpi .d.up { color: var(--ok-fg); } .kpi .d.down { color: var(--err-fg); }
.kpi.alert .v { color: var(--accent-ink); }
.weeks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; }
.week { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.week .wb { width: 100%; min-height: 2px; background: var(--viz); border-radius: 2px 2px 0 0; }
.week:last-child .wb { background: var(--accent); }
.week .wv { font-size: 11px; color: var(--muted); }
.week .wl { font-size: 11px; color: var(--muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 18px; }
.grid-2 > .card { min-width: 0; }
.heat-wrap { overflow-x: auto; }
table.heat { border: 0; background: none; width: auto; margin: 0; }
table.heat th, table.heat td { border: 0; padding: 0; font-size: 11px; text-align: center; background: none; }
table.heat th { color: var(--muted); padding: 2px 4px; font-weight: 500; }
table.heat td { width: 30px; height: 26px; border-radius: 2px; background: color-mix(in srgb, var(--viz) calc(var(--a) * 100%), var(--soft)); color: var(--fg); }
.hbar { display: grid; grid-template-columns: minmax(0, 38%) 1fr auto; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.hbar .hl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .ht { height: 8px; background: var(--soft); border-radius: 2px; overflow: hidden; }
.hbar .ht i { display: block; height: 100%; background: var(--viz); border-radius: 2px; }
.hbar .hv { color: var(--muted); white-space: nowrap; }
td.num { text-align: right; }
.net-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot.interno, .node.interno circle { background: var(--viz); fill: var(--viz); }
.dot.externo, .node.externo circle { background: var(--accent); fill: var(--accent); }
.dot.sem, .node.sem circle { background: #9AA3A1; fill: #9AA3A1; }
.net-wrap { position: relative; }
#net { width: 100%; height: 520px; display: block; background: var(--surface); border-radius: var(--radius); touch-action: none; }
#net .node { cursor: grab; }
#net .node circle { stroke: var(--surface); stroke-width: 1.5; }
#net .node text { font: 500 11px var(--font); fill: var(--fg); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
#net.focus .node:not(.hi) { opacity: .18; }
#net.focus .edge:not(.hi) { stroke-opacity: .06; }
#net .edge.hi { stroke: var(--accent); stroke-opacity: .8; }
.net-tip { position: absolute; max-width: 250px; background: var(--fg); color: var(--bg); font-size: 13px; line-height: 1.4; padding: 9px 12px; border-radius: var(--radius-s); pointer-events: none; box-shadow: 0 8px 24px rgba(20, 20, 20, .22); }
.net-tip b { display: block; }

/* ----- pontos de atenção e projeto ----- */
.alerts { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.alert-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.alert-row:first-of-type { border-top: 0; }
.badge { flex: 0 0 auto; font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: var(--radius-s); background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge.warn { background: var(--accent-soft); color: var(--accent-ink); }
.item { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.item:first-of-type { border-top: 0; }
.item .src { display: block; font-size: 12px; margin-top: 2px; text-decoration: none; }
a.kpi { text-decoration: none; color: inherit; transition: background .25s var(--ease); } a.kpi:hover { background: var(--surface); color: inherit; }
.net-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 12px; }
.net-filters label { margin: 0; font-size: 13px; }
.net-filters label:not(.check) { display: flex; flex-direction: column; gap: 4px; }
.net-filters #ego { min-width: 240px; }
.net-card #net { height: 600px; cursor: move; }
#net .edge { stroke: #8E9997; stroke-opacity: .5; }
#net .edge.alter { stroke-dasharray: 3 3; stroke-opacity: .35; }
#net .node.ego circle { stroke: var(--accent); stroke-width: 4; }
#net .node.ego text { font-size: 13px; }
#ego-list-bars .hbar a { color: var(--fg); text-decoration: none; }
#ego-list-bars .hbar a:hover { text-decoration: underline; }
#ego-list-bars .hbar .ht i.dot { border-radius: 2px; }
#ego-list-bars .hbar .ht i.externo { background: var(--accent); }
#ego-list-bars .hbar .ht i.sem { background: #9AA3A1; }
.dot.cliente, .node.cliente circle { background: var(--amber); fill: var(--amber); }
#ego-list-bars .hbar .ht i.cliente { background: var(--amber); }
/* ----- organização ----- */
.ei { position: relative; height: 8px; background: var(--soft); border-radius: 2px; }
.ei .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.ei i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.ei i.neg { background: var(--accent); }
.ei i.pos { background: var(--viz); }
.split { display: flex; height: 8px; border-radius: 2px; overflow: hidden; background: var(--soft); margin-bottom: 2px; }
.split i { display: block; height: 100%; }
.split i.cliente { background: var(--amber); } .split i.externo { background: var(--accent); } .split i.interno { background: var(--viz); }
table.team-matrix td { width: auto; min-width: 54px; height: 30px; padding: 0 6px; color: var(--fg); background: color-mix(in srgb, var(--viz) calc(var(--a) * 85%), var(--soft)); }
table.team-matrix th.rowh { text-align: right; padding-right: 10px; white-space: nowrap; }
/* ----- agenda sem gravação ----- */
.agenda-card summary { cursor: pointer; font-size: 15px; }
.agenda-card table.agenda td { vertical-align: middle; }
.tag.platform.meet { background: var(--ok-bg); color: var(--ok-fg); }
.tag.platform.teams { background: #E8E7F6; color: #4545A8; }
.tag.platform.zoom { background: #DCE8F5; color: #1E5480; }
.tag.platform.presencial { background: var(--soft); color: var(--muted); }
.event-box { background: var(--soft); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.event-box b { margin-left: 6px; }

/* Perguntar às reuniões */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-intro { max-width: 80ch; margin: 0 0 4px; }
.ask-form textarea { font-size: 18px; resize: vertical; margin: 0 0 12px; }
.ask-form .ask-filters { margin: 0; padding: 0; border: 0; background: none; }
.ask-form .ask-filters button { margin-left: auto; }
.ask-scope { margin: 0 0 12px; font-size: 14px; }
.answer-text { white-space: pre-line; max-width: 75ch; font-size: 17px; line-height: 1.6; }
.cite { display: inline-block; min-width: 18px; padding: 0 5px; margin: 0 1px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-size: 12px; font-weight: 500; line-height: 17px; text-align: center; text-decoration: none; vertical-align: 2px; }
.cite:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.sources-title { font-size: 18px; margin: 28px 0 8px; }
.sources { margin: 0; padding-left: 26px; }
.sources li { margin: 0 0 16px; scroll-margin-top: 90px; }
.sources li:target .src-text { outline: 2px solid var(--fg); }
.src-head a { font-weight: 500; text-decoration: none; }
.src-head a:hover { text-decoration: underline; }
.src-head .muted { font-size: 13px; }
.src-text { white-space: pre-line; max-width: 85ch; margin-top: 6px; padding: 11px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); font-size: 14px; line-height: 1.55; }
.ask-history { list-style: none; margin: 0; padding: 0; }
.ask-history li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.ask-history li:first-child { border-top: 0; }
.ask-history a { text-decoration: none; font-weight: 500; }
.ask-history a:hover { text-decoration: underline; }
.seg.hit { background: var(--brand-soft); transition: background 2s; }

/* Avaliação da transcrição (piloto) */
.eval-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--fg); text-decoration: none; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.eval-banner b { color: var(--accent-ink); }
.eval-banner:hover { border-color: var(--accent); }
.eval-banner a { color: inherit; text-decoration: none; flex: 1; }
.ok-note { background: var(--ok-bg); color: var(--ok-fg); font-weight: 500; padding: 10px 14px; border-radius: var(--radius-s); }
.eval-intro { max-width: 860px; }
.eval-banner form, .news-head form { margin: 0; }
.notice-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 2px 8px; cursor: pointer; border-radius: var(--radius-s); }
.notice-x:hover, .notice-x:focus-visible { background: var(--soft); color: var(--fg); transform: none; }
.ext-notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ext-notice form { margin: 0; }
.news-card { max-width: 900px; }
.news-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.news-head h2 { margin: 0; }
.news-card ul { margin: 10px 0; padding-left: 20px; }
.news-card li { margin: 6px 0; }
.news-ask { margin: 12px 0 0; padding: 11px 14px; border-radius: var(--radius); background: var(--soft); }
.eval-card { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.eval-card summary { cursor: pointer; }
.eval-stars { max-width: 760px; margin-top: 10px; }
.eval-q { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.eval-q:first-child { border-top: 0; }
.eval-q small { display: block; color: var(--muted); font-size: 13px; }
/* Estrelas: ordem invertida no HTML para o ~ pintar as anteriores (hover e marcada) */
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; position: relative; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { line-height: 0; padding: 2px 3px; color: rgba(20, 20, 20, .45); cursor: pointer; transition: color .1s; }
.stars label svg { display: block; width: 28px; height: 28px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--accent); }
.stars input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: var(--radius-s); }
.eval-notes { display: block; font-weight: 500; max-width: 760px; margin: 10px 0 12px; }
.eval-notes .muted { font-weight: normal; font-size: 13px; }
.eval-bar { margin: 0 0 18px; max-width: 760px; }
.eval-bar-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-bottom: 6px; }
.star-row { display: grid; grid-template-columns: 34px 1fr 32px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.star-track { height: 8px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.star-track i { display: block; height: 100%; background: var(--accent); }
.eval-group { font-size: 15px; margin: 18px 0 4px; }
.eval-comments { list-style: none; margin: 0; padding: 0; }
.eval-comments li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.eval-comments li:first-child { border-top: 0; }
.eval-note { margin: 6px 0 0; white-space: pre-line; max-width: 80ch; }

/* Perguntar: reunião escolhida, perguntas prontas e quadro dentro da reunião */
.ask-scope-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.ask-scope-row label { font-size: 14px; }
.ask-scope-row select { width: auto; max-width: 100%; flex: 1 1 320px; margin: 0; padding: 8px 10px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip-btn { font: 400 13px/1.2 var(--font); padding: 7px 12px; border-radius: var(--radius-s); background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.chip-btn:hover { background: var(--surface); border-color: var(--fg); color: var(--fg); transform: none; }
.ask-m-row { display: flex; gap: 8px; }
.ask-m-row input { margin: 0; flex: 1; }
.ask-m-row button { flex: 0 0 auto; }
.ask-m-out:not(:empty) { margin-top: 14px; }
.ask-m-out h3 { font-size: 15px; margin: 16px 0 6px; }
.ask-m-out .src-head button { margin-left: 6px; padding: 4px 10px; font-size: 12px; }
.ask-m-history { margin-top: 12px; font-size: 14px; }
.ask-m-history ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 720px) { .ask-m-row { flex-direction: column; } }

/* Gestão › Status */
.status-summary { font: 500 18px/1.3 var(--font); padding: 13px 16px; border-radius: var(--radius); margin: 0 0 16px; }
.status-summary.ok { background: var(--ok-bg); color: var(--ok-fg); }
.status-summary.warn { background: var(--warn-bg); color: var(--warn-fg); }
.status-summary.err { background: var(--err-bg); color: var(--err-fg); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 18px; }
.status-card { margin: 0 0 18px; }
.status-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--fg); }
.checks { list-style: none; margin: 0; padding: 0; }
.check-row { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.check-row:first-child { border-top: 0; }
.light { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--line); }
.light.ok { background: #2E8A5C; }
.light.warn { background: var(--amber); }
.light.err { background: var(--accent); }
.light.off { background: var(--line); }
.check-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check-label { font-weight: 500; }
.check-detail { color: var(--muted); font-size: 13px; margin-top: 2px; max-width: 70ch; }
@media (max-width: 720px) { .status-grid { grid-template-columns: 1fr; } }

/* Extensão desatualizada */
.connect-google.ext-update { background: var(--warn-bg); color: var(--warn-fg); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.ext-mine { margin: -4px 0 16px; font-size: 14px; }
.ext-mine.warn { color: var(--warn-fg); background: var(--warn-bg); padding: 10px 14px; border-radius: var(--radius); }
.token-once { font: 13px/1.4 ui-monospace, Consolas, monospace; background: var(--soft); padding: 10px 12px; border-radius: var(--radius-s); overflow-x: auto; user-select: all; }
/* ----- área de admin no menu: separada por uma divisória e marcada pela etiqueta ----- */
.admin-nav { display: flex; align-items: stretch; gap: 2px; margin-left: 10px; padding-left: 12px; position: relative; }
.admin-nav::before { content: ""; position: absolute; left: 0; top: 50%; height: 22px; margin-top: -11px; width: 1px; background: var(--line); }
.admin-nav .admin-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--accent-ink); margin-right: 2px; }
nav.main .admin-nav a { padding: 0 9px; font-size: 14px; }

/* ----- lista de reuniões ----- */
table.meetings td { vertical-align: top; padding-top: 13px; padding-bottom: 13px; }
table.meetings .when b { display: block; font-weight: 500; color: var(--fg); text-transform: capitalize; }
table.meetings .when span { font-size: 13px; color: var(--muted); }
table.meetings .mtitle { font: 500 16px/1.35 var(--font); color: var(--fg); text-decoration: none; }
table.meetings .mtitle:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); }
table.meetings .title-cell .status { margin-left: 6px; vertical-align: 2px; }
table.meetings .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
table.meetings .dur { color: var(--muted); font-size: 14px; }
table.meetings .who { font-size: 14px; color: var(--muted); max-width: 300px; }
table.meetings .who a { color: var(--fg); text-decoration: none; font-weight: 400; }
table.meetings .who a:hover { color: var(--fg); text-decoration: underline; }
table.meetings .who .more { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 500; padding: 0 6px; border-radius: var(--radius-s); background: var(--soft); cursor: help; white-space: nowrap; }
table.meetings tr.mrow { transition: background .2s var(--ease); }
table.meetings tr.mrow:hover td { background: rgba(255, 255, 255, .55); }
table.meetings th.st, table.meetings td.st { width: 28px; padding-left: 4px; padding-right: 12px; text-align: center; }
.status.dot-only { padding: 0; background: none; font-size: 0; gap: 0; cursor: help; vertical-align: middle; }
.status.dot-only::before { width: 9px; height: 9px; }
.status.dot-only.done { color: #2E8A5C; }
.status.dot-only.transcribing, .status.dot-only.uploaded { color: var(--amber); }
table.meetings td.st { padding-top: 17px; }
table.meetings .screen-ic { color: var(--muted); margin-right: 6px; vertical-align: -2px; }
table.meetings .subject { font-size: 14px; color: var(--muted); margin-top: 2px; }
table.rites select { margin: 0; padding: 5px 8px; font-size: 13px; }
table.rites select.overridden { border-color: var(--fg); background: var(--brand-soft); }
/* ----- ritos ----- */
.rito-config label { margin: 10px 0; }
.rito-config select { max-width: 360px; }
.rito-last h3 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; color: var(--muted); }
.rito-last ul { margin: 0; padding-left: 20px; }
.rito-last ul.checks, .pauta ul.checks { list-style: none; padding-left: 0; }
.rito-last ul.checks li, .pauta ul.checks li { position: relative; padding-left: 24px; }
.rito-last ul.checks li::before, .pauta ul.checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 11px; height: 11px; border: 1.5px solid var(--muted); border-radius: 2px; }
ol.timeline { list-style: none; margin: 0; padding: 0; }
ol.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
ol.timeline li:first-child { border-top: 0; padding-top: 4px; }
.tl-date b { display: block; font-weight: 500; }
.tl-date span { font-size: 13px; color: var(--muted); }
.tl-title { font: 500 15px var(--font); color: var(--fg); text-decoration: none; }
.tl-title:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); }
.tl-body p { margin: 6px 0 0; }
.ritual-note { font-size: 13px; background: var(--soft); color: var(--fg); padding: 9px 12px; border-radius: var(--radius); margin: 0 0 12px; }
.pauta .summary-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pauta .summary-head h2 { margin: 0; }
.pauta h3 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; color: var(--muted); }
.pauta ul { margin: 0; padding-left: 20px; }
ol.pauta-items { margin: 8px 0 0; padding-left: 22px; }
ol.pauta-items li { display: list-item; padding: 7px 0; border-top: 1px solid var(--line-soft); }
ol.pauta-items li:first-child { border-top: 0; }
ol.pauta-items li > div { display: inline-block; max-width: calc(100% - 80px); vertical-align: top; }
ol.pauta-items .mins { float: right; font-size: 13px; font-weight: 500; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1px 7px; }
.rito-config label.check { align-items: flex-start; }
.rito-config label.check input { margin-top: 4px; }

/* ===== IRaMuTeQ Power (seção própria; o restante é a identidade do INC.OS copiada das reuniões) ===== */
.status.nova { background: var(--soft); color: var(--muted); }
.status.explorando, .status.consolidando { background: var(--warn-bg); color: var(--warn-fg); }
.status.explorando::before, .status.consolidando::before { background: var(--amber); animation: pulse 1.2s infinite; }
.status.explorada { background: var(--brand-soft); color: var(--viz); }
.status.concluida { background: var(--ok-bg); color: var(--ok-fg); }
.status.erro { background: var(--err-bg); color: var(--err-fg); }
.meta { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; margin: 8px 0; background: var(--surface); }
legend { font-weight: 500; padding: 0 4px; }
label small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
textarea { min-height: 80px; }
.scroll { overflow: auto; max-height: 320px; border: 1px solid var(--line); border-radius: var(--radius-s); }
table.preview { border: 0; margin: 0; font-size: 12px; } table.preview th, table.preview td { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
pre.log { background: var(--fg); color: #D6DDE6; padding: 12px 14px; border-radius: var(--radius); max-height: 360px; overflow: auto; font-size: 12px; white-space: pre-wrap; margin: 0; }
pre.report { background: var(--surface); border: 1px solid var(--line-soft); padding: 12px 14px; border-radius: var(--radius); max-height: 520px; overflow: auto; font-size: 12.5px; white-space: pre-wrap; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gallery img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.gallery figure { margin: 0; } .gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
details.card summary { cursor: pointer; font-weight: 500; }
.runner-ok { color: var(--ok-fg); } .runner-off { color: var(--err-fg); }
