/* The site only ships 600/700 faces. Map 400 to the 600 face so normal
   body text, result notes and table values do not fall back to system fonts. */
@font-face {
  font-family: "JiangChengYuanTiFull";
  src: url("fonts/JiangChengYuanTi-600W.woff2?v=20261126") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Use the site's regular JiangChengYuanTi (江城圆体) brand font. */
.fish-calculator-page {
  font-family: var(--font);
}

.fish-calculator-page button,
.fish-calculator-page input,
.fish-calculator-page select,
.fish-calculator-page textarea {
  font-family: inherit;
}

/* Fish-water calculator: same visual language as the anti-execution page. */

.fish-layout {
  align-items: stretch;
}

.fish-mode-switch {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.fish-mode {
  min-height: 29px;
  padding: 0 12px;
  border: 1px solid rgba(143, 216, 240, 0.55);
  border-radius: 8px;
  color: #5f7088;
  background: rgba(255, 255, 255, 0.65);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.fish-mode.is-active {
  color: var(--ink);
  border-color: rgba(62, 139, 163, 0.7);
  background: linear-gradient(145deg, rgba(226, 247, 252, 0.95), rgba(238, 242, 254, 0.9));
  box-shadow: 0 4px 12px rgba(62, 139, 163, 0.12);
}

.fish-mode-status {
  margin: 0 0 10px;
  color: #7d8da8;
  font-size: 10px;
}

.fish-result-panel[data-mode="normal"].has-result #verdict,
.fish-result-panel[data-mode="normal"].has-result #fish-metrics,
.fish-result-panel[data-mode="normal"].has-result #finish-detail,
.fish-result-panel[data-mode="normal"].has-result #local-summary {
  display: none;
}

.fish-low-warning {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 108, 122, 0.55);
  border-radius: 11px;
  color: #b14e5d;
  background: linear-gradient(145deg, rgba(255, 227, 236, 0.92), rgba(255, 246, 250, 0.82));
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.fish-waste {
  margin: 0 0 9px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(143, 216, 240, 0.36);
  color: var(--ink-soft);
  background: rgba(226, 247, 252, 0.55);
  font-size: 11px;
  line-height: 1.55;
}

.fish-waste b {
  color: #3e8ba3;
}

.fish-waste:empty {
  display: none;
}

.fish-section-title {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.fish-section-title:first-of-type {
  margin-top: 0;
}

.fish-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.fish-section-head .fish-section-title {
  margin: 0;
}

.fish-batch-note {
  color: #8a99af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fish-row-static {
  margin-top: 8px;
}

.fish-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.fish-group-count {
  color: #8a99af;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.fish-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(143, 216, 240, 0.65);
  border-radius: 999px;
  color: var(--aqua-deep);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.fish-add span {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.fish-add:hover {
  border-color: var(--aqua-deep);
  background: var(--haze);
}

.fish-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.fish-row {
  padding: 9px 10px 10px;
  border: 1px solid rgba(143, 216, 240, 0.45);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(238, 242, 254, 0.62));
}

.fish-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.fish-row-title {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fish-remove {
  padding: 1px 7px;
  border: 1px solid rgba(217, 108, 122, 0.28);
  border-radius: 999px;
  color: #a65563;
  background: rgba(255, 227, 236, 0.58);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.fish-remove:disabled {
  opacity: 0.35;
  cursor: default;
}

.fish-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.fish-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.fish-field span {
  color: #74829a;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.fish-field input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(143, 216, 240, 0.55);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(253, 255, 255, 0.82);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.fish-field input:focus {
  border-color: var(--aqua-deep);
  box-shadow: 0 0 0 3px rgba(143, 216, 240, 0.22);
}

.fish-note {
  margin: 7px 0 0;
  color: #8a99af;
  font-size: 10.5px;
  line-height: 1.55;
}

.fish-result-panel .verdict-title {
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fish-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.fish-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 63px;
  padding: 10px 11px;
  border: 1px solid rgba(143, 216, 240, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.fish-metric span {
  color: #74829a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.fish-metric strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.fish-metric.is-good {
  border-color: rgba(121, 196, 174, 0.65);
  background: linear-gradient(145deg, rgba(238, 252, 248, 0.9), rgba(245, 252, 255, 0.72));
}

.fish-metric.is-good strong {
  color: #2f8f7c;
}

.fish-metric.is-bad {
  border-color: rgba(217, 108, 122, 0.55);
  background: linear-gradient(145deg, rgba(255, 227, 236, 0.9), rgba(255, 246, 250, 0.72));
}

.fish-metric.is-bad strong {
  color: #b14e5d;
}

.fish-manual {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(121, 196, 174, 0.5);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(238, 252, 248, 0.82), rgba(245, 252, 255, 0.72));
}

.fish-manual span {
  color: #617a77;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fish-manual strong {
  color: #2f8f7c;
  font-size: 13px;
  line-height: 1.5;
}

.fish-finish-detail {
  margin: 0 0 9px;
  color: #b06a35;
  font-size: 11px;
  line-height: 1.55;
}

.fish-finish-detail:empty {
  display: none;
}

.fish-local-summary {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--ink-soft);
  background: rgba(238, 242, 254, 0.72);
  font-size: 11px;
  line-height: 1.6;
}

.fish-local-summary:empty {
  display: none;
}

.pollution-card {
  overflow: hidden;
  border: 1px solid rgba(143, 216, 240, 0.4);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
}

.pollution-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(143, 216, 240, 0.28);
  color: var(--ink);
  background: linear-gradient(90deg, rgba(226, 247, 252, 0.85), rgba(201, 216, 255, 0.55));
  font-size: 11px;
  font-weight: 700;
}

.pollution-head small {
  color: #71849d;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.pollution-list {
  display: flex;
  flex-direction: column;
}

.pollution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(143, 216, 240, 0.18);
}

.pollution-row:last-child {
  border-bottom: 0;
}

.pollution-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.pollution-values {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #89728a;
  font-size: 11px;
}

.pollution-values i {
  color: #a9b5c7;
  font-style: normal;
}

.pollution-values strong {
  color: #b14e5d;
  font-size: 12px;
}

.pollution-row.is-clear .pollution-values strong {
  color: #2f8f7c;
}

.fish-clear-note {
  margin: 0;
  padding: 9px 11px;
  border-top: 1px solid rgba(143, 216, 240, 0.18);
  color: #2f8f7c;
  background: rgba(238, 252, 248, 0.55);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.fish-result-note {
  margin: 9px 0 0;
  color: #74829a;
  font-size: 10.5px;
  line-height: 1.55;
}

.fish-result-panel .local-note {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .fish-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .fish-row-grid {
    grid-template-columns: 1fr;
  }

  .fish-list-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .fish-metrics {
    grid-template-columns: 1fr;
  }
}
