/* Text tools — shared by /textcleaner, /charcounter, /caseconverter, /slug, and the encoders (/base64, /urlencode, /htmlentities, /punycode) */

.tt-lead {
  margin: 8px 0 22px;
  max-width: 820px;
  color: var(--as-ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.tt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--as-ink-soft);
}

.tt-label .tt-muted {
  font-weight: 500;
}

.tt-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  padding: 14px 18px;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--as-shadow);
  font-family: var(--as-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--as-ink);
  resize: vertical;
}

.tt-input:focus,
.tt-field:focus {
  outline: none;
  border-color: var(--as-accent);
  box-shadow: 0 0 0 3px rgba(20, 189, 238, 0.18), var(--as-shadow);
}

.tt-input[readonly] {
  background: var(--as-paper);
  box-shadow: none;
}

.tt-field {
  box-sizing: border-box;
  padding: 7px 12px;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--as-font);
  font-size: 14px;
  color: var(--as-ink);
}

.tt-field--num {
  width: 80px;
}

.tt-field--wide {
  width: 280px;
  max-width: 100%;
}

.tt-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--as-ink);
}

.tt-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  cursor: pointer;
}

.tt-options input[type="checkbox"],
.tt-options input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--as-accent-dark);
}

.tt-panel {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  box-shadow: var(--as-shadow);
}

.tt-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--as-ink);
}

.tt-group {
  margin: 22px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--as-gold);
}

.tt-muted {
  color: var(--as-muted);
  font-size: 13px;
}

.tt-empty {
  margin: 0;
  font-size: 14px;
  color: var(--as-muted);
}

/* rows: label, output, copy */

.tt-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--as-line);
}

.tt-row:last-child {
  border-bottom: 0;
}

.tt-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--as-muted);
}

.tt-row-out {
  min-width: 0;
  font-size: 16px;
  color: var(--as-ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tt-row-out.tt-mono {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 14px;
}

/* stat tiles */

.tt-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.tt-stat {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 14px;
  box-shadow: var(--as-shadow);
}

.tt-stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--as-ink);
}

.tt-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--as-muted);
}

/* limit bars */

.tt-limit {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--as-line);
  font-size: 14px;
}

.tt-limit:last-child {
  border-bottom: 0;
}

.tt-limit-name {
  font-weight: 600;
  color: var(--as-ink);
}

.tt-limit-name small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--as-muted);
}

.tt-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--as-paper-2);
  overflow: hidden;
}

.tt-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2f9e6b;
}

.tt-limit--near .tt-bar span { background: var(--as-gold); }
.tt-limit--over .tt-bar span { background: #d9534f; }

.tt-limit-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--as-ink-soft);
}

.tt-limit--over .tt-limit-count {
  font-weight: 700;
  color: #b33a36;
}

/* text cleaner */

.tt-report {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tt-report li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--as-line);
  font-size: 14px;
}

.tt-report li:last-child {
  border-bottom: 0;
}

.tt-count {
  flex: none;
  min-width: 34px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(212, 165, 116, 0.22);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: #8a5a2b;
}

.tt-count--ok {
  background: rgba(47, 158, 107, 0.14);
  color: #1f7a50;
}

.tt-code {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 12px;
  color: var(--as-muted);
}

.tt-marked {
  max-height: 320px;
  overflow: auto;
  padding: 12px 14px;
  background: var(--as-paper);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tt-mark {
  display: inline-block;
  margin: 0 1px;
  padding: 0 4px;
  border-radius: 4px;
  background: #d9534f;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  vertical-align: 1px;
  color: #fff;
}

.tt-mark--space { background: var(--as-gold); }
.tt-mark--soft { background: #8fa3b8; }

/* keyword list */

.tt-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tt-word {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--as-paper-2);
  font-size: 13px;
  color: var(--as-ink);
}

.tt-word b {
  margin-left: 4px;
  color: var(--as-muted);
}

.tt-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--as-ink-soft);
}

