:root {
  --bg-body: #4a4b50;
  --bg-1: #222327; /* app bg */
  --bg-2: #222327;
  --bg-3: #222327;
  --text: #9ca3af;
  --text-strong: #ffffff;
  --muted: #6b7280;

  --line: #34353b;
  --line-strong: #4b5563;

  --surface: #2a2b31; /* panel bg */
  --surface-strong: #34353b;
  --surface-soft: #222327;

  --brand: #f97316; /* orange */
  --brand-strong: #ea580c;
  --brand-soft: rgba(249, 115, 22, 0.15);

  --info: #3b82f6;
  --success: #22c55e;
  --warn: #eab308;
  --danger: #ef4444;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;

  --shadow-sm: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-md: 0 24px 48px rgba(0,0,0,0.25);

  --font-size-base: 14px;
  --font-size-sm: 13px;
  --font-size-xs: 12px;

  --btn-height: 38px;
  --btn-font-size: 14px;
  --btn-radius: 9999px;
  --btn-pad-x: 20px;
}

* {
  box-sizing: border-box;
}

html,


body {
  margin: 0;
  font-family: 'Outfit', 'PingFang SC', sans-serif;
  font-size: var(--font-size-base);
  color: var(--text);
  min-height: 100vh;
  background: var(--bg-1);
  overflow: hidden;
  line-height: 1.5;
}





body {
  margin: 0;
  font-family: 'Outfit', 'PingFang SC', sans-serif;
  font-size: var(--font-size-base);
  color: var(--text);
  min-height: 100vh;
  background: var(--bg-1);
  overflow: hidden;
  line-height: 1.5;
}



h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input,
select {
  font-family: inherit;
}

.bg-gradient { display: none; }

.bg-shape { display: none; }

.shape-a { display: none; }

.shape-b { display: none; }




.app {
  width: 100vw;
  max-width: none;
  height: 100vh;
  background: var(--bg-1);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}






.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 32px 24px;
  background: transparent;
  border: none;
}



.badge { border: none; background: transparent; color: var(--brand); padding: 0; font-size: 16px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }

.sidebar h1 { font-size: 24px; font-weight: 600; color: var(--text-strong); margin-bottom: 32px; letter-spacing: -0.5px; }

.role-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-chip { border: 1px solid #333; border-radius: 999px; background: #000; color: #a1a1aa; font-size: 12px; font-weight: 500; padding: 4px 12px; cursor: pointer; transition: all 0.15s ease; }

.role-chip.active { color: #fff; border-color: #666; background: #222; }


.menu {
  display: grid;
  gap: 4px;
}


.menu::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 1px;
  background: var(--brand), transparent);
}



.menu-item {
  width: 100%;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}




.menu-item:hover { color: var(--text-strong); }
.menu-item.active { background: var(--surface-strong); color: var(--text-strong); }


.menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--bg-1);
}

.menu-icon { width: 24px; height: 24px; border: none; background: transparent; color: inherit; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }

.menu-item.active .menu-icon { color: inherit; border: none; background: transparent; }

.menu-main {
  display: grid;
  gap: 1px;
}

.menu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}

.menu-desc {
  font-size: 11px;
  color: var(--muted);
}

.sidebar-footer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px;
  display: grid;
  gap: var(--space-2);
}

.sidebar-footer p {
  color: var(--muted);
  font-size: var(--font-size-sm);
}




.main {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100vh;
  overflow: hidden;
  background: transparent;
  box-sizing: border-box;
}







.topbar {
  flex-shrink: 0;
  border: none;
  padding-bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "left right"
    "left actions";
  row-gap: 16px;
  column-gap: 24px;
  background: transparent;
  width: 100%;
}




.topbar-left {
  grid-area: left;
  min-width: 0;
}

.welcome {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 2px;
}

.goal {
  color: var(--muted);
  margin-bottom: 4px;
  font-size: var(--font-size-sm);
}

.topbar h2 { font-size: 36px; font-weight: 300; color: var(--text-strong); line-height: 1.2; letter-spacing: -0.5px; }

.topbar-right {
  grid-area: right;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}


.search-wrap {
  width: 320px;
  height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s ease;
}
.search-wrap:focus-within {
  border-color: var(--brand);
}


.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: var(--font-size-base);
}

.search-input::placeholder,
.command-input::placeholder {
  color: var(--muted);
}

.icon-btn {
  width: var(--btn-height);
  height: var(--btn-height);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}

.actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn { color: #FFFFFF; background: #DC2626; border-color: transparent; }

.primary-btn { color: #ffffff; background: var(--brand); border: none; border-radius: 9999px; font-weight: 500; font-family: inherit; }

.secondary-btn { color: #ffffff; background: var(--surface-strong); border: none; border-radius: 9999px; font-weight: 500; font-family: inherit; }

.ghost-btn { color: var(--text); background: transparent; border: none; border-radius: 9999px; font-weight: 500; font-family: inherit; }

.danger-btn { color: #FFFFFF; background: #DC2626; border-color: transparent; }

.primary-btn:hover { background: #ffffff; } .secondary-btn:hover { background: #111111; color: #ffffff; border-color: #444444; } .ghost-btn:hover { background: #111111; color: #ffffff; } .danger-btn:hover { background: #B91C1C; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.ghost-btn:focus-visible,
.danger-btn:focus-visible,
.icon-btn:focus-visible,
.command-input:focus-visible,
.search-input:focus-visible,
.filter-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-soft);
}


.page {
  display: none;
  width: 100%;
}



.page.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  min-height: 0;
  width: 100%;
}


.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.kpi-card { border: none; border-radius: var(--radius-md); background: var(--surface); padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }

.kpi-card::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand), var(--brand-soft));
}

