:root {
  color-scheme: light;
  --desktop: #008080;
  --desktop-dark: #005f5f;
  --chrome: #c0c0c0;
  --chrome-light: #ffffff;
  --chrome-mid: #dfdfdf;
  --chrome-dark: #808080;
  --chrome-deep: #404040;
  --ink: #050505;
  --muted: #343434;
  --title-a: #000080;
  --title-b: #1084d0;
  --paper: #fffffb;
  --ok: #007a3d;
  --warn: #7a2e00;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  background: var(--desktop);
}

body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 34rem),
    var(--desktop);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

.andunny-checklist-page {
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
}

.andunny-shoot-checklist {
  margin: 0 auto;
  max-width: 1160px;
}

.andunny-shoot-checklist *,
.andunny-shoot-checklist *::before,
.andunny-shoot-checklist *::after {
  box-sizing: border-box;
}

.andunny-shoot-checklist__desktop-bar {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 auto 12px;
  max-width: 1120px;
  text-shadow: 1px 1px 0 #003838;
}

.andunny-shoot-checklist__brand {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
}

.andunny-shoot-checklist__brand-mark {
  background: linear-gradient(135deg, #fff 0 50%, #000 50% 100%);
  border: 1px solid #000;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.65);
  height: 18px;
  width: 18px;
}

.andunny-shoot-checklist__system {
  font-size: 0.9rem;
  font-weight: 700;
}

.andunny-shoot-checklist__window {
  background: var(--chrome);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.42);
  margin: 0 auto;
  max-width: 1120px;
}

.andunny-shoot-checklist__titlebar {
  align-items: center;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff;
  display: flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: space-between;
  min-height: 34px;
  padding: 4px 5px 4px 8px;
}

