/* Vertech cosmOS 0.2 — um sistema operacional na web.
   Fundo em imagem, vidro por cima (desfoque, brilho na borda de cima e grão), letra DM Sans.
   Movimento pelas regras do Emil Kowalski: saída mais rápida que a entrada, nada nasce de scale(0),
   aperto em :active, hover só com mouse, e tudo respeita "reduzir movimento". */
/* DM Sans (licença aberta OFL), servida daqui mesmo: funciona sem internet e no app de computador */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("/fontes/DMSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("/fontes/DMSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --tinta: #f5f3ef;
  --tinta-2: rgba(245, 243, 239, .72);
  --tinta-3: rgba(245, 243, 239, .48);
  /* A cor principal do perfil da instância e as que saem dela (o nome --laranja ficou de quando era só a cor da Vertech). Os
     valores daqui são os da Vertech; o servidor escreve os do perfil no <style id="cores-da-marca"> da página (os/perfil). */
  --laranja: #ff6a13;
  --laranja-rgb: 255, 106, 19;      /* a mesma, em r, g, b, para as transparências */
  --laranja-hover: #ff7b2e;         /* o botão de ação com o mouse em cima */
  --marca-no-escuro: #ffa25e;       /* o texto na cor principal sobre fundo escuro */
  --marca-no-claro: #c2410c;        /* e sobre fundo claro */
  --marca-clara: #ffb37a;           /* sobre o plano de fundo, nas peças soltas da área de trabalho */
  --marca-intensa: #ff4a00;
  --marca-suave: #ff8a2a;
  --fonte: "DM Sans";
  --laranja-claro: var(--marca-no-escuro);
  --ambar: #e3a23a;              /* o "é hoje" e o "atenção" escritos em texto (no claro, um âmbar mais fechado, para ler no branco) */
  --f: 255, 255, 255;           /* a "tinta" dos preenchimentos: branca no escuro, preta no claro */
  --erro: #ffb8a8;
  --poco: rgba(0, 0, 0, .24);
  --veu: rgba(8, 11, 16, .46);
  --sup-janela: rgba(21, 26, 34, .68);
  --sup-janela-cel: rgba(18, 23, 31, .86);
  --sup-folha: rgb(31, 37, 47);           /* opaca: a folha dentro da janela não tem vidro (a "tarja"); com qualquer transparência, a lista de trás aparecia através dela (no celular, nítida) */
  --sup-menu: rgba(30, 36, 46, .76);
  --sup-vidro: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06) 62%);
  --sup-dock: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06) 62%);
  --ev-luz: #fff; --ev-base: #1b212b;
  --ev-forca: 20%; --ev-forca-b: 45%; --ev-forca-t: 62%; --ev-fundo: 30%; --ev-fundo-h: 46%; --ev-hv: 42%; --ev-hv-h: 56%;
  --seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f5f3ef' stroke-opacity='.6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --noite: #121821;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-gaveta: cubic-bezier(.32, .72, 0, 1);
  --dur-painel: .28s;            /* lateral e painel que abrem e fecham empurrando o conteúdo (movimento.js: DURACAO_PAINEL) */
  --dur-gaveta: .24s;            /* o que desce e sobe: árvore de pastas, seção que recolhe (movimento.js: DURACAO_GAVETA) */
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --barra: 32px;
  --brilho: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--noite); color: var(--tinta); overflow: hidden;
  font: 400 15px/1.45 var(--fonte), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea { user-select: text; -webkit-user-select: text; }
/* a alça de mudar a altura do campo de texto vem no desenho da casa (dois traços finos na cor da tinta), não na do navegador */
textarea::-webkit-resizer { background: linear-gradient(135deg, transparent 0 50%, rgba(var(--f), .32) 50% 57%, transparent 57% 71%, rgba(var(--f), .32) 71% 78%, transparent 78%) no-repeat right 3px bottom 3px / 10px 10px; }
/* as barras de rolagem do sistema todo, como no Mac: finas, sem as setas do Windows, na cor da tinta (escura no claro, clara no
   escuro). Quem esconde a barra (scrollbar-width: none) continua escondendo. No Firefox, que não tem estas, a barra fina dele. */
::-webkit-scrollbar { width: 11px; height: 11px; background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 6px; background: rgba(var(--f), .24) padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(var(--f), .4); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* o "x" azul que o navegador põe nos campos de busca não entra em nenhum (as buscas dos apps já o escondiam uma a uma) */
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(var(--f), .24) transparent; } }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.espaco { flex: 1; }
.fraco { color: var(--tinta-2); }
[hidden] { display: none !important; }
.ico { flex: none; display: block; }
.emblema { display: block; width: 15px; height: 17px; color: var(--tinta); }
/* o emblema de uma instância que não usa o da Vertech: a imagem do perfil dá a forma, a cor vem do texto */
.emblema-imagem { background: currentColor; -webkit-mask: var(--emblema-url) center / contain no-repeat; mask: var(--emblema-url) center / contain no-repeat; }
/* o logo de uma instância sem imagem de logo: o nome do sistema escrito */
.logo-texto { display: block; font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }

/* ------------------------------------------------------------ fundo */
#fundo { position: fixed; inset: 0; z-index: 0; background: linear-gradient(180deg, #1c2532, #121821 60%, #2a1a12); overflow: hidden; }
#fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; }
#fundo img.entrando { opacity: 0; }
/* o vídeo de fundo: por cima do pôster (a imagem), atrás da luz e do grão; entra e sai esmaecendo */
#fundo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .6s ease; }
#fundo video.entrando, #fundo video.saindo, #fundo video.parado { opacity: 0; }
/* Com o vídeo de fundo, o vidro não desfoca. O desfoque por cima de um vídeo é refeito a cada quadro do vídeo, em toda peça
   de vidro (medido em 1920 × 1080, com o Ajustes aberto: a placa de vídeo vai de 18% para 35% de uso só por isso). Cada
   superfície fica com a própria cor, mais encorpada, e o vídeo aparece de leve por trás (o mesmo caminho do "reduzir
   transparência" do sistema, lá embaixo, só que sem tirar a transparência toda). */
body.fundo-video, body.fundo-video * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.fundo-video {
  --sup-janela: rgba(21, 26, 34, .92);
  --sup-janela-cel: rgba(18, 23, 31, .95);
  --sup-menu: rgba(30, 36, 46, .95);
  --sup-vidro: linear-gradient(145deg, rgba(44, 52, 64, .8), rgba(26, 32, 41, .74) 62%);
  --sup-dock: linear-gradient(145deg, rgba(44, 52, 64, .72), rgba(26, 32, 41, .64) 62%);
}
:root[data-tema="claro"] body.fundo-video {
  --sup-janela: rgba(244, 245, 248, .94);
  --sup-janela-cel: rgba(246, 247, 250, .97);
  --sup-menu: rgba(246, 247, 250, .96);
  --sup-vidro: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .8) 62%);
  --sup-dock: linear-gradient(145deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .56) 62%);
}
body.fundo-video .barra { background: rgba(14, 18, 25, .55); }
body.fundo-video .trava { background: rgba(10, 13, 19, .5); }
body.fundo-video .lp, :root[data-tema="claro"] body.fundo-video .lp { background: rgba(8, 10, 16, .82); }
body.fundo-video .tecla:not(.vazia):not(.limpa):not(.t-volta), body.fundo-video .t-trocar { background: rgba(var(--f), .2); }
#fundo .f-luz { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(10, 13, 19, .42) 0, rgba(10, 13, 19, 0) 24%, rgba(10, 13, 19, 0) 62%, rgba(10, 13, 19, .5) 100%); }
#fundo .grao { position: absolute; inset: 0; z-index: 2; background-image: var(--grao); opacity: .07; mix-blend-mode: overlay; }

/* ------------------------------------------------------------ vidro */
.vidro {
  position: relative; isolation: isolate;
  background: var(--sup-vidro);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--brilho), 0 24px 60px -26px rgba(0, 0, 0, .65);
}
.vidro::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: var(--grao); opacity: .09; mix-blend-mode: soft-light; pointer-events: none; }

/* ------------------------------------------------------------ botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 7px;
  font-weight: 500; font-size: 14px; color: var(--tinta); text-decoration: none; white-space: nowrap;
  background: rgba(var(--f), .11);
  transition: transform .14s var(--ease-out), background-color .16s ease;
}
.botao:active { transform: scale(.97); }
.botao.forte { color: #fff; font-weight: 600; background: var(--laranja); }
.botao.forte:active { background: #eb5a06; }
.botao.perigo { color: var(--erro); }
.botao.pequeno { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.botao:disabled { opacity: .55; cursor: default; }
.redondo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--tinta-2); background: rgba(var(--f), .09); transition: transform .14s var(--ease-out), background-color .16s ease; }
.redondo:active { transform: scale(.94); }
.redondo.forte { color: #fff; background: var(--laranja); }
@media (hover: hover) and (pointer: fine) {
  .botao:not(.forte):hover, .redondo:not(.forte):hover { background: rgba(var(--f), .17); color: var(--tinta); }
  .botao.forte:hover { background: var(--laranja-hover); }
}
:focus-visible { outline: none; box-shadow: 0 0 0 1.5px rgba(var(--f), .55); }

/* ------------------------------------------------------------ tela de bloqueio */
.trava { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; padding: max(7vh, 40px) 24px max(4vh, 24px);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); background: rgba(10, 13, 19, .28);
  transition: opacity .3s ease, transform .3s var(--ease-out); }
