@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Urbanist:wght@500;600;700;800&display=swap');

:root {
  --bg: #F4F4F2;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --hover: #F2F2F0;
  --press: #E9E9E6;
  --ink: #0A0A0A;
  --text: #18181B;
  --text-2: #3F3F46;
  --muted: #71717A;
  --faint: #A1A1AA;
  --line: #E8E8E4;
  --line-2: #D9D9D4;

  --side: #0A0A0A;
  --side-2: #171717;
  --side-text: #A1A1A1;
  --side-line: #232323;

  --blue: #2563EB;   --blue-bg: #EEF3FE;
  --amber: #B45309;  --amber-bg: #FDF3E4;
  --green: #15803D;  --green-bg: #E9F6EE;
  --red: #DC2626;    --red-bg: #FDEDED;
  --gray-bg: #F0F0EE;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --sh-1: 0 1px 2px rgba(10,10,10,.04), 0 1px 1px rgba(10,10,10,.02);
  --sh-2: 0 1px 2px rgba(10,10,10,.04), 0 10px 28px -14px rgba(10,10,10,.16);
  --sh-3: 0 30px 70px -24px rgba(10,10,10,.32), 0 2px 8px rgba(10,10,10,.06);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Urbanist', 'Inter', sans-serif;

  --side-w: 248px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
::selection { background: var(--ink); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D4D4D0; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: #BDBDB8; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* ================= Logo ================= */
.logo { display: inline-grid; justify-items: stretch; text-align: center; line-height: 1; user-select: none; width: max-content; align-self: flex-start; }
.logo-brand { font-family: var(--display); font-weight: 500; font-size: 27px; letter-spacing: .01em; color: var(--logo-fg, var(--ink)); }
.logo-scale {
  font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -.01em; text-transform: lowercase;
  background: var(--logo-fg, var(--ink)); color: var(--logo-bg, #fff); padding: 0 6px 3px; margin-top: 3px;
}
.logo-sub { font-family: var(--display); font-weight: 500; font-size: 7.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--logo-fg, var(--ink)); margin-top: 6px; padding-left: .32em; opacity: .85; }
.logo--inv { --logo-fg: #fff; --logo-bg: var(--side); }
.logo--lg .logo-brand { font-size: 52px; }
.logo--lg .logo-scale { font-size: 58px; padding: 0 10px 6px; margin-top: 5px; }
.logo--lg .logo-sub { font-size: 12.5px; margin-top: 11px; }

/* ================= Layout ================= */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40;
  background: var(--side); color: #fff; display: flex; flex-direction: column;
  padding: 26px 14px 16px;
  transition: transform .35s var(--ease);
}
.sidebar .logo { margin: 0 0 30px 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #5C5C5C; padding: 14px 12px 6px; font-weight: 600; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--side-text); font-weight: 500; font-size: 13.5px; transition: color .15s, background .15s;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.nav-link:hover { color: #fff; background: var(--side-2); }
.nav-link.active { color: var(--ink); background: #fff; }
.nav-link .nav-count {
  margin-left: auto; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--side-2); color: #E5E5E5;
}
.nav-link.active .nav-count { background: var(--ink); color: #fff; }
.nav-count.late { background: var(--red) !important; color: #fff !important; }

.side-user {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--side-line); margin-top: 12px;
}
.side-user .me-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 8px; padding: 2px; margin: -2px; transition: background .15s; }
.side-user .me-btn:hover { background: var(--side-2); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .mail { font-size: 11px; color: #6B6B6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .logout { color: #8A8A8A; padding: 7px; border-radius: 8px; transition: color .15s, background .15s; display: flex; flex-shrink: 0; }
.side-user .logout svg { width: 18px; height: 18px; }
.side-user .logout:hover { color: #fff; background: var(--side-2); }

.main { flex: 1; min-width: 0; margin-left: var(--side-w); }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 18px 36px; background: rgba(244,244,242,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: 24px; }
.topbar .crumb { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.topbar .crumb a:hover { color: var(--ink); }
.topbar .spacer { flex: 1; }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.page { padding: 8px 36px 60px; max-width: 1320px; }

.menu-btn { display: none; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); }
.side-backdrop { position: fixed; inset: 0; background: rgba(10,10,10,.4); z-index: 39; opacity: 0; pointer-events: none; transition: opacity .3s; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--sh-3); }
  .sidebar.open { transform: none; }
  .side-backdrop.open { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 14px 16px; }
  .topbar h1 { font-size: 20px; }
  .page { padding: 6px 16px 90px; }
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 10px; font-weight: 600; font-size: 13.5px; white-space: nowrap; user-select: none;
  transition: background .15s, color .15s, border-color .15s, transform .12s var(--ease), box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -8px rgba(10,10,10,.5); }
.btn-primary:hover { background: #262626; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.btn-ghost:hover { background: var(--surface-2); border-color: #C9C9C3; }
.btn-subtle { color: var(--text-2); }
.btn-subtle:hover { background: var(--hover); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-danger-ghost { color: var(--red); border: 1px solid #F3C9C9; background: var(--surface); }
.btn-danger-ghost:hover { background: var(--red-bg); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 9px; }
.btn-icon.btn-sm { width: 30px; height: 30px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }

/* ================= Forms ================= */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line-2); color: var(--text); font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  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='%2371717A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #C6C6C0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,10,.07); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input-sm, .select-sm { height: 34px; font-size: 13px; border-radius: 9px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .row, .row-3 { grid-template-columns: 1fr; } }

.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search .input { padding-left: 36px; }

/* ================= Cards & surfaces ================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 16px; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-body { padding: 8px 10px 12px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { font-size: 18px; }
.section-title a { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.section-title a:hover { color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1080px) { .grid-2 { grid-template-columns: 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kpi .k-label svg { width: 15px; height: 15px; }
.kpi .k-value { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin-top: 8px; line-height: 1; }
.kpi .k-foot { font-size: 12px; color: var(--muted); margin-top: 8px; }
.kpi.is-dark { background: var(--ink); border-color: var(--ink); }
.kpi.is-dark .k-label, .kpi.is-dark .k-foot { color: #A3A3A3; }
.kpi.is-dark .k-value { color: #fff; }
.kpi.is-late .k-value { color: var(--red); }

/* ================= Avatars ================= */
.av {
  --s: 28px; width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: calc(var(--s) * .38); font-weight: 600; color: #fff; background: var(--ink); letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--surface);
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { --s: 20px; }
.av-sm { --s: 24px; }
.av-md { --s: 34px; }
.av-lg { --s: 46px; }
.av-xl { --s: 64px; font-family: var(--display); }
.av-empty { background: var(--surface); color: var(--faint); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.av-empty svg { width: 55%; height: 55%; }
.av-client { border-radius: 30%; background: var(--ink); font-family: var(--display); }
.av-stack { display: inline-flex; }
.av-stack .av + .av { margin-left: -7px; }

/* ================= Badges / pills ================= */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-a_fazer { background: var(--gray-bg); color: var(--text-2); }
.st-fazendo { background: var(--blue-bg); color: var(--blue); }
.st-revisao { background: var(--amber-bg); color: var(--amber); }
.st-alteracao { background: #FDECEF; color: #BE123C; }
.st-feito { background: var(--green-bg); color: var(--green); }
.pill-late { background: var(--red-bg); color: var(--red); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-line { background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); }
.cs-ativo { background: var(--green-bg); color: var(--green); }
.cs-pausado { background: var(--amber-bg); color: var(--amber); }
.cs-concluido { background: var(--ink); color: #fff; }
.cs-cancelado { background: var(--gray-bg); color: var(--muted); }

.date-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background .15s;
}
.date-chip svg { width: 13px; height: 13px; opacity: .7; }
.date-chip.is-late { color: var(--red); background: var(--red-bg); font-weight: 600; }
.date-chip.is-today { color: var(--amber); background: var(--amber-bg); font-weight: 600; }
.date-chip.is-empty { color: var(--faint); }
button.date-chip:hover { background: var(--hover); }
button.date-chip.is-late:hover { background: #FBDADA; }

/* ================= Progress ================= */
.bar { height: 6px; border-radius: 6px; background: var(--gray-bg); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ink); width: 0; transition: width .9s var(--ease); }
.bar-thin { height: 4px; }
.ring { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-track { stroke: var(--gray-bg); }
.ring .ring-fill { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring .ring-txt { position: absolute; font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

/* ================= Checkbox ================= */
.check {
  width: 20px; height: 20px; border-radius: 7px; flex-shrink: 0; position: relative;
  border: 1.6px solid #C4C4BE; background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s, transform .18s var(--spring);
}
.check:hover { border-color: var(--ink); }
.check svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s var(--spring); }
.check.on { background: var(--ink); border-color: var(--ink); }
.check.on svg { opacity: 1; transform: scale(1); }
.check.pop { animation: pop .38s var(--spring); }
.check-round { border-radius: 50%; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(.78); } 100% { transform: scale(1); } }

/* ================= Tabs ================= */
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; background: var(--press); border-radius: 12px; }
.tab { position: relative; z-index: 1; height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); }
.tab .tab-n { font-size: 11px; color: var(--faint); font-weight: 600; }
.tabs-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--surface); border-radius: 9px; box-shadow: var(--sh-1), 0 1px 3px rgba(10,10,10,.08); transition: left .32s var(--ease), width .32s var(--ease); }
.tabs-scroll { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 3px; gap: 2px; }
.seg button { height: 30px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
.seg button svg { width: 15px; height: 15px; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--ink); color: #fff; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }

/* ================= Task rows ================= */
.task {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; position: relative;
  transition: background .15s, opacity .2s, transform .2s var(--ease);
}
.task:hover { background: var(--hover); }
.task .t-main { flex: 1; min-width: 0; cursor: pointer; }
.task .t-title { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.task .t-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; }
.task .t-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.task .t-meta svg { width: 12px; height: 12px; }
.task .t-side { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.task.done .t-title { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--faint); }
.task .grip { position: absolute; left: -14px; color: var(--faint); opacity: 0; cursor: grab; display: flex; padding: 4px 0; }
.task:hover .grip { opacity: 1; }
.task .grip svg { width: 12px; height: 12px; }
.task.dragging { opacity: .35; }
.task.drop-before { box-shadow: 0 -2px 0 var(--ink); }
.task.drop-after { box-shadow: 0 2px 0 var(--ink); }
.task .t-btn { border-radius: 50%; transition: transform .15s var(--ease); display: inline-flex; }
.task .t-btn:hover { transform: scale(1.08); }
.task .sub-count { display: inline-flex; align-items: center; gap: 4px; }
.task-list { display: flex; flex-direction: column; gap: 1px; }
.task.leaving { opacity: 0; transform: translateX(10px); }

@media (max-width: 640px) {
  .task { flex-wrap: wrap; }
  .task .t-side { width: 100%; padding-left: 32px; }
}

/* ================= Etapas (checklist sections) ================= */
.etapa { margin-bottom: 14px; overflow: visible; }
.etapa-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px 18px; }
.etapa-toggle { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; }
.etapa-toggle .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); flex-shrink: 0; }
.etapa.collapsed .etapa-toggle .chev { transform: rotate(-90deg); }
.etapa-num { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.etapa.complete .etapa-num { background: var(--green); }
.etapa-name { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etapa-name-input { font-family: var(--display); font-size: 17px; font-weight: 700; border: none; border-bottom: 1.5px solid var(--ink); background: none; padding: 0 0 1px; min-width: 120px; color: var(--ink); }
.etapa-name-input:focus { outline: none; }
.etapa-stats { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.etapa-stats .bar { width: 90px; }
.etapa-num svg { width: 13px; height: 13px; }
.etapa .task-list, .etapa .quick-add { margin-left: 16px; }
.topbar .crumb svg { width: 14px; height: 14px; }
.etapa-body { padding: 0 10px 10px 6px; display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease); }
.etapa.collapsed .etapa-body { grid-template-rows: 0fr; padding-bottom: 0; }
.etapa-body > div { overflow: hidden; min-height: 0; }
.etapa.drop-zone { box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 640px) { .etapa-stats .bar { display: none; } .etapa .task-list, .etapa .quick-add { margin-left: 0; } }

.quick-add { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; color: var(--muted); transition: background .15s; }
.quick-add:hover { background: var(--hover); }
.quick-add .plus { width: 20px; height: 20px; border-radius: 7px; border: 1.6px dashed #C4C4BE; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-add .plus svg { width: 12px; height: 12px; }
.quick-add input { flex: 1; border: none; background: none; font-size: 14px; color: var(--text); height: 26px; }
.quick-add input:focus { outline: none; }
.quick-add input::placeholder { color: var(--muted); }
.quick-add:focus-within { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.quick-add:focus-within .plus { border-style: solid; border-color: var(--ink); color: var(--ink); }

.add-etapa {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); font-weight: 600; font-size: 13.5px;
  transition: border-color .15s, color .15s, background .15s;
}
.add-etapa:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.add-etapa svg { width: 16px; height: 16px; }

/* ================= Kanban ================= */
.board { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.col { background: var(--press); border-radius: var(--r-lg); padding: 10px; min-height: 160px; transition: background .2s, box-shadow .2s; }
.col.over { background: #E2E2DE; box-shadow: inset 0 0 0 2px var(--ink); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.col-head .pill { height: 22px; }
.col-head .n { font-size: 12px; color: var(--muted); font-weight: 600; }
.col-cards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: grab;
  box-shadow: var(--sh-1); transition: box-shadow .2s, transform .2s var(--ease), opacity .2s;
}
.kcard:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .4; transform: rotate(1.5deg); }
.kcard .kc-client { font-size: 11.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.kcard .kc-title { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.kcard .kc-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.kcard .kc-foot .spacer { flex: 1; }
.kcard .kc-sub { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.kcard .kc-sub svg { width: 12px; height: 12px; }
.kcard.is-late { border-left: 3px solid var(--red); }
@media (max-width: 900px) { .board { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; } }

/* ================= Client cards ================= */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ccard { padding: 18px; display: flex; flex-direction: column; gap: 16px; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; cursor: pointer; }
.ccard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--line-2); }
.ccard .cc-top { display: flex; align-items: center; gap: 12px; }
.ccard .cc-name { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.ccard .cc-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .cc-prog { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.ccard .cc-prog b { color: var(--ink); font-weight: 600; }
.ccard .cc-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ccard .cc-foot .spacer { flex: 1; }
.ccard .cc-next { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ccard .cc-next b { color: var(--text); font-weight: 500; }

/* ================= Client hero ================= */
.hero { display: flex; align-items: center; gap: 22px; padding: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.hero .av-xl { cursor: pointer; position: relative; }
.hero .av-xl::after { content: 'trocar'; position: absolute; inset: 0; background: rgba(10,10,10,.6); color: #fff; font-size: 10px; font-family: var(--font); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.hero .av-xl:hover::after { opacity: 1; }
.hero .h-info { flex: 1; min-width: 220px; }
.hero h2 { font-size: 28px; }
.hero .h-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 7px; }
.hero .h-stats { display: flex; gap: 26px; align-items: center; }
.hero .h-stat .v { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.hero .h-stat .l { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.hero .h-stat.late .v { color: var(--red); }
@media (max-width: 640px) { .hero { padding: 18px; gap: 16px; } .hero .h-stats { width: 100%; justify-content: space-between; gap: 10px; } }

/* ================= Member rows ================= */
.load-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background .15s; }
.load-row:hover { background: var(--hover); }
.load-row .lr-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.load-row .lr-sub { font-size: 12px; color: var(--muted); }
.load-row .lr-main { flex: 1; min-width: 0; }
.load-row .lr-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--gray-bg); margin-top: 7px; }
.load-row .lr-bar span { height: 100%; transition: width .9s var(--ease); width: 0; }
.load-row .lr-n { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); min-width: 28px; text-align: right; }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mcard { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mcard .mc-top { display: flex; align-items: center; gap: 12px; }
.mcard .mc-name { font-weight: 700; font-family: var(--display); font-size: 17px; color: var(--ink); }
.mcard .mc-sub { font-size: 12.5px; color: var(--muted); }
.mcard .mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mcard .mc-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.mcard .mc-stat .v { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1; }
.mcard .mc-stat .l { font-size: 11px; color: var(--muted); margin-top: 4px; }
.mcard .mc-stat.late .v { color: var(--red); }

.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color-opt { width: 28px; height: 28px; border-radius: 50%; transition: transform .15s var(--spring), box-shadow .15s; }
.color-opt:hover { transform: scale(1.1); }
.color-opt.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

/* ================= Files ================= */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.file { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--ease); }
.file:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.file .f-prev { height: 150px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; }
.file .f-prev img { width: 100%; height: 100%; object-fit: cover; }
.file .f-prev iframe { width: 200%; height: 300px; border: none; transform: scale(.5); transform-origin: top left; pointer-events: none; position: absolute; top: 0; left: 0; }
.file .f-ext { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--faint); letter-spacing: .04em; }
.file .f-body { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.file .f-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .f-meta { font-size: 11.5px; color: var(--muted); }
.file .f-tag { position: absolute; top: 10px; left: 10px; }
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 26px; text-align: center; color: var(--muted);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.dropzone svg { width: 26px; height: 26px; margin: 0 auto 8px; }
.dropzone b { color: var(--ink); }

/* ================= Modals ================= */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface);
  border-radius: var(--r-xl); box-shadow: var(--sh-3);
  transform: translateY(14px) scale(.97); opacity: 0; transition: transform .32s var(--spring), opacity .22s var(--ease);
}
.overlay.open .modal { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 6px; }
.modal-head h3 { font-size: 20px; }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.modal-body { padding: 14px 24px 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 22px; }
.modal-lg { max-width: 920px; }

/* recorte de foto de perfil */
.crop { position: relative; margin: 0 auto; overflow: hidden; border-radius: 14px; background: var(--ink); touch-action: none; cursor: grab; user-select: none; }
.crop:active { cursor: grabbing; }
.crop img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; }
.crop-frame { position: absolute; inset: 0; border-radius: 30%; box-shadow: 0 0 0 999px rgba(10,10,10,.5); border: 2px solid rgba(255,255,255,.85); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 16px auto 0; max-width: 280px; color: var(--muted); font-weight: 600; }
.crop-zoom input { flex: 1; accent-color: var(--ink); }
.modal-viewer .modal-body { padding: 0; height: 76vh; }
.modal-viewer iframe { width: 100%; height: 100%; border: none; display: block; }
.modal-viewer .v-img { width: 100%; height: 100%; overflow: auto; display: flex; justify-content: center; background: var(--surface-2); }
.modal-viewer .v-img img { max-width: 100%; height: auto; align-self: flex-start; }
.x-btn { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; transition: background .15s, color .15s; }
.x-btn:hover { background: var(--hover); color: var(--ink); }
.x-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92vh; transform: translateY(40px); }
}

/* ================= Drawer ================= */
.drawer-ov { position: fixed; inset: 0; z-index: 70; background: rgba(10,10,10,.28); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-ov.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(560px, 100vw); background: var(--surface);
  box-shadow: var(--sh-3); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .38s var(--ease);
}
.drawer.open { transform: none; }
.dr-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.dr-head .dr-client { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); min-width: 0; flex: 1; }
.dr-head .dr-client a:hover { color: var(--ink); text-decoration: underline; }
.dr-head .dr-client span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-saved { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; opacity: 0; transition: opacity .3s; }
.dr-saved.show { opacity: 1; }
.dr-saved svg { width: 13px; height: 13px; color: var(--green); }
.dr-body { flex: 1; overflow-y: auto; padding: 22px 24px 30px; }
.dr-title {
  width: 100%; border: none; resize: none; background: none; font-family: var(--display); font-weight: 700;
  font-size: 24px; line-height: 1.25; color: var(--ink); letter-spacing: -0.02em; padding: 4px 0; overflow: hidden;
}
.dr-title:focus { outline: none; }
.dr-done-btn { margin: 14px 0 20px; }
.props { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; align-items: center; margin-bottom: 24px; }
.props .p-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; height: 36px; }
.props .p-label svg { width: 15px; height: 15px; }
.props .p-val { min-width: 0; }
.prop-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text); max-width: 100%; transition: background .15s; }
.prop-btn:hover { background: var(--hover); }
.prop-btn .placeholder { color: var(--faint); }
.prop-input { height: 34px; border: 1px solid transparent; border-radius: 9px; padding: 0 10px; background: none; font-size: 13.5px; width: 100%; transition: border-color .15s, background .15s; }
.prop-input:hover { background: var(--hover); }
.prop-input:focus { outline: none; border-color: var(--line-2); background: var(--surface); }
.status-seg { display: flex; flex-wrap: wrap; gap: 5px; }
.status-seg button { height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface); transition: all .18s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.status-seg button .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-seg button:hover { border-color: #BFBFB9; color: var(--text); }
.status-seg button.active.st-a_fazer { background: var(--gray-bg); border-color: transparent; color: var(--text); }
.status-seg button.active.st-fazendo { background: var(--blue-bg); border-color: transparent; color: var(--blue); }
.status-seg button.active.st-revisao { background: var(--amber-bg); border-color: transparent; color: var(--amber); }
.status-seg button.active.st-alteracao { background: #FDECEF; border-color: transparent; color: #BE123C; }
.status-seg button.active.st-feito { background: var(--green-bg); border-color: transparent; color: var(--green); }
.status-seg button:not(.active) { background: var(--surface) !important; }
.dr-section { margin-top: 26px; }
.dr-section-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dr-section-h h4 { font-size: 14px; font-family: var(--font); font-weight: 700; letter-spacing: 0; color: var(--text); }
.dr-section-h .n { font-size: 12px; color: var(--muted); }
.subs { display: flex; flex-direction: column; gap: 1px; }
.subitem { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; transition: background .15s; }
.subitem:hover { background: var(--hover); }
.subitem input.sub-txt { flex: 1; border: none; background: none; font-size: 13.5px; height: 26px; color: var(--text); }
.subitem input.sub-txt:focus { outline: none; }
.subitem.done input.sub-txt { color: var(--faint); text-decoration: line-through; }
.subitem .x { opacity: 0; color: var(--faint); width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; transition: opacity .15s, color .15s, background .15s; }
.subitem:hover .x { opacity: 1; }
.subitem .x:hover { color: var(--red); background: var(--red-bg); }
.subitem .x svg { width: 14px; height: 14px; }
.subitem .check { width: 18px; height: 18px; border-radius: 6px; }
.dr-foot { padding: 14px 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ================= Popover menu ================= */
.pop {
  position: fixed; z-index: 120; min-width: 210px; max-width: 300px; max-height: 340px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px;
  transform-origin: top left; animation: popIn .2s var(--spring);
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(-4px); } to { opacity: 1; transform: none; } }
.pop-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text); text-align: left; transition: background .12s; }
.pop-item:hover, .pop-item.kb { background: var(--hover); }
.pop-item svg.ic { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.pop-item .tick { margin-left: auto; width: 15px; height: 15px; color: var(--ink); }
.pop-item.danger { color: var(--red); }
.pop-item.danger svg.ic { color: var(--red); }
.pop-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.pop-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }

/* ================= Toast ================= */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--sh-3); pointer-events: auto;
  animation: toastIn .35s var(--spring);
}
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast.ok svg { color: #4ADE80; }
.toast.err { background: var(--red); }
.toast .undo { margin-left: 6px; font-weight: 700; text-decoration: underline; color: #fff; }
.toast.out { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ================= Empty / skeleton ================= */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .e-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--ink); box-shadow: var(--sh-1); }
.empty .e-ico svg { width: 24px; height: 24px; }
.empty h4 { font-size: 17px; margin-bottom: 6px; }
.empty p { font-size: 13.5px; max-width: 380px; margin: 0 auto; }
.empty .e-actions { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.empty-sm { padding: 22px 14px; font-size: 13px; color: var(--muted); text-align: center; }

.sk { background: linear-gradient(90deg, #ECECE9 0%, #F6F6F4 50%, #ECECE9 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.group-h { display: flex; align-items: center; gap: 10px; padding: 16px 12px 6px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.group-h .n { font-weight: 600; color: var(--faint); }
.group-h.late { color: var(--red); }
.group-h:first-child { padding-top: 6px; }

/* ================= Motion ================= */
.rise { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.settled .rise { animation: none; }
.fade { animation: fade .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.task.new { animation: newRow .45s var(--ease); }
@keyframes newRow { from { opacity: 0; transform: translateY(-6px); background: var(--hover); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= Login ================= */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 42%) 1fr; }
.login-art { background: var(--ink); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art .big { font-family: var(--display); font-size: clamp(34px, 4vw, 54px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; max-width: 520px; }
.login-art .big span { color: #6B6B6B; }
.login-art .foot { font-size: 12.5px; color: #6B6B6B; text-align: center; letter-spacing: .04em; }
.login-art { justify-content: center; }
.login-centro { flex: 1; display: flex; align-items: center; justify-content: center; }
.login-centro .logo { align-self: center; }
.login-art .grid-bg { mask-image: radial-gradient(circle at 50% 48%, #000 5%, transparent 62%); -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 5%, transparent 62%); }
.login-art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); pointer-events: none; }
.login-art > * { position: relative; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { font-size: 30px; margin-bottom: 6px; }
.login-box .lead { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.login-err { color: var(--red); font-size: 13px; min-height: 20px; margin-top: 10px; }
.login-mobile-logo { display: none; margin-bottom: 34px; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-mobile-logo { display: flex; justify-content: center; }
}

/* ================= Misc ================= */
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hide { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.flex { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kbd { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: var(--surface); }
.link { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.danger-zone { border: 1px solid #F3C9C9; border-radius: var(--r-lg); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); }
.danger-zone h4 { font-size: 15px; font-family: var(--font); letter-spacing: 0; }
.danger-zone p { font-size: 13px; color: var(--muted); }

.switch { position: relative; width: 38px; height: 22px; border-radius: 22px; background: var(--line-2); flex-shrink: 0; transition: background .2s; display: inline-block; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--spring); }
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(16px); }
.toggle-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.toggle-row .tr-t { font-weight: 600; font-size: 14px; color: var(--text); }
.toggle-row .tr-s { font-size: 12.5px; color: var(--muted); }
.link-field { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.link-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,10,.07); }
.link-field .pre { padding: 0 2px 0 12px; color: var(--muted); font-size: 13.5px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.link-field input { flex: 1; min-width: 60px; border: none; height: 40px; padding: 0 12px 0 0; font-size: 14px; font-weight: 600; background: none; }
.link-field input:focus { outline: none; }

.topbar > div:not(.spacer):not(.actions) { min-width: 0; }
.topbar .actions { flex-shrink: 0; }
@media (max-width: 640px) {
  .topbar { gap: 10px; }
  .topbar h1, .topbar .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .actions .lbl { display: none; }
  .topbar .actions .btn { padding: 0 11px; }
  .topbar .hide-m { display: none !important; }
  .hero h2 { font-size: 22px; }
  .hero .av-xl { --s: 52px; }
  .kpi .k-value { font-size: 30px; }
  .card-head { padding: 14px 16px; }
}

/* ================= Reuniões ================= */
.reunioes { display: flex; flex-direction: column; gap: 14px; }
.reuniao { overflow: hidden; }
.rn-head { display: flex; align-items: center; gap: 14px; padding: 16px 14px 12px 18px; }
.rn-date { width: 46px; height: 50px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.rn-date b { font-family: var(--display); font-size: 19px; font-weight: 700; }
.rn-date span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; color: #A3A3A3; }
.rn-info { flex: 1; min-width: 0; }
.rn-title { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.rn-cli { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.rn-cli:hover { text-decoration: underline; }
.rn-assign { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 18px 12px; padding: 10px 12px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-size: 13px; font-weight: 600; }
.rn-body { padding: 0 18px 18px 78px; }
.rn-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rn-list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.rn-list li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.rn-p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.rn-empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.rn-sug { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.rn-sug-h { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rn-sug-h svg { width: 15px; height: 15px; }
.rn-sug-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.rn-sug-item:hover { background: var(--hover); }
.rn-sug-item input { position: absolute; opacity: 0; pointer-events: none; }
.rn-sug-item .check { width: 18px; height: 18px; border-radius: 6px; }
.rn-sug-t { flex: 1; min-width: 0; }
.rn-transcript { white-space: pre-wrap; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
@media (max-width: 640px) { .rn-body { padding-left: 18px; } }
.rn-open { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-align: left; border-radius: 12px; padding: 2px; }
.rn-open .rn-info { display: flex; flex-direction: column; }
.rn-open .rn-meta { display: flex; }
.rn-go { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 9px; flex-shrink: 0; transition: background .15s, color .15s; }
.rn-go svg { width: 15px; height: 15px; }
.reuniao:hover .rn-go { background: var(--hover); color: var(--ink); }
.reuniao .rn-head { padding: 14px 12px 14px 16px; }
.reuniao:has(.rn-assign) .rn-head { padding-bottom: 10px; }
.rn-transcript mark { background: #FDE68A; color: inherit; border-radius: 3px; padding: 0 1px; }
.drive-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-2); }
.drive-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.drive-bar.on .dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.drive-bar .btn { margin-left: auto; }
.steps-list { list-style: none; counter-reset: passo; display: flex; flex-direction: column; gap: 18px; }
.steps-list li { counter-increment: passo; position: relative; padding-left: 40px; font-size: 14px; color: var(--text-2); }
.steps-list li::before { content: counter(passo); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps-list b { color: var(--ink); }
@media (max-width: 640px) { .rn-go span { display: none; } }

/* galeria em tela cheia (carrosséis, artes) */
.gal { position: fixed; inset: 0; z-index: 400; background: #0A0A0A; color: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s var(--ease); }
.gal.open { opacity: 1; }
.gal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.gal-t { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.gal-t b { font-family: var(--display); font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-t span { font-size: 12.5px; color: rgba(255,255,255,.55); white-space: nowrap; }
.gal-acts { display: flex; gap: 8px; flex-shrink: 0; }
.gal-btn { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 600 13px var(--font); text-decoration: none; transition: background .15s; }
.gal-btn:hover { background: rgba(255,255,255,.16); }
.gal-btn svg { width: 17px; height: 17px; }
.gal-x { padding: 0; }
.gal-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 70px 14px; touch-action: pan-y; user-select: none; }
.gal-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: galIn .3s var(--ease); }
.gal-stage iframe { width: min(960px, 100%); height: 100%; border: none; border-radius: 8px; background: #fff; }
@keyframes galIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.gal-file { text-align: center; }
.gal-file span { font-family: var(--display); font-weight: 800; font-size: 48px; }
.gal-file p { color: rgba(255,255,255,.6); margin: 8px 0 18px; font-size: 14px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.gal-nav:hover { background: rgba(255,255,255,.2); }
.gal-nav svg { width: 22px; height: 22px; }
.gal-nav.prev { left: 14px; }
.gal-nav.next { right: 14px; }
.gal-thumbs { display: flex; gap: 8px; padding: 4px 18px 18px; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { width: 52px; height: 64px; flex-shrink: 0; border-radius: 8px; overflow: hidden; opacity: .45; border: 2px solid transparent; background: rgba(255,255,255,.08); color: #fff; font: 700 10px var(--font); transition: opacity .15s, border-color .15s; }
.gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs button.on { opacity: 1; border-color: #fff; }
@media (max-width: 640px) {
  .gal-stage { padding: 4px 10px 10px; }
  .gal-nav { display: none; }
  .gal-btn span { display: none; }
  .gal-btn { padding: 0; }
}

/* aba Arquivos: materiais agrupados por categoria */
.mat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.mat-head h2 { font-size: 20px; }
.mat-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mat-grupo + .mat-grupo { margin-top: 30px; }
.mat-grupo-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 34px; }
.mat-grupo-h h3 { font-size: 16px; }
.mat-grupo-h .n { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.mat-vazio { width: 100%; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); transition: border-color .15s, color .15s; }
.mat-vazio:hover { border-color: var(--ink); color: var(--ink); }
.mat-vazio svg { width: 26px; height: 26px; margin-bottom: 4px; }
.mat-vazio b { color: var(--ink); font-size: 15px; }
.mat-vazio span { font-size: 13px; max-width: 420px; line-height: 1.5; }
.file .f-prev.esconde::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.55); }
.file .f-body .x-btn.on { color: var(--ink); }
.file .f-tag .pill svg { width: 12px; height: 12px; }
.peca-off { font-size: 11px; font-weight: 600; color: var(--amber); }
.add-seg { display: flex; width: 100%; }
.add-seg button { flex: 1; justify-content: center; height: 36px; }
.am-drop { display: block; margin-top: 14px; }
.am-drop svg { display: block; }
.am-n { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.link-btn { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.link-prev { position: relative; margin-top: 10px; aspect-ratio: 16 / 9; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13px; }
.link-prev img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.link-prev .lp-host { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(10,10,10,.8); color: #fff; font-size: 12px; font-weight: 600; }
.link-prev .lp-host svg { width: 13px; height: 13px; }
.junta { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); cursor: pointer; margin-top: 12px; }
.junta input { margin-top: 3px; accent-color: var(--ink); }
.junta b { display: block; font-size: 13.5px; color: var(--text); }
.junta span { font-size: 12.5px; color: var(--muted); }
.up-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.up-thumbs span { width: 44px; height: 54px; border-radius: 7px; overflow: hidden; background: var(--gray-bg); display: inline-flex; align-items: center; justify-content: center; font: 700 9.5px var(--font); color: var(--muted); }
.up-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* exclusão em massa na caixa "Sem cliente" */
.massa { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 13px; color: var(--muted); }

/* prévia de pasta do Drive no "Adicionar > Link" */
.link-prev.drive { aspect-ratio: auto; display: block; padding: 12px; color: var(--text); }
.lp-drive-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; }
.lp-drive-h svg { width: 16px; height: 16px; }
.lp-drive-h span { color: var(--muted); font-size: 12px; }
.lp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lp-grid img, .lp-grid span { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; font: 700 10px var(--font); color: var(--muted); }
.lp-erro { color: var(--red); padding: 0 18px; text-align: center; line-height: 1.5; }

/* categoria de tarefa */
.cat-tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, white); color: color-mix(in srgb, var(--c) 80%, black); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cat-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cats-tarefa { margin-top: 24px; }
.ct-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ct-head h3 { font-size: 17px; }
.ct-head p { font-size: 13px; color: var(--muted); margin-top: 3px; max-width: 560px; }
.ct-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ct-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.ct-cor { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px var(--surface); transition: transform .15s var(--spring); }
.ct-cor:hover { transform: scale(1.15); }
.ct-nome { font-weight: 600; font-size: 14px; }
.ct-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== texto das entregas (roteiros, legendas): documento, editor e "o que mudou" ===== */
.doc { color: #27272A; font-size: 16px; line-height: 1.75; word-break: break-word; }
.doc > :first-child { margin-top: 0; }
.doc p { margin: 0 0 .95em; }
.doc h2 { font-family: var(--display); font-size: 1.45em; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); margin: 1.6em 0 .55em; }
.doc h3 { font-family: var(--display); font-size: 1.12em; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); margin: 1.35em 0 .4em; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.4em; }
.doc li { margin: .3em 0; padding-left: .2em; }
.doc li::marker { color: var(--faint); font-weight: 600; }
.doc blockquote { margin: 1.2em 0; padding: .9em 1.1em; border-left: 3px solid var(--ink); background: #F6F6F3; border-radius: 0 10px 10px 0; color: var(--ink); font-weight: 500; }
.doc hr { border: none; height: 1px; background: var(--line-2); margin: 1.8em 0; }
.doc strong { font-weight: 700; color: var(--ink); }

.ed { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ed:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,10,.06); }
.ed-bar { display: flex; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; z-index: 2; flex-wrap: wrap; }
.ed-bar button { min-width: 32px; height: 30px; padding: 0 7px; border-radius: 7px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; transition: background .12s, color .12s; }
.ed-bar button:hover { background: var(--press); color: var(--ink); }
.ed-bar button svg { width: 16px; height: 16px; }
.ed-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.ed-doc { min-height: 260px; max-height: 58vh; overflow-y: auto; padding: 18px 20px; outline: none; font-size: 15px; }
.ed-doc.vazio::before { content: attr(data-ph); color: var(--faint); position: absolute; pointer-events: none; }
.ed-doc.vazio { position: relative; }

.df { white-space: pre-wrap; font-size: 14px; line-height: 1.7; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; max-height: 340px; overflow-y: auto; word-break: break-word; }
.df del { background: #FDE4E4; color: #9F1D1D; text-decoration: line-through; text-decoration-color: rgba(159,29,29,.5); border-radius: 3px; padding: 0 1px; }
.df ins { background: #DDF3E4; color: #11612F; text-decoration: none; border-radius: 3px; padding: 0 1px; font-weight: 500; }
.df .df-gap { color: var(--faint); padding: 0 4px; }
.lg-tag { color: var(--blue); }

/* acompanhamento do cliente na aba Materiais */
.st-cli { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.st-cli svg { width: 12px; height: 12px; }
.st-cli.ok { background: var(--green-bg); color: var(--green); }
.st-cli.aj { background: var(--amber-bg); color: var(--amber); }
.st-cli.ed { background: var(--blue-bg); color: var(--blue); }
.st-cli.esp { background: var(--gray-bg); color: var(--muted); }
.f-stat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px; margin-top: -4px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.f-stat .vz { display: inline-flex; align-items: center; gap: 4px; }
.f-stat .vz svg { width: 13px; height: 13px; }
.f-novo { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff; }
.f-prev.texto { background: #F1F1EE; align-items: flex-start; padding: 16px 18px 0; }
.f-paper { width: 100%; height: 100%; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 6px 18px -8px rgba(10,10,10,.18); padding: 14px 14px 0; overflow: hidden; font-size: 7.5px; line-height: 1.55; color: var(--text-2); }
.f-paper b { display: block; font-family: var(--display); font-size: 11px; color: var(--ink); margin-bottom: 6px; line-height: 1.2; }
.f-paper p { white-space: pre-wrap; }

.acomp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; margin-bottom: 26px; }
.acomp-c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
.acomp-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.acomp-h h4 { font-size: 14px; }
.acomp-n { display: flex; gap: 18px; flex-wrap: wrap; }
.acomp-n div { display: flex; flex-direction: column; }
.acomp-n b { font-family: var(--display); font-size: 24px; line-height: 1.1; color: var(--ink); }
.acomp-n span { font-size: 12px; color: var(--muted); }
.acomp-ult { font-size: 12.5px; color: var(--muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.acomp-ult b { color: var(--text); font-weight: 600; }
.nov { display: flex; flex-direction: column; }
.nov-i { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 9px; cursor: pointer; text-align: left; width: 100%; }
.nov-i:hover { background: var(--hover); }
.nov-ic { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nov-ic svg { width: 15px; height: 15px; }
.nov-t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.nov-t b { font-weight: 600; }
.nov-t span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nov-vazio { font-size: 13px; color: var(--muted); padding: 6px 0; }
.ic-ok { background: var(--green-bg); color: var(--green); }
.ic-aj { background: var(--amber-bg); color: var(--amber); }
.ic-ed { background: var(--blue-bg); color: var(--blue); }
.ic-vz { background: var(--gray-bg); color: var(--muted); }

.tl { display: flex; flex-direction: column; }
.tl-i { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tl-i:last-child { border-bottom: none; }
.tl-b { flex: 1; min-width: 0; }
.tl-t { font-size: 13.5px; color: var(--text); }
.tl-t b { font-weight: 600; }
.tl-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tl-msg { margin-top: 8px; background: var(--amber-bg); color: #6B3A06; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.tl-i .df { margin-top: 8px; }
.tl-novo { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-left: 6px; vertical-align: middle; }
.tab .tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-left: 4px; vertical-align: middle; }
.cc-nov { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--blue-bg); color: var(--blue); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cc-nov::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.leg-box { margin-top: 14px; }
.leg-box .textarea { min-height: 120px; }
@media (max-width: 760px) { .acomp { grid-template-columns: 1fr; } }
.modal-head p svg { width: 14px; height: 14px; vertical-align: -2px; }
.eq-senha { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.eq-senha-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.eq-senha-h b { font-size: 13px; }
.eq-senha-v { font: 700 15px var(--font); letter-spacing: .08em; color: var(--ink); }
.eq-senha p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ===== tarefa: abas (Detalhes / Roteiro / Legenda / Atividade), vários responsáveis, atividade ===== */
.av-mais { background: var(--gray-bg); color: var(--text-2); font-weight: 700; }
.dr-tabs { display: flex; gap: 2px; margin: 18px 0 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dr-tabs::-webkit-scrollbar { display: none; }
.dr-tabs button { position: relative; height: 38px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.dr-tabs button:hover { color: var(--ink); }
.dr-tabs button.on { color: var(--ink); }
.dr-tabs button.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.dr-tabs .n { font-size: 11px; color: var(--faint); }
.dr-tabs .ok-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.dr-pane { padding-top: 14px; }
.dr-nota { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 12px; line-height: 1.45; }
.dr-nota svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.dr-nota.ok { background: var(--green-bg); border-color: transparent; color: var(--green); }
.dr-nota.aj { background: #FDECEF; border-color: transparent; color: #9F1239; }
.dr-pane .ed-doc { max-height: none; min-height: 300px; }
.dr-pane .textarea { min-height: 220px; }
.dr-acts { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dr-acts .muted { font-size: 12px; }
.resp-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.resp-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px 0 3px; border-radius: 999px; background: var(--gray-bg); font-size: 13px; font-weight: 500; }
.resp-chip .av { --s: 24px; }
.resp-chip small { font-size: 10.5px; color: var(--muted); font-weight: 600; }

.atv { display: flex; flex-direction: column; gap: 2px; }
.atv-i { display: flex; gap: 10px; padding: 9px 0; }
.atv-i .av { flex-shrink: 0; }
.atv-b { flex: 1; min-width: 0; }
.atv-h { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.atv-h b { color: var(--text); font-weight: 600; font-size: 13px; }
.atv-h .x { margin-left: auto; opacity: 0; color: var(--faint); font-size: 12px; }
.atv-i:hover .atv-h .x { opacity: 1; }
.atv-h .x:hover { color: var(--red); }
.atv-txt { margin-top: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 9px 12px; font-size: 13.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.atv-i.sis { padding: 5px 0; }
.atv-i.sis .atv-h { font-size: 12.5px; }
.atv-ic { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--gray-bg); color: var(--muted); }
.atv-ic svg { width: 13px; height: 13px; }
.atv-i.cli .atv-ic { background: var(--blue-bg); color: var(--blue); }
.atv-i.cli .atv-txt { background: var(--blue-bg); border-color: transparent; }
.atv-tarefa { font-size: 12px; color: var(--muted); margin-top: 1px; }
.atv-tarefa button { color: var(--text-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.atv-novo { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.atv-novo .textarea { min-height: 44px; height: 44px; resize: none; }
.atv-vazio { font-size: 13px; color: var(--muted); padding: 14px 0; }

/* checklist: seleção pra excluir várias tarefas de uma vez */
.task.sel-on { background: var(--blue-bg); }
.task .sel-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.task.sel-on .sel-box { background: var(--blue); border-color: var(--blue); }
.task .sel-box svg { width: 13px; height: 13px; stroke-width: 3; }
.sel-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 250; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 8px 8px 18px; border-radius: 14px; box-shadow: var(--sh-3); font-size: 13.5px; font-weight: 600; animation: pvUpS .3s var(--ease); white-space: nowrap; }
@keyframes pvUpS { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sel-bar .btn { height: 34px; }
.sel-bar .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: transparent; box-shadow: none; }
.etapa-sel { font-size: 12px; font-weight: 600; color: var(--blue); padding: 4px 8px; border-radius: 7px; }
.etapa-sel:hover { background: var(--blue-bg); }

/* "Sobre" do cliente no topo */
.h-sobre { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; max-width: 640px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; text-align: left; }
.h-sobre:hover { color: var(--ink); }
.h-sobre.vazio { color: var(--faint); }
.atz { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.atz-sobre { position: sticky; top: 16px; }
.atz-sobre p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; }
@media (max-width: 900px) { .atz { grid-template-columns: 1fr; } .atz-sobre { position: static; order: -1; } }
.prop-btn > svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--faint); }
.prop-btn { white-space: nowrap; }
.prop-btn .resp-chips { white-space: normal; }

/* ===== materiais: status de produção, progresso e capa ===== */
.st-cli.pub { background: var(--ink); color: #fff; }
button.st-cli { cursor: pointer; transition: filter .15s; }
button.st-cli:hover { filter: brightness(.95); }
button.st-cli svg:last-child { width: 11px; height: 11px; opacity: .6; margin-left: -1px; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.st-dot.ed, .st-seg.ed { background: var(--blue); }
.st-dot.esp, .st-seg.esp { background: #C9C9C3; }
.st-dot.aj, .st-seg.aj { background: #F59E0B; }
.st-dot.ok, .st-seg.ok { background: var(--green); }
.st-dot.pub, .st-seg.pub { background: var(--ink); }
.st-seg.vazio { background: var(--gray-bg); }
.mat-barra { display: flex; gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; margin: 2px 0 14px; }
.mat-barra .st-seg { height: 100%; min-width: 6px; }
.acomp-pct { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); }
.acomp-n span { display: inline-flex; align-items: center; gap: 5px; }
.mat-filtros { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 18px; }
.chip-f { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: 600 12.5px var(--font); display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip-f b { color: var(--faint); font-weight: 700; }
.chip-f:hover { border-color: var(--ink); color: var(--ink); }
.chip-f.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-f.on b { color: rgba(255,255,255,.6); }
.mat-prog { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.mat-prog .bar, .mat-prog > div { width: 90px; }
.h-stat.h-mat .v small { font-size: .55em; color: var(--faint); font-weight: 700; }
.f-stat { cursor: default; }
.f-stat[data-ativ] { cursor: pointer; }

.capa-campo { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); }
.capa-campo img, .capa-vazia { width: 64px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--gray-bg); }
.capa-vazia { display: inline-flex; align-items: center; justify-content: center; color: var(--faint); }
.capa-vazia svg { width: 22px; height: 22px; }
.capa-txt { min-width: 0; }
.capa-txt b { font-size: 13px; display: block; }
.capa-txt span { font-size: 12px; color: var(--muted); }
.capa-txt .btn { cursor: pointer; }

/* vídeo: miniatura com play por cima (cards, slides, prévia do Drive) e player na tela grande */
.v-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(10,10,10,.62); color: #fff; display: inline-flex; align-items: center; justify-content: center; pointer-events: none; backdrop-filter: blur(4px); }
.v-play svg { width: 18px; height: 18px; margin-left: 2px; }
.gal-thumbs button, .pv-thumbs button, .lp-th { position: relative; }
.gal-thumbs .v-play, .pv-thumbs .v-play, .lp-th .v-play { width: 22px; height: 22px; }
.gal-thumbs .v-play svg, .pv-thumbs .v-play svg, .lp-th .v-play svg { width: 11px; height: 11px; }
.lp-th { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--gray-bg); }
.lp-th img { width: 100%; height: 100%; object-fit: cover; }
.file .f-prev video, .mat-th video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.gal-stage video { max-width: 100%; max-height: 100%; border-radius: 8px; background: #000; }

/* vários links no "Adicionar" */
.am-links { display: flex; flex-direction: column; gap: 12px; }
.am-links .link-prev { margin-top: 8px; }
.am-links.varios .link-prev:not(.drive) { aspect-ratio: 3 / 1; }
.am-links.varios .am-link { padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }

/* peça com vários vídeos/arquivos: o nome de cada um aparece */
.file .f-itens { font-size: 11.5px; color: var(--text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-img { position: relative; display: block; width: 100%; height: 100%; }
.th-img img, .th-img video { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs.com-nome button { width: 120px; height: auto; display: flex; flex-direction: column; gap: 4px; background: none; overflow: visible; }
.gal-thumbs.com-nome .th-img { height: 70px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.08); }
.gal-thumbs.com-nome em, .pv-thumbs.com-nome em { font-style: normal; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
