/* lumi — estilos */
:root {
  --bg: #fbf8fe;
  --surface: #ffffff;
  --surface-2: #faf7fd;
  --line: #eee7f6;
  --line-2: #e4daf1;
  --ink: #33224a;
  --ink-2: #5b4b70;
  --muted: #8a7d9c;
  --brand: #8a5cd0;
  --brand-2: #7a4cc0;
  --brand-soft: #efe6fc;
  --brand-softer: #f6f0fd;

  --lav: #b99af0;  --lav-bg: #f1eafc;  --lav-ink: #7d55c6;
  --peach: #f7b98f; --peach-bg: #fff0e6; --peach-ink: #e07a3c;
  --mint: #8fd9b6; --mint-bg: #e5f6ee; --mint-ink: #2a9e69;
  --sky: #9cc5f2;  --sky-bg: #e8f1fc;  --sky-ink: #3d7fcf;
  --butter: #f5d27a; --butter-bg: #fdf3d8; --butter-ink: #b88413;
  --rose: #f4a9c4; --rose-bg: #fde9f1; --rose-ink: #cf4f80;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(80, 50, 120, .04), 0 8px 24px rgba(110, 70, 170, .06);
  --shadow-lg: 0 20px 60px rgba(70, 40, 120, .18);
  --sidebar: 248px;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.hidden { display: none !important; }
::selection { background: var(--brand-soft); }

/* ---------- logo */
.logo { display: inline-flex; align-items: flex-start; font-weight: 500; color: #3a2158; letter-spacing: -.04em; line-height: 1; user-select: none; }
.logo .word { font-size: 50px; color: #3a1d5c; }
.logo svg { width: 34px; height: 34px; margin-left: -5px; margin-top: -12px; filter: drop-shadow(0 2px 4px rgba(180, 140, 240, .35)); }
.logo.sm .word { font-size: 34px; }
.logo.sm svg { width: 24px; height: 24px; margin-top: -8px; }

/* ---------- boot / spinner */
.boot { height: 100vh; display: grid; place-items: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- layout */
.shell { display: flex; min-height: 100vh; position: relative; isolation: isolate; }
.shell::before, .shell::after { content: ''; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(10px); }
.shell::before { width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle at 30% 60%, #fde3d2 0, #f3dcf6 40%, #dfe9fb 70%, transparent 72%); opacity: .8; }
.shell::after { width: 420px; height: 420px; left: -180px; bottom: -200px; background: radial-gradient(circle, #e8dcfb 0, #fbe1ea 45%, #fdebd9 65%, transparent 70%); opacity: .9; }

.sidebar { width: var(--sidebar); flex-shrink: 0; position: sticky; top: 0; height: 100vh; padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(246, 239, 253, .9), rgba(250, 245, 253, .75)); border-right: 1px solid var(--line); overflow-y: auto; z-index: 5; }
.sidebar .logo { margin: 0 0 26px 18px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 14px; color: var(--ink-2); font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.nav-item svg { width: 21px; height: 21px; flex-shrink: 0; stroke-width: 1.6; }
.nav-item:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.nav-item .badge { margin-left: auto; }
.nav-sep { height: 1px; background: var(--line-2); margin: 14px 16px; }
.nav-label { font-size: 13px; color: var(--muted); padding: 4px 16px; display: flex; justify-content: space-between; align-items: center; }
.fav-item { display: flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; cursor: pointer; }
.fav-item:hover { background: rgba(255, 255, 255, .7); }
.fav-item .star { color: #f5c36b; width: 16px; height: 16px; flex-shrink: 0; }
.fav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-card { margin-top: auto; background: linear-gradient(160deg, #f1e8fd, #fbeef5); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; font-size: 13.5px; color: var(--ink-2); }
.tip-card h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.tip-card h4 svg { width: 18px; height: 18px; color: var(--brand); }
.tip-card .btn { width: 100%; margin-top: 12px; justify-content: center; }

.main { flex: 1; min-width: 0; padding: 22px 36px 48px; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; min-height: 52px; }
.topbar .spacer { flex: 1; }
.icon-btn.menu-btn { display: none; }

/* ---------- busca */
.search { position: relative; width: min(520px, 100%); }
.search input { width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .85); padding: 0 20px 0 50px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--lav); box-shadow: 0 0 0 4px var(--brand-softer); }
.search > svg { position: absolute; left: 18px; top: 14px; width: 20px; height: 20px; color: var(--muted); }
.search-results { position: absolute; top: 56px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 30; max-height: 420px; overflow: auto; }
.search-results .group { font-size: 12px; color: var(--muted); padding: 8px 12px 4px; text-transform: uppercase; letter-spacing: .04em; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; }
.search-results a:hover { background: var(--brand-softer); }
.search-results small { color: var(--muted); margin-left: auto; white-space: nowrap; }

.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); cursor: pointer; position: relative; color: var(--ink-2); transition: background .15s; }
.icon-btn:hover { background: #fff; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #f28a9b; border: 2px solid #fff; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm svg { width: 17px; height: 17px; }
.icon-btn.ghost { background: transparent; border-color: transparent; }
.icon-btn.ghost:hover { background: var(--brand-softer); }

.profile-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); cursor: pointer; }
.profile-btn svg { width: 18px; height: 18px; color: var(--ink-2); }

.dropdown { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; min-width: 220px; }
.dropdown .dd-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; background: none; border: 0; text-align: left; cursor: pointer; font-size: 14.5px; }
.dropdown .dd-item:hover { background: var(--brand-softer); }
.dropdown .dd-item svg { width: 18px; height: 18px; color: var(--ink-2); }
.dropdown .dd-item.danger { color: #c4425f; }
.dropdown .dd-item.danger svg { color: #c4425f; }
.dropdown .dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown .dd-head small { color: var(--muted); display: block; }
.notif-list { width: 360px; max-height: 440px; overflow: auto; }
.notif { display: flex; gap: 10px; padding: 10px; border-radius: 12px; font-size: 14px; }
.notif.unread { background: var(--brand-softer); }
.notif small { color: var(--muted); display: block; }

/* ---------- avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; flex-shrink: 0; overflow: hidden; background: var(--lav); border: 2px solid #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; border-width: 1.5px; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.avatars { display: flex; align-items: center; }
.avatars .avatar + .avatar, .avatars .avatar + .more { margin-left: -9px; }
.avatars .more { height: 28px; min-width: 28px; padding: 0 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; border: 2px solid #fff; }

/* ---------- botões & campos */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(180deg, #9567d8, #8152c8); color: #fff; box-shadow: 0 6px 16px rgba(130, 82, 200, .28); }
.btn-primary:hover { background: linear-gradient(180deg, #8b5cd0, #7546bd); }
.btn-soft { background: var(--brand-soft); color: var(--brand-2); }
.btn-soft:hover { background: #e7dafb; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: #fdebef; color: #c4425f; }
.btn-danger:hover { background: #fbdce3; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn svg { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--lav); box-shadow: 0 0 0 4px var(--brand-softer); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4b70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.check { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid #cfc2e2; background: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; margin: 0; transition: background .15s, border-color .15s; }
.check:checked { background: var(--brand); border-color: var(--brand); }
.check:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* ---------- pills / badges */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.no-dot::before { display: none; }
.st-planning { background: var(--sky-bg); color: var(--sky-ink); }
.st-todo { background: var(--peach-bg); color: var(--peach-ink); }
.st-doing { background: var(--lav-bg); color: var(--lav-ink); }
.st-review { background: var(--butter-bg); color: var(--butter-ink); }
.st-done { background: var(--mint-bg); color: var(--mint-ink); }
.pr-alta { background: var(--rose-bg); color: var(--rose-ink); }
.pr-media { background: var(--butter-bg); color: var(--butter-ink); }
.pr-baixa { background: var(--sky-bg); color: var(--sky-ink); }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }

/* ---------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px 24px; }
.card-title { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-title svg { width: 21px; height: 21px; color: var(--ink-2); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; gap: 12px; }
.section-head h2 { font-size: 20px; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--lav); margin: 0 auto 10px; display: block; }

/* ---------- início */
.hello h1 { font-size: 42px; font-weight: 500; letter-spacing: -.02em; }
.hello h1 b { font-weight: 700; }
.hello p { font-size: 19px; color: var(--ink-2); margin: 6px 0 26px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { display: flex; align-items: center; gap: 22px; padding: 22px 22px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); }
.stat .ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, .55); }
.stat .ic svg { width: 32px; height: 32px; }
.stat .lbl { font-size: 16.5px; color: var(--ink-2); }
.stat .num { font-size: 40px; font-weight: 600; line-height: 1.1; }
.stat.lav { background: linear-gradient(120deg, #efe6fc, #f7f1fd); } .stat.lav .ic { color: var(--lav-ink); background: #e5d8fa; }
.stat.peach { background: linear-gradient(120deg, #ffeee3, #fff7f1); } .stat.peach .ic { color: var(--peach-ink); background: #fde2d0; }
.stat.mint { background: linear-gradient(120deg, #e1f5ea, #f1fbf6); } .stat.mint .ic { color: var(--mint-ink); background: #d3f0e1; }
.stat.sky { background: linear-gradient(120deg, #e4eefc, #f2f7fe); } .stat.sky .ic { color: var(--sky-ink); background: #d6e6fa; }

.dash-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; margin-top: 20px; }
.donut-wrap { display: flex; align-items: center; gap: 28px; margin-top: 16px; }
.donut { position: relative; width: 180px; height: 180px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .center b { font-size: 32px; line-height: 1; }
.donut .center span { font-size: 14px; color: var(--ink-2); }
.legend { flex: 1; display: flex; flex-direction: column; }
.legend div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.legend div:last-child { border: 0; }
.legend i { width: 14px; height: 14px; border-radius: 50%; }
.legend span { flex: 1; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; height: 170px; margin-top: 26px; padding: 0 6px; }
.bar { flex: 1; max-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { width: 100%; border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, #dcc9fa, #ece2fc); min-height: 8px; transition: height .5s ease; position: relative; }
.bar.today i { background: linear-gradient(180deg, #c3a6f5, #e0d0fb); }
.bar i b { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.bar span { font-size: 13px; color: var(--ink-2); }
.ai-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px 30px; background: linear-gradient(135deg, #ecdffc 0%, #f5e8fb 55%, #fde9e6 100%); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); min-height: 240px; }
.ai-card h3 { font-size: 32px; font-weight: 600; display: flex; align-items: flex-start; gap: 6px; }
.ai-card h3 svg { width: 22px; height: 22px; color: var(--brand); }
.ai-card p { max-width: 62%; color: var(--ink-2); font-size: 15.5px; margin: 8px 0 20px; }
.ai-card .big-spark { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 150px; height: 150px; filter: drop-shadow(0 12px 22px rgba(160, 120, 230, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(calc(-50% - 8px)) rotate(4deg); } }
.dash-lower { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 4px; }
.task-line { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.task-line:hover { background: var(--surface-2); }
.task-line:last-child { border-bottom: 0; }
.task-line .t { flex: 1; min-width: 0; }
.task-line .t b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-line .t small { color: var(--muted); }
.due { font-size: 13px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.due svg { width: 14px; height: 14px; }
.due.late { color: #d0476a; font-weight: 600; }
.due.soon { color: var(--peach-ink); font-weight: 600; }

/* ---------- projetos */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 40px; font-weight: 600; }
.page-head p { color: var(--ink-2); font-size: 17px; margin-top: 2px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.chip { height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .85); cursor: pointer; display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip.active { background: var(--brand-soft); border-color: transparent; color: var(--brand-2); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.seg button { width: 46px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.seg button.active { background: var(--brand-soft); color: var(--brand-2); }
.seg svg { width: 19px; height: 19px; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.proj-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(110, 70, 170, .13); }
.cover { position: relative; aspect-ratio: 16 / 7.4; background: var(--lav-bg); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.cover .ph svg { width: 34%; max-width: 90px; opacity: .9; filter: drop-shadow(0 8px 14px rgba(120, 80, 190, .2)); }
.cover .ph b { position: absolute; left: 18px; bottom: 12px; font-size: 13px; color: rgba(60, 35, 90, .45); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cover .more-btn { position: absolute; top: 12px; right: 12px; }
.cover .fav-btn { position: absolute; top: 12px; left: 12px; }
.round-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.round-btn svg { width: 17px; height: 17px; }
.round-btn.on { color: #f0b23f; }
.proj-body { padding: 16px 22px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj-body h3 { font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.progress { height: 8px; border-radius: 99px; background: #eee8f5; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a77ee6, #8b5cd0); transition: width .4s; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding-top: 4px; }
.proj-foot .due { border-left: 1px solid var(--line-2); padding-left: 14px; }
.new-card { border: 2px dashed var(--line-2); border-radius: 20px; display: grid; place-content: center; justify-items: center; gap: 14px; min-height: 260px; cursor: pointer; color: var(--ink-2); font-size: 17px; background: rgba(255, 255, 255, .5); transition: background .15s, border-color .15s; }
.new-card:hover { background: #fff; border-color: var(--lav); }
.new-card span { width: 58px; height: 58px; border-radius: 16px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.new-card svg { width: 26px; height: 26px; }
.proj-grid.mini { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.proj-grid.mini .proj-body { padding: 12px 16px 14px; gap: 8px; }
.proj-grid.mini .proj-body h3 { font-size: 17px; }
.proj-grid.mini .cover { aspect-ratio: 16 / 8.5; }
.proj-grid.mini .new-card { min-height: 200px; font-size: 16px; }

.proj-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.proj-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px 16px; }
.proj-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.proj-table tr.clickable { cursor: pointer; }
.proj-table tr.clickable:hover td { background: var(--surface-2); }
.thumb { width: 56px; height: 40px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--lav-bg); }
.thumb img, .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { display: grid; place-items: center; }
.thumb .ph svg { width: 18px; }

/* ---------- projeto */
.proj-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.proj-header .thumb { width: 110px; height: 76px; border-radius: 16px; box-shadow: var(--shadow); cursor: pointer; }
.proj-header h1 { font-size: 30px; font-weight: 600; cursor: text; }
.proj-header .meta { display: flex; align-items: center; gap: 16px; margin-top: 6px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-2); }
.proj-header .meta > span { display: inline-flex; align-items: center; gap: 6px; }
.proj-header .meta svg { width: 17px; height: 17px; }
.proj-header .meta select, .inline-select { border: 0; background: transparent; cursor: pointer; padding: 0 2px; outline: none; }
.proj-header .actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.tabs { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.tab { height: 50px; padding: 0 22px; border-radius: 16px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); cursor: pointer; font-size: 16px; color: var(--ink-2); font-weight: 500; position: relative; transition: background .15s, border-color .15s; }
.tab svg { width: 20px; height: 20px; }
.tab:hover { background: #fff; }
.tab.active { background: var(--brand-soft); border-color: #d8c5f6; color: var(--ink); font-weight: 600; box-shadow: 0 4px 14px rgba(140, 92, 208, .12); }
.tab .count { font-size: 12px; background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 1px 8px; color: var(--muted); font-weight: 600; }
.tab.add { width: 50px; padding: 0; justify-content: center; }
.tab .tab-menu { width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); margin-right: -8px; }
.tab .tab-menu:hover { background: rgba(255, 255, 255, .9); }
.tab .tab-menu svg { width: 16px; height: 16px; }

.proj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.side-stack { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }

.notes-card { margin-bottom: 18px; }
.notes-card summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 22px; font-weight: 600; }
.notes-card summary::-webkit-details-marker { display: none; }
.notes-card summary svg { width: 19px; height: 19px; color: var(--ink-2); }
.notes-card summary .chev { margin-left: auto; transition: transform .2s; }
.notes-card[open] summary .chev { transform: rotate(180deg); }
.notes-card .notes-body { padding: 0 22px 18px; }
.notes-card textarea { border: 1px dashed var(--line-2); background: var(--surface-2); min-height: 110px; }
.notes-card .saved { font-size: 12.5px; color: var(--muted); margin-top: 6px; height: 16px; }
.notes-preview { color: var(--muted); font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }

.board { display: grid; grid-template-columns: repeat(4, minmax(168px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.col { background: rgba(247, 243, 252, .85); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; transition: background .15s, border-color .15s; }
.col.drag-over { background: var(--brand-softer); border-color: var(--lav); }
.col-head { display: flex; align-items: center; gap: 7px; padding: 4px 2px 2px 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.col { padding: 10px; }
.col-head i { width: 10px; height: 10px; border-radius: 50%; }
.col-head .n { color: var(--muted); font-weight: 500; font-size: 13px; }
.col-head .icon-btn { margin-left: auto; }
.task-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: grab; box-shadow: 0 1px 2px rgba(80, 50, 120, .04); transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: 8px; }
.task-card:hover { box-shadow: 0 6px 18px rgba(110, 70, 170, .1); }
.task-card.dragging { opacity: .45; transform: rotate(1.5deg); }
.task-card .tt { font-weight: 500; font-size: 14.5px; line-height: 1.35; word-break: break-word; }
.task-card.done .tt { color: var(--muted); }
.task-card .tmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.task-card .tmeta span { display: inline-flex; align-items: center; gap: 4px; }
.task-card .tmeta svg { width: 14px; height: 14px; }
.task-card .tmeta .avatar { margin-left: auto; }
.task-card .pill { height: 22px; font-size: 11.5px; padding: 0 9px; }
.drop-marker { height: 3px; border-radius: 3px; background: var(--brand); margin: -5px 2px; }
.quick-add textarea { width: 100%; border: 1px solid var(--lav); border-radius: 12px; padding: 10px 12px; resize: none; outline: none; min-height: 64px; background: #fff; box-shadow: 0 0 0 4px var(--brand-softer); }
.quick-add .qa-actions { display: flex; gap: 8px; margin-top: 8px; }
.add-task-btn { background: none; border: 0; text-align: left; padding: 8px 8px; border-radius: 10px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.add-task-btn:hover { background: rgba(255, 255, 255, .8); color: var(--ink-2); }
.add-task-btn svg { width: 16px; height: 16px; }

/* ---------- painel IA */
.ai-panel { background: linear-gradient(160deg, #f1e7fd 0%, #f8eefb 60%, #fdf0ea 100%); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.ai-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; color: var(--brand-2); }
.ai-panel h3 svg { width: 22px; height: 22px; }
.ai-panel > p { margin: 6px 0 14px; color: var(--ink-2); }
.ai-action { width: 100%; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; text-align: left; font-size: 14.5px; transition: background .15s; }
.ai-action:hover { background: #fff; }
.ai-action svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.ai-input { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 5px 5px 16px; margin-top: 12px; }
.ai-input input { flex: 1; border: 0; outline: none; background: transparent; min-width: 0; padding: 6px 0; }
.send-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #9567d8, #8152c8); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.send-btn svg { width: 17px; height: 17px; }
.send-btn[disabled] { opacity: .5; }
.ai-result { background: #fff; border-radius: 14px; padding: 14px 16px; margin-top: 12px; font-size: 14.5px; border: 1px solid var(--line); max-height: 420px; overflow: auto; }
.ai-result .ai-tools { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.md p { margin: 0 0 8px; } .md p:last-child { margin: 0; }
.md ul, .md ol { margin: 4px 0 8px; padding-left: 20px; }
.md li { margin: 2px 0; }
.md h4 { font-size: 15px; margin: 10px 0 4px; }
.suggestion { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.suggestion:last-of-type { border: 0; }
.suggestion small { color: var(--muted); display: block; }
.ai-off { font-size: 13.5px; color: var(--ink-2); background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 10px 12px; }
.ai-off code { background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }

.team-card .members { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.member { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; text-align: center; font-size: 13px; }
.member small { color: var(--muted); font-size: 11.5px; line-height: 1.2; }
.member .add { width: 56px; height: 56px; border-radius: 50%; border: 1.5px dashed #cdbfe2; display: grid; place-items: center; color: var(--muted); background: none; cursor: pointer; }
.member .add svg { width: 20px; height: 20px; }
.timeline { margin-top: 12px; position: relative; }
.timeline .ev { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; position: relative; }
.timeline .ev::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c9b2f2; margin-top: 7px; flex-shrink: 0; box-shadow: 0 0 0 4px #f3ecfd; }
.timeline .ev b { font-weight: 600; }
.timeline .ev .when { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-left: 8px; }

/* ---------- modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(50, 30, 80, .28); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); width: min(520px, 100%); padding: 26px 28px; position: relative; animation: pop .18s ease-out; }
.modal.wide { width: min(1080px, 100%); padding: 0; background: var(--bg); }
.modal h2 { font-size: 22px; margin-bottom: 18px; }
.modal .close { position: absolute; top: 16px; right: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.cover-pick { border: 2px dashed var(--line-2); border-radius: 16px; aspect-ratio: 16 / 7; display: grid; place-items: center; cursor: pointer; overflow: hidden; background: var(--surface-2); color: var(--muted); text-align: center; font-size: 14px; position: relative; }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cover-pick svg { width: 28px; height: 28px; margin: 0 auto 6px; display: block; color: var(--lav); }
.pick-members { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-members label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 14px; }
.pick-members label:has(input:checked) { background: var(--brand-soft); border-color: #d8c5f6; }
.pick-members input { display: none; }

/* ---------- detalhe da tarefa */
.task-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; }
.task-main { padding: 26px 28px; background: #fff; border-radius: 22px 0 0 22px; }
.task-side { padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--line); }
.task-kicker { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; margin-bottom: 4px; }
.task-kicker svg { width: 17px; height: 17px; }
.title-input { font-size: 26px; font-weight: 600; border: 0; outline: none; width: 100%; padding: 2px 0; border-radius: 8px; background: transparent; }
.title-input:focus { background: var(--surface-2); }
.desc-input { border: 1px solid transparent; background: transparent; padding: 8px 10px; margin: 6px -10px 0; width: calc(100% + 20px); color: var(--ink-2); font-size: 15.5px; min-height: 60px; }
.desc-input:hover { background: var(--surface-2); }
.desc-input:focus { background: #fff; border-color: var(--line-2); }
.props { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; margin: 16px 0 20px; }
.prop { padding: 12px 14px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.prop + .prop { border-left: 1px solid var(--line); }
.prop > svg { width: 21px; height: 21px; color: var(--ink-2); flex-shrink: 0; }
.prop small { color: var(--muted); display: block; font-size: 12.5px; }
.prop input, .prop select { border: 0; background: transparent; outline: none; font-weight: 600; padding: 0; width: 100%; cursor: pointer; font-size: 14.5px; }
.sub-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.sub-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sub-head h4 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.sub-head h4 svg { width: 20px; height: 20px; color: var(--ink-2); }
.sub-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.check-item span { flex: 1; cursor: text; }
.check-item.done span { text-decoration: line-through; color: var(--muted); }
.check-item .del { opacity: 0; transition: opacity .15s; }
.check-item:hover .del { opacity: 1; }
.add-line { display: flex; gap: 8px; margin-top: 8px; }
.add-line input { flex: 1; border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 12px; outline: none; background: var(--surface-2); }
.add-line input:focus { border-style: solid; border-color: var(--lav); background: #fff; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border: 0; }
.file-icon { width: 46px; height: 38px; border-radius: 8px; background: var(--lav-bg); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: var(--lav-ink); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.file-icon img { width: 100%; height: 100%; object-fit: cover; }
.file-row .fn { flex: 1; min-width: 0; }
.file-row .fn a { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .fn a:hover { color: var(--brand-2); }
.file-row small { color: var(--muted); }
.comment { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-of-type { border: 0; }
.comment .body { flex: 1; min-width: 0; }
.comment .body b { font-weight: 600; margin-right: 8px; }
.comment .body small { color: var(--muted); }
.comment .body p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
.comment-box { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.comment-box .wrap { flex: 1; display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 16px; background: #fff; }
.comment-box input { flex: 1; border: 0; outline: none; padding: 7px 0; min-width: 0; }
.side-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

/* ---------- IA página */
.chat { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 8px 4px 16px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 18px; font-size: 15px; }
.msg.user { align-self: flex-end; background: linear-gradient(180deg, #9567d8, #8152c8); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow); }
.chat-input textarea { flex: 1; border: 0; outline: none; resize: none; padding: 8px 0; max-height: 160px; min-height: 24px; }
.chat-input .send-btn { width: 42px; height: 42px; }
.starters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: auto 0; }
.starters button { text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .85); cursor: pointer; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.starters button:hover { background: #fff; border-color: #d8c5f6; }
.starters svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lav); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- equipe / config */
.team-table { width: 100%; border-collapse: collapse; }
.team-table td, .team-table th { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.team-table th { font-size: 13px; color: var(--muted); font-weight: 500; }
.team-table tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 12px; }
.person small { display: block; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.color-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.color-pick button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
.color-pick button.on { box-shadow: 0 0 0 2px var(--brand); }

/* ---------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; position: relative; isolation: isolate; overflow: hidden; }
.auth::before { content: ''; position: absolute; z-index: -1; width: 700px; height: 700px; left: -220px; bottom: -320px; border-radius: 50%; background: radial-gradient(circle, #e7dafb 0, #fbe1ea 40%, #fdebd9 60%, transparent 70%); }
.auth::after { content: ''; position: absolute; z-index: -1; width: 600px; height: 600px; right: 40%; top: -360px; border-radius: 50%; background: radial-gradient(circle, #dfe9fb 0, #f3dcf6 45%, transparent 70%); }
.auth-hero { padding: 60px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-hero h1 { font-size: 46px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; max-width: 520px; }
.auth-hero h1 b { font-weight: 700; color: var(--brand-2); }
.auth-hero p { font-size: 18px; color: var(--ink-2); max-width: 470px; margin: 0; }
.auth-hero ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.auth-hero li { display: flex; gap: 10px; align-items: center; }
.auth-hero li svg { width: 20px; height: 20px; color: var(--brand); }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(430px, 100%); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 26px; padding: 34px 32px; box-shadow: var(--shadow-lg); }
.auth-card h2 { font-size: 26px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--ink-2); font-size: 14.5px; }
.form-error { background: #fdebef; color: #b93a58; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.inline-check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); margin-bottom: 16px; cursor: pointer; }

/* ---------- toasts */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #3a2754; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14.5px; box-shadow: var(--shadow-lg); animation: pop .2s; display: flex; gap: 10px; align-items: center; }
.toast.error { background: #b93a58; }

/* ---------- responsivo */
@media (max-width: 1240px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid .ai-card { grid-column: span 2; }
  .proj-layout { grid-template-columns: minmax(0, 1fr); }
  .side-stack { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-lower { grid-template-columns: 1fr; }
  .task-detail { grid-template-columns: 1fr; }
  .task-main { border-radius: 22px 22px 0 0; }
  .task-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); background: #f8f2fd; }
  .sidebar.open { transform: none; }
  .icon-btn.menu-btn { display: grid; }
  .main { padding: 16px 16px 40px; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 40px 24px 0; }
  .auth-hero h1 { font-size: 34px; }
  .auth-hero ul { display: none; }
  .props { grid-template-columns: 1fr 1fr; }
  .prop:nth-child(3) { border-left: 0; }
  .prop:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .ai-card { grid-column: auto; }
  .donut-wrap { flex-direction: column; }
  .hello h1 { font-size: 30px; }
  .hello p { font-size: 16px; }
  .page-head h1 { font-size: 30px; }
  .search { display: none; }
  .board { grid-template-columns: repeat(4, 82vw); }
  .starters { grid-template-columns: 1fr; }
  .ai-card p { max-width: 100%; }
  .ai-card .big-spark { opacity: .35; }
  .notif-list { width: calc(100vw - 32px); }
  .tab { height: 44px; padding: 0 16px; font-size: 15px; }
}

/* ---------- calendário */
.cal { overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 12px; font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: var(--surface-2); }
.cal-cell.out .cal-day { color: #c3b9d1; }
.cal-day { font-size: 13px; font-weight: 600; color: var(--ink-2); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-cell.today .cal-day { background: var(--brand); color: #fff; }
.cal-ev { display: flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 8px; border: 0; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; width: 100%; }
.cal-ev.proj { background: var(--rose-bg); color: var(--rose-ink); }
.cal-ev svg { width: 12px; height: 12px; flex-shrink: 0; }
@media (max-width: 760px) { .cal-cell { min-height: 74px; padding: 4px; } .cal-ev { font-size: 0; padding: 0; height: 6px; } .cal-ev svg { display: none; } }
.proj-header .thumb .ph svg { width: 40px; }
.inline-select.pill { padding-right: 6px; }

/* ---------- checklist da etapa */
.tcl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 24px; }
.tcl-grid .check-item { padding: 5px 0; font-size: 14.5px; }

/* ---------- IA copiar e colar */
.cp-step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.cp-step:first-of-type { border-top: 0; padding-top: 0; }
.cp-step p { margin: 2px 0 12px; font-size: 14px; }
.cp-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }
.cp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-preview { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.cp-preview summary { cursor: pointer; }
.cp-preview textarea { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }

/* =====================================================================
   TEMA "ESCRITÓRIO" — neutro, claro e minimalista (arquitetura/interiores)
   ===================================================================== */
:root {
  --bg: #f5f4f1; --surface: #ffffff; --surface-2: #f9f8f6;
  --line: #ebe8e3; --line-2: #ddd9d3;
  --ink: #2a2826; --ink-2: #57534d; --muted: #8f8a83;
  --brand: #3b3835; --brand-2: #2a2826; --brand-soft: #eeebe7; --brand-softer: #f5f3f0;
  --lav: #9d968d; --lav-bg: #efedea; --lav-ink: #5c5650;
  --peach: #d8b79a; --peach-bg: #f6efe8; --peach-ink: #9a6a42;
  --mint: #9fb8a6; --mint-bg: #ecf2ed; --mint-ink: #4b7357;
  --sky: #a9b8c4; --sky-bg: #edf1f4; --sky-ink: #4f6577;
  --butter: #d9c58f; --butter-bg: #f6f1e2; --butter-ink: #8a7330;
  --rose: #d4a3a3; --rose-bg: #f6eceb; --rose-ink: #9c4f4f;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(40, 35, 30, .04), 0 6px 20px rgba(40, 35, 30, .05);
  --shadow-lg: 0 24px 60px rgba(30, 25, 20, .16);
  --display: "Jost", "Figtree", system-ui, sans-serif;
  --sidebar: 252px;
}
body { background: var(--bg); }
h1, h2, .card-title, .section-head h2, .page-head h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.005em; }
.shell::before, .shell::after, .auth::before, .auth::after { display: none; }
.btn-primary, .send-btn, .msg.user { background: var(--brand); box-shadow: 0 6px 16px rgba(30, 25, 20, .16); }
.btn-primary:hover { background: #1f1d1b; }
.btn-soft:hover { background: #e6e2dd; }
.progress { background: #ece9e5; }
.progress i { background: var(--brand); }
.bar i, .bar.today i { background: #d8d3cc; }
.tab.active { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(30, 25, 20, .06); }
.pick-members label:has(input:checked), .starters button:hover { border-color: var(--line-2); }
.timeline .ev::before { background: #bdb6ad; box-shadow: 0 0 0 4px #f1efec; }
.ai-card, .ai-panel { background: linear-gradient(150deg, #f1eeea, #f8f6f3 60%, #f3efe9); }
.tip-card { background: #f3f1ee; }
.modal-backdrop { background: rgba(30, 27, 24, .32); }
.toast { background: #2a2826; }
.check { border-color: #cbc5bd; }
.avatars .more { background: var(--brand-soft); color: var(--ink-2); }
.icon-btn.ghost:hover, .dropdown .dd-item:hover, .search-results a:hover { background: var(--brand-softer); }
.input:focus, .select:focus, .textarea:focus, .search input:focus { border-color: #b9b2a9; box-shadow: 0 0 0 4px #f0ede9; }
.member .add { border-color: #cfc8bf; }
.cal-cell.out .cal-day { color: #c4beb6; }
.round-btn.on { color: #c9a14a; }

/* logo do lumi pequeno (créditos) */
.logo.xs { vertical-align: middle; }
.logo.xs .word { font-size: 15px; color: var(--ink-2); }
.logo.xs svg { width: 11px; height: 11px; margin: -4px 0 0 -2px; filter: none; }

/* ---------- carregamento (splash) */
.splash { position: fixed; inset: 0; background: #fbfaf8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; z-index: 100; transition: opacity .4s ease; }
.splash > * { opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .9s ease; }
.splash.in > * { opacity: 1; transform: none; }
.splash.out { opacity: 0; }
.splash-line { display: block; width: 120px; height: 1px; background: #e6e2dc; overflow: hidden; }
.splash-line b { display: block; height: 100%; width: 0; background: #8f8a83; }
.splash.in .splash-line b { animation: load 1.8s ease forwards; }
@keyframes load { to { width: 100%; } }

/* marca do escritório (logo ou nome em texto) */
.office-mark { display: flex; flex-direction: column; align-items: center; text-align: center; color: #6e6862; }
.office-mark img { max-width: 220px; max-height: 110px; object-fit: contain; }
.office-mark.big img { max-width: 260px; max-height: 140px; }
.office-mark.sm img { max-width: 130px; max-height: 64px; }
.office-mark.word b { font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: .22em; text-transform: uppercase; color: #6e6862; }
.office-mark.word small { font-family: var(--display); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: #9a948d; margin-top: 4px; }
.office-mark.word.big b { font-size: 38px; }
.office-mark.word.sm b { font-size: 20px; }
.office-mark.word.sm small { font-size: 9px; }

/* ---------- Quem vai criar hoje? */
.picker { min-height: 100vh; background: #fbfaf8; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px; opacity: 0; transition: opacity .45s ease; }
.picker.in { opacity: 1; }
.picker.out { opacity: 0; transition: opacity .3s ease; }
.picker h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 46px); color: #2f2c29; margin: 22px 0 34px; text-align: center; }
.profiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 980px; }
.profile-tile { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; width: 132px; text-align: center; }
.profile-tile .tile { width: 120px; height: 120px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 38px; font-weight: 300; letter-spacing: .04em; position: relative; overflow: hidden; outline: 2px solid transparent; outline-offset: 3px; transition: transform .2s ease, outline-color .2s, box-shadow .2s; box-shadow: 0 4px 14px rgba(30, 25, 20, .08); }
.profile-tile .tile em { font-style: normal; }
.profile-tile .tile img { width: 100%; height: 100%; object-fit: cover; }
.profile-tile:hover .tile, .profile-tile:focus-visible .tile { transform: translateY(-3px); outline-color: #4a4642; box-shadow: 0 14px 30px rgba(30, 25, 20, .18); }
.profile-tile.chosen .tile { transform: scale(1.06); outline-color: #2a2826; }
.profile-tile b { font-weight: 500; font-size: 14px; margin-top: 12px; color: #3a3632; }
.profile-tile small { font-size: 12px; color: var(--muted); min-height: 16px; }
.tile-badge { position: absolute; right: 7px; bottom: 7px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #3a3632; display: grid; place-items: center; }
.tile-badge svg { width: 14px; height: 14px; }
.picker.managing .profile-tile .tile { filter: saturate(.6) brightness(.92); }
.add-profile { margin-top: 30px; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #4a4642; font-weight: 500; font-size: 14px; }
.add-profile span { width: 44px; height: 44px; display: grid; place-items: center; color: #9a948d; }
.add-profile span svg { width: 26px; height: 26px; stroke-width: 1.2; }
.add-profile:hover span { color: #2a2826; }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn-outline:hover { border-color: #b9b2a9; color: var(--ink); }
.btn-outline svg { width: 15px; height: 15px; }
.btn-outline.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.picker > .btn-outline { margin-top: 22px; }
.picker .fine { max-width: 560px; text-align: center; font-size: 12px; color: #a29c95; margin: 26px 0 0; line-height: 1.6; }
.picker .fine > svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.picker .fine .link-btn { font-size: 12px; color: var(--ink-2); font-weight: 500; text-decoration: underline; }
.picker .fine.credit { margin-top: 18px; }

/* ---------- campo de logo */
.logo-pick { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--muted); font-size: 14px; background: var(--surface-2); }
.logo-pick:hover { border-color: #b9b2a9; }
.logo-pick svg { width: 22px; height: 22px; }
.logo-pick img { max-height: 54px; max-width: 160px; object-fit: contain; }
.brand-preview { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.brand-preview .office-mark { min-width: 70px; }
.brand-preview small { display: block; }

/* ---------- sidebar */
.sidebar { background: #fbfaf8; border-right: 1px solid var(--line); padding: 22px 14px 14px; gap: 2px; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-brand img { width: 46px; height: 46px; object-fit: contain; }
.side-brand .mono { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--display); font-weight: 300; letter-spacing: .08em; color: #6e6862; flex-shrink: 0; }
.side-brand b { display: block; font-family: var(--display); font-weight: 500; font-size: 16px; color: #3a3632; line-height: 1.2; }
.side-brand small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.nav-item { padding: 9px 12px; border-radius: 10px; gap: 12px; font-size: 14.5px; font-weight: 400; }
.nav-item svg { width: 19px; height: 19px; stroke-width: 1.5; }
.nav-item:hover { background: #f1efec; }
.nav-item.active { background: #ece9e5; font-weight: 500; }
.nav-sep { margin: 10px 12px; background: var(--line); }
.side-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 10px; border-top: 1px solid var(--line); }
.side-me > div { min-width: 0; flex: 1; }
.side-me b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-me small { display: block; font-size: 12px; color: var(--muted); }
.side-credit { font-size: 11px; color: #aaa49d; padding: 2px 10px; display: flex; align-items: center; gap: 4px; }

/* topo */
.search input, .icon-btn, .profile-btn { background: #fff; }
.main { padding: 20px 32px 48px; }

/* ---------- página inicial */
.hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 250px; display: flex; justify-content: space-between; align-items: stretch; gap: 16px; padding: 26px 30px; color: #fff;
  background: linear-gradient(90deg, rgba(25, 22, 20, .62) 0%, rgba(25, 22, 20, .25) 55%, rgba(25, 22, 20, .05) 100%), var(--hero, linear-gradient(120deg, #8d867d, #b9b1a6 60%, #d6cfc5)) center / cover no-repeat; box-shadow: var(--shadow); }
.hero-in { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; max-width: 620px; }
.hero-brand { margin-bottom: auto; }
.hero-brand img { max-height: 46px; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.hero-brand span { font-family: var(--display); font-weight: 300; letter-spacing: .24em; text-transform: uppercase; font-size: 13px; opacity: .9; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); color: #fff; margin-top: 18px; text-shadow: 0 2px 16px rgba(0, 0, 0, .2); }
.hero .slogan { margin: 0 0 14px; font-style: italic; font-size: 16px; opacity: .92; }
.clock { display: flex; align-items: flex-end; gap: 4px; }
.clock > b { font-family: var(--display); font-weight: 300; font-size: 50px; line-height: .9; letter-spacing: -.01em; }
.clock > small { font-size: 15px; opacity: .85; margin-right: 12px; }
.clock span { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.3; }
.clock span b { font-weight: 600; }
.clock span small { opacity: .85; }
.hero-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 12px; }
.glass-btn, .glass-card { background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .32); color: #fff; border-radius: 999px; }
.glass-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; font-size: 13px; cursor: pointer; }
.glass-btn:hover { background: rgba(255, 255, 255, .28); }
.glass-btn svg { width: 15px; height: 15px; }
.glass-card { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 14px; font-size: 13px; }
.glass-card small { display: block; opacity: .85; font-size: 11.5px; }

.carousel { position: relative; margin-top: 14px; border-radius: 18px; overflow: hidden; height: clamp(200px, 30vw, 340px); box-shadow: var(--shadow); background: #e9e6e1; }
.car-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-slide span { position: absolute; left: 22px; bottom: 18px; color: #fff; font-family: var(--display); font-size: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.car-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); }
.car-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .25s; }
.car-dots i.on { width: 18px; background: #fff; }

.kpis { margin-top: 14px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.kpis a { padding: 16px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: background .15s; }
.kpis a:first-child { border-left: 0; }
.kpis a:hover { background: var(--surface-2); }
.kpis b { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1.1; color: #2f2c29; }
.kpis span { font-size: 12.5px; color: var(--muted); }

.section-head { margin: 30px 0 12px; }
.section-head h2 { font-size: 21px; }
.hscroll { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.proj-row-cards { grid-auto-columns: minmax(250px, 1fr); }
.team-row { grid-auto-columns: minmax(230px, 1fr); }
.hscroll > * { scroll-snap-align: start; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 25, 20, .1); }
.pcard-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ece8e2; }
.pcard-img img, .pcard-img .ph { width: 100%; height: 100%; object-fit: cover; }
.pcard-img .ph { display: grid; place-items: center; }
.pcard-img .ph svg { width: 34px; opacity: .5; }
.pcard-img .ph b { display: none; }
.tagline-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 11.5px; color: #3a3632; }
.mcard-img .tagline-badge { left: auto; right: 10px; }
.tagline-badge svg { width: 12px; height: 12px; }
.pcard-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 6px; }
.pcard-body h3 { font-family: var(--display); font-weight: 400; font-size: 17px; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-height: 22px; }
.pcard-meta.small { font-size: 12px; }
.pcard-meta .stage b { color: var(--ink-2); font-weight: 600; }
.thin-progress { height: 3px; border-radius: 9px; background: #ebe8e3; overflow: hidden; }
.thin-progress i { display: block; height: 100%; background: #3b3835; border-radius: inherit; transition: width .4s; }
.pcard.new { align-items: center; justify-content: center; gap: 8px; color: var(--muted); font: inherit; font-size: 14px; border-style: dashed; background: transparent; box-shadow: none; min-height: 260px; }
.pcard.new span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.pcard.new svg { width: 20px; height: 20px; }

.mcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); padding: 0 16px 14px; display: flex; flex-direction: column; }
.mcard.me { border-color: #cfc8bf; }
.mcard-img { margin: 0 -16px; height: 86px; background: linear-gradient(120deg, #e3ded7, #f1eee9) center / cover no-repeat; position: relative; }
.mcard-av { margin-top: -28px; position: relative; z-index: 1; }
.mcard-av .avatar { border: 3px solid #fff; box-shadow: 0 4px 12px rgba(30, 25, 20, .12); }
.mcard h3 { font-family: var(--display); font-weight: 400; font-size: 17px; margin-top: 6px; }
.mcard .job { color: var(--muted); font-size: 12.5px; }
.mstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mstats div { display: flex; flex-direction: column; }
.mstats b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.mstats small { font-size: 10.5px; color: var(--muted); }
.mstats .late b { color: #a04848; }
.mprog { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mprog b { color: var(--ink-2); font-weight: 600; }
.mfoot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
.mfoot small { display: block; font-size: 11px; color: var(--muted); }
.ring { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(#3b3835 calc(var(--p) * 1%), #ebe8e3 0); -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px); mask: radial-gradient(circle, transparent 11px, #000 12px); }

.home-lower { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 18px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.card-title { font-size: 18px; }
.card-title.sm { font-size: 16px; margin-bottom: 4px; }
.agenda { max-height: 460px; overflow-y: auto; }
.ag-group { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; }
.ag-row { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.ag-row:hover { background: var(--surface-2); }
.ag-date { width: 34px; text-align: center; display: flex; flex-direction: column; line-height: 1.05; flex-shrink: 0; }
.ag-date b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.ag-date small { font-size: 10.5px; color: var(--muted); }
.ag-text { flex: 1; min-width: 0; border-left: 2px solid #d9d4cd; padding-left: 12px; }
.ag-row.delivery .ag-text { border-left-color: #3b3835; }
.ag-text b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-text small { font-size: 12px; color: var(--muted); }
.ag-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.ag-ic svg { width: 13px; height: 13px; }
.mini-cal .mc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mini-cal .mc-head b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.mini-cal .mc-head span { display: flex; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: 4px; }
.mc-grid small { font-size: 11px; color: var(--muted); padding-bottom: 4px; }
.mc-grid span { font-size: 13px; height: 32px; display: grid; place-items: center; position: relative; border-radius: 8px; }
.mc-grid span.out { color: #cbc5bd; }
.mc-grid span.today { background: #3b3835; color: #fff; }
.mc-grid span.has::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #8f8a83; }
.mc-grid span.today.has::after { background: #fff; }
.timeline .ev { align-items: center; }
.timeline .ev::before { display: none; }

@media (max-width: 1240px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpis a:nth-child(4) { border-left: 0; } .kpis a:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 1000px) { .home-lower { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .sidebar { background: #fbfaf8; } }
@media (max-width: 640px) {
  .hero { flex-direction: column; padding: 20px; gap: 16px; }
  .hero-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .clock > b { font-size: 40px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis a { border-left: 0 !important; border-top: 1px solid var(--line); }
  .kpis a:nth-child(-n+2) { border-top: 0; }
  .kpis a:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .profile-tile { width: 104px; }
  .profile-tile .tile { width: 96px; height: 96px; font-size: 30px; }
  .profiles { gap: 14px; }
}

/* ---------- XP, metas e destaques */
.props { grid-template-columns: repeat(5, 1fr); }
.prop input[type=number] { width: 100%; border: 0; outline: none; background: none; font: inherit; padding: 0; }
.xp-chip { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--ink-2); }
.xp-chip.won { background: #3b3835; color: #fff; }
.medal { margin-left: auto; font-size: 11px; font-weight: 600; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f1eee9; color: #6e6862; border: 1px solid var(--line-2); }
.medal.m1 { background: #3b3835; color: #fff; border-color: #3b3835; }

.goals-card { padding: 0; overflow: hidden; }
.goal-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.goal-kpis div { padding: 16px 22px; display: flex; flex-direction: column; }
.goal-kpis div + div { border-left: 1px solid var(--line); }
.goal-kpis b { font-family: var(--display); font-weight: 300; font-size: 28px; line-height: 1.1; }
.goal-kpis span { font-size: 12.5px; color: var(--muted); }
.goal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 16px; }
.goal { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.goal.editable { cursor: pointer; }
.goal.editable:hover { border-color: #cfc8bf; }
.goal-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.goal-text > b { font-weight: 500; font-size: 14px; }
.goal-text small { font-size: 12px; color: var(--muted); }
.goal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.goal-pill { font-size: 11px; padding: 2px 9px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.goal-pill.ok { background: #3b3835; border-color: #3b3835; color: #fff; }
.ring-svg { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; }
.ring-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-svg b { font-size: 12px; font-weight: 600; color: var(--ink-2); }

.highlights { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14px; max-width: 640px; margin: 0 auto; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.pod > b { font-weight: 500; font-size: 14.5px; margin-top: 6px; }
.pod > small { font-size: 11.5px; color: var(--muted); }
.pod strong { font-family: var(--display); font-weight: 400; font-size: 18px; margin: 4px 0 6px; }
.pod .thin-progress { width: 80%; margin-bottom: 2px; }
.pod-av { position: relative; }
.pod-av i { position: absolute; right: -2px; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); font-style: normal; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.pod.p1 .pod-av i { background: #3b3835; color: #fff; border-color: #3b3835; }
.pod-base { width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #efece8, #f7f5f2); margin-top: 10px; height: 34px; }
.pod.p1 .pod-base { height: 58px; }
.pod.p3 .pod-base { height: 22px; }
.rank-rest { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.rank-row { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) minmax(60px, 160px) 70px; align-items: center; gap: 10px; padding: 8px 4px; }
.rank-row .pos { font-size: 13px; color: var(--muted); text-align: center; }
.rank-row b { font-weight: 500; font-size: 14px; display: block; }
.rank-row small { font-size: 11.5px; color: var(--muted); }
.rank-row .xp { text-align: right; font-size: 13px; }
.fine-note { font-size: 12px; margin: 14px 0 0; }
.first-head { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.first-head svg { width: 18px; height: 18px; color: #c9a14a; }
.first-who { display: flex; align-items: center; gap: 12px; margin: 12px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.first-who b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; }
.first-who small { color: var(--muted); font-size: 12.5px; }
.first-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.first-row > span { width: 20px; color: var(--muted); font-size: 12px; }
.first-row b { font-weight: 500; }
.first-row small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
@media (max-width: 1100px) { .highlights { grid-template-columns: 1fr; } .props { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .goal-kpis { grid-template-columns: 1fr; } .goal-kpis div + div { border-left: 0; border-top: 1px solid var(--line); }
  .rank-row { grid-template-columns: 22px 32px minmax(0, 1fr) 64px; } .rank-row .thin-progress { display: none; }
  .props { grid-template-columns: 1fr 1fr; }
}

/* ---------- clima */
.glass-card.wx { cursor: pointer; padding: 10px 16px 10px 12px; gap: 10px; text-align: left; font: inherit; color: #fff; }
.glass-card.wx:hover { background: rgba(255, 255, 255, .26); }
.wx-ic { display: grid; place-items: center; }
.wx-temp { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1; }
.wx-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wx-info b { font-size: 13px; font-weight: 600; }
.wx-info small { font-size: 11.5px; opacity: .88; white-space: nowrap; }
.wx-results { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.wx-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: inherit; }
.wx-opt:hover { background: var(--surface-2); border-color: var(--line-2); }
.wx-opt svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.wx-opt b { display: block; font-weight: 500; font-size: 14px; }
.wx-opt small { color: var(--muted); font-size: 12px; }

/* ---------- pontuação e conquistas */
.props { grid-template-columns: repeat(4, 1fr); }
.xp-props { margin-top: -8px; }
.toggle-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.toggle-line .check { width: 18px; height: 18px; }
.xp-result > div { display: flex; flex-direction: column; min-width: 0; }
.xp-result b { font-size: 14.5px; font-weight: 600; }
.xp-result small { font-size: 12px; color: var(--muted); }
.xp-chip { display: inline-flex; align-items: center; gap: 3px; }
.xp-chip svg { width: 11px; height: 11px; }
.xp-chip.wait { background: #f6f1e2; color: #8a7330; }

.bdg { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: #f1efec; color: #b5aea6; border: 1.5px dashed #d6d0c8; }
.bdg svg { width: 55%; height: 55%; }
.bdg.t1, .bdg.t2, .bdg.t3 { border-style: solid; border-width: 2px; color: #3b3835; background: #fff; }
.bdg.t1 { border-color: #b98c66; background: #f7efe7; color: #8a5f3d; }
.bdg.t2 { border-color: #a3a8ad; background: #f1f3f4; color: #5d6268; }
.bdg.t3 { border-color: #c9a14a; background: #fbf4e2; color: #8f6c1d; box-shadow: 0 0 0 3px rgba(201, 161, 74, .14); }
.bdg.sm { width: 26px; height: 26px; }
.bdg.lg { width: 54px; height: 54px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.mcard .badge-row { margin: 0 0 10px; }

.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bcard { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.bcard:not(.on) { background: var(--surface-2); box-shadow: none; }
.bcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bcard-text > b { font-family: var(--display); font-weight: 400; font-size: 16.5px; }
.bcard-text small { font-size: 12px; color: var(--muted); }
.bcard-text small.done { color: var(--ink-2); font-weight: 500; }
.tiers { display: flex; gap: 4px; margin: 2px 0; }
.tiers i { width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 600; display: grid; place-items: center; background: #f1efec; color: #b5aea6; }
.tiers i.on.t1 { background: #b98c66; color: #fff; }
.tiers i.on.t2 { background: #a3a8ad; color: #fff; }
.tiers i.on.t3 { background: #c9a14a; color: #fff; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rule { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rule:last-of-type { border-bottom: 0; }
.rule b { white-space: nowrap; font-weight: 600; }
@media (max-width: 1100px) { .props { grid-template-columns: repeat(2, 1fr); } }
.prop .toggle-line input.check { width: 18px; height: 18px; flex: 0 0 18px; border: 1.6px solid #cbc5bd; background: #fff; border-radius: 5px; }
.prop .toggle-line input.check:checked { background: var(--brand); border-color: var(--brand); }

/* ---------- Google Agenda */
.gcal-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -8px 0 18px; }
.gcal-line small { font-size: 12.5px; }
.gcal-step { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.gcal-step > span { color: var(--ink-2); font-size: 13.5px; }
.gcal-step input { font-size: 12.5px; }

/* ---------- briefings */
.subtabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 4px 0 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.subtabs a { padding: 10px 2px; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subtabs a:hover { color: var(--ink); }
.subtabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.subtabs a small { font-size: 11.5px; color: var(--muted); margin-left: 3px; }
.bpill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); }
.bpill.b-preenchendo, .bstatus.b-preenchendo { background: #3b3835; color: #fff; border-color: #3b3835; }
.bpill.b-aguardando, .bstatus.b-aguardando { background: var(--butter-bg); color: var(--butter-ink); border-color: #ecdfb8; }
.bpill.b-concluido, .bstatus.b-concluido { background: var(--mint-bg); color: var(--mint-ink); border-color: #cfe1d4; }
.bgroup { margin-bottom: 26px; }
.bgroup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bgroup-head b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; }
.bgroup-head small { color: var(--muted); font-size: 12.5px; }
.mono-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink-2); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.bcard2 { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.bcard2:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 25, 20, .1); }
.bcover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #efebe5; }
.bcover svg { width: 100%; height: 100%; display: block; }
.bcover.mini { width: 54px; height: 38px; aspect-ratio: auto; border-radius: 8px; flex-shrink: 0; }
.bbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.bbody > b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.bbody > small { font-size: 12px; color: var(--muted); }
.bfoot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.bfoot > span:nth-child(2) { margin-left: auto; }
.tplcard .bfoot > span:first-child { flex: 1; }

.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin: 4px 0 14px; flex-wrap: wrap; }
.crumbs svg { width: 14px; height: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; }
.bhead { display: flex; gap: 22px; padding: 16px; align-items: flex-start; }
.bhead > .bcover { width: 220px; flex-shrink: 0; border-radius: 12px; }
.bhead-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bhead-main .kicker { color: var(--muted); font-size: 12.5px; }
.bhead-main .kicker a { text-decoration: underline; }
.bhead-main h1 { font-family: var(--display); font-weight: 400; font-size: 30px; }
.bhead-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.bhead-row label { display: flex; align-items: center; gap: 8px; }
.select.sm { height: 32px; padding: 0 30px 0 10px; font-size: 13.5px; width: auto; border-radius: 9px; }
.bstatus { height: 30px; width: auto; padding: 0 30px 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 500; }

.qlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.qnav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.qnav button { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px 13px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; font: inherit; font-size: 14px; color: var(--ink-2); overflow: hidden; }
.qnav button:hover { background: var(--surface-2); }
.qnav button.on { background: var(--brand-soft); color: var(--ink); font-weight: 500; }
.qnav small { font-size: 12px; color: var(--muted); }
.qnav i { position: absolute; left: 12px; bottom: 6px; height: 2px; background: #3b3835; border-radius: 2px; max-width: calc(100% - 24px); }
.qmain h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 12px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--line); }
.qcard.answered { border-left-color: #3b3835; }
.qcard > label { font-weight: 500; font-size: 14.5px; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { height: 34px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.qchip:hover { border-color: #b9b2a9; }
.qchip.on { background: #3b3835; border-color: #3b3835; color: #fff; }
.qhint { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.qhint svg { width: 14px; height: 14px; }
.qnext { display: flex; justify-content: space-between; margin: 14px 0 18px; }
.notes-card .textarea { margin-top: 10px; }

.ficha-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13.5px; flex-wrap: wrap; }
.ficha { padding: 32px 36px; max-width: 900px; }
.ficha-head { display: flex; gap: 22px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ficha-head > div:nth-child(2) { flex: 1; min-width: 0; }
.ficha-head small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ficha-head h2 { font-family: var(--display); font-weight: 400; font-size: 26px; }
.ficha-head span { color: var(--ink-2); font-size: 13.5px; }
.ficha-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ficha section { margin-top: 20px; break-inside: avoid; }
.ficha h3 { font-family: var(--display); font-weight: 400; font-size: 18px; margin-bottom: 8px; }
.ficha dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.ficha dl > div { padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.ficha dt { font-size: 12px; color: var(--muted); }
.ficha dd { margin: 2px 0 0; font-size: 14px; }
.ficha .empty-a dd { color: #c4beb6; }
.ficha-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ref-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.ref-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ref-grid figcaption { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; font-size: 12px; color: var(--ink-2); }
.ref-grid figcaption button { margin-left: auto; flex-shrink: 0; }

.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tpl-opt { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0 0 8px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 2px; }
.tpl-opt .bcover { margin-bottom: 6px; }
.tpl-opt b { font-weight: 500; font-size: 13.5px; padding: 0 10px; }
.tpl-opt small { font-size: 11.5px; color: var(--muted); padding: 0 10px; }
.tpl-opt.on { border-color: #3b3835; box-shadow: 0 0 0 3px #ebe8e3; }
.te-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--surface-2); }
.te-sec-head { display: flex; gap: 8px; margin-bottom: 10px; }
.te-sec-head .input { font-weight: 600; }
.te-q { display: grid; grid-template-columns: minmax(0, 1fr) 150px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.te-q .te-wide { grid-column: 1 / 3; }
.te-q .te-wide + .icon-btn, .te-q .icon-btn { grid-column: 3; grid-row: 1; }
.te-q .input, .te-q .select { padding: 8px 10px; font-size: 13.5px; }
.tpl-prev { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.side-card .card-head { margin-bottom: 8px; }
.pbrief-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; }
.pbrief-row:hover { background: var(--surface-2); }
.pbrief-row b { display: block; font-weight: 500; font-size: 14px; }
.pbrief-row small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .qlayout { grid-template-columns: 1fr; } .qnav { position: static; flex-direction: row; overflow-x: auto; } .qnav button { flex-shrink: 0; } .bhead { flex-direction: column; } .bhead > .bcover { width: 100%; max-height: 160px; } .ficha dl { grid-template-columns: 1fr; } .ficha { padding: 22px 18px; } }
@media print {
  body.print-ficha .sidebar, body.print-ficha .topbar, body.print-ficha .crumbs, body.print-ficha .bhead, body.print-ficha .subtabs, body.print-ficha .ficha-actions, body.print-ficha #toasts { display: none !important; }
  body.print-ficha, body.print-ficha .main { background: #fff; padding: 0; }
  body.print-ficha .ficha { box-shadow: none; border: 0; max-width: none; padding: 0; }
}
.modal.wide:has(#tpl-ed), .modal.wide:has(#nbf), .modal.wide:has(.tpl-prev) { padding: 26px 28px; background: #fff; width: min(860px, 100%); }

/* ---------- compromissos */
.kind-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kind-pick label { cursor: pointer; }
.kind-pick input { display: none; }
.kind-pick span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); background: #fff; }
.kind-pick span svg { width: 15px; height: 15px; }
.kind-pick input:checked + span { background: #3b3835; border-color: #3b3835; color: #fff; }
.due-pair { display: flex; gap: 6px; align-items: center; }
.due-pair input[type=time] { width: 84px; flex-shrink: 0; }
.ag-row.event .ag-text { border-left-color: #8a8580; }
.ag-row.holiday { cursor: default; }
.ag-row.holiday .ag-text { border-left-style: dashed; }
.ag-row.holiday .ag-text b { font-weight: 400; color: var(--ink-2); }
.cal-cell { cursor: pointer; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.holiday .cal-day { color: #a04848; }
.cal-hol { display: block; font-size: 11px; color: #a04848; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.evt { background: #3b3835; color: #fff; border: 0; }
.cal-ev.evt b { font-weight: 600; }
.cal-ev.evt.k-lembrete { background: #efebe5; color: var(--ink); }
.cal-ev.evt.k-visita { background: #6f7a6b; }
.cal-ev.evt.k-ligacao { background: #8a7b66; }
.toast.remind { background: #fff; color: var(--ink); border: 1px solid var(--line-2); cursor: pointer; max-width: 420px; }
.toast.remind svg { color: #c9a14a; }
@media (max-width: 760px) { .cal-hol { font-size: 0; height: 4px; background: #e8c9c9; border-radius: 2px; } }

/* ---------- clientes */
.cpill, .cstatus { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); }
.cstatus { height: 30px; width: auto; padding: 0 30px 0 12px; }
.c-lead { background: var(--sky-bg); color: var(--sky-ink); border-color: #d6e0e8; }
.c-proposta { background: var(--butter-bg); color: var(--butter-ink); border-color: #ecdfb8; }
.c-ativo { background: #3b3835; color: #fff; border-color: #3b3835; }
.c-concluido { background: var(--mint-bg); color: var(--mint-ink); border-color: #cfe1d4; }
.c-inativo { background: #f1efec; color: var(--muted); }
.search.inline { width: 280px; }
.search.inline input { height: 38px; padding-left: 40px; font-size: 14px; }
.search.inline > svg { top: 10px; left: 14px; width: 18px; height: 18px; }
.clients-table td { vertical-align: middle; }
.c-actions { display: inline-flex; gap: 2px; }
.c-actions .icon-btn svg { width: 16px; height: 16px; }
.mono-av.xl { width: 72px; height: 72px; font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: .04em; }
.chead { display: flex; gap: 20px; align-items: center; padding: 18px 20px; }
.chead-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.chead-main h1 { font-family: var(--display); font-weight: 400; font-size: 30px; }
.chead-main .muted svg { vertical-align: -2px; }
.chead-side { display: flex; align-items: center; gap: 8px; }
.ckpis { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 14px 0 6px; box-shadow: var(--shadow); }
.ckpis div { padding: 12px 18px; display: flex; flex-direction: column; }
.ckpis div + div { border-left: 1px solid var(--line); }
.ckpis b { font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1.1; }
.ckpis span { font-size: 12px; color: var(--muted); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cdata { margin: 8px 0 0; }
.cdata > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.cdata > div:last-child { border-bottom: 0; }
.cdata dt { font-size: 12px; color: var(--muted); }
.cdata dd { margin: 2px 0 0; font-size: 14px; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact-row > div { flex: 1; min-width: 0; }
.contact-row b { display: block; font-weight: 500; font-size: 14px; }
.contact-row small { color: var(--muted); font-size: 12px; }
.cnotes .textarea { margin-top: 10px; }
.client-link { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .chead { flex-wrap: wrap; } .ckpis { grid-template-columns: 1fr 1fr; } .ckpis div:nth-child(3) { border-left: 0; } .ckpis div:nth-child(n+3) { border-top: 1px solid var(--line); } .search.inline { width: 100%; display: block; } }

/* ---------- biblioteca */
.lib-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.lib-nav { position: sticky; top: 16px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.lib-f { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink-2); text-align: left; }
.lib-f svg { width: 18px; height: 18px; flex-shrink: 0; }
.lib-f span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-f small { font-size: 12px; color: var(--muted); }
.lib-f:hover { background: var(--surface-2); }
.lib-f.on { background: var(--brand-soft); color: var(--ink); font-weight: 500; }
.lib-fmore { display: none; width: 22px; height: 22px; border-radius: 6px; place-items: center; }
.lib-fmore svg { width: 16px; height: 16px; }
.lib-f:hover .lib-fmore { display: grid; }
.lib-f:hover .lib-fmore + small, .lib-f:hover small:has(+ .lib-fmore) { display: none; }
.lib-fmore:hover { background: #fff; }
.lib-newf { margin: 8px 10px 4px; font-size: 13px; }
.lib-main { min-width: 0; border-radius: 16px; transition: box-shadow .15s; }
.lib-main.dragging { box-shadow: 0 0 0 3px #b9b2a9; background: var(--surface-2); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.lib-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.lib-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30, 25, 20, .09); }
.lib-tile { position: relative; aspect-ratio: 4 / 3; background: #efebe5; display: grid; place-items: center; overflow: hidden; }
.lib-tile img { width: 100%; height: 100%; object-fit: cover; }
.lib-ext { font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: .08em; color: #6e6862; border: 1.5px solid #cfc8bf; border-radius: 10px; padding: 10px 14px; background: #f7f4f0; }
.lib-link { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #6e6862; }
.lib-link svg { width: 34px; height: 34px; }
.lib-link small { font-size: 12px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-tile.note { background: #fbf8f1; place-items: start; }
.lib-note { padding: 14px 16px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; overflow: hidden; height: 100%; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.lib-pin, .lib-more { position: absolute; top: 8px; opacity: 0; transition: opacity .15s; }
.lib-pin { right: 44px; } .lib-more { right: 8px; }
.lib-pin.on { opacity: 1; color: #c9a14a; }
.lib-card:hover .lib-pin, .lib-card:hover .lib-more { opacity: 1; }
.lib-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.lib-body b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-body small { font-size: 11.5px; color: var(--muted); }
.lib-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.lib-tags span { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--ink-2); }
.lib-tags span:hover { background: #e3dfd9; }
.lib-empty small { color: var(--muted); }
@media (max-width: 900px) { .lib-layout { grid-template-columns: 1fr; } .lib-nav { position: static; flex-direction: row; overflow-x: auto; } .lib-nav .nav-sep { display: none; } .lib-f { flex-shrink: 0; } .lib-newf { flex-shrink: 0; } .lib-pin, .lib-more { opacity: 1; } }

/* ---------- ajustes para celular */
.card:has(> table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .clients-table th:nth-child(3), .clients-table td:nth-child(3), .clients-table th:nth-child(5), .clients-table td:nth-child(5), .clients-table th:nth-child(6), .clients-table td:nth-child(6) { display: none; }
  .car-dots { left: auto; right: 12px; transform: none; }
  .car-slide span { right: 90px; font-size: 15px; }
  .page-head { flex-wrap: wrap; gap: 12px; }
  .chead-side { width: 100%; justify-content: flex-end; }
  .bhead > .bcover { display: none; }
}
.pin-input { font-size: 26px; letter-spacing: .5em; text-align: center; font-family: var(--display); }
.inline-check { display: flex; align-items: center; gap: 10px; }
