/* ── Component root ──────────────────────────────────────────────────────── */
* {
   box-sizing: border-box;
   font-variation-settings:
      'slnt' 0,
      'wdth' 100;
}

svg {
   display: block;
   width: 100%;
   height: 100%;
}

.app {
   --color-ink: #261b07;
   --color-ink-80: color-mix(in srgb, var(--color-ink) 80%, transparent);
   --color-ink-56: color-mix(in srgb, var(--color-ink) 56%, transparent);

   font-size: inherit;
   font-family: inherit;
   width: 76em;
   height: 45.75em;
   display: flex;
   flex-direction: column;
   background: #ffffff;
   overflow: hidden;
   box-sizing: border-box;
   color: var(--color-ink-80);
}

/* ── Top Nav ─────────────────────────────────────────────────────────────── */

.nav {
   height: 2.5em;
   min-height: 2.5em;
   background: #f8f7f6;
   border-bottom: 0.0625em solid #e9e8e6;
   display: flex;
   align-items: center;
   padding: 0 0.5em 0 0.75em;
   box-sizing: border-box;
}

.nav__left {
   display: flex;
   align-items: center;
   gap: 0.75em;
   flex-shrink: 0;
   margin-right: auto;
}

.nav__logo {
   width: 1em;
   height: 1em;
   display: flex;
   align-items: center;
   justify-content: center;
   color: rgba(38, 27, 7, 1);
}

.nav__scenario {
   display: flex;
   align-items: center;
   gap: 0.25em;
   height: 1.625em;
   padding: 0.125em 0.25em 0.125em 0.375em;
   background: #ffffff;
   border: 0.0625em solid #dddcdb;
   border-radius: 0.375em;
   cursor: pointer;
   font-family: inherit;
   font-size: inherit;
   font-weight: 500;
   color: rgba(38, 27, 7, 1);
   white-space: nowrap;
   flex-shrink: 0;
}

.nav__scenario-icon {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 0.875em;
   height: 0.875em;
   background: #dcdefc;
   border-radius: 0.1875em;
   color: #3a47d3;
   flex-shrink: 0;
   padding: 0.125em;
}

.nav__scenario-label {
   flex: 1;
   font-size: 0.8125em;
}

.nav__scenario-chevron {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 0.875em;
   height: 0.875em;
   color: rgba(38, 27, 7, 1);
   flex-shrink: 0;
}

.nav__right {
   display: flex;
   align-items: center;
   gap: 0.75em;
   flex-shrink: 0;
}

.nav__search {
   display: flex;
   align-items: center;
   width: 9.125em;
   height: 1.5em;
   padding: 0.125em 0.25em;
   background: #ffffff;
   border: 0.0625em solid #dddcdb;
   border-radius: 0.25em;
   color: rgba(38, 27, 7, 0.56);
   flex-shrink: 0;
   box-sizing: border-box;
}

.nav__search-icon {
   width: 1em;
   height: 1em;
}

.nav__icon-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 1em;
   height: 1em;
   padding: 0;
   border: none;
   background: transparent;
   cursor: pointer;
   color: rgba(38, 27, 7, 0.72);
   font-size: 1em;
   flex-shrink: 0;
}

.nav__icon-btn:hover {
   color: rgba(38, 27, 7, 1);
}

.avatar {
   width: 1.5em;
   height: 1.5em;
   border-radius: 50%;
   overflow: hidden;
   padding: 0;
   border: none;
   background: red;
   cursor: pointer;
   flex-shrink: 0;
}

.avatar img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

/* ── Body ────────────────────────────────────────────────────────────────── */

.body {
   display: flex;
   flex: 1;
   overflow: hidden;
}

/* ── Sidebar shell ───────────────────────────────────────────────────────── */

.sidebar {
   width: 13.625em;
   min-width: 13.625em;
   height: 100%;
   background: #f8f7f6;
   border-right: 0.0625em solid #e9e8e6;
   display: flex;
   flex-direction: column;
   gap: 0.375em;
   padding: 0.5em 0.25em;
   box-sizing: border-box;
   overflow-y: auto;
   overflow-x: hidden;
}

.sb-title {
   padding: 0 0.5em;
}

