:root {
  --ink: #16324a;
  --ink-2: #294c66;
  --muted: #657b8d;
  --muted-2: #8da0ae;
  --lilac: #2d8ec7;
  --lilac-dark: #165a83;
  --lilac-light: #e5f5ff;
  --lilac-ice: #f1f9fe;
  --pink: #56b6e8;
  --pink-light: #e7f6ff;
  --green: #3f8b68;
  --red: #b45454;
  --paper: #f4f9fc;
  --white: #fff;
  --line: #d9e8f1;
  --line-strong: #bfd5e3;
  --shadow: 0 24px 70px rgba(22,70,103,.10);
  --shadow-soft: 0 12px 34px rgba(22,70,103,.07);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height: 1.5;
}

body.auth-mode {
  overflow: hidden;
}

button,input,textarea,select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
  isolation: isolate;
}

.auth-screen::before,.auth-screen::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  z-index: -1;
}

.auth-screen::before {
  width: 360px;
  height: 360px;
  background: rgba(117,95,181,.16);
  left: -110px;
  top: -90px;
}

.auth-screen::after {
  width: 330px;
  height: 330px;
  background: rgba(218,28,133,.11);
  right: -120px;
  bottom: -120px;
}

.auth-shell {
  width: min(1080px,100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 35px 110px rgba(54,39,83,.14);
  border-radius: 34px;
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.auth-hero {
  position: relative;
  padding: 34px 38px 30px;
  overflow: hidden;
  background: radial-gradient(circle at 76% 12%,rgba(255,255,255,.72),transparent 26%),radial-gradient(circle at 18% 72%,rgba(255,255,255,.24),transparent 30%),linear-gradient(145deg,#f2edff 0%,#eae2fb 42%,#fce9f4 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-copy {
  position: relative;
  z-index: 4;
  max-width: 500px;
}

.auth-copy h1 {
  margin: 18px 0 16px;
  max-width: 8.5ch;
  font-family: Fraunces,Georgia,serif;
  font-size: clamp(2.9rem,5vw,5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.auth-copy p {
  max-width: 48ch;
  color: #5e526b;
  font-size: 1.03rem;
}

.auth-note {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 54ch;
  color: #5e526b;
  font-size: .93rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg,var(--pink),#a93a92);
  box-shadow: 0 11px 28px rgba(218,28,133,.28);
}

.auth-visual {
  position: relative;
  pointer-events: none;
  z-index: 1;
  height: 220px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 142px;
  gap: 12px;
  align-items: center;
  margin: 0 0 8px;
  padding: 5px 7px 5px 0;
}

.visual-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.visual-glow-a {
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,.34);
  right: 24px;
  top: 7px;
}

.visual-glow-b {
  width: 165px;
  height: 165px;
  background: rgba(218,28,133,.13);
  left: 38px;
  bottom: 7px;
}

.visual-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,255,255,.44);
  box-shadow: 0 28px 80px rgba(78,59,111,.12);
  backdrop-filter: blur(10px);
  z-index: 3;
}

.visual-card-main {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: 28px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: none;
}

.visual-card-main strong {
  margin-top: auto;
  color: #3c3155;
  font-family: Fraunces,Georgia,serif;
  font-size: 2.1rem;
  line-height: .96;
}

.visual-card-kicker {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lilac-dark);
}

.visual-card-line {
  display: block;
  width: 70px;
  height: 5px;
  border-radius: 999px;
  background: var(--pink);
  margin: 16px 0 12px;
}

.visual-card-small {
  font-size: .78rem;
  color: #756a84;
}

.visual-card-float {
  width: 100%;
  min-height: 92px;
  padding: 12px 13px;
  border-radius: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  transform: none;
  color: #514569;
}

.visual-card-float i {
  color: var(--pink);
  width: 18px;
  height: 18px;
}

.visual-card-float span {
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(117,95,181,.2);
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.visual-orbit-1 {
  width: 235px;
  height: 235px;
  right: 64px;
  top: -6px;
}

.visual-orbit-2 {
  width: 175px;
  height: 175px;
  right: 94px;
  top: 20px;
  border-color: rgba(218,28,133,.16);
}

.auth-panel {
  position: relative;
  z-index: 5;
  padding: 40px;
  background: rgba(255,255,255,.93);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  background: #f5f1f9;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 27px;
}

.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 11px;
  padding: 11px;
  font-weight: 800;
}

.auth-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

.field {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}

label {
  font-size: .89rem;
  font-weight: 800;
}

input,textarea,select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s,box-shadow .15s,transform .15s;
}

input:focus,textarea:focus,select:focus {
  border-color: rgba(117,95,181,.62);
  box-shadow: 0 0 0 4px rgba(117,95,181,.10);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  transition: transform .16s,box-shadow .16s,background .16s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(145deg,var(--pink),#b91b79);
  color: #fff;
  box-shadow: 0 11px 28px rgba(218,28,133,.18);
}

.btn.primary:hover:not(:disabled) {
  box-shadow: 0 14px 34px rgba(218,28,133,.25);
}

.btn.secondary {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--line);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.btn.danger {
  background: #f7e8e6;
  color: var(--red);
  border-color: #ebd0cd;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.message {
  padding: 11px 13px;
  border-radius: 13px;
  background: #f6f2f8;
  color: var(--muted);
  font-size: .93rem;
}

.message.error {
  background: #fff0f2;
  color: var(--red);
}

.message.ok {
  background: #eef8f1;
  color: var(--green);
}

#app {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.app-ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  width: 340px;
  height: 340px;
  background: rgba(117,95,181,.08);
  right: -180px;
  top: 120px;
}

.ambient-b {
  width: 260px;
  height: 260px;
  background: rgba(218,28,133,.055);
  left: -140px;
  bottom: 90px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(229,222,242,.9);
  background: rgba(250,249,253,.88);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  max-width: var(--max);
  margin: auto;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.brand-button .brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 12px;
}

.nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 11px;
  border-radius: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav button.active,.nav button:hover {
  background: var(--lilac-light);
  color: var(--lilac-dark);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.session-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(100,138,112,.1);
}

.main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: auto;
  padding: 24px 18px 36px;
}

.view {
  display: none;
  animation: viewIn .26s ease both;
}

.view.active {
  display: block;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 20px;
  padding: 32px 0 22px;
  align-items: stretch;
}

.hero-main-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 32px;
  background: radial-gradient(circle at 84% 18%,rgba(255,255,255,.18),transparent 26%),linear-gradient(145deg,#6e59aa 0%,#755fb5 42%,#8d67af 100%);
  border: 1px solid rgba(117,95,181,.4);
  box-shadow: 0 28px 70px rgba(74,57,116,.18);
  color: #fff;
}

.hero-main-card .eyebrow {
  color: #e6ddff;
}

.hero-main-card h2 {
  font-family: Fraunces,Georgia,serif;
  font-size: clamp(2.3rem,5vw,4.6rem);
  line-height: .96;
  letter-spacing: -.045em;
  margin: 10px 0 16px;
  max-width: 10ch;
}

.hero-main-card .muted {
  color: rgba(255,255,255,.78);
}

.hero-main-decoration {
  position: absolute;
  right: 25px;
  top: 22px;
  display: grid;
  gap: 7px;
}

.hero-main-decoration span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
}

.hero-main-decoration span:nth-child(2) {
  width: 13px;
  height: 13px;
  margin-left: 20px;
  background: rgba(255,255,255,.45);
}

.hero-main-decoration span:nth-child(3) {
  width: 7px;
  height: 7px;
  margin-left: 9px;
  background: rgba(255,255,255,.65);
}

