:root {
  --cream: #fbfaf6;
  --mint: #e8f6ef;
  --mint-strong: #76b8a7;
  --brand-blue: #e8f6ef;
  --brand-blue-strong: #9fd5bf;
  --brand-blue-ink: #7775a8;
  --brand-lavender: #8d8abd;
  --brand-lavender-soft: #f0effb;
  --brand-yellow: #f4d35e;
  --brand-yellow-soft: #fff2b8;
  --peach-soft: #fff0eb;
  --sky-soft: #edf8ff;
  --lavender: var(--brand-blue);
  --lavender-dark: var(--brand-blue-ink);
  --lavender-ink: #656397;
  --gold: var(--brand-yellow);
  --coral: #e98f83;
  --ink: #262733;
  --muted: #73707c;
  --line: #e8ecef;
  --surface: rgba(255, 255, 255, 0.96);
  --shadow: 0 12px 30px rgba(38, 39, 51, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 4%, rgba(240, 239, 251, 0.78), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(255, 242, 184, 0.44), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(233, 143, 131, 0.14), transparent 30%),
    var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
strong,
button {
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.74), transparent 30%),
    linear-gradient(145deg, #faf8ff 0%, #ffffff 58%, #fffaf0 100%);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-card {
  width: min(100%, 330px);
  display: grid;
  justify-items: center;
  gap: 24px;
}

.splash-logo {
  width: min(82vw, 310px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(119, 104, 133, 0.16));
}

.login-card {
  width: min(100%, 310px);
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(141, 138, 189, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(81, 77, 92, 0.09);
}

.login-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
}

.login-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.login-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.login-card input {
  min-height: 42px;
  border: 1px solid rgba(141, 138, 189, 0.2);
  border-radius: 14px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

.progress-track {
  width: 190px;
  height: 11px;
  padding: 2px;
  border: 2px solid var(--brand-lavender);
  border-radius: 999px;
  background: #f9f6ee;
}

.progress-track span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-lavender));
}

.splash-action {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 22px;
  background: var(--brand-lavender);
  color: #ffffff;
  font-weight: 700;
}

.app-frame {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 239, 251, 0.48), transparent 34%),
    radial-gradient(circle at 96% 42%, rgba(255, 242, 184, 0.28), transparent 30%),
    linear-gradient(180deg, #fffefe 0%, #fbfaf6 100%);
  box-shadow: 0 0 0 1px rgba(38, 39, 51, 0.07);
}

.app-bar {
  padding: calc(16px + env(safe-area-inset-top)) 16px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  color: var(--lavender-ink);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 10px rgba(44, 42, 56, 0.16));
}

.header-brain {
  border-radius: 12px;
  padding: 2px;
  background: #ffffff;
}

.brand-lockup p,
.brand-lockup h1,
.section-title h2,
.section-title p,
.message p,
.record-card p {
  margin: 0;
}

.brand-lockup p {
  font-size: 0.78rem;
  opacity: 0.86;
}

.brand-lockup h1 {
  font-size: 0.98rem;
  line-height: 1.22;
  font-weight: 650;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(141, 138, 189, 0.18);
  border-radius: 14px;
  background: rgba(250, 249, 255, 0.84);
  color: var(--lavender-ink);
  font-weight: 700;
}

.screen {
  min-height: 0;
  overflow: hidden;
}

.tab-view {
  display: none;
  height: 100%;
  overflow: auto;
  padding: 16px;
}

.tab-view.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-intro {
  display: grid;
  gap: 5px;
  padding: 0;
}

.chat-intro strong {
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1.12;
}

.chat-intro span {
  color: var(--brand-blue-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chat-intro small {
  max-width: 330px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.35;
}

.home-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: 2px 0 18px;
}

.home-panel[hidden] {
  display: none;
}

.home-hero {
  position: relative;
  min-height: 0;
  display: grid;
  justify-items: center;
  gap: 11px;
  overflow: hidden;
  padding: 16px 16px 15px;
  border: 1px solid rgba(141, 138, 189, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(250, 249, 255, 0.96)),
    radial-gradient(circle at 78% 8%, rgba(255, 242, 184, 0.56), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(240, 239, 251, 0.88), transparent 38%),
    radial-gradient(circle at 96% 92%, rgba(255, 240, 235, 0.88), transparent 35%),
    #ffffff;
  box-shadow: 0 18px 42px rgba(74, 70, 104, 0.12);
}

.home-hero-art {
  position: static;
  width: min(44%, 136px);
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 18px 22px rgba(78, 70, 108, 0.14));
}

.home-hero .chat-intro {
  position: relative;
  z-index: 1;
  max-width: 330px;
  padding-bottom: 0;
  text-align: center;
  justify-items: center;
}

.home-metrics {
  position: static;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-metrics div {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(141, 138, 189, 0.14);
  border-radius: 16px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.home-metrics strong {
  color: var(--lavender-ink);
  font-size: 0.84rem;
}

.home-metrics span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.panel,
.record-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #4a5653;
  font-size: 0.84rem;
  font-weight: 600;
}

.front-actions {
  display: grid;
  gap: 11px;
}

.front-card {
  position: relative;
  min-height: 88px;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(141, 138, 189, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 249, 255, 0.86));
  text-align: left;
  box-shadow: 0 14px 28px rgba(74, 70, 104, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.front-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand-lavender);
}

.front-card:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 138, 189, 0.3);
  box-shadow: 0 18px 34px rgba(74, 70, 104, 0.12);
}

.front-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 248, 0.92));
}

.front-card:nth-child(2)::before {
  background: var(--brand-yellow);
}

.front-card:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 250, 0.94));
}

.front-card:nth-child(3)::before {
  background: var(--coral);
}

.front-card-art {
  width: 74px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  object-position: 50% 24%;
  box-shadow:
    0 10px 18px rgba(74, 70, 104, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.front-card > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.front-card strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
}

.front-card small {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.35;
}

.pro-badge {
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--brand-lavender-soft);
  color: var(--lavender-ink);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
}

.chat-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: workspaceIn 180ms ease-out;
  padding: 2px 0 4px;
}

.chat-workspace[hidden] {
  display: none;
}

@keyframes workspaceIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-session-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 2px;
}

.chat-session-header strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 780;
}

.chat-thread {
  flex: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 110px;
}

.message {
  position: relative;
  width: fit-content;
  max-width: min(86%, 720px);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.62;
  font-size: 0.98rem;
  font-weight: 450;
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(36, 31, 72, 0.08);
}

.message.assistant {
  align-self: flex-start;
  padding-right: 48px;
  background: #ffffff;
  border: 1px solid rgba(111, 84, 199, 0.1);
  color: var(--ink);
}

.message.user {
  align-self: flex-end;
  background: #eef8f3;
  border: 1px solid rgba(95, 200, 137, 0.16);
  color: var(--ink);
}

.message.meta {
  align-self: center;
  max-width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 550;
}

.save-strategy {
  position: absolute;
  top: 10px;
  right: 9px;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(63, 111, 99, 0.08);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #b13b42;
  font-size: 1.1rem;
  line-height: 1;
}

.composer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0 0;
  background: linear-gradient(rgba(252, 251, 248, 0), var(--cream) 28%);
}

.composer textarea {
  min-height: 54px;
  max-height: 150px;
  resize: none;
  border: 1px solid rgba(111, 84, 199, 0.14);
  border-radius: 18px;
  padding: 15px 16px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(36, 31, 72, 0.06);
  outline: none;
}

.composer textarea:focus {
  border-color: rgba(111, 84, 199, 0.32);
  box-shadow: 0 0 0 4px rgba(111, 84, 199, 0.08), 0 12px 30px rgba(36, 31, 72, 0.08);
}

.send-button,
.primary-button,
.secondary-button {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 14px;
  font-weight: 600;
}

.send-button,
.primary-button {
  border: 0;
  background: linear-gradient(135deg, #6f54c7, #513795);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(81, 55, 149, 0.18);
}

.secondary-button {
  border: 1px solid rgba(141, 138, 189, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--lavender-dark);
}

.panel {
  padding: 16px;
}

.stack {
  display: grid;
  gap: 13px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.section-title-art {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 24%;
  box-shadow: 0 10px 20px rgba(74, 70, 104, 0.12);
}

.section-title h2 {
  font-size: 1.18rem;
}

.section-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-title {
  padding: 4px 2px 2px;
}

.star {
  color: var(--gold);
  font-size: 1.9rem;
  line-height: 1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.button-row,
.filter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.filter-row {
  color: var(--muted);
}

.record-list {
  display: grid;
  gap: 12px;
}

.gallery-grid {
  grid-template-columns: 1fr;
}

.record-card {
  padding: 14px;
}

.record-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.record-card p {
  color: var(--muted);
  line-height: 1.45;
}

.strategy-card {
  position: relative;
  border-color: rgba(215, 170, 57, 0.48);
}

.article-list {
  padding-bottom: 10px;
}

.articles-heading {
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 2px;
}

.articles-heading > div {
  flex: 1 1 auto;
  min-width: 0;
}

.articles-heading .secondary-button {
  min-width: 112px;
}

.article-form[hidden] {
  display: none;
}

.article-card {
  border-color: rgba(141, 138, 189, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 249, 255, 0.7));
}

.article-card .tag-row {
  margin: 0 0 8px;
}

.article-card details {
  margin-top: 10px;
}

.article-card summary {
  color: var(--lavender-ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
}

.article-card details p {
  margin-top: 10px;
}

.text-button {
  min-height: 34px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #9d5a51;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.premium-hero,
.premium-status-card,
.admin-card {
  border: 1px solid rgba(141, 138, 189, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 249, 255, 0.96)),
    radial-gradient(circle at 88% 8%, rgba(255, 242, 184, 0.58), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(255, 240, 235, 0.72), transparent 36%);
  box-shadow: 0 18px 42px rgba(74, 70, 104, 0.12);
}

.premium-hero {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 10px;
  overflow: hidden;
  padding: 20px 18px 18px;
}

.premium-hero-art {
  position: static;
  justify-self: end;
  width: 118px;
  height: 82px;
  border-radius: 20px;
  object-fit: cover;
  object-position: 50% 24%;
  opacity: 0.9;
  box-shadow: 0 16px 26px rgba(74, 70, 104, 0.13);
}

.premium-hero span,
.premium-hero h2,
.premium-hero p,
.premium-hero button {
  position: relative;
  z-index: 1;
}

.premium-hero span {
  color: var(--lavender-ink);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.premium-hero h2 {
  margin: 0;
  color: var(--ink);
  max-width: 330px;
  font-size: 1.42rem;
  line-height: 1.18;
}

.premium-hero p,
.premium-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.plan-grid {
  display: grid;
  gap: 12px;
}

.plan-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(141, 138, 189, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 249, 255, 0.76));
  box-shadow: 0 14px 28px rgba(74, 70, 104, 0.08);
}

.premium-plan {
  border-color: rgba(244, 211, 94, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.98), rgba(255, 248, 225, 0.72));
}

.plan-name {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--brand-lavender-soft);
  color: var(--lavender-ink);
  font-size: 0.74rem;
  font-weight: 850;
}

