/* JF Ossela · Gestão — tema escuro elegante, pensado primeiro para telemóvel */

:root {
  --bg: #07090e;
  --bg-2: #0b0e15;
  --surface: #10141d;
  --surface-2: #151a25;
  --surface-3: #1c2230;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .11);
  --border: var(--line);
  --border-2: var(--line-2);
  --text: #f1f3f8;
  --text-2: #aab3c5;
  --muted: #6e798e;
  --primary: #5b8cff;
  --primary-2: #7b6cff;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  --danger: #f05252;
  --ok: #2fcb7a;
  --warn: #f5a524;
  --glass: rgba(14, 18, 27, .72);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: inset 0 1px 0 rgba(255, 255, 255, .04), 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 48px -20px rgba(0, 0, 0, .75);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
  --nav-gap: 10px;
  --topbar-h: 58px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
/* luz suave atrás de tudo */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 8% -12%, rgba(91, 140, 255, .14), transparent 62%),
    radial-gradient(760px 520px at 108% 4%, rgba(123, 108, 255, .10), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(34, 211, 238, .05), transparent 60%);
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.022em; }
[hidden] { display: none !important; }
::selection { background: rgba(91, 140, 255, .35); }
.icon { flex: none; display: block; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- arranque ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--line-2); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* entrada suave das páginas */
.main > * { animation: rise .45s var(--ease) both; }
.main > :nth-child(2) { animation-delay: .04s; }
.main > :nth-child(3) { animation-delay: .08s; }
.main > :nth-child(4) { animation-delay: .12s; }
.main > :nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .045); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s ease, border-color .2s ease, opacity .2s, filter .2s;
}
.btn:hover { background: rgba(255, 255, 255, .075); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px -10px rgba(91, 140, 255, .7);
}
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.btn-danger { background: rgba(240, 82, 82, .06); border-color: rgba(240, 82, 82, .3); color: #ff9393; box-shadow: none; }
.btn-danger:hover { background: rgba(240, 82, 82, .13); }
.btn-xl { min-height: 56px; font-size: 16.5px; border-radius: 16px; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; border: 0; background: transparent; color: var(--text-2);
  transition: background .2s, color .2s, transform .15s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }

/* ---------- formulários ---------- */
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: .01em; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 15px;
  font-size: 16px; /* evita o zoom automático no iPhone */
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .16); }
.input::placeholder, .textarea::placeholder { color: #566174; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(91, 140, 255, .8); background: rgba(91, 140, 255, .05);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, .16);
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e798e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.select option { background: #151a25; }
input[type="date"].input { appearance: none; -webkit-appearance: none; display: block; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
/* campo de data com texto quando está vazio e botão para limpar */
.date-wrap { position: relative; }
.date-wrap .input { padding-right: 46px; }
.date-wrap .input::-webkit-calendar-picker-indicator { display: none; }
.date-wrap:not(.has) .input { color: transparent; }
.date-wrap:not(.has) .input::-webkit-datetime-edit { color: transparent; }
.date-ph { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #566174; pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 30px); }
.date-wrap.has .date-ph { display: none; }
.date-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
.date-wrap:not(.has) .date-clear { display: none; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 52px; }
.input-group .addon { position: absolute; right: 4px; }
.input-suffix { position: absolute; right: 16px; color: var(--muted); pointer-events: none; }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.form-error {
  background: rgba(240, 82, 82, .1); border: 1px solid rgba(240, 82, 82, .3); color: #ffb3b3;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14.5px;
}

/* interruptor */
.switch-row {
  display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 14px; margin-bottom: 10px;
  background: var(--sheen), var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color .2s;
}
.switch-row:hover { border-color: var(--line-2); }
.switch-row .switch-text { flex: 1; font-weight: 550; }
.switch-row .switch-text small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 1px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); transition: background .25s; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #c9d1df; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .25s var(--ease), background .25s;
}
.switch input:checked + .track { background: var(--grad); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(91, 140, 255, .25); }

/* escolha segmentada */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.seg button.on {
  background: color-mix(in srgb, var(--c, var(--primary)) 18%, transparent);
  border-color: color-mix(in srgb, var(--c, var(--primary)) 70%, transparent); color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--primary)) 12%, transparent);
}