.actions,.cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-side {
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(145deg,#fff,#f7f2ff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-side h3 {
  font-family: Fraunces,Georgia,serif;
  font-size: 1.95rem;
  line-height: 1.05;
  margin: 10px 0;
}

.hero-side .notice {
  margin-top: 26px;
  background: rgba(255,255,255,.74);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .74rem;
  font-weight: 900;
  color: var(--lilac-dark);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-family: Fraunces,Georgia,serif;
  letter-spacing: -.025em;
  font-size: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.card {
  position: relative;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px;
  box-shadow: 0 9px 34px rgba(61,47,92,.055);
}

.card h3,.card h4 {
  margin: 7px 0 9px;
}

.card p {
  margin: 8px 0;
}

.muted {
  color: var(--muted);
}

.notice {
  border-radius: 16px;
  border: 1px solid #e4d9ef;
  background: #faf7ff;
  padding: 14px;
  color: var(--ink-2);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.quick {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  border-radius: 19px;
  padding: 16px;
  text-align: left;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .16s,border-color .16s,box-shadow .16s;
}

.quick:hover {
  border-color: #cab9df;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.quick-icon {
  width: 41px;
  height: 41px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--lilac-light);
  color: var(--lilac-dark);
}

.tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 850;
  color: var(--muted);
  white-space: nowrap;
}

.tab.active {
  background: var(--lilac);
  color: #fff;
  border-color: var(--lilac);
  box-shadow: 0 8px 20px rgba(117,95,181,.18);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.composer-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.option {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 12px;
  text-align: left;
  align-items: flex-start;
  transition: transform .16s,border-color .16s,background .16s;
}

.option:hover {
  border-color: #cbbbe0;
  transform: translateY(-1px);
}

.option.active {
  border-color: var(--lilac);
  background: var(--lilac-light);
}

.option i {
  color: var(--pink);
}

.option small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.compose {
  display: none;
}

.compose:not(.hidden) {
  display: block;
}

.progress {
  height: 8px;
  background: #eee9f5;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 16px;
}

.progress>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,var(--lilac),var(--pink));
  border-radius: 999px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
}

.chat-box {
  height: min(62vh,620px);
  overflow: auto;
  padding: 5px;
  display: grid;
  align-content: start;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--lilac-light);
  color: var(--lilac-dark);
  font-size: .76rem;
  font-weight: 900;
}

.chat-bubble {
  max-width: min(850px,90%);
  background: #fcfbfd;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
}

.chat-name {
  font-weight: 900;
}

.chat-time {
  color: var(--muted);
  font-size: .76rem;
  margin-left: 6px;
}

.chat-body {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.chat-actions {
  margin-top: 7px;
  display: flex;
  gap: 8px;
}

.chat-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.chat-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.chat-form textarea {
  min-height: 54px;
  max-height: 180px;
}

.chat-form .btn {
  align-self: stretch;
  min-width: 116px;
}

.audio-preview {
  width: 100%;
  margin-top: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-user-card {
  grid-column: 1 / -1;
}

.admin-user-actions {
  margin-top: 6px;
}

.admin-user-note {
  margin-top: 14px;
}

.admin-user-grid select {
  width: 100%;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.help-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}

.help-card strong {
  font-size: 1.4rem;
}

.profile-card {
  display: flex;
  gap: 15px;
  align-items: center;
}

.profile-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--lilac-light);
  color: var(--lilac-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.08rem;
}

.cae-results {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.cae-result-row {
  display: grid;
  gap: 6px;
}

.cae-bar {
  height: 8px;
  border-radius: 99px;
  background: #eee9f5;
  overflow: hidden;
}

.cae-bar>span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,var(--lilac),var(--pink));
}

.cae-poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.cae-poll-option button {
  margin-left: auto;
}

.cae-post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .84rem;
}

.cae-reactions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cae-reaction {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
}

.cae-reaction.active {
  border-color: #d6b3ca;
  background: var(--pink-light);
}

.cae-muted {
  color: var(--muted);
  font-size: .9rem;
}

.cae-danger {
  color: var(--red);
}

.cae-ok {
  color: var(--green);
}

.cae-toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  max-width: min(390px,calc(100vw - 32px));
}

.cae-toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

.cae-toast.error {
  border-color: #efccd1;
  background: #fff7f8;
}

.cae-toast button {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(30,18,31,.42);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  width: min(480px,100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 25px;
  padding: 23px;
  box-shadow: 0 30px 90px rgba(0,0,0,.2);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.app-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 34px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: .82rem;
}

@media (max-width:980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-hero {
    min-height: 430px;
  }
  .auth-panel {
    padding: 30px;
  }
  .hero,.chat-layout {
    grid-template-columns: 1fr;
  }
  .quick-grid,.composer-grid,.stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .admin-grid,.grid-2,.grid-3 {
    grid-template-columns: 1fr;
  }
  .help-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }
  .topbar-inner {
    flex-wrap: wrap;
  }
}

@media (max-width:620px) {
  .modal {
    padding: 12px;
    place-items: start center;
  }
  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 21px;
    padding: 19px;
  }
  body.auth-mode {
    overflow: auto;
  }
  .auth-screen {
    padding: 10px;
    place-items: start;
  }
  .auth-shell {
    border-radius: 25px;
  }
  .auth-hero {
    padding: 23px;
    min-height: 455px;
  }
  .auth-panel {
    padding: 24px;
  }
  .auth-copy h1 {
    font-size: clamp(2.6rem,14vw,4rem);
  }
  .auth-visual {
    height: 225px;
    grid-template-columns: 1fr 132px;
    gap: 7px;
    padding-right: 0;
  }
  .visual-card-main {
    min-height: 190px;
    padding: 19px;
    border-radius: 26px;
  }
  .visual-card-main strong {
    font-size: 1.95rem;
  }
  .visual-card-float {
    min-height: 96px;
    padding: 11px;
  }
  .visual-orbit-1 {
    width: 235px;
    height: 235px;
    right: 42px;
  }
  .visual-orbit-2 {
    width: 175px;
    height: 175px;
    right: 72px;
  }
  .topbar-inner {
    padding: 10px 12px;
  }
  .nav {
    gap: 3px;
  }
  .nav button {
    padding: 9px 10px;
  }
  .main {
    padding: 16px 12px 50px;
  }
  .hero {
    padding-top: 12px;
  }
  .hero-main-card,.hero-side,.card {
    border-radius: 21px;
  }
  .hero-main-card {
    padding: 26px;
  }
  .quick-grid,.composer-grid,.stats,.help-grid {
    grid-template-columns: 1fr;
  }
  .chat-form {
    flex-direction: column;
  }
  .chat-form .btn {
    width: 100%;
  }
  .session-pill {
    display: none;
  }
  .app-footer {
    padding-inline: 12px;
  }
}

/* Regras e cartões de ajuda */

.chat-under-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.chat-under-actions .cae-muted {
  margin: 0;
}

.chat-under-actions .btn {
  padding: 7px 10px;
  font-size: .86rem;
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.rules-list>div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rules-list>div:first-child {
  border-top: 0;
}

.rules-list span {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lilac-light);
  color: var(--lilac-dark);
  font-size: .72rem;
  font-weight: 900;
}

.rules-list p {
  margin: 2px 0 0;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf8fc;
  color: var(--ink-2);
  font-size: .9rem;
}

.check-row input {
  margin-top: 3px;
  accent-color: var(--lilac);
}

