/* NiceUI Icon Studio — scoped under .is; uses the site's tokens so light/dark both work. */
.is { --is-sw: 2; --is-ic: #7dd3fc; display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: calc(100vh - var(--ap-bar, 52px)); height: calc(100dvh - var(--ap-bar, 52px)); }
.is-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
.is-top { display: flex; align-items: center; gap: 12px; }
.is-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--s1); color: var(--dim); transition: border-color .2s; }
.is-search:focus-within { border-color: var(--sky-line); }
.is-search input { flex: 1; min-width: 0; height: 100%; font-size: 15px; color: var(--text); background: none; outline: none; }
.is-search input::placeholder { color: var(--dim); }
.is-search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
.is-count { flex-shrink: 0; font: 12px var(--mono); color: var(--dim); }
.is-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.is-cats::-webkit-scrollbar { display: none; }
.is-cats button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--mute); white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.is-cats button i { font: normal 10.5px var(--mono); color: var(--dim); }
.is-cats button:hover { color: var(--text); border-color: var(--line-2); }
.is-cats button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--sky-ink); }
.is-cats button[aria-pressed="true"] i { color: var(--sky-ink); opacity: .7; }
.is-grid-wrap { min-height: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--s1); }
.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 2px; padding: 8px; outline: none; }
.is-cell { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; height: 88px; padding: 6px 4px; border-radius: 12px; color: var(--text); transition: background .15s, color .15s; }
.is-cell svg { stroke-width: var(--is-sw); color: var(--is-ic); transition: transform .2s var(--ease); }
.is-cell span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: var(--dim); }
.is-cell:hover { background: rgba(255,255,255,.05); }
.is-cell:hover svg { transform: scale(1.12); }
html[data-theme="light"] .is-cell:hover { background: rgba(0,0,0,.04); }
.is-cell:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.is-cell.on { background: var(--sky-soft); box-shadow: inset 0 0 0 1px var(--sky-line); }
.is-cell.on span { color: var(--text); }
.is-cell.picked::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 2px var(--s1); }
.is.is-multi .is-cell { cursor: copy; }
.is-empty { padding: 48px 16px; text-align: center; font-size: 14px; color: var(--mute); }
.is-hint { font-size: 11.5px; color: var(--dim); }
.is-side { min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--s1); }
.is-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: grid; gap: 10px; align-content: start; }
.is-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--s2); display: grid; gap: 12px; }
.is-card h2 { font-size: 13px; font-weight: 500; color: var(--mute); }
.is-hero { padding: 8px; gap: 8px; }
.is-stage { height: 190px; display: grid; place-items: center; border-radius: 10px; transition: background .2s; }
.is-stage[data-bg="dark"] { background: #0b0c0e; }
.is-stage[data-bg="light"] { background: #f4f4f5; }
.is-stage[data-bg="brand"] { background: radial-gradient(120% 120% at 20% 10%, #38bdf8, #0c4a6e 70%); }
.is-stage[data-bg="grid"] { background: repeating-conic-gradient(#1c1e22 0 25%, #121316 0 50%) 0 0 / 16px 16px; }
html[data-theme="light"] .is-stage[data-bg="grid"] { background: repeating-conic-gradient(#e4e4e7 0 25%, #fafafa 0 50%) 0 0 / 16px 16px; }
.is-big svg { display: block; transition: width .2s var(--ease), height .2s var(--ease); }
.is-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 6px 4px; }
.is-name b { font-size: 15px; font-weight: 500; }
.is-name span { font: 11px var(--mono); color: var(--dim); text-align: right; }
.is-rng { display: grid; gap: 6px; font-size: 13px; color: var(--mute); }
.is-rng > span { display: flex; justify-content: space-between; }
.is-rng output { font: 12px var(--mono); color: var(--text); }
.is-rng input { width: 100%; accent-color: var(--sky); }
.is-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
.is-mini { font-size: 12px; }
.is-switch { appearance: none; -webkit-appearance: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background .2s; }
.is-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--mute); transition: transform .25s var(--ease), background .2s; }
.is-switch:checked { background: var(--sky); }
.is-switch:checked::after { transform: translateX(14px); background: var(--sky-ink); }
.is-switch:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.is-colours { display: flex; align-items: center; gap: 6px; }
.is-colours input { width: 36px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }
.is-colours input::-webkit-color-swatch-wrapper { padding: 3px; }
.is-colours input::-webkit-color-swatch { border: 0; border-radius: 5px; }
.is-colours button { height: 30px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 8px; font: 11px var(--mono); color: var(--mute); }
.is-colours button[aria-pressed="true"] { border-color: var(--sky); color: var(--sky); }
.is-seg { display: grid; grid-template-columns: repeat(4, auto); gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 9px; }
.is-seg button { height: 26px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; color: var(--mute); }
.is-seg button[aria-pressed="true"] { background: var(--s3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.is-sel-head { display: flex; align-items: center; justify-content: space-between; }
.is-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow-y: auto; }
.is-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 8px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 11.5px; color: var(--mute); }
.is-chip svg { color: var(--is-ic); }
.is-chip b { font-weight: 400; color: var(--dim); }
.is-chip:hover { border-color: #f87171; }
.is-muted { font-size: 12px; color: var(--dim); }
.is-sel-actions { display: flex; gap: 6px; }
.is-ghost { height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 12.5px; color: var(--mute); }
.is-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--sky-line); }
.is-ghost:disabled { opacity: .4; cursor: not-allowed; }
.is-credit { padding: 2px 4px; font-size: 11.5px; color: var(--dim); }
.is-credit a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.is-export { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--s1); padding: 12px; gap: 10px; }
.is-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; }
.is-tabs button { height: 28px; border-radius: 7px; font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.is-tabs button[aria-selected="true"] { background: var(--sky); color: var(--sky-ink); }
.is-code { max-height: 150px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 11px/1.55 var(--mono); color: #c9ccd2; white-space: pre-wrap; word-break: break-all; }
html[data-theme="light"] .is-code { color: #2b2f36; }
.is-actions { display: flex; gap: 6px; }
.is-actions .btn { height: 38px; padding: 0 12px; font-size: 12.5px; }
.is-actions .btn-sky { flex: 1; justify-content: center; }
@media (max-width: 1000px) {
  .is { height: auto; grid-template-columns: 1fr; }
  .is-main { grid-template-rows: auto auto auto auto; }
  .is-grid-wrap { overflow: visible; }
  .is-side { border-left: 0; border-top: 1px solid var(--line); }
  .is-scroll { overflow: visible; }
  .is-export { position: sticky; bottom: 0; z-index: 5; }
}
@media (max-width: 640px) {
  .is-main { padding: 10px; }
  .is-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .is-cell { height: 78px; }
  .is-count { display: none; }
  .is-search kbd { display: none; }
  .is-actions .btn { padding: 0 9px; }
}
