:root {
  color-scheme: light dark;
  --background: #f3f4f1;
  --foreground: #182521;
  --card: #ffffff;
  --card-foreground: #182521;
  --muted-foreground: #5a6862;
  --border: #d8dfd9;
  --primary: #183f32;
  --primary-foreground: #ffffff;
  --accent: #e6eee8;
  --destructive: #b33030;
  --ring: #2d7259;
  --input: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  background: var(--background);
  color: var(--foreground);
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #111a16;
    --foreground: #e6eee9;
    --card: #1a2720;
    --card-foreground: #e6eee9;
    --muted-foreground: #a9b9ae;
    --border: #33453a;
    --primary: #c2dfcb;
    --primary-foreground: #15261c;
    --accent: #293d30;
    --destructive: #ffaaaa;
    --ring: #9ac9ab;
    --input: #1a2720;
  }
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; }
h1, h2 { font-size: clamp(1.9rem, 5vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: 12px; }
p + p { margin-top: 12px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
[hidden] { display: none !important; }
.pc-site-shell { width: min(100% - 32px, 440px); margin: clamp(40px, 10vh, 100px) auto; }
.pc-site-shell-dashboard { width: min(100% - 64px, 1280px); margin: 0 auto 64px; }
.pc-site-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.pc-site-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; text-decoration: none; font-size: 1rem; font-weight: 500; }
.pc-site-brand span { color: var(--muted-foreground); font-size: .8rem; font-weight: 400; }
.pc-login { padding: 32px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 40px #00000005; }
.pc-eyebrow { color: var(--muted-foreground); font-size: .8rem; margin-bottom: 20px; letter-spacing: .04em; }
.pc-login-subtitle { color: var(--muted-foreground); margin-top: 12px; margin-bottom: 28px; }
.pc-login form { display: grid; gap: 10px; margin-top: 24px; }
.pc-login label { font-size: .9rem; font-weight: 500; }
.pc-login input:not([type="hidden"]) { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 8px; background: var(--input); color: var(--foreground); padding: 10px 12px; margin-bottom: 10px; }
.pc-login .btn { margin-top: 6px; width: 100%; }
.pc-login-footnote { margin-top: 24px; font-size: .8rem; color: var(--muted-foreground); }
.pc-error { color: var(--destructive); margin-top: 20px; }
.text-muted { color: var(--muted-foreground); }
.text-small { font-size: .82rem; }
.text-end { text-align: end; }
.text-center { text-align: center; }
.text-nowrap { white-space: nowrap; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 15px; border: 1px solid var(--border); border-radius: 8px; color: var(--foreground); background: var(--card); text-decoration: none; font-weight: 500; }
.btn:hover:not(:disabled) { background: var(--accent); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary); filter: brightness(.94); }
.btn-ghost { border-color: transparent; background: transparent; }
.form-label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 500; }
.form-select { width: 100%; min-height: 44px; min-width: 160px; border: 1px solid var(--border); border-radius: 8px; color: var(--foreground); background: var(--input); padding: 8px 32px 8px 12px; }
.viz-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.viz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.viz-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.card { padding: 22px; background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: 12px; }
.viz-stat-value { font-size: clamp(1.5rem, 3vw, 2.1rem); font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin-block: 6px; font-weight: 500; }
.viz-badge { display: inline-block; color: var(--primary); background: var(--accent); border-radius: 4px; font-size: .72rem; padding: 2px 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.nav-link { min-height: 42px; border: 0; border-radius: 7px; padding: 9px 16px; color: var(--muted-foreground); background: transparent; }
.nav-link:hover { background: var(--accent); color: var(--foreground); }
.nav-link.active { color: var(--primary-foreground); background: var(--primary); font-weight: 500; }
.table-responsive { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); padding: 14px 12px; }
.table th { font-weight: 500; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .text-end { text-align: end; }
.table thead th { color: var(--muted-foreground); font-size: .8rem; }
.table tbody tr:hover { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.table td .btn { padding: 5px 9px; min-height: 34px; font-size: .82rem; }
.table td .btn-ghost { margin: -5px 0 -5px -9px; }
details summary { color: var(--muted-foreground); }
details[open] > summary { margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#photoclaim-overview-20261104 .pc-heading { padding-inline-end: 0; }
#photoclaim-overview-20261104 .pc-heading h2 { margin-bottom: 8px; }
#photoclaim-overview-20261104 .pc-definition { max-width: 800px; }
#photoclaim-overview-20261104 .pc-definition dt { min-width: 0; }
#photoclaim-overview-20261104 .pc-definition dd { max-width: 400px; }
#photoclaim-overview-20261104 .pc-source { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 36px; max-width: 900px; }
@media (max-width: 720px) {
  .pc-site-shell-dashboard { width: calc(100% - 32px); }
  .pc-site-topbar { margin-bottom: 28px; padding: 16px 0; }
  .viz-grid { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 16px; }
  .viz-stat-value { font-size: 1.8rem; }
  .table { min-width: 650px; }
  .table th, .table td { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 420px) {
  .pc-login { padding: 24px; }
  .viz-controls { gap: 12px; }
  .viz-controls .form-label { flex: 1; min-width: 120px; }
  .form-select { min-width: 0; }
  .pc-site-brand { gap: 6px; }
  .nav-link { padding-inline: 12px; }
  #photoclaim-overview-20261104 .pc-definition { grid-template-columns: minmax(0, 1fr) auto; font-size: .9rem; gap: 10px 12px; }
}
@media (pointer: coarse) {
  .btn, .nav-link, .table td .btn { min-height: 44px; }
  .form-select { font-size: 16px; }
}