/* encoders */

.tt-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  background: var(--as-paper-2);
  border-radius: 999px;
}

.tt-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tt-tabs label {
  margin: 0;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--as-ink-soft);
  cursor: pointer;
}

.tt-tabs label:has(input:checked) {
  background: #fff;
  color: var(--as-ink);
  box-shadow: 0 1px 3px rgba(26, 39, 64, 0.15);
}

.tt-tabs label:has(input:focus-visible) {
  outline: 2px solid var(--as-accent);
}

.en-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.en-grid .tt-input {
  min-height: 220px;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 14px;
}

.en-swap {
  width: 40px;
  height: 40px;
  border: 1px solid var(--as-line);
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  color: var(--as-ink);
  cursor: pointer;
}

.en-swap:hover {
  border-color: var(--as-accent);
}

.en-error {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 14px;
  font-weight: 600;
  color: #b33a36;
}

.en-error:empty {
  display: none;
}

.en-only-decode,
.en-decoding .en-only-encode {
  display: none;
}

.en-decoding .en-only-decode {
  display: inline-flex;
}

.en-preview {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  background: repeating-conic-gradient(#f2f0ec 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.en-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.en-table th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--as-line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--as-muted);
}

.en-table th:first-child {
  width: 30%;
}

.en-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--as-line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.en-link {
  border: 0;
  padding: 0;
  background: none;
  font-family: var(--as-font);
  font-size: inherit;
  font-weight: 700;
  color: var(--as-accent-dark);
  cursor: pointer;
}

.en-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* developer helpers */

.dt-ok { font-weight: 700; color: #1f7a50; }
.dt-warn { font-weight: 700; color: #8a5a2b; }
.dt-bad { font-weight: 700; color: #b33a36; }

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

.dt-now-value {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 22px;
  font-weight: 700;
  color: var(--as-ink);
  overflow-wrap: anywhere;
}

.dt-now .tt-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dt-now .asante-copy {
  align-self: flex-start;
  margin-left: 0;
}

.dt-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dt-inline .tt-field {
  flex: 1;
  min-width: 200px;
  font-size: 16px;
  padding: 10px 14px;
}

.dt-code {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dt-code td {
  padding: 6px 8px;
  border-top: 1px solid var(--as-line);
  vertical-align: top;
}

.dt-code td:first-child {
  width: 140px;
  font-weight: 700;
  color: var(--as-ink-soft);
}

.dt-code code {
  font-size: 12px;
  color: var(--as-ink);
  word-break: break-all;
}

.dt-color-top {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.dt-swatch {
  display: flex;
  align-items: flex-end;
  min-height: 180px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--as-line);
  background:
    linear-gradient(var(--cc-color, #14bdee), var(--cc-color, #14bdee)),
    repeating-conic-gradient(#e8e6e2 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.dt-swatch-text {
  font-size: 15px;
  font-weight: 700;
}

.dt-picker {
  width: 52px;
  height: 46px;
  padding: 3px;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

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

.dt-contrast {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.dt-contrast-sample {
  flex: none;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--as-line);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
}

.dt-palette {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 4px;
}

.dt-chip.asante-copy {
  margin: 0;
  height: 64px;
  padding: 4px 2px;
  border: 0;
  border-radius: 8px;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  cursor: pointer;
}

.dt-chip--base {
  outline: 3px solid var(--as-ink);
  outline-offset: 1px;
}

/* password tools */

.pw-field {
  display: flex;
  gap: 8px;
}

.pw-field .tt-field {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  padding: 10px 14px;
}

.pw-field textarea.tt-field {
  min-height: 70px;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 14px;
  resize: vertical;
}

.pw-reveal {
  flex: none;
  padding: 0 14px;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--as-ink-soft);
  cursor: pointer;
}

.pw-hash {
  display: block;
  padding: 12px 14px;
  background: var(--as-paper);
  border-radius: 10px;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 15px;
  color: var(--as-ink);
  word-break: break-all;
}

.pw-submit {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--as-navy);
  font-family: var(--as-font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.pw-submit:hover {
  background: var(--as-accent-dark);
}

.pw-verdict {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-left: 6px solid #2f9e6b;
  border-radius: 12px;
  background: rgba(47, 158, 107, 0.08);
}

.pw-verdict--warn {
  border-left-color: var(--as-gold);
  background: rgba(212, 165, 116, 0.14);
}

.pw-verdict--bad {
  border-left-color: #d9534f;
  background: rgba(217, 83, 79, 0.08);
}

.pw-verdict-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--as-ink);
}

.pw-verdict p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--as-ink-soft);
}

/* code tools (JSON Tree Viewer, JSON↔XML, Markdown) */

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.ct-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  box-shadow: var(--as-shadow);
  overflow: hidden;
}

.ct-pane.ct-drop {
  outline: 3px dashed var(--as-accent);
  outline-offset: -6px;
}

.ct-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--as-line);
  background: var(--as-paper);
}

.ct-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--as-ink-soft);
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ct-btn {
  padding: 4px 11px;
  border: 1px solid var(--as-line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--as-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--as-ink);
  cursor: pointer;
}

.ct-btn:hover {
  border-color: var(--as-accent);
}

.ct-btn--primary {
  background: var(--as-navy);
  border-color: var(--as-navy);
  color: #fff;
}

.ct-editor {
  height: 440px;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
}

.ct-editor .ace_placeholder {
  font-family: var(--as-font);
  font-size: 14px;
  color: var(--as-muted);
}

.ct-status {
  margin: 10px 0 0;
  min-height: 1.3em;
  font-size: 13px;
  color: var(--as-muted);
}

.ct-status--bad { color: #b33a36; font-weight: 600; }
.ct-status--warn { color: #8a5a2b; }

.ct-panel-body {
  height: 440px;
  overflow: auto;
}

/* JSON tree */

.jt-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--as-line);
}

.jt-tools input {
  flex: 1;
  min-width: 120px;
  padding: 5px 10px;
  border: 1px solid var(--as-line);
  border-radius: 999px;
  font-family: var(--as-font);
  font-size: 13px;
}

.jt-matches {
  font-size: 12px;
  color: var(--as-muted);
  white-space: nowrap;
}

.jt-tree {
  padding: 8px 0;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 13px;
  line-height: 1.7;
}

.jt-row {
  padding: 0 12px 0 calc(12px + var(--depth, 0) * 18px);
  white-space: nowrap;
  cursor: pointer;
}

.jt-row:hover { background: var(--as-paper); }
.jt-row.jt-close { cursor: default; }
.jt-row.jt-match { background: rgba(212, 165, 116, 0.2); }
.jt-row.jt-current { background: rgba(212, 165, 116, 0.5); }
.jt-row.jt-selected { background: rgba(20, 189, 238, 0.16); }

.jt-toggle,
.jt-toggle-space {
  display: inline-block;
  width: 16px;
  margin-right: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1;
  color: var(--as-ink-soft);
  cursor: pointer;
}

.jt-key { color: #7a3e9d; }
.jt-colon { margin-right: 6px; color: var(--as-muted); }
.jt-string { color: #1f7a50; white-space: pre-wrap; }
.jt-number { color: #0b6bb5; }
.jt-bool, .jt-null { color: #b35c00; font-weight: 600; }
.jt-brace { color: var(--as-ink-soft); }
.jt-summary { margin: 0 4px; font-family: var(--as-font); font-size: 12px; color: var(--as-muted); }

.jt-empty,
.jt-error {
  margin: 0;
  padding: 16px;
  font-family: var(--as-font);
  font-size: 14px;
  color: var(--as-muted);
}

.jt-error { color: #b33a36; font-weight: 600; white-space: pre-wrap; }

.jt-pathbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--as-line);
  background: var(--as-paper);
}

.jt-pathbar code {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--as-ink);
  word-break: break-all;
}

/* Markdown preview */

.md-preview {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--as-ink);
}

.md-preview table { border-collapse: collapse; margin: 10px 0; }
.md-preview th, .md-preview td { padding: 5px 10px; border: 1px solid var(--as-line); }
.md-preview pre { padding: 10px 12px; background: var(--as-paper); border-radius: 8px; overflow: auto; }
.md-preview code { font-size: 13px; background: var(--as-paper); padding: 1px 5px; border-radius: 5px; }
.md-preview pre code { padding: 0; background: none; }
.md-preview blockquote { margin: 10px 0; padding: 4px 14px; border-left: 4px solid var(--as-line); color: var(--as-ink-soft); }
.md-preview img { max-width: 100%; }
.md-preview a { color: var(--as-accent-dark); }

.md-tabs.tt-tabs {
  margin: 0;
  padding: 3px;
}

.md-tabs.tt-tabs label {
  padding: 3px 12px;
  font-size: 12px;
}

.tool-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 0;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(20, 189, 238, 0.1), rgba(212, 165, 116, 0.12));
  border: 1px solid rgba(20, 189, 238, 0.35);
  border-radius: 14px;
  color: var(--as-ink);
  text-decoration: none;
}

