/* App Screenshot Generator — tool-specific styles */
.asg-wide { max-width: 1180px; }
.asg-layout { display: grid; grid-template-columns: 1.25fr 360px; gap: 18px; align-items: start; }

.asg-previewcard { display: flex; flex-direction: column; align-items: center; padding: 18px; }
.asg-canvas { max-width: 100%; max-height: 560px; border-radius: 10px; box-shadow: 0 18px 50px -20px rgba(0,0,0,.7); }
.asg-sizelabel { color: var(--muted-2); font-size: .82rem; margin: 12px 0 0; font-variant-numeric: tabular-nums; }

.asg-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; }
.asg-thumb { position: relative; flex: 0 0 auto; width: 64px; height: 128px; border-radius: 9px; cursor: pointer;
  border: 2px solid var(--line); background: var(--card-2); overflow: hidden;
  transition: border-color .15s, transform .12s; -webkit-tap-highlight-color: transparent; }
.asg-thumb:hover { border-color: var(--muted-2); }
.asg-thumb:active { transform: scale(.95); }
.asg-thumb.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,139,255,.25); }
.asg-thumb canvas { width: 100%; height: 100%; display: block; }
.asg-thumb .n { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(10,12,24,.8); color: var(--accent-2); font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* View tabs (single vs all side-by-side) */
.asg-viewtabs { display: flex; gap: 8px; margin-bottom: 12px; }
.asg-viewtab { flex: 1; font-family: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); padding: 10px 14px;
  border-radius: var(--radius-sm); transition: all .15s; -webkit-tap-highlight-color: transparent; }
.asg-viewtab:hover { color: var(--text); border-color: var(--muted-2); }
.asg-viewtab.active { background: var(--accent-grad); color: #0b0e1c; border-color: transparent; }

/* Large "view all" panorama */
.asg-allwrap { padding: 16px; }
.asg-stripbig { display: flex; gap: 0; overflow-x: auto; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px; align-items: flex-start; }
.asg-stripbig.gap { gap: 14px; }
.asg-stripbig canvas { height: 460px; display: block; flex: 0 0 auto; border-radius: 4px; }
.asg-stripbig.gap canvas { border-radius: 10px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.8); }
@media (max-width: 920px) { .asg-stripbig canvas { height: 360px; } }

/* Side-by-side strip — the "view them next to each other" panoramic preview */
.asg-strip-wrap { margin-top: 16px; }
.asg-strip-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2);
  font-weight: 700; margin-bottom: 8px; }
.asg-strip-label span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.asg-strip { display: flex; gap: 0; overflow-x: auto; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px; align-items: center; }
.asg-strip.gap { gap: 10px; }
.asg-strip canvas { height: 220px; display: block; flex: 0 0 auto; }
.asg-strip.gap canvas { border-radius: 6px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.7); }

.asg-hint { color: var(--muted-2); font-size: .8rem; margin: 12px 0 0; line-height: 1.5; }

.asg-screenactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.asg-screenactions .btn { padding: 9px 14px; min-height: 38px; font-size: .85rem; }
.np-spacer { flex: 1; }

.asg-controls { padding: 8px 16px 16px; max-height: 820px; overflow-y: auto; }
.asg-sec { border-bottom: 1px solid var(--line); padding: 4px 0 14px; }
.asg-sec:last-child { border-bottom: none; }
.asg-sec summary { cursor: pointer; font-weight: 700; font-size: .95rem; padding: 12px 0 8px; list-style: none;
  position: relative; -webkit-tap-highlight-color: transparent; }
.asg-sec summary::-webkit-details-marker { display: none; }
.asg-sec summary::after { content: "▾"; position: absolute; right: 2px; color: var(--muted-2);
  transition: transform .2s; }
.asg-sec:not([open]) summary::after { transform: rotate(-90deg); }
.asg-sec .field { margin-top: 10px; }
.asg-sec .field label b { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.asg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.asg-row2 .field { min-width: 0; }
.asg-check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem;
  font-weight: 600; cursor: pointer; margin-top: 12px; }
.asg-check input { width: 15px; height: 15px; flex-shrink: 0; }
.asg-fullbtn { width: 100%; margin-top: 8px; }

@media (max-width: 920px) {
  .asg-layout { grid-template-columns: 1fr; }
  .asg-controls { max-height: none; }
  .asg-canvas { max-height: 440px; }
}
