/* Approved desktop reference, 13 Sep 2026. Mobile retains the personal IVI shell. */
.aurora-field {
  position: absolute;
  inset: 43% -8% 5%;
  pointer-events: none;
  opacity: 0.8;
  animation: ivi-wave-drift 14s ease-in-out infinite alternate;
  transform-origin: 50% 65%;
}
.aurora-field svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
@keyframes ivi-wave-drift {
  from {
    transform: translate3d(-1%, -12px, 0) rotate(-2deg);
  }
  to {
    transform: translate3d(1%, 17px, 0) rotate(2deg);
  }
}
.motion-paused .aurora-field,
.document-hidden .aurora-field {
  animation-play-state: paused;
}
.motion-control {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--soft);
}
.chat-scroll {
  position: relative;
  z-index: 1;
}
.composer-dock {
  z-index: 2;
}
.business-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin-top: 48px;
}
.business-actions button {
  position: relative;
  min-height: 120px;
  padding: 22px 20px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.business-actions button:hover {
  background: var(--soft);
  border-color: var(--accent);
}
.business-actions button > svg:first-child {
  color: #ef8b4d;
  margin-bottom: 12px;
}
.business-actions button span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.business-actions small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.business-actions .action-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--muted);
  opacity: 0.65;
}
.business-actions button span,
.business-actions small {
  padding-right: 12px;
}
.enterprise-hero .business-greeting {
  margin: 0;
  font-size: 36px;
  line-height: 1.28;
}
.business-greeting span {
  display: block;
  font-weight: 300;
  letter-spacing: -0.035em;
}
.business-greeting strong {
  display: block;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.notice {
  z-index: 150;
}

@media (min-width: 768px) {
  :root[data-theme="dark"] {
    --page: #0b0a09;
    --sidebar: #0b0a09;
    --surface: #14110f;
    --line: #2d2823;
    --soft: #201710;
    --muted: #a6a09a;
  }
  body {
    padding: 24px;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    pointer-events: none;
  }
  .ivi-sidebar {
    inset: 25px auto 25px 25px;
    width: 240px;
    padding: 30px 20px 22px;
    border: 0;
    border-radius: 28px 0 0 28px;
    gap: 20px;
  }
  .sidebar-brand {
    height: 50px;
  }
  .sidebar-brand .brand-mark,
  .sidebar-brand .brand-mark img {
    height: 37px;
  }
  .workspace {
    margin-top: 4px;
    padding: 10px;
    background: transparent;
  }
  .ivi-sidebar nav {
    gap: 8px;
  }
  .ivi-sidebar nav button {
    min-height: 46px;
    font-size: 14px;
    padding: 11px 13px;
    gap: 13px;
    border-radius: 16px;
  }
  .ivi-sidebar nav button[aria-current="page"]:before {
    display: none;
  }
  .ivi-sidebar hr {
    margin: 4px;
    opacity: 0;
  }
  .shell {
    margin-left: 240px;
    min-height: calc(100dvh - 48px);
    border: 1px solid var(--line);
    border-radius: 27px;
    overflow: hidden;
  }
  .shell main {
    min-height: calc(100dvh - 50px);
  }
  .page-heading {
    height: 74px;
    padding: 22px 32px;
  }
  body[data-view="chat"] .page-heading h1 {
    visibility: hidden;
  }
  .page-heading .status {
    padding: 12px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }
  body[data-view="chat"] #panel {
    height: calc(100dvh - 124px);
  }
  .chat-scroll {
    padding: 0 32px 190px;
  }
  .enterprise-hero {
    min-height: 440px;
    padding: 0 0 50px;
  }
  .ivi-home-presence {
    width: 350px;
    height: 180px;
    margin-bottom: 8px;
  }
  .hero-dark {
    width: 280px;
    height: 280px;
  }
  .hero-light {
    width: 180px;
  }
  .composer-dock {
    bottom: 72px;
    padding: 0 50px;
    background: none;
  }
  .composer-row {
    max-width: 900px;
  }
  .history-button {
    display: none;
  }
  .enterprise-composer {
    min-height: 88px;
    border-radius: 999px;
    padding: 12px 128px 12px 74px;
    justify-content: center;
    background: color-mix(in srgb, var(--page) 93%, transparent);
    box-shadow: 0 12px 40px #0002;
  }
  .enterprise-composer:focus-within {
    border-radius: 44px;
  }
  .enterprise-composer textarea {
    padding: 5px 4px;
    font-size: 16px;
    position: relative;
    z-index: 1;
  }
  .enterprise-composer > div {
    position: absolute;
    left: 24px;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    pointer-events: none;
  }
  .enterprise-composer > div button {
    pointer-events: auto;
  }
  .enterprise-composer button[aria-label="Conversar por voz"] {
    width: 56px;
    height: 56px;
    background: #ee783c;
    box-shadow: 0 0 24px #f27b3533;
  }
  .chat-status {
    margin-top: 16px;
    font-size: 11px;
  }
  .disclaimer {
    right: 50px;
    bottom: 37px;
  }
  .sidebar-collapsed .ivi-sidebar {
    width: 64px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .sidebar-collapsed .shell {
    margin-left: 64px;
  }
  :root[data-theme="light"] .aurora-field {
    opacity: 0.3;
  }
}
@media (min-width: 768px) and (max-width: 1100px) {
  body {
    padding: 12px;
  }
  body::before {
    inset: 12px;
  }
  .ivi-sidebar {
    left: 13px;
    top: 13px;
    bottom: 13px;
    width: 200px;
    padding: 22px 12px;
  }
  .shell {
    margin-left: 200px;
  }
  .business-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    gap: 10px;
  }
  .business-actions button {
    min-height: 98px;
    padding: 14px;
  }
  .enterprise-hero .business-greeting {
    font-size: 30px;
  }
  .enterprise-hero {
    min-height: 530px;
  }
  .ivi-home-presence {
    height: 130px;
  }
  .composer-dock {
    padding: 0 24px;
    bottom: 42px;
  }
}
@media (max-width: 767px) {
  .ivi-sidebar {
    position: relative;
    inset: auto;
    width: 312px;
    max-width: 86vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 22px 14px;
    gap: 14px;
    border: 0;
    overflow-y: auto;
  }
  body > .ivi-sidebar {
    display: none;
  }
  .ivi-sidebar nav {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 3px;
  }
  .ivi-sidebar nav button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13.5px;
    gap: 10px;
    flex-shrink: 0;
  }
  .ivi-sidebar nav hr {
    display: block;
    margin: 7px;
  }
  .sidebar-brand {
    justify-content: center;
    flex-shrink: 0;
  }
  .sidebar-brand .brand-mark,
  .sidebar-brand .brand-mark img {
    height: 37px;
  }
  .sidebar-brand #collapse-menu,
  .sidebar-brand #notifications {
    display: none;
  }
  .workspace {
    padding: 10px;
    flex: none;
  }
  .workspace label {
    display: block;
  }
  .sidebar-footer {
    display: block;
    margin-top: auto;
    padding-top: 14px;
  }
  .theme-picker {
    display: flex;
    margin: 0;
    padding: 10px 0;
  }
  .user-card {
    padding: 10px 0;
  }
  .user-info {
    display: block;
  }
  #user-initials {
    display: flex;
  }
  .mobile-chat-header {
    display: flex;
    align-items: center;
    height: calc(44px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 20px 0;
    gap: 8px;
  }
  .mobile-chat-header > button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: none;
    color: var(--muted);
  }
  .mobile-header-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
  }
  .mobile-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
  }
  .mobile-drawer-host {
    position: relative;
    height: 100%;
  }
  .mobile-drawer-close {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 25;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    background: none;
  }
  .mobile-account {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 312px;
    max-width: 86vw;
    height: 100%;
    background: var(--sidebar);
    padding: 64px 24px 24px;
    border: 0;
  }
  .mobile-account h2 {
    font-size: 20px;
  }
  .mobile-account p {
    color: var(--muted);
    font-size: 13px;
  }
  .mobile-account select {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
  }
  .mobile-signout {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
  }
  .shell,
  .sidebar-collapsed .shell {
    margin: 0;
    min-height: 0;
    border: 0;
  }
  .shell main {
    min-height: 0;
  }
  .page-heading {
    display: none;
  }
  body[data-view="chat"] #panel {
    height: calc(100dvh - 44px - env(safe-area-inset-top, 0px));
    min-height: 360px;
  }
  .chat-scroll {
    padding: 0 16px 160px;
  }
  .enterprise-hero {
    min-height: 300px;
    padding: 0 0 45px;
  }
  .ivi-home-presence {
    width: 230px;
    height: 128px;
  }
  .hero-dark {
    width: 158px;
    height: 158px;
  }
  .hero-light {
    width: 118px;
  }
  .enterprise-hero h1 {
    font-size: 31px;
  }
  .composer-dock {
    bottom: max(25px, env(safe-area-inset-bottom, 0px));
    padding: 0 16px;
  }
  .composer-row {
    gap: 10px;
  }
  .history-button {
    display: flex;
    width: 42px;
    height: 42px;
  }
  .chat-status {
    font-size: 9px;
    margin-top: 10px;
  }
  .disclaimer {
    display: none;
  }
  .sidebar-collapsed .ivi-sidebar {
    width: 312px;
  }
  .sidebar-collapsed .sidebar-brand .logo,
  .sidebar-collapsed .workspace,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .sidebar-footer {
    display: revert;
  }
  .sidebar-collapsed .ivi-sidebar nav button {
    justify-content: flex-start;
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-field {
    animation: none;
  }
  .motion-control {
    display: none;
  }
}
