:root {
  --ink: #18313d;
  --muted: #647b86;
  --line: #d7e9e5;
  --paper: #f3faf8;
  --panel: #ffffff;
  --teal: #1f8a80;
  --mint: #e9f8f3;
  --gold: #f4c85f;
  --blue: #5e9fe8;
  --green: #36b37e;
  --coral: #e7957f;
  --sidebar-ink: #173240;
  --sidebar-muted: #66828c;
  --sidebar-line: rgba(77, 154, 151, 0.22);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.preview-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(31, 47, 61, 0.92);
}

.preview-login-card {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(10, 28, 38, 0.25);
}

.preview-login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.preview-login-brand h1 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.preview-login-brand p,
.preview-login-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.preview-login-field {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.preview-login-field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.preview-login-field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--ink);
  outline: none;
}

.preview-login-status {
  min-height: 20px;
  margin-top: 12px;
}

.preview-login-card .preview-primary {
  width: 100%;
  margin: 16px 0 0;
}

button,
input,
select {
  font: inherit;
}

.seed-app {
  display: grid;
  grid-template-columns: 340px minmax(860px, 1fr);
  min-height: 100vh;
}

.seed-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 20px;
  color: var(--sidebar-ink);
  background:
    radial-gradient(circle at 14% 7%, rgba(244, 200, 95, 0.32), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(94, 159, 232, 0.18), transparent 30%),
    linear-gradient(180deg, #ecfbf7 0%, #e7f6ff 48%, #f7fbf6 100%);
  border-right: 1px solid rgba(77, 154, 151, 0.18);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-mark {
  width: 68px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(39, 94, 107, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

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

.brand-lockup h1 {
  color: var(--sidebar-ink);
  font-size: 18px;
  line-height: 1.2;
}

.brand-lockup p,
.upload-box small,
.step-row span {
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tool-drawer-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.tool-drawer-item {
  display: grid;
  gap: 8px;
}

.tool-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(77, 154, 151, 0.22);
  border-radius: 14px;
  color: var(--sidebar-ink);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(39, 94, 107, 0.08);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: #62cfc2;
  opacity: 0;
}

.tool-card:hover {
  border-color: rgba(31, 138, 128, 0.36);
  background: rgba(255, 255, 255, 0.9);
}

.tool-card small {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: #dcf8ef;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.tool-card span,
.tool-card strong {
  display: block;
}

.tool-card span {
  font-size: 15px;
  font-weight: 850;
  color: var(--sidebar-ink);
}

.tool-card strong {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sidebar-muted);
}

.tool-card::after {
  content: "展开";
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--sidebar-muted);
  font-size: 11px;
  font-weight: 900;
}

.tool-card.active {
  border-color: rgba(31, 138, 128, 0.44);
  background: linear-gradient(135deg, rgba(233, 248, 243, 0.96), rgba(255, 255, 255, 0.86));
}

.tool-card.active::after {
  content: "已展开";
  color: var(--teal);
}

.tool-card.active::before {
  opacity: 1;
}

.tool-card.active small {
  background: #d5f5ec;
  color: var(--teal);
}

.tool-card.active strong {
  color: #4f6d78;
}

.side-panel {
  padding: 18px;
  border: 1px solid rgba(77, 154, 151, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 38px rgba(39, 94, 107, 0.11);
}

.drawer-panel {
  display: none;
}

.drawer-panel.active {
  display: block;
  border-color: rgba(31, 138, 128, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 252, 248, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 18px 38px rgba(39, 94, 107, 0.12);
  animation: drawerIn 180ms ease-out;
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.side-panel h2 {
  font-size: 16px;
}

.drawer-title {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.drawer-title p {
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 1.5;
}

.drawer-step {
  padding: 12px;
  border-top: 1px solid rgba(77, 154, 151, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.drawer-step:first-of-type {
  border-top: 0;
}

.drawer-step + .drawer-step {
  margin-top: 12px;
}

.drawer-step-final {
  padding-bottom: 2px;
}

.step-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 10px;
}

.step-row b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #173143;
  font-size: 13px;
}

.step-row strong {
  display: block;
  color: var(--sidebar-ink);
  font-size: 14px;
  line-height: 1.35;
}

.upload-box {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 124px;
  padding: 18px 14px;
  border: 1px dashed rgba(98, 207, 194, 0.82);
  border-radius: 12px;
  color: var(--teal);
  cursor: pointer;
  text-align: center;
  background: linear-gradient(180deg, #f5fffc, #ffffff);
}

.upload-box input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.secondary-upload {
  min-height: 108px;
  margin-top: 12px;
  border-color: rgba(98, 207, 194, 0.58);
  background: linear-gradient(180deg, #f7fffd, #ffffff);
}

.outflow-upload {
  border-color: rgba(94, 159, 232, 0.66);
  background: linear-gradient(180deg, #f2f9ff, #ffffff);
}

.outflow-shot {
  border-color: rgba(98, 207, 194, 0.5);
  background: linear-gradient(180deg, #f7fffd, #ffffff);
}

.usage-tips {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(77, 154, 151, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.usage-tips strong {
  color: var(--sidebar-ink);
  font-size: 13px;
}

.usage-tips p {
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 1.55;
}

.upload-box span {
  min-width: 104px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 24px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

.upload-box strong {
  max-width: 240px;
  color: var(--sidebar-ink);
  font-size: 17px;
  line-height: 1.35;
}

.upload-box small {
  min-height: 36px;
  max-width: 240px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.filter-stack {
  display: grid;
  gap: 9px;
}

.filter-stack label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.filter-stack span {
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-stack input,
.filter-stack select {
  min-width: 0;
  width: 100%;
  height: 40px;
  border: 1px solid rgba(77, 154, 151, 0.2);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.filter-stack input[type="date"] {
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.cost-callout {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(244, 200, 95, 0.58);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8e3, #ffffff);
  box-shadow: 0 10px 24px rgba(177, 132, 28, 0.08);
}

.cost-callout .cost-callout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cost-callout .cost-callout-head strong {
  color: var(--sidebar-ink);
  font-size: 15px;
  line-height: 1.3;
}

.cost-callout .cost-callout-head em {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--gold);
  color: #173143;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.cost-callout input {
  height: 46px;
  border-color: rgba(242, 199, 102, 0.95);
  background: #fffdf4;
  font-size: 15px;
  font-weight: 850;
}

.cost-callout input:focus {
  border-color: #ffe08a;
  box-shadow: 0 0 0 3px rgba(242, 199, 102, 0.22);
}

.cost-callout small {
  color: #7e6d38;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.55;
}

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

.time-tabs button {
  height: 34px;
  border: 1px solid rgba(77, 154, 151, 0.2);
  border-radius: 10px;
  background: #ffffff;
  color: var(--sidebar-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.time-tabs button.active {
  border-color: var(--gold);
  background: #fff7df;
  color: #9c720d;
}

.date-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drawer-panel .date-pair {
  grid-template-columns: 1fr;
  gap: 10px;
}

.date-pair > label {
  min-width: 0;
}

.date-pair input[type="date"] {
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  line-height: 46px;
}

.date-pair input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}

.date-pair input[type="date"]::-webkit-calendar-picker-indicator {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  cursor: pointer;
}

.date-filter-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(77, 154, 151, 0.22);
  border-radius: 12px;
  background: #f6fffc;
}

.date-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.date-filter-head button {
  flex: 0 0 auto;
  min-height: 26px;
  border: 1px solid rgba(244, 200, 95, 0.78);
  border-radius: 999px;
  padding: 0 9px;
  background: #fff7df;
  color: #9c720d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.date-filter-card p {
  margin: 0;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
}

.primary-button {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: #173143;
  cursor: pointer;
  font-weight: 900;
}

.primary-button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.primary-button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(23, 49, 67, 0.28);
  border-top-color: #173143;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.primary-button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.generate-status {
  margin-top: 6px;
  min-height: 18px;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.45;
}

.outflow-button {
  background: #83b9ef;
}

.export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.export-actions button {
  min-height: 38px;
  border: 1px solid rgba(77, 154, 151, 0.2);
  border-radius: 10px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.export-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.export-status {
  margin-top: 7px;
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-tips {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(77, 154, 151, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.sidebar-tips strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sidebar-ink);
  font-size: 13px;
}

.sidebar-tips strong::before {
  content: "💡";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(244, 200, 95, 0.5);
  border-radius: 999px;
  background: #fff7df;
  font-size: 13px;
  line-height: 1;
}

.sidebar-tips p {
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.report-export {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.report-export .report-hero {
  margin-bottom: 14px;
}

.export-panel {
  display: block;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 47, 61, 0.04);
}

.topbar-left {
  display: grid;
  gap: 3px;
  min-width: 190px;
}

.topbar-left strong {
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.topbar-left span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-actions button,
.attribution-control select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfa;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.top-actions button {
  padding: 0 12px;
  cursor: pointer;
}

.top-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.attribution-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-left: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.attribution-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.attribution-control select {
  min-width: 74px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 6px 6px 0;
  padding: 0 8px;
  outline: none;
}

.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 47, 61, 0.58);
}

.preview-dialog {
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(10, 28, 38, 0.24);
}

.history-dialog,
.preview-device-dialog,
.verify-dialog {
  width: min(760px, 100%);
}

.preview-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.preview-dialog-head h2 {
  color: var(--ink);
  font-size: 22px;
}

.preview-dialog-head p,
.preview-dialog-status {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.preview-dialog-head button,
.preview-admin-form button,
.preview-history-row button,
.preview-primary,
.preview-user-actions button {
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #edf5f3;
  color: var(--teal);
  cursor: pointer;
  font-weight: 850;
}

.preview-admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr 140px 140px;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.preview-admin-form input,
.preview-admin-form select,
.preview-field input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.preview-admin-form button,
.preview-primary {
  background: var(--gold);
  color: #173143;
}

.preview-table-wrap {
  padding: 18px 20px 0;
  overflow-x: auto;
}

.preview-admin-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.preview-admin-table th,
.preview-admin-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.preview-admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.preview-admin-table tr.inactive {
  opacity: 0.62;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #edf1f0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.preview-pill.active,
.preview-pill.online {
  background: var(--mint);
  color: var(--teal);
}

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

.preview-user-actions button {
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.preview-user-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.preview-device-summary {
  min-width: 128px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.preview-device-summary.attention {
  border-color: rgba(248, 193, 54, 0.82);
  background: #fff7df;
  color: #9a6a00;
}

.preview-device-list {
  display: grid;
  gap: 10px;
  padding: 18px 20px 0;
}

.preview-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.preview-device-row.pending {
  border-color: rgba(248, 193, 54, 0.72);
  background: #fffdf6;
}

.preview-device-row strong,
.preview-device-row small,
.preview-device-row span {
  display: block;
}

.preview-device-row small,
.preview-device-row span,
.preview-device-empty {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.preview-device-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.preview-device-actions button {
  height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: #edf5f3;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.preview-device-actions button.primary {
  background: var(--gold);
  color: #173143;
}

.preview-device-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.preview-dialog-status {
  padding: 10px 20px 18px;
}

.preview-field {
  display: grid;
  gap: 7px;
  padding: 18px 20px 0;
}

.preview-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.preview-primary {
  width: calc(100% - 40px);
  margin: 14px 20px 0;
}

.preview-history-list {
  display: grid;
  gap: 10px;
  padding: 18px 20px 0;
}

.preview-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.preview-history-row strong,
.preview-history-row small,
.preview-history-row span {
  display: block;
}

.preview-history-row small,
.preview-history-row span,
.preview-empty {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.preview-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfc;
}

.user-chip span {
  padding: 0 8px;
  color: #2d4252;
  font-size: 13px;
  font-weight: 850;
}

.user-chip button {
  background: var(--mint);
}

.workspace-panel {
  display: none;
}

.workspace-panel.active {
  display: block;
}

.report-hero,
.decision-strip,
.module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(31, 47, 61, 0.05);
}

.report-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.outflow-preview {
  margin-top: 14px;
}

.outflow-empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 47, 61, 0.05);
}

.outflow-empty-state {
  padding: 38px 24px;
  text-align: center;
}

.outflow-empty-state h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.outflow-empty-state p {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.seed-empty-state {
  margin-top: 14px;
}

.workspace-loading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(79, 143, 217, 0.28);
  border-radius: 8px;
  background: #eef6ff;
  color: #24445d;
  box-shadow: 0 14px 34px rgba(31, 47, 61, 0.05);
}

.workspace-loading > span {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(79, 143, 217, 0.24);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.workspace-loading strong,
.workspace-loading p {
  display: block;
}

.workspace-loading strong {
  font-size: 15px;
}

.workspace-loading p {
  margin-top: 4px;
  color: #5a7284;
  font-size: 12px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.report-hero h2 {
  font-size: 30px;
  line-height: 1.18;
}

.meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.hero-actions button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #f8fbfa;
  color: var(--teal);
  cursor: pointer;
  font-weight: 850;
}

.decision-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
}

.decision-strip article {
  padding: 16px 20px;
}

.decision-strip article + article {
  border-left: 1px solid var(--line);
}

.decision-strip span,
.metric span,
.component-row span,
.donut-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.decision-strip strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.decision-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decision-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.62;
}

.decision-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--teal);
}

.insight-balance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.insight-balance-grid .module {
  margin-top: 0;
}

.insight-model-panel,
.insight-decision-panel {
  min-width: 0;
}

.insight-decision-panel {
  display: grid;
  align-content: start;
}

.model-rank-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.model-rank-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e5eeee;
  border-radius: 8px;
  background: #fbfefe;
}

.model-rank-list strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.model-rank-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.4;
}

.model-rank-list em {
  color: var(--teal);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.model-rank-list b {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1f0;
}

.model-rank-list i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ba6ee, var(--teal));
}

.model-rank-empty {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.decision-block {
  min-width: 0;
  padding: 14px 16px 16px;
  border: 1px solid #dfece9;
  border-radius: 8px;
  background: #fbfefe;
}

.decision-block + .decision-block {
  margin-top: 12px;
}

.decision-block > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.module-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

.module {
  min-width: 0;
  padding: 20px;
}

.module-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.module-head span {
  width: 6px;
  height: 26px;
  border-radius: 999px;
  background: var(--gold);
}

.traffic .module-head span {
  background: var(--blue);
}

.interaction .module-head span {
  background: var(--coral);
}

.audience .module-head span {
  background: var(--green);
}

.cost-module .module-head span,
.placement-check .module-head span,
.spotlight-module .module-head span {
  background: var(--gold);
}

.weak-notes .module-head span {
  background: var(--coral);
}

.conclusion .module-head span {
  background: var(--teal);
}

.module-head h3 {
  font-size: 20px;
}

.module-head small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

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

.metric {
  min-height: 86px;
  padding: 13px;
  border: 1px solid #edf2f1;
  border-radius: 6px;
  background: #fbfdfc;
}

.metric.big {
  grid-column: span 2;
}

.metric strong {
  display: block;
  margin-top: 9px;
  color: #2d4252;
  font-size: 26px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

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

.outflow-kpi-module {
  margin-top: 14px;
}

.outflow-kpi-module .module-head span {
  background: var(--blue);
}

.outflow-kpi-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.outflow-kpi-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4eeec;
  border-radius: 8px;
  background: #fbfdfc;
}

.outflow-kpi-group h4 {
  margin: 0 0 12px;
  color: #2d4252;
  font-size: 15px;
  line-height: 1.35;
}

.outflow-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.outflow-kpi-card {
  min-width: 0;
  min-height: 94px;
  padding: 13px;
  border: 1px solid #edf2f1;
  border-radius: 6px;
  background: #ffffff;
}

.outflow-kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.outflow-kpi-card strong {
  display: block;
  margin-top: 10px;
  color: #2d4252;
  font-size: clamp(18px, 1.3vw, 26px);
  line-height: 1.08;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}

.outflow-cost-card {
  min-height: 116px;
}

.outflow-cost-breakdown {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e7efed;
}

.outflow-cost-breakdown em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
}

.outflow-cost-basis {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.5;
}

.split-bars,
.component-row,
.audience-layout,
.conclusion ol,
.note-table,
.cost-grid,
.placement-board,
.spotlight-summary,
.spotlight-block {
  margin-top: 16px;
}

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

.cost-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
}

.cost-panel {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e4eeec;
  border-radius: 8px;
  background: #fbfdfc;
}

.cost-panel-title {
  display: grid;
  gap: 7px;
  min-height: 92px;
  align-content: start;
}

.cost-panel-title strong {
  color: #1b2f3e;
  font-size: 16px;
}

.cost-panel-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.5;
}

.cost-time {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #dce9e6;
  border-radius: 999px;
  background: #f2faf7;
  color: #2f6670;
  font-size: 12px;
  line-height: 1.35;
}

.cost-time b {
  color: var(--teal);
  font-weight: 900;
  white-space: nowrap;
}

.cost-time em {
  color: #526675;
  font-style: normal;
  font-weight: 780;
}

.cost-card {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid #edf2f1;
  border-radius: 8px;
  background: #ffffff;
}

.cost-card:first-child {
  grid-column: 1 / -1;
  min-height: 108px;
}

.cost-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.cost-card strong {
  display: block;
  margin-top: 12px;
  color: #2d4252;
  font-size: 25px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.cost-card:first-child strong {
  font-size: 32px;
  white-space: nowrap;
}

.cost-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cost-warning,
.module-note {
  margin-top: 14px;
  color: #526675;
  font-size: 13px;
  line-height: 1.7;
}

.cost-warning {
  padding: 10px 12px;
  border: 1px solid #dce9e6;
  border-radius: 6px;
  background: #f7faf9;
}

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

.placement-board article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #edf2f1;
  border-radius: 6px;
  background: #fbfdfc;
}

.placement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.placement-head strong {
  font-size: 16px;
}

.placement-head span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.placement-board a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #edf2f1;
  color: #287d7e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.spotlight-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.spotlight-summary div {
  padding: 13px;
  border: 1px solid #edf2f1;
  border-radius: 6px;
  background: #fbfdfc;
}

.spotlight-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.spotlight-summary strong {
  display: block;
  margin-top: 9px;
  color: #2d4252;
  font-size: 24px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.spotlight-block {
  padding-top: 14px;
  border-top: 1px solid #edf2f1;
}

.spotlight-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.spotlight-title strong {
  font-size: 17px;
}

.spotlight-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.jg-table {
  display: grid;
  gap: 8px;
}

.jg-head,
.jg-table article {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(92px, 0.58fr) repeat(4, minmax(86px, 0.6fr)) minmax(72px, 0.45fr);
  gap: 10px;
  align-items: center;
}

.jg-head {
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.jg-table article {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #edf2f1;
  border-radius: 6px;
  background: #fbfdfc;
}

.jg-table strong {
  font-size: 14px;
  line-height: 1.45;
}

.source-badge {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-width: 76px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.source-talent {
  background: #e9f7f4;
  color: #217d78;
}

.source-official {
  background: #e8f2ff;
  color: #2f6796;
}

.source-other {
  background: #eef3f5;
  color: #5b6c78;
}

.source-pending {
  background: #f3f6f7;
  color: #60717d;
}

.jg-table span {
  color: #34495a;
  font-size: 14px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.jg-table a,
.compact-links a {
  color: var(--teal);
  text-decoration: none;
}

.jg-table a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 56px;
  height: 32px;
  border-radius: 6px;
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.deal-extra.is-hidden,
.note-extra.is-hidden {
  display: none;
}

.more-button {
  display: block;
  width: fit-content;
  min-width: 180px;
  height: 38px;
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfa;
  color: var(--teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

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

.two-col > article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #edf2f1;
  border-radius: 6px;
  background: #fbfdfc;
}

.compact-links {
  display: grid;
  gap: 8px;
}

.compact-links a {
  display: block;
  padding: 10px 0 0;
  border-top: 1px solid #edf2f1;
}

.compact-links b,
.compact-links span {
  display: block;
}

.compact-links b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.compact-links span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.split-bars {
  display: grid;
  gap: 12px;
}

.split-bars p,
.bars p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.split-bars b,
.bars b {
  color: var(--ink);
}

.bar,
.bars div {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf2f1;
}

.bar i,
.bar em,
.bars i {
  display: block;
  height: 100%;
}

.bar i {
  float: left;
  background: var(--blue);
}

.bar em {
  float: left;
  background: var(--gold);
}

.stacked {
  display: flex;
  height: 42px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf2f1;
}

.stacked span {
  display: grid;
  place-items: center;
  min-width: 44px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.stacked span:nth-child(1) {
  background: #287d7e;
}

.stacked span:nth-child(2) {
  background: #4f8fd9;
}

.stacked span:nth-child(3) {
  background: #f2c766;
  color: #1f2f3d;
}

.stacked span:nth-child(4) {
  background: #e7957f;
}

.component-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.component-row div {
  padding: 12px;
  border-radius: 6px;
  background: var(--mint);
}

.component-row strong {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 24px;
  line-height: 1;
}

.audience-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.donut-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #edf2f1;
  border-radius: 6px;
  background: #fbfdfc;
}

.donut {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 10.4%, #dfe9e6 10.4% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #fbfdfc;
}

.donut-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.donut-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.bars div {
  margin-bottom: 10px;
}

.bars i {
  background: var(--green);
  border-radius: 999px;
}

.conclusion ol {
  padding-left: 0;
  counter-reset: item;
  list-style: none;
}

.conclusion li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  color: #34495a;
  font-size: 14px;
  line-height: 1.7;
}

.conclusion li + li {
  margin-top: 10px;
}

.conclusion li::before {
  content: counter(item);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #173143;
  font-size: 12px;
  font-weight: 900;
  margin-top: 1px;
}

.notes {
  margin-top: 14px;
}

.outflow-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.outflow-note-column {
  min-width: 0;
}

.outflow-note-card-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.outflow-note-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7ebe7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 57, 70, 0.05);
}

.outflow-note-card.is-hidden {
  display: none;
}

.outflow-note-card.empty {
  min-height: 96px;
  align-content: center;
}

.outflow-note-title {
  padding-right: 118px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.outflow-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.outflow-note-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #e4efed;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f7fbfa;
  color: #526574;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.outflow-note-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.outflow-note-stats div {
  min-width: 0;
  border: 1px solid #eaf2f0;
  border-radius: 7px;
  padding: 8px 9px;
  background: #fbfdfc;
}

.outflow-note-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.outflow-note-stats strong {
  display: block;
  margin-top: 5px;
  color: #203647;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.outflow-note-stats .is-accent strong {
  color: var(--teal);
}

.outflow-note-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 10px;
  border-radius: 7px;
  background: #eef7f5;
  color: #39525d;
  font-size: 13px;
  font-weight: 850;
}

.outflow-note-footer span {
  color: #526574;
}

.outflow-note-footer strong {
  margin-left: 3px;
  color: var(--teal);
  font-weight: 950;
}

.outflow-note-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-left: auto;
  border: 1px solid rgba(40, 125, 126, 0.24);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.outflow-note-footer em {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
}

.outflow-note-card .note-overlap-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.seed-top-note-card .outflow-note-title {
  padding-right: 0;
}

.seed-top-note-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

.seed-top-note-list {
  margin-top: 0;
}

.seed-top-note-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seed-note-footer {
  background: #f0f8f6;
}

.outflow-more-button {
  width: 100%;
  min-width: 0;
  height: 42px;
  border-color: #c8e2de;
  background: #fff;
}

.weak-note-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.weak-note-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe9e6;
  border-radius: 8px;
  background: #fbfdfc;
  box-shadow: 0 10px 26px rgba(24, 57, 70, 0.04);
}

.weak-note-card.is-hidden {
  display: none;
}

.weak-note-card.empty {
  min-height: 96px;
  align-content: center;
}

.weak-note-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.weak-note-head strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.weak-note-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.weak-note-head a,
.weak-note-head em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 32px;
  border-radius: 6px;
  padding: 0 10px;
  background: var(--mint);
  color: var(--teal);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.weak-note-head em {
  background: #eef3f2;
  color: var(--muted);
}

.weak-note-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.weak-note-metrics span {
  min-width: 0;
  border: 1px solid #e8f0ee;
  border-radius: 7px;
  padding: 8px 9px;
  background: #ffffff;
}

.weak-note-metrics em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.weak-note-metrics strong {
  display: block;
  margin-top: 5px;
  color: #203647;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.weak-note-diagnosis {
  display: grid;
  gap: 8px;
  border-radius: 7px;
  padding: 12px;
  background: #eef7f5;
}

.weak-note-diagnosis > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.weak-note-diagnosis ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weak-note-diagnosis li {
  position: relative;
  padding-left: 14px;
  color: #34495a;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.weak-note-diagnosis li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--teal);
}

.note-table {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.table-head,
.note-table article {
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) minmax(100px, 0.7fr) repeat(5, minmax(82px, 0.55fr)) minmax(72px, 0.45fr);
  gap: 10px;
  align-items: center;
}

.table-head {
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.note-table article {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #edf2f1;
  border-radius: 6px;
  background: #fbfdfc;
}

.note-table strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.note-overlap-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 6px 4px 0;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff5d8;
  color: #9c720d;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  vertical-align: middle;
}

.note-table span {
  color: #34495a;
  font-size: 14px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.note-table a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 56px;
  height: 32px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.weak-table article {
  background: #fffafa;
  border-color: #f1ded9;
}

@media (max-width: 1280px) {
  .seed-app {
    grid-template-columns: 300px minmax(720px, 1fr);
  }

  .outflow-kpi-groups {
    grid-template-columns: 1fr;
  }

  .module-grid.top,
  .module-grid.middle {
    grid-template-columns: 1fr;
  }

  .cost-split {
    grid-template-columns: 1fr;
  }

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

  .placement-board {
    grid-template-columns: 1fr;
  }

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

  .outflow-compare-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .weak-note-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .seed-app {
    display: block;
  }

  .seed-sidebar {
    position: static;
    height: auto;
  }

  .workspace-topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .report-hero,
  .insight-balance-grid,
  .decision-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .decision-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metric-grid,
  .component-row,
  .audience-layout,
  .cost-split,
  .cost-grid,
  .placement-board,
  .spotlight-summary,
  .outflow-compare-grid,
  .seed-top-note-columns,
  .outflow-note-stats,
  .weak-note-head,
  .weak-note-metrics,
  .two-col,
  .date-pair,
  .model-rank-list article,
  .jg-head,
  .jg-table article,
  .table-head,
  .note-table article {
    grid-template-columns: 1fr;
  }

  .metric.big {
    grid-column: auto;
  }

  .module-head {
    flex-wrap: wrap;
  }

  .module-head small {
    width: 100%;
    margin-left: 16px;
  }

  .outflow-note-title {
    padding-right: 0;
  }

  .outflow-note-card .note-overlap-badge {
    position: static;
    justify-self: start;
  }

  .outflow-note-footer a,
  .outflow-note-footer em {
    width: 100%;
    margin-left: 0;
  }
}