.trava.sai { opacity: 0; transform: scale(1.03); }
.t-topo { text-align: center; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.t-dia { font-size: 20px; font-weight: 500; color: var(--tinta-2); }
.t-hora { font-size: clamp(88px, 14vw, 132px); font-weight: 300; letter-spacing: -.045em; line-height: 1; margin-top: 4px; }
.t-entrada { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: auto; }
.t-logo { height: 34px; width: auto; opacity: .9; }
.t-logo.logo-texto { height: auto; font-size: 28px; color: var(--tinta); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
/* a assinatura de quem fez o sistema (perfil.rodape): pequena e apagada, no pé da tela de entrada e no Sobre */
.assinatura { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--tinta-3); }
.trava .t-rodape { position: absolute; left: 0; right: 0; bottom: max(1.2vh, 8px); text-align: center; color: rgba(245, 243, 239, .5); text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.t-ava { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; font-weight: 600; font-size: 21px; color: #fff;
  background: var(--laranja); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); }
.t-entrada h2 { font-size: 18px; font-weight: 600; margin-top: 12px; }
.t-ajuda { font-size: 14px; color: var(--tinta-2); margin-top: 4px; min-height: 20px; max-width: 34ch; }
.t-ajuda.erro { color: #ffb8a8; }
/* aparelho novo: o número que se confere nos dois aparelhos, e o código de emergência */
.t-numero { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 18px 0 14px; padding-left: .08em; }
.t-quieto { background: none; color: var(--tinta-2); margin-top: 6px; }
.t-emergencia { display: flex; gap: 8px; margin: 16px 0 10px; }
.t-campo { width: 168px; height: 38px; padding: 0 12px; border: 0; border-radius: 6px; background: rgba(var(--f), .14); color: var(--tinta); font: 500 16px/1 ui-monospace, "Cascadia Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; text-align: center; outline: none; box-shadow: inset 0 0 0 1px rgba(var(--f), .18); }
.t-campo:focus { box-shadow: inset 0 0 0 1px rgba(var(--f), .5); }
.t-campo::placeholder { color: var(--tinta-3); letter-spacing: .08em; }
.ap-veu { z-index: 990; }
.ap-pedido { width: min(360px, 100%); }
.ap-selo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(var(--f), .12); margin-bottom: 8px; }
.ap-pedido h3 { font-size: 17px; font-weight: 600; }
.ap-numero { font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: .08em; padding-left: .08em; font-variant-numeric: tabular-nums; margin: 14px 0 6px; }
.ap-acoes { display: flex; gap: 8px; margin-top: 14px; }
.ap-acoes .botao { margin-top: 0; min-width: 118px; justify-content: center; }
.ap-linha .l-rotulo b { font-weight: 500; }
.rg-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rg-grupo { max-height: 340px; overflow-y: auto; }
.rg-linha .l-rotulo { min-width: 0; }
.rg-linha .l-rotulo b { font-weight: 500; overflow-wrap: anywhere; }
.rg-linha .l-rotulo b i { font-style: normal; color: var(--tinta-2, inherit); opacity: .7; }
.rg-linha .l-rotulo small { overflow-wrap: anywhere; }
.rg-selo { font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 5px; background: #b3261e; color: #fff; white-space: nowrap; }
.rg-vazio { padding: 14px; margin: 0; }
.ap-codigos { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px; margin: 10px 0 4px; }
.ap-codigos code { font: 500 14px/1 ui-monospace, "Cascadia Mono", Menlo, monospace; letter-spacing: .04em; color: var(--tinta); background: var(--poco); padding: 9px 11px; border-radius: 6px; user-select: all; }
@media (max-width: 640px) { .ap-codigos { grid-template-columns: repeat(2, max-content); } }
.bolinhas { display: flex; gap: 14px; margin: 16px 0 6px; }
.bolinhas i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--f), .6); transition: background-color .12s ease, transform .16s var(--ease-out); }
.bolinhas i.cheia { background: var(--tinta); transform: scale(1.08); }
.bolinhas.erro { animation: nega .34s ease; }
@keyframes nega { 20% { transform: translateX(-9px); } 45% { transform: translateX(8px); } 70% { transform: translateX(-5px); } 100% { transform: none; } }
.teclado { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 22px; margin-top: 18px; }
.tecla { height: 72px; border-radius: 50%; font-size: 28px; font-weight: 400; background: rgba(var(--f), .13); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: grid; place-items: center; transition: transform .12s var(--ease-out), background-color .12s ease; }
.tecla:active { transform: scale(.94); background: rgba(var(--f), .3); }
.tecla.vazia, .tecla.limpa, .tecla.t-volta { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.dica-teclado { display: none; font-size: 13px; color: var(--tinta-3); margin-top: 14px; }
/* o miolo troca (escolha, código, convite) com uma entrada curta; relógio e data ficam parados */
.t-entrada.entra { animation: t-entra .24s var(--ease-out); }
@keyframes t-entra { from { opacity: 0; transform: translateY(8px); } }
/* as pessoas da casa, lado a lado, como na entrada do Mac */
.t-pessoas { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 3vh; }
.t-pessoa { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 156px; padding: 14px 8px 12px; border-radius: 10px; text-align: center; transition: background-color .16s ease, transform .14s var(--ease-out); }
.t-pessoa:active { transform: scale(.97); }
.t-rosto { width: 88px; height: 88px; font-size: 30px; box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .85); transition: transform .2s var(--ease-out), opacity .2s ease; }
.t-pessoa b { max-width: 100%; font-size: 16px; font-weight: 600; text-shadow: 0 1px 18px rgba(0, 0, 0, .45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-pessoa.travada .t-rosto { opacity: .55; }
.t-falta { display: inline-flex; align-items: center; gap: 5px; margin-top: -5px; font-size: 13px; color: #ffb8a8; }
.t-pessoa:focus-visible { box-shadow: 0 0 0 1.5px rgba(var(--f), .55); }
/* voltar para a escolha: no computador, um botão embaixo; no celular, a tecla vazia do teclado */
.t-trocar { display: none; margin: 18px 0 10px; background: rgba(var(--f), .12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tecla.t-volta { padding: 0 2px; font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--tinta); }
.t-seguir { margin: 18px 0 10px; }
@media (hover: hover) and (pointer: fine) {
  .teclado { display: none; }
  .dica-teclado { display: block; }
  .t-trocar { display: inline-flex; }
  .t-pessoa:hover { background: rgba(var(--f), .1); }
  .t-pessoa:hover .t-rosto { transform: scale(1.04); }
}

/* ------------------------------------------------------------ barra do topo */
.barra { position: fixed; inset: 0 0 auto 0; z-index: 600; height: var(--barra); display: flex; align-items: center; gap: 2px; padding: 0 8px; font-size: 13.5px; font-weight: 500;
  background: rgba(14, 18, 25, .3); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); }
.b-item { display: inline-flex; align-items: center; gap: 9px; height: 24px; padding: 0 9px; border-radius: 5px; color: var(--tinta); transition: background-color .14s ease; }
button.b-item:active { background: rgba(var(--f), .22); }
.b-app { font-weight: 600; padding: 0 6px; }
.b-espaco { flex: 1; }
.b-rede.fora { opacity: .4; }
#b-google { color: var(--tinta-3); }
#b-google.ligado { color: var(--tinta); }
.b-hora { font-weight: 500; }
@media (hover: hover) and (pointer: fine) { button.b-item:hover { background: rgba(var(--f), .14); } }
/* a atualização: as setas em círculo, o ponto laranja quando há versão nova e a barra fina enquanto baixa */
.b-atualiza { position: relative; }
.b-atualiza.girando .at-setas { animation: at-gira .8s linear infinite; }
@keyframes at-gira { to { transform: rotate(360deg); } }
.at-ponto { position: absolute; top: 2px; left: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--laranja); opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .25s var(--ease-out); pointer-events: none; }
.b-atualiza.tem .at-ponto { opacity: 1; transform: none; }
.at-fina { display: none; width: 44px; height: 3px; border-radius: 2px; background: rgba(var(--f), .24); overflow: hidden; }
.at-fina i { display: block; width: 0; height: 100%; background: var(--laranja); transition: width .3s linear; }
.b-atualiza.baixando .at-fina { display: block; }
.at-texto { display: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-atualiza.com-texto { background: var(--laranja); color: #fff; padding: 0 10px; animation: at-chega .22s var(--ease-out); }
.b-atualiza.com-texto .at-texto { display: block; }
.b-atualiza.com-texto .at-setas, .b-atualiza.com-texto .at-ponto { display: none; }
@keyframes at-chega { from { opacity: 0; transform: scale(.96); } }
@media (hover: hover) and (pointer: fine) { button.b-atualiza.com-texto:hover { background: var(--laranja); filter: brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { .b-atualiza.com-texto { animation: none; } }

/* ------------------------------------------------------------ mesa e widgets */
.mesa { position: fixed; inset: var(--barra) 0 0 0; z-index: 1; padding: 34px 36px 120px; display: grid; grid-template-columns: 350px 1fr 292px; grid-template-rows: auto 1fr; gap: 22px 24px; align-content: start;
  transition: opacity .5s ease, transform .6s var(--ease-out); }
.mesa.entrando { opacity: 0; transform: scale(1.02); }
.w-relogio { grid-column: 1; text-shadow: 0 2px 34px rgba(0, 0, 0, .4); padding-left: 4px; }
.w-hora { font-size: 104px; font-weight: 300; letter-spacing: -.05em; line-height: .95; }
.w-dia { font-size: 20px; font-weight: 500; color: rgba(245, 243, 239, .86); margin-top: 8px; }
.w { border-radius: 12px; padding: 16px 18px 18px; }
.w header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.w h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-transform: capitalize; }
.w h4 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); margin: 14px 0 6px; }
.w-hoje { grid-column: 1; grid-row: 2; align-self: start; }
.w-abrir { font-size: 13px; font-weight: 500; color: var(--laranja-claro); padding: 4px 0; }
.w-lista { display: grid; gap: 4px; }
.w-linha { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 7px 8px; margin: 0 -8px; border-radius: 6px; transition: background-color .14s ease; }
.w-linha:active { background: rgba(var(--f), .14); }
.w-quando { flex: none; width: 52px; font-size: 13.5px; font-weight: 500; color: color-mix(in srgb, var(--cor, #ff8a3d) var(--ev-forca-t), var(--ev-luz)); }
.w-titulo { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-meet { color: var(--tinta-3); }
.w-linha.passou { opacity: .5; }
.w-vazio { font-size: 14px; color: var(--tinta-2); padding: 6px 0; }
.w-mes { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
.w-mes header span { font-size: 13px; color: var(--tinta-3); }
.m-semana, .m-grade { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.m-semana span { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--tinta-3); padding: 4px 0; }
.m-dia { position: relative; height: 32px; border-radius: 50%; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .14s ease; }
.m-dia.fora { color: var(--tinta-3); opacity: .6; }
.m-dia.hoje { color: #fff; font-weight: 700; background: radial-gradient(circle at 50% 50%, var(--laranja) 0 14px, transparent 14.5px); }
.m-dia i { position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--laranja-claro); }
.m-dia.hoje i { display: none; }
@media (hover: hover) and (pointer: fine) {
  .w-linha:hover { background: rgba(var(--f), .1); }
  .m-dia:not(.hoje):hover { background: radial-gradient(circle at 50% 50%, rgba(var(--f), .14) 0 14px, transparent 14.5px); }
  .w-abrir:hover { color: #ffc49a; }
}

/* ------------------------------------------------------------ dock */
.dock.vidro { background: var(--sup-dock); }
/* A altura do fundo é fixa, como no Mac: no zoom os ícones crescem para cima e passam da borda; o fundo só alarga para os lados. */
.dock { position: fixed; left: 50%; bottom: 12px; z-index: 500; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; height: calc(var(--dock-t, 54px) + 16px); padding: 8px 10px; border-radius: 14px;
  transition: transform .38s var(--ease-gaveta), opacity .3s ease; }
.dock-item { position: relative; flex: none; width: var(--t, var(--dock-t, 54px)); height: var(--t, var(--dock-t, 54px)); display: block; transition: transform .14s var(--ease-out); transform-origin: 50% 100%; }
.dock-item:active { transform: scale(.94); }
.dock-item .aberto { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--tinta); opacity: 0; transition: opacity .2s ease; }
.dock-item.tem .aberto { opacity: .85; }
.dock-nome { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 4px); padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0;
  background: var(--sup-menu); color: var(--tinta); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--brilho), 0 10px 24px -12px rgba(0, 0, 0, .8); transition: opacity .12s ease, transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .dock-item:hover .dock-nome { opacity: 1; transform: translate(-50%, 0); } }
body.janela-cheia .dock { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
/* a dock vem da Vertech Store: o ícone que entra abre espaço (o ícone fica no tamanho dele enquanto o lugar cresce), o que sai
   encolhe, o que chega voando espera invisível, e com o mouse dá para arrastar e mudar a ordem */
.dock-item.saindo { pointer-events: none; }
.dock-item.abrindo .icone { position: absolute; left: 50%; bottom: 0; width: var(--larg); height: var(--larg); margin-left: calc(var(--larg) / -2); }
.dock-item.chegando .icone { opacity: 0; }
.dock.reordenando .dock-item { transition: transform .22s var(--ease-out); }
.dock.reordenando .dock-item.arrastado { z-index: 2; transition: none; cursor: grabbing; }
.dock.reordenando .dock-nome, .dock.com-menu .dock-nome { opacity: 0 !important; }
.dock.sem-transicao .dock-item { transition: none !important; }
/* o voo da loja até a dock chama a dock escondida (janela na tela inteira, ou no celular com um app aberto) */
body.dock-chamada.janela-cheia .dock, body.dock-chamada.com-janela .dock { transform: translateX(-50%); opacity: 1; pointer-events: auto; }
.icone.voo { position: fixed; z-index: 1100; pointer-events: none; transform-origin: 0 0; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
/* a prévia ao vivo do app minimizado (dock-previa.js): um cartão de vidro em cima do ícone, com um quadro por janela e o nome do
   app embaixo, no lugar da etiqueta. A janela de verdade é desenhada por cima do quadro dela, escalada, sem clique; o clique cai
   no quadro. A ponte invisível embaixo do cartão leva o mouse do ícone até ele sem a prévia fechar. */
.dock-previa { position: fixed; left: 0; top: 0; z-index: 540; display: grid; justify-items: center; gap: 6px; padding: 8px 8px 7px; border-radius: 10px; color: var(--tinta);
  background: var(--sup-menu); -webkit-backdrop-filter: blur(36px) saturate(180%); backdrop-filter: blur(36px) saturate(180%);
  box-shadow: var(--brilho), 0 16px 36px -18px rgba(0, 0, 0, .55); }
.dock-previa::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--ponte, 14px); }
/* o movimento do cartão é todo do dock-previa.js: nenhuma transição (nem a curta de "reduzir movimento") faz ele deslizar */
.dock-previa, .dock-previa * { transition: none !important; }
.dp-quadros { display: flex; gap: 8px; }
.dp-quadro { display: block; flex: none; border-radius: 6px; background: rgba(var(--f), .07); box-shadow: 0 0 0 .5px rgba(var(--f), .16), 0 6px 14px -8px rgba(0, 0, 0, .5); cursor: pointer; }
.dp-nome { max-width: 100%; padding: 0 4px; font-size: 12.5px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a janela minimizada durante a prévia: o atributo hidden fica (para o sistema ela segue minimizada), mas ela volta a ser
   desenhada, por cima do cartão, sem clique e sem a sombra grande (a miniatura tem a dela) */
/* Sem o desfoque de vidro também: a miniatura fica por cima do cartão, e um backdrop-filter numa caixa escalada e recortada
   é o que o navegador mais erra (a sombra que aparecia longe do cartão). A caixa dela vai para o canto do quadro (dock-previa.js). */
#janelas > .janela.na-previa { z-index: 541 !important; opacity: 1; pointer-events: none; box-shadow: none; transition: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
#janelas > .janela.na-previa[hidden] { display: flex !important; }
/* o ícone de app minimizado não mostra a etiqueta com o nome: o nome vem no cartão da prévia */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .dock-item.minimizado .dock-nome, .dock-item.com-previa .dock-nome { opacity: 0 !important; transition: none; }
}

/* ícones dos apps: cada um com a sua cara */
.icone { display: block; width: 100%; height: 100%; border-radius: 20%; position: relative; overflow: hidden; container-type: size;
  box-shadow: inset 0 1px 0 rgba(var(--f), .55), inset 0 -1px 0 rgba(0, 0, 0, .22), 0 8px 16px -8px rgba(0, 0, 0, .75); }
.i-agenda { overflow: visible; border-radius: 0; box-shadow: none; }
.i-agenda img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .45)); }
/* os ícones desenhados em icones.js (Flat 2.0): a placa, a margem, a luz e a sombra já vêm no próprio desenho, no grid do Mac.
   A caixa não recorta, não arredonda e não põe sombra por cima. */
.icone:has(> img[data-icone]) { overflow: visible; border-radius: 0; box-shadow: none; container-type: normal; }
.icone > img[data-icone] { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; }
.dock-sep { flex: none; align-self: stretch; width: 1px; margin: 4px 3px; background: rgba(var(--f), .3); border-radius: 1px; }
/* ícone próprio de cada app: uma imagem quadrada inteira, que a máscara da dock arredonda */
.i-aion img, .i-ajustes img, .i-vps img, .i-arquivos img, .i-visor img, .i-tarefas img, .i-projetos img, .i-financeiro img, .i-juridico img, .i-cofre img, .i-whatsapp img, .i-crm img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* o ícone de app que chegar pela loja (sem regra própria acima) também enche o quadrado */
:where(.icone) > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ janelas */
.janela { position: fixed; z-index: 20; top: calc(var(--barra) + 14px); bottom: 96px; left: 32px; right: 32px; margin: 0 auto; max-width: 1200px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--sup-janela); -webkit-backdrop-filter: blur(50px) saturate(180%); backdrop-filter: blur(50px) saturate(180%);
  box-shadow: var(--brilho), 0 0 0 .5px rgba(0, 0, 0, .5), 0 44px 100px -34px rgba(0, 0, 0, .85);
  transition: transform .4s var(--ease-gaveta), opacity .26s ease; }
.janela::before { content: ""; position: absolute; inset: 0; background-image: var(--grao); opacity: .06; mix-blend-mode: soft-light; pointer-events: none; }
.janela[data-estado="entrando"] { opacity: 0; transform: scale(.82); }
/* a janela que volta com a área de trabalho (ao recarregar ou entrar de novo) só esmaece no lugar onde estava */
.janela[data-estado="voltando"] { opacity: 0; }
.janela[data-estado="saindo"] { opacity: 0; transform: scale(.96); transition: transform .2s var(--ease-out), opacity .18s ease; }
.janela[data-estado="minimizando"] { opacity: 0; transform: scale(.3); transition: transform .26s var(--ease-out), opacity .22s ease; }
.janela.cheia, :root[data-tema="claro"] .janela.cheia { top: var(--barra); bottom: 0; left: 0; right: 0; max-width: none; border-radius: 0; box-shadow: none; }
/* app na tela inteira: a barra do topo vira a mesma superfície da janela, sem linha nem degrau entre as duas */
body.janela-cheia .barra { background: var(--sup-janela); -webkit-backdrop-filter: blur(50px) saturate(180%); backdrop-filter: blur(50px) saturate(180%); transition: background .3s ease; }
/* no tema claro, a barra fica clara junto com o app: o texto e os ícones dela passam a ser escuros */
:root[data-tema="claro"] body.janela-cheia .barra { --f: 0, 0, 0; --tinta: #1d1d1f; --tinta-2: rgba(29, 29, 31, .76); --tinta-3: rgba(29, 29, 31, .64); color: var(--tinta); }
.janela.j-ajustes:not(.cheia) { max-width: 880px; }
/* o canvas do efeito gênio: por cima das janelas, por baixo da dock (a janela entra no ícone) */
.genio { position: fixed; inset: 0; z-index: 450; width: 100vw; height: 100vh; pointer-events: none; }
/* a janela que ele moveu ou esticou: a posição e o tamanho vêm do gesto */
.janela.livre { right: auto; bottom: auto; margin: 0; max-width: none; }
.janela.arrastando { transition: none; }
.j-barra { touch-action: none; }
.alca { position: absolute; z-index: 30; touch-action: none; }
.a-n, .a-s { left: 20px; right: 20px; height: 7px; cursor: ns-resize; }
.a-e, .a-o { top: 20px; bottom: 20px; width: 7px; cursor: ew-resize; }
.a-n { top: 0; } .a-s { bottom: 0; } .a-e { right: 0; } .a-o { left: 0; }
.a-ne, .a-no, .a-se, .a-so { width: 20px; height: 20px; }
.a-ne { top: 0; right: 0; cursor: nesw-resize; } .a-so { bottom: 0; left: 0; cursor: nesw-resize; }
.a-no { top: 0; left: 0; cursor: nwse-resize; } .a-se { bottom: 0; right: 0; cursor: nwse-resize; }
.janela.cheia .alca { display: none; }
.j-barra { position: relative; flex: none; height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; }
.j-titulo { font-size: 13.5px; font-weight: 600; color: var(--tinta-2); }
/* a ponta direita da barra da janela: cada app pode pôr ali os seus controles */
.j-fim { justify-self: end; display: flex; align-items: center; gap: 6px; touch-action: manipulation; }
.luzes { display: flex; gap: 8px; }
.luz { width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center; color: rgba(0, 0, 0, 0); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); transition: transform .12s var(--ease-out); }
.luz.fechar { background: #ff5f57; } .luz.minimizar { background: #febc2e; } .luz.cheia { background: #28c840; }
.luz:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .luzes:hover .luz { color: rgba(0, 0, 0, .62); } }
.j-corpo { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ------------------------------------------------------------ Agenda */
.ag { --divisa-topo: 4px; --divisa-base: 18px; position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--ag-lado, 224px) minmax(0, 1fr); gap: 20px; padding: 4px 18px 18px; }
.ag-centro { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.so-celular { display: none !important; }
/* a lateral, como no Google Calendar: criar, mini calendário, etiquetas e a conta */
.ag-lado { display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 0 0; }
.ag-lado > * { flex: none; }
.ag-lado > .espaco { flex: 1 0 0; }
.botao.largo { width: 100%; height: 40px; justify-content: flex-start; padding: 0 14px; }
.mini header { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 6px; font-size: 14px; text-transform: capitalize; }
.mini header b { font-weight: 600; }
.mini header span { font-size: 12.5px; color: var(--tinta-3); }
.mini .m-dia { height: 29px; font-size: 12.5px; }
.mini .m-dia.hoje { background: radial-gradient(circle at 50% 50%, var(--laranja) 0 12.5px, transparent 13px); }
.mini .m-dia.sel:not(.hoje) { background: radial-gradient(circle at 50% 50%, rgba(var(--f), .2) 0 12.5px, transparent 13px); }
.ets header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; padding-left: 4px; }
.ets h3 { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--tinta-3); }
.ets .redondo { width: 28px; height: 28px; }
.et { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 4px; border-radius: 6px; }
.et-marca { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: transparent; box-shadow: inset 0 0 0 2px var(--cor); transition: background-color .14s ease, transform .12s var(--ease-out); }
.et-marca.on { background: var(--cor); color: #fff; }
.et-marca { position: relative; }
.et-marca::before { content: ""; position: absolute; inset: -11px; }
.et-marca:active { transform: scale(.9); }
.et-nome { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et-lapis { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--tinta-3); opacity: .7; }
.et-editor { display: grid; gap: 9px; padding: 10px; margin: 4px 0; border-radius: 8px; background: rgba(var(--f), .07); }
.et-editor input { width: 100%; height: 34px; padding: 0 9px; border: 0; border-radius: 6px; background: var(--poco); font-size: 14px; }
.et-editor input::placeholder { color: var(--tinta-3); }
.et-editor input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(var(--f), .28); }
.et-cores { display: flex; flex-wrap: wrap; gap: 7px; }
.et-cor { width: 22px; height: 22px; border-radius: 50%; background: var(--cor); transition: transform .12s var(--ease-out); }
.et-cor.on { box-shadow: 0 0 0 2px var(--ev-base), 0 0 0 4px var(--cor); }
.et-cor:active { transform: scale(.9); }
.et-fim { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.et-editor .f-erro { margin: 0; font-size: 12.5px; padding: 6px 8px; }
.ag-lado .ag-fonte { max-width: 100%; align-self: flex-start; }
@media (hover: hover) and (pointer: fine) {
  .et-lapis { opacity: 0; transition: opacity .12s ease; }
  .et:hover .et-lapis, .et-lapis:focus-visible { opacity: 1; }
  .et-lapis:hover { background: rgba(var(--f), .12); color: var(--tinta); }
  .mini .m-dia:not(.hoje):not(.sel):hover { background: radial-gradient(circle at 50% 50%, rgba(var(--f), .12) 0 12.5px, transparent 13px); }
}
.ag-topo { flex: none; display: flex; align-items: center; gap: 14px; padding-bottom: 14px; }
.ag-mes { font-size: 28px; font-weight: 300; letter-spacing: -.02em; text-transform: capitalize; min-width: 232px; }
.ag-mes b { font-weight: 600; }
.ag-mes span { color: var(--tinta-3); }
.ag-nav { display: flex; align-items: center; gap: 6px; }
.ag-fonte { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--laranja-claro); background: rgba(var(--laranja-rgb), .14); max-width: 280px; transition: background-color .16s ease; }
.ag-fonte span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-fonte.ligado { color: var(--tinta-2); background: rgba(var(--f), .07); }
.ag-semana { flex: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 0 2px 7px; }
.ag-semana span { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--tinta-3); padding-left: 9px; }
.ag-grade { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--semanas, 6), minmax(0, 1fr)); gap: 5px; }
.c { position: relative; min-width: 0; border-radius: 6px; padding: 6px 6px 5px; background: rgba(var(--f), .055); overflow: hidden; cursor: pointer; transition: background-color .14s ease; }
.c.fora { background: rgba(var(--f), .02); }
.c.fora .n { color: var(--tinta-3); }
.c .n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--tinta-2); }
.c.hoje .n { color: #fff; font-weight: 700; background: var(--laranja); }
.c:focus-visible { box-shadow: inset 0 0 0 1.5px rgba(var(--f), .5); }
@media (hover: hover) and (pointer: fine) { .c:hover { background: rgba(var(--f), .095); } }
.evs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; margin-top: 3px; }
.ev { display: flex; align-items: center; gap: 6px; width: 100%; height: 20px; padding: 0 7px; border-radius: 4px; min-width: 0; text-align: left; font-size: 12.5px; font-weight: 500; --cor: var(--laranja); --tx: #1c0d02; color: color-mix(in srgb, var(--cor) var(--ev-forca), var(--ev-luz)); background: color-mix(in srgb, var(--cor) var(--ev-fundo), transparent); transition: background-color .14s ease, transform .12s var(--ease-out); }
.ev b { flex: none; font-weight: 600; color: color-mix(in srgb, var(--cor) var(--ev-forca-b), var(--ev-luz)); }
.ev span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.todo { color: var(--tx); font-weight: 600; background: color-mix(in srgb, var(--cor) 88%, #fff); }
.ev.passou { opacity: .55; }
.ev.mais { color: var(--tinta-2); background: none; font-weight: 500; }
.ev:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .ev:not(.todo):hover { background: color-mix(in srgb, var(--cor) var(--ev-fundo-h), transparent); } .ev.mais:hover { background: rgba(var(--f), .1); } }
.pontos { display: flex; gap: 3px; justify-content: center; margin-top: 2px; height: 5px; }
.pontos i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--cor, #ff8a3d) 75%, #fff); }
.ag-dia { display: none; }

/* seletor de visão: mês, semana, dia */
.ag-mes .frase { text-transform: none; }
.ag-visao, .segmento { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(var(--f), .07); }
.ag-visao button, .segmento button { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--tinta-2); transition: background-color .16s ease, color .16s ease, transform .12s var(--ease-out); }
.ag-visao button.on, .segmento button.on { color: var(--tinta); background: rgba(var(--f), .17); }
.ag-visao button:active, .segmento button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .ag-visao button:not(.on):hover, .segmento button:not(.on):hover { color: var(--tinta); background: rgba(var(--f), .08); } }
.hg { display: none; }
.ag-centro[data-modo="semana"] .ag-semana, .ag-centro[data-modo="semana"] .ag-grade, .ag-centro[data-modo="semana"] .ag-dia,
.ag-centro[data-modo="dia"] .ag-semana, .ag-centro[data-modo="dia"] .ag-grade, .ag-centro[data-modo="dia"] .ag-dia { display: none; }
.ag-centro[data-modo="semana"] .hg, .ag-centro[data-modo="dia"] .hg { display: flex; }

