/* =========================================================
   Influxo Hub — design system (mesma base do Influxo Financeiro)
   ======================================================= */
:root, [data-theme=dark] {
  --ink: 255,255,255;
  --bg: #0b0912; --bg-2: #110e19;
  --panel: #14111d; --panel-solid: #14111d; --card: #1a1625; --elev: #1c1828; --elev-2: #16131f;
  --input: #0f0c16; --side: #0f0c16; --topbar: rgba(11,9,18,.97); --scrim: var(--scrim);
  --line: rgba(176, 140, 255, .11); --line-2: rgba(176, 140, 255, .2);
  --text: #f3f0fa; --text-2: #c7c0d8; --muted: #8b82a3;
  --pink: #ec2df8; --mid: #a21cff; --violet: #5a0cff;
  --grad: linear-gradient(100deg, #ec2df8 0%, #a21cff 50%, #5a0cff 100%);
  --grad-soft: linear-gradient(100deg, rgba(236,45,248,.16), rgba(90,12,255,.16));
  --green: #2ee6a6; --green-bg: rgba(46, 230, 166, .12);
  --red: #ff4d7e; --red-bg: rgba(255, 77, 126, .12);
  --amber: #ffb547; --amber-bg: rgba(255, 181, 71, .12);
  --blue: #5aa9ff; --accent-text: var(--accent-text);
  --radius: 16px; --radius-sm: 12px;
  --glow: 0 8px 26px -10px rgba(162, 28, 255, .55);
  --shadow: 0 24px 60px -14px rgba(0,0,0,.85);
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sidebar: 252px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
[data-theme=light] {
  --ink: 30,20,60;
  --bg: #f6f4fb; --bg-2: #efecf7;
  --panel: #ffffff; --panel-solid: #ffffff; --card: #ffffff; --elev: #ffffff; --elev-2: #fbfaff;
  --input: #ffffff; --side: #fbfaff; --topbar: rgba(246,244,251,.97); --scrim: rgba(30,20,60,.28);
  --line: rgba(60, 40, 120, .1); --line-2: rgba(60, 40, 120, .18);
  --text: #1c1530; --text-2: #4a4262; --muted: #857c9e;
  --grad-soft: linear-gradient(100deg, rgba(236,45,248,.1), rgba(90,12,255,.1));
  --green: #0f9f6e; --green-bg: rgba(16, 185, 129, .12);
  --red: #e11d48; --red-bg: rgba(225, 29, 72, .1);
  --amber: #b45309; --amber-bg: rgba(245, 158, 11, .14);
  --blue: #2563eb; --accent-text: #8b2bff;
  --glow: 0 8px 22px -12px rgba(162, 28, 255, .55);
  --shadow: 0 20px 50px -18px rgba(40,20,90,.28);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(236,45,248,.35); }
svg { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(162,28,255,.25); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(162,28,255,.45); }
::-webkit-scrollbar-track { background: transparent; }
kbd { font-family: ui-monospace, monospace; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(var(--ink),.07); border: 1px solid var(--line-2); color: var(--text-2); }

#app { position: relative; z-index: 1; min-height: 100vh; }
.splash { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 28px; }
.splash img { width: 64px; animation: pulse 1.6s var(--ease) infinite; }
.splash-bar { width: 140px; height: 3px; background: rgba(var(--ink),.08); border-radius: 3px; overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 3px; animation: bar 1.1s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .7; } }
@keyframes bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* =========================================================
   Botões / campos
   ======================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(var(--ink),.06); color: var(--text); font-weight: 700; font-size: 13px; white-space: nowrap; transition: transform .2s var(--ease), background .25s, border-color .25s, box-shadow .3s, opacity .2s; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: rgba(var(--ink),.1); border-color: rgba(236,45,248,.35); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { position: relative; border: 0; background: var(--grad); background-size: 160% 100%; box-shadow: var(--glow); overflow: hidden; color: #fff; }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 14px 44px -10px rgba(236,45,248,.7); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(var(--ink),.06); border-color: var(--line); }
.btn.danger { color: var(--red); border-color: rgba(255,77,126,.3); background: var(--red-bg); }
.btn.danger:hover { background: rgba(255,77,126,.2); border-color: var(--red); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.icon { width: 38px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(var(--ink),.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.x { border: 0; background: none; color: var(--muted); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; padding: 0; transition: all .2s; }
.x:hover { color: var(--red); background: var(--red-bg); }
.x svg { width: 14px; height: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.field small { color: var(--muted); font-size: 11.5px; }
.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--input); color: var(--text); outline: none; transition: border-color .2s, box-shadow .25s, background .2s; }
textarea.input { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: rgba(236,45,248,.6); box-shadow: 0 0 0 4px rgba(236,45,248,.12); background: var(--input); }
.input::placeholder { color: #6c6188; }
.input.sm { height: 32px; font-size: 13px; border-radius: 9px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a99cc8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
select.input option { background: var(--panel-solid); }
input[type=date].input::-webkit-calendar-picker-indicator, input[type=month].input::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
.input.money { font-weight: 700; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 9px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-sm { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.sm { font-size: 12.5px; }
.pos { color: var(--green); }
.pre { white-space: pre-wrap; margin: 0; color: var(--text-2); }
.sp { flex: 1; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text-2); user-select: none; }
.switch input { display: none; }
.switch i { width: 38px; height: 22px; border-radius: 22px; background: rgba(var(--ink),.1); position: relative; transition: background .3s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .35s var(--spring); }
.switch input:checked + i { background: var(--grad); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch svg { width: 14px; height: 14px; }

.colors { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-btn { width: 24px; height: 24px; border-radius: 8px; border: 2px solid transparent; padding: 0; transition: transform .2s var(--spring); box-shadow: inset 0 0 0 1px rgba(var(--ink),.15); }
.sw-btn:hover { transform: scale(1.12); }
.sw-btn.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(236,45,248,.5); }
.icon-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.icon-pick button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink),.03); display: grid; place-items: center; color: var(--text-2); }
.icon-pick button svg { width: 16px; height: 16px; }
.icon-pick button.on { background: var(--grad); color: #fff; border-color: transparent; }
.seg-sm { display: flex; flex-wrap: wrap; gap: 4px; }
.seg-sm button { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(var(--ink),.03); font-size: 12px; font-weight: 700; color: var(--text-2); }
.seg-sm button.on { background: var(--grad-soft); border-color: rgba(236,45,248,.45); color: var(--text); }

.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-h h3 { margin: 0; font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.panel-h h3 svg { width: 16px; height: 16px; color: var(--accent-text); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.violet { background: rgba(162,28,255,.16); color: var(--accent-text); }
.badge.gray { background: rgba(var(--ink),.07); color: var(--text-2); }
.info-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(90,169,255,.08); border: 1px solid rgba(90,169,255,.2); color: var(--text-2); font-size: 13px; }
.info-box > svg { width: 17px; height: 17px; flex: none; color: var(--blue); margin-top: 1px; }
.info-box.ok { background: var(--green-bg); border-color: rgba(46,230,166,.25); }
.info-box.ok > svg { color: var(--green); }
.cnt { font-size: 12px; font-weight: 700; color: var(--muted); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty .e-ic { width: 60px; height: 60px; margin-bottom: 10px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); }
.empty .e-ic svg { width: 26px; height: 26px; color: var(--accent-text); }
.empty b { color: var(--text); font-size: 15px; }
.empty a { color: var(--accent-text); }

/* avatares */
.av { width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; font-size: calc(var(--s) * .4); font-weight: 800; color: #fff; flex: none; box-shadow: 0 0 0 2px var(--bg); letter-spacing: -.02em; }
.av.av-none { background: transparent; border: 1.5px dashed var(--line-2); color: var(--muted); box-shadow: none; }
.av.av-none svg { width: calc(var(--s) * .55); height: calc(var(--s) * .55); }
.av.more { background: var(--line-2); color: var(--text-2); }
.av.sys { background: var(--grad-soft); color: var(--accent-text); }
.av.sys svg { width: calc(var(--s) * .5); height: calc(var(--s) * .5); }
.av-stack { display: inline-flex; }
.av-stack .av + .av { margin-left: -7px; }

/* =========================================================
   Login
   ======================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: radial-gradient(90% 80% at 20% 20%, rgba(236,45,248,.35), transparent 60%), radial-gradient(90% 90% at 90% 90%, rgba(90,12,255,.6), transparent 60%), #0e0620; border-right: 1px solid var(--line); }
.auth-art .big-logo { position: absolute; width: 520px; right: -120px; top: 50%; transform: translateY(-50%) rotate(-6deg); opacity: .16; }
.auth-art h2 { position: relative; font-size: 46px; line-height: 1.05; letter-spacing: -.04em; margin: 0; font-weight: 800; max-width: 520px; }
.auth-art h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art p { position: relative; color: var(--text-2); font-size: 16px; max-width: 440px; }
.auth-feats { position: relative; display: flex; flex-direction: column; gap: 12px; }
.auth-feats div { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-2); animation: rvIn .7s var(--ease) both; animation-delay: calc(var(--i) * 120ms + .3s); }
.auth-feats i { width: 34px; height: 34px; border-radius: 11px; background: rgba(var(--ink),.07); border: 1px solid var(--line-2); display: grid; place-items: center; }
.auth-feats i svg { width: 16px; height: 16px; color: var(--accent-text); }
.auth-form { display: grid; place-items: center; padding: 40px; }
.auth-form form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; animation: rvIn .7s var(--ease) both; }
.auth-form h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
@keyframes rvIn { from { opacity: 0; transform: translateY(10px); } }

/* =========================================================
   Casca
   ======================================================= */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--side); border-right: 1px solid var(--line); z-index: 40; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 16px; }
.brand img { width: 27px; height: 33px; filter: drop-shadow(0 6px 18px rgba(162,28,255,.5)); }
.brand b { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 14px 10px 4px; }
.nav-label .btn { width: 24px; height: 24px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 13.5px; transition: color .2s, background .2s; }
.nav a > svg { width: 17px; height: 17px; opacity: .8; }
.nav a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a:hover { color: var(--text); background: rgba(var(--ink),.04); }
.nav a.active { color: var(--text); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(236,45,248,.2); }
.nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 14px #ec2df8; }
.nav .lk svg { width: 12px; height: 12px; color: var(--muted); }
.nb { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 8px; background: rgba(var(--ink),.05); }
.nb.hot { color: #fff; background: var(--red); }
.nb.live { color: var(--green); background: var(--green-bg); }
.sp-ic { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; flex: none; }
.sp-ic svg { width: 12px; height: 12px; }
.sp-ic.lg { width: 30px; height: 30px; border-radius: 9px; }
.sp-ic.lg svg { width: 16px; height: 16px; }
.sidebar-foot { margin-top: auto; padding-top: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 13px; background: rgba(var(--ink),.03); border: 1px solid var(--line); }
.user-chip > div:not(.av) { min-width: 0; flex: 1; }
.user-chip b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip small { color: var(--muted); font-size: 11.5px; }
.side-ov { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 7px 28px; font-size: 12.5px; color: var(--amber); background: rgba(255,181,71,.07); border-bottom: 1px solid rgba(255,181,71,.15); }
.demo-bar svg { width: 15px; height: 15px; }
.demo-bar span { flex: 1; }
.demo-bar a { font-weight: 800; text-decoration: underline; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--topbar); border-bottom: 1px solid var(--line); }
.tb-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-title h1 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title > svg { width: 16px; height: 16px; color: var(--muted); }
.tb-title .sub { color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tb-title .back { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); }
.topbar .spacer { flex: 1; }
.vtabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(var(--ink),.04); border: 1px solid var(--line); }
.vtabs button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; font-size: 12.5px; transition: all .2s; }
.vtabs button svg { width: 15px; height: 15px; }
.vtabs button:hover { color: var(--text); }
.vtabs button.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.bell { position: relative; }
.bell-n { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.content { padding: 4px 28px 60px; flex: 1; min-width: 0; }
.mobile-only { display: none !important; }
.page { animation: pageIn .45s var(--ease) both; }
.page .stg { animation: rvIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* =========================================================
   Criação rápida + filtros
   ======================================================= */
.quick { margin-bottom: 12px; }
.quick-in { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); transition: border-color .2s, box-shadow .25s; }
.quick-in:focus-within { border-color: rgba(236,45,248,.55); box-shadow: 0 0 0 4px rgba(236,45,248,.1), var(--glow); }
.quick-in > svg { width: 18px; height: 18px; color: var(--accent-text); }
.quick-in input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 14px; }
.quick-in input::placeholder { color: #6c6188; }
.quick-in kbd { opacity: .5; }
.quick-sp { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(var(--ink),.03); font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.quick-sp i { width: 9px; height: 9px; border-radius: 3px; }
.quick-sp svg { width: 12px; height: 12px; }
.quick-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.quick.has .quick-preview { margin-top: 8px; }
.tok { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; background: var(--grad-soft); border: 1px solid rgba(236,45,248,.3); font-size: 12px; font-weight: 700; color: var(--accent-text); animation: pop .3s var(--spring); }
.tok svg { width: 12px; height: 12px; }

.fbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; }
.search.sm { width: 240px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.search .input { padding-left: 33px; height: 34px; font-size: 13px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink),.03); font-weight: 700; font-size: 12.5px; color: var(--text-2); transition: all .2s; }
.fchip svg { width: 14px; height: 14px; }
.fchip:hover { border-color: var(--line-2); color: var(--text); }
.fchip.on { background: var(--grad-soft); border-color: rgba(236,45,248,.45); color: var(--text); }
.fchip.clear { border-style: dashed; }

/* =========================================================
   Peças de tarefa
   ======================================================= */
.st-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 7px; background: var(--c); font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; border: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.st-pill.big { height: 32px; padding: 0 12px 0 9px; font-size: 12px; border-radius: 9px; }
.st-pill.big > svg { width: 13px; height: 13px; }
.ring { width: 12px; height: 12px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; border: 1.8px dashed currentColor; }
.ring.active { border-style: solid; background: conic-gradient(currentColor 0 50%, transparent 50% 100%); }
.ring.done { border: 0; background: currentColor; }
.ring.done svg { width: 9px; height: 9px; color: var(--c, #22c55e); stroke-width: 3.5; }
.st-pill .ring.done svg { color: var(--c); }
.cl-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 26px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: rgba(var(--ink),.03); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-chip i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.fmt-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.prio svg { width: 14px; height: 14px; fill: currentColor; fill-opacity: .25; }
.prio.none { color: var(--muted); opacity: .4; }
.prio em { font-style: normal; }
.due { font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.due.late { color: var(--red); }
.due.soon { color: var(--amber); }
.due.none { color: var(--muted); opacity: .45; }
.due.none svg { width: 15px; height: 15px; }
.metas { display: inline-flex; gap: 8px; align-items: center; }
.mi { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.mi svg { width: 13px; height: 13px; }
.mi.ok { color: var(--green); }

/* =========================================================
   LISTA
   ======================================================= */
.tl { display: flex; flex-direction: column; gap: 18px; }
.tl-group { border-radius: 14px; }
.tl-gh { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; }
.caret { width: 22px; height: 22px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 6px; padding: 0; transition: transform .25s var(--ease), background .2s; }
.caret:hover { background: rgba(var(--ink),.06); color: var(--text); }
.caret svg { width: 14px; height: 14px; }
.caret.open { transform: rotate(0); }
.tl-gh .caret.open, .mine-sec header .caret.open { transform: none; }
.collapsed .tl-gh .caret, .mine-sec.collapsed header .caret { transform: rotate(-90deg); }
.tr .caret { transform: none; }
.tr .caret.open { transform: rotate(90deg); }
.caret-sp { width: 22px; flex: none; }
.collapsed .tl-body, .mine-sec.collapsed .mine-rows { display: none; }
.th, .tr { display: grid; grid-template-columns: var(--cols); align-items: center; }
.th { padding: 0 8px 6px 38px; font-size: 11.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.th > div { padding: 0 8px; }
.tr { position: relative; min-height: 42px; padding: 0 8px; border-bottom: 1px solid rgba(176,130,255,.07); cursor: pointer; transition: background .15s; }
.tr:hover { background: rgba(var(--ink),.035); }
.tr.dragging { opacity: .35; }
.td { padding: 5px 8px; min-width: 0; display: flex; align-items: center; }
.td[data-f] { border-radius: 8px; transition: background .15s; }
.td[data-f]:hover { background: rgba(var(--ink),.05); }
.c-name { gap: 6px; padding-left: calc(var(--d) * 26px); }
.grip { width: 14px; color: var(--muted); opacity: 0; cursor: grab; display: grid; place-items: center; flex: none; }
.grip svg { width: 13px; height: 13px; }
.tr:hover .grip { opacity: .7; }
.ring-btn { width: 22px; height: 22px; border: 0; background: none; padding: 0; display: grid; place-items: center; color: var(--c); flex: none; border-radius: 50%; transition: transform .2s var(--spring); }
.ring-btn .ring { width: 14px; height: 14px; }
.ring-btn:hover { transform: scale(1.2); }
.t-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tr .metas { margin-left: 6px; flex: none; }
.is-done .t-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(143,131,171,.5); }
.tl-add { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 14px 0 44px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13px; border-radius: 10px; text-align: left; transition: all .15s; }
.tl-add:hover { color: var(--text); background: rgba(var(--ink),.03); }
.tl-add svg { width: 15px; height: 15px; }
.tl-add-in { padding: 6px 8px 6px 40px; }
.tl-add-in input { width: 100%; height: 36px; border-radius: 10px; border: 1px solid rgba(236,45,248,.5); background: var(--input); padding: 0 12px; outline: none; box-shadow: 0 0 0 4px rgba(236,45,248,.1); }
.tl-add-in .quick-preview { margin-top: 6px; }
.drop-line { height: 2px; margin: -1px 0; background: var(--grad); border-radius: 2px; box-shadow: 0 0 10px #ec2df8; pointer-events: none; }
.drop-over { background: rgba(236,45,248,.04); }
body.is-dragging * { cursor: grabbing !important; }

/* =========================================================
   QUADRO
   ======================================================= */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; min-height: 60vh; }
.kcol { flex: 0 0 272px; width: 272px; min-width: 0; display: flex; flex-direction: column; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); padding: 10px; max-height: calc(100vh - 230px); }
.kcol > header { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; border-bottom: 2px solid var(--c); margin-bottom: 10px; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 40px; padding: 2px; }
.kcol .tl-add { padding-left: 10px; height: 34px; }
.kcol .tl-add-in { padding: 6px 0 0; }
.kcard { position: relative; padding: 11px 12px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.kcard::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.kcard:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(0,0,0,.9); }
.kcard.dragging { opacity: .35; transform: rotate(2deg); }
.kc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; min-width: 0; }
.kc-top .fmt-pill { height: 20px; font-size: 11px; margin-left: auto; }
.cl-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.kc-cl { font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-t { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.kc-prog { height: 4px; border-radius: 4px; background: rgba(var(--ink),.07); overflow: hidden; margin: 8px 0 2px; }
.kc-prog i { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width .6s var(--ease); }
.kc-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.kc-foot .sp { flex: 1; }
.kc-foot [data-f] { border-radius: 6px; padding: 2px; }
.kc-foot [data-f]:hover { background: rgba(var(--ink),.06); }

/* =========================================================
   CALENDÁRIO
   ======================================================= */
.cal-wrap { display: grid; grid-template-columns: 1fr 230px; gap: 16px; align-items: start; }
.cal { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.cal-nav { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cal-nav b { font-size: 15px; font-weight: 800; text-transform: capitalize; min-width: 150px; text-align: center; }
.cal-nav .btn:last-child { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 8px 10px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.cal-day { position: relative; min-height: 112px; padding: 6px; border-right: 1px solid rgba(176,130,255,.07); border-bottom: 1px solid rgba(176,130,255,.07); transition: background .15s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: rgba(0,0,0,.18); }
.cal-day.out .cd-h span { opacity: .4; }
.cal-day.today .cd-h span { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.cal-day.drop-over { background: rgba(236,45,248,.1); }
.cd-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cd-h span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--text-2); }
.cd-add { width: 22px; height: 22px; border: 0; border-radius: 7px; background: none; color: var(--muted); display: grid; place-items: center; opacity: 0; padding: 0; }
.cd-add svg { width: 13px; height: 13px; }
.cal-day:hover .cd-add { opacity: 1; }
.cd-add:hover { background: rgba(var(--ink),.08); color: var(--text); }
.cd-list { display: flex; flex-direction: column; gap: 3px; }
.cd-in input { width: 100%; height: 26px; border-radius: 7px; border: 1px solid rgba(236,45,248,.5); background: var(--input); padding: 0 7px; font-size: 12px; outline: none; }
.cchip { display: flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 7px; background: rgba(var(--ink),.05); border-left: 3px solid var(--c); font-size: 11.5px; font-weight: 600; cursor: pointer; transition: background .15s; min-width: 0; }
.cchip:hover { background: rgba(var(--ink),.1); }
.cchip i { width: 6px; height: 6px; border-radius: 2px; flex: none; }
.cchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cchip.is-done { opacity: .5; text-decoration: line-through; }
.cchip.dragging { opacity: .35; }
.cal-side { position: sticky; top: 80px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 12px; }
.cal-side h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 7px; font-size: 13px; }
.cal-side h4 svg { width: 15px; height: 15px; color: var(--accent-text); }
.cal-nodate { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.cal-side.drop-over { border-color: rgba(236,45,248,.5); }

/* =========================================================
   MEU DIA
   ======================================================= */
.mine { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }
.mine-hero { color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(236,45,248,.3), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(90,12,255,.45), transparent 60%), #160b2b; border: 1px solid rgba(236,45,248,.22); }
.mine-hero span { font-size: 12.5px; font-weight: 700; color: rgba(var(--ink),.7); }
.mine-hero b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; }
.mine-stats { display: flex; gap: 22px; }
.mine-stats div { text-align: center; }
.mine-stats b { font-size: 24px; }
.mine-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.mine-sec { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 8px; transition: border-color .2s, background .2s; }
.mine-sec header { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 13.5px; }
.mine-sec header > svg { width: 16px; height: 16px; color: var(--accent-text); }
.mine-sec.late header > svg, .mine-sec.late header b { color: var(--red); }
.mine-sec.ok header > svg { color: var(--green); }
.mine-sec.drop-over { border-color: rgba(236,45,248,.5); }
.mine-rows { display: flex; flex-direction: column; margin-top: 4px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 11px; cursor: pointer; transition: background .15s; }
.mrow:hover { background: rgba(var(--ink),.04); }
.mrow.dragging { opacity: .35; }
.mrow [data-f] { border-radius: 7px; padding: 2px 4px; }
.mrow [data-f]:hover { background: rgba(var(--ink),.06); }
.chk { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--c, var(--line-2)); display: grid; place-items: center; flex: none; background: none; padding: 0; transition: all .3s var(--spring); }
.chk svg { width: 13px; height: 13px; opacity: 0; transform: scale(.4); transition: all .3s var(--spring); color: #fff; stroke-width: 3; }
.chk:hover svg { opacity: .5; transform: none; }
.chk.on { background: var(--c, var(--green)); border-color: var(--c, var(--green)); }
.chk.on svg { opacity: 1; transform: none; }
.m-t { flex: 1; min-width: 0; }
.m-t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-t small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.m-t small i { width: 7px; height: 7px; border-radius: 2px; }
.mine-empty { padding: 10px 14px; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }

/* =========================================================
   POPOVER
   ======================================================= */
.pop { position: fixed; z-index: 400; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--elev); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: popIn .18s var(--ease); }
.pop.out { animation: popOut .12s ease forwards; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes popOut { to { opacity: 0; transform: scale(.98); } }
.pop-title { padding: 6px 8px 4px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pop-sec { padding: 8px 8px 2px; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pop-search { position: relative; padding: 2px 2px 6px; }
.pop-search svg { position: absolute; left: 11px; top: 11px; width: 14px; height: 14px; color: var(--muted); }
.pop-search input { width: 100%; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--input); padding: 0 10px 0 30px; outline: none; font-size: 13px; }
.pop-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; padding: 5px 8px; border: 0; background: none; border-radius: 9px; text-align: left; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pop-item:hover, .pop-item.hl { background: rgba(var(--ink),.06); color: var(--text); }
.pop-item.on { color: var(--text); }
.pop-item > svg { width: 15px; height: 15px; }
.pop-item > span:not(.av) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-item small { color: var(--muted); font-size: 11.5px; }
.pop-item .sw, .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; display: inline-block; }
.pop-item .tick { color: var(--accent-text); display: grid; place-items: center; opacity: 0; }
.pop-item.on .tick { opacity: 1; }
.pop-item .tick svg { width: 14px; height: 14px; }
.pop-item .ring { width: 13px; height: 13px; }
.pop-item .pi-ic { display: grid; place-items: center; flex: none; font-style: normal; }
.pop-item.danger { color: var(--red); }
.pop-pad { padding: 6px 8px; }
.pop-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 12.5px; }
.bellpop { display: flex; flex-direction: column; }
.bp-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px; }
.bp-sec { display: flex; align-items: center; gap: 6px; padding: 8px 8px 4px; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bp-sec svg { width: 12px; height: 12px; }
.bp-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; text-align: left; }
.bp-item:hover { background: rgba(var(--ink),.05); }
.bp-item b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.bp-item small { color: var(--muted); font-size: 11px; }
.bp-item.unread b { color: var(--text); font-weight: 700; }
.bp-item.unread { background: rgba(236,45,248,.06); }
.bp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); margin-top: 4px; flex: none; }
.bp-dot.late { background: var(--red); }

/* =========================================================
   PAINEL DA TAREFA
   ======================================================= */
.tpanel-ov { position: fixed; inset: 0; z-index: 90; background: var(--scrim); animation: fadeIn .25s; }
.tpanel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--elev); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); animation: slideIn .35s var(--ease); }
.tpanel.closing { animation: slideOut .25s var(--ease) forwards; }
.tpanel-ov.closing { animation: fadeOut .25s forwards; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes slideOut { to { transform: translateX(40px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.tp-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px 10px 20px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.crumbs svg { width: 12px; height: 12px; }
.crumbs a { color: var(--text-2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.crumbs a:hover { color: var(--accent-text); }
.tp-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.tp-status { display: flex; align-items: center; gap: 8px; }
.tp-status .st-pill { cursor: pointer; }
.tp-title { width: 100%; margin: 12px 0 8px; border: 0; background: none; outline: none; resize: none; overflow: hidden; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; border-radius: 8px; padding: 4px 6px; margin-left: -6px; }
.tp-title:focus { background: rgba(var(--ink),.04); }
.tp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 8px 0 14px; border-bottom: 1px solid var(--line); }
.tf { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.tf > span { display: flex; align-items: center; gap: 7px; width: 108px; flex: none; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tf > span svg { width: 14px; height: 14px; }
.tf > button { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 30px; padding: 3px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13px; font-weight: 600; color: var(--text); }
.tf > button:hover { background: rgba(var(--ink),.05); }
.tf > button em { font-style: normal; color: var(--muted); font-weight: 500; }
.tf .sw { width: 10px; height: 10px; }
.person { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.tp-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tp-sec:last-of-type { border-bottom: 0; }
.tp-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; }
.tp-desc { min-height: 90px; font-size: 13.5px; line-height: 1.55; }
.desc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.desc-links a { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; background: rgba(90,169,255,.08); color: var(--blue); font-size: 12px; font-weight: 600; }
.desc-links svg { width: 12px; height: 12px; }
.ck-list { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; }
.ck { display: flex; align-items: center; gap: 8px; padding: 2px 4px; border-radius: 8px; }
.ck:hover { background: rgba(var(--ink),.03); }
.ck .chk { width: 18px; height: 18px; border-radius: 6px; --c: var(--green); border-color: var(--line-2); }
.ck .chk.on { border-color: var(--green); }
.ck input { flex: 1; height: 30px; border: 0; background: none; outline: none; font-size: 13.5px; }
.ck.on input { color: var(--muted); text-decoration: line-through; }
.ck .x { opacity: 0; }
.ck:hover .x { opacity: 1; }
.sub-list { display: flex; flex-direction: column; }
.sub { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 9px; cursor: pointer; }
.sub:hover { background: rgba(var(--ink),.04); }
.sub .t-title { flex: 1; font-size: 13.5px; }
.sub [data-f] { border-radius: 6px; padding: 1px 3px; }
.sub [data-f]:hover { background: rgba(var(--ink),.06); }
.sub .st-pill { height: 20px; font-size: 10px; }
.sub-add .tl-add { padding-left: 4px; height: 34px; }
.sub-add .tl-add-in { padding: 4px 0; }
.att-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.att { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(var(--ink),.02); }
.att-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-text); flex: none; }
.att-ic svg { width: 15px; height: 15px; }
.att a { flex: 1; min-width: 0; cursor: pointer; }
.att a b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att a small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att a:hover b { color: var(--accent-text); }
.cm-list { display: flex; flex-direction: column; gap: 14px; }
.cm { display: flex; gap: 10px; }
.cm > div { flex: 1; min-width: 0; }
.cm-h { display: flex; align-items: center; gap: 8px; }
.cm-h b { font-size: 13px; }
.cm-h small { color: var(--muted); font-size: 11.5px; }
.cm-h .x { margin-left: auto; opacity: 0; width: 22px; height: 22px; }
.cm:hover .cm-h .x { opacity: 1; }
.cm p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.cm p a { color: var(--blue); text-decoration: underline; }
.mention { font-style: normal; color: var(--accent-text); font-weight: 700; }
.tp-meta { font-size: 11.5px; padding-top: 12px; }
.cm-in { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--elev-2); }
.cm-in textarea { flex: 1; min-height: 38px; max-height: 140px; resize: none; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--input); outline: none; font-size: 13.5px; }
.cm-in textarea:focus { border-color: rgba(236,45,248,.55); }
.cm-in .btn { height: 38px; width: 38px; }

/* =========================================================
   MODAL / TOAST
   ======================================================= */
.overlay { position: fixed; inset: 0; z-index: 200; background: var(--scrim); display: grid; place-items: center; padding: 20px; animation: fadeIn .25s var(--ease); }
.overlay.closing { animation: fadeOut .2s var(--ease) forwards; }
.modal { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--elev); color: var(--text); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); animation: pop .45s var(--spring); }
.modal.mid { max-width: 720px; }
.modal.wide { max-width: 960px; }
.overlay.closing .modal { animation: popOut .2s var(--ease) forwards; }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 20px 22px 4px; }
.modal-h h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.modal-h .m-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow); color: #fff; }
.modal-h .m-ic svg { width: 18px; height: 18px; }
.modal-b { padding: 16px 22px; overflow: auto; }
.modal-f { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.95); } }
#toasts { position: fixed; z-index: 500; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 14px; background: var(--elev); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; font-size: 13.5px; animation: toastIn .45s var(--spring); max-width: 420px; }
.toast .t-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.toast .t-ic svg { width: 15px; height: 15px; }
.toast.ok .t-ic { background: var(--green-bg); color: var(--green); }
.toast.err .t-ic { background: var(--red-bg); color: var(--red); }
.toast.info .t-ic { background: var(--grad-soft); color: var(--accent-text); }
.toast .btn { color: var(--accent-text); }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.confetti { position: fixed; pointer-events: none; z-index: 600; width: 8px; height: 12px; border-radius: 2px; }

