:root {
  --bg: #070c0c;
  --bg-soft: #0b1110;
  --panel: rgba(18, 23, 21, 0.92);
  --panel-strong: rgba(23, 29, 26, 0.96);
  --panel-muted: rgba(13, 18, 17, 0.8);
  --line: rgba(216, 188, 132, 0.14);
  --line-cool: rgba(180, 197, 190, 0.12);
  --text: #e8dfcf;
  --muted: #a79f90;
  --quiet: #756f65;
  --gold: #c89a58;
  --gold-soft: #e1c184;
  --green: #7f9873;
  --blue: #6f8d96;
  --rose: #b87673;
  --violet: #9b7893;
  --warning: #c39a5d;
  --danger: #bd665f;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --fast: 150ms ease;
  --med: 230ms ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(11, 16, 16, 0.96), rgba(7, 12, 12, 0.98)),
    #070c0c;
  letter-spacing: 0;
}

body.is-ready .fade-in {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 78px 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 13, 13, 0.96), rgba(16, 21, 20, 0.94)),
    var(--bg-soft);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.brand-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
}

.brand-kicker,
.micro-label {
  margin: 4px 0 0;
  color: var(--gold-soft);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.top-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(138px, 1fr));
  gap: 10px;
}

.top-stat {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.top-stat span {
  display: block;
  color: var(--quiet);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.top-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 1.02rem;
  font-weight: 600;
}

.account-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 218px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-cool);
}

.account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(225, 193, 132, 0.32);
  object-fit: cover;
}

.account-title {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
}

.account-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.app-body {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.side-nav {
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 19, 18, 0.94), rgba(5, 10, 10, 0.96)),
    #08100f;
}

.nav-list {
  display: grid;
  gap: 1px;
  padding: 12px 0;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 0 18px;
  color: #d9d2c6;
  border-left: 3px solid transparent;
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
}

.nav-link:hover {
  background: rgba(225, 193, 132, 0.06);
  color: #fff3dc;
}

.nav-link:active {
  transform: translateX(2px);
}

.nav-link.is-active {
  background: linear-gradient(90deg, rgba(200, 154, 88, 0.18), rgba(255, 255, 255, 0.03));
  border-left-color: var(--gold);
}

.nav-mark {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: var(--gold-soft);
  border: 1px solid rgba(225, 193, 132, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.66rem;
  font-weight: 800;
}

.nav-text {
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
}

.side-footer {
  margin-top: auto;
  padding: 18px;
  color: var(--quiet);
  font-size: 0.73rem;
  border-top: 1px solid var(--line-cool);
}

.main {
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(20, 24, 21, 0.52), rgba(7, 12, 12, 0.9)),
    #090e0e;
}

.page {
  max-width: 1500px;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
  font-weight: 720;
}

.page-subtitle {
  margin: 6px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.page-tools,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn,
.ghost-btn,
.soft-btn,
.danger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(225, 193, 132, 0.18);
  color: var(--text);
  background: linear-gradient(180deg, rgba(225, 193, 132, 0.16), rgba(143, 94, 45, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), background var(--fast), color var(--fast), box-shadow var(--fast);
}

.btn:hover,
.ghost-btn:hover,
.soft-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 193, 132, 0.38);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn:active,
.ghost-btn:active,
.soft-btn:active,
.danger-btn:active {
  transform: translateY(1px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-cool);
}

.soft-btn {
  color: #dce6df;
  background: rgba(127, 152, 115, 0.13);
  border-color: rgba(127, 152, 115, 0.28);
}

.danger-btn {
  color: #f0d7d2;
  background: rgba(189, 102, 95, 0.14);
  border-color: rgba(189, 102, 95, 0.28);
}

.icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.mobile-menu {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(310px, 0.65fr);
  gap: 16px;
}

.scene-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e1514;
  box-shadow: var(--shadow);
}

.scene-panel > img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.96);
}

