/*!
 * CSS Portal — Flexbox generator extras
 */
.gt [hidden] { display: none !important; }

.gt .fx-items { display: flex; flex-wrap: wrap; gap: 6px; }
.gt .fx-pill {
	--c: var(--ct-accent);
	position: relative;
	min-width: 36px;
	height: 34px;
	margin: 0;
	padding: 0 10px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--c);
	background: var(--ct-bg);
	border: 2px solid color-mix(in srgb, var(--c) 35%, transparent);
	border-radius: 8px;
	cursor: pointer;
}
.gt .fx-pill i { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.gt .fx-pill:hover { border-color: var(--c); }
.gt .fx-pill.is-active { color: #fff; background: var(--c); border-color: var(--c); }
.gt .fx-pill.is-active i { background: #fff; }
.gt .fx-pill:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ct-accent-soft); }
.gt .fx-items__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gt .fx-items__actions .ct-btn { height: 32px; }
.gt .ct-btn:disabled, .gt .ct-tool:disabled { opacity: .45; pointer-events: none; }

.gt .gt-control.is-invalid input[type="text"] { border-color: var(--ct-err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-err) 15%, transparent); }
.gt .gt-control.is-invalid .gt-hint { color: var(--ct-err); }

.gt .fx-explain { padding: 12px 14px 14px; border-top: 1px solid var(--ct-border); background: var(--ct-surface); font-size: 13.5px; line-height: 1.6; color: var(--ct-text); }
.gt .fx-explain__title { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ct-muted); }
.gt .fx-explain p { margin: 0; }
.gt .fx-explain ul { margin: 8px 0 0; padding-left: 18px; color: var(--ct-warn); }
.gt .fx-explain li { margin: 2px 0; }
.gt .fx-explain code { padding: 0 4px; font-family: var(--ct-mono); font-size: 12px; color: var(--ct-text); background: var(--ct-surface-2); border-radius: 4px; }

.gt [data-gt="code"].ce { height: clamp(220px, 32vh, 380px); }

  :root {
    --ink: #0f0f0f;
    --ink-2: #555;
    --ink-3: #999;
    --line: #e8e8e8;
    --line-2: #f0f0f0;
    --surface: #f7f7f5;
    --white123: #ffffff;
    --accent: #2563eb;
    --accent-light: #eff4ff;
    --accent-border: #bfcdfd;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --mono: 'DM Mono', monospace;
    --sans: 'DM Sans', sans-serif;
    --serif: 'Instrument Serif', serif;
  }

  .cheatsheet-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    background: var(--accent-border);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    transition: background 0.12s;
  }
  .cheatsheet-toggle:hover { background: #98affc; }
  .cheatsheet-body {
    display: none;
    padding: 4px 40px 24px;
    border: 1px solid var(--line);
	background: var(--white123);
  }
  .cheatsheet-body.open { display: block; }
  .cheat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-top: 16px;
  }
  .cheat-section {}
  .cheat-heading {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line);
  }
  .cheat-axis {
    font-weight: 400;
    color: var(--ink-2);
    font-size: 0.65rem;
  }
  .cheat-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.74rem;
  }
  .cheat-row code {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .cheat-row span {
    color: var(--ink-2);
    font-size: 0.72rem;
    line-height: 1.3;
  }


@media (max-width: 900px) {
	
    .app { grid-template-columns: 1fr; }
	.controls {max-height: 250px;overflow-y:auto;}
	
}