/* Framed sheet, existing seed 339979519. 1440 = 228 nav + 1204 sheet + 8 outer inset.
   Inner width 1154 = (692 + 438) + 24 gap, fluid 1.6:1 chart / platform panels. */
.boot {
  padding: 48px;
  color: var(--muted);
}
.brand-symbol {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand-symbol svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.sheet {
  overflow: clip;
}
.topbar .account {
  max-width: 240px;
  overflow-wrap: anywhere;
}
.navitem {
  gap: 10px;
}
.nav-mark {
  font-size: 12px;
  width: 16px;
  text-align: center;
  color: var(--muted);
}
.sidebar nav {
  overflow: auto;
}
.sidebar-foot {
  padding-top: 16px;
}
.a-stats {
  margin-top: 12px;
}
.a-stat label {
  font-size: 13px;
}
.a-stat p {
  font-size: 12px;
}
.a-value {
  font-size: 30px;
}
.a-grid.two-one {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.a-grid {
  align-items: start;
}
.a-panel {
  margin-bottom: 24px;
}
.a-grid .a-panel {
  margin-bottom: 0;
}
.a-table {
  min-width: 560px;
}
.a-table td small,
.a-table td > small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  white-space: normal;
  line-height: 1.6;
}
.a-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.a-table td:first-child {
  white-space: normal;
  min-width: 145px;
}
.table-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.table-wrap {
  max-height: 600px;
}
.no-rows {
  padding: 32px !important;
  white-space: normal !important;
  text-align: center;
  color: var(--muted);
}
.table th {
  z-index: 2;
}
.a-chart {
  height: 230px;
}
.a-hint {
  line-height: 1.75;
  font-size: 13px;
}
.readiness {
  padding: 0 20px 12px;
}
.readiness > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.readiness > div:last-child {
  border: 0;
}
.summary-facts {
  padding: 0 20px;
  font-size: 14px;
  line-height: 2;
}
.summary-facts strong {
  font-size: 22px;
  font-weight: 500;
}
.fish-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 225px;
}
.fish-identity img {
  object-fit: contain;
}
.fish-identity small {
  display: block;
  color: var(--muted);
}
.fish-identity code {
  font-size: 11px;
}
.feedback-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 200px;
  max-width: 520px;
}
.a-local-controls {
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.a-local-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-form {
  margin-bottom: 12px;
}
.filter-main {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-main label,
.filter-extra label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--muted);
  gap: 5px;
}
.filter-main input[type="date"] {
  width: 144px;
}
.filter-main label select {
  min-width: 115px;
}
.filter-main .filter-spacer {
  flex: 1;
}
.filter-main > button {
  height: 34px;
}
.filter-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 14px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.filter-extra label input,
.filter-extra label select {
  width: 100%;
}
.filter-form details > summary {
  cursor: pointer;
  font-size: 13px;
  margin-top: 12px;
  display: inline-block;
  border-bottom: 1px solid var(--control);
  padding: 2px;
}
.filter-form details > summary:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
.filter-error {
  margin-top: 10px;
  color: var(--negative);
  font-size: 13px;
}
.filter-form details[open] > summary {
  margin-bottom: 0;
}
.watermark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 14px;
  margin-bottom: 16px;
}
.watermark p {
  line-height: 1.8;
}
.metadata {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.metadata summary {
  cursor: pointer;
}
.metadata dl {
  margin-top: 14px;
}
.metadata .kv {
  font-size: 12px;
}
.dictionary {
  font-size: 13px;
  margin-top: 24px;
  color: var(--muted);
}
.dictionary summary {
  cursor: pointer;
}
.dictionary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.dictionary dd {
  margin: 0;
}
.dictionary dt {
  color: var(--text);
}
.page-status {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.page-status .error-icon {
  color: var(--negative);
}
.error-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 16px 0;
}
.error-panel p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.error-panel .request-id {
  font-size: 12px;
  color: var(--muted);
}
.loading {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.loading .skel {
  height: 24px;
  margin: 22px 0;
  background: var(--active);
}
.loading .skel:nth-child(2) {
  width: 40%;
}
.loading .skel:nth-child(3) {
  height: 180px;
  width: 100%;
}
.page-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  gap: 12px;
}
.page-navigation div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-story h2 {
  font-size: 30px;
}
.login-story .login-caption {
  border-top: 1px solid var(--control);
  padding-top: 20px;
}
.login-form .login-error {
  color: var(--negative);
  margin-top: 14px;
}
.login-form input {
  font-size: 16px;
}
.login-form .btn:disabled {
  opacity: 0.6;
}
.login-form p {
  line-height: 1.8;
}
.login-page .brand {
  width: fit-content;
}
.login-story .pond-outline {
  width: 100%;
  height: 240px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.login-form label {
  font-size: 14px;
}
.login-form .small {
  margin-top: 20px;
}
.login-footer {
  font-size: 12px;
}
.readonly-note {
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.freshness {
  font-size: 12px;
  color: var(--muted);
}
dialog {
  color: var(--text);
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--surface);
  max-height: none;
  max-width: 100%;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgba(21, 35, 27, 0.18);
}
#detail {
  left: auto;
  right: 0;
  width: 640px;
  height: 100dvh;
  border-left: 1px solid var(--border);
}
#detail[open] {
  display: flex;
  flex-direction: column;
}
#detail .drawer-body {
  flex: 1;
  min-height: 0;
}
#detail .drawer-head {
  padding: 20px 24px;
}
#detail .drawer-foot {
  flex: none;
}
#detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  font: 12px/1.8 var(--mono);
}
#detail .kv {
  margin-top: 22px;
  grid-template-columns: 150px minmax(0, 1fr);
}
#detail .kv dt small {
  display: block;
  font-size: 11px;
}
#detail .detail-section {
  margin: 24px 0 12px;
}
#detail .table-wrap {
  max-height: none;
}
#detail .a-table {
  min-width: 480px;
}
#detail .a-table code {
  overflow-wrap: anywhere;
  font-size: 11px;
  white-space: normal;
}
#detail .a-table td:first-child {
  min-width: 150px;
  max-width: 220px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dialog-lock {
  overflow: hidden;
}
#navigation {
  width: 320px;
  height: 100dvh;
  padding: 24px;
}
#navigation nav {
  margin-top: 20px;
}
#navigation .dialog-actions {
  justify-content: space-between;
}
#navigation .navitem {
  min-height: 44px;
}
#toast {
  max-width: calc(100vw - 32px);
  overflow-wrap: anywhere;
}
.permission-empty {
  padding: 40px 0;
}
.btn:active,
.navitem:active {
  filter: none !important;
  transform: none !important;
}
.skip {
  z-index: 100;
}
@media (max-width: 1100px) {
  .a-grid.two-one {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .filter-main .filter-spacer {
    display: none;
  }
  .topbar {
    padding: 0 16px;
  }
  .topbar .account {
    max-width: 180px;
  }
  .filter-main {
    gap: 10px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .sheet {
    border-radius: 12px;
  }
  .title-row {
    align-items: start;
  }
  .title-row p {
    max-width: 400px;
  }
  .a-stat {
    padding: 0 12px;
  }
  .a-stat:first-child {
    padding-left: 0;
  }
  .topbar .top-left {
    gap: 6px;
  }
  .sidebar {
    display: none;
  }
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: 52px 1fr;
    padding-left: 8px;
  }
  .table-wrap {
    max-height: 620px;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .a-grid.two-one,
  .a-grid {
    grid-template-columns: 1fr;
  }
  .a-chart {
    height: 210px;
  }
  .a-stats {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }
  .a-stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 0;
  }
  .topbar {
    height: 52px;
  }
  .sheet {
    border-radius: 12px 12px 0 0;
    min-height: calc(100dvh - 52px);
  }
  .content {
    padding: 20px 16px;
  }
  .topbar .account {
    display: none;
  }
  .topbar .top-left .desktop-context {
    display: none;
  }
  .title-row {
    margin-bottom: 14px;
    gap: 8px;
  }
  h1 {
    font-size: 22px;
  }
  .title-row p {
    font-size: 13px;
  }
  .title-row .freshness {
    display: none;
  }
  .title-actions .btn {
    min-height: 44px;
  }
  .filter-main {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .filter-main > label {
    display: none;
  }
  .filter-main > label:first-child {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 12px;
  }
  .filter-main > label:first-child input {
    width: 135px;
    min-width: 0;
    height: 44px;
  }
  .filter-main .mobile-end {
    display: none;
  }
  .filter-main > button {
    min-height: 44px;
    padding: 0 12px;
  }
  .filter-main .reset-button {
    display: none;
  }
  .filter-form details > summary {
    margin-top: 10px;
    padding: 8px 0;
    min-height: 36px;
  }
  .filter-extra {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 12px;
  }
  .filter-extra input,
  .filter-extra select {
    height: 44px;
    min-width: 0;
    font-size: 14px;
  }
  .filter-extra label {
    font-size: 12px;
    min-width: 0;
  }
  .filter-extra .wide {
    grid-column: 1/-1;
  }
  .a-stats {
    padding: 14px 0;
    gap: 16px 0;
    margin-bottom: 20px;
    grid-template-columns: 1fr 1fr;
  }
  .a-stat:nth-child(odd) {
    border: 0;
    padding-left: 0;
  }
  .a-stat p {
    font-size: 12px;
  }
  .a-stat label {
    font-size: 13px;
  }
  .a-value {
    font-size: 26px;
  }
  .a-grid,
  .a-grid.two-one {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .a-chart {
    height: 190px;
  }
  .a-panel {
    margin-bottom: 20px;
  }
  .watermark {
    padding-bottom: 12px;
    margin-bottom: 8px;
  }
  .watermark p {
    font-size: 12px;
  }
  .a-table th,
  .a-table td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .a-table th:first-child,
  .a-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 1;
    min-width: 130px;
    max-width: 180px;
  }
  .a-table th:first-child {
    z-index: 3;
  }
  .table-wrap {
    max-height: 540px;
  }
  .a-table td {
    font-size: 13px;
  }
  .a-hint {
    font-size: 13px;
  }
  .a-local-controls {
    align-items: center;
  }
  .a-local-controls select {
    height: 44px;
  }
  .a-local-controls .seg button {
    min-height: 44px;
  }
  .a-panel .panel-head {
    padding: 16px 14px 10px;
  }
  .readiness,
  .summary-facts {
    padding-left: 14px;
    padding-right: 14px;
  }
  .page-navigation {
    align-items: start;
  }
  .page-navigation div {
    gap: 8px;
  }
  .page-navigation .btn {
    padding: 0 10px;
  }
  #detail {
    width: 100%;
  }
  #detail .drawer-head,
  #detail .drawer-body {
    padding: 18px 16px;
  }
  #detail .kv {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
  }
  #detail .drawer-foot {
    padding: 12px 16px;
  }
  .dialog-actions .btn {
    padding: 0 10px;
  }
  #navigation {
    width: 100%;
  }
  .login-page {
    display: block;
    min-height: 100dvh;
    background: var(--surface);
  }
  .login-story {
    padding: 28px 24px;
    background: var(--ground);
  }
  .login-story h2,
  .login-story .pond-outline,
  .login-story > p,
  .login-story .login-caption {
    display: none;
  }
  .login-form-wrap {
    padding: 40px 24px;
  }
  .login-form {
    width: 100%;
    max-width: 360px;
  }
  .login-form input {
    height: 48px;
  }
  .login-form .btn {
    height: 48px;
  }
  .login-form .small {
    font-size: 13px;
  }
  .metadata .kv {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .dictionary dl {
    grid-template-columns: 1fr;
  }
  .feedback-preview {
    min-width: 180px;
  }
  .filter-extra .mobile-date {
    display: flex;
  }
}
@media (min-width: 701px) {
  .filter-extra .mobile-date {
    display: none;
  }
}
.brand > span:last-child {
  display: flex;
  flex-direction: column;
}
.brandname {
  display: block;
}
.brand small {
  display: block;
}
h1:focus {
  outline: none;
}
.mobile-menu {
  width: auto;
  min-width: 44px;
  padding: 0 8px;
}
#detail .iconbtn,
#navigation .iconbtn {
  width: auto;
  min-width: 44px;
  padding: 0 8px;
}
@media (max-width: 700px) {
  .login-story {
    min-height: 0;
  }
  .login-form-wrap {
    padding-top: 32px;
  }
}
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 4px;
}
.readonly-note .btn {
  font-size: 13px;
}
button.mobile-menu {
  font-size: 13px;
}
@media (max-width: 700px) {
  .source-actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}
.breakdown .table {
  min-width: 0;
}
.breakdown .table td:first-child {
  min-width: 0;
}
.breakdown .table-wrap {
  overflow: visible;
}
.a-stat .range-link {
  font-size: 12px;
  min-height: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.a-summary-row {
  align-items: start;
}
@media (max-width: 700px) {
  .a-stat .range-link {
    min-height: 36px;
  }
  .a-chart {
    height: 190px;
  }
}