.tool-callout:hover {
  border-color: var(--as-accent);
  color: var(--as-ink);
  text-decoration: none;
}

.tool-callout-icon {
  flex: none;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.tool-callout-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--as-ink-soft);
}

.tool-callout-text strong {
  color: var(--as-ink);
}

.tool-callout-go {
  flex: none;
  padding: 8px 14px;
  background: var(--as-navy);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.tool-callout:hover .tool-callout-go {
  background: var(--as-accent-dark);
}

/* IP calculators */

.ip-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 12px;
  align-items: end;
}

.ip-form--one {
  grid-template-columns: minmax(0, 1fr);
}

.ip-form .tt-label {
  margin-bottom: 6px;
}

.ip-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 18px;
}

.ip-form select.tt-field {
  width: 100%;
  padding: 13px 12px;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
}

.ip-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--as-paper-2);
  font-size: 14px;
  color: var(--as-ink);
}

.ip-note--warn {
  background: #fbf1e4;
  color: #6b4520;
}

.ip-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--as-line);
  border-left-width: 6px;
  background: #fff;
}

.ip-verdict strong {
  font-size: 20px;
  color: var(--as-ink);
}

.ip-verdict span {
  font-size: 15px;
  color: var(--as-ink-soft);
}

.ip-verdict--public { border-left-color: #1f7a50; }
.ip-verdict--private { border-left-color: #b33a36; }
.ip-verdict--mixed { border-left-color: #c08a3e; }

.ip-bits {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  font-size: 14px;
}

.ip-bits-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--as-muted);
}

.ip-bits-value {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.ip-bits-dec {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  color: var(--as-ink-soft);
}

.ip-net {
  color: var(--as-accent-dark);
  font-weight: 700;
}

.ip-host {
  color: #c08a3e;
}

.ip-split-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 10px;
  font-size: 14px;
}

.ip-table-wrap {
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--as-line);
  border-radius: 10px;
}