/* semana e dia: a grade de horas */
.hg { flex: 1; min-height: 0; flex-direction: column; --canto: 54px; --cols: 7; }
.hg-topo, .hg-todo, .hg-corpo { display: grid; grid-template-columns: var(--canto) repeat(var(--cols), minmax(0, 1fr)); column-gap: 5px; }
.hg-topo, .hg-todo { flex: none; padding-right: 0; }
.hg-dia { display: grid; justify-items: center; gap: 2px; padding: 0 0 8px; border-radius: 6px; }
.hg-dia small { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--tinta-3); }
.hg-dia b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .14s ease; }
.hg-dia.hoje b { color: #fff; font-weight: 700; background: var(--laranja); }
.hg-todo { min-height: 26px; padding-bottom: 6px; align-items: start; }
.hg-canto { align-self: center; text-align: right; padding-right: 8px; font-size: 10.5px; color: var(--tinta-3); }
.hg-inteiros { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-height: 20px; border-radius: 5px; background: rgba(var(--f), .035); }
.hg-rolo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 6px; }
.hg-corpo { position: relative; height: calc(24 * var(--h)); }
.hg-horas { position: relative; }
.hg-horas span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--tinta-3); }
.hg-col { position: relative; cursor: pointer; background-color: rgba(var(--f), .04);
  background-image: linear-gradient(rgba(var(--f), .075) 1px, transparent 1px); background-size: 100% var(--h); }