.scene-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 12, 0.82), rgba(7, 12, 12, 0.08) 44%, rgba(7, 12, 12, 0.65)),
    linear-gradient(180deg, rgba(7, 12, 12, 0.1), rgba(7, 12, 12, 0.58));
  pointer-events: none;
}

.scene-stack {
  position: absolute;
  inset: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  align-content: start;
  gap: 14px;
  pointer-events: none;
}

.scene-stack .panel {
  pointer-events: auto;
}

.panel,
.mini-panel,
.table-panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 16px;
}

.panel + .panel {
  margin-top: 14px;
}

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

.panel-title {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.83rem;
  font-weight: 760;
  text-transform: uppercase;
}

.panel-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.stack {
  display: grid;
  gap: 16px;
}

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

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

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

.overview-list,
.feed-list,
.event-list,
.metric-list,
.compact-list {
  display: grid;
  gap: 1px;
}

.line-item,
.event-item,
.feed-item,
.compact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.line-item:last-child,
.event-item:last-child,
.feed-item:last-child,
.compact-row:last-child {
  border-bottom: 0;
}

.line-item span,
.event-item span,
.feed-item span,
.compact-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.line-item strong,
.event-item strong,
.feed-item strong,
.compact-row strong {
  color: var(--text);
  font-weight: 620;
}

.event-main,
.feed-main {
  display: grid;
  gap: 3px;
}

.event-time,
.feed-time {
  color: var(--muted);
  font-size: 0.77rem;
  white-space: nowrap;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 9px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1;
  font-weight: 720;
}

.metric-card em {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 0.77rem;
  font-style: normal;
}

.stat-chart {
  width: 100%;
  height: 132px;
  overflow: visible;
}

.stat-chart path {
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-chart .area {
  fill: rgba(200, 154, 88, 0.15);
  stroke: none;
}

.chart-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.chart-foot div {
  padding: 10px 8px 0;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
}

.chart-foot div:last-child {
  border-right: 0;
}

.chart-foot span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.chart-foot strong {
  display: block;
  margin-top: 5px;
  font-size: 1.1rem;
}

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

.dog-card,
.small-card,
.breed-card {
  overflow: hidden;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--fast), border-color var(--fast), background var(--fast), box-shadow var(--fast);
}

.dog-card:hover,
.small-card:hover,
.breed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 193, 132, 0.28);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.dog-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.dog-card-body {
  padding: 10px;
}

.dog-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dog-card-title strong {
  font-size: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-cool);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.7rem;
  white-space: nowrap;
}

.tag.gold {
  color: var(--gold-soft);
  border-color: rgba(225, 193, 132, 0.28);
}

.tag.green {
  color: #c7dcc0;
  border-color: rgba(127, 152, 115, 0.32);
}

.tag.blue {
  color: #c4dbe1;
  border-color: rgba(111, 141, 150, 0.35);
}

.tag.rose {
  color: #ead0cf;
  border-color: rgba(184, 118, 115, 0.35);
}

.trait-bars {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.trait-bar {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 6px;
}

.trait-bar span {
  color: var(--quiet);
  font-size: 0.68rem;
}

.bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bar i {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  background: linear-gradient(90deg, var(--blue), var(--gold-soft));
  border-radius: inherit;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text);
  font-size: 0.86rem;
}

.data-table tr:hover td {
  background: rgba(225, 193, 132, 0.035);
}

.row-dog {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.row-dog img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-cool);
}

.row-dog span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.small-card {
  padding: 14px;
}

.small-card h3,
.breed-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.small-card p,
.breed-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.module-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.module-tile {
  display: block;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
  transition: transform var(--fast), border-color var(--fast), background var(--fast);
}

.module-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 193, 132, 0.28);
  background: rgba(225, 193, 132, 0.055);
}

.module-tile span {
  color: var(--gold-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.module-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
}

.module-tile em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-style: normal;
}

.matrix-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) minmax(160px, 260px) 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.matrix-row:last-child {
  border-bottom: 0;
}

