@font-face {
  font-family: Instrument Sans;
  src: url("/fonts/instrument-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("/fonts/instrument-serif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f8f9f4;
  --surface: #fdfefa;
  --sidebar: #f0f2eb;
  --ink: #253b31;
  --muted: #657168;
  --line: #dce2d7;
  --green: #286342;
  --green-soft: #e9efdf;
  --lime: #dceab7;
  --rust: #a84d37;
  --amber: #866026;
  --radius: 12px;
  --body: "Instrument Sans", sans-serif;
  --display: "Instrument Serif", serif;
}
* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "ss01" on;
  font-variant-numeric: tabular-nums;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #9ba94e;
  outline-offset: 4px;
}
svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 400 clamp(38px, 3.5vw, 54px) / 1.08 var(--display);
  letter-spacing: -1.1px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 12px;
}

.login-page { min-height: 100svh; display: flex; flex-direction: column; }
.login-header, .login-footer { margin: 0 clamp(24px, 6vw, 88px); }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.login-header .brand { margin: 0; padding: 0; }
.login-eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.8px; }
.login-main { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(40px, 8vw, 120px); width: min(1150px, 100%); margin: auto; padding: 72px clamp(24px, 6vw, 88px); }
.login-intro h1 { font-size: clamp(48px, 5.5vw, 80px); margin: 24px 0; line-height: 1.04; }
.login-intro > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.8; }
.login-panel { border-top: 3px solid var(--green); padding-top: 24px; max-width: 390px; width: 100%; }
.login-panel h2 { font: 400 36px / 1.15 var(--display); margin: 14px 0; }
#login-help { color: var(--muted); overflow-wrap: anywhere; }
.login-panel form { display: grid; gap: 12px; margin-top: 28px; }
.login-panel label { font-weight: 600; font-size: 13px; }
.login-panel input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 16px; }
.login-panel #code { font-size: 26px; letter-spacing: .22em; }
.login-panel .button { min-height: 48px; justify-content: space-between; padding: 12px 16px; }
.login-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 4px; }
.login-actions button { min-height: 36px; }
#code-help, .login-footnote { color: var(--muted); font-size: 12px; }
#login-status { min-height: 44px; margin-top: 16px; font-size: 13px; }
#login-status.login-error { color: var(--rust); }
.login-footnote { border-top: 1px solid var(--line); padding-top: 16px; }
.login-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 11px; color: var(--muted); }
.login-footer span { padding: 0 8px; }
@media (max-width: 760px) {
  .login-header > .login-eyebrow { display: none; }
  .login-main { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; gap: 32px; }
  .login-intro h1 { font-size: 44px; margin: 14px 0; }
  .login-intro > p:last-child { display: none; }
  .login-panel { max-width: none; }
  .login-panel h2 { font-size: 30px; }
}
strong {
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 14px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  width: 225px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.5px;
  padding: 0 10px;
}
.brand-light {
  font-weight: 400;
}
.brand sup {
  font-size: 15px;
  margin-left: 4px;
  vertical-align: top;
}
.brand-mark {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
  transform: skewY(-13deg);
}
.brand-mark i {
  display: block;
  background: var(--green);
  width: 5px;
  height: 13px;
}
.brand-mark i:nth-child(2) {
  height: 20px;
}
.brand-mark i:nth-child(3) {
  height: 27px;
}
.workspace {
  margin: 34px 0 30px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 9px;
  border-block: 1px solid var(--line);
  font-size: 12px;
}
.workspace strong,
.workspace small {
  display: block;
}
.workspace small {
  color: var(--muted);
  margin-top: 2px;
}
.workspace-symbol {
  font-size: 11px;
  letter-spacing: -0.5px;
  border: 1px solid #bac7b4;
  border-radius: 8px;
  padding: 9px 7px;
  background: #e2e8d9;
}
.workspace-arrow {
  margin-left: auto;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 13px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 10px 12px;
  color: #59675e;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}
nav a:hover {
  background: #e7ebe1;
}
nav a[aria-current="page"] {
  background: var(--green);
  color: var(--paper);
}
nav a > span:first-child {
  display: flex;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  border: 1px solid currentColor;
  opacity: 0.8;
  border-radius: 4px;
  min-width: 20px;
  text-align: center;
  padding: 0 3px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 50px 11px 0;
}
.sidebar-bottom strong {
  font-size: 13px;
  display: block;
  max-width: 150px;
  margin-top: 10px;
}
.sidebar-bottom p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 150px;
}
.local-symbol {
  font: 400 48px var(--display);
  color: #7f956b;
}
.local-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 26px;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #4e7e42;
  border-radius: 50%;
}
.shell {
  margin-left: 225px;
  min-height: 100vh;
}
.topbar {
  height: 76px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 12px;
  color: #b6bfb0;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 21px;
}
.private-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.private-badge svg {
  width: 13px;
  height: 13px;
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5e9dc;
  font-size: 10px;
  font-weight: 600;
  border: 2px solid var(--surface);
}
.toolbar {
  padding: 24px 40px 0;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.search-field {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  width: 285px;
  max-width: 100%;
}
.search-field input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  height: 42px;
  color: var(--ink);
  font-size: 12px;
}
.search-field input::placeholder {
  color: var(--muted);
}
.scope-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
select {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 27px 9px 12px;
  min-height: 40px;
  font-size: 12px;
  max-width: 100%;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 40px;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--green-soft);
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}
.button.primary:hover {
  background: #1d5033;
}
.button svg {
  width: 14px;
  height: 14px;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  min-height: 36px;
  background: none;
  border: 0;
}
.text-link:hover {
  text-decoration: underline;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}
