:root {
  --ink: #1c2620;
  --muted: #5c6a61;
  --line: #dde3dc;
  --bg: #f4f6f2;
  --panel: #ffffff;
  --green: #2e6f4a;
  --green-soft: #e4f0e8;
  --amber: #a9761c;
  --amber-soft: #f9efd9;
  --red: #a63d2e;
  --red-soft: #f7e6e2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

.shell-root { max-width: 1120px; margin: 0 auto; padding: 20px 20px 60px; }

/* ---- Preview / client-link chrome ---- */
.preview-badge {
  align-self: center;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(169, 118, 28, 0.4);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.preview-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.preview-footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  background: var(--green-soft);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ---- Share index page ---- */
.share-page { max-width: 780px; margin: 0 auto; }
.share-head { padding: 8px 0 20px; }
.share-head h1 { font-size: 22px; margin-bottom: 4px; }
.share-head .preview-badge { display: inline-block; margin-top: 12px; }
.share-section { margin-bottom: 22px; }
.share-section h2 { font-size: 15px; margin-bottom: 10px; color: var(--green); }
.share-list { list-style: none; display: grid; gap: 10px; }
.share-link {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
}
.share-link:hover { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 111, 74, 0.1); }
.share-link strong { font-size: 15px; }
.share-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--green);
  margin-top: 2px;
}

.shell-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 18px;
}

.shell-header h1 { font-size: 20px; }

.shell-header { padding-right: 52px; }

/* Notifications center — fixed top-right, always accessible. */
.notif-center { position: fixed; top: 14px; right: 16px; z-index: 60; }

