:root {
  --bg: #0a0f1c;
  --surface: rgba(19, 28, 46, 0.72);
  --surface-solid: #131c2e;
  --surface-2: #1a253c;
  --surface-3: #22304b;
  --border: rgba(148, 163, 184, 0.1);
  --border-strong: rgba(148, 163, 184, 0.2);
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --lime: #a0dd1f;
  --lime-2: #b8ef3d;
  --lime-dim: rgba(160, 221, 31, 0.12);
  --amber: #f5a524;
  --amber-dim: rgba(245, 165, 36, 0.12);
  --red: #f05252;
  --red-dim: rgba(240, 82, 82, 0.12);
  --blue: #5b9cff;
  --blue-dim: rgba(91, 156, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }

/* ─── Fundo ─────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.bg__glow--a { width: 560px; height: 560px; top: -220px; right: -160px; background: radial-gradient(circle, rgba(160, 221, 31, 0.28), transparent 65%); }
.bg__glow--b { width: 620px; height: 620px; bottom: -320px; left: -200px; background: radial-gradient(circle, rgba(91, 156, 255, 0.18), transparent 65%); }
.bg__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--lime-dim); border-top-color: var(--lime); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Marca ─────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 30px; width: auto; }
.brand__tag { padding-left: 12px; border-left: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-2); line-height: 22px; }

/* ─── Login ─────────────────────────────────────────── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login__card {
  width: 100%; max-width: 420px; padding: 36px 32px 32px;
  background: var(--surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); border-radius: 24px; box-shadow: var(--shadow);
  animation: rise 0.6s var(--ease) both;
}
.login__card .brand { justify-content: center; margin-bottom: 26px; }
.login__card .brand__logo { height: 40px; }
.login__card .brand__tag { font-size: 20px; line-height: 26px; }
.login__card h1 { font-size: 26px; text-align: center; }
.login__sub { margin: 6px 0 26px; text-align: center; color: var(--text-2); }
.login__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.who__btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px;
  border-radius: 16px; background: var(--surface-2); border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.who__btn:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.who__btn[aria-pressed='true'] { border-color: var(--lime); background: var(--lime-dim); }
.who__btn .avatar { width: 46px; height: 46px; font-size: 18px; }
.who__btn span:last-child { font-weight: 600; }
.login__error { min-height: 20px; margin: 10px 0 0; color: var(--red); font-size: 13px; text-align: center; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ─── Layout ────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px;
  padding: 26px 18px; border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.85), rgba(10, 15, 28, 0.6));
  backdrop-filter: blur(16px);
}
.sidebar .brand { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 0 12px; margin: 6px 0 6px; }
.nav__item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: var(--text-2); font-weight: 500; transition: background 0.15s, color 0.15s;
}
.nav__item:hover { background: rgba(148, 163, 184, 0.06); color: var(--text); }
.nav__item.is-active { background: var(--lime-dim); color: var(--lime); font-weight: 600; }
.nav__item .badge { margin-left: auto; }
.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.me__info { flex: 1; min-width: 0; }
.me__name { font-weight: 600; font-size: 14px; }
.me__email { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; padding: 34px 40px 80px; max-width: 1240px; width: 100%; }
.topbar-mobile, .tabbar, .fab { display: none; }

/* ─── Cabeçalho de página ───────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; animation: rise 0.5s var(--ease) both; }
.page-head h1 { font-size: 30px; line-height: 1.15; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }

/* ─── Botões ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.15s, box-shadow 0.2s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--lime); color: #0a0f1c; font-weight: 700; box-shadow: 0 10px 30px -12px rgba(160, 221, 31, 0.7); }
.btn--primary:hover { background: var(--lime-2); box-shadow: 0 14px 34px -12px rgba(160, 221, 31, 0.85); }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--danger { color: var(--red); background: transparent; padding: 0 12px; }
.btn--danger:hover { background: var(--red-dim); }
.btn--block { width: 100%; height: 50px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }

.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.badge--red { background: var(--red-dim); color: var(--red); }
.badge--amber { background: var(--amber-dim); color: var(--amber); }

/* ─── Campos ────────────────────────────────────────── */
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  background: rgba(10, 15, 28, 0.6); border: 1px solid var(--border-strong); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field__label { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ─── Painel ────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  padding: 30px 32px; margin-bottom: 18px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(160, 221, 31, 0.1), rgba(19, 28, 46, 0.75) 45%);
  border: 1px solid rgba(160, 221, 31, 0.18); box-shadow: var(--shadow);
  animation: rise 0.55s var(--ease) both;
}
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(160, 221, 31, 0.18), transparent 70%); }
.ring { position: relative; width: 136px; height: 136px; }
.ring svg { transform: rotate(-90deg); }
.ring__track { stroke: rgba(148, 163, 184, 0.12); }
.ring__bar { stroke: var(--lime); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 10px rgba(160, 221, 31, 0.45)); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__pct { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.04em; line-height: 1; }
.ring__sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.hero__title { font-size: 24px; line-height: 1.25; }
.hero__text { margin: 8px 0 18px; color: var(--text-2); max-width: 520px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
  position: relative; overflow: hidden; text-align: left; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform 0.2s var(--ease), border-color 0.2s;
  animation: rise 0.55s var(--ease) both;
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stat__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; }
.stat__value { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat__label { margin-top: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.stat--lime .stat__icon { background: var(--lime-dim); color: var(--lime); }
.stat--amber .stat__icon { background: var(--amber-dim); color: var(--amber); }
.stat--red .stat__icon { background: var(--red-dim); color: var(--red); }
.stat--blue .stat__icon { background: var(--blue-dim); color: var(--blue); }
.stat--red.has-items { border-color: rgba(240, 82, 82, 0.35); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.panel, .done-item, .stat { min-width: 0; }
.panel {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); animation: rise 0.6s var(--ease) both;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel__head h2 { font-size: 17px; }
.link { color: var(--lime); font-size: 13px; font-weight: 600; }
.link:hover { text-decoration: underline; }

.timeline { display: flex; flex-direction: column; gap: 6px; }
.tl-item { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 12px; text-align: left; width: calc(100% + 20px); transition: background 0.15s; }
.tl-item:hover { background: rgba(148, 163, 184, 0.06); }
.date-badge { width: 48px; height: 52px; flex-shrink: 0; border-radius: 12px; display: grid; place-content: center; text-align: center; background: var(--surface-2); border: 1px solid var(--border); }
.date-badge b { font-family: var(--font-display); font-size: 19px; line-height: 1; }
.date-badge small { font-size: 11px; text-transform: uppercase; color: var(--text-2); letter-spacing: 0.05em; margin-top: 2px; }
.date-badge--late { background: var(--red-dim); border-color: rgba(240, 82, 82, 0.3); color: var(--red); }
.date-badge--late small { color: var(--red); }
.date-badge--soon { background: var(--amber-dim); border-color: rgba(245, 165, 36, 0.3); color: var(--amber); }
.date-badge--soon small { color: var(--amber); }
.tl-item__body { flex: 1; min-width: 0; }
.tl-item__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item__meta { font-size: 13px; color: var(--text-2); margin-top: 2px; display: flex; flex-wrap: wrap; column-gap: 8px; align-items: center; }
.tl-item__meta > span { white-space: nowrap; }

.areas { display: flex; flex-direction: column; gap: 16px; }
.area__row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.area__name { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.area__count { color: var(--text-2); font-size: 13px; }
.bar { height: 8px; border-radius: 99px; background: rgba(148, 163, 184, 0.1); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; transition: width 1s var(--ease); }

.done-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.done-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(160, 221, 31, 0.05); border: 1px solid rgba(160, 221, 31, 0.12); text-align: left; }
.done-item__check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0a0f1c; }
.done-item__title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-item__meta { font-size: 12px; color: var(--text-2); }

/* ─── Barra de filtros ──────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; animation: rise 0.5s var(--ease) both; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 42px; height: 44px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: rgba(10, 15, 28, 0.6); border: 1px solid var(--border); }
.seg button { height: 34px; padding: 0 13px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; transition: background 0.15s, color 0.15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.toolbar .select { width: auto; height: 44px; padding-right: 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* ─── Cards de meta ─────────────────────────────────── */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.goal {
  position: relative; display: flex; gap: 14px; padding: 18px 18px 16px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s, opacity 0.3s;
  animation: rise 0.5s var(--ease) both;
}
.goal::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent, var(--text-3)); }
.goal:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.goal--andamento { --accent: var(--lime); }
.goal--vencendo { --accent: var(--amber); }
.goal--atrasada { --accent: var(--red); border-color: rgba(240, 82, 82, 0.22); }
.goal--concluida { --accent: var(--lime); }
.goal--concluida .goal__title { color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, 0.5); }

