/* Project Icon Maker: only the layout. Colors, type and every piece come from the FileFortress kit (ff-kit/), so the tool
   follows the visitor's site theme. */
[hidden] { display: none !important; }
.app { padding: 14px 16px 24px; max-width: 1240px; margin: 0 auto; }
.app-top { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.app-logo { width: 28px; height: 28px; color: var(--ff-brand); flex: none; }
.app-top p { margin: 2px 0 0; }
/* the icon | the settings; phones: one column, the icon first */
.app-grid { display: grid; gap: 14px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
@media (max-width: 900px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.app-col-title { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.app-col-title:not(:first-child) { margin-top: 6px; }
.app-two { grid-template-columns: 1fr 1fr; }
.app-grow { flex: 1; min-width: 0; }
.app-view-bar { flex-wrap: wrap; gap: 6px; }
/* the icon over a checkerboard (a see-through picture shows as one), square, as big as the window allows */
.app-stage { position: relative; aspect-ratio: 1; width: min(100%, calc(100vh - 300px)); min-width: 260px; margin-inline: auto;
  border-radius: var(--ff-radius); border: 1px solid var(--ff-line); overflow: hidden;
  background-color: #1b1720;
  background-image: linear-gradient(45deg, #26212c 25%, transparent 25%), linear-gradient(-45deg, #26212c 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #26212c 75%), linear-gradient(-45deg, transparent 75%, #26212c 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
@media (max-width: 900px) { .app-stage { width: 100%; min-width: 0; } }
.app-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.app-canvas.is-dragging { cursor: grabbing; }
.app-canvas.is-text { cursor: move; }
.app-drop-over { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; background: rgba(10, 6, 14, .72);
  border: 2px dashed var(--ff-brand); border-radius: inherit; font-size: 15px; pointer-events: none; }
.app-drop-over .ff-icon { width: 32px; height: 32px; color: var(--ff-brand); }
/* the icon small, like in UEFN */
.app-smalls { flex-wrap: wrap; gap: 10px; justify-content: center; }
.app-small { border-radius: 8px; border: 1px solid var(--ff-line); background: #1b1720; }
.app-export { flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.app-size { min-width: 160px; }
.app-foot { text-align: center; }
/* the picture drop as one compact row: icon, then name and hint */
.app-drop { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: left; min-height: 0; }
.app-drop > .ff-icon { position: static; flex: none; }
.app-drop-text { display: grid; gap: 2px; min-width: 0; }
.app-drop-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-pic-row { gap: 8px; align-items: flex-end; flex-wrap: wrap; }
/* backgrounds: round swatches drawn by the tool */
.app-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.app-swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.app-swatch.is-on { border-color: var(--ff-brand); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.app-swatch-own { display: grid; place-items: center; background: conic-gradient(#ff3b3b, #ffe33b, #4fe06a, #3bc8ff, #c34bff, #ff3b3b); }
.app-swatch-none { background-color: #1b1720;
  background-image: linear-gradient(45deg, #2b2531 25%, transparent 25%), linear-gradient(-45deg, #2b2531 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2b2531 75%), linear-gradient(-45deg, transparent 75%, #2b2531 75%);
  background-size: 10px 10px; background-position: 0 0, 0 5px, 5px -5px, -5px 0; }
/* Solid / Fade / Rainbow: one row of buttons, the one in use lit */
.app-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 11px; border: 1px solid var(--ff-line); background: rgba(255, 255, 255, .03); }
.app-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 8px; background: none;
  color: inherit; font: 600 12.5px/1 var(--ff-font); cursor: pointer; opacity: .75; }
.app-seg button:hover { background: rgba(255, 255, 255, .06); opacity: 1; }
.app-seg button.is-on { background: rgba(255, 255, 255, .1); opacity: 1; box-shadow: inset 0 0 0 1px var(--ff-brand); }
.app-seg-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.app-seg-rainbow { background: conic-gradient(#ff3b3b, #ffe33b, #4fe06a, #3bc8ff, #c34bff, #ff3b3b); }
.app-text { resize: vertical; min-height: 58px; font-weight: 700; }
.app-places { display: flex; gap: 4px; }
.app-places .ff-btn { flex: 1; padding-inline: 6px; }
.app-toggles { flex-wrap: wrap; gap: 6px 16px; }
/* how to use it in UEFN */
.app-how { margin-top: 14px; }
.app-how h2 { margin: 0; }
.app-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.55; }
.app-steps code, .app-how code { word-break: break-all; }
.app-code { margin: 6px 0 0; }
/* Fill / Fit: the one in use */
.app-pic-row .ff-btn.is-on { border-color: var(--ff-brand); color: var(--ff-brand); box-shadow: inset 0 0 0 1px var(--ff-brand); }
/* our color picker (js/color.js): a swatch button with the hex, and a panel under it */
.app-cp { position: relative; }
.app-cp-swatch { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 10px 0 5px; cursor: pointer; text-align: left;
  font: 600 12px/1 var(--ff-mono); color: inherit; }
.app-cp-swatch i { flex: none; width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 1px rgba(0, 0, 0, .25); }
.app-cp-swatch span { overflow: hidden; text-overflow: ellipsis; }
.app-cp.is-open .app-cp-swatch { border-color: var(--ff-brand); }
.app-cp-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 244px; padding: 10px; border-radius: 12px;
  background: var(--ff-card-bg, #1d1520); border: 1px solid var(--ff-line-strong); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.app-cp.to-left .app-cp-panel { left: auto; right: 0; }
.app-cp-sv { position: relative; height: 150px; border-radius: 9px; cursor: crosshair; touch-action: none;
  background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); }
.app-cp-hue { position: relative; height: 14px; margin-top: 10px; border-radius: 99px; cursor: pointer; touch-action: none;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.app-cp-sv b, .app-cp-hue b { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .5); pointer-events: none; }
.app-cp-hue b { top: 50%; }
.app-cp-row { display: flex; gap: 6px; margin-top: 10px; }
.app-cp-hex { flex: 1; min-width: 0; height: 32px; font: 600 13px/1 var(--ff-mono); text-transform: lowercase; }
.app-cp-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.app-cp-presets button { aspect-ratio: 1; border-radius: 7px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.app-cp-presets button:hover { transform: scale(1.1); }
/* the font list and the + for your own font */
.app-font-row { gap: 6px; flex-wrap: nowrap; }
.app-font-add { flex: none; width: 38px; height: 38px; padding: 0; justify-content: center; }
.app-font-note { margin-top: -6px; }
