/* Web tool of /png-to-svg/ and /png-to-svg/png-to-dxf/ on top of /assets/site.css and /png-to-svg/style.css:
   drop box, mode switch, original and SVG side by side (stacked on narrow screens), actions, banners, Pro dialog. */
main.tool-page { max-width: 1100px; }
main.tool-page .text { max-width: 760px; }
main.tool-page + footer { max-width: 1100px; }
.tool { position: relative; margin: 8px 0 24px; }
.tool [hidden] { display: none !important; }
.tool button { margin: 0; padding: 10px 18px; border: 1px solid #b9c3d3; border-radius: 8px; background: #fff; color: #1d2433; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.tool button:hover, .tool button:focus-visible { background: #f0f4fb; }
.tool button.primary { border-color: #255cd1; background: #255cd1; color: #fff; }
.tool button.primary:hover, .tool button.primary:focus-visible { background: #1d4cb0; }
.tool button:disabled { opacity: .5; cursor: default; }
.tool button.quiet { border-color: transparent; background: transparent; color: #1f53bf; text-decoration: underline; padding: 10px 6px; }
.tool button.big { padding: 14px 32px; font-size: 19px; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 44px 20px 36px; border: 2px dashed #9aa8bf; border-radius: 14px; background: #f6f8fc; text-align: center; }
.tool.over .drop, .tool.over .frame { border-color: #255cd1; background: #e9f0fd; }
.drop .drop-title { font-size: 22px; font-weight: 650; margin: 0 0 14px; }
.drop .muted, .drop .privacy-line { margin: 4px 0 0; }
.drop .privacy-line { margin-top: 12px; }
.drop .banner { margin-top: 14px; }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.bar #newImage { margin-left: auto; }
.bar .muted { margin: 0; }
/* The lines between the mode buttons are the 1 px gaps over the grid's border-coloured background. */
.modes { display: inline-grid; grid-template-columns: repeat(4, auto); gap: 1px; border: 1px solid #b9c3d3; border-radius: 9px; overflow: hidden; background: #b9c3d3; }
.tool .modes button { border: 0; border-radius: 0; padding: 9px 14px; }
.tool .modes button[aria-checked="true"] { background: #255cd1; color: #fff; }

.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pane { margin: 0; min-width: 0; }
.pane figcaption { font-weight: 650; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane .file { font-weight: 400; color: #556072; font-size: 15px; }
.frame { position: relative; height: 440px; border: 1px solid #cfd6e0; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.frame img:not([src]) { display: none; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #eef1f6 25%, transparent 25%, transparent 75%, #eef1f6 75%), linear-gradient(45deg, #eef1f6 25%, transparent 25%, transparent 75%, #eef1f6 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.state { position: absolute; inset: auto 12px 12px; margin: 0; padding: 8px 12px; border-radius: 8px; background: rgba(29, 36, 51, .86); color: #fff; font-size: 15px; text-align: center; }
#paneSvg.busy img { opacity: .45; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 14px 0 0; }
.dxf { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.units { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 400; }
.units select { padding: 8px; border: 1px solid #b9c3d3; border-radius: 8px; font: inherit; background: #fff; }
.pro-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 5px; background: #ffe7a8; color: #6b4a00; font-size: 13px; font-weight: 700; vertical-align: 1px; }
.tool button.primary .pro-tag { background: #fff3cf; }
.tries { color: #556072; font-size: 15px; }
.tries.used { color: #b42318; }
.hint { margin: 8px 0 0; }

#banners .banner, .banner { margin: 0 0 10px; padding: 10px 14px; border-radius: 8px; font-size: 16px; }
.banner.warn { background: #fff5d6; border: 1px solid #f0d27a; }
.banner.info { background: #eef4ff; border: 1px solid #c4d6f6; }
.banner.err { background: #fdecec; border: 1px solid #f2b8b5; color: #8c1d18; }

dialog { max-width: 460px; padding: 24px 26px 18px; border: 0; border-radius: 14px; box-shadow: 0 18px 48px rgba(16, 24, 40, .28); color: #1d2433; }
dialog::backdrop { background: rgba(16, 24, 40, .45); }
dialog h2 { margin: 0 0 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; }
.button-link { display: inline-block; padding: 10px 18px; border-radius: 8px; background: #255cd1; color: #fff; font-weight: 650; text-decoration: none; }
.button-link:hover, .button-link:focus-visible { background: #1d4cb0; }

.ext { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 8px 0 12px; }
.ext .cta-button, .ext .cta-soon { margin: 6px 0; }
/* While the items are in store review the labels are secondary: smaller than a store button. */
.ext .cta-soon { padding: 8px 18px; font-size: 16px; }
.ext-line { flex-basis: 100%; margin: 0 0 2px; font-weight: 600; }

@media (max-width: 760px) {
  .panes { grid-template-columns: 1fr; }
  .frame { height: 300px; }
  .bar #newImage { margin-left: 0; }
  .modes { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .drop { padding: 30px 16px 26px; }
}