.matrix-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.matrix-row strong {
  font-weight: 620;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.toggle-list {
  display: grid;
  gap: 8px;
}

.toggle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.024);
}

.switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(225, 193, 132, 0.22);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}

.switch::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 2px;
  border-radius: 50%;
  background: #8d8a80;
  transition: transform var(--fast), background var(--fast);
}

.switch.is-on {
  background: rgba(127, 152, 115, 0.24);
  border-color: rgba(127, 152, 115, 0.45);
}

.switch.is-on::before {
  transform: translateX(20px);
  background: var(--gold-soft);
}

.breed-card {
  padding: 14px;
}

.breed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: 16px;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(7, 12, 12, 0.92), rgba(12, 17, 16, 0.82)),
    url("../images/kennel-yard.svg") center / cover no-repeat,
    #070c0c;
}

.login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: stretch;
}

.login-intro {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 13, 0.74);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand img {
  width: 70px;
  height: 70px;
}

.login-brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.login-brand p {
  margin: 6px 0 0;
  color: var(--gold-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.login-copy {
  max-width: 660px;
}

.login-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.login-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

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

.login-status div {
  padding: 12px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.login-status span {
  display: block;
  color: var(--quiet);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.login-status strong {
  display: block;
  margin-top: 7px;
  font-size: 1rem;
}

.login-panel {
  padding: 22px;
  background: rgba(16, 21, 19, 0.94);
}

.login-panel h2 {
  margin: 0;
  font-size: 1.2rem;
}

.login-panel > p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.field label {
  color: var(--muted);
  font-size: 0.77rem;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.field input:focus,
.field select:focus {
  border-color: rgba(225, 193, 132, 0.42);
  box-shadow: 0 0 0 3px rgba(200, 154, 88, 0.12);
}

.login-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.login-actions .btn {
  width: 100%;
  min-height: 44px;
}

.quiet-link {
  display: inline-flex;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.quiet-link:hover {
  color: var(--gold-soft);
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.empty-note {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed rgba(225, 193, 132, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.55;
}

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-tab {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line-cool);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.pill-tab.is-active,
.pill-tab:hover {
  color: var(--text);
  border-color: rgba(225, 193, 132, 0.28);
  background: rgba(225, 193, 132, 0.08);
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(225, 193, 132, 0.24);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(18, 23, 21, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--med), transform var(--med);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: minmax(230px, 1fr) auto;
  }

  .top-stats {
    display: none;
  }

  .dashboard-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .metric-cards,
  .module-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-rows: auto 1fr;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
    padding: 12px;
  }

  .account-box {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    display: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .side-nav {
    display: block;
  }

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

  .main {
    padding: 14px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .scene-stack {
    position: relative;
    inset: auto;
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .scene-panel > img {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }

  .scene-panel {
    min-height: auto;
  }

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

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: auto;
    gap: 44px;
  }
}

@media (max-width: 620px) {
  .brand-title {
    font-size: 1.45rem;
  }

  .brand-kicker {
    display: none;
  }

  .nav-list,
  .puppy-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .metric-cards,
  .module-map,
  .login-status {
    grid-template-columns: 1fr;
  }

  .matrix-row {
    grid-template-columns: 1fr;
  }

  .login-page {
    padding: 12px;
  }
}

/* PBBG shell */
.pbbg-page {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 4px),
    linear-gradient(180deg, #111311, #050808 52%, #030505);
}

.pbbg-shell {
  grid-template-rows: 54px 27px 1fr;
}

.pbbg-topbar {
  position: sticky;
  top: 0;
  grid-template-columns: 250px minmax(260px, 1fr) auto auto auto;
  min-height: 54px;
  padding: 0 14px;
  gap: 12px;
  border-bottom-color: rgba(225, 193, 132, 0.18);
  background:
    linear-gradient(180deg, rgba(28, 29, 27, 0.98), rgba(9, 13, 13, 0.98)),
    #090d0d;
}

.pbbg-brand {
  gap: 10px;
}

.pbbg-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.pbbg-brand .brand-title {
  font-size: 1.65rem;
  letter-spacing: 0;
}

.pbbg-brand .brand-kicker {
  margin-top: 1px;
  font-size: 0.62rem;
}

.pbbg-utility {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pbbg-utility a {
  color: #c5beb0;
  font-size: 0.76rem;
  font-weight: 700;
}

.pbbg-utility a:hover {
  color: var(--gold-soft);
}

.pbbg-top-stats {
  grid-template-columns: repeat(3, 118px);
  gap: 7px;
}

.pbbg-top-stats .top-stat {
  min-height: 38px;
  padding: 5px 9px;
  border-color: rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.12));
}

.pbbg-top-stats .top-stat span {
  font-size: 0.58rem;
}

.pbbg-top-stats .top-stat strong {
  margin-top: 2px;
  font-size: 0.88rem;
}

.pbbg-topbar .account-box {
  min-width: 178px;
  min-height: 38px;
  padding: 5px 8px;
}

.pbbg-topbar .account-avatar {
  width: 30px;
  height: 30px;
}

.pbbg-topbar .account-title {
  font-size: 0.76rem;
}

.pbbg-topbar .account-meta {
  font-size: 0.66rem;
}

.pbbg-ticker {
  position: sticky;
  top: 54px;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: #b8b1a5;
  background: linear-gradient(180deg, #1b1d1b, #101312);
  font-size: 0.73rem;
  overflow: hidden;
  white-space: nowrap;
}

.pbbg-ticker strong {
  color: var(--gold-soft);
}

.pbbg-body {
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: calc(100vh - 81px);
}

.pbbg-sidebar {
  top: 81px;
  height: calc(100vh - 81px);
  border-right-color: rgba(225, 193, 132, 0.14);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 5px),
    linear-gradient(180deg, #151816, #070b0b);
}

.pbbg-side-block {
  margin: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
}

.pbbg-player-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.78rem;
}

.pbbg-player-line span {
  color: #b3aba0;
  font-weight: 700;
}

.pbbg-player-line a {
  color: #d7b36f;
  font-weight: 800;
}

.pbbg-player-line strong {
  color: #e7dfcf;
}

.pbbg-bar-row {
  margin-top: 8px;
}

.pbbg-bar-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
  align-items: center;
  margin-bottom: 3px;
  font-size: 0.69rem;
}

.pbbg-bar-meta span {
  color: #c3bcaf;
  font-weight: 800;
}

.pbbg-bar-meta strong {
  color: #eee4d3;
}

.pbbg-bar-meta em {
  color: var(--quiet);
  font-style: normal;
}

.pbbg-bar {
  height: 8px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
}

.pbbg-bar i {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--gold));
  box-shadow: 0 0 10px rgba(225, 193, 132, 0.22);
}

.pbbg-bar.energy {
  --bar-color: #82b84c;
}

.pbbg-bar.focus {
  --bar-color: #cc7a4d;
}

.pbbg-bar.kennel {
  --bar-color: #d4bf39;
}

.pbbg-bar.trust {
  --bar-color: #7086d7;
}

.pbbg-nav-list {
  padding: 0 0 10px;
  gap: 0;
}

.pbbg-nav-group {
  margin-bottom: 7px;
}

.pbbg-nav-title {
  padding: 5px 12px;
  color: #d1c1a1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 4px),
    linear-gradient(180deg, #252722, #141713);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.36);
  font-size: 0.72rem;
  font-weight: 900;
}

.pbbg-sidebar .nav-link {
  grid-template-columns: 28px 1fr;
  min-height: 28px;
  padding: 0 10px;
  border-left-width: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.12));
}

.pbbg-sidebar .nav-link.is-active,
.pbbg-sidebar .nav-link:hover {
  background: linear-gradient(180deg, rgba(200, 154, 88, 0.2), rgba(200, 154, 88, 0.07));
}

.pbbg-sidebar .nav-mark {
  width: 22px;
  height: 20px;
  border-radius: 5px;
  font-size: 0.58rem;
}

.pbbg-sidebar .nav-text {
  font-size: 0.76rem;
}

.pbbg-main {
  padding: 14px;
  background:
    radial-gradient(circle at 38% 0, rgba(200, 154, 88, 0.06), transparent 34%),
    linear-gradient(180deg, #111512, #080b0b);
}

.pbbg-main .page {
  max-width: 1210px;
  margin: 0 auto;
}

.pbbg-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}

.pbbg-titlebar h1 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.pbbg-titlebar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.pbbg-title-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.pbbg-btn,
.pbbg-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  color: #eee4d3;
  background: linear-gradient(180deg, #2a2d29, #151816);
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), color var(--fast), background var(--fast);
}

.pbbg-mini-btn {
  min-height: 24px;
  font-size: 0.74rem;
}

.pbbg-btn:hover,
.pbbg-mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 193, 132, 0.38);
  color: var(--gold-soft);
}

