/* ─────────────────────────────────────────────────────────────────────
   Jarvis · tema claro
   Névoa fria + papel branco + tinta azul-marinho, acento cobalto.
   Sora (títulos, números) + Onest (texto).
   A peça de destaque é o "bilhete" de tarefa: canhoto com a data,
   picote, corpo com a tarefa e um carimbo quando ela é criada.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --fog: #edf0f5;
  --fog-2: #e3e8f0;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --line: #dce2ec;
  --line-2: #cbd3e1;
  --ink: #0f1b3d;
  --ink-2: #2b3758;
  --muted: #66718a;
  --faint: #98a1b5;
  --cobalt: #3346f0;
  --cobalt-2: #2536d6;
  --cobalt-wash: #eceffe;
  --saffron: #ffb020;
  --saffron-wash: #fff4dc;
  --saffron-ink: #8a5600;
  --mint: #12b886;
  --mint-wash: #e2f7ef;
  --mint-ink: #0b7a5a;
  --rose: #f0506e;
  --rose-wash: #fde8ec;
  --rose-ink: #b42343;

  --sp0: #3346f0; --sp1: #e8590c; --sp2: #9c36b5; --sp3: #0c8599; --sp4: #c2255c; --sp5: #5c7cfa;

  --display: 'Sora', 'Onest', system-ui, sans-serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* escala 1.25 a partir de 15px */
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-base: 15px; --fs-md: 18px; --fs-lg: 23px; --fs-xl: 30px; --fs-2xl: 44px;

  --shadow-sheet: 0 1px 0 rgba(15, 27, 61, .04), 0 12px 32px -18px rgba(15, 27, 61, .25);
  --shadow-pop: 0 2px 4px rgba(15, 27, 61, .05), 0 22px 44px -20px rgba(15, 27, 61, .35);
  --ease: cubic-bezier(.22, .9, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fog);
  color: var(--ink);
  font: 400 var(--fs-base)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--cobalt); text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 2px; border-radius: 10px; }
.tab { font-variant-numeric: tabular-nums; }

.ico { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* ── botões ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer;
  font-weight: 600; font-size: var(--fs-base); white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--go { background: var(--cobalt); color: #fff; box-shadow: 0 8px 18px -10px rgba(51, 70, 240, .8); }
.btn--go:hover { background: var(--cobalt-2); }
.btn--quiet { background: var(--mist); color: var(--ink-2); }
.btn--quiet:hover { background: var(--fog-2); }

.ghost {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer;
}
.ghost:hover { background: var(--mist); color: var(--ink); }
.ghost .ico { width: 21px; height: 21px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
}
.pill .ico { width: 17px; height: 17px; color: var(--cobalt); }
.pill:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ═════════════════════════ LOGIN ═════════════════════════ */
.signin { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); background: var(--paper); }

.signin__stage {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px clamp(28px, 5vw, 72px); background: var(--ink); color: #fff;
}
/* trilho de pontos ao fundo: o "papel quadriculado" de quem organiza projetos */
.signin__stage::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(160deg, #000 20%, transparent 75%);
}
.signin__by { position: relative; color: rgba(255, 255, 255, .62); font-size: var(--fs-sm); }
.signin__word {
  position: relative; margin: 0; font: 800 clamp(80px, 12vw, 168px)/.9 var(--display);
  letter-spacing: -0.02em; color: #fff;
}
.signin__line { position: relative; max-width: 30ch; margin: 18px 0 0; color: rgba(255, 255, 255, .72); font-size: var(--fs-md); line-height: 1.45; }
.signin__demo { position: relative; margin-top: 44px; max-width: 470px; transform: rotate(-2.5deg); transform-origin: left center; }
.signin__demo .ticket { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); animation: none; }

.signin__panel { display: grid; place-items: center; padding: 40px 24px; }
.signin__form { width: min(380px, 100%); display: grid; gap: 18px; }
.signin__form h2 { margin: 0; font: 700 var(--fs-xl)/1.1 var(--display); letter-spacing: -0.015em; }
.signin__form p { margin: -8px 0 8px; color: var(--muted); }
.field { display: grid; gap: 7px; }
.field > span { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.field input {
  height: 52px; padding: 0 16px; font-size: 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover { border-color: var(--line-2); }
.field input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-wash); }
.signin__form .btn { height: 52px; margin-top: 4px; }
.signin__err { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--rose-wash); color: var(--rose-ink); font-size: var(--fs-sm); font-weight: 500; }
.signin__help { color: var(--faint); font-size: var(--fs-sm); }