.premium-plan .plan-name {
  background: var(--brand-yellow-soft);
  color: #735d10;
}

.plan-card strong {
  color: var(--ink);
  line-height: 1.3;
}

.plan-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.35;
}

.premium-status-card {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.premium-status-card.active {
  border-color: rgba(244, 211, 94, 0.62);
  background: #fffdf4;
}

.admin-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.admin-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--brand-lavender-soft);
  color: var(--lavender-ink);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-card strong {
  color: var(--ink);
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.strategy-card::after {
  content: "♥";
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--gold);
  font-size: 1.25rem;
}

.strategy-date {
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 6px;
}

.empty-state {
  border-style: dashed;
  text-align: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--brand-lavender-soft);
  color: var(--lavender-ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.tab-link {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.tab-link span {
  font-size: 1rem;
  line-height: 1;
}

.tab-link.active {
  background: var(--brand-lavender-soft);
  color: var(--lavender-dark);
  box-shadow: inset 0 0 0 1px rgba(141, 138, 189, 0.1);
}

@media (min-width: 860px) {
  body {
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .app-frame {
    min-height: min(900px, calc(100vh - 48px));
    border-radius: 24px;
    overflow: hidden;
  }
}

@media (max-width: 390px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .brand-lockup h1 {
    font-size: 0.94rem;
  }

  .tab-link {
    font-size: 0.68rem;
  }
}

/* Home profissional inspirada na referencia enviada */
:root {
  --cream: #fcfbf8;
  --surface: #ffffff;
  --ink: #151f43;
  --muted: #676982;
  --line: #ebe7f4;
  --brand-lavender: #6f54c7;
  --brand-lavender-soft: #f1edff;
  --brand-yellow: #ffeaa8;
  --brand-yellow-soft: #fff7dc;
  --aqua: #65c9c8;
  --green: #5fc889;
  --blue-soft: #ddf5fb;
  --orange-soft: #ff914d;
  --pink-soft: #f46f9b;
  --shadow: 0 18px 45px rgba(38, 31, 72, 0.07);
  --radius: 24px;
}

body {
  background: var(--cream);
}

.app-frame {
  width: min(100%, 1280px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: 1fr;
  background: var(--cream);
  box-shadow: none;
}

.app-content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px 18px 24px;
  border-right: 1px solid rgba(111, 84, 199, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 12px 0 40px rgba(34, 28, 68, 0.04);
}

.sidebar-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.sidebar-brand img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(46, 38, 76, 0.12));
}

.sidebar-brand strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.sidebar-brand span {
  display: none;
}

.sidebar-menu {
  display: grid;
  align-content: start;
  gap: 10px;
}

.side-link,
.sidebar-pro-card .tab-link {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  border: 0;
  border-radius: 18px;
  padding: 0 14px;
  background: transparent;
  color: #41435a;
  font-size: 0.95rem;
  font-weight: 650;
  text-align: left;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.side-link span {
  width: 26px;
  color: #5a55a8;
  font-size: 0.74rem;
  font-weight: 850;
}

.side-link:hover {
  transform: translateX(2px);
  background: rgba(111, 84, 199, 0.06);
}

.side-link.active {
  background: var(--brand-lavender-soft);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--brand-lavender);
}

.sidebar-footer {
  display: grid;
  gap: 18px;
}

.sidebar-pro-card {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 12%, rgba(111, 84, 199, 0.12), transparent 32%),
    #f8f5ff;
  box-shadow: 0 14px 34px rgba(38, 31, 72, 0.06);
}

.sidebar-pro-card > span {
  width: fit-content;
  border-radius: 12px;
  padding: 4px 9px;
  background: #ffffff;
  color: var(--brand-lavender);
  font-size: 0.75rem;
  font-weight: 850;
}

.sidebar-pro-card strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}

.sidebar-pro-card .tab-link {
  min-height: 34px;
  padding: 0;
  color: var(--brand-lavender);
  font-size: 0.84rem;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(111, 84, 199, 0.08);
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(38, 31, 72, 0.06);
}

.sidebar-profile > span,
.avatar-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand-lavender);
  color: #ffffff;
  font-weight: 800;
}

.sidebar-profile > span {
  width: 44px;
  height: 44px;
}

.sidebar-profile strong,
.sidebar-profile small {
  display: block;
}

.sidebar-profile small {
  color: var(--muted);
  font-size: 0.78rem;
}

.app-topbar {
  display: grid;
  grid-template-columns: minmax(280px, 580px) 44px 44px;
  align-items: center;
  gap: 16px;
  padding: 38px 40px 24px;
  background: var(--cream);
}

.app-topbar h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.global-search {
  position: relative;
  color: transparent;
}

.global-search::before {
  content: "⌕";
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 1;
  color: #1f2746;
  transform: translateY(-50%);
}

.global-search input {
  height: 64px;
  border: 1px solid rgba(111, 84, 199, 0.24);
  border-radius: 28px;
  padding: 0 24px 0 58px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(38, 31, 72, 0.04);
}

.icon-button,
.avatar-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.icon-button {
  border: 0;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(38, 31, 72, 0.05);
}

.export-button {
  background: var(--brand-lavender);
  color: #ffffff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.screen {
  min-height: 0;
  overflow: hidden;
}

.tab-view {
  height: 100%;
  padding: 0 40px 34px;
}

.tab-view.active {
  gap: 22px;
}

.home-panel {
  gap: 24px;
  padding: 0 0 28px;
}

.home-greeting h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.95rem);
  font-weight: 800;
  line-height: 1.05;
}

.home-greeting p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
}

.home-hero {
  min-height: 320px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  align-items: center;
  justify-items: stretch;
  gap: 18px;
  border: 1px solid rgba(244, 211, 94, 0.52);
  border-radius: 28px;
  padding: 42px 44px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 234, 168, 0.82) 0 10%, transparent 10.4%),
    radial-gradient(circle at 48% 108%, rgba(255, 234, 168, 0.75) 0 10%, transparent 10.4%),
    radial-gradient(circle at 96% 92%, rgba(101, 201, 200, 0.42) 0 14%, transparent 14.4%),
    linear-gradient(105deg, #fff7dc 0%, #fffdf5 53%, #f3fff9 100%);
  box-shadow: 0 22px 55px rgba(111, 84, 199, 0.08);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 430px;
}