.hg-col.hoje { background-color: rgba(var(--f), .075); }
.ev.hv { position: absolute; display: block; width: auto; height: auto; padding: 4px 7px; overflow: hidden; line-height: 1.25; background: color-mix(in srgb, var(--cor) var(--ev-hv), var(--ev-base)); }
.ev.hv span { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.hv b { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.hv.curto { display: flex; align-items: center; gap: 6px; padding: 0 7px; }
/* no compromisso curto, o nome tem a vez: a hora encolhe (e some) antes dele */
.ev.hv.curto span { flex: 0 1 auto; min-width: 0; }
.ev.hv.curto b { flex: 0 1000 auto; min-width: 0; }
.hg-agora { position: absolute; left: 0; right: 0; z-index: 2; height: 2px; margin-top: -1px; background: var(--laranja); pointer-events: none; }
.hg-agora::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); }
@media (hover: hover) and (pointer: fine) {
  .hg-dia:hover b { background: rgba(var(--f), .13); }
  .hg-dia.hoje:hover b { background: var(--laranja-hover); }
  .ev.hv:hover { background: color-mix(in srgb, var(--cor) var(--ev-hv-h), var(--ev-base)); }
}

/* lista do dia, por cima do mês */
.do-dia { position: absolute; z-index: 5; width: 250px; padding: 12px; border-radius: 10px; display: grid; gap: 5px;
  background: var(--sup-folha); box-shadow: var(--brilho), 0 24px 50px -18px rgba(0, 0, 0, .85); animation: surge .18s var(--ease-out); }