/* ═════════════════════════ APP ═════════════════════════ */
.shell {
  height: 100dvh; display: grid; grid-template-columns: 232px minmax(290px, 350px) minmax(0, 1fr);
  gap: 12px; padding: 12px; overflow: hidden;
}

/* menu (trilho azul-marinho, aberto: ícone + nome, com o lugar atual marcado) */
.rail {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px;
  border-radius: 22px; background: var(--ink); color: rgba(255, 255, 255, .68);
}
.rail__brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 18px; }
.rail__logo {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: var(--cobalt); color: #fff; font: 800 19px/1 var(--display);
}
.rail__word { color: #fff; font: 700 var(--fs-md)/1 var(--display); letter-spacing: -0.015em; }
.rail__group { padding: 14px 10px 6px; color: rgba(255, 255, 255, .42); font-size: var(--fs-xs); font-weight: 600; }
.rail__btn {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border: 0; border-radius: 14px; background: transparent; color: inherit; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.rail__btn > .ico { width: 22px; height: 22px; }
.rail__text { display: grid; min-width: 0; }
.rail__label { color: #fff; font-weight: 600; font-size: var(--fs-base); line-height: 1.25; }
.rail__hint { font-size: var(--fs-xs); line-height: 1.3; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail__btn:hover { background: rgba(255, 255, 255, .07); }
.rail__btn[aria-current='page'] { background: rgba(255, 255, 255, .14); color: #fff; }
.rail__btn[aria-current='page']::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--saffron); }
.rail__btn[aria-current='page'] > .ico { color: var(--saffron); }
.rail__btn--live > .ico { position: relative; }
.rail__btn--live > .ico::after { content: ''; position: absolute; top: -3px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2.5px var(--ink); }
.rail__spacer { flex: 1; }
.rail__me {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; text-align: left;
}
.rail__me:hover { background: rgba(255, 255, 255, .12); }
.rail__avatar {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--saffron); color: var(--ink); font: 700 var(--fs-sm)/1 var(--display);
}
.rail__name { min-width: 0; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tela média: o menu fecha em ícones (o nome continua no title) */
@media (max-width: 1180px) and (min-width: 768px) {
  .shell { grid-template-columns: 76px minmax(290px, 340px) minmax(0, 1fr); }
  .rail { align-items: center; padding: 14px 0; }
  .rail__brand { padding: 0 0 14px; }
  .rail__word, .rail__text, .rail__group, .rail__name { display: none; }
  .rail__btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .rail__btn[aria-current='page']::before { left: -14px; }
  .rail__me { width: auto; padding: 4px; background: transparent; }
}

/* folhas */
.sheet { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-sheet); overflow: hidden; }

/* lista */
.list__head { padding: 22px 20px 6px; }
.list__hello { margin: 0; font: 700 var(--fs-lg)/1.15 var(--display); letter-spacing: -0.015em; }
.list__date { margin-top: 3px; color: var(--muted); font-size: var(--fs-sm); }
.search { position: relative; margin: 14px 16px 8px; }
.search .ico { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1.5px solid transparent; border-radius: 14px;
  background: var(--mist); font-size: var(--fs-base);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--cobalt); background: var(--paper); }

.threads { list-style: none; margin: 0; padding: 6px 10px 18px; overflow-y: auto; flex: 1; }
.threads__group { padding: 16px 12px 6px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.thread {
  display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 16px; cursor: pointer;
  transition: background .12s;
}
.thread:hover { background: var(--mist); }
.thread[aria-current='true'] { background: var(--cobalt-wash); }
.thread__main { flex: 1; min-width: 0; }
.thread__top, .thread__bottom { display: flex; align-items: baseline; gap: 8px; }
.thread__name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread__time { flex: none; color: var(--faint); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.thread__preview { flex: 1; min-width: 0; color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread__live { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--rose-ink); font-size: var(--fs-xs); font-weight: 600; }
.thread__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: beat 1.6s infinite; }
@keyframes beat { 50% { opacity: .35; } }

.face {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  background: var(--mist); color: var(--ink-2); font: 700 var(--fs-md)/1 var(--display);
}
.face .ico { width: 23px; height: 23px; }
.face--jarvis { background: var(--cobalt); color: #fff; font-size: 22px; letter-spacing: -0.02em; }
.face--meeting { background: var(--saffron-wash); color: var(--saffron-ink); }
.face--live { background: var(--rose-wash); color: var(--rose-ink); }

/* conversa */
.talk { position: relative; }
.talk__head { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.talk__head .face { width: 44px; height: 44px; border-radius: 14px; }
.talk__back { display: none; margin-left: -6px; }
.talk__who { flex: 1; min-width: 0; }
.talk__title { font: 700 var(--fs-md)/1.2 var(--display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk__status { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk__status[data-busy='true'] { color: var(--cobalt); font-weight: 500; }
.talk__notice {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 18px 0; padding: 12px 14px;
  border-radius: 14px; background: var(--saffron-wash); color: var(--saffron-ink); font-size: var(--fs-sm);
}
.talk__notice code { font-family: inherit; font-weight: 700; }

.canvas {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--paper);
  background-image: radial-gradient(var(--fog-2) 1.1px, transparent 1.4px);
  background-size: 20px 20px;
}
.flow { width: min(780px, 100%); margin: 0 auto; padding: 22px 24px 30px; display: flex; flex-direction: column; }

.daymark { align-self: center; margin: 18px 0 8px; padding: 5px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

/* balões */
.bubble { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 12px; max-width: min(80%, 560px); margin-top: 4px; padding: 10px 15px 11px; border-radius: 20px; overflow-wrap: anywhere; }
.bubble--lead { margin-top: 16px; }
.bubble--jarvis { align-self: flex-start; background: var(--mist); border: 1px solid var(--line); color: var(--ink); }
.bubble--jarvis.bubble--lead { border-top-left-radius: 7px; }
.bubble--me { align-self: flex-end; background: var(--ink); color: #fff; }
.bubble--me.bubble--lead { border-top-right-radius: 7px; }
.bubble__body { flex: 0 1 auto; min-width: 0; }
.bubble__tag, .bubble .speaker { flex-basis: 100%; }
.bubble__body p { margin: 0 0 8px; }
.bubble__body p:last-child { margin-bottom: 0; }
.bubble__body ul, .bubble__body ol { margin: 4px 0 8px; padding-left: 20px; }
.bubble__body li { margin: 3px 0; }
.bubble__body li::marker { color: var(--cobalt); font-weight: 700; }
.bubble__body strong { font-weight: 650; }
.bubble__time { order: 3; margin: 0 0 -4px auto; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bubble--me .bubble__time { color: rgba(255, 255, 255, .55); }
.bubble__tag { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; color: rgba(255, 255, 255, .65); font-size: var(--fs-xs); }
.bubble__tag .ico { width: 15px; height: 15px; }
.bubble--typing-out .bubble__body > :last-child::after {
  content: ''; display: inline-block; width: 8px; height: 15px; margin-left: 3px; vertical-align: -2px;
  border-radius: 3px; background: var(--cobalt); animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.speaker { color: var(--sp0); font-size: var(--fs-sm); font-weight: 700; margin-bottom: 2px; }
.bubble[data-sp='1'] .speaker { color: var(--sp1); }
.bubble[data-sp='2'] .speaker { color: var(--sp2); }
.bubble[data-sp='3'] .speaker { color: var(--sp3); }
.bubble[data-sp='4'] .speaker { color: var(--sp4); }
.bubble[data-sp='5'] .speaker { color: var(--sp5); }
.bubble--draft { opacity: .55; }
.bubble--answer { background: var(--cobalt-wash); border-color: transparent; }
.bubble--answer .speaker { color: var(--cobalt); }

.thinking {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 11px 16px; border-radius: 20px; border-top-left-radius: 7px; background: var(--mist); border: 1px solid var(--line);
  color: var(--muted); font-size: var(--fs-sm);
}
.thinking__dots { display: inline-flex; gap: 4px; }
.thinking__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); animation: hop 1.1s infinite ease-in-out; }
.thinking__dots i:nth-child(2) { animation-delay: .14s; }
.thinking__dots i:nth-child(3) { animation-delay: .28s; }
@keyframes hop { 0%, 70%, 100% { opacity: .3; transform: none; } 35% { opacity: 1; transform: translateY(-3px); } }

/* boas-vindas */
.welcome { margin: 9vh 0 0; padding: 0 4px; }
.welcome h2 { margin: 0; font: 800 clamp(34px, 5vw, var(--fs-2xl))/1 var(--display); letter-spacing: -0.02em; }
.welcome p { max-width: 46ch; margin: 14px 0 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.5; }
.starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 28px; }
.starter {
  display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 18px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); transition: border-color .15s, transform .15s;
}
.starter:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.starter .ico { width: 34px; height: 34px; padding: 7px; border-radius: 11px; }
.starter:nth-child(1) .ico { background: var(--saffron-wash); color: var(--saffron-ink); }
.starter:nth-child(2) .ico { background: var(--cobalt-wash); color: var(--cobalt); }
.starter:nth-child(3) .ico { background: var(--mint-wash); color: var(--mint-ink); }
.starter b { font-weight: 600; }
.starter span { color: var(--muted); font-size: var(--fs-sm); }

/* ═══════════ BILHETE (cartão de alteração no Organizador) ═══════════ */
.ticket {
  --stub: 118px;
  position: relative; align-self: flex-start; width: min(100%, 520px); margin-top: 12px;
  display: grid; grid-template-columns: var(--stub) 1fr;
  border-radius: 22px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-pop); color: var(--ink);
  animation: arrive .45s var(--ease);
}
@keyframes arrive { from { opacity: 0; transform: translateY(8px) rotate(-.6deg); } }

/* canhoto */
.ticket__stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 18px 8px; border-radius: 21px 0 0 21px; background: var(--saffron-wash); color: var(--saffron-ink); text-align: center;
}
.ticket__day { font: 700 42px/1 var(--display); letter-spacing: -0.02em; color: var(--ink);  font-variant-numeric: tabular-nums;}
.ticket__month { font: 700 var(--fs-sm)/1.2 var(--display); }
.ticket__weekday { font-size: var(--fs-xs); opacity: .8; }
.ticket__when { margin-top: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 176, 32, .25); font-size: 11px; font-weight: 600; }
.ticket__stub--plain { background: var(--cobalt-wash); color: var(--cobalt); }
.ticket__stub--plain .ico { width: 38px; height: 38px; }
.ticket__stub--plain small { margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; }

/* picote: linha tracejada com dois recortes meia-lua */
.ticket__body { position: relative; min-width: 0; padding: 18px 20px 18px 22px; border-left: 2px dashed var(--line-2); }
.ticket__body::before, .ticket__body::after {
  content: ''; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
}
.ticket__body::before { top: -12px; clip-path: inset(50% 0 0 0); }
.ticket__body::after { bottom: -12px; clip-path: inset(0 0 50% 0); }

.ticket__kind { display: flex; align-items: center; gap: 8px; color: var(--cobalt); font-size: var(--fs-sm); font-weight: 600; }
.ticket__kind .ico { width: 18px; height: 18px; }
.ticket__project { margin-left: auto; padding: 3px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 700 var(--fs-xs)/1.4 var(--display); letter-spacing: .02em; }
.ticket__title { margin: 10px 0 0; font: 700 var(--fs-lg)/1.15 var(--display); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.ticket__desc { margin: 8px 0 0; color: var(--muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ticket__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.fact { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--mist); font-size: var(--fs-sm); }
.fact__mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); color: var(--ink-2); font: 700 11px/1 var(--display); }
.fact__mark .ico { width: 15px; height: 15px; }
.fact--person .fact__mark { background: var(--ink); color: #fff; }
.fact span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact--URGENTE { background: var(--rose-wash); color: var(--rose-ink); }
.fact--ALTA { background: var(--saffron-wash); color: var(--saffron-ink); }
.fact--MEDIA { background: var(--cobalt-wash); color: var(--cobalt); }
.ticket__fine { margin: 14px 0 0; color: var(--faint); font-size: var(--fs-xs); }
.ticket__actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin-top: 12px; }
.ticket__outcome { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 11px 13px; border-radius: 14px; font-size: var(--fs-sm); font-weight: 500; }
.ticket__outcome .ico { width: 19px; height: 19px; }
.ticket[data-state='confirmed'] .ticket__outcome { background: var(--cobalt-wash); color: var(--cobalt); }
.ticket[data-state='done'] .ticket__outcome { background: var(--mint-wash); color: var(--mint-ink); }
.ticket[data-state='failed'] .ticket__outcome { background: var(--rose-wash); color: var(--rose-ink); }
.ticket[data-state='cancelled'] { box-shadow: none; }
.ticket[data-state='cancelled'] .ticket__stub, .ticket[data-state='cancelled'] .ticket__title,
.ticket[data-state='cancelled'] .ticket__facts, .ticket[data-state='cancelled'] .ticket__desc { filter: grayscale(1); opacity: .5; }
.ticket[data-state='cancelled'] .ticket__outcome { background: var(--mist); color: var(--muted); }

/* carimbo */
.stamp {
  position: absolute; right: 16px; bottom: 14px; z-index: 2; pointer-events: none; white-space: nowrap;
  padding: 6px 14px 7px; border: 3px solid currentColor; border-radius: 12px; transform: rotate(-9deg);
  font: 800 var(--fs-md)/1.05 var(--display); letter-spacing: -0.01em; text-align: center;
  background: rgba(255, 255, 255, .85); mix-blend-mode: multiply;
}
.stamp small { display: block; font: 600 10px/1.2 var(--text); letter-spacing: .02em; opacity: .85; }
.stamp--done { color: var(--mint-ink); }
.stamp--cancelled { color: var(--faint); }
.stamp--failed { color: var(--rose-ink); }
.stamp--fresh { animation: thump .5s var(--ease); }
@keyframes thump { 0% { opacity: 0; transform: rotate(-9deg) scale(1.9); } 60% { opacity: 1; transform: rotate(-9deg) scale(.94); } 100% { transform: rotate(-9deg) scale(1); } }

/* ═════════════════════════ CARTÕES DE CONSULTA ═════════════════════════ */
.rc {
  align-self: flex-start; width: min(100%, 560px); margin-top: 12px; padding: 18px 18px 16px;
  border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
  animation: arrive .45s var(--ease);
}
.rc__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.rc__title { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; font: 700 var(--fs-md)/1.2 var(--display); letter-spacing: -0.02em; }
.rc__title .ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--cobalt-wash); color: var(--cobalt); }
.rc__aside { flex: none; color: var(--muted); font-size: var(--fs-sm); }
.rc__sub { margin: 18px 0 8px; font: 700 var(--fs-base)/1.2 var(--display); letter-spacing: -0.01em; }
.rc__empty { margin: 4px 0; color: var(--muted); }
.rc__more { margin: 12px 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* horas */
.hours-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 2px 18px; border-bottom: 1px dashed var(--line-2); }
.hours-hero__total b { display: block; font: 700 52px/1 var(--display); letter-spacing: -0.02em;  font-variant-numeric: tabular-nums;}
.hours-hero__total span { color: var(--muted); font-size: var(--fs-sm); }
.hours-hero__side { text-align: right; }
.hours-hero__side b { display: block; font: 800 var(--fs-lg)/1 var(--display); color: var(--cobalt); }
.hours-hero__side span { color: var(--muted); font-size: var(--fs-sm); }
.bars { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.bar__label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: var(--fs-sm); }
.bar__label span { font-weight: 600; }
.bar__track { height: 12px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: #c7cefc; overflow: hidden; transform-origin: left; animation: grow .7s var(--ease); }
.bar__bill { height: 100%; background: var(--cobalt); border-radius: 999px; }
@keyframes grow { from { transform: scaleX(0); } }
.bars__legend { display: flex; gap: 16px; margin-top: 14px; color: var(--muted); font-size: var(--fs-xs); }
.bars__key { display: inline-flex; align-items: center; gap: 6px; }
.bars__key::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: #c7cefc; }
.bars__key--bill::before { background: var(--cobalt); }

/* lista de tarefas */
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.task-line { display: flex; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 14px; }
.task-line:hover { background: var(--mist); }
.task-line__date {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; background: var(--saffron-wash); color: var(--saffron-ink); text-align: center;
}
.task-line__date b { font: 800 var(--fs-md)/1 var(--display); color: var(--ink);  font-variant-numeric: tabular-nums;}
.task-line__date small { font-size: 11px; line-height: 1.1; }
.task-line--late .task-line__date { background: var(--rose-wash); color: var(--rose-ink); }
.task-line--late .task-line__date b { color: var(--rose-ink); }
.task-line__main { min-width: 0; flex: 1; }
.task-line__top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.task-line__code { flex: none; color: var(--cobalt); font: 700 var(--fs-xs)/1.4 var(--display); }
.task-line__title { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-line__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; color: var(--muted); font-size: var(--fs-xs); }
.task-line__late { color: var(--rose-ink); font-weight: 600; }
.status-pill { padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-weight: 600; }

/* situação dos projetos */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.proj { padding: 12px 12px 10px; border-radius: 16px; background: var(--mist); border-top: 4px solid transparent; }
.proj--late { border-top-color: var(--rose); }
.proj__top { display: grid; gap: 1px; margin-bottom: 10px; }
.proj__key { font: 800 var(--fs-md)/1 var(--display); letter-spacing: -0.02em; }
.proj__name { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.proj__stat b { display: block; font: 800 var(--fs-md)/1 var(--display); }
.proj__stat span { color: var(--muted); font-size: 10.5px; }
.proj__stat--late b { color: var(--rose-ink); }
.proj__stat--done b { color: var(--mint-ink); }

/* uma tarefa */
.one-task__title { margin: -4px 0 0; font: 700 var(--fs-lg)/1.15 var(--display); letter-spacing: -0.015em; }
.one-task__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); font-size: var(--fs-sm); }
.one-task__facts span { display: inline-flex; align-items: center; gap: 6px; }
.one-task__facts .ico { width: 16px; height: 16px; color: var(--faint); }
.progress { margin-top: 16px; }
.progress__track { height: 10px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.progress__fill { height: 100%; border-radius: 999px; background: var(--mint); transform-origin: left; animation: grow .7s var(--ease); }
.progress__labels { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: var(--fs-xs); }
.progress__labels b { color: var(--ink); }
.rc--tarefa .rc__aside { padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-weight: 600; }

/* ═════════════════════════ REUNIÃO ═════════════════════════ */
.meet-card {
  display: grid; grid-template-columns: 112px 1fr; margin-top: 4px;
  border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-pop); overflow: hidden;
}
.meet-card__stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 18px 8px;
  background: var(--ink); color: rgba(255, 255, 255, .7); text-align: center;
}
.meet-card__stub b { font: 700 42px/1 var(--display); letter-spacing: -0.02em; color: #fff;  font-variant-numeric: tabular-nums;}
.meet-card__month { font: 700 var(--fs-sm)/1.2 var(--display); color: var(--saffron); }
.meet-card__weekday { font-size: var(--fs-xs); }
.meet-card__hour { margin-top: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 11px; font-weight: 600; }
.meet-card--live .meet-card__stub { background: var(--rose); }
.meet-card--live .meet-card__month { color: #fff; }
.meet-card__body { min-width: 0; padding: 18px 20px; border-left: 2px dashed var(--line-2); }
.meet-card__top { display: flex; align-items: center; gap: 8px; }
.meet-card__kicker { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.meet-card--live .meet-card__kicker { color: var(--rose-ink); font-weight: 600; }
.meet-card__top .ticket__project { margin-left: auto; }
.meet-card h2 { margin: 4px 0 0; font: 800 var(--fs-xl)/1 var(--display); letter-spacing: -0.02em; }
.meet-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.section-head { display: flex; align-items: baseline; gap: 12px; margin: 26px 2px 10px; }
.section-head h3 { margin: 0; flex: 1; font: 700 var(--fs-md)/1.2 var(--display); letter-spacing: -0.02em; }
.section-head__aside { color: var(--muted); font-size: var(--fs-sm); }

.agreed__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agreed__item {
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line-2);
}
.agreed__item[data-state='created'] { border-left-color: var(--mint); }
.agreed__item[data-state='confirmed'] { border-left-color: var(--cobalt); }
.agreed__item[data-state='failed'] { border-left-color: var(--rose); }
.agreed__item[data-state='pending'] { border-left-color: var(--saffron); }
.agreed__main { flex: 1; min-width: 0; }
.agreed__kind { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.agreed__text { font-weight: 600; }
.agreed__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; color: var(--muted); font-size: var(--fs-sm); }
.agreed__err { color: var(--rose-ink); }
.agreed__tag { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--saffron-wash); color: var(--saffron-ink); }
.agreed__tag .ico { width: 15px; height: 15px; }
.agreed__item[data-state='created'] .agreed__tag { background: var(--mint-wash); color: var(--mint-ink); font-family: var(--display); }
.agreed__item[data-state='confirmed'] .agreed__tag { background: var(--cobalt-wash); color: var(--cobalt); }
.agreed__item[data-state='failed'] .agreed__tag { background: var(--rose-wash); color: var(--rose-ink); }

/* linha do tempo */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 75px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline__empty { padding: 8px 0 8px 96px; color: var(--muted); }
.moment { --c: var(--sp0); position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 6px; padding: 6px 0; }
.moment[data-sp='1'] { --c: var(--sp1); }
.moment[data-sp='2'] { --c: var(--sp2); }
.moment[data-sp='3'] { --c: var(--sp3); }
.moment[data-sp='4'] { --c: var(--sp4); }
.moment[data-sp='5'] { --c: var(--sp5); }
.moment__rail { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; padding-top: 10px; }
.moment__time { color: var(--faint); font-size: var(--fs-xs); padding-top: 3px; }
.moment__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin-right: 3px;
  border-radius: 50%; background: var(--c); color: #fff; font: 700 11px/1 var(--display); box-shadow: 0 0 0 4px var(--paper);
}
.moment__main { min-width: 0; padding: 10px 14px 12px; border-radius: 18px; background: var(--mist); }
.moment__who { color: var(--c); font-size: var(--fs-sm); font-weight: 700; }
.moment__text { margin: 2px 0 0; }
.moment--draft .moment__main { opacity: .55; }
.moment--jarvis { --c: var(--cobalt); }
.moment--jarvis .moment__main { background: var(--cobalt-wash); }
.moment__answer p { margin: 4px 0 0; }
.moment__answer ul { margin: 4px 0 0; padding-left: 18px; }
.moment__ask { color: var(--muted); font-style: italic; }
.moment__h { font-weight: 600; }
.quiet-note { margin: 16px 0; color: var(--muted); }