.pbbg-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.pbbg-notice {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: linear-gradient(180deg, #303331, #202322);
  font-size: 0.8rem;
}

.pbbg-notice strong {
  color: #f0e4cb;
}

.pbbg-notice span {
  color: #d5cec0;
}

.pbbg-notice.info {
  border-left: 4px solid #78a366;
}

.pbbg-notice.warn {
  border-left: 4px solid var(--gold);
}

.pbbg-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 12px;
}

.pbbg-home-main,
.pbbg-home-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.pbbg-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 12px;
}

.pbbg-panel {
  border: 1px solid rgba(225, 193, 132, 0.16);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(14, 18, 16, 0.96);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.pbbg-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 4px),
    linear-gradient(180deg, #2d302b, #171b18);
}

.pbbg-panel-head h2 {
  margin: 0;
  color: #f0d28d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pbbg-panel-tools {
  color: var(--muted);
  font-size: 0.72rem;
}

.pbbg-panel > :not(.pbbg-panel-head) {
  margin: 10px;
}

.pbbg-panel .table-wrap {
  margin: 0;
}

.pbbg-panel .data-table {
  min-width: 620px;
}

.pbbg-panel .data-table th,
.pbbg-panel .data-table td {
  padding: 8px 9px;
  font-size: 0.78rem;
}