.help-grid-wide {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.help-card strong {
  display: block;
  margin: 3px 0 6px;
}

.help-card a {
  color: var(--lilac-dark);
  font-weight: 800;
  text-decoration: none;
}

.help-card a:hover {
  text-decoration: underline;
}

.help-card-featured {
  background: linear-gradient(145deg,#fff7fb,#f7f2ff);
}

@media (max-width:1100px) {
  .help-grid-wide {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:620px) {
  .help-grid-wide {
    grid-template-columns: 1fr;
  }
  .chat-under-actions {
    align-items: stretch;
  }
  .chat-under-actions .cae-muted {
    width: 100%;
  }
}

/* Indicadores de estado */

.cae-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 850;
  background: #fff;
}

.cae-status-pending {
  background: #fffaf0;
  border-color: #ead9a8;
  color: #7c6330;
}

.cae-status-approved {
  background: #f2faf4;
  border-color: #c8e0cf;
  color: #41694d;
}

.cae-status-rejected {
  background: #fff5f5;
  border-color: #ebcccc;
  color: #8a4e4a;
}

.admin-audio {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #faf9fd;
}

.admin-audio-player {
  width: 100%;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn.danger {
  background: #fff5f5;
  border-color: #e4c3c3;
  color: #8a4e4a;
}

.btn.danger:hover {
  border-color: #cfa3a3;
}

.card {
  min-width: 0;
}

textarea,input,select {
  max-width: 100%;
}

.chat-body {
  white-space: pre-wrap;
}

@media (min-width:981px) {
  .main {
    min-width: 0;
  }
  .chat-box {
    min-width: 0;
  }
}

@media (max-width:620px) {
  .actions .btn {
    flex: 1 1 auto;
  }
  .admin-audio .btn {
    width: 100%;
  }
}

/* Organização de painéis */

.quick-grid {
  grid-template-columns: repeat(5,minmax(0,1fr));
}

.admin-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.admin-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-summary-row h3 {
  margin: 0 0 6px;
}

.admin-summary-count {
  min-width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--lilac-light);
  color: var(--lilac-dark);
  font-weight: 900;
  font-size: 1.2rem;
}

.admin-private-page-head {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin: 18px 0;
}

.admin-private-page-stat {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.9);
}

.admin-private-page-stat span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.admin-private-page-stat b {
  display: block;
  margin-top: 4px;
  font-size: 1.5rem;
}

.admin-private-feed {
  display: grid;
  gap: 14px;
}

.admin-private-empty {
  padding: 28px;
  border: 1px dashed #d8d0df;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.65);
}

.admin-private-vent-card {
  padding: 20px;
}

.admin-private-vent-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.admin-private-feeling {
  display: grid;
  gap: 4px;
  margin: 13px 0;
  padding: 12px 14px;
  border: 1px solid #eadcf0;
  border-radius: 15px;
  background: #fbf8fd;
}

.admin-private-feeling b {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lilac-dark);
}

.admin-private-body {
  margin-top: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.admin-private-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-support-card {
  grid-column: 1 / -1;
}

.public-vent-section {
  margin-top: 34px;
  padding-top: 6px;
}

.public-vent-feed {
  display: grid;
  gap: 14px;
}

.public-vent-card {
  position: relative;
  overflow: hidden;
}

.public-vent-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,var(--pink),var(--lilac));
  border-radius: 18px 0 0 18px;
}

.public-vent-author {
  margin-top: 5px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.public-vent-body {
  margin-top: 13px;
  line-height: 1.72;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.public-vent-feeling {
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid #eadcf0;
  border-radius: 15px;
  background: #fbf8fd;
  font-weight: 800;
}

.public-vent-audio {
  margin-top: 13px;
}

.public-vent-empty {
  padding: 30px;
  border: 1px dashed #d8d0df;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.65);
}

.help-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.help-actions .btn {
  text-decoration: none;
  min-width: 110px;
}

.support-card {
  background: rgba(255,255,255,.96);
}

.support-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.support-area {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.support-messages,.support-thread {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding: 4px;
}

.support-message {
  max-width: min(760px,90%);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #faf9fc;
}

.support-message-own {
  justify-self: end;
  background: #f5f0fb;
}

.support-message-staff {
  justify-self: start;
}

.support-message-label {
  font-size: .75rem;
  font-weight: 850;
  color: var(--muted);
  margin-bottom: 5px;
}

.support-message-body {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.support-empty {
  padding: 24px;
  border: 1px dashed #d8d0df;
  border-radius: 16px;
  text-align: center;
  background: rgba(255,255,255,.6);
}

.support-admin-form {
  margin-top: 12px;
}

@media (max-width:1100px) {
  .quick-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .admin-private-page-head {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:980px) {
  .admin-top-grid {
    grid-template-columns: 1fr;
  }
  .quick-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:620px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .admin-private-page-head {
    grid-template-columns: 1fr 1fr;
  }
  .support-card-head {
    flex-direction: column;
  }
  .support-card-head .btn {
    width: 100%;
  }
  .help-actions {
    width: 100%;
  }
  .help-actions .btn {
    flex: 1 1 auto;
  }
  .admin-private-vent-meta {
    flex-direction: column;
  }
}

/* Desabafos públicos no topo da área */

.public-vent-section-top {
  margin-top: 0;
  margin-bottom: 24px;
  padding-top: 0;
}

.public-vent-section-top .section-head {
  margin-bottom: 12px;
}

.public-vent-featured {
  margin-top: 4px;
  margin-bottom: 28px;
  padding: 22px 22px 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 12px 38px rgba(61,47,92,.07);
}

.public-vent-featured .public-vent-head {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.public-vent-featured .public-vent-head h3 {
  font-size: 1.5rem;
  margin: 7px 0 8px;
}

.public-vent-featured .public-vent-head p {
  max-width: 680px;
}

.public-vent-featured .public-vent-feed {
  gap: 16px;
}

.public-vent-featured .public-vent-card {
  padding: 22px;
}

.desabafo-main-head {
  margin-top: 4px;
  margin-bottom: 18px;
}

.desabafo-main-head h2 {
  font-size: 2.45rem;
}

.vent-privacy-selector {
  margin-top: 4px;
}

@media (max-width:620px) {
  .desabafo-main-head h2 {
    font-size: 2.15rem;
  }
  .public-vent-featured {
    padding: 18px 14px 18px;
    border-radius: 22px;
  }
  .public-vent-featured .public-vent-card {
    padding: 19px;
  }
  .public-vent-featured .public-vent-head h3 {
    font-size: 1.3rem;
  }
}

/* Gerenciamento de contas e permissões */

.admin-manage-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}

.admin-manage-card {
  height: 100%;
  padding: 22px;
}

.admin-role-card {
  background: linear-gradient(180deg,rgba(247,244,253,.95),rgba(255,255,255,.94));
}

.admin-account-moderation-card {
  background: linear-gradient(180deg,rgba(255,250,250,.96),rgba(255,255,255,.94));
  border-color: #eadbdf;
}

.admin-user-grid select {
  width: 100%;
}

.admin-role-action .btn {
  width: 100%;
  min-height: 44px;
}

.admin-user-actions {
  margin-top: 6px;
}

.admin-action-status {
  min-height: 22px;
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 800;
}

.admin-target-card {
  margin: 10px 0 13px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.8);
}

.admin-target-card strong {
  display: block;
}

.admin-target-card span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  margin-top: 2px;
}

.moderator-info-card {
  margin-top: 18px;
}

.moderator-info-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.moderator-info-list>div {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.moderator-info-list>div:first-child {
  border-top: 0;
}

.moderator-info-list span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--lilac-light);
  color: var(--lilac-dark);
  font-size: .72rem;
  font-weight: 900;
}

.moderator-info-list p {
  margin: 1px 0;
}

@media (max-width:980px) {
  .admin-manage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:620px) {
  .admin-manage-card {
    padding: 17px;
  }
  .admin-user-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-user-actions .btn {
    width: 100%;
  }
  .moderator-info-card {
    margin-top: 14px;
  }
}

/* Abas e organização dos desabafos */

.vent-compose-tabs,.public-vent-tabs,.history-tabs,.admin-private-tabs {
  margin: 12px 0 16px;
}

.public-vent-section-top {
  margin-top: 0;
  margin-bottom: 28px;
  padding-top: 0;
}

.public-vent-section-top .section-head {
  margin-bottom: 8px;
}

.public-vent-feed {
  min-height: 80px;
}

.admin-private-user-group {
  display: grid;
  gap: 10px;
}

.admin-private-user-head {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.92);
}

.admin-private-user-head h3 {
  margin: 4px 0 2px;
}

.admin-private-user-feed {
  display: grid;
  gap: 12px;
  padding-left: 12px;
  border-left: 2px solid rgba(117,95,181,.16);
}

.own-vent-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.own-vent-card {
  overflow: hidden;
}

@media (max-width:620px) {
  .admin-private-user-feed {
    padding-left: 0;
    border-left: 0;
  }
  .own-vent-meta,.admin-private-vent-meta {
    flex-direction: column;
  }
  .vent-compose-tabs,.public-vent-tabs,.history-tabs,.admin-private-tabs {
    margin-top: 10px;
  }
}

/* Abas de desabafo e mensagens de suporte */

.vent-type-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  overflow: visible;
}