.sb-title p {
   font-size: 0.8125em;
   font-weight: 500;
   letter-spacing: -0.0081em;
   line-height: 1.25;
   color: #aaaaa9;
   white-space: nowrap;
   margin: 0;
}

/* List: fills remaining space, space-between for top vs footer */
.sb-list {
   display: flex;
   flex-direction: column;
   flex: 1;
   justify-content: space-between;
   min-height: 0;
}

.sb-top {
   display: flex;
   flex-direction: column;
   gap: 0.375em;
}

.sb-group {
   display: flex;
   flex-direction: column;
}

.sb-group--gap {
   gap: 0.25em;
}

.sb-group--w210 {
   width: 13.125em;
}

.sb-items {
   display: flex;
   flex-direction: column;
   gap: 0.1875em;
}

.sb-footer {
   display: flex;
   flex-direction: column;
   gap: 0.25em;
   padding-top: 0.25em;
   width: 13.125em;
}

/* Separator line */
.sb-separator-wrap {
   padding: 0.25em 0.5em;
}

.sb-separator {
   height: 0.0625em;
   background: #e9e8e6;
}

/* ── Sidebar item ────────────────────────────────────────────────────────── */

.sb-line {
   display: flex;
   align-items: center;
   gap: 0.5em;
   padding: 0.25em 0.5em;
   border-radius: 0.375em;
   cursor: pointer;
   box-sizing: border-box;
   width: 100%;
   color: var(--color-ink-80);
}

.sb-line:hover {
   background: #e9e8e6;
}

.sb-line--active {
   background: #e9e8e6;
}

.sb-line--indent {
   padding-left: 1.125em;
   color: var(--color-ink-56);
}

.sb-line--indent.sb-line--active {
   color: var(--color-ink-80);
}

/* Indent items: content fills remaining width for truncation */
.sb-line--indent .sb-content {
   flex: 1;
   min-width: 0;
}

.sb-line--indent .sb-label {
   flex: 1;
   min-width: 0;
   overflow: hidden;
   text-overflow: ellipsis;
}

/* ── Icons ───────────────────────────────────────────────────────────────── */

.sb-icon {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 0.75em;
   height: 0.75em;
   flex-shrink: 0;
}

.sb-icon--lg {
   width: 0.875em;
   height: 0.875em;
}

.sb-icon--chevron {
   width: 0.75em;
   height: 0.75em;
}

.sb-icon--chevron-right {
   transform: rotate(-90deg);
}

/* ── Content row ─────────────────────────────────────────────────────────── */

.sb-content {
   display: flex;
   align-items: center;
   gap: 0.125em;
   flex-shrink: 0;
}

.sb-label {
   font-size: 0.8125em;
   font-weight: 500;
   letter-spacing: -0.0081em;
   line-height: 1.25;
   color: inherit;
   white-space: nowrap;
   margin: 0;
   flex-shrink: 0;
}

/* ── Badge ───────────────────────────────────────────────────────────────── */

.sb-badge {
   display: flex;
   align-items: center;
   width: 0.75em;
   height: 0.75em;
   overflow: hidden;
   flex-shrink: 0;
}

/* ── Chevron slot ────────────────────────────────────────────────────────── */

.sb-chevron-wrap {
   display: flex;
   align-items: center;
   padding-top: 0.125em;
   flex-shrink: 0;
}

/* ── Main content ────────────────────────────────────────────────────────── */

.main {
   flex: 1;
   background: #ffffff;
   overflow: hidden;
   position: relative;
}

/* ── Background image wrapper ────────────────────────────────────────────── */

.main-bg-wrap {
   position: absolute;
   inset: 0;
   overflow: hidden;
}

.main-bg {
   position: absolute;
   left: 0;
   top: 0;
   height: 100%;
   width: auto;
}

/* ── Sidebar item enter animation ────────────────────────────────────────── */