.pbbg-panel .data-table th {
  background: rgba(255, 255, 255, 0.028);
}

.pbbg-panel .row-dog img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}

.pbbg-panel .row-dog strong {
  font-size: 0.78rem;
}

.pbbg-panel .row-dog span {
  font-size: 0.66rem;
}

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

.pbbg-activity-grid.small {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pbbg-action {
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.13));
  transition: transform var(--fast), border-color var(--fast), background var(--fast);
}

.pbbg-action:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 193, 132, 0.34);
  background: linear-gradient(180deg, rgba(200, 154, 88, 0.15), rgba(0, 0, 0, 0.13));
}

.pbbg-action strong {
  display: block;
  color: #f0e4cb;
  font-size: 0.82rem;
}

.pbbg-action span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.pbbg-action.primary {
  border-color: rgba(225, 193, 132, 0.28);
  background: linear-gradient(180deg, rgba(200, 154, 88, 0.25), rgba(74, 52, 30, 0.32));
}

.pbbg-yard {
  position: relative;
  min-height: 228px;
  overflow: hidden;
  border-radius: 4px;
  background: #090d0d;
}

.pbbg-yard img {
  width: 100%;
  height: 228px;
  object-fit: cover;
  opacity: 0.54;
  filter: saturate(0.72) contrast(0.9);
}

.pbbg-yard-info {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  background: rgba(4, 7, 7, 0.78);
}

.pbbg-yard-info strong {
  font-size: 0.82rem;
}

.pbbg-yard-info span {
  color: var(--muted);
  font-size: 0.72rem;
}

.pbbg-feed {
  display: grid;
}