.do-dia header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 4px; }
.do-dia .redondo { width: 26px; height: 26px; }
.do-dia .ev { height: 26px; }
.do-dia .botao { margin-top: 6px; justify-self: start; }
@keyframes surge { from { opacity: 0; transform: scale(.95); } }

/* o formulário do compromisso */
.folha-veu { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 14px; background: var(--veu); transition: opacity .22s ease; }
.folha-veu[data-estado] { opacity: 0; }
.folha { width: min(540px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden;
  background: var(--sup-folha);
  box-shadow: var(--brilho), 0 40px 80px -30px rgba(0, 0, 0, .9); transition: transform .3s var(--ease-gaveta); }
.folha-veu[data-estado="entrando"] .folha { transform: scale(.96) translateY(10px); }
.folha-veu[data-estado="saindo"] .folha { transform: scale(.98); transition-duration: .18s; }
.f-topo { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 20px; font-size: 13px; font-weight: 600; color: var(--tinta-3); text-transform: uppercase; letter-spacing: .06em; }
.f-corpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 20px 8px; display: grid; gap: 4px; align-content: start; }
.f-titulo { width: 100%; height: 46px; font-size: 24px; font-weight: 500; letter-spacing: -.015em; background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 6px; box-shadow: inset 0 -1px 0 rgba(var(--f), .16); transition: box-shadow .2s ease; }
.f-titulo::placeholder { color: var(--tinta-3); }
.f-titulo:focus { outline: none; box-shadow: inset 0 -1.5px 0 var(--laranja-claro); }
.f-nota { font-size: 13px; color: var(--tinta-2); background: rgba(var(--f), .06); border-radius: 6px; padding: 7px 10px; }
.f-linha { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 4px 0; color: var(--tinta-3); }
.f-linha > .ico { margin-top: 9px; }
.f-campos { display: grid; gap: 6px; color: var(--tinta); min-width: 0; }
.f-campos small { font-size: 12.5px; color: var(--tinta-3); }
.f-campos input:not([type=checkbox]), .f-campos select, .f-campos textarea, .g-form input {
  width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(var(--f), .075); font-size: 14.5px; transition: background-color .16s ease, box-shadow .16s ease; }