.ip-table {
  table-layout: auto;
}

.ip-table th {
  position: sticky;
  top: 0;
  background: #fff;
}

.ip-table th:first-child {
  width: auto;
}

.ip-table td {
  white-space: nowrap;
}

.ip-table--v6 td,
.ip-table--check td {
  white-space: normal;
}

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

.ip-hit td {
  background: #e8f6fb;
  font-weight: 700;
}

.ip-row-bad td {
  background: #fdf3f2;
}

.ip-wrap {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.ip-links {
  margin: 12px 0 0;
}

.ip-cheat {
  margin-top: 12px;
}

.ip-cheat summary {
  font-weight: 700;
  cursor: pointer;
}

/* IP lookups: /whatismyip, /iplookup, /reversedns */

.ip-search.asante-search {
  max-width: none;
  margin: 0;
}

.ip-search input {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
}

.ip-hint {
  margin: 12px 0 0;
  color: var(--as-muted);
  font-size: 13px;
}

.ip-hint button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--as-accent-dark);
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid rgba(20, 189, 238, 0.45);
}

.ip-status {
  margin: 18px 0 0;
  min-height: 1.3em;
  color: var(--as-muted);
  font-size: 14px;
}

.ip-status:empty {
  display: none;
}

.ip-status--bad {
  color: #b33a36;
  font-weight: 600;
}

