* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Cafe24Classictype";
  src:
    url("../fonts/Cafe24Classictype-v1.1/Cafe24Classictype-v1.1.woff2") format("woff2"),
    url("../fonts/Cafe24Classictype-v1.1/Cafe24Classictype-v1.1.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cafe24Dangdanghae";
  src:
    url("../fonts/Cafe24Dangdanghae-v2.0/Cafe24Dangdanghae-v2.0.woff2") format("woff2"),
    url("../fonts/Cafe24Dangdanghae-v2.0/Cafe24Dangdanghae-v2.0.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cafe24PROSlimMax";
  src:
    url("../fonts/Cafe24PROSlimMax_v2.0/Cafe24PROSlimMax.woff2") format("woff2"),
    url("../fonts/Cafe24PROSlimMax_v2.0/Cafe24PROSlimMax.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cafe24Shiningstar";
  src:
    url("../fonts/Cafe24Shiningstar-v2.0/Cafe24Shiningstar-v2.0.woff2") format("woff2"),
    url("../fonts/Cafe24Shiningstar-v2.0/Cafe24Shiningstar-v2.0.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cafe24Syongsyong";
  src:
    url("../fonts/Cafe24Syongsyong-v2.0/Cafe24Syongsyong-v2.0.woff2") format("woff2"),
    url("../fonts/Cafe24Syongsyong-v2.0/Cafe24Syongsyong-v2.0.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Ladder game */
.st-ladder__body {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.st-ladder__panel {
  align-content: start;
  grid-template-columns: 1fr;
}

.st-ladder textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #111827;
  line-height: 1.6;
}

.st-ladder textarea:focus {
  border-color: #2563eb;
  outline: 3px solid rgb(37 99 235 / 15%);
}

.st-ladder .st-field small {
  color: #64748b;
  line-height: 1.5;
}

.st-ladder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.st-ladder__workspace {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 20px;
}

.st-ladder__hint {
  margin: 0;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  padding: 28px 16px;
  color: #475569;
  text-align: center;
}

.st-ladder__game {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.st-ladder__game[hidden] {
  display: none;
}

.st-ladder__labels {
  display: grid;
  min-width: 360px;
  gap: 6px;
}

.st-ladder__participant,
.st-ladder__outcome {
  overflow-wrap: anywhere;
  border-radius: 7px;
  padding: 8px 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.st-ladder__participant {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  cursor: pointer;
}

.st-ladder__participant:hover,
.st-ladder__participant:focus-visible {
  border-color: #2563eb;
  background: #eff6ff;
}

.st-ladder__participant.is-revealed {
  border-color: var(--ladder-color);
  box-shadow: inset 0 -3px 0 var(--ladder-color);
}

.st-ladder__outcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: #f1f5f9;
  color: #334155;
}

.st-ladder__board {
  min-width: 360px;
}

.st-ladder__board svg {
  display: block;
  width: 100%;
  min-height: 340px;
  max-height: 520px;
}

.st-ladder__line {
  stroke: #94a3b8;
  stroke-width: 3;
  stroke-linecap: round;
}

.st-ladder__trace {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.st-ladder__trace.is-animated {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: st-ladder-trace 1.4s ease-out forwards;
}

@keyframes st-ladder-trace {
  to {
    stroke-dashoffset: 0;
  }
}

.st-ladder__result-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.st-ladder__results {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-ladder__result {
  display: grid;
  grid-template-columns: minmax(90px, 0.5fr) 1fr;
  gap: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 11px 13px;
}

.st-ladder__result span {
  color: #1e40af;
  font-weight: 700;
}

.st-ladder__empty {
  color: #64748b;
}

@media (max-width: 760px) {
  .st-ladder__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .st-ladder__result {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-ladder__trace.is-animated {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Ladder game: count-based inputs and simultaneous animation */
.st-ladder__body {
  grid-template-columns: minmax(460px, 560px) minmax(0, 1fr);
}

.st-tool__panel.st-ladder__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.st-ladder__fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.st-ladder__fieldset legend,
.st-ladder__setting-label {
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.st-ladder__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.st-ladder__presets button {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  padding: 7px 11px;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
}

.st-ladder__presets button:hover,
.st-ladder__presets button:focus-visible {
  border-color: #2563eb;
  color: #1d4ed8;
}

.st-ladder__settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
}

.st-ladder__count-control {
  display: grid;
  grid-template-columns: 38px 34px 38px;
  align-items: center;
  gap: 6px;
}

.st-ladder__count-control .st-ladder__setting-label,
.st-ladder__count-control small {
  grid-column: 1 / -1;
}

.st-ladder__count-control button {
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.st-ladder__count-control output {
  color: #111827;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
}

.st-ladder__count-control small {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.st-ladder__settings select {
  min-height: 40px;
}

.st-ladder__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.st-ladder__input-rows {
  display: grid;
  gap: 7px;
}

.st-ladder__input-row input {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #111827;
}

.st-ladder__input-row input:focus {
  border-color: #2563eb;
  outline: 3px solid rgb(37 99 235 / 15%);
}

.st-ladder__clear-row {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  font-size: 19px;
  cursor: pointer;
}

.st-ladder__clear-row:hover,
.st-ladder__clear-row:focus-visible {
  background: #fee2e2;
  color: #b91c1c;
}

.st-ladder__participant {
  border-color: var(--ladder-color);
  box-shadow: inset 0 -3px 0 var(--ladder-color);
  cursor: default;
}

.st-ladder__participant:hover {
  border-color: var(--ladder-color);
  background: #f8fafc;
}

.st-ladder__outcome {
  flex-direction: column;
  gap: 3px;
  transition: background 0.25s, color 0.25s;
}

.st-ladder__outcome strong {
  color: inherit;
  font-size: 13px;
}

.st-ladder__outcome small {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.st-ladder__outcome:not(.is-revealed) {
  color: #94a3b8;
}

.st-ladder__outcome.is-revealed {
  background: #dbeafe;
  color: #1e40af;
}

.st-ladder__trace {
  stroke-width: 6;
  opacity: 0.88;
}

.st-ladder__runner {
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 2px 3px rgb(15 23 42 / 35%));
}

.st-ladder__animation-status {
  min-height: 24px;
  margin: 0;
  color: #475569;
  font-weight: 700;
  text-align: center;
}

.st-ladder__result-section[hidden] {
  display: none;
}

.st-ladder__result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.st-ladder__result-header h3 {
  margin: 0;
}

.st-ladder__result {
  grid-template-columns: minmax(90px, 0.7fr) 28px minmax(110px, 1fr);
  align-items: center;
}

.st-ladder__result.is-highlighted {
  border-color: #fbbf24;
  background: #fffbeb;
}

.st-ladder__result-arrow {
  color: #94a3b8;
  text-align: center;
}

.st-ladder__result-value {
  color: #1e40af;
  font-weight: 800;
}

.st-ladder__result.is-highlighted .st-ladder__result-value {
  color: #b45309;
}

.st-ladder__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.st-ladder__actions .st-button {
  width: 100%;
  min-width: 0;
}

@media (max-width: 900px) {
  .st-ladder__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .st-ladder__settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .st-ladder__count-control {
    grid-template-columns: 32px 26px 32px;
    gap: 3px;
  }

  .st-ladder__count-control button {
    width: 32px;
    height: 38px;
  }

  .st-ladder__settings .st-field span,
  .st-ladder__setting-label {
    font-size: 12px;
  }

  .st-ladder__settings select {
    padding-right: 5px;
    padding-left: 7px;
    font-size: 13px;
  }

  .st-ladder__input-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .st-ladder__result {
    grid-template-columns: 1fr 24px 1fr;
  }
}

/* Roulette game */
.st-roulette__body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.st-tool__panel.st-roulette__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.st-roulette__input-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.st-roulette__input-heading div {
  display: grid;
  gap: 3px;
}

.st-roulette__input-heading small {
  color: #64748b;
}

.st-roulette__input-heading output {
  border-radius: 999px;
  background: #dbeafe;
  padding: 5px 10px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.st-roulette__input-rows {
  display: grid;
  gap: 8px;
  max-height: 370px;
  overflow-y: auto;
  padding-right: 3px;
}

.st-roulette__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
}

.st-roulette__input-row input {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #111827;
}

.st-roulette__input-row input:focus {
  border-color: #2563eb;
  outline: 3px solid rgb(37 99 235 / 15%);
}

.st-roulette__input-row button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
}

.st-roulette__input-row button:hover,
.st-roulette__input-row button:focus-visible {
  background: #fee2e2;
  color: #b91c1c;
}

.st-roulette__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.st-roulette__workspace {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

.st-roulette__wheel-wrap {
  position: relative;
  width: min(100%, 520px);
}

.st-roulette__wheel-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 18px rgb(15 23 42 / 16%));
}

.st-roulette__pointer {
  position: absolute;
  z-index: 1;
  top: -4px;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 30px solid #111827;
  border-right: 18px solid transparent;
  border-left: 18px solid transparent;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 2px rgb(15 23 42 / 25%));
}

.st-roulette__status {
  min-height: 24px;
  margin: 0;
  color: #475569;
  font-weight: 700;
  text-align: center;
}

.st-roulette__result {
  width: min(100%, 420px);
  border: 2px solid #fbbf24;
  border-radius: 14px;
  background: #fffbeb;
  padding: 18px;
  text-align: center;
}

.st-roulette__result[hidden] {
  display: none;
}

.st-roulette__result p {
  margin: 0 0 5px;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.st-roulette__result h3 {
  margin: 0 0 14px;
  color: #b45309;
  font-size: 25px;
  overflow-wrap: anywhere;
}

@media (max-width: 840px) {
  .st-roulette__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .st-roulette__workspace {
    padding: 16px 10px;
  }
}

/* Draw lots game */
.st-draw-lots__body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.st-tool__panel.st-draw-lots__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.st-draw-lots__input-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.st-draw-lots__input-heading div {
  display: grid;
  gap: 3px;
}

.st-draw-lots__input-heading small,
.st-draw-lots .st-field small {
  color: #64748b;
}

.st-draw-lots__input-heading output {
  border-radius: 999px;
  background: #ede9fe;
  padding: 5px 10px;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 800;
}

.st-draw-lots__input-rows {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 3px;
}

.st-draw-lots__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
}

.st-draw-lots__input-row input,
.st-draw-lots [data-draw-lots-winner-count] {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #111827;
}

.st-draw-lots__input-row input:focus,
.st-draw-lots [data-draw-lots-winner-count]:focus {
  border-color: #7c3aed;
  outline: 3px solid rgb(124 58 237 / 15%);
}

.st-draw-lots__input-row button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
}

.st-draw-lots__input-row button:hover,
.st-draw-lots__input-row button:focus-visible {
  background: #fee2e2;
  color: #b91c1c;
}

.st-draw-lots__actions,
.st-draw-lots__result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.st-draw-lots__workspace {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 22px;
}

.st-draw-lots__empty {
  border: 1px dashed #a78bfa;
  border-radius: 12px;
  background: #faf5ff;
  padding: 34px 18px;
  color: #6b21a8;
  text-align: center;
}

.st-draw-lots__empty[hidden],
.st-draw-lots__game[hidden] {
  display: none;
}

.st-draw-lots__game {
  display: grid;
  gap: 18px;
}

.st-draw-lots__game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.st-draw-lots__game-header h3,
.st-draw-lots__game-header p {
  margin: 0;
}

.st-draw-lots__game-header p {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.st-draw-lots__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.st-draw-lots__card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 145px;
  border: 2px solid #c4b5fd;
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f3ff, #ede9fe);
  padding: 15px;
  color: #5b21b6;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.st-draw-lots__card:hover,
.st-draw-lots__card:focus-visible {
  box-shadow: 0 10px 22px rgb(91 33 182 / 18%);
  transform: translateY(-3px);
}

.st-draw-lots__card strong,
.st-draw-lots__card span {
  overflow-wrap: anywhere;
}

.st-draw-lots__card span {
  font-size: 16px;
  font-weight: 800;
}

.st-draw-lots__card.is-revealed {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
  cursor: default;
  opacity: 1;
}

.st-draw-lots__card.is-winner {
  border-color: #f59e0b;
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
  color: #b45309;
}

.st-draw-lots__status {
  min-height: 24px;
  margin: 0;
  color: #475569;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 840px) {
  .st-draw-lots__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .st-draw-lots__workspace {
    padding: 16px 10px;
  }

  .st-draw-lots__game-header {
    align-items: stretch;
    flex-direction: column;
  }

  .st-draw-lots__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .st-draw-lots__card {
    min-height: 125px;
    padding: 10px;
  }
}

/* Instagram feed preview */
.st-instagram-feed__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.st-tool__panel.st-instagram-feed__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.st-instagram-feed__dropzone {
  display: grid;
  gap: 6px;
  border: 2px dashed #a5b4fc;
  border-radius: 12px;
  background: #f8faff;
  padding: 26px 16px;
  color: #3730a3;
  text-align: center;
  cursor: pointer;
}

.st-instagram-feed__dropzone:hover,
.st-instagram-feed__dropzone:focus-within,
.st-instagram-feed__dropzone.is-dragging {
  border-color: #4f46e5;
  background: #eef2ff;
  outline: 3px solid rgb(79 70 229 / 14%);
}

.st-instagram-feed__dropzone span {
  color: #64748b;
  font-size: 13px;
}

.st-instagram-feed__dropzone input {
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
}

.st-instagram-feed__summary,
.st-instagram-feed__focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.st-instagram-feed__summary output {
  border-radius: 999px;
  background: #e0e7ff;
  padding: 5px 10px;
  color: #3730a3;
  font-size: 13px;
  font-weight: 800;
}

.st-instagram-feed__actions,
.st-instagram-feed__focus-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.st-instagram-feed__focus {
  display: grid;
  gap: 14px;
  border-top: 1px solid #d8dee4;
  padding-top: 16px;
}

.st-instagram-feed__focus[hidden] {
  display: none;
}

.st-instagram-feed__focus-header h3 {
  margin: 0;
  font-size: 16px;
}

.st-instagram-feed__focus-header span {
  max-width: 150px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-instagram-feed__focus .st-field {
  grid-template-columns: 80px minmax(0, 1fr) 42px;
  align-items: center;
}

.st-instagram-feed__focus .st-field output {
  color: #475569;
  font-size: 12px;
  text-align: right;
}

.st-instagram-feed__focus-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-instagram-feed__focus-actions .st-button {
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 13px;
}

.st-instagram-feed__remove {
  color: #b91c1c;
}

.st-instagram-feed__privacy {
  margin: 0;
  border-radius: 9px;
  background: #ecfdf5;
  padding: 11px 12px;
  color: #047857;
  font-size: 12px;
  line-height: 1.6;
}

.st-instagram-feed__workspace {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

.st-instagram-feed__profile {
  width: min(100%, 680px);
  overflow: hidden;
  border: 1px solid #d8dee4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 8%);
}

.st-instagram-feed__profile-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
}

.st-instagram-feed__avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ec4899 55%, #7c3aed);
  box-shadow: 0 0 0 2px #db2777;
}

.st-instagram-feed__profile-header div {
  display: grid;
  gap: 2px;
}

.st-instagram-feed__profile-header span {
  color: #64748b;
  font-size: 13px;
}

.st-instagram-feed__order-note {
  display: grid;
  gap: 2px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
  padding: 11px 18px;
  color: #475569;
  font-size: 12px;
}

.st-instagram-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: #fff;
}

.st-instagram-feed__card,
.st-instagram-feed__placeholder {
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f1f5f9;
}

.st-instagram-feed__card {
  border: 0;
}

.st-instagram-feed__card.is-selected {
  box-shadow: inset 0 0 0 4px #4f46e5;
}

.st-instagram-feed__image-button {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e2e8f0;
  padding: 0;
  cursor: pointer;
}

.st-instagram-feed__image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-instagram-feed__image-button:focus-visible {
  outline: 4px solid #4f46e5;
  outline-offset: -4px;
}

.st-instagram-feed__order {
  position: absolute;
  top: 7px;
  left: 7px;
  border-radius: 999px;
  background: rgb(15 23 42 / 78%);
  padding: 3px 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.st-instagram-feed__card-controls {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
}

.st-instagram-feed__card-controls button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
  background: rgb(15 23 42 / 78%);
  padding: 0;
  color: #fff;
  cursor: pointer;
}

.st-instagram-feed__card-controls button:disabled {
  opacity: 0.35;
}

.st-instagram-feed__placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  color: #cbd5e1;
  font-size: 28px;
}

.st-instagram-feed__status {
  min-height: 24px;
  margin: 0;
  color: #475569;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .st-instagram-feed__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .st-instagram-feed__workspace {
    padding: 14px 8px;
  }

  .st-instagram-feed__profile {
    border-radius: 10px;
  }

  .st-instagram-feed__profile-header {
    padding: 15px;
  }

  .st-instagram-feed__focus-actions {
    grid-template-columns: 1fr;
  }

  .st-instagram-feed__card-controls button {
    width: 27px;
    height: 27px;
  }
}

body {
  margin: 0;
  background: #f6f7f9;
  color: #17202a;
  font-family: Arial, "Malgun Gothic", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

.st-guide {
  margin: 32px 0;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 42, 55, 0.06);
  padding: 28px;
}

.st-guide h2 {
  margin: 32px 0 12px;
  font-size: 22px;
}

.st-guide h2:first-child {
  margin-top: 0;
}

.st-guide h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.st-guide p,
.st-guide ul,
.st-guide ol {
  margin: 0 0 14px;
}

.st-guide__examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}

.st-guide__example {
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

.st-guide__example p {
  margin: 0;
}

.st-guide__faq {
  border-top: 1px solid #e1e6eb;
}

.st-guide__faq-item {
  border-bottom: 1px solid #e1e6eb;
}

.st-guide__faq-item summary {
  cursor: pointer;
  padding: 16px 4px;
  font-weight: 700;
}

.st-guide__faq-item p {
  padding: 0 4px 16px;
}

.st-guide__notice {
  border-left: 4px solid #d97706;
  border-radius: 4px;
  background: #fff7ed;
  padding: 14px 16px;
  color: #713f12;
}

.st-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.tool-nav {
  margin-bottom: 32px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 42, 55, 0.06);
  padding: 20px;
}

.tool-nav__header {
  margin-bottom: 18px;
}

.tool-nav__eyebrow {
  margin: 0 0 2px;
  color: #57606a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-nav__title {
  margin: 0;
  font-size: 22px;
}

.tool-nav__categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.tool-nav__category-title {
  margin: 0 0 10px;
  color: #38424d;
  font-size: 15px;
}

.tool-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #c9d1d9;
  border-radius: 7px;
  background: #fbfcfd;
  padding: 7px 11px;
  color: #253044;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tool-nav__link:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.tool-nav__link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.tool-nav__link--active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.tool-nav__link--active:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.st-page__header {
  margin-bottom: 20px;
}

.st-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
  text-align: center;
}

.st-page-actions__button {
  background: #ffffff;
  color: #1d4ed8;
}

.st-page-actions__button:hover:not(:disabled) {
  background: #eff6ff;
}

.st-page-actions__button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.st-page-actions__message {
  flex-basis: 100%;
  min-height: 21px;
  margin: 0;
  color: #38424d;
  font-size: 14px;
  font-weight: 700;
}

.st-page__eyebrow,
.st-tool__eyebrow {
  margin: 0 0 4px;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.st-page h1,
.st-tool h2 {
  margin: 0;
  letter-spacing: 0;
}

.st-page h1 {
  font-size: 32px;
}

.st-tool {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 42, 55, 0.08);
  overflow: hidden;
}

.st-tool__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #d8dee4;
}

.st-tool__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 0;
}

.st-tool__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border-right: 1px solid #d8dee4;
  background: #fbfcfd;
}

.st-field,
.st-check {
  display: grid;
  gap: 6px;
  color: #38424d;
  font-size: 14px;
  font-weight: 700;
}

.st-field--wide {
  grid-column: 1 / -1;
}

.st-field input,
.st-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c9d1d9;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  padding: 8px 10px;
}