.pbbg-feed div {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.pbbg-feed div:last-child {
  border-bottom: 0;
}

.pbbg-feed span {
  color: var(--quiet);
  font-size: 0.7rem;
}

.pbbg-feed strong {
  font-size: 0.78rem;
}

.pbbg-feed em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.pbbg-card-grid {
  gap: 10px;
}

.pbbg-small-card {
  padding: 10px;
  border-radius: 5px;
}

.pbbg-small-card h3 {
  font-size: 0.86rem;
}

.pbbg-small-card p {
  font-size: 0.76rem;
}

.pbbg-page .metric-cards {
  gap: 8px;
  margin-bottom: 12px;
}

.pbbg-page .metric-card {
  min-height: 72px;
  padding: 10px;
  border-radius: 5px;
}

.pbbg-page .metric-card span {
  font-size: 0.65rem;
}

.pbbg-page .metric-card strong {
  margin-top: 6px;
  font-size: 1.16rem;
}

.pbbg-page .metric-card em {
  margin-top: 6px;
  font-size: 0.68rem;
}

.pbbg-page .module-map {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.pbbg-page .module-tile {
  min-height: 66px;
  padding: 8px;
  border-radius: 5px;
}

.pbbg-page .module-tile span {
  font-size: 0.62rem;
}

.pbbg-page .module-tile strong {
  margin-top: 5px;
  font-size: 0.78rem;
}

.pbbg-page .module-tile em {
  margin-top: 5px;
  font-size: 0.65rem;
}

.pbbg-login-page {
  place-items: center;
  background:
    linear-gradient(90deg, rgba(5, 8, 8, 0.94), rgba(9, 13, 12, 0.86)),
    url("../images/kennel-yard.svg") center / cover no-repeat,
    #050808;
}

.pbbg-login {
  width: min(1040px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
}

.pbbg-login-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(225, 193, 132, 0.16);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(28, 30, 27, 0.96), rgba(10, 14, 13, 0.96));
}

.pbbg-login-banner .login-brand img {
  width: 52px;
  height: 52px;
}

.pbbg-login-banner .login-brand h1 {
  font-size: 2rem;
}

.pbbg-login-banner .login-brand p {
  margin-top: 3px;
  font-size: 0.66rem;
}

.pbbg-login-world {
  display: grid;
  gap: 3px;
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.18);
}

.pbbg-login-world span,
.pbbg-login-world em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.pbbg-login-world strong {
  color: #f0e4cb;
  font-size: 0.9rem;
}

.pbbg-login-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) minmax(260px, 0.5fr) minmax(320px, 0.75fr);
  gap: 10px;
}

.pbbg-login-form {
  padding: 10px;
}

.pbbg-login .field input,
.pbbg-login .field select {
  min-height: 36px;
  border-radius: 5px;
}

.pbbg-login .login-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1240px) {
  .pbbg-topbar {
    grid-template-columns: 230px 1fr auto auto;
  }

  .pbbg-top-stats {
    display: none;
  }

  .pbbg-home-grid,
  .pbbg-two {
    grid-template-columns: 1fr;
  }

  .pbbg-login-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .pbbg-shell {
    grid-template-rows: auto auto 1fr;
  }

  .pbbg-topbar {
    position: static;
    grid-template-columns: 1fr auto;
    padding: 8px 10px;
  }

  .pbbg-utility,
  .pbbg-topbar .account-box {
    display: none;
  }

  .pbbg-ticker {
    position: static;
    top: auto;
  }

  .pbbg-body {
    grid-template-columns: 1fr;
  }

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

  .pbbg-activity-grid,
  .pbbg-activity-grid.small,
  .pbbg-page .module-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pbbg-login-grid,
  .pbbg-login-banner {
    grid-template-columns: 1fr;
  }

  .pbbg-login-banner {
    display: grid;
  }
}

