/* Demo Home — Dogs overlay. C2 premium language, same sheet family as Vitals / Groceries. */

#dogsOverlay .atv-sheet {
  width: min(920px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
}

.dg-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dg-head-actions .icon-btn { min-height: 44px; }

.dg-chart {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(114, 217, 248, 0.08);
  border: 1px solid rgba(114, 217, 248, 0.28);
}
.dg-chart strong {
  display: block;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky); font-weight: 800; margin-bottom: 6px;
}
.dg-chart-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: var(--text); font-size: 13px; font-weight: 650;
}
.dg-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.dg-pill {
  border-radius: 999px; padding: 4px 10px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase;
  border: 1px solid var(--line); background: #1c2733; color: var(--muted);
}
.dg-pill.on { color: var(--lime); border-color: rgba(160, 230, 140, 0.45); background: rgba(160, 230, 140, 0.10); }
.dg-pill.wait { color: var(--sky); border-color: rgba(114, 217, 248, 0.4); }

.dg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 18px;
}
@media (max-width: 700px) {
  .dg-grid { grid-template-columns: 1fr; }
}

.dg-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 24, 36, 0.92), rgba(11, 16, 24, 0.78));
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dg-card.taken { opacity: 0.58; filter: grayscale(0.35); }
.dg-card.remembered {
  opacity: 0.92;
  background: rgba(11, 16, 24, 0.55);
}

.dg-id {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.dg-photo {
  width: 88px; height: 88px; flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232, 180, 92, 0.60);
  box-shadow: 0 0 0 3px rgba(232, 180, 92, 0.12), 0 8px 22px rgba(0,0,0,0.40);
  background: #0b1018;
}
.dg-card.remembered .dg-photo {
  border-color: rgba(180, 190, 210, 0.40);
  box-shadow: 0 0 0 3px rgba(180, 190, 210, 0.10);
  filter: saturate(0.85);
}
.dg-who { min-width: 0; flex: 1; }
.dg-who-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.dg-who h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 1.1;
}
.dg-breed {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em;
}
.dg-lineage {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px; font-weight: 600; line-height: 1.35; letter-spacing: 0.01em;
}
.dg-badge {
  display: inline-block;
  flex-shrink: 0;
  margin: 1px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(232, 180, 92, 0.45);
  background: rgba(232, 180, 92, 0.10);
  color: #e8b45c;
}
.dg-badge.remembered,
.dg-card.remembered .dg-badge {
  color: var(--muted);
  border-color: rgba(180, 190, 210, 0.28);
  background: rgba(180, 190, 210, 0.08);
}
.dg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px 14px;
  padding: 10px 2px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dg-stat span {
  display: block;
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #e8b45c;
  margin-bottom: 3px;
}
.dg-stat b {
  display: block;
  font-size: 12.5px; font-weight: 650; color: var(--text); line-height: 1.35;
  font-style: normal;
}
.dg-card.remembered .dg-stat span { color: var(--muted); }

.dg-feed {
  display: flex; flex-direction: column; gap: 8px;
}
.dg-feed-status {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; font-weight: 650; color: var(--muted);
}
.dg-feed-status b { color: var(--text); font-weight: 800; }
.dg-feed-status .done { color: var(--lime); }

.dg-take {
  appearance: none; border: 0;
  min-height: 48px; width: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, #e0b44a, #c8942a);
  color: #14110a;
  font-family: "Oswald", sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}
.dg-take:hover:not(:disabled), .dg-take:focus-visible:not(:disabled) { filter: brightness(1.06); }
.dg-take:active:not(:disabled) { transform: scale(0.985); }
.dg-take:disabled {
  cursor: default; opacity: 0.7;
  background: #2a3440;
  color: var(--muted);
  filter: grayscale(0.4);
}