.st-field input[type="color"] {
  padding: 4px;
}

.st-field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.st-check {
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 40px;
}

.st-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.st-button {
  min-height: 40px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.st-button--primary {
  background: #2563eb;
  color: #ffffff;
}

.st-button:disabled {
  border-color: #b8c0cc;
  background: #d8dee4;
  color: #6b7280;
  cursor: not-allowed;
}

.st-preview {
  display: grid;
  align-content: center;
  min-height: 420px;
  padding: 24px;
}

.st-preview__canvas {
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: auto;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
}

.st-preview__canvas.is-transparent {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #eef1f4 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f4 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f4 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.st-preview svg {
  max-width: 100%;
  height: auto;
}

.st-tool__message {
  min-height: 24px;
  margin: 12px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 700;
}

.st-ip__body {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 36px 20px;
  text-align: center;
}

.st-ip__value {
  display: block;
  width: min(100%, 640px);
  overflow-wrap: anywhere;
  border: 1px solid #c9d1d9;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
  color: #111827;
  font-family: Consolas, "Courier New", monospace;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.st-ip__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.st-gif__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.st-gif__panel {
  grid-template-columns: 1fr 1fr;
}

.st-gif__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

.st-gif__workspace {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 20px;
  padding: 20px;
}

.st-gif__frames,
.st-gif__preview {
  min-width: 0;
}

.st-gif__frames-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.st-gif__frames-header h3 {
  margin: 0;
  font-size: 17px;
}

.st-gif__frames-header span {
  color: #57606a;
  font-size: 14px;
  font-weight: 700;
}

.st-gif__frame-list {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-gif__frame {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.st-gif__frame img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: #ffffff;
}

.st-gif__frame-info {
  min-width: 0;
}

.st-gif__frame-info strong,
.st-gif__frame-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-gif__frame-info strong {
  color: #17202a;
  font-size: 14px;
}

.st-gif__frame-info span {
  color: #57606a;
  font-size: 13px;
}

.st-gif__frame-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
}

.st-gif__frame-actions .st-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.st-gif__preview-box {
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: auto;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  text-align: center;
}

.st-gif__preview-box p {
  margin: 0;
  color: #57606a;
  font-weight: 700;
}

.st-gif__preview-box img {
  max-width: 100%;
  height: auto;
}

.st-gif__download {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.st-dialog[hidden] {
  display: none;
}

.st-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.45);
}

.st-dialog__panel {
  width: min(100%, 420px);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
  padding: 22px;
}

.st-dialog__panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.st-dialog__panel p {
  margin: 0 0 18px;
  color: #38424d;
}

.st-resizer__body {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
}

.st-resizer__panel {
  grid-template-columns: 1fr 1fr;
}

.st-resizer__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

.st-resizer__workspace {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-resizer__section {
  min-width: 0;
}

.st-resizer__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.st-resizer__section-header h3 {
  margin: 0;
  font-size: 17px;
}

.st-resizer__section-header span {
  color: #57606a;
  font-size: 14px;
  font-weight: 700;
}

.st-resizer__list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-resizer__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.st-resizer__item img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #eef1f4 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f4 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f4 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.st-resizer__item-info {
  min-width: 0;
}

.st-resizer__item-info strong,
.st-resizer__item-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-resizer__item-info strong {
  color: #17202a;
  font-size: 14px;
}

.st-resizer__item-info span {
  color: #57606a;
  font-size: 13px;
}

.st-resizer__item .st-button {
  grid-column: 1 / -1;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.st-loan__body {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
}

.st-loan__panel {
  grid-template-columns: 1fr 1fr;
}

.st-loan__quick,
.st-loan__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-loan__quick .st-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.st-loan__actions {
  grid-column: 1 / -1;
}

.st-loan__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-loan__section,
.st-loan__summary {
  min-width: 0;
}

.st-loan__section h3,
.st-loan__section-header h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.st-loan__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.st-loan__section-header h3 {
  margin-bottom: 0;
}

.st-loan__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-loan__cards div {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.st-loan__cards dt {
  margin: 0 0 8px;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
}

.st-loan__cards dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.st-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8dee4;
  border-radius: 8px;
}

.st-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
}

.st-table th,
.st-table td {
  border-bottom: 1px solid #d8dee4;
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.st-table th:first-child,
.st-table td:first-child {
  text-align: left;
}

.st-table th {
  background: #fbfcfd;
  color: #38424d;
  font-weight: 800;
}

.st-table tbody tr:last-child td {
  border-bottom: 0;
}

.st-table tr.is-selected td {
  background: #eff6ff;
  font-weight: 800;
}

.st-age__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.st-age__panel {
  grid-template-columns: 1fr;
}

.st-age__quick,
.st-age__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-age__quick .st-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.st-age__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-age__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-age__cards div,
.st-age__details div {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.st-age__cards dt,
.st-age__details dt {
  margin: 0 0 8px;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
}

.st-age__cards dd,
.st-age__details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-weight: 800;
}

.st-age__cards dd {
  font-size: 24px;
}

.st-age__details {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-age__section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.st-pet-age__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.st-pet-age__panel {
  grid-template-columns: 1fr;
}

.st-pet-age__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-pet-age__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-pet-age__cards,
.st-pet-age__details {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-pet-age__cards div,
.st-pet-age__details div {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.st-pet-age__cards dt,
.st-pet-age__details dt {
  margin: 0 0 8px;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
}

.st-pet-age__cards dd,
.st-pet-age__details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-weight: 800;
}

.st-pet-age__cards dd {
  font-size: 22px;
}

.st-pet-age__details dd {
  font-size: 15px;
}

.st-pet-age__section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.st-pet-age__notice {
  margin: 0;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  background: #eff6ff;
  padding: 12px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.st-zodiac__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.st-zodiac__panel {
  grid-template-columns: 1fr;
}

.st-zodiac__date-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
}

.st-zodiac__leap[hidden] {
  display: none;
}

.st-zodiac__range {
  margin: 0;
  color: #57606a;
  font-size: 13px;
  line-height: 1.5;
}

.st-zodiac__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-zodiac__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-zodiac__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-zodiac__cards div,
.st-zodiac__details div {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.st-zodiac__cards dt,
.st-zodiac__details dt {
  margin: 0 0 8px;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
}

.st-zodiac__cards dd,
.st-zodiac__details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-weight: 800;
}

.st-zodiac__cards dd {
  font-size: 24px;
}

.st-zodiac__details dd {
  font-size: 16px;
}

.st-zodiac__section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.st-zodiac__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-zodiac__reason {
  margin: 12px 0 0;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.st-zodiac__years,
.st-zodiac__notice {
  margin: 0;
  border-radius: 6px;
  padding: 12px;
}

.st-zodiac__years {
  border: 1px solid #d8dee4;
  background: #fbfcfd;
  font-weight: 700;
}

.st-consonant__body {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
}

.st-consonant__panel {
  grid-template-columns: 1fr;
}

.st-consonant textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #b8c0cc;
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
  font: inherit;
  line-height: 1.7;
}

.st-consonant textarea:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, 0.18);
}

.st-consonant__options {
  margin: 0;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  padding: 12px;
}

.st-consonant__options legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.st-consonant__option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px 12px;
}

.st-consonant__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-consonant__count {
  margin: 0;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
}

.st-consonant__workspace {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 20px;
}

.st-consonant__result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.st-consonant__result-header h3 {
  margin: 0;
  font-size: 17px;
}

.st-consonant__result {
  min-height: 260px;
  background: #fbfcfd !important;
  color: #111827;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.st-zodiac__notice {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.st-favicon__body {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
}

.st-favicon__panel {
  grid-template-columns: 1fr 1fr;
}

.st-favicon__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

.st-favicon__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-favicon__section {
  min-width: 0;
}

.st-favicon__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.st-favicon__section-header h3 {
  margin: 0;
  font-size: 17px;
}

.st-favicon__preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-height: 120px;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.st-favicon__preview p {
  margin: 0;
  color: #57606a;
  font-weight: 700;
}

.st-favicon__preview-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 76px;
}