.ip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ip-grid > .tt-panel {
  margin-top: 18px;
}

.ip-map {
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--as-paper-2);
}

.ip-map-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--as-muted);
}

.ip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.ip-verdict .ip-head-ip,
.ip-head-ip {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 17px;
  font-weight: 700;
  color: var(--as-ink);
  overflow-wrap: anywhere;
}

.ip-flag {
  width: 22px;
  height: auto;
  margin-right: 6px;
  vertical-align: -2px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ip-pass { font-weight: 700; color: #1f7a50; }
.ip-fail { font-weight: 700; color: #b33a36; }

.ip-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 18px 0 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff4f2;
  border: 1px solid #f3cdc8;
}

.ip-cta p {
  flex: 1;
  min-width: 240px;
  margin: 0;
  font-size: 15px;
  color: var(--as-ink);
}

.ip-cta a.ip-cta-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: #d9443b;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.ip-cta a.ip-cta-btn:hover {
  background: #b9362e;
}

.wm-ips {
  display: grid;
  gap: 14px;
}

.wm-ip {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.wm-ip-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--as-muted);
}

.wm-ip-value {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 16px;
  font-weight: 700;
  color: var(--as-ink);
  overflow-wrap: anywhere;
}

.wm-ip-value.is-missing {
  font-family: var(--as-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--as-muted);
}

/* redirect checker */

.rc-agent {
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid var(--as-line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--as-font);
  font-size: 13px;
  color: var(--as-ink);
}

.rc-notes p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
}

.rc-notes p:last-child {
  margin-bottom: 0;
}

.rc-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rc-step {
  position: relative;
  margin: 0 0 22px 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 14px;
  box-shadow: var(--as-shadow);
}

.rc-step + .rc-step::before {
  content: "↓";
  position: absolute;
  top: -21px;
  left: 18px;
  font-size: 15px;
  line-height: 1;
  color: var(--as-muted);
}

.rc-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.rc-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.rc-pill--ok { background: #e3f4ec; color: #1f7a50; }
.rc-pill--redir { background: #e6f3fb; color: #0b6e94; }
.rc-pill--bad { background: #fbe9e8; color: #b33a36; }

.rc-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--as-muted);
}

.rc-url {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rc-url code {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--as-ink);
  overflow-wrap: anywhere;
}

.rc-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--as-muted);
}

.rc-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.rc-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--as-paper-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--as-ink-soft);
}

.rc-error {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #b33a36;
}

/* DNS propagation */

.pr-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--as-muted);
}

.pr-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.pr-options .tt-field {
  padding: 5px 10px;
  font-size: 13px;
}

.pr-expect {
  width: 240px;
  max-width: 100%;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
}

.pr-src-note {
  margin: 8px 0 0;
}