.dg-meds { margin-top: 2px; }
.dg-meds summary {
  cursor: pointer;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky); list-style: none;
}
.dg-meds summary::-webkit-details-marker { display: none; }
.dg-meds ul {
  margin: 8px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  max-height: 280px; overflow: auto;
}
.dg-meds li {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(28, 39, 51, 0.8);
  border: 1px solid var(--line);
}
.dg-meds .dg-md-top {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.dg-meds .dg-md-type { color: var(--sky); }
.dg-meds p {
  margin: 4px 0 0;
  font-size: 12.5px; font-weight: 550; line-height: 1.45; color: var(--text);
}

.dg-remembered-wrap { margin-top: 4px; }
.dg-remembered-toggle {
  appearance: none; border: 1px solid var(--line);
  background: #1c2733; color: var(--text);
  border-radius: 999px;
  padding: 8px 14px; min-height: 40px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase;
  cursor: pointer;
  margin: 0 0 12px;
}
.dg-remembered-toggle[aria-expanded="true"] {
  border-color: rgba(224, 180, 74, 0.5);
  color: #e0b44a;
}
.dg-remembered-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px; font-weight: 650; line-height: 1.45;
}

.dg-error {
  margin: 0 0 12px;
  color: #f0b4b4;
  font-size: 13px; font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  .dg-take:active:not(:disabled) { transform: none; }
}

