:root {
  --home-bg: #f6f7f5;
  --home-surface: #ffffff;
  --home-ink: #1b1d1c;
  --home-muted: #6d726f;
  --home-line: #dfddd7;
  --home-gold: #a87933;
  --home-shadow: 0 10px 30px rgba(31, 34, 32, .06);
}

body {
  color: var(--home-ink);
  background: var(--home-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1360px, calc(100% - 48px));
  padding: 34px 0 56px;
}

.home-header {
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin-bottom: 22px;
}

.brand-shell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-sculpture {
  width: 106px;
  height: 80px;
  position: relative;
  flex: 0 0 auto;
}

.brand-sculpture i {
  position: absolute;
  display: block;
  border: 1px solid #f2c49f;
  border-radius: 8px;
  background: #ffd9bb;
  box-shadow: 0 12px 24px rgba(187, 112, 55, .14);
}

.brand-sculpture i:nth-child(1) { width: 42px; height: 42px; left: 40px; top: 4px; }
.brand-sculpture i:nth-child(2) { width: 34px; height: 34px; left: 18px; top: 25px; background: #ffcda7; }
.brand-sculpture i:nth-child(3) { width: 48px; height: 34px; left: 45px; top: 43px; background: #ffe1c8; }
.brand-sculpture b { position: absolute; right: 0; top: 0; color: #f0a116; font-size: 23px; }

.brand { gap: 5px; }
.brand h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}
.brand h1 span { color: #f0a116; font-size: 27px; }
.brand p { color: #4f5451; font-size: 16px; }

.top-actions { gap: 10px; flex-wrap: nowrap; }
.session-pill,
.button,
button {
  min-height: 48px;
  border-color: var(--home-line);
  border-radius: 8px;
  padding: 0 17px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 18px rgba(31, 34, 32, .04);
  font-size: 13px;
}
.session-pill { color: #746147; font-weight: 700; }
.button:hover, button:hover { border-color: #c2bdb3; background: #fff; }

.hub-bar {
  gap: 22px;
  margin-bottom: 28px;
}

.search {
  display: block;
  color: var(--home-muted);
}
.search svg { left: 20px; width: 20px; height: 20px; }
.search input {
  min-height: 56px;
  border-color: var(--home-line);
  border-radius: 8px;
  padding: 0 64px 0 54px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow);
  font-size: 15px;
}
.search input:focus { border-color: #ab9c85; outline: 0; box-shadow: 0 0 0 3px rgba(168, 121, 51, .1); }
.search kbd {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  min-width: 45px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 7px;
  background: #faf9f6;
  color: #8a8f8c;
  font: 700 12px/1 inherit;
}

.client-board {
  gap: 12px;
  padding: 0;
  border: 0;
}
.client-board-head { align-items: center; }
.client-board-head h2 { color: var(--home-ink); font-size: 15px; }
.client-board-head span { display: block; color: var(--home-muted); font-size: 11px; }
.client-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}
.client-chip {
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-surface);
  box-shadow: 0 8px 24px rgba(31, 34, 32, .045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
a.client-chip:hover {
  border-color: #c4beb3;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 34, 32, .08);
  transform: translateY(-2px);
}

.client-logo { max-width: 84%; }
.client-logo-amazon { width: 124px; min-width: 0; height: 42px; }
.client-logo-vw-autos { width: 54px; min-width: 0; height: 48px; }
.client-logo-vwco { width: 76px; min-width: 0; height: 58px; }
.client-logo-nexgard { width: 136px; min-width: 0; height: 40px; }
.client-logo-nexgard-spectra { width: 146px; min-width: 0; height: 48px; }
.client-logo-frontline { width: 140px; min-width: 0; height: 36px; }
.client-logo-almapbbdo { width: 142px; min-width: 0; height: 42px; }
.client-logo-ipanema { width: 128px; min-width: 0; height: 46px; }
.client-logo-studio-emana { width: 114px; min-width: 0; height: 42px; }
.client-logo-oticas-carol { width: 128px; min-width: 0; height: 40px; }

.client-section {
  margin-top: 0;
  padding: 20px 0 24px;
  border-top: 1px solid var(--home-line);
}
.client-section:last-of-type { border-bottom: 1px solid var(--home-line); }
.section-title { margin-bottom: 12px; }
.section-title h2 { gap: 9px; font-size: 15px; }
.section-title > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 700;
}
.section-title > span svg { width: 14px; height: 14px; }
.section-symbol {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #d6c9b3;
  border-radius: 7px;
  background: #f2eadc;
  color: #7b6542;
  font-size: 11px;
  font-weight: 900;
}
.section-symbol svg { width: 14px; height: 14px; }
.section-symbol-video { border-color: #c9bbf5; background: #eee9ff; color: #6546d7; }
.section-symbol-imagem { border-color: #bcd5f4; background: #eaf3ff; color: #2867bc; }
.section-symbol-conteudo { border-color: #abd9cf; background: #e6f6f2; color: #167666; }
.section-symbol-midia { border-color: #f1caa3; background: #fff0df; color: #b46922; }
.section-symbol-planejamento { border-color: #bdd9bd; background: #ebf6eb; color: #3c7b43; }

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tool-card {
  height: 126px;
  min-height: 126px;
  grid-template-columns: 112px minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  padding: 8px 10px 8px 8px;
  border-color: var(--home-line);
  background: var(--home-surface);
  box-shadow: 0 7px 22px rgba(31, 34, 32, .04);
}
.tool-card:hover {
  border-color: #bdb7ac;
  box-shadow: 0 12px 28px rgba(31, 34, 32, .08);
  transform: translateY(-2px);
}
.tool-art {
  --art: #286ce6;
  --art-soft: #e6efff;
  width: 112px;
  height: 108px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--art-soft);
}
.tool-art::before,
.tool-art::after {
  content: "";
  position: absolute;
  display: block;
  border: 1px solid color-mix(in srgb, var(--art) 18%, transparent);
  border-radius: 8px;
}
.tool-art::before { width: 76px; height: 20px; left: -18px; bottom: 8px; transform: rotate(-18deg); }
.tool-art::after { width: 54px; height: 18px; right: -10px; top: 12px; transform: rotate(28deg); }
.tool-art-violet { --art: #7754ea; --art-soft: #eee9ff; }
.tool-art-blue { --art: #2a70eb; --art-soft: #e7f0ff; }
.tool-art-green { --art: #3b9850; --art-soft: #e5f4e8; }
.tool-art-orange { --art: #ed8b1f; --art-soft: #fff0d9; }
.tool-art-coral { --art: #d95d4c; --art-soft: #ffebe6; }
.tool-art-indigo { --art: #2a5fc9; --art-soft: #e6efff; }
.tool-icon {
  width: 54px;
  height: 54px;
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 8px;
  background: var(--art);
  color: #fff;
  box-shadow: 0 9px 20px color-mix(in srgb, var(--art) 24%, transparent);
}
.tool-icon svg { width: 25px; height: 25px; }
.tool-copy { gap: 8px; }
.tool-copy strong { font-size: 14px; line-height: 1.2; }
.tool-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #4e5451;
  font-size: 11.5px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.tool-open {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--art, #286ce6) 45%, #ccd2cf);
  border-radius: 50%;
  color: #3971c8;
}
.tool-open svg { width: 17px; height: 17px; }
.pipeline-section { display: none; }

.empty-state {
  margin: 20px 0 0;
  border-color: var(--home-line);
  color: var(--home-muted);
  background: var(--home-surface);
  text-align: center;
}

.login {
  margin-top: 12vh;
  border-color: var(--home-line);
  background: var(--home-surface);
  box-shadow: var(--home-shadow);
}
.login h1 { font-size: 30px; }
.login input { border-color: var(--home-line); background: #fafafa; }
.login .primary { border-color: #1e5bd8; background: #1e5bd8; }

@media (max-width: 1120px) {
  .shell { width: min(100% - 32px, 1024px); }
  .client-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-actions { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 24px); padding: 20px 0 38px; }
  .home-header { grid-template-columns: 1fr; margin-bottom: 16px; }
  .brand-shell { gap: 10px; }
  .brand-sculpture { width: 70px; height: 64px; transform: scale(.78); transform-origin: left center; margin-right: -12px; }
  .brand h1 { font-size: 34px; }
  .brand h1 span { font-size: 21px; }
  .brand p { font-size: 13px; }
  .top-actions { justify-content: flex-start; }
  .session-pill { width: 100%; }
  .button { flex: 1; }
  .hub-bar { gap: 18px; }
  .search input { min-height: 52px; }
  .client-board-head span { display: none; }
  .client-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .client-chip { min-height: 72px; padding: 10px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { height: 116px; min-height: 116px; grid-template-columns: 92px minmax(0, 1fr) 32px; }
  .tool-art { width: 92px; height: 98px; }
  .tool-open { width: 32px; height: 32px; }
}

@media (max-width: 420px) {
  .brand-sculpture { display: none; }
  .brand h1 { font-size: 31px; }
  .search kbd { display: none; }
  .search input { padding-right: 16px; }
  .client-logo { max-width: 92%; transform: scale(.88); }
  .tool-card { grid-template-columns: 78px minmax(0, 1fr) 30px; gap: 10px; }
  .tool-art { width: 78px; height: 96px; }
  .tool-icon { width: 48px; height: 48px; }
}