.vent-type-tabs .vent-tab {
  min-height: 72px;
  border-radius: 18px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  white-space: normal;
}

.vent-tab-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--lilac-ice);
  color: var(--lilac-dark);
}

.vent-tab span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.vent-tab b {
  font-size: .86rem;
  line-height: 1.15;
}

.vent-tab small {
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--muted);
}

.vent-type-tabs .vent-tab.active {
  background: linear-gradient(145deg,var(--lilac),#8569bf);
  border-color: var(--lilac);
  box-shadow: 0 10px 24px rgba(117,95,181,.19);
}

.vent-type-tabs .vent-tab.active .vent-tab-icon {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.vent-type-tabs .vent-tab.active small {
  color: rgba(255,255,255,.78);
}

.support-message {
  position: relative;
  padding-right: 82px;
}

.support-delete {
  position: absolute;
  right: 10px;
  bottom: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 850;
  padding: 3px 5px;
  border-radius: 7px;
}

.support-delete:hover {
  background: var(--lilac-light);
  color: var(--lilac-dark);
}

.support-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--lilac-ice);
}

.support-thread-head strong {
  font-size: 1.05rem;
}

@media (max-width:900px) {
  .vent-type-tabs {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:620px) {
  .vent-type-tabs {
    grid-template-columns: 1fr;
  }
  .vent-type-tabs .vent-tab {
    min-height: 64px;
  }
  .support-thread-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .support-message {
    padding-right: 68px;
  }
}

/* Identificação dos tipos de desabafo */

.public-vent-type {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--ink-2);
}

.public-vent-type .vent-tab-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 10px;
}

.public-vent-type strong {
  font-size: .84rem;
  letter-spacing: .01em;
}

.guided-public-list {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.guided-public-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbf9fd;
}

.guided-public-question {
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lilac-dark);
  margin-bottom: 5px;
}

.guided-public-answer {
  line-height: 1.65;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.guided-illustration-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px 0 14px;
  min-height: 92px;
}

.guided-illustration-wrap-inline {
  justify-content: flex-start;
  min-height: 0;
  margin-bottom: 12px;
}