.notif-launcher {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 4px 14px rgba(28, 38, 32, 0.12);
  cursor: pointer;
  color: var(--green);
  line-height: 1;
  display: grid;
  place-items: center;
}
.notif-launcher--open { border-color: var(--green); background: var(--green-soft); }
.notif-icon { display: block; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.notif-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: min(360px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(28, 38, 32, 0.18);
  overflow: hidden;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.notif-panel-actions { display: flex; gap: 6px; }
.notif-panel-actions button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.notif-tabs { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.notif-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.notif-tab--active { background: var(--green); border-color: var(--green); color: #fff; }
.notif-dot {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.notif-tab--active .notif-dot { background: rgba(255, 255, 255, 0.25); color: #fff; }

.notif-list { list-style: none; max-height: 380px; overflow-y: auto; }
.notif-item { padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif-item:hover { background: #fafbf9; }
.notif-item--unread { border-left: 3px solid var(--green); background: rgba(46, 111, 74, 0.04); }
.notif-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.notif-item-head strong { font-size: 13.5px; }
.notif-item--unread .notif-item-head strong { font-weight: 800; }
.notif-body { font-size: 12.5px; color: var(--muted); margin: 3px 0; }
.notif-time { font-size: 11px; color: var(--muted); }
.notif-empty { padding: 18px 14px; font-size: 13px; }

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

.shell-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.muted { color: var(--muted); font-size: 13px; }

.role-switcher { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.role-tab {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.role-tab--active { background: var(--green); border-color: var(--green); color: #fff; }

.mock-flag {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.impersonation-banner {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.impersonation-banner button,
.panel button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.panel button:disabled { opacity: 0.5; cursor: not-allowed; }

.shell-main {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .shell-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.panel h2 { font-size: 17px; margin-bottom: 10px; }
.panel h3 { font-size: 14.5px; margin-bottom: 8px; }

.producer-profile {
  border-color: rgba(46, 111, 74, 0.28);
}

/* Member identity banner stays pinned as the dashboard scrolls. */
.widget[data-widget-id="member-home"] {
  position: sticky;
  top: 10px;
  z-index: 5;
  align-self: start;
}
.widget[data-widget-id="member-home"] .producer-profile {
  box-shadow: 0 6px 18px rgba(28, 38, 32, 0.08);
}

.producer-profile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.producer-profile__head h2 {
  font-size: 22px;
  margin: 2px 0 3px;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(46, 111, 74, 0.3);
  border-radius: 50%;
  background: #dfe9e3;
  color: var(--green);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.profile-avatar span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f7faf6;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.status-pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill--complete { background: var(--green-soft); color: var(--green); }
.status-pill--review { background: var(--amber-soft); color: var(--amber); }
.status-pill--missing { background: var(--red-soft); color: var(--red); }

.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) { .panel-row { grid-template-columns: 1fr; } }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.action-card {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  display: grid;
  align-content: start;
  gap: 6px;
}

button.action-card {
  cursor: pointer;
}

button.action-card:hover,
button.action-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 111, 74, 0.12);
  outline: none;
}

.action-card strong {
  font-size: 17px;
  line-height: 1.2;
}

.action-card small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
}

.summary-card--button {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border-color: rgba(46, 111, 74, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%);
  cursor: pointer;
}

.summary-card--button:hover,
.summary-card--button:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 111, 74, 0.12);
  outline: none;
}

.summary-card .metric { font-size: 17px; font-weight: 700; margin: 2px 0; }

.card-link-label {
  display: inline-flex;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
}

.profile-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.profile-detail-head h2 {
  font-size: 24px;
  margin: 2px 0 4px;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 820px) {
  .profile-detail-grid { grid-template-columns: 1fr; }
}

.profile-detail-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
}

.profile-detail-card--wide { grid-column: 1 / -1; }

.profile-detail-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-detail-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.profile-detail-card li {
  display: grid;
  gap: 2px;
  font-size: 13.5px;
}

.profile-detail-card li span {
  color: var(--muted);
}

.profile-percent {
  font-size: 30px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

.list { list-style: none; display: grid; gap: 8px; font-size: 13.5px; }

.list li {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.action--high .badge { background: var(--red-soft); color: var(--red); }
.action--medium .badge { background: var(--amber-soft); color: var(--amber); }
.badge--attention { background: var(--red-soft); color: var(--red); }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  padding: 7px 8px;
}
.data-table td { border-bottom: 1px solid var(--line); padding: 8px; }

.note { display: block; }
.note--internal { background: var(--amber-soft); border-radius: 8px; padding: 9px 12px; border-bottom: none; }
.note--feedback { background: var(--green-soft); border-radius: 8px; padding: 9px 12px; border-bottom: none; }

.vote-result { font-size: 12.5px; color: var(--muted); margin-top: 8px; min-height: 18px; }

.trial-filter {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12.5px;
}

.trial-filter label { display: grid; gap: 3px; font-weight: 600; color: var(--muted); }

.trial-filter select,
.trial-filter input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 12.5px;
  background: var(--panel);
  color: var(--ink);
}

.trial-detail { border-left: 3px solid var(--green); }
.trial-detail h4 { margin: 12px 0 6px; }

.export-scroll { overflow-x: auto; }

.hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.hub-head h2, .hub-head h3 { margin-bottom: 0; }

.view-toggle { display: flex; gap: 4px; }

.view-tab {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.view-tab--active { background: var(--green); border-color: var(--green); color: #fff; }

.trial-map { margin: 0; }
.trial-map svg { width: 100%; max-width: 460px; display: block; }
.trial-map figcaption { margin-top: 4px; }

.map-panel .map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
@media (max-width: 700px) { .map-panel .map-layout { grid-template-columns: 1fr; } }

.region-map { margin: 0; }
.region-map svg { width: 100%; max-width: 480px; display: block; }

.map-side { display: grid; gap: 12px; align-content: start; }

.map-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-sw { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.map-sw--farm { background: var(--green-soft); border: 2px solid var(--green); }
.map-sw--active { background: rgba(46, 111, 74, 0.12); border: 1px solid var(--green); }
.map-sw--bubble { width: 14px; height: 14px; border-radius: 50%; background: var(--green); }

.map-chips { list-style: none; display: grid; gap: 6px; }
.map-chip { font-size: 13px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; }
.map-chip strong { margin-right: 4px; }
.map-chip-farm {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.widget {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

/* Size spans: full crosses the whole grid; half occupies one column. */
.widget--full { grid-column: 1 / -1; }
.widget--half { grid-column: auto; }
.widget--collapsed { grid-column: 1 / -1; gap: 0; }
.widget--collapsed .widget-body { display: none; }

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.widget--collapsed .widget-head {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}

.widget-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.widget-grip { cursor: grab; color: var(--muted); }

.widget-size-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
}

.widget--arrange {
  border: 1.5px dashed var(--green);
  border-radius: 12px;
  padding: 8px;
  background: rgba(46, 111, 74, 0.03);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.widget--lifted {
  opacity: 0.85;
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(28, 38, 32, 0.22);
  cursor: grabbing;
}

.widget--drop-before { box-shadow: 0 -4px 0 -1px var(--green); }
.widget--drop-after { box-shadow: 0 4px 0 -1px var(--green); }

.arrange-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.side-stack {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(28, 38, 32, 0.12);
  padding: 18px;
  z-index: 20;
  overflow-y: auto;
}

.side-stack__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.side-stack__head button,
.side-stack__controls button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.side-stack__controls button:disabled { opacity: 0.4; cursor: not-allowed; }

.side-stack ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.side-stack li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
}

.side-stack__controls { display: flex; gap: 4px; }

.badge--hold { background: var(--amber-soft); color: var(--amber); }

.cd-category-row td {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  background: var(--green-soft);
}

.cd-question { max-width: 340px; }

.cd-glance { display: grid; gap: 14px; max-width: 560px; }
.cd-glance-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cd-glance-head .metric { font-size: 19px; font-weight: 700; }
.cd-glance-score { text-align: right; flex: 0 0 auto; }
.cd-score { font-size: 28px; font-weight: 800; color: var(--green); line-height: 1.1; }

.cd-catbars { display: grid; gap: 7px; }
.cd-catbar { display: grid; grid-template-columns: 150px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.cd-catbar-label { color: var(--muted); }
.cd-catbar-track { height: 12px; background: #eef1ec; border-radius: 4px; overflow: hidden; }
.cd-catbar-fill { display: block; height: 100%; border-radius: 4px; }
.cd-bar--strong { background: var(--green); }
.cd-bar--mid { background: var(--amber); }
.cd-bar--weak { background: var(--red); }
.cd-catbar-val { font-weight: 700; text-align: right; }
@media (max-width: 620px) { .cd-catbar { grid-template-columns: 110px 1fr 30px; } }

.badge--muted { background: #eef1ec; color: var(--muted); }

.market-card { display: grid; gap: 3px; }
.market-buyer { font-size: 12.5px; font-weight: 600; }
.market-price { font-size: 14px; font-weight: 700; }
.market-trend--up { color: var(--green); }
.market-trend--down { color: var(--red); }
.market-trend--flat { color: var(--muted); }
.market-premium {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 2px;
}

.ti-picker { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ti-picker select { border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; font-size: 12.5px; background: var(--panel); color: var(--ink); }

.ti-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 4px; }
.ti-panel { border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.ti-panel h4 { font-size: 14px; margin-bottom: 8px; }

.ti-stats { list-style: none; display: grid; gap: 7px; font-size: 13px; }
.ti-stats li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px; }
.ti-stats li span:first-child { color: var(--muted); }
.ti-stats strong { font-size: 15px; }
.ti-market li { grid-template-columns: 1fr; gap: 2px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.ti-market li:last-child { border-bottom: none; }

.ti-delta { font-size: 11px; font-weight: 700; grid-column: 1 / -1; }
.ti-delta--up { color: var(--green); }
.ti-delta--down { color: var(--red); }
.ti-delta--flat { color: var(--muted); }

.ti-note {
  font-size: 12px;
  color: var(--ink);
  background: var(--amber-soft);
  border-radius: 7px;
  padding: 7px 10px;
  margin-top: 9px;
}

.ti-response { border-left: 3px solid var(--green); margin-bottom: 14px; }
.ti-response--empty { border-left-color: var(--line); }
.ti-context-label { margin: 4px 0 8px; }

.ti-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 6px; }
.ti-metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ti-metric-head strong { font-size: 14px; }
.ti-lift { font-size: 15px; font-weight: 800; }
.ti-lift--up { color: var(--green); }
.ti-lift--down { color: var(--red); }
.ti-lift--flat { color: var(--muted); }
.ti-spark { width: 100%; max-width: 220px; height: auto; margin-top: 6px; display: block; }

.ti-spark-key { display: flex; gap: 14px; font-size: 11px; font-weight: 700; margin-top: 2px; }
.ti-key { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.ti-key::before { content: ""; width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.ti-key--t::before { background: var(--green); }
.ti-key--c::before { background: var(--muted); }

.cd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cd-tool-btn {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.cd-tool-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.cd-picker { display: grid; gap: 4px; max-width: 420px; margin-bottom: 14px; }
.cd-picker label { font-size: 12px; font-weight: 600; color: var(--muted); }
.cd-picker input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  background: var(--panel);
  color: var(--ink);
}

.cd-detail-head h4 { font-size: 17px; margin-bottom: 2px; }
.cd-detail .summary-grid { margin-bottom: 14px; }
.cd-detail h4.label { margin-bottom: 8px; }

.cd-compare-choose { margin-bottom: 12px; font-size: 13px; }
.cd-compare-choose summary { cursor: pointer; font-weight: 600; color: var(--green); }
.cd-compare-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.cd-compare-pick {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
.cd-compare-table td:first-child { font-weight: 600; }
.cd-compare-total td { border-top: 2px solid var(--line); }