/* ---------- layout ---------- */
.shell { min-height: 100dvh; }
.sidebar { display: none; }
.content { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: calc(var(--safe-t) + var(--topbar-h)); padding: var(--safe-t) 16px 0;
  background: rgba(7, 9, 14, .72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { padding: 22px 16px calc(var(--nav-h) + var(--nav-gap) + var(--safe-b) + 96px); max-width: 1480px; margin: 0 auto; }

/* barra de baixo a flutuar (telemóvel) */
.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + var(--nav-gap)); z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: var(--nav-h); padding: 6px;
  background: rgba(16, 20, 29, .78); backdrop-filter: saturate(1.6) blur(22px); -webkit-backdrop-filter: saturate(1.6) blur(22px);
  border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -12px rgba(0, 0, 0, .8);
}
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .01em; min-width: 0;
  border-radius: 16px; transition: color .2s;
}
.bottom-nav .nav-ic { display: grid; place-items: center; width: 48px; height: 30px; border-radius: 99px; transition: background .25s var(--ease), color .2s; }
.bottom-nav .on { color: var(--text); }
.bottom-nav .on .nav-ic {
  background: color-mix(in srgb, var(--c, var(--primary)) 22%, transparent); color: var(--c, var(--primary));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--primary)) 30%, transparent);
}
.bottom-nav span.lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; color: #fff;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 22px -6px rgba(91, 140, 255, .6);
}
.brand-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.015em; }
.brand-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .01em; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 264px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    padding: 24px 14px 18px; background: rgba(255, 255, 255, .015); border-right: 1px solid var(--line);
  }
  .sidebar .brand { padding: 2px 10px 26px; }
  .side-link {
    position: relative; display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 14px; border-radius: 12px;
    color: var(--text-2); font-weight: 550; font-size: 15px; transition: background .2s, color .2s;
  }
  .side-link .icon { width: 20px; height: 20px; opacity: .85; }
  .side-link:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
  .side-link.on {
    background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--primary)) 16%, transparent), transparent 90%);
    color: var(--text);
  }
  .side-link.on::before {
    content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0;
    background: var(--c, var(--primary)); box-shadow: 0 0 12px var(--c, var(--primary));
  }
  .side-link.on .icon { color: var(--c, var(--primary)); opacity: 1; }
  .side-sep { height: 1px; background: var(--line); margin: 12px 10px; }
  .side-user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
  .side-user:hover { background: rgba(255, 255, 255, .03); border-color: var(--line); }
  .topbar, .bottom-nav { display: none; }
  .main { padding: 34px 36px 120px; }
}

/* ---------- cabeçalhos de página ---------- */
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; }
@media (min-width: 900px) { .page-head h1 { font-size: 34px; } }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; margin: 30px 0 14px; }
.section-title > .icon {
  width: 34px; height: 34px; padding: 8px; border-radius: 11px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-2);
}
.section-title .count {
  font-size: 12.5px; color: var(--text-2); font-weight: 650; padding: 2px 9px; border-radius: 99px;
  background: rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums;
}

/* ---------- módulos (botões grandes) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } }
.tile {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px;
  min-height: 172px; padding: 16px; border-radius: 24px;
  background: var(--sheen), var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
/* brilho com a cor do módulo */
.tile::before {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -80px; top: -110px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 34%, transparent), transparent);
  transition: opacity .3s, transform .4s var(--ease); opacity: .85;
}
.tile::after {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 55%, transparent), transparent); opacity: .7;
}
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); box-shadow: var(--shadow); }
.tile:hover::before { opacity: 1; transform: scale(1.12); }
.tile:active { transform: scale(.975); }
.tile-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  color: color-mix(in srgb, var(--c) 82%, #fff);
}
.tile-name { font-weight: 600; font-size: 15.5px; line-height: 1.25; letter-spacing: -.01em; }
.tile-count {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px;
  font-size: 40px; font-weight: 650; line-height: 1; margin-top: auto; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.tile-count small { font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.tile-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.tile-stats span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--c, var(--muted)) 14%, transparent); }
@media (min-width: 700px) {
  .tile { min-height: 196px; padding: 22px; }
  .tile-name { font-size: 17px; }
  .tile-count { font-size: 50px; }
}

