/* 130 favicon and web icon generator */
.fwg-loader input[type="file"] { max-width: 100%; }
.fwg-file-label { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .75rem; font-weight: 700; }
.fwg-workspace { display: grid; min-width: 0; gap: 1.25rem; margin-bottom: 1.5rem; }
.fwg-workspace[hidden], .fwg-output-panel[hidden] { display: none; }
.fwg-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.fwg-heading h2 { margin-top: 0; }
.fwg-file-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0 0; }
.fwg-file-info div { min-width: 0; padding: .7rem; border-radius: 10px; background: var(--color-surface-soft); }
.fwg-file-info dt { color: var(--color-muted); font-size: .78rem; }
.fwg-file-info dd { margin: .2rem 0 0; overflow-wrap: anywhere; font-weight: 700; }
.fwg-warning { margin: .85rem 0 0; padding: .7rem; border-left: 4px solid #b26a00; border-radius: 8px; background: #fff6dd; color: #5f3a00; overflow-wrap: anywhere; }
.fwg-editor-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 1.25rem; }
.fwg-editor-grid > *, .fwg-controls, .fwg-preview-panel, .fwg-generate-panel, .fwg-output-panel, .fwg-code-grid { min-width: 0; }
.fwg-controls > label { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: 700; }
.fwg-controls fieldset { min-width: 0; margin-bottom: 1rem; }
.fwg-radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.fwg-radio-grid label { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.fwg-radio-grid input { width: auto; min-width: auto; }
.fwg-controls .is-disabled { opacity: .58; }
.fwg-master-wrap { display: grid; box-sizing: border-box; width: 100%; max-width: 100%; place-items: center; overflow: auto; padding: .8rem; border-radius: 12px; background: repeating-conic-gradient(#dfe7e5 0 25%, #fff 0 50%) 50% / 20px 20px; }
.fwg-master-wrap canvas { display: block; width: min(100%, 512px); height: auto; aspect-ratio: 1; outline: 2px solid rgba(20,107,99,.4); }
.fwg-small-list { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.fwg-small-list > div { display: grid; gap: .35rem; }
.fwg-small-pair { display: flex; align-items: center; gap: .25rem; }
.fwg-small-pair span { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #aab7b4; border-radius: 8px; }
.fwg-small-pair .is-light { background: #fff; }
.fwg-small-pair .is-dark { background: #1c2328; }
.fwg-small-pair canvas { display: block; image-rendering: auto; }
.fwg-download-list { display: grid; gap: .55rem; }
.fwg-download-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(88px, auto); align-items: center; gap: .7rem; min-width: 0; padding: .65rem; border: 1px solid rgba(20,107,99,.2); border-radius: 10px; }
.fwg-download-list span:first-child { display: grid; min-width: 0; overflow-wrap: anywhere; }
.fwg-download-list small { color: var(--color-muted); }
.fwg-download-list .button { min-width: 0; text-align: center; }
.fwg-code-grid > div { min-width: 0; margin-top: 1rem; }
.fwg-code-grid pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.fwg-notice { min-width: 0; margin: 1.25rem 0; padding: 1rem; border: 1px solid rgba(20,107,99,.25); border-radius: var(--radius-sm); background: rgba(20,107,99,.07); }
.fwg-notice h2 { margin-top: 0; }
.fwg-wrap, .fwg-notice, .fwg-code-grid p { overflow-wrap: anywhere; word-break: break-word; }
.fwg-controls :focus-visible, .fwg-workspace button:focus-visible, .fwg-workspace a:focus-visible { outline: 3px solid rgba(20,107,99,.4); outline-offset: 3px; }

@media (max-width: 860px) {
  .fwg-editor-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .fwg-heading { display: grid; }
  .fwg-heading .button { width: 100%; }
  .fwg-file-info, .fwg-radio-grid { grid-template-columns: minmax(0, 1fr); }
  .fwg-download-list > div { grid-template-columns: minmax(0, 1fr) auto; }
  .fwg-download-list .button { grid-column: 1 / -1; width: 100%; }
  .fwg-small-list { display: grid; grid-template-columns: minmax(0, 1fr); }
  .fwg-small-list > div { grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
}