@media (max-width: 620px) {
  .pbbg-main {
    padding: 10px;
  }

  .pbbg-titlebar,
  .pbbg-notice {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pbbg-titlebar {
    flex-direction: column;
  }

  .pbbg-activity-grid,
  .pbbg-activity-grid.small,
  .pbbg-page .module-map {
    grid-template-columns: 1fr;
  }
}

/* Blue atmosphere polish */
:root {
  --bg: #050a0d;
  --bg-soft: #081116;
  --panel: rgba(13, 20, 22, 0.93);
  --panel-strong: rgba(16, 26, 28, 0.96);
  --panel-muted: rgba(10, 17, 19, 0.82);
  --line: rgba(198, 181, 135, 0.13);
  --line-cool: rgba(160, 193, 205, 0.13);
  --text: #e4ded1;
  --muted: #aab2af;
  --quiet: #788380;
  --gold: #bd9252;
  --gold-soft: #d9bb78;
  --green: #8fa77c;
  --blue: #7899a6;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

body.pbbg-page,
body.pbbg-login-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 24% -10%, rgba(93, 127, 141, 0.18), transparent 33%),
    radial-gradient(circle at 78% 12%, rgba(180, 137, 76, 0.08), transparent 30%),
    linear-gradient(180deg, #0a1418 0%, #071014 42%, #04080b 100%);
  color: #e6e1d7;
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
}

body.pbbg-page::before,
body.pbbg-page::after,
body.pbbg-login-page::before,
body.pbbg-login-page::after {
  content: "";
  position: fixed;
  inset: -18% -12%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    repeating-linear-gradient(
      112deg,
      transparent 0 44px,
      rgba(165, 205, 219, 0.035) 48px,
      rgba(165, 205, 219, 0.035) 50px,
      transparent 72px 148px
    );
  filter: blur(12px);
  transform: translate3d(-3%, 0, 0);
  animation: bloodlineWind 34s linear infinite;
}

body.pbbg-page::after,
body.pbbg-login-page::after {
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 15% 35%, rgba(200, 224, 230, 0.16), transparent 28%),
    repeating-linear-gradient(
      104deg,
      transparent 0 76px,
      rgba(215, 193, 145, 0.04) 88px,
      transparent 116px 210px
    );
  filter: blur(22px);
  animation-duration: 54s;
  animation-direction: reverse;
}

@keyframes bloodlineWind {
  from {
    transform: translate3d(-5%, 0, 0);
  }
  to {
    transform: translate3d(5%, -2%, 0);
  }
}

.pbbg-shell,
.pbbg-login {
  position: relative;
  z-index: 1;
}

