/* WingdingsHub Translator — refined premium UI v1.6.0 */
.wdt-app,
.wdt-app * { box-sizing: border-box; }

.wdt-app {
  --wdt-text: #11182b;
  --wdt-body: #2d3a50;
  --wdt-muted: #65748a;
  --wdt-subtle: #8a98ac;
  --wdt-accent: #2563eb;
  --wdt-accent-dark: #1d4ed8;
  --wdt-teal: #0f9d91;
  --wdt-warning: #9a5d08;
  --wdt-success: #15824a;

  position: relative;
  isolation: isolate;
  width: min(100%, var(--wdt-max-width, 1280px));
  margin: 0 auto;
  padding: clamp(16px, 1.65vw, 22px);
  overflow: visible;
  border: 0;
  border-radius: var(--wdt-radius, 28px);
  background:
    radial-gradient(circle at 8% 0%, rgba(37,99,235,.065), transparent 26%),
    radial-gradient(circle at 94% 4%, rgba(15,157,145,.045), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(245,249,255,.72));
  color: var(--wdt-text);
  font-family: "Manrope", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow:
    0 26px 70px rgba(15,23,42,.075),
    0 4px 14px rgba(37,99,235,.025),
    inset 0 1px 0 rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}

.wdt-app::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 9%;
  right: 9%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent);
  pointer-events: none;
}

.wdt-app button,
.wdt-app textarea,
.wdt-app select { font-family: inherit; }

.wdt-head,
.wdt-toolbar,
.wdt-panel-head,
.wdt-actions { display: flex; align-items: center; }

.wdt-head {
  justify-content: space-between;
  gap: 24px;
  padding: 2px 2px 18px;
}

.wdt-head > div:first-child { min-width: 0; }

.wdt-title {
  margin: 0;
  color: var(--wdt-text);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.wdt-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--wdt-muted);
  font-size: 15px;
  line-height: 1.6;
}

.wdt-badge {
  position: relative;
  flex: 0 0 auto;
  padding: 9px 13px 9px 31px;
  border: 0;
  border-radius: 999px;
  background: rgba(232,250,246,.82);
  color: #0b8177;
  font-size: 12px;
  font-weight: 740;
  line-height: 1;
  white-space: nowrap;
}

.wdt-badge::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(15,157,145,.09);
}

/* One clean control rail. No border-inside-border treatment. */
.wdt-toolbar {
  position: relative;
  z-index: 5;
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 0 auto 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wdt-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(98px, 1fr));
  gap: 2px;
  flex: 0 0 auto;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: rgba(232,239,249,.78);
  box-shadow: inset 0 1px 2px rgba(15,23,42,.035);
}

.wdt-mode-btn,
.wdt-icon-btn,
.wdt-primary,
.wdt-secondary {
  border: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.wdt-mode-btn {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 10px;
  background: transparent;
  color: #5d6b81;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
}

.wdt-mode-btn:hover {
  color: #26354a;
  background: rgba(255,255,255,.44);
}

.wdt-mode-btn.is-active {
  color: var(--wdt-accent-dark);
  background: rgba(255,255,255,.94);
  box-shadow:
    0 5px 15px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,1);
}

.wdt-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #637188;
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wdt-font-field {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.wdt-field > span { white-space: nowrap; }

.wdt-field select {
  width: 210px;
  max-width: 40vw;
  min-height: 50px;
  padding: 0 42px 0 15px;
  border: 0;
  border-radius: 14px;
  background-color: rgba(255,255,255,.90);
  color: var(--wdt-text);
  font-size: 13.5px;
  font-weight: 680;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow:
    0 5px 16px rgba(15,23,42,.045),
    inset 0 0 0 1px rgba(180,197,219,.44),
    inset 0 1px 0 rgba(255,255,255,.96);
}

/* Desktop workspace: input | swap | output */
.wdt-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 62px minmax(0,1fr);
  gap: 0;
  align-items: stretch;
  overflow: visible;
}

/* Panels are grouping surfaces, not additional bordered cards. */
.wdt-panel {
  position: relative;
  min-width: 0;
  padding: clamp(14px, 1.45vw, 19px);
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.34);
  box-shadow: none;
}

.wdt-output-panel {
  background: rgba(242,247,253,.40);
}

.wdt-panel-head {
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin-bottom: 10px;
}

.wdt-panel-head label {
  color: #172033;
  font-size: 13.5px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.012em;
}

.wdt-counter {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(233,239,248,.70);
  color: #8190a5;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.wdt-app textarea {
  display: block;
  width: 100%;
  min-height: var(--wdt-textarea-height, 220px);
  margin: 0;
  resize: vertical;
  padding: 17px 18px;
  border: 1px solid rgba(172,190,214,.52);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  color: var(--wdt-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.66;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.018);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.wdt-app textarea::placeholder { color: #9aa7ba; opacity: 1; }

.wdt-output-panel textarea {
  background: rgba(247,250,254,.90);
  border-color: rgba(179,196,219,.46);
}

.wdt-app textarea:focus,
.wdt-field select:focus {
  outline: none;
  border-color: rgba(37,99,235,.45);
  box-shadow:
    0 0 0 3px rgba(37,99,235,.065),
    0 9px 24px rgba(37,99,235,.035);
}

.wdt-app button:focus-visible {
  outline: 2px solid rgba(37,99,235,.58);
  outline-offset: 3px;
}

/* Swap: centered SVG, strong contrast on hover. */
.wdt-swap-slot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
}

.wdt-icon-btn {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--wdt-accent-dark);
  box-shadow:
    0 10px 25px rgba(15,23,42,.09),
    0 3px 10px rgba(37,99,235,.055);
}

.wdt-icon-btn svg {
  display: block;
  width: 21px;
  height: 21px;
  margin: 0;
  transform: none;
  transform-origin: 50% 50%;
}