.guided-illustration {
  display: block;
  width: min(220px,70vw);
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.own-vent-body {
  margin-top: 13px;
  line-height: 1.68;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

/* Central de moderação */

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.admin-tab {
  min-height: 72px;
  border-radius: 18px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  white-space: normal;
}

.admin-tab span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-tab b {
  font-size: .86rem;
  line-height: 1.15;
}

.admin-tab small {
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--muted);
}

.admin-tab.active {
  background: linear-gradient(145deg,var(--lilac),#8569bf);
  border-color: var(--lilac);
  box-shadow: 0 10px 24px rgba(117,95,181,.19);
  color: #fff;
}

.admin-tab.active .vent-tab-icon {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.admin-tab.active small {
  color: rgba(255,255,255,.78);
}

.admin-panel {
  display: block;
}

.admin-panel.hidden {
  display: none;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.admin-vent-tabs {
  margin-top: 14px;
}

.admin-vent-review-card {
  padding: 20px;
}

.admin-vent-review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.admin-vent-body {
  margin-top: 13px;
}

.chat-actions-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.chat-admin-action {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--ink-2);
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
}

.chat-admin-action:hover {
  background: var(--lilac-ice);
  border-color: #d8ccea;
}

.chat-admin-action.danger {
  color: #9f3157;
}

.report-card {
  border-left: 3px solid var(--pink);
}

@media (max-width:900px) {
  .admin-tabs {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:620px) {
  .admin-tabs {
    grid-template-columns: 1fr;
  }
  .admin-vent-review-head,.admin-panel-heading {
    flex-direction: column;
  }
  .chat-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .chat-admin-action {
    width: 100%;
  }
}

/* Verificação Turnstile */

.captcha-box {
  min-height: 140px;
  margin-top: 8px;
  width: 150px;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible;
}

@media (max-width:620px) {
  .captcha-box {
    width: 150px;
    min-height: 140px;
  }
}

/* Layout principal e conversas privadas */



body {
  background: var(--paper);
}

.auth-screen::before {
  background: rgba(45,142,199,.15);
}

.auth-screen::after {
  background: rgba(86,182,232,.10);
}

.auth-hero {
  background: #eaf5fb;
}

.auth-copy p,.auth-note {
  color: #4f6f83;
}

.brand-mark {
  background: #165a83;
  box-shadow: none;
}

.visual-card-kicker {
  color: var(--lilac-dark);
}

.visual-card-line {
  background: #2d8ec7;
}

.visual-card-float i {
  color: #2d8ec7;
}

.visual-orbit {
  border-color: rgba(45,142,199,.2);
}

.visual-orbit-2 {
  border-color: rgba(86,182,232,.22);
}

input:focus,textarea:focus,select:focus {
  border-color: rgba(45,142,199,.62);
  box-shadow: 0 0 0 4px rgba(45,142,199,.10);
}

.btn.primary {
  background: #2d8ec7;
  box-shadow: 0 3px 10px rgba(45,142,199,.14);
}

.btn.primary:hover:not(:disabled) {
  background: #236f9c;
  box-shadow: 0 5px 14px rgba(45,142,199,.18);
}

.btn.secondary {
  border-color: var(--line);
  color: var(--ink-2);
}

.btn.danger {
  background: #fff0ef;
  color: #a64b4b;
  border-color: #edd3d1;
}

.topbar {
  border-bottom: 1px solid rgba(217,232,241,.94);
  background: rgba(244,249,252,.90);
}

.nav button.active,.nav button:hover {
  background: var(--lilac-light);
  color: var(--lilac-dark);
}

.hero-main-card {
  background: radial-gradient(circle at 84% 18%,rgba(255,255,255,.18),transparent 26%),linear-gradient(145deg,#16638f 0%,#2d8ec7 50%,#58a8d3 100%);
  border-color: rgba(45,142,199,.36);
  box-shadow: 0 28px 70px rgba(24,87,121,.17);
}

.hero-side {
  background: linear-gradient(145deg,#fff,#edf8fe);
}

.eyebrow {
  color: var(--lilac-dark);
}

.vent-type-tabs .vent-tab.active,.admin-tab.active {
  background: linear-gradient(145deg,#2d8ec7,#1b648f);
  border-color: #2d8ec7;
  box-shadow: 0 10px 24px rgba(45,142,199,.19);
}

.vent-tab-icon {
  background: var(--lilac-ice);
  color: var(--lilac-dark);
}

.cae-reaction.active {
  border-color: #a9d9ee;
  background: #e9f7ff;
}

.report-card {
  border-left-color: #2d8ec7;
}

.email-confirm-card {
  width: min(520px,100%);
  text-align: center;
}

.email-confirm-icon {
  width: 72px;
  height: 72px;
  margin: 8px auto 12px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #e5f5ff;
  color: #165a83;
}

.email-confirm-icon svg {
  width: 34px;
  height: 34px;
}

.email-confirm-card .notice {
  text-align: left;
}

.notification-shell {
  position: relative;
}

.notification-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 13px;
  display: grid;
  place-items: center;
}

.notification-button:hover {
  background: var(--lilac-light);
  border-color: #b8dced;
}

.notification-badge {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #165a83;
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
}

.notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px,calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(22,70,103,.18);
  overflow: hidden;
}

.notification-panel-head {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-panel-head h3 {
  margin: 4px 0 0;
}

.notification-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.notification-delete-read {
  color: var(--danger, #b42318);
}

@media (max-width: 480px) {
  .notification-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-panel-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.btn-small {
  padding: 8px 10px;
  font-size: .78rem;
}

.notifications-list {
  max-height: 480px;
  overflow: auto;
}

.notification-item {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 13px 15px;
  display: flex;
  gap: 10px;
  text-align: left;
  border-bottom: 1px solid #edf3f7;
}

.notification-item:hover {
  background: #f6fbfe;
}

.notification-item.unread {
  background: #eef8fe;
}

.notification-item>span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-item strong {
  font-size: .86rem;
}

.notification-item small {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.35;
}

.notification-item em {
  font-size: .68rem;
  color: var(--muted-2);
  font-style: normal;
}

.notification-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eaf7ff;
  color: #176087;
}

.notification-empty {
  text-align: center;
  padding: 35px 18px;
  color: var(--muted);
}

.private-chat-layout {
  display: grid;
  grid-template-columns: 340px minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.private-chat-sidebar {
  display: grid;
  gap: 14px;
}

.private-start-card {
  background: linear-gradient(180deg,#f5fbff,#fff);
}

.private-request-list,.private-conversation-list {
  display: grid;
  gap: 8px;
}

.private-request-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.private-request-item>div:first-child {
  display: grid;
  gap: 2px;
}

.private-request-item small,.private-request-item em {
  color: var(--muted);
  font-size: .75rem;
  font-style: normal;
}

.private-conversation-item {
  display: flex;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.private-conversation-item:hover,.private-conversation-item.active {
  background: #edf8fe;
  border-color: #c7e4f2;
}

.private-conversation-item>span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.private-conversation-item strong {
  font-size: .83rem;
}

.private-conversation-item small {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.private-conversation-item em {
  font-size: .66rem;
  color: var(--muted-2);
  font-style: normal;
}

.private-chat-thread-card {
  min-width: 0;
}

.private-chat-thread {
  min-height: 430px;
  max-height: 62vh;
  overflow: auto;
  padding: 4px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.private-message {
  max-width: min(820px,90%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8fbfd;
}

.private-message.own {
  justify-self: end;
  background: #e9f7ff;
  border-color: #c4e4f2;
}

.private-message-label {
  font-size: .72rem;
  font-weight: 850;
  color: var(--muted);
  margin-bottom: 4px;
}

.private-message-body {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.private-chat-empty {
  text-align: center;
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 260px;
  padding: 30px;
  color: var(--muted);
}

.private-chat-empty.compact {
  min-height: 90px;
  padding: 14px;
}

.private-chat-empty svg {
  color: #2d8ec7;
}

.private-security-card {
  background: linear-gradient(180deg,#f6fbfe,#fff);
}

.security-lock {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #e7f6ff;
  color: #155c86;
}

.admin-private-chat-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.admin-private-chat-review {
  background: #fbfdfe;
}

.admin-private-readonly-thread {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  margin: 12px 0;
}

.private-message.readonly {
  max-width: 100%;
}

.audio-anonymity-notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 12px 0;
  padding: 12px 13px;
  border: 1px solid #cce6f3;
  border-radius: 16px;
  background: #eef9fe;
}

.audio-anonymity-notice strong {
  font-size: .84rem;
}

.audio-anonymity-notice p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.admin-tabs-expanded {
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-bottom: 20px;
}

.admin-form-card {
  max-width: 760px;
}

.admin-panel+.admin-panel {
  margin-top: 0;
}

@media (max-width:980px) {
  .private-chat-layout {
    grid-template-columns: 1fr;
  }
  .private-chat-sidebar {
    grid-template-columns: 1fr 1fr;
  }
  .admin-tabs-expanded {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:700px) {
  .private-chat-sidebar {
    grid-template-columns: 1fr;
  }
  .notification-panel {
    right: -52px;
  }
  .top-actions {
    gap: 6px;
  }
  .notification-button {
    width: 39px;
    height: 39px;
  }
  .admin-tabs-expanded {
    grid-template-columns: 1fr;
  }
}

/* Página inicial, filtros de áudio e notificações */

.home-simple-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 0 18px;
}

.home-simple-head h2 {
  font-family: Fraunces,Georgia,serif;
  font-size: clamp(2.4rem,6vw,4.6rem);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 8px 0 12px;
  color: var(--ink);
}

.home-simple-head p {
  max-width: 620px;
  font-size: 1.02rem;
}

.home-simple-note {
  max-width: 860px;
  margin-top: 22px;
  line-height: 1.65;
}

.home-simple-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.tutorial-video-card {
  margin-top: 8px;
  padding: 14px;
  border-radius: 27px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.tutorial-video-screen {
  aspect-ratio: 16/9;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg,#123f61 0%,#1f78aa 50%,#8bc8e8 100%);
  position: relative;
}

.tutorial-video-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 25%,rgba(255,255,255,.24),transparent 26%),linear-gradient(135deg,transparent 48%,rgba(255,255,255,.08) 49%,transparent 72%);
}

.tutorial-video-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  padding: 25px;
}

.tutorial-video-placeholder>strong {
  font-size: 1.3rem;
}

.tutorial-video-placeholder>span:last-child {
  color: rgba(255,255,255,.76);
  font-size: .86rem;
}

.tutorial-play {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.94);
  color: #176087;
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}

.home-shortcuts>button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22,70,103,.05);
  transition: .16s;
}

.home-shortcuts>button:hover {
  transform: translateY(-2px);
  border-color: #b8dced;
}

.home-shortcuts>button>i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lilac-light);
  color: #176087;
}

.home-shortcuts span {
  display: grid;
  gap: 2px;
}

.home-shortcuts strong {
  font-size: .94rem;
}

.home-shortcuts small {
  font-size: .75rem;
  color: var(--muted);
}

.home-simple-note {
  margin-top: 14px;
}

.voice-filter-picker {
  margin: 15px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8fcfe;
}

.voice-filter-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}

.voice-filter-option {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.voice-filter-option>i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf7ff;
  color: #176087;
  flex: 0 0 30px;
}

.voice-filter-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.voice-filter-option b {
  font-size: .8rem;
}

.voice-filter-option small {
  font-size: .68rem;
  color: var(--muted);
}

.voice-filter-option.active {
  background: #eaf7ff;
  border-color: #77b9dc;
  box-shadow: 0 6px 15px rgba(37,122,170,.09);
}

.voice-filter-option.active>i {
  background: #176087;
  color: #fff;
}

.audio-filter-selected {
  margin: 10px 0 0;
  font-size: .76rem;
}

.notification-panel {
  z-index: 1200;
}

.notification-shell {
  z-index: 1201;
}

@media (max-width:700px) {
  .notification-panel {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
  .notification-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .notification-panel-head .btn {
    width: 100%;
  }
  .home-simple-head {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }
  .home-simple-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .home-simple-actions .btn {
    flex: 1;
  }
  .home-shortcuts {
    grid-template-columns: 1fr;
  }
  .voice-filter-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:420px) {
  .voice-filter-grid {
    grid-template-columns: 1fr;
  }
  .voice-filter-option {
    min-height: 56px;
  }
}

/* Feed público e editor de desabafos */

.vent-compose-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.vent-compose-section-head {
  margin-bottom: 14px;
}

.public-content-actions {
  margin-top: 14px;
}

.voice-filter-test-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cfe4ef;
}

.voice-filter-test-row .btn {
  margin: 0;
}

.voice-filter-test-row .cae-muted {
  font-size: .76rem;
}

@media (max-width:700px) {
  .voice-filter-test-row {
    align-items: stretch;
    flex-direction: column;
  }
  .voice-filter-test-row .btn {
    width: 100%;
  }
}

/* Síntese de voz por texto */

.text-voice-card {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #cce6f3;
  border-radius: 20px;
  background: linear-gradient(180deg,#f7fcff,#fff);
  display: grid;
  gap: 10px;
}

.text-voice-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.text-voice-card>p {
  margin: 0;
}

.text-voice-privacy {
  margin: 2px 0 4px;
}

.text-voice-record-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.text-voice-record-row .btn {
  margin: 0;
}

.text-voice-record-row .cae-muted,.text-voice-status {
  font-size: .78rem;
  line-height: 1.5;
}

.text-voice-label {
  font-size: .84rem;
  font-weight: 800;
  margin-top: 2px;
}

.text-voice-card textarea {
  width: 100%;
  min-height: 106px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.text-voice-choice-label {
  margin-top: 3px;
}

.text-voice-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin-top: 0;
}

.text-voice-option {
  min-height: 62px;
}

.text-voice-generate {
  justify-self: start;
  margin-top: 2px;
}

.text-voice-generate:disabled {
  opacity: .7;
}

.text-voice-status {
  margin: 0;
  color: var(--muted);
}

@media (max-width:700px) {
  .text-voice-record-row {
    align-items: stretch;
    flex-direction: column;
  }
  .text-voice-record-row .btn,.text-voice-generate {
    width: 100%;
  }
  .text-voice-grid {
    grid-template-columns: 1fr;
  }
}

/* Ajuda contextual e acessibilidade */

.field-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.field-label-row>label {
  margin: 0;
}

.help-question {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #b8d6e7;
  border-radius: 50%;
  background: #eef8fd;
  color: #176087;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.help-question:hover,.help-question:focus-visible {
  background: #176087;
  color: #fff;
  outline: 2px solid rgba(23,96,135,.18);
  outline-offset: 2px;
}

.audio-anonymity-notice {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-anonymity-notice>div {
  flex: 1;
  min-width: 0;
}

.audio-anonymity-notice .help-question {
  margin-left: auto;
}

.text-voice-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.text-voice-card-head>div {
  min-width: 0;
}

.text-voice-card-head .help-question {
  margin-top: 4px;
}

.text-voice-card .field-label-row {
  margin-top: 2px;
}

.text-voice-label {
  margin: 0;
}

.site-help-card {
  max-width: 460px;
}

.site-help-card #site-help-text {
  margin: 8px 0 4px;
  line-height: 1.6;
}

@media (max-width:520px) {
  .site-help-card {
    width: min(100% - 28px,460px);
  }
  .text-voice-card-head {
    gap: 8px;
  }
}

.auth-email-hint {
  display: block;
  color: #176087;
  font-size: .76rem;
  font-weight: 650;
  margin-top: -2px;
}

.tts-transcript-alternatives {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -3px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7fbfe;
}

.tts-transcript-alternatives>span {
  width: 100%;
  font-size: .78rem;
}

.tts-transcript-alternatives .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

/* Filtros de moderação e conteúdos de apoio */

.admin-post-filter-wrap {
  display: grid;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfd;
}

.admin-post-filter-label {
  font-size: .84rem;
  font-weight: 850;
  color: var(--ink);
}

.admin-post-char-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-post-char-filters .tab {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-post-char-filters .tab.active {
  background: #eaf7ff;
  border-color: #77b9dc;
  color: #155c86;
}

.admin-post-filter-wrap .cae-muted {
  margin: 0;
  font-size: .75rem;
  line-height: 1.5;
}

.podcast-intro {
  margin-bottom: 14px;
}

.podcast-intro h3 {
  margin: 5px 0 7px;
}

.podcast-intro p {
  margin: 0;
  max-width: 820px;
  line-height: 1.6;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.podcast-card {
  display: grid;
  align-content: start;
  gap: 9px;
}

.podcast-card h3 {
  margin: 0;
}

.podcast-card p {
  margin: 0;
  line-height: 1.6;
}

.podcast-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #eaf7ff;
  color: #176087;
}

.podcast-mark svg {
  width: 21px;
  height: 21px;
}

.podcast-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.podcast-actions .btn {
  font-size: .78rem;
}

.podcast-note {
  margin: 12px 2px 0;
  line-height: 1.5;
}

.help-university-intro h3 {
  margin: 5px 0 6px;
}

.help-university-intro p {
  margin: 0;
  line-height: 1.6;
}

.help-subheading {
  margin: 20px 0 10px;
}

.university-help-grid {
  margin-bottom: 12px;
}

.university-help-grid .help-card {
  height: 100%;
}

.university-help-grid .help-card p {
  line-height: 1.55;
}

@media (max-width:720px) {
  .podcast-grid {
    grid-template-columns: 1fr;
  }
  .podcast-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .podcast-actions .btn {
    width: 100%;
  }
  .admin-post-char-filters {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .admin-post-char-filters .tab {
    text-align: center;
  }
  .help-subheading {
    margin-top: 16px;
  }
}


/* Recursos de acessibilidade e novas áreas do CAE */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.skip-link:focus {
  transform: translateY(0);
}
:focus-visible {
  outline: 3px solid rgba(117,95,181,.58);
  outline-offset: 3px;
}
.cae-reduced-motion *,
.cae-reduced-motion *::before,
.cae-reduced-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not(.cae-motion-allowed) *,
  html:not(.cae-motion-allowed) *::before,
  html:not(.cae-motion-allowed) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.home-help-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
.home-help-actions .notice {
  flex: 1;
  margin: 0;
}
.urgent-help-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 14px 0 22px;
  border-color: #ead1d5;
  background: #fff8f8;
}
.urgent-help-card h3 {
  margin: 4px 0 7px;
}
.urgent-help-card p {
  margin: 0;
  max-width: 760px;
}
.mural-search-field {
  margin: 12px 0 16px;
}
.mural-search-results {
  margin-bottom: 16px;
}
.mural-search-result {
  display: grid;
  gap: 10px;
}
.mural-search-result > .card {
  box-shadow: none;
}
.mood-entry-form {
  display: grid;
  gap: 16px;
}
.mood-choice-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 9px;
}
.mood-choice {
  cursor: pointer;
  min-width: 0;
}
.mood-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mood-choice span {
  min-height: 92px;
  display: grid;
  place-content: center;
  gap: 5px;
  text-align: center;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 1.45rem;
  transition: border-color .15s,background .15s;
}
.mood-choice b {
  color: var(--ink);
  font-size: .78rem;
}
.mood-choice input:checked + span {
  border-color: var(--lilac);
  background: var(--lilac-ice);
  box-shadow: 0 0 0 2px rgba(117,95,181,.12);
}
.mood-choice input:focus-visible + span {
  outline: 3px solid rgba(117,95,181,.58);
  outline-offset: 3px;
}
.mood-history-head {
  margin-top: 26px;
}
.mood-history-card {
  display: grid;
  gap: 8px;
}
.mood-history-card p {
  margin: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.saved-content-card {
  display: grid;
  gap: 8px;
}
.saved-content-card p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.privacy-info-card {
  max-width: 900px;
  line-height: 1.7;
}
.privacy-info-card h3 {
  margin: 22px 0 6px;
}
.privacy-info-card h3:first-child {
  margin-top: 0;
}
.privacy-info-card p {
  margin: 0;
}
.account-preferences-card,
.account-deletion-card {
  display: grid;
  gap: 9px;
}
.account-preferences-card h3,
.account-deletion-card h3 {
  margin: 0;
}
.text-voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.private-message-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}
.mural-search-result > .card {
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .home-help-actions,
  .urgent-help-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .home-help-actions .btn {
    width: 100%;
  }
  .urgent-help-card .actions {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .mood-choice-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .mood-choice span {
    min-height: 82px;
  }
}
@media (max-width: 420px) {
  .mood-choice-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .urgent-help-card .actions {
    grid-template-columns: 1fr;
  }
}


.admin-heading { align-items: flex-start; }
.admin-notification-shell { position: relative; flex: 0 0 auto; }
.admin-notification-button { position: relative; white-space: nowrap; }
.admin-notification-button .notification-badge { position: static; margin-left: 4px; }
.admin-notification-panel {
  position: absolute; z-index: 80; top: calc(100% + 10px); right: 0;
  width: min(420px, calc(100vw - 32px)); max-height: min(65vh, 560px);
  overflow: auto; border: 1px solid var(--line, #e6dfef); border-radius: 16px;
  background: var(--surface, #fff); box-shadow: 0 18px 50px rgba(39, 28, 62, .18);
  padding: 14px;
}
.admin-notification-panel .notification-panel-head { position: sticky; top: -14px; z-index: 2; background: var(--surface, #fff); padding: 4px 0 12px; }
.admin-notification-panel .notifications-list { max-height: 430px; overflow: auto; }
@media (max-width: 640px) {
  .admin-heading { flex-direction: column; align-items: stretch; }
  .admin-notification-shell { width: 100%; }
  .admin-notification-button { width: 100%; justify-content: center; }
  .admin-notification-panel { left: 0; right: auto; width: 100%; }
}


/* Organização e acabamento do CAE: paleta e identidade visual originais preservadas. */
.mural-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 4px;
  padding: 0 .32rem;
  border-radius: 999px;
  background: var(--lilac-light);
  color: var(--lilac-dark);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}
.tab.active .mural-tab-badge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.mural-empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 30px 22px;
  text-align: center;
}
.mural-empty-state h3,
.mural-empty-state p {
  margin: 0;
}
.mural-empty-state p {
  max-width: 570px;
  line-height: 1.55;
}
.mural-empty-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 14px;
  background: var(--lilac-light);
  color: var(--lilac-dark);
}
.post-compose-fields {
  display: grid;
  grid-template-columns: minmax(180px,.62fr) minmax(0,1.38fr);
  gap: 12px;
  align-items: start;
}
.post-compose-fields .field {
  min-width: 0;
}
.post-compose-fields textarea {
  min-height: 122px;
}
.nav button[aria-current="page"] {
  background: var(--lilac-light);
  color: var(--lilac-dark);
}
@media (max-width: 980px) {
  .post-compose-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .home-simple-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 18px;
  }
  .home-simple-actions {
    justify-content: flex-start;
  }
  .home-shortcuts {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 420px) {
  .home-shortcuts {
    grid-template-columns: 1fr;
  }
  #mural-tabs .tab {
    padding-inline: 10px;
  }
}


/* Refinamento de hierarquia visual da área de Desabafos */
.home-simple-actions { gap: 10px; flex-wrap: wrap; }
.home-help-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:18px; }
.home-help-actions .home-simple-note { flex:1 1 420px; margin:0; max-width:860px; line-height:1.65; }
.home-help-actions > .btn { flex:0 0 auto; }
.home-shortcuts { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:760px) {
  .home-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-help-actions > .btn { width:100%; }
}
@media (max-width:480px) {
  .home-shortcuts { grid-template-columns:1fr; }
  .home-simple-actions { justify-content:stretch; }
  .home-simple-actions .btn { flex:1 1 100%; justify-content:center; }
}
#desabafo-view .desabafo-page-head {
  align-items:center; gap:18px; margin-bottom:22px; padding:22px 24px;
  border:1px solid var(--line); border-radius:24px;
  background:linear-gradient(125deg,var(--lilac-ice),rgba(255,255,255,.94));
  box-shadow:0 10px 28px rgba(61,47,92,.055);
}
#desabafo-view .desabafo-page-head h2 { margin:2px 0 5px; font-size:clamp(1.85rem,4vw,2.45rem); }
#desabafo-view .desabafo-page-head p { margin:0; max-width:680px; }
#desabafo-view .desabafo-page-head .help-question { flex:0 0 38px; width:38px; height:38px; }
#desabafo-view .desabafo-compose-panel,
#desabafo-view .desabafo-community-panel {
  padding:clamp(16px,2.6vw,26px); border:1px solid var(--line); border-radius:25px;
  background:rgba(255,255,255,.84); box-shadow:0 12px 34px rgba(61,47,92,.055);
}
#desabafo-view .desabafo-compose-panel { margin-bottom:24px; }
#desabafo-view .vent-compose-section-head { margin-bottom:16px; }
#desabafo-view .vent-compose-tabs { margin:0 0 18px; }
#desabafo-view .vent-compose-tabs .vent-tab { min-height:78px; }
#desabafo-view .vent-privacy-selector {
  margin:0; padding:18px; border-radius:19px; background:var(--lilac-ice);
  border-color:rgba(117,95,181,.16); box-shadow:none;
}
#desabafo-view .vent-privacy-selector h3 { margin:5px 0 13px; }
#desabafo-view .vent-visibility-grid { gap:12px; }
#desabafo-view .vent-visibility-option { min-height:82px; align-items:flex-start; }
#desabafo-view .compose { margin-top:18px; border-radius:20px; }
#desabafo-view .desabafo-community-panel { margin-top:0; padding-top:clamp(17px,2.4vw,24px); }
#desabafo-view .desabafo-community-panel > .section-head { margin-bottom:12px; }
#desabafo-view .public-vent-tabs { margin:10px 0 16px; }
#desabafo-view .public-vent-tabs .vent-tab { min-height:61px; padding:9px 10px; }
#desabafo-view .public-vent-tabs .vent-tab-icon { width:30px; height:30px; flex-basis:30px; }
@media (max-width:900px) {
  #desabafo-view .vent-type-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  #desabafo-view .desabafo-page-head { align-items:flex-start; padding:18px; }
  #desabafo-view .vent-type-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  #desabafo-view .vent-type-tabs .vent-tab { min-height:74px; padding:9px; gap:7px; }
  #desabafo-view .vent-tab-icon { width:30px; height:30px; flex-basis:30px; }
  #desabafo-view .vent-tab b { font-size:.8rem; }
  #desabafo-view .vent-tab small { font-size:.68rem; }
  #desabafo-view .vent-privacy-selector { padding:15px; }
  #desabafo-view .vent-visibility-grid { grid-template-columns:1fr; }
}
@media (max-width:360px) {
  #desabafo-view .vent-type-tabs { grid-template-columns:1fr; }
}


/* Central de denúncias: leitura rápida e ações bem separadas */
.report-workspace {
  display: grid;
  gap: 20px;
}
.report-queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.report-queue-head h3 {
  margin: 3px 0 6px;
}
.report-queue-head p {
  margin: 0;
}
.report-total {
  min-width: 78px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, #fff);
  display: grid;
  justify-items: center;
  gap: 2px;
}
.report-total strong {
  font-size: 1.45rem;
  line-height: 1.2;
}
.report-total span {
  color: var(--muted);
  font-size: .75rem;
}
.report-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft, rgba(120,120,120,.06));
}
.report-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.report-filter span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(120,120,120,.12);
  font-size: .76rem;
  text-align: center;
}
.report-filter.active {
  border-color: var(--line);
  background: var(--surface, #fff);
  box-shadow: 0 2px 8px rgba(20,30,40,.06);
}
.report-queue-section {
  display: grid;
  gap: 12px;
}
.report-section-heading {
  padding-top: 4px;
}
.report-section-heading h4 {
  margin: 0 0 3px;
  font-size: 1.02rem;
}
.report-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
.report-detail-card {
  display: grid;
  gap: 13px;
  padding: 17px;
  border-left-width: 4px;
}
.report-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.report-card-head time {
  color: var(--muted);
  font-size: .78rem;
}
.report-type-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: .88rem;
}
.report-type-label svg {
  width: 17px;
  height: 17px;
}
.report-reason-block,
.report-details-block,
.report-message-block {
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface-soft, rgba(120,120,120,.06));
}
.report-reason-block > span,
.report-details-block > span,
.report-message-block > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.report-reason-block p,
.report-details-block p,
.report-message-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.report-reason-block {
  border-left: 3px solid var(--pink);
}
.report-message-block {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
}
.report-byline {
  color: var(--muted);
  font-size: .8rem;
}
.report-byline strong {
  color: var(--ink);
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.report-actions .btn {
  min-height: 38px;
}
.report-empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--muted);
}
.report-empty > svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
}
.report-empty strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}
.report-empty p {
  margin: 0;
  font-size: .86rem;
}
.report-error {
  border-style: solid;
}
@media (max-width:620px) {
  .report-queue-head {
    flex-direction: row;
    align-items: center;
  }
  .report-total {
    min-width: 68px;
    padding: 8px 10px;
  }
  .report-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .report-filter {
    justify-content: space-between;
  }
  .report-card-head {
    align-items: flex-start;
  }
  .report-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .report-actions .btn {
    width: 100%;
  }
}