@keyframes sbItemIn {
   from {
      opacity: 0;
      transform: translateY(4px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.sb-item-enter {
   animation: sbItemIn 0.22s ease forwards;
}

/* Sidebar responsiveness */
@media screen and (max-width: 991px) {
   .sidebar {
      display: none;
   }
   .app {
      height: 40em;
   }
}

@media screen and (max-width: 767px) {
   .nav__search {
      display: none;
   }
}

/* ── Keyframes ───────────────────────────────────────────────────────────────── */

@keyframes ariRotate {
   from {
      transform: rotate(0deg);
   }
   to {
      transform: rotate(360deg);
   }
}

@keyframes ariMsgIn {
   from {
      opacity: 0;
      transform: translateY(6px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes ariPlanIn {
   from {
      opacity: 0;
      transform: translateY(10px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes ariIconIn {
   from {
      opacity: 0;
      transform: scale(0.65);
   }
   to {
      opacity: 1;
      transform: scale(1);
   }
}

@keyframes ariSubIn {
   from {
      opacity: 0;
      transform: translateY(4px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes ariPanelIn {
   from {
      opacity: 0;
      transform: translateY(0.5em);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes ariBlink {
   0%,
   100% {
      opacity: 1;
   }
   50% {
      opacity: 0;
   }
}

/* ── SVG sizing reset ────────────────────────────────────────────────────────── */

.ari svg {
   display: block;
   width: 100%;
   height: 100%;
}

/* ── Panel ───────────────────────────────────────────────────────────────────── */

.ari {
   position: absolute;
   right: 0.75em;
   bottom: 0.75em;
   width: 18.75em;
   height: 27.875em;
   background: rgba(248, 247, 246, 1);
   border: 0.0625em solid #e9e8e6;
   border-radius: 0.75em;
   display: flex;
   flex-direction: column;
   overflow: hidden;
   box-sizing: border-box;
   box-shadow: 0 0.5em 2em rgba(38, 27, 7, 0.075);
   animation: ariPanelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

@media screen and (max-width: 767px) {
   .ari {
      height: 24em;
   }
}
/* ── Header ──────────────────────────────────────────────────────────────────── */

.ari-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 1em;
   border-bottom: 0.0625em solid #e9e8e6;
   flex-shrink: 0;
   position: relative;
   z-index: 1;
}

.ari-header-left {
   display: flex;
   align-items: center;
   gap: 0.5em;
}

.ari-logo {
   width: 1.25em;
   height: 1.25em;
   border-radius: 0.25em;
   flex-shrink: 0;
   background-color: rgba(249, 166, 0, 0.12);
   outline: 0.0625em solid rgba(38, 27, 7, 0.08);
   outline-offset: -0.0625em;
}

.ari-title {
   font-size: 0.875em;
   font-weight: 500;
   color: #261b07;
   white-space: nowrap;
}

.ari-close {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 1em;
   height: 1em;
   padding: 0;
   border: none;
   background: transparent;
   cursor: pointer;
   color: rgba(38, 27, 7, 0.48);
   flex-shrink: 0;
}

/* ── Scroll area ─────────────────────────────────────────────────────────────── */
/* Messages are absolutely anchored to bottom; overflow clips above (behind header) */

.ari-scroll {
   flex: 1;
   position: relative;
   overflow: hidden;
   min-height: 0;
}

/* ── Messages list ───────────────────────────────────────────────────────────── */
/* Pinned to bottom. As content grows it pushes upward; top overflow is clipped. */

.ari-messages {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   display: flex;
   flex-direction: column;
   gap: 1em;
   padding: 1em 1em 0.5em;
}

/* ── Message row ─────────────────────────────────────────────────────────────── */

.ari-row {
   display: flex;
   flex-direction: column;
   width: 100%;
}

.ari-row--user {
   align-items: flex-end;
}

.ari-row--ai {
   align-items: flex-start;
}

.ari-enter {
   animation: ariMsgIn 0.28s ease forwards;
}

/* ── User bubble ─────────────────────────────────────────────────────────────── */

.ari-bubble {
   background: #e9e8e6;
   padding: 0.5em 0.75em;
   border-radius: 0.5em;
   max-width: 15.625em;
   font-size: 0.875em;
   font-weight: 500;
   line-height: 1.5;
   color: rgba(38, 27, 7, 0.8);
   animation: ariMsgIn 0.28s ease forwards;
}

/* ── AI plain text ───────────────────────────────────────────────────────────── */

.ari-text {
   font-size: 0.875em;
   font-weight: 500;
   line-height: 1.5;
   color: rgba(38, 27, 7, 0.8);
   margin: 0;
}

/* ── Plan card ───────────────────────────────────────────────────────────────── */

.ari-plan {
   width: 100%;
   background: #ffffff;
   border: 0.0625em solid #e9e8e6;
   border-radius: 0.5em;
   overflow: hidden;
   box-sizing: border-box;
   animation: ariPlanIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ari-plan-top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0.375em 0.75em;
   background: #faf9f8;
   border-bottom: 0.0625em solid #e9e8e6;
}

.ari-plan-top-left {
   display: flex;
   align-items: center;
   gap: 0.375em;
}

.ari-plan-icon {
   display: flex;
   align-items: center;
   width: 0.875em;
   height: 0.875em;
   color: #261b07;
   flex-shrink: 0;
   opacity: 0.8;
}

.ari-plan-label {
   font-size: 0.8125em;
   font-weight: 600;
   line-height: 1.5;
   color: rgba(38, 27, 7, 0.8);
}

.ari-plan-counter {
   display: flex;
   align-items: center;
   gap: 0.125em;
}

.ari-plan-counter-num {
   font-size: 0.6875em;
   font-weight: 600;
   color: rgba(38, 27, 7, 0.32);
   letter-spacing: -0.01em;
}

.ari-plan-counter-icon {
   display: flex;
   align-items: center;
   width: 0.875em;
   height: 0.875em;
   color: rgba(38, 27, 7, 0.32);
}

.ari-plan-counter-icon--done {
   color: #6b9038;
}

/* ── Plan steps ──────────────────────────────────────────────────────────────── */

.ari-plan-steps {
   display: flex;
   flex-direction: column;
   padding: 0.5em;
}

.ari-step {
   display: flex;
   align-items: flex-start;
   gap: 0.375em;
   padding: 0.5em;
   border-radius: 0.375em;
}

.ari-step--spinning {
   background: rgba(38, 27, 7, 0.03);
}

/* Status icon slot — remounts on key change, triggering fade-in */
.ari-step-icon {
   display: flex;
   align-items: center;
   width: 0.875em;
   height: 0.875em;
   flex-shrink: 0;
   margin-top: 0.0625em;
   animation: ariIconIn 0.18s ease forwards;
}

.ari-step--pending .ari-step-icon {
   color: rgba(38, 27, 7, 0.18);
}
.ari-step--spinning .ari-step-icon {
   color: rgba(38, 27, 7, 0.85);
}
.ari-step--done .ari-step-icon {
   color: #6b9038;
}

.ari-step-text {
   flex: 1;
   min-width: 0;
   font-size: 0.8125em;
   font-weight: 500;
   line-height: 1.25;
   color: rgba(38, 27, 7, 0.8);
   margin: 0;
}

.ari-step--done .ari-step-text {
   color: rgba(38, 27, 7, 0.45);
}

.ari-step-chevron {
   display: flex;
   align-items: center;
   width: 0.875em;
   height: 0.875em;
   flex-shrink: 0;
   margin-top: 0.0625em;
   color: rgba(38, 27, 7, 0.2);
}

/* ── Substep bar ─────────────────────────────────────────────────────────────── */

.ari-substep {
   display: flex;
   align-items: center;
   gap: 0.75em;
   padding-left: 0.5em;
   border-left: 0.0625em solid rgba(38, 27, 7, 0.12);
   margin-top: 0.375em;
   width: 100%;
   box-sizing: border-box;
}

.ari-substep-text {
   flex: 1;
   min-width: 0;
   font-size: 0.8125em;
   font-weight: 500;
   line-height: 1.5;
   color: rgba(38, 27, 7, 0.8);
   margin: 0;
   animation: ariSubIn 0.6s ease forwards;
}

.ari-substep-right {
   display: flex;
   align-items: center;
   gap: 0.125em;
   flex-shrink: 0;
}

.ari-substep-num {
   font-size: 0.6875em;
   font-weight: 600;
   color: rgba(38, 27, 7, 0.32);
   letter-spacing: -0.01em;
}

.ari-substep-chevron {
   display: flex;
   align-items: center;
   width: 0.875em;
   height: 0.875em;
   color: rgba(38, 27, 7, 0.32);
}

/* ── Page card ───────────────────────────────────────────────────────────────── */

.ari-page-card {
   display: flex;
   align-items: center;
   gap: 0.375em;
   padding: 1em;
   background: #ffffff;
   border: 0.0625em solid #e9e8e6;
   border-radius: 0.5em;
   width: 100%;
   box-sizing: border-box;
}

.ari-page-icon-wrap {
   width: 1.25em;
   height: 1.25em;
   background: #fce7dd;
   border-radius: 0.375em;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
}

.ari-page-icon {
   display: flex;
   align-items: center;
   width: 0.75em;
   height: 0.75em;
   color: #e8460e;
}

.ari-page-card-text {
   flex: 1;
   font-size: 0.875em;
   font-weight: 500;
   line-height: 1.5;
   color: rgba(38, 27, 7, 0.8);
   margin: 0;
}

.ari-page-card-chevron {
   display: flex;
   align-items: center;
   width: 0.875em;
   height: 0.875em;
   color: rgba(38, 27, 7, 0.24);
}

/* ── Input area ──────────────────────────────────────────────────────────────── */

.ari-footer {
   padding: 0.5em;
   flex-shrink: 0;
}

.ari-input {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   padding: 0.5em;
   background: #ffffff;
   border: 0.0625em solid #e9e8e6;
   border-radius: 0.375em;
}

.ari-input-text {
   flex: 1;
   font-size: 0.875em;
   font-weight: 500;
   line-height: 1.25;
   color: rgba(38, 27, 7, 0.9);
   padding-left: 0.25em;
   padding-right: 0.5em;
   padding-bottom: 0.1875em;
   padding-top: 0;
   margin: 0;
   word-break: break-word;
}

.ari-input-placeholder {
   color: rgba(38, 27, 7, 0.4);
}

.ari-cursor {
   display: inline-block;
   width: 0.125em;
   height: 0.9em;
   background: rgba(38, 27, 7, 0.6);
   margin-left: 0.0625em;
   vertical-align: text-bottom;
   margin-bottom: 0.125em;
   animation: ariBlink 0.75s step-end infinite;
}

.ari-send-btn {
   width: 1.5em;
   height: 1.5em;
   background: #ffffff;
   border: 0.0625em solid #e9e8e6;
   border-radius: 0.375em;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   flex-shrink: 0;
   padding: 0;
   box-shadow:
      0 0.125em 0.25em rgba(38, 27, 7, 0.12),
      0 0.0625em 0 rgba(38, 27, 7, 0.06);
}

.ari-send-icon {
   display: flex;
   align-items: center;
   width: 1em;
   height: 1em;
   color: rgba(38, 27, 7, 0.56);
}

/* ── Entry animations ───────────────────────────────────────────────────────── */

@keyframes bvaPageIn {
   from { opacity: 0; }
   to { opacity: 1; }
}

@keyframes bvaSectionIn {
   from {
      opacity: 0;
      transform: translateY(6px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.bva-section-enter {
   animation: bvaSectionIn 0.28s ease forwards;
}

/* Table row stagger — each row starts hidden and animates in */
.bva-trow-enter {
   opacity: 0;
   animation: bvaSectionIn 0.22s ease forwards;
}

/* ── Page container ─────────────────────────────────────────────────────────── */

.bva {
   position: absolute;
   inset: 0;
   overflow: hidden;
   padding: 2em;
   box-sizing: border-box;
   animation: bvaPageIn 0.2s ease forwards;
}

/* ── Breadcrumbs ────────────────────────────────────────────────────────────── */

.bva-breadcrumbs {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 1.5em;
}

.bva-crumbs {
   display: flex;
   align-items: center;
   gap: 0.75em;
   color: #261b07;
}

.bva-crumb {
   display: flex;
   align-items: center;
   gap: 0.5em;
}

.bva-crumb-icon {
   width: 0.75em;
   height: 0.75em;
   flex-shrink: 0;
   display: flex;
   align-items: center;
   justify-content: center;
}

.bva-crumb-text {
   font-size: 0.8125em;
   font-weight: 600;
   letter-spacing: -0.01em;
   white-space: nowrap;
   line-height: 1.25;
}

.bva-crumb-sep {
   width: 0.5em;
   height: 0.5em;
   flex-shrink: 0;
   opacity: 0.4;
}

.bva-actions {
   display: flex;
   align-items: center;
   gap: 0.125em;
}

.bva-btn {
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   height: 1.5em;
   padding: 0em 0.5em;
   border: 0.0625em solid #dddcdb;
   border-radius: 0.375em;
   background: white;
   font-size: 1em;
   font-weight: 500;
   color: rgba(38, 27, 7, 0.36);
   letter-spacing: -0.01em;
   white-space: nowrap;
}

.bva-btn-text {
   font-size: 0.75em;
}

.bva-btn--icon {
   width: 1.5em;
   padding: 0;
}

.bva-btn-icon {
   width: 0.875em;
   height: 0.875em;
   color: rgba(38, 27, 7, 0.36);
}

/* ── Page content ───────────────────────────────────────────────────────────── */

.bva-content {
   display: flex;
   flex-direction: column;
   gap: 2.5em;
}

/* ── Rich text ──────────────────────────────────────────────────────────────── */

.bva-rich-text {
   max-width: 38.75em; /* 620px */
   font-feature-settings:
      'lnum' 1,
      'tnum' 1;
   font-weight: 500;
   color: rgba(38, 27, 7, 0.8);
   line-height: 1.25;
}

.bva-subtitle {
   font-size: 0.8125em;
   margin: 0;
}

.bva-text-group {
   padding-top: 1em;
   display: flex;
   flex-direction: column;
   gap: 0.75em;
}

.bva-text-heading {
   font-size: 0.8125em;
   font-weight: 600;
   color: #261b07;
   margin: 0;
}

.bva-text-body {
   font-size: 0.8125em;
   margin: 0;
   color: rgba(38, 27, 7, 0.8);
}

.bva-text-link {
   color: #3a92fd;
   font-weight: 600;
}

/* ── Table group ────────────────────────────────────────────────────────────── */

.bva-table-group {
   display: flex;
   flex-direction: column;
   gap: 1em;
}

.bva-table-head {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.bva-table-heading {
   font-size: 1.125em;
   font-weight: 600;
   color: #261b07;
   letter-spacing: -0.02em;
   line-height: 1.25;
   margin: 0;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */
.bva-table {
   display: flex;
   flex-direction: column;
   width: 65.8125em;
   flex-shrink: 0;
   line-height: 1.25;
   font-weight: 500;
   font-feature-settings:
      'lnum' 1,
      'tnum' 1;
}

/* Time row */
.bva-time-row {
   display: flex;
   align-items: stretch;
}

.bva-time-driver {
   flex-shrink: 0;
   width: 13.75em;
   height: 1.75em;
   border-right: 0.0625em solid #bbbab9;
}

.bva-time-blank {
   flex-shrink: 0;
   width: 7.4375em;
   height: 1.75em;
   border-bottom: 0.0625em solid #bbbab9;
}

.bva-time-month {
   flex-shrink: 0;
   width: 7.4375em;
   height: 1.75em;
   border-bottom: 0.0625em solid #bbbab9;
   border-right: 0.0625em solid #bbbab9;
   display: flex;
   align-items: center;
   padding: 0.375em 0.5em;
   box-sizing: border-box;
}

.bva-time-month--last {
   border-right: none;
}

.bva-time-month-label {
   flex: 1;
   text-align: right;
   font-size: 0.8125em;
   color: rgba(38, 27, 7, 0.4);
   letter-spacing: -0.01em;
}

/* Header row */
.bva-header-row {
   display: flex;
   align-items: stretch;
   border-bottom: 0.0625em solid #bbbab9;
   overflow: hidden;
   height: 1.75em;
}

.bva-cell-hd-driver {
   flex-shrink: 0;
   width: 13.75em;
   border-right: 0.0625em solid #bbbab9;
   padding: 0.375em 0.5em;
   display: flex;
   align-items: center;
   box-sizing: border-box;
   height: 1.75em;
}

.bva-cell-hd-driver-label {
   font-size: 0.8125em;
   color: rgba(38, 27, 7, 0.4);
   letter-spacing: -0.01em;
}

.bva-cell-hd {
   flex-shrink: 0;
   width: 7.4375em;
   border-right: 0.0625em solid #e9e8e6;
   padding: 0.375em 0.5em;
   display: flex;
   align-items: center;
   gap: 0.25em;
   box-sizing: border-box;
   height: 1.75em;
}

.bva-cell-hd--thick {
   border-right: 0.0625em solid #bbbab9;
}

.bva-cell-hd-badge {
   flex-shrink: 0;
   width: 0.875em;
   height: 0.875em;
   border-radius: 0.1875em;
   display: flex;
   align-items: center;
   justify-content: center;
}

.bva-cell-hd-badge--actuals {
   background: #dcdefc;
   color: #3a47d3;
}

.bva-cell-hd-badge--budget {
   background: #d5f0e9;
   color: #1ba17f;
}

.bva-cell-hd-badge-icon {
   width: 0.625em;
   height: 0.625em;
}

.bva-cell-hd-label {
   flex: 1;
   min-width: 0;
   font-size: 0.8125em;
   color: rgba(38, 27, 7, 0.72);
   letter-spacing: -0.01em;
}

/* Body */
.bva-body {
   display: flex;
   flex-direction: column;
   isolation: isolate;
}

/* Data rows */
.bva-row {
   position: relative;
   display: flex;
   align-items: center;
   border-bottom: 0.0625em solid #e9e8e6;
   overflow: hidden;
   isolation: isolate;
   height: 2em;
}

/* Highlighted row background via ::after — sits behind cell content */
.bva-row--highlight::after {
   content: '';
   position: absolute;
   inset: 0;
   background: #f5f4f2;
   border-left: 0.125em solid #261b07;
   pointer-events: none;
   z-index: -1;
}

/* Driver cell */
.bva-cell-driver {
   position: relative;
   flex-shrink: 0;
   width: 13.75em;
   height: 2em;
   border-right: 0.0625em solid #bbbab9;
   display: flex;
   align-items: center;
   gap: 0.25em;
   padding: 0.25em 0.5em 0.25em 0.25em;
   box-sizing: border-box;
   z-index: 1;
}

.bva-cell-driver-spacer {
   flex-shrink: 0;
   width: 0.75em;
   height: 0.75em;
   opacity: 0;
}

.bva-cell-driver-label {
   flex: 1;
   min-width: 0;
   font-size: 0.8125em;
   color: rgba(38, 27, 7, 0.72);
   letter-spacing: -0.01em;
}

.bva-star {
   flex-shrink: 0;
   width: 0.875em;
   height: 0.875em;
   color: rgba(38, 27, 7, 0.72);
   opacity: 0; /* hidden on regular rows */
}

.bva-row--highlight .bva-star {
   opacity: 1;
}

/* Data cells */
.bva-cell-data {
   position: relative;
   flex-shrink: 0;
   width: 7.4375em;
   height: 2em;
   border-right: 0.0625em solid #e9e8e6;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0.5em;
   box-sizing: border-box;
   z-index: 1;
}

.bva-cell-data-text {
   width: 100%;
   font-size: 0.8125em;
   text-align: right;
   letter-spacing: -0.02em;
   color: rgba(38, 27, 7, 0.72);
}

.bva-cell-data-text--pos {
   color: #6c9c43;
}

.bva-cell-data-text--neg {
   color: #fa5742;
}

/* Variance column separator: darker right edge overlapping the next cell */
.bva-cell-data--var-sep::after {
   content: '';
   position: absolute;
   right: -0.0625em;
   top: 0;
   bottom: 0;
   width: 0.0625em;
   background: #bbbab9;
   z-index: 2;
}

/* End row */
.bva-end-row {
   display: flex;
   align-items: center;
   height: 2em;
}

.bva-end-row-inner {
   display: flex;
   align-items: center;
   gap: 0.25em;
   padding: 0.5em 0;
}

.bva-end-row-icon {
   width: 0.75em;
   height: 0.75em;
   color: rgba(38, 27, 7, 0.4);
}

.bva-end-row-label {
   font-size: 0.8125em;
   color: rgba(38, 27, 7, 0.4);
}

