.izt-tool {
  display: grid;
  gap: 1.25rem;
}

.izt-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--iz-muted);
}

.izt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.izt-input {
  flex: 1 1 16rem;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--iz-border);
  background: var(--iz-surface);
  color: var(--iz-text);
  font: inherit;
}

.izt-input:focus-visible {
  outline: 2px solid var(--iz-accent);
  outline-offset: 2px;
}

.izt-submit,
.izt-copy {
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 12px;
  background: #e85d04;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.izt-copy {
  background: transparent;
  color: var(--iz-text);
  border: 1px solid var(--iz-border);
}

.izt-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.izt-result {
  display: grid;
  gap: 1rem;
}

.izt-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.izt-final {
  overflow-wrap: anywhere;
  font-family: var(--iz-mono);
  font-size: 0.9rem;
}

.izt-h {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
}

.izt-sec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.izt-sec__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--iz-border);
  border-radius: 999px;
  background: var(--iz-surface);
  font-size: 0.8rem;
}

.izt-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.izt-pill--ok { background: color-mix(in srgb, #1a9f5c 22%, transparent); color: #157a47; }
.izt-pill--warn { background: color-mix(in srgb, #e07a3d 24%, transparent); color: #b45309; }
.izt-pill--bad { background: color-mix(in srgb, #dc2626 20%, transparent); color: #b91c1c; }
.izt-pill--info,
.izt-pill--general { background: color-mix(in srgb, var(--iz-text) 8%, transparent); color: var(--iz-muted); }
.izt-pill--security { background: color-mix(in srgb, #2563eb 18%, transparent); color: #1d4ed8; }
.izt-pill--cache { background: color-mix(in srgb, #7c3aed 18%, transparent); color: #6d28d9; }
.izt-pill--robots { background: color-mix(in srgb, #0f766e 18%, transparent); color: #0f766e; }

html.dark .izt-pill--ok { color: #4ade80; }
html.dark .izt-pill--warn { color: #fdba74; }
html.dark .izt-pill--bad { color: #fca5a5; }
html.dark .izt-pill--security { color: #93c5fd; }
html.dark .izt-pill--cache { color: #c4b5fd; }
html.dark .izt-pill--robots { color: #5eead4; }

.izt-table-wrap {
  overflow: auto;
  border: 1px solid var(--iz-border);
  border-radius: 14px;
}

.izt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.izt-table th,
.izt-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--iz-border);
}

.izt-table code,
.izt-final,
.izt-export {
  font-family: var(--iz-mono);
}

.izt-export {
  width: 100%;
  min-height: 16rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--iz-border);
  background: var(--iz-surface);
  color: var(--iz-text);
}

.izt-error { color: #dc2626; }
html.dark .izt-error { color: #fca5a5; }

.izt-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.45rem;
}

.izt-toast {
  min-width: 12rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #fff;
  background: #334155;
}

.izt-toast--success { background: #15803d; }
.izt-toast--error { background: #b91c1c; }
.izt-toast--info { background: #c2410c; }
