:root {
  --bg: #262626;
  --bg-elev: rgba(38, 38, 38, 0.9);
  --bg-soft: rgba(68, 61, 54, 0.78);
  --panel: rgba(33, 32, 30, 0.88);
  --panel-2: rgba(27, 26, 24, 0.94);
  --panel-3: rgba(255, 255, 255, 0.028);
  --line: rgba(233, 224, 209, 0.11);
  --line-soft: rgba(233, 224, 209, 0.075);
  --line-strong: rgba(233, 224, 209, 0.16);
  --text: #f9f8f4;
  --text-soft: #d7c9ae;
  --text-dark: #f9f8f4;
  --text-dark-soft: rgba(215, 201, 174, 0.84);
  --accent: #a58761;
  --accent-soft: rgba(165, 135, 97, 0.16);
  --green: #e9e0d1;
  --red: #d7c9ae;
  --blue: #f9f8f4;
  --gold: #d7c9ae;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-w: 258px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(165, 135, 97, 0.18), transparent 26%),
    radial-gradient(circle at 100% 18%, rgba(233, 224, 209, 0.08), transparent 24%),
    linear-gradient(145deg, #1c1b19, #262626 48%, #2f2a26 100%);
}

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(215, 201, 174, 0.9);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  min-height: 100vh;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  padding-right: 12px;
  border-right: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top left, rgba(215, 201, 174, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(35, 34, 32, 0.98), rgba(26, 25, 24, 0.98)),
    rgba(32, 30, 29, 0.98);
  color: var(--text);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 135, 97, 0.88) rgba(255, 255, 255, 0.05);
  scrollbar-gutter: stable;
}

.sidebar::-webkit-scrollbar {
  width: 12px;
}