.pbbg-topbar {
  background:
    linear-gradient(180deg, rgba(18, 31, 35, 0.98), rgba(7, 15, 18, 0.98)),
    #071014;
  border-bottom-color: rgba(170, 198, 205, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.brand-mark,
.pbbg-brand .brand-mark,
.login-brand img {
  object-fit: cover;
  object-position: center 34%;
  border-radius: 50%;
  border: 1px solid rgba(217, 187, 120, 0.28);
  background: #0b1214;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}

.pbbg-brand .brand-title,
.pbbg-login-banner .login-brand h1 {
  color: #f0e8d7;
  font-weight: 580;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.pbbg-brand .brand-kicker,
.pbbg-login-banner .login-brand p {
  color: #d2b572;
  font-weight: 650;
}

.pbbg-ticker {
  background:
    linear-gradient(180deg, rgba(18, 32, 36, 0.96), rgba(10, 18, 21, 0.96));
  border-bottom-color: rgba(160, 193, 205, 0.1);
  color: #adb8b7;
}

.pbbg-sidebar {
  background:
    linear-gradient(180deg, rgba(13, 27, 31, 0.96), rgba(4, 9, 12, 0.98));
  border-right-color: rgba(160, 193, 205, 0.12);
}

.pbbg-side-block,
.pbbg-panel,
.metric-card,
.small-card,
.dog-card,
.module-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(10, 18, 20, 0.88);
  border-color: rgba(160, 193, 205, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.pbbg-panel-head,
.pbbg-nav-title {
  background:
    linear-gradient(180deg, rgba(35, 49, 52, 0.96), rgba(15, 25, 28, 0.96));
  border-bottom-color: rgba(160, 193, 205, 0.1);
}

.pbbg-panel-head h2,
.panel-title {
  color: #d9bd7d;
  font-weight: 760;
}

.pbbg-titlebar {
  margin-bottom: 10px;
}

.pbbg-titlebar h1 {
  color: #ece5d9;
  font-size: 1.18rem;
  font-weight: 650;
}

.pbbg-titlebar p,
.page-subtitle,
.small-card p,
.breed-card p {
  color: #aeb8b7;
  line-height: 1.52;
}

.pbbg-btn,
.pbbg-mini-btn,
.ghost-btn,
.btn,
.soft-btn,
.danger-btn {
  border-radius: 7px;
  color: #e9e2d6;
  background:
    linear-gradient(180deg, rgba(48, 64, 66, 0.92), rgba(19, 30, 33, 0.92));
  border-color: rgba(160, 193, 205, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 6px 18px rgba(0, 0, 0, 0.12);
  font-weight: 620;
}

.pbbg-btn:hover,
.pbbg-mini-btn:hover,
.ghost-btn:hover,
.btn:hover,
.soft-btn:hover,
.danger-btn:hover {
  color: #f2e6ca;
  border-color: rgba(217, 187, 120, 0.34);
  background:
    linear-gradient(180deg, rgba(70, 84, 80, 0.95), rgba(25, 39, 43, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.pbbg-action {
  min-height: 56px;
  border-radius: 7px;
  border-color: rgba(160, 193, 205, 0.14);
  background:
    linear-gradient(180deg, rgba(42, 58, 61, 0.72), rgba(12, 22, 25, 0.84));
}

.pbbg-action.primary {
  border-color: rgba(217, 187, 120, 0.26);
  background:
    linear-gradient(180deg, rgba(151, 119, 66, 0.35), rgba(26, 40, 42, 0.92));
}

.pbbg-action strong {
  color: #ede5d8;
  font-weight: 660;
}

.pbbg-action span,
.pbbg-panel .data-table td,
.compact-row span,
.event-item span,
.feed-item span {
  color: #aeb8b7;
}

.pbbg-notice {
  min-height: 34px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(39, 55, 58, 0.88), rgba(16, 27, 30, 0.88));
  border-color: rgba(160, 193, 205, 0.14);
}

.pbbg-notice.warn {
  border-left-color: #d0ac68;
}

.pbbg-page .metric-card {
  min-height: 66px;
}

.pbbg-page .metric-card strong {
  color: #eee6d8;
  font-weight: 660;
}

.pbbg-home-grid {
  gap: 10px;
}

.pbbg-home-main,
.pbbg-home-side {
  gap: 10px;
}

.pbbg-two {
  gap: 10px;
}

.pbbg-yard {
  min-height: 198px;
}

.pbbg-yard img {
  height: 198px;
  opacity: 0.44;
  filter: saturate(0.68) contrast(0.9) hue-rotate(12deg);
}

.pbbg-yard-info {
  background: rgba(7, 14, 17, 0.76);
  border-color: rgba(160, 193, 205, 0.13);
}

.pbbg-login-page {
  background:
    linear-gradient(90deg, rgba(5, 11, 14, 0.95), rgba(9, 18, 21, 0.72), rgba(4, 9, 11, 0.96)),
    url("../images/bloodline-handler-asset.png") center / cover no-repeat,
    #05090b;
}

.pbbg-login-banner,
.pbbg-login-world {
  background:
    linear-gradient(180deg, rgba(24, 39, 43, 0.93), rgba(8, 16, 19, 0.93));
  border-color: rgba(160, 193, 205, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  body.pbbg-page::before,
  body.pbbg-page::after,
  body.pbbg-login-page::before,
  body.pbbg-login-page::after {
    animation: none;
  }
}