.pr-table td:nth-child(2) code {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.pr-chip {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pr-chip--match { background: #e3f4ec; color: #1f7a50; }
.pr-chip--differs { background: #fbf1e4; color: #8a5a2b; }
.pr-chip--none,
.pr-chip--error { background: var(--as-paper-2); color: var(--as-muted); }

/* email header analyzer */

.eh-label,
.eh-actions label {
  margin: 0;
}

.eh-input {
  min-height: 180px;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 13px;
}

.eh-warn > span {
  display: block;
  flex-basis: 100%;
}

.eh-warn-item {
  display: block;
  margin-top: 6px;
}

.eh-res {
  display: inline-block;
  min-width: 52px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.eh-res--pass { background: #e3f4ec; color: #1f7a50; }
.eh-res--fail { background: #fbe9e8; color: #b33a36; }
.eh-res--neutral { background: var(--as-paper-2); color: var(--as-ink-soft); }

.eh-src {
  margin: 10px 0 0;
}

.eh-route {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eh-hop {
  padding: 10px 0;
  border-bottom: 1px solid var(--as-line);
}

.eh-hop:last-child {
  border-bottom: 0;
}

.eh-hop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.eh-hop-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--as-paper-2);
  font-size: 12px;
  font-weight: 800;
  color: var(--as-ink-soft);
}

.eh-hop-by {
  font-weight: 700;
  color: var(--as-ink);
  overflow-wrap: anywhere;
}

.eh-hop-body {
  margin: 4px 0 0 34px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.eh-delay {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--as-paper-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--as-ink-soft);
}

.eh-delay--warn { background: #fbf1e4; color: #8a5a2b; }
.eh-delay--bad { background: #fbe9e8; color: #b33a36; }
.eh-delay--odd { background: #eef0f4; color: var(--as-muted); }

.eh-all summary {
  cursor: pointer;
}

.eh-filter {
  width: 100%;
  margin: 12px 0 10px;
}

.eh-val {
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 12px;
}

/* contact form */

.ct-form .ip-verdict {
  margin: 0 0 16px;
}

.ct-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ct-field {
  width: 100%;
  padding: 11px 14px;
  font-size: 16px;
}

.ct-gap {
  margin-top: 14px;
}

.ct-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
}

.ct-tip {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--as-ink-soft);
}

.ct-tip:last-child {
  margin-bottom: 0;
}

/* legal pages */

.lg-body {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--as-ink);
}

.lg-body h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--as-ink);
}

.lg-body ul {
  padding-left: 22px;
}

.lg-body li + li {
  margin-top: 6px;
}

.lg-updated {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--as-muted);
}

/* MAC tools */

.ml-input {
  min-height: 0;
  font-family: var(--as-mono, ui-monospace, Consolas, monospace);
  font-size: 16px;
}

.ml-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 10px;
}

.ml-go {
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--as-accent);
  color: #fff;
  font-family: var(--as-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ml-go:hover {
  background: var(--as-accent-dark);
}

.mg-preset,
.mg-vendorbox {
  display: none;
}

.mg-show-preset .mg-preset,
.mg-show-vendor .mg-vendorbox {
  display: block;
}

.mg-vendorbox {
  margin-top: 14px;
}

.mg-vendors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mg-vendor {
  padding: 6px 12px;
  border: 1px solid var(--as-line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--as-font);
  font-size: 13px;
  color: var(--as-ink);
  text-align: left;
  cursor: pointer;
}

.mg-vendor:hover {
  border-color: var(--as-accent);
}

.wm-proto {
  margin: 0;
  font-size: 13px;
  color: var(--as-muted);
}

@media (max-width: 991px) {
  .ct-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-editor,
  .ct-panel-body {
    height: 340px;
  }
}

@media (max-width: 767px) {
  .dt-now,
  .dt-color-top,
  .dt-contrast-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .dt-palette {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .en-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .en-swap {
    justify-self: center;
    transform: rotate(90deg);
  }

  .tt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-form,
  .ip-bits,
  .ip-grid,
  .ct-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .wm-ip {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .wm-ip .asante-copy {
    grid-column: 2;
    justify-self: start;
  }

  .ip-bits-label {
    margin-top: 6px;
  }

  .tt-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tt-row-label {
    grid-column: 1 / -1;
  }

  .tt-limit {
    grid-template-columns: minmax(0, 1fr) 90px;
  }

  .tt-limit .tt-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tool-callout {
    flex-wrap: wrap;
  }

  .tool-callout-go {
    margin-left: 48px;
  }
}