/* Publicações aguardando decisão ficam em uma área particular do autor. */
.post-private-section {
  display: grid;
  gap: 11px;
  margin-bottom: 22px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--lilac-ice);
}
.post-private-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.post-private-heading h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.post-private-heading p {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.post-private-heading p svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.post-private-heading > span {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--lilac-dark);
  font-size: .8rem;
  font-weight: 800;
}
.post-private-card {
  background: var(--white);
  box-shadow: none;
}
.post-private-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0;
  color: var(--lilac-dark);
  font-size: .82rem;
  font-weight: 800;
}
.post-private-status svg {
  width: 15px;
  height: 15px;
}
.post-private-reason {
  margin: 8px 0;
  padding: 9px 11px;
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: .84rem;
  line-height: 1.45;
}
@media (max-width:620px) {
  .post-private-section { padding: 11px; }
}


/* Ações reais de análise de denúncias */
.report-moderation-tools {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.report-timeout-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.report-timeout-control label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.report-timeout-control select {
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.report-moderation-note {
  margin: 0;
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.45;
}
.report-history-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.report-history-heading {
  margin-bottom: 2px;
  font-size: .82rem;
  font-weight: 800;
}
.report-history-message {
  padding: 10px 11px;
  border-radius: 9px;
  background: var(--paper);
}
.report-history-message time {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .72rem;
}
.report-history-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .85rem;
  line-height: 1.45;
}
.report-history-message > span {
  display: inline-block;
  margin-top: 5px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 700;
}
.report-history-message.is-deleted {
  border-left: 3px solid var(--red);
}
.report-history-loading,
.report-history-error {
  color: var(--muted);
  font-size: .83rem;
}
@media (max-width:620px) {
  .report-timeout-control {
    align-items: stretch;
    flex-direction: column;
  }
  .report-timeout-control select {
    width: 100%;
  }
}


.report-message-hidden {
  display: inline-block;
  margin-left: 6px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
}


/* Leitura em camadas: respostas curtas primeiro, detalhes quando a pessoa pedir. */
.site-more {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: .9rem;
}
.site-more summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 0;
  color: var(--lilac-dark);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.site-more summary::-webkit-details-marker { display: none; }
.site-more summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .9rem;
  line-height: 1;
}
.site-more[open] summary::before { content: "−"; }
.site-more > p {
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}
.site-help-card > #site-help-text {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.55;
}
.site-help-card #site-help-details[hidden] { display: none; }
.site-help-card #site-help-details:not([hidden]) { margin-top: 12px; }
.site-help-card #site-help-detail { max-width: 62ch; }
.privacy-info-card > .site-more { margin: -2px 0 16px; }
.notice .site-more > p { margin-bottom: 0; }