/* ---------- cartões gerais ---------- */
.panel { background: var(--sheen), var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .panel { padding: 22px; } }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; }
@media (min-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 14.5px; }
.empty .icon { margin: 0 auto 10px; opacity: .6; }

/* ---------- tarefas ---------- */
.task-add { display: grid; gap: 10px; margin-bottom: 16px; }
.task-add-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; }
.task-add-row .btn { width: 56px; padding: 0; min-height: 52px; }
.tabs {
  display: flex; gap: 4px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
  padding: 4px; border-radius: 14px; margin-bottom: 14px;
}
.tabs button, .tabs a {
  flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, color .2s;
}
.tabs button:hover, .tabs a:hover { color: var(--text-2); }
.tabs .on { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 8px rgba(0, 0, 0, .3); }
.task-list { display: grid; gap: 8px; }
.task {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; min-height: 62px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.task:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.check {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .22); background: transparent; color: transparent;
  transition: all .25s var(--ease);
}
.check:hover { border-color: var(--ok); background: rgba(47, 203, 122, .08); }
.task.done .check { background: linear-gradient(145deg, #3ad98a, #22b36a); border-color: transparent; color: #04190d; box-shadow: 0 4px 14px -4px rgba(47, 203, 122, .6); }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 550; overflow-wrap: anywhere; }
.task.done .task-title { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- badges, avatares ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap; letter-spacing: .005em;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); color: var(--text-2);
}
.badge-red { background: rgba(240, 82, 82, .12); border-color: rgba(240, 82, 82, .2); color: #ff9c9c; }
.badge-amber { background: rgba(245, 165, 36, .12); border-color: rgba(245, 165, 36, .2); color: #ffcd7a; }
.badge-green { background: rgba(47, 203, 122, .12); border-color: rgba(47, 203, 122, .2); color: #84e6b0; }
.badge-blue { background: rgba(91, 140, 255, .14); border-color: rgba(91, 140, 255, .24); color: #a8c3ff; }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--a, var(--primary)) 55%, #1a2030), color-mix(in srgb, var(--a, var(--primary)) 25%, #10141d));
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1.5px color-mix(in srgb, var(--a, var(--primary)) 35%, transparent);
  font-size: 11.5px; font-weight: 650; letter-spacing: .02em;
}
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }

/* ---------- kanban ---------- */
.board-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.board-tools .search { flex: 1; min-width: 0; position: relative; }
.board-tools .search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.board-tools .search .input { padding-left: 46px; min-height: 48px; }
.chip-toggle {
  min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--text-2); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s, color .2s;
}
.chip-toggle.on { background: rgba(91, 140, 255, .14); border-color: rgba(91, 140, 255, .55); color: var(--text); }

.board-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 8px 16px 10px;
  position: sticky; top: calc(var(--safe-t) + var(--topbar-h)); z-index: 10;
  background: rgba(7, 9, 14, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.board-tabs::-webkit-scrollbar { display: none; }
.board-tabs button, .cat-bar button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--text-2); font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s, color .2s;
}
.board-tabs button .n, .cat-bar button .n { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.board-tabs button.on, .cat-bar button.on {
  background: color-mix(in srgb, var(--c) 16%, transparent); border-color: color-mix(in srgb, var(--c) 60%, transparent); color: var(--text);
}
.board-tabs button.on .n, .cat-bar button.on .n { color: var(--text); }

.board {
  position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; align-items: flex-start;
}
.board::-webkit-scrollbar { display: none; }
.column {
  flex: 0 0 calc(100% - 26px); scroll-snap-align: start; min-width: 0;
  background: rgba(255, 255, 255, .018); border: 1px solid var(--line); border-radius: 22px; padding: 12px;
  transition: border-color .2s, background .2s;
}
.column.drop { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 7%, transparent); }
.column-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.column-head .n {
  margin-left: auto; min-width: 28px; height: 24px; border-radius: 99px; display: grid; place-items: center; padding: 0 8px;
  font-size: 12.5px; font-weight: 650; background: rgba(255, 255, 255, .06); color: var(--text-2); font-variant-numeric: tabular-nums;
}
.column-body { display: grid; gap: 10px; min-height: 90px; align-content: start; }
.column-empty { border: 1px dashed rgba(255, 255, 255, .1); border-radius: 14px; padding: 24px 10px; text-align: center; color: var(--muted); font-size: 13.5px; }

.card {
  position: relative; display: block; width: 100%; text-align: left; padding: 14px 14px 12px 18px; border-radius: 16px;
  background: var(--sheen), var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .25s; cursor: pointer;
}
/* barra fina com a cor do estado */
.card::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--s); box-shadow: 0 0 10px color-mix(in srgb, var(--s) 60%, transparent);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.card:active { transform: scale(.985); }
.card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.card.dragging { opacity: .45; }
.card-title { font-weight: 600; font-size: 15.5px; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.card-line { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13.5px; margin-top: 6px; min-width: 0; }
.card-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-line .icon { color: var(--muted); width: 15px; height: 15px; }
.card-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.card-foot .spacer { min-width: 4px; }
.more-btn { width: 100%; }

@media (min-width: 900px) {
  .board-tabs { display: none; }
  .board { margin: 0; padding: 0 0 10px; scroll-snap-type: none; gap: 16px; scrollbar-width: thin; }
  .column { flex: 1 1 0; min-width: 240px; }
}

/* botão flutuante */
.fab {
  position: fixed; z-index: 25; right: 18px; bottom: calc(var(--nav-h) + var(--nav-gap) + var(--safe-b) + 16px);
  height: 60px; min-width: 60px; padding: 0 18px; border-radius: 20px; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--primary)) 92%, #fff), color-mix(in srgb, var(--c, var(--primary)) 78%, #000));
  color: #fff; font-weight: 650; font-size: 15.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 32px -10px color-mix(in srgb, var(--c, var(--primary)) 75%, transparent), 0 4px 12px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease), filter .2s;
}
.fab:hover { filter: brightness(1.08); }
.fab:active { transform: scale(.93); }
.fab .lbl { display: none; }
@media (min-width: 900px) {
  .fab { bottom: 32px; right: 36px; padding: 0 24px 0 20px; }
  .fab .lbl { display: inline; }
}

