/* Rpavel asset version: 12 */
/* MKTU normalizer page styles (v12) */
.tool-shell {
  --tool-accent: #0f766e;
  --tool-accent-soft: #ccfbf1;
  --tool-border: rgba(15, 118, 110, 0.25);
}

.tool-hero {
  position: relative;
  overflow: hidden;
}

.tool-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 22%, rgba(20, 184, 166, 0.24), transparent 55%);
  pointer-events: none;
}

.tool-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.tool-links .page-subtitle {
  display: inline-flex;
  align-items: baseline;
  line-height: 1.45;
}

.tool-hero .tool-links .page-subtitle {
  padding-left: 0;
}

.tool-hero a.page-subtitle::after {
  content: "↗";
  font-size: 0.9em;
  line-height: 1;
  margin-left: 0.15em;
  opacity: 0.9;
}

.tool-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card--full {
    grid-column: 1 / -1;
  }

  .tool-input {
    min-height: 28rem;
  }
}

.tool-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tool-card-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 600;
  color: #0f172a;
}

.tool-input {
  width: 100%;
  min-height: 28rem;
  resize: vertical;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  padding: 0.95rem 1rem;
  color: #0f172a;
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

@media (max-height: 820px) {
  .tool-input {
    min-height: 28rem;
  }
}

.tool-input:focus {
  border-color: var(--tool-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.tool-input--error,
.tool-input--error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.tool-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tool-btn {
  border: 0;
  border-radius: 0.9rem;
  padding: 0.6rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.tool-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.tool-btn--primary {
  background: linear-gradient(145deg, #0f766e, #0d9488);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.3);
}

.tool-btn--ghost {
  background: rgba(255, 255, 255, 0.66);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.tool-status--idle {
  background: #e2e8f0;
  color: #334155;
}

.tool-status--loading {
  background: #dbeafe;
  color: #1e40af;
}

.tool-status--ok {
  background: #dcfce7;
  color: #166534;
}

.tool-status--error {
  background: #fee2e2;
  color: #991b1b;
}

.tool-result {
  margin-top: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--tool-border);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.7), rgba(255, 255, 255, 0.95));
  padding: 1rem;
}

.tool-result code {
  display: block;
  white-space: normal;
  word-break: break-word;
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  font-size: 0.92rem;
  color: #0f172a;
}

.tool-result-line {
  display: block;
  white-space: pre-wrap;
}

.tool-result-line + .tool-result-line {
  margin-top: 0.4rem;
}

.tool-result-class-prefix {
  font-weight: 700;
}

.tool-result-breakdown {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 118, 110, 0.25);
}

.tool-result-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 0;
}

.tool-result-breakdown-head .tool-list-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.tool-summary-line,
.tool-result-breakdown-list,
.tool-result-breakdown-item {
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  font-size: 0.92rem;
}

.tool-summary-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.6rem; }
.tool-summary-line + .tool-summary-line { margin-top: 0.45rem; }
.tool-summary-line--primary { font-size: inherit; }
.tool-summary-line--secondary { color: #0f172a; }
.tool-summary-label { font-weight: 700; color: #0f172a; }
.tool-summary-value { font-weight: 600; color: #0f172a; }
.tool-summary-total { color: #0f172a; font-family: "Consolas", "Menlo", "Monaco", monospace; font-size: inherit; font-weight: 400; }
.tool-summary-note { color: #0f172a; }
.tool-result-breakdown > .tool-meta {
  margin: 0;
  padding: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.tool-result-breakdown-list {
  display: grid;
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

#mktuClassBreakdownList.tool-list {
  margin: 0;
  padding: 0;
}

.tool-result-breakdown-list:empty {
  display: none;
}

.tool-result-breakdown-item {
  display: block;
  padding: 0.25rem 0;
  color: #0f172a;
  line-height: 1.5;
  font-size: 0.92rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .tool-result-breakdown-head {
    align-items: flex-start;
    padding-left: 0;
    padding-right: 0;
  }

  .tool-result-breakdown > .tool-meta,
  .tool-result-breakdown-list {
    padding-left: 0;
    padding-right: 0;
  }

  .tool-result-breakdown-list {
    gap: 0;
    padding-bottom: 0;
  }

  #mktuClassBreakdownList.tool-list {
    padding-left: 0;
    padding-right: 0;
  }
}

.tool-meta {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.82rem;
}

.diagnostics-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .diagnostics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tool-list-title {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
}

.tool-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: #0f172a;
}

.tool-list:empty {
  margin-top: 0;
}

.tool-list--error {
  color: #991b1b;
}

.tool-error-highlight {
  margin-top: 0.8rem;
  border: 1px solid rgba(220, 38, 38, 0.32);
  border-radius: 0.85rem;
  background: #fef2f2;
  padding: 0.75rem 0.85rem;
  color: #7f1d1d;
}

.tool-error-highlight__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tool-error-highlight__code {
  display: block;
  margin-top: 0.45rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  font-size: 0.88rem;
}

.tool-error-highlight__mark {
  border-radius: 0.25rem;
  background: #fecaca;
  color: #7f1d1d;
  padding: 0.04rem 0.1rem;
}

.tool-list--warning {
  color: #9a3412;
}


#mktuClassBreakdownList.tool-list { margin-top: 0.8rem; gap: 0.35rem; }
.tool-result-breakdown-head { margin-bottom: 0.6rem; }
.tool-result-breakdown > .tool-meta { white-space: normal; }

#mktuClassBreakdownList.tool-list > li.tool-result-breakdown-item { color: #000; -webkit-text-fill-color: #000; opacity: 1; font-weight: 400; }
#resultMessage { margin: 1rem 0 0; padding: 0.5rem 1rem; text-align: center; line-height: 1.5; }
#resultMessage:empty { display: none; }

/* Input area size override */
#mktuInput.tool-input { min-height: 12rem; height: 12rem; }
@media (max-height: 820px) { #mktuInput.tool-input { min-height: 12rem; height: 12rem; } }

#mktuClassBreakdown .tool-class-summary { display: block; color: #000; font-family: Consolas, Menlo, Monaco, monospace; font-size: 0.92rem; font-weight: 400; line-height: 1.5; }
#mktuClassBreakdown .tool-class-summary + .tool-class-summary { margin-top: 0.35rem; }

#errorsList.tool-list--empty, #warningsList.tool-list--empty { margin: 0.4rem 0 0; padding: 0; list-style: none; }
#errorsList.tool-list--empty > li, #warningsList.tool-list--empty > li { margin: 0; padding: 0; color: #000; line-height: 1.5; }

#normalizedOutput .tool-result-number { background: #fef08a; color: #000; border-radius: 0.2rem; padding: 0 0.1rem; font: inherit; }
.mktu-input{min-height:12rem;height:12rem}