/* =========================================================
   CLIENTES
   ======================================================= */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cl-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.cl-card::after { content: ''; position: absolute; right: -50px; top: -50px; width: 130px; height: 130px; border-radius: 50%; background: var(--c); filter: blur(50px); opacity: .18; transition: opacity .3s; }
.cl-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 20px 40px -24px rgba(0,0,0,.9); }
.cl-card:hover::after { opacity: .35; }
.cl-card.inactive { opacity: .55; }
.cl-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
.cl-av { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.cl-av.lg { width: 58px; height: 58px; border-radius: 18px; font-size: 19px; }
.cl-info { flex: 1; min-width: 0; }
.cl-info b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-info small { color: var(--muted); font-size: 12px; }
.cl-stats { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.cl-stats span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(var(--ink),.05); font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.cl-stats span svg { width: 12px; height: 12px; }
.cl-stats .ok { color: var(--green); background: var(--green-bg); }
.cl-stats .warn { color: var(--amber); background: var(--amber-bg); }
.cl-head { color: var(--text); display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: radial-gradient(100% 140% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%), var(--panel); border: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.cl-hinfo h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.cl-contact { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.cl-contact > * { display: inline-flex; align-items: center; gap: 5px; }
.cl-contact svg { width: 14px; height: 14px; color: var(--muted); }
.cl-contact a:hover { color: var(--accent-text); }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button svg { width: 15px; height: 15px; }
.tabs button.on { color: var(--text); border-bottom-color: #ec2df8; }
.mat { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.mat-side { display: flex; flex-direction: column; gap: 14px; }
.drop-files { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border-radius: 16px; border: 2px dashed rgba(236,45,248,.3); text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 14px; }
.drop-files > svg { width: 24px; height: 24px; color: var(--accent-text); }
.drop-files span { font-size: 12.5px; color: var(--muted); }
.drop-files:hover, .drop-files.over { border-color: var(--pink); background: rgba(236,45,248,.06); }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fcard { position: relative; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ink),.02); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.fcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fthumb { height: 100px; display: grid; place-items: center; background: rgba(0,0,0,.25); color: var(--muted); }
.fthumb svg { width: 26px; height: 26px; }
.fthumb img { width: 100%; height: 100%; object-fit: cover; }
.fmeta { padding: 8px 10px; }
.fmeta b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta small { font-size: 11px; color: var(--muted); }
.from-client { font-style: normal; color: var(--green); font-weight: 700; }
.fcard .x { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); opacity: 0; }
.fcard:hover .x { opacity: 1; }
.ob-list { margin: 12px 0 0; display: grid; gap: 4px 0; font-size: 13px; }
.ob-list dt { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.ob-list dd { margin: 0; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.ob-list a { color: var(--blue); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 700; }
.kpi b { font-size: 22px; letter-spacing: -.02em; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi small a { color: var(--accent-text); text-decoration: underline; }
.kpi.warn b { color: var(--amber); }
.com { align-items: start; }
.qlist { display: flex; flex-direction: column; gap: 6px; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; border: 1px solid var(--line); background: rgba(var(--ink),.02); cursor: pointer; transition: border-color .2s, background .2s; }
.qrow:hover { border-color: var(--line-2); background: rgba(var(--ink),.04); }
.q-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--grad-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.q-ic svg { width: 16px; height: 16px; }
.q-t { flex: 1; min-width: 0; }
.q-t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-t small { display: block; font-size: 11.5px; color: var(--muted); }
.q-t small b { display: inline; font-size: inherit; color: var(--text-2); }
.q-note { font-style: italic; color: var(--text-2) !important; }
.q-amt { font-size: 14px; white-space: nowrap; }
.items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.item { display: grid; grid-template-columns: 1fr 70px 130px 28px; gap: 6px; align-items: center; }
#ff .item { grid-template-columns: 1fr 130px 28px; }
.item .input { height: 36px; font-size: 13px; }
.total { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; font-weight: 700; color: var(--text-2); }
.total b { font-size: 22px; color: var(--text); }

/* =========================================================
   CONFIGURAÇÕES
   ======================================================= */
.settings { max-width: 1050px; }
.set-sec { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.set-sec:last-child { border-bottom: 0; }
.set-sec h3 { margin: 0 0 6px; font-size: 15px; }
.set-sec p { margin: 0; color: var(--muted); font-size: 13px; }
.prof-edit { display: flex; gap: 20px; align-items: flex-start; }
.av-prev { width: 96px; height: 120px; border-radius: 18px; background: radial-gradient(circle at 50% 70%, rgba(162,28,255,.25), transparent 70%), var(--bg-2); border: 1px solid var(--line); flex: none; }
.team { display: flex; flex-direction: column; gap: 6px; }
.tm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: rgba(var(--ink),.02); }
.tm-row > div { flex: 1; min-width: 0; }
.tm-row b { display: block; font-size: 13.5px; }
.tm-row small { color: var(--muted); font-size: 12px; }
.sp-list { display: flex; flex-direction: column; gap: 6px; }
.sp-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: rgba(var(--ink),.02); text-align: left; transition: border-color .2s; }
.sp-row:hover { border-color: var(--line-2); }
.sp-row b { font-size: 13.5px; }
.sp-row > svg { width: 13px; height: 13px; color: var(--muted); }
.sp-st { margin-left: auto; display: flex; gap: 3px; }
.sp-st i { width: 14px; height: 6px; border-radius: 3px; }
.fmt-list { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.fmt-row { display: flex; align-items: center; gap: 8px; }
.sp-edit { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.st-editor { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.2); border: 1px solid var(--line); }
.st-cat-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.st-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink),.03); margin-bottom: 5px; }
.st-row input { flex: 1; height: 28px; border: 0; background: none; outline: none; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
.st-col { border: 0; background: none; padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.st-col:hover { background: rgba(var(--ink),.08); }
.st-col .ring { width: 14px; height: 14px; }
.st-col .ring.done svg { color: #fff; }
.st-move { display: flex; flex-direction: column; }
.st-move button { border: 0; background: none; color: var(--muted); padding: 0; height: 12px; display: grid; place-items: center; }
.st-move button svg { width: 11px; height: 11px; transform: rotate(90deg); }
.st-move button:hover { color: var(--text); }
.st-empty { width: 100%; height: 36px; border-radius: 10px; border: 1px dashed var(--line-2); background: none; color: var(--muted); font-weight: 600; font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* =========================================================
   ESCRITÓRIO
   ======================================================= */
.content.office-page { padding-bottom: 20px; }
.office { display: grid; grid-template-columns: 1fr 320px; gap: 14px; height: calc(100vh - 110px); min-height: 520px; }
body:has(.demo-bar) .office { height: calc(100vh - 145px); }
.of-stage { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg); }
.of-stage canvas { display: block; cursor: pointer; }
.of-zone { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 12px; background: var(--elev); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 800; opacity: 0; pointer-events: none; white-space: nowrap; }
.of-zone.show { animation: zoneIn 2.6s var(--ease); }
@keyframes zoneIn { 0% { opacity: 0; transform: translate(-50%, -8px); } 12%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.of-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.of-zoom .btn { background: var(--elev); }
.of-help { position: absolute; left: 14px; bottom: 14px; right: 60px; max-width: 560px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--elev); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }
.of-help > svg { width: 16px; height: 16px; color: var(--accent-text); }
.of-videos { position: absolute; top: 12px; left: 12px; right: 12px; display: none; gap: 8px; justify-content: center; flex-wrap: wrap; pointer-events: none; }
.of-videos.show { display: flex; }
.vtile { position: relative; width: 150px; height: 112px; border-radius: 14px; overflow: hidden; background: var(--panel-solid); border: 2px solid rgba(236,45,248,.35); box-shadow: 0 10px 30px -10px rgba(0,0,0,.9); pointer-events: auto; }
.vtile video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.vtile[data-id]:not([data-id="me"]) video { transform: none; }
.vtile .v-av { position: absolute; inset: 0; display: none; place-items: center; background: radial-gradient(circle, rgba(162,28,255,.25), var(--panel-solid) 70%); }
.vtile.nocam .v-av { display: grid; }
.vtile.nocam video { opacity: 0; }
.v-name { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 7px; background: rgba(0,0,0,.65); font-size: 11px; font-weight: 700; }
.v-name svg { width: 11px; height: 11px; color: var(--red); }
.of-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.of-card { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); padding: 12px; }
.ofc-h { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.ofc-h > svg { width: 16px; height: 16px; color: var(--accent-text); }
.ofc-h b { font-size: 13.5px; }
.ofc-h div b { display: block; }
.ofc-h small { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.ofc-h div small { margin: 0; }
.of-status { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.of-status button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(var(--ink),.03); font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.of-status button i { width: 8px; height: 8px; border-radius: 50%; }
.of-status button.on { border-color: rgba(236,45,248,.45); background: var(--grad-soft); color: var(--text); }
.of-task { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input); font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: left; margin-bottom: 8px; }
.of-task span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-task svg { width: 14px; height: 14px; }
.of-media { display: flex; gap: 6px; }
.of-media .btn { flex: 1; }
.of-media .btn.sm { flex: none; }
.of-media .btn.danger:last-child { flex: 1; }
.of-people { flex: none; max-height: 34%; overflow-y: auto; }
.of-plist { display: flex; flex-direction: column; gap: 2px; }
.of-p { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px; border: 0; border-radius: 10px; background: none; text-align: left; }
button.of-p:hover { background: rgba(var(--ink),.05); }
.of-p.off { opacity: .45; }
.of-p > div { flex: 1; min-width: 0; }
.of-p b { display: block; font-size: 12.5px; }
.of-p small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-p > svg { width: 14px; height: 14px; color: var(--green); }
.sdot { position: absolute; left: 27px; top: 26px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--panel-solid); }
.near { font-style: normal; font-size: 10px; font-weight: 800; color: var(--green); background: var(--green-bg); padding: 1px 5px; border-radius: 5px; margin-left: 4px; }
.of-chat { flex: 1; min-height: 160px; display: flex; flex-direction: column; }
.of-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.of-msg { font-size: 13px; line-height: 1.4; }
.of-msg b { margin-right: 6px; font-size: 12px; }
.of-msg span { color: var(--text-2); word-break: break-word; }
.of-msg.mine span { color: var(--text); }
.of-in { display: flex; gap: 6px; margin-top: 8px; }
.of-in input { flex: 1; min-width: 0; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input); padding: 0 10px; outline: none; font-size: 13px; }
.of-in input:focus { border-color: rgba(236,45,248,.55); }

/* =========================================================
   PÁGINA DO CLIENTE
   ======================================================= */
.portal-body #portal { position: relative; z-index: 1; }
.portal { max-width: 720px; margin: 0 auto; padding: 24px 18px 40px; display: flex; flex-direction: column; gap: 16px; min-height: 100vh; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.pt-head .brand { padding: 0; }
.pt-client { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 10px; background: rgba(var(--ink),.05); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.pt-client i { width: 9px; height: 9px; border-radius: 3px; }
.pt-main { display: flex; flex-direction: column; gap: 16px; }
.pt-card { padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); animation: rvIn .6s var(--ease) both; }
.pt-card.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pt-card h1 { margin: 8px 0 6px; font-size: 26px; letter-spacing: -.03em; line-height: 1.15; }
.pt-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 17px; }
.pt-card h2 svg { width: 18px; height: 18px; color: var(--accent-text); }
.pt-card p { margin: 0 0 14px; }
.pt-card .stack { margin-top: 16px; }
.pt-eyebrow { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--grad-soft); border: 1px solid rgba(236,45,248,.3); color: var(--accent-text); font-size: 12px; font-weight: 800; }
.pt-eyebrow svg { width: 13px; height: 13px; }
.pt-card .e-ic, .pt-card .s-ic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); }
.pt-card .s-ic { background: var(--grad); box-shadow: 0 20px 60px -10px rgba(236,45,248,.8); animation: pop .6s var(--spring); }
.pt-card .e-ic svg, .pt-card .s-ic svg { width: 28px; height: 28px; color: #fff; }
.pt-ups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.pt-up { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border-radius: 16px; border: 2px dashed rgba(236,45,248,.3); text-align: center; cursor: pointer; transition: all .2s; }
.pt-up:hover { border-color: var(--pink); background: rgba(236,45,248,.06); }
.pt-up svg { width: 24px; height: 24px; color: var(--accent-text); }
.pt-up small { font-size: 11.5px; color: var(--muted); }
.pt-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pt-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(var(--ink),.03); border: 1px solid var(--line); font-size: 13px; }
.pt-file svg { width: 15px; height: 15px; color: var(--green); }
.pt-file span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-file small { color: var(--muted); }
.pt-file.loading svg { color: var(--muted); animation: pulse 1s infinite; }
.pt-send { width: 100%; }
.pt-items { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; margin: 14px 0; }
.pt-it { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-it span { display: flex; align-items: center; gap: 8px; }
.pt-it span svg { width: 14px; height: 14px; color: var(--green); }
.pt-it.total { border-bottom: 0; background: var(--grad-soft); font-weight: 800; }
.pt-it.total b { font-size: 20px; }
.pt-notes { padding: 12px 14px; border-radius: 12px; background: rgba(var(--ink),.03); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.pt-notes p { margin: 4px 0 0; white-space: pre-wrap; }
.pt-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.chip-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink),.03); font-weight: 700; font-size: 13px; color: var(--text-2); transition: all .2s; }
.chip-btn small { font-size: 11px; color: var(--muted); font-weight: 600; }
.chip-btn.on { background: var(--grad-soft); border-color: rgba(236,45,248,.5); color: var(--text); }
.pt-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pt-foot { margin-top: auto; text-align: center; font-size: 11.5px; color: var(--muted); padding-top: 20px; }

/* =========================================================
   Responsivo
   ======================================================= */
@media (max-width: 1250px) {
  .tr .prio em { display: none; }
  .cal-wrap { grid-template-columns: 1fr; }
  .cal-side { position: static; }
  .mat { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .office { grid-template-columns: 1fr; height: auto; }
  .of-stage { height: 62vh; }
  .of-people { max-height: none; }
  .sp-edit { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-105%); transition: transform .35s var(--ease); }
  body.side-open .sidebar { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.8); }
  body.side-open .side-ov { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.5); }
  .mobile-only { display: inline-flex !important; }
  .topbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .tb-views { order: 5; width: 100%; overflow-x: auto; }
  .vtabs button span { display: none; }
  .vtabs button.on span { display: inline; }
  .content { padding: 4px 14px 80px; }
  .demo-bar { padding: 7px 14px; }
  .th { display: none; }
  .tl .tr { display: flex; } .tl .tr .td[data-f] { display: none; } .tl .tr .td[data-f=due] { display: flex; } .tl .c-name { flex: 1; min-width: 0; }
  .bill, .fb { grid-template-columns: 1fr !important; } .ch-h { display: none !important; } .ch-r { grid-template-columns: 1fr 1fr !important; }
  .tree .tn-act { opacity: 1; }
  .tr .metas { display: none; }
  .search.sm { width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .set-sec { grid-template-columns: 1fr; gap: 12px; }
  .prof-edit { flex-direction: column; }
  .cal-day { min-height: 74px; padding: 3px; }
  .cchip span { display: none; }
  .cchip { padding: 3px; height: 8px; }
  .mrow .metas, .mrow [data-f=status] { display: none; }
  .mine-hero { color: #fff; flex-direction: column; align-items: flex-start; }
  .tp-fields { grid-template-columns: 1fr; }
  .modal { border-radius: 22px 22px 0 0; max-height: 94vh; align-self: end; }
  .overlay { padding: 0; place-items: end center; }
  #toasts { left: 14px; right: 14px; bottom: 14px; align-items: stretch; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .item { grid-template-columns: 1fr 56px 100px 28px; }
  .pt-ups, .pt-dates { grid-template-columns: 1fr 1fr; }
  .pt-card { padding: 18px; }
  .pt-card h1 { font-size: 22px; }
  .quick-in kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   v2 — árvore, seleção em massa, linha do tempo, carga, cobrança, formulários, docs, busca
   ======================================================= */
.side-scroll { flex: 1; overflow-y: auto; margin: 0 -12px; padding: 0 12px; }
.brand .btn { margin-left: auto; }
.tree { display: flex; flex-direction: column; }
.tn { position: relative; display: flex; align-items: center; gap: 2px; padding-left: calc(var(--d, 0) * 14px); border-radius: 9px; }
.tn:hover { background: rgba(var(--ink),.04); }
.tn.active { background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(236,45,248,.18); }
.tn > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 6px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.tn.sp > a { font-size: 13.5px; color: var(--text); }
.tn > a > svg { width: 15px; height: 15px; opacity: .75; flex: none; }
.tn > a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn.active > a { color: var(--text); }
.tn-car { width: 18px; height: 22px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; padding: 0; transition: transform .2s; flex: none; }
.tn-car svg { width: 12px; height: 12px; }
.open > .tn > .tn-car { transform: rotate(90deg); }
.tn-act { width: 24px; height: 24px; border: 0; border-radius: 7px; background: none; color: var(--muted); display: grid; place-items: center; opacity: 0; padding: 0; flex: none; }
.tn-act svg { width: 14px; height: 14px; }
.tn:hover .tn-act { opacity: 1; }
.tn-act:hover { background: rgba(var(--ink),.08); color: var(--text); }
.tn-kids { display: none; }
.open > .tn-kids { display: block; }
.empty-n { font-size: 12px; color: var(--muted); padding: 4px 8px 4px calc(var(--d) * 14px + 8px); }
.tn .lk svg { width: 11px; height: 11px; color: var(--muted); }

.sel-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: none; padding: 0; display: grid; place-items: center; flex: none; opacity: 0; transition: opacity .15s; color: #fff; }
.sel-box svg { width: 11px; height: 11px; opacity: 0; stroke-width: 3.5; }
.tr:hover .sel-box, .tr.sel .sel-box, body.has-bulk .sel-box { opacity: 1; }
.tr.sel { background: rgba(162,28,255,.08); }
.tr.sel .sel-box { background: var(--mid); border-color: var(--mid); }
.tr.sel .sel-box svg { opacity: 1; }
.bulk { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 16px; border-radius: 16px; background: var(--elev); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .35s var(--spring); flex-wrap: wrap; max-width: calc(100vw - 30px); }
.bulk b { margin-right: 6px; font-size: 13px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.fv { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lnk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--blue); white-space: nowrap; overflow: hidden; }
.lnk svg { width: 12px; height: 12px; }
.cbx { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: inline-grid; place-items: center; }
.cbx.on { background: var(--green); border-color: var(--green); color: #fff; }
.cbx svg { width: 11px; height: 11px; stroke-width: 3.5; }
.num { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; }
.vtabs.sm button { height: 26px; padding: 0 9px; font-size: 12px; }
.radio { display: flex; align-items: center; gap: 9px; padding: 8px 0; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text-2); }
.radio input { display: none; }
.radio i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
.radio input:checked + i { border-color: var(--mid); }
.radio input:checked + i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mid); }
.st-editor.ro .st-row { opacity: .75; }
.kc-cover { margin: -11px -12px 9px; height: 120px; border-radius: 12px 12px 0 0; overflow: hidden; background: rgba(var(--ink),.04); }
.kc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.att-grid:empty { display: none; }
.att-img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(var(--ink),.03); cursor: pointer; color: var(--muted); }
.att-img img { width: 100%; height: 100%; object-fit: cover; }
.att-img .x { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; }
.att-img:hover .x { opacity: 1; }
.tabs.sm { margin-bottom: 12px; }
.tabs.sm button { height: 34px; font-size: 12.5px; }
.act { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); padding-left: 10px; }
.act i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); margin-top: 5px; flex: none; }
.act b { color: var(--text-2); }

