/**
 * طراح کاراکتر LCD — استایل اختصاصی
 */
.ic-tool-lcd-designer .ic-tool-body {
  padding-bottom: 160px;
}

.ic-lcd-display {
  position: relative;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 10px;
  background: #91ad1a;
  border: 5px solid #6a6e78;
  border-radius: 22px;
  overflow: hidden;
}

.ic-lcd-grid {
  display: flex;
  flex-wrap: wrap;
  width: 200px;
  gap: 10px;
  direction: ltr;
}

.ic-lcd-pixel {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.ic-lcd-pixel.is-on {
  background: rgba(0, 0, 0, 0.85);
}

.ic-lcd-pixel:active {
  transform: scale(0.96);
}

.ic-lcd-touch-lock {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
}

.ic-lcd-touch-lock[hidden] {
  display: none !important;
}

.ic-lcd-pickers {
  margin-bottom: 24px;
}

/* کد خروجی — عرض کامل + UI مثل HighlightedCode / ورکشاپ */
.ic-lcd-code-results {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
  padding-bottom: 24px;
  box-sizing: border-box;
  direction: ltr;
}

.ic-lcd-code-results[hidden] {
  display: none !important;
}

.ic-tool-lcd-designer .ic-ws-code-card,
.ic-lcd-code-card {
  background: #f6f8fa;
  border-radius: 12px;
  border: 1px solid #e1e4e8;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  direction: ltr;
  box-sizing: border-box;
}

.ic-tool-lcd-designer .ic-ws-code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ic-tool-lcd-designer .ic-ws-code-card-meta,
.ic-lcd-code-meta {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 8px;
  min-width: 0;
}

.ic-tool-lcd-designer .ic-ws-code-lang,
.ic-lcd-code-pill {
  display: inline-block;
  max-width: 78%;
  background: rgba(0, 0, 0, 0.06);
  color: #57606a;
  font-size: 10px;
  font-family: "IRANYekan", sans-serif;
  padding: 4px 10px;
  border-radius: 8px;
  text-align: left;
  direction: rtl;
}

.ic-lcd-code-sep {
  color: #8b949e;
  font-size: 11px;
}

.ic-lcd-code-hint {
  font-size: 10px;
  font-family: "IRANYekan", sans-serif;
  color: #6e7781;
  direction: rtl;
}

.ic-tool-lcd-designer .ic-ws-code-copy {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.ic-tool-lcd-designer .ic-ws-code-copy .ic-icon,
.ic-tool-lcd-designer .ic-ws-code-copy-icon {
  background-color: #6e7781;
}

.ic-tool-lcd-designer .ic-ws-code-scroll {
  width: 100%;
  max-height: 380px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.ic-tool-lcd-designer .ic-ws-code {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  direction: ltr;
  text-align: left;
  overflow: visible;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 17px;
  color: #24292f;
  white-space: pre;
}

.ic-tool-lcd-designer .ic-ws-tok.is-comment { color: #6e7781; }
.ic-tool-lcd-designer .ic-ws-tok.is-keyword { color: #cf222e; }
.ic-tool-lcd-designer .ic-ws-tok.is-include { color: #0550ae; }
.ic-tool-lcd-designer .ic-ws-tok.is-number { color: #953800; }
.ic-tool-lcd-designer .ic-ws-tok.is-type { color: #8250df; }
.ic-tool-lcd-designer .ic-ws-tok.is-method { color: #0550ae; }
.ic-tool-lcd-designer .ic-ws-tok.is-ident,
.ic-tool-lcd-designer .ic-ws-tok.is-punct,
.ic-tool-lcd-designer .ic-ws-tok.is-default { color: #24292f; }

.ic-lcd-footer-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 10px;
}

.ic-lcd-calc-btn {
  flex: 1;
}

.ic-lcd-invert-btn {
  min-width: 100px;
  height: 56px;
  padding: 0 16px;
  border: none;
  border-radius: 14px;
  background: #475569;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ic-lcd-invert-btn:disabled {
  background: #bfccd4;
  cursor: not-allowed;
}
