:root {
  --bg: hsl(154 49% 14%);
  --fg: hsl(90 18% 96%);
  --card: hsl(155 45% 18%);
  --muted: hsl(154 40% 21%);
  --muted-fg: hsl(144 17% 64%);
  --primary: hsl(12 83% 49%);
  --primary-fg: #fff;
  --border: hsl(154 30% 27%);
  --gold: hsl(46 67% 54%);
  --deep: hsl(153 53% 11%);
  --surface: hsl(80 11% 89%);
  --word: hsl(113 9% 82%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--primary); color: #fff; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 Rubik, sans-serif; }
h1, h2, h3, button, .font-head { font-family: Unbounded, sans-serif; letter-spacing: -.02em; }
img { max-width: 100%; display: block; -webkit-user-drag: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.section-pad { padding: 2.35rem 1.15rem 2.1rem; }
.section .section-pad > h2,
.section .about-copy > h2 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-pad > p:not(.eyebrow):not(.year):not(.form-error):not(.form-ok),
.section .about-copy > p:not(.eyebrow) {
  margin: .65rem 0 0;
  max-width: 38rem;
  color: var(--muted-fg);
  line-height: 1.55;
  text-wrap: pretty;
}
.section-pad > p:not(.eyebrow):not(.year):not(.form-error):not(.form-ok) + p:not(.eyebrow):not(.year):not(.form-error):not(.form-ok),
.section .about-copy > p + p { margin-top: .4rem; }
@media (min-width: 800px) {
  .section-pad { padding: 3.6rem 2rem 3.25rem; }
  .grid-gap { margin-top: 1.5rem; }
  .why-intro + .grid-gap { margin-top: 1.25rem; }
}
.why-intro { max-width: 48rem; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 90; background: var(--primary); color: #fff; padding: .55rem .9rem; }
.skip-link:focus { top: .7rem; }
.section { border-top: 1px solid var(--border); }
.section-bg { background: var(--muted); }
.eyebrow { margin: 0 0 .4rem; color: var(--gold); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.heading { max-width: 46rem; }
.heading h2, .hero-copy h1 { margin: 0; font-size: clamp(26px, 4.4vw, 44px); font-weight: 600; line-height: 1.06; }
.heading p, .lead { max-width: 40rem; color: var(--muted-fg); }
.why-intro { max-width: 48rem; }
.why-intro .eyebrow { margin-bottom: .65rem; }
.why-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.why-copy p {
  margin: .8rem 0 0;
  max-width: 36rem;
  color: var(--muted-fg);
  line-height: 1.55;
  text-wrap: pretty;
}
.why-intro + .grid-gap { margin-top: 1.35rem; }
.grid-gap { display: grid; gap: 1px; border: 1px solid var(--border); background: var(--border); margin-top: 1.1rem; }
.cell { background: var(--bg); padding: 1rem 1.05rem 1.1rem; }
.cell:hover { background: var(--muted); }
.cell h3 { margin: .2rem 0 .3rem; font-size: 1rem; line-height: 1.2; }
.cell p, .muted { margin: .2rem 0 0; color: var(--muted-fg); font-size: .92rem; line-height: 1.45; }
.cell .eyebrow { margin-bottom: .3rem; }
.cell ul { margin: .4rem 0 0; padding-left: 1.05rem; color: var(--muted-fg); font-size: .9rem; line-height: 1.4; }
.cell li + li { margin-top: .22rem; }
.num { color: var(--muted-fg); font-family: Unbounded, sans-serif; font-size: .85rem; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 70; transition: background .3s; }
.site-header.is-scrolled { background: hsl(153 53% 11% / .95); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.topnav { display: flex; align-items: center; gap: 1.5rem; padding: .75rem 1.25rem; }
.logo-link { display: inline-block; background: var(--surface); padding: .35rem .6rem; }
.logo-link img { height: 30px; width: auto; }
.nav-main, .nav-actions { display: none; }
.nav-main { list-style: none; margin: 0; padding: 0; gap: .85rem; align-items: center; flex-wrap: nowrap; }
.nav-main li { flex-shrink: 0; }
.nav-main a, .nav-more button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .2rem; background: none; border: 0; color: hsl(90 18% 96% / .9); text-decoration: none; cursor: pointer; font-size: .82rem; white-space: nowrap; }
.nav-main a:hover, .nav-more button:hover { color: var(--primary); }
.nav-more { position: relative; }
.nav-more-menu { display: none; position: absolute; left: 0; top: 100%; width: 15rem; background: var(--deep); border: 1px solid var(--border); }
.nav-more:hover .nav-more-menu, .nav-more:focus-within .nav-more-menu, .nav-more.is-open .nav-more-menu { display: block; }
.nav-more-menu { z-index: 70; }
.nav-more-menu a { display: flex; align-items: center; min-height: 2.75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.nav-more-menu a:hover { background: var(--primary); color: #fff; }
.nav-actions { margin-left: auto; gap: .6rem; align-items: center; flex-shrink: 0; }
.nav-actions .btn { white-space: nowrap; }
.nav-burger { margin-left: auto; width: 2.75rem; height: 2.75rem; padding: 0; border: 2px solid var(--primary); background: var(--deep); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; line-height: 0; touch-action: manipulation; }
.nav-burger-icon, .nav-burger-icon::before, .nav-burger-icon::after { display: block; width: 1.15rem; height: 2px; background: var(--fg); border-radius: 1px; }
.nav-burger-icon { position: relative; }
.nav-burger-icon::before, .nav-burger-icon::after { content: ""; position: absolute; left: 0; }
.nav-burger-icon::before { top: -6px; }
.nav-burger-icon::after { top: 6px; }
.nav-burger.is-open .nav-burger-icon { background: transparent; }
.nav-burger.is-open .nav-burger-icon::before { top: 0; transform: rotate(45deg); }
.nav-burger.is-open .nav-burger-icon::after { top: 0; transform: rotate(-45deg); }
.site-header.is-menu { background: var(--deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.nav-lock { overflow: hidden; }
.nav-overlay { position: fixed; top: var(--nav-top, 4.25rem); right: 0; bottom: 0; left: 0; z-index: 65; background: var(--deep); display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
.nav-overlay[hidden] { display: none; }
.nav-overlay-links { display: flex; flex-direction: column; }
.nav-overlay-links a { display: flex; align-items: center; width: 100%; min-height: 3.25rem; padding: 0 1.25rem; border-bottom: 1px solid var(--border); text-decoration: none; font-family: Unbounded, sans-serif; font-size: .98rem; touch-action: manipulation; }
.nav-overlay-links a:active { background: var(--muted); }
.nav-overlay-actions { position: sticky; bottom: 0; display: grid; gap: .55rem; margin-top: auto; padding: .85rem 1.25rem 1.15rem; background: var(--deep); border-top: 1px solid var(--border); }
.nav-overlay-actions .btn { width: 100%; min-height: 3rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 1.15rem; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-ghost { border: 1px solid var(--border); background: transparent; color: var(--fg); }
.btn-surface { background: var(--surface); color: var(--deep); min-height: 3.5rem; padding: 0 2rem; }
.hero { --hero-word-top: 5.35rem; --hero-word-size: clamp(28px, 9.6vw, 152px); position: relative; min-height: 100svh; overflow: hidden; padding-bottom: 4.5rem; }
.hero-photo { position: relative; z-index: 2; width: calc(100% - 1.5rem); aspect-ratio: 1 / 1; height: auto; margin: 5.1rem auto 0; overflow: hidden; background: var(--deep); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 26, 20, .42) 0%, rgba(8, 26, 20, .08) 34%, transparent 58%); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero-word { position: absolute; left: -.4rem; right: -.4rem; top: var(--hero-word-top); z-index: 3; margin: 0; text-align: center; color: var(--word); font-size: var(--hero-word-size); font-weight: 700; line-height: .86; letter-spacing: -.045em; white-space: nowrap; pointer-events: none; text-shadow: 0 10px 28px rgba(6, 22, 16, .5); }
.hero-copy { position: relative; z-index: 5; max-width: 36rem; margin-top: 1.35rem; padding: 0 1.25rem 1rem; }
.hero-copy h1 { font-size: clamp(28px, 6.2vw, 46px); }
.hero-copy p { max-width: 34rem; }
.hero-copy > p:not(.eyebrow) { margin: .6rem 0 0; color: var(--muted-fg); line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.4rem; }
.hero-actions .btn { min-height: 48px; padding: 0 1.2rem; width: 100%; }
.btn-line { border: 2px solid var(--primary); background: transparent; color: var(--fg); }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 46px; overflow: hidden; background: var(--surface); color: var(--deep); }
.ticker-track { display: flex; width: max-content; animation: ticker-run 36s linear infinite; }
.ticker-track > span { flex: 0 0 auto; white-space: nowrap; line-height: 46px; padding-right: 3rem; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tiles-5 { grid-template-columns: 1fr; }
.tiles-5 > li { display: grid; gap: .28rem; align-content: start; background: var(--bg); margin: 0; padding: 1rem 1.05rem; list-style: none; }
.tiles-5 > li b { color: var(--gold); font-size: .78rem; font-weight: 500; }
.tiles-5 > li strong { font-family: Unbounded, sans-serif; font-size: .92rem; line-height: 1.25; }
.tiles-5 > li span { color: var(--muted-fg); font-size: .86rem; line-height: 1.4; }
ol.tiles-5 { margin: 1.1rem 0 0; padding: 0; }
.tiles-3 { grid-template-columns: 1fr; }
.tiles-2 { grid-template-columns: 1fr; }
.puzzles { display: grid; gap: .75rem; }
.puzzle {
  display: grid; gap: .2rem; padding: .85rem 1rem; min-height: 0;
  border: 1px solid var(--border); border-radius: .8rem; background: var(--card);
  text-decoration: none; -webkit-user-drag: none;
}
.puzzle strong { font-family: Unbounded, sans-serif; font-size: .95rem; font-weight: 600; }
.puzzle span { color: var(--muted-fg); font-size: .82rem; }
.puzzle:hover { background: var(--primary); color: #fff; }
.puzzle:hover span { color: #fff; }
.about-row { display: grid; gap: 1.1rem; align-items: start; }
.about-main { min-width: 0; }
.about-photo { margin: 0; width: 100%; justify-self: stretch; border-radius: .9rem; overflow: hidden; background: var(--deep); border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem .75rem; margin: 1rem 0 0; }
.stats div { min-width: 0; padding-top: .6rem; border-top: 1px solid var(--border); }
.stats b { display: block; color: var(--gold); font-family: Unbounded, sans-serif; font-size: 1.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: .35rem; color: var(--muted-fg); font-size: .8rem; line-height: 1.35; }
.filters { display: grid; gap: .75rem; margin-top: 1.5rem; max-width: 52rem; }
.cell > img { width: 100%; height: 10rem; object-fit: cover; }
.judges { display: grid; gap: .75rem; margin-top: 1.25rem; }
.shelter-grid { display: grid; gap: .7rem; margin-top: 1.1rem; }
.shelter-card {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: var(--bg);
}
.shelter-photo { aspect-ratio: 1; border-radius: .7rem; overflow: hidden; background: var(--deep); }
.shelter-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.shelter-copy { min-width: 0; padding-right: .35rem; }
.shelter-copy h3 { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.shelter-copy p { margin: .3rem 0 0; color: var(--muted-fg); font-size: .95rem; line-height: 1.4; }
.shelter-copy a { display: inline-block; margin-top: .55rem; color: var(--gold); font-size: .9rem; text-decoration: none; }
.shelter-copy a:hover { color: var(--primary); }
@media (max-width: 699px) {
  .shelter-card { grid-template-columns: 1fr; gap: .7rem; align-items: start; padding: .7rem; }
  .shelter-photo { width: 100%; aspect-ratio: 4 / 3; }
  .shelter-copy { padding-right: 0; }
  .shelter-copy h3 { font-size: 1.2rem; }
  .shelter-copy p { font-size: .92rem; }
}
.catalog-grid { display: grid; gap: .75rem; margin-top: 1.25rem; }
.catalog-card { border-radius: 1rem; overflow: hidden; background: hsl(155 45% 18% / .55); border: 1px solid var(--border); }
.catalog-card[hidden] { display: none; }
.catalog-open { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.catalog-open:hover h3 { color: var(--gold); }
.catalog-photo { position: relative; margin: .55rem .55rem 0; border-radius: .75rem; overflow: hidden; background: var(--deep); aspect-ratio: 4 / 3; }
.catalog-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.catalog-body { padding: .6rem .7rem .75rem; }
.catalog-body h3 { margin: 0 0 .25rem; font-size: .95rem; }
.catalog-meta { margin: .1rem 0 0; font-size: .78rem; line-height: 1.35; color: var(--muted-fg); }
.catalog-foot { display: flex; align-items: center; padding: 0 .55rem .45rem; }
.dog-view { width: min(46rem, 100%); }
.modal.dog-view { padding-top: 3.1rem; }
.modal.dog-view .modal-close { top: .55rem; right: .65rem; }
.dog-view-photo { width: 100%; max-height: min(68vh, 34rem); object-fit: contain; background: var(--deep); border-radius: .75rem; }
.dog-view-thumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.dog-view-thumbs button { width: 3.4rem; height: 3.4rem; padding: 0; border: 1px solid var(--border); border-radius: .4rem; background: var(--deep); cursor: pointer; }
.dog-view-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.dog-view-meta, .dog-view-text { margin: .4rem 0 0; color: var(--muted-fg); font-size: .92rem; line-height: 1.45; }
.dog-view-facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: .7rem 0 0; font-size: .86rem; }
.dog-view-facts dt { color: var(--muted-fg); }
.dog-view-facts dd { margin: 0; }
.btn-vote { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 2.75rem; min-height: 2.75rem; border: 0; background: transparent; color: var(--primary); cursor: pointer; font-family: Unbounded, sans-serif; padding: 0 .35rem; font-size: .95rem; touch-action: manipulation; }
.btn-vote.is-voted { color: var(--gold); }
.admin-page .section-pad { max-width: 76rem; margin: 0 auto; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.25rem; align-items: end; }
.admin-page h1 { margin: 0; font-size: 1.45rem; line-height: 1.15; font-weight: 600; }
.admin-note { margin: .65rem 0 0; max-width: 36rem; color: var(--muted-fg); font-size: .9rem; line-height: 1.45; }
.admin-block { margin-top: 0; padding: 1.15rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--deep); }
.admin-block h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; font-weight: 600; }
.admin-block > h3 { margin: 1rem 0 .35rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.admin-row h3 { font-size: .95rem; line-height: 1.25; letter-spacing: -.02em; text-transform: none; color: var(--fg); font-weight: 600; }
.admin-row p { color: var(--muted-fg); font-size: .84rem; line-height: 1.35; }
.admin-block > p { margin: .3rem 0 0; max-width: 40rem; color: var(--muted-fg); font-size: .88rem; line-height: 1.45; }
.admin-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 .2rem; }
.admin-stats span { border: 1px solid var(--border); background: var(--bg); padding: .4rem .65rem; min-width: 6.2rem; color: var(--muted-fg); font-size: .75rem; }
.admin-stats b { display: block; margin-top: .1rem; color: var(--fg); font-family: Unbounded, sans-serif; font-size: 1.05rem; }
.admin-table { width: 100%; border-collapse: collapse; margin: .25rem 0 .35rem; font-size: .82rem; }
.admin-table th, .admin-table td { text-align: left; padding: .38rem .45rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { color: var(--muted-fg); font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.focus-form { display: flex; flex-wrap: wrap; gap: .45rem; align-items: end; }
.focus-form label { display: grid; gap: .25rem; font-size: .78rem; color: var(--muted-fg); }
.focus-form select { min-height: 2.4rem; border: 1px solid var(--border); background: var(--deep); color: var(--fg); padding: 0 .5rem; }
.focus-thumb { width: 5.2rem; height: 3.9rem; object-fit: cover; object-position: center; border-radius: .4rem; background: var(--deep); flex: 0 0 auto; }
.price { font-size: 2rem; color: var(--gold); }
.partner { display: flex; align-items: center; justify-content: center; min-height: 7rem; background: var(--bg); text-align: center; padding: 1rem; font-family: Unbounded, sans-serif; color: var(--muted-fg); text-decoration: none; }
a.partner { cursor: pointer; }
a.partner:hover { background: var(--primary); color: #fff; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-family: Unbounded, sans-serif; font-size: .95rem; line-height: 1.3; padding: .6rem 0; }
.faq p { margin: 0 0 .7rem; max-width: 40rem; color: var(--muted-fg); font-size: .95rem; line-height: 1.5; }
.cta { position: relative; overflow: hidden; background: var(--primary); color: #fff; }
.cta h2 { color: #fff; font-size: clamp(28px, 5vw, 52px); }
.year { position: absolute; right: -1rem; top: -1rem; font-size: clamp(90px, 20vw, 240px); color: hsl(0 0% 100% / .1); font-weight: 700; }
.site-footer { background: var(--deep); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid h3 { margin: 0 0 .85rem; color: var(--gold); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-brand, .footer-nav, .footer-contacts { display: grid; gap: .55rem; align-content: start; }
.footer-lead { margin: .85rem 0 0; max-width: 26rem; color: var(--muted-fg); font-size: .92rem; line-height: 1.5; }
.footer-links { display: grid; gap: 1.15rem 1.4rem; }
.footer-links p { margin: 0 0 .35rem; color: var(--fg); font-family: Unbounded, sans-serif; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a, .footer-contacts a { color: var(--muted-fg); text-decoration: none; }
.footer-links a { display: block; padding: .16rem 0; font-size: .92rem; line-height: 1.35; }
.footer-links a:hover, .footer-contacts a:hover { color: var(--gold); }
.footer-contacts p { margin: .35rem 0 0; color: var(--muted-fg); font-size: .88rem; line-height: 1.45; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); color: var(--muted-fg); font-size: .8rem; padding-top: 1.5rem; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 1.25rem 1rem; overflow: auto; background: rgba(0, 0, 0, .62); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(42rem, 100%); margin: auto; position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem 1.25rem 1.5rem; }
.modal.auth-view { width: min(26rem, 100%); }
.modal.auth-view .sheet { margin-top: .85rem; }
.modal h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.modal .sheet { max-width: none; }
.modal-close { position: absolute; top: .65rem; right: .75rem; width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--fg); font-size: 1.4rem; cursor: pointer; }
.scroll-top { position: fixed; right: 1.25rem; bottom: 1.4rem; z-index: 55; width: 3rem; height: 3rem; border-radius: 999px; border: 0; background: var(--primary); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
.scroll-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.scroll-top:hover { transform: scale(1.06); }
.sheet { max-width: 40rem; margin-top: 1.25rem; display: grid; gap: .85rem; }
.sheet-grid { display: grid; gap: .7rem; }
.sheet label, .filters label {
  display: grid; gap: .3rem; min-width: 0; margin: 0;
  font-size: .82rem; color: var(--muted-fg);
}
.sheet input, .sheet select, .sheet textarea, .filters input, .filters select {
  width: 100%; min-height: 2.45rem; border: 1px solid var(--border); background: var(--deep);
  padding: 0 .7rem; font-size: .95rem; color: var(--fg);
}
.sheet input[type="file"] { min-height: 0; padding: .35rem 0; border: 0; background: transparent; font-size: .85rem; }
.sheet textarea { min-height: 6.5rem; padding: .6rem .7rem; resize: vertical; }
.sheet .check { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--fg); }
.sheet .check input { width: 1rem; height: 1rem; min-height: 0; margin-top: .2rem; accent-color: var(--primary); }
.sheet .check .form-error { flex-basis: 100%; margin-left: 1.6rem; }
.sheet input.field-invalid, .sheet select.field-invalid, .media-forms input.field-invalid { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.span-2 { grid-column: 1 / -1; }
.auth-switch { display: flex; max-width: 22rem; border: 1px solid var(--border); margin-bottom: .25rem; }
.auth-switch button { flex: 1; min-height: 2.4rem; border: 0; background: transparent; cursor: pointer; }
.auth-switch button.is-on { background: var(--primary); color: #fff; }
.form-error { color: var(--primary); margin: 0; font-size: .78rem; line-height: 1.35; }
.form-ok { color: var(--gold); margin: 0; }
.dog-card { max-width: 40rem; border: 1px solid var(--border); background: var(--bg); margin-top: .85rem; }
.dog-card header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.dog-card header h3, .dog-card header p { margin: 0; }
.dog-card .pad { display: grid; gap: .75rem; padding: .85rem 1rem 1rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.thumb { position: relative; width: 4.5rem; }
.thumb img, .thumb a { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; object-fit: cover; background: var(--deep); font-size: .75rem; }
.thumb form { margin-top: .25rem; }
.thumb .btn { min-height: 1.6rem; padding: 0 .4rem; font-size: .72rem; }
.media-forms { display: grid; gap: .6rem; }
.media-forms form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.media-forms label { flex: 1 1 12rem; display: grid; gap: .3rem; font-size: .82rem; color: var(--muted-fg); }
.media-forms input { width: 100%; min-height: 2.45rem; border: 1px solid var(--border); background: var(--deep); padding: 0 .7rem; font-size: .95rem; color: var(--fg); }
.media-forms input[type="file"] { min-height: 0; padding: .35rem 0; border: 0; background: transparent; font-size: .85rem; }
.admin-list { display: grid; gap: .45rem; margin-top: .75rem; }
.admin-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; align-items: center; border: 1px solid var(--border); background: var(--bg); padding: .6rem .75rem; }
.admin-row h3, .admin-row p { margin: 0; }
.admin-actions { display: flex; gap: .4rem; }
@media (min-width: 700px) {
  .tiles-2, .filters, .sheet-grid, .puzzles { grid-template-columns: 1fr 1fr; }
  .judges, .catalog-grid, .shelter-grid { grid-template-columns: 1fr 1fr; }
  .tiles-3, .dogs { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .shelter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .nav-main, .nav-actions { display: flex; }
  .nav-burger { display: none; }
}
@media (min-width: 1024px) {
  .tiles-5 { grid-template-columns: repeat(5, 1fr); }
  .tiles-4 { grid-template-columns: repeat(4, 1fr); }
  .faq-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .site-footer .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; gap: 3rem; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-row { grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; column-gap: 1.6rem; }
  .about-photo { width: 16rem; max-width: 100%; height: auto; aspect-ratio: 4 / 3; justify-self: end; }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .judges, .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .puzzles { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-photo { position: absolute; top: 5.4rem; right: 2vw; width: min(50vw, 68vh, 720px); height: min(50vw, 68vh, 720px); aspect-ratio: auto; margin: 0; }
  .hero { --hero-word-top: 6.1rem; }
  .hero-copy { margin-top: 0; margin-left: 1.6rem; padding-top: calc(var(--hero-word-top) + var(--hero-word-size) * .86 + 2.5rem); max-width: min(34rem, 42vw); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-top, .site-header { transition: none; }
}
.cabinet-page, .cabinet-dog { scroll-margin-top: 5rem; }
.cabinet-head h1 { margin: 0; max-width: 16em; font-size: clamp(1.4rem, 3vw, 2.05rem); font-weight: 600; line-height: 1.14; letter-spacing: -.03em; text-wrap: balance; }
.cabinet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 1.5rem; align-items: flex-end; }
.cabinet-lead { max-width: 36rem; margin-bottom: 0; }
.cabinet-account { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--deep); }
.cabinet-account p { display: grid; margin: 0; }
.cabinet-account span { color: var(--muted-fg); font-size: .85rem; }
.cabinet-account form { margin: 0; }
.cabinet-stats { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 0; }
.cabinet-stats span { min-width: 6.5rem; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--deep); color: var(--muted-fg); font-size: .78rem; }
.cabinet-stats b { display: block; margin-top: .1rem; color: var(--fg); font-family: Unbounded, sans-serif; font-size: 1.15rem; font-weight: 600; }
.cabinet-dog { margin-top: .85rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--card); }
.cabinet-add { margin-top: 1rem; border: 0; background: transparent; }
.cabinet-add[open] { border: 1px solid var(--border); border-radius: .85rem; background: var(--card); }
.cabinet-add > summary, .cabinet-dog > summary { list-style: none; cursor: pointer; }
.cabinet-add > summary::-webkit-details-marker, .cabinet-dog > summary::-webkit-details-marker { display: none; }
.cabinet-add > summary { display: inline-flex; align-items: center; min-height: 2.7rem; padding: 0 1rem; border-radius: .6rem; background: var(--primary); color: #fff; font-family: Unbounded, sans-serif; font-size: .92rem; }
.cabinet-add[open] > summary { margin: .35rem .35rem 0; }
.cabinet-add .sheet { max-width: none; margin: 0; padding: .2rem 1rem 1rem; }
.cabinet-empty { margin: .9rem 0 0; color: var(--muted-fg); }
.cabinet-dog > summary { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; }
.cabinet-thumb { flex: 0 0 auto; width: 4.6rem; height: 3.45rem; border-radius: .55rem; overflow: hidden; background: var(--deep); display: grid; place-items: center; color: var(--gold); font-family: Unbounded, sans-serif; }
.cabinet-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cabinet-sum { display: grid; min-width: 0; flex: 1 1 auto; }
.cabinet-sum strong { font-family: Unbounded, sans-serif; font-size: 1.05rem; }
.cabinet-sum small { color: var(--muted-fg); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabinet-status { flex: 0 0 auto; padding: .28rem .55rem; border-radius: .45rem; border: 1px solid var(--border); color: var(--gold); font-size: .75rem; }
.cabinet-status-ok { border-color: var(--gold); background: hsl(46 67% 54% / .16); }
.cabinet-status-no { border-color: var(--primary); color: var(--primary); }
.cabinet-dog > summary::after { content: ""; flex: 0 0 auto; width: .45rem; height: .45rem; margin-left: .2rem; border-right: 2px solid var(--muted-fg); border-bottom: 2px solid var(--muted-fg); transform: rotate(45deg) translateY(-2px); }
.cabinet-dog[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.cabinet-layout { display: grid; gap: 1.2rem; margin: 0; padding: 0 .9rem 1rem; align-items: start; border-top: 1px solid var(--border); }
.cabinet-card-form { display: grid; gap: .75rem; align-content: start; padding-top: .9rem; }
.cabinet-preview { max-width: 18rem; }
.cabinet-kicker { margin: .9rem 0 0; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.cabinet-card-form .cabinet-kicker:first-child { margin-top: 0; }
.cabinet-note { margin: 0; max-width: 36rem; color: var(--muted-fg); font-size: .82rem; line-height: 1.45; }
.cabinet-photos { display: flex; flex-wrap: wrap; gap: .7rem; }
.cabinet-photo { display: grid; gap: .35rem; width: 6.4rem; }
.cabinet-photo label { display: grid; gap: .3rem; margin: 0; cursor: pointer; }
.cabinet-photo img { width: 6.4rem; height: 4.8rem; object-fit: cover; background: var(--deep); border: 1px solid var(--border); border-radius: .5rem; }
.cabinet-photo input { accent-color: var(--gold); }
.cabinet-photo label:has(input:checked) img { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cabinet-photo .btn { width: 100%; min-height: 2rem; padding: 0 .35rem; font-size: .75rem; }
.cabinet-focus { display: grid; gap: .3rem; max-width: 16rem; margin: 0; font-size: .82rem; color: var(--muted-fg); }
.cabinet-focus select, .cabinet-page .sheet input, .cabinet-page .sheet select, .cabinet-page .sheet textarea { width: 100%; min-height: 2.45rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--bg); color: var(--fg); padding: 0 .7rem; font: inherit; }
.cabinet-page .sheet textarea { min-height: 6.5rem; padding: .6rem .7rem; }
.cabinet-side { padding-top: .15rem; }
.cabinet-side .sheet { max-width: none; margin-top: .45rem; }
.media-forms { display: grid; gap: .7rem; margin-top: .45rem; }
.media-forms form { display: grid; gap: .55rem; align-content: start; margin: 0; padding: .8rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--bg); }
.media-forms label { display: grid; gap: .3rem; margin: 0; color: var(--muted-fg); font-size: .82rem; }
.cabinet-videos { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.cabinet-videos li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--bg); }
.cabinet-videos a { color: var(--gold); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .cabinet-layout { grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr); column-gap: 1.4rem; }
  .media-forms { grid-template-columns: 1fr 1fr; }
}
.ticker a { color: var(--primary); font-weight: 600; }
.about-vote { margin-top: 1.2rem; padding: 1rem 1.1rem; border-left: 3px solid var(--gold); background: hsl(155 45% 18% / .28); }
.about-vote h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.handler-extra { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.handler-steps { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.handler-steps li { display: flex; gap: .7rem; align-items: flex-start; }
.handler-steps b { flex: 0 0 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
.gallery-track figure { margin: 0; scroll-snap-align: start; background: var(--deep); }
.gallery-track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-track figcaption { padding: .8rem 1rem 1rem; }
.gallery-track h3 { margin: 0 0 .3rem; font-size: 1rem; }
.task-group { margin: 1.3rem 0 .6rem; font-size: 1.05rem; }
.task-note { margin-top: 1rem; }
.broadcast { display: grid; gap: 1rem; margin-top: 1rem; }
.broadcast-live { display: grid; background: var(--deep); }
.broadcast-live img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.broadcast-live > div, .broadcast aside { padding: 1rem; }
.broadcast aside ul { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .55rem; }
.broadcast aside li { display: flex; justify-content: space-between; gap: 1rem; }
.faq-layout { display: grid; gap: 1.4rem; }
.ask-form { display: grid; gap: .7rem; align-content: start; padding: 1rem; }
.ask-form textarea, .admin-card textarea { min-height: 6rem; width: 100%; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.partner img { max-width: 9rem; max-height: 3.2rem; object-fit: contain; }
.admin-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.admin-filters a { color: var(--fg); text-decoration: none; border: 1px solid var(--border); border-radius: .5rem; padding: .4rem .7rem; font-size: .82rem; }
.admin-filters a.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-card { display: grid; gap: .7rem; padding: .9rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--bg); }
.admin-card h3 { margin: 0; font-size: 1rem; }
.admin-media { display: flex; flex-wrap: wrap; gap: .45rem; }
.admin-media img { width: 6rem; height: 4.5rem; object-fit: cover; border-radius: .5rem; }
.admin-scroll { overflow-x: auto; }
@media (min-width: 768px) {
  .gallery-track { grid-auto-columns: calc(50% - .5rem); }
  .handler-extra, .broadcast { grid-template-columns: 1.2fr .8fr; }
}
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.4fr); align-items: start; }
}
@media (min-width: 1280px) {
  .gallery-track { grid-auto-columns: calc(33.333% - .7rem); }
}
@media (max-width: 700px) {
  .admin-table { min-width: 36rem; }
  .admin-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
  .admin-actions .btn { width: 100%; }
}
.value-card { position: relative; }
.value-card .num { position: absolute; top: .85rem; right: .9rem; }
.value-card .ico { color: var(--primary); margin: 1.4rem 0 .35rem; transition: transform .2s ease; }
.value-card:hover .ico { transform: translateY(-3px); }
.puzzles { display: grid; grid-template-columns: 1fr; gap: 1px; border: 1px solid var(--border); background: var(--border); }
.puzzle { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 14rem; aspect-ratio: 1; padding: 1.1rem; background: var(--bg); color: inherit; text-decoration: none; overflow: hidden; }
.puzzle:nth-child(even) { background: var(--muted); }
.puzzle .watermark { position: absolute; right: .4rem; bottom: -.4rem; font-size: 6rem; line-height: 1; color: hsl(0 0% 100% / .06); font-weight: 700; pointer-events: none; }
.puzzle .ico { color: var(--gold); }
.puzzle strong { position: relative; display: block; margin-top: .7rem; font-size: 1.15rem; }
.puzzle em { position: relative; display: block; margin-top: .35rem; color: var(--muted-fg); font-style: normal; }
.puzzle .open { position: relative; display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; color: var(--fg); }
.puzzle .open .ico { transition: transform .2s ease; }
.puzzle:hover { background: var(--primary); color: #fff; }
.puzzle:hover .ico, .puzzle:hover em, .puzzle:hover .open { color: #fff; }
.puzzle:hover .open .ico { transform: translateX(4px); }
.about-photo { position: relative; }
.about-badge { position: absolute; left: .8rem; bottom: .8rem; background: var(--primary); color: #fff; padding: .55rem .75rem; }
.about-badge b { display: block; font-size: 1.35rem; }
.about-badge span { font-size: .78rem; }
.about-vote { display: flex; gap: .7rem; align-items: flex-start; }
.about-vote .ico { color: var(--primary); flex: 0 0 auto; }
.time-card { position: relative; overflow: hidden; }
.time-bar { height: 3px; background: var(--border); margin: -.2rem -.1rem .8rem; }
.time-bar span { display: block; height: 100%; background: var(--primary); }
.time-card b { color: var(--gold); }
.time-card:hover { background: var(--muted); }
.mode-card { text-align: left; width: 100%; border: 0; cursor: pointer; font: inherit; color: inherit; }
.mode-card.is-on { background: var(--primary); color: #fff; }
.mode-card.is-on .eyebrow, .mode-card.is-on p, .mode-card.is-on li { color: #fff; }
.mode-card ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mode-card li { border: 1px solid var(--border); padding: .15rem .45rem; }
.mode-card.is-on li { border-color: hsl(0 0% 100% / .45); }
.stage-list { margin-top: 1rem; border: 1px solid var(--border); }
.stage + .stage { border-top: 1px solid var(--border); }
.stage-head { width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: transparent; color: inherit; border: 0; padding: .9rem 1rem; cursor: pointer; font: inherit; text-align: left; }
.stage-head .ico { transition: transform .2s ease; }
.stage.is-open .stage-head .ico { transform: rotate(45deg); }
.stage-body { display: none; padding: 0 1rem 1rem; }
.stage.is-open .stage-body { display: block; }
.stage-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.stage-body li { display: flex; gap: .45rem; align-items: flex-start; }
.stage-body .ico { color: var(--primary); flex: 0 0 auto; }
.rules-note { display: flex; gap: .6rem; margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--gold); color: var(--gold); }
.ring-tabs { display: flex; gap: .4rem; overflow-x: auto; margin-top: 1rem; }
.ring-tabs button { flex: 0 0 auto; border: 1px solid var(--border); background: transparent; color: inherit; padding: .55rem .75rem; cursor: pointer; font: inherit; text-align: left; }
.ring-tabs button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ring-tabs small { display: block; color: var(--muted-fg); }
.ring-tabs button.is-on small { color: #fff; }
.ring-layout { display: grid; gap: 1rem; margin-top: 1rem; }
.ring-pick { margin-top: .8rem; }
.ring-bar { height: 4px; background: var(--border); margin: .6rem 0; }
.ring-bar span { display: block; height: 100%; background: var(--primary); width: 0; }
.ring-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.ring-chips span { border: 1px solid var(--gold); color: var(--gold); padding: .15rem .45rem; }
.judge-card { background: var(--bg); }
.judge-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .25s ease; }
.judge-card:hover img { transform: scale(1.04); }
.judge-card div { padding: .8rem .9rem 1rem; }
.judge-card .flag { margin: 0 0 .25rem; }
.judge-extra { display: grid; gap: 1rem; margin-top: 1.2rem; }
.judge-table { width: 100%; border-collapse: collapse; }
.judge-table th, .judge-table td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid var(--border); }
.judge-scroll { overflow-x: auto; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.chain b { color: var(--primary); margin-right: .35rem; }
.handler { display: flex; flex-direction: column; }
.handler-ico { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--primary); color: var(--primary); margin-bottom: .6rem; }
.handler .spec { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.handler .price { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--border); }
.handler-steps b { flex: 0 0 auto; width: auto; height: auto; border-radius: 0; background: transparent; color: var(--primary); font-size: 1.6rem; }
.handler-side { background: var(--deep); color: #fff; padding: 1.1rem; display: flex; flex-direction: column; min-height: 100%; }
.handler-side .eyebrow { color: var(--primary); }
.handler-side .btn { margin-top: auto; }
.filters { display: grid; gap: .6rem; margin-top: 1rem; }
.filters label { display: grid; gap: .25rem; font-size: .78rem; color: var(--muted-fg); }
.filters input, .filters select { width: 100%; }
.search-field { position: relative; }
.search-field .ico { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); color: var(--muted-fg); }
.search-field input { padding-left: 2rem; }
.sex-switch, .choice-row { display: flex; gap: .35rem; }
.sex-switch button, .choice-row button { border: 1px solid var(--border); background: transparent; color: inherit; padding: .45rem .7rem; cursor: pointer; font: inherit; }
.sex-switch button.is-on, .choice-row button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: .8rem 0; }
.popular { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--border); background: transparent; color: inherit; padding: .4rem .7rem; cursor: pointer; font: inherit; }
.popular.is-on { border-color: var(--gold); color: var(--gold); }
.photo-badge { position: absolute; left: .45rem; top: .45rem; z-index: 1; background: var(--gold); color: #1a1208; padding: .15rem .4rem; font-size: .72rem; }
.btn-vote { width: 100%; border-top: 1px solid var(--border); min-height: 2.6rem; }
.btn-vote .vote-label { font-size: .82rem; }
.btn-vote [data-vote-count] { color: var(--gold); margin-left: auto; }
.btn-vote.is-voted { color: var(--muted-fg); background: var(--muted); }
.gallery { position: relative; margin-top: 1rem; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; gap: 0; overflow: visible; scroll-snap-type: none; transform: translateX(0); transition: transform .35s ease; }
.gallery-track figure { flex: 0 0 100%; margin: 0; }
.gallery-arrow { position: absolute; top: 38%; z-index: 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: inherit; cursor: pointer; }
.gallery-arrow.prev { left: .3rem; }
.gallery-arrow.next { right: .3rem; }
.gallery-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .7rem; }
.gallery-dots button { width: .45rem; height: .45rem; border: 0; border-radius: 99px; background: var(--border); padding: 0; cursor: pointer; }
.gallery-dots button.is-on { width: 1.2rem; background: var(--primary); }
.plan-grid { display: grid; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan .price { color: var(--primary); font-size: clamp(2rem, 4vw, 3rem); margin: .3rem 0; }
.plan ul { list-style: none; padding: 0; }
.plan li { display: flex; gap: .4rem; }
.plan li .ico { color: var(--gold); flex: 0 0 auto; }
.plan .btn { width: 100%; margin-top: auto; }
.plan-premium { background: var(--deep); color: #fff; }
.plan-premium p, .plan-premium li { color: #fff; }
.plan-badge { position: absolute; top: .8rem; right: .8rem; background: var(--primary); color: #fff; padding: .15rem .45rem; font-size: .75rem; }
.prize-card .ico { color: var(--primary); transition: transform .2s ease; }
.prize-card:hover .ico { transform: translateY(-3px); }
.prize-dark { background: var(--deep); color: #fff; }
.prize-dark p { color: #fff; }
.draw-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-top: 1rem; padding: 1rem; border: 1px solid var(--border); }
.reg-layout { display: grid; gap: 1.2rem; }
.reg-layout h3 { color: var(--gold); font-size: .95rem; }
.file-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
#modal-registration .modal { width: min(68rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; }
#modal-registration .modal-close { position: sticky; top: .2rem; z-index: 3; float: right; }
.photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.photo-grid figure, .photo-add { position: relative; aspect-ratio: 1; margin: 0; border: 1px solid var(--border); display: grid; place-items: center; background: transparent; color: inherit; cursor: pointer; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .x { position: absolute; top: .1rem; right: .1rem; border: 0; background: #000; color: #fff; cursor: pointer; }
.plan-pick { width: 100%; text-align: left; border: 1px solid var(--border); background: transparent; color: inherit; padding: .7rem; cursor: pointer; font: inherit; margin-bottom: .45rem; }
.plan-pick.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.plan-pick ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chips span { border: 1px solid var(--border); padding: .25rem .5rem; }
.apply-success { text-align: center; padding: 1.5rem 0; }
.apply-success .ico { color: var(--primary); }
.task-group { color: var(--gold); }
.task-card .btn { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: .35rem; }
.task-card .btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.task-note { border-left: 3px solid var(--gold); padding: .6rem .8rem; color: var(--primary); }
.broadcast { border: 1px solid var(--border); }
.broadcast-live { position: relative; }
.broadcast-live img { opacity: .45; }
.broadcast-play { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; }
.broadcast-play .play { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; background: var(--primary); color: #fff; margin: 0 auto .5rem; text-decoration: none; }
.air-badge { position: absolute; left: .7rem; top: .7rem; background: var(--primary); color: #fff; padding: .2rem .45rem; font-size: .75rem; }
.archive-row { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: center; }
.archive-row .ico { color: var(--gold); }
.shelter-card { display: flex; flex-direction: column; border: 0; background: var(--bg); }
.shelter-grid { gap: 1px; border: 1px solid var(--border); background: var(--border); }
.shelter-line { display: flex; gap: .35rem; }
.shelter-line b { color: var(--gold); font-weight: 500; }
.shelter-card .btn { width: 100%; margin-top: auto; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; }
.cta .eyebrow { color: hsl(0 0% 100% / .82); }
.cta p:not(.year) { color: #fff; max-width: 40rem; }
.cta .btn-line { border-color: #fff; color: #fff; }
.ask-row { display: grid; gap: .7rem; }
.faq p { white-space: pre-line; }
.logo-pad { display: inline-flex; background: #fff; padding: .35rem; }
.socials { display: flex; gap: .45rem; margin-top: .8rem; }
.socials a { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--border); color: inherit; }
.footer-links { columns: 2; }
.footer-links a { display: block; break-inside: avoid; margin: .28rem 0; }
.contact-line { display: flex; gap: .45rem; align-items: flex-start; margin: .35rem 0; }
.contact-line .ico { color: var(--gold); flex: 0 0 auto; }
@media (min-width: 700px) {
  .filters { grid-template-columns: 1.3fr .8fr .9fr auto; align-items: end; }
  .ask-row { grid-template-columns: 1fr 1fr; }
  .shelter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .puzzles { grid-template-columns: 1fr 1fr; }
  .gallery-track figure { flex-basis: 50%; }
}
@media (min-width: 1024px) {
  .time-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ring-layout, .judge-extra, .reg-layout, .broadcast { grid-template-columns: 1.6fr 1fr; }
  .handler-extra { grid-template-columns: 1fr 1fr; }
  .puzzles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-actions { flex-wrap: nowrap; }
}
@media (min-width: 1280px) {
  .gallery-track figure { flex-basis: 33.333%; }
}
@media (max-width: 699px) {
  .cta-actions, .cta-actions .btn { width: 100%; }
}
.puzzle { min-height: 0; aspect-ratio: auto; justify-content: flex-start; padding: .85rem .95rem 1rem; }
.puzzle .watermark { top: .4rem; right: .55rem; bottom: auto; font-size: 1.65rem; }
.puzzle strong { margin-top: .35rem; font-size: 1rem; }
.puzzle em { margin-top: .2rem; font-size: .82rem; }
.puzzle .open { margin-top: .65rem; }
.section .about-copy > p:not(.eyebrow) { color: var(--fg); font-size: 1.05rem; }
.section .about-copy > p + p:not(.eyebrow) { color: var(--muted-fg); font-size: .92rem; }
.about-photo { max-width: 16rem; justify-self: start; }
.about-vote { background: var(--bg); border-left: 4px solid var(--primary); }
.about-vote p { color: var(--muted-fg); }
#rules { background: var(--muted); }
#rules .stage-head { justify-content: flex-start; gap: .65rem; background: var(--bg); }
#rules .stage-head:hover { background: var(--muted); }
#rules .stage-tag { color: var(--primary); font-family: Unbounded, sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
#rules .stage-head svg { margin-left: auto; color: var(--gold); }
#rules .rules-note { align-items: center; margin-top: .75rem; padding: .45rem .75rem; border: 0; border-left: 4px solid var(--gold); background: var(--bg); color: var(--muted-fg); font-size: .85rem; }
#rules .rules-note p { margin: 0; color: var(--muted-fg); }
.ring-tabs { gap: 1px; overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.ring-tabs button { flex: 1 1 0; min-width: 0; border: 0; background: var(--bg); padding: .55rem .25rem; text-align: center; font-size: clamp(.62rem, 1.05vw, .88rem); line-height: 1.2; white-space: normal; }
.ring-tabs b, .ring-tabs small { display: block; }
.ring-tabs b { font-weight: 600; }
.ring-tabs small { margin-left: 0; }
@media (min-width: 1100px) {
  .ring-tabs b, .ring-tabs small { display: inline; }
  .ring-tabs small { margin-left: .25rem; }
  .ring-tabs button { white-space: nowrap; }
}
.ring-layout { gap: 0; margin-top: 0; border: 1px solid var(--border); border-top: 0; }
.ring-panel { background: var(--muted); padding: 1.1rem 1.15rem; }
.ring-panel h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.ring-panel h3 span { color: var(--gold); font-weight: 500; }
.ring-panel p { margin: .55rem 0 0; }
.ring-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .9rem; }
.ring-pick { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.7rem; padding: 0 .95rem; border: 0; background: var(--primary); color: #fff; cursor: pointer; font: inherit; }
.ring-pick .pick-check { display: none; }
.ring-pick.is-picked { background: var(--gold); color: #1a1208; }
.ring-pick.is-picked .pick-plus { display: none; }
.ring-pick.is-picked .pick-check { display: inline-flex; }
.ring-apply { padding: 1.1rem 1.15rem; background: var(--bg); }
.ring-apply .eyebrow { color: var(--gold); }
.ring-score { margin: .15rem 0 .35rem; font-family: Unbounded, sans-serif; line-height: 1; }
.ring-score b { font-size: clamp(2.2rem, 4vw, 3rem); }
.ring-score span { color: var(--muted-fg); font-size: 1.35rem; }
.ring-chips span { border-color: var(--border); color: var(--fg); }
.ring-apply .btn-line { border-color: var(--primary); color: var(--primary); }
.judge-card.catalog-card { background: var(--bg); }
.judge-card img { aspect-ratio: auto; }
.chain { gap: 0; border: 1px solid var(--border); }
.chain li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: start; padding: .85rem 1rem; border-top: 1px solid var(--border); }
.chain li:first-child { border-top: 0; }
.chain li > span { color: var(--primary); font-family: Unbounded, sans-serif; font-size: 1.7rem; line-height: 1; }
.chain strong { display: block; }
.chain p { margin: .2rem 0 0; color: var(--muted-fg); font-size: .85rem; }
.judge-table th { background: var(--muted); }
.gallery-viewport { position: relative; }
.gallery-track figure { padding: .4rem; }
.gallery-card { border: 1px solid var(--primary); border-radius: .7rem; padding: .4rem; background: var(--bg); }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-card figcaption { padding: .45rem .2rem .1rem; }
.gallery-arrow { top: .4rem; bottom: 5.2rem; width: 2.5rem; height: 2.5rem; margin: auto 0; display: grid; place-items: center; padding: 0; }
.gallery-arrow.prev { left: .7rem; }
.gallery-arrow.next { right: .7rem; }
.gallery-arrow svg { display: block; }
#prizes { background: var(--muted); }
.prize-card { background: var(--bg); }
.prize-card:hover { background: var(--muted); }
.prize-dark, .prize-dark:hover { background: var(--deep); color: var(--fg); }
.prize-dark h3 { color: var(--fg); }
.prize-dark p { color: var(--muted-fg); }
.draw-bar { background: var(--bg); }
#tasks p.task-note { max-width: none; margin-top: 1rem; padding: .75rem .95rem; border-left: 4px solid var(--gold); background: var(--bg); color: var(--primary); font-family: Unbounded, sans-serif; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.broadcast { gap: 0; }
.broadcast-live { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.broadcast-live img, .broadcast-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; }
.broadcast-play { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
.broadcast-play h3, .broadcast-play p { margin: .4rem 0 0; }
.broadcast-play p { color: var(--muted-fg); }
.broadcast aside { background: var(--muted); }
#shelter { background: var(--muted); }
#shelter .shelter-grid { gap: 1px; border: 1px solid var(--border); background: var(--border); }
#shelter .shelter-card { display: flex; flex-direction: column; gap: 0; align-items: stretch; padding: 0; border: 0; border-radius: 0; background: var(--bg); }
#shelter .shelter-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: 0; }
#shelter .shelter-photo img { object-fit: cover; }
#shelter .shelter-copy { padding: .75rem .85rem .9rem; }
#shelter .shelter-copy h3 { font-size: 1rem; }
#shelter .shelter-copy p { margin-top: .2rem; font-size: .82rem; }
#shelter .shelter-take { display: flex; width: 100%; min-height: 3rem; margin-top: .75rem; align-items: center; justify-content: center; gap: .4rem; background: var(--primary); color: #fff; text-decoration: none; }
.ask-form { display: grid; gap: .85rem; margin-top: 1.2rem; padding: 1.15rem; border: 1px solid var(--border); background: var(--bg); }
.ask-form h3 { margin: 0; }
.ask-form label { display: grid; gap: .3rem; margin: 0; font-size: .82rem; color: var(--muted-fg); }
.ask-form input, .ask-form textarea { width: 100%; min-height: 2.45rem; border: 1px solid var(--border); background: var(--deep); padding: 0 .7rem; font-size: .95rem; color: var(--fg); }
.ask-form textarea { min-height: 6.5rem; padding: .6rem .7rem; resize: vertical; }
.ask-form .check { display: flex; flex-direction: row; align-items: flex-start; gap: .55rem; color: var(--muted-fg); font-size: .9rem; }
.ask-form .check input { width: 1rem; height: 1rem; min-height: 0; margin-top: .15rem; }
.ask-form .btn { justify-self: start; }
.logo-pad { background: var(--surface); }
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.site-footer .footer-links { columns: unset; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.2rem; }
.site-footer .footer-links a:hover { color: var(--primary); }
.contact-line .ico { color: var(--primary); flex: 0 0 auto; }
#about .section-pad { padding-top: 1.8rem; padding-bottom: 1.6rem; }
#about .about-copy > p:not(.eyebrow) { margin-top: .4rem; }
#about .stats { margin-top: .7rem; gap: .55rem .6rem; }
#about .stats div { padding-top: .4rem; }
#about .about-vote { margin-top: .7rem; padding: .55rem .7rem; gap: .45rem; align-items: center; }
#about .about-vote h3 { margin: 0; font-size: .95rem; }
#about .about-vote p { margin: .15rem 0 0; font-size: .82rem; }
#about .about-badge { left: .45rem; bottom: .45rem; padding: .3rem .45rem; }
#about .about-badge b { font-size: 1rem; }
#about .about-badge span { font-size: .68rem; }
#about .about-photo { max-width: 16rem; aspect-ratio: 4 / 3; height: auto; }
@media (min-width: 1024px) {
  #about .about-row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
  #about .about-photo { max-width: none; width: 100%; height: 100%; aspect-ratio: auto; position: relative; }
  #about .about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
}
#rules .stage { background: var(--bg); }
#rules .stage-body { background: var(--bg); color: var(--fg); padding: .15rem 1rem 1rem; line-height: 1.45; }
#rules .stage.is-open .stage-head { border-bottom: 1px solid var(--border); background: var(--bg); }
#rules .stage-head:hover { background: var(--bg); }
#rules .rules-note .ico { color: var(--gold); }
.ring-panels { display: grid; }
.ring-panel { grid-area: 1 / 1; display: flex; flex-direction: column; }
.ring-panel[hidden] { display: flex !important; visibility: hidden; }
.ring-panel:not([hidden]) { visibility: visible; z-index: 1; }
.ring-panel p { flex: 1 1 auto; }
.ring-actions { margin-top: auto; }
.ring-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.5rem; }
#rings .ring-tabs { display: grid; grid-template-columns: repeat(var(--ring-count, 8), minmax(0, 1fr)); gap: 0; }
#rings .ring-tabs button { border-right: 1px solid var(--border); }
#rings .ring-tabs button:last-child { border-right: 0; }
@media (min-width: 1024px) {
  #rings .ring-layout { grid-template-columns: repeat(var(--ring-count, 8), minmax(0, 1fr)); }
  #rings .ring-panels { grid-column: 1 / calc(var(--ring-split, 5) + 1); }
  #rings .ring-apply { grid-column: calc(var(--ring-split, 5) + 1) / -1; border-left: 1px solid var(--border); }
}
@media (min-width: 1100px) {
  .ring-tabs b, .ring-tabs small { display: block; }
  .ring-tabs small { margin-left: 0; }
  .ring-tabs button { white-space: normal; }
}
.judge-card .judge-bio { margin: .35rem 0 0; color: var(--muted-fg); font-size: .78rem; line-height: 1.4; }
.judge-card.catalog-card { background: var(--bg); }
#handlers .handler-extra > .cell:hover { background: var(--bg); }
.handler-steps { border: 1px solid var(--border); gap: 0; margin-top: .8rem; }
.handler-steps li { align-items: center; gap: 1rem; background: var(--bg); padding: .85rem 1rem; border-top: 1px solid var(--border); }
.handler-steps li:first-child { border-top: 0; }
#participants .filters { gap: .7rem; padding: .85rem; border: 1px solid var(--primary); border-radius: 1rem; background: var(--bg); max-width: none; }
#participants .filters label { background: transparent; padding: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
#participants .filters input, #participants .filters select { min-height: 2.75rem; padding: 0 .75rem; background: var(--bg); border: 1px solid var(--border); border-radius: .55rem; }
#participants .filters input:focus, #participants .filters select:focus { border-color: var(--primary); outline: none; }
#participants .filters input, #participants .filters select, #participants .filters .sex-switch button { font-size: .95rem; letter-spacing: 0; text-transform: none; }
#participants .filters .search-field input { padding-left: 2.1rem; }
#participants .sex-switch { gap: .35rem; background: transparent; border: 0; }
#participants .sex-switch button { flex: 1; border: 1px solid var(--border); border-radius: .55rem; min-height: 2.75rem; background: var(--bg); }
#participants .sex-switch button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.modal.dog-view { width: min(42rem, 100%); max-height: calc(100vh - 2rem); padding: 2.4rem 0 .2rem; overflow: auto; }
.dog-frame { position: relative; aspect-ratio: 16 / 10; background: var(--deep); }
.dog-frame .dog-view-photo { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; display: block; }
.dog-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .7rem; background: hsl(153 53% 11% / .72); color: #fff; }
.dog-nav button { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); background: transparent; color: #fff; cursor: pointer; }
.dog-sheet { padding: .65rem .9rem .85rem; }
.dog-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: .45rem 0 0; border: 1px solid var(--border); background: var(--border); }
.dog-facts div { background: var(--bg); padding: .32rem .5rem; }
.dog-facts dt { color: var(--muted-fg); font-size: .68rem; }
.dog-facts dd { margin: .08rem 0 0; font-size: .86rem; }
.dog-video { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 0; margin-top: .5rem; padding: .4rem .65rem; border: 1px solid var(--border); background: var(--muted); text-align: left; color: var(--muted-fg); }
.dog-video p { margin: 0; }
.dog-video .ico { color: var(--primary); flex: 0 0 auto; }
.dog-video:has(iframe), .dog-video:has(video) { display: block; padding: 0; }
.dog-video iframe, .dog-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.dog-vote { width: 100%; margin-top: .5rem; }
.gallery { max-width: none; margin-inline: 0; }
.gallery-track figure { background: transparent; padding: .35rem; }
.gallery-card { background: var(--bg); border-width: 1px; border-radius: .55rem; padding: .25rem; }
.gallery-card img { aspect-ratio: 3 / 2; }
.gallery-card figcaption { padding: .28rem .15rem .05rem; }
.gallery-arrow:hover, .gallery-arrow:active { background: var(--primary); color: #fff; border-color: var(--primary); }
#tasks { background: var(--muted); }
#tasks .task-group { margin: 2.2rem 0 .8rem; font-family: Unbounded, sans-serif; font-size: 1.25rem; color: var(--gold); }
#tasks .task-card:hover { background: var(--bg); }
#tasks .task-card h3 { color: var(--fg); font-size: 1rem; }
#tasks .task-card p { color: var(--muted-fg); font-size: .88rem; }
#tasks .task-card { display: flex; flex-direction: column; align-items: stretch; }
#tasks .task-card p { flex: 1 1 auto; }
#tasks .task-card .btn { margin-top: auto; }
#broadcast .section-pad { max-width: none; }
.broadcast { max-width: none; margin-inline: 0; }
@media (min-width: 1024px) {
  .broadcast { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); }
}
.broadcast aside { display: flex; flex-direction: column; gap: .85rem; padding: 1.15rem 1.15rem 1.2rem; background: var(--deep); }
.broadcast aside h3 { margin: 0; font-size: 1.2rem; }
.broadcast aside .air-list { flex: 1; display: flex; flex-direction: column; gap: .55rem; margin: 0; }
.broadcast aside li { display: flex; }
.broadcast aside .archive-row { flex: 1; display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 3.6rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--bg); color: inherit; text-align: left; padding: .7rem .8rem; cursor: pointer; font: inherit; }
.broadcast aside .archive-row > .ico:first-child { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: .55rem; background: var(--deep); color: var(--gold); }
.broadcast aside .archive-row span { flex: 1 1 auto; }
.broadcast aside .archive-row small { color: var(--gold); }
.broadcast aside .archive-row > .ico:last-child { flex: 0 0 auto; color: var(--muted-fg); }
.broadcast aside .archive-row:hover, .broadcast aside .archive-row.is-on { border-color: var(--primary); background: var(--muted); }
.broadcast aside .archive-row:hover > .ico:last-child, .broadcast aside .archive-row.is-on > .ico:last-child { color: var(--primary); }
.air-note { display: flex; align-items: flex-start; gap: .65rem; margin: 0; padding: .85rem .9rem; border-radius: .7rem; background: var(--primary); color: #fff; text-decoration: none; }
.air-note .ico { flex: 0 0 auto; margin-top: .15rem; }
#shelter .shelter-grid { max-width: none; }
#shelter .shelter-photo { aspect-ratio: 4 / 3; }
#shelter .shelter-copy { padding: 1.5rem; }
#shelter .shelter-copy h3 { font-size: 1.15rem; }
#shelter .shelter-copy p { margin-top: .45rem; font-size: .9rem; }
#shelter .shelter-take { min-height: 3rem; margin-top: .75rem; }
.shelter-ask { display: grid; gap: .45rem; margin-top: .7rem; }
.shelter-ask input { width: 100%; min-height: 2.45rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--bg); color: var(--fg); padding: 0 .7rem; font: inherit; font-size: .95rem; }
.shelter-done { margin: .45rem 0 0; padding: .45rem .55rem; background: var(--primary); color: #fff; text-align: center; }
.check input[type="checkbox"] { appearance: none; width: 1.15rem; height: 1.15rem; min-height: 0; margin: .15rem 0 0; border: 1px solid var(--border); border-radius: .3rem; background: var(--bg); display: grid; place-content: center; cursor: pointer; }
.check input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.check input[type="checkbox"]:checked::after { content: ""; width: .28rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.sheet input::placeholder, .sheet textarea::placeholder, .ask-form input::placeholder, .ask-form textarea::placeholder, .shelter-ask input::placeholder { color: var(--muted-fg); }
.ask-form input.field-invalid, .ask-form textarea.field-invalid, .shelter-ask input.field-invalid { border-color: var(--primary); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr)); gap: .55rem; margin: .85rem 0 0; }
.admin-stats span { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 4.5rem; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--bg); }
.admin-stats b { font-size: 1.45rem; line-height: 1.1; }
.admin-gate-page { min-height: 100svh; display: grid; place-items: center; box-sizing: border-box; padding: 5.5rem 1rem 2.5rem; }
.admin-page .section-pad { padding-top: 5.5rem; }
.admin-gate { width: min(26rem, 100%); margin: 0; padding: 1.5rem 1.35rem 1.4rem; display: grid; gap: .75rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--deep); }
.admin-gate h1 { margin: 0; font-size: 1.55rem; line-height: 1.15; }
.admin-gate p { margin: 0; color: var(--muted-fg); line-height: 1.45; }
.admin-gate .eyebrow { color: var(--gold); }
.admin-gate .btn { width: 100%; min-height: 2.75rem; margin-top: .35rem; }
.admin-shell { display: grid; gap: 1rem; margin-top: 1rem; align-items: start; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.admin-nav a { display: inline-flex; align-items: center; justify-content: space-between; gap: .55rem; min-height: 2.45rem; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--deep); color: var(--fg); text-decoration: none; }
.admin-nav a b { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: .4rem; background: var(--primary); color: var(--primary-fg); font-size: .72rem; font-weight: 600; }
.admin-main > .admin-block { display: none; scroll-margin-top: 5.5rem; }
.admin-main > .admin-block:target { display: block; }
.admin-shell:not(:has(.admin-block:target)) .admin-main > #summary { display: block; }
.admin-shell:is(:not(:has(.admin-block:target)), :has(#summary:target)) .admin-nav a[href$="#summary"],
.admin-shell:has(#moderation:target) .admin-nav a[href$="#moderation"],
.admin-shell:has(#votes:target) .admin-nav a[href$="#votes"],
.admin-shell:has(#shelter-admin:target) .admin-nav a[href$="#shelter-admin"],
.admin-shell:has(#partners-admin:target) .admin-nav a[href$="#partners-admin"],
.admin-shell:has(#questions-admin:target) .admin-nav a[href$="#questions-admin"],
.admin-shell:has(#air-admin:target) .admin-nav a[href$="#air-admin"],
.admin-shell:has(#focus:target) .admin-nav a[href$="#focus"],
.admin-shell:has(#bitrix-texts:target) .admin-nav a[href$="#bitrix-texts"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.admin-shell:is(:not(:has(.admin-block:target)), :has(#summary:target)) .admin-nav a[href$="#summary"] b,
.admin-shell:has(#moderation:target) .admin-nav a[href$="#moderation"] b,
.admin-shell:has(#votes:target) .admin-nav a[href$="#votes"] b,
.admin-shell:has(#shelter-admin:target) .admin-nav a[href$="#shelter-admin"] b,
.admin-shell:has(#partners-admin:target) .admin-nav a[href$="#partners-admin"] b,
.admin-shell:has(#questions-admin:target) .admin-nav a[href$="#questions-admin"] b,
.admin-shell:has(#air-admin:target) .admin-nav a[href$="#air-admin"] b,
.admin-shell:has(#focus:target) .admin-nav a[href$="#focus"] b,
.admin-shell:has(#bitrix-texts:target) .admin-nav a[href$="#bitrix-texts"] b { background: hsl(0 0% 100% / .22); color: var(--primary-fg); }
.admin-card-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem .8rem; align-items: baseline; }
.admin-card-title .eyebrow, .admin-card-meta { margin: 0; }
.admin-card-meta { color: var(--muted-fg); }
.admin-page .admin-card form, .admin-page .ask-form, .archive-admin form { display: grid; gap: .7rem; }
.admin-page .admin-card label, .admin-page .ask-form label, .archive-admin label { display: grid; gap: .3rem; margin: 0; color: var(--muted-fg); font-size: .82rem; }
.admin-page .admin-card input:not([type="checkbox"]):not([type="file"]), .admin-page .admin-card select, .admin-page .ask-form input:not([type="checkbox"]):not([type="file"]), .admin-page .sheet input:not([type="checkbox"]):not([type="file"]), .admin-page .sheet select, .archive-admin input:not([type="checkbox"]):not([type="file"]), .focus-form select { min-height: 2.45rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--bg); color: var(--fg); padding: 0 .7rem; }
.admin-page .admin-card textarea, .admin-page .sheet textarea { min-height: 6.5rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--bg); color: var(--fg); padding: .6rem .7rem; }
.admin-page .sheet input[type="file"], .admin-page .admin-card input[type="file"] { min-height: 0; padding: .35rem 0; border: 0; background: transparent; }
.admin-empty { margin: .75rem 0 0; color: var(--muted-fg); }
.admin-scroll { overflow: auto; max-height: min(70vh, 36rem); }
.admin-table { border-collapse: separate; border-spacing: 0; }
.admin-table th { position: sticky; top: 0; z-index: 1; background: var(--deep); }
.admin-table tbody tr:nth-child(odd) { background: var(--bg); }
.admin-table tbody tr:nth-child(even) { background: var(--deep); }
.archive-admin { display: grid; gap: .7rem; margin-top: .85rem; }
.archive-admin form { padding: .85rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--bg); }
.archive-admin h3 { margin: 0; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--fg); }
.archive-fields { display: grid; gap: .55rem; }
.archive-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-links { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .4rem; }
.admin-links a { color: var(--gold); }
.btn { border-radius: .5rem; }
@media (min-width: 800px) {
  .archive-fields { grid-template-columns: minmax(0, 1.4fr) minmax(7rem, .7fr) minmax(0, 1.4fr); }
}
@media (min-width: 900px) {
  .admin-shell { grid-template-columns: 14.5rem minmax(0, 1fr); }
  .admin-nav { flex-direction: column; position: sticky; top: 5.2rem; }
  .admin-nav a { width: 100%; }
}
