.ius-body.admin-bar {
  margin-top: 0 !important;
}

.ius-body #wpadminbar {
  display: none !important;
}

.ius-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(20, 184, 166, 0.18), transparent 58%),
    radial-gradient(720px 460px at 90% 12%, rgba(59, 130, 246, 0.13), transparent 62%),
    linear-gradient(180deg, #09111d 0%, #101827 56%, #0b111d 100%);
  color: #eef5ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ius-body a {
  color: inherit;
}

.ius-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ius-topbar,
.ius-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ius-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 18px 0 10px;
}

.ius-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ius-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(59, 130, 246, 0.14));
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.ius-brand__text {
  display: grid;
  gap: 2px;
}

.ius-brand__text strong {
  font-size: 17px;
  line-height: 1.1;
}

.ius-brand__text small {
  color: #9aa8bb;
  font-size: 13px;
}

.ius-topnav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ius-topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.68);
  color: #dbe7f5;
  font-size: 14px;
  font-weight: 800;
  padding: 0 13px;
  text-decoration: none;
}

.ius-topnav a:hover {
  border-color: rgba(45, 212, 191, 0.42);
  color: #ffffff;
}

.iehes-shortener-template {
  flex: 1;
}

.ius-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #8fa0b5;
  font-size: 13px;
  padding: 18px 0 24px;
}

.ius-shell {
  --ius-panel: rgba(15, 23, 42, 0.82);
  --ius-panel-strong: rgba(17, 27, 43, 0.96);
  --ius-ink: #eef5ff;
  --ius-muted: #9aa8bb;
  --ius-border: rgba(148, 163, 184, 0.2);
  --ius-primary: #2dd4bf;
  --ius-primary-dark: #14b8a6;
  --ius-danger: #f87171;
  --ius-warning: #fbbf24;
  --ius-focus: #38bdf8;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 52px;
  color: var(--ius-ink);
}

.ius-shell * {
  box-sizing: border-box;
}

.ius-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.ius-kicker {
  margin: 0 0 4px;
  color: var(--ius-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ius-header h1,
.ius-auth h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: 0;
}

.ius-notice {
  border: 1px solid var(--ius-border);
  border-left-width: 5px;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--ius-panel);
  color: var(--ius-ink);
  font-weight: 700;
}

.ius-notice--success {
  border-left-color: var(--ius-primary);
}

.ius-notice--error {
  border-left-color: var(--ius-danger);
}

.ius-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ius-stat {
  min-height: 84px;
  border: 1px solid var(--ius-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.86));
  padding: 14px;
}

.ius-stat span {
  display: block;
  color: var(--ius-muted);
  font-size: 13px;
  font-weight: 700;
}

.ius-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
}

.ius-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ius-panel {
  border: 1px solid var(--ius-border);
  border-radius: 8px;
  background: var(--ius-panel);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.ius-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  border-bottom: 1px solid var(--ius-border);
  padding: 16px;
}

.ius-panel__head--stack {
  align-items: stretch;
}

.ius-panel h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.ius-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.ius-field {
  display: grid;
  gap: 7px;
}

.ius-field > span {
  color: var(--ius-muted);
  font-size: 13px;
  font-weight: 800;
}

.ius-field input,
.ius-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ius-border);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.48);
  color: var(--ius-ink);
  font: inherit;
  padding: 9px 11px;
}

.ius-field input::placeholder,
.ius-search input::placeholder {
  color: #6f8094;
}

.ius-field input:focus,
.ius-search input:focus,
.ius-button:focus-visible,
.ius-icon-button:focus-visible,
.ius-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ius-focus) 30%, transparent);
  outline-offset: 2px;
}

.ius-slug-field {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(80px, 1fr) 42px;
  align-items: center;
  border: 1px solid var(--ius-border);
  border-radius: 8px;
  overflow: hidden;
}

.ius-slug-field > span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--ius-border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--ius-muted);
  font-size: 13px;
  padding: 0 10px;
  white-space: nowrap;
}

.ius-slug-field input {
  min-width: 0;
  border: 0;
  border-radius: 0;
}

.ius-button,
.ius-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.ius-button:hover,
.ius-icon-button:hover {
  transform: translateY(-1px);
}

.ius-button--primary {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #f8fafc;
}

.ius-button--primary:hover {
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  color: #ffffff;
}

.ius-button--ghost {
  border-color: var(--ius-border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--ius-ink);
  padding: 0 13px;
}

.ius-icon-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-color: var(--ius-border);
  background: rgba(15, 23, 42, 0.76);
  color: var(--ius-ink);
}

.ius-icon-button--danger {
  color: var(--ius-danger);
}

.ius-icon-button.is-copied {
  border-color: var(--ius-primary);
  background: rgba(20, 184, 166, 0.16);
  color: var(--ius-primary);
}

.ius-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ius-link {
  color: var(--ius-primary);
  font-weight: 800;
  text-decoration: none;
}

.ius-search {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 42px;
  gap: 8px;
}

.ius-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ius-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.ius-table th,
.ius-table td {
  border-bottom: 1px solid var(--ius-border);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.ius-table th {
  color: var(--ius-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ius-code,
.ius-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ius-actions form {
  margin: 0;
}

.ius-code a,
.ius-destination {
  color: var(--ius-ink);
  font-weight: 800;
  text-decoration: none;
}

.ius-title {
  display: block;
  margin-top: 4px;
  color: var(--ius-muted);
  font-size: 13px;
}

.ius-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.ius-status.is-active {
  background: rgba(20, 184, 166, 0.16);
  color: #67e8f9;
}

.ius-status.is-paused {
  background: rgba(251, 191, 36, 0.14);
  color: var(--ius-warning);
}

.ius-empty {
  padding: 28px 16px;
  color: var(--ius-muted);
  font-weight: 700;
}

.ius-auth {
  width: min(520px, 100%);
  border: 1px solid var(--ius-border);
  border-radius: 8px;
  background: var(--ius-panel);
  margin: 50px auto;
  padding: 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.ius-auth p:not(.ius-kicker) {
  color: var(--ius-muted);
  font-size: 16px;
  margin: 12px 0 20px;
}

@media (max-width: 860px) {
  .ius-topbar,
  .ius-footer {
    width: min(100% - 24px, 1180px);
  }

  .ius-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ius-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .ius-header,
  .ius-panel__head--stack {
    flex-direction: column;
    align-items: stretch;
  }

  .ius-stats,
  .ius-layout {
    grid-template-columns: 1fr;
  }

  .ius-search {
    grid-template-columns: 1fr 42px;
  }
}

@media (max-width: 520px) {
  .ius-brand__mark {
    width: 46px;
    height: 46px;
  }

  .ius-topnav {
    width: 100%;
  }

  .ius-topnav a {
    flex: 1;
    justify-content: center;
  }

  .ius-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ius-stats {
    gap: 8px;
  }

  .ius-stat {
    min-height: 72px;
    padding: 12px;
  }

  .ius-stat strong {
    font-size: 24px;
  }

  .ius-slug-field {
    grid-template-columns: 1fr 42px;
  }

  .ius-slug-field > span {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--ius-border);
    white-space: normal;
  }
}