/* linha do tempo */
.tline { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.tl-scroll { overflow-x: auto; }
.tl-grid { min-width: calc(260px + var(--n) * var(--dw)); }
.tl-hrow, .tl-row { display: grid; grid-template-columns: 260px calc(var(--n) * var(--dw)); }
.tl-hrow { grid-template-columns: 260px repeat(var(--n), var(--dw)); position: sticky; top: 0; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 1; }
.tl-day { text-align: center; font-size: 12px; font-weight: 800; color: var(--text-2); padding: 6px 0; border-left: 1px solid rgba(var(--ink),.04); }
.tl-day small { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; }
.tl-day.we { background: rgba(var(--ink),.025); }
.tl-day.today { color: var(--pink); }
.tl-name { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; border-right: 1px solid var(--line); min-width: 0; cursor: pointer; }
.tl-name i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tl-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row { border-bottom: 1px solid rgba(var(--ink),.04); }
.tl-row:hover { background: rgba(var(--ink),.02); }
.tl-track { position: relative; height: 38px; background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--dw) - 1px), rgba(var(--ink),.04) calc(var(--dw) - 1px) var(--dw)); }
.tl-bar { position: absolute; top: 7px; height: 24px; border-radius: 8px; background: var(--c); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; padding: 0 8px; cursor: grab; overflow: hidden; touch-action: none; box-shadow: 0 4px 12px -6px var(--c); }
.tl-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tl-bar.is-done { opacity: .5; }
.tl-h { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.tline .cal-nav b { min-width: 170px; }

/* painel / carga */
.kpi.bad b { color: var(--red); }
.wl { overflow-x: auto; }
.wl-r { display: grid; grid-template-columns: 170px repeat(var(--n), minmax(34px, 1fr)) 54px; gap: 3px; align-items: center; margin-bottom: 3px; }
.wl-r.head span { text-align: center; font-size: 12px; font-weight: 800; color: var(--text-2); }
.wl-r.head small { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; }
.wl-r.head .today { color: var(--pink); }
.wl-r.head .we { opacity: .6; }
.wl-p { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.wl-c { height: 34px; border: 0; border-radius: 8px; font-weight: 800; font-size: 12.5px; color: var(--text); }
.wl-c.lv0 { background: rgba(var(--ink),.03); cursor: default; }
.wl-c.lv1 { background: rgba(46,230,166,.2); }
.wl-c.lv2 { background: rgba(255,181,71,.32); }
.wl-c.lv3 { background: rgba(255,77,126,.42); }
.wl-t { text-align: center; font-weight: 800; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-r { display: grid; grid-template-columns: 120px 1fr 100px; gap: 10px; align-items: center; font-size: 13px; }
.bar-r span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bar-r b { text-align: right; }
.bar { height: 10px; border-radius: 6px; background: rgba(var(--ink),.06); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; }

/* cobrança */
.bill { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.bill-main { min-width: 0; }
.bill-side { display: flex; flex-direction: column; gap: 14px; }
.ch-tbl { display: flex; flex-direction: column; font-size: 13px; overflow-x: auto; }
.ch-h, .ch-r { display: grid; grid-template-columns: 28px 128px 110px 120px minmax(160px, 1fr) 96px 104px 150px 28px; gap: 6px; align-items: center; min-width: 980px; }
.ch-h { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.ch-r { padding: 5px 6px; border-bottom: 1px solid rgba(var(--ink),.05); }
.ch-r:hover { background: rgba(var(--ink),.02); }
.ch-r.new { background: rgba(162,28,255,.05); border-radius: 10px; margin-top: 6px; border: 1px dashed var(--line-2); }
.ch-r.new > span:first-child svg { width: 14px; height: 14px; color: var(--accent-text); }
.r { text-align: right; }
.cin { width: 100%; height: 32px; border: 1px solid transparent; border-radius: 8px; background: none; padding: 0 8px; font-size: 13px; color: var(--text); outline: none; min-width: 0; }
.cin:hover:not(:disabled) { border-color: var(--line); }
.cin:focus { border-color: rgba(236,45,248,.5); background: var(--input); }
.cin:disabled { color: var(--text-2); }
.btn-like { text-align: left; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.ch-imgs { display: flex; gap: 4px; align-items: center; }
.ch-img { width: 32px; height: 32px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; }
.ch-img img { width: 100%; height: 100%; object-fit: cover; }
.ch-img svg, .ch-add svg { width: 14px; height: 14px; }
.ch-add { width: 32px; height: 32px; border-radius: 7px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; }
.ch-add:hover { border-color: var(--pink); color: var(--pink); }
.ch-empty { padding: 20px; text-align: center; color: var(--muted); }
.ch-total { text-align: right; padding: 12px 6px 0; color: var(--text-2); }
.ch-total b { font-size: 18px; color: var(--text); margin-left: 6px; }
.price-tbl { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pr-row { display: flex; align-items: center; gap: 8px; }
.pr-row .input { width: 150px; text-align: right; }
.ptbl .pr-row .input { width: 130px; }
.inst { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.inst-r { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink),.02); font-size: 13px; }
.inst-r select { width: auto; }
.inst-r em { font-style: normal; font-weight: 800; }
.presets { gap: 6px; }
.neg { color: var(--red); }
.cl-sel { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; }
.cl-it { display: grid; grid-template-columns: 22px 64px 1fr auto 100px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
div.cl-it { grid-template-columns: 64px 1fr auto 100px; cursor: default; }
.cl-it small { color: var(--muted); }
.cl-it em { font-style: normal; font-weight: 800; text-align: right; }
.acc-list { display: flex; flex-direction: column; gap: 6px; }
.acc-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink),.02); transition: border-color .2s; }
.acc-row:hover { border-color: var(--line-2); }
.acc-row > svg { width: 14px; height: 14px; color: var(--muted); }

/* campos personalizados / automações */
.fld-list { display: flex; flex-direction: column; gap: 6px; }
.fld-row, .auto-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink),.02); }
.fld-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-text); }
.fld-ic svg { width: 14px; height: 14px; }
.auto-row > div { flex: 1; min-width: 0; }
.auto-row b { display: block; font-size: 13px; }
.auto-row small { color: var(--muted); font-size: 12px; }
.auto-row.off { opacity: .55; }
.auto-list { display: flex; flex-direction: column; gap: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.opt { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 6px; border-radius: 9px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.opt .sw-btn { width: 16px; height: 16px; border-radius: 5px; }

/* formulários */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.form-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.form-card:hover { border-color: var(--line-2); }
.form-card.off { opacity: .6; }
.fc-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.fc-ic svg { width: 18px; height: 18px; }
.fc-t b { display: block; font-size: 15px; }
.fc-t small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; margin-top: 2px; }
.fc-t small svg { width: 12px; height: 12px; }
.fb { display: grid; grid-template-columns: 320px 1fr; gap: 22px; }
.fb-fields { display: flex; flex-direction: column; gap: 8px; }
.fb-h { display: flex; justify-content: space-between; align-items: center; }
.fb-q { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink),.02); }
.fb-qb { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.fb-qb .row select { width: auto; }
.resp { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.resp-h { display: flex; align-items: center; gap: 10px; }
.resp-h .btn { margin-left: auto; }

/* docs */
.doc { max-width: 880px; }
.doc-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.doc-bar .crumbs svg { width: 13px; height: 13px; }
.doc-title { width: 100%; border: 0; background: none; outline: none; font-size: 32px; font-weight: 800; letter-spacing: -.03em; padding: 8px 0; color: var(--text); }
.doc-tools { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.doc-tools button { min-width: 32px; height: 30px; border-radius: 8px; border: 0; background: none; font-weight: 800; color: var(--text-2); }
.doc-tools button:hover { background: rgba(var(--ink),.07); color: var(--text); }
.doc-tools small { margin-left: 8px; }
.doc-body { min-height: 60vh; font-size: 15px; line-height: 1.7; font-family: var(--font); }
.doc-view { font-size: 15.5px; line-height: 1.75; color: var(--text); }
.doc-view h2 { font-size: 24px; margin: 22px 0 8px; } .doc-view h3 { font-size: 19px; margin: 18px 0 6px; } .doc-view h4 { font-size: 16px; }
.doc-view a { color: var(--blue); text-decoration: underline; }
.doc-view code { font-family: ui-monospace, monospace; font-size: 13px; padding: 2px 6px; border-radius: 6px; background: rgba(var(--ink),.07); }
.doc-view hr { border: 0; border-top: 1px solid var(--line-2); margin: 20px 0; }
.md-ck { display: inline-block; width: 15px; height: 15px; border-radius: 4px; border: 2px solid var(--line-2); vertical-align: -2px; margin-right: 8px; }
.md-ck.on { background: var(--green); border-color: var(--green); }

/* busca rápida */
.palette { place-items: start center; padding-top: 12vh; }
.pal { width: min(640px, 100%); border-radius: 18px; background: var(--elev); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; animation: pop .3s var(--spring); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 18px; height: 18px; color: var(--muted); }
.pal-in input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--text-2); }
.pal-it svg { width: 16px; height: 16px; }
.pal-it span { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-it span small { margin-left: 8px; color: var(--muted); font-weight: 500; }
.pal-it em { font-style: normal; font-size: 11px; color: var(--muted); }
.pal-it.on, .pal-it:hover { background: rgba(var(--ink),.06); color: var(--text); }
/* portal v2 */
.pt-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; width: 100%; }
.pt-plan > div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink),.02); display: flex; flex-direction: column; gap: 2px; text-align: left; }
.pt-plan span { font-size: 12px; color: var(--muted); font-weight: 700; }
.pt-plan b { font-size: 18px; }
.pt-plan small { font-size: 12px; color: var(--text-2); }
.pt-askd { margin-bottom: 14px; }
.pt-askd > b { display: block; margin-bottom: 8px; }
.pt-ch { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; margin: 14px 0; }
.pt-chr { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pt-chr .n { color: var(--muted); font-weight: 700; padding-top: 2px; }
.pt-chr .d b { display: block; }
.pt-chr .d small { color: var(--muted); font-size: 12px; }
.pt-chr .v { white-space: nowrap; }
.pt-imgs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pt-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); cursor: zoom-in; }
.pt-img img { width: 100%; height: 100%; object-fit: cover; }
.pt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-opt { cursor: pointer; }
.pt-opt input { display: none; }
.pt-opt span { display: inline-flex; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line-2); font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.pt-opt input:checked + span { background: var(--grad-soft); border-color: rgba(236,45,248,.5); color: var(--text); }
.req { color: var(--pink); font-style: normal; }
.portal .field .pt-up { flex-direction: row; justify-content: center; gap: 10px; padding: 14px; }
.content.fin-page { padding: 0 0 0 0; display: flex; }
.fin-frame { flex: 1; width: 100%; height: calc(100vh - 70px); border: 0; display: block; background: var(--bg); }
body:has(.demo-bar) .fin-frame { height: calc(100vh - 104px); }