.hero-copy span:first-child {
  color: var(--brand-lavender);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.hero-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.72rem);
  line-height: 1.18;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-button {
  min-height: 58px;
  margin-top: 12px;
  border-radius: 999px;
  padding: 0 28px;
  background: var(--brand-lavender);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(111, 84, 199, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hero-button:hover,
.front-card:hover,
.quick-chips button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 230px;
}

.home-hero-art {
  position: absolute;
  right: 3%;
  top: 50%;
  z-index: 2;
  width: min(92%, 320px);
  transform: translateY(-50%);
  filter: drop-shadow(0 24px 30px rgba(49, 55, 76, 0.16));
}

.shape,
.dot-grid {
  position: absolute;
  pointer-events: none;
}

.shape-one {
  right: 0;
  top: 20%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(101, 201, 200, 0.58);
}

.shape-two {
  left: 8%;
  bottom: 10%;
  width: 46px;
  height: 18px;
  border-radius: 999px;
  border: 4px solid rgba(101, 201, 200, 0.7);
  border-left-color: transparent;
  border-right-color: transparent;
}

.shape-three {
  right: 18%;
  bottom: -8%;
  width: 120px;
  height: 96px;
  border-radius: 999px 999px 24px 24px;
  background: rgba(101, 201, 200, 0.28);
}

.dot-grid {
  right: 4%;
  top: 4%;
  width: 82px;
  height: 52px;
  background-image: radial-gradient(circle, rgba(111, 84, 199, 0.58) 2px, transparent 2.5px);
  background-size: 18px 18px;
}

.tools-section,
.quick-access,
.recent-panel {
  display: grid;
  gap: 16px;
}

.tools-section h2,
.quick-access h2,
.recent-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.front-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.front-card {
  min-height: 168px;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(111, 84, 199, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(38, 31, 72, 0.05);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.front-card::before {
  width: 4px;
  border-radius: 999px;
  background: var(--brand-lavender);
}

.front-card:hover {
  border-color: rgba(111, 84, 199, 0.24);
  box-shadow: 0 22px 42px rgba(38, 31, 72, 0.09);
}

.tool-icon,
.recent-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-lavender-soft);
}

.tool-icon {
  width: 66px;
  height: 66px;
  font-size: 1.45rem;
}

.front-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.front-card small {
  max-width: 240px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.tool-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(111, 84, 199, 0.14);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.3rem;
}

.accent-purple::before {
  background: var(--brand-lavender);
}

.accent-green::before {
  background: var(--green);
}

.accent-orange::before {
  background: var(--orange-soft);
}

.accent-blue::before {
  background: var(--aqua);
}

.accent-yellow::before {
  background: #f6c948;
}

.accent-pink::before {
  background: var(--pink-soft);
}

.accent-teal::before {
  background: #4fc0a5;
}

.accent-green .tool-icon,
.accent-green.recent-icon {
  background: #e8f8ef;
  color: #22a965;
}

.accent-orange .tool-icon,
.accent-orange.recent-icon {
  background: #fff0e7;
  color: var(--orange-soft);
}

.accent-blue .tool-icon,
.accent-blue.recent-icon {
  background: var(--blue-soft);
  color: #28aeb8;
}

.accent-yellow .tool-icon,
.accent-yellow.recent-icon {
  background: #fff6d9;
  color: #d99f00;
}

.accent-pink .tool-icon,
.accent-pink.recent-icon {
  background: #ffe9f1;
  color: var(--pink-soft);
}

.accent-teal .tool-icon,
.accent-teal.recent-icon {
  background: #e4f8f3;
  color: #238a73;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-chips button {
  min-height: 44px;
  border: 1px solid rgba(111, 84, 199, 0.12);
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(38, 31, 72, 0.04);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.recent-panel {
  border: 1px solid rgba(111, 84, 199, 0.1);
  border-radius: 22px;
  padding: 22px 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(38, 31, 72, 0.06);
}

.recent-heading,
.recent-list article {
  display: grid;
  align-items: center;
}

.recent-heading {
  grid-template-columns: 1fr auto;
}

.recent-heading .text-button {
  margin: 0;
  color: var(--brand-lavender);
}

.recent-list article {
  grid-template-columns: 34px 1fr auto 34px 34px;
  gap: 12px;
  min-height: 54px;
  border-top: 1px solid rgba(111, 84, 199, 0.08);
}

.recent-list article:first-child {
  border-top: 0;
}

.recent-icon {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

.recent-list strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.recent-list small {
  color: var(--muted);
  font-size: 0.82rem;
}

.recent-list button {
  border: 0;
  background: transparent;
  color: #e5b518;
  font-size: 1rem;
}

.home-footer {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.tab-bar {
  display: none;
}

@media (max-width: 980px) {
  .app-frame {
    display: grid;
    grid-template-columns: 146px minmax(0, 1fr);
    width: 100%;
  }

  .app-sidebar {
    display: grid;
    gap: 18px;
    padding: 20px 10px 18px;
  }

  .sidebar-brand img {
    width: 78px;
    height: 78px;
  }

  .sidebar-brand strong {
    font-size: 0.78rem;
  }

  .side-link,
  .sidebar-pro-card .tab-link {
    min-height: 44px;
    gap: 8px;
    border-radius: 16px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .side-link span {
    width: 20px;
    font-size: 0.62rem;
  }

  .sidebar-pro-card {
    padding: 12px;
  }

  .sidebar-profile {
    grid-template-columns: 34px 1fr;
    padding: 8px;
  }

  .sidebar-profile > span {
    width: 34px;
    height: 34px;
  }

  .sidebar-profile strong {
    font-size: 0.82rem;
  }

  .app-topbar {
    grid-template-columns: 1fr 42px 42px;
    gap: 10px;
    padding: calc(18px + env(safe-area-inset-top)) 18px 14px;
  }

  .global-search input {
    height: 52px;
    border-radius: 20px;
  }

  .tab-view {
    padding: 10px 18px 32px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 38%;
    min-height: 0;
    padding: 28px 26px;
  }

  .hero-visual {
    min-height: 210px;
  }

  .home-hero-art {
    left: auto;
    right: -4%;
    width: min(118%, 230px);
    transform: translateY(-50%);
  }

  .front-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-bar {
    display: none;
  }
}

@media (max-width: 620px) {
  .app-frame {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .app-sidebar {
    padding-inline: 8px;
  }

  .home-greeting h2 {
    font-size: 1.9rem;
  }

  .home-greeting p {
    font-size: 1rem;
  }

  .hero-copy h2 {
    font-size: 1.62rem;
  }

  .front-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .front-card {
    min-height: 150px;
    padding: 18px;
  }

  .front-card small {
    font-size: 0.8rem;
  }

  .recent-list article {
    grid-template-columns: 30px 1fr 32px;
  }

  .recent-list small,
  .recent-list button:last-child {
    display: none;
  }
}

/* Mockup fiel enviado em 11/08/2026 */
:root {
  --mockup-width: 1024px;
  --sidebar-width: 184px;
  --content-max: 774px;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #fcfbf8;
}

body {
  display: block;
  padding: 0;
}

.app-frame {
  width: var(--mockup-width);
  max-width: none;
  min-height: 1536px;
  margin: 0;
  grid-template-columns: var(--sidebar-width) 1fr;
  background: #fcfbf8;
  transform: scale(var(--app-scale, 1));
  transform-origin: top left;
}

.app-sidebar {
  display: grid;
  width: var(--sidebar-width);
  height: calc(100vh / var(--app-scale, 1));
  min-height: 1536px;
  gap: 38px;
  padding: 28px 14px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 247, 0.96));
  border-right: 1px solid #efece4;
  box-shadow: 14px 0 36px rgba(33, 33, 45, 0.045);
}

.sidebar-brand {
  gap: 18px;
}

.sidebar-brand img {
  width: 96px;
  height: 96px;
}

.sidebar-brand strong {
  max-width: 126px;
  font-size: 0.9rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.sidebar-menu {
  gap: 19px;
}

.side-link,
.sidebar-pro-card .tab-link {
  min-height: 50px;
  border-radius: 19px;
  gap: 14px;
  padding: 0 16px;
  color: #333746;
  font-size: 0.94rem;
  font-weight: 600;
}

.side-link span {
  width: 22px;
  color: #4a4e58;
  font-size: 1.25rem;
  font-weight: 500;
}

.side-link.active {
  background: #f0eafd;
  color: #23294b;
  box-shadow: inset 3px 0 0 #6d55c6;
}

.side-link.active span {
  color: #6d55c6;
}

.sidebar-footer {
  gap: 535px;
}

.sidebar-pro-card {
  gap: 9px;
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 8% 8%, rgba(109, 85, 198, 0.14), transparent 36%),
    #f7f2ff;
  box-shadow: none;
}

.sidebar-pro-card > span {
  background: transparent;
  padding: 0;
  color: #1f2442;
  font-size: 0.96rem;
}

.sidebar-pro-card strong {
  color: #4c4f62;
  font-size: 0.8rem;
  font-weight: 500;
}

.sidebar-pro-card .tab-link {
  min-height: 24px;
  padding: 0;
  color: #6d55c6;
  font-size: 0.82rem;
}

.sidebar-profile {
  grid-template-columns: 44px 1fr;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 14px;
}

.app-content {
  width: calc(var(--mockup-width) - var(--sidebar-width));
  min-width: 0;
}

.app-topbar {
  grid-template-columns: 462px 44px 44px;
  gap: 22px;
  justify-content: end;
  padding: 30px 34px 28px;
}

.global-search input {
  height: 52px;
  border-radius: 26px;
  border-color: #ded6ee;
  padding-left: 52px;
  font-size: 0.98rem;
}

.global-search::before {
  left: 21px;
  font-size: 1.35rem;
}

.icon-button,
.avatar-button {
  width: 44px;
  height: 44px;
  box-shadow: none;
  font-size: 1.25rem;
}

.avatar-button {
  font-size: 0.9rem;
}

.tab-view {
  padding: 0 34px 28px;
}

.home-panel {
  gap: 29px;
}

.home-greeting h2 {
  font-size: 2.42rem;
  line-height: 1;
}

.home-greeting p {
  margin-top: 12px;
  font-size: 1.25rem;
}

.home-hero {
  width: 100%;
  min-height: 398px;
  grid-template-columns: 386px 1fr;
  gap: 10px;
  border-radius: 24px;
  padding: 72px 46px 44px;
}

.hero-copy {
  gap: 14px;
}

.hero-copy span:first-child {
  font-size: 0.93rem;
}

.hero-copy h2 {
  font-size: 2.22rem;
  line-height: 1.32;
}

.hero-copy p {
  font-size: 1.12rem;
}

.hero-button {
  min-height: 56px;
  margin-top: 14px;
  padding: 0 29px;
  border-radius: 28px;
  font-size: 1rem;
}

.hero-visual {
  min-height: 240px;
}

.home-hero-art {
  right: 7%;
  width: 286px;
}

.shape-one {
  right: 0;
  top: 30%;
}

.shape-two {
  left: 4%;
  bottom: 18%;
}

.shape-three {
  right: -34px;
  bottom: -44px;
  width: 152px;
  height: 116px;
}

.dot-grid {
  right: 5%;
  top: 6%;
}

.tools-section,
.quick-access,
.recent-panel {
  gap: 18px;
}

.tools-section h2,
.quick-access h2,
.recent-heading h2 {
  font-size: 1.18rem;
}

.front-actions {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
}

.front-card {
  min-height: 210px;
  border-radius: 12px;
  padding: 24px 22px;
}

.tool-icon {
  width: 64px;
  height: 64px;
}

.front-card strong {
  margin-top: 12px;
  font-size: 1rem;
}

.front-card small {
  font-size: 0.85rem;
  line-height: 1.5;
}

.tool-arrow {
  right: 14px;
  bottom: 16px;
  width: 32px;
  height: 32px;
}

.quick-chips {
  gap: 10px;
}

.quick-chips button {
  min-height: 42px;
  padding: 0 17px;
  font-size: 0.83rem;
}

.recent-panel {
  border-radius: 18px;
  padding: 20px 24px 18px;
}

.recent-list article {
  grid-template-columns: 30px 1fr 130px 28px 28px;
  min-height: 48px;
}

.home-footer {
  margin-top: -4px;
}

/* Sidebar acionada por tres barras */
.app-frame {
  width: 1024px;
  min-height: 1536px;
  grid-template-columns: 1fr;
  transform: scale(var(--app-scale, 1));
  transform-origin: top left;
}

.app-content {
  width: 1024px;
}

.menu-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(38, 31, 72, 0.05);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #151f43;
}

.app-topbar {
  grid-template-columns: 44px 462px 44px 44px;
  justify-content: end;
  padding: 30px 34px 28px 222px;
}

.screen {
  overflow: visible;
}

.tab-view {
  padding: 0 34px 28px 222px;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 184px;
  height: calc(100vh / var(--app-scale, 1));
  min-height: 0;
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.sidebar-open .app-sidebar {
  transform: translateX(0);
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(21, 31, 67, 0.16);
  backdrop-filter: blur(2px);
}

.sidebar-scrim[hidden] {
  display: none;
}

@media (max-width: 1023px) {
  :root {
    --app-scale: calc(100vw / 1024);
  }

  body {
    min-height: calc(1536px * var(--app-scale));
  }
}

@media (min-width: 1024px) {
  body {
    display: grid;
    justify-items: center;
  }

  .app-frame {
    margin-inline: auto;
  }
}

/* Ajuste fino de proporcoes do mockup */
.app-topbar {
  padding-top: 30px;
  padding-bottom: 16px;
}

.tab-view.active {
  gap: 0;
}

.home-panel {
  gap: 24px;
}

.home-greeting {
  margin-top: -4px;
}

.home-hero {
  height: 398px;
}

.tools-section {
  margin-top: 8px;
}

/* Formato mobile para Play Store com linguagem visual premium */
.app-frame {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  grid-template-columns: 1fr;
  transform: none;
  background: #fcfbf8;
}

.app-content {
  width: 100%;
}

.app-topbar {
  grid-template-columns: 44px minmax(0, 1fr) 40px 40px;
  gap: 10px;
  padding: calc(16px + env(safe-area-inset-top)) 16px 12px;
}

.global-search input {
  height: 48px;
  border-radius: 20px;
  padding-left: 48px;
  font-size: 0.9rem;
}

.icon-button,
.avatar-button,
.menu-button {
  width: 40px;
  height: 40px;
}

.tab-view {
  padding: 12px 16px 86px;
}

.home-panel {
  gap: 18px;
  padding-bottom: 0;
}

.home-greeting {
  margin-top: 0;
}

.home-greeting h2 {
  font-size: 1.82rem;
  line-height: 1.08;
}

.home-greeting p {
  margin-top: 7px;
  font-size: 0.98rem;
}

.home-hero {
  height: auto;
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 12px;
  border-radius: 24px;
  padding: 24px 22px 18px;
}

.hero-copy {
  max-width: 100%;
  gap: 10px;
}

.hero-copy h2 {
  font-size: 1.72rem;
  line-height: 1.2;
}

.hero-copy p {
  font-size: 0.98rem;
}

.hero-button {
  min-height: 48px;
  margin-top: 4px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.hero-visual {
  min-height: 168px;
}

.home-hero-art {
  left: 50%;
  right: auto;
  width: min(72%, 230px);
  transform: translate(-50%, -50%);
}

.dot-grid {
  right: 8%;
  top: 6%;
}

.shape-three {
  right: -34px;
  bottom: -36px;
  width: 120px;
  height: 90px;
}

.front-actions {
  grid-template-columns: 1fr;
  gap: 12px;
}

.front-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  padding: 16px;
}

.tool-icon {
  width: 58px;
  height: 58px;
  font-size: 1.25rem;
}

.front-card strong {
  margin-top: 0;
  font-size: 1rem;
}

.front-card small {
  font-size: 0.83rem;
}

.tool-arrow {
  position: static;
  width: 32px;
  height: 32px;
}

.quick-chips {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 3px;
}

.quick-chips button {
  flex: 0 0 auto;
}

.recent-panel {
  border-radius: 20px;
  padding: 16px;
}

.recent-list article {
  grid-template-columns: 30px 1fr 28px;
  gap: 10px;
}

.recent-list small,
.recent-list button:last-child {
  display: none;
}

.tab-bar {
  display: grid;
}

.app-sidebar {
  width: min(82vw, 300px);
  height: 100vh;
  min-height: 0;
}

@media (max-width: 1023px) {
  :root {
    --app-scale: 1;
  }

  body {
    min-height: 100vh;
  }
}

body .app-frame .front-card {
  min-height: 112px;
  grid-template-columns: 58px 1fr 34px;
  grid-template-rows: auto auto;
  align-content: center;
  padding: 16px;
}

body .app-frame .front-card .tool-icon {
  grid-column: 1;
  grid-row: 1 / 3;
}

body .app-frame .front-card strong {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}

body .app-frame .front-card small {
  grid-column: 2;
  grid-row: 2;
}

body .app-frame .front-card .tool-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
}

body .app-frame .home-hero {
  height: auto;
}

body .app-frame .recent-list article {
  grid-template-columns: 30px 1fr 28px;
}

/* Refinamento visual inspirado na referencia, mantendo formato mobile */
body {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.86), transparent 34%),
    #fcfbf8;
  color: #152049;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body .app-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(252, 251, 248, 0.98)),
    #fcfbf8;
  box-shadow: 0 0 0 1px rgba(29, 31, 58, 0.04);
}

body .app-topbar {
  padding: calc(18px + env(safe-area-inset-top)) 18px 15px;
}

body .menu-button,
body .icon-button,
body .avatar-button {
  border: 1px solid rgba(111, 84, 199, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(36, 28, 72, 0.045);
}

body .avatar-button {
  background: #6e55c7;
  color: #ffffff;
}

body .global-search input {
  height: 50px;
  border-color: rgba(111, 84, 199, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #152049;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(36, 28, 72, 0.035);
}

body .global-search input::placeholder {
  color: #77718f;
}

body .tab-view {
  padding: 14px 18px 88px;
}

body .home-panel {
  gap: 20px;
}

body .home-greeting h2 {
  color: #152049;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}

body .home-greeting p {
  color: #6b6680;
  font-size: 1.03rem;
}

body .home-hero {
  border: 1px solid rgba(244, 211, 94, 0.48);
  border-radius: 24px;
  padding: 26px 24px 20px;
  background:
    radial-gradient(circle at -2% 0%, rgba(255, 231, 148, 0.78) 0 14%, transparent 14.6%),
    radial-gradient(circle at 92% 92%, rgba(121, 211, 192, 0.36) 0 18%, transparent 18.7%),
    radial-gradient(circle at 48% 108%, rgba(255, 231, 148, 0.64) 0 14%, transparent 14.6%),
    linear-gradient(110deg, #fff8df 0%, #fffdf5 56%, #f1fff8 100%);
  box-shadow: 0 18px 38px rgba(111, 84, 199, 0.06);
}

body .hero-copy span:first-child {
  color: #6e55c7;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

body .hero-copy h2 {
  color: #152049;
  font-size: 1.86rem;
  font-weight: 800;
  line-height: 1.18;
}

body .hero-copy p {
  color: #676982;
  font-size: 1rem;
}

body .hero-button {
  min-height: 50px;
  border-radius: 999px;
  background: #6e55c7;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(111, 84, 199, 0.2);
}

body .hero-visual {
  min-height: 176px;
}

body .home-hero-art {
  width: min(74%, 238px);
  filter: drop-shadow(0 22px 28px rgba(51, 48, 72, 0.15));
}

body .tools-section h2,
body .quick-access h2,
body .recent-heading h2 {
  color: #152049;
  font-size: 1.12rem;
  font-weight: 800;
}

body .front-actions {
  gap: 13px;
}

body .app-frame .front-card {
  min-height: 118px;
  border: 1px solid rgba(111, 84, 199, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(36, 28, 72, 0.045);
}

body .app-frame .front-card::before {
  width: 3px;
  border-radius: 999px;
}

body .tool-icon {
  width: 60px;
  height: 60px;
  font-size: 1.3rem;
}

body .front-card strong {
  color: #152049;
  font-size: 1.02rem;
  font-weight: 800;
}

body .front-card small {
  color: #686a84;
  font-size: 0.86rem;
  line-height: 1.42;
}

body .tool-arrow {
  border-color: rgba(111, 84, 199, 0.12);
  background: #ffffff;
  color: #4a4961;
}

body .quick-chips button {
  min-height: 42px;
  border-color: rgba(29, 31, 58, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: #252947;
  font-size: 0.84rem;
  box-shadow: 0 8px 20px rgba(36, 28, 72, 0.035);
}

body .recent-panel {
  border: 1px solid rgba(29, 31, 58, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(36, 28, 72, 0.05);
}

body .recent-list strong {
  color: #152049;
  font-size: 0.94rem;
}

body .home-footer {
  color: #77718f;
}

/* Mudanca visual mais evidente: mobile com composicao da referencia */
body .app-frame {
  width: min(100%, 430px);
  background: #fcfbf8;
}

body .app-topbar {
  grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
  gap: 9px;
  padding: calc(14px + env(safe-area-inset-top)) 14px 10px;
}

body .global-search input {
  height: 46px;
  border-radius: 23px;
  border-color: #ddd4ee;
  background: #fffefd;
}

body .tab-view {
  padding: 10px 14px 84px;
}

body .home-panel {
  gap: 18px;
}

body .home-greeting {
  padding: 2px 4px 0;
}

body .home-greeting h2 {
  font-size: 1.72rem;
}

body .home-hero {
  min-height: 252px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 24px 18px 22px;
}

body .hero-copy {
  gap: 8px;
}

body .hero-copy h2 {
  font-size: 1.48rem;
  line-height: 1.24;
}

body .hero-copy p {
  font-size: 0.91rem;
}

body .hero-button {
  width: fit-content;
  min-height: 44px;
  margin-top: 7px;
  padding: 0 17px;
}

body .hero-visual {
  min-height: 180px;
}

body .home-hero-art {
  left: auto;
  right: -8px;
  width: 170px;
  transform: translateY(-50%);
}

body .dot-grid {
  right: 10px;
  top: 12px;
  width: 56px;
  height: 42px;
  background-size: 13px 13px;
}

body .shape-two {
  left: 4px;
  bottom: 30px;
}

body .shape-three {
  right: -32px;
  bottom: -28px;
  width: 104px;
  height: 76px;
}

body .front-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body .app-frame .front-card {
  min-height: 174px;
  grid-template-columns: 1fr 32px;
  grid-template-rows: 58px auto auto;
  align-content: start;
  align-items: start;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
}

body .app-frame .front-card .tool-icon {
  grid-column: 1 / 3;
  grid-row: 1;
}

body .app-frame .front-card strong {
  grid-column: 1 / 3;
  grid-row: 2;
  font-size: 0.96rem;
}

body .app-frame .front-card small {
  grid-column: 1 / 3;
  grid-row: 3;
  font-size: 0.78rem;
}

body .app-frame .front-card .tool-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

body .tool-icon {
  width: 56px;
  height: 56px;
}

body .quick-chips button {
  min-height: 40px;
}

/* Linguagem visual fiel ao mockup: respiro, profundidade e acabamento premium */
body {
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.95), transparent 42%),
    #fcfbf8;
}

body .app-frame {
  width: min(100%, 430px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(252, 251, 248, 0.98)),
    #fcfbf8;
}

body .app-topbar {
  grid-template-columns: 46px minmax(0, 1fr) 46px 46px;
  gap: 10px;
  padding: calc(20px + env(safe-area-inset-top)) 18px 16px;
}

body .menu-button,
body .icon-button,
body .avatar-button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border-color: rgba(111, 84, 199, 0.1);
  box-shadow: 0 14px 34px rgba(35, 31, 62, 0.055);
}

body .global-search input {
  height: 54px;
  border-radius: 28px;
  border-color: rgba(111, 84, 199, 0.2);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.94rem;
  box-shadow: 0 16px 38px rgba(35, 31, 62, 0.045);
}

body .tab-view {
  padding: 16px 20px 92px;
}

body .home-panel {
  gap: 26px;
}

body .home-greeting {
  padding: 4px 4px 0;
}

body .home-greeting h2 {
  font-size: 2.08rem;
  font-weight: 800;
  line-height: 1.06;
}

body .home-greeting p {
  margin-top: 9px;
  font-size: 1.06rem;
  line-height: 1.35;
}

body .home-hero {
  position: relative;
  display: block;
  min-height: 390px;
  border-radius: 28px;
  padding: 32px 28px 184px;
  overflow: hidden;
  background:
    radial-gradient(circle at -4% 0%, rgba(255, 232, 154, 0.82) 0 17%, transparent 17.6%),
    radial-gradient(circle at 104% 87%, rgba(121, 211, 192, 0.42) 0 23%, transparent 23.8%),
    radial-gradient(circle at 50% 111%, rgba(255, 232, 154, 0.7) 0 18%, transparent 18.8%),
    linear-gradient(115deg, #fff8df 0%, #fffdf5 56%, #f3fff9 100%);
  box-shadow:
    0 28px 60px rgba(111, 84, 199, 0.075),
    inset 0 0 0 1px rgba(244, 211, 94, 0.36);
}

body .hero-copy {
  max-width: 286px;
  gap: 12px;
}

body .hero-copy span:first-child {
  font-size: 0.8rem;
  color: #6e55c7;
}

body .hero-copy h2 {
  font-size: 2.04rem;
  font-weight: 800;
  line-height: 1.12;
}

body .hero-copy p {
  font-size: 1.02rem;
  line-height: 1.42;
}

body .hero-button {
  min-height: 52px;
  margin-top: 10px;
  padding: 0 22px;
  font-size: 0.96rem;
  box-shadow: 0 18px 34px rgba(111, 84, 199, 0.22);
}

body .hero-visual {
  position: static;
  min-height: 0;
}

body .home-hero-art {
  left: auto;
  right: 24px;
  top: auto;
  bottom: 20px;
  width: 215px;
  transform: none;
  filter: drop-shadow(0 24px 30px rgba(51, 48, 72, 0.16));
}

body .dot-grid {
  right: 26px;
  top: 26px;
  width: 70px;
  height: 50px;
  background-size: 15px 15px;
}

body .shape-one {
  right: 18px;
  top: 122px;
}

body .shape-two {
  left: 52%;
  bottom: 84px;
}

body .shape-three {
  right: -38px;
  bottom: -30px;
  width: 128px;
  height: 96px;
}

body .tools-section,
body .quick-access,
body .recent-panel {
  gap: 18px;
}

body .tools-section h2,
body .quick-access h2,
body .recent-heading h2 {
  font-size: 1.18rem;
}

body .front-actions {
  grid-template-columns: 1fr;
  gap: 16px;
}

body .app-frame .front-card {
  min-height: 150px;
  grid-template-columns: 68px 1fr 34px;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 24px 60px rgba(35, 31, 62, 0.055),
    inset 0 0 0 1px rgba(111, 84, 199, 0.08);
}

body .app-frame .front-card .tool-icon {
  grid-column: 1;
  grid-row: 1 / 3;
}

body .app-frame .front-card strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.08rem;
  line-height: 1.22;
}

body .app-frame .front-card small {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.9rem;
  line-height: 1.45;
}

body .app-frame .front-card .tool-arrow {
  position: static;
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
}

body .tool-icon {
  width: 68px;
  height: 68px;
  font-size: 1.45rem;
}

body .quick-chips {
  gap: 12px;
  padding: 2px 0 6px;
}

body .quick-chips button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.86rem;
}

body .recent-panel {
  border-radius: 28px;
  padding: 22px;
  box-shadow:
    0 24px 58px rgba(35, 31, 62, 0.052),
    inset 0 0 0 1px rgba(29, 31, 58, 0.055);
}

body .recent-list article {
  min-height: 54px;
}

/* Pixel polish: linguagem visual premium do mockup sem alterar estrutura */
:root {
  --premium-bg: #fcfbf8;
  --premium-card: #fffefb;
  --premium-ink: #151f43;
  --premium-muted: #68677f;
  --premium-purple: #6d55c6;
  --premium-purple-soft: #f1ecff;
  --premium-yellow: #fff3c4;
  --premium-line: rgba(38, 31, 72, 0.085);
  --premium-shadow: 0 26px 70px rgba(35, 31, 62, 0.065);
  --premium-shadow-hover: 0 32px 84px rgba(35, 31, 62, 0.095);
}

html,
body {
  background: var(--premium-bg);
}

body {
  color: var(--premium-ink);
  font-family: "Plus Jakarta Sans", Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

body .app-frame {
  width: min(100%, 430px);
  background:
    radial-gradient(circle at 50% -6%, rgba(255, 255, 255, 0.96), transparent 38%),
    linear-gradient(180deg, #fffefc 0%, var(--premium-bg) 28%, var(--premium-bg) 100%);
}

body .app-topbar {
  grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
  gap: 10px;
  padding: calc(20px + env(safe-area-inset-top)) 18px 18px;
}

body .menu-button,
body .icon-button,
body .avatar-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(109, 85, 198, 0.1);
  border-radius: 20px;
  background: var(--premium-card);
  box-shadow: 0 18px 44px rgba(35, 31, 62, 0.052);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

body .menu-button:hover,
body .icon-button:hover,
body .avatar-button:hover,
body .hero-button:hover,
body .quick-chips button:hover {
  transform: translateY(-1px);
  box-shadow: var(--premium-shadow-hover);
}

body .avatar-button {
  border-radius: 999px;
  background: var(--premium-purple);
  color: #ffffff;
  font-weight: 700;
}

body .menu-button span {
  background: var(--premium-ink);
}

body .global-search input {
  height: 54px;
  border: 1px solid rgba(109, 85, 198, 0.2);
  border-radius: 22px;
  background: rgba(255, 254, 251, 0.96);
  color: var(--premium-ink);
  font-size: 0.92rem;
  font-weight: 400;
  box-shadow: 0 18px 48px rgba(35, 31, 62, 0.045);
}

body .global-search input::placeholder {
  color: #74708b;
}

body .tab-view {
  padding: 16px 20px 94px;
}

body .home-panel {
  gap: 28px;
}

body .home-greeting {
  padding: 6px 4px 0;
}

body .home-greeting h2 {
  color: var(--premium-ink);
  font-size: 2.08rem;
  font-weight: 800;
  line-height: 1.06;
}

body .home-greeting p {
  margin-top: 10px;
  color: var(--premium-muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.42;
}

body .home-hero {
  min-height: 342px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(244, 211, 94, 0.42);
  border-radius: 28px;
  padding: 30px 26px;
  background:
    radial-gradient(circle at -5% -2%, rgba(255, 233, 154, 0.88) 0 18%, transparent 18.8%),
    radial-gradient(circle at 108% 92%, rgba(125, 211, 193, 0.4) 0 24%, transparent 24.8%),
    radial-gradient(circle at 48% 112%, rgba(255, 233, 154, 0.7) 0 17%, transparent 17.8%),
    linear-gradient(115deg, #fff8de 0%, #fffdf6 55%, #f3fff9 100%);
  box-shadow:
    0 30px 72px rgba(109, 85, 198, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body .hero-copy {
  gap: 12px;
  max-width: 250px;
}

body .hero-copy span:first-child {
  color: var(--premium-purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body .hero-copy h2 {
  color: var(--premium-ink);
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 1.18;
}

body .hero-copy p {
  color: var(--premium-muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
}

body .hero-button {
  min-height: 50px;
  margin-top: 8px;
  border-radius: 20px;
  padding: 0 22px;
  background: var(--premium-purple);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 20px 42px rgba(109, 85, 198, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

body .hero-visual {
  min-height: 220px;
}

body .home-hero-art {
  left: auto;
  right: -6px;
  top: 50%;
  bottom: auto;
  width: 184px;
  transform: translateY(-50%);
  filter: drop-shadow(0 28px 36px rgba(51, 48, 72, 0.16));
}

body .dot-grid {
  right: 18px;
  top: 20px;
  width: 62px;
  height: 46px;
  opacity: 0.7;
  background-size: 14px 14px;
}

body .shape-one {
  right: 16px;
  top: 128px;
}

body .shape-two {
  left: 50%;
  bottom: 62px;
}

body .shape-three {
  right: -34px;
  bottom: -26px;
  width: 112px;
  height: 86px;
}

body .tools-section,
body .quick-access,
body .recent-panel {
  gap: 18px;
}

body .tools-section h2,
body .quick-access h2,
body .recent-heading h2 {
  color: var(--premium-ink);
  font-size: 1.17rem;
  font-weight: 700;
}

body .front-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body .app-frame .front-card {
  min-height: 188px;
  grid-template-columns: 1fr 28px;
  grid-template-rows: 52px auto auto;
  align-content: start;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--premium-line);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 254, 251, 0.97);
  box-shadow: var(--premium-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

body .app-frame .front-card:hover {
  transform: translateY(-2px) scale(1.005);
  border-color: rgba(109, 85, 198, 0.16);
  box-shadow: var(--premium-shadow-hover);
}

body .app-frame .front-card::before {
  width: 3px;
  opacity: 0.82;
}

body .app-frame .front-card .tool-icon {
  grid-column: 1 / 3;
  grid-row: 1;
}

body .app-frame .front-card strong {
  grid-column: 1 / 3;
  grid-row: 2;
  color: var(--premium-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

body .app-frame .front-card small {
  grid-column: 1 / 3;
  grid-row: 3;
  color: var(--premium-muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.52;
}

body .tool-icon {
  width: 52px;
  height: 52px;
  font-size: 1.16rem;
}

body .app-frame .front-card .tool-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 28px;
  height: 28px;
  border-color: rgba(109, 85, 198, 0.1);
  background: rgba(255, 254, 251, 0.9);
  color: #5e5c72;
  font-size: 1.05rem;
}

body .quick-chips {
  gap: 12px;
  padding-bottom: 8px;
}

body .quick-chips button {
  min-height: 46px;
  border-radius: 20px;
  padding: 0 18px;
  background: rgba(255, 254, 251, 0.96);
  color: #2d304d;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 16px 42px rgba(35, 31, 62, 0.04);
}

body .recent-panel {
  border: 1px solid rgba(38, 31, 72, 0.075);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 254, 251, 0.97);
  box-shadow: var(--premium-shadow);
}

body .recent-list article {
  min-height: 56px;
}

/* Calm premium: reduz o tom de banner e deixa a Home mais silenciosa */
:root {
  --calm-bg: #fcfbf8;
  --calm-card: #fffefb;
  --calm-ink: #172044;
  --calm-muted: #727087;
  --calm-purple: #6f61b6;
  --calm-purple-soft: #f3f0ff;
  --calm-yellow: #fff4cb;
  --calm-mint: #eaf8f2;
  --calm-line: rgba(41, 35, 72, 0.072);
  --calm-shadow: 0 24px 74px rgba(37, 32, 63, 0.052);
  --calm-shadow-soft: 0 16px 46px rgba(37, 32, 63, 0.038);
  --calm-shadow-hover: 0 28px 82px rgba(37, 32, 63, 0.074);
}

body {
  background: var(--calm-bg);
  color: var(--calm-ink);
  font-family: "Plus Jakarta Sans", Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

body .app-frame {
  width: min(100%, 430px);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(180deg, #fffefc 0%, var(--calm-bg) 42%, var(--calm-bg) 100%);
}

body .app-topbar {
  padding: calc(22px + env(safe-area-inset-top)) 20px 20px;
}

body .global-search input {
  height: 52px;
  border-color: rgba(111, 97, 182, 0.15);
  border-radius: 22px;
  background: rgba(255, 254, 251, 0.98);
  color: var(--calm-ink);
  font-size: 0.91rem;
  font-weight: 400;
  box-shadow: var(--calm-shadow-soft);
}

body .menu-button,
body .icon-button,
body .avatar-button {
  border-color: rgba(111, 97, 182, 0.085);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 14px 38px rgba(37, 32, 63, 0.038);
}

body .avatar-button {
  background: #7667bf;
  font-weight: 600;
}

body .tab-view {
  padding: 18px 22px 100px;
}

body .home-panel {
  gap: 32px;
  padding-bottom: 24px;
}

body .home-greeting {
  padding: 8px 2px 0;
}

body .home-greeting h2 {
  font-size: 1.82rem;
  font-weight: 700;
  line-height: 1.12;
}

body .home-greeting p {
  margin-top: 12px;
  color: var(--calm-muted);
  font-size: 1rem;
  font-weight: 400;
}

body .home-hero {
  min-height: 306px;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  border-color: rgba(219, 197, 130, 0.28);
  border-radius: 28px;
  padding: 34px 28px;
  background:
    radial-gradient(circle at -8% -8%, rgba(255, 238, 178, 0.62) 0 18%, transparent 18.8%),
    radial-gradient(circle at 110% 96%, rgba(186, 230, 218, 0.32) 0 22%, transparent 22.8%),
    linear-gradient(132deg, #fffaf0 0%, #fffefb 58%, #f8fff9 100%);
  box-shadow:
    var(--calm-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body .hero-copy {
  max-width: 244px;
  gap: 14px;
}

body .hero-copy span:first-child {
  color: var(--calm-purple);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

body .hero-copy h2 {
  color: var(--calm-ink);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.16;
}

body .hero-copy p {
  color: var(--calm-muted);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.6;
}

body .hero-button {
  width: fit-content;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 20px;
  padding: 0 18px;
  background: #7462bd;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(111, 97, 182, 0.16);
}

body .hero-button span {
  opacity: 0.82;
}

body .hero-visual {
  min-height: 178px;
}

body .home-hero-art {
  right: -14px;
  width: 148px;
  opacity: 0.92;
  filter: drop-shadow(0 20px 28px rgba(51, 48, 72, 0.12));
}

body .dot-grid,
body .shape-one,
body .shape-two,
body .shape-three {
  opacity: 0.42;
}

body .dot-grid {
  right: 8px;
  top: 18px;
  transform: scale(0.8);
  transform-origin: top right;
}

body .tools-section,
body .quick-access {
  gap: 20px;
}

body .tools-section h2,
body .quick-access h2,
body .recent-heading h2 {
  font-size: 1.08rem;
  font-weight: 650;
}

body .front-actions {
  gap: 18px;
}

body .app-frame .front-card {
  min-height: 178px;
  gap: 14px;
  border-color: var(--calm-line);
  border-radius: 28px;
  padding: 24px 22px;
  background: rgba(255, 254, 251, 0.985);
  box-shadow: var(--calm-shadow-soft);
}

body .app-frame .front-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 97, 182, 0.13);
  box-shadow: var(--calm-shadow-hover);
}

body .app-frame .front-card::before {
  width: 2px;
  opacity: 0.58;
}

body .tool-icon {
  width: 46px;
  height: 46px;
  font-size: 1.02rem;
}

body .app-frame .front-card strong {
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.3;
}

body .app-frame .front-card small {
  color: var(--calm-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.58;
}

body .app-frame .front-card .tool-arrow {
  right: 15px;
  bottom: 15px;
  width: 24px;
  height: 24px;
  color: rgba(39, 39, 58, 0.68);
  font-size: 0.95rem;
}

body .quick-chips {
  gap: 12px;
}

body .quick-chips button {
  min-height: 44px;
  border-color: rgba(41, 35, 72, 0.07);
  background: rgba(255, 254, 251, 0.98);
  color: #34364f;
  font-size: 0.82rem;
  font-weight: 400;
  box-shadow: 0 12px 32px rgba(37, 32, 63, 0.03);
}

body .recent-panel {
  border-color: rgba(41, 35, 72, 0.066);
  padding: 24px;
  background: rgba(255, 254, 251, 0.985);
  box-shadow: var(--calm-shadow-soft);
}

body .recent-list article strong {
  font-weight: 500;
}

body .recent-list article small,
body .home-footer {
  color: var(--calm-muted);
  font-weight: 400;
}

/* Calm premium v2: hero mais recepcao, menos destaque de tecnologia */
body .home-hero {
  min-height: 288px;
  grid-template-columns: minmax(0, 1fr) 96px;
  padding: 34px 30px;
  background:
    radial-gradient(circle at -10% -12%, rgba(255, 240, 185, 0.46) 0 18%, transparent 18.8%),
    radial-gradient(circle at 112% 98%, rgba(187, 230, 220, 0.24) 0 21%, transparent 21.8%),
    linear-gradient(135deg, #fffbf2 0%, #fffefb 66%, #fbfffc 100%);
  box-shadow:
    0 22px 64px rgba(37, 32, 63, 0.042),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body .hero-copy {
  max-width: 270px;
  gap: 13px;
}

body .hero-copy span:first-child {
  color: rgba(111, 97, 182, 0.82);
  font-size: 0.66rem;
  font-weight: 600;
}

body .hero-copy h2 {
  font-size: 1.42rem;
  font-weight: 650;
  line-height: 1.18;
}

body .hero-copy p {
  max-width: 250px;
  font-size: 0.91rem;
  line-height: 1.62;
}

body .hero-button {
  min-height: 40px;
  border: 1px solid rgba(111, 97, 182, 0.16);
  padding: 0 17px;
  background: #7567b7;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(111, 97, 182, 0.13);
}

body .home-hero-art {
  right: -18px;
  width: 126px;
  opacity: 0.86;
  filter: drop-shadow(0 16px 24px rgba(51, 48, 72, 0.1));
}

body .hero-visual {
  min-height: 150px;
}

body .dot-grid {
  opacity: 0.28;
}

body .shape-one,
body .shape-two,
body .shape-three {
  opacity: 0.3;
}

body .app-frame .front-card {
  box-shadow: 0 14px 42px rgba(37, 32, 63, 0.034);
}

body .tool-icon {
  width: 42px;
  height: 42px;
  font-size: 0.96rem;
}

/* Brand/font pass: marca com lugar definido e tipografia mais sobria */
body {
  font-family: Manrope, "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body .home-panel {
  gap: 26px;
}

body .home-greeting h2 {
  font-size: 1.74rem;
  font-weight: 650;
  letter-spacing: 0;
}

body .home-greeting p {
  font-size: 0.96rem;
}

body .hero-copy h2 {
  font-weight: 620;
}

body .hero-copy span:first-child {
  font-weight: 500;
}

body .home-hero {
  grid-template-columns: minmax(0, 1fr) 88px;
  min-height: 276px;
  padding: 32px 28px;
}

body .home-hero-art {
  right: 2px;
  width: 112px;
  opacity: 0.82;
  transform: translateY(-50%) rotate(-1deg);
}

body .hero-visual {
  min-height: 132px;
}

body .app-frame .front-card strong {
  font-weight: 620;
}

body .hero-button,
body .quick-chips button {
  font-weight: 500;
}

/* Clean repair: remove o aspecto de remendo da marca e simplifica a Home */
body {
  font-family: Inter, Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body .home-panel {
  gap: 28px;
}

body .home-greeting {
  padding-top: 4px;
}

body .home-greeting h2 {
  font-size: 1.78rem;
  font-weight: 650;
  line-height: 1.14;
}

body .home-greeting p {
  font-size: 0.96rem;
  line-height: 1.5;
}

body .home-hero {
  min-height: 270px;
  grid-template-columns: minmax(0, 1fr) 84px;
  padding: 30px 28px;
  border-color: rgba(41, 35, 72, 0.06);
  background:
    radial-gradient(circle at -12% -16%, rgba(255, 241, 194, 0.36) 0 18%, transparent 18.8%),
    radial-gradient(circle at 112% 104%, rgba(190, 230, 221, 0.18) 0 22%, transparent 22.8%),
    linear-gradient(135deg, #fffdf8 0%, #fffefc 70%, #fbfffc 100%);
  box-shadow: 0 18px 54px rgba(37, 32, 63, 0.035);
}

body .hero-copy span:first-child {
  color: rgba(71, 69, 91, 0.72);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body .hero-copy h2 {
  font-size: 1.38rem;
  font-weight: 640;
  line-height: 1.2;
}

body .hero-copy p {
  max-width: 252px;
  font-size: 0.9rem;
  line-height: 1.62;
}

body .home-hero-art {
  right: 4px;
  width: 104px;
  opacity: 0.78;
  transform: translateY(-50%);
  filter: drop-shadow(0 14px 20px rgba(51, 48, 72, 0.09));
}

body .hero-button {
  min-height: 39px;
  background: #6f64aa;
  box-shadow: 0 12px 26px rgba(111, 100, 170, 0.11);
}

body .dot-grid,
body .shape-one,
body .shape-two,
body .shape-three {
  opacity: 0.18;
}

body .app-frame .front-card {
  min-height: 172px;
  box-shadow: 0 12px 34px rgba(37, 32, 63, 0.028);
}

body .tool-icon {
  width: 40px;
  height: 40px;
  font-size: 0.92rem;
}

/* Logo palette proposal: identidade EntreMentes integrada ao produto */
:root {
  --logo-mint: #dff2e9;
  --logo-mint-strong: #7bc6ad;
  --logo-lavender: #8c89bd;
  --logo-lavender-ink: #62609b;
  --logo-yellow: #f7d966;
  --logo-yellow-soft: #fff3bd;
  --logo-coral: #f49486;
  --logo-orange: #f2a156;
  --logo-green: #76c76b;
  --logo-blue: #a7d4f2;
  --logo-ink: #20243f;
  --logo-muted: #6e6d83;
  --logo-line: rgba(98, 96, 155, 0.12);
  --logo-shadow: 0 18px 54px rgba(79, 74, 118, 0.075);
  --logo-shadow-soft: 0 12px 34px rgba(79, 74, 118, 0.048);
}

body {
  background:
    radial-gradient(circle at 18% -5%, rgba(223, 242, 233, 0.9), transparent 34%),
    radial-gradient(circle at 100% 4%, rgba(255, 243, 189, 0.52), transparent 28%),
    #fcfbf8;
  color: var(--logo-ink);
  font-family: Inter, Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body .app-frame {
  background:
    radial-gradient(circle at 14% 0%, rgba(223, 242, 233, 0.72), transparent 32%),
    radial-gradient(circle at 96% 22%, rgba(247, 217, 102, 0.16), transparent 24%),
    linear-gradient(180deg, #fffefb 0%, #fcfbf8 46%, #fbfaf6 100%);
}

body .app-topbar {
  padding: calc(20px + env(safe-area-inset-top)) 20px 18px;
}

body .menu-button,
body .icon-button {
  border-color: rgba(140, 137, 189, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.96), rgba(249, 253, 250, 0.92));
  color: var(--logo-lavender-ink);
  box-shadow: var(--logo-shadow-soft);
}

body .menu-button span {
  background: var(--logo-lavender-ink);
}

body .avatar-button {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.32), transparent 34%),
    var(--logo-lavender);
  box-shadow: 0 14px 34px rgba(98, 96, 155, 0.18);
}

body .global-search input {
  border-color: rgba(140, 137, 189, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(255, 252, 244, 0.92));
  color: var(--logo-ink);
  box-shadow: 0 14px 38px rgba(79, 74, 118, 0.045);
}

body .global-search input::placeholder {
  color: rgba(98, 96, 155, 0.72);
}

body .home-panel {
  gap: 30px;
}

body .home-greeting h2 {
  color: var(--logo-ink);
  font-size: 1.84rem;
  font-weight: 680;
}

body .home-greeting p {
  color: var(--logo-muted);
}

body .home-hero {
  min-height: 288px;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(140, 137, 189, 0.13);
  border-radius: 30px;
  padding: 32px 28px;
  background:
    radial-gradient(circle at 10% -8%, rgba(247, 217, 102, 0.42) 0 18%, transparent 18.7%),
    radial-gradient(circle at 108% 104%, rgba(123, 198, 173, 0.42) 0 28%, transparent 28.8%),
    radial-gradient(circle at 56% 112%, rgba(255, 243, 189, 0.5) 0 18%, transparent 18.8%),
    linear-gradient(135deg, #fff8df 0%, #fffef9 52%, #edf8f1 100%);
  box-shadow:
    var(--logo-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body .home-hero::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 70px;
  width: 122px;
  height: 122px;
  border-radius: 44% 56% 62% 38%;
  background: rgba(223, 242, 233, 0.68);
  filter: blur(1px);
}

body .hero-copy {
  max-width: 262px;
}

body .hero-copy span:first-child {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(140, 137, 189, 0.11);
  color: var(--logo-lavender-ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body .hero-copy h2 {
  color: var(--logo-ink);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.16;
}

body .hero-copy p {
  color: var(--logo-muted);
  font-size: 0.91rem;
  line-height: 1.6;
}

body .hero-button {
  min-height: 42px;
  border: 1px solid rgba(98, 96, 155, 0.15);
  border-radius: 18px;
  padding: 0 18px;
  background:
    linear-gradient(135deg, #7772b7, var(--logo-lavender-ink));
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 650;
  box-shadow: 0 14px 30px rgba(98, 96, 155, 0.18);
}

body .home-hero-art {
  right: -1px;
  width: 136px;
  opacity: 0.98;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 24px rgba(72, 68, 104, 0.12));
}

body .dot-grid {
  background-image: radial-gradient(circle, rgba(140, 137, 189, 0.42) 1.8px, transparent 2px);
  opacity: 0.42;
}

body .shape-one {
  background: var(--logo-green);
  opacity: 0.55;
}

body .shape-two {
  border-color: var(--logo-coral);
  opacity: 0.5;
}

body .shape-three {
  background: rgba(123, 198, 173, 0.36);
  opacity: 0.7;
}

body .tools-section h2,
body .quick-access h2,
body .recent-heading h2 {
  color: var(--logo-ink);
  font-size: 1.08rem;
  font-weight: 700;
}

body .front-actions {
  gap: 16px;
}

body .app-frame .front-card {
  min-height: 176px;
  border: 1px solid var(--logo-line);
  border-radius: 28px;
  padding: 23px 21px;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(253, 252, 247, 0.94));
  box-shadow: var(--logo-shadow-soft);
}

body .app-frame .front-card:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 137, 189, 0.22);
  box-shadow: 0 22px 62px rgba(79, 74, 118, 0.088);
}

body .app-frame .front-card::before {
  width: 3px;
  opacity: 0.9;
}

body .tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  font-size: 0.98rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

body .accent-purple .tool-icon {
  background: rgba(140, 137, 189, 0.18);
  color: var(--logo-lavender-ink);
}

body .accent-green .tool-icon {
  background: rgba(123, 198, 173, 0.18);
  color: #32876f;
}

body .accent-orange .tool-icon {
  background: rgba(242, 161, 86, 0.18);
  color: #c76f2b;
}

body .accent-blue .tool-icon {
  background: rgba(167, 212, 242, 0.22);
  color: #467fa3;
}

body .accent-yellow .tool-icon {
  background: rgba(247, 217, 102, 0.26);
  color: #9c7d19;
}

body .accent-pink .tool-icon {
  background: rgba(244, 148, 134, 0.17);
  color: #bc5a50;
}

body .app-frame .front-card strong {
  color: var(--logo-ink);
  font-size: 0.98rem;
  font-weight: 680;
}

body .app-frame .front-card small {
  color: var(--logo-muted);
}

body .app-frame .front-card .tool-arrow {
  border-color: rgba(140, 137, 189, 0.12);
  background: rgba(255, 254, 251, 0.96);
  color: var(--logo-lavender-ink);
}

body .quick-chips button {
  border: 1px solid rgba(140, 137, 189, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(255, 251, 238, 0.9));
  color: #353750;
  box-shadow: 0 10px 28px rgba(79, 74, 118, 0.035);
}

body .recent-panel {
  border-color: rgba(140, 137, 189, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.985), rgba(253, 252, 247, 0.94));
  box-shadow: var(--logo-shadow-soft);
}

body .recent-icon.accent-green {
  background: rgba(123, 198, 173, 0.16);
  color: #32876f;
}

body .recent-icon.accent-purple {
  background: rgba(140, 137, 189, 0.16);
  color: var(--logo-lavender-ink);
}

body .recent-icon.accent-orange {
  background: rgba(242, 161, 86, 0.16);
  color: #c76f2b;
}

body .tab-bar {
  border-color: rgba(140, 137, 189, 0.12);
  background: rgba(255, 254, 251, 0.88);
  box-shadow: 0 -14px 38px rgba(79, 74, 118, 0.05);
}

.soap-game-view {
  min-height: 100%;
}

/* Desktop chat workspace */
body.chat-open {
  background:
    radial-gradient(circle at 12% -8%, rgba(223, 242, 233, 0.88), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255, 243, 189, 0.44), transparent 26%),
    #fcfbf8;
}

body.chat-open .app-frame {
  width: 100%;
  max-width: none;
  grid-template-columns: 248px minmax(0, 1fr);
}

body.chat-open .app-sidebar {
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid var(--logo-line);
  box-shadow: 12px 0 34px rgba(79, 74, 118, 0.035);
}

body.chat-open .sidebar-brand {
  justify-items: start;
  grid-template-columns: 54px 1fr;
  text-align: left;
}

body.chat-open .sidebar-brand img {
  width: 54px;
  height: 54px;
}

body.chat-open .sidebar-brand span {
  display: block;
  color: var(--logo-muted);
  font-size: 0.78rem;
}

body.chat-open .sidebar-menu {
  gap: 6px;
}

body.chat-open .side-link {
  min-height: 44px;
  border-radius: 14px;
  padding-inline: 12px;
  font-size: 0.94rem;
}

body.chat-open .side-link.active,
body.chat-open .side-link[data-open-chat="true"] {
  background: var(--logo-mint);
  color: var(--logo-ink);
  box-shadow: inset 3px 0 0 var(--logo-mint-strong);
}

body.chat-open .side-link.active:not([data-open-chat="true"]) {
  background: transparent;
  box-shadow: none;
}

body.chat-open .sidebar-pro-card {
  display: none;
}

body.chat-open .app-content {
  min-height: 100vh;
}

body.chat-open .app-topbar {
  grid-template-columns: minmax(260px, 560px) 42px 42px;
  gap: 12px;
  height: 78px;
  padding: 14px 40px;
  border-bottom: 1px solid rgba(98, 96, 155, 0.09);
  background: rgba(255, 254, 251, 0.9);
  backdrop-filter: blur(16px);
}

body.chat-open .global-search input {
  height: 48px;
  border-radius: 18px;
  box-shadow: none;
}

body.chat-open .screen {
  padding: 0;
}

body.chat-open #chatView {
  min-height: calc(100vh - 78px);
}

body.chat-open .chat-workspace {
  width: min(1320px, calc(100% - 64px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 34px 0 28px;
  display: grid;
  grid-template-rows: auto auto auto minmax(180px, 1fr) auto;
  gap: 22px;
}

body.chat-open .chat-session-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
  align-items: start;
  padding: 0;
}

.chat-title-block {
  display: grid;
  gap: 8px;
}

.text-back-button {
  width: fit-content;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--logo-lavender-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
}

.text-back-button:hover,
.text-back-button:focus-visible {
  color: var(--logo-ink);
  outline: none;
}

.chat-title-block h2 {
  margin: 0;
  color: var(--logo-ink);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.05;
}

.chat-title-block p {
  margin: 0;
  color: var(--logo-muted);
  font-size: 1.02rem;
}

.chat-support-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(123, 198, 173, 0.2);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--logo-shadow-soft);
}

.chat-support-note span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--logo-yellow-soft);
  color: #8d7116;
  font-weight: 850;
}

.chat-support-note p {
  margin: 0;
  color: #555a70;
  font-size: 0.94rem;
  line-height: 1.48;
}

.chat-start-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  border: 1px solid rgba(140, 137, 189, 0.13);
  border-radius: 24px;
  padding: 34px 38px;
  background:
    radial-gradient(circle at 0% 0%, rgba(247, 217, 102, 0.34), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(223, 242, 233, 0.84), transparent 34%),
    linear-gradient(135deg, #fffefb 0%, #fff9e8 52%, #eef8f3 100%);
  box-shadow: var(--logo-shadow);
}

.chat-start-card span {
  color: var(--logo-lavender-ink);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.chat-start-card h3 {
  margin: 10px 0 12px;
  color: var(--logo-ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.chat-start-card p {
  max-width: 62ch;
  margin: 0;
  color: #575c70;
  font-size: 1.05rem;
  line-height: 1.62;
}

.chat-start-card img {
  width: 100%;
  max-width: 230px;
  opacity: 0.92;
  filter: drop-shadow(0 18px 28px rgba(79, 74, 118, 0.12));
}

.chat-workspace.has-messages .chat-start-card {
  display: none;
}

.chat-workspace.has-messages .chat-starters {
  display: none;
}

.chat-starters {
  display: grid;
  gap: 12px;
}

.chat-starters h3 {
  margin: 0;
  color: var(--logo-ink);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.chat-starter-grid button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--logo-line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--logo-ink);
  text-align: left;
  box-shadow: var(--logo-shadow-soft);
}

.chat-starter-grid button:hover,
.chat-starter-grid button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(123, 198, 173, 0.42);
  background: #ffffff;
  outline: none;
}

.chat-starter-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--logo-mint);
  color: #40866e;
  font-weight: 850;
}

.chat-starter-grid strong {
  font-size: 0.93rem;
  line-height: 1.24;
}

.chat-starter-grid em {
  color: var(--logo-lavender-ink);
  font-style: normal;
  font-size: 1.3rem;
}

body.chat-open .chat-thread {
  min-height: 220px;
  padding: 4px 0 0;
  gap: 16px;
  overflow: visible;
}

body.chat-open .message {
  max-width: min(72%, 760px);
  border-radius: 20px;
  box-shadow: var(--logo-shadow-soft);
}

body.chat-open .message.assistant {
  background: #ffffff;
  border-color: rgba(140, 137, 189, 0.12);
}

body.chat-open .message.user {
  background: #edf8f1;
  border-color: rgba(123, 198, 173, 0.2);
}

body.chat-open .composer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 18px 0 0;
  background: linear-gradient(rgba(252, 251, 248, 0), #fcfbf8 30%);
}

.composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(140, 137, 189, 0.16);
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--logo-shadow-soft);
}

body.chat-open .composer textarea {
  min-height: 48px;
  max-height: 152px;
  border: 0;
  border-radius: 16px;
  padding: 13px 12px;
  background: transparent;
  box-shadow: none;
}

body.chat-open .composer textarea:focus {
  box-shadow: none;
}

body.chat-open .send-button {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 22px;
}

body.chat-open .composer small {
  color: var(--logo-muted);
  font-size: 0.86rem;
}

@media (max-width: 1024px) {
  body.chat-open .app-frame {
    grid-template-columns: 1fr;
  }

  body.chat-open .app-sidebar {
    position: fixed;
  }

  body.chat-open .menu-button {
    display: inline-flex;
  }

  body.chat-open .chat-workspace {
    width: min(100% - 32px, 900px);
  }

  body.chat-open .chat-session-header,
  .chat-start-card {
    grid-template-columns: 1fr;
  }

  .chat-start-card img {
    display: none;
  }

  .chat-starter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.chat-open .app-topbar {
    height: auto;
    grid-template-columns: 42px 1fr 42px;
    padding: 12px 16px;
  }

  body.chat-open .global-search {
    grid-column: 1 / -1;
    order: 2;
  }

  body.chat-open .chat-workspace {
    width: min(100% - 24px, 560px);
    min-height: auto;
    padding-top: 22px;
  }

  .chat-support-note {
    display: none;
  }

  .chat-start-card {
    padding: 24px;
  }

  .chat-start-card h3 {
    font-size: 2.2rem;
  }

  .chat-starter-grid {
    grid-template-columns: 1fr;
  }

  body.chat-open .message {
    max-width: 90%;
  }

  .composer-row {
    grid-template-columns: 1fr;
  }

  body.chat-open .send-button {
    width: 100%;
  }
}

.soap-game-shell {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.soap-game-head,
.soap-hud,
.soap-controls {
  display: flex;
  align-items: center;
}

.soap-game-head {
  justify-content: space-between;
  gap: 12px;
}

.soap-game-head span {
  display: block;
  color: var(--brand-lavender);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.soap-game-head h2 {
  margin: 3px 0 0;
  color: #2b2f3f;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.soap-hud {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.soap-hud div {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(141, 138, 189, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(61, 60, 86, 0.06);
}

.soap-hud span,
.soap-hud strong {
  display: block;
}

.soap-hud span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.soap-hud strong {
  margin-top: 2px;
  color: #343047;
  font-size: 1.08rem;
}

.soap-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border: 1px solid rgba(105, 101, 151, 0.2);
  border-radius: 8px;
  background: #edf8ff;
  box-shadow: 0 22px 44px rgba(48, 50, 72, 0.13);
  touch-action: manipulation;
}

.soap-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.soap-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(74, 69, 108, 0.28), inset 0 0 18px rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.soap-crosshair::before,
.soap-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(74, 69, 108, 0.5);
}

.soap-crosshair::before {
  left: 50%;
  top: 7px;
  bottom: 7px;
  width: 2px;
  transform: translateX(-50%);
}

.soap-crosshair::after {
  left: 7px;
  right: 7px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.soap-weapon {
  position: absolute;
  right: 8%;
  bottom: -3%;
  width: min(34vw, 230px);
  height: min(24vw, 160px);
  min-width: 132px;
  min-height: 94px;
  pointer-events: none;
}

.soap-tank,
.soap-nozzle,
.soap-trigger {
  position: absolute;
  display: block;
}

.soap-tank {
  right: 0;
  bottom: 0;
  width: 68%;
  height: 62%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px 22px 8px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, #7fded2, #7775a8);
  box-shadow: 0 16px 26px rgba(38, 39, 51, 0.22);
}

.soap-nozzle {
  right: 58%;
  bottom: 48%;
  width: 48%;
  height: 20%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #4c4a68, #9fd5bf);
  transform: rotate(-13deg);
  transform-origin: right center;
}

.soap-trigger {
  right: 23%;
  bottom: 0;
  width: 24%;
  height: 42%;
  border: 8px solid #4c4a68;
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.soap-message {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86%, 360px);
  padding: 18px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(39, 40, 55, 0.18);
  text-align: center;
}

.soap-message[hidden] {
  display: none;
}

.soap-message strong,
.soap-message span {
  display: block;
}

.soap-message strong {
  color: #333047;
  font-size: 1.25rem;
}

.soap-message span {
  margin-top: 6px;
  color: var(--muted);
}

.soap-controls {
  display: grid;
  grid-template-columns: minmax(96px, 1.2fr) 54px minmax(74px, 1fr) minmax(82px, 1fr) 54px;
  gap: 8px;
}

.soap-control-button {
  min-height: 46px;
  border: 1px solid rgba(141, 138, 189, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: #4d4a6d;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(61, 60, 86, 0.06);
}

.soap-control-button:active,
.soap-controls .primary-button:active {
  transform: translateY(1px);
}

body .tab-bar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .soap-game-head {
    align-items: flex-start;
  }

  .soap-game-head h2 {
    font-size: 1.18rem;
  }

  .soap-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .soap-stage {
    min-height: 230px;
  }

  .soap-controls {
    grid-template-columns: 1fr 48px 1fr 1fr 48px;
  }

  .soap-controls .primary-button,
  .soap-control-button {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 0.84rem;
  }
}

body .tab-link.active {
  color: var(--logo-lavender-ink);
}
/* Guided support occupies one readable column on every screen. */
body.chat-open .chat-workspace { display: flex; flex-direction: column; width: min(760px, calc(100% - 32px)); min-height: auto; gap: 20px; padding-bottom: 40px; }
body.chat-open .chat-session-header { display: block; }
body.chat-open .chat-support-note, #chatWorkspace #chatForm, #chatWorkspace #chatThread { display: none !important; }
.guided-chat { width: 100%; box-sizing: border-box; padding: clamp(20px, 4vw, 32px); border: 1px solid #ddd8eb; border-radius: 24px; background: #fff; color: #29263d; box-shadow: 0 8px 32px #5443750a; }
.guided-eyebrow { display: block; color: #69539c; font-size: .875rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 12px; }
.guided-chat h3 { font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1.3; margin: 0 0 12px; }
.guided-chat p, .guided-chat li { font-size: 1rem; line-height: 1.6; }
.guided-chat p { margin: 0 0 20px; }
.guided-options { display: grid; gap: 12px; margin: 22px 0 12px; }
.guided-options button { width: 100%; min-height: 58px; text-align: left; white-space: normal; padding: 16px 18px; border: 1px solid #d8d0e8; border-radius: 14px; background: #f8f6fc; color: #302640; font: inherit; font-size: 1rem; line-height: 1.4; cursor: pointer; }
.guided-options button:hover { background: #eee8f8; border-color: #8060b7; }
.guided-chat button:focus-visible, .guided-chat summary:focus-visible { outline: 3px solid #6a4cab; outline-offset: 3px; }
.guided-back { padding: 12px 0; background: none; border: 0; color: #65499c; font: inherit; cursor: pointer; }
.guided-chat ol { margin: 20px 0; padding-left: 24px; }
.guided-chat li { padding-left: 6px; margin-bottom: 14px; }
.visual-next { display: flex; align-items: center; gap: 20px; padding: 22px; border: 2px solid #75609f; border-radius: 16px; background: #f2eef9; margin: 24px 0 12px; }
.visual-next > span { font-size: 3rem; color: #66508e; }
.visual-next small { display: block; font-size: .875rem; }
.visual-next strong { display: block; font-size: 2rem; }
.guided-hint { color: #605b70; }
.guided-alert { padding: 16px; border-radius: 12px; background: #fff1eb; color: #7b3421; }
.guided-chat details { margin-top: 24px; font-size: .875rem; color: #605b70; }
.guided-chat details p { margin-top: 12px; }
@media (max-width: 640px) { body.chat-open .chat-workspace { width: calc(100% - 24px); padding-top: 16px; } .guided-chat { border-radius: 18px; } }
body.chat-open .app-content { width: 100%; min-width: 0; grid-column: 2; box-sizing: border-box; }
body.chat-open .screen, body.chat-open #chatView { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 1024px) { body.chat-open .app-content { grid-column: 1; } }