/* reunião na lista: o dia em destaque */
.face--date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; text-align: center; background: var(--saffron-wash); color: var(--saffron-ink); }
.face--date b { font: 700 17px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.face--date span { margin-top: 2px; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.face--date.face--live { background: var(--rose); color: #fff; }
.face--date.face--live b { color: #fff; }

/* bilhete decidido: espaço para o carimbo */
.ticket[data-state='done'] .ticket__body, .ticket[data-state='cancelled'] .ticket__body { padding-bottom: 66px; }

/* ═════════════════════════ CAMPO DE MENSAGEM ═════════════════════════ */
.composer { padding: 10px 18px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 55%, rgba(255, 255, 255, 0)); }
.composer__box {
  width: min(780px, 100%); margin: 0 auto; display: flex; align-items: flex-end; gap: 8px;
  padding: 7px 7px 7px 20px; border-radius: 26px; background: var(--paper);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-pop); transition: border-color .15s;
}
.composer__box:focus-within { border-color: var(--cobalt); }
.composer textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 160px; padding: 10px 0; resize: none; border: 0; background: transparent; font-size: 16px; line-height: 1.4; }
.composer textarea::placeholder { color: var(--faint); }
.composer textarea:focus { outline: none; }
.orb {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--cobalt); color: #fff; cursor: pointer; transition: background .15s, transform .1s;
}
.orb:hover { background: var(--cobalt-2); }
.orb:active { transform: scale(.94); }
.orb .ico { width: 21px; height: 21px; }
.orb--rec { background: var(--rose); animation: halo 1.6s infinite; }
@keyframes halo { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 80, 110, .45); } 50% { box-shadow: 0 0 0 10px rgba(240, 80, 110, 0); } }
.rec { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.rec__bars { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.rec__bars i { width: 3.5px; border-radius: 3px; background: var(--rose); animation: bars 1s infinite ease-in-out; }
.rec__bars i:nth-child(1) { height: 45%; } .rec__bars i:nth-child(2) { height: 85%; animation-delay: .1s; }
.rec__bars i:nth-child(3) { height: 60%; animation-delay: .2s; } .rec__bars i:nth-child(4) { height: 100%; animation-delay: .3s; }
.rec__bars i:nth-child(5) { height: 55%; animation-delay: .4s; }
@keyframes bars { 50% { transform: scaleY(.4); } }
.rec .ghost { margin-left: auto; }
.composer__ask { width: min(780px, 100%); margin: 0 auto; display: flex; justify-content: center; }

.toast {
  position: absolute; left: 50%; bottom: 100px; translate: -50% 0; z-index: 10;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: var(--fs-sm); box-shadow: var(--shadow-pop);
}
.toast .ico { color: var(--saffron); }

.empty-talk { display: grid; place-items: center; height: 100%; padding: 32px; text-align: center; color: var(--muted); }
.empty-talk .face { margin: 0 auto 16px; width: 72px; height: 72px; border-radius: 24px; font-size: 32px; }
.empty-talk h2 { margin: 0 0 6px; color: var(--ink); font: 800 var(--fs-xl)/1 var(--display); letter-spacing: -0.02em; }

.menu {
  position: fixed; z-index: 30; min-width: 250px; padding: 6px; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); text-align: left; cursor: pointer; font-size: var(--fs-base);
}
.menu .ico { color: var(--muted); }
.menu a:hover, .menu button:hover { background: var(--mist); }

/* o menu da lista só aparece no celular (no computador ele fica no trilho) */
.list__menu { display: none; }

/* ═════════════════════════ CELULAR ═════════════════════════ */
@media (max-width: 900px) {
  .signin { grid-template-columns: 1fr; }
  .signin__stage { padding: 28px 22px 34px; }
  .signin__word { font-size: 76px; }
  .signin__line { font-size: var(--fs-base); }
  .signin__demo { display: none; }
  .signin__panel { place-items: start center; padding: 28px 22px 40px; }
}

@media (max-width: 767px) {
  .shell { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .rail { display: none; }
  .sheet { border-radius: 0; box-shadow: none; }
  .shell[data-view='list'] .talk { display: none; }
  .shell[data-view='talk'] .list { display: none; }
  .list__head { padding-top: max(22px, env(safe-area-inset-top)); display: flex; align-items: flex-start; gap: 10px; }
  .list__head > div { flex: 1; }
  .list__head .list__menu { display: inline-grid; }
  .talk__head { padding-top: max(12px, env(safe-area-inset-top)); }
  .talk__back { display: inline-grid; }
  .flow { padding: 14px 14px 24px; }
  .bubble { max-width: 88%; }
  .ticket { --stub: 92px; }
  .ticket__day { font-size: 38px; }
  .ticket__body { padding: 16px 16px 16px 18px; }
  .stamp { right: 10px; bottom: 10px; font-size: var(--fs-base); }
  .composer { padding: 8px 10px max(10px, env(safe-area-inset-bottom)); }
  .meet-card { grid-template-columns: 86px 1fr; }
  .meet-card__stub b { font-size: 38px; }
  .meet-card__body { padding: 16px; }
  .meet-card h2 { font-size: var(--fs-lg); }
  .section-head { flex-wrap: wrap; }
  .timeline::before { left: 59px; }
  .moment { grid-template-columns: 74px 1fr; }
  .timeline__empty { padding-left: 80px; }
  .hours-hero__total b { font-size: 46px; }
  .rc { padding: 16px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── celular: barra de abas (o mesmo menu do trilho) ─────────────────── */
.tabbar { display: none; }
.moment__when { display: none; }

@media (max-width: 767px) {
  .shell { grid-template-rows: minmax(0, 1fr) auto; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); align-items: end;
    padding: 8px 8px max(10px, env(safe-area-inset-bottom));
    background: var(--ink); color: rgba(255, 255, 255, .6);
    border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px -18px rgba(15, 27, 61, .6);
  }
  .shell[data-view='talk'] .tabbar { display: none; }
  .tabbar__btn {
    position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 0 2px;
    border: 0; background: none; color: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  }
  .tabbar__icon { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 999px; transition: background .15s; }
  .tabbar__icon .ico { width: 22px; height: 22px; }
  .tabbar__btn[aria-current='page'] { color: #fff; }
  .tabbar__btn[aria-current='page'] .tabbar__icon { background: rgba(255, 255, 255, .14); color: var(--saffron); }
  /* Gravar: o botão grande do meio, como o de câmera de um mensageiro */
  .tabbar__btn--rec .tabbar__icon {
    width: 54px; height: 54px; margin-top: -26px; border-radius: 50%;
    background: var(--cobalt); color: #fff; box-shadow: 0 0 0 5px var(--ink), 0 10px 22px -8px rgba(51, 70, 240, .9);
  }
  .tabbar__btn--rec .tabbar__icon .ico { width: 25px; height: 25px; }

  /* lista: cabeçalho azul-marinho com a busca dentro, a mesma identidade do trilho */
  .list__head {
    display: block; padding: max(20px, env(safe-area-inset-top)) 20px 64px;
    background: var(--ink); color: #fff; border-radius: 0 0 26px 26px;
  }
  .list__hello { font-size: var(--fs-xl); }
  .list__date { color: rgba(255, 255, 255, .62); }
  .list__head .list__menu { display: none; }
  .search { margin: -48px 16px 8px; position: relative; z-index: 1; }
  .search input { height: 48px; background: var(--paper); border-color: transparent; box-shadow: var(--shadow-pop); }
  .threads { padding-bottom: 8px; }

  /* linha do tempo compacta: horário ao lado do nome, trilho estreito */
  .timeline::before { left: 13px; }
  .moment { grid-template-columns: 28px 1fr; gap: 8px; }
  .moment__rail { justify-content: flex-start; padding-top: 12px; }
  .moment__time { display: none; }
  .moment__dot { margin: 0 0 0 1px; }
  .moment__who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .moment__when { display: inline; color: var(--faint); font-size: var(--fs-xs); font-weight: 500; }
  .timeline__empty { padding-left: 36px; }
}
