.designer-atlas {
  --atlas-ink: var(--ink);
  --atlas-muted: var(--muted);
  --atlas-line: #c9e4eb;
  --atlas-cyan: var(--forest);
  --atlas-soft: #e7f7fa;
  color: var(--atlas-ink);
  min-width: 0;
}
.designer-atlas * { box-sizing: border-box; }
.designer-atlas :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.atlas-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--atlas-line); border-radius: .9rem;
  background: radial-gradient(circle at 92% 8%, #c9f4fa 0, transparent 35%), linear-gradient(130deg, #f3fcfd, #fff 62%);
}
.atlas-header h2 { margin: .1rem 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.atlas-header p:last-child { margin: 0; max-width: 62ch; color: var(--atlas-muted); }
.atlas-eyebrow { margin: 0; color: var(--atlas-cyan); text-transform: uppercase; letter-spacing: .09em; font-size: .72rem; font-weight: 800; }
.atlas-stats { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: .15rem .55rem; min-width: 9rem; padding: .8rem 1rem; border-radius: .65rem; background: #0d4154; color: white; }
.atlas-stats strong { font-size: 1.22rem; text-align: right; }
.atlas-stats span { color: #dff7fb; font-size: .76rem; }
.atlas-screen-index { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .8rem 0; padding: .7rem .85rem; border: 1px solid var(--atlas-line); border-radius: .6rem; background: #fbfeff; font-size: .84rem; }
.atlas-screen-index strong { color: #075b70; }
.atlas-screen-index button { padding: .3rem .55rem; border: 1px solid var(--control-line); border-radius: .35rem; background: var(--surface); color: var(--forest); font: inherit; cursor: pointer; }
.atlas-screen-index button:hover { background: #e7f7fa; }
.atlas-task-index { display: grid; gap: .38rem; margin: .8rem 0; padding: .75rem .9rem; border: 1px solid var(--atlas-line); border-radius: .65rem; background: #f8fdfe; font-size: .82rem; }
.atlas-task-index > strong { color: #075b70; }
.atlas-task-index > div { display: flex; flex-wrap: wrap; gap: .25rem .65rem; align-items: baseline; }
.atlas-task-index > div > span { flex: 0 0 14rem; color: var(--atlas-muted); font-weight: 700; }
.atlas-selected { margin: .7rem 0; padding: .55rem .8rem; border-left: 4px solid var(--atlas-cyan); background: var(--atlas-soft); color: var(--atlas-muted); font-size: .84rem; }
.atlas-screen:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.designer-atlas a { color: var(--forest); text-underline-offset: .16em; }
.designer-atlas a[aria-current] { font-weight: 750; }
.atlas-tools { margin: .8rem 0 1rem; padding: .75rem .9rem; border: 1px solid var(--atlas-line); border-radius: .65rem; background: #f2fbfd; }
.atlas-tools label { display: block; margin-bottom: .28rem; font-size: .82rem; font-weight: 760; }
.atlas-tools > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.atlas-tools input { flex: 1 1 16rem; min-width: 0; min-height: 2.45rem; padding: .45rem .65rem; border: 1px solid var(--control-line); border-radius: .4rem; color: var(--atlas-ink); background: var(--surface); font: inherit; }
.atlas-tools button { min-height: 2.4rem; padding: .4rem .72rem; border: 1px solid var(--control-line); border-radius: .4rem; background: var(--surface); color: var(--forest); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.atlas-tools button:hover:not(:disabled) { background: var(--atlas-soft); }
.atlas-tools button:disabled { opacity: .5; cursor: default; }
.atlas-tools p { margin: .35rem 0 0; color: var(--atlas-muted); font-size: .8rem; }
.atlas-priority { margin: 1rem 0 1.4rem; }
.atlas-priority > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .75rem; margin: 1.1rem 0 .55rem; }
.atlas-priority > header h3 { margin: 0; font-size: 1.22rem; }
.atlas-priority > header p:last-child { margin: 0; color: var(--atlas-muted); font-size: .8rem; }
.atlas-group { min-width: 0; margin: .55rem 0; border: 1px solid var(--atlas-line); border-radius: .65rem; background: var(--surface); box-shadow: 0 3px 12px #12374608; }
.atlas-group-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; background: linear-gradient(90deg, #f1fbfd, #fff 75%); }
.atlas-group-heading h4 { margin: .15rem 0 .28rem; font-size: 1.08rem; line-height: 1.3; }
.atlas-group-heading p:last-child { margin: 0; max-width: 82ch; color: var(--atlas-muted); font-size: .88rem; }
.atlas-frequency { margin: 0; color: var(--forest); font-size: .73rem; font-weight: 750; }
.atlas-count { flex: 0 0 auto; border-radius: 999px; padding: .25rem .55rem; background: #d9f2f6; color: #0d4154; font-size: .75rem; font-weight: 760; }
.atlas-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .65rem; padding: .25rem 1rem .8rem; }
.atlas-shot-details { border-top: 1px solid #e0edf0; }
.atlas-shot-details > summary { padding: .58rem .9rem; color: var(--forest); font-size: .82rem; font-weight: 740; cursor: pointer; }
.atlas-shot-details > summary span { margin-left: .4rem; color: var(--atlas-muted); font-weight: 600; }
.atlas-group.is-requested { border-color: #087991; box-shadow: 0 0 0 2px #08799124, 0 4px 16px #12374612; scroll-margin-top: 1rem; }
.atlas-screen { min-width: 0; margin: 0; border: 1px solid #d8e8ed; border-radius: .45rem; overflow: hidden; background: #f7fbfc; }
.atlas-screen img { display: block; width: 100%; max-height: 27rem; object-fit: contain; background: #edf4f6; }
.atlas-screen figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; padding: .45rem .6rem; color: var(--atlas-muted); font-size: .77rem; }
.atlas-provenance { color: var(--forest); font-weight: 730; }
.atlas-details { border-top: 1px solid #e0edf0; }
.atlas-details summary { padding: .62rem .9rem; color: var(--forest); font-size: .84rem; font-weight: 750; cursor: pointer; }
.atlas-details summary span { color: var(--atlas-muted); font-size: .77rem; font-weight: 600; }
.atlas-table-wrap { border-top: 1px solid #e2edf0; }
.atlas-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .83rem; }
.atlas-table th, .atlas-table td { padding: .62rem .7rem; border-bottom: 1px solid #e5eef1; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.atlas-table thead th { background: #edf8fa; color: var(--ink); font-size: .75rem; }
.atlas-table tbody th { color: var(--ink); font-weight: 760; }
.atlas-column { display: none; }
.atlas-table tbody tr:nth-child(even) { background: #fbfdfe; }
.atlas-sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; padding: .55rem .9rem; background: #f8fcfd; color: var(--atlas-muted); font-size: .76rem; }
.atlas-sources strong { color: var(--muted); }
.atlas-empty { margin: .8rem 0; padding: 1rem; border: 1px dashed #a7cbd5; border-radius: .55rem; color: var(--atlas-muted); background: #f7fcfd; }
@media (max-width: 42rem) {
  .atlas-header { display: block; }
  .atlas-stats { grid-template-columns: repeat(3, 1fr); margin-top: .8rem; }
  .atlas-stats strong { text-align: left; }
  .atlas-stats span { grid-row: 2; }
  .atlas-table :is(tbody, tr), .atlas-table { display: block; }
  .atlas-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .atlas-table tbody tr { border-bottom: 2px solid var(--line); padding: .25rem .5rem; }
  .atlas-table th { display: block; }
  .atlas-table td { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: .45rem; }
  .atlas-table th, .atlas-table td { padding: .42rem .35rem; }
  .atlas-column { display: block; font-weight: 700; }
  .atlas-task-index > div > span { flex-basis: 100%; }
  .atlas-group-heading { display: block; }
  .atlas-count { display: inline-block; margin-top: .55rem; }
}
.atlas-screen-picker {
  margin: .65rem 0 1rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
}
.atlas-screen-picker > summary { cursor: pointer; color: var(--forest); font-weight: 700; }