.sidebar::-webkit-scrollbar-track {
  margin-block: 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(233, 224, 209, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(28, 27, 25, 0.95);
  background:
    linear-gradient(180deg, rgba(233, 224, 209, 0.88), rgba(165, 135, 97, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 6px 14px rgba(0, 0, 0, 0.18);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(249, 248, 244, 0.94), rgba(185, 152, 109, 0.96));
}

.brand {
  display: block;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-logo {
  display: block;
  width: min(100%, 214px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 137, 59, 0.95), rgba(132, 81, 26, 0.95));
  color: #fff8ed;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.brand h1,
.page-hero h2,
.section-heading h3,
.workspace-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.brand h1 {
  font-size: 1.05rem;
}

.brand p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.nav-group {
  margin-top: 18px;
}

.nav-label {
  display: block;
  margin: 0 12px 10px;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid rgba(233, 224, 209, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.014)),
    transparent;
  color: var(--text);
  text-align: left;
  transition: 180ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    0 8px 20px rgba(0, 0, 0, 0.06);
}

.nav-btn:hover,
.nav-btn.active {
  transform: translateY(-1px);
  border-color: rgba(165, 135, 97, 0.3);
  background:
    linear-gradient(135deg, rgba(165, 135, 97, 0.18), rgba(215, 201, 174, 0.08) 52%, rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
  box-shadow:
    inset 0 0 0 1px rgba(165, 135, 97, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.1);
}

.nav-btn small {
  display: block;
  color: var(--text-soft);
}

.nav-btn-body {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
  padding-right: 4px;
}

.nav-btn-body strong {
  display: block;
  font-size: 1rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.nav-btn-body small {
  font-size: 0.78rem;
  line-height: 1.28;
  max-width: 21ch;
}

.nav-btn-indicator {
  width: 24px;
  min-width: 24px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  color: rgba(249, 248, 244, 0.9);
  font-size: 1.28rem;
  line-height: 1;
}

.sidebar-foot {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  padding: 16px 18px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.sidebar-status-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sidebar-foot-block {
  display: grid;
  gap: 8px;
}

.sidebar-foot-copy {
  display: grid;
  gap: 6px;
}

.sidebar-foot-copy p {
  margin: 0;
}

.sidebar-foot-status {
  display: grid;
  gap: 6px;
}

.sidebar-foot-status small {
  color: var(--text-soft);
  line-height: 1.45;
}

.sidebar-foot-title {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.compact-field {
  gap: 0;
}

.compact-field select {
  min-height: 54px;
}

.sidebar-foot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.sidebar-foot-actions .ghost-btn {
  width: 100%;
  justify-content: center;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sync-badge.is-success {
  border-color: rgba(109, 193, 110, 0.28);
  background: rgba(85, 134, 78, 0.14);
  color: #d9f0d6;
}

.sync-badge.is-warn {
  border-color: rgba(217, 190, 132, 0.28);
  background: rgba(183, 146, 79, 0.14);
  color: #f0e2ba;
}

.sync-badge.is-danger {
  border-color: rgba(210, 122, 122, 0.28);
  background: rgba(138, 65, 65, 0.15);
  color: #f4d0d0;
}

.sync-badge.is-neutral {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.main {
  padding: 24px 28px 34px;
}

.app-utility-bar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin-bottom: 22px;
  border-radius: 32px;
  border: 1px solid rgba(233, 224, 209, 0.07);
  overflow: visible;
  background:
    radial-gradient(circle at top center, rgba(165, 135, 97, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(39, 36, 33, 0.98), rgba(30, 28, 26, 0.985));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 34px rgba(0, 0, 0, 0.16);
}

.app-utility-home-slot {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px 12px;
  background: transparent;
}

.app-utility-home-slot::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  width: 1px;
  height: calc(100% - 36px);
  background: linear-gradient(180deg, transparent, rgba(233, 224, 209, 0.08), transparent);
}

.app-utility-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 16px 16px;
}

.app-global-search {
  position: relative;
  min-width: 0;
}

.global-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px 0 18px;
  border-radius: 24px;
  border: 1px solid rgba(233, 224, 209, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 22px rgba(0, 0, 0, 0.1);
}

.global-search-field:focus-within {
  border-color: rgba(165, 135, 97, 0.24);
}

.search-icon,
.icon-core {
  display: inline-grid;
  place-items: center;
  color: rgba(233, 224, 209, 0.74);
  flex-shrink: 0;
}

.search-icon svg,
.icon-core svg {
  width: 18px;
  height: 18px;
  display: block;
}

.global-search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.global-search-field input::placeholder {
  color: color-mix(in srgb, var(--text-soft) 76%, #fff 24%);
}

.global-search-clear {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background:
    radial-gradient(circle at top right, rgba(215, 201, 174, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(38, 38, 38, 0.98), rgba(31, 30, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 48px rgba(0, 0, 0, 0.26);
}

.search-result-group {
  display: grid;
  gap: 10px;
}

.search-result-group-label {
  margin: 0;
  color: rgba(249, 248, 244, 0.52);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.search-highlight {
  padding: 0 0.18em;
  border-radius: 0.35em;
  background: rgba(165, 135, 97, 0.22);
  color: #fff5e8;
}

.global-search-result {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(233, 224, 209, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
  color: var(--text);
}

.global-search-result:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 201, 174, 0.18);
}

.global-search-result-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #5f4e3d;
  background: rgba(215, 201, 174, 0.2);
}

.global-search-result-icon svg,
.notification-item-icon svg,
.home-card-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.global-search-result-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.global-search-result-copy strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.global-search-result-copy span,
.global-search-empty {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.global-search-result-type {
  color: rgba(249, 248, 244, 0.68);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.app-utility-actions {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;
  justify-self: end;
}

.secondary-btn,
.notification-fab,
.home-fab {
  border: 1px solid rgba(165, 135, 97, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  color: #f9f8f4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.secondary-btn {
  min-height: 58px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 170px;
  white-space: nowrap;
}

.secondary-btn.is-active {
  border-color: rgba(215, 201, 174, 0.52);
  background:
    linear-gradient(180deg, rgba(215, 201, 174, 0.16), rgba(165, 135, 97, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.utility-pill {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #201c18;
  background: linear-gradient(180deg, #ead7b0, #c8aa73);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.secondary-btn:hover,
.notification-fab:hover,
.home-fab:hover,
.notification-center.is-open .notification-fab {
  transform: translateY(-1px);
  border-color: rgba(215, 201, 174, 0.52);
  background:
    linear-gradient(180deg, rgba(215, 201, 174, 0.16), rgba(165, 135, 97, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.notification-center {
  position: relative;
}

.notification-fab,
.home-fab {
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  position: relative;
}

.utility-home-fab {
  width: 56px;
  height: 56px;
  border-color: rgba(165, 135, 97, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.utility-home-fab .icon-core svg {
  width: 20px;
  height: 20px;
}

.app-utility-home-slot .home-fab:hover {
  border-color: rgba(215, 201, 174, 0.42);
}

.secondary-btn .icon-core,
.notification-fab .icon-core,
.home-fab .icon-core {
  color: rgba(249, 248, 244, 0.9);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -1px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c66f5f, #9f4136);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 35;
  width: clamp(420px, 46vw, 760px);
  max-width: calc(100vw - 32px);
  max-height: min(78vh, 760px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  overflow: hidden;
  overflow-y: auto;
  isolation: isolate;
  scrollbar-gutter: stable;
  background:
    linear-gradient(180deg, rgba(34, 31, 28, 0.985), rgba(28, 26, 24, 0.985)),
    #24211f;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 26px 54px rgba(0, 0, 0, 0.28);
}

.notifications-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(215, 201, 174, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.notifications-panel > * {
  position: relative;
  z-index: 1;
}

.notifications-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notifications-panel-head h3 {
  margin: 0;
}

.notification-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-item {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
  color: var(--text);
}

.notification-item:hover {
  transform: translateY(-1px);
}

.notification-item.is-read {
  opacity: 0.88;
}

.notification-item.tone-red {
  border-color: rgba(198, 111, 95, 0.24);
}

.notification-item.tone-gold,
.notification-item.tone-blue {
  border-color: rgba(165, 135, 97, 0.18);
}

.notification-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.notification-item-badges,
.notification-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-item-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.notification-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: rgba(249, 248, 244, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(215, 201, 174, 0.18);
  border: 1px solid rgba(233, 224, 209, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.12);
  align-self: start;
  flex-shrink: 0;
}

.notification-item-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.notification-item-icon-red {
  color: #ffd8d0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 215, 206, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(198, 111, 95, 0.42), rgba(118, 60, 49, 0.5));
  border-color: rgba(198, 111, 95, 0.34);
}

.notification-item-icon-gold {
  color: #f8efe0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 247, 232, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(165, 135, 97, 0.44), rgba(86, 67, 44, 0.5));
  border-color: rgba(215, 201, 174, 0.26);
}

.notification-item-icon-blue {
  color: #fff7e9;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(215, 201, 174, 0.34), rgba(93, 83, 68, 0.46));
  border-color: rgba(233, 224, 209, 0.24);
}

.notification-item-copy {
  display: block;
  min-width: 0;
  white-space: normal;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notification-item-actions {
  margin-top: 2px;
  row-gap: 10px;
  align-items: center;
}

.notification-item-head strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.22;
}

.notification-item-badges {
  justify-content: flex-end;
}

.notifications-panel::-webkit-scrollbar {
  width: 10px;
}

.notifications-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

.notifications-panel::-webkit-scrollbar-thumb {
  background: rgba(215, 201, 174, 0.36);
  border-radius: 999px;
  border: 2px solid rgba(34, 31, 28, 0.6);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.topbar-home {
  display: block;
}

.home-hero-panel {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(233, 224, 209, 0.12), transparent 24%),
    radial-gradient(circle at 14% 100%, rgba(165, 135, 97, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(233, 224, 209, 0.1);
  box-shadow: var(--shadow);
}

.home-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.topbar-module {
  display: block;
}

.module-hero-panel {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(215, 201, 174, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.016);
  border: 1px solid rgba(233, 224, 209, 0.08);
  box-shadow: var(--shadow);
}

.module-hero-panel-planos {
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(215, 201, 174, 0.14), transparent 24%),
    radial-gradient(circle at 14% 100%, rgba(165, 135, 97, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.016);
}

.module-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: 12px;
  align-items: stretch;
}

.module-hero-panel-planos .module-hero-main {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 12px;
}

.module-hero-copy {
  display: grid;
  align-content: start;
  gap: 6px;
}

.module-hero-copy-planos {
  gap: 6px;
  align-content: start;
}

.module-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.4rem, 1.92vw, 1.9rem);
  font-weight: 700;
  line-height: 0.98;
  max-width: none;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.module-hero-copy-planos h2 {
  font-size: clamp(1.42rem, 1.96vw, 1.94rem);
  max-width: none;
  font-weight: 700;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.module-hero-copy p {
  margin: 0;
  max-width: 54ch;
  color: rgba(249, 248, 244, 0.9);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.24;
}

.module-hero-copy-planos p {
  max-width: 46ch;
  color: rgba(249, 248, 244, 0.9);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.24;
}

.module-hero-side {
  display: grid;
  align-content: start;
}

.module-hero-side-planos {
  gap: 8px;
}

.home-hero-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-hero-copy h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 0.94;
  max-width: 10.8ch;
  letter-spacing: -0.05em;
  font-weight: 560;
  margin: 0;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.home-hero-copy p {
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(249, 248, 244, 0.88);
  font-weight: 480;
}

.hero-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.home-hero-chip-row {
  margin-top: 8px;
}

.home-hero-side {
  display: block;
}

.home-hero-feature-card {
  height: 100%;
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(233, 224, 209, 0.1);
  background:
    radial-gradient(circle at top right, rgba(249, 248, 244, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 38px rgba(0, 0, 0, 0.16);
}

.home-hero-feature-card > strong {
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 620;
}

.home-hero-feature-list {
  display: grid;
  gap: 12px;
}

.home-hero-feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid rgba(233, 224, 209, 0.08);
}

.home-hero-feature-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.home-hero-feature-item > span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(165, 135, 97, 0.16);
  border: 1px solid rgba(233, 224, 209, 0.08);
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.home-hero-feature-item div {
  display: grid;
  gap: 3px;
}

.home-hero-feature-item strong {
  font-size: 0.92rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.home-hero-feature-item small {
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 470;
}

.hero-mini-panel,
.hero-stat-card {
  padding: 9px 11px;
  border-radius: 16px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.014);
}

.hero-mini-panel {
  display: grid;
  gap: 3px;
}

.topbar-module .hero-mini-panel {
  min-height: 96px;
  align-content: center;
}

.hero-mini-panel-planos {
  padding: 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(215, 201, 174, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.16);
}

.hero-mini-panel.compact {
  padding: 10px 12px;
}

.hero-mini-kicker,
.hero-stat-label {
  margin: 0;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.64rem;
}

.hero-mini-panel strong {
  font-size: 0.94rem;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-mini-panel-planos strong {
  font-size: 0.94rem;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-mini-panel p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  line-height: 1.24;
}

.hero-mini-panel-planos p:last-child {
  font-size: 0.74rem;
  line-height: 1.24;
}

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

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

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

.hero-stat-grid-planos {
  gap: 8px;
}

.hero-stat-grid-compact .hero-stat-card {
  min-height: 0;
}

.hero-stat-card {
  display: grid;
  gap: 3px;
  min-height: 0;
}

.home-hero-stat-card {
  min-height: 94px;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(233, 224, 209, 0.1);
}

.home-hero-stat-card strong {
  font-size: 1.42rem;
  line-height: 1;
  font-weight: 620;
}

.home-hero-stat-card small {
  color: rgba(215, 201, 174, 0.82);
  font-size: 0.76rem;
  line-height: 1.35;
}

.hero-stat-grid-planos .hero-stat-card {
  padding: 10px 12px;
  border-radius: 16px;
  min-height: 66px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
  border-color: rgba(233, 224, 209, 0.09);
}

.hero-stat-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.04em;
}

.topbar-module .hero-stat-card {
  min-height: 66px;
}

.topbar-module .hero-stat-grid-wide .hero-stat-card {
  padding: 10px 12px;
  min-height: 66px;
}

.hero-stat-grid-planos .hero-stat-card strong {
  font-size: 0.9rem;
  line-height: 1;
}

.page-hero {
  display: grid;
  gap: 8px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 470;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark-soft);
}

.page-kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.page-hero h2 {
  font-size: clamp(1.9rem, 2.6vw, 3.1rem);
  line-height: 1.04;
  max-width: 12ch;
}

.page-hero p {
  margin: 0;
  color: var(--text-dark-soft);
  max-width: 76ch;
  line-height: 1.65;
}

.status-panel {
  min-width: 280px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(233, 224, 209, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.status-panel span,
.status-panel small {
  color: var(--text-soft);
}

.workspace {
  display: grid;
  gap: 18px;
}

.module-grid,
.kpi-guide-grid {
  display: grid;
  gap: 14px;
}

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

.kpi-guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.surface,
.band,
.table-wrap,
.detail-panel,
.documents-panel,
.builder {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid rgba(233, 224, 209, 0.085);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.financeiro-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.planos-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.finance-manual-panel,
.finance-agenda-panel,
.planos-grid .builder,
.planos-grid .detail-panel {
  min-height: 100%;
  width: 100%;
}

.finance-manual-panel {
  padding: 20px 22px;
}

.financeiro-grid .section-heading {
  margin-bottom: 18px;
}

.finance-manual-panel .section-heading {
  margin-bottom: 12px;
}

.finance-manual-panel .section-heading h3 {
  font-size: 1.12rem;
}

.finance-manual-panel .section-heading p {
  margin-top: 2px;
  font-size: 0.92rem;
  line-height: 1.42;
  max-width: 64ch;
}

.finance-manual-panel .form-grid {
  gap: 10px 12px;
}

.finance-manual-panel .field {
  gap: 6px;
}

.finance-manual-panel .field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.finance-manual-panel .field input,
.finance-manual-panel .field select,
.finance-manual-panel .field textarea {
  padding: 10px 12px;
  border-radius: 13px;
}

.finance-manual-panel .field textarea {
  min-height: 84px;
}

.finance-manual-panel .action-row {
  gap: 10px;
  margin-top: 2px;
}

.finance-manual-panel .solid-btn,
.finance-manual-panel .ghost-btn {
  padding-top: 9px;
  padding-bottom: 9px;
}

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

.kpi-card {
  padding: 22px;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 24px;
  border: 1px solid rgba(233, 224, 209, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.22);
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  opacity: 1;
}

.kpi-card-blue {
  background:
    radial-gradient(circle at top right, rgba(249, 248, 244, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(165, 135, 97, 0.34), rgba(215, 201, 174, 0.16) 42%, rgba(249, 248, 244, 0.06)),
    var(--bg-elev);
  border-color: rgba(215, 201, 174, 0.3);
}

.kpi-card-blue::before {
  background: linear-gradient(90deg, rgba(215, 201, 174, 0.16), rgba(249, 248, 244, 0.74), rgba(215, 201, 174, 0.16));
}

.kpi-card-green {
  background:
    radial-gradient(circle at top right, rgba(249, 248, 244, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(165, 135, 97, 0.58), rgba(215, 201, 174, 0.24) 42%, rgba(249, 248, 244, 0.08)),
    var(--bg-elev);
  border-color: rgba(233, 224, 209, 0.38);
}

.kpi-card-green::before {
  background: linear-gradient(90deg, rgba(215, 201, 174, 0.18), rgba(249, 248, 244, 0.84), rgba(215, 201, 174, 0.18));
}

.kpi-card-orange {
  background:
    radial-gradient(circle at top right, rgba(215, 201, 174, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(165, 135, 97, 0.46), rgba(215, 201, 174, 0.2) 42%, rgba(249, 248, 244, 0.05)),
    var(--bg-elev);
  border-color: rgba(215, 201, 174, 0.32);
}

.kpi-card-orange::before {
  background: linear-gradient(90deg, rgba(165, 135, 97, 0.18), rgba(249, 248, 244, 0.74), rgba(165, 135, 97, 0.18));
}

.kpi-card-red {
  background:
    radial-gradient(circle at top right, rgba(255, 210, 198, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(129, 48, 42, 0.96), rgba(158, 66, 58, 0.92) 46%, rgba(183, 93, 83, 0.88));
  border-color: rgba(230, 164, 149, 0.48);
}

.kpi-card-red::before {
  background: linear-gradient(90deg, rgba(255, 210, 198, 0.2), rgba(255, 242, 238, 0.68), rgba(255, 210, 198, 0.2));
}

.kpi-card-home-closing {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, rgba(249, 248, 244, 0.96), rgba(233, 224, 209, 0.88) 44%, rgba(215, 201, 174, 0.78)),
    #f4eee4;
  border-color: rgba(215, 201, 174, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 20px 40px rgba(0, 0, 0, 0.18);
}

.kpi-card-home-closing::before {
  background: linear-gradient(90deg, rgba(165, 135, 97, 0.12), rgba(255, 255, 255, 0.96), rgba(165, 135, 97, 0.12));
}

.kpi-card .eyebrow {
  margin: 0 0 12px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kpi-card .kpi-value {
  font-size: clamp(1.34rem, 1.95vw, 2.02rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: pretty;
}

.kpi-card .kpi-meta {
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.kpi-card > div {
  min-width: 0;
}

.kpi-card .kpi-value.kpi-value-medium {
  font-size: clamp(1.16rem, 1.72vw, 1.72rem);
}

.kpi-card .kpi-value.kpi-value-compact {
  font-size: clamp(0.98rem, 1.42vw, 1.38rem);
  letter-spacing: -0.05em;
}

.kpi-card-blue .eyebrow,
.kpi-card-green .eyebrow,
.kpi-card-orange .eyebrow,
.kpi-card-red .eyebrow {
  color: rgba(249, 248, 244, 0.82);
}

.kpi-card-blue .kpi-value,
.kpi-card-green .kpi-value,
.kpi-card-orange .kpi-value,
.kpi-card-red .kpi-value {
  color: #fff;
}

.kpi-card-blue .kpi-meta,
.kpi-card-green .kpi-meta,
.kpi-card-orange .kpi-meta,
.kpi-card-red .kpi-meta {
  color: rgba(249, 248, 244, 0.82);
}

.kpi-card-home-closing .eyebrow {
  color: rgba(92, 73, 49, 0.88);
}

.kpi-card-home-closing .kpi-value {
  color: #221c15;
}

.kpi-card-home-closing .kpi-meta {
  color: rgba(61, 49, 35, 0.86);
}

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

.section-heading h3 {
  font-size: 1.25rem;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--text-dark-soft);
  line-height: 1.55;
}

.section-heading-compact {
  align-items: flex-start;
  margin-bottom: 12px;
}

.section-heading-compact h3 {
  font-size: 1.08rem;
}

.section-heading-compact p {
  margin-top: 3px;
  font-size: 0.92rem;
}

.action-row,
.filter-row,
.chip-row,
.builder-row,
.inline-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
}

.chip.active,
.ghost-btn:hover,
.tab-btn.active {
  border-color: rgba(165, 135, 97, 0.28);
  background:
    linear-gradient(180deg, rgba(215, 201, 174, 0.16), rgba(165, 135, 97, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.ghost-btn,
.solid-btn,
.danger-btn,
.tab-btn {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: 180ms ease;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.1);
}

.ghost-btn,
.tab-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(233, 224, 209, 0.1);
  color: var(--text);
}

.solid-btn {
  background:
    linear-gradient(180deg, rgba(225, 208, 170, 0.98), rgba(199, 175, 128, 0.96)),
    rgba(215, 201, 174, 0.92);
  color: #32281d;
  border-color: rgba(239, 228, 204, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 14px 26px rgba(0, 0, 0, 0.16);
}

.danger-btn {
  background: rgba(198, 111, 95, 0.16);
  color: #f3d3cc;
  border-color: rgba(198, 111, 95, 0.24);
}

.solid-btn:hover,
.danger-btn:hover,
.ghost-btn:hover,
.tab-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn.tiny,
.solid-btn.tiny,
.danger-btn.tiny {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.92rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 18px;
}

.ghost-btn.tiny {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(233, 224, 209, 0.12);
  color: rgba(249, 248, 244, 0.94);
}

.solid-btn.tiny {
  min-width: 108px;
}

.table-action-btn {
  min-width: auto;
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 14px rgba(0, 0, 0, 0.12);
}

.review-action-col {
  width: 1%;
  white-space: nowrap;
}

.review-action-cell {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.danger-btn.tiny {
  background:
    linear-gradient(180deg, rgba(198, 111, 95, 0.24), rgba(198, 111, 95, 0.14)),
    rgba(198, 111, 95, 0.14);
  border-color: rgba(198, 111, 95, 0.28);
}

.cadastros-switcher-panel {
  margin-bottom: 18px;
}

.cadastros-switcher-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.table-wrap {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(233, 224, 209, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(27, 26, 24, 0.94);
  color: var(--text);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(233, 224, 209, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.034);
}

.mono {
  font-variant-numeric: tabular-nums;
}

.align-right {
  text-align: right;
}

.muted {
  color: var(--text-dark-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.tag.ok {
  background: rgba(215, 201, 174, 0.12);
  color: #f9f8f4;
  border-color: rgba(215, 201, 174, 0.22);
}

.tag.warn {
  background: rgba(165, 135, 97, 0.16);
  color: #f0e7d9;
  border-color: rgba(165, 135, 97, 0.24);
}

.tag.danger {
  background: rgba(239, 125, 97, 0.16);
  color: #f7d8d2;
  border-color: rgba(239, 125, 97, 0.25);
}

.tag.info {
  background: rgba(255, 255, 255, 0.07);
  color: #f1ece4;
  border-color: rgba(233, 224, 209, 0.18);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.panorama-list {
  display: grid;
  gap: 12px;
}

.panorama-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 0.8fr));
  gap: 12px;
  padding: 0 4px;
  color: var(--text-dark-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panorama-row {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.026),
    0 14px 28px rgba(0, 0, 0, 0.12);
}

.panorama-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panorama-row-title {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.panorama-row-kicker {
  color: var(--text-dark-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panorama-row-head strong {
  font-size: 1.08rem;
  line-height: 1.25;
  min-width: 0;
  text-wrap: balance;
}

.panorama-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.panorama-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(27, 26, 24, 0.44);
  border: 1px solid rgba(233, 224, 209, 0.06);
}

.panorama-metric-label {
  color: var(--text-dark-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.panorama-metric strong {
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.band {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(215, 201, 174, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(38, 38, 38, 0.98), rgba(31, 30, 28, 0.98));
  color: var(--text);
}

.band p,
.band li,
.band small {
  color: var(--text-soft);
}

.chart {
  display: grid;
  gap: 16px;
}

.cashflow-chart-shell {
  gap: 18px;
}

.cashflow-header {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.cashflow-header-copy {
  display: grid;
  align-self: stretch;
}

.cashflow-header-copy h3 {
  margin: 0;
  font-size: 1.25rem;
}

.cashflow-header-copy p {
  margin: 6px 0 0;
  color: var(--text-dark-soft);
  line-height: 1.48;
  max-width: 34ch;
}

.cashflow-header-controls {
  display: grid;
  gap: 0;
  justify-items: stretch;
  justify-self: end;
  width: min(100%, 780px);
}

.cashflow-range-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.cashflow-date-field {
  min-width: 0;
}

.cashflow-date-field label {
  margin-bottom: 6px;
  line-height: 1;
}

.cashflow-date-field input {
  min-height: 52px;
  padding-inline: 16px;
  min-width: 0;
}

.cashflow-action-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cashflow-action-block label {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}

.cashflow-action-row {
  display: grid;
  gap: 6px;
  align-items: stretch;
}

.cashflow-action-row .ghost-btn {
  min-height: 52px;
  padding-inline: 18px;
  width: 100%;
}

.cashflow-action-block .ghost-btn {
  width: 100%;
}

.ghost-btn-subtle {
  min-height: 40px;
  font-size: 0.78rem;
  opacity: 0.88;
}

.cashflow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(233, 224, 209, 0.08);
}

.cashflow-legend-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.cashflow-legend-btn.is-muted {
  opacity: 0.44;
}

.cashflow-legend-btn.is-active .cashflow-legend-item {
  color: var(--text);
}

.cashflow-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  white-space: nowrap;
}

.cashflow-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.cashflow-legend-swatch.line {
  width: 28px;
  height: 0;
  border: 0;
  border-top: 3px solid #4d93f7;
  border-radius: 999px;
  position: relative;
}

.cashflow-legend-swatch.line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4d93f7;
  box-shadow: 0 0 0 3px rgba(77, 147, 247, 0.18);
}

.cashflow-legend-swatch.aporte-real {
  background: rgba(92, 168, 87, 0.9);
}

.cashflow-legend-swatch.aporte-prev {
  background: rgba(92, 168, 87, 0.15);
  border-color: rgba(109, 202, 102, 0.72);
}

.cashflow-legend-swatch.injecao {
  background: rgba(212, 165, 52, 0.92);
}

.cashflow-legend-swatch.repasse-real {
  background: rgba(210, 92, 83, 0.92);
}

.cashflow-legend-swatch.repasse-prev {
  background: rgba(210, 92, 83, 0.14);
  border-color: rgba(255, 110, 101, 0.82);
}

.cashflow-legend-swatch.devolucao {
  background: rgba(212, 165, 52, 0.12);
  border-color: rgba(240, 194, 67, 0.82);
}

.cashflow-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 135, 97, 0.78) rgba(255, 255, 255, 0.04);
}

.cashflow-scroll::-webkit-scrollbar {
  height: 12px;
}

.cashflow-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.cashflow-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(31, 30, 28, 0.98);
  background: linear-gradient(90deg, rgba(233, 224, 209, 0.86), rgba(165, 135, 97, 0.94));
}

.cashflow-canvas {
  position: relative;
}

.cashflow-svg {
  display: block;
  width: 100%;
  height: auto;
}

.cashflow-grid-line,
.cashflow-grid-vertical {
  stroke: rgba(233, 224, 209, 0.08);
  stroke-width: 1;
}

.cashflow-zero-line {
  stroke: rgba(233, 224, 209, 0.22);
  stroke-width: 1.2;
}

.cashflow-axis-text {
  fill: rgba(233, 224, 209, 0.72);
  font-size: 12px;
  font-family: "Outfit", sans-serif;
}

.cashflow-axis-text-left {
  text-anchor: end;
}

.cashflow-axis-text-right {
  text-anchor: start;
}

.cashflow-axis-text-bottom {
  text-anchor: middle;
}

.cashflow-bar {
  shape-rendering: geometricPrecision;
}

.cashflow-bar-aporte-real {
  fill: rgba(92, 168, 87, 0.86);
}

.cashflow-bar-aporte-prev {
  fill: rgba(92, 168, 87, 0.16);
  stroke: rgba(109, 202, 102, 0.84);
  stroke-width: 1.2;
}

.cashflow-bar-injecao {
  fill: rgba(212, 165, 52, 0.92);
}

.cashflow-bar-repasse-real {
  fill: rgba(210, 92, 83, 0.88);
}

.cashflow-bar-repasse-prev {
  fill: rgba(210, 92, 83, 0.14);
  stroke: rgba(255, 110, 101, 0.82);
  stroke-width: 1.2;
}

.cashflow-bar-devolucao {
  fill: rgba(212, 165, 52, 0.12);
  stroke: rgba(240, 194, 67, 0.84);
  stroke-width: 1.2;
}

.cashflow-balance-line {
  fill: none;
  stroke: #4d93f7;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px rgba(77, 147, 247, 0.18));
}

.cashflow-balance-point {
  fill: #4d93f7;
  stroke: rgba(18, 18, 18, 0.9);
  stroke-width: 3;
}

.cashflow-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cashflow-hotspot {
  position: absolute;
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
  outline: none;
  border-radius: 999px;
}

.cashflow-hotspot-line {
  position: absolute;
  inset: 0 auto 0 calc(50% - 0.5px);
  width: 1px;
  background: linear-gradient(180deg, rgba(77, 147, 247, 0), rgba(77, 147, 247, 0.48), rgba(77, 147, 247, 0));
  opacity: 0;
  transition: opacity 180ms ease;
}

.cashflow-tooltip {
  position: absolute;
  top: 50%;
  min-width: 290px;
  max-width: 340px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background: rgba(8, 8, 8, 0.9);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 4;
}

.cashflow-hotspot.align-left .cashflow-tooltip {
  left: 0;
}

.cashflow-hotspot.align-center .cashflow-tooltip {
  left: 50%;
  transform: translate(-50%, -50%);
}

.cashflow-hotspot:hover .cashflow-tooltip,
.cashflow-hotspot:focus-visible .cashflow-tooltip {
  opacity: 1;
}

.cashflow-hotspot.align-right .cashflow-tooltip {
  right: 0;
}

.cashflow-tooltip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.cashflow-tooltip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.cashflow-tooltip li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f5efe6;
  line-height: 1.35;
}

.cashflow-tip-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cashflow-tip-line {
  background: #4d93f7;
}

.cashflow-tip-aporte-real {
  background: rgba(92, 168, 87, 0.9);
}

.cashflow-tip-aporte-prev {
  background: rgba(92, 168, 87, 0.16);
  border: 1px solid rgba(109, 202, 102, 0.84);
}

.cashflow-tip-injecao {
  background: rgba(212, 165, 52, 0.92);
}

.cashflow-tip-repasse-real {
  background: rgba(210, 92, 83, 0.92);
}

.cashflow-tip-repasse-prev {
  background: rgba(210, 92, 83, 0.14);
  border: 1px solid rgba(255, 110, 101, 0.82);
}

.cashflow-tip-devolucao {
  background: rgba(212, 165, 52, 0.12);
  border: 1px solid rgba(240, 194, 67, 0.84);
}

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

.cashflow-summary-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
}

.cashflow-summary-card span {
  color: var(--text-dark-soft);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cashflow-summary-card strong {
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cashflow-summary-card small {
  color: var(--text-soft);
  line-height: 1.45;
}

.insights-list,
.metric-list {
  display: grid;
  gap: 12px;
}

.insight-item,
.metric-item,
.detail-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-item:last-child,
.metric-item:last-child,
.detail-list li:last-child {
  border-bottom: none;
}

.metric-item strong,
.insight-item strong {
  display: block;
}

.detail-panel {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid rgba(233, 224, 209, 0.085);
}

.home-card {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 30%),
    linear-gradient(145deg, rgba(246, 241, 232, 0.98), rgba(231, 222, 207, 0.96));
  border: 1px solid rgba(215, 201, 174, 0.28);
  border-radius: 24px;
  padding: 22px 22px 18px;
  min-height: 168px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 16px 30px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(215, 201, 174, 0.08), color-mix(in srgb, var(--card-accent) 54%, #fff 46%), rgba(215, 201, 174, 0.08));
  opacity: 0.78;
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 48%, rgba(215, 201, 174, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 20px 36px rgba(0, 0, 0, 0.18);
}

.home-card-accent-glow {
  position: absolute;
  top: -28px;
  right: -12px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 18%, transparent) 0%, transparent 72%);
  pointer-events: none;
  opacity: 0.92;
}

.home-card-top {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.home-card-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-card-heading {
  display: grid;
  gap: 2px;
}

.home-card-top h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.14;
  color: #2f2923;
  letter-spacing: -0.03em;
}

.home-card-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  padding-right: 8px;
}

.home-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #625749;
  line-height: 1.62;
}

.home-card-icon {
  min-width: 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 14px rgba(0, 0, 0, 0.12);
}

.home-card-kicker {
  color: rgba(81, 69, 55, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

.home-card.orange .home-card-icon {
  color: #5f4e3d;
  background: rgba(165, 135, 97, 0.18);
}

.home-card.green .home-card-icon {
  color: #4d4338;
  background: rgba(233, 224, 209, 0.3);
}

.home-card.red .home-card-icon {
  color: #5d5044;
  background: rgba(215, 201, 174, 0.24);
}

.home-card.blue .home-card-icon {
  color: #4b4238;
  background: rgba(249, 248, 244, 0.34);
}

.home-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(93, 80, 66, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.home-card-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(93, 80, 66, 0.1);
  color: rgba(75, 63, 50, 0.68);
  background: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
}

.home-card-link {
  padding: 9px 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 18%, rgba(255, 255, 255, 0.44)), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.12);
  color: #4f4337;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--card-accent) 34%, rgba(93, 80, 66, 0.14));
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 6px 14px rgba(0, 0, 0, 0.07);
}

.home-card-link::after {
  content: "↗";
  font-size: 0.82rem;
  line-height: 1;
}

.guide-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.014);
  min-width: 0;
  overflow: hidden;
}

.guide-card strong {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.guide-card p,
.guide-card small {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: pretty;
}

.guide-card p {
  font-size: 0.87rem;
}

.guide-card small {
  font-size: 0.81rem;
}

.guide-card .guide-title-compact {
  font-size: 0.9rem;
  line-height: 1.1;
}

.guide-card .guide-text-compact {
  font-size: 0.82rem;
  line-height: 1.36;
}

.guide-card .guide-formula-compact {
  font-size: 0.76rem;
  line-height: 1.34;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.7;
}

.grid-2,
.grid-3,
.grid-4,
.form-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.016);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(165, 135, 97, 0.42);
  box-shadow: 0 0 0 4px rgba(165, 135, 97, 0.12);
}

.field.full,
.span-2,
.span-3,
.span-4 {
  grid-column: 1 / -1;
}

.builder,
.documents-panel {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid rgba(233, 224, 209, 0.085);
}

.builder-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(165, 135, 97, 0.14);
  color: var(--gold);
}

.plan-divergence-box {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.plan-divergence-box.is-alert {
  background: rgba(210, 92, 83, 0.08);
  border-color: rgba(210, 92, 83, 0.22);
}

.plan-divergence-box.is-ok {
  background: rgba(90, 146, 104, 0.08);
  border-color: rgba(90, 146, 104, 0.2);
}

.plan-divergence-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.plan-divergence-head strong {
  display: block;
  line-height: 1.3;
}

.plan-divergence-kicker {
  margin: 0 0 4px;
  color: var(--text-dark-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-divergence-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--text-dark-soft);
  font-size: 0.9rem;
}

.plan-divergence-list {
  display: grid;
  gap: 8px;
}

.plan-divergence-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(233, 224, 209, 0.06);
}

.subtle {
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

.divider {
  height: 1px;
  background: rgba(233, 224, 209, 0.08);
  margin: 18px 0;
}

.selection-grid {
  display: grid;
  gap: 10px;
}

.selection-row,
.repeat-row,
.quick-stat {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background: rgba(255, 255, 255, 0.022);
}

.selection-row-btn {
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  cursor: pointer;
  transition: 180ms ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.018);
  -webkit-appearance: none;
  appearance: none;
}

.selection-row-btn strong {
  color: var(--text);
}

.selection-row-btn .mono {
  color: #f1ece4;
  font-size: 0.98rem;
}

.selection-row-btn .muted {
  color: var(--text-dark-soft);
}

.selection-row-btn:hover,
.selection-row-btn.is-active {
  transform: translateY(-1px);
  border-color: rgba(176, 147, 106, 0.28);
  background:
    linear-gradient(135deg, rgba(106, 86, 59, 0.18), rgba(176, 147, 106, 0.08) 52%, rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.022);
}

.selection-row-btn.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(186, 159, 120, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.1);
  background:
    radial-gradient(circle at top left, rgba(215, 201, 174, 0.08), transparent 46%),
    linear-gradient(135deg, rgba(101, 82, 56, 0.24), rgba(162, 132, 92, 0.12) 54%, rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.026);
}

.selection-row-btn.is-active .mono {
  color: #fbf7ef;
}

.selection-row-btn.is-active .tag.info {
  background: rgba(215, 201, 174, 0.14);
  color: #fbf7ef;
  border-color: rgba(215, 201, 174, 0.24);
}

.repeat-row {
  grid-template-columns: 2fr 1fr auto;
  align-items: end;
}

.plan-editor-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.plan-draft-flash {
  margin-bottom: 12px;
}

.plan-editor-summary .hero-stat-card {
  padding: 12px 14px;
  min-height: 74px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(233, 224, 209, 0.08);
}

.plan-editor-summary .hero-stat-card small {
  color: var(--text-dark-soft);
}

.plan-editor-summary .hero-stat-card strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.plan-editor-summary .hero-stat-card:last-child strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.plan-editor-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(233, 224, 209, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.018);
}

.plan-editor-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
}

.plan-editor-card-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.plan-editor-card-head strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.plan-editor-card-label {
  margin: 0 0 4px;
  color: var(--text-dark-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-editor-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
}

.plan-editor-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.plan-editor-grid .field {
  min-width: 0;
}

.plan-editor-grid .field.field-wide {
  grid-column: span 6;
}

.plan-editor-grid .field.field-third {
  grid-column: span 3;
}

.plan-editor-grid .field.field-half {
  grid-column: span 6;
}

.plan-editor-grid .field input,
.plan-editor-grid .field select {
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.plan-editor-grid .field input[readonly] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.plan-payment-history {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(233, 224, 209, 0.08);
}

.review-candidate-grid {
  gap: 10px;
}

.review-candidate-row {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.review-modal .plan-editor-summary {
  margin-bottom: 0;
}

.plan-payment-history-title {
  margin: 0;
  color: var(--text-dark-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-payment-list {
  display: grid;
  gap: 8px;
}

.plan-payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(233, 224, 209, 0.07);
}

.plan-payment-item strong {
  display: block;
}

.plan-payment-item-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.selection-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.checkbox {
  width: 18px;
  height: 18px;
}

.flash {
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(165, 135, 97, 0.14);
  color: var(--gold);
  border: 1px solid rgba(165, 135, 97, 0.24);
}

.flash-danger {
  background: rgba(210, 92, 83, 0.14);
  color: #ffd9d5;
  border-color: rgba(210, 92, 83, 0.28);
}

.empty {
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(233, 224, 209, 0.16);
  color: var(--text-soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(233, 224, 209, 0.1);
  background:
    radial-gradient(circle at top right, rgba(215, 201, 174, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(24, 23, 22, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.modal-heading {
  align-items: start;
}

.payment-modal {
  display: grid;
  gap: 18px;
}

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

.form-lock {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 18px;
}

.form-lock[disabled] {
  opacity: 0.58;
}

.stack {
  display: grid;
  gap: 18px;
}

.tiny {
  font-size: 0.82rem;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .shell,
  .workspace-grid,
  .split-band,
  .executive-kpis,
  .grid-4,
  .kpi-guide-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-panel {
    grid-template-columns: 1fr;
  }

  .home-hero-main {
    grid-template-columns: 1fr;
  }

  .home-hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-hero-panel {
    padding: 14px 16px;
  }

  .module-hero-main,
  .module-hero-panel-planos .module-hero-main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main {
    padding: 18px;
  }

  .panorama-list-head {
    display: none;
  }

  .panorama-metrics {
    grid-template-columns: 1fr;
  }

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

  .cashflow-header {
    grid-template-columns: 1fr;
  }

  .cashflow-header-copy p {
    max-width: none;
  }

}

@media (max-width: 860px) {
  .notifications-panel {
    position: fixed;
    top: 88px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 120px);
  }

  .notification-item {
    grid-template-columns: 1fr;
  }

  .notification-item-icon {
    width: 42px;
    height: 42px;
  }

  .notification-item-head {
    grid-template-columns: 1fr;
  }

  .notification-item-badges {
    justify-content: flex-start;
  }

  .grid-2,
  .grid-3,
  .form-grid,
  .plan-editor-grid,
  .repeat-row,
  .selection-row,
  .module-grid,
  .app-utility-bar,
  .app-utility-main,
  .topbar {
    grid-template-columns: 1fr;
  }

  .app-utility-bar {
    border-radius: 28px;
    overflow: visible;
  }

  .app-utility-home-slot {
    min-height: 82px;
  }

  .app-utility-home-slot::after {
    top: auto;
    bottom: 0;
    left: 16px;
    right: 16px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 224, 209, 0.08), transparent);
  }

  .app-utility-main {
    padding: 15px;
  }

  .app-utility-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .page-hero h2 {
    max-width: none;
  }

  .home-hero-copy h2 {
    max-width: none;
    font-size: clamp(1.92rem, 10vw, 2.7rem);
  }

  .home-hero-copy p {
    max-width: none;
    font-size: 0.92rem;
  }

  .home-hero-feature-card {
    padding: 16px;
  }

  .home-hero-stat-grid,
  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .module-hero-copy h2 {
    max-width: none;
    white-space: normal;
  }

  .hero-stat-grid-wide {
    grid-template-columns: 1fr 1fr;
  }

  .app-utility-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cashflow-summary {
    grid-template-columns: 1fr;
  }

  .cashflow-range-grid {
    grid-template-columns: 1fr;
  }

  .cashflow-action-row {
    justify-content: stretch;
  }

  .cashflow-tooltip {
    min-width: 250px;
    max-width: 280px;
  }

  .hero-stat-grid-wide {
    grid-template-columns: 1fr;
  }

  .payment-modal-summary {
    grid-template-columns: 1fr 1fr;
  }

  .plan-editor-summary {
    grid-template-columns: 1fr;
  }

  .plan-divergence-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .plan-editor-card-head,
  .plan-payment-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .plan-editor-badges,
  .plan-payment-item-end {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .notifications-panel {
    top: 82px;
    right: 12px;
    left: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .notifications-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-summary-row {
    gap: 6px;
  }

  .notification-item {
    padding: 13px;
  }

  .notification-item-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-item-actions .ghost-btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .notification-item-actions {
    grid-template-columns: 1fr;
  }

  .notification-item-copy {
    font-size: 0.95rem;
  }
}

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