/* Vela workspace: navigation, type and data surfaces. */
:root {
  color: #1d2a25;
  background: #f3f5f1;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --accent: #286b50;
  --accent-soft: #e6f1e9;
  --muted: #61716a;
  --line: #e0e7e1;
  --green: #287356;
  --red: #ad4945;
  --amber: #886526;
  --radius: 8px;
}
body { background: #f3f5f1; color: #1d2a25; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible { outline-color: #6eb897; }
.workspace-header { position: relative; z-index: 30; background: #18332a; color: #f4f8f4; }
.workspace-header-inner { max-width: 1680px; height: 76px; margin: 0 auto; padding: 0 42px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.vela-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.vela-brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.vela-brand strong { font-size: 26px; line-height: 1; letter-spacing: -1.3px; font-weight: 750; }
.vela-brand small { font-size: 9px; letter-spacing: .11em; color: #bdd1c6; line-height: 1.25; }
.vela-mark { width: 38px; height: 38px; display: grid; place-items: center; background: #c8e8d4; color: #173b2c; font-size: 25px; font-weight: 800; letter-spacing: -2px; border-radius: 4px; padding-right: 2px; }
.workspace-actions { display: flex; align-items: center; gap: 21px; }
.workspace-status { color: #d7e8dc; font-size: 12px; border: 1px solid #719184; padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.header-action,.profile-trigger { display: inline-flex; align-items: center; gap: 8px; color: #d7e5db; background: transparent; padding: 7px 0; font-size: 13px; white-space: nowrap; }
.header-action:hover,.profile-trigger:hover { color: #fff; }
.profile-trigger { border-left: 1px solid #526b60; padding-left: 20px; }
.profile-trigger .avatar { width: 32px; height: 32px; color: #244638; background: #dbeadf; }
.workspace-header .sidebar { position: static; inset: auto; transform: none; width: 100%; max-height: none; display: block; padding: 0 42px; overflow: visible; background: #18332a; border: 0; border-top: 1px solid #496358; box-shadow: none; }
.workspace-navigation { display: flex; align-items: stretch; max-width: 1596px; margin: 0 auto; min-height: 50px; gap: 24px; overflow-x: auto; scrollbar-width: thin; }
.workspace-header .nav-item { min-height: 50px; display: inline-flex; flex: 0 0 auto; justify-content: flex-start; gap: 7px; padding: 0 1px; border-radius: 0; border-bottom: 3px solid transparent; color: #c2d2c7; font-size: 13px; font-weight: 500; white-space: nowrap; }
.workspace-header .nav-item span { display: inline; }
.workspace-header .nav-item .icon { width: 16px; height: 16px; }
.workspace-header .nav-item:hover { background: transparent; color: #fff; }
.workspace-header .nav-item.active { background: transparent; color: #fff; border-bottom-color: #a6d8b8; }
.workspace-header .nav-item.active .icon { color: #b8e3c6; }
.workspace-header .nav-item .badge-count { display: none; }
.workspace-header .mobile-menu { display: none; color: #fff; }
.workspace-header .sidebar-backdrop { display: none; }
.shell { margin-left: 0; background: transparent; min-height: calc(100vh - 126px); }
.main { max-width: 1680px; margin: 0 auto; padding: 33px 42px 30px; }
.page-heading { align-items: flex-end; margin-bottom: 25px; }
.page-context { color: #77867d; font-size: 12px; margin-bottom: 9px; }
.page-context span { margin: 0 6px; color: #b1bdb4; }
.page-heading h1 { font-size: 29px; line-height: 1.25; letter-spacing: -.8px; color: #20332a; font-weight: 700; }
.page-heading p { color: #65766d; font-size: 13px; margin-top: 8px; }
.heading-actions { padding-bottom: 2px; }
.btn { min-height: 37px; border-radius: 5px; border-color: #d4dfd6; color: #334a3d; font-size: 13px; }
.btn:hover { color: #1e5f42; background: #f4f8f5; border-color: #aac7b4; }
.btn.primary { background: #286b50; border-color: #286b50; color: #fff; }
.btn.primary:hover { background: #1d573e; border-color: #1d573e; color: #fff; }
.btn.text { color: #286b50; min-height: 0; }
.filters { padding: 13px 15px; margin-bottom: 14px; background: #e9eee9; border: 1px solid #dfe7df; border-radius: 6px; }
.filter-select { color: #364b40; border-color: #d2ddd4; border-radius: 5px; }
.date-trigger { color: #364b40; }
.freshness { color: #60756a; font-size: 12px; }
.demo-note { font-size: 12px; color: #52685b; background: #e8f2e9; border-left: 3px solid #79ad89; padding: 10px 13px; margin-bottom: 18px; }
.demo-note .icon { color: #437b59; }
.card { background: #fff; border: 1px solid #dde5dd; border-radius: 8px; box-shadow: 0 2px 5px rgb(28 55 37 / 3%); }
.card-head { align-items: flex-start; padding: 23px 25px 0; }
.card-title { font-size: 17px; line-height: 1.3; color: #243a2d; font-weight: 700; }
.card-subtitle { color: #74857a; font-size: 12px; margin-top: 6px; }
.section-kicker { display: block; margin-bottom: 7px; color: #789281; font-size: 10px; line-height: 1.2; letter-spacing: .11em; font-weight: 700; }
.insight-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .68fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.chart-card { min-height: 370px; }
.chart-legend { padding: 21px 25px 0; font-size: 12px; }
.legend-key i { background: #287158; }
.chart-wrap { height: 230px; padding: 9px 20px 0 11px; }
.chart-svg text { fill: #778a7e; }
.chart-bottom { padding: 6px 25px 16px; color: #74857a; }
.tabs { background: #f1f5f1; border-color: #e7eee8; }
.tab { padding: 6px 13px; color: #65796c; font-size: 12px; }
.tab.active { color: #28583d; }
.metrics-strip { margin: 0 25px; padding: 15px 0 20px; }
.strip-item span { color: #738679; }
.strip-item strong { color: #2e4737; }
.summary-panel { padding: 23px 23px 8px; }
.summary-intro { padding-bottom: 10px; }
.metric-list { display: grid; }
.metric-line { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 79px; padding: 12px 0; border-top: 1px solid #edf1ed; }
.metric-copy { display: grid; gap: 4px; min-width: 0; }
.metric-name { color: #708277; font-size: 12px; }
.metric-number { color: #263d2e; font-size: 21px; line-height: 1.1; letter-spacing: -.5px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-compare { color: #839187; font-size: 11px; }
.metric-compare .change { font-weight: 600; }
.metric-line .spark { position: static; width: 67px; height: 26px; margin-left: 8px; opacity: .6; }
.overview-bottom { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .68fr); gap: 16px; align-items: stretch; }
.table-card .card-head { padding: 23px 25px 18px; }
.data-table { font-size: 13px; }
.data-table thead { background: #f5f8f5; }
.data-table th { color: #728479; border-block-color: #eaf0ea; }
.data-table td { color: #405448; border-bottom-color: #edf2ed; }
.data-table tbody tr:hover { background: #f7faf7; }
.account-icon,.account-icon.c1,.account-icon.c2,.account-icon.c3,.account-icon.c4 { background: #e7f1e8; color: #3e6f4e; border-radius: 5px; }
.account-name,.data-table td.strong { color: #304a39; }
.roas-pill { background: #edf6ef; color: #286b50; }
.pill.green { background: #edf6ef; color: #286b50; }
.pill.blue { background: #edf4ef; color: #446a52; }
.table-footer { color: #74857a; border-color: #e9efe9; }
.budget-card { padding: 0 0 18px; }
.budget-card .card-head { padding: 23px 25px 0; }
.budget-summary { padding: 23px 25px 0; }
.budget-total { color: #273d2f; }
.budget-track-label b { color: #286b50; }
.budget-stats { padding: 19px 25px; }
.budget-info { margin: 0 23px; background: #f1f6f1; color: #60766a; }
.budget-actions { padding: 15px 25px 0; }
.progress { background: #e5eee5; }
.progress i { background: #4b8f69; }
.notice.info { background: #eff6f0; border-color: #dceade; color: #42624d; }
.page-footer { padding-top: 26px; color: #85928a; font-size: 11px; letter-spacing: .02em; }
.screen-mode .workspace-header,.screen-mode .filters,.screen-mode .demo-note,.screen-mode .page-footer { display: none; }
.screen-mode .shell { margin-left: 0; }
.screen-mode .main { max-width: 1800px; padding: 35px 45px; }
.screen-mode .chart-wrap { height: 300px; }
.vela-login { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; background: #f3f5f1; }
.vela-login-story { display: flex; flex-direction: column; justify-content: space-between; padding: 50px 9%; background: #183b2e; color: #fff; }
.vela-login-story h1 { margin: 20px 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.2; letter-spacing: -.05em; }
.vela-login-story p { color: #ceded2; max-width: 380px; font-size: 15px; line-height: 1.9; }
.login-kicker { color: #aad1b6; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.login-caption { color: #b4cbb9; font-size: 12px; }
.vela-login-panel { display: grid; place-items: center; padding: 35px; }
.vela-login-panel .login-form { width: min(100%, 390px); }
.vela-login-panel .login-form h2 { color: #22392b; font-size: 28px; }
.vela-login-panel .login-form p { color: #6c7d71; }
.vela-login-panel .login-form .btn { width: 100%; }
.vela-login-panel .field input { border-color: #d0ddd2; }
@media (max-width: 1100px) {
  .workspace-header-inner { padding-inline: 25px; }
  .workspace-header .sidebar { padding-inline: 25px; }
  .workspace-navigation { gap: 18px; }
  .main { padding: 28px 25px; }
  .insight-layout,.overview-bottom { grid-template-columns: minmax(0, 1.4fr) minmax(255px, .7fr); }
}
@media (max-width: 760px) {
  .workspace-header-inner { height: 68px; padding-inline: 17px; }
  .workspace-actions { gap: 14px; }
  .workspace-actions .header-action,.profile-name { display: none; }
  .profile-trigger { border: 0; padding-left: 0; }
  .profile-trigger > .icon { display: none; }
  .workspace-header .mobile-menu { display: inline-flex; }
  .workspace-header .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(285px, 85vw); height: 100dvh; padding: 22px 18px; background: #18332a; border: 0; transform: translateX(-105%); transition: transform .2s ease; overflow-y: auto; z-index: 40; }
  .workspace-header .sidebar.open { transform: translateX(0); }
  .workspace-navigation { display: flex; flex-direction: column; gap: 2px; overflow: visible; }
  .workspace-header .nav-item { min-height: 46px; padding: 10px 12px; border: 0; border-radius: 5px; }
  .workspace-header .nav-item.active { background: #2f5745; }
  .workspace-header .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(7 20 13 / 50%); }
  .main { padding: 25px 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 25px; }
  .heading-actions { flex-wrap: wrap; }
  .filters { padding: 11px; }
  .filter-left,.filter-right { flex: 1 1 auto; }
  .filter-right { margin-left: 0; }
  .insight-layout,.overview-bottom { grid-template-columns: minmax(0, 1fr); }
  .chart-card { min-height: 0; }
  .summary-panel { padding-bottom: 10px; }
  .metric-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .metric-line .spark { width: 48px; }
  .budget-card { display: block; }
  .vela-login { grid-template-columns: 1fr; }
  .vela-login-story { min-height: 260px; padding: 28px; gap: 26px; }
  .vela-login-story h1 { font-size: 34px; }
  .vela-login-panel { padding: 40px 24px; }
}
@media (max-width: 420px) {
  .workspace-status { display: none; }
  .metric-list { grid-template-columns: 1fr; }
  .metric-line { min-height: 71px; }
  .chart-card .card-head { flex-wrap: wrap; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .strip-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .page-footer { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .workspace-header .sidebar { transition: none; } }