/* =========================================================
   v3 — janela da tarefa, início, configurações em abas
   ======================================================= */
.tmodal-ov { position: fixed; inset: 0; z-index: 90; background: var(--scrim); display: grid; place-items: center; padding: 3vh 3vw; animation: fadeIn .2s; }
.tmodal-ov.closing { animation: fadeOut .2s forwards; }
.tmodal-ov.minimized { display: none; }
.tmodal { width: min(1280px, 100%); height: min(860px, 94vh); display: flex; flex-direction: column; background: var(--elev); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; animation: pop .35s var(--spring); }
.tmodal-ov.full { padding: 0; }
.tmodal-ov.full .tmodal { width: 100%; height: 100%; border-radius: 0; border: 0; }
.tmodal .tp-head { padding: 10px 14px 10px 20px; }
.tp-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.tp-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.tmodal .tp-body { overflow-y: auto; padding: 22px 34px 30px; }
.tmodal .tp-title { font-size: 26px; }
.tmodal .tp-fields { grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.tp-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--elev-2); }
.tp-side-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tp-side-h b { font-size: 14px; }
.tp-feed { flex: 1; overflow-y: auto; padding: 14px 16px; }
.tp-side .cm-in { border-top: 1px solid var(--line); background: transparent; }
.tmin { position: fixed; z-index: 85; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 4px; border-radius: 14px; background: var(--elev); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .3s var(--spring); max-width: 340px; }
.tmin-open { display: flex; align-items: center; gap: 8px; border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--text); padding: 6px 8px; min-width: 0; }
.tmin-open i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tmin-open { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.has-bulk .tmin { bottom: 80px; }

.home { display: flex; flex-direction: column; gap: 16px; }
.home-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, rgba(236,45,248,.32), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(90,12,255,.5), transparent 60%), #1b0f33; border: 1px solid rgba(236,45,248,.2); }
.home-hero span { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.7); }
.home-hero h2 { margin: 2px 0 4px; font-size: 28px; letter-spacing: -.03em; }
.home-hero p { margin: 0; color: rgba(255,255,255,.8); }
.hero-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-kpis a { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.hero-kpis b { font-size: 24px; }
.hero-kpis span { font-size: 11px; text-transform: none; color: rgba(255,255,255,.75); font-weight: 600; }
.hero-kpis a.bad { background: rgba(255,77,126,.25); border-color: rgba(255,77,126,.5); }
.home-sec-h { display: flex; align-items: baseline; gap: 10px; }
.home-sec-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.home-sec-h h3 svg { width: 16px; height: 16px; color: var(--accent-text); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.tc-h { display: flex; align-items: center; gap: 10px; }
.tc-h b { display: block; font-size: 14px; }
.tc-h small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.tc-h small i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tc-h small i.off { background: var(--line-2); }
.tc-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tc-n span { display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: 10px; background: rgba(var(--ink),.04); font-size: 11px; color: var(--muted); font-weight: 600; }
.tc-n b { font-size: 18px; color: var(--text); }
.tc-n .bad b { color: var(--red); }
.tc-list { display: flex; flex-direction: column; gap: 2px; min-height: 30px; }
.tc-list button { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 12.5px; color: var(--text-2); }
.tc-list button:hover { background: rgba(var(--ink),.05); color: var(--text); }
.tc-list i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tc-list span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tc-more { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent-text); cursor: pointer; }
.tc-more svg { width: 12px; height: 12px; }
.hlist { display: flex; flex-direction: column; }
.hrow { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.hrow:hover { background: rgba(var(--ink),.04); }
.hrow .chk { width: 20px; height: 20px; border-radius: 6px; }
.feed { display: flex; flex-direction: column; gap: 2px; }
.feed-r { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border: 0; border-radius: 10px; background: none; text-align: left; width: 100%; }
button.feed-r:hover { background: rgba(var(--ink),.04); }
.feed-r > div > span { display: block; font-size: 13px; color: var(--text-2); }
.feed-r > div > span b { color: var(--text); }
.feed-r small { font-size: 11.5px; color: var(--muted); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-kpis div { padding: 12px; border-radius: 12px; background: rgba(var(--ink),.03); border: 1px solid var(--line); }
.mini-kpis span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.mini-kpis b { font-size: 20px; }
.home-lists { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.home-lists a { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 5px 4px; border-radius: 8px; }
.home-lists a:hover { background: rgba(var(--ink),.04); color: var(--text); }
.home-lists svg { width: 14px; height: 14px; }

.settings.tabbed { max-width: 1180px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.set-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.set-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.set-nav button svg { width: 16px; height: 16px; opacity: .8; }
.set-nav button:hover { background: rgba(var(--ink),.05); color: var(--text); }
.set-nav button.on { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(236,45,248,.2); }
.set-body .set-sec:first-child { padding-top: 4px; }
@media (max-width: 980px) {
  .tp-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .tp-side { border-left: 0; border-top: 1px solid var(--line); min-height: 420px; }
  .tmodal .tp-body { overflow: visible; padding: 18px; }
  .tmodal-ov { padding: 0; } .tmodal { width: 100%; height: 100%; border-radius: 0; }
  .settings.tabbed { grid-template-columns: 1fr; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; }
  .set-nav button { white-space: nowrap; }
  .tmodal .tp-fields { grid-template-columns: 1fr; }
}

/* ===== v3.1 ===== */
.quick-go { height: 30px; flex: none; }
.tl-newst { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 20px 6px; padding: 6px 10px; border: 0; background: none; border-radius: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tl-newst:hover { color: var(--text); background: rgba(var(--ink),.05); }
.tl-newst svg { width: 13px; height: 13px; }
.nt { display: grid; gap: 12px; }
.nt-title { width: 100%; border: 0; outline: none; background: none; font-size: 22px; font-weight: 800; color: var(--text); padding: 4px 0; }
.nt-title::placeholder { color: var(--muted); }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-chips .fchip .av-stack { margin-right: 2px; }
.nt-more { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.modal-f .sp { flex: 1; }
.modal-f .nt-more + .sp { flex: 1; }

/* ===== Início (v3.1) ===== */
.h2 { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.h2-hero small { font-size: 13px; font-weight: 600; color: var(--muted); }
.h2-hero h1 { margin: 4px 0 0; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.035em; line-height: 1.1; }
.h2-quote { margin: 10px 0 0; max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--text-2); font-style: italic; padding-left: 14px; border-left: 3px solid var(--accent, #ec2df8); }
.h2-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.hw-d { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); transition: transform .15s, border-color .15s; }
.hw-d:hover { transform: translateY(-2px); border-color: var(--line-2); }
.hw-d small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hw-d b { font-size: 20px; color: var(--text); }
.hw-d span { display: flex; gap: 3px; height: 6px; }
.hw-d span i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); }
.hw-d.on { background: linear-gradient(160deg, #8b2bff, #ec2df8); border-color: transparent; }
.hw-d.on small, .hw-d.on b { color: #fff; }
.hw-d.on span i { background: #fff; }
.h2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .h2-cols { grid-template-columns: 1fr; } }
.hf-h { display: flex; align-items: baseline; gap: 10px; }
.hf-h h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.hf-h.sm { margin-top: 26px; } .hf-h.sm h2 { font-size: 15px; color: var(--text-2); }
.hf-c { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hf-sum { margin: 4px 0 10px; color: var(--text-2); font-size: 14px; }
.hf-bar { height: 4px; border-radius: 4px; background: rgba(var(--ink),.07); overflow: hidden; margin-bottom: 8px; }
.hf-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #22c55e, #2ee6a6); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.hf-list { display: flex; flex-direction: column; }
.hf-r { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; transition: background .12s; }
.hf-r:hover { background: rgba(var(--ink),.035); }
.hf-chk { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--c); background: none; display: grid; place-items: center; color: transparent; transition: all .15s; }
.hf-chk svg { width: 12px; height: 12px; }
.hf-chk:hover { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.hf-r.done .hf-chk { background: #22c55e; border-color: #22c55e; color: #fff; }
.hf-r.done .hf-t b { text-decoration: line-through; color: var(--muted); }
.hf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hf-t b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-t small { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.hf-t small i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
em.late { color: var(--red, #ef4444); font-style: normal; font-weight: 700; }
.hf-st { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-list.soft .hf-r { padding: 8px 6px; } .hf-list.soft .hf-t b { font-size: 13.5px; font-weight: 500; }
.hf-add { display: flex; align-items: center; gap: 12px; padding: 10px 8px; color: var(--muted); }
.hf-add svg { width: 18px; height: 18px; flex: none; margin-left: 2px; }
.hf-add input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; color: var(--text); }
.h2-side { display: flex; flex-direction: column; gap: 14px; }
.hs { padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.hs h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hs h3 .cnt { background: rgba(239,68,68,.15); color: #ef4444; padding: 1px 7px; border-radius: 99px; font-size: 11px; }
.hp { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 6px; border: 0; background: none; border-radius: 12px; text-align: left; color: var(--text); }
button.hp:hover { background: rgba(var(--ink),.05); }
.hp-av { position: relative; flex: none; }
.hp-av i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--panel); }
.hp-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hp-b b { font-size: 13.5px; }
.hp-b small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-n { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hp-n em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.hp-n em.ok { color: var(--muted); font-weight: 600; }
.hl { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 8px 6px; border: 0; background: none; border-radius: 10px; text-align: left; color: var(--text); }
.hl:hover { background: rgba(var(--ink),.05); }
.hl > span { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.hs-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.hs-more svg { width: 13px; height: 13px; }
.hs-empty { margin: 0; color: var(--muted); font-size: 13px; }
.hs-com { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.hs-com a { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 12px; color: var(--text); }
.hs-com a:hover { background: rgba(var(--ink),.05); }
.hs-com span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hs-com span svg { width: 13px; height: 13px; }
.hs-com b { font-size: 18px; }
.hs-wl summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); list-style: none; }
.hs-wl summary svg { width: 15px; height: 15px; }
.hs-wl[open] { grid-column: 1 / -1; }
.hs-wl .wl { margin-top: 12px; overflow-x: auto; }

/* compartilhar tarefa */
.share-url { display: flex; gap: 8px; }
.share-url .input { flex: 1; font-size: 12.5px; }
.share-b .row .sp { flex: 1; }
.st-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; }
.st-pill.big[disabled] { cursor: default; }
.st-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.st-meta div { display: flex; flex-direction: column; gap: 4px; }
.st-meta span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.st-meta span svg { width: 14px; height: 14px; }
.st-meta b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.st-desc { white-space: pre-wrap; line-height: 1.6; color: var(--text-2); }
.st-desc a { color: var(--accent-text); text-decoration: underline; }
.st-ck { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-ck.on { color: var(--muted); text-decoration: line-through; }
.st-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.st-img { aspect-ratio: 1; border-radius: 12px; background: rgba(var(--ink),.05); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.st-img img { width: 100%; height: 100%; object-fit: cover; }
a.pt-file { cursor: pointer; color: var(--text); text-decoration: none; }

/* etiquetas e dependências */
.lb { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); flex: none; }
.tf .lb:first-child { margin-left: 0; }
.kc-lb { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .kc-lb .lb { margin: 0; }
.mi.blocked { color: #f59e0b; }
.dep { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; background: rgba(245,158,11,.12); color: #f59e0b; font-size: 12px; font-weight: 600; margin: 2px 4px 2px 0; }
.dep.ok { background: rgba(34,197,94,.12); color: #22c55e; }
.dep svg { width: 12px; height: 12px; }
.c-name .t-title { flex: 0 1 auto; min-width: 80px; }
.c-name .lb { flex: 0 3 auto; min-width: 22px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 16px; }

/* ===== v3.2: barra do topo ===== */
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-info { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(var(--ink),.03); color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tb-info:hover { border-color: var(--line-2); color: var(--text); }
.tb-info .ti-wx b { color: var(--text); font-weight: 800; }
.ti-loc { display: inline-flex; align-items: center; gap: 4px; } .ti-loc svg { width: 13px; height: 13px; color: var(--accent-text); }
.ti-sep { width: 1px; height: 14px; background: var(--line-2); }
.ti-date { text-transform: capitalize; }
.ti-time { color: var(--text); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tb-tools svg { width: 15px; height: 15px; }
@media (max-width: 1280px) { .ti-loc, .ti-sep { display: none; } }
@media (max-width: 980px) { .ti-date { display: none; } .tb-tools span { display: none; } }
@media (max-width: 640px) { .tb-info { display: none; } }
.wxp { padding: 6px; }
.wxp-load { padding: 14px; color: var(--muted); font-size: 13px; }
.wxp-h { display: flex; align-items: center; gap: 12px; padding: 6px 8px; }
.wxp-ic { font-size: 40px; line-height: 1; }
.wxp-h b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.wxp-h span { color: var(--text-2); font-size: 13px; }
.wxp-city { display: flex; align-items: center; gap: 5px; padding: 2px 8px 8px; font-weight: 700; font-size: 13px; } .wxp-city svg { width: 14px; height: 14px; color: var(--accent-text); }
.wxp-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 8px 10px; font-size: 12px; color: var(--muted); } .wxp-row b { color: var(--text); }
.wxp-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 4px 10px; }
.wxp-days div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: rgba(var(--ink),.04); font-size: 12px; }
.wxp-days span { font-size: 20px; } .wxp-days em { font-style: normal; color: var(--muted); font-weight: 500; } .wxp-days small { color: var(--muted); text-transform: capitalize; }
.wxp-actions { padding: 0 6px 8px; }
.wxp-search { padding: 6px; border-top: 1px solid var(--line); } .wxp-search .input { width: 100%; }
.wxp-res .pop-item small { color: var(--muted); font-weight: 500; }

/* menu ferramentas */
.tools-m { padding: 4px; }
.tm-it { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; background: none; border-radius: 14px; text-align: left; color: var(--text); }
.tm-it:hover { background: rgba(var(--ink),.06); }
.tm-it b { display: block; font-size: 14px; } .tm-it small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tm-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.tm-ic svg { width: 20px; height: 20px; }
.tm-ic.rec { background: linear-gradient(140deg, #ff4d6d, #c9184a); }
.tm-ic.draw { background: linear-gradient(140deg, #6965db, #8b2bff); }
.tm-links { display: flex; gap: 6px; padding: 8px 6px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.tm-links a { flex: 1; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tm-links a:hover { background: rgba(var(--ink),.05); color: var(--text); }
.tm-links svg { width: 15px; height: 15px; } .tm-links em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }

/* quadros */
.tools-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 18px; }
.tools-head p { margin: 0; flex: 1; min-width: 240px; }
.tools-head .sp { flex: 1; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.board-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; color: var(--text); transition: transform .15s, border-color .15s; }
.board-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.bc-prev { height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #6965db; background: radial-gradient(circle at 1px 1px, rgba(var(--ink),.12) 1px, transparent 0) 0 0 / 16px 16px, rgba(105,101,219,.06); font-family: 'Virgil', 'Comic Sans MS', cursive; font-size: 13px; }
.bc-prev svg { width: 26px; height: 26px; }
.bc-b { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.bc-b b { font-size: 14px; } .bc-b small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; } .bc-b small i { width: 7px; height: 7px; border-radius: 50%; }
.bc-x { position: absolute; top: 8px; right: 8px; opacity: 0; background: var(--panel) !important; }
.board-card:hover .bc-x { opacity: 1; }
.content.board-page { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 63px); }
body:has(.demo-bar) .content.board-page { height: calc(100vh - 98px); }
.bd { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bd-bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.bd-bar .sp { flex: 1; }
.bd-title { border: 0; background: none; outline: none; font-size: 17px; font-weight: 800; color: var(--text); min-width: 120px; width: 340px; max-width: 40vw; padding: 4px 8px; border-radius: 8px; }
.bd-title:hover, .bd-title:focus { background: rgba(var(--ink),.05); }
.bd-saved { font-size: 12px; font-weight: 600; color: var(--muted); } .bd-saved[data-s=ok]::before { content: '✓ '; color: var(--green, #22c55e); } .bd-saved[data-s=erro], .bd-saved[data-s=grande] { color: var(--red, #ef4444); }
.bd-host { flex: 1; position: relative; min-height: 0; }
.bd-host > .excalidraw, .bd-host .excalidraw-wrapper { height: 100%; }
.bd-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.bd-loading .splash-bar { width: 160px; }

/* gravador */
.rec-setup { display: grid; gap: 12px; }
.rec-setup .switch svg { width: 15px; height: 15px; margin-right: 2px; vertical-align: -2px; }
.info-box.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); } .info-box.warn > svg { color: #f59e0b; }
.rec-count { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(10,6,16,.55); color: #fff; pointer-events: none; }
.rec-count b { font-size: 120px; font-weight: 800; line-height: 1; animation: recPop .8s ease infinite; }
@keyframes recPop { from { transform: scale(1.3); opacity: 0; } 30% { transform: scale(1); opacity: 1; } }
.rec-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 380; display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 14px; border-radius: 16px; background: #17121f; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.45); color: #fff; }
.rec-bar.in-pip { position: static; transform: none; box-shadow: none; border-radius: 14px; justify-content: center; }
.rb-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 4px rgba(255,59,92,.25); animation: recBlink 1.2s infinite; }
.rb-dot.p { background: #f59e0b; box-shadow: none; animation: none; }
@keyframes recBlink { 50% { opacity: .35; } }
.rb-time { font-variant-numeric: tabular-nums; min-width: 44px; margin-right: 4px; }
.rb-b { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 34px; justify-content: center; padding: 0 9px; border-radius: 10px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 13px; }
.rb-b:hover { background: rgba(255,255,255,.16); } .rb-b svg { width: 15px; height: 15px; }
.rb-b.off { color: #ff6b86; } .rb-b.stop { background: #ff3b5c; } .rb-b.stop:hover { background: #ff5b77; }
.pip-body { margin: 0; background: #17121f; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 100vh; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.pip-cam { width: 170px; height: 170px; border-radius: 50%; overflow: hidden; border: 3px solid #8b2bff; }
.pip-cam video, .cam-bubble video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-bubble { position: fixed; left: 24px; bottom: 24px; width: 180px; height: 180px; border-radius: 50%; overflow: hidden; border: 3px solid #8b2bff; z-index: 379; cursor: grab; box-shadow: 0 12px 30px rgba(0,0,0,.4); touch-action: none; }
.rec-res { display: grid; gap: 12px; }
.rec-res video { width: 100%; max-height: 58vh; border-radius: 14px; background: #000; }
.rec-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; } .rec-meta svg { width: 14px; height: 14px; }
.rec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rec-card { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.rc-thumb { position: relative; aspect-ratio: 16/9; background: #0d0a12; cursor: pointer; }
.rc-thumb video { width: 100%; height: 100%; object-fit: cover; }
.rc-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11.5px; font-weight: 700; }
.rc-play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(139,43,255,.85); color: #fff; opacity: 0; transition: opacity .15s; }
.rc-play svg { width: 20px; height: 20px; fill: #fff; }
.rec-card:hover .rc-play { opacity: 1; }
.rc-b { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rc-b b { font-size: 14px; } .rc-b small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.rc-act { display: flex; gap: 2px; margin-top: 4px; }
.sv-player video { width: 100%; border-radius: 16px; background: #000; margin: 10px 0; max-height: 70vh; }

/* anexos no card */
.att-drop { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 6px 0 10px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--muted); cursor: pointer; transition: all .15s; }
.att-drop:hover { border-color: var(--accent-text); color: var(--text); background: rgba(139,43,255,.05); }
.att-drop > svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }
.att-drop b { display: block; color: var(--text); font-size: 13.5px; } .att-drop small { font-size: 12px; }
.tmodal.dragging { outline: 3px dashed var(--accent-text); outline-offset: -8px; }
.tmodal.dragging .att-drop { border-color: var(--accent-text); background: rgba(139,43,255,.1); }
.att-img.is-video { background: #0d0a12; color: #fff; flex-direction: column; gap: 4px; padding: 6px; text-align: center; }
.att-img.is-video > svg { width: 26px; height: 26px; fill: #fff; }
.att-img.is-video small { font-size: 10.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.ann-badge { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 7px; background: #ec2df8; color: #fff; font-size: 11px; font-weight: 800; }
.ann-badge svg { width: 11px; height: 11px; }
.st-img { position: relative; cursor: zoom-in; }

/* visualizador com comentários */
.mv { position: fixed; inset: 0; z-index: 300; background: rgba(8,5,12,.94); display: flex; flex-direction: column; color: #fff; animation: fadeIn .18s; }
.mv-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mv-top .sp { flex: 1; }
.mv-top .btn { color: #fff; }
.mv-name b { display: block; font-size: 14.5px; } .mv-name small { color: rgba(255,255,255,.55); font-size: 12px; }
.mv-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.6); } .mv-hint svg { width: 14px; height: 14px; }
.mv-body { flex: 1; display: flex; min-height: 0; }
.mv-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 60px; min-width: 0; overflow: auto; }
.mv-frame { max-width: 100%; max-height: 100%; display: flex; }
.mv-frame video { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; }
.mv-img { position: relative; display: inline-block; cursor: crosshair; user-select: none; touch-action: none; }
.portal-mv .mv-img { cursor: default; }
.mv-img img { display: block; max-width: calc(100vw - 480px); max-height: calc(100vh - 130px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
@media (max-width: 900px) { .mv-body { flex-direction: column; } .mv-img img { max-width: calc(100vw - 40px); max-height: 55vh; } .mv-side { width: auto !important; max-height: 40vh; } .mv-stage { padding: 14px; } }
.mv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; z-index: 2; }
.mv-nav:hover { background: rgba(255,255,255,.2); } .mv-nav.l { left: 12px; } .mv-nav.r { right: 12px; } .mv-nav svg { width: 18px; height: 18px; }
.mv-sel { position: absolute; border: 2px dashed #ec2df8; background: rgba(236,45,248,.12); border-radius: 4px; pointer-events: none; }
.mv-mk { position: absolute; pointer-events: auto; }
.mv-mk.area { border: 2px solid #ec2df8; border-radius: 4px; background: rgba(236,45,248,.08); }
.mv-mk i { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; display: grid; place-items: center; background: #ec2df8; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.35); border: 2px solid #fff; cursor: pointer; transition: transform .12s; }
.mv-mk i svg { width: 13px; height: 13px; }
.mv-mk.hl i, .mv-mk i:hover { transform: scale(1.18); }
.mv-mk.hl.area { border-color: #fff; box-shadow: 0 0 0 3px rgba(236,45,248,.6); }
.mv-mk.done i { background: #22c55e; } .mv-mk.done.area { border-color: #22c55e; background: rgba(34,197,94,.08); }
.mv-mk.new i { background: #8b2bff; }
.mv-compose { position: absolute; left: 18px; top: 16px; width: 280px; padding: 10px; border-radius: 14px; background: #1c1626; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 40px rgba(0,0,0,.5); cursor: default; z-index: 3; display: grid; gap: 8px; }
.mv-compose.left { left: auto; right: 18px; } .mv-compose.up { top: auto; bottom: 16px; }
.mv-mk.area .mv-compose { left: calc(100% + 8px); top: 0; } .mv-mk.area .mv-compose.left { left: auto; right: calc(100% + 8px); }
.mv-compose textarea { width: 100%; resize: vertical; min-height: 54px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; padding: 8px 10px; font: inherit; font-size: 13.5px; outline: none; }
.mv-compose textarea:focus { border-color: #ec2df8; }
.mv-compose .row { justify-content: flex-end; }
.mv-side { width: 340px; flex: none; border-left: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; background: rgba(255,255,255,.02); }
.mv-sh { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mv-sh .cnt { background: rgba(236,45,248,.2); color: #f5a6ff; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.mv-res { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.mv-list { flex: 1; overflow: auto; padding: 8px; }
.mv-c { display: flex; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.mv-c:hover { background: rgba(255,255,255,.04); } .mv-c.hl { background: rgba(236,45,248,.12); }
.mv-c.done { opacity: .55; }
.mv-n { flex: none; width: 24px; height: 24px; border-radius: 50% 50% 50% 4px; background: #ec2df8; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
.mv-c.done .mv-n { background: #22c55e; } .mv-n svg { width: 12px; height: 12px; }
.mv-c > div { flex: 1; min-width: 0; }
.mv-ch { display: flex; align-items: center; gap: 6px; font-size: 13px; } .mv-ch small { color: rgba(255,255,255,.5); font-size: 11.5px; }
.mv-c p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.88); white-space: pre-wrap; word-break: break-word; }
.mv-c p a { color: #f5a6ff; }
.mv-ca { display: flex; gap: 12px; margin-top: 6px; }
.mv-ca button { border: 0; background: none; padding: 0; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.mv-ca button:hover { color: #fff; } .mv-ca svg { width: 12px; height: 12px; }
.mv-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 18px; color: rgba(255,255,255,.55); font-size: 13px; }
.mv-empty svg { width: 28px; height: 28px; color: #ec2df8; } .mv-empty b { color: #fff; }

/* ===== v3.3: material do cliente ===== */
.kit { display: flex; flex-direction: column; gap: 16px; }
.kit-sec h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kit-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.kit-img { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: repeating-conic-gradient(rgba(var(--ink),.05) 0 25%, transparent 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; color: var(--muted); padding: 0; }
.kit-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.kit-img:hover { border-color: var(--line-2); }
.kit-lock { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(0,0,0,.45); color: rgba(255,255,255,.6); cursor: pointer; }
.kit-lock svg { width: 12px; height: 12px; }
.kit-lock.on { background: #f59e0b; color: #fff; }
.kit-lock.inline { position: static; margin-left: auto; background: rgba(var(--ink),.06); color: var(--muted); }
.kit-lock.inline.on { background: #f59e0b; color: #fff; }
.kit-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-color { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kit-color i { width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
button.kit-color:hover { border-color: var(--line-2); }
.kit-list { margin: 0; display: flex; flex-direction: column; }
.kit-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.kit-row dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.kit-row dd { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.kit-links { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal !important; }
.kit-links a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: rgba(var(--ink),.05); font-size: 13px; font-weight: 600; color: var(--text); }
.kit-links svg { width: 13px; height: 13px; }
@media (max-width: 640px) { .kit-row { grid-template-columns: 1fr; gap: 4px; } }
.kit-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.kit-empty svg { width: 22px; height: 22px; color: var(--accent-text); } .kit-empty b { color: var(--text); }
.kit-hint { margin: -4px 0 12px; }
.fc-int { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #f59e0b; color: #fff; } .fc-int svg { width: 12px; height: 12px; }
.fcard { position: relative; }
.tp-kit { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 4px 0 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink),.025); text-align: left; color: var(--text); transition: border-color .15s, background .15s; }
.tp-kit:hover { border-color: var(--line-2); background: rgba(var(--ink),.045); }
.tpk-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.tpk-b { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tpk-b b { font-size: 13.5px; } .tpk-b small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpk-colors { display: flex; } .tpk-colors i { width: 16px; height: 16px; border-radius: 50%; margin-left: -4px; box-shadow: 0 0 0 2px var(--panel); }
.tp-kit > svg { width: 15px; height: 15px; color: var(--muted); }
.kit-pimgs .st-img img { object-fit: contain; padding: 6px; }

/* ===== chat ===== */
.chat-dock { position: fixed; right: 16px; bottom: 0; z-index: 150; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.chat-dock > * { pointer-events: auto; }
.cd-side { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-bottom: 16px; }
.cd-launch { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 21px; border: 1px solid var(--line-2); background: var(--panel-solid, var(--panel)); color: var(--text); font-weight: 700; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s; }
.cd-launch:hover { transform: translateY(-1px); } .cd-launch svg { width: 17px; height: 17px; color: var(--accent-text); }
.cd-launch.on { border-color: var(--accent-text); }
.cd-launch em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff; font-style: normal; font-size: 11.5px; display: grid; place-items: center; }
body.has-bulk .chat-dock { bottom: 70px; }
.cd-panel { width: 340px; max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel-solid, var(--bg-2, #15111c)); box-shadow: 0 18px 50px rgba(0,0,0,.4); overflow: hidden; animation: popIn .16s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(6px); } }
.cp-h { display: flex; align-items: center; gap: 4px; padding: 12px 10px 8px 16px; } .cp-h b { flex: 1; font-size: 15px; }
.cp-search { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 0 10px; height: 34px; border-radius: 10px; background: rgba(var(--ink),.05); color: var(--muted); }
.cp-search svg { width: 14px; height: 14px; } .cp-search input { flex: 1; border: 0; background: none; outline: none; color: var(--text); font-size: 13px; }
.cp-online { display: flex; gap: 6px; overflow-x: auto; padding: 4px 12px 10px; border-bottom: 1px solid var(--line); }
.cp-online button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: var(--text-2); padding: 2px 4px; border-radius: 10px; min-width: 52px; }
.cp-online button:hover { background: rgba(var(--ink),.05); } .cp-online small { font-size: 11px; font-weight: 600; }
.cp-list { overflow-y: auto; padding: 6px; }
.cp-sec { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cp-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 10px; text-align: left; color: var(--text); }
.cp-it:hover { background: rgba(var(--ink),.05); }
.cp-b { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cp-b b { font-size: 13.5px; } .cp-b small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-it.unread .cp-b b, .cp-it.unread .cp-b small { color: var(--text); font-weight: 700; }
.cp-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } .cp-r small { font-size: 11px; color: var(--muted); }
.cp-r em { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent, #8b2bff); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
.ch-av { position: relative; display: inline-flex; flex: none; }
.ch-av > i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--pc); border: 2px solid var(--panel-solid, #15111c); }
.ch-av > i.off { background: transparent; border-color: var(--muted); border-width: 1.5px; }
.ch-grp { display: inline-flex; width: 34px; justify-content: center; flex: none; }
.cd-wins { display: flex; align-items: flex-end; gap: 10px; }
.cw { width: 320px; height: 440px; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: var(--panel-solid, #15111c); box-shadow: 0 -6px 30px rgba(0,0,0,.3); overflow: hidden; animation: popIn .16s ease; }
.cw.min { height: auto; width: 240px; }
.cw.drag { outline: 2px dashed var(--accent-text); outline-offset: -4px; }
.cw-h { display: flex; align-items: center; gap: 9px; padding: 9px 8px 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cw.min .cw-h { border-bottom: 0; }
.cw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cw-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cw-t small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-typing { font-style: normal; color: var(--accent-text); } .cw-typing i { font-style: normal; animation: tdot 1.2s infinite; } .cw-typing i:nth-child(2) { animation-delay: .2s; } .cw-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
.cw-un { min-width: 18px; height: 18px; border-radius: 9px; background: #ef4444; color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.cw-b { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.cw-b:hover { background: rgba(var(--ink),.07); color: var(--text); } .cw-b svg { width: 15px; height: 15px; }
.cw-b.send { color: var(--accent-text); }
.cw-body { flex: 1; overflow-y: auto; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.cw-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; text-align: center; } .cw-empty b { color: var(--text); }
.cm-day { display: flex; justify-content: center; margin: 10px 0 6px; } .cm-day span { font-size: 11px; font-weight: 700; color: var(--muted); padding: 2px 10px; border-radius: 10px; background: rgba(var(--ink),.05); }
.cm { display: flex; gap: 7px; align-items: flex-end; margin-top: 6px; }
.cm.grp { margin-top: 1px; }
.cm-av { width: 26px; flex: none; }
.cm-b { max-width: 78%; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cm.mine { flex-direction: row-reverse; } .cm.mine .cm-av { display: none; } .cm.mine .cm-b { align-items: flex-end; }
.cm-n { font-size: 11px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.cm-t { padding: 7px 11px; border-radius: 14px; background: rgba(var(--ink),.07); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.cm.mine .cm-t { background: rgba(139,43,255,.85); color: #fff; } .cm.mine .cm-t a { color: #fff; text-decoration: underline; }
.cm-time { font-size: 10.5px; color: var(--muted); padding: 0 4px; }
.cm-img { padding: 0; border: 0; background: rgba(var(--ink),.05); border-radius: 12px; overflow: hidden; width: 200px; min-height: 80px; display: grid; place-items: center; color: var(--muted); }
.cm-img img { width: 100%; display: block; }
.cm-file, .cm-task { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); text-align: left; max-width: 240px; }
.cm-file svg, .cm-task > svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.cm-file span, .cm-task span { min-width: 0; display: flex; flex-direction: column; } .cm-file b, .cm-task b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cm-file small, .cm-task small { font-size: 11px; color: var(--muted); }
.cm-task i { width: 8px; height: 30px; border-radius: 4px; flex: none; }
.cm-task.na { color: var(--muted); font-size: 12px; }
.cw-in { display: flex; align-items: flex-end; gap: 2px; padding: 8px; border-top: 1px solid var(--line); }
.cw-in textarea { flex: 1; resize: none; border: 0; outline: none; background: rgba(var(--ink),.05); border-radius: 12px; padding: 7px 10px; color: var(--text); font: inherit; font-size: 13.5px; max-height: 120px; }
.ng-ppl { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-p { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; }
.ng-p:has(input:checked) { border-color: var(--accent-text); background: rgba(139,43,255,.08); }
.ng-p input { display: none; }
@media (max-width: 760px) { .chat-dock { right: 8px; left: 8px; justify-content: flex-end; } .cw { width: calc(100vw - 16px); } .cw.min { width: 200px; } .cd-panel { width: calc(100vw - 16px); } .cd-launch span { display: none; } .cd-wins { position: fixed; left: 8px; right: 8px; bottom: 0; justify-content: flex-end; } }

/* ===== Início v3.3 (estilo Linear/Notion) ===== */
.h3 { max-width: 1240px; margin: 0 auto; padding-top: 4px; }
.h3-top { display: flex; align-items: flex-start; gap: 16px; }
.h3-hello { flex: 1; min-width: 0; }
.h3-hello small { color: var(--muted); font-size: 13px; font-weight: 600; }
.h3-hello h1 { margin: 2px 0 0; font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; }
.h3-hello p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; max-width: 640px; }
.h3-stats { display: flex; flex-wrap: wrap; margin: 22px 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h3-stat { flex: 1 1 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--text); text-align: left; transition: background .15s; }
.h3-stat:last-child { border-right: 0; }
.h3-stat:not([disabled]):hover { background: rgba(var(--ink),.03); }
.h3-stat b { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h3-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.h3-stat.bad b { color: #ef4444; }
.h3-stat[disabled] { cursor: default; }
.h3-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 1100px) { .h3-grid { grid-template-columns: 1fr; gap: 10px; } }
.h3-col { display: flex; flex-direction: column; gap: 34px; min-height: 60px; }
.h3-w { min-width: 0; transition: opacity .15s; }
.h3-wh { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.h3-wh h3 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text); }
.h3-wx { margin-left: auto; display: flex; align-items: center; gap: 8px; } .h3-wx small { color: var(--muted); font-size: 12px; font-weight: 600; } .h3-wx .late { color: #ef4444; }
.h3-prog { width: 90px; height: 4px; border-radius: 4px; background: rgba(var(--ink),.08); overflow: hidden; } .h3-prog i { display: block; height: 100%; background: #22c55e; border-radius: 4px; transition: width .4s ease; }
.h3-empty { margin: 10px 0; color: var(--muted); font-size: 13px; }
.h3-sub { margin: 18px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.h3-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); } .h3-more:hover { color: var(--text); } .h3-more svg { width: 14px; height: 14px; }
.h3 .hf-r { border-radius: 6px; }
.h3 .hf-list .hf-r:last-child { border-bottom: 0; }
.h3.editing .h3-w { padding: 10px; margin: -10px; border-radius: 12px; outline: 1px dashed var(--line-2); cursor: grab; }
.h3.editing .h3-w.dragging { opacity: .4; }
.h3.editing .h3-wb { pointer-events: none; opacity: .55; }
.h3-ctl { display: flex; gap: 2px; margin-left: 6px; }
.h3-ctl button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); display: grid; place-items: center; }
.h3-ctl button:hover { color: var(--text); border-color: var(--line-2); }
.h3-ctl svg { width: 13px; height: 13px; }
.h3-ctl [data-mv=up] svg { transform: rotate(-90deg); } .h3-ctl [data-mv=down] svg { transform: rotate(90deg); }
.h3-hidden { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
.seg-xs { display: inline-flex; padding: 2px; border-radius: 8px; background: rgba(var(--ink),.05); }
.seg-xs button { border: 0; background: none; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.seg-xs button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
/* agenda */
.hcal { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; padding-top: 8px; }
@media (max-width: 760px) { .hcal { grid-template-columns: 1fr; } }
.hc-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; } .hc-nav b { font-size: 14px; min-width: 120px; text-align: center; } .hc-nav .sp { flex: 1; }
.hc-wd, .hc-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.hc-wd span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; text-align: center; padding: 4px 0; }
.hc-days { gap: 2px; }
.hc-d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 46px; padding: 6px 2px; border: 0; border-radius: 8px; background: none; color: var(--text); transition: background .12s; }
.hc-d:hover { background: rgba(var(--ink),.05); }
.hc-d.out { color: var(--muted); opacity: .5; }
.hc-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hc-d.today .hc-n { background: var(--accent, #8b2bff); color: #fff; }
.hc-d.sel { background: rgba(var(--ink),.07); }
.hc-dots { display: flex; gap: 3px; height: 5px; } .hc-dots i { width: 5px; height: 5px; border-radius: 50%; } .hc-dots i.t { border-radius: 1px; opacity: .8; }
.hcal.semana .hc-d { min-height: 150px; align-items: stretch; justify-content: flex-start; padding: 6px 4px; border: 1px solid var(--line); }
.hcal.semana .hc-n { align-self: center; }
.hc-wk { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hc-wk em { font-style: normal; font-size: 11px; line-height: 1.3; padding: 2px 5px; border-radius: 5px; border-left: 2px solid var(--k); background: rgba(var(--ink),.04); text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hc-wk em.t { background: none; color: var(--text-2); }
.hc-wk small { font-size: 11px; color: var(--muted); }
.hc-side { border-left: 1px solid var(--line); padding-left: 18px; display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 760px) { .hc-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } }
.hc-sh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; } .hc-sh b { font-size: 14px; text-transform: capitalize; } .hc-sh small { color: var(--muted); font-size: 12px; }
.hc-list { display: flex; flex-direction: column; gap: 2px; }
.hc-ev, .hc-tk { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; background: none; border-radius: 8px; text-align: left; color: var(--text); }
.hc-ev:hover, .hc-tk:hover { background: rgba(var(--ink),.05); }
.hc-ev { border-left: 3px solid var(--k); border-radius: 0 8px 8px 0; }
.ce-time { font-size: 11.5px; font-weight: 700; color: var(--text-2); min-width: 40px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.ce-b, .hc-tk > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ce-b b, .hc-tk b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ce-b small, .hc-tk small { font-size: 11.5px; color: var(--muted); }
.ring-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); flex: none; margin: 0 6px 0 4px; }
.hc-add { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 6px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; border-radius: 8px; }
.hc-add:hover { color: var(--text); background: rgba(var(--ink),.04); } .hc-add svg { width: 14px; height: 14px; }
.ev-kind button { display: inline-flex; align-items: center; gap: 6px; } .ev-kind i { width: 8px; height: 8px; border-radius: 50%; }
/* equipe, atividade, ferramentas */
.tm-list { display: flex; flex-direction: column; }
.tm-p { display: flex; align-items: center; gap: 4px; border-radius: 8px; }
.tm-p:hover { background: rgba(var(--ink),.035); }
.tm-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 6px; border: 0; background: none; text-align: left; color: var(--text); }
.tm-b { min-width: 0; display: flex; flex-direction: column; } .tm-b b { font-size: 13.5px; } .tm-b small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-p.off .tm-b b { color: var(--text-2); }
.tm-n { display: flex; flex-direction: column; align-items: flex-end; border: 0; background: none; padding: 2px 4px; } .tm-n em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; } .tm-n em.late { color: #ef4444; }
.tm-c { opacity: 0; } .tm-p:hover .tm-c { opacity: 1; }
.act-feed { display: flex; flex-direction: column; }
.af-r { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 6px; border: 0; background: none; border-radius: 8px; text-align: left; color: var(--text); }
.af-r:hover { background: rgba(var(--ink),.04); }
.af-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .af-b > span { font-size: 13px; line-height: 1.4; color: var(--text-2); } .af-b > span b { color: var(--text); } .af-b small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-tools { display: flex; flex-direction: column; }
.tl-tools button, .tl-recent button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 6px; border: 0; background: none; border-radius: 8px; text-align: left; color: var(--text); }
.tl-tools button:hover, .tl-recent button:hover { background: rgba(var(--ink),.045); }
.tt-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--ink),.06); color: var(--text-2); font-style: normal; flex: none; } .tt-ic svg { width: 16px; height: 16px; }
.tl-tools span, .tl-recent span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tl-tools b, .tl-recent b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tl-tools small, .tl-recent small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-recent button > svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.h3 .wl { overflow-x: auto; padding-top: 6px; }
.cd-launch { width: 48px; height: 48px; padding: 0; border-radius: 50%; justify-content: center; position: relative; }
.cd-launch svg { width: 20px; height: 20px; }
.cd-launch em { position: absolute; top: -4px; right: -4px; }
.content { padding-bottom: 90px; }


/* ===== Influxo Hub 3.4: editor de blocos e novos módulos ===== */
.rich-shell{position:relative;border:1px solid var(--border,rgba(140,120,170,.25));background:var(--surface,#17121f);border-radius:14px;overflow:visible;margin-top:8px;min-width:0}
.rich-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-bottom:1px solid rgba(147,117,177,.16);flex-wrap:wrap}
.rich-top small{font-size:11px;color:var(--muted)}
.rich-buttons{display:flex;gap:3px;flex-wrap:wrap}
.rich-btn{color:var(--text);font:700 12px inherit;min-width:30px;height:30px;padding:0 8px;background:transparent;border:0;border-radius:7px;cursor:pointer}
.rich-btn:hover,.rich-btn:focus-visible{background:rgba(140,80,230,.17);outline:none}
.rich-area{min-height:230px}
.rich-compact .rich-area{min-height:130px}
.rich-content{min-height:inherit;padding:22px 24px;outline:none;color:var(--text);font-size:14px;line-height:1.75;overflow-wrap:anywhere}
.rich-content p{margin:0 0 12px}.rich-content h1{font-size:28px;line-height:1.2;margin:16px 0}.rich-content h2{font-size:21px;margin:14px 0}
.rich-content ul,.rich-content ol{padding-left:23px;margin:10px 0}
.rich-content blockquote{border-left:3px solid #a477f2;margin:12px 0;padding:8px 16px;background:rgba(142,97,225,.09)}
.rich-content pre{white-space:pre-wrap;background:rgba(0,0,0,.22);border-radius:9px;padding:12px}
.rich-content hr{border:0;border-top:1px solid var(--border,rgba(140,120,170,.3))}
.rich-content ul[data-type=taskList]{list-style:none;padding-left:0}.rich-content ul[data-type=taskList] li{display:flex;gap:10px;align-items:start}
.rich-content ul[data-type=taskList] li label{flex:none}
.rich-slash{position:absolute;z-index:50;left:15px;top:75px;width:min(320px,calc(100% - 30px));max-height:330px;overflow-y:auto;background:var(--panel,#21192c);border:1px solid rgba(160,125,200,.32);border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.35);padding:6px}
.rich-slash[hidden]{display:none}
.rich-suggestion{display:flex;width:100%;justify-content:space-between;align-items:center;gap:10px;background:transparent;border:0;color:var(--text);padding:10px;border-radius:8px;text-align:left;cursor:pointer}
.rich-suggestion small{color:var(--muted)}.rich-suggestion:hover,.rich-suggestion.on{background:rgba(142,97,225,.18)}
.doc .rich-shell{max-width:100%;margin-top:16px}.doc .rich-area{min-height:480px}
.tp-sec .rich-shell{margin-top:10px}.tp-sec .rich-area{min-height:160px}
.rich-open{margin:8px 0;display:inline-flex}
.enh-calendar,.enh-gantt{min-width:0;padding:15px;background:var(--panel,rgba(25,20,36,.75));border:1px solid rgba(142,97,225,.17);border-radius:16px}
.enh-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:15px;font-size:13px;color:var(--text-2)}
.enh-toolbar label{display:flex;align-items:center;gap:10px}.enh-toolbar select{min-width:130px}
.enh-loading{padding:35px;text-align:center;color:var(--muted)}
.enh-calendar .fc{--fc-border-color:rgba(155,132,184,.19);--fc-page-bg-color:transparent;--fc-neutral-bg-color:rgba(137,92,200,.07);--fc-today-bg-color:rgba(136,79,237,.12);--fc-list-event-hover-bg-color:rgba(140,80,210,.1);color:var(--text)}
.enh-calendar .fc .fc-button-primary{background:#6d3eb0;border-color:#6d3eb0;text-transform:none;font-size:12px}
.enh-calendar .fc .fc-button-primary:hover{background:#7f4aca}
.enh-calendar .fc .fc-daygrid-day-number,.enh-calendar .fc .fc-col-header-cell-cushion{color:var(--text);text-decoration:none}
.enh-calendar .fc .fc-list-event-title,.enh-calendar .fc .fc-list-event-time{color:var(--text)}
.enh-calendar .fc .fc-toolbar-title{font-size:17px;font-weight:800;text-transform:capitalize}
.enh-gantt-scroll{max-width:100%;overflow:auto;border:1px solid rgba(142,97,225,.15);border-radius:12px;background:#fff;color:#242424}
.enh-gantt-canvas{min-height:180px}.enh-gantt-canvas .gantt-container{overflow:visible}
.h3-section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:25px 0 13px;padding:0 3px;font-size:14px;font-weight:800;letter-spacing:.01em;color:var(--text)}
.h3-section-label small{font-weight:500;color:var(--muted);font-size:12px}
.h3-grid{gap:22px}.h3-col{gap:22px}
.h3-w{background:var(--panel,rgba(25,20,36,.72));border:1px solid rgba(150,118,210,.22);border-radius:17px;box-shadow:0 8px 28px rgba(0,0,0,.09);overflow:hidden}
.h3-w:nth-child(even){border-color:rgba(155,127,185,.15)}
.h3-wh{border-bottom:1px solid rgba(149,120,191,.13);padding-bottom:12px}
.h3-wb{padding-top:12px}
.h3-online-dot{display:inline-flex;align-items:center;gap:6px;color:#2cbf96;font-weight:700}
.h3-online-dot:before{content:"";display:inline-block;width:7px;height:7px;border-radius:100%;background:#31d69f;box-shadow:0 0 0 4px rgba(49,214,159,.13)}
.h3-office-preview{display:block;text-decoration:none!important;color:inherit;border-radius:13px;overflow:hidden;border:1px solid rgba(160,120,216,.2);background:#17111f}
.h3-office-preview canvas{width:100%;height:auto;aspect-ratio:8/5;display:block;image-rendering:pixelated;object-fit:cover}
.h3-office-footer{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(120deg,rgba(90,49,151,.35),rgba(36,24,55,.9))}
.h3-office-footer>span{display:flex;flex-direction:column;gap:4px}.h3-office-footer b{font-size:13px;color:#fff}.h3-office-footer small{color:#d1c3e3;font-size:11px}.h3-office-footer strong{font-size:11px;color:#e5cdfb;white-space:nowrap}
.chat-dock .cd-side{width:auto;max-width:calc(100vw - 24px)}
.chat-dock .cd-launch{width:auto;height:auto;min-height:59px;padding:9px 15px;display:flex;align-items:center;justify-content:center;gap:11px;border-radius:16px;border:1px solid rgba(178,141,241,.35);background:linear-gradient(135deg,#5c2d9c,#36204f);box-shadow:0 10px 30px rgba(68,23,124,.3);color:#fff}
.cd-live{position:absolute;top:-17px;right:8px;display:flex;align-items:center;gap:6px;border-radius:20px;background:#19152a;border:1px solid rgba(70,222,164,.35);color:#aaf4d4;padding:4px 9px;font-size:10px;font-weight:800;white-space:nowrap}
.cd-live i{width:6px;height:6px;border-radius:50%;background:#2cda96}
.cd-launch-icon{display:grid;place-items:center;position:relative;width:34px;height:34px;background:rgba(255,255,255,.12);border-radius:10px}
.cd-launch-icon em{position:absolute;top:-6px;right:-7px}
.cd-launch-label{font-size:13px;font-weight:800;text-align:left;display:flex;flex-direction:column;gap:3px;white-space:nowrap}
.cd-launch-label small{font-size:10px;font-weight:500;color:#d8bff4}
.bd-host{background:#fff!important}
.bd:fullscreen{background:#fff;display:flex;flex-direction:column;width:100vw;height:100vh}
.bd:fullscreen .bd-host{flex:1;min-height:0;height:auto}
.bd.bd-full{position:fixed;inset:0;z-index:99999;background:#fff;display:flex;flex-direction:column}
.bd.bd-full .bd-host{flex:1;min-height:0}
.of-meeting-cta{background:linear-gradient(135deg,#7e4ad2,#51298d)!important;color:white!important;border-color:transparent!important}
.jm-overlay{position:fixed;inset:0;background:rgba(5,3,12,.86);z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px}
.jm-window{width:min(1160px,100%);height:min(760px,100%);background:#161020;border:1px solid rgba(150,110,230,.4);border-radius:18px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.6)}
.jm-head{padding:14px 19px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid rgba(160,120,200,.2);color:white}
.jm-head>div{display:flex;flex-direction:column;gap:4px}.jm-head small{font-size:11px;color:#b5a9c6}
.jm-stage{flex:1;min-height:0}.jm-intro{display:flex;height:100%;padding:30px;text-align:center;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:#fff}
.jm-intro h2{margin:0}.jm-intro p{max-width:500px;color:#c7b9dc;line-height:1.6}.jm-intro small{color:#9e90b2}.jm-emoji{font-size:45px}
@media(max-width:760px){.enh-calendar,.enh-gantt{padding:8px}.enh-calendar .fc .fc-toolbar{flex-wrap:wrap;gap:10px}.enh-calendar .fc .fc-toolbar-title{font-size:14px}.enh-calendar .fc .fc-button-primary{font-size:10px;padding:6px}.enh-calendar .fc .fc-daygrid-event{font-size:10px}.h3-section-label{align-items:flex-start;flex-direction:column;gap:4px}.h3-grid,.h3-col{gap:14px}.h3-office-footer strong{font-size:10px}.chat-dock .cd-launch{padding:8px 11px;min-height:51px}.cd-launch-label{font-size:12px}.jm-overlay{padding:4px}.jm-window{border-radius:9px}.rich-content{padding:14px}.rich-top{padding:7px}.rich-btn{min-width:27px}}


/* 3.4.1: recuperar espaçamento interno e impedir conteúdo cortado dos cards */
.h3 .h3-grid{grid-template-columns:minmax(0,1fr) minmax(310px,340px);gap:20px;align-items:start}
.h3 .h3-col{min-width:0;gap:20px}
.h3 .h3-w{box-sizing:border-box;padding:17px 18px 19px;overflow:visible;border-radius:16px}
.h3 .h3-wh{min-width:0;gap:9px;margin:0 0 12px;padding:0 0 12px}
.h3 .h3-wh h3{min-width:0;overflow-wrap:anywhere;line-height:1.3}
.h3 .h3-wx{margin-left:auto;min-width:0;max-width:75%;justify-content:flex-end;flex-wrap:wrap}
.h3 .h3-wb{min-width:0;padding:0}
.h3 .h3-office-preview{overflow:hidden}
.h3 .hcal{min-width:0}
.h3 .hc-main,.h3 .hc-side{min-width:0}
.h3 .hc-nav{flex-wrap:wrap}
.h3 .hc-wk em{overflow:hidden;text-overflow:ellipsis}
.h3.editing .h3-w{padding:17px 18px 19px;margin:0;outline:1px dashed var(--line-2)}
.h3 .h3-office-footer{flex-wrap:wrap}
.h3 .h3-office-footer>span{min-width:0;flex:1 1 140px}
.h3 .h3-office-footer strong{font-size:10px}
@media(max-width:1200px){.h3 .h3-grid{grid-template-columns:minmax(0,1fr)}.h3 .h3-col{width:100%}}
@media(max-width:760px){.h3 .h3-w{padding:14px}.h3 .hcal{grid-template-columns:minmax(0,1fr)}.h3 .h3-wh{flex-wrap:wrap}.h3 .h3-wx{max-width:100%}.h3 .hc-wd,.h3 .hc-days{min-width:0}}


/* 3.4.1: perfil, visões salvas e reuniões responsivas */
.profile-personalize{display:flex;flex-direction:column;gap:10px;padding:16px 0;border-top:1px solid var(--line)}
.profile-personalize>b,.profile-personalize>div>b{font-size:13px;color:var(--text)}
.profile-personalize .muted{font-size:12px;margin:0}
.profile-avatar-frame{position:relative;display:grid;place-items:center;min-width:136px;max-width:160px}
.profile-avatar-frame .av-prev{display:block;max-width:100%}
.profile-photo-preview{position:absolute;inset:0;width:100%;height:100%;border-radius:14px;object-fit:cover;border:2px solid rgba(177,120,250,.35)}
.profile-photo-preview[hidden]{display:none}
.profile-image-modes,.profile-status-options{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.profile-photo-pick{cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.saved-view-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0 14px;padding:10px 13px;border-radius:13px;background:rgba(137,85,206,.06);border:1px solid rgba(150,110,210,.14)}
.saved-view-bar b{font-size:12px;margin-right:auto;color:var(--text-2)}
.jm-head .jm-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.jm-hint{font-size:11px;background:rgba(112,82,180,.15);color:#d6c3ed;padding:9px 16px;line-height:1.45;text-align:center}
.jm-stage{min-height:0;position:relative}
.jm-stage iframe{border:0!important}
.jm-loading{height:100%;display:grid;place-items:center;color:#d4c3e8;font-size:13px}
@media(max-width:750px){.profile-avatar-frame{min-width:110px;max-width:130px}.jm-head{flex-wrap:wrap}.jm-head .jm-actions{width:100%;justify-content:flex-end}.jm-hint{font-size:10px}.saved-view-bar b{flex:1 0 100%}}


/* ===== Influxo 3.4.4: clareza e movimento contido ===== */

/* Criação rápida: um fluxo direto, sem sintaxe obrigatória */
.quick.qf {
  padding: 14px 16px 15px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,.07);
  min-width: 0;
}
.qf-head { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px; }
.qf-caption {font-size:10px;letter-spacing:.105em;color:var(--muted);font-weight:800}
.qf-tmpl,.qf-details {display:inline-flex;align-items:center;gap:6px;background:none;border:0;color:var(--text-2);font-size:12px;font-weight:700;cursor:pointer;padding:5px 8px;border-radius:8px}
.qf-tmpl svg,.qf-details svg {width:13px;height:13px}
.qf-tmpl:hover,.qf-details:hover {background:rgba(var(--ink),.055);color:var(--text)}
.qf-main {display:flex;align-items:center;gap:12px;min-width:0;padding:7px 8px 7px 13px;border:1px solid var(--line-2);border-radius:12px;background:var(--input);transition:border-color .2s,box-shadow .2s}
.qf-main:focus-within{border-color:var(--accent-text);box-shadow:0 0 0 3px rgba(139,43,255,.1)}
.qf-plus {flex:none;display:grid;place-items:center;width:20px;height:20px;color:var(--accent-text)}
.qf-plus svg {width:18px;height:18px}
.qf-main input {flex:1;min-width:0;height:33px;border:0;background:transparent;outline:0;color:var(--text);font:inherit;font-size:14px}
.qf-main input::placeholder{color:var(--muted)}
.qf-create {flex:none;white-space:nowrap}
.qf-foot {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:11px}
.qf-location {display:inline-flex;align-items:center;gap:7px;min-width:0;color:var(--text-2)}
.qf-location>span {font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap}
.qf-location b {font-size:12px;font-weight:700;white-space:nowrap;max-width:210px;overflow:hidden;text-overflow:ellipsis}
.qf-select {max-width:245px;min-width:100px;width:auto;border:1px solid var(--line);border-radius:9px;padding:6px 22px 6px 9px;background:var(--card);color:var(--text);font:inherit;font-size:12px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}
.qf-select:focus-visible {outline:2px solid var(--accent-text);outline-offset:2px}
.qf-days {display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px}
.qf-days button,.nt-date-preset button {background:rgba(var(--ink),.04);color:var(--text-2);border:1px solid transparent;border-radius:8px;padding:7px 9px;font-size:11.5px;font-weight:700;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.qf-days button:hover,.nt-date-preset button:hover {background:rgba(139,43,255,.11);color:var(--text)}
.qf-days button.selected,.nt-date-preset button.selected {background:rgba(139,43,255,.17);border-color:rgba(167,100,255,.4);color:var(--text)}
.qf-details{margin-left:auto;white-space:nowrap}
.qf .quick-preview{gap:5px}
.qf.has .quick-preview{margin-top:10px}

/* Modal guiado, campos principais primeiro */
.nt {display:flex;flex-direction:column;gap:11px;min-width:0}
.nt .nt-title{border:1px solid var(--line-2);border-radius:11px;padding:12px;font-size:17px;min-height:45px;background:var(--input);font-weight:700}
.nt .nt-title:focus{border-color:var(--accent-text);box-shadow:0 0 0 3px rgba(139,43,255,.1)}
.nt-field-label {font-size:12px;font-weight:750;color:var(--text-2)}
.nt-field-label small,.nt-group-label small{color:var(--muted);font-weight:500}
.nt-group-label{display:block;width:100%;font-size:12px;color:var(--text-2);font-weight:800;margin:6px 0 0}
.nt .nt-chips{display:block}
.nt-pri-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 15px}
.nt-inline-field{min-width:0;display:flex;flex-direction:column;gap:6px}
.nt-inline-field small{color:var(--muted);font-weight:700}
.nt-inline-field .fchip{width:100%;justify-content:flex-start;min-width:0;min-height:36px;background:rgba(var(--ink),.035);text-align:left}
.nt-inline-field .fchip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nt-date-preset{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0 12px}
.nt-date-preset button{border-color:var(--line);padding:8px 12px}
.nt-more-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 2px;background:none;border:0;border-top:1px solid var(--line);color:var(--text-2);font-size:12px;font-weight:700;cursor:pointer;text-align:left}
.nt-more-toggle svg{width:14px;height:14px;transition:transform .2s}
.nt-more-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.nt-additional{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:7px 0 11px}
.nt-additional[hidden]{display:none}
.nt-status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none}
.nt .nt-desc{resize:vertical;min-height:80px}

/* Status: usar a cor salva na lista, com marcação visível */
.h3 .hf-st {display:inline-flex;align-items:center;gap:7px;max-width:min(190px,38%);padding:5px 9px;font-size:10px;font-weight:800;color:var(--c);background:color-mix(in srgb,var(--c) 23%,transparent);border:1px solid color-mix(in srgb,var(--c) 44%,transparent);border-radius:8px;letter-spacing:.01em}
.h3 .hf-st::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;flex:none;background:var(--c)}
.h3 .hf-r {transition:background .2s,transform .2s}
.h3 .hf-r:hover {background:rgba(var(--ink),.035);transform:translateX(2px)}
.h3 .hf-r:focus-within {outline:1px solid var(--line-2)}

/* Resumo da home, tipografia hierárquica e microinterações */
.h3 .h3-top{align-items:center;gap:20px;flex-wrap:wrap}
.h3-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}
.h3-day-insight{display:inline-flex;gap:8px;align-items:center;color:var(--text-2);font-size:12px;font-weight:650;margin-top:12px;padding:7px 11px;border:1px solid var(--line);background:rgba(var(--ink),.025);border-radius:9px}
.h3-insight-dot{width:7px;height:7px;background:#2ee6a6;border-radius:50%;box-shadow:0 0 0 3px rgba(46,230,166,.1)}
.h3-insight-dot.attention{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.13)}
.h3 .h3-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;border:0;margin:22px 0 27px}
.h3 .h3-stat{min-width:0;min-height:104px;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:12px 15px;gap:4px;transition:transform .2s,border-color .2s,box-shadow .2s}
.h3 .h3-stat:last-child{border-right:1px solid var(--line)}
.h3 .h3-stat:not(:disabled):hover{transform:translateY(-2px);border-color:var(--line-2);background:var(--panel);box-shadow:0 9px 22px rgba(0,0,0,.1)}
.h3 .h3-stat:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
.h3 .h3-stat-top{width:100%;display:flex;justify-content:space-between;align-items:center;color:var(--muted)}
.h3 .h3-stat-top i{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:rgba(var(--ink),.05);color:var(--stat-tone,#a78bfa);font-style:normal}
.h3 .h3-stat-top i svg{width:13px;height:13px}
.h3 .h3-stat-top>svg{width:13px;height:13px;opacity:0;transform:translateX(-3px);transition:opacity .2s,transform .2s}
.h3 .h3-stat:hover .h3-stat-top>svg{opacity:.8;transform:translateX(0)}
.h3 .h3-stat b{font-size:24px;font-variant-numeric:tabular-nums;line-height:1.15}
.h3 .h3-stat .h3-stat-name{font-size:11px;font-weight:650;color:var(--text-2)}
.h3 .h3-stat-violet{--stat-tone:#a78bfa}
.h3 .h3-stat-red{--stat-tone:#f87171}
.h3 .h3-stat-amber{--stat-tone:#fbbf24}
.h3 .h3-stat-green{--stat-tone:#34d399}
.h3 .h3-stat-blue{--stat-tone:#60a5fa}
.h3 .h3-stat.bad b{color:#f87171}
.h3 .h3-section-label{margin-top:18px}
.h3 .h3-w {transition:border-color .2s,box-shadow .2s}
.h3 .h3-w:hover:not(.dragging){border-color:var(--line-2)}
.h3 .h3-w .h3-wh h3{font-weight:750}

@media(max-width:1180px){
  .h3 .h3-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .quick.qf{padding:12px}
  .qf-main{gap:7px}
  .qf-create{padding:0 10px;font-size:12px}
  .qf-location{flex:1 1 100%}
  .qf-select{flex:1;max-width:100%}
  .qf-foot{gap:8px}
  .qf-days{flex:1 1 100%}
  .qf-details{margin-left:0}
  .nt-pri-fields{grid-template-columns:minmax(0,1fr)}
  .h3 .h3-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .h3 .h3-stat{padding:11px;min-height:93px}
  .h3 .h3-stat b{font-size:22px}
  .h3-head-actions{margin-left:0;width:100%}
}
@media(min-width:761px) and (max-width:980px){
 .qf-location{flex:1 1 100%}
 .qf-days{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){
 .qf-main,.qf-days button,.nt-date-preset button,.h3 .h3-stat,.h3 .hf-r,.h3 .h3-w{animation:none!important;transition:none!important}
 .h3 .h3-stat:hover,.h3 .hf-r:hover{transform:none}
}


/* 3.4.5: correções funcionais de criação, briefing e integrações */
.h3-task-create{padding:14px 17px 16px;border:1px solid var(--line-2);border-radius:17px;background:var(--panel);margin:0 0 23px}
.h3-compose-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;padding:0 2px;margin-bottom:12px}
.h3-compose-head b{font-size:13px;font-weight:800}
.h3-compose-head small{color:var(--muted);font-size:11.5px}
.h3-task-create .quick.qf{background:var(--bg);margin:0;box-shadow:none;border-color:var(--line)}
.h3-task-create .qf-head{display:none}
.h3-task-create .qf-location{max-width:100%}
.h3-task-create .qf-select{max-width:220px}
.h3-task-create .qf-main input{width:100%}
.tp-sec .rich-shell{border-color:var(--line-2);background:var(--input);border-radius:13px;margin:11px 0 4px}
.tp-sec .rich-shell .rich-content{min-height:180px;max-height:none;cursor:text}
.tp-sec .rich-top{background:rgba(var(--ink),.025);border-radius:13px 13px 0 0}
.tp-sec .rich-btn{font-size:12px;min-width:32px;color:var(--text);font-family:inherit}
.tp-sec .rich-btn:hover{background:var(--grad-soft)}
.tp-sec .rich-fallback + textarea{width:100%;min-height:160px;margin:8px 0}
.rich-fallback{border-radius:12px 12px 0 0;margin-bottom:0}
.rich-fallback .rich-top{border-bottom:0}
.rich-fallback-note{font-size:11px;color:var(--muted);padding:2px 12px 9px}
.fin-connection-error{display:flex;flex-direction:column;gap:10px;align-items:flex-start;background:rgba(239,68,68,.055);border:1px solid rgba(239,68,68,.22);border-radius:12px;padding:15px;max-width:600px}
.fin-connection-error p{margin:0}
.fin-connection-error small{color:var(--text-2);line-height:1.5}
.fin-connection-error button{margin-top:4px}
@media(max-width:760px){.h3-task-create{padding:12px}.h3-task-create .qf-foot{flex-direction:column;align-items:stretch}.h3-task-create .qf-days{width:100%}.h3-task-create .qf-select{flex:1;max-width:100%}.tp-sec .rich-content{padding:12px}}


/* 3.4.6: seletor de espaços reduzido, calendário nativo e foco visível */
.qf-space-btn{display:inline-flex;align-items:center;gap:9px;min-height:36px;padding:7px 11px;border:1px solid var(--line-2);border-radius:10px;background:var(--card);color:var(--text);font:inherit;font-size:12px;font-weight:750;cursor:pointer;max-width:240px;transition:background .18s,border-color .18s}
.qf-space-btn:hover,.qf-space-btn:focus-visible{border-color:var(--accent-text);background:var(--grad-soft);outline:none}
.qf-space-btn b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qf-space-btn>svg{width:13px;height:13px;flex:none;color:var(--muted)}
.qf-space-color{width:9px;height:9px;border-radius:3px;display:block;flex:none}
.qf-calendar{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;background:rgba(var(--ink),.04);border:1px solid var(--line);border-radius:9px;cursor:pointer;min-height:35px;transition:background .18s,border-color .18s}
.qf-calendar>svg{width:15px;height:15px;flex:none;color:var(--text-2)}
.qf-calendar:hover,.qf-calendar:focus-within,.qf-calendar.selected{border-color:var(--accent-text);background:rgba(139,43,255,.1)}
.qf-calendar input[type=date]{display:block;width:140px;max-width:100%;min-width:105px;padding:0;border:0;outline:none;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:700;color-scheme:dark;cursor:pointer}
[data-theme=light] .qf-calendar input[type=date]{color-scheme:light}
.qf-calendar input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.85}
.h3-task-create .qf-foot{gap:9px}
@media(max-width:760px){.qf-space-btn{max-width:100%}.qf-calendar input[type=date]{width:150px}.qf-calendar{width:max-content;max-width:100%}}