.check {
  position: relative; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border-strong); color: transparent; margin-top: 1px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.check:hover { border-color: var(--lime); color: var(--lime); transform: scale(1.08); }
.check.is-done { background: var(--lime); border-color: var(--lime); color: #0a0f1c; }
.check.is-done:hover { background: transparent; color: var(--lime); }
.check.pop { animation: pop 0.45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); pointer-events: none; animation: spark 0.7s var(--ease) forwards; }
@keyframes spark { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.2); opacity: 0; } }

.goal__body { flex: 1; min-width: 0; text-align: left; }
.goal__top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.goal__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.goal__desc { margin: 6px 0 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.goal__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.prio::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 20%, transparent); }
.prio--alta { --p: var(--red); }
.prio--media { --p: var(--amber); }
.prio--baixa { --p: var(--text-3); }

.due { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.due--vencendo { color: var(--amber); }
.due--atrasada { color: var(--red); }
.due--concluida { color: var(--lime); }

.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0a0f1c; background: var(--c); font-family: var(--font-display); }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid var(--surface-solid); }
.avatars .avatar + .avatar { margin-left: -9px; }

.empty { grid-column: 1 / -1; display: grid; place-items: center; text-align: center; padding: 64px 20px; border-radius: var(--radius); border: 1px dashed var(--border-strong); color: var(--text-2); }
.empty__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); margin-bottom: 14px; }
.empty h3 { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.empty p { margin: 0 0 18px; max-width: 320px; }
.empty--small { padding: 28px 16px; border: 0; }

/* ─── Modal ─────────────────────────────────────────── */
dialog {
  width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--border-strong);
  border-radius: 24px; background: var(--surface-solid); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}