.wdt-icon-btn:hover {
  background: var(--wdt-accent);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(37,99,235,.20),
    0 3px 11px rgba(37,99,235,.14);
  transform: translateY(-1px) scale(1.03);
}

.wdt-actions {
  justify-content: flex-end;
  gap: 8px;
  min-height: 42px;
  margin-top: 10px;
}

.wdt-primary,
.wdt-secondary {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 740;
  line-height: 1;
}

.wdt-primary {
  background: linear-gradient(135deg, #3475ef 0%, var(--wdt-accent) 58%, var(--wdt-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 7px 17px rgba(37,99,235,.16), inset 0 1px 0 rgba(255,255,255,.18);
}

.wdt-primary:hover {
  background: linear-gradient(135deg, #3b7cf1 0%, #2563eb 52%, #1d4ed8 100%);
  box-shadow: 0 10px 22px rgba(37,99,235,.21), inset 0 1px 0 rgba(255,255,255,.20);
  transform: translateY(-1px);
}

.wdt-secondary {
  background: rgba(255,255,255,.78);
  color: var(--wdt-body);
  box-shadow: inset 0 0 0 1px rgba(178,194,216,.40), inset 0 1px 0 rgba(255,255,255,.96);
}

.wdt-secondary:hover {
  background: rgba(239,246,255,.94);
  color: var(--wdt-accent-dark);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.09), 0 6px 15px rgba(37,99,235,.05);
  transform: translateY(-1px);
}

.wdt-primary:active,
.wdt-secondary:active,
.wdt-mode-btn:active,
.wdt-icon-btn:active { transform: translateY(1px); }

.wdt-status {
  display: flex;
  align-items: center;
  min-height: 18px;
  margin: 9px 3px 0;
  color: var(--wdt-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.wdt-status:not(:empty)::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .68;
}

.wdt-status.is-warning { color: var(--wdt-warning); }
.wdt-status.is-success { color: var(--wdt-success); }

.wdt-note {
  margin: 6px 3px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(188,204,227,.35);
  color: var(--wdt-subtle);
  font-size: 12px;
  line-height: 1.6;
}

.wdt-control-hidden { display: none !important; }

@media (min-width: 721px) and (max-width: 1040px) {
  .wdt-app { padding: 15px; }
  .wdt-mode { grid-template-columns: repeat(2,minmax(88px,1fr)); }
  .wdt-field select { width: 185px; }
  .wdt-grid { grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); }
  .wdt-swap-slot { min-width: 52px; }
  .wdt-icon-btn { width: 42px; height: 42px; }
  .wdt-panel { padding: 13px; }
  .wdt-app textarea {
    min-height: min(var(--wdt-textarea-height,220px),205px);
    padding: 14px;
    font-size: 14.5px;
  }
}

@media (max-width: 720px) {
  .wdt-app {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    border-radius: min(var(--wdt-radius,28px),20px);
    box-shadow: 0 15px 34px rgba(15,23,42,.065), inset 0 1px 0 rgba(255,255,255,.94);
  }

  .wdt-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 2px 2px 14px;
  }

  .wdt-title { font-size: clamp(22px,7.2vw,28px); }
  .wdt-subtitle { margin-top: 6px; font-size: 14px; line-height: 1.5; }
  .wdt-badge { align-self: flex-start; }

  .wdt-toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .wdt-mode { width: 100%; }
  .wdt-mode-btn { min-height: 42px; padding-inline: 10px; }

  .wdt-font-field {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    width: 100%;
    min-width: 0;
  }

  .wdt-field select {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 46px;
  }

  .wdt-grid { grid-template-columns: 1fr; gap: 8px; }

  .wdt-swap-slot {
    min-width: 0;
    height: 28px;
    margin: -1px 0;
  }

  .wdt-icon-btn { width: 40px; height: 40px; }
  .wdt-icon-btn svg { transform: rotate(90deg); }
  .wdt-icon-btn:hover { transform: translateY(-1px) scale(1.03); }
  .wdt-icon-btn:active { transform: translateY(1px); }

  .wdt-panel {
    padding: 11px;
    border-radius: 16px;
  }

  .wdt-panel-head { margin-bottom: 8px; }

  .wdt-app textarea {
    min-height: min(var(--wdt-textarea-height,220px),170px);
    padding: 13px;
    border-radius: 13px;
    font-size: 14.5px;
    line-height: 1.6;
  }

  .wdt-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    min-height: 0;
    margin-top: 9px;
  }

  .wdt-actions .wdt-primary:only-child,
  .wdt-actions .wdt-secondary:only-child { grid-column: 1 / -1; }

  .wdt-primary,
  .wdt-secondary { width: 100%; min-height: 42px; }
}

@media (max-width: 600px) {
  /* On phones, remove the plugin shell entirely. */
  .wdt-app {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .wdt-app::before { display: none; }

  .wdt-toolbar { margin-bottom: 9px; }

  .wdt-mode { background: rgba(232,239,249,.80); }

  .wdt-panel {
    padding: 10px 0;
    border-radius: 0;
    background: transparent;
  }

  .wdt-output-panel { background: transparent; }

  .wdt-app textarea {
    background: rgba(255,255,255,.90);
  }

  .wdt-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .wdt-actions { grid-template-columns: 1fr; }
  .wdt-actions .wdt-primary:only-child,
  .wdt-actions .wdt-secondary:only-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wdt-app *,
  .wdt-app *::before,
  .wdt-app *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* v1.7.0 — consistent monochrome symbol rendering without changing the translator layout. */
.wdt-app textarea.wdt-symbol-text {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "Apple Symbols", "Arial Unicode MS", sans-serif;
  font-variant-emoji: text;
  font-weight: 400;
}
