.tool-main *,
.tool-main *::before,
.tool-main *::after {
  box-sizing: border-box;
}

.tool-main {
  min-height: 100vh;
  padding-top: calc(72px + 42px);
  background:
    radial-gradient(circle at 8% 4%, rgba(246, 124, 144, 0.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(255, 206, 218, 0.28), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fff9fa 52%, #fff4f6 100%);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

.ng-shell {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.ng-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
  padding: 0 16px;
}

.ng-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.055em;
  color: var(--ink);
  font-weight: 900;
}

.ng-hero p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 580px;
  font-size: clamp(0.95rem, 3vw, 1.08rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
}

.ng-console {
  position: relative;
  width: 100%;
}

.ng-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(246, 124, 144, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(46, 28, 35, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.ng-tab {
  position: relative;
  min-width: 150px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #79717f;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 850;
  cursor: pointer;
  transition: color 0.32s cubic-bezier(.22, 1, .36, 1), background 0.32s cubic-bezier(.22, 1, .36, 1), box-shadow 0.32s cubic-bezier(.22, 1, .36, 1), transform 0.32s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ng-tab:hover {
  color: var(--ink);
}

.ng-tab.active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 8px 22px rgba(83, 42, 56, 0.08);
}

.ng-tab:active {
  transform: scale(0.98);
}

.ng-panel {
  display: none;
  animation: panelIn 0.48s cubic-bezier(.22, 1, .36, 1) both;
  width: 100%;
}

.ng-panel.active {
  display: block;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.quick-card,
.quick-preview-card,
.designer-card,
.workspace-card {
  border: 1px solid rgba(246, 124, 144, 0.14);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 80px rgba(49, 29, 37, 0.075);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  overflow: hidden;
}

.quick-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.panel-heading,
.workspace-top,
.results-heading,
.output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.panel-heading-text,
.workspace-top-text,
.results-heading-text,
.output-head-text {
  display: flex;
  flex-direction: column;
}

.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-heading h2,
.workspace-top h2,
.results-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 3.5vw, 1.42rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.panel-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(246, 124, 144, 0.11);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}

.field-stack > label {
  padding-left: 2px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
}

.input-frame {
  position: relative;
  width: 100%;
}

.input-frame i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #918895;
  pointer-events: none;
}

.ng-input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 48px;
  border: 1px solid rgba(83, 42, 56, 0.12);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 250, 251, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  transition: border-color 0.28s cubic-bezier(.22, 1, .36, 1), box-shadow 0.28s cubic-bezier(.22, 1, .36, 1), background 0.28s cubic-bezier(.22, 1, .36, 1);
}

.ng-input::placeholder {
  color: #aaa2ad;
  font-weight: 600;
}

.ng-input:focus {
  border-color: rgba(246, 124, 144, 0.72);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(246, 124, 144, 0.12);
}

.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
}

.choice-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.choice-item {
  position: relative;
  display: block;
  cursor: pointer;
  width: 100%;
}

.choice-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-item span {
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(83, 42, 56, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.3s cubic-bezier(.22, 1, .36, 1), box-shadow 0.3s cubic-bezier(.22, 1, .36, 1), transform 0.3s cubic-bezier(.22, 1, .36, 1), background 0.3s cubic-bezier(.22, 1, .36, 1);
}

.choice-item strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.choice-item small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-item:hover span {
  transform: translateY(-2px);
  border-color: rgba(246, 124, 144, 0.34);
}

.choice-item input:checked + span {
  background: #fff;
  border-color: rgba(246, 124, 144, 0.82);
  box-shadow: 0 12px 30px rgba(246, 124, 144, 0.14);
}

.ng-submit {
  align-self: flex-start;
  min-width: 220px;
  border-radius: 999px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-preview-card {
  min-height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.quick-preview-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 68%;
  background: radial-gradient(circle, rgba(246, 124, 144, 0.16), transparent 58%);
  pointer-events: none;
}

.preview-meta {
  position: relative;
  z-index: 1;
}

.preview-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-meta strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

.quick-live-text {
  position: relative;
  z-index: 1;
  margin-top: 54px;
  padding: 28px;
  border: 1px solid rgba(246, 124, 144, 0.15);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: clamp(1.3rem, 2.8vw, 2.15rem);
  line-height: 1.55;
  font-weight: 900;
  text-align: center;
  word-break: break-all;
  white-space: pre-wrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.results-block {
  margin-top: 28px;
  width: 100%;
}

.results-heading {
  margin-bottom: 16px;
  padding: 0 6px;
}

.results-heading > span {
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.results-list {
  display: grid;
  gap: 14px;
  width: 100%;
}

.result-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid rgba(246, 124, 144, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(49, 29, 37, 0.045);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  animation: resultIn 0.48s cubic-bezier(.22, 1, .36, 1) forwards;
  transition: border-color 0.32s cubic-bezier(.22, 1, .36, 1), box-shadow 0.32s cubic-bezier(.22, 1, .36, 1), transform 0.32s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

@keyframes resultIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 124, 144, 0.34);
  box-shadow: 0 24px 56px rgba(49, 29, 37, 0.08);
}

.result-card:active {
  transform: scale(0.99);
}

.result-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.3;
}

.result-value {
  overflow-x: auto;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 850;
  line-height: 1.55;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  max-width: 100%;
}

.result-value::-webkit-scrollbar {
  display: none;
}

.result-copy {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(246, 124, 144, 0.12);
  color: var(--primary-dark);
  transition: background 0.28s cubic-bezier(.22, 1, .36, 1), color 0.28s cubic-bezier(.22, 1, .36, 1);
}

.result-card:hover .result-copy {
  background: var(--primary);
  color: #fff;
}

.designer-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.designer-card,
.workspace-card {
  padding: 30px;
}

.designer-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tool-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.section-title strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.section-title span,
.workspace-top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 600;
}

.preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.preset-btn {
  min-height: 68px;
  padding: 14px;
  border: 1px solid rgba(83, 42, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(.22, 1, .36, 1), border-color 0.28s cubic-bezier(.22, 1, .36, 1), box-shadow 0.28s cubic-bezier(.22, 1, .36, 1), background 0.28s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.preset-btn strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.preset-btn span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 124, 144, 0.32);
  box-shadow: 0 16px 34px rgba(49, 29, 37, 0.06);
}

.preset-btn.active {
  background: #fff;
  border-color: rgba(246, 124, 144, 0.8);
  box-shadow: 0 14px 34px rgba(246, 124, 144, 0.13);
}

.symbol-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.symbol-tabs::-webkit-scrollbar {
  display: none;
}

.symbol-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(83, 42, 56, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.24s cubic-bezier(.22, 1, .36, 1), color 0.24s cubic-bezier(.22, 1, .36, 1), border-color 0.24s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.symbol-tab.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: rgba(246, 124, 144, 0.4);
}

.symbol-grid {
  min-height: 148px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(83, 42, 56, 0.09);
  border-radius: 22px;
  background: rgba(255, 250, 251, 0.66);
  width: 100%;
}

.symbol-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(83, 42, 56, 0.11);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), background 0.22s cubic-bezier(.22, 1, .36, 1), border-color 0.22s cubic-bezier(.22, 1, .36, 1), color 0.22s cubic-bezier(.22, 1, .36, 1);
}