/* Página inicial: atalhos e apoio ficam próximos, sem áreas vazias desnecessárias. */
#home-view { min-height: 0; }
#home-view > * { min-height: 0; }
#home-view .tutorial-video-card { margin-top: 5px; }
#home-view .tutorial-video-screen {
  aspect-ratio: 16 / 7.5;
  max-height: 300px;
}
#home-view .home-shortcuts { margin-top: 12px; margin-bottom: 0; }
#home-view .home-help-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
}
#home-view .home-help-actions .home-simple-note {
  flex: 1 1 420px;
  max-width: none;
  padding: 12px 15px;
  line-height: 1.45;
}
#home-view .home-help-actions > .btn { margin: 0; }
#home-view .home-help-actions > .btn,
#home-view .home-simple-actions .btn { min-height: 42px; }
@media (max-width: 720px) {
  #home-view .tutorial-video-screen {
    aspect-ratio: 16 / 9;
    max-height: 210px;
  }
  #home-view .home-help-actions {
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }
  #home-view .home-help-actions .home-simple-note { flex-basis: 100%; }
  #home-view .home-help-actions > .btn { width: 100%; }
}


/* Controles de encerramento e bloqueio das conversas privadas */
.private-thread-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.private-thread-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.private-blocked-card > p {
  margin: 7px 0 12px;
  font-size: .88rem;
}