.f-campos textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.45; min-height: 74px; }
.f-campos select { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: var(--seta); background-repeat: no-repeat; background-position: right 10px center; }
.f-campos select:disabled { opacity: .55; }
.f-campos option { background: var(--ev-base); color: var(--tinta); }
.f-campos input::placeholder, .f-campos textarea::placeholder, .g-form input::placeholder { color: var(--tinta-3); }
.f-campos input:focus, .f-campos select:focus, .f-campos textarea:focus, .g-form input:focus { outline: none; background: rgba(var(--f), .11); box-shadow: inset 0 0 0 1px rgba(var(--f), .26); }
.f-quando { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-quando i { font-style: normal; font-size: 13px; color: var(--tinta-3); }
.so-hora, .so-dia { display: inline-flex; align-items: center; gap: 8px; }
.so-dia { display: none; }
.folha.dia-inteiro .so-hora { display: none; }
.folha.dia-inteiro .so-dia { display: inline-flex; }
.chave { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; min-height: 30px; }
.chave input { position: absolute; opacity: 0; pointer-events: none; }
.chave i { flex: none; width: 38px; height: 22px; border-radius: 11px; background: rgba(var(--f), .16); position: relative; transition: background-color .2s ease; }
.chave i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .22s var(--ease-out); }
.chave input:checked + i { background: var(--laranja); }
.chave input:checked + i::after { transform: translateX(16px); }
.chave input:focus-visible + i { box-shadow: 0 0 0 1.5px rgba(var(--f), .55); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 6px; background: rgba(var(--f), .075); cursor: text; }
.chips input:not([type=checkbox]) { flex: 1; min-width: 160px; height: 26px; padding: 0 5px; background: none; box-shadow: none !important; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 10px; border-radius: 5px; font-size: 13px; background: rgba(var(--f), .13); max-width: 100%; }
.chip em { font-style: normal; font-size: 11.5px; color: var(--tinta-3); }
.chip button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--tinta-2); background: rgba(var(--f), .12); }
.f-meet { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-meet a { color: var(--laranja-claro); font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; user-select: text; }
.f-erro { font-size: 13.5px; color: var(--erro); background: rgba(255, 90, 60, .14); border-radius: 6px; padding: 8px 10px; margin-top: 4px; }
.f-fim { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 20px 16px; }

/* o cartão do compromisso (um clique no compromisso) */
.cartao-ev { width: min(460px, 100%); }
.ce-acoes { display: flex; gap: 6px; }
.ce-acoes .certeza { color: #fff; background: #ff453a; }
.ce-titulo { font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; user-select: text; -webkit-user-select: text; overflow-wrap: anywhere; }
.ce-quando { font-size: 15px; color: var(--tinta-2); margin-top: 2px; user-select: text; -webkit-user-select: text; }
.ce-et { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 8px; }
.ce-et i, .f-et i { flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--cor, var(--laranja)); }
.f-et { display: flex; align-items: center; gap: 10px; }
.ce-meet { margin: 14px 0 8px; display: grid; gap: 8px; }
.ce-botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.ce-botoes .botao { height: 38px; }
.ce-link { font-size: 13.5px; color: var(--tinta-3); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.ce-lista { list-style: none; margin: 0; padding: 7px 0 0; display: grid; gap: 5px; font-size: 14.5px; }
.ce-lista li { overflow-wrap: anywhere; }
.ce-lista em { font-style: normal; font-size: 12.5px; color: var(--tinta-3); margin-left: 8px; }
.ce-texto { font-size: 14.5px; padding-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.cartao-ev .f-corpo { padding-bottom: 18px; }
.cartao-ev .f-fim { padding-top: 0; }

/* ------------------------------------------------------------ Ajustes */
/* no jeito dos Ajustes do Mac: as áreas na lateral, as opções da área à direita, em grupos de linhas */
.aj { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--aj-lado, 236px) minmax(0, 1fr); }
.aj-lado { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 10px 14px; }
.ava { flex: none; display: grid; place-items: center; border-radius: 50%; object-fit: cover; font-weight: 600; color: #fff; background: var(--laranja); }
.aj-conta { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 8px; border-radius: 8px; text-align: left; transition: background-color .12s ease; }
.aj-conta span { min-width: 0; }
.aj-conta b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-conta small { font-size: 12.5px; color: var(--tinta-3); }
.aj-ava { width: 38px; height: 38px; font-size: 14px; }
.aj-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: 6px; font-size: 14px; text-align: left; transition: background-color .12s ease; }
.aj-item i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; background: var(--cor); }
.aj-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-item.on, .aj-conta.on { color: #fff; background: var(--laranja); }
.aj-conta.on small { color: rgba(255, 255, 255, .82); }
.aj-conta.on .aj-ava { background: rgba(255, 255, 255, .26); }
@media (hover: hover) and (pointer: fine) { .aj-item:not(.on):hover, .aj-conta:not(.on):hover { background: rgba(var(--f), .08); } }
.aj-pagina { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.aj-topo { flex: none; display: flex; align-items: center; gap: 10px; padding: 2px 26px 12px; }
.aj-topo h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.aj-corpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 26px 26px; display: grid; grid-auto-rows: max-content; gap: 14px; align-content: start; }
.aj-corpo form { display: grid; gap: 14px; }
.aj-sub { font-size: 13px; font-weight: 600; color: var(--tinta-2); margin: 6px 0 -4px; }
.aj-nota { font-size: 13.5px; max-width: 62ch; }
.grupo { border-radius: 8px; background: rgba(var(--f), .055); }
.linha { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; padding: 7px 14px; }
.linha + .linha { box-shadow: inset 0 1px 0 rgba(var(--f), .07); }
.l-rotulo { display: grid; gap: 1px; font-size: 14.5px; }
.l-rotulo small { font-size: 12.5px; color: var(--tinta-3); }
.l-controle { flex: none; display: flex; align-items: center; }
.l-campo { flex: 1; min-width: 0; max-width: 320px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; text-align: right; font-size: 14.5px; transition: background-color .14s ease; }
.l-campo::placeholder { color: var(--tinta-3); }
.l-campo:focus { outline: none; background: rgba(var(--f), .09); }
.l-campo.codigo { max-width: 150px; letter-spacing: .18em; }
.l-campo.codigo::placeholder { letter-spacing: normal; }
.regua { -webkit-appearance: none; appearance: none; width: 190px; height: 22px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; --p: 50%; }
.regua::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--laranja) var(--p), rgba(var(--f), .18) var(--p)); }
.regua::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .14); transition: transform .12s var(--ease-out); }
.regua::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(var(--f), .18); }
.regua::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--laranja); }
.regua::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.regua:active:not(:disabled)::-webkit-slider-thumb { transform: scale(1.1); }
.regua:focus-visible { outline: none; box-shadow: none; }
.regua:focus-visible::-webkit-slider-thumb { box-shadow: 0 1px 4px rgba(0, 0, 0, .45), 0 0 0 4px rgba(var(--f), .22); }
.regua:disabled { opacity: .4; cursor: default; }
.pf-topo { display: flex; align-items: center; gap: 16px; padding-bottom: 4px; }
.pf-foto { width: 84px; height: 84px; font-size: 28px; }
.pf-nome { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.pf-topo .g-acoes { margin-top: 0; }
.gr-topo { display: flex; align-items: center; gap: 14px; }
.gr-topo img { width: 56px; height: 56px; border-radius: 12px; }
.gr-topo b { font-size: 17px; font-weight: 600; }
.gr-topo .at-versao { margin: 2px 0 0; color: var(--tinta-2); }
.gr-atualiza { align-items: center; margin-top: 16px; }
.gr-barra { flex: none; width: 160px; height: 4px; border-radius: 2px; background: rgba(var(--f), .14); overflow: hidden; }
.gr-barra i { display: block; height: 100%; border-radius: 2px; background: var(--laranja); transition: width .25s ease-out; }
/* enquadrar a foto do perfil: arrasta para acertar, régua para aproximar */
.recorte { width: min(320px, 100%); padding: 20px; border-radius: 10px; display: grid; gap: 14px; justify-items: center; color: var(--tinta);
  background: var(--sup-folha); -webkit-backdrop-filter: blur(40px) saturate(170%); backdrop-filter: blur(40px) saturate(170%); box-shadow: var(--brilho), 0 40px 80px -30px rgba(0, 0, 0, .9); animation: surge .22s var(--ease-out); }
.recorte h3 { font-size: 16px; font-weight: 600; }
.recorte-area { position: relative; width: 240px; height: 240px; border-radius: 50%; overflow: hidden; cursor: grab; touch-action: none; background: var(--poco); }
.recorte-area:active { cursor: grabbing; }
.recorte-area img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.recorte-zoom { display: flex; align-items: center; gap: 10px; color: var(--tinta-3); }
.recorte-fim { display: flex; gap: 8px; }
.fundos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fundo { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; text-align: left; background: rgba(var(--f), .07); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .8); transition: transform .16s var(--ease-out), box-shadow .2s ease; }
.fundo:active { transform: scale(.98); }
.fundo img, .fundo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fundo-video img { transition: opacity .2s ease; }
.fundo-video.rodando img { opacity: 0; }
.fundo span { position: absolute; inset: auto 0 0 0; padding: 26px 12px 9px; color: #fff; font-size: 13.5px; font-weight: 500; background: linear-gradient(180deg, rgba(8, 11, 16, 0), rgba(8, 11, 16, .72)); }
.fundo i { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--laranja); }
.fundo.atual { box-shadow: 0 0 0 2.5px var(--laranja), 0 12px 26px -16px rgba(0, 0, 0, .8); }
.fundo.novo { display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; color: var(--tinta-2); }
.fundo.novo span { position: static; background: none; padding: 0; color: inherit; }
.fundo.novo b { display: grid; place-items: center; }
/* Pessoas: quem usa o cosmOS e o convite de quem ainda não tem código */
.pe-quem { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pe-ava { width: 36px; height: 36px; font-size: 13.5px; }
.pe-quem .l-rotulo { min-width: 0; }
.pe-quem .l-rotulo b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grupo .pe-convite { display: grid; justify-items: start; gap: 6px; min-height: 0; padding: 0 14px 12px 62px; box-shadow: none; }
.pe-convite .copia { margin-top: 0; }
.pe-convite small { font-size: 12.5px; color: var(--tinta-3); }
.g-estado { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 8px; background: rgba(var(--f), .06); }
.g-estado > div { flex: 1; min-width: 0; }
.g-estado p { font-size: 13.5px; color: var(--tinta-2); }
.g-bola { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--f), .3); }
.g-estado.ligado .g-bola { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
.g-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.passos { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 9px; font-size: 14px; color: var(--tinta-2); max-width: 66ch; }
.passos b { color: var(--tinta); font-weight: 600; }
.passos a { color: var(--laranja-claro); }
.copia { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.copia code { font: 500 13px/1.3 ui-monospace, "Cascadia Mono", Menlo, monospace; color: var(--tinta); background: var(--poco); padding: 7px 10px; border-radius: 6px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.g-form { display: grid; gap: 12px; max-width: 520px; }
.g-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--tinta-2); }
.g-form .g-acoes { margin-top: 2px; }
/* a versão (a atualização mora na barra do topo) */
.at-versao { font-size: 15px; margin-bottom: 12px; }
.at-versao b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* dentro do app de computador: a barra do topo é a barra da janela (dá para arrastar por ela) */
.no-desktop .barra, .no-desktop .trava .t-topo { -webkit-app-region: drag; }
.no-desktop .barra .b-item { -webkit-app-region: no-drag; }
.plataforma-win32 .barra { padding-right: 146px; }
.plataforma-darwin .barra { padding-left: 82px; }
/* onde os avisos aparecem: uma telinha com os quatro cantos */
.cantos { width: 232px; aspect-ratio: 16 / 10; display: grid; grid-template: 1fr 1fr / 1fr 1fr; padding: 4px; border-radius: 8px; background: rgba(var(--f), .07); }
.aj-canto { margin-top: -6px; font-size: 13px; }
.cantos button { display: grid; padding: 7px; border-radius: 5px; transition: background-color .14s ease; }
.cantos button::after { content: ""; width: 54px; height: 16px; border-radius: 4px; background: rgba(var(--f), .22); transition: background-color .16s ease, transform .14s var(--ease-out); }
.cantos button.on::after { background: var(--laranja); }
.cantos button:active::after { transform: scale(.94); }
.cantos [data-canto="topo-esquerdo"] { place-items: start start; } .cantos [data-canto="topo-direito"] { place-items: start end; }
.cantos [data-canto="baixo-esquerdo"] { place-items: end start; } .cantos [data-canto="baixo-direito"] { place-items: end end; }
@media (hover: hover) and (pointer: fine) { .cantos button:not(.on):hover::after { background: rgba(var(--f), .36); } }

/* ------------------------------------------------------------ tema claro
   As janelas, os cartões da mesa, os menus e os avisos viram vidro esbranquiçado com texto escuro.
   A barra do topo, o relógio da mesa e a tela de bloqueio continuam claros por cima da imagem de fundo. */
:root[data-tema="claro"] {
  --veu: rgba(22, 25, 32, .24);
  --poco: rgba(0, 0, 0, .055);
  --sup-janela: rgba(244, 245, 248, .76);
  --sup-janela-cel: rgba(246, 247, 250, .92);
  --sup-folha: rgb(250, 250, 252);
  --sup-menu: rgba(246, 247, 250, .8);
  --sup-vidro: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .54) 62%);
  --sup-dock: linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .22) 62%);
  --ev-base: #ffffff;
  --ambar: #9a5c00;
}
:root[data-tema="claro"] :is(.janela, .w, .menu, .aviso, .sobre, .dock-nome, .dock-previa, .recorte) {
  color-scheme: light; color: var(--tinta);
  --f: 0, 0, 0;
  --tinta: #1d1d1f; --tinta-2: rgba(29, 29, 31, .76); --tinta-3: rgba(29, 29, 31, .64);
  --laranja-claro: var(--marca-no-claro); --erro: #c0271a;
  --brilho: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(0, 0, 0, .07);
  --ev-luz: #000; --ev-forca: 66%; --ev-forca-b: 86%; --ev-forca-t: 84%; --ev-fundo: 20%; --ev-fundo-h: 30%; --ev-hv: 26%; --ev-hv-h: 36%;
  --seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-opacity='.6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-tema="claro"] .w-hoje .w-linha { --cor: #e5530a; }
:root[data-tema="claro"] .c.fora { background: rgba(0, 0, 0, .018); }
:root[data-tema="claro"] .janela { box-shadow: var(--brilho), 0 0 0 .5px rgba(0, 0, 0, .18), 0 44px 100px -34px rgba(0, 0, 0, .55); }

/* ------------------------------------------------------------ menus, sobre e avisos */
.menu { position: fixed; z-index: 900; min-width: 232px; max-width: 320px; padding: 5px; border-radius: 8px;
  background: var(--sup-menu); -webkit-backdrop-filter: blur(36px) saturate(180%); backdrop-filter: blur(36px) saturate(180%); box-shadow: var(--brilho), 0 22px 50px -18px rgba(0, 0, 0, .85); animation: surge .14s var(--ease-out); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 30px; padding: 4px 10px; border-radius: 5px; text-align: left; font-size: 14px; }
.menu button span { flex: 1; }
.menu button img { width: 34px; height: 22px; border-radius: 4px; object-fit: cover; }
.menu button .ico { color: var(--laranja-claro); }
.menu kbd { font: inherit; font-size: 12.5px; color: var(--tinta-3); }
@media (pointer: coarse) { .menu kbd { display: none; } } /* atalho de teclado não serve no toque */
.menu hr { border: 0; height: 1px; margin: 5px 10px; background: rgba(var(--f), .1); }
.menu-rotulo { padding: 4px 10px 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); }
.menu button:active { background: rgba(var(--laranja-rgb), .5); }
@media (hover: hover) and (pointer: fine) { .menu button:hover { background: rgba(var(--laranja-rgb), .82); color: #fff; } .menu button:hover .ico, .menu button:hover kbd { color: #fff; } }
.veu { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 20px; background: var(--veu); animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.sobre { width: min(340px, 100%); padding: 30px 26px 22px; border-radius: 10px; text-align: center; display: grid; gap: 6px; justify-items: center;
  background: var(--sup-folha); -webkit-backdrop-filter: blur(40px) saturate(170%); backdrop-filter: blur(40px) saturate(170%); box-shadow: var(--brilho), 0 40px 80px -30px rgba(0, 0, 0, .9); animation: surge .22s var(--ease-out); }
.sobre img { height: 54px; margin-bottom: 10px; }
.sobre .logo-texto { font-size: 34px; margin-bottom: 10px; }
.sobre .assinatura { margin-top: 4px; }
/* o logo branco sumia no vidro claro: no tema claro entra o preto */
.sobre .no-claro, :root[data-tema="claro"] .sobre .no-escuro { display: none; }
/* sem imagem de logo, o nome escrito serve aos dois temas: só um aparece */
.sobre .logo-texto.no-claro { display: none !important; }
:root[data-tema="claro"] .sobre .logo-texto.no-escuro { display: block; }
:root[data-tema="claro"] .sobre .no-claro { display: block; }
.sobre .fraco { font-size: 14px; }
.sobre .botao { margin-top: 14px; }
/* avisos: caixas de tamanho fixo, no vidro do sistema, entrando pela lateral do canto escolhido em Ajustes */
.avisos { position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: 344px; max-width: calc(100vw - 24px); pointer-events: none; }
.avisos[data-canto^="topo"] { top: calc(var(--barra) + 10px); }
.avisos[data-canto^="baixo"] { bottom: 96px; flex-direction: column-reverse; }
.avisos[data-canto$="direito"] { right: 12px; }
.avisos[data-canto$="esquerdo"] { left: 12px; --de: -112%; }
.aviso { pointer-events: auto; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; align-items: start; width: 100%; min-height: 66px; padding: 13px 14px 13px 12px; border-radius: 12px; text-align: left; color: var(--tinta);
  background: var(--sup-menu); -webkit-backdrop-filter: blur(36px) saturate(180%); backdrop-filter: blur(36px) saturate(180%); box-shadow: var(--brilho), 0 18px 44px -18px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease-gaveta), opacity .24s ease; }
@starting-style { .aviso { opacity: 0; transform: translateX(var(--de, 112%)); } }
.aviso.sai { opacity: 0; transform: translateX(var(--de, 112%)); transition: transform .22s var(--ease-out), opacity .18s ease; }
.aviso-icone { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.aviso-texto { display: grid; gap: 1px; min-width: 0; }
.aviso-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.aviso-topo b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aviso-topo small { flex: none; font-size: 12px; color: var(--tinta-3); }
.aviso-corpo { font-size: 13.5px; line-height: 1.36; color: var(--tinta-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.aviso.erro .aviso-topo b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: #ff453a; vertical-align: 1px; }

/* ------------------------------------------------------------ telas médias */
@media (max-width: 1180px) and (min-width: 861px) {
  .mesa { grid-template-columns: 330px 1fr; }
  .w-mes { display: none; }
}

/* ------------------------------------------------------------ celular */
/* no telefone a barra não tem lugar para o nome: ele virava "cos…" ao lado do medidor da VPS (o emblema já diz que é o cosmOS) */
@media (max-width: 480px) { .b-app { display: none; } }
@media (max-width: 860px) {
  :root { --barra: calc(30px + env(safe-area-inset-top)); }
  .barra { padding: env(safe-area-inset-top) 8px 0; }
  #b-dia, .b-rede { display: none; }
  /* o nome do app nunca quebra em linhas: com pouco espaço, encurta com reticências (o nome inteiro está no topo da janela) */
  .b-app { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.com-janela .b-app { display: none; }
  .b-item { flex: none; }
  /* no telefone, as setas respondem a um toque de 36 px ou mais, sem a barra ficar mais alta */
  .b-atualiza { min-width: 36px; justify-content: center; }
  .b-atualiza::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 40px; margin-top: -20px; }
  .mesa { display: flex; flex-direction: column; gap: 16px; padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
  .w-hoje { align-self: stretch; }
  .w-hora { font-size: 84px; }
  .w-dia { font-size: 18px; }
  .w-mes { display: none; }
  /* no telefone, com onze apps a dock não cabe com toque de 36 px: os ícones ficam com 42 px e a dock rola para o lado dentro
     dela (a página não rola); o último ícone à vista fica cortado pela borda, o que mostra que há mais */
  .dock { bottom: calc(10px + env(safe-area-inset-bottom)); width: max-content; height: auto; max-width: calc(100vw - 12px); gap: 6px; padding: 8px 8px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 8px; touch-action: pan-x; }
  .dock::-webkit-scrollbar { display: none; }
  .dock-item { flex: none; width: 42px; height: 42px; scroll-snap-align: start; }
  .dock-item .aberto { bottom: -5px; }
  .janela, .janela.cheia, :root[data-tema="claro"] .janela { top: var(--barra); bottom: 0; left: 0; right: 0; max-width: none; border-radius: 0; background: var(--sup-janela-cel); box-shadow: none; }
  .j-barra { height: 48px; padding: 0 10px; }
  .luz.minimizar, .luz.cheia, .alca { display: none; }
  .luz.fechar { width: 32px; height: 32px; color: var(--tinta); background: rgba(var(--f), .12); }
  .luz.fechar .ico { width: 14px; height: 14px; }
  /* a gaveta do AION ocupa a tela toda no telefone: a dock sai da frente, como com uma janela aberta (cobria o campo de escrever) */
  body.com-janela .dock, body.com-gaveta .dock { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
  .ag { display: flex; flex-direction: column; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  .ag-lado { display: none; }
  .ag-centro { flex: 1; }
  .so-celular { display: inline-flex !important; }
  .folha-ets .et { min-height: 44px; }
  .folha-ets .et-lapis { width: 36px; height: 36px; opacity: 1; }
  .et-editor input { font-size: 16px; height: 42px; }
  .et-cor { width: 30px; height: 30px; }
  .ag-topo { flex-wrap: wrap; gap: 8px 10px; padding-bottom: 10px; }
  .ag-mes { font-size: 24px; min-width: 0; flex: 1 0 auto; white-space: nowrap; }
  .ag-topo [data-etiquetas] { order: 4; }
  .ag-visao { order: 3; }
  .ag-visao button { height: 30px; }
  .hg { --canto: 36px; }
  .hg-topo, .hg-todo, .hg-corpo { column-gap: 2px; }
  .hg-canto { font-size: 9px; padding-right: 3px; }
  .hg-horas span { right: 4px; font-size: 10px; }
  .hg-dia b { width: 30px; height: 30px; font-size: 16px; }
  .hg-dia small { font-size: 10px; letter-spacing: .02em; }
  .ag-centro[data-modo="semana"] .ev.hv { padding: 2px 3px; font-size: 10.5px; }
  .ag-centro[data-modo="semana"] .ev.hv b { display: none; }
  .ag-topo .espaco { display: none; }
  .ag-fonte { order: 5; max-width: 100%; flex-basis: 100%; justify-content: center; height: 36px; border-radius: 7px; }
  .ag-fonte.ligado { display: none !important; }
  .ag-semana { gap: 3px; padding-bottom: 4px; }
  .ag-semana span { padding: 0; text-align: center; font-size: 11px; letter-spacing: .03em; }
  .ag-grade { flex: none; gap: 3px; grid-template-rows: repeat(var(--semanas, 6), 46px); }
  .c { padding: 5px 2px 4px; text-align: center; border-radius: 6px; }
  .c .n { font-size: 14px; }
  .c.sel { box-shadow: inset 0 0 0 1.5px rgba(var(--f), .7); }
  .ag-dia { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 12px; }
  .ag-dia header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
  .ag-dia h3 { font-size: 16px; font-weight: 600; }
  .ag-dia .vazio { color: var(--tinta-2); font-size: 14.5px; padding: 8px 2px; }
  .linha-ev { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; background: rgba(var(--f), .07); min-height: 52px; }
  .linha-ev .num { font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--cor, #ff8a3d) var(--ev-forca-t), var(--ev-luz)); line-height: 1.25; }
  .linha-ev small { display: block; font-size: 12.5px; font-weight: 400; color: var(--tinta-3); }
  .linha-ev b { display: block; font-size: 15px; font-weight: 500; }
  .linha-ev:active { background: rgba(var(--f), .13); }
  .folha-veu { position: fixed; padding: 0; place-items: end stretch; }
  .folha { width: 100%; max-height: 92dvh; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .folha-veu[data-estado="entrando"] .folha, .folha-veu[data-estado="saindo"] .folha { transform: translateY(40px); }
  .f-campos input:not([type=checkbox]), .f-campos select, .f-campos textarea, .g-form input { font-size: 16px; height: 42px; }
  .f-campos textarea { height: auto; }
  .so-hora { width: 100%; }
  .f-fim { flex-wrap: wrap; }
  /* no celular os Ajustes viram duas telas, como no telefone: a lista de áreas e, ao tocar, a área */
  .aj { grid-template-columns: minmax(0, 1fr); }
  .aj:not(.aberta) .aj-pagina, .aj.aberta .aj-lado { display: none; }
  .aj:not(.aberta) .aj-item.on, .aj:not(.aberta) .aj-conta.on { color: inherit; background: none; }
  .aj:not(.aberta) .aj-conta.on small { color: var(--tinta-3); }
  .aj:not(.aberta) .aj-conta.on .aj-ava { background: var(--laranja); }
  .aj-lado { padding: 4px 12px calc(20px + env(safe-area-inset-bottom)); gap: 4px; }
  .aj-item { height: 48px; font-size: 16px; }
  .aj-item i { width: 30px; height: 30px; border-radius: 7px; }
  .aj-conta { padding: 12px 8px; }
  .aj-conta b { font-size: 17px; }
  .aj-ava { width: 52px; height: 52px; font-size: 18px; }
  .aj-topo { padding: 2px 12px 10px; }
  .aj-corpo { padding: 2px 14px calc(24px + env(safe-area-inset-bottom)); }
  .linha { flex-wrap: wrap; gap: 6px 14px; }
  .l-campo { font-size: 16px; height: 40px; text-align: left; max-width: none; flex-basis: 100%; background: rgba(var(--f), .06); }
  .regua { width: 160px; height: 36px; }
  .fundos { grid-template-columns: repeat(2, 1fr); }
  .grupo .pe-convite { padding-left: 14px; }
  .g-estado { flex-wrap: wrap; }
  .avisos, .avisos[data-canto] { top: calc(var(--barra) + 8px); bottom: auto; left: 12px; right: 12px; width: auto; max-width: none; flex-direction: column; --de: 0%; }
  @starting-style { .aviso { transform: translateY(-16px); } }
  .aviso.sai { transform: translateY(-12px); }
  .botao { height: 40px; }
  .botao.pequeno { height: 36px; }
  .redondo, .ets .redondo { width: 40px; height: 40px; }
  .ag-visao button, .segmento button { height: 36px; }
  .t-hora { font-size: 92px; }
  .t-logo { height: 30px; order: -1; }
  /* no telefone o relógio fica no alto e o miolo (pessoas ou teclado) embaixo, na mesma altura em toda tela de bloqueio */
  .trava { justify-content: flex-start; }
  .t-topo { margin-top: 2vh; }
  .t-entrada { margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .12s !important; }
  .b-atualiza.girando .at-setas { animation: none; opacity: .45; } /* sem giro: as setas esmaecem enquanto procura */
  .janela[data-estado], .folha-veu[data-estado] .folha, .mesa.entrando, .trava.sai { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .vidro, .janela, .folha, .menu, .barra, .do-dia, .aviso, .sobre, .dock-previa { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ev-base); }
}
