/* Shared still of the app Home. Dark tokens by default; .shot-light
   uses the app's own light lime theme. */

.shot-frame { margin: 0; display: grid; gap: 1.25rem; overflow: hidden; }
.shot {
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: #2a2a2e;
  --line-soft: #1c1c20;
  --paper: #0a0a0c;
  --card: #121214;
  --sunken: #1c1c20;
  --accent: #d4ff00;
  --on-accent: #0a0a0c;
  --amber: #fbbf24;
  --green: #34d399;
  --hero-line: #2a2a2e;
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  container-type: inline-size;
}
.shot h2, .shot h3, .shot p { font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #141416;
}
.shot-bar span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #3f3f46; }
.shot-bar p { margin-left: 0.55rem; color: var(--faint); font-size: 12px; font-weight: 500; }
.shot-app { background: var(--paper); }
.shot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid transparent;
}
.shot-mark { justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.shot-mark i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.shot-mark span { color: var(--accent); }
.shot-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  justify-self: center;
}
.shot-nav span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 6px 12px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: 13px; white-space: nowrap; }
.shot-nav span svg { width: 14px; height: 14px; opacity: 0.75; }
.shot-nav span.is-current { background: rgba(255, 255, 255, 0.12); }
.shot-nav span.is-current svg { color: var(--accent); opacity: 1; }
.shot-avatar {
  justify-self: end;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sunken);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.shot-main { padding: 28px 28px 32px; display: grid; gap: 18px; align-content: start; }
.shot-page { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.shot-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.shot-meta { color: var(--muted); font-size: 15px; font-weight: 450; margin-top: 6px; }
.shot-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.shot-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.shot-btn svg { width: 14px; height: 14px; }
.shot-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.shot-kicker { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.shot-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.7fr);
  gap: 28px;
  align-items: start;
  padding: 26px 28px 22px;
  border-radius: 20px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--amber) 22%, var(--line));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.shot-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -8%;
  top: -70%;
  width: 52%;
  height: 220%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--amber) 16%, transparent), transparent);
  pointer-events: none;
}
.shot-score { display: grid; gap: 14px; min-width: 0; }
.shot-score-body { display: flex; align-items: center; gap: 16px; }
.shot-score-text { display: grid; gap: 6px; min-width: 0; }
.shot-ring { flex: none; color: var(--amber); }
.shot-ring-track { stroke: var(--hero-line); }
.shot-ring-value { stroke: currentColor; }
.shot-ring-number { fill: var(--ink); font-size: 40px; font-weight: 650; font-family: inherit; letter-spacing: -0.03em; }
.shot-band { color: var(--amber); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.shot-note { color: var(--muted); font-size: 13.5px; font-weight: 450; line-height: 1.4; }
.shot-fold { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 450; }
.shot-fold svg { width: 16px; height: 16px; }
.shot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.shot-stat { display: flex; flex-direction: column; gap: 6px; padding: 2px 18px; border-left: 1px solid var(--hero-line); min-width: 0; }
.shot-stat:first-child { border-left: 0; padding-left: 0; }
.shot-stat:last-child { padding-right: 0; }
.shot-big { font-size: 52px; line-height: 1; letter-spacing: -0.03em; font-weight: 600; margin-top: 4px; }
.shot-stat-attention .shot-big { color: var(--amber); }
.shot-stat-fixed .shot-big { color: var(--green); }
.shot-sub { color: var(--muted); font-size: 14px; font-weight: 450; line-height: 1.35; }
.shot-foot { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 13px; font-weight: 450; }
.shot-fixbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--card);
  font-size: 13px;
  font-weight: 600;
}
.shot-fixbtn svg { width: 14px; height: 14px; }
.shot-board {
  display: grid;
  gap: 8px;
  padding: 18px 22px 16px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}
