:root {
  --bg: #10110e;
  --panel: #191b15;
  --ink: #f5f7ef;
  --muted: #a7ab9b;
  --line: #34382c;
  --input: #0d0e0b;
  --lime: #ccff33;
  --lime-hover: #b6ef2a;
  --lime-ink: #141800;
  --danger: #ff5c39;
  --hover: #242820;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.45 "Avenir Next", "Segoe UI", sans-serif;
}

::selection { background: var(--lime); color: var(--lime-ink); }

button, input, textarea { font: inherit; color: inherit; }

button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--lime-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: var(--lime-hover); }
button.secondary, button.danger, button.job, th button { font-weight: 500; }
button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.secondary:hover { background: var(--hover); }
button.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid #5a3330;
}
button.danger:hover { background: #2a1816; }
button.with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.with-icon svg { width: 17px; height: 17px; flex: none; }
button.trash-open { width: auto; white-space: nowrap; }
.settings-head { max-width: 560px; }
button.trash-open .count-mark { margin-left: 2px; }
.trash-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed #5a3330;
  border-radius: 14px;
}
.trash-zone[hidden] { display: none; }
.trash-zone p { margin: 0; }
.trash-zone-title { font-weight: 700; }
.trash-zone .muted { margin-top: 2px; font-size: 14px; }
.trash-zone button { width: auto; flex: none; white-space: nowrap; }
.trash-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 40px 20px;
  text-align: center;
}
.trash-empty svg { width: 40px; height: 40px; color: var(--muted); }
.trash-empty p { margin: 0; }
.trash-table td.muted { color: var(--muted); }
button:disabled, button:disabled:hover {
  background: #2a2d26;
  color: #6d7168;
  cursor: not-allowed;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--input);
  color: var(--ink);
  font: inherit;
}

input::placeholder, textarea::placeholder { color: #6a6d66; }
textarea.address-input { min-height: 5.4em; line-height: 1.4; resize: vertical; }

input:focus, textarea:focus {
  outline: auto;
  outline-offset: 0;
}

button:focus-visible {
  outline: 2px solid #81baff;
  outline-offset: 2px;
}

input[type="checkbox"] { accent-color: var(--lime); width: auto; }

input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--input) inset;
}