/* ---------- dogfood (2026-11-16): Chow Report ---------- */
.dg-chow-tile {
  appearance: none; font: inherit; cursor: pointer; width: 100%; margin-top: 12px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 14px; border-radius: 14px; color: var(--text, #edf4fa);
  background: linear-gradient(90deg, rgba(242,184,75,0.16), rgba(114,217,248,0.08));
  border: 1px solid rgba(242,184,75,0.45);
}
.dg-chow-tile:hover { border-color: rgba(242,184,75,0.8); box-shadow: 0 0 16px rgba(242,184,75,0.18); }
.dg-chow-ico { font-size: 26px; line-height: 1; }
.dg-chow-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dg-chow-txt b { font-family: "Oswald", sans-serif; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: #f2b84b; }
.dg-chow-txt em { font-style: normal; font-size: 12px; color: var(--muted, #8ea3b5); }
.dg-chow-go { font-size: 26px; color: #f2b84b; }

.dg-month { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 12px; }
.dg-month span { font-family: "Oswald", sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; min-width: 190px; text-align: center; }
.dg-mbtn {
  appearance: none; font: inherit; cursor: pointer; min-width: 44px; min-height: 40px; border-radius: 12px;
  color: var(--sky, #72d9f8); background: rgba(11,16,24,0.6); border: 1px solid rgba(114,217,248,0.3); font-weight: 800;
}
.dg-mbtn:disabled { opacity: .3; cursor: default; }

.dg-champ {
  display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 12px 16px; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(242,184,75,0.22), rgba(11,16,24,0.7) 60%);
  border: 1px solid rgba(242,184,75,0.5);
}
.dg-champ > span { font-size: 34px; filter: drop-shadow(0 0 10px rgba(242,184,75,.6)); animation: dgBob 2.6s ease-in-out infinite; }
.dg-champ b { display: block; font-family: "Oswald", sans-serif; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: #f2b84b; }
.dg-champ em { font-style: normal; font-size: 13px; color: var(--text, #edf4fa); }
.dg-champ.tie { border-color: rgba(114,217,248,0.35); background: rgba(114,217,248,0.07); }
.dg-champ.tie b { color: var(--sky, #72d9f8); }
@keyframes dgBob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-4px) rotate(6deg); } }

.dg-panel {
  margin: 0 0 14px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(16,24,36,0.92), rgba(11,16,24,0.78)); border: 1px solid var(--line, rgba(114,217,248,0.18));
}
.dg-bars { display: flex; justify-content: center; align-items: flex-end; gap: clamp(28px, 9vw, 90px); padding: 8px 0 4px; }
.dg-bar { display: flex; flex-direction: column; align-items: center; width: 130px; }
.dg-bar-val { text-align: center; margin-bottom: 6px; }
.dg-bar-val b { font-family: "Oswald", sans-serif; font-size: 30px; color: var(--c); line-height: 1; }
.dg-bar-val small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #8ea3b5); font-weight: 800; }
.dg-bar-track {
  position: relative; width: 92px; height: 210px; display: flex; align-items: flex-end; justify-content: center;
  border-bottom: 3px solid rgba(237,244,250,0.18);
  background: repeating-linear-gradient(0deg, transparent 0 41px, rgba(114,217,248,0.06) 41px 42px);
}
.dg-bag {
  position: relative; width: 84px; min-height: 0; border-radius: 10px 10px 8px 8px;
  background:
    radial-gradient(circle at 25% 30%, rgba(90,52,20,.55) 0 4px, transparent 5px) 0 0/22px 20px,
    radial-gradient(circle at 70% 70%, rgba(120,72,30,.55) 0 4.5px, transparent 5.5px) 0 0/26px 24px,
    linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, white), color-mix(in srgb, var(--c) 65%, #0b1018));
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent), inset 0 -10px 18px rgba(0,0,0,.25);
  transition: height .7s cubic-bezier(.2,.9,.25,1.15);
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
.dg-bag-fold {
  position: absolute; top: -9px; left: 4px; right: 4px; height: 12px; border-radius: 4px 4px 2px 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #0b1018) 0 6px, color-mix(in srgb, var(--c) 95%, white) 6px 12px);
}
.dg-bag[style*="height:0%"] .dg-bag-fold { display: none; }
.dg-bag-label { font-family: "Oswald", sans-serif; font-size: 11px; letter-spacing: .18em; color: rgba(5,9,14,.75); writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; }
.dg-bar-who { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 10px; gap: 2px; }
.dg-bar-who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); }
.dg-bar-who strong { font-family: "Oswald", sans-serif; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.dg-bar-who span { font-size: 11.5px; color: var(--muted, #8ea3b5); font-weight: 650; white-space: nowrap; }
.dg-crown { position: absolute; top: -20px; font-size: 24px; transform: rotate(-14deg); filter: drop-shadow(0 0 8px rgba(242,184,75,.8)); animation: dgBob 2.6s ease-in-out infinite; }
.dg-quips { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.dg-quips li { font-size: 13px; color: var(--muted, #8ea3b5); padding: 8px 12px; border-radius: 12px; background: rgba(11,16,24,0.55); border: 1px solid rgba(114,217,248,0.12); }
.dg-quips li b { color: var(--text, #edf4fa); }

.dg-trend { width: 100%; height: auto; display: block; }
.dg-trend text { fill: var(--muted, #8ea3b5); font-size: 10px; font-weight: 700; }
.dg-trend .tgt { stroke: rgba(160,230,140,.55); stroke-dasharray: 5 5; stroke-width: 1.5; }
.dg-trend .tgt-l { fill: rgba(160,230,140,.85); }
.dg-trend .base { stroke: rgba(237,244,250,.15); }
.dg-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted, #8ea3b5); font-weight: 650; margin-top: 4px; }
.dg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.dg-spend { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 6px; }
.dg-spend-c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.dg-spend-c span { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #f2b84b, rgba(242,184,75,.45)); }
.dg-spend-c.est span { opacity: .4; background: repeating-linear-gradient(135deg, rgba(242,184,75,.7) 0 4px, rgba(242,184,75,.3) 4px 8px); }
.dg-spend-c em { font-style: normal; font-size: 10px; color: var(--muted, #8ea3b5); font-weight: 700; }

.dg-scoop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dg-scoop span { font-size: 13px; color: var(--muted, #8ea3b5); }
.dg-scoop span b { color: var(--text, #edf4fa); }
.dg-scoop-ctl { display: flex; align-items: center; gap: 10px; }
.dg-scoop-ctl b { font-family: "Oswald", sans-serif; font-size: 24px; min-width: 48px; text-align: center; color: #f2b84b; }
@media (max-width: 560px) { .dg-bar { width: 104px; } .dg-bar-track { height: 170px; } }
.dg-champ em b { display: inline; font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; color: #fff; }
.dg-spend-c i { font-style: normal; font-size: 11px; color: var(--muted, #8ea3b5); }
@media (max-width: 560px) { .dg-spend { gap: 3px; } .dg-spend-c em { font-size: 8.5px; } }