.private-blocked-list {
  display: grid;
  gap: 8px;
}

.private-blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.private-blocked-item strong {
  color: var(--ink-2);
  font-size: .92rem;
}

@media (max-width: 700px) {
  .private-thread-person {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .private-thread-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .private-thread-actions .btn {
    flex: 1 1 auto;
  }
}


/* Identidade visual do CAE: menos efeitos decorativos, mais foco no conteúdo. */
body { background: var(--paper); }

.auth-screen::before,
.auth-screen::after,
.app-ambient { display: none; }

.auth-shell {
  border-radius: 25px;
  box-shadow: 0 18px 48px rgba(22,50,74,.10);
  backdrop-filter: none;
}

.auth-hero { background: #eaf5fb; }

.auth-visual {
  display: block;
  height: auto;
  max-width: 520px;
  margin: 0 0 16px;
  padding: 0;
}

.auth-illustration {
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
}

.auth-copy h1 {
  max-width: 12ch;
  line-height: 1.02;
}

.brand-mark {
  background: #165a83;
  box-shadow: none;
}

.topbar {
  background: rgba(244,249,252,.98);
  backdrop-filter: none;
}

.card {
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(22,50,74,.045);
}

.notification-panel {
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(22,50,74,.12);
}

.home-simple-head h2 {
  font-size: clamp(2rem,4vw,3.15rem);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.tutorial-video-card {
  border-radius: 18px;
  box-shadow: none;
}

.tutorial-video-screen { background: #165a83; }
.tutorial-video-screen::before { display: none; }

@media (max-width: 620px) {
  .auth-shell { border-radius: 18px; }
  .auth-hero { min-height: auto; }
  .auth-visual { margin-bottom: 8px; }
  .auth-illustration { max-height: 190px; }
  .auth-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.25rem,10vw,3rem);
  }
  .card { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* Atalhos da página inicial: navegação simples, sem transformar cada ação em um card. */
:root {
  --muted: #53697a;
  --muted-2: #53697a;
}

.btn.primary {
  background: #165a83;
  box-shadow: none;
}

.btn.primary:hover:not(:disabled) {
  background: #124b6d;
  box-shadow: none;
  transform: none;
}

.home-shortcuts {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-shortcuts > button {
  min-width: 0;
  min-height: 76px;
  padding: 15px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color .16s ease;
}

.home-shortcuts > button:last-child {
  border-right: 0;
}

.home-shortcuts > button:hover {
  transform: none;
  border-color: var(--line);
  background: #eaf5fb;
  box-shadow: none;
}

.home-shortcuts > button > i {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  color: var(--lilac-dark);
}

.home-shortcuts small {
  font-size: .8rem;
  line-height: 1.4;
}

.notification-read-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 10px;
  background: #e8eef2;
  color: #294c66;
  font-size: .7rem;
  font-weight: 800;
}

.notification-delete-read:disabled {
  opacity: .45;
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(45,142,199,.38);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .home-shortcuts {
    grid-template-columns: 1fr;
  }

  .home-shortcuts > button {
    min-height: 66px;
    padding: 12px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-shortcuts > button:last-child {
    border-bottom: 0;
  }
}


/* Estados selecionados usam uma cor sólida para manter a leitura discreta. */
.vent-type-tabs .vent-tab.active,
.admin-tab.active {
  background: #165a83;
  border-color: #165a83;
  box-shadow: none;
}


/* Rótulos de seção em escrita normal: menos aparência de etiqueta de template. */
.eyebrow {
  text-transform: none;
  letter-spacing: 0;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}


/* Texto de apoio da central de notificações: informa o efeito da limpeza sem competir com os controles. */
.notification-panel-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}
.notification-panel-actions .btn {
  min-height: 36px;
}


/* A ilustração da entrada responde ao foco da senha, sem movimento contínuo gratuito. */
.auth-illustration {
  transform: translateY(0);
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
}
.auth-visual.is-password-active .auth-illustration {
  transform: translateY(-4px);
}
.auth-chat-bubble {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .35s ease;
}
.auth-visual.is-password-active .auth-chat-bubble {
  animation: authBubbleFloat 1.9s ease-in-out infinite;
}
.auth-chat-dot {
  transform-box: fill-box;
  transform-origin: center;
}
.auth-visual.is-password-active .auth-chat-dot {
  animation: authDotPulse 1.15s ease-in-out infinite;
}
.auth-visual.is-password-active .auth-chat-dot-2 { animation-delay: .16s; }
.auth-visual.is-password-active .auth-chat-dot-3 { animation-delay: .32s; }

@keyframes authBubbleFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.025); }
}
@keyframes authDotPulse {
  0%, 100% { opacity: .55; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-illustration,
  .auth-chat-bubble,
  .auth-chat-dot {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