a { color: #81baff; }
a:hover { color: var(--lime); }

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.shell { max-width: 1100px; margin: 0 auto; padding: 1.25rem; flex: 1; width: 100%; }
.shell.stack { align-content: start; }
.shell.builder-shell { max-width: min(1920px, calc(100vw - 16px)); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 24px 18px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-links { display: flex; gap: 16px; }
.report-footer {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 6px 10px;
  margin: 22px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--report-rule, rgba(245, 247, 239, 0.28));
  color: var(--report-muted, #c5c9bb);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
}
.report-footer-copy {
  justify-self: start;
  white-space: nowrap;
}
.report-footer-links {
  justify-self: end;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px 12px;
  white-space: nowrap;
}
.sheet .report-footer {
  margin-top: 10px;
  padding-top: 4px;
  gap: 4px 6px;
  font-size: 8px;
}
.sheet .report-footer-links { gap: 6px; }
.preview-dialog .report-footer {
  margin-top: 16px;
  padding-top: 6px;
  gap: 6px 10px;
  font-size: 11px;
}
.report-view .report-footer {
  margin-top: 28px;
  padding-top: 12px;
  gap: 10px 16px;
  font-size: 13px;
}
.report-view .report-footer-links { gap: 16px; }
.sheet .report-footer a,
.report-view .report-footer a {
  color: var(--report-muted, #c5c9bb);
  text-decoration: none;
}
.sheet .report-footer a:hover,
.report-view .report-footer a:hover {
  color: var(--report-link, #d7e66a);
}
.report-footer .report-footer-copy a {
  color: var(--report-ink, inherit);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--report-link, #d7e66a);
  text-underline-offset: 2px;
}
.top {
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100vw;
  margin: -1.25rem calc(50% - 50vw) 1rem;
  padding: 8px 20px;
  background: #161810;
  border-bottom: 1px solid var(--line);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
}
a.brand-lockup:hover { color: inherit; }
a.brand-lockup:hover .brand-title { color: var(--lime); }
a.brand-lockup:focus-visible {
  outline: 2px solid #81baff;
  outline-offset: 3px;
}
.brand-mark {
  display: block;
  height: 28px;
  width: 28px;
  border-radius: 8px;
  object-fit: cover;
}
.brand-title {
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.meta { color: var(--muted); font-size: 0.85rem; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.paywall-card { max-width: 560px; display: grid; gap: 12px; }
.paywall-card h1 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }
.paywall-card p { margin: 0; }
.paywall-card .eyebrow { color: var(--lime); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
a.subscribe {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  text-decoration: none;
}
a.subscribe:hover { background: var(--lime-hover); color: var(--lime-ink); }
.gate {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  background: #0b0c0a;
  color: #f5f7ef;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: normal;
}
.story {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
  container-type: inline-size;
}
.story-lead { width: 100%; }
.wordmark {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 32px;
}
.story h1 {
  margin: 0;
  width: 100%;
  font-size: 11cqw;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.story-copy {
  max-width: none;
  margin: 14px 0 0;
  color: #a7ab9b;
  font-size: 18px;
  line-height: 1.35;
}
a.story-about {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 22px 20px;
  overflow: hidden;
  border: 1px solid rgba(204, 255, 51, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(204, 255, 51, 0.16), transparent 52%),
    linear-gradient(180deg, #1d2214 0%, #13150e 100%);
  box-shadow:
    0 0 0 1px rgba(204, 255, 51, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.38);
  color: inherit;
  text-decoration: none;
}
a.story-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, #ccff33 35%, #ccff33 65%, transparent);
}
a.story-about:hover {
  border-color: rgba(204, 255, 51, 0.48);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(204, 255, 51, 0.22), transparent 52%),
    linear-gradient(180deg, #232a16 0%, #16180f 100%);
}
.story-about-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.story-about-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ccff33;
}
.story-about-kicker {
  margin: 0;
  color: #ccff33;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.story-about-copy {
  margin: 0 0 16px;
  color: #d6dac8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.story-site {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ccff33;
  color: #141800;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(204, 255, 51, 0.22);
}
a.story-about:hover .story-site { background: #d8ff5c; }
.stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 40%, rgba(204, 255, 51, 0.08), transparent 42%),
    #10140f;
}
.stage .reports {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.mock {
  position: absolute;
  width: 250px;
  padding: 14px;
  border-radius: 14px;
  background: #f7f8f2;
  color: #1a1c16;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.mock header {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 8px;
  border-radius: 8px;
  background: #ccff33;
  color: #141800;
  font-size: 12px;
  font-weight: 700;
}
.mock-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mock-photos i {
  display: block;
  height: 62px;
  border-radius: 8px;
  background: #d5d8cc;
}
.mock.one .mock-photos i:nth-child(1) { background: #8fd14f; }
.mock.one .mock-photos i:nth-child(2) { background: #6aa8e8; }
.mock.one .mock-photos i:nth-child(3) { background: #e7b15a; }
.mock.one .mock-photos i:nth-child(4) { background: #c9cfc0; }
.mock.two .mock-photos i:nth-child(1) { background: #ef7aa8; }
.mock.two .mock-photos i:nth-child(2) { background: #7d8f5a; }
.mock.two .mock-photos i:nth-child(3) { background: #f0d36a; }
.mock.two .mock-photos i:nth-child(4) { background: #8eb4d4; }
.mock.three .mock-photos i:nth-child(1) { background: #d7de63; }
.mock.three .mock-photos i:nth-child(2) { background: #c48b62; }
.mock.three .mock-photos i:nth-child(3) { background: #9aa3b2; }
.mock.three .mock-photos i:nth-child(4) { background: #6fbf8a; }
.mock.four .mock-photos i:nth-child(1) { background: #7b6fd6; }
.mock.four .mock-photos i:nth-child(2) { background: #5ec4c0; }
.mock.four .mock-photos i:nth-child(3) { background: #e8c07a; }
.mock.four .mock-photos i:nth-child(4) { background: #b7bdc8; }
.mock.five .mock-photos i:nth-child(1) { background: #e07a5f; }
.mock.five .mock-photos i:nth-child(2) { background: #81b29a; }
.mock.five .mock-photos i:nth-child(3) { background: #f2cc8f; }
.mock.five .mock-photos i:nth-child(4) { background: #3d405b; }
.mock.six .mock-photos i:nth-child(1) { background: #4cc9f0; }
.mock.six .mock-photos i:nth-child(2) { background: #f72585; }
.mock.six .mock-photos i:nth-child(3) { background: #bde0fe; }
.mock.six .mock-photos i:nth-child(4) { background: #80ed99; }
.mock.seven .mock-photos i:nth-child(1) { background: #f4a261; }
.mock.seven .mock-photos i:nth-child(2) { background: #2a9d8f; }
.mock.seven .mock-photos i:nth-child(3) { background: #e9c46a; }
.mock.seven .mock-photos i:nth-child(4) { background: #264653; }
.mock.eight .mock-photos i:nth-child(1) { background: #a3c4f3; }
.mock.eight .mock-photos i:nth-child(2) { background: #ffb4a2; }
.mock.eight .mock-photos i:nth-child(3) { background: #b5e48c; }
.mock.eight .mock-photos i:nth-child(4) { background: #cdb4db; }
.mock p {
  height: 8px;
  margin: 8px 0 0;
  border-radius: 99px;
  background: #e1e4da;
}
.mock p:nth-of-type(2) { width: 78%; }
.mock p:nth-of-type(3) { width: 52%; }
.mock.one { top: 7%; left: 4%; transform: rotate(-9deg); }
.mock.two { top: 5%; right: 8%; transform: rotate(9deg); }
.mock.three { bottom: 6%; left: 8%; transform: rotate(-3deg); }
.mock.four {
  top: 50%;
  left: 50%;
  width: 236px;
  transform: translate(calc(-50% - 150px), calc(-50% - 18px)) rotate(-12deg);
}
.mock.five {
  top: 50%;
  left: 50%;
  width: 242px;
  transform: translate(calc(-50% + 158px), calc(-50% + 8px)) rotate(11deg);
}
.mock.six {
  top: 50%;
  left: 50%;
  width: 238px;
  transform: translate(calc(-50% + 42px), calc(-50% + 208px)) rotate(6deg);
}
.mock.seven {
  bottom: 5%;
  right: 8%;
  transform: rotate(7deg);
}
.mock.eight {
  top: 1%;
  left: 50%;
  width: 240px;
  transform: translateX(calc(-50% + 24px)) rotate(-4deg);
}
.gone {
  flex: 1;
  min-height: 100vh;
  color: #f5f7ef;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.gone-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 32px 30px 26px;
  border: 1px solid #2c3024;
  border-radius: 22px;
  background: #171914;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.gone-card h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.gone-lead { margin: 0; color: var(--muted); }
.gone-pitch {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid rgba(204, 255, 51, 0.28);
  border-radius: 16px;
  background: rgba(204, 255, 51, 0.06);
  text-align: left;
}
.gone-pitch h2 { margin: 0; font-size: 18px; color: var(--lime); }
.gone-pitch p { margin: 0; font-size: 14px; line-height: 1.5; color: #d7dbcc; }
.gone-pitch ul { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: #d7dbcc; }
.gone-pitch li::marker { color: var(--lime); }
a.gone-cta {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--lime);
  color: #141800;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(204, 255, 51, 0.22);
}
a.gone-cta:hover { background: #d8ff5c; }
.gone-wordmark { width: 150px; height: auto; margin-top: 4px; opacity: 0.85; }
.chooser { position: relative; z-index: 1; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45); }
.badge {
  width: 50px;
  height: 50px;
  margin: 2px auto 6px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}
.provider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #34382c;
  border-radius: 10px;
  background: #12140f;
  color: #f5f7ef;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.provider svg {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
}
.provider:hover { background: #22261c; color: #f5f7ef; }
a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  padding: 8px 12px 8px 10px;
  border: 1px solid #4a4f42;
  border-radius: 10px;
  background: #12140f;
  color: #f5f7ef;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
a.back::before {
  content: "←";
  font-weight: 700;
  line-height: 1;
}
a.back:hover {
  background: #22261c;
  border-color: #6a7060;
  color: #f5f7ef;
}
@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .story { padding: 36px 22px 24px; }
  .stage { min-height: 72vh; }
  .mock.one { top: 4%; left: -20px; }
  .mock.two { top: auto; right: -30px; bottom: 8%; }
  .mock.three,
  .mock.four,
  .mock.five,
  .mock.six,
  .mock.seven,
  .mock.eight { display: none; }
}
.login {
  position: relative;
  z-index: 1;
  width: min(378px, 100%);
  margin: 0;
  background: #191b15;
  border: 1px solid #34382c;
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 10px;
  color: #f5f7ef;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: normal;
  font-weight: 400;
}
.login h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
}
.login .lede {
  margin: 0;
  color: #a7ab9b;
  text-align: center;
  font-size: 15px;
  line-height: normal;
  font-weight: 400;
}
.login .error {
  margin: 0;
  min-height: 1.2em;
  color: #ff5c39;
  text-align: center;
  font-size: 16px;
  line-height: normal;
}
.login label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
  color: #a7ab9b;
  text-align: left;
}
.login input {
  border: 1px solid #34382c;
  border-radius: 10px;
  padding: 10px 12px;
  background: #0d0e0b;
  color: #f5f7ef;
  font: inherit;
  line-height: normal;
}
.login input:focus, .login select:focus {
  outline: auto;
  outline-offset: 1px;
}
.login select {
  width: 100%;
  border: 1px solid #34382c;
  border-radius: 10px;
  padding: 10px 12px;
  background: #0d0e0b;
  color: #f5f7ef;
  font: inherit;
  line-height: normal;
}
select.workspace {
  margin: 0;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  background: var(--input);
  color: var(--ink);
  font: inherit;
}
.login .actions { display: flex; width: 100%; margin: 4px 0 0; }
.login .actions button {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: #ccff33;
  color: #141800;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: normal;
  font-weight: 700;
}
.login .actions button:hover { background: #ccff33; }
.login .actions button:disabled,
.login .actions button:disabled:hover {
  background: #2a2d26;
  color: #6d7168;
  cursor: not-allowed;
}
h1 { font-size: 28px; margin: 0 0 0.35rem; font-weight: 700; }
h2 { font-size: 1.05rem; margin: 0 0 0.8rem; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-head h2 { margin: 0; }
.panel-head.is-toggle {
  cursor: pointer;
  border-radius: 16px 16px 0 0;
  margin: -28px -28px 0;
  padding: 28px 28px 10px;
  user-select: none;
}
.panel-head.is-toggle:hover { background: var(--hover); }
.panel-head.is-toggle .panel-keep { user-select: text; }
button.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 2px 4px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}
button.disclosure:hover { background: var(--hover); }
.panel-head.is-toggle button.disclosure {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  background: transparent;
}
.panel-head.is-toggle button.disclosure:hover { background: transparent; }
button.disclosure .disclosure-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.disclosure .chevron,
button.disclosure .count-mark { flex-shrink: 0; }
.count-mark.is-settings { color: var(--lime); }
.chevron {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent var(--muted);
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}
button.disclosure[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.count-mark {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.home-reports > .panel-head.is-toggle,
.home-jobs > .panel-head.is-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px 72px;
  align-items: center;
  column-gap: 12px;
}
.home-reports > .panel-head.is-toggle .job-search,
.home-jobs > .panel-head.is-toggle .job-search {
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
}
.home-reports > .panel-head.is-toggle > button.compact { width: 100%; }
.home-reports:has(#saved-reports[hidden]),
.home-jobs:has(#jobs-panel[hidden]) { padding: 0; }
.home-reports:has(#saved-reports[hidden]) > .panel-head.is-toggle,
.home-jobs:has(#jobs-panel[hidden]) > .panel-head.is-toggle {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
}
button.compact { padding: 6px 14px; border-radius: 8px; font-size: 14px; }
.scroll-panel { max-height: min(68vh, 720px); overflow: auto; }
.jobs thead th, .reports thead th {
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}
p { margin: 0.4rem 0; }
label { color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2em; }
.stack { display: grid; gap: 0.55rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.unused-block { display: grid; gap: 6px; margin-top: 1.75rem; }
.unused-block h2 { margin: 0; }
.unused-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.grow { flex: 1; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.35rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th button {
  background: transparent;
  color: var(--muted);
  padding: 0;
  border-radius: 0;
}
th button:hover { background: transparent; color: var(--ink); text-decoration: underline; }
th button.sort-on { color: var(--ink); font-weight: 700; text-decoration: none; }
.sort-mark { color: var(--lime); }
.workspace-line {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  margin-right: 4px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
button.settings-cog {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
}
button.settings-cog svg { width: 20px; height: 20px; display: block; }
button.settings-cog:hover { background: var(--hover); color: var(--ink); }
.profile-wrap { position: relative; }
button.profile {
  display: flex;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  font-weight: 500;
}
button.profile:hover { background: transparent; }
.profile-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 5;
}
.profile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
}
.profile-menu button:hover { background: var(--hover); }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #242820;
  display: grid;
  place-items: center;
  flex: none;
}
.workspace-line .avatar { width: 26px; height: 26px; font-size: 12px; }
.avatar.fallback { color: #141800; background: #ccff33; font-weight: 700; }
.jobs th.when, .jobs td.when { white-space: nowrap; }
.jobs th.num, .jobs td.num { text-align: right; width: 5.5rem; font-variant-numeric: tabular-nums; }
.jobs td.num { color: var(--muted); font-weight: 500; }
.job-row td { vertical-align: middle; }
.jobs th.job-action, .jobs td.job-action { width: 1%; text-align: right; white-space: nowrap; }
.job-actions {
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.jobs td.reports-count { color: var(--ink); }
.jobs td.reports-count .count-mark { margin: 0; }
button.row-action { padding: 8px 16px; white-space: nowrap; }
button.row-action.secondary { font-weight: 600; }
.job-row.is-return, .report-row.is-return { animation: job-return 2s ease-out; }
@keyframes job-return {
  0% { background-color: rgba(204, 255, 51, 0.5); }
  100% { background-color: transparent; }
}
.picker-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: min(72vh, 640px);
  margin: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
}
.picker-dialog.job-picker {
  width: min(860px, calc(100vw - 32px));
}
.picker-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.picker-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.picker-bar strong { font-size: 16px; }
.confirm-dialog {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  text-align: center;
}
.confirm-dialog::backdrop { background: rgba(0, 0, 0, 0.78); }
.confirm-dialog .eyebrow { margin: 0 0 8px; }
.confirm-dialog h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.confirm-dialog p { margin: 0; }
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.confirm-actions button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  font-weight: 700;
}
.confirm-copy {
  width: 100%;
  min-height: 44px;
  margin: 10px 0 0;
}
.leave-dialog { width: min(460px, calc(100vw - 32px)); }
.access-dialog {
  width: min(580px, calc(100vw - 32px));
  text-align: left;
}
.access-dialog h2 {
  font-size: 24px;
  text-align: left;
}
.access-dialog label, .access-panel label { margin-top: 12px; }
.access-dialog .theme-help, .access-panel .theme-help { display: block; margin-top: 4px; }
.access-dialog input[type="number"][hidden],
.access-dialog .access-opt-body[hidden],
.access-panel input[type="number"][hidden],
.access-panel .access-opt-body[hidden] { display: none; }
.access-panel .confirm-actions[hidden] { display: none; }
.access-panel input.is-kept::placeholder { color: var(--ink); letter-spacing: 0.2em; opacity: 1; }
.access-inline-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.access-inline-actions[hidden] { display: none; }
.access-note[hidden] { display: none; }
.access-panel { gap: 0; }
.access-panel > .theme-help:first-child { margin: 0 0 4px; }
.access-panel .access-opt, .access-panel .access-state { margin-top: 14px; }
.access-panel .confirm-actions { margin-top: 16px; }
.access-panel .error:empty { display: none; }
.access-opt { margin-top: 16px; }
.access-opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.access-opt-head .access-state-label { margin: 0; }
.access-enable {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.access-enable input { width: auto; }
.access-opt-body { margin-top: 8px; }
.access-state { margin-top: 16px; }
.access-state-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}
.access-state-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.access-dialog .access-state-btn,
.access-panel .access-state-btn {
  width: 100%;
  min-height: 40px;
  margin: 0;
  font-weight: 700;
}
.access-state-btn.is-on {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}
.access-state-btn.is-on:hover { background: var(--lime-hover); color: var(--lime-ink); }
.access-state-btn.is-off {
  background: #3a1c18;
  color: #ff8a7a;
  border-color: #7a3a36;
}
.access-state-btn.is-off:hover { background: #4a2420; color: #ff8a7a; }
.leave-dialog h2 { font-size: 26px; }
.leave-discard {
  width: 100%;
  min-height: 44px;
  margin: 10px 0 0;
  font-weight: 700;
}
.picker-dialog .job-search { width: 100%; margin-top: 8px; }
.picker-list {
  max-height: 48vh;
  overflow: auto;
  margin-top: 8px;
}
.picker-jobs { margin: 0; }
.picker-jobs thead th { top: 0; }
.picker-jobs tr.picker-job { cursor: pointer; }
.picker-jobs tr.picker-job:hover { background: var(--hover); }
.picker-jobs tr.picker-job:focus {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}
.job-row img, .picker-jobs img, .job-fallback {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #0d0e0b;
  display: block;
}
.job-fallback {
  background: #242820;
}
.job-name { font-weight: 650; }
.report-row { cursor: pointer; }
.report-row:hover { background: var(--hover); }
.report-title { font-weight: 650; }
.mini-actions { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
button.mini {
  padding: 2px 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
button.mini:hover { background: var(--hover); }
.off-mark { margin-left: 8px; color: var(--danger); font-size: 12px; font-weight: 700; }
.off-mark.is-draft { color: #f0c66a; }
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 2px 0 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #14160f;
}
.bulk-bar[hidden] { display: none; }
.bulk-actions { display: flex; gap: 8px; margin-left: auto; }
.bulk-bar button.danger {
  background: var(--danger);
  color: #1c0d08;
  border: 0;
  font-weight: 700;
}
.bulk-bar button.danger:hover { background: #ff7458; }
.check-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.check-line.is-disabled { opacity: 0.4; cursor: not-allowed; }
.check-line.is-disabled input { cursor: not-allowed; outline: none; box-shadow: none; }
.reports input[type="checkbox"] { width: 16px; height: 16px; }
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(300px, 420px);
  gap: 0.75rem;
  align-items: start;
}
.builder-layout.is-folded { grid-template-columns: minmax(0, 1fr) auto; }
.builder-layout.is-folded .preview-column { display: none; }
.side-fold {
  position: sticky;
  top: 64px;
  width: 36px;
  min-width: 36px;
  height: 64px;
  padding: 0;
  display: grid;
  place-items: center;
  align-self: start;
  z-index: 2;
}
.side-fold svg { width: 18px; height: 18px; }
@media (min-width: 801px) {
  .builder-layout:not(.is-folded) {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    grid-template-rows: auto 1fr;
  }
  .builder-layout:not(.is-folded) > .builder-main { grid-column: 1; grid-row: 1 / span 2; }
  .builder-layout:not(.is-folded) > .side-fold {
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    width: 40px;
    height: 36px;
  }
  .builder-layout:not(.is-folded) > .preview-column { grid-column: 2; grid-row: 2; align-self: stretch; }
}
.preview-column {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}
.job-reports { padding: 0; display: grid; gap: 0; }
.job-reports[hidden] { display: none; }
.job-reports .panel-head.is-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
}
.job-reports .panel-head.is-toggle .disclosure { flex: 1; min-width: 0; }
.job-reports:has(#job-reports:not([hidden])) .panel-head.is-toggle {
  border-radius: 16px 16px 0 0;
}
.job-reports-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 14px;
}
.job-reports-list[hidden] { display: none; }
.job-report {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.job-report-title {
  margin: 0;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-report-dates {
  display: grid;
  gap: 2px;
  margin: 4px 0 0;
  font-size: 13px;
}
.job-report-actions { display: flex; gap: 8px; }
.job-report.is-current {
  padding: 10px;
  margin: 0 -4px;
  border: 1px solid var(--lime);
  border-radius: 12px;
  background: rgba(204, 255, 51, 0.08);
}
.job-report.is-current { border-top: 1px solid var(--lime); }
.this-mark {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}
button.mini:disabled,
button.mini:disabled:hover {
  opacity: 0.45;
  cursor: default;
  background: transparent;
}
.status-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.status-pill.is-live { color: #c6e36a; border-color: #3d4a1c; }
.status-pill.is-off { color: var(--danger); border-color: #5a3330; }
.status-pill.is-lock { color: #81baff; border-color: #2a3d55; }
.status-pill.is-draft { color: #f0c66a; border-color: #5a4a22; border-style: dashed; }
.manage-card { padding: 16px; }
.reports th.num, .reports td.num { text-align: right; width: 5.5rem; font-variant-numeric: tabular-nums; }
.reports td.num { color: var(--muted); font-weight: 500; }
.row-minis { margin-left: 0; }
button.mini.danger-mini { color: var(--danger); border-color: #5a3330; }
button.mini.danger-mini:hover { background: #2a1816; }
.side-panel.panel { padding: 0; }
.side-panel .panel-head.is-toggle {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
}
.side-panel:has(.side-body:not([hidden])) .panel-head.is-toggle {
  border-radius: 16px 16px 0 0;
}
.side-body {
  display: grid;
  gap: 0.7rem;
  padding: 0 14px 14px;
}
.side-body[hidden] { display: none; }
.report-meta.panel {
  position: sticky;
  top: calc(var(--top-h, 52px) + 8px);
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy side" "copy toggle";
  align-items: start;
  gap: 4px 10px;
  padding: 12px 8px 14px 16px;
  box-shadow: 0 -9px 0 0 var(--bg), 0 10px 18px -8px rgba(0, 0, 0, 0.6);
}
.report-meta-copy { grid-area: copy; }
.report-meta-side { grid-area: side; }
.live-toggle-row { display: flex; justify-content: flex-end; grid-area: toggle; align-self: end; }
.live-toggle-row:has(> .live-toggle[hidden]) { display: none; }
button.live-toggle { padding: 7px 14px; font-size: 13px; font-weight: 700; border-radius: 10px; }
button.live-toggle.danger { background: var(--danger); color: #1c0d08; border: 1px solid var(--danger); }
button.live-toggle.danger:hover { filter: brightness(1.1); }
button.live-toggle.is-enable { background: var(--lime); color: #141800; border-color: var(--lime); }
.report-meta-side { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.report-meta-side .state-badge { white-space: nowrap; font-size: 12px; }
.report-meta-side { margin: -6px -2px 0 0; }
.report-meta.panel.is-disabled {
  background: #2a1412;
  border-color: #7a3a36;
}
.report-meta-copy { display: grid; gap: 8px; min-width: 0; }
.meta-line { display: flex; align-items: flex-start; gap: 4px; min-width: 0; }
.meta-line.is-editing { display: grid; gap: 8px; }
.meta-actions { display: flex; gap: 8px; justify-content: flex-end; }
.meta-title, .meta-detail { margin: 0; flex: 0 1 auto; min-width: 0; max-width: calc(100% - 28px); }
.meta-title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.meta-detail {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}
.meta-title.is-empty, .meta-detail.is-empty { color: var(--muted); font-weight: 500; }
.meta-line button.section-edit { margin-top: 1px; }
.preview-panel {
  position: sticky;
  top: calc(var(--top-h, 52px) + var(--meta-h, 0px) + 20px);
  max-height: calc(100vh - var(--top-h, 52px) - var(--meta-h, 0px) - 32px);
  overflow: auto;
}
.report-state {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.report-state.is-live { border-color: #3d4a1c; }
.report-state.is-waiting { border-color: #5a4a22; }
.state-head { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.state-badge {
  padding: 3px 10px;
  border: 1px dashed #5a4a22;
  border-radius: 999px;
  color: #f0c66a;
  font-size: 13px;
  font-weight: 700;
}
.state-badge[hidden] { display: none; }
.state-badge.is-live { border-style: solid; border-color: var(--lime); color: var(--lime); background: rgba(204, 255, 51, 0.12); }
.state-badge.is-waiting { border-style: dashed; border-color: #5a4a22; color: #f0c66a; }
.save-state { color: var(--muted); font-size: 13px; }
.save-state.is-error { color: var(--danger); }
.state-head[hidden] { display: none; }
.live-link { display: grid; gap: 8px; }
.live-link[hidden] { display: none; }
input.live-url { width: 100%; font-size: 13px; color: #81baff; }
.live-link-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdf-slot { display: grid; }
.pdf-slot:empty, .pdf-slot:has(> span:only-child) { display: none; }
button.pdf-owner { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
button.pdf-owner svg { width: 16px; height: 16px; }
.state-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.state-actions:has(> button:not([hidden]) + button:not([hidden])) { grid-template-columns: 1fr 1fr; }
.state-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.state-tools.is-single { grid-template-columns: 1fr; }
.report-state button,
.report-state a.saved-open {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  justify-content: center;
}
.report-state button[hidden] { display: none; }
.report-state a.saved-open {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
}
.report-state a.saved-open:hover { background: var(--hover); color: var(--ink); }
.report-state button.publish-button { min-height: 48px; font-size: 16px; }
.report-state button.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.report-state button.with-icon svg,
.report-state a.saved-open svg { width: 16px; height: 16px; flex: 0 0 auto; }
.live-dialog input.live-url { margin: 4px 0 2px; }
.live-dialog .confirm-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live-dialog .confirm-actions > * { width: 100%; justify-content: center; margin: 0; padding-left: 8px; padding-right: 8px; white-space: nowrap; font-size: 14px; }
.live-dialog .confirm-actions a.saved-open {
  padding: 12px 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
}
.live-dialog .confirm-actions a.saved-open:hover { background: var(--hover); color: var(--ink); }
.preview-panel .sheet { max-height: calc(100vh - 48px); overflow: auto; }
.preview-dock {
  cursor: pointer;
  border-radius: 16px;
}
.preview-dock:hover .sheet { box-shadow: 0 0 0 1px var(--line); }
.preview-dock:focus-visible {
  outline: 2px solid #81baff;
  outline-offset: 3px;
}
.bucket {
  min-height: 84px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.bucket.is-over { border-color: var(--lime); background: rgba(204, 255, 51, 0.06); }
.bucket-item { position: relative; flex: none; }
button.bucket-chip {
  width: 72px;
  min-height: 72px;
  padding: 0;
  border-radius: 10px;
  background: var(--input);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}
button.bucket-chip:hover { background: var(--hover); }
button.bucket-chip img { width: 72px; height: 72px; object-fit: cover; display: block; }
button.bucket-chip.is-text {
  width: 168px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #f0c66a;
  background: #23261f;
  text-align: left;
}
button.bucket-chip.is-text:hover { background: #2c3027; }
button.bucket-chip.is-section { border-left-color: var(--lime); }
button.bucket-chip.is-break { border-left-color: var(--muted); border-style: dashed; border-left-style: solid; }
.bucket-kind {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bucket-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.unused-block, .bucket { overflow: visible; }
.card-pop.bucket-pop {
  top: auto;
  bottom: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 148px;
}
.lane-label, .demarc { grid-column: 1 / -1; }
.lane-label {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  list-style: none;
}
.demarc {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0.4rem 0;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
}
.demarc::before, .demarc::after { content: ""; height: 1px; flex: 1; background: var(--lime); }
.section-card {
  grid-column: 1 / -1;
  display: block;
  padding: 14px 52px 14px 16px;
  border: 0;
  border-left: 4px solid var(--lime);
  background: linear-gradient(90deg, rgba(204, 255, 51, 0.14), transparent 70%);
  cursor: grab;
}
.break-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 40px 6px 12px;
  border: 1px dashed var(--line);
  background: transparent;
  cursor: grab;
}
.break-card.is-picked { border-color: var(--lime); background: rgba(204, 255, 51, 0.06); }
.break-rule {
  flex: 1;
  height: 0;
  border-top: 1px dashed var(--muted);
}
.break-label {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.break-card > button.card-menu {
  background: transparent;
  color: var(--muted);
}
.break-card > button.card-menu:hover { background: var(--hover); color: var(--ink); }
.section-card.is-editing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding-right: 16px;
  cursor: auto;
}
.section-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.section-lines { min-width: 0; max-width: calc(100% - 36px); }
.section-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.section-name.is-empty { color: var(--muted); font-weight: 500; }
.section-line {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
}
button.section-edit {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
button.section-edit svg { width: 16px; height: 16px; display: block; margin: 0 auto; }
button.section-edit:hover { background: var(--hover); color: var(--ink); }
.section-card > button.card-menu {
  background: transparent;
  color: var(--muted);
}
.section-card > button.card-menu:hover { background: var(--hover); color: var(--ink); }
.section-actions { grid-column: 2; grid-row: 1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
button.section-cancel {
  flex: none;
  width: auto;
  padding: 6px 14px;
  border-radius: 8px;
  background: #2a2d26;
  color: #c5c9bb;
  font-size: 14px;
  font-weight: 650;
}
button.section-cancel:hover { background: #34382e; color: var(--ink); }
.section-detail {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
}
button.section-tool { width: auto; padding: 6px 12px; font-size: 14px; }
.section-kicker {
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-title {
  grid-column: 1;
  grid-row: 1;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
button.section-save {
  flex: none;
  width: auto;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
}
button.card-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
button.card-menu:hover { background: rgba(0, 0, 0, 0.82); }
.card-pop {
  position: absolute;
  top: 40px;
  right: 8px;
  z-index: 5;
  min-width: 196px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #242820;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.card-pop button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.card-pop button:hover { background: var(--hover); }
.sheet .section-blurb { color: var(--report-muted, #3c4034); }
.note-card {
  grid-column: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  background: var(--input);
}
.note-face {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 100cqi;
  max-height: none;
  overflow: auto;
  box-sizing: border-box;
  padding: 40px 10px 10px;
  border-radius: 8px;
  background: #242820;
}
.note-card.is-wide { grid-column: 1 / -1; }
.note-card.is-wide .note-face { min-height: 120px; }
.note-card.is-on .note-face { box-shadow: 0 0 0 2px var(--lime); }
.note-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
}
.note-card .note-when {
  position: static;
  margin-top: 8px;
  padding: 0;
  background: none;
  color: #c5c9bb;
}
.card[draggable="true"] { cursor: grab; }
.card input, .card textarea { cursor: text; }
.note-card.is-custom .note-face {
  overflow: hidden;
}
.note-card .section-edit {
  position: absolute;
  top: 6px;
  right: 40px;
}
.note-body.is-empty { color: var(--muted); }
.note-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: calc(1.45em + 22px);
  margin: 0.4rem 0 0;
  padding: 0 12px;
  border: 1px dashed var(--report-rule, var(--line));
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--report-muted, var(--muted));
}
.note-tag span { font-size: 13px; font-weight: 650; }
.note-tag svg { width: 15px; height: 15px; flex: none; }
.note-tag.is-custom {
  border-style: solid;
  border-color: currentColor;
  color: var(--report-link, var(--lime));
}
.note-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.note-actions .section-save,
.note-actions .section-cancel {
  padding: 5px 12px;
  font-size: 13px;
}
.note-field {
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  resize: none;
  background: transparent;
  color: #f5f7ef;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
}
.note-field:focus { outline: none; }
.note-field::placeholder { color: #8b9080; }
.card.is-unused {
  opacity: 0.34;
  filter: grayscale(1) brightness(0.72);
}
.card.is-picked { outline: 2px solid #fff; outline-offset: 3px; }
.card.is-lifted { display: none; }
.grid.is-sorting { padding-bottom: 36px; }
.drop-slot {
  min-height: 168px;
  border: 2px dashed var(--lime);
  border-radius: 12px;
  background: rgba(204, 255, 51, 0.1);
  list-style: none;
}
.drop-slot.is-section { grid-column: 1 / -1; min-height: 72px; }
.pick { position: relative; }
.card.is-on .pick { box-shadow: 0 0 0 2px var(--lime); border-radius: 12px; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid.cols-1, .grid.cols-full { grid-template-columns: minmax(0, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid.cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid.cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid .card { min-width: 0; }
.designer-grid {
  padding: 14px;
  border: 1px solid var(--report-rule, var(--line));
  border-radius: 18px;
  background: var(--report-bg, transparent);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.designer-grid .card {
  background: var(--report-note, var(--input));
  border-color: var(--report-rule, var(--line));
  color: var(--report-ink, var(--ink));
}
.designer-grid .note-face {
  background: var(--report-note, #242820);
}
.designer-grid .note-field,
.designer-grid .section-title {
  color: var(--report-ink, var(--ink));
}
.designer-grid .note-field::placeholder,
.designer-grid .caption-field::placeholder {
  color: var(--report-muted, #8b9080);
}
.designer-grid .note-when,
.designer-grid .shot-stamp,
.designer-grid .section-detail {
  color: var(--report-muted, var(--muted));
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem;
  background: var(--input);
}
button.pick {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  color: #fff;
}
button.pick:hover { background: transparent; }
.card.is-on button.pick { box-shadow: 0 0 0 2px var(--lime); }
.note-card .note-pick {
  min-height: 148px;
  padding: 28px 10px 22px;
  text-align: left;
  color: var(--ink);
  font-weight: 500;
  background: #242820;
}
.note-when { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.note-body {
  display: block;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.35;
}
.preview-flow, .report-flow { display: grid; gap: 10px; }
.photo-row {
  display: grid;
  gap: 8px;
  align-items: stretch;
}
.photo-row.cols-1 { grid-template-columns: 1fr; }
.photo-row.cols-2 { grid-template-columns: 1fr 1fr; }
.photo-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.photo-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.photo-row.cols-5 { grid-template-columns: repeat(5, 1fr); }
.photo-row.cols-6 { grid-template-columns: repeat(6, 1fr); }
.photo-row.cols-7 { grid-template-columns: repeat(7, 1fr); }
.photo-row.cols-8 { grid-template-columns: repeat(8, 1fr); }
.photo-row.cols-full { grid-template-columns: 1fr; }
.photo-row figure { margin: 0; min-width: 0; }
.photo-row .note-tile-wrap {
  display: flex;
  min-height: 0;
}
.photo-row .note-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  flex: 1;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 1;
  overflow: auto;
  box-sizing: border-box;
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  background: var(--report-note, rgba(255, 255, 255, 0.08));
  color: var(--report-ink, inherit);
  border: 1px solid var(--report-rule, rgba(245, 247, 239, 0.22));
  box-shadow: inset 3px 0 0 var(--report-link, #d7e66a);
  container-type: inline-size;
}
.photo-row.cols-1 .note-tile,
.photo-row.cols-full .note-tile,
.photo-row.is-wide-notes .note-tile {
  aspect-ratio: auto;
  min-height: 0;
  padding: 14px 18px 14px 20px;
}
.photo-row.is-wide-notes {
  grid-template-columns: 1fr;
}
.sheet .note-tile-body,
.report-view .note-tile-body,
.note-tile-body {
  margin: 0;
  white-space: pre-wrap;
  font-weight: 550;
  font-size: clamp(9px, 11cqi, 30px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.photo-row.cols-1 .note-tile-body,
.photo-row.cols-full .note-tile-body,
.photo-row.is-wide-notes .note-tile-body { font-size: 24px; }
.sheet .photo-row .note-tile { padding: 7% 7% 7% 8%; overflow: hidden; }
.sheet .photo-row .note-tile-body { font-size: clamp(7px, 11.5cqi, 28px); }
.sheet .photo-row.cols-1 .note-tile,
.sheet .photo-row.cols-full .note-tile,
.sheet .photo-row.is-wide-notes .note-tile { padding: 1.6% 2.4% 1.6% 2.8%; }
.sheet .photo-row.cols-1 .note-tile-body,
.sheet .photo-row.cols-full .note-tile-body,
.sheet .photo-row.is-wide-notes .note-tile-body { font-size: clamp(9px, 2.6cqi, 22px); }
.photo-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.photo-row.cols-full img {
  aspect-ratio: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #080807;
}
.photo-row .report-photo { margin: 0; }
.photo-row .report-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  max-height: none;
}
.photo-row.cols-full .report-photo img {
  aspect-ratio: auto;
  max-height: 70vh;
  object-fit: contain;
}
.company-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 13px;
}
.company-header p { margin: 0; }
.company-brand { display: grid; gap: 2px; min-width: 0; }
.company-logo {
  max-height: 56px;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.company-name { font-weight: 700; font-size: 15px; }
.sheet .company-header { gap: 10px; margin-bottom: 10px; font-size: 10px; line-height: 1.35; }
.sheet .company-header p { margin: 0; }
.sheet .company-brand { gap: 1px; }
.sheet .company-name { font-size: 12px; }
.sheet .company-logo { max-height: 52px; max-width: 120px; }
.preview-dialog .sheet .company-header { gap: 14px; font-size: 13px; }
.preview-dialog .sheet .company-name { font-size: 16px; }
.preview-dialog .sheet .company-logo { max-height: 76px; max-width: 180px; }
.report-view .company-header { gap: 18px; margin-bottom: 20px; font-size: 15px; line-height: 1.4; }
.report-view .company-brand { gap: 3px; }
.report-view .company-name { font-size: 19px; }
.report-view .company-logo { max-height: 104px; max-width: 240px; }
.logo-field { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.logo-preview {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080807;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-preview img {
  max-height: 72px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.logo-caption { margin: 0; font-size: 12px; }
.logo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet .company-header a,
.report-view .company-header a { color: var(--report-link, #1a1c16); }
.theme-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}
.theme-label { color: var(--muted); }
.theme-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.theme-picker { display: grid; gap: 8px; }
button.theme-current {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
}
button.theme-current:hover { background: var(--hover); }
button.theme-current .theme-swatch {
  width: 52px;
  height: 34px;
  flex: none;
  font-size: 14px;
}
button.theme-current .theme-name { flex: 1; min-width: 0; }
.theme-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.theme-change svg { width: 16px; height: 16px; display: block; }
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.theme-grid[hidden],
.theme-help[hidden] { display: none; }
button.theme-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
}
button.theme-card:hover { background: var(--hover); }
button.theme-card.is-on {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}
.theme-swatch {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.theme-name { font-size: 13px; }
.format-panel select,
.access-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--input);
  color: var(--ink);
  font: inherit;
}
.is-report-theme {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
.is-report-theme.is-light-theme input::placeholder,
.is-report-theme.is-light-theme textarea::placeholder {
  color: var(--muted);
}
.sheet,
.report-view {
  --report-bg: #10110e;
  --report-ink: #f5f7ef;
  --report-muted: #c5c9bb;
  --report-link: #d7e66a;
  --report-rule: rgba(245, 247, 239, 0.28);
  --report-note: rgba(255, 255, 255, 0.08);
  background: var(--report-bg);
  color: var(--report-ink);
}
.sheet h3,
.sheet .preview-section,
.sheet .company-name,
.report-view h1,
.report-view .report-section,
.report-view .company-name { color: var(--report-ink); }
.sheet .sheet-empty,
.sheet .photo-when,
.sheet .section-blurb,
.sheet figcaption,
.report-view .muted,
.report-view .caption,
.report-view .photo-when,
.report-view .section-blurb { color: var(--report-muted); }
.sheet .preview-note,
.report-view .report-note {
  background: var(--report-note);
  color: var(--report-ink);
}
.format-fields { display: grid; gap: 10px; }
.format-fields.format-split { gap: 12px; }
.stamp-line { flex-wrap: wrap; align-items: center; }
.photo-when,
.shot-stamp {
  display: block;
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-stamp {
  margin: 4px 2px 0;
  color: var(--muted);
}
.format-kicker {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.format-panel { display: grid; gap: 10px; }
.defaults-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.password-actions { margin-top: 8px; justify-content: flex-start; }
.settings-card { max-width: 560px; }
.preview-note, .report-note {
  margin: 0.6rem 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--report-note, #f4f5ef);
  color: var(--report-ink, #1a1c16);
  white-space: pre-wrap;
}
.card img, .report-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #080807;
  display: block;
}
.pick .badge, .note-card .badge {
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 14px;
  font-weight: 700;
}
.pick .badge {
  position: absolute;
  top: 8px;
  left: 8px;
}
td.when, th.when { white-space: nowrap; }
.reports td.count, .reports th.count { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; padding-right: 2rem; }
.caption-field { margin-top: 0.4rem; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sheet {
  border-radius: 12px;
  padding: 14px;
  max-height: 420px;
  overflow: auto;
}
.sheet h3 { margin: 0 0 8px; font-size: 18px; }
.sheet p { margin: 0 0 10px; }
.sheet-empty { color: var(--report-muted, #5c6154); }
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.preview-grid figure { margin: 0; }
.preview-grid img { border-radius: 6px; }
.preview-grid figcaption { margin-top: 4px; font-size: 12px; color: var(--report-muted, #3d4236); }
.report-photo img { aspect-ratio: auto; object-fit: contain; max-height: 70vh; background: #080807; }
.check { display: flex; gap: 0.4rem; align-items: center; margin-bottom: 0.4rem; color: var(--muted); }
.check input { width: auto; }
.report-view { max-width: 1240px; margin: 0 auto; }
.report-photo { margin: 1.2rem 0; }
.caption { margin-top: 0.35rem; }
.sticky {
  position: sticky;
  bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sticky-actions { display: flex; gap: 0.6rem; align-items: center; }
.preview-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.preview-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.preview-dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #f5f7ef;
}
.preview-dialog-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
button.preview-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 40px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #11140d;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
button.preview-close:hover { filter: brightness(1.08); background: var(--lime); }
button.preview-close svg { width: 18px; height: 18px; flex: none; }
.preview-dialog .sheet { max-height: calc(100vh - 96px); }
.link {
  word-break: break-all;
  background: var(--input);
  color: #81baff;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
}
a.saved-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  text-decoration: none;
}
a.saved-open svg {
  width: 16px;
  height: 16px;
}
a.saved-open:hover { background: var(--lime-hover); color: var(--lime-ink); }
.people { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.people li { margin: 0.15rem 0; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .builder-layout,
  .builder-layout.is-folded { grid-template-columns: 1fr auto; }
  .builder-layout .preview-column { grid-column: 1 / -1; }
  .side-fold { height: 40px; top: 56px; }
  .preview-panel { position: static; max-height: none; }
  .report-meta.panel { position: relative; top: auto; box-shadow: none; }
  .top { flex-wrap: wrap; padding: 8px 14px; }
  .brand-title { font-size: 15px; }
}

.report-hero {
  --hero-glow: color-mix(in srgb, var(--report-link) 24%, transparent);
  position: relative;
  margin: 0 0 14px;
  padding: 26px 28px 28px;
  overflow: hidden;
  border: 1px solid var(--report-rule);
  border-radius: 22px;
  background:
    radial-gradient(90% 120% at 100% 0%, var(--hero-glow) 0%, transparent 60%),
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--report-link) 10%, transparent) 0%, transparent 70%),
    linear-gradient(160deg, var(--report-note), transparent 80%);
}
.report-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--report-link) 0%, color-mix(in srgb, var(--report-link) 35%, transparent) 60%, transparent 100%);
}
.report-hero p { margin: 0; }
.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.hero-top .company-header { margin: 0; align-items: flex-start; }
.hero-stamp {
  display: grid;
  gap: 2px;
  align-content: start;
  margin-left: auto;
  font-size: 13px;
  text-align: right;
  flex: none;
}
.company-address { margin: 4px 0 0; font-style: normal; }
.company-address .address-line { display: block; }
.company-contacts { margin-top: 4px; }
.company-contacts p { margin: 0; }
.company-contacts a { color: var(--report-link); }
.report-hero .hero-date {
  color: var(--report-muted);
  font-size: 15px;
  font-weight: 600;
}
.report-view .hero-stamp { gap: 3px; font-size: 15px; line-height: 1.4; }
.report-view .report-hero .hero-date { font-size: 19px; }
.sheet .company-address,
.sheet .company-contacts { margin-top: 2px; }
.sheet .hero-stamp { gap: 1px; font-size: 10px; line-height: 1.35; }
.sheet .report-hero .hero-date { font-size: 12px; }
.preview-dialog .sheet .hero-stamp { font-size: 13px; }
.preview-dialog .sheet .report-hero .hero-date { font-size: 16px; }
.hero-main {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--report-rule);
}
.report-hero .hero-job {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 11px;
  border: 1px solid var(--report-rule);
  border-radius: 999px;
  color: var(--report-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.report-view .hero-title,
.sheet .hero-title,
.hero-title {
  margin: 0;
  color: var(--report-ink);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.report-hero .hero-lead {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--report-muted);
  font-size: 17px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--report-rule);
  border-radius: 14px;
  background: color-mix(in srgb, var(--report-bg) 55%, transparent);
  color: var(--report-muted);
  font-size: 13px;
  font-weight: 600;
}
.hero-stats b {
  color: var(--report-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.section-block {
  position: relative;
  margin: 22px 0 6px;
  padding: 18px 22px 18px 26px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--report-link) 30%, var(--report-rule));
  border-radius: 18px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--report-link) 16%, transparent) 0%, transparent 70%);
}
.report-flow > .section-block:first-child { margin-top: 0; }
.section-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--report-link);
}
.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-block .report-section {
  margin: 0;
  color: var(--report-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.section-block .section-blurb {
  max-width: 62ch;
  margin: 6px 0 0;
  color: var(--report-muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  white-space: pre-wrap;
}
.section-text { min-width: 0; }

.report-view .report-flow { gap: 14px; }
.report-view .photo-row { gap: 12px; }
.report-view .photo-row img {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.report-view .photo-row figure:hover img {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}
.report-view.is-light-theme .photo-row img { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12); }
.report-view.is-light-theme .photo-row figure:hover img { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18); }
.report-view .photo-row .note-tile { border-radius: 14px; }
.report-view .caption {
  margin-top: 8px;
  color: var(--report-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.sheet .report-hero { margin-bottom: 6px; padding: 10px 12px 12px; border-radius: 12px; }
.sheet .report-hero::before { height: 3px; }
.sheet .hero-top { gap: 8px; }
.sheet .hero-main { margin-top: 10px; padding-top: 9px; }
.sheet .report-hero .hero-job { margin-bottom: 5px; padding: 1px 6px; font-size: 6px; }
.sheet .hero-title { font-size: 14px; }
.sheet .report-hero .hero-lead { margin-top: 5px; font-size: 9px; }
.sheet .hero-stats { gap: 4px; margin-top: 8px; }
.sheet .hero-stats li { gap: 3px; padding: 3px 6px; border-radius: 6px; font-size: 7px; }
.sheet .hero-stats b { font-size: 10px; }
.sheet .section-block { margin: 10px 0 2px; padding: 7px 10px 7px 12px; border-radius: 9px; }
.sheet .section-block::before { width: 3px; }
.sheet .section-head { gap: 7px; }
.sheet .section-block .report-section { font-size: 11px; }
.sheet .section-block .section-blurb { margin-top: 3px; font-size: 8px; }
.preview-dialog .sheet .report-hero { margin-bottom: 10px; padding: 18px 20px 20px; border-radius: 16px; }
.preview-dialog .sheet .hero-main { margin-top: 18px; padding-top: 16px; }
.preview-dialog .sheet .report-hero .hero-job { padding: 3px 9px; font-size: 10px; }
.preview-dialog .sheet .hero-title { font-size: 26px; }
.preview-dialog .sheet .report-hero .hero-lead { font-size: 14px; }
.preview-dialog .sheet .hero-stats li { padding: 6px 10px; font-size: 11px; }
.preview-dialog .sheet .hero-stats b { font-size: 16px; }
.preview-dialog .sheet .section-block { margin: 16px 0 4px; padding: 12px 16px 12px 18px; border-radius: 14px; }
.preview-dialog .sheet .section-head { gap: 12px; }
.preview-dialog .sheet .section-block .report-section { font-size: 18px; }
.preview-dialog .sheet .section-block .section-blurb { font-size: 12px; }
@media (max-width: 640px) {
  .report-hero { padding: 20px 18px 22px; }
  .hero-top { flex-direction: column; }
  .hero-stamp { margin-left: 0; text-align: left; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes report-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  .report-view .report-hero { animation: report-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @supports (animation-timeline: view()) {
    .report-view .section-block,
    .report-view .photo-row > * {
      animation: report-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@media print {
  .report-view .photo-row img { box-shadow: none; }
  .report-view .section-block,
  .report-view .photo-row > * { animation: none; }
  .section-block, .photo-row > * { break-inside: avoid; }
  .photo-viewer { display: none; }
}

button.report-photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}
button.report-photo-open:hover { background: transparent; }

body.has-viewer { overflow: hidden; }
.photo-viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 7, 6, 0.96);
  color: #f4f5ef;
}
.photo-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.photo-viewer::backdrop { background: rgba(0, 0, 0, 0.7); }
.photo-viewer p { margin: 0; }
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.viewer-count {
  color: #b9bdb0;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
button.viewer-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f5ef;
  font-size: 14px;
  font-weight: 650;
}
button.viewer-close:hover { background: rgba(255, 255, 255, 0.16); }
button.viewer-close svg { width: 18px; height: 18px; }
.viewer-bar-actions { display: flex; align-items: center; gap: 8px; }
a.viewer-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f5ef;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
a.viewer-download:hover { background: rgba(255, 255, 255, 0.16); }
a.viewer-download svg { width: 18px; height: 18px; }
.viewer-stage > a.photo-download { display: none; }
.photo-viewer.is-full .viewer-stage > a.photo-download {
  display: grid;
  top: 14px;
  right: 124px;
  bottom: auto;
  width: 40px;
  height: 40px;
  z-index: 2;
}

.report-photo { position: relative; }
a.photo-download {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.15s ease, background 0.15s ease;
}
a.photo-download:hover, a.photo-download:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.8); }
a.photo-download svg { width: 18px; height: 18px; }
.report-photo:has(figcaption) a.photo-download { bottom: auto; top: 10px; }

.hero-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.hero-line .hero-title { flex: 1 1 260px; min-width: 0; }
.hero-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}
.hero-side > span:empty { display: none; }
.hero-line .hero-stats,
.sheet .hero-line .hero-stats { margin: 0; }
a.download-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--report-rule);
  border-radius: 999px;
  background: var(--report-ink);
  color: var(--report-bg);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
a.download-all:hover { opacity: 0.9; }
a.download-all svg { width: 18px; height: 18px; }
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.download-actions > span:empty { display: none; }
button.pdf-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--report-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--report-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
button.pdf-button svg { width: 18px; height: 18px; flex: none; }
button.pdf-button:hover { background: color-mix(in srgb, var(--report-ink) 10%, transparent); opacity: 1; }
button.pdf-button:disabled { opacity: 1; }
button.pdf-button.is-busy { cursor: progress; border-color: var(--report-link); }
.download-selected-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.download-selected-group[hidden] { display: none; }
.download-selected-group a.download-selected {
  margin-top: 0;
  border-color: transparent;
  background: var(--report-link);
  color: var(--report-bg);
}
button.download-clear {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--report-rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--report-bg) 70%, transparent);
  color: var(--report-ink);
}
button.download-clear:hover { background: var(--report-bg); }
button.download-clear svg { width: 16px; height: 16px; }
.download-dock { display: contents; }
.download-selected-group.is-floating {
  position: fixed;
  top: 16px;
  right: max(16px, calc((100vw - 1240px) / 2 + 1.25rem));
  z-index: 40;
  margin-top: 0;
  padding: 6px;
  border: 1px solid var(--report-rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--report-bg) 88%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

button.photo-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: transparent;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
button.photo-select svg { width: 18px; height: 18px; }
button.photo-select:hover { background: rgba(0, 0, 0, 0.6); color: rgba(255, 255, 255, 0.7); }
.report-photo:hover button.photo-select,
button.photo-select:focus-visible,
.is-selecting button.photo-select { opacity: 1; }
button.photo-select[aria-checked="true"] {
  border-color: var(--report-link);
  background: var(--report-link);
  color: var(--report-bg);
}
.report-photo.is-selected img { outline: 3px solid var(--report-link); outline-offset: -3px; }
@media (hover: none) {
  button.photo-select { opacity: 1; }
}
.no-downloads .report-photo img, .photo-viewer img { -webkit-user-drag: none; -webkit-touch-callout: none; }

@media print {
  a.photo-download, .download-actions, button.photo-select { display: none; }
}
.viewer-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 72px;
}
.viewer-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: filter 0.2s ease;
}
.viewer-image.is-loading { filter: blur(6px); }
.viewer-image { cursor: zoom-in; }
button.viewer-full-close { display: none; }
.photo-viewer.is-full { background: #000; }
.photo-viewer.is-full[open] { grid-template-rows: minmax(0, 1fr); }
.photo-viewer.is-full .viewer-bar,
.photo-viewer.is-full .viewer-caption,
.photo-viewer.is-full .viewer-strip { display: none; }
.photo-viewer.is-full .viewer-stage { padding: 0; }
.photo-viewer.is-full .viewer-image { width: 100%; height: 100%; border-radius: 0; cursor: zoom-out; }
.photo-viewer.is-full button.viewer-full-close {
  display: inline-flex;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
}
button.viewer-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(20, 22, 19, 0.75);
  color: #f4f5ef;
  transform: translateY(-50%);
}
button.viewer-nav:hover { background: rgba(255, 255, 255, 0.18); }
button.viewer-nav:disabled, button.viewer-nav:disabled:hover {
  background: rgba(20, 22, 19, 0.4);
  color: rgba(255, 255, 255, 0.25);
}
button.viewer-nav svg { width: 26px; height: 26px; }
button.viewer-nav.is-prev { left: 14px; }
button.viewer-nav.is-next { right: 14px; }
.viewer-caption {
  padding: 10px 18px 0;
  color: #e6e8df;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.viewer-strip {
  display: flex;
  gap: 8px;
  padding: 12px 18px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.viewer-strip::before, .viewer-strip::after { content: ""; flex: 1 0 0; }
button.viewer-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #1b1d19;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
button.viewer-thumb:hover { background: #1b1d19; opacity: 0.9; }
button.viewer-thumb.is-current { border-color: var(--report-link, #81baff); opacity: 1; }
button.viewer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .viewer-stage { padding: 0 8px; }
  button.viewer-nav { width: 42px; height: 42px; }
  button.viewer-nav.is-prev { left: 6px; }
  button.viewer-nav.is-next { right: 6px; }
  button.viewer-thumb { width: 52px; height: 52px; }
}