/* ---------- janelas (sheets) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(2, 4, 8, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.overlay.open { opacity: 1; }
.sheet {
  width: 100%; max-height: calc(100dvh - var(--safe-t) - 12px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #131824, #0d1118 40%);
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -20px 60px rgba(0, 0, 0, .55);
  transform: translateY(48px); transition: transform .32s var(--ease);
}
.overlay.open .sheet { transform: none; }
.sheet-grab { width: 38px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px 22px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 20px 22px 26px; }
.sheet-foot {
  flex: none; display: flex; gap: 10px; padding: 12px 22px calc(12px + var(--safe-b));
  border-top: 1px solid var(--line); background: rgba(11, 14, 21, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sheet-foot:empty { display: none; }
.sheet-foot .btn-primary { flex: 1; }
@media (min-width: 900px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet {
    width: min(660px, 100%); max-height: min(880px, calc(100dvh - 48px)); border-radius: 26px; border-bottom: 1px solid var(--line-2);
    transform: translateY(14px) scale(.98); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -20px rgba(0, 0, 0, .8);
  }
  .sheet.wide { width: min(880px, 100%); }
  .sheet-grab { display: none; }
  .sheet-head { padding-top: 16px; }
  .sheet-foot { border-radius: 0 0 26px 26px; padding-bottom: 14px; }
}

/* seletor de estado */
.status-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
@media (min-width: 560px) { .status-pick { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.status-pick button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 10px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); font-weight: 600; font-size: 14.5px; line-height: 1.15;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.status-pick button:hover { border-color: rgba(255, 255, 255, .18); }
.status-pick button.on {
  background: color-mix(in srgb, var(--c) 17%, transparent); border-color: color-mix(in srgb, var(--c) 70%, transparent); color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.quick-links { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }

/* histórico */
.log { display: grid; gap: 16px; margin-top: 16px; }
.log-row { display: flex; gap: 12px; }
.log-body { flex: 1; min-width: 0; }
.log-head { font-size: 12.5px; color: var(--muted); }
.log-head b { color: var(--text-2); font-weight: 600; }
.log-text { margin-top: 2px; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14.5px; color: var(--text-2); }
.log-row.comment .log-text { color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: 10px 13px; border-radius: 4px 14px 14px 14px; margin-top: 5px; }
.comment-box { display: flex; gap: 10px; align-items: flex-end; }
.comment-box .textarea { min-height: 52px; height: 52px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 24px 0; }
.sub-title { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }

/* ---------- lista de registos (início, admin) ---------- */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 64px; width: 100%; text-align: left;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.row:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.row-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 26%, transparent), color-mix(in srgb, var(--c) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 26%, transparent); color: color-mix(in srgb, var(--c) 80%, #fff);
}
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-card { display: flex; gap: 14px; align-items: flex-start; }
.user-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.admin-list { display: grid; gap: 12px; }
@media (min-width: 900px) { .admin-list { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; } }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* editor de colunas / campos */
.edit-list { display: grid; gap: 8px; margin-bottom: 12px; }
.edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: 14px; }
.edit-row .input { flex: 1 1 150px; min-width: 0; min-height: 46px; padding: 10px 12px; }
.edit-row .final-toggle { margin-left: auto; }
.edit-row:has(.final-toggle) .input { flex-basis: calc(100% - 62px); }
.edit-row:has(.final-toggle) .updown { flex-direction: row; }
@media (min-width: 900px) { .edit-row:has(.final-toggle) .input { flex-basis: 150px; } }
.edit-row.off { opacity: .5; }
.color-input { width: 46px; height: 46px; flex: none; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: none; overflow: hidden; cursor: pointer; }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: 0; border-radius: 11px; }
.color-input::-moz-color-swatch { border: 0; border-radius: 11px; }
.final-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.final-toggle input { width: 20px; height: 20px; accent-color: var(--ok); }
.updown { display: flex; flex-direction: column; }
.updown .icon-btn { width: 34px; height: 23px; border-radius: 6px; }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.icon-grid button {
  aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2);
  display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s;
}
.icon-grid button.on { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sw);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(0, 0, 0, .2); transition: box-shadow .2s, transform .2s var(--ease);
}
.swatches button:hover { transform: scale(1.08); }
.swatches button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sw); }

