:root {
  --ink: #233b38;
  --muted: #667773;
  --brand: #246457;
  --deep: #173f36;
  --accent: #bd5a38;
  --pale: #edf3ef;
  --line: #dde5df;
  --bg: #fafbf8;
  --white: #fff;
  --danger: #a13535;
  --shadow: 0 8px 28px #173f360a;
  font-family: "Noto Sans CJK KR", "Noto Sans KR", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  border: 0;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.045em;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 17px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #be6b37;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -60px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: var(--brand);
}
.flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.space {
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.5;
}
.btn:hover {
  background: #f0f4ef;
  border-color: #a8bdb1;
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.btn.primary:hover {
  background: var(--deep);
}
.btn.danger {
  color: var(--danger);
  border-color: #e7c4c0;
}
.btn.small {
  padding: 6px 11px;
  min-height: 34px;
  font-size: 12px;
}
.btn.wide {
  width: 100%;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  background: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  color: var(--brand);
}
.brand-mark .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}
.brand strong {
  font-size: 19px;
  letter-spacing: -0.06em;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  line-height: 1.3;
  color: var(--muted);
}
.topnote {
  background: var(--deep);
  color: #dce9df;
  padding: 7px 5%;
  font-size: 11px;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.topnote span:last-child {
  color: #c4d5cc;
}
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1540px;
  margin: auto;
  padding: 18px 44px;
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav button {
  font-size: 14px;
  background: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  font-weight: 650;
  color: var(--muted);
}
.nav button.active {
  border-color: var(--brand);
  color: var(--brand);
}
.header-actions {
  display: flex;
  gap: 8px;
}
.shell {
  max-width: 1500px;
  padding: 24px 44px 45px;
  margin: auto;
}
.crumb {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 9px;
}
.crumb .icon {
  width: 14px;
  height: 14px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 252px;
  background: #ecf0e8;
  border-radius: 12px;
  overflow: hidden;
}
.hero-copy {
  padding: 30px 38px;
}
.hero h1 {
  margin: 8px 0 12px;
  font-size: 34px;
}
.hero p {
  max-width: 470px;
  color: #586b60;
  font-size: 13px;
}
.hero img {
  height: 100%;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero .flow {
  margin-top: 22px;
}
.stat-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 20px;
  margin-right: 8px;
  border-right: 1px solid #c6d4c7;
  font-size: 12px;
  color: var(--muted);
}
.stat-inline:last-child {
  border: 0;
}
.stat-inline b {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}
.list-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 27px;
  margin-top: 28px;
}
.filter {
  align-self: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px;
}
.filter h2 {
  font-size: 15px;
}
.filter label {
  font-size: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  font-weight: 650;
}
.required {
  color: var(--accent);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfdad1;
  border-radius: 6px;
  background: white;
  padding: 10px 11px;
  color: var(--ink);
}
select {
  padding-right: 24px;
}
textarea {
  resize: vertical;
  min-height: 82px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  padding: 0;
  accent-color: var(--brand);
  flex-shrink: 0;
  margin: 3px 0 0;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff9f7;
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 0;
}
.filter .btn {
  margin-top: 16px;
}
.list-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.list-head h2 {
  font-size: 19px;
}
.list-head h2 b {
  color: var(--brand);
  margin-left: 5px;
}
.list-head select {
  width: auto;
  max-width: 180px;
  padding: 8px;
  font-size: 12px;
}
.search {
  display: flex;
  gap: 8px;
}
.search input {
  flex: 1;
}
.animals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.animal-card {
  padding: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  position: relative;
  transition:
    transform 0.16s,
    border-color 0.16s;
}
.animal-card:hover {
  border-color: #8faf9a;
  transform: translateY(-2px);
}
.animal-card img {
  width: 100%;
  height: 164px;
  object-fit: cover;
}
.animal-photo {
  position: relative;
}
.animal-photo .badge {
  position: absolute;
  left: 10px;
  top: 10px;
  box-shadow: 0 2px 4px #0001;
}
.card-copy {
  padding: 13px 14px 15px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-top h3 {
  font-size: 19px;
}
.card-id {
  font-size: 10px;
  color: #7b8780;
}
.card-copy p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.card-meta {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.card-meta span {
  font-size: 10px;
  background: #f1f4ef;
  border-radius: 3px;
  padding: 2px 6px;
  color: #53665a;
}
.badge {
  display: inline-block;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e8f1eb;
  color: #285f44;
  line-height: 1.5;
}
.badge.amber {
  color: #85611b;
  background: #fff0d2;
}
.badge.gray {
  color: #61706a;
  background: #edf0ec;
}
.badge.red {
  color: #9c3939;
  background: #fbe9e3;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
}
.pagination button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.pagination button[aria-current] {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.pagination .small {
  margin: 0 8px;
  color: var(--muted);
}
.tip {
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: 7px;
  background: #f0f3ea;
  display: flex;
  gap: 10px;
  color: #53664e;
  font-size: 12px;
}
.tip .icon {
  flex-shrink: 0;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e7ece6;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-title p {
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.detail-photo {
  height: 320px;
  width: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.detail-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 14px;
}
.detail-name h1 {
  font-size: 30px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.fact {
  background: #f3f6f0;
  border: 1px solid #e5eae3;
  border-radius: 5px;
  padding: 10px;
  font-size: 11px;
  color: var(--muted);
}
.fact b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}
.section-text {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #e7ece6;
}
.section-text h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.section-text p {
  font-size: 12px;
  line-height: 1.9;
  color: #53645a;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-intro {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.step-line {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.step-line li {
  flex: 1;
  padding: 7px 2px;
  background: #eef2ed;
  text-align: center;
  font-size: 11px;
  border-radius: 4px;
  color: var(--muted);
}
.step-line li.done {
  background: #d6e6d8;
  color: #315a3a;
}
.step-line li.current {
  background: var(--brand);
  color: white;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  margin: 14px 0;
  line-height: 1.7;
}
.fine {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
}
.notice {
  padding: 13px 16px;
  background: var(--pale);
  border-radius: 6px;
  color: #40634c;
  font-size: 12px;
  margin: 14px 0;
  line-height: 1.8;
}
.notice.error {
  background: #fff0ea;
  color: var(--danger);
}
.error-summary {
  color: var(--danger);
  font-size: 12px;
  margin: 10px 0;
  min-height: 20px;
}
.footer {
  padding: 25px 44px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.footer button {
  background: none;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
}
.footer strong {
  font-size: 13px;
  color: var(--brand);
}
.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed #cbd8cb;
  background: white;
  border-radius: 8px;
  grid-column: 1/-1;
}
.empty .icon {
  width: 38px;
  height: 38px;
  color: #799783;
  margin: 0 auto 14px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px auto 18px;
  max-width: 440px;
}
.loading {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #d2dfd4;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skeleton {
  height: 330px;
  border-radius: 9px;
  background: linear-gradient(90deg, #edf1e9, #f7f8f5, #edf1e9);
  background-size: 200% 100%;
  animation: pulse 1.4s linear infinite;
}
@keyframes pulse {
  to {
    background-position: -200% 0;
  }
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  color: white;
  border-radius: 8px;
  padding: 14px 22px;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 13px;
  z-index: 60;
  box-shadow: 0 8px 30px #0002;
}
.toast.error {
  background: #8c3030;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 540px;
  max-width: calc(100vw - 30px);
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 24px 90px #0003;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #142e2bd9;
  opacity: 0.55;
}
dialog h2 {
  font-size: 23px;
  margin-bottom: 12px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.receipt {
  font-size: 25px;
  letter-spacing: 0.06em;
  background: #edf4ec;
  padding: 17px;
  border: 1px solid #d1e0d0;
  border-radius: 6px;
  color: var(--brand);
  text-align: center;
  margin: 16px 0;
}
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.join-photo {
  width: 100%;
  height: 188px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}
.join-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  background: #edf2e9;
  border-radius: 9px;
  margin-bottom: 24px;
}
.join-copy p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
details {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
details p {
  padding-top: 12px;
  color: var(--muted);
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.guide-steps article {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.guide-steps b {
  display: block;
  color: #6d8d6d;
  font-size: 27px;
  margin-bottom: 14px;
}
.guide-steps p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.lookup {
  max-width: 690px;
  margin: 20px auto 50px;
}
.timeline {
  padding: 0;
  margin: 12px 0;
  list-style: none;
}
.timeline li {
  padding: 0 0 16px 20px;
  position: relative;
  border-left: 1px solid #d7e2d6;
  font-size: 12px;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  background: #79a181;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.timeline time {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.timeline strong {
  font-weight: 550;
}
.admin-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--deep);
  color: #d0ded3;
  padding: 28px 15px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  color: white;
  margin: 0 10px 35px;
}
.sidebar .brand-mark,
.sidebar .brand small {
  color: #c7dbc9;
}
.sidebar .brand strong {
  font-size: 17px;
}
.side-caption {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #a2bca6;
  padding: 0 15px;
  margin-bottom: 10px;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  background: none;
  text-align: left;
  color: #cfdfd2;
  border-radius: 6px;
  font-size: 13px;
}
.side-nav button.active {
  background: #ffffff17;
  color: #fff;
}
.side-nav button:hover {
  background: #ffffff0c;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 12px 8px;
  font-size: 11px;
  color: #aac1b1;
}
.sidebar-bottom .btn {
  margin-top: 14px;
  background: #ffffff0b;
  border-color: #64816b;
  color: #dae6dc;
  width: 100%;
}
.admin-main {
  min-width: 0;
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 32px;
  border-bottom: 1px solid var(--line);
  background: white;
  font-size: 12px;
  color: var(--muted);
  gap: 12px;
}
.admin-top select {
  width: auto;
  font-size: 12px;
  padding: 7px 25px 7px 10px;
}
.admin-body {
  padding: 28px 32px;
}
.admin-body h1 {
  font-size: 27px;
}
.admin-body .page-title {
  margin-bottom: 24px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.metric {
  padding: 19px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.metric .metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.metric .icon {
  color: #80a285;
}
.metric b {
  display: inline-block;
  font-size: 32px;
  margin: 8px 5px 0 0;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
}
.metric .hint {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  table-layout: fixed;
}
th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: #f4f7f1;
}
td,
th {
  padding: 12px 10px;
  border-bottom: 1px solid #e6ece3;
  overflow-wrap: anywhere;
}
td strong {
  font-weight: 650;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.selected {
  background: #f1f6eb;
}
.table-action {
  padding: 0;
  background: none;
  color: var(--brand);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
  min-height: 28px;
}
.table-photo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.table-photo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.review-list {
  padding: 0;
}
.review-list .panel-head {
  padding: 18px;
  margin: 0;
}
.review-list .pagination {
  margin: 16px 0;
}
.review-detail {
  min-height: 500px;
}
.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.review-person img {
  width: 61px;
  height: 61px;
  border-radius: 8px;
  object-fit: cover;
}
.review-person h2 {
  font-size: 20px;
}
.review-person p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.kv {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  row-gap: 10px;
  font-size: 12px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.checklist {
  padding: 14px;
  background: #f6f8f3;
  border: 1px solid #e2e9dd;
  border-radius: 7px;
}
.checklist .checkbox {
  font-size: 12px;
  margin: 8px 0;
}
.chart {
  height: 181px;
  display: flex;
  gap: 16px;
  align-items: end;
  margin: 22px 0 6px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}
.bar-group {
  flex: 1;
  position: relative;
  text-align: center;
  height: 145px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}
.bar {
  width: 23px;
  border-radius: 4px 4px 0 0;
  background: #8eb49b;
  position: relative;
  min-height: 2px;
}
.bar.adopt {
  background: var(--accent);
}
.bar span {
  font-size: 10px;
  position: absolute;
  top: -19px;
  left: 0;
  right: 0;
  color: var(--muted);
}
.bar-group small {
  position: absolute;
  bottom: -23px;
  width: 100%;
  font-size: 10px;
  color: var(--muted);
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #8eb49b;
  margin-right: 5px;
}
.legend i.orange {
  background: var(--accent);
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
.toolbar .search {
  flex: 1;
  min-width: 160px;
}
.toolbar select {
  width: auto;
  font-size: 12px;
}
.toolbar input {
  padding: 8px 10px;
  font-size: 12px;
}
.admin-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.soft-link {
  padding: 0;
  color: var(--brand);
  background: none;
  font-size: 12px;
  font-weight: 650;
}
.dialog-wide {
  width: 780px;
}
.permission {
  padding: 70px 24px;
  text-align: center;
}
.permission .icon {
  height: 38px;
  width: 38px;
  color: #8ba28e;
  margin-bottom: 15px;
}

@media (min-width: 1700px) {
  .shell {
    max-width: 1580px;
  }
  .animal-card img {
    height: 183px;
  }
  .hero {
    min-height: 266px;
  }
  .hero-copy {
    padding: 34px 42px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero img {
    max-height: 282px;
  }
  .list-layout {
    gap: 30px;
  }
  .card-copy {
    padding: 15px;
  }
  .card-copy p {
    font-size: 12px;
  }
  .animals {
    gap: 20px;
  }
}

@media (max-width: 1400px) {
  .animals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header-inner {
    gap: 20px;
    padding: 18px 32px;
  }
  .nav {
    gap: 16px;
  }
  .shell {
    padding: 24px 32px 40px;
  }
  .list-layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .hero-copy {
    padding: 28px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .stat-inline {
    padding-right: 10px;
    margin: 0;
  }
  .admin-body {
    padding: 25px;
  }
  .admin-top {
    padding: 15px 25px;
  }
  .admin-layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .metric {
    padding: 14px;
  }
  .metric .metric-label {
    font-size: 11px;
  }
  .review-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .nav button {
    font-size: 12px;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 24px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding-top: 9px;
    gap: 26px;
  }
  .header-actions {
    margin-left: auto;
  }
  .shell {
    padding: 22px 24px 35px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero .flow {
    gap: 9px;
  }
  .hero p {
    font-size: 12px;
  }
  .stat-inline {
    font-size: 10px;
  }
  .stat-inline b {
    font-size: 21px;
  }
  .animals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dash-grid,
  .dash-bottom,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    gap: 18px;
  }
  .panel {
    padding: 18px;
  }
  .detail-photo {
    height: 270px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .guide-steps {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar .brand strong {
    font-size: 15px;
  }
  .sidebar .brand {
    margin: 0 0 30px;
  }
  .sidebar {
    padding: 25px 12px;
  }
  .review-list table {
    font-size: 12px;
  }
  .join-grid {
    gap: 18px;
  }
  .join-photo {
    height: 160px;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 27px;
  }
  h2 {
    font-size: 21px;
  }
  .topnote {
    padding: 7px 18px;
    font-size: 9px;
  }
  .topnote span:last-child {
    display: none;
  }
  .header-inner {
    padding: 14px 18px 10px;
    gap: 13px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-mark {
    width: 27px;
  }
  .brand-mark .icon {
    width: 28px;
  }
  .header-actions .btn {
    padding: 7px 9px;
    font-size: 10px;
    min-height: 34px;
  }
  .header-actions .btn.primary {
    display: none;
  }
  .nav {
    gap: 0;
    justify-content: space-between;
  }
  .nav button {
    font-size: 11px;
    padding: 7px 0;
  }
  .shell {
    padding: 18px 17px 30px;
  }
  .crumb {
    font-size: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 26px 22px;
  }
  .hero h1 {
    font-size: 28px;
    margin-top: 10px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero img {
    height: 174px;
    object-position: 50% 44%;
  }
  .stat-inline {
    font-size: 11px;
    padding-right: 12px;
  }
  .stat-inline b {
    font-size: 22px;
  }
  .hero .flow {
    gap: 10px;
  }
  .list-layout {
    display: block;
    margin-top: 20px;
  }
  .filter {
    padding: 15px;
    margin-bottom: 22px;
  }
  .filter-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
  }
  .filter .search-field {
    grid-column: 1/-1;
  }
  .filter .field {
    margin-top: 11px;
  }
  .filter select,
  .filter input {
    font-size: 12px;
    padding: 9px;
  }
  .filter-buttons {
    display: flex;
    gap: 8px;
  }
  .filter-buttons .btn {
    flex: 1;
    margin-top: 13px;
  }
  .animals {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .animal-card img {
    height: 150px;
  }
  .card-copy {
    padding: 11px;
  }
  .card-top h3 {
    font-size: 17px;
  }
  .card-id {
    display: none;
  }
  .card-copy p {
    font-size: 10px;
  }
  .card-meta {
    gap: 3px;
  }
  .card-meta span {
    font-size: 9px;
    padding: 2px 4px;
  }
  .badge {
    font-size: 9px;
    padding: 3px 6px;
  }
  .list-head {
    gap: 8px;
  }
  .list-head h2 {
    font-size: 17px;
  }
  .list-head select {
    font-size: 11px;
    max-width: 130px;
  }
  .footer {
    padding: 21px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .footer .flow {
    gap: 14px;
  }
  .detail-grid,
  .join-grid,
  .join-copy {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    gap: 20px;
  }
  .detail-photo {
    height: 250px;
  }
  .detail-name h1 {
    font-size: 27px;
  }
  .detail-name .flow {
    gap: 5px;
  }
  .facts {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  .fact {
    padding: 8px;
    font-size: 10px;
  }
  .fact b {
    font-size: 12px;
  }
  .two-fields {
    gap: 10px;
  }
  .field label {
    font-size: 11px;
  }
  .checkbox {
    font-size: 11px;
  }
  .step-line li {
    font-size: 9px;
  }
  .page-title {
    align-items: flex-start;
  }
  .page-title p {
    font-size: 12px;
  }
  .join-photo {
    height: 180px;
  }
  .join-copy {
    gap: 18px;
    padding: 20px;
  }
  .guide-steps {
    gap: 12px;
  }
  .guide-steps article {
    padding: 17px;
  }
  .guide-steps article h3 {
    font-size: 15px;
  }
  .admin-layout {
    display: block;
  }
  .sidebar {
    padding: 15px 17px;
  }
  .sidebar .brand {
    margin: 0 0 14px;
  }
  .sidebar .brand strong {
    font-size: 17px;
  }
  .side-caption,
  .sidebar-bottom {
    display: none;
  }
  .side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .side-nav button {
    padding: 8px 9px;
    font-size: 11px;
    gap: 5px;
  }
  .side-nav .icon {
    width: 15px;
    height: 15px;
  }
  .admin-top {
    padding: 12px 17px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .admin-top select {
    font-size: 10px;
    padding: 7px;
  }
  .admin-body {
    padding: 20px 17px;
  }
  .admin-body h1 {
    font-size: 25px;
  }
  .admin-body .page-title {
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric:last-child {
    grid-column: 1/-1;
  }
  .metric {
    padding: 14px;
  }
  .metric b {
    font-size: 29px;
  }
  .metric-grid .metric:last-child b {
    font-size: 27px;
  }
  .dash-grid,
  .dash-bottom,
  .review-grid {
    gap: 16px;
  }
  .panel {
    padding: 17px;
  }
  .panel-head {
    align-items: flex-start;
    gap: 10px;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .panel-head h3 {
    font-size: 15px;
  }
  .table-responsive thead {
    display: none;
  }
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td {
    display: block;
    width: 100%;
  }
  .table-responsive tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .table-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    padding: 5px 3px;
    gap: 14px;
    font-size: 12px;
  }
  .table-responsive td:before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--muted);
    flex-shrink: 0;
  }
  .table-responsive td > div {
    text-align: right;
  }
  .review-list .panel-head {
    padding: 16px;
  }
  .review-list tr {
    padding: 10px 16px;
  }
  .kv {
    grid-template-columns: 78px 1fr;
    font-size: 11px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .search {
    width: 100%;
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
  }
  .chart {
    gap: 10px;
  }
  .bar {
    width: 16px;
  }
  .review-person h2 {
    font-size: 20px;
  }
  .admin-footer {
    padding: 17px;
  }
  .receipt {
    font-size: 22px;
  }
  .lookup {
    margin-top: 5px;
  }
  .pagination {
    gap: 5px;
  }
  .pagination .small {
    margin: 0 4px;
  }
  dialog {
    padding: 22px 19px;
  }
  .dialog-wide .two-fields {
    grid-template-columns: 1fr;
  }
  .review-detail .flow .btn {
    flex: 1;
  }
  .topnote,
  .header,
  .shell,
  .footer,
  .admin-main {
    max-width: 100%;
  }
}

@media (max-width: 370px) {
  .animals {
    grid-template-columns: 1fr;
  }
  .header-inner {
    padding: 13px;
  }
  .shell {
    padding: 17px 13px;
  }
  .nav button {
    font-size: 10px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1101px) {
  .hero {
    min-height: 222px;
  }
  .hero-copy {
    padding: 24px 32px;
  }
  .hero img {
    max-height: 242px;
  }
  .hero .flow {
    margin-top: 18px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .filter .field {
    margin-top: 10px;
  }
  .filter label {
    font-size: 11px;
  }
  .filter input,
  .filter select {
    padding: 7px 9px;
    font-size: 12px;
  }
  .filter .btn {
    min-height: 35px;
    padding: 7px 10px;
    margin-top: 10px;
  }
  .animal-card img {
    height: 158px;
  }
  .card-copy {
    padding: 12px 14px;
  }
  .card-copy p {
    font-size: 11px;
  }
  .card-meta {
    margin-top: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.sidebar .brand {
  margin: 0 2px 35px;
  gap: 7px;
  padding: 0;
}
.sidebar .brand strong {
  font-size: 16px;
}
.sidebar .brand small {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.sidebar .brand-mark {
  width: 30px;
}
.detail-photo {
  object-position: 50% 30%;
}
@media (min-width: 1101px) {
  .hero {
    height: 220px;
    min-height: 220px;
  }
  .hero-copy {
    padding: 20px 32px;
  }
  .hero img {
    height: 220px;
    max-height: 220px;
  }
  .hero h1 {
    margin: 6px 0 8px;
  }
  .hero .flow {
    margin-top: 12px;
  }
  .animal-card img {
    height: 148px;
  }
}
@media (min-width: 701px) and (max-width: 1400px) {
  .sidebar .brand strong {
    font-size: 14px;
  }
  .sidebar .brand small {
    font-size: 7px;
  }
  .sidebar .brand-mark {
    width: 25px;
  }
  .sidebar .brand-mark .icon {
    width: 25px;
  }
}
@media (max-width: 700px) {
  .sidebar .brand {
    margin: 0 0 14px;
  }
}

.mobile-filter-toggle {
  display: none;
}
@media (max-width: 700px) {
  .filter-caption {
    display: none;
  }
  .mobile-filter-toggle {
    display: inline-flex;
    margin: 0 !important;
    min-height: 33px;
  }
  .filter:not(.expanded) .filter-fields,
  .filter:not(.expanded) .filter-buttons {
    display: none;
  }
  .filter .flow h2 {
    font-size: 14px;
  }
}