.kpi-card p { margin: 0; font-size: 14px; color: var(--text); }

.kpi-card h4 { font-size: 28px; font-weight: 500; color: var(--text-strong); margin: 0; padding: 0; }


.panel { border: none; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: var(--space-4); }


.compact-panel {
  margin-bottom: var(--space-2);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.panel-head h3 {
  font-size: 16px;
  color: var(--text-strong);
  line-height: 1.25;
}

.panel-head span {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.product-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-tab {
  border: 1px solid var(--line);
  background: rgba(14, 28, 45, 0.86);
  color: var(--text-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.product-tab.active {
  border-color: var(--brand-soft);
  background: var(--brand-soft);
  color: var(--text-strong);
  box-shadow: 0 0 0 1px var(--brand-soft);
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn span {
  font-size: 14px;
  color: var(--muted);
}

.tab-btn strong {
  font-size: 20px;
  color: var(--text-strong);
}

.tab-btn.active {
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.table {
  display: grid;
  gap: 6px;
  max-height: 250px;
  overflow: auto;
}


.row { display: grid; gap: 16px; border-bottom: 1px solid var(--line); padding: 16px 8px; font-size: var(--font-size-base); color: var(--text-strong); align-items: center; }


.row.row-6 {
  grid-template-columns: 0.8fr 1fr 1.1fr 0.8fr 0.6fr 0.7fr;
}

.row.row-7 {
  grid-template-columns: 0.8fr 1fr 0.9fr 0.8fr 0.6fr 0.8fr 1fr;
}

.row.row-8 {
  grid-template-columns: 0.7fr 0.6fr 0.7fr 0.9fr 0.9fr 0.5fr 0.6fr 0.6fr;
}

.row.row-9 {
  grid-template-columns: 0.8fr 0.8fr 0.8fr 0.5fr 0.8fr 0.5fr 0.5fr 0.6fr 0.6fr;
}


.row.header { background: transparent; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line-strong); }


.list,
.graph,
.timeline,
.detail {
  display: grid;
  gap: 6px;
  max-height: 236px;
  overflow: auto;
}

.list-item,
.graph-node,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 30, 48, 0.84);
  padding: 8px;
  color: var(--text-strong);
}

.list-item.compact,
.graph-node,
.timeline-item {
  display: grid;
  gap: 5px;
}

.msg-user {
  border-color: rgba(123, 153, 186, 0.4);
}

.msg-commander {
  border-color: var(--brand-soft);
  background: rgba(16, 43, 36, 0.86);
}

.graph-node.active {
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand-soft);
}

.timeline-item.good {
  border-color: var(--brand-soft);
}

.timeline-item.warn {
  border-color: rgba(243, 177, 76, 0.45);
}

.timeline-item.muted {
  opacity: 0.74;
}

.detail {
  border: 1px dashed var(--brand-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 8px;
  min-height: 180px;
}

.inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

#lifecycleBody {
  max-height: 430px;
  overflow: auto;
}

.sourcing-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: var(--space-2);
}

.filter-select {
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 1px solid var(--line-strong);
  background: rgba(10, 22, 36, 0.92);
  color: var(--text-strong);
  padding: 0 10px;
  font-size: var(--btn-font-size);
}

.sourcing-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: var(--space-2);
}

.sourcing-lane {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 24, 39, 0.86);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 286px;
}

.sourcing-lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
}

.sourcing-lane-head h4 {
  font-size: 14px;
  color: var(--text-strong);
}

.sourcing-lane-head span {
  font-size: var(--font-size-xs);
  border: 1px solid var(--brand-soft);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--text-strong);
  background: var(--brand-soft);
}

.sourcing-lane-

body {
  margin: 0;
  font-family: 'Outfit', 'PingFang SC', sans-serif;
  font-size: var(--font-size-base);
  color: var(--text);
  min-height: 100vh;
  background: var(--bg-1);
  overflow: hidden;
  line-height: 1.5;
}



.sourcing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 8px;
  display: grid;
  gap: 5px;
}

.sourcing-card.active {
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand-soft);
}

.sourcing-empty {
  border: 1px dashed rgba(136, 159, 185, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(12, 25, 39, 0.76);
  color: var(--muted);
  padding: 10px;
  text-align: center;
}

.lifecycle-board {
  display: grid;
  gap: var(--space-2);
}

.lifecycle-tabs-inline {
  margin-bottom: 2px;
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 30, 48, 0.84);
  padding: 8px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--brand-soft);
  background: var(--brand-soft);
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.metric-main {
  display: grid;
  gap: 3px;
}

