:root {
  --eh-ink: #173d30;
  --eh-ink-2: #2d5145;
  --eh-muted: #71847d;
  --eh-green: #18845f;
  --eh-green-dark: #0e684a;
  --eh-mint: #67d5aa;
  --eh-mint-soft: #e8f7ef;
  --eh-paper: #f7faf6;
  --eh-white: #ffffff;
  --eh-gold: #b6893a;
  --eh-line: rgba(23, 61, 48, .12);
  --eh-line-strong: rgba(23, 61, 48, .2);
  --eh-shadow: 0 22px 60px rgba(29, 68, 54, .08);
  --eh-ease: cubic-bezier(.22, .76, .24, 1);
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  color: var(--eh-ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(103, 213, 170, .13), transparent 28%),
    linear-gradient(rgba(29, 91, 68, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 91, 68, .045) 1px, transparent 1px),
    var(--eh-paper);
  background-size: auto, 64px 64px, 64px 64px, auto;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

button, input, textarea, select { font-family: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(24, 132, 95, .17); outline-offset: 2px; }

.app-shell { min-width: 0; overflow-x: hidden; grid-template-rows: auto 1fr auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 78px;
  padding: 0 clamp(22px, 3.2vw, 58px);
  border-bottom: 1px solid var(--eh-line);
  background: rgba(250, 252, 249, .88);
  box-shadow: 0 12px 36px rgba(23, 61, 48, .045);
  backdrop-filter: blur(22px) saturate(145%);
}
.topbar, .topbar > *, .content, .brand, .top-meta { min-width: 0; }

.brand, .product-brand { min-width: 0; }
.product-brand { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.product-brand img { display: block; width: 114px; height: 34px; object-fit: contain; object-position: left center; }
.brand-divider { width: 1px; height: 30px; background: var(--eh-line-strong); }
.product-name { display: grid; gap: 2px; white-space: nowrap; }
.product-name strong { color: var(--eh-ink); font-size: 15px; letter-spacing: .04em; }
.product-name small { color: var(--eh-muted); font-size: 8px; font-weight: 800; letter-spacing: .16em; }

.top-nav { display: flex; align-self: stretch; align-items: center; gap: 4px; }
.top-nav-item {
  position: relative;
  height: 100%;
  padding: 0 15px;
  border: 0;
  color: #587067;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.top-nav-item::after { position: absolute; right: 15px; bottom: 0; left: 15px; height: 2px; border-radius: 4px; background: var(--eh-green); content: ""; opacity: 0; transform: scaleX(.35); transition: .25s var(--eh-ease); }
.top-nav-item:hover, .top-nav-item.active { color: var(--eh-green-dark); background: linear-gradient(to bottom, transparent, rgba(24, 132, 95, .04)); }
.top-nav-item.active::after { opacity: 1; transform: scaleX(1); }

.top-meta { gap: 12px; }
.live-clock { display: grid; padding-right: 14px; border-right: 1px solid var(--eh-line); text-align: right; }
.live-clock > span { color: var(--eh-ink); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 800; }
.live-clock > small { margin-top: 1px; color: var(--eh-muted); font-size: 9px; }
.license-expiry { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(24, 132, 95, .12); border-radius: 999px; color: var(--eh-green-dark); background: rgba(232, 247, 239, .8); font-size: 11px; font-weight: 700; }
.license-expiry i { width: 7px; height: 7px; border-radius: 50%; background: var(--eh-mint); box-shadow: 0 0 0 5px rgba(103, 213, 170, .13); }
.account-menu { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--eh-line); border-radius: 999px; color: var(--eh-ink-2); background: #fff; cursor: pointer; font-size: 11px; transition: .2s ease; }
.account-menu > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--eh-green-dark), #4eb88d); font-size: 12px; font-weight: 900; }
.account-menu:hover { border-color: rgba(24, 132, 95, .3); box-shadow: 0 10px 26px rgba(23, 61, 48, .1); transform: translateY(-1px); }

.content { width: min(1480px, 100%); padding: clamp(22px, 3vw, 46px) clamp(20px, 3.2vw, 58px) 36px; }
.panel { border-color: var(--eh-line); border-radius: 24px; box-shadow: var(--eh-shadow); }

.summary-band { grid-template-columns: minmax(0, 1.36fr) minmax(360px, .64fr); gap: 18px; margin-bottom: 16px; }
.hero-panel { position: relative; min-height: 390px; overflow: hidden; padding: clamp(34px, 4.2vw, 64px); background: rgba(255, 255, 255, .9); }
.hero-panel::before { position: absolute; top: -160px; right: -90px; width: 430px; height: 430px; border: 1px solid rgba(24, 132, 95, .12); border-radius: 50%; box-shadow: 0 0 0 56px rgba(24, 132, 95, .028), 0 0 0 112px rgba(24, 132, 95, .02); content: ""; }
.hero-panel::after { position: absolute; right: 8%; bottom: 17%; width: 8px; height: 8px; border-radius: 50%; background: var(--eh-gold); box-shadow: 70px -46px 0 -2px var(--eh-green), -52px 29px 0 -2px var(--eh-mint); content: ""; opacity: .8; }
.hero-kicker { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 38px; }
.hero-kicker > span { color: var(--eh-green); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.hero-kicker > i { display: flex; align-items: center; gap: 7px; color: var(--eh-muted); font-size: 10px; font-style: normal; }
.hero-kicker > i::before { width: 7px; height: 7px; border-radius: 50%; background: var(--eh-mint); box-shadow: 0 0 0 5px rgba(103, 213, 170, .12); content: ""; }
.hero-panel h1 { position: relative; z-index: 1; max-width: 830px; margin: 0 0 22px; color: var(--eh-ink); font-size: clamp(36px, 4.1vw, 64px); line-height: 1.08; letter-spacing: -.045em; }
.hero-panel h1 span { color: var(--eh-green); }
.hero-panel p { position: relative; z-index: 1; max-width: 800px; color: #63786f; font-size: 14px; line-height: 1.9; }
.hero-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-proof { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #72867d; font-size: 10px; }
.hero-proof span { display: flex; align-items: center; gap: 7px; }
.hero-proof span::before { width: 5px; height: 5px; border-radius: 50%; background: var(--eh-mint); content: ""; }

.btn { min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 13px; font-weight: 800; transition: transform .2s var(--eh-ease), box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { border: 1px solid var(--eh-green); color: #fff; background: linear-gradient(135deg, var(--eh-green-dark), #40aa7e); box-shadow: 0 14px 28px rgba(18, 119, 84, .2); }
.btn-primary:hover { background: linear-gradient(135deg, #0a5a40, #28946a); box-shadow: 0 18px 34px rgba(18, 119, 84, .27); }
.btn-secondary { border: 1px solid var(--eh-line-strong); color: var(--eh-ink); background: rgba(255, 255, 255, .9); }
.btn-secondary:hover { border-color: rgba(24, 132, 95, .34); color: var(--eh-green-dark); background: var(--eh-mint-soft); }
.btn-ghost { color: var(--eh-muted); background: transparent; }
.btn-ghost:hover { color: #a14a3f; background: #fff3f1; }

.status-panel { position: relative; min-height: 390px; display: grid; align-content: end; overflow: hidden; padding: 30px; background: linear-gradient(145deg, #123c30 0%, #176448 56%, #2d936a 100%); }
.status-panel::before { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.signal-orbit { position: absolute; top: 28px; left: 50%; width: 250px; height: 250px; transform: translateX(-50%); }
.signal-core { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; width: 88px; height: 88px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); box-shadow: 0 0 0 12px rgba(255,255,255,.035), 0 24px 50px rgba(0,0,0,.18); backdrop-filter: blur(12px); transform: translate(-50%, -50%); font-size: 18px; font-weight: 900; letter-spacing: .08em; }
.signal-core small { display: block; margin-top: -24px; color: #a7f3d0; font-size: 7px; letter-spacing: .22em; }
.signal-orbit > i { position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; animation: ehOrbit 14s linear infinite; }
.signal-orbit > i:nth-of-type(2) { inset: 0 34px; transform: rotate(55deg); animation-duration: 18s; }
.signal-orbit > i:nth-of-type(3) { inset: 36px 0; transform: rotate(-45deg); animation-duration: 22s; }
.signal-orbit > i::after { position: absolute; top: 11%; right: 10%; width: 7px; height: 7px; border-radius: 50%; background: #8ee8c0; box-shadow: 0 0 12px rgba(142,232,192,.9); content: ""; }
.signal-orbit > b { position: absolute; border-radius: 50%; background: rgba(255,255,255,.65); }
.signal-orbit > b:nth-of-type(1) { top: 34px; left: 16px; width: 4px; height: 4px; }
.signal-orbit > b:nth-of-type(2) { right: 6px; bottom: 65px; width: 6px; height: 6px; }
.signal-orbit > b:nth-of-type(3) { bottom: 15px; left: 62px; width: 3px; height: 3px; }
@keyframes ehOrbit { to { transform: rotate(360deg); } }
.status-copy { position: relative; z-index: 2; padding: 18px 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(4, 42, 29, .22); backdrop-filter: blur(12px); }
.status-label { margin-bottom: 8px; color: #9fe6c5; font-size: 8px; letter-spacing: .18em; }
.status-value { font-size: 22px; }
.status-note { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 10px; }

.overview-grid { gap: 12px; }
.metric { position: relative; min-height: 145px; overflow: hidden; padding: 22px; background: rgba(255,255,255,.86); transition: .25s var(--eh-ease); }
.metric::after { position: absolute; right: -22px; bottom: -22px; width: 72px; height: 72px; border: 1px solid rgba(24,132,95,.11); border-radius: 50%; content: ""; }
.metric:hover { border-color: rgba(24,132,95,.25); box-shadow: 0 24px 56px rgba(29,68,54,.12); transform: translateY(-3px); }
.metric .metric-index { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--eh-gold); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.metric .metric-index::after { width: 30px; height: 1px; background: rgba(182,137,58,.34); content: ""; }
.metric strong { margin-bottom: 9px; color: var(--eh-ink); font-size: 16px; }
.metric > span:not(.metric-index) { color: var(--eh-muted); font-size: 11px; line-height: 1.75; }
.metric > i { position: absolute; top: 22px; right: 22px; color: rgba(23,61,48,.22); font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .14em; }

.workspace { grid-template-columns: 270px minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.side-nav { position: sticky; top: 96px; overflow: hidden; padding: 0; border-radius: 22px; background: rgba(255,255,255,.9); }
.side-head { padding: 24px 22px 20px; border-bottom: 1px solid var(--eh-line); background: linear-gradient(145deg, rgba(232,247,239,.85), rgba(255,255,255,.9)); }
.side-head > span, .side-group > span { display: block; color: var(--eh-gold); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.side-head > strong { display: block; margin-top: 8px; color: var(--eh-ink); font-size: 18px; }
.side-head > small { display: block; margin-top: 5px; color: var(--eh-muted); font-size: 10px; }
.side-group { padding: 16px 10px 4px; }
.side-group > span { padding: 0 12px 9px; color: #8fa199; }
.nav-item { position: relative; display: grid; grid-template-columns: 32px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 10px; width: 100%; min-height: 58px; margin: 0 0 4px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--eh-ink-2); background: transparent; text-align: left; }
.nav-item i { grid-row: 1 / 3; display: grid; width: 30px; height: 30px; align-self: center; place-items: center; border: 1px solid var(--eh-line); border-radius: 9px; color: #82968e; background: #fbfdfb; font-size: 8px; font-style: normal; font-weight: 900; }
.nav-item b { align-self: end; font-size: 12px; }
.nav-item small { overflow: hidden; color: #91a098; font-size: 8px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.active, .nav-item:hover { border-color: rgba(24,132,95,.1); color: var(--eh-green-dark); background: linear-gradient(90deg, rgba(222,245,233,.9), rgba(246,251,247,.82)); }
.nav-item.active::after { position: absolute; top: 12px; right: 7px; bottom: 12px; width: 2px; border-radius: 4px; background: var(--eh-green); content: ""; }
.nav-item.active i { border-color: rgba(24,132,95,.2); color: #fff; background: var(--eh-green); }
.side-progress { margin-top: 12px; padding: 18px 22px 22px; border-top: 1px solid var(--eh-line); }
.side-progress > span { display: flex; justify-content: space-between; color: var(--eh-muted); font-size: 9px; }
.side-progress > span b { color: var(--eh-green); font-size: 13px; }
.side-progress > i { display: block; height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #e8efeb; }
.side-progress > i b { display: block; width: 12%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--eh-green), var(--eh-mint)); transition: width .4s var(--eh-ease); }

.work-panel { min-height: 640px; padding: clamp(22px, 3vw, 40px); border-radius: 22px; background: rgba(255,255,255,.92); }
.tab-pane { animation: ehPaneIn .38s var(--eh-ease) both; }
@keyframes ehPaneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--eh-line); }
.pane-head > div:first-child > span { color: var(--eh-green); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.pane-head h3 { margin: 10px 0 8px; color: var(--eh-ink); font-size: clamp(24px, 2.4vw, 34px); }
.pane-head p { max-width: 720px; }
.pane-state { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(24,132,95,.12); border-radius: 999px; color: var(--eh-green-dark); background: var(--eh-mint-soft); font-size: 9px; }
.pane-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--eh-mint); }
.work-panel > .tab-pane > h3 { margin: 0 0 8px; color: var(--eh-ink); font-size: 28px; }
.work-panel > .tab-pane > h3::before { display: block; margin-bottom: 10px; color: var(--eh-green); content: "EHAI / GLOBAL OPTIMIZATION"; font-size: 8px; letter-spacing: .18em; }

.form-section { margin-top: 22px; padding: 24px; border: 1px solid var(--eh-line); border-radius: 18px; background: linear-gradient(145deg, rgba(249,252,249,.96), rgba(255,255,255,.96)); }
.form-section-head { display: flex; align-items: flex-start; gap: 14px; }
.form-section-head > span { flex: 0 0 auto; padding: 7px 9px; border-radius: 8px; color: var(--eh-green-dark); background: var(--eh-mint-soft); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.form-section-head h4 { color: var(--eh-ink); font-size: 16px; }
.form-section-head p { margin-top: 4px; font-size: 10px; }
.geo-form { gap: 18px; margin-top: 20px; }
.geo-form .field { position: relative; }
.geo-form label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--eh-ink-2); font-size: 11px; }
.geo-form label em { padding: 3px 6px; border-radius: 999px; color: var(--eh-green); background: rgba(103,213,170,.12); font-size: 7px; font-style: normal; font-weight: 700; }
.geo-form .field > small { display: block; margin-top: 7px; color: #97a69f; font-size: 8px; }
.geo-form input, .geo-form select, .geo-form textarea, .report-box {
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--eh-line-strong);
  border-radius: 12px;
  color: var(--eh-ink);
  background: rgba(255,255,255,.95);
  font-size: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.geo-form input::placeholder, .geo-form textarea::placeholder { color: #a5b2ac; }
.geo-form input:hover, .geo-form select:hover, .geo-form textarea:hover { border-color: rgba(24,132,95,.28); }
.geo-form input:focus, .geo-form select:focus, .geo-form textarea:focus { border-color: var(--eh-green); box-shadow: 0 0 0 4px rgba(24,132,95,.09); }
.api-secret-control { position: relative; width: 100%; }
.geo-form .api-secret-control > input { width: 100%; padding-right: 76px; }
.api-secret-control input::-ms-reveal,
.api-secret-control input::-ms-clear { display: none; }
.api-secret-control input::-webkit-credentials-auto-fill-button { visibility: hidden; pointer-events: none; position: absolute; right: 0; }
.api-secret-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(24,132,95,.10);
  border-radius: 11px;
  color: var(--eh-green-dark);
  background: #eaf7ef;
  box-shadow: none;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.api-secret-toggle:hover { border-color: rgba(24,132,95,.22); background: #def1e6; }
.api-secret-toggle:active { transform: translateY(-50%) scale(.97); }
.api-secret-toggle:focus-visible { outline: 3px solid rgba(24,132,95,.17); outline-offset: 2px; }
.geo-form textarea { min-height: 106px; }
.field-invalid { padding: 10px; border-radius: 14px; background: #fff5f3; box-shadow: inset 0 0 0 1px rgba(192,75,60,.13); }
.field-invalid > label { color: #a7473a; }
.field-invalid input, .field-invalid .market-trigger { border-color: rgba(192,75,60,.42); }

.quick-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.quick-options button { min-height: 28px; padding: 0 10px; border: 1px solid var(--eh-line); border-radius: 999px; color: #6e8279; background: #fff; cursor: pointer; font-size: 8px; transition: .18s ease; }
.quick-options button:hover, .quick-options button.selected { border-color: rgba(24,132,95,.25); color: var(--eh-green-dark); background: var(--eh-mint-soft); transform: translateY(-1px); }

.eh-select { position: relative; }
.eh-select > select { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.eh-select-trigger { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 13px 0 15px; border: 1px solid var(--eh-line-strong); border-radius: 12px; color: var(--eh-ink); background: #fff; cursor: pointer; font-size: 12px; text-align: left; transition: .2s ease; }
.eh-select-trigger i, .market-trigger i { position: relative; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: var(--eh-mint-soft); }
.eh-select-trigger i::before, .market-trigger i::before { width: 6px; height: 6px; border-right: 1.5px solid var(--eh-green-dark); border-bottom: 1.5px solid var(--eh-green-dark); content: ""; transform: translateY(-2px) rotate(45deg); transition: .2s var(--eh-ease); }
.eh-select-trigger[aria-expanded="true"], .market-trigger[aria-expanded="true"] { border-color: var(--eh-green); box-shadow: 0 0 0 4px rgba(24,132,95,.09); }
.eh-select-trigger[aria-expanded="true"] i::before, .market-trigger[aria-expanded="true"] i::before { transform: translateY(2px) rotate(225deg); }
.eh-select-menu { position: absolute; top: calc(100% + 7px); right: 0; left: 0; z-index: 80; max-height: 280px; overflow: auto; padding: 7px; border: 1px solid var(--eh-line); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 22px 46px rgba(23,61,48,.16); animation: ehMenuIn .2s var(--eh-ease) both; backdrop-filter: blur(18px); }
.eh-select-option { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between; padding: 0 11px; border: 0; border-radius: 9px; color: #536b61; background: transparent; cursor: pointer; font-size: 10px; text-align: left; }
.eh-select-option:hover, .eh-select-option[aria-selected="true"] { color: var(--eh-green-dark); background: var(--eh-mint-soft); }
.eh-select-option[aria-selected="true"]::after { width: 7px; height: 4px; border-bottom: 1.5px solid var(--eh-green); border-left: 1.5px solid var(--eh-green); content: ""; transform: rotate(-45deg); }
@keyframes ehMenuIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }

.market-select { position: relative; }
.market-trigger { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; padding: 0 14px 0 16px; border: 1px solid var(--eh-line-strong); border-radius: 12px; color: #8a9b94; background: #fff; cursor: pointer; font-size: 12px; text-align: left; }
.market-trigger.has-value { color: var(--eh-ink); }
.market-menu { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 85; overflow: hidden; border: 1px solid var(--eh-line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 26px 60px rgba(23,61,48,.17); animation: ehMenuIn .22s var(--eh-ease) both; backdrop-filter: blur(20px); }
.market-menu-head { padding: 17px 18px 13px; border-bottom: 1px solid var(--eh-line); }
.market-menu-head strong { display: block; color: var(--eh-ink); font-size: 13px; }
.market-menu-head small { display: block; margin-top: 3px; color: var(--eh-muted); font-size: 8px; }
.market-groups { display: grid; grid-template-columns: repeat(3, 1fr); max-height: 330px; overflow: auto; padding: 14px 16px; gap: 14px; }
.market-groups section { align-content: start; display: flex; flex-wrap: wrap; gap: 6px; }
.market-groups h5 { width: 100%; margin-bottom: 2px; color: #8c9d95; font-size: 8px; letter-spacing: .1em; }
.market-groups label { display: block; margin: 0; cursor: pointer; }
.market-groups input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.market-groups label span { display: block; padding: 7px 10px; border: 1px solid var(--eh-line); border-radius: 9px; color: #5e756b; background: #fff; font-size: 9px; transition: .18s ease; }
.market-groups label:hover span, .market-groups input:checked + span { border-color: rgba(24,132,95,.26); color: var(--eh-green-dark); background: var(--eh-mint-soft); box-shadow: inset 0 0 0 1px rgba(24,132,95,.05); }
.market-menu-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--eh-line); background: #fbfdfb; }
.market-menu-actions > button:not(.btn) { min-height: 38px; padding: 0 12px; border: 0; color: var(--eh-muted); background: transparent; cursor: pointer; font-size: 9px; }
.market-menu-actions .btn { min-height: 38px; padding: 0 16px; font-size: 9px; }
.market-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.market-tags span { padding: 5px 8px; border-radius: 999px; color: #7b8f86; background: #eef4f0; font-size: 8px; }
.market-tags span.selected { color: var(--eh-green-dark); background: var(--eh-mint-soft); }

.tool-actions { column-gap: 18px; row-gap: 12px; margin-top: 22px; margin-bottom: 18px; padding-top: 20px; border-top: 1px solid var(--eh-line); }
.tool-actions .btn { flex: 0 0 auto; margin: 0; }
.tool-actions + .question-item,
.tool-actions + .question-list,
.tool-actions + .report-box,
.tool-actions + .score-grid { margin-top: 18px; }
.score-grid { gap: 9px; }
.score { padding: 16px; border: 1px solid rgba(24,132,95,.1); border-radius: 14px; background: linear-gradient(145deg, #f2fbf6, #fbfdfb); }
.score span { color: var(--eh-green); font-size: 9px; }
.score b { color: var(--eh-ink); font-size: 23px; }
.insight-card, .question-item, .prompt-item { border-color: var(--eh-line); border-radius: 13px; background: #fbfdfb; }
.content-table { border-color: var(--eh-line); border-radius: 14px; }
.content-table th { color: var(--eh-ink); background: var(--eh-mint-soft); }
.content-table th, .content-table td { border-color: var(--eh-line); }
.report-box { border-color: rgba(23,61,48,.14); color: #dff7eb; background: #123c30; }
#generatedContentBox {
  display: block;
  width: 100%;
  min-height: 360px;
  height: min(56vh, 640px);
  max-height: 72vh;
  padding: 22px 24px;
  overflow: auto;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.85;
  scrollbar-gutter: stable;
  resize: vertical;
}
#generatedContentBox::-webkit-scrollbar { width: 10px; }
#generatedContentBox::-webkit-scrollbar-track { margin: 12px 0; background: transparent; }
#generatedContentBox::-webkit-scrollbar-thumb { border: 3px solid #123c30; border-radius: 999px; background: rgba(223,247,235,.42); }
#generatedContentBox::-webkit-scrollbar-thumb:hover { background: rgba(223,247,235,.62); }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(22px, 3.2vw, 58px) 28px; color: #8a9c94; font-size: 9px; text-align: left; }

.eh-toast-region { position: fixed; top: 94px; right: 24px; z-index: 10000; display: grid; gap: 9px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.eh-toast { display: flex; align-items: flex-start; gap: 11px; padding: 15px 17px; border: 1px solid var(--eh-line); border-radius: 14px; color: var(--eh-ink-2); background: rgba(255,255,255,.96); box-shadow: 0 20px 50px rgba(23,61,48,.17); opacity: 0; transform: translateY(-8px) scale(.98); transition: .24s var(--eh-ease); backdrop-filter: blur(18px); font-size: 11px; line-height: 1.65; }
.eh-toast.visible { opacity: 1; transform: none; }
.eh-toast i { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: var(--eh-mint); box-shadow: 0 0 0 4px rgba(103,213,170,.13); }

@media (max-width: 1180px) {
  .top-nav { display: none; }
  .topbar { justify-content: space-between; }
  .summary-band { grid-template-columns: 1fr .65fr; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .top-nav-item { flex: 0 0 auto; padding: 0 9px; font-size: 11px; }
  .live-clock { display: none; }
  .product-name small { display: none; }
}

@media (max-width: 900px) {
  .topbar { position: sticky; display: flex; min-height: 68px; padding: 10px 18px; }
  .product-brand img { width: 90px; }
  .brand .product-name { display: none; }
  .brand .brand-divider { display: none; }
  .live-clock { display: none; }
  .account-menu strong { display: none; }
  .account-menu { padding-right: 5px; }
  .content { padding: 18px 14px 26px; }
  .summary-band { grid-template-columns: 1fr; }
  .hero-panel, .status-panel { min-height: auto; }
  .status-panel { min-height: 270px; }
  .signal-orbit { top: 4px; transform: translateX(-50%) scale(.75); }
  .workspace { grid-template-columns: 1fr; }
  .side-nav { position: sticky; top: 68px; z-index: 70; display: flex; gap: 7px; overflow-x: auto; padding: 8px; border-radius: 15px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-head, .side-group > span, .side-progress { display: none; }
  .side-group { display: contents; }
  .nav-item { flex: 0 0 auto; display: flex; min-height: 42px; align-items: center; gap: 7px; width: auto; margin: 0; padding: 6px 10px; white-space: nowrap; }
  .nav-item i { width: 25px; height: 25px; }
  .nav-item b { font-size: 10px; }
  .nav-item small { display: none; }
  .nav-item.active::after { top: auto; right: 12px; bottom: 0; left: 12px; width: auto; height: 2px; }
  .work-panel { padding: 22px 18px; }
  .market-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .license-expiry { max-width: 150px; padding: 7px 8px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .hero-panel { padding: 28px 22px; }
  .hero-kicker { margin-bottom: 24px; }
  .hero-kicker > i { display: none; }
  .hero-panel h1 { font-size: 35px; }
  .hero-panel p { font-size: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { gap: 10px 14px; }
  .overview-grid { grid-template-columns: 1fr; }
  .metric { min-height: 126px; }
  .pane-head { display: grid; }
  .pane-state { justify-self: start; }
  .form-section { padding: 18px 14px; }
  .geo-form { grid-template-columns: 1fr; }
  .geo-form .field.wide { grid-column: auto; }
  .market-menu { position: fixed; top: auto; right: 10px; bottom: 10px; left: 10px; max-height: min(76vh, 620px); }
  .market-groups { grid-template-columns: 1fr; max-height: 52vh; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-actions { column-gap: 12px; row-gap: 12px; margin-bottom: 16px; }
  .tool-actions .btn { flex: 1 1 100%; }
  #generatedContentBox { min-height: 320px; height: 54vh; max-height: 68vh; padding: 18px; font-size: 12px; line-height: 1.75; }
  .geo-form .api-secret-control > input { padding-right: 70px; }
  .api-secret-toggle { right: 8px; min-width: 50px; height: 32px; padding: 0 10px; }
  .footer { display: grid; text-align: center; }
  .eh-toast-region { top: 78px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal-orbit > i, .tab-pane, .eh-select-menu, .market-menu { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* 2026-08 readability system: double the small UI type without breaking the workspace grid. */
body { font-size: 18px; }
.content { width: min(1720px, 100%); }
.product-name strong { font-size: 24px; letter-spacing: .015em; }
.product-name small { font-size: 13px; letter-spacing: .12em; }
.top-nav-item { padding-inline: 18px; font-size: 15px; }
.live-clock > span { font-size: 16px; }
.live-clock > small { font-size: 12px; }
.license-expiry, .account-menu { font-size: 14px; }
.hero-kicker > span, .hero-kicker > i { font-size: 15px; }
.hero-panel p { max-width: 940px; font-size: 19px; line-height: 1.8; }
.hero-proof { font-size: 15px; }
.btn { min-height: 54px; padding-inline: 24px; font-size: 17px; }
.signal-core small { font-size: 11px; }
.status-label { font-size: 14px; }
.status-value { font-size: 28px; }
.status-note { font-size: 16px; }
.overview-grid { gap: 16px; }
.metric { min-height: 188px; padding: 28px; }
.metric .metric-index { font-size: 15px; }
.metric strong { font-size: 25px; line-height: 1.3; }
.metric > span:not(.metric-index) { font-size: 18px; line-height: 1.7; }
.metric > i { font-size: 12px; }
.workspace { grid-template-columns: 320px minmax(0, 1fr); }
.side-head > span, .side-group > span { font-size: 14px; }
.side-head > strong { font-size: 25px; }
.side-head > small { font-size: 16px; line-height: 1.6; }
.nav-item { grid-template-columns: 42px minmax(0, 1fr); min-height: 78px; padding: 12px 14px; }
.nav-item i { width: 38px; height: 38px; font-size: 14px; }
.nav-item b { font-size: 18px; }
.nav-item small { font-size: 14px; }
.side-progress > span { font-size: 14px; }
.side-progress > span b { font-size: 20px; }
.pane-head > div:first-child > span { font-size: 15px; }
.pane-head h3 { font-size: clamp(34px, 3vw, 46px); line-height: 1.22; }
.pane-head p, .work-panel > .tab-pane > p { color: var(--eh-muted); font-size: 18px; line-height: 1.75; }
.pane-state { font-size: 15px; }
.work-panel > .tab-pane > h3 { font-size: 38px; }
.work-panel > .tab-pane > h3::before { font-size: 14px; }
.form-section { padding: 30px; }
.form-section-head > span { padding: 9px 11px; font-size: 14px; }
.form-section-head h4 { font-size: 26px; line-height: 1.25; }
.form-section-head p { margin-top: 7px; font-size: 17px; line-height: 1.65; }
.geo-form { gap: 24px; margin-top: 26px; }
.geo-form label { margin-bottom: 11px; font-size: 19px; font-weight: 750; }
.geo-form label em { padding: 4px 8px; font-size: 12px; }
.geo-form .field > small { margin-top: 9px; font-size: 14px; line-height: 1.6; }
.geo-form input, .geo-form select, .geo-form textarea, .report-box {
  min-height: 66px;
  padding: 16px 19px;
  border-radius: 15px;
  font-size: 20px;
  line-height: 1.6;
}
.geo-form textarea { min-height: 150px; }
.api-secret-toggle { right: 12px; min-width: 66px; height: 42px; font-size: 14px; }
.quick-options { gap: 9px; margin-top: 12px; }
.quick-options button { min-height: 42px; padding-inline: 15px; font-size: 16px; }
.eh-select-trigger { min-height: 66px; padding-inline: 19px 14px; border-radius: 15px; font-size: 20px; }
.eh-select-trigger i, .market-trigger i { width: 36px; height: 36px; border-radius: 11px; }
.eh-select-menu { max-height: 380px; padding: 10px; border-radius: 17px; }
.eh-select-option { min-height: 54px; padding-inline: 15px; border-radius: 11px; font-size: 18px; }
.market-trigger { min-height: 68px; padding-inline: 19px 15px; border-radius: 15px; font-size: 20px; }
.market-menu-head { padding: 20px 22px 16px; }
.market-menu-head strong { font-size: 21px; }
.market-menu-head small { margin-top: 5px; font-size: 14px; }
.market-groups { gap: 18px; max-height: 430px; padding: 18px 20px; }
.market-groups h5 { font-size: 14px; }
.market-groups label span { padding: 10px 13px; font-size: 16px; }
.market-menu-actions > button:not(.btn), .market-menu-actions .btn { min-height: 46px; font-size: 15px; }
.market-tags span { padding: 7px 11px; font-size: 14px; }
.score { padding: 21px; }
.score span { font-size: 15px; }
.score b { font-size: 32px; }
.insight-card, .question-item, .prompt-item, .content-table { font-size: 17px; line-height: 1.75; }
.content-table th, .content-table td { padding: 15px; font-size: 16px; line-height: 1.65; }
.report-box, #generatedContentBox { font-size: 18px; line-height: 1.85; }
#generatedContentBox { min-height: 440px; padding: 26px 28px; }
.footer { font-size: 14px; }
.eh-toast { width: min(440px, calc(100vw - 28px)); font-size: 16px; }

@media (max-width: 1500px) and (min-width: 1181px) {
  .product-name strong { font-size: 20px; }
  .top-nav-item { padding-inline: 10px; font-size: 14px; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .workspace { grid-template-columns: 1fr; }
  .nav-item { min-height: 50px; padding: 8px 12px; }
  .nav-item i { width: 30px; height: 30px; font-size: 12px; }
  .nav-item b { font-size: 16px; }
  .work-panel { padding: 25px 20px; }
  .form-section { padding: 24px 19px; }
  .market-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .license-expiry { max-width: 165px; font-size: 12px; }
  .hero-panel h1 { font-size: 38px; }
  .hero-panel p { font-size: 17px; }
  .hero-proof { font-size: 14px; }
  .metric { min-height: 160px; }
  .metric strong { font-size: 23px; }
  .metric > span:not(.metric-index) { font-size: 17px; }
  .pane-head h3, .work-panel > .tab-pane > h3 { font-size: 31px; }
  .pane-head p, .work-panel > .tab-pane > p { font-size: 17px; }
  .form-section-head h4 { font-size: 23px; }
  .form-section-head p { font-size: 16px; }
  .geo-form label { font-size: 18px; }
  .geo-form input, .geo-form select, .geo-form textarea, .report-box,
  .eh-select-trigger, .market-trigger { font-size: 18px; }
  .eh-select-option { font-size: 17px; }
  .market-groups { grid-template-columns: 1fr; }
  .market-groups label span { font-size: 17px; }
  #generatedContentBox { min-height: 360px; height: 56vh; padding: 22px; font-size: 17px; }
}