.symbol-btn.is-name {
  font-size: 0.86rem;
  color: var(--primary-dark);
  background: rgba(246, 124, 144, 0.1);
}

.symbol-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 124, 144, 0.38);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.symbol-btn:active {
  transform: scale(0.95);
}

.workspace-card {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workspace-top {
  margin-bottom: 0;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.soft-action {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(83, 42, 56, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.24s cubic-bezier(.22, 1, .36, 1), background 0.24s cubic-bezier(.22, 1, .36, 1), color 0.24s cubic-bezier(.22, 1, .36, 1), border-color 0.24s cubic-bezier(.22, 1, .36, 1);
}

.soft-action:hover {
  transform: translateY(-2px);
  color: var(--ink);
  border-color: rgba(246, 124, 144, 0.24);
}

.soft-action.danger:hover {
  color: #c92446;
  background: #fff4f6;
}

.token-stage {
  min-height: 140px;
  padding: 18px;
  border: 1px solid rgba(83, 42, 56, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(246, 124, 144, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 124, 144, 0.045) 1px, transparent 1px),
    rgba(255, 250, 251, 0.72);
  background-size: 22px 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.token-builder {
  min-width: 100%;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

.token-empty {
  width: 100%;
  min-height: 104px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
  padding: 0 16px;
}

.token-item {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid rgba(83, 42, 56, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
  animation: tokenIn 0.26s cubic-bezier(.34, 1.56, .64, 1) both;
  transition: border-color 0.22s cubic-bezier(.22, 1, .36, 1), box-shadow 0.22s cubic-bezier(.22, 1, .36, 1), transform 0.22s cubic-bezier(.22, 1, .36, 1);
  flex-shrink: 0;
}

@keyframes tokenIn {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.token-item:hover {
  transform: translateY(-1px);
  border-color: rgba(246, 124, 144, 0.3);
}

.token-item.selected {
  border-color: rgba(246, 124, 144, 0.9);
  box-shadow: 0 0 0 5px rgba(246, 124, 144, 0.12);
}

.token-item.is-name {
  color: var(--primary-dark);
  background: #fff5f7;
  border-color: rgba(246, 124, 144, 0.22);
}

.token-val {
  white-space: pre;
}

.token-tools {
  display: none;
  gap: 4px;
  margin-left: 2px;
}

.token-item.selected .token-tools {
  display: inline-flex;
}

.token-act {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f4f1f3;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.token-act:hover {
  background: var(--primary);
  color: #fff;
}

.token-act.delete:hover {
  background: #c92446;
}

.output-panel {
  padding: 24px;
  border: 1px solid rgba(246, 124, 144, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,248,250,0.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 18px 46px rgba(49, 29, 37, 0.055);
  width: 100%;
}

.output-head {
  margin-bottom: 18px;
  align-items: center;
}

.output-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.preview-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.output-body {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(83, 42, 56, 0.09);
  border-radius: 22px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.output-body::-webkit-scrollbar {
  display: none;
}

.output-text {
  color: var(--ink);
  font-size: clamp(1.4rem, 3.6vw, 2.5rem);
  line-height: 1.6;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.output-actions {
  margin-top: 18px;
  width: 100%;
}

.output-copy {
  width: 100%;
  border-radius: 999px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1180px) {
  .quick-layout,
  .designer-grid {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .designer-grid {
    grid-template-columns: 1fr;
  }
  .workspace-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .quick-layout {
    grid-template-columns: 1fr;
  }
  .quick-preview-card {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .quick-card,
  .quick-preview-card,
  .designer-card,
  .workspace-card {
    padding: 24px;
    border-radius: 28px;
  }
  .result-card {
    grid-template-columns: 1fr minmax(0, 1fr) 48px;
    padding: 16px;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .ng-tabs {
    width: 100%;
  }
  .ng-tab {
    min-width: 0;
    flex: 1;
  }
  .preset-grid {
    grid-template-columns: 1fr;
  }
  .result-card {
    grid-template-columns: 1fr 48px;
    align-items: flex-start;
  }
  .result-label {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .result-value {
    grid-column: 1 / 2;
    padding-top: 4px;
  }
  .result-copy {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: center;
  }
}

@media (max-width: 520px) {
  .choice-control {
    grid-template-columns: 1fr;
  }
  .workspace-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .soft-action {
    flex: 1 1 auto;
  }
  .panel-heading,
  .workspace-top,
  .results-heading,
  .output-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .quick-card,
  .quick-preview-card,
  .designer-card,
  .workspace-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .ng-hero h1 {
    font-size: 2rem;
  }
  .output-text {
    font-size: 1.4rem;
  }
  .output-body {
    justify-content: flex-start;
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .tool-main {
    padding-top: calc(72px + 24px);
  }
  .quick-card,
  .quick-preview-card,
  .designer-card,
  .workspace-card,
  .output-panel {
    padding: 16px;
  }
  .token-item {
    font-size: 0.95rem;
    padding: 0 12px;
  }
  .symbol-grid {
    padding: 12px;
  }
  .symbol-btn {
    min-width: 44px;
    height: 44px;
  }
  .ng-submit {
    width: 100%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn,
  .soft-action,
  .preset-btn,
  .symbol-btn,
  .result-card,
  .ng-tab {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}.quick-layout { grid-template-columns: minmax(0, 720px); justify-content: center; }
.quick-card { width: 100%; }
.quick-preview-card { display: none !important; }
@media (max-width: 760px) {
  .ng-hero { padding-top: 22px; }
  .ng-hero h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .ng-console { margin-top: 18px; }
  .quick-layout { grid-template-columns: 1fr; }
}

.btn-loader[hidden] { display: none !important; }
.quick-layout { grid-template-columns: minmax(0, 620px); justify-content: center; }
.quick-card { animation: softLift .58s var(--ease) both; }
.results-block { max-width: 760px; margin-left: auto; margin-right: auto; }
@keyframes softLift { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) {
  .tool-main { padding-top: calc(var(--nav-h) + 22px); }
  .ng-hero { margin-bottom: 22px; }
  .ng-tabs { width: min(100%, 340px); margin-bottom: 20px; }
  .ng-tab { min-width: 0; flex: 1; height: 44px; font-size: .94rem; }
  .quick-card { padding: 22px; border-radius: 26px; }
}

@media (max-width: 980px) {
  .designer-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .designer-sidebar,
  .designer-workspace,
  .designer-card,
  .workspace-card {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .tool-main {
    width: 100%;
    overflow-x: clip;
  }
  .ng-shell,
  .ng-console,
  .ng-panel,
  .quick-layout,
  .designer-grid {
    min-width: 0;
    max-width: 100%;
  }
  .designer-card,
  .workspace-card,
  .output-panel {
    min-width: 0;
    max-width: 100%;
  }
  .symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    align-items: stretch;
  }
  .symbol-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    overflow-wrap: anywhere;
  }
  .workspace-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .soft-action {
    width: 100%;
    min-width: 0;
  }
  .token-stage {
    overflow-x: hidden;
    padding: 14px;
  }
  .token-builder {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .token-empty {
    min-height: 92px;
  }
  .token-item {
    max-width: 100%;
    height: auto;
    min-height: 44px;
    flex-wrap: wrap;
  }
  .token-val {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .token-tools {
    display: inline-flex;
  }
  .output-body {
    justify-content: flex-start;
    overflow-x: hidden;
  }
  .output-text {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
  }
  .results-heading > span {
    padding-top: 0;
  }
}

@media (max-width: 430px) {
  .tool-main .container {
    width: min(100% - 20px, 1120px);
  }
  .ng-tabs {
    width: 100%;
    padding: 5px;
  }
  .ng-tab {
    height: 42px;
    font-size: 0.9rem;
  }
  .designer-card,
  .workspace-card {
    border-radius: 24px;
  }
  .symbol-tabs {
    margin-inline: -2px;
  }
  .symbol-tab {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
  }
  .output-panel {
    border-radius: 22px;
  }
  .output-body {
    min-height: 96px;
    padding: 16px;
    border-radius: 18px;
  }
}
.designer-grid {
  width: min(100%, 1040px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.designer-sidebar,
.designer-workspace {
  min-width: 0;
  width: 100%;
}

.preset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preset-btn {
  min-width: 0;
  overflow: hidden;
}

.preset-btn span {
  max-width: 100%;
}

.workspace-card {
  min-width: 0;
}

@media (max-width: 900px) {
  .designer-grid {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .preset-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .preset-btn {
    min-height: 64px;
    padding: 13px 14px;
  }

  .preset-btn span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .designer-card,
  .workspace-card {
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .designer-grid {
    gap: 14px;
  }

  .designer-card,
  .workspace-card {
    padding: 16px;
  }

  .token-stage {
    padding: 12px;
  }

  .output-copy {
    min-height: 48px;
    font-size: 0.95rem;
  }
}



.seo-faq-section{padding-top:0}.seo-faq-shell{max-width:1040px}.seo-faq-shell h2{margin:0 0 14px;font-size:clamp(28px,4vw,44px);line-height:1.12;letter-spacing:-.04em}.seo-faq-shell>p:not(.eyebrow){max-width:780px;color:rgba(52,38,45,.76);font-size:1.03rem;line-height:1.9}.seo-faq-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.seo-faq-card{padding:22px;border:1px solid rgba(184,106,128,.18);border-radius:28px;background:rgba(255,255,255,.76);box-shadow:0 18px 48px rgba(184,106,128,.1)}.seo-faq-card h3{margin:0 0 10px;font-size:1.08rem}.seo-faq-card p{margin:0;color:rgba(52,38,45,.72);line-height:1.75}@media (max-width:860px){.seo-faq-grid{grid-template-columns:1fr}.seo-faq-card{border-radius:22px}}