.andunny-shoot-checklist__titlebar-label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.andunny-shoot-checklist__icon {
  background:
    linear-gradient(#ffd966, #d79800) 5px 4px / 14px 10px no-repeat,
    linear-gradient(#fff, #c8c8c8) 7px 13px / 10px 8px no-repeat;
  border: 1px solid #000;
  display: inline-block;
  height: 24px;
  width: 24px;
}

.andunny-shoot-checklist__window-actions {
  display: flex;
  gap: 3px;
}

.andunny-shoot-checklist__window-actions span {
  align-items: center;
  background: var(--chrome);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light);
  color: #000;
  display: inline-flex;
  font-size: 0.85rem;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.andunny-shoot-checklist__body {
  border: 2px solid;
  border-color: var(--chrome-dark) var(--chrome-light) var(--chrome-light) var(--chrome-dark);
  display: grid;
  gap: 10px;
  padding: 10px;
}

.andunny-shoot-checklist__hero,
.andunny-shoot-checklist__project,
.andunny-shoot-checklist__section,
.andunny-shoot-checklist__footer {
  background: var(--paper);
  border: 2px solid;
  border-color: var(--chrome-dark) var(--chrome-light) var(--chrome-light) var(--chrome-dark);
}

.andunny-shoot-checklist__hero {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.andunny-shoot-checklist__hero h1 {
  font-size: clamp(2rem, 7vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 780px;
}

.andunny-shoot-checklist__hero p {
  font-size: 1.1rem;
  line-height: 1.45;
  margin: 0;
  max-width: 760px;
}

.andunny-shoot-checklist__eyebrow {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.andunny-shoot-checklist__headline-row,
.andunny-shoot-checklist__section-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.andunny-shoot-checklist__progress-output,
.andunny-shoot-checklist__section-head span {
  background: var(--chrome);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light);
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 12px;
}

.andunny-shoot-checklist__project {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.andunny-shoot-checklist__project h2 {
  font-size: 1.45rem;
  margin: 0;
}

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

.andunny-shoot-checklist__project label {
  color: var(--muted);
  display: grid;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 6px;
}

.andunny-shoot-checklist__project input,
.andunny-shoot-checklist__project textarea {
  background: #fff;
  border: 2px solid;
  border-color: var(--chrome-dark) var(--chrome-light) var(--chrome-light) var(--chrome-dark);
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 10px;
}

.andunny-shoot-checklist__project textarea {
  min-height: 110px;
  resize: vertical;
}

.andunny-shoot-checklist__nav {
  -webkit-overflow-scrolling: touch;
  background: var(--chrome);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 7px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.andunny-shoot-checklist__nav a,
.andunny-shoot-checklist__nav button {
  align-items: center;
  appearance: none;
  background: var(--chrome);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-deep) var(--chrome-deep) var(--chrome-light);
  color: #000;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 9px 12px;
  text-decoration: none;
}

.andunny-shoot-checklist__nav button {
  color: var(--warn);
  margin-left: auto;
}

.andunny-shoot-checklist__nav a:active,
.andunny-shoot-checklist__nav button:active {
  border-color: var(--chrome-deep) var(--chrome-light) var(--chrome-light) var(--chrome-deep);
  transform: translate(1px, 1px);
}

.andunny-shoot-checklist__progress {
  background: #fff;
  border: 2px solid;
  border-color: var(--chrome-dark) var(--chrome-light) var(--chrome-light) var(--chrome-dark);
  height: 18px;
  padding: 2px;
}

.andunny-shoot-checklist__progress span {
  background: repeating-linear-gradient(90deg, var(--ok), var(--ok) 10px, #00a05a 10px, #00a05a 20px);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
  width: 100%;
}

.andunny-shoot-checklist__sections {
  display: grid;
  gap: 10px;
}

.andunny-shoot-checklist__section summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-height: 58px;
  padding: 12px 14px;
}

.andunny-shoot-checklist__section summary::-webkit-details-marker {
  display: none;
}

.andunny-shoot-checklist__section summary span {
  font-size: 1.15rem;
  font-weight: 800;
}

.andunny-shoot-checklist__section summary em {
  background: var(--chrome);
  border: 1px solid var(--chrome-dark);
  color: var(--muted);
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 700;
  padding: 6px 8px;
}

.andunny-shoot-checklist__section ul {
  border-top: 1px solid #000;
  list-style: none;
  margin: 0;
  padding: 0;
}

.andunny-shoot-checklist__section li {
  border-top: 1px solid #b9b9b9;
}

.andunny-shoot-checklist__section li:first-child {
  border-top: 0;
}

.andunny-shoot-checklist__section label {
  align-items: flex-start;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 62px;
  padding: 14px;
}

.andunny-shoot-checklist__section input[type="checkbox"] {
  accent-color: var(--ok);
  height: 24px;
  margin: 2px 0 0;
  width: 24px;
}

.andunny-shoot-checklist__section strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.35;
}

.andunny-shoot-checklist__section small {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
  line-height: 1.38;
  margin-top: 3px;
}

.andunny-shoot-checklist__section input:checked + span strong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--ok);
  text-decoration-thickness: 2px;
}

.andunny-shoot-checklist__prompts {
  background: #f7f7f7;
  border-top: 1px solid #000;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 18px 14px 40px;
}

.andunny-shoot-checklist__prompts li {
  line-height: 1.38;
  padding-left: 2px;
}

.andunny-shoot-checklist__footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 8px 14px;
  justify-content: space-between;
  padding: 12px 14px;
}

.andunny-shoot-checklist :focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .andunny-checklist-page {
    padding: 0 0 max(14px, env(safe-area-inset-bottom));
  }

  .andunny-shoot-checklist__desktop-bar {
    padding: 10px;
  }

  .andunny-shoot-checklist__window {
    border-left: 0;
    border-right: 0;
  }

  .andunny-shoot-checklist__body {
    padding: 7px;
  }

  .andunny-shoot-checklist__hero {
    padding: 14px;
  }

  .andunny-shoot-checklist__project-grid {
    grid-template-columns: 1fr;
  }

  .andunny-shoot-checklist__nav button {
    margin-left: 0;
  }

  .andunny-shoot-checklist__section label {
    min-height: 68px;
    padding: 16px 14px;
  }
}

@media print {
  :root,
  html,
  body {
    background: #fff;
    color: #000;
  }

  .andunny-checklist-page {
    padding: 0;
  }

  .andunny-shoot-checklist__desktop-bar,
  .andunny-shoot-checklist__titlebar,
  .andunny-shoot-checklist__nav,
  .andunny-shoot-checklist__progress,
  .andunny-shoot-checklist__window-actions {
    display: none;
  }

  .andunny-shoot-checklist,
  .andunny-shoot-checklist__window,
  .andunny-shoot-checklist__body,
  .andunny-shoot-checklist__hero,
  .andunny-shoot-checklist__project,
  .andunny-shoot-checklist__section,
  .andunny-shoot-checklist__footer {
    background: #fff;
    border-color: #000;
    box-shadow: none;
  }

  .andunny-shoot-checklist__section {
    break-inside: avoid;
  }

  .andunny-shoot-checklist__section:not([open]) ul,
  .andunny-shoot-checklist__section:not([open]) .andunny-shoot-checklist__prompts {
    display: grid;
  }
}