main {
  padding: 34px 40px 32px;
  max-width: 1550px;
  margin: auto;
}
main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading .eyebrow {
  margin-bottom: 13px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 13px;
}
.date-stamp {
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 3px;
}
.date-stamp strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  padding: 23px 0 24px;
  margin-bottom: 30px;
}
.metric {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.metric:first-child {
  border: 0;
  padding-left: 0;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
}
.metric-value {
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -1.4px;
  margin: 7px 0 5px;
  font-weight: 500;
}
.metric-value span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 7px;
}
.metric-note {
  font-size: 10px;
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.panel-padding {
  padding: 24px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.panel-header p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.tag {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface);
}
.visibility-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 23px;
}
.visibility-heading strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -2px;
}
.visibility-heading p {
  font-size: 12px;
  color: var(--muted);
  max-width: 180px;
}
.distribution {
  display: flex;
  gap: 5px;
  height: 22px;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 25px;
}
.distribution span {
  min-width: 0;
}
.distribution .top {
  background: #2c6444;
}
.distribution .mid {
  background: #8baa6c;
}
.distribution .lower {
  background: #bdcf9d;
}
.distribution .absent {
  background: #e6e9e0;
}
.distribution .unknown {
  background: repeating-linear-gradient(
    135deg,
    #e3e6da 0,
    #e3e6da 3px,
    #f6f7f0 3px,
    #f6f7f0 6px
  );
}
.legend-row {
  display: grid;
  grid-template-columns: 14px 1fr 45px 45px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  font-size: 12px;
}
.legend-row > span:nth-last-child(2),
.legend-row > span:last-child {
  text-align: right;
}
.legend-row > span:last-child {
  color: var(--muted);
  font-size: 11px;
}
.swatch {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.panel-footnote {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.action-preview {
  background: #edf1e2;
  border-color: #d9e2c9;
}
.action-preview .eyebrow {
  color: #526848;
}
.action-preview h2 {
  font: 400 29px/1.1 var(--display);
  margin-top: 8px;
}
.action-preview .panel-header {
  margin-bottom: 10px;
}
.action-count-large {
  width: 37px;
  height: 37px;
  background: var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.preview-action {
  display: flex;
  gap: 13px;
  padding: 19px 0;
  border-bottom: 1px solid #d7dfcb;
}
.preview-action:last-of-type {
  border-bottom: 0;
}
.priority-dot {
  width: 26px;
  height: 26px;
  border: 1px solid #bdcba9;
  border-radius: 50%;
  font-size: 9px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.preview-action h3 {
  font-size: 12px;
  font-weight: 600;
}
.preview-action p {
  font-size: 11px;
  color: #5d7050;
  margin-top: 5px;
  line-height: 1.7;
}
.preview-action .action-app {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #5b6d50;
  margin-bottom: 4px;
}
.action-preview .text-link {
  margin-top: 10px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 16px;
}
.section-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--muted);
  background: #f3f5ee;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid #e8ece2;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f6f8f0;
}
.app-cell {
  display: flex;
  gap: 11px;
  align-items: center;
  max-width: 260px;
}
.app-cell strong {
  font-size: 12px;
  display: block;
  max-width: 200px;
  white-space: normal;
  line-height: 1.4;
}
.app-cell small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.5px;
  background: #dce8d8;
  color: #346044;
  border: 1px solid #d0dfcd;
}
.app-icon[data-tone="1"] {
  background: #e2e7ed;
  color: #4b5c6f;
  border-color: #d4dce7;
}
.app-icon[data-tone="2"] {
  background: #f3e5d7;
  color: #8e6440;
  border-color: #e7d8c7;
}
.app-icon[data-tone="3"] {
  background: #eae2ed;
  color: #705b7c;
  border-color: #ded4e3;
}
.app-icon[data-tone="4"] {
  background: #e8ebcd;
  color: #686e38;
  border-color: #dbe0b9;
}
.app-icon[data-tone="5"] {
  background: #f1ddd8;
  color: #8e574d;
  border-color: #e7cec8;
}
.app-icon.large {
  width: 48px;
  height: 48px;
  font-size: 19px;
  border-radius: 12px;
}
.owner-pill {
  font-size: 10px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.owner-pill:before {
  content: "";
  width: 4px;
  height: 4px;
  background: #819474;
  border-radius: 50%;
}
.rank {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 600;
  font-size: 15px;
}
.rank small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.rank.top-rank {
  color: var(--green);
}
.unranked {
  font-size: 11px;
  color: var(--muted);
}
.up {
  color: var(--green);
}
.down {
  color: var(--rust);
}
.cell-sub {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.row-open {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
  padding: 9px;
  min-height: 36px;
}
.row-open:hover {
  background: var(--green-soft);
  border-radius: 5px;
}
.app-name-button {
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
}
.app-name-button:hover {
  text-decoration: underline;
}
.table-caption {
  padding: 13px 18px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin: 0 40px;
  padding: 21px 0 26px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.footer-dot {
  padding: 0 8px;
}
.footer a {
  color: var(--green);
  font-weight: 500;
  min-height: 30px;
}
.notice {
  margin: 18px 40px 0;
  padding: 12px 16px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  color: var(--green);
}
.notice.error {
  background: #f4e7dc;
  color: #8b4b32;
  border-color: #e5cdbd;
}
.loading {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--green);
  margin-right: 10px;
  animation: pulse 1s infinite alternate;
}
.empty {
  padding: 55px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  font: 400 31px var(--display);
  color: var(--ink);
  margin-bottom: 10px;
}
.empty p {
  max-width: 390px;
  margin: auto;
  font-size: 13px;
}
.empty button {
  margin-top: 20px;
}
.subnav {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 20px;
  font-size: 11px;
  padding: 7px 12px;
  min-height: 34px;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr);
  gap: 22px;
  align-items: start;
}
.keyword-table th,
.keyword-table td {
  padding: 13px 14px;
}
.keyword-table .selected {
  background: #edf2e4;
}
.keyword-button {
  border: 0;
  background: none;
  padding: 4px 0;
  text-align: left;
  color: var(--ink);
  font-weight: 500;
  max-width: 220px;
  white-space: normal;
}
.keyword-button:hover {
  color: var(--green);
  text-decoration: underline;
}
.keyword-app {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.detail-panel {
  padding: 24px;
  position: sticky;
  top: 20px;
}
.detail-panel .detail-title {
  font: 400 29px/1.1 var(--display);
  word-break: break-word;
  margin-top: 10px;
}
.detail-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.detail-rank {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}
.detail-rank strong {
  font-size: 37px;
  letter-spacing: -1.5px;
  font-weight: 500;
}
.detail-rank span {
  color: var(--muted);
  font-size: 11px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.mini-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}
.mini-heading span {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
}
.history-plot {
  display: block;
  width: 100%;
  height: auto;
  margin: 9px 0 0;
}
.history-plot text {
  fill: var(--muted);
  font: 10px var(--body);
}
.history-plot .gridline {
  stroke: var(--line);
  stroke-dasharray: 3 4;
  stroke-width: 1;
}
.history-plot .line {
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
}
.history-plot .point {
  fill: var(--green);
  stroke: var(--surface);
  stroke-width: 3;
}
.chart-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.result-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: center;
  border-bottom: 1px solid #e8ece2;
  font-size: 11px;
}
.result-list li:last-child {
  border: 0;
}
.result-list .result-number {
  color: var(--muted);
  width: 18px;
  flex: none;
  font-size: 10px;
}
.result-list .is-target {
  color: var(--green);
  font-weight: 600;
}
.result-list a {
  margin-left: auto;
  flex: none;
  min-height: 32px;
  padding: 6px;
}
.result-list strong {
  font-weight: 500;
}
.details-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
  line-height: 1.7;
}
details {
  font-size: 11px;
  margin-top: 15px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 32px;
  padding: 5px 0;
}
details p {
  margin: 8px 0;
}
details table {
  font-size: 10px;
}
.app-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
  gap: 26px;
  padding: 26px;
  margin-bottom: 25px;
}
.app-detail-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.app-detail-heading h2 {
  font: 400 31px/1.1 var(--display);
}
.app-detail-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.description {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-line;
  max-height: 140px;
  overflow: auto;
  line-height: 1.75;
}
.description:focus-visible {
  outline: 2px solid var(--green);
}
.metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.metadata dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.metadata dd {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.4px;
}
.metadata dd small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  letter-spacing: 0;
}
.app-detail .tag {
  margin-bottom: 15px;
}
.action-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.action-item {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.action-item:first-child {
  padding-top: 0;
}
.action-item h2 {
  font: 400 29px/1.15 var(--display);
  margin: 10px 0;
}
.action-item .action-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.action-item .next-step {
  font-size: 13px;
  line-height: 1.8;
  color: #4f6256;
  max-width: 650px;
}
.evidence {
  font-size: 11px;
  background: var(--green-soft);
  padding: 12px 15px;
  border-radius: 6px;
  margin: 17px 0;
}
.evidence strong {
  font-weight: 600;
}
.success-metric {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}
.action-form {
  margin-top: 19px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.action-form label {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.action-form textarea {
  resize: vertical;
  min-height: 70px;
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  margin-top: 6px;
}
.action-form select {
  margin-top: 6px;
  min-width: 150px;
}
.action-note {
  grid-column: 1/-1;
}
.workflow {
  padding: 24px;
  background: #edf1e2;
  border: 1px solid #d9e2c9;
  border-radius: 12px;
}
.workflow h2 {
  font: 400 31px var(--display);
  margin: 9px 0 22px;
}
.workflow-step {
  display: flex;
  gap: 13px;
  margin: 19px 0;
}
.workflow-step > span {
  font-size: 10px;
  color: var(--green);
  border: 1px solid #b6c4a7;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.workflow-step h3 {
  font-size: 12px;
}
.workflow-step p {
  font-size: 11px;
  color: #5b6e50;
  margin-top: 5px;
  line-height: 1.7;
}
.footer-note {
  font-size: 11px;
  color: var(--muted);
  padding-top: 20px;
}
.saved-note {
  font-size: 11px;
  color: var(--green);
  margin: 10px 0;
}
.status-text {
  font-size: 10px;
  color: var(--muted);
}
.source-note {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 20px;
}
.source-note .status-dot {
  width: 5px;
  height: 5px;
}
.refreshing .icon {
  animation: spin 1.2s linear infinite;
}
.view {
  animation: enter 0.25s ease-out;
}
@keyframes pulse {
  to {
    opacity: 0.35;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  .toolbar,
  .topbar {
    padding-inline: 52px;
  }
  main {
    padding-inline: 52px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding-inline: 13px;
  }
  .shell {
    margin-left: 195px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .toolbar {
    padding: 20px 25px 0;
    gap: 10px;
  }
  .scope-controls {
    gap: 6px;
  }
  main {
    padding: 30px 25px;
  }
  .footer {
    margin-inline: 25px;
  }
  .overview-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.25fr) minmax(265px, 1fr);
  }
  .panel-padding {
    padding: 20px;
  }
  .metric {
    padding-left: 17px;
  }
  .explorer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-panel {
    position: static;
  }
  .action-layout {
    grid-template-columns: 1fr;
  }
  .workflow {
    display: none;
  }
  .search-field {
    width: 210px;
  }
  .notice {
    margin-inline: 25px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 20px 10px;
    display: block;
  }
  .brand {
    padding: 0;
    font-size: 27px;
  }
  .brand-mark {
    height: 20px;
  }
  .brand-mark i {
    width: 4px;
  }
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    margin-top: 20px;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px 12px;
    min-height: 42px;
    gap: 7px;
  }
  nav .nav-count {
    display: none;
  }
  nav svg.icon {
    width: 15px;
    height: 15px;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 54px;
    padding-inline: 22px;
  }
  .toolbar {
    flex-wrap: wrap;
    padding: 15px 22px 0;
  }
  .search-field {
    width: 100%;
  }
  .scope-controls {
    width: 100%;
    gap: 8px;
  }
  .scope-controls label {
    flex: 1;
  }
  .scope-controls select {
    width: 100%;
  }
  main {
    padding: 28px 22px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .date-stamp {
    display: none;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .metrics {
    padding-block: 20px;
  }
  .metric {
    padding-left: 15px;
  }
  .metric-value {
    font-size: 29px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-note {
    font-size: 9px;
  }
  .footer {
    margin-inline: 22px;
  }
  .app-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .explorer-grid {
    gap: 20px;
  }
  .notice {
    margin-inline: 22px;
  }
  .workspace-arrow {
    display: none;
  }
  .private-badge {
    font-size: 10px;
  }
  .panel-padding {
    padding: 22px;
  }
  .footer {
    font-size: 9px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 26px 17px;
  }
  .topbar {
    padding-inline: 18px;
  }
  .toolbar {
    padding-inline: 17px;
  }
  .sidebar {
    padding-inline: 17px;
  }
  nav a {
    font-size: 11px;
    padding-inline: 9px;
  }
  nav a > span:first-child {
    display: none;
  }
  .scope-controls select {
    font-size: 11px;
    padding-left: 8px;
  }
  .button {
    font-size: 11px;
    padding-inline: 10px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .metric:nth-child(3) {
    border: 0;
    padding-left: 0;
  }
  .metric:nth-child(2),
  .metric:nth-child(4) {
    padding-left: 22px;
  }
  .metric-note {
    font-size: 10px;
  }
  .metric-label {
    font-size: 11px;
  }
  .section-title {
    align-items: flex-start;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title .text-link {
    font-size: 10px;
    white-space: nowrap;
  }
  .section-title p {
    font-size: 10px;
  }
  .panel-header h2 {
    font-size: 18px;
  }
  .action-preview h2 {
    font-size: 29px;
  }
  .action-form {
    grid-template-columns: 1fr;
  }
  .action-form .button {
    justify-self: start;
  }
  .action-form select {
    width: 100%;
  }
  .footer {
    flex-wrap: wrap;
    gap: 8px;
    margin-inline: 17px;
  }
  .detail-panel {
    padding: 20px;
  }
  .notice {
    margin-inline: 17px;
  }
  .topbar-right {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep the full navigation labels on one line in the desktop rail. */
nav a {
  gap: 8px;
  font-size: 12px;
}
nav svg.icon {
  width: 16px;
  height: 16px;
}
.nav-count {
  font-size: 9px;
  min-width: 18px;
}
@media (min-width: 801px) and (max-width: 1150px) {
  nav .nav-count {
    display: none;
  }
}
@media (max-width: 1150px) {
  .detail-panel {
    grid-row: 1;
  }
}
.table-wrap {
  position: relative;
  max-width: 100%;
}
@media (max-width: 480px) {
  .scope-controls {
    flex-wrap: wrap;
  }
  .scope-controls label {
    flex: 1 1 40%;
  }
  .scope-controls .button {
    width: 100%;
  }
  nav a {
    font-size: 10px;
    padding-inline: 7px;
  }
  nav {
    gap: 3px;
  }
}

/* The assistant reads like a working brief, with evidence beside the next decision. */
.assistant-context { display: flex; align-items: end; gap: 28px; margin: 12px 0 28px; }
.assistant-context label { flex: 1; max-width: 600px; }
.assistant-context p { font-size: 11px; color: var(--muted); margin-top: 9px; }
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 38px; align-items: start; }
.assistant-layout > section { min-width: 0; }
.assistant-context label, .assistant-brief label, .assistant-query label, .assistant-variable { display: grid; gap: 9px; font-size: 12px; font-weight: 600; }
.assistant-context select, .assistant-query input, .assistant-query select, .assistant-brief input, .assistant-brief textarea, .assistant-variable select { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 5px; }
.assistant-layout .section-title { margin-top: 26px; }
.assistant-layout .section-title:first-child { margin-top: 0; }
.assistant-brief { padding: 27px; background: var(--green-soft); border-top: 3px solid var(--green); }
.assistant-brief h2 { font: 32px/1.1 var(--display); margin: 12px 0 16px; }
.assistant-brief p { font-size: 12px; line-height: 1.7; margin: 12px 0; }
.assistant-brief label { margin: 22px 0; }
.assistant-brief textarea { min-height: 115px; resize: vertical; }
.keyword-idea { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.keyword-idea h3 { font-size: 18px; }
.keyword-idea p, .assistant-signal p { font-size: 12px; color: var(--muted); margin: 8px 0; line-height: 1.7; }
.keyword-idea .text-link { flex-shrink: 0; }
.assistant-query { display: flex; gap: 12px; align-items: end; margin: 24px 0 10px; }
.assistant-query label { flex: 1; min-width: 0; }
.research-result { margin: 26px 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.research-result h2 { margin: 12px 0; }
.research-result p { margin-block: 8px; color: var(--muted); font-size: 12px; }
.research-result li { padding: 6px 0; }
.assistant-signal { border-bottom: 1px solid var(--line); padding: 18px 0; }
.assistant-signal > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.assistant-signal small { font-size: 10px; color: var(--muted); }
.creative-strip { margin-top: 28px; }
.screenshot-strip { display: flex; overflow-x: auto; gap: 16px; padding: 16px 0; max-width: 100%; }
.screenshot-strip a { flex: 0 0 150px; }
.screenshot-strip img { width: 150px; height: 280px; object-fit: contain; object-position: top; background: var(--sidebar); border: 1px solid var(--line); }
.screenshot-strip span { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.experiment-pair { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0; border-block: 1px solid var(--line); }
.experiment-pair article { padding: 24px 18px; }
.experiment-pair h3 { margin: 13px 0; }
.experiment-pair p, .experiment-measure { font-size: 12px; line-height: 1.8; }
.experiment-treatment { background: var(--green-soft); }
.assistant-layout .details-note { overflow-wrap: anywhere; }
.intelligence-tabs { flex-wrap: wrap; }
.listing-change pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow-y: auto; font: 12px/1.6 var(--body); margin-top: 12px; }
.listing-change .experiment-pair { min-width: 280px; }
.review-entry { padding: 24px 0; border-top: 1px solid var(--line); }
.review-entry h3 { margin: 12px 0; }
.review-entry small { color: var(--muted); overflow-wrap: anywhere; }
.review-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; margin: 12px 0; }
.chart-history { max-width: 560px; }
@media (max-width: 1200px) {
  .assistant-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .assistant-brief { max-width: 700px; }
}
@media (max-width: 600px) {
  .assistant-context { display: grid; gap: 16px; }
  .assistant-query { display: grid; }
  .assistant-query .button { justify-self: start; }
  .keyword-idea { display: grid; gap: 10px; }
  .keyword-idea .text-link { justify-self: start; }
  .experiment-pair { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; }
  .assistant-layout .subnav { flex-wrap: wrap; }
}