.st-favicon__preview-item img {
  width: 52px;
  height: 52px;
  image-rendering: auto;
  object-fit: contain;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #eef1f4 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f4 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f4 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.st-favicon__preview-item span {
  color: #57606a;
  font-size: 12px;
  font-weight: 700;
}

.st-favicon__result-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-favicon__result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.st-favicon__result-item strong,
.st-favicon__result-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-favicon__result-item strong {
  color: #17202a;
  font-size: 14px;
}

.st-favicon__result-item span {
  color: #57606a;
  font-size: 13px;
}

.st-favicon__result-item .st-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.st-favicon__code {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid #c9d1d9;
  border-radius: 8px;
  background: #fbfcfd;
  color: #17202a;
  padding: 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.st-lotto__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.st-lotto__panel {
  grid-template-columns: 1fr 1fr;
}

.st-lotto__selected {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.st-lotto__selected div {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.st-lotto__selected strong {
  display: block;
  margin-bottom: 6px;
  color: #38424d;
  font-size: 13px;
}

.st-lotto__selected p {
  min-height: 22px;
  margin: 0;
  color: #17202a;
  font-weight: 800;
}

.st-lotto__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

.st-lotto__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-lotto__section {
  min-width: 0;
}

.st-lotto__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.st-lotto__section-header h3 {
  margin: 0;
  font-size: 17px;
}

.st-lotto__board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 8px;
}

.st-lotto__number,
.st-lotto__ball {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-weight: 800;
}

.st-lotto__number {
  aspect-ratio: 1;
  border: 2px solid transparent;
  cursor: pointer;
}

.st-lotto__number.is-included {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.st-lotto__number.is-excluded {
  opacity: 0.38;
  text-decoration: line-through;
}

.st-lotto__ball {
  width: 38px;
  height: 38px;
  box-shadow: inset 0 -2px 0 rgba(17, 24, 39, 0.16);
}

.st-lotto__number.is-yellow,
.st-lotto__ball.is-yellow {
  background: #facc15;
}

.st-lotto__number.is-blue,
.st-lotto__ball.is-blue {
  background: #60a5fa;
  color: #ffffff;
}

.st-lotto__number.is-red,
.st-lotto__ball.is-red {
  background: #f87171;
  color: #ffffff;
}

.st-lotto__number.is-gray,
.st-lotto__ball.is-gray {
  background: #9ca3af;
  color: #ffffff;
}

.st-lotto__number.is-green,
.st-lotto__ball.is-green {
  background: #34d399;
}

.st-lotto__results {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-lotto__result {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.st-lotto__result strong {
  color: #38424d;
  font-size: 14px;
}

.st-lotto__result div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-woman__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.st-woman__panel {
  grid-template-columns: 1fr 1fr;
}

.st-woman__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

.st-woman__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-woman__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-woman__cards div,
.st-woman__details div,
.st-woman__list-item {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.st-woman__cards dt,
.st-woman__details dt {
  margin: 0 0 8px;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
}

.st-woman__cards dd,
.st-woman__details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-weight: 800;
}

.st-woman__cards dd {
  font-size: 20px;
}

.st-woman__section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.st-woman__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-woman__list-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.st-woman__list-item strong {
  color: #38424d;
  font-size: 14px;
}

.st-woman__list-item span {
  color: #17202a;
  font-weight: 800;
}

.st-woman__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-woman__notice {
  margin: 0;
  border-left: 4px solid #f472b6;
  border-radius: 6px;
  background: #fdf2f8;
  padding: 12px;
  color: #831843;
  font-size: 14px;
  font-weight: 700;
}

.st-converter__body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.st-converter__panel {
  grid-template-columns: 1fr 1fr;
}

.st-converter__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

.st-converter__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-converter__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-converter__cards div {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.st-converter__cards dt {
  margin: 0 0 8px;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
}

.st-converter__cards dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.st-converter__notice {
  margin: 0;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  background: #eff6ff;
  padding: 12px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.st-nutrition__body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.st-nutrition__panel {
  grid-template-columns: 1fr 1fr;
}

.st-nutrition__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.st-nutrition__workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.st-nutrition__cards,
.st-nutrition__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-nutrition__cards div,
.st-nutrition__details div {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.st-nutrition__cards dt,
.st-nutrition__details dt {
  margin: 0 0 8px;
  color: #57606a;
  font-size: 13px;
  font-weight: 700;
}

.st-nutrition__cards dd,
.st-nutrition__details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-weight: 800;
}

.st-nutrition__cards dd {
  font-size: 20px;
}

.st-nutrition__details {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.st-nutrition__section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.st-nutrition__custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.st-nutrition__custom[hidden] {
  display: none;
}

.st-nutrition__custom small {
  grid-column: 1 / -1;
  color: #57606a;
}

.st-nutrition__notice {
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  background: #eff6ff;
  padding: 14px;
  color: #1e3a8a;
}

.st-nutrition__notice--warning {
  border-left-color: #d97706;
  background: #fffbeb;
  color: #78350f;
}

.st-nutrition__notice strong {
  display: block;
  margin-bottom: 6px;
}

.st-nutrition__notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.st-card-news__body {
  display: grid;
  grid-template-columns: 1fr;
}

.st-card-news__settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid #d8dee4;
  background: #fbfcfd;
  padding: 20px;
}

.st-card-news__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.st-card-news__settings .st-tool__message {
  grid-column: 1 / -1;
}

.st-card-news__privacy {
  margin: 0;
  color: #57606a;
  font-size: 14px;
  line-height: 1.6;
}

.st-card-news__workspace {
  min-width: 0;
  padding: 20px;
}

.st-card-news__cards {
  display: grid;
  gap: 18px;
}

.st-card-news__add-area {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.st-card-news__card {
  overflow: hidden;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.st-card-news__card-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  border-bottom: 1px solid #d8dee4;
  padding: 14px 16px;
}

.st-card-news__card-header h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
}

.st-card-news__card-header span {
  grid-column: 1 / 2;
  color: #57606a;
  font-size: 13px;
}

.st-card-news__card-actions {
  display: flex;
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.st-card-news__editor {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: start;
  padding: 18px;
}

.st-card-news__media-pane,
.st-card-news__text-pane {
  display: grid;
  align-content: start;
  gap: 14px;
}

.st-card-news__media-pane {
  border-right: 1px solid #d8dee4;
  padding-right: 18px;
}

.st-card-news__option-group {
  display: grid;
  gap: 12px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.st-card-news__option-group h4 {
  margin: 0;
  color: #111827;
  font-size: 15px;
}

.st-card-news__text-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.st-card-news__preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  align-self: stretch;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  padding: 16px;
}

.st-card-news__preview canvas {
  display: block;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.st-card-news__text-pane textarea {
  min-height: 86px;
  resize: vertical;
}

@media (max-width: 900px) {
  .st-card-news__settings {
    grid-template-columns: 1fr;
  }

  .st-nutrition__body {
    grid-template-columns: 1fr;
  }

  .st-nutrition__panel {
    border-right: 0;
    border-bottom: 1px solid #d8dee4;
  }
}

@media (max-width: 760px) {
  .st-page {
    width: min(100% - 20px, 1120px);
    padding: 20px 0;
  }

  .st-tool__header {
    align-items: stretch;
    flex-direction: column;
  }

  .st-tool__body {
    grid-template-columns: 1fr;
  }

  .st-gif__body,
  .st-gif__workspace,
  .st-resizer__body,
  .st-resizer__workspace,
  .st-loan__body,
  .st-age__body,
  .st-pet-age__body,
  .st-zodiac__body,
  .st-consonant__body,
  .st-favicon__body,
  .st-lotto__body,
  .st-woman__body,
  .st-nutrition__body,
  .st-converter__body {
    grid-template-columns: 1fr;
  }

  .st-card-news__editor {
    grid-template-columns: 1fr;
  }

  .st-card-news__media-pane {
    border-right: 0;
    border-bottom: 1px solid #d8dee4;
    padding-right: 0;
    padding-bottom: 18px;
  }

  .st-loan__cards,
  .st-age__cards,
  .st-age__details,
  .st-pet-age__cards,
  .st-pet-age__details,
  .st-zodiac__cards,
  .st-zodiac__details,
  .st-lotto__selected,
  .st-woman__cards,
  .st-woman__details,
  .st-converter__cards {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .st-nutrition__cards,
  .st-nutrition__details {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .st-tool__panel {
    border-right: 0;
    border-bottom: 1px solid #d8dee4;
  }
}

@media (max-width: 460px) {
  .st-page-actions__button {
    flex: 1 1 140px;
  }

  .st-guide {
    padding: 20px;
  }

  .tool-nav {
    padding: 16px;
  }

  .tool-nav__categories {
    grid-template-columns: 1fr;
  }

  .tool-nav__list li {
    flex: 1 1 calc(50% - 8px);
  }

  .tool-nav__link {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .st-tool__panel {
    grid-template-columns: 1fr;
  }

  .st-gif__panel {
    grid-template-columns: 1fr;
  }

  .st-resizer__panel {
    grid-template-columns: 1fr;
  }

  .st-loan__panel,
  .st-favicon__panel,
  .st-lotto__panel,
  .st-woman__panel,
  .st-converter__panel,
  .st-loan__cards,
  .st-age__cards,
  .st-age__details,
  .st-pet-age__cards,
  .st-pet-age__details,
  .st-zodiac__cards,
  .st-zodiac__details,
  .st-lotto__selected,
  .st-woman__cards,
  .st-woman__details,
  .st-converter__cards {
    grid-template-columns: 1fr;
  }

  .st-nutrition__panel,
  .st-card-news__card-header,
  .st-card-news__text-controls,
  .st-nutrition__cards,
  .st-nutrition__details,
  .st-nutrition__custom {
    grid-template-columns: 1fr;
  }

  .st-card-news__card-header span,
  .st-card-news__card-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .st-card-news__card-actions {
    justify-content: flex-start;
  }

  .st-nutrition__custom small {
    grid-column: auto;
  }

  .st-zodiac__date-fields {
    grid-template-columns: 1fr;
  }

  .st-consonant__option-grid {
    grid-template-columns: 1fr;
  }

  .st-lotto__result {
    grid-template-columns: 1fr;
  }

  .st-woman__list-item {
    grid-template-columns: 1fr;
  }

  .st-ip__value {
    font-size: 22px;
  }
}