dialog[open] { animation: modal-in 0.35s var(--ease); }
dialog::backdrop { background: rgba(5, 8, 16, 0.7); backdrop-filter: blur(6px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.modal__head h2 { font-size: 20px; }
.modal__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.modal__foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--border); }
.modal__foot .spacer { flex: 1; }

.cat-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cat-opt { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--text-2); background: rgba(10, 15, 28, 0.5); border: 1px solid var(--border); transition: all 0.15s; }
.cat-opt:hover { color: var(--text); border-color: var(--border-strong); }
.cat-opt[aria-pressed='true'] { color: var(--c); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg--full { display: flex; width: 100%; min-width: 0; }
.seg--full button { flex: 1 1 0; min-width: 0; justify-content: center; height: 38px; padding: 0 8px; gap: 6px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { height: 28px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); transition: all 0.15s; }
.presets button:hover { color: var(--lime); border-color: rgba(160, 221, 31, 0.4); }
.form-error { color: var(--red); font-size: 13px; min-height: 18px; margin: -6px 0 0; }
.status-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; background: var(--lime-dim); color: var(--lime); }

/* ─── Configurações ─────────────────────────────────── */
.section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.member-row { display: grid; grid-template-columns: auto 1fr 1.6fr; gap: 10px; align-items: center; }
.member-row .avatar { width: 38px; height: 38px; font-size: 15px; }
.info { padding: 14px 16px; border-radius: 14px; background: rgba(10, 15, 28, 0.5); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; line-height: 1.6; }
.info b { color: var(--text); }
.log { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.log__item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 9px 12px; border-radius: 10px; background: rgba(10, 15, 28, 0.5); }
.log__item span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log__item time { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--ok { background: var(--lime); }
.dot--err { background: var(--red); }

/* ─── Toasts ────────────────────────────────────────── */
#toasts { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: toast-in 0.35s var(--ease) both; max-width: 360px;
}
.toast--ok svg { color: var(--lime); }
.toast--err svg { color: var(--red); }
.toast.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ─── Responsivo ────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .main { padding: 18px 16px 120px; }
  .topbar-mobile { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
  .tabbar {
    display: flex; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 20px; background: rgba(19, 28, 46, 0.9); backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  }
  .tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 14px; font-size: 10.5px; font-weight: 600; color: var(--text-3); }
  .tabbar a.is-active { color: var(--lime); background: var(--lime-dim); }
  .tabbar .badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
  .fab {
    display: grid; place-items: center; position: fixed; z-index: 51; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 18px; background: var(--lime); color: #0a0f1c;
    box-shadow: 0 16px 34px -10px rgba(160, 221, 31, 0.75);
  }
  .page-head { align-items: flex-start; }
  .page-head .btn--primary { display: none; }
  .page-head h1 { font-size: 25px; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; gap: 18px; }
  .hero__chips { justify-content: center; }
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat__value { font-size: 27px; }
  .done-list { grid-template-columns: minmax(0, 1fr); }
  .goals { grid-template-columns: minmax(0, 1fr); }
  .search { max-width: none; flex-basis: 100%; }
  .toolbar .seg { overflow-x: auto; max-width: 100%; }
  .toolbar .select { flex: 1; }
  .row-2 { grid-template-columns: 1fr !important; }
  .member-row { grid-template-columns: auto 1fr; }
  .member-row input[type='email'] { grid-column: 1 / -1; }
  #toasts { left: 16px; right: 16px; bottom: calc(100px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  dialog { max-height: calc(100vh - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
