/* NiceUI Code Screenshot — app layout. Shares .gm-* control styles from styles.css. */
.cs [hidden] { display: none !important; }
.cs { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: calc(100vh - var(--ap-bar, 52px)); height: calc(100dvh - var(--ap-bar, 52px)); }
.cs-main { min-width: 0; min-height: 0; padding: 14px; display: grid; }
.cs-stage { position: relative; min-height: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 35%, #15161b, #08090b); display: grid; place-items: center; padding: 40px 20px 70px; }
.cs-fit { position: relative; flex: none; }
.cs-frame { position: absolute; left: 0; top: 0; transform-origin: 0 0; border-radius: 4px; }
.cs-frame.cs-transparent { background: conic-gradient(#26262b 25%, #1a1a1e 0 50%, #26262b 0 75%, #1a1a1e 0) 0 0 / 18px 18px; }
.cs-window { position: absolute; transform-origin: 0 0; overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.cs-bar { position: relative; flex: none; display: flex; align-items: center; padding: 0 14px; background: var(--t-bar); }
.cs-window[data-style="minimal"] .cs-dots { display: none; }
.cs-dots { display: flex; gap: 8px; }
.cs-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.cs-dots i:nth-child(1) { background: #ff5f57; }
.cs-dots i:nth-child(2) { background: #febc2e; }
.cs-dots i:nth-child(3) { background: #28c840; }
.cs-title { position: absolute; left: 70px; right: 70px; top: 50%; transform: translateY(-50%); height: 26px; border: 0; background: transparent; color: var(--t-fg); opacity: 0.62; text-align: center; font: 500 13px Geist, system-ui, sans-serif; border-radius: 6px; outline: none; }
.cs-title:hover, .cs-title:focus { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.cs-body { position: relative; flex: 1; display: flex; align-items: flex-start; }
.cs-bands { position: absolute; left: 0; right: 0; pointer-events: none; }
.cs-bands i { position: absolute; left: 0; right: 0; display: block; }
.cs-gutter { position: relative; flex: none; display: grid; align-content: start; }
.cs-gutter button { display: block; text-align: right; padding: 0 14px 0 0; color: var(--t-gutter); font: inherit; line-height: inherit; cursor: pointer; border-radius: 4px; }
.cs-gutter button:hover { color: var(--t-fg); }
.cs-gutter button[aria-pressed="true"] { color: var(--t-fg); }
.cs-code { position: relative; flex: none; }
.cs-pre, .cs-ta { margin: 0; padding: 0; border: 0; font: inherit; line-height: inherit; letter-spacing: 0; tab-size: 2; white-space: pre; overflow: hidden; }
.cs-pre { color: var(--t-fg); pointer-events: none; }
.cs-l { display: block; }
.cs-dim { opacity: 0.38; }
.cs-ta { position: absolute; inset: 0; resize: none; background: transparent; color: transparent; caret-color: var(--t-fg); outline: none; overflow-wrap: normal; -webkit-text-fill-color: transparent; }
.cs-ta::selection { background: rgba(125, 211, 252, 0.28); -webkit-text-fill-color: transparent; }
.t-comment { color: var(--t-comment); font-style: italic; }
.t-keyword { color: var(--t-keyword); }
.t-string { color: var(--t-string); }
.t-number { color: var(--t-number); }
.t-function { color: var(--t-function); }
.t-type { color: var(--t-type); }
.t-tag { color: var(--t-tag); }
.t-attr { color: var(--t-attr); }
.t-property { color: var(--t-property); }
.t-constant { color: var(--t-constant); }
.t-punct { color: var(--t-punct); }
.t-operator { color: var(--t-operator); }
.t-variable { color: var(--t-variable); }
.t-meta { color: var(--t-meta); }
.cs-mark { position: absolute; right: 16px; bottom: 12px; font: 500 13px Geist, system-ui, sans-serif; }
.cs-drop { position: absolute; inset: 10px; border: 2px dashed var(--sky); border-radius: 16px; display: grid; place-items: center; background: rgba(2, 6, 23, 0.72); color: #fff; font-size: 15px; z-index: 3; }
.cs-stage-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; }
.cs-sizes { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); overflow-x: auto; max-width: 100%; }
.cs-sizes button { height: 28px; padding: 0 11px; border-radius: 9px; font-size: 12px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.cs-sizes button[aria-pressed="true"] { background: #fff; color: #000; }
.cs-hint { position: absolute; top: 12px; left: 14px; right: 14px; font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--s1); }
.cs-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: grid; gap: 10px; align-content: start; }
.cs-scroll .gm-card { background: var(--s2); }
.cs-field { display: grid; gap: 5px; margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.cs-field em { font: inherit; font-style: normal; font-weight: 500; color: var(--sky); }
.cs-field select { height: 34px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--s1); color: var(--text); font-size: 13px; }
.cs-lab { display: block; font-size: 12.5px; color: var(--mute); margin: 12px 0 6px; }
.cs-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.cs-theme { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid; font-size: 12px; text-align: left; }
.cs-theme b { font-weight: 500; }
.cs-theme-dots { display: flex; gap: 3px; }
.cs-theme-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.cs-theme[aria-checked="true"] { box-shadow: 0 0 0 2px var(--sky); }
.cs-theme:focus-visible, .cs-bg:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.cs-seg { margin: 8px 0 4px; }
.cs-seg button { font-size: 12px; }
.cs-toggles { display: grid; gap: 8px; margin-top: 10px; }
.cs-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.cs-check input { accent-color: var(--sky); width: 16px; height: 16px; }
.cs-bgs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.cs-bg { aspect-ratio: 1; padding: 2px; border-radius: 10px; border: 1px solid var(--line-2); }
.cs-bg i { display: block; width: 100%; height: 100%; border-radius: 7px; }
.cs-bg[aria-checked="true"] { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky); }
.cs-export { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--s1); }
.cs-export .cs-seg { margin: 0; }
.cs-export .gm-actions .btn-sky { flex: 1; justify-content: center; }
.cs-export .gm-actions .btn-sky svg { transform: rotate(90deg); }
.cs-export [data-cs-dim] { font: 500 11px var(--mono); opacity: 0.7; margin-left: 2px; }
.cs-actions2 .btn-cmd { flex: 1; justify-content: center; padding: 0 8px; }
@media (max-width: 1000px) {
  .cs { height: auto; grid-template-columns: 1fr; }
  .cs-stage { height: 58vh; min-height: 340px; }
  .cs-side { border-left: 0; border-top: 1px solid var(--line); }
  .cs-scroll { overflow: visible; }
  .cs-export { position: sticky; bottom: 0; z-index: 5; }
}
@media (max-width: 480px) {
  .cs-stage { padding: 34px 10px 64px; }
  .cs-bgs { grid-template-columns: repeat(6, 1fr); }
}
