:root {
  --bg: #f4f4f6;
  --panel: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --soft: #f8f8fa;
  --violet: #635bff;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(99,91,255,.08), transparent 30rem),
    radial-gradient(circle at 100% 8%, rgba(14,165,233,.07), transparent 30rem),
    var(--bg);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(99,91,255,.2); outline-offset: 1px; }
::selection { color: white; background: var(--violet); }

.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.78); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 15px; background: #18181b; color: white; box-shadow: 0 10px 24px rgba(24,24,27,.15); }
.brand-name { font-weight: 850; letter-spacing: -.03em; }
.brand-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #f0edff; color: #6d28d9; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.btn { border: 0; border-radius: 12px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 750; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #18181b; color: white; box-shadow: 0 10px 22px rgba(24,24,27,.14); }
.btn-primary:hover { background: #2f2f33; }
.btn-secondary { background: white; color: #3f3f46; border: 1px solid #e4e4e7; }
.btn-secondary:hover { background: #fafafa; border-color: #d4d4d8; }
.btn-violet { background: #f0edff; color: #6d28d9; }
.btn-violet:hover { background: #e8e2ff; }
.btn-danger { background: #fff; color: #dc2626; border: 1px solid #fee2e2; }
.btn-danger:hover { background: #fef2f2; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 12px; border: 1px solid #e4e4e7; background: white; color: #71717a; display: grid; place-items: center; transition: .16s ease; }
.icon-btn:hover { color: #18181b; border-color: #d4d4d8; background: #fafafa; }
.icon-btn.danger:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }

.app-grid { display: grid; grid-template-columns: 250px 380px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar { position: relative; border-right: 1px solid var(--line); background: #f7f7f8; padding: 16px; }
.editor { border-right: 1px solid var(--line); background: rgba(255,255,255,.74); }
.preview-area { height: calc(100vh - 64px); overflow: auto; padding: 38px; background: rgba(244,244,246,.55); }

.new-report { width: 100%; padding: 12px; border-radius: 15px; }
.section-label { display: flex; align-items: center; justify-content: space-between; margin: 24px 4px 10px; color: #a1a1aa; font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.report-list { max-height: calc(100vh - 244px); overflow: auto; padding-right: 3px; scrollbar-width: thin; }
.report-item { width: 100%; cursor: pointer; padding: 12px; margin-bottom: 8px; border: 1px solid transparent; border-radius: 16px; background: transparent; text-align: left; transition: .16s ease; }
.report-item:hover { background: rgba(255,255,255,.78); border-color: #e4e4e7; }
.report-item.active { background: white; border-color: #d4d4d8; box-shadow: 0 2px 8px rgba(24,24,27,.04); }
.report-item-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.report-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; }
.report-item-sub { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.color-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; flex: 0 0 auto; }
.report-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: #a1a1aa; font-size: 10px; }
.report-delete { opacity: 0; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #d4d4d8; }
.report-item:hover .report-delete { opacity: 1; }
.report-delete:hover { color: #dc2626; background: #fef2f2; }
.privacy-card { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.privacy-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; }
.privacy-title svg { color: #059669; }
.privacy-text { margin: 6px 0 0; color: #a1a1aa; font-size: 10px; line-height: 1.5; }

.editor-head { position: sticky; top: 64px; z-index: 20; padding: 15px 16px 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); backdrop-filter: blur(14px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #f4f4f5; }
.tab { border: 0; border-radius: 9px; padding: 8px; display: flex; justify-content: center; align-items: center; gap: 7px; background: transparent; color: #71717a; font-size: 14px; font-weight: 720; }
.tab.active { background: white; color: #18181b; box-shadow: 0 2px 8px rgba(24,24,27,.06); }
.editor-meta { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; color: #a1a1aa; font-size: 12px; }
.tool-row { display: flex; gap: 6px; }
.editor-scroll { height: calc(100vh - 182px); overflow: auto; padding: 18px 16px 80px; scrollbar-width: thin; }
.editor-section { margin-bottom: 28px; }
.editor-section-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.editor-section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 850; }
.editor-section-title svg { color: #a1a1aa; }
.small-add { border: 0; border-radius: 8px; padding: 6px 8px; background: transparent; color: #6d28d9; font-size: 12px; font-weight: 800; }
.small-add:hover { background: #f5f3ff; }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; margin-bottom: 6px; color: #52525b; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.input { width: 100%; border: 1px solid #e4e4e7; border-radius: 12px; background: white; padding: 11px 12px; color: #18181b; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: #a1a1aa; box-shadow: 0 0 0 3px rgba(99,91,255,.1); }
textarea.input { min-height: 92px; resize: vertical; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-editor { margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(250,250,250,.72); }
.row { display: flex; gap: 8px; align-items: flex-start; }
.row .input { flex: 1; min-width: 0; }
.compact-textarea { margin-top: 8px; min-height: 76px !important; font-size: 13px; }
.select-wrap { position: relative; margin-top: 8px; }
.select-wrap select { appearance: none; padding-right: 36px; font-size: 13px; font-weight: 700; }
.select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #a1a1aa; }
.metric-row { display: grid; grid-template-columns: 1.2fr .7fr 1fr 38px; gap: 7px; margin-bottom: 8px; }
.metric-row .input { min-width: 0; font-size: 13px; }
.step-index { width: 25px; height: 25px; margin-top: 10px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #f4f4f5; color: #71717a; font-size: 11px; font-weight: 800; }
.empty { width: 100%; padding: 28px 16px; border: 1px dashed #d4d4d8; border-radius: 16px; background: rgba(250,250,250,.7); text-align: center; }
.empty-icon { width: 42px; height: 42px; margin: 0 auto; display: grid; place-items: center; border-radius: 13px; background: white; color: #71717a; box-shadow: 0 3px 12px rgba(24,24,27,.06); }
.empty-title { margin-top: 10px; font-size: 14px; font-weight: 800; }
.empty-text { max-width: 280px; margin: 5px auto 0; color: #71717a; font-size: 12px; line-height: 1.5; }
.screenshot-card { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fafafa; }
.screenshot-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.screenshot-foot { display: flex; gap: 8px; padding: 9px; }

.template-option { width: 100%; margin-bottom: 8px; padding: 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; background: white; text-align: left; transition: .16s ease; }
.template-option:hover { border-color: #d4d4d8; background: #fafafa; }
.template-option.active { border-color: #18181b; background: #18181b; color: white; }
.template-title { font-size: 14px; font-weight: 850; }
.template-desc { margin-top: 3px; color: #71717a; font-size: 12px; }
.template-option.active .template-desc { color: #a1a1aa; }
.color-editor { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 16px; }
.color-editor input[type=color] { width: 54px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.swatch { aspect-ratio: 1; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: .15s ease; }
.swatch:hover { transform: scale(1.06); }
.logo-box { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fafafa; }
.logo-box img { max-width: 180px; height: 56px; object-fit: contain; object-position: left; }
.logo-actions { display: flex; gap: 8px; margin-top: 14px; }
.pro-card { padding: 20px; border-radius: 24px; color: white; background: linear-gradient(145deg,#18181b,#2d2d31); box-shadow: 0 18px 38px rgba(24,24,27,.12); }
.pro-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.1); }
.pro-card h3 { margin: 15px 0 0; font-size: 18px; }
.pro-card p { margin: 8px 0 0; color: #a1a1aa; font-size: 13px; line-height: 1.6; }
.pro-card .btn { width: 100%; margin-top: 16px; background: white; color: #18181b; }

.preview-label { max-width: 860px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; color: #a1a1aa; font-size: 12px; }
.live-dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #10b981; }
.report-paper { --accent: #635bff; width: min(100%,860px); min-height: 1120px; margin: auto; overflow: hidden; border-radius: 28px; background: white; box-shadow: 0 30px 80px rgba(24,24,27,.13); }
.report-paper.minimal { border-radius: 0; box-shadow: 0 20px 65px rgba(24,24,27,.1); }
.report-paper.editorial { font-family: Georgia, "Times New Roman", serif; }
.report-paper.editorial .sans { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.report-accent { height: 11px; background: var(--accent); }
.report-paper.minimal .report-accent { height: 7px; }
.report-body { padding: 54px; }
.report-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.report-logo { height: 44px; max-width: 190px; margin-bottom: 38px; object-fit: contain; object-position: left; }
.report-studio-name { margin-bottom: 38px; display: inline-flex; align-items: center; gap: 8px; color: #a1a1aa; font-size: 11px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.report-studio-name span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.report-kicker { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.report-title { max-width: 650px; margin: 15px 0 0; color: #09090b; font-size: 58px; line-height: 1.03; letter-spacing: -.05em; font-weight: 900; }
.editorial .report-title { font-size: 50px; font-weight: 400; letter-spacing: -.035em; }
.report-for { flex: 0 0 auto; padding: 13px 15px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 7%, white); text-align: right; }
.report-for-label { color: #a1a1aa; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.report-for-value { max-width: 160px; margin-top: 5px; font-size: 13px; font-weight: 800; }
.report-meta { margin-top: 45px; padding: 18px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; border-top: 1px solid #e4e4e7; border-bottom: 1px solid #e4e4e7; }
.meta-label { color: #a1a1aa; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.meta-value { margin-top: 6px; font-size: 13px; font-weight: 800; }
.report-section { margin-top: 50px; }
.section-kicker { display: flex; align-items: center; gap: 11px; font-family: Inter, ui-sans-serif, system-ui; }
.section-number { color: var(--accent); font-size: 11px; font-weight: 900; }
.section-line { width: 30px; height: 1px; background: var(--accent); }
.section-title { margin: 0; color: #27272a; font-size: 11px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.summary { max-width: 730px; margin: 19px 0 0; color: #52525b; font-size: 18px; line-height: 1.75; }
.editorial .summary { font-size: 20px; }
.metrics { margin-top: 44px; display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }
.metric { padding: 15px; border: 1px solid #f4f4f5; border-radius: 16px; background: #fafafa; font-family: Inter, ui-sans-serif, system-ui; }
.minimal .metric { padding: 0 0 0 14px; border: 0; border-left: 2px solid var(--accent); border-radius: 0; background: transparent; }
.metric-label { color: #a1a1aa; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.metric-value { margin-top: 8px; color: #09090b; font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.metric-change { margin-top: 5px; color: var(--accent); font-size: 10px; font-weight: 800; }
.tasks { margin-top: 22px; }
.task { margin-bottom: 12px; padding: 18px; border: 1px solid #e4e4e7; border-radius: 16px; break-inside: avoid; }
.minimal .task { padding: 17px 0; border: 0; border-bottom: 1px solid #e4e4e7; border-radius: 0; }
.task-row { display: flex; gap: 14px; align-items: flex-start; }
.task-number { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-family: Inter, ui-sans-serif, system-ui; font-size: 10px; font-weight: 900; }
.task-main { min-width: 0; flex: 1; }
.task-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-title { margin: 0; color: #18181b; font-size: 15px; font-weight: 800; }
.status { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-family: Inter, ui-sans-serif, system-ui; font-size: 9px; font-weight: 900; }
.status.completed { background: #ecfdf5; color: #047857; }
.status.in-progress { background: #fffbeb; color: #b45309; }
.status.planned { background: #f4f4f5; color: #52525b; }
.task-desc { margin: 7px 0 0; color: #52525b; font-size: 13px; line-height: 1.65; }
.shots { margin-top: 22px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.shot { margin: 0; overflow: hidden; border: 1px solid #e4e4e7; border-radius: 16px; background: #fafafa; break-inside: avoid; }
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.shot figcaption { padding: 11px 14px; color: #52525b; font-family: Inter, ui-sans-serif, system-ui; font-size: 11px; font-weight: 700; }
.next-box { margin-top: 22px; padding: 24px; border-radius: 22px; background: #18181b; color: white; }
.minimal .next-box { padding: 0; border-radius: 0; background: transparent; color: #18181b; }
.next-item { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); }
.next-item:first-child { padding-top: 0; border-top: 0; }
.next-item:last-child { padding-bottom: 0; }
.minimal .next-item { border-top: 0; border-bottom: 1px solid #e4e4e7; }
.next-number { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font-family: Inter, ui-sans-serif, system-ui; font-size: 10px; font-weight: 900; }
.minimal .next-number { background: var(--accent); color: white; }
.next-text { margin: 2px 0 0; color: #e4e4e7; font-size: 13px; line-height: 1.6; }
.minimal .next-text { color: #3f3f46; }
.report-footer { margin-top: 60px; padding-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid #e4e4e7; font-family: Inter, ui-sans-serif, system-ui; }
.footer-main { font-size: 11px; font-weight: 800; }
.footer-sub { margin-top: 4px; color: #a1a1aa; font-size: 9px; }
.footer-right { color: #a1a1aa; font-size: 9px; text-align: right; }
.footer-right span { display: block; margin-top: 4px; color: #d4d4d8; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(9,9,11,.48); backdrop-filter: blur(6px); }
.modal { width: min(100%,520px); overflow: hidden; border: 1px solid rgba(255,255,255,.55); border-radius: 26px; background: white; box-shadow: 0 30px 80px rgba(9,9,11,.28); }
.modal-head { padding: 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid #f4f4f5; }
.modal-title { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.modal-desc { margin: 5px 0 0; color: #71717a; font-size: 13px; line-height: 1.55; }
.modal-body { padding: 22px; }
.donate-card { padding: 18px; border: 1px solid #e4e4e7; border-radius: 22px; background: #fafafa; }
.donate-top { display: flex; align-items: center; justify-content: space-between; }
.tiny-label { color: #a1a1aa; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.asset { margin-top: 4px; font-size: 21px; font-weight: 900; }
.network-pill { padding: 7px 10px; border-radius: 999px; background: white; color: #52525b; font-size: 11px; font-weight: 800; box-shadow: 0 2px 8px rgba(24,24,27,.06); }
.address-box { margin-top: 16px; padding: 14px; border: 1px solid #e4e4e7; border-radius: 16px; background: white; }
.address { margin-top: 8px; overflow-wrap: anywhere; color: #3f3f46; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.6; }
.address-box .btn { width: 100%; margin-top: 13px; }
.notice { margin-top: 14px; padding: 13px; display: flex; gap: 10px; border-radius: 15px; background: #fffbeb; color: #92400e; font-size: 11px; line-height: 1.55; }
.price-card { padding: 19px; display: flex; align-items: flex-end; justify-content: space-between; border-radius: 22px; background: #18181b; color: white; }
.price-label { color: #c4b5fd; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.price { margin-top: 6px; font-size: 38px; font-weight: 900; }
.price span { color: #a1a1aa; font-size: 13px; font-weight: 500; }
.feature-list { margin: 18px 0 0; padding: 0; list-style: none; }
.feature-list li { margin: 10px 0; display: flex; align-items: center; gap: 10px; color: #52525b; font-size: 13px; font-weight: 650; }
.feature-check { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #ecfdf5; color: #059669; }
.modal-cta { width: 100%; margin-top: 20px; background: #7c3aed; color: white; }
.modal-note { margin: 10px 0 0; color: #a1a1aa; font-size: 10px; line-height: 1.5; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 150; transform: translateX(-50%); padding: 10px 15px; border-radius: 999px; background: #18181b; color: white; font-size: 13px; font-weight: 650; box-shadow: 0 16px 34px rgba(9,9,11,.22); animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%,8px); } }
.mobile-menu { display: none; }
.mobile-overlay { display: none; }

@media (max-width: 1180px) {
  .app-grid { grid-template-columns: 230px 350px minmax(0,1fr); }
  .preview-area { padding: 28px 22px; }
  .report-body { padding: 44px; }
  .report-title { font-size: 48px; }
}

@media (max-width: 920px) {
  .app-grid { grid-template-columns: 360px minmax(0,1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 80; width: 285px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 25px 0 50px rgba(9,9,11,.16); }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay.open { position: fixed; inset: 0; z-index: 70; display: block; border: 0; background: rgba(9,9,11,.36); }
  .mobile-menu { display: grid; }
  .editor { grid-column: 1; }
  .preview-area { grid-column: 2; }
}

@media (max-width: 720px) {
  .topbar { padding: 0 12px; }
  .hide-mobile { display: none !important; }
  .app-grid { display: block; }
  .editor { border-right: 0; }
  .editor-scroll { height: auto; max-height: none; }
  .preview-area { height: auto; min-height: 600px; padding: 25px 10px 45px; border-top: 1px solid var(--line); }
  .editor-head { top: 64px; }
  .preview-label { padding: 0 4px; }
  .preview-label span:last-child { display: none; }
  .report-paper { min-width: 690px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric-row .icon-btn { grid-column: 2; justify-self: end; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { width: 210mm; min-height: 297mm; background: white !important; }
  body { margin: 0 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body * { visibility: hidden !important; }
  #printable-report, #printable-report * { visibility: visible !important; }
  #printable-report {
    position: absolute; top: 0; left: 0;
    width: 210mm !important; min-width: 210mm !important; min-height: 297mm !important;
    margin: 0 !important; overflow: visible !important; border-radius: 0 !important; box-shadow: none !important;
    -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;
  }
  .report-body { padding: 14mm !important; }
  .report-section { break-inside: auto; page-break-inside: auto; }
  .task, .shot, .metric, .next-item, .report-header, .report-footer { break-inside: avoid; page-break-inside: avoid; }
  .summary, .task-desc, .next-text { orphans: 3; widows: 3; }
  .report-accent, .task-number, .next-box, .status, .metric, .report-for { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}


/* Production utilities */
a { color: inherit; }
a.btn { text-decoration: none; }
.skip-link { position: fixed; left: 14px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 10px; background: #18181b; color: #fff; font-weight: 800; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; color: #52525b; }
.boot-screen span { color: #a1a1aa; font-size: 13px; }
.boot-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: #18181b; color: white; font-size: 22px; font-weight: 900; box-shadow: 0 18px 34px rgba(24,24,27,.15); }
.noscript-card, .fatal-error { width: min(92%, 560px); margin: 12vh auto; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 24px 70px rgba(24,24,27,.1); }
.noscript-card h1, .fatal-error h1 { margin-top: 0; }
.noscript-card p, .fatal-error p { color: var(--muted); line-height: 1.7; }
.save-status { display: inline-flex; align-items: center; gap: 6px; }
.save-status::before { width: 7px; height: 7px; content: ""; border-radius: 50%; background: #10b981; }
.save-status.saving::before { background: #f59e0b; animation: save-pulse 1s ease infinite; }
.save-status.error { color: #b91c1c; font-weight: 750; }
.save-status.error::before { background: #dc2626; }
@keyframes save-pulse { 50% { opacity: .35; } }
.legal-links { margin-top: 9px; display: flex; gap: 12px; color: #71717a; font-size: 10px; font-weight: 750; }
.legal-links a:hover { color: #18181b; }
.mobile-only { display: none; }
.sidebar-actions { margin: 12px 0 116px; gap: 8px; flex-direction: column; }
.sidebar-actions .btn { width: 100%; }
.report-item:focus-visible { outline: 3px solid rgba(99,91,255,.22); outline-offset: 1px; background: white; }
.report-delete:focus-visible { opacity: 1; }
.modal { max-height: min(90vh, 760px); overflow: auto; }
.report-for { background: #f7f7ff; background: color-mix(in srgb, var(--accent) 7%, white); }

.legal-page { min-height: 100vh; padding: 48px 18px; background: var(--bg); }
.legal-shell { width: min(100%, 760px); margin: auto; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: #18181b; text-decoration: none; font-weight: 900; }
.legal-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: #18181b; color: white; }
.legal-card { margin-top: 26px; padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 24px 70px rgba(24,24,27,.08); }
.legal-card h1 { margin: 0; font-size: clamp(34px, 6vw, 56px); letter-spacing: -.045em; }
.legal-updated { margin: 10px 0 32px; color: #a1a1aa; font-size: 13px; }
.legal-card h2 { margin: 32px 0 10px; font-size: 20px; }
.legal-card p, .legal-card li { color: #52525b; line-height: 1.75; }
.legal-card ul { padding-left: 22px; }
.legal-nav { margin-top: 20px; display: flex; gap: 18px; color: #71717a; font-size: 13px; }

@media (max-width: 920px) {
  .mobile-only { display: flex; }
  .report-list { max-height: calc(100vh - 390px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  #preview-root { width: auto !important; height: auto !important; transform: none !important; }
}

.report-item { position: relative; }
.report-select { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.report-select:focus-visible { outline: 3px solid rgba(99,91,255,.22); outline-offset: 4px; border-radius: 10px; }
.report-delete { position: absolute; right: 8px; bottom: 7px; }