.metric-main p {
  color: var(--muted);
  font-size: var(--font-size-xs);
}

.metric-main h4 {
  font-size: 16px;
  color: #e3f0ff;
}

.metric-main small {
  color: #86a4c6;
  font-size: var(--font-size-xs);
}

.lifecycle-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.lifecycle-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(12, 25, 40, 0.84);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.lifecycle-section h4 {
  font-size: 14px;
  color: #d8e9ff;
}

.lifecycle-table {
  max-height: 500px;
  min-height: 350px;
}

.chart-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(12, 25, 40, 0.82);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.chart-title {
  color: #b8d7fb;
  font-size: var(--font-size-sm);
}

.combo-chart {
  width: 100%;
  height: auto;
  max-height: 240px;
  display: block;
  margin: 16px 0;
}

.chart-axis {
  stroke: var(--line-strong);
  stroke-width: 2;
}

.chart-bar {
  fill: var(--brand);
}

.chart-line {
  fill: none;
  stroke: var(--success);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--bg-1);
  stroke: var(--success);
  stroke-width: 3;
}

.chart-legend {
  display: flex;
  gap: 16px;
  color: var(--text);
  font-size: var(--font-size-xs);
  margin-top: 4px;
}

.chart-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend-box {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand);
}

.legend-line {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--success);
}

.axis-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: var(--muted);
  font-size: var(--font-size-xs);
}

.task-create {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.command-input-row {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}


.command-input {
  width: 100%;
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-strong);
  padding: 0 12px;
  font-size: var(--btn-font-size);
  transition: border-color 0.15s ease;
}
.command-input:focus {
  border-color: var(--brand);
  outline: none;
}


.sparkline {
  margin-top: 6px;
  border: none;
  border-radius: var(--radius-sm);
  min-height: 62px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 12px;
  background: var(--surface-soft);
}

.spark-bar {
  flex: 1;
  min-width: 8px;
  border-radius: 9999px;
  background: var(--brand);
  box-shadow: none;
  transition: height 0.3s ease;
}

.tag {
  font-size: var(--font-size-xs);
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid transparent;
}

.tag.good {
  background: rgba(39, 209, 127, 0.14);
  border-color: rgba(39, 209, 127, 0.26);
  color: var(--success);
}

.tag.warn {
  background: rgba(243, 177, 76, 0.14);
  border-color: rgba(243, 177, 76, 0.24);
  color: var(--warn);
}

.tag.danger {
  background: rgba(255, 114, 114, 0.14);
  border-color: rgba(255, 114, 114, 0.28);
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-soft);
  background: rgba(10, 30, 22, 0.94);
  color: #b2f8d1;
  padding: 9px 12px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 0.98;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(86, 126, 167, 0.35);
  border-radius: 999px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 1480px) {
  


.app {
  width: 100vw;
  max-width: none;
  height: 100vh;
  background: var(--bg-1);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}




  
.search-wrap {
  width: 320px;
  height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s ease;
}
.search-wrap:focus-within {
  border-color: var(--brand);
}


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

@media (max-width: 1280px) {
  


.app {
  width: 100vw;
  max-width: none;
  height: 100vh;
  background: var(--bg-1);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}




  .row.row-7,
  .row.row-6,
  .row.row-8,
  .row.row-9,
  .split,
  .tab-row,
  .lifecycle-split,
  .metric-grid,
  .sourcing-filters {
    grid-template-columns: 1fr;
  }

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

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

  .axis-labels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 2px;
  }
}

@media (max-width: 1080px) {
  

body {
  margin: 0;
  font-family: 'Outfit', 'PingFang SC', sans-serif;
  font-size: var(--font-size-base);
  color: var(--text);
  min-height: 100vh;
  background: var(--bg-1);
  overflow: hidden;
  line-height: 1.5;
}



  


.app {
  width: 100vw;
  max-width: none;
  height: 100vh;
  background: var(--bg-1);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}




  

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 32px 24px;
  background: transparent;
  border: none;
}



  
.menu {
  display: grid;
  gap: 4px;
}


  


.main {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100vh;
  overflow: hidden;
  background: transparent;
  box-sizing: border-box;
}




  


.topbar {
  flex-shrink: 0;
  border: none;
  padding-bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "left right"
    "left actions";
  row-gap: 16px;
  column-gap: 24px;
  background: transparent;
  width: 100%;
}




  .topbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  
.search-wrap {
  width: 320px;
  height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s ease;
}
.search-wrap:focus-within {
  border-color: var(--brand);
}


  .actions {
    justify-content: flex-start;
  }

  
.page.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  min-height: 0;
  width: 100%;
}


  .kpi-grid,
  .sourcing-lanes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  


.app {
  width: 100vw;
  max-width: none;
  height: 100vh;
  background: var(--bg-1);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}




  
.menu {
  display: grid;
  gap: 4px;
}


  .actions {
    width: 100%;
  }

  .actions .primary-btn,
  .actions .secondary-btn,
  .actions .ghost-btn { color: var(--text); background: transparent; border: none; border-radius: 9999px; font-weight: 500; font-family: inherit; }
}