.shot-board-body {
  display: grid;
  grid-template-columns: 200px minmax(210px, 280px) minmax(0, 1fr);
  gap: 8px 28px;
  align-items: center;
}
.shot-pie { width: min(220px, 100%); height: auto; justify-self: center; }
.shot-pie-track { stroke: var(--line); }
.shot-slice { stroke: currentColor; opacity: 0.45; }
.shot-slice-packages { color: var(--accent); opacity: 1; }
.shot-slice-code { color: color-mix(in srgb, var(--accent) 68%, var(--muted)); }
.shot-slice-setting { color: color-mix(in srgb, var(--accent) 42%, var(--faint)); }
.shot-pie-total { fill: var(--ink); font-size: 64px; font-weight: 650; font-family: inherit; letter-spacing: -0.04em; }
.shot-legend { display: grid; gap: 8px; }
.shot-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
}
.shot-legend-item.is-on { background: var(--sunken); border-color: var(--line); }
.shot-legend-item b { margin-left: auto; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.shot-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  background: color-mix(in srgb, currentColor 22%, transparent);
  box-shadow: inset 0 0 0 3px currentColor;
}
.shot-swatch-packages { color: var(--accent); }
.shot-swatch-code { color: color-mix(in srgb, var(--accent) 68%, var(--muted)); }
.shot-swatch-setting { color: color-mix(in srgb, var(--accent) 42%, var(--faint)); }
.shot-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #45220f;
  color: #fed7aa;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.shot-detail { min-width: 0; }
.shot-detail-title { font-size: 17px; margin-bottom: 2px; }
.shot-items { list-style: none; margin: 0; padding: 0; counter-reset: shotfix; }
.shot-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--line-soft);
}
.shot-item:last-child { border-bottom: 0; }
.shot-item::before {
  counter-increment: shotfix;
  content: counter(shotfix);
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--sunken);
  color: var(--muted);
}
.shot-item-main { display: grid; gap: 2px; min-width: 0; }
.shot-item-title { font-size: 14.5px; font-weight: 600; }
.shot-item-summary { color: var(--muted); font-size: 13px; font-weight: 450; line-height: 1.4; }
.shot-item-where { display: flex; gap: 8px; flex-wrap: wrap; color: var(--faint); font-size: 12px; font-weight: 450; }
.shot-item-where code { font-size: 12px; color: var(--faint); }
.shot-frame figcaption { color: var(--muted); font-size: 0.9375rem; max-width: 36rem; }

@container (max-width: 860px) {
  .shot-top { grid-template-columns: auto auto; }
  .shot-nav { display: none; }
  .shot-page { flex-direction: column; }
  .shot-hero { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .shot-stats { grid-template-columns: 1fr; }
  .shot-stat { border-left: 0; border-top: 1px solid var(--hero-line); padding: 12px 0; }
  .shot-stat:first-child { border-top: 0; padding-top: 0; }
  .shot-big { font-size: 40px; }
  .shot-band { font-size: 24px; }
  .shot-board-body { grid-template-columns: 1fr; justify-items: stretch; }
  .shot-pie { justify-self: center; }
}

.shot-light {
  color-scheme: light;
  --ink: #0a0a0c;
  --muted: #52525b;
  --faint: #71717a;
  --line: #e4e4e7;
  --line-soft: #f4f4f5;
  --paper: #f4f4f5;
  --card: #ffffff;
  --sunken: #ececee;
  --accent: #4d7c0f;
  --on-accent: #ffffff;
  --amber: #c2410c;
  --green: #15803d;
  --hero-line: #e4e4e7;
  box-shadow: 0 2px 4px rgba(10, 10, 12, 0.06), 0 24px 60px rgba(10, 10, 12, 0.1);
}
.shot-light .shot-bar { background: #ececee; }
.shot-light .shot-bar span { background: #d4d4d8; }
.shot-light .shot-nav { background: rgba(10, 10, 12, 0.05); }
.shot-light .shot-nav span.is-current { background: #ffffff; box-shadow: 0 1px 2px rgba(10, 10, 12, 0.06); }
.shot-light .shot-hero { box-shadow: 0 1px 2px rgba(10, 10, 12, 0.05); }
.shot-light .shot-badge { background: #ffedd5; color: #9a3412; }
.shot-light .shot-fixbtn { color: #ffffff; }