/* link de acesso */
.link-box { display: flex; gap: 8px; }
.link-box .input { font-size: 14px; }

/* ---------- entrada ---------- */
.auth {
  min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 20px) 16px calc(var(--safe-b) + 20px);
  background:
    radial-gradient(640px 420px at 12% 4%, rgba(91, 140, 255, .2), transparent 62%),
    radial-gradient(560px 420px at 100% 100%, rgba(123, 108, 255, .16), transparent 62%);
}
.auth-card {
  width: min(420px, 100%); padding: 30px 24px; border-radius: 28px;
  background: rgba(16, 20, 29, .72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  animation: rise .5s var(--ease) both;
}
.auth-card .brand { margin-bottom: 30px; }
.auth-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.auth-card .lead { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.auth-card .btn { margin-top: 6px; }
.auth-card .foot { margin-top: 20px; text-align: center; }
@media (min-width: 560px) { .auth-card { padding: 38px 34px; } }

/* ---------- avisos ---------- */
.toasts { position: fixed; z-index: 100; left: 0; right: 0; top: calc(var(--safe-t) + 12px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto; max-width: 480px; display: flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 13px; border-radius: 99px; font-weight: 550; font-size: 14.5px;
  background: rgba(24, 30, 44, .88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  animation: toast-in .3s var(--ease);
}
.toast .icon { width: 18px; height: 18px; }
.toast.ok .icon { color: var(--ok); }
.toast.err { background: rgba(58, 22, 30, .9); border-color: rgba(240, 82, 82, .4); border-radius: 16px; }
.toast.err .icon { color: #ff8f8f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }

/* ---------- carregamento ---------- */
.skeleton {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255, 255, 255, .02) 30%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .02) 70%);
  background-size: 220% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.help-list { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.help-list li { margin-bottom: 6px; }

/* ---------- categorias (vistas do quadro) ---------- */
.cat-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 2px 16px; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar button { border-radius: 12px; min-height: 42px; }
@media (min-width: 900px) { .cat-bar { flex-wrap: wrap; overflow: visible; margin: 0 0 18px; padding: 0; } }
.chip-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); font-weight: 550; font-size: 14.5px;
  transition: background .2s, border-color .2s, color .2s;
}
.chip-pick button.on { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: color-mix(in srgb, var(--c) 65%, transparent); color: var(--text); }
.badge.tint {
  background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 22%, transparent);
  color: color-mix(in srgb, var(--c) 55%, #fff);
}
.badge.tint .dot { box-shadow: none; width: 6px; height: 6px; }

/* ---------- agenda ---------- */
.week-nav {
  display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 18px;
  background: var(--sheen), var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.week-nav .icon-btn { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); }
.week-mid { flex: 1; min-width: 0; text-align: center; }
.week-label { font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.week-label small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2px; }
.week-sum { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.link-btn { border: 0; background: none; padding: 0; color: #8fb0ff; font-weight: 600; font-size: 13px; }
.agenda-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .agenda-days { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; } }
.agenda-day.today { border-color: rgba(91, 140, 255, .45); box-shadow: 0 0 0 3px rgba(91, 140, 255, .08), var(--shadow-sm); }
.agenda-day.past { opacity: .72; }
.agenda-day-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.agenda-day-head > div { flex: 1; min-width: 0; }
.agenda-day-name { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.agenda-count {
  padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  color: var(--text-2); font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums;
}
.slots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.slot {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 12px 10px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02);
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.slot:active:not(:disabled) { transform: scale(.985); }
.slot.booked { background: var(--sheen), var(--surface-2); }
.slot.booked::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--s); box-shadow: 0 0 10px color-mix(in srgb, var(--s) 60%, transparent);
}
.slot.booked:hover { border-color: var(--line-2); }
.slot.free { border-style: dashed; border-color: rgba(255, 255, 255, .1); }
.slot.free:hover:not(:disabled) { border-color: rgba(91, 140, 255, .55); background: rgba(91, 140, 255, .06); }
.slot.free:disabled { cursor: default; opacity: .45; }
.slot-time { flex: none; width: 50px; display: flex; flex-direction: column; line-height: 1.15; font-variant-numeric: tabular-nums; }
.slot-time b { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.slot-time span { font-size: 12px; color: var(--muted); }
.slot-main { flex: 1; min-width: 0; }
.slot-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-sub { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-free-label { color: var(--muted); font-weight: 500; }
.slot-add { display: inline-flex; align-items: center; gap: 6px; color: #8fb0ff; font-weight: 600; font-size: 14.5px; }
.slot-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.slot-cancelled { display: block; border: 0; background: none; padding: 0 12px 4px 78px; text-align: left; color: var(--muted); font-size: 12.5px; text-decoration: line-through; }
.badge-new { background: linear-gradient(135deg, #3ee0f5, #22b8d8); border-color: transparent; color: #021d24; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(34, 211, 238, .6); }
.tile-new {
  position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 99px;
  background: linear-gradient(135deg, #3ee0f5, #22b8d8); color: #021d24; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(34, 211, 238, .7);
}
.appt-when {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; font-weight: 600;
  background: color-mix(in srgb, var(--c, var(--primary)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--primary)) 32%, transparent);
}
.appt-when .icon { color: color-mix(in srgb, var(--c, var(--primary)) 80%, #fff); }
.sched-row .select { flex: 1 1 100%; min-height: 46px; }
.sched-row .input { flex: 1 1 110px; }
.sched-preview { flex-basis: 100%; padding: 0 4px; }

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

/* ---------- pontos para ata ---------- */
.notes-months { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1100px) { .notes-months { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.notes-month.current { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 7%, transparent), var(--shadow-sm); }
.notes-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.notes-head > div { flex: 1; min-width: 0; }
.notes-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.notes-list { display: grid; gap: 6px; }
.note {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .2s, background .2s;
}
.note:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.note-n {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 70%, #fff); font-variant-numeric: tabular-nums;
}
.note-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.note-title { font-weight: 600; overflow-wrap: anywhere; }
.note-text {
  font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.login-row { cursor: default; }
.login-row.fail { border-color: rgba(240, 82, 82, .18); }
.login-row.fail .row-sub { color: #ff9c9c; }
@media (max-width: 420px) { .tabs .icon { display: none; } }
