:root {
  --ink: #171225;
  --muted: #756f82;
  --line: #e7ded2;
  --paper: #fbf6ee;
  --panel: #fffdf9;
  --pulse: #ff8a3d;
  --coral: #ff6d54;
  --lime: #ffd08a;
  --sidebar: #ffffff;
  --sidebar-soft: #fff2e8;
  --shadow: 0 18px 50px rgba(51, 39, 26, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 138, 61, .13), transparent 34rem),
    var(--paper);
  color: var(--ink);
}

button, input, textarea { font: inherit; }

.eco-support-bar {
  min-height: 42px;
  padding: 7px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #7c5cff, #00c2b8);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .32);
}

.eco-support-bar * { color: #fff; }

.eco-support-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 18, 37, .16);
}

.eco-support-bar a {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d, #7c5cff);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(124, 92, 255, .24);
}

.eco-suite-header {
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 104px);
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #eadfce;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 18px 44px rgba(51, 39, 26, .08);
  color: #171225;
}

.eco-suite-header a { color: #171225; text-decoration: none; }

.eco-suite-brand, .eco-suite-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  flex: 0 0 auto;
}

.eco-suite-brand svg, .eco-suite-tool svg, .eco-suite-tool img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.eco-suite-brand span { font-size: 17px; white-space: nowrap; }

.eco-suite-tool {
  padding: 7px 14px 7px 9px;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: #fff8f0;
  box-shadow: 0 12px 30px rgba(51, 39, 26, .07);
}

.eco-suite-tool span { display: grid; line-height: 1.05; }
.eco-suite-tool strong { font-size: 16px; font-weight: 800; white-space: nowrap; }

.eco-suite-tool small {
  color: #cc5b18;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.eco-suite-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.eco-suite-nav a {
  font-size: 15px;
  color: #3d3748;
}

.eco-suite-cta {
  margin-left: 10px;
  padding: 15px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a3d, #7c5cff);
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(124, 92, 255, .22);
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: rgba(255, 253, 249, .92);
  color: var(--ink);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand, .nav-list a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(255, 138, 61, .18);
}

small, .subtle, .eyebrow { color: var(--muted); }

.sidebar small { color: var(--muted); }

.profile, .engine-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: var(--coral);
}

.logo-avatar {
  border-radius: 8px;
  background: transparent;
}

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

.nav-list a {
  padding: 12px 14px;
  border-radius: 8px;
  color: #4b5565;
}

.nav-list a.active, .nav-list a:hover {
  background: var(--sidebar-soft);
  color: #cc5b18;
}

.engine-card { margin-top: auto; }

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 6px rgba(255, 138, 61, .16);
}

.workspace {
  padding: 28px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: 42px;
  letter-spacing: 0;
}

.page-intro {
  max-width: 880px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: linear-gradient(135deg, #ff8a3d, #7c5cff);
}

.primary-action, .ghost-action {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  padding: 13px 18px;
  background: linear-gradient(135deg, #ff8a3d, #7c5cff);
  color: white;
  box-shadow: 0 16px 34px rgba(124, 92, 255, .22);
}

.primary-action:hover {
  filter: brightness(1.05);
}

.ghost-action {
  padding: 10px 12px;
  background: linear-gradient(135deg, #ff8a3d, #7c5cff);
  color: #fff;
  box-shadow: 0 12px 26px rgba(124, 92, 255, .18);
}

.full { width: 100%; }

.view { display: none; }
.view.active { display: block; }

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

.metric, .panel, .upload-zone, .track-form, .results-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.metric {
  padding: 22px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 34px rgba(51, 39, 26, .06);
}

.metric strong { font-size: 34px; }

.split-layout, .analyze-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  gap: 20px;
  margin-top: 22px;
}

.panel, .track-form { padding: 24px; }

.panel, .upload-zone, .track-form, .results-section {
  box-shadow: 0 16px 42px rgba(51, 39, 26, .07);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

h2, h3 { margin: 0; }

.empty-state {
  min-height: 330px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
}

.pulse-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0e5;
  color: var(--pulse);
  font-size: 36px;
}

.radar {
  height: 220px;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.radar span {
  height: var(--value);
  background: linear-gradient(180deg, #ffd08a, var(--pulse));
  border-radius: 12px 12px 0 0;
}

.upload-zone {
  min-height: 520px;
  padding: 32px;
  text-align: center;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border-style: dashed;
  background: linear-gradient(180deg, #fffdf9, #fff8ef);
}

.upload-zone.dragging {
  border-color: var(--pulse);
  background: #fff5eb;
}

.upload-zone input { display: none; }

.upload-visual {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--coral) 0 16%, transparent 17%),
    repeating-radial-gradient(circle, #ffe2c2 0 10px, transparent 11px 20px);
}

.track-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: white;
}

.results-section {
  margin-top: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: start;
  gap: 24px;
}

.score-ring {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--pulse) calc(var(--score, 0) * 1%), #f3eadf 0);
}

.score-ring span {
  font-size: 42px;
  font-weight: 800;
}

.score-ring small { grid-row: 2; margin-top: -44px; }

.signal-bars {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.signal {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.signal-track {
  height: 9px;
  border-radius: 999px;
  background: #f3eadf;
  overflow: hidden;
}

.signal-track span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--pulse), #ffbf6b);
}

.technical-report {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.technical-report h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.technical-report dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  margin: 0;
}

.technical-report dl div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff8f0;
}

.technical-report dt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}

.technical-report dd {
  margin: 0;
  font-weight: 800;
}

.band-stack {
  display: grid;
  gap: 10px;
}

.band-row {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.recommendations ul {
  margin: 0;
  padding-left: 20px;
}

.recommendations li {
  margin: 8px 0;
}

.library-list, .promo-list {
  display: grid;
  gap: 12px;
}

.library-item, .promo-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.engine-settings li { margin: 10px 0; }

@media (max-width: 900px) {
  .eco-suite-header { overflow-x: auto; padding-inline: 16px; }
  .eco-suite-nav { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 10;
    width: 280px;
  }
  .sidebar.open { display: flex; }
  .icon-button { display: block; }
  .metric-grid, .split-layout, .analyze-grid { grid-template-columns: 1fr; }
  .workspace { padding: 18px; }
  .topbar h1 { font-size: 28px; }
  .topbar { align-items: flex-start; }
  .results-section { grid-template-columns: 1fr; }
  .technical-report dl { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .eco-support-bar { justify-content: flex-start; font-size: 12px; }
  .eco-suite-tool span { display: none; }
  .eco-suite-brand span { font-size: 15px; }
  .eco-suite-cta { padding: 12px 16px; }
  .topbar { flex-wrap: wrap; }
  .primary-action { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 16px; }
  .metric strong { font-size: 28px; }
  .panel-heading { align-items: stretch; flex-direction: column; }
}
/* Hide sidebar intro/profile cards requested 2026-07-29 */
.sidebar .brand,
.sidebar .profile {
  display: none !important;
}
